diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d0d7b6..996160c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,33 +1,33 @@ name: CI on: - push: - branches: - - dev - pull_request: - branches: - - main + push: + branches: + - dev + pull_request: + branches: + - main jobs: - build: - name: Build Check - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 + build: + name: Build Check + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "20" + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 9 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 9 - - name: Install dependencies - run: pnpm install + - name: Install dependencies + run: pnpm install - - name: Build frontend - run: pnpm build + - name: Build frontend + run: pnpm build diff --git a/LICENSE.md b/LICENSE.md index f288702..a5eae15 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,190 +1,190 @@ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. +Copyright (C) 2007 Free Software Foundation, Inc. +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. Preamble - The GNU General Public License is a free, copyleft license for +The GNU General Public License is a free, copyleft license for software and other kinds of works. - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, +The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the +software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to +any other work released this way by its authors. You can apply it to your programs, too. - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you +When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have +To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - For example, if you distribute copies of such a program, whether +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they know their rights. - Developers that use the GNU GPL protect your rights with two steps: +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and +For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - Some devices are designed to deny users access to install or run +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we +use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we +products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - Finally, every program is threatened constantly by software patents. +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that +make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - The precise terms and conditions for copying, distribution and +The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS - 0. Definitions. +0. Definitions. - "This License" refers to version 3 of the GNU General Public License. +"This License" refers to version 3 of the GNU General Public License. - "Copyright" also means copyright-like laws that apply to other kinds of +"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and +"The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. - To "modify" a work means to copy from or adapt all or part of the work +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the +exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. - A "covered work" means either the unmodified Program or a work based +A "covered work" means either the unmodified Program or a work based on the Program. - To "propagate" a work means to do anything with it that, without +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, +computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through +To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - An interactive user interface displays "Appropriate Legal Notices" +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If +work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - 1. Source Code. +1. Source Code. - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source +The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source form of a work. - A "Standard Interface" means an interface that either is an official +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - The "System Libraries" of an executable work include anything, other +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A +implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - The "Corresponding Source" for a work in object code form means all +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's +control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source +which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - The Corresponding Source need not include anything that users +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - The Corresponding Source for a work in source code form is that +The Corresponding Source for a work in source code form is that same work. - 2. Basic Permissions. +2. Basic Permissions. - All rights granted under this License are granted for the term of +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your +content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - You may make, run and propagate covered works that you do not +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose +in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works +not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 +Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. +3. Protecting Users' Legal Rights From Anti-Circumvention Law. - No covered work shall be deemed part of an effective technological +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - When you convey a covered work, you waive any legal power to forbid +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or @@ -192,9 +192,9 @@ modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - 4. Conveying Verbatim Copies. +4. Conveying Verbatim Copies. - You may convey verbatim copies of the Program's source code as you +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any @@ -202,12 +202,12 @@ non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - You may charge any price or no price for each copy that you convey, +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. - 5. Conveying Modified Source Versions. +5. Conveying Modified Source Versions. - You may convey a work based on the Program, or the modifications to +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: @@ -232,19 +232,19 @@ terms of section 4, provided that you also meet all of these conditions: interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - A compilation of a covered work with other separate and independent +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work +beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. - 6. Conveying Non-Source Forms. +6. Conveying Non-Source Forms. - You may convey a covered work in object code form under the terms +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: @@ -290,75 +290,75 @@ in one of these ways: Source of the work are being offered to the general public at no charge under subsection 6d. - A separable portion of the object code, whose source code is excluded +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - A "User Product" is either (1) a "consumer product", which means any +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product +actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - "Installation Information" for a User Product means any methods, +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must +a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - If you convey an object code work under this section in, or with, or +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply +by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - The requirement to provide Installation Information does not include a +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a +the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - Corresponding Source conveyed, and Installation Information provided, +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - 7. Additional Terms. +7. Additional Terms. - "Additional permissions" are terms that supplement the terms of this +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions +that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - When you convey a copy of a covered work, you may at your option +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - Notwithstanding any other provision of this License, for material you +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: @@ -385,74 +385,74 @@ that material) supplement the terms of this License with terms: any liability that these contractual assumptions directly impose on those licensors and authors. - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you +All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains +restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - If you add terms to a covered work in accord with this section, you +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - Additional terms, permissive or non-permissive, may be stated in the +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - 8. Termination. +8. Termination. - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or +You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - However, if you cease all violation of this License, then your +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - Moreover, your license from a particular copyright holder is +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - Termination of your rights under this section does not terminate the +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently +this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - 9. Acceptance Not Required for Having Copies. +9. Acceptance Not Required for Having Copies. - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work +You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, +to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - 10. Automatic Licensing of Downstream Recipients. +10. Automatic Licensing of Downstream Recipients. - Each time you convey a covered work, the recipient automatically +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible +propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - An "entity transaction" is a transaction transferring control of an +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered +organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could @@ -460,43 +460,43 @@ give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may +You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - 11. Patents. +11. Patents. - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The +A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". - A contributor's "essential patent claims" are all patent claims +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For +consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - Each contributor grants you a non-exclusive, worldwide, royalty-free +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - In the following three paragraphs, a "patent license" is any express +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a +sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - If you convey a covered work, knowingly relying on a patent license, +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, @@ -504,13 +504,13 @@ then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have +license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - If, pursuant to or in connection with a single transaction or +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify @@ -518,10 +518,10 @@ or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - A patent license is "discriminatory" if it does not include within +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered +specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying @@ -533,73 +533,73 @@ for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - Nothing in this License shall be construed as excluding or limiting +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - 12. No Surrender of Others' Freedom. +12. No Surrender of Others' Freedom. - If conditions are imposed on you (whether by court order, agreement or +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a +excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you +not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - 13. Use with the GNU Affero General Public License. +13. Use with the GNU Affero General Public License. - Notwithstanding any other provision of this License, you have +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this +combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - 14. Revised Versions of this License. +14. Revised Versions of this License. - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will +The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. - Each version is given a distinguishing version number. If the +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the +Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - If the Program specifies that a proxy can decide which future +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any +Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - 15. Disclaimer of Warranty. +15. Disclaimer of Warranty. - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - 16. Limitation of Liability. +16. Limitation of Liability. - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE @@ -609,9 +609,9 @@ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - 17. Interpretation of Sections 15 and 16. +17. Interpretation of Sections 15 and 16. - If the disclaimer of warranty and limitation of liability provided +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the @@ -622,11 +622,11 @@ copy of the Program in return for a fee. How to Apply These Terms to Your New Programs - If you develop a new program, and you want it to be of the greatest +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - To do so, attach the following notices to the program. It is safest +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. @@ -649,7 +649,7 @@ the "copyright" line and a pointer to where the full notice is found. Also add information on how to contact you by electronic and paper mail. - If the program does terminal interaction, make it output a short +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) @@ -658,17 +658,17 @@ notice like this when it starts in an interactive mode: under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands +parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". - You should also get your employer (if you work as a programmer) or school, +You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you +The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read . diff --git a/__init__.py b/__init__.py index a1bcc13..bda3f04 100644 --- a/__init__.py +++ b/__init__.py @@ -6,6 +6,11 @@ from .nodes.EmbeddrUploadImage import EmbeddrSaveToFolderNode from .nodes.EmbeddrLoadImage import EmbeddrLoadImageNode +from .nodes.EmbeddrLoadImages import EmbeddrLoadImagesNode +from .nodes.EmbeddrMergeIDs import EmbeddrMergeIDsNode +from .nodes.EmbeddrFindSimilar import EmbeddrFindSimilarNode +from .nodes.EmbeddrFindSimilarText import EmbeddrFindSimilarTextNode +from .nodes.EmbeddrUploadVideo import EmbeddrUploadVideo CONFIG_PATH = os.path.join(os.path.dirname(__file__), "config.json") @@ -81,8 +86,13 @@ async def get_config(request): class EmbeddrComfyUIExtension(ComfyExtension): async def get_node_list(self) -> list[type[io.ComfyNode]]: return [ - EmbeddrSaveToFolderNode, + EmbeddrFindSimilarNode, + EmbeddrFindSimilarTextNode, EmbeddrLoadImageNode, + EmbeddrLoadImagesNode, + EmbeddrMergeIDsNode, + EmbeddrSaveToFolderNode, + EmbeddrUploadVideo, ] diff --git a/nodes/EmbeddrFindSimilar.py b/nodes/EmbeddrFindSimilar.py new file mode 100644 index 0000000..9abd896 --- /dev/null +++ b/nodes/EmbeddrFindSimilar.py @@ -0,0 +1,111 @@ +import requests +import torch +import numpy as np +from PIL import Image +import io as pyio +from comfy_api.latest import io, ui +from .utils import get_config +from .utils.api import get_libraries, get_collections + + +class EmbeddrFindSimilarNode(io.ComfyNode): + @classmethod + def define_schema(cls) -> io.Schema: + # Fetch dynamic options + libraries = ["All"] + get_libraries() + collections = ["All"] + get_collections() + + return io.Schema( + node_id="embeddr.FindSimilar", + display_name="Embeddr Find Similar", + description="Finds similar images in your Embeddr library using an input image.", + category="Embeddr", + inputs=[ + io.Image.Input("image"), + io.Combo.Input("library", options=libraries, default="All"), + io.Combo.Input( + "collection", options=collections, default="All"), + io.Int.Input("limit", default=5, min=1, max=50), + io.Float.Input("threshold", default=0.0, min=0.0, + max=1.0, step=0.01, display_name="Min Score"), + ], + outputs=[ + io.Image.Output("images", is_output_list=True), + io.String.Output("embeddr_ids", is_output_list=True), + ], + ) + + @classmethod + def execute(cls, image, library="All", collection="All", limit=5, threshold=0.0): + config = get_config() + endpoint = config.get("endpoint", "http://localhost:8003") + api_url = endpoint.rstrip("/") + "/api/v1/images/search/image" + + # Prepare image (take first of batch) + img_array = (image[0].cpu().numpy() * 255).astype(np.uint8) + img = Image.fromarray(np.clip(img_array, 0, 255)) + + buf = pyio.BytesIO() + img.save(buf, format="PNG") + buf.seek(0) + + files = {"file": ("image.png", buf, "image/png")} + data = { + "limit": limit, + } + + # Parse IDs from "ID: Name" format + if library != "All": + try: + lib_id = int(library.split(":")[0]) + data["library_id"] = lib_id + except: + pass + + if collection != "All": + try: + col_id = int(collection.split(":")[0]) + data["collection_id"] = col_id + except: + pass + + try: + response = requests.post(api_url, files=files, data=data) + response.raise_for_status() + results = response.json() + items = results.get("items", []) + + if not items: + # Return empty + empty = torch.zeros( + (1, 64, 64, 3), dtype=torch.float32, device="cpu") + return io.NodeOutput(empty, "[]") + + # Load images + output_images = [] + output_ids = [] + + for item in items: + # Fetch image file + img_url = endpoint.rstrip( + "/") + f"/api/v1/images/{item['id']}/file" + img_resp = requests.get(img_url) + if img_resp.status_code == 200: + i = Image.open(pyio.BytesIO(img_resp.content)) + i = i.convert("RGB") + i = np.array(i).astype(np.float32) / 255.0 + output_images.append(torch.from_numpy(i)) + output_ids.append(str(item['id'])) + + if not output_images: + return io.NodeOutput([], []) + + # Return list of images (unsqueeze to add batch dimension 1) + final_images = [img.unsqueeze(0) for img in output_images] + return io.NodeOutput(final_images, output_ids) + + except Exception as e: + print(f"[Embeddr] Search failed: {e}") + empty = torch.zeros( + (1, 64, 64, 3), dtype=torch.float32, device="cpu") + return io.NodeOutput(empty, "[]") diff --git a/nodes/EmbeddrFindSimilarText.py b/nodes/EmbeddrFindSimilarText.py new file mode 100644 index 0000000..0769fae --- /dev/null +++ b/nodes/EmbeddrFindSimilarText.py @@ -0,0 +1,105 @@ +import requests +import torch +import numpy as np +from PIL import Image, ImageOps +import io as pyio +from comfy_api.latest import io, ui +from .utils import get_config +from .utils.api import get_libraries, get_collections + + +class EmbeddrFindSimilarTextNode(io.ComfyNode): + @classmethod + def define_schema(cls) -> io.Schema: + # Fetch dynamic options + libraries = ["All"] + get_libraries() + collections = ["All"] + get_collections() + + return io.Schema( + node_id="embeddr.FindSimilarText", + display_name="Embeddr Find Similar (Text)", + description="Finds similar images in your Embeddr library using a text prompt.", + category="Embeddr", + inputs=[ + io.String.Input("prompt", multiline=True), + io.Combo.Input("library", options=libraries, default="All"), + io.Combo.Input( + "collection", options=collections, default="All"), + io.Int.Input("limit", default=5, min=1, max=50), + ], + outputs=[ + io.Image.Output("images", is_output_list=True), + io.String.Output("embeddr_ids", is_output_list=True), + ], + ) + + @classmethod + def execute(cls, prompt, library="All", collection="All", limit=5): + config = get_config() + endpoint = config.get("endpoint", "http://localhost:8003") + api_url = endpoint.rstrip("/") + "/api/v1/images" + + params = { + "q": prompt, + "limit": limit, + } + + # Parse IDs from "ID: Name" format + if library != "All": + try: + lib_id = int(library.split(":")[0]) + params["library_id"] = lib_id + except: + pass + + if collection != "All": + try: + col_id = int(collection.split(":")[0]) + params["collection_id"] = col_id + except: + pass + + try: + response = requests.get(api_url, params=params) + response.raise_for_status() + results = response.json() + items = results.get("items", []) + + if not items: + # Return empty + empty = torch.zeros( + (1, 64, 64, 3), dtype=torch.float32, device="cpu") + return io.NodeOutput(empty, "") + + # Load images + output_images = [] + output_ids = [] + + first_width = 0 + first_height = 0 + + for item in items: + # Fetch image file + img_url = endpoint.rstrip( + "/") + f"/api/v1/images/{item['id']}/file" + img_resp = requests.get(img_url) + if img_resp.status_code == 200: + i = Image.open(pyio.BytesIO(img_resp.content)) + i = ImageOps.exif_transpose(i) + + i = i.convert("RGB") + i = np.array(i).astype(np.float32) / 255.0 + # Add batch dimension (1, H, W, C) + output_images.append(torch.from_numpy(i).unsqueeze(0)) + output_ids.append(str(item['id'])) + + if not output_images: + return io.NodeOutput([], []) + + return io.NodeOutput(output_images, output_ids) + + except Exception as e: + print(f"[Embeddr] Find Similar Text error: {e}") + empty = torch.zeros( + (1, 64, 64, 3), dtype=torch.float32, device="cpu") + return io.NodeOutput(empty, "") diff --git a/nodes/EmbeddrLoadImage.py b/nodes/EmbeddrLoadImage.py index f9e9a36..437b116 100644 --- a/nodes/EmbeddrLoadImage.py +++ b/nodes/EmbeddrLoadImage.py @@ -4,6 +4,7 @@ from PIL import Image, ImageOps from io import BytesIO from comfy_api.latest import io, ui +from .utils import get_config class EmbeddrLoadImageNode(io.ComfyNode): @@ -14,33 +15,40 @@ def define_schema(cls) -> io.Schema: return io.Schema( node_id="embeddr.LoadImage", display_name="Embeddr Load Image", - description="Loads an image from a URL (Embeddr).", + description="Loads an image from a Embeddr Image ID.", category="Embeddr", inputs=[ - io.String.Input("image_url", default=""), + io.String.Input("image_id", default=""), ], outputs=[ io.Image.Output("image"), io.Mask.Output("mask"), + io.String.Output("embeddr_id"), ], ) @classmethod - def execute(cls, image_url): - if not image_url: - # Return empty black image if no URL + def execute(cls, image_id): + if not image_id: + # Return empty black image if no ID empty_image = torch.zeros( (1, 64, 64, 3), dtype=torch.float32, device="cpu") empty_mask = torch.zeros( (1, 64, 64), dtype=torch.float32, device="cpu") - return io.NodeOutput(empty_image, empty_mask) + return io.NodeOutput(empty_image, empty_mask, "") - if image_url in cls._cache: - image, mask = cls._cache[image_url] - return io.NodeOutput(image, mask) + if image_id in cls._cache: + image, mask = cls._cache[image_id] + return io.NodeOutput(image, mask, image_id) try: - response = requests.get(image_url) + config = get_config() + endpoint = config.get("endpoint", "http://localhost:8003") + # Ensure endpoint doesn't end with slash + endpoint = endpoint.rstrip("/") + api_url = f"{endpoint}/api/v1/images/{image_id}/file" + + response = requests.get(api_url) response.raise_for_status() img = Image.open(BytesIO(response.content)) @@ -55,13 +63,13 @@ def execute(cls, image_url): else: mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu") - cls._cache[image_url] = (image, mask) - return io.NodeOutput(image, mask, ui=ui.PreviewImage(image)) + cls._cache[image_id] = (image, mask) + return io.NodeOutput(image, mask, image_id, ui=ui.PreviewImage(image)) except Exception as e: - print(f"[Embeddr] Error loading image: {e}") + print(f"[Embeddr] Error loading image {image_id}: {e}") empty_image = torch.zeros( (1, 64, 64, 3), dtype=torch.float32, device="cpu") empty_mask = torch.zeros( (1, 64, 64), dtype=torch.float32, device="cpu") - return io.NodeOutput(empty_image, empty_mask) + return io.NodeOutput(empty_image, empty_mask, "") diff --git a/nodes/EmbeddrLoadImages.py b/nodes/EmbeddrLoadImages.py new file mode 100644 index 0000000..555855e --- /dev/null +++ b/nodes/EmbeddrLoadImages.py @@ -0,0 +1,145 @@ +import requests +import torch +import numpy as np +from PIL import Image, ImageOps +from io import BytesIO +import random +from comfy_api.latest import io, ui +from .utils import get_config +from .utils.api import get_collections, get_libraries + + +class EmbeddrLoadImagesNode(io.ComfyNode): + _cache = {} + + @classmethod + def define_schema(cls) -> io.Schema: + collections = ["All"] + get_collections() + libraries = ["All"] + get_libraries() + + return io.Schema( + node_id="embeddr.EmbeddrLoadImages", + display_name="Embeddr Load Images", + description="Loads images from Embeddr with filtering and sorting.", + category="Embeddr", + inputs=[ + io.Combo.Input("library", options=libraries, default="All"), + io.Combo.Input( + "collection", options=collections, default="All"), + io.Combo.Input("sort_by", options=[ + "newest", "random"], default="newest"), + io.Int.Input("limit", default=5, min=1, max=100), + io.Int.Input("seed", default=0, + display_name="Seed (Random Sort)"), + ], + outputs=[ + io.Image.Output("images", is_output_list=True), + io.String.Output("embeddr_ids", is_output_list=True), + io.Mask.Output("masks", is_output_list=True), + ], + ) + + @classmethod + def execute(cls, library, collection, sort_by, limit, seed): + # Cache key based on inputs + cache_key = (library, collection, sort_by, limit, seed) + if cache_key in cls._cache: + return cls._cache[cache_key] + + try: + config = get_config() + endpoint = config.get("endpoint", "http://localhost:8003") + api_base_url = endpoint.rstrip("/") + "/api/v1" + + params = { + "limit": limit, + } + + # Parse Library ID + if library != "All": + try: + lib_id = int(library.split(":")[0]) + params["library_id"] = lib_id + except: + pass + + # Parse Collection ID + if collection != "All": + try: + col_id = int(collection.split(":")[0]) + params["collection_id"] = col_id + except: + pass + + # Handle Sort + if sort_by == "random": + params["sort"] = "random" + # Note: Server-side random might not respect seed, but we pass it just in case + # or we could implement client-side shuffle if we fetched more. + # For now, we rely on server-side random for efficiency. + else: + params["sort"] = "new" + + # Fetch images + url = f"{api_base_url}/images" + response = requests.get(url, params=params) + response.raise_for_status() + data = response.json() + items = data.get("items", []) + + if not items: + return cls._return_empty() + + images_list = [] + masks_list = [] + ids_list = [] + + for item in items: + image_id = item.get("id") + if not image_id: + continue + + image_url = f"{api_base_url}/images/{image_id}/file" + + try: + img_resp = requests.get(image_url) + img_resp.raise_for_status() + img = Image.open(BytesIO(img_resp.content)) + img = ImageOps.exif_transpose(img) + + image = img.convert("RGB") + image_np = np.array(image).astype(np.float32) / 255.0 + # Add batch dimension: [1, H, W, C] + image_tensor = torch.from_numpy(image_np).unsqueeze(0) + + if 'A' in img.getbands(): + mask_np = np.array(img.getchannel( + 'A')).astype(np.float32) / 255.0 + mask_tensor = 1. - torch.from_numpy(mask_np) + mask_tensor = mask_tensor.unsqueeze(0) # [1, H, W] + else: + mask_tensor = torch.zeros( + (1, img.height, img.width), dtype=torch.float32, device="cpu") + + images_list.append(image_tensor) + masks_list.append(mask_tensor) + ids_list.append(str(image_id)) + except Exception as e: + print(f"[Embeddr] Failed to load image {image_id}: {e}") + continue + + if not images_list: + return cls._return_empty() + + # Return lists + result = io.NodeOutput(images_list, ids_list, masks_list) + cls._cache[cache_key] = result + return result + + except Exception as e: + print(f"[Embeddr] Error loading images: {e}") + return cls._return_empty() + + @staticmethod + def _return_empty(): + return io.NodeOutput([], [], []) diff --git a/nodes/EmbeddrMergeIDs.py b/nodes/EmbeddrMergeIDs.py new file mode 100644 index 0000000..15a8954 --- /dev/null +++ b/nodes/EmbeddrMergeIDs.py @@ -0,0 +1,28 @@ +from comfy_api.latest import io, ui + + +class EmbeddrMergeIDsNode(io.ComfyNode): + @classmethod + def define_schema(cls) -> io.Schema: + # Inputs are handled dynamically by JS + return io.Schema( + node_id="embeddr.MergeIDs", + display_name="Embeddr Merge IDs", + description="Merges multiple Embeddr Image IDs into a list for lineage tracking.", + category="Embeddr", + inputs=[], + outputs=[ + io.String.Output("ids"), + ], + ) + + @classmethod + def execute(cls, **kwargs): + ids = [] + # Iterate through all possible inputs + for key, value in kwargs.items(): + if key.startswith("id") and value: + ids.append(value) + + # Return as list of strings + return io.NodeOutput(ids) diff --git a/nodes/EmbeddrUploadImage.py b/nodes/EmbeddrUploadImage.py index 64c70d7..d471806 100644 --- a/nodes/EmbeddrUploadImage.py +++ b/nodes/EmbeddrUploadImage.py @@ -1,93 +1,162 @@ -import torch +import folder_paths +from .utils.api import get_libraries, get_collections +import os +import json +import requests import numpy as np from PIL import Image -import io as python_io -import requests +from PIL.PngImagePlugin import PngInfo from comfy_api.latest import io, ui +from comfy_api.latest._io import _UIOutput, ComfyNode, FolderType +import io as pyio +import random +from .utils import get_config -# Import helper from parent package -# Note: In ComfyUI, nodes are imported dynamically, so relative imports can be tricky. -# We'll try a direct import or use the config file directly if needed. -import os -import json + +def Embeddr_Log(message: str): + print(f"[Embeddr] {message}") -def get_config(): - # Helper to read config directly to avoid circular imports or path issues - try: - config_path = os.path.join(os.path.dirname( - os.path.dirname(__file__)), "config.json") - if os.path.exists(config_path): - with open(config_path, "r") as f: - config = json.load(f) - return config - except: - pass - return {} +class EmbeddrImage(ui.PreviewImage): + def __init__(self, image: io.Image.Type, ids=None, animated: bool = False, cls: type[ComfyNode] = None, **kwargs): + super().__init__(image, animated, cls=cls) + self.extra = {} + if ids is not None: + self.extra["embeddr_ids"] = ids + + def as_dict(self): + d = { + "images": self.values, + "animated": (self.animated,) + } + d.update(self.extra) + return d class EmbeddrSaveToFolderNode(io.ComfyNode): @classmethod def define_schema(cls) -> io.Schema: + libraries = ["Default"] + get_libraries() + collections = ["None"] + get_collections() + return io.Schema( node_id="embeddr.SaveToFolder", display_name="Embeddr Upload Image", - description="Uploads an image to Embeddr using your saved API Key.", category="Embeddr", is_output_node=True, inputs=[ - io.Image.Input( - "image", - ), - io.String.Input( - "prompt", - optional=True - ), + io.Image.Input("image"), + io.String.Input("caption", optional=True), + io.String.Input("parent_ids", optional=True), + io.Combo.Input("library", options=libraries, + default="Default"), + io.Combo.Input( + "collection", options=collections, default="None"), + io.String.Input("tags", optional=True, default=""), + io.Boolean.Input("allow_duplicates", default=False, + display_name="Allow Duplicates"), + io.Boolean.Input("save_backup", default=False, + display_name="Save to Comfy History"), + ], + outputs=[ + # THIS IS KEY: output name must match + io.String.Output("embeddr_id"), ], ) @classmethod - def execute(cls, image, prompt): - print("[Embeddr] Uploading image...") + def VALIDATE_INPUTS(cls, **kwargs): + return True + + @classmethod + def execute(cls, image, caption=None, parent_ids=None, library="Default", collection="None", tags="", allow_duplicates=False, save_backup=False, **kwargs): + """ + image: input tensor(s) from previous node + caption: optional string + parent_ids: optional string (comma separated) or list of IDs + Returns the backend ID in the outputs so Comfy history sees it. + """ + uploaded_ids = [] config = get_config() + print("Loaded Config: ", config) endpoint = config.get("endpoint", "http://localhost:8003") - api_endpoint = endpoint + "/api/v1" - - try: - # Convert Tensor to PIL Image - # image is [B, H, W, C] - for i in range(image.shape[0]): - img_tensor = image[i] - img_array = 255. * img_tensor.cpu().numpy() - img = Image.fromarray( - np.clip(img_array, 0, 255).astype(np.uint8)) - - # Save to bytes - img_byte_arr = python_io.BytesIO() - img.save(img_byte_arr, format='PNG') - img_byte_arr.seek(0) - - # Prepare request - files = {'file': ('comfy_gen.png', img_byte_arr, 'image/png')} - data = {'prompt': prompt} - - # Send request - if endpoint.endswith('/'): - endpoint = endpoint[:-1] - url = f"{api_endpoint}/images/upload" - - response = requests.post( - url, files=files, data=data) - - if response.status_code == 200: - print( - f"[Embeddr] Upload successful: {response.json().get('id')}") + api_base_url = endpoint.rstrip("/") + "/api/v1" + upload_url = f"{api_base_url}/images/upload" + + # Loop over batch images + for i in range(image.shape[0]): + img_array = (image[i].cpu().numpy() * 255).astype(np.uint8) + img = Image.fromarray(np.clip(img_array, 0, 255)) + + # Save backup if requested + if save_backup: + try: + output_dir = folder_paths.get_output_directory() + filename_prefix = "Embeddr_Backup" + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path( + filename_prefix, output_dir, img.size[0], img.size[1]) + + metadata = PngInfo() + if caption: + metadata.add_text("parameters", caption) + + file = f"{filename}_{counter:05}_.png" + img.save(os.path.join(full_output_folder, file), + pnginfo=metadata, compress_level=4) + except Exception as e: + print(f"[Embeddr] Failed to save backup: {e}") + + buf = pyio.BytesIO() + img.save(buf, format="PNG") + buf.seek(0) + + files = {"file": ("image.png", buf, "image/png")} + data = {"prompt": caption or ""} + + if allow_duplicates: + data["force"] = "true" + + if tags: + data["tags"] = tags + + if library != "Default": + try: + data["library_id"] = int(library.split(":")[0]) + except: + pass + + if parent_ids: + if isinstance(parent_ids, list): + data["parent_ids"] = ",".join(map(str, parent_ids)) else: - print( - f"[Embeddr] Upload failed: {response.status_code} - {response.text}") + data["parent_ids"] = str(parent_ids) + + try: + response = requests.post(upload_url, files=files, data=data) + response.raise_for_status() + result = response.json() + uploaded_id = result.get("id") + uploaded_ids.append(str(uploaded_id)) + + # Add to collection if selected + if collection and collection != "None" and uploaded_id: + try: + collection_id = int(collection.split(":")[0]) + requests.post( + f"{api_base_url}/collections/{collection_id}/items", + json={"image_id": uploaded_id} + ) + except Exception as e: + print(f"[Embeddr] Failed to add to collection: {e}") + + except Exception as e: + print(f"[Embeddr] Upload failed: {e}") + uploaded_ids.append("-1") + + # Create preview + preview = EmbeddrImage(image, uploaded_ids, cls=cls) - except Exception as e: - print(f"[Embeddr] Error executing node: {e}") - return io.NodeOutput(ui=ui.PreviewImage(image, cls=cls)) + # Return IDs as comma-separated string + return io.NodeOutput(",".join(uploaded_ids), ui=preview) diff --git a/nodes/EmbeddrUploadVideo.py b/nodes/EmbeddrUploadVideo.py new file mode 100644 index 0000000..ce6d91f --- /dev/null +++ b/nodes/EmbeddrUploadVideo.py @@ -0,0 +1,110 @@ +import folder_paths +from .utils.api import get_libraries, get_collections +import os +import json +import requests +import tempfile +from comfy_api.latest import io, ui +from comfy_api.latest._io import ComfyNode +from .utils import get_config + + +class EmbeddrUploadVideo(io.ComfyNode): + + @classmethod + def define_schema(cls) -> io.Schema: + libraries = ["Default"] + get_libraries() + collections = ["None"] + get_collections() + + formats = ["mp4", "mkv", "webm", "mov", "avi"] + codecs = ["h264", "h265", "vp9", "vp8", "prores"] + + return io.Schema( + node_id="embeddr.SaveVideo", + display_name="Embeddr Upload Video", + category="Embeddr", + is_output_node=True, + inputs=[ + io.Video.Input("video", tooltip="The video to save."), + io.String.Input("caption", optional=True), + io.String.Input("parent_ids", optional=True), + io.Combo.Input("library", options=libraries, + default="Default"), + io.Combo.Input( + "collection", options=collections, default="None"), + io.String.Input("tags", optional=True, default=""), + io.Combo.Input("format", options=formats, default="mp4"), + io.Combo.Input("codec", options=codecs, default="h264"), + io.Boolean.Input("allow_duplicates", default=False, + display_name="Allow Duplicates"), + io.Boolean.Input("save_backup", default=False, + display_name="Save to Comfy History"), + ], + outputs=[ + io.String.Output("embeddr_id"), + ], + ) + + @classmethod + def VALIDATE_INPUTS(cls, **kwargs): + return True + + @classmethod + def execute(cls, video, caption=None, parent_ids=None, library="Default", collection="None", tags="", format="mp4", codec="h264", allow_duplicates=False, save_backup=False, **kwargs): + uploaded_ids = [] + config = get_config() + endpoint = config.get("endpoint", "http://localhost:8003") + api_base_url = endpoint.rstrip("/") + "/api/v1" + upload_url = f"{api_base_url}/images/upload" + + try: + # Create temp file + with tempfile.NamedTemporaryFile(suffix=f".{format}", delete=False) as tmp: + temp_path = tmp.name + + # Save video using the video object's save_to method + # We pass format and codec as strings. + # If the underlying library requires specific Enum types, this might fail without them. + # But often strings work or we can map them if we knew the library. + video.save_to(temp_path, format=format, codec=codec) + + # Upload + with open(temp_path, "rb") as f: + files = {"file": (f"video.{format}", f, f"video/{format}")} + data = {"prompt": caption or ""} + if allow_duplicates: + data["force"] = "true" + if tags: + data["tags"] = tags + if library != "Default": + try: + data["library_id"] = int(library.split(":")[0]) + except: + pass + if parent_ids: + data["parent_ids"] = parent_ids + + response = requests.post(upload_url, files=files, data=data) + response.raise_for_status() + result = response.json() + uploaded_id = result.get("id") + uploaded_ids.append(str(uploaded_id)) + + if collection and collection != "None" and uploaded_id: + try: + collection_id = int(collection.split(":")[0]) + requests.post( + f"{api_base_url}/collections/{collection_id}/items", + json={"image_id": uploaded_id} + ) + except Exception as e: + print(f"[Embeddr] Failed to add to collection: {e}") + + except Exception as e: + print(f"[Embeddr] Video upload failed: {e}") + uploaded_ids.append("-1") + finally: + if 'temp_path' in locals() and os.path.exists(temp_path): + os.remove(temp_path) + + return io.NodeOutput(",".join(uploaded_ids)) diff --git a/nodes/utils/__init__.py b/nodes/utils/__init__.py new file mode 100644 index 0000000..dc46902 --- /dev/null +++ b/nodes/utils/__init__.py @@ -0,0 +1,3 @@ +from .config import get_config + +__all__ = ["get_config"] diff --git a/nodes/utils/api.py b/nodes/utils/api.py new file mode 100644 index 0000000..0ee1c1a --- /dev/null +++ b/nodes/utils/api.py @@ -0,0 +1,34 @@ +import requests +from .config import get_config + + +def get_libraries(): + try: + config = get_config() + endpoint = config.get("endpoint", "http://localhost:8003") + api_url = endpoint.rstrip("/") + "/api/v1/libraries" + response = requests.get(api_url) + if response.status_code == 200: + data = response.json() + # Return list of names, but we might need IDs. + # ComfyUI Combo inputs usually take a list of strings. + # We can format as "Name (ID)" or just names if unique. + # Let's return a list of strings formatted as "ID: Name" for easy parsing + return [f"{lib['id']}: {lib['name']}" for lib in data] + except Exception as e: + print(f"[Embeddr] Failed to fetch libraries: {e}") + return [] + + +def get_collections(): + try: + config = get_config() + endpoint = config.get("endpoint", "http://localhost:8003") + api_url = endpoint.rstrip("/") + "/api/v1/collections" + response = requests.get(api_url) + if response.status_code == 200: + data = response.json() + return [f"{col['id']}: {col['name']}" for col in data] + except Exception as e: + print(f"[Embeddr] Failed to fetch collections: {e}") + return [] diff --git a/nodes/utils/config.py b/nodes/utils/config.py new file mode 100644 index 0000000..c349da9 --- /dev/null +++ b/nodes/utils/config.py @@ -0,0 +1,15 @@ +import os +import json + + +def get_config(): + try: + # Go up 3 levels: utils -> nodes -> embeddr-comfyui + base_path = os.path.dirname(os.path.dirname( + os.path.dirname(__file__))) + config_path = os.path.join(base_path, "config.json") + if os.path.exists(config_path): + return json.load(open(config_path, "r")) + except Exception: + pass + return {} diff --git a/package.json b/package.json index 24059da..1e58a2c 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "type": "module", "peerDependencies": { "primevue": "^4.2.5", "vue": "^3.5.13", @@ -13,13 +14,14 @@ "vite-plugin-vue-devtools": "^7.7.2" }, "scripts": { - "build": "vite build" + "build": "vite build", + "dev": "vite build --watch" }, "dependencies": { "@dnd-kit/core": "^6.3.1", "@dnd-kit/sortable": "^10.0.0", "@dnd-kit/utilities": "^3.2.2", - "@embeddr/react-ui": "^0.1.3", + "@embeddr/react-ui": "^0.1.4", "@radix-ui/react-aspect-ratio": "^1.1.8", "@radix-ui/react-avatar": "^1.1.11", "@radix-ui/react-dialog": "^1.1.15", @@ -31,6 +33,7 @@ "@radix-ui/react-separator": "^1.1.8", "@radix-ui/react-slot": "^1.2.4", "@radix-ui/react-switch": "^1.2.6", + "shadcn": "^3.6.2", "@radix-ui/react-tabs": "^1.1.13", "@tailwindcss/vite": "^4.1.17", "@vitejs/plugin-react": "^5.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 88e9451..92e098f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^3.2.2 version: 3.2.2(react@19.2.1) '@embeddr/react-ui': - specifier: ^0.1.3 - version: 0.1.3(4de4421668c7d731e0065c9633cb4872) + specifier: ^0.1.4 + version: 0.1.4(16c373490915c1118e2ce5b39846f212) '@radix-ui/react-aspect-ratio': specifier: ^1.1.8 version: 1.1.8(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) @@ -80,6 +80,9 @@ importers: react-dom: specifier: ^19.2.1 version: 19.2.1(react@19.2.1) + shadcn: + specifier: ^3.6.2 + version: 3.6.2(hono@4.11.3)(typescript@5.9.3) sonner: specifier: ^2.0.7 version: 2.0.7(react-dom@19.2.1(react@19.2.1))(react@19.2.1) @@ -117,6 +120,10 @@ importers: packages: + '@antfu/ni@25.0.0': + resolution: {integrity: sha512-9q/yCljni37pkMr4sPrI3G4jqdIk074+iukc5aFJl7kmDCCsiJrbZ6zKxnES1Gwg+i9RcDZwvktl23puGslmvA==} + hasBin: true + '@antfu/utils@0.7.10': resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} @@ -242,6 +249,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-modules-commonjs@7.27.1': + resolution: {integrity: sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-react-jsx-self@7.27.1': resolution: {integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==} engines: {node: '>=6.9.0'} @@ -260,6 +273,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/preset-typescript@7.28.5': + resolution: {integrity: sha512-+bQy5WOI2V6LJZpPVxY+yp66XdZ2yifu0Mc1aP5CQKgjn4QM5IN2i5fAZ4xKop47pr8rpVhiAeu+nDQa12C8+g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/runtime@7.28.4': resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} engines: {node: '>=6.9.0'} @@ -307,8 +326,18 @@ packages: peerDependencies: react: '>=16.8.0' - '@embeddr/react-ui@0.1.3': - resolution: {integrity: sha512-ns0d1bb4m0nFEoXsTt4LXCgvPNg0SZ6sUYLmX5NoXGQBrXocq9L/rZQH0L1m8wdhTyvfw0mhks56WR8t7HD3jA==} + '@dotenvx/dotenvx@1.51.4': + resolution: {integrity: sha512-AoziS8lRQ3ew/lY5J4JSlzYSN9Fo0oiyMBY37L3Bwq4mOQJT5GSrdZYLFPt6pH1LApDI3ZJceNyx+rHRACZSeQ==} + hasBin: true + + '@ecies/ciphers@0.2.5': + resolution: {integrity: sha512-GalEZH4JgOMHYYcYmVqnFirFsjZHeoGMDt9IxEnM9F7GRUUyUksJ7Ou53L83WHJq3RWKD3AcBpo0iQh0oMpf8A==} + engines: {bun: '>=1', deno: '>=2', node: '>=16'} + peerDependencies: + '@noble/ciphers': ^1.0.0 + + '@embeddr/react-ui@0.1.4': + resolution: {integrity: sha512-asOTRr5wnQybLpw+5u0BPWgzTKdqeHFYy4P61MhmuomjwXDFOQjty3DB2QfCHASP8E/DuoMP32SkkDR3aRLS2Q==} peerDependencies: '@radix-ui/react-accordion': ^1.2.12 '@radix-ui/react-aspect-ratio': ^1.1.8 @@ -334,6 +363,7 @@ packages: react: ^19.2.3 react-dom: ^19.2.3 react-resizable-panels: ^4.0.15 + shadcn: ^3.6.2 sonner: ^2.0.7 three: ^0.182.0 @@ -555,6 +585,12 @@ packages: '@floating-ui/utils@0.2.10': resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} + '@hono/node-server@1.19.7': + resolution: {integrity: sha512-vUcD0uauS7EU2caukW8z5lJKtoGMokxNbJtBiwHgpqxEXokaHCBkQUmCHhjFB1VUTWdqj25QoMkMKzgjq+uhrw==} + engines: {node: '>=18.14.1'} + peerDependencies: + hono: ^4 + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -571,6 +607,41 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} + '@inquirer/ansi@1.0.2': + resolution: {integrity: sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ==} + engines: {node: '>=18'} + + '@inquirer/confirm@5.1.21': + resolution: {integrity: sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@10.3.2': + resolution: {integrity: sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@1.0.15': + resolution: {integrity: sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==} + engines: {node: '>=18'} + + '@inquirer/type@3.0.10': + resolution: {integrity: sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + '@intlify/core-base@9.14.5': resolution: {integrity: sha512-5ah5FqZG4pOoHjkvs8mjtv+gPKYU0zCISaYNjBNNqYiaITxW8ZtVih3GS/oTOqN8d9/mDLyrjD46GBApNxmlsA==} engines: {node: '>= 16'} @@ -610,14 +681,61 @@ packages: '@mediapipe/tasks-vision@0.10.17': resolution: {integrity: sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==} + '@modelcontextprotocol/sdk@1.25.1': + resolution: {integrity: sha512-yO28oVFFC7EBoiKdAn+VqRm+plcfv4v0xp6osG/VsCB0NlPZWi87ajbCZZ8f/RvOFLEu7//rSRmuZZ7lMoe3gQ==} + engines: {node: '>=18'} + peerDependencies: + '@cfworker/json-schema': ^4.1.1 + zod: ^3.25 || ^4.0 + peerDependenciesMeta: + '@cfworker/json-schema': + optional: true + '@monogrid/gainmap-js@3.4.0': resolution: {integrity: sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg==} peerDependencies: three: '>= 0.159.0' + '@mswjs/interceptors@0.40.0': + resolution: {integrity: sha512-EFd6cVbHsgLa6wa4RljGj6Wk75qoHxUSyc5asLyyPSyuhIcdS2Q3Phw6ImS1q+CkALthJRShiYfKANcQMuMqsQ==} + engines: {node: '>=18'} + '@napi-rs/wasm-runtime@0.2.12': resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==} + '@noble/ciphers@1.3.0': + resolution: {integrity: sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==} + engines: {node: ^14.21.3 || >=16} + + '@noble/curves@1.9.7': + resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==} + engines: {node: ^14.21.3 || >=16} + + '@noble/hashes@1.8.0': + resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} + engines: {node: ^14.21.3 || >=16} + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@open-draft/deferred-promise@2.2.0': + resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==} + + '@open-draft/logger@0.3.0': + resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==} + + '@open-draft/until@2.1.0': + resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==} + '@polka/url@1.0.0-next.29': resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} @@ -1439,15 +1557,15 @@ packages: react-dom: optional: true - '@react-three/fiber@9.4.2': - resolution: {integrity: sha512-H4B4+FDNHpvIb4FmphH4ubxOfX5bxmfOw0+3pkQwR9u9wFiyMS7wUDkNn0m4RqQuiLWeia9jfN1eBvtyAVGEog==} + '@react-three/fiber@9.5.0': + resolution: {integrity: sha512-FiUzfYW4wB1+PpmsE47UM+mCads7j2+giRBltfwH7SNhah95rqJs3ltEs9V3pP8rYdS0QlNne+9Aj8dS/SiaIA==} peerDependencies: expo: '>=43.0' expo-asset: '>=8.4' expo-file-system: '>=11.0' expo-gl: '>=11.0' - react: ^19.0.0 - react-dom: ^19.0.0 + react: '>=19 <19.3' + react-dom: '>=19 <19.3' react-native: '>=0.78' three: '>=0.156' peerDependenciesMeta: @@ -1599,13 +1717,13 @@ packages: peerDependencies: eslint: '>=9.0.0' - '@tabler/icons-react@3.36.0': - resolution: {integrity: sha512-sSZ00bEjTdTTskVFykq294RJq+9cFatwy4uYa78HcYBCXU1kSD1DIp5yoFsQXmybkIOKCjp18OnhAYk553UIfQ==} + '@tabler/icons-react@3.36.1': + resolution: {integrity: sha512-/8nOXeNeMoze9xY/QyEKG65wuvRhkT3q9aytaur6Gj8bYU2A98YVJyLc9MRmc5nVvpy+bRlrrwK/Ykr8WGyUWg==} peerDependencies: react: '>= 16' - '@tabler/icons@3.36.0': - resolution: {integrity: sha512-z9OfTEG6QbaQWM9KBOxxUdpgvMUn0atageXyiaSc2gmYm51ORO8Ua7eUcjlks+Dc0YMK4rrodAFdK9SfjJ4ZcA==} + '@tabler/icons@3.36.1': + resolution: {integrity: sha512-f4Jg3Fof/Vru5ioix/UO4GX+sdDsF9wQo47FbtvG+utIYYVQ/QVAC0QYgcBbAjQGfbdOh2CCf0BgiFOF9Ixtjw==} '@tailwindcss/node@4.1.17': resolution: {integrity: sha512-csIkHIgLb3JisEFQ0vxr2Y57GUNYh447C8xzwj89U/8fdW8LhProdxvnVH6U8M2Y73QKiTIH+LWbK3V2BBZsAg==} @@ -1703,6 +1821,9 @@ packages: peerDependencies: eslint: ^8.0.0 || ^9.0.0 + '@ts-morph/common@0.27.0': + resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==} + '@tweenjs/tween.js@23.1.3': resolution: {integrity: sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==} @@ -1738,17 +1859,15 @@ packages: peerDependencies: '@types/react': '*' - '@types/react-reconciler@0.32.3': - resolution: {integrity: sha512-cMi5ZrLG7UtbL7LTK6hq9w/EZIRk4Mf1Z5qHoI+qBh7/WkYkFXQ7gOto2yfUvPzF5ERMAhaXS5eTQ2SAnHjLzA==} - peerDependencies: - '@types/react': '*' - '@types/react@19.2.7': resolution: {integrity: sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==} '@types/stats.js@0.17.4': resolution: {integrity: sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==} + '@types/statuses@2.0.6': + resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==} + '@types/three@0.182.0': resolution: {integrity: sha512-WByN9V3Sbwbe2OkWuSGyoqQO8Du6yhYaXtXLoA5FkKTUJorZ+yOHBZ35zUUPQXlAKABZmbYp5oAqpA4RBjtJ/Q==} @@ -1992,6 +2111,10 @@ packages: '@webgpu/types@0.1.68': resolution: {integrity: sha512-3ab1B59Ojb6RwjOspYLsTpCzbNB3ZaamIAxBMmvnNkiDoLTZUOBXZ9p5nAYVEkQlDdf6qAZWi1pqj9+ypiqznA==} + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -2002,13 +2125,40 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + agent-base@7.1.4: + resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} + engines: {node: '>= 14'} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + ajv@8.17.1: + resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.2.2: + resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==} + engines: {node: '>=12'} + ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} + ansis@4.2.0: + resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==} + engines: {node: '>=14'} + argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} @@ -2016,6 +2166,10 @@ packages: resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} engines: {node: '>=10'} + ast-types@0.16.1: + resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==} + engines: {node: '>=4'} + balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -2032,12 +2186,20 @@ packages: birpc@2.8.0: resolution: {integrity: sha512-Bz2a4qD/5GRhiHSwj30c/8kC8QGj12nNDwz3D4ErQ4Xhy35dsSDvF+RA/tWpjyU0pdGtSDiEk6B5fBGE1qNVhw==} + body-parser@2.2.1: + resolution: {integrity: sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==} + engines: {node: '>=18'} + brace-expansion@1.1.12: resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} brace-expansion@2.0.2: resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + browserslist@4.28.0: resolution: {integrity: sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} @@ -2050,6 +2212,18 @@ packages: resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} engines: {node: '>=18'} + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} @@ -2067,13 +2241,36 @@ packages: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + class-variance-authority@0.7.1: resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@2.9.2: + resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} + engines: {node: '>=6'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + clsx@2.1.1: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} + code-block-writer@13.0.3: + resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -2081,6 +2278,14 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + commander@11.1.0: + resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} + engines: {node: '>=16'} + + commander@14.0.2: + resolution: {integrity: sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==} + engines: {node: '>=20'} + comment-parser@1.4.1: resolution: {integrity: sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==} engines: {node: '>= 12.0.0'} @@ -2088,13 +2293,46 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + content-disposition@1.0.1: + resolution: {integrity: sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==} + engines: {node: '>=18'} + + content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cookie-signature@1.2.2: + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} + + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} + + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + copy-anything@4.0.5: resolution: {integrity: sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==} engines: {node: '>=18'} + cors@2.8.5: + resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==} + engines: {node: '>= 0.10'} + + cosmiconfig@9.0.0: + resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==} + engines: {node: '>=14'} + peerDependencies: + typescript: '>=4.9.5' + peerDependenciesMeta: + typescript: + optional: true + cross-env@7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} @@ -2104,9 +2342,18 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + cssesc@3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + data-uri-to-buffer@4.0.1: + resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} + engines: {node: '>= 12'} + debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -2116,9 +2363,21 @@ packages: supports-color: optional: true + dedent@1.7.1: + resolution: {integrity: sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==} + peerDependencies: + babel-plugin-macros: ^3.1.0 + peerDependenciesMeta: + babel-plugin-macros: + optional: true + deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + default-browser-id@5.0.1: resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} engines: {node: '>=18'} @@ -2131,6 +2390,10 @@ packages: resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} engines: {node: '>=12'} + depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + detect-gpu@5.0.70: resolution: {integrity: sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w==} @@ -2141,12 +2404,41 @@ packages: detect-node-es@1.1.0: resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} + diff@8.0.2: + resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==} + engines: {node: '>=0.3.1'} + + dotenv@17.2.3: + resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==} + engines: {node: '>=12'} + draco3d@1.5.7: resolution: {integrity: sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==} + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + eciesjs@0.4.16: + resolution: {integrity: sha512-dS5cbA9rA2VR4Ybuvhg6jvdmp46ubLn3E+px8cG/35aEDNclrqoCjg6mt0HYZ/M+OoESS3jSkCrqk1kWAEhWAw==} + engines: {bun: '>=1', deno: '>=2', node: '>=16'} + + ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + electron-to-chromium@1.5.260: resolution: {integrity: sha512-ov8rBoOBhVawpzdre+Cmz4FB+y66Eqrk6Gwqd8NGxuhv99GQ8XqMAr351KEkOt7gukXWDg6gJWEMKgL2RLMPtA==} + emoji-regex@10.6.0: + resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + encodeurl@2.0.0: + resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + engines: {node: '>= 0.8'} + enhanced-resolve@5.18.3: resolution: {integrity: sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==} engines: {node: '>=10.13.0'} @@ -2155,9 +2447,28 @@ packages: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} + env-paths@2.2.1: + resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} + engines: {node: '>=6'} + + error-ex@1.3.4: + resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} + error-stack-parser-es@0.1.5: resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==} + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-object-atoms@1.1.1: + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} + esbuild@0.25.12: resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} engines: {node: '>=18'} @@ -2167,6 +2478,9 @@ packages: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} @@ -2237,6 +2551,11 @@ packages: resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + esquery@1.6.0: resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} engines: {node: '>=0.10'} @@ -2256,19 +2575,55 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + + eventsource-parser@3.0.6: + resolution: {integrity: sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==} + engines: {node: '>=18.0.0'} + + eventsource@3.0.7: + resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==} + engines: {node: '>=18.0.0'} + + execa@5.1.1: + resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} + engines: {node: '>=10'} + execa@9.6.0: resolution: {integrity: sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw==} engines: {node: ^18.19.0 || >=20.5.0} + express-rate-limit@7.5.1: + resolution: {integrity: sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==} + engines: {node: '>= 16'} + peerDependencies: + express: '>= 4.11' + + express@5.2.1: + resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} + engines: {node: '>= 18'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + fast-uri@3.1.0: + resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==} + + fastq@1.20.1: + resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==} + fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -2278,6 +2633,10 @@ packages: picomatch: optional: true + fetch-blob@3.2.0: + resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} + engines: {node: ^12.20 || >= 14.13} + fflate@0.6.10: resolution: {integrity: sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==} @@ -2292,6 +2651,14 @@ packages: resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} engines: {node: '>=16.0.0'} + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + finalhandler@2.1.1: + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} + find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} @@ -2303,6 +2670,18 @@ packages: flatted@3.3.3: resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} + formdata-polyfill@4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + fs-extra@11.3.2: resolution: {integrity: sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==} engines: {node: '>=14.14'} @@ -2312,14 +2691,47 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + fuzzysort@3.1.0: + resolution: {integrity: sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==} + + fzf@0.5.2: + resolution: {integrity: sha512-Tt4kuxLXFKHy8KT40zwsUPUkg1CrsgY25FxA2U/j/0WgEDCk3ddc/zLTCCcbSHX9FcKtLuVaDGtGE/STWC+j3Q==} + gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + get-east-asian-width@1.4.0: + resolution: {integrity: sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==} + engines: {node: '>=18'} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + get-nonce@1.0.1: resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} engines: {node: '>=6'} + get-own-enumerable-keys@1.0.0: + resolution: {integrity: sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==} + engines: {node: '>=14.16'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + get-stream@6.0.1: + resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} + engines: {node: '>=10'} + get-stream@9.0.1: resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} engines: {node: '>=18'} @@ -2327,6 +2739,10 @@ packages: get-tsconfig@4.13.0: resolution: {integrity: sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==} + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + glob-parent@6.0.2: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} @@ -2349,23 +2765,62 @@ packages: glsl-noise@0.0.0: resolution: {integrity: sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==} + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + graphql@16.12.0: + resolution: {integrity: sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ==} + engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} + has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + + headers-polyfill@4.0.3: + resolution: {integrity: sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ==} + hls.js@1.6.15: resolution: {integrity: sha512-E3a5VwgXimGHwpRGV+WxRTKeSp2DW5DI5MWv34ulL3t5UNmyJWCQ1KmLEHbYzcfThfXG8amBL+fCYPneGHC4VA==} + hono@4.11.3: + resolution: {integrity: sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==} + engines: {node: '>=16.9.0'} + hookable@5.5.3: resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} + http-errors@2.0.1: + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} + + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + + human-signals@2.1.0: + resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} + engines: {node: '>=10.17.0'} + human-signals@8.0.1: resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==} engines: {node: '>=18.18.0'} + iconv-lite@0.7.1: + resolution: {integrity: sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==} + engines: {node: '>=0.10.0'} + ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -2388,6 +2843,16 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + + is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + is-docker@3.0.0: resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -2397,15 +2862,38 @@ packages: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + is-inside-container@1.0.0: resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} engines: {node: '>=14.16'} hasBin: true + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-node-process@1.2.0: + resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-obj@3.0.0: + resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==} + engines: {node: '>=12'} + is-plain-obj@4.1.0: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} @@ -2413,10 +2901,25 @@ packages: is-promise@2.2.2: resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + + is-regexp@3.1.0: + resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==} + engines: {node: '>=12'} + + is-stream@2.0.1: + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} + is-stream@4.0.1: resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} engines: {node: '>=18'} + is-unicode-supported@1.3.0: + resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==} + engines: {node: '>=12'} + is-unicode-supported@2.1.0: resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} engines: {node: '>=18'} @@ -2432,6 +2935,10 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + isexe@3.1.1: + resolution: {integrity: sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==} + engines: {node: '>=16'} + its-fine@2.0.0: resolution: {integrity: sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng==} peerDependencies: @@ -2441,6 +2948,9 @@ packages: resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} hasBin: true + jose@6.1.3: + resolution: {integrity: sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -2456,9 +2966,18 @@ packages: json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + json-schema-typed@8.0.2: + resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==} + json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} @@ -2473,6 +2992,14 @@ packages: keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + kleur@3.0.3: + resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} + engines: {node: '>=6'} + + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + kolorist@1.8.0: resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} @@ -2553,6 +3080,9 @@ packages: resolution: {integrity: sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==} engines: {node: '>= 12.0.0'} + lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -2560,6 +3090,10 @@ packages: lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + log-symbols@6.0.0: + resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==} + engines: {node: '>=18'} + lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -2582,6 +3116,25 @@ packages: magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + media-typer@1.1.0: + resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==} + engines: {node: '>= 0.8'} + + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + + merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + meshline@3.3.1: resolution: {integrity: sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==} peerDependencies: @@ -2590,6 +3143,26 @@ packages: meshoptimizer@0.22.0: resolution: {integrity: sha512-IebiK79sqIy+E4EgOr+CAw+Ke8hAspXKzBd0JdgEmPHiAwmvEj2S4h1rfvo+o/BnfEYd/jAOg5IeeIjzlzSnDg==} + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@3.0.2: + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} + + mimic-fn@2.1.0: + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + minimatch@10.1.1: resolution: {integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==} engines: {node: 20 || >=22} @@ -2601,6 +3174,9 @@ packages: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + mitt@3.0.1: resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} @@ -2611,6 +3187,20 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + msw@2.12.7: + resolution: {integrity: sha512-retd5i3xCZDVWMYjHEVuKTmhqY8lSsxujjVrZiGbbdoxxIBg5S7rCuYy/YQpfrTYIxpd/o0Kyb/3H+1udBMoYg==} + engines: {node: '>=18'} + hasBin: true + peerDependencies: + typescript: '>= 4.8.x' + peerDependenciesMeta: + typescript: + optional: true + + mute-stream@2.0.0: + resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==} + engines: {node: ^18.17.0 || >=20.5.0} + nanoid@3.3.11: resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -2629,43 +3219,112 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + negotiator@1.0.0: + resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} + engines: {node: '>= 0.6'} + next-themes@0.4.6: resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==} peerDependencies: react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc + node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead + + node-fetch@3.3.2: + resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + node-releases@2.0.27: resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==} + npm-run-path@4.0.1: + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} + npm-run-path@6.0.0: resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} engines: {node: '>=18'} - open@10.2.0: - resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==} - engines: {node: '>=18'} + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} - optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + object-treeify@1.1.33: + resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==} + engines: {node: '>= 10'} + + on-finished@2.4.1: + resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + engines: {node: '>= 0.8'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + onetime@5.1.2: + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@10.2.0: + resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==} + engines: {node: '>=18'} + + open@11.0.0: + resolution: {integrity: sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==} + engines: {node: '>=20'} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + ora@8.2.0: + resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==} + engines: {node: '>=18'} + + outvariant@1.4.3: + resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} p-locate@5.0.0: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} + package-manager-detector@1.6.0: + resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==} + parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} + parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + parse-ms@4.0.0: resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==} engines: {node: '>=18'} + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -2678,6 +3337,12 @@ packages: resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} engines: {node: '>=12'} + path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} + + path-to-regexp@8.3.0: + resolution: {integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==} + pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -2687,10 +3352,22 @@ packages: picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + picomatch@4.0.3: resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} engines: {node: '>=12'} + pkce-challenge@5.0.1: + resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} + engines: {node: '>=16.20.0'} + + postcss-selector-parser@7.1.1: + resolution: {integrity: sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==} + engines: {node: '>=4'} + postcss@8.5.6: resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} engines: {node: ^10 || ^12 || >=14} @@ -2698,6 +3375,10 @@ packages: potpack@1.0.2: resolution: {integrity: sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==} + powershell-utils@0.1.0: + resolution: {integrity: sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==} + engines: {node: '>=20'} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -2713,10 +3394,25 @@ packages: promise-worker-transferable@1.0.4: resolution: {integrity: sha512-bN+0ehEnrXfxV2ZQvU2PetO0n4gqBD4ulq3MI1WOPLgr7/Mg9yRQkX5+0v1vagr74ZTsl7XtzlaYDo2EuCeYJw==} + prompts@2.4.2: + resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} + engines: {node: '>= 6'} + + proxy-addr@2.0.7: + resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + engines: {node: '>= 0.10'} + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} + qs@6.14.1: + resolution: {integrity: sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==} + engines: {node: '>=0.6'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + radix-ui@1.4.3: resolution: {integrity: sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==} peerDependencies: @@ -2730,17 +3426,19 @@ packages: '@types/react-dom': optional: true + range-parser@1.2.1: + resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} + engines: {node: '>= 0.6'} + + raw-body@3.0.2: + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} + react-dom@19.2.1: resolution: {integrity: sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==} peerDependencies: react: ^19.2.1 - react-reconciler@0.31.0: - resolution: {integrity: sha512-7Ob7Z+URmesIsIVRjnLoDGwBEG/tVitidU0nMsqX/eeJaLY89RISO/10ERe0MqmzuKUUB1rmY+h1itMbUHg9BQ==} - engines: {node: '>=0.10.0'} - peerDependencies: - react: ^19.0.0 - react-refresh@0.18.0: resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} engines: {node: '>=0.10.0'} @@ -2765,8 +3463,8 @@ packages: '@types/react': optional: true - react-resizable-panels@4.0.16: - resolution: {integrity: sha512-xhU02yogk3lD1f353oNAGm419pov2imCtxegHJN6FclXtGrfLglkl/h4K/RBHBxsGtR79lp12Zmz3Bbi/BoHpA==} + react-resizable-panels@4.2.1: + resolution: {integrity: sha512-UYyiZNjd3P12BqQYihojqdVs4ovMBWFO68RQp/O1HGiUKdltNu9hacZEm4PVD/UpYpz5p9V+YBtOZo+CvGKmkQ==} peerDependencies: react: ^18.0.0 || ^19.0.0 react-dom: ^18.0.0 || ^19.0.0 @@ -2794,6 +3492,14 @@ packages: resolution: {integrity: sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==} engines: {node: '>=0.10.0'} + recast@0.23.11: + resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==} + engines: {node: '>= 4'} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + require-from-string@2.0.2: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} @@ -2805,6 +3511,17 @@ packages: resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rettime@0.7.0: + resolution: {integrity: sha512-LPRKoHnLKd/r3dVxcwO7vhCW+orkOGj9ViueosEBK6ie89CijnfRlhaDhHq/3Hxu4CkWQtxwlBG0mzTQY6uQjw==} + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + rfdc@1.4.1: resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} @@ -2813,12 +3530,19 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + router@2.2.0: + resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} + engines: {node: '>= 18'} + run-applescript@7.1.0: resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} engines: {node: '>=18'} - scheduler@0.25.0: - resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} scheduler@0.27.0: resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} @@ -2832,6 +3556,21 @@ packages: engines: {node: '>=10'} hasBin: true + send@1.2.1: + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} + + serve-static@2.2.1: + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + + shadcn@3.6.2: + resolution: {integrity: sha512-2g48/7UsXTSWMFU9GYww85AN5iVTkErbeycrcleI55R+atqW8HE1M/YDFyQ+0T3Bwsd4e8vycPu9gmwODunDpw==} + hasBin: true + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -2840,6 +3579,25 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + side-channel-list@1.0.0: + resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} + engines: {node: '>= 0.4'} + + side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + + side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + + side-channel@1.1.0: + resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} + engines: {node: '>= 0.4'} + + signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + signal-exit@4.1.0: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} @@ -2848,6 +3606,9 @@ packages: resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==} engines: {node: '>=18'} + sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + sonner@2.0.7: resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==} peerDependencies: @@ -2858,6 +3619,10 @@ packages: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + speakingurl@14.0.1: resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==} engines: {node: '>=0.10.0'} @@ -2875,6 +3640,45 @@ packages: stats.js@0.17.0: resolution: {integrity: sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==} + statuses@2.0.2: + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} + + stdin-discarder@0.2.2: + resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==} + engines: {node: '>=18'} + + strict-event-emitter@0.5.1: + resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@7.2.0: + resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} + engines: {node: '>=18'} + + stringify-object@5.0.0: + resolution: {integrity: sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==} + engines: {node: '>=14.16'} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.1.2: + resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==} + engines: {node: '>=12'} + + strip-bom@3.0.0: + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} + + strip-final-newline@2.0.0: + resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} + engines: {node: '>=6'} + strip-final-newline@4.0.0: resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} engines: {node: '>=18'} @@ -2896,6 +3700,10 @@ packages: peerDependencies: react: '>=17.0' + tagged-tag@1.0.0: + resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==} + engines: {node: '>=20'} + tailwind-merge@3.4.0: resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==} @@ -2919,14 +3727,40 @@ packages: three@0.182.0: resolution: {integrity: sha512-GbHabT+Irv+ihI1/f5kIIsZ+Ef9Sl5A1Y7imvS5RQjWgtTPfPnZ43JmlYI7NtCRDK9zir20lQpfg8/9Yd02OvQ==} + tiny-invariant@1.3.3: + resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} + + tinyexec@1.0.2: + resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==} + engines: {node: '>=18'} + tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} + tldts-core@7.0.19: + resolution: {integrity: sha512-lJX2dEWx0SGH4O6p+7FPwYmJ/bu1JbcGJ8RLaG9b7liIgZ85itUVEPbMtWRVrde/0fnDPEPHW10ZsKW3kVsE9A==} + + tldts@7.0.19: + resolution: {integrity: sha512-8PWx8tvC4jDB39BQw1m4x8y5MH1BcQ5xHeL2n7UVFulMPH/3Q0uiamahFJ3lXA0zO2SUyRXuVVbWSDmstlt9YA==} + hasBin: true + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + totalist@3.0.1: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} engines: {node: '>=6'} + tough-cookie@6.0.0: + resolution: {integrity: sha512-kXuRi1mtaKMrsLUxz3sQYvVl37B0Ns6MzfrtV5DvJceE9bPyspOqk9xxv7XbZWcfLWbFmm997vl83qUWVJA64w==} + engines: {node: '>=16'} + troika-three-text@0.52.4: resolution: {integrity: sha512-V50EwcYGruV5rUZ9F4aNsrytGdKcXKALjEtQXIOBfhVoZU9VAqZNIoGQ3TMiooVqFAbR1w15T+f+8gkzoFzawg==} peerDependencies: @@ -2951,6 +3785,13 @@ packages: peerDependencies: typescript: '>=4.0.0' + ts-morph@26.0.0: + resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==} + + tsconfig-paths@4.2.0: + resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} + engines: {node: '>=6'} + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} @@ -2964,6 +3805,14 @@ packages: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} + type-fest@5.3.1: + resolution: {integrity: sha512-VCn+LMHbd4t6sF3wfU/+HKT63C9OoyrSIf4b+vtWHpt2U7/4InZG467YDNMFMR70DdHjAdpPWmw2lzRdg0Xqqg==} + engines: {node: '>=20'} + + type-is@2.0.1: + resolution: {integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==} + engines: {node: '>= 0.6'} + typescript-eslint@8.50.1: resolution: {integrity: sha512-ytTHO+SoYSbhAH9CrYnMhiLx8To6PSSvqnvXyPUgPETCvB6eBKmTI9w6XMPS3HsBRGkwTVBX+urA8dYQx6bHfQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -2984,9 +3833,16 @@ packages: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} + unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + unrs-resolver@1.11.1: resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==} + until-async@3.0.2: + resolution: {integrity: sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw==} + update-browserslist-db@1.1.4: resolution: {integrity: sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==} hasBin: true @@ -3021,10 +3877,17 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + utility-types@3.11.0: resolution: {integrity: sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==} engines: {node: '>= 4'} + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + vite-hot-client@2.1.0: resolution: {integrity: sha512-7SpgZmU7R+dDnSmvXE1mfDtnHLHQSisdySVR7lO8ceAXvM0otZeuQQ6C8LrS5d/aYyP/QZ0hI0L+dIPrm4YlFQ==} peerDependencies: @@ -3111,6 +3974,10 @@ packages: typescript: optional: true + web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + webgl-constants@1.1.1: resolution: {integrity: sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg==} @@ -3122,25 +3989,66 @@ packages: engines: {node: '>= 8'} hasBin: true + which@4.0.0: + resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==} + engines: {node: ^16.13.0 || >=18.0.0} + hasBin: true + word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} + wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + wsl-utils@0.1.0: resolution: {integrity: sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==} engines: {node: '>=18'} + wsl-utils@0.3.1: + resolution: {integrity: sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==} + engines: {node: '>=20'} + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yargs@17.7.2: + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} + yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + yoctocolors-cjs@2.1.3: + resolution: {integrity: sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==} + engines: {node: '>=18'} + yoctocolors@2.1.2: resolution: {integrity: sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==} engines: {node: '>=18'} + zod-to-json-schema@3.25.1: + resolution: {integrity: sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==} + peerDependencies: + zod: ^3.25 || ^4 + zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} @@ -3179,6 +4087,13 @@ packages: snapshots: + '@antfu/ni@25.0.0': + dependencies: + ansis: 4.2.0 + fzf: 0.5.2 + package-manager-detector: 1.6.0 + tinyexec: 1.0.2 + '@antfu/utils@0.7.10': {} '@babel/code-frame@7.27.1': @@ -3338,6 +4253,14 @@ snapshots: '@babel/core': 7.28.5 '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-transform-modules-commonjs@7.27.1(@babel/core@7.28.5)': + dependencies: + '@babel/core': 7.28.5 + '@babel/helper-module-transforms': 7.28.3(@babel/core@7.28.5) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/plugin-transform-react-jsx-self@7.27.1(@babel/core@7.28.5)': dependencies: '@babel/core': 7.28.5 @@ -3359,6 +4282,17 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/preset-typescript@7.28.5(@babel/core@7.28.5)': + dependencies: + '@babel/core': 7.28.5 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-validator-option': 7.27.1 + '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.28.5) + '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/core@7.28.5) + '@babel/plugin-transform-typescript': 7.28.5(@babel/core@7.28.5) + transitivePeerDependencies: + - supports-color + '@babel/runtime@7.28.4': {} '@babel/template@7.27.2': @@ -3416,12 +4350,29 @@ snapshots: react: 19.2.1 tslib: 2.8.1 - '@embeddr/react-ui@0.1.3(4de4421668c7d731e0065c9633cb4872)': + '@dotenvx/dotenvx@1.51.4': + dependencies: + commander: 11.1.0 + dotenv: 17.2.3 + eciesjs: 0.4.16 + execa: 5.1.1 + fdir: 6.5.0(picomatch@4.0.3) + ignore: 5.3.2 + object-treeify: 1.1.33 + picomatch: 4.0.3 + which: 4.0.0 + + '@ecies/ciphers@0.2.5(@noble/ciphers@1.3.0)': + dependencies: + '@noble/ciphers': 1.3.0 + + '@embeddr/react-ui@0.1.4(16c373490915c1118e2ce5b39846f212)': dependencies: '@radix-ui/react-accordion': 1.2.12(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-aspect-ratio': 1.1.8(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-avatar': 1.1.11(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-checkbox': 1.3.3(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + '@radix-ui/react-context-menu': 2.2.16(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-dialog': 1.1.15(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-dropdown-menu': 2.1.16(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-label': 2.1.8(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) @@ -3436,10 +4387,9 @@ snapshots: '@radix-ui/react-tabs': 1.1.13(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-tooltip': 1.2.8(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) '@radix-ui/react-visually-hidden': 1.2.3(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) - '@react-three/drei': 10.7.7(@react-three/fiber@9.4.2(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0))(@types/react@19.2.7)(@types/three@0.182.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0) - '@react-three/fiber': 9.4.2(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0) - '@tabler/icons-react': 3.36.0(react@19.2.1) - '@tanstack/eslint-config': 0.3.4(@typescript-eslint/utils@8.50.1(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + '@react-three/drei': 10.7.7(@react-three/fiber@9.5.0(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0))(@types/react@19.2.7)(@types/three@0.182.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0) + '@react-three/fiber': 9.5.0(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0) + '@tabler/icons-react': 3.36.1(react@19.2.1) class-variance-authority: 0.7.1 clsx: 2.1.1 lucide-react: 0.562.0(react@19.2.1) @@ -3447,18 +4397,14 @@ snapshots: radix-ui: 1.4.3(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1) react: 19.2.1 react-dom: 19.2.1(react@19.2.1) - react-resizable-panels: 4.0.16(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + react-resizable-panels: 4.2.1(react-dom@19.2.1(react@19.2.1))(react@19.2.1) + shadcn: 3.6.2(hono@4.11.3)(typescript@5.9.3) sonner: 2.0.7(react-dom@19.2.1(react@19.2.1))(react@19.2.1) tailwind-merge: 3.4.0 three: 0.182.0 transitivePeerDependencies: - '@types/react' - '@types/react-dom' - - '@typescript-eslint/utils' - - eslint - - eslint-import-resolver-node - - supports-color - - typescript '@emnapi/core@1.7.1': dependencies: @@ -3617,6 +4563,10 @@ snapshots: '@floating-ui/utils@0.2.10': {} + '@hono/node-server@1.19.7(hono@4.11.3)': + dependencies: + hono: 4.11.3 + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.7': @@ -3628,6 +4578,28 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} + '@inquirer/ansi@1.0.2': {} + + '@inquirer/confirm@5.1.21': + dependencies: + '@inquirer/core': 10.3.2 + '@inquirer/type': 3.0.10 + + '@inquirer/core@10.3.2': + dependencies: + '@inquirer/ansi': 1.0.2 + '@inquirer/figures': 1.0.15 + '@inquirer/type': 3.0.10 + cli-width: 4.1.0 + mute-stream: 2.0.0 + signal-exit: 4.1.0 + wrap-ansi: 6.2.0 + yoctocolors-cjs: 2.1.3 + + '@inquirer/figures@1.0.15': {} + + '@inquirer/type@3.0.10': {} + '@intlify/core-base@9.14.5': dependencies: '@intlify/message-compiler': 9.14.5 @@ -3667,11 +4639,42 @@ snapshots: '@mediapipe/tasks-vision@0.10.17': {} + '@modelcontextprotocol/sdk@1.25.1(hono@4.11.3)(zod@3.25.76)': + dependencies: + '@hono/node-server': 1.19.7(hono@4.11.3) + ajv: 8.17.1 + ajv-formats: 3.0.1(ajv@8.17.1) + content-type: 1.0.5 + cors: 2.8.5 + cross-spawn: 7.0.6 + eventsource: 3.0.7 + eventsource-parser: 3.0.6 + express: 5.2.1 + express-rate-limit: 7.5.1(express@5.2.1) + jose: 6.1.3 + json-schema-typed: 8.0.2 + pkce-challenge: 5.0.1 + raw-body: 3.0.2 + zod: 3.25.76 + zod-to-json-schema: 3.25.1(zod@3.25.76) + transitivePeerDependencies: + - hono + - supports-color + '@monogrid/gainmap-js@3.4.0(three@0.182.0)': dependencies: promise-worker-transferable: 1.0.4 three: 0.182.0 + '@mswjs/interceptors@0.40.0': + dependencies: + '@open-draft/deferred-promise': 2.2.0 + '@open-draft/logger': 0.3.0 + '@open-draft/until': 2.1.0 + is-node-process: 1.2.0 + outvariant: 1.4.3 + strict-event-emitter: 0.5.1 + '@napi-rs/wasm-runtime@0.2.12': dependencies: '@emnapi/core': 1.7.1 @@ -3679,6 +4682,35 @@ snapshots: '@tybys/wasm-util': 0.10.1 optional: true + '@noble/ciphers@1.3.0': {} + + '@noble/curves@1.9.7': + dependencies: + '@noble/hashes': 1.8.0 + + '@noble/hashes@1.8.0': {} + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.20.1 + + '@open-draft/deferred-promise@2.2.0': {} + + '@open-draft/logger@0.3.0': + dependencies: + is-node-process: 1.2.0 + outvariant: 1.4.3 + + '@open-draft/until@2.1.0': {} + '@polka/url@1.0.0-next.29': {} '@primeuix/styled@0.7.4': @@ -4475,12 +5507,12 @@ snapshots: '@radix-ui/rect@1.1.1': {} - '@react-three/drei@10.7.7(@react-three/fiber@9.4.2(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0))(@types/react@19.2.7)(@types/three@0.182.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0)': + '@react-three/drei@10.7.7(@react-three/fiber@9.5.0(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0))(@types/react@19.2.7)(@types/three@0.182.0)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0)': dependencies: '@babel/runtime': 7.28.4 '@mediapipe/tasks-vision': 0.10.17 '@monogrid/gainmap-js': 3.4.0(three@0.182.0) - '@react-three/fiber': 9.4.2(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0) + '@react-three/fiber': 9.5.0(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0) '@use-gesture/react': 10.3.1(react@19.2.1) camera-controls: 3.1.2(three@0.182.0) cross-env: 7.0.3 @@ -4508,18 +5540,16 @@ snapshots: - '@types/three' - immer - '@react-three/fiber@9.4.2(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0)': + '@react-three/fiber@9.5.0(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1)(three@0.182.0)': dependencies: '@babel/runtime': 7.28.4 - '@types/react-reconciler': 0.32.3(@types/react@19.2.7) '@types/webxr': 0.5.24 base64-js: 1.5.1 buffer: 6.0.3 its-fine: 2.0.0(@types/react@19.2.7)(react@19.2.1) react: 19.2.1 - react-reconciler: 0.31.0(react@19.2.1) react-use-measure: 2.1.7(react-dom@19.2.1(react@19.2.1))(react@19.2.1) - scheduler: 0.25.0 + scheduler: 0.27.0 suspend-react: 0.1.3(react@19.2.1) three: 0.182.0 use-sync-external-store: 1.6.0(react@19.2.1) @@ -4620,12 +5650,12 @@ snapshots: estraverse: 5.3.0 picomatch: 4.0.3 - '@tabler/icons-react@3.36.0(react@19.2.1)': + '@tabler/icons-react@3.36.1(react@19.2.1)': dependencies: - '@tabler/icons': 3.36.0 + '@tabler/icons': 3.36.1 react: 19.2.1 - '@tabler/icons@3.36.0': {} + '@tabler/icons@3.36.1': {} '@tailwindcss/node@4.1.17': dependencies: @@ -4711,6 +5741,12 @@ snapshots: - supports-color - typescript + '@ts-morph/common@0.27.0': + dependencies: + fast-glob: 3.3.3 + minimatch: 10.1.1 + path-browserify: 1.0.1 + '@tweenjs/tween.js@23.1.3': {} '@tybys/wasm-util@0.10.1': @@ -4751,16 +5787,14 @@ snapshots: dependencies: '@types/react': 19.2.7 - '@types/react-reconciler@0.32.3(@types/react@19.2.7)': - dependencies: - '@types/react': 19.2.7 - '@types/react@19.2.7': dependencies: csstype: 3.2.3 '@types/stats.js@0.17.4': {} + '@types/statuses@2.0.6': {} + '@types/three@0.182.0': dependencies: '@dimforge/rapier3d-compat': 0.12.0 @@ -5060,12 +6094,23 @@ snapshots: '@webgpu/types@0.1.68': {} + accepts@2.0.0: + dependencies: + mime-types: 3.0.2 + negotiator: 1.0.0 + acorn-jsx@5.3.2(acorn@8.15.0): dependencies: acorn: 8.15.0 acorn@8.15.0: {} + agent-base@7.1.4: {} + + ajv-formats@3.0.1(ajv@8.17.1): + optionalDependencies: + ajv: 8.17.1 + ajv@6.12.6: dependencies: fast-deep-equal: 3.1.3 @@ -5073,16 +6118,33 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 + ajv@8.17.1: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.0 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@5.0.1: {} + + ansi-regex@6.2.2: {} + ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 + ansis@4.2.0: {} + argparse@2.0.1: {} aria-hidden@1.2.6: dependencies: tslib: 2.8.1 + ast-types@0.16.1: + dependencies: + tslib: 2.8.1 + balanced-match@1.0.2: {} base64-js@1.5.1: {} @@ -5095,6 +6157,20 @@ snapshots: birpc@2.8.0: {} + body-parser@2.2.1: + dependencies: + bytes: 3.1.2 + content-type: 1.0.5 + debug: 4.4.3 + http-errors: 2.0.1 + iconv-lite: 0.7.1 + on-finished: 2.4.1 + qs: 6.14.1 + raw-body: 3.0.2 + type-is: 2.0.1 + transitivePeerDependencies: + - supports-color + brace-expansion@1.1.12: dependencies: balanced-match: 1.0.2 @@ -5104,6 +6180,10 @@ snapshots: dependencies: balanced-match: 1.0.2 + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + browserslist@4.28.0: dependencies: baseline-browser-mapping: 2.8.31 @@ -5121,6 +6201,18 @@ snapshots: dependencies: run-applescript: 7.1.0 + bytes@3.1.2: {} + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + callsites@3.1.0: {} camera-controls@3.1.2(three@0.182.0): @@ -5134,28 +6226,74 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 + chalk@5.6.2: {} + class-variance-authority@0.7.1: dependencies: clsx: 2.1.1 + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@2.9.2: {} + + cli-width@4.1.0: {} + + cliui@8.0.1: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + clsx@2.1.1: {} + code-block-writer@13.0.3: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 color-name@1.1.4: {} + commander@11.1.0: {} + + commander@14.0.2: {} + comment-parser@1.4.1: {} concat-map@0.0.1: {} + content-disposition@1.0.1: {} + + content-type@1.0.5: {} + convert-source-map@2.0.0: {} + cookie-signature@1.2.2: {} + + cookie@0.7.2: {} + + cookie@1.1.1: {} + copy-anything@4.0.5: dependencies: is-what: 5.5.0 + cors@2.8.5: + dependencies: + object-assign: 4.1.1 + vary: 1.1.2 + + cosmiconfig@9.0.0(typescript@5.9.3): + dependencies: + env-paths: 2.2.1 + import-fresh: 3.3.1 + js-yaml: 4.1.1 + parse-json: 5.2.0 + optionalDependencies: + typescript: 5.9.3 + cross-env@7.0.3: dependencies: cross-spawn: 7.0.6 @@ -5166,14 +6304,22 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + cssesc@3.0.0: {} + csstype@3.2.3: {} + data-uri-to-buffer@4.0.1: {} + debug@4.4.3: dependencies: ms: 2.1.3 + dedent@1.7.1: {} + deep-is@0.1.4: {} + deepmerge@4.3.1: {} + default-browser-id@5.0.1: {} default-browser@5.4.0: @@ -5183,6 +6329,8 @@ snapshots: define-lazy-prop@3.0.0: {} + depd@2.0.0: {} + detect-gpu@5.0.70: dependencies: webgl-constants: 1.1.1 @@ -5191,19 +6339,58 @@ snapshots: detect-node-es@1.1.0: {} + diff@8.0.2: {} + + dotenv@17.2.3: {} + draco3d@1.5.7: {} - electron-to-chromium@1.5.260: {} + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 - enhanced-resolve@5.18.3: + eciesjs@0.4.16: dependencies: - graceful-fs: 4.2.11 - tapable: 2.3.0 + '@ecies/ciphers': 0.2.5(@noble/ciphers@1.3.0) + '@noble/ciphers': 1.3.0 + '@noble/curves': 1.9.7 + '@noble/hashes': 1.8.0 + + ee-first@1.1.1: {} + + electron-to-chromium@1.5.260: {} + + emoji-regex@10.6.0: {} + + emoji-regex@8.0.0: {} + + encodeurl@2.0.0: {} + + enhanced-resolve@5.18.3: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.0 entities@4.5.0: {} + env-paths@2.2.1: {} + + error-ex@1.3.4: + dependencies: + is-arrayish: 0.2.1 + error-stack-parser-es@0.1.5: {} + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-object-atoms@1.1.1: + dependencies: + es-errors: 1.3.0 + esbuild@0.25.12: optionalDependencies: '@esbuild/aix-ppc64': 0.25.12 @@ -5235,6 +6422,8 @@ snapshots: escalade@3.2.0: {} + escape-html@1.0.3: {} + escape-string-regexp@4.0.0: {} eslint-compat-utils@0.5.1(eslint@9.39.2(jiti@2.6.1)): @@ -5344,6 +6533,8 @@ snapshots: acorn-jsx: 5.3.2(acorn@8.15.0) eslint-visitor-keys: 4.2.1 + esprima@4.0.1: {} + esquery@1.6.0: dependencies: estraverse: 5.3.0 @@ -5358,6 +6549,26 @@ snapshots: esutils@2.0.3: {} + etag@1.8.1: {} + + eventsource-parser@3.0.6: {} + + eventsource@3.0.7: + dependencies: + eventsource-parser: 3.0.6 + + execa@5.1.1: + dependencies: + cross-spawn: 7.0.6 + get-stream: 6.0.1 + human-signals: 2.1.0 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.7 + strip-final-newline: 2.0.0 + execa@9.6.0: dependencies: '@sindresorhus/merge-streams': 4.0.0 @@ -5373,16 +6584,72 @@ snapshots: strip-final-newline: 4.0.0 yoctocolors: 2.1.2 + express-rate-limit@7.5.1(express@5.2.1): + dependencies: + express: 5.2.1 + + express@5.2.1: + dependencies: + accepts: 2.0.0 + body-parser: 2.2.1 + content-disposition: 1.0.1 + content-type: 1.0.5 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.3 + depd: 2.0.0 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 2.1.1 + fresh: 2.0.0 + http-errors: 2.0.1 + merge-descriptors: 2.0.0 + mime-types: 3.0.2 + on-finished: 2.4.1 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.7 + qs: 6.14.1 + range-parser: 1.2.1 + router: 2.2.0 + send: 1.2.1 + serve-static: 2.2.1 + statuses: 2.0.2 + type-is: 2.0.1 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + fast-deep-equal@3.1.3: {} + fast-glob@3.3.3: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + fast-json-stable-stringify@2.1.0: {} fast-levenshtein@2.0.6: {} + fast-uri@3.1.0: {} + + fastq@1.20.1: + dependencies: + reusify: 1.1.0 + fdir@6.5.0(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 + fetch-blob@3.2.0: + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.3.3 + fflate@0.6.10: {} fflate@0.8.2: {} @@ -5395,6 +6662,21 @@ snapshots: dependencies: flat-cache: 4.0.1 + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + finalhandler@2.1.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + escape-html: 1.0.3 + on-finished: 2.4.1 + parseurl: 1.3.3 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + find-up@5.0.0: dependencies: locate-path: 6.0.0 @@ -5407,6 +6689,14 @@ snapshots: flatted@3.3.3: {} + formdata-polyfill@4.0.10: + dependencies: + fetch-blob: 3.2.0 + + forwarded@0.2.0: {} + + fresh@2.0.0: {} + fs-extra@11.3.2: dependencies: graceful-fs: 4.2.11 @@ -5416,10 +6706,42 @@ snapshots: fsevents@2.3.3: optional: true + function-bind@1.1.2: {} + + fuzzysort@3.1.0: {} + + fzf@0.5.2: {} + gensync@1.0.0-beta.2: {} + get-caller-file@2.0.5: {} + + get-east-asian-width@1.4.0: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + math-intrinsics: 1.1.0 + get-nonce@1.0.1: {} + get-own-enumerable-keys@1.0.0: {} + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.1 + + get-stream@6.0.1: {} + get-stream@9.0.1: dependencies: '@sec-ant/readable-stream': 0.4.1 @@ -5429,6 +6751,10 @@ snapshots: dependencies: resolve-pkg-maps: 1.0.0 + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + glob-parent@6.0.2: dependencies: is-glob: 4.0.3 @@ -5443,16 +6769,51 @@ snapshots: glsl-noise@0.0.0: {} + gopd@1.2.0: {} + graceful-fs@4.2.11: {} + graphql@16.12.0: {} + has-flag@4.0.0: {} + has-symbols@1.1.0: {} + + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + + headers-polyfill@4.0.3: {} + hls.js@1.6.15: {} + hono@4.11.3: {} + hookable@5.5.3: {} + http-errors@2.0.1: + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.2 + toidentifier: 1.0.1 + + https-proxy-agent@7.0.6: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + human-signals@2.1.0: {} + human-signals@8.0.1: {} + iconv-lite@0.7.1: + dependencies: + safer-buffer: 2.1.2 + ieee754@1.2.1: {} ignore@5.3.2: {} @@ -5468,24 +6829,50 @@ snapshots: imurmurhash@0.1.4: {} + inherits@2.0.4: {} + + ipaddr.js@1.9.1: {} + + is-arrayish@0.2.1: {} + is-docker@3.0.0: {} is-extglob@2.1.1: {} + is-fullwidth-code-point@3.0.0: {} + is-glob@4.0.3: dependencies: is-extglob: 2.1.1 + is-in-ssh@1.0.0: {} + is-inside-container@1.0.0: dependencies: is-docker: 3.0.0 + is-interactive@2.0.0: {} + + is-node-process@1.2.0: {} + + is-number@7.0.0: {} + + is-obj@3.0.0: {} + is-plain-obj@4.1.0: {} is-promise@2.2.2: {} + is-promise@4.0.0: {} + + is-regexp@3.1.0: {} + + is-stream@2.0.1: {} + is-stream@4.0.1: {} + is-unicode-supported@1.3.0: {} + is-unicode-supported@2.1.0: {} is-what@5.5.0: {} @@ -5496,6 +6883,8 @@ snapshots: isexe@2.0.0: {} + isexe@3.1.1: {} + its-fine@2.0.0(@types/react@19.2.7)(react@19.2.1): dependencies: '@types/react-reconciler': 0.28.9(@types/react@19.2.7) @@ -5505,6 +6894,8 @@ snapshots: jiti@2.6.1: {} + jose@6.1.3: {} + js-tokens@4.0.0: {} js-yaml@4.1.1: @@ -5515,8 +6906,14 @@ snapshots: json-buffer@3.0.1: {} + json-parse-even-better-errors@2.3.1: {} + json-schema-traverse@0.4.1: {} + json-schema-traverse@1.0.0: {} + + json-schema-typed@8.0.2: {} + json-stable-stringify-without-jsonify@1.0.1: {} json5@2.2.3: {} @@ -5531,6 +6928,10 @@ snapshots: dependencies: json-buffer: 3.0.1 + kleur@3.0.3: {} + + kleur@4.1.5: {} + kolorist@1.8.0: {} levn@0.4.1: @@ -5591,12 +6992,19 @@ snapshots: lightningcss-win32-arm64-msvc: 1.30.2 lightningcss-win32-x64-msvc: 1.30.2 + lines-and-columns@1.2.4: {} + locate-path@6.0.0: dependencies: p-locate: 5.0.0 lodash.merge@4.6.2: {} + log-symbols@6.0.0: + dependencies: + chalk: 5.6.2 + is-unicode-supported: 1.3.0 + lru-cache@5.1.1: dependencies: yallist: 3.1.1 @@ -5618,12 +7026,37 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 + math-intrinsics@1.1.0: {} + + media-typer@1.1.0: {} + + merge-descriptors@2.0.0: {} + + merge-stream@2.0.0: {} + + merge2@1.4.1: {} + meshline@3.3.1(three@0.182.0): dependencies: three: 0.182.0 meshoptimizer@0.22.0: {} + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + mime-db@1.54.0: {} + + mime-types@3.0.2: + dependencies: + mime-db: 1.54.0 + + mimic-fn@2.1.0: {} + + mimic-function@5.0.1: {} + minimatch@10.1.1: dependencies: '@isaacs/brace-expansion': 5.0.0 @@ -5636,12 +7069,41 @@ snapshots: dependencies: brace-expansion: 2.0.2 + minimist@1.2.8: {} + mitt@3.0.1: {} mrmime@2.0.1: {} ms@2.1.3: {} + msw@2.12.7(typescript@5.9.3): + dependencies: + '@inquirer/confirm': 5.1.21 + '@mswjs/interceptors': 0.40.0 + '@open-draft/deferred-promise': 2.2.0 + '@types/statuses': 2.0.6 + cookie: 1.1.1 + graphql: 16.12.0 + headers-polyfill: 4.0.3 + is-node-process: 1.2.0 + outvariant: 1.4.3 + path-to-regexp: 6.3.0 + picocolors: 1.1.1 + rettime: 0.7.0 + statuses: 2.0.2 + strict-event-emitter: 0.5.1 + tough-cookie: 6.0.0 + type-fest: 5.3.1 + until-async: 3.0.2 + yargs: 17.7.2 + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - '@types/node' + + mute-stream@2.0.0: {} + nanoid@3.3.11: {} nanoid@5.1.6: {} @@ -5650,18 +7112,54 @@ snapshots: natural-compare@1.4.0: {} + negotiator@1.0.0: {} + next-themes@0.4.6(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: react: 19.2.1 react-dom: 19.2.1(react@19.2.1) + node-domexception@1.0.0: {} + + node-fetch@3.3.2: + dependencies: + data-uri-to-buffer: 4.0.1 + fetch-blob: 3.2.0 + formdata-polyfill: 4.0.10 + node-releases@2.0.27: {} + npm-run-path@4.0.1: + dependencies: + path-key: 3.1.1 + npm-run-path@6.0.0: dependencies: path-key: 4.0.0 unicorn-magic: 0.3.0 + object-assign@4.1.1: {} + + object-inspect@1.13.4: {} + + object-treeify@1.1.33: {} + + on-finished@2.4.1: + dependencies: + ee-first: 1.1.1 + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + onetime@5.1.2: + dependencies: + mimic-fn: 2.1.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + open@10.2.0: dependencies: default-browser: 5.4.0 @@ -5669,6 +7167,15 @@ snapshots: is-inside-container: 1.0.0 wsl-utils: 0.1.0 + open@11.0.0: + dependencies: + default-browser: 5.4.0 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.1.0 + wsl-utils: 0.3.1 + optionator@0.9.4: dependencies: deep-is: 0.1.4 @@ -5678,6 +7185,20 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 + ora@8.2.0: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 2.9.2 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 6.0.0 + stdin-discarder: 0.2.2 + string-width: 7.2.0 + strip-ansi: 7.1.2 + + outvariant@1.4.3: {} + p-limit@3.1.0: dependencies: yocto-queue: 0.1.0 @@ -5686,26 +7207,52 @@ snapshots: dependencies: p-limit: 3.1.0 + package-manager-detector@1.6.0: {} + parent-module@1.0.1: dependencies: callsites: 3.1.0 + parse-json@5.2.0: + dependencies: + '@babel/code-frame': 7.27.1 + error-ex: 1.3.4 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + parse-ms@4.0.0: {} + parseurl@1.3.3: {} + + path-browserify@1.0.1: {} + path-exists@4.0.0: {} path-key@3.1.1: {} path-key@4.0.0: {} + path-to-regexp@6.3.0: {} + + path-to-regexp@8.3.0: {} + pathe@2.0.3: {} perfect-debounce@1.0.0: {} picocolors@1.1.1: {} + picomatch@2.3.1: {} + picomatch@4.0.3: {} + pkce-challenge@5.0.1: {} + + postcss-selector-parser@7.1.1: + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + postcss@8.5.6: dependencies: nanoid: 3.3.11 @@ -5714,6 +7261,8 @@ snapshots: potpack@1.0.2: {} + powershell-utils@0.1.0: {} + prelude-ls@1.2.1: {} pretty-ms@9.3.0: @@ -5735,8 +7284,24 @@ snapshots: is-promise: 2.2.2 lie: 3.3.0 + prompts@2.4.2: + dependencies: + kleur: 3.0.3 + sisteransi: 1.0.5 + + proxy-addr@2.0.7: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + punycode@2.3.1: {} + qs@6.14.1: + dependencies: + side-channel: 1.1.0 + + queue-microtask@1.2.3: {} + radix-ui@1.4.3(@types/react@19.2.7)(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: '@radix-ui/primitive': 1.1.3 @@ -5799,15 +7364,19 @@ snapshots: optionalDependencies: '@types/react': 19.2.7 - react-dom@19.2.1(react@19.2.1): + range-parser@1.2.1: {} + + raw-body@3.0.2: dependencies: - react: 19.2.1 - scheduler: 0.27.0 + bytes: 3.1.2 + http-errors: 2.0.1 + iconv-lite: 0.7.1 + unpipe: 1.0.0 - react-reconciler@0.31.0(react@19.2.1): + react-dom@19.2.1(react@19.2.1): dependencies: react: 19.2.1 - scheduler: 0.25.0 + scheduler: 0.27.0 react-refresh@0.18.0: {} @@ -5830,7 +7399,7 @@ snapshots: optionalDependencies: '@types/react': 19.2.7 - react-resizable-panels@4.0.16(react-dom@19.2.1(react@19.2.1))(react@19.2.1): + react-resizable-panels@4.2.1(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: react: 19.2.1 react-dom: 19.2.1(react@19.2.1) @@ -5851,12 +7420,31 @@ snapshots: react@19.2.1: {} + recast@0.23.11: + dependencies: + ast-types: 0.16.1 + esprima: 4.0.1 + source-map: 0.6.1 + tiny-invariant: 1.3.3 + tslib: 2.8.1 + + require-directory@2.1.1: {} + require-from-string@2.0.2: {} resolve-from@4.0.0: {} resolve-pkg-maps@1.0.0: {} + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rettime@0.7.0: {} + + reusify@1.1.0: {} + rfdc@1.4.1: {} rollup@4.53.3: @@ -5887,9 +7475,23 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.53.3 fsevents: 2.3.3 + router@2.2.0: + dependencies: + debug: 4.4.3 + depd: 2.0.0 + is-promise: 4.0.0 + parseurl: 1.3.3 + path-to-regexp: 8.3.0 + transitivePeerDependencies: + - supports-color + run-applescript@7.1.0: {} - scheduler@0.25.0: {} + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safer-buffer@2.1.2: {} scheduler@0.27.0: {} @@ -5897,12 +7499,111 @@ snapshots: semver@7.7.3: {} + send@1.2.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 2.0.0 + http-errors: 2.0.1 + mime-types: 3.0.2 + ms: 2.1.3 + on-finished: 2.4.1 + range-parser: 1.2.1 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + serve-static@2.2.1: + dependencies: + encodeurl: 2.0.0 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.1 + transitivePeerDependencies: + - supports-color + + setprototypeof@1.2.0: {} + + shadcn@3.6.2(hono@4.11.3)(typescript@5.9.3): + dependencies: + '@antfu/ni': 25.0.0 + '@babel/core': 7.28.5 + '@babel/parser': 7.28.5 + '@babel/plugin-transform-typescript': 7.28.5(@babel/core@7.28.5) + '@babel/preset-typescript': 7.28.5(@babel/core@7.28.5) + '@dotenvx/dotenvx': 1.51.4 + '@modelcontextprotocol/sdk': 1.25.1(hono@4.11.3)(zod@3.25.76) + browserslist: 4.28.0 + commander: 14.0.2 + cosmiconfig: 9.0.0(typescript@5.9.3) + dedent: 1.7.1 + deepmerge: 4.3.1 + diff: 8.0.2 + execa: 9.6.0 + fast-glob: 3.3.3 + fs-extra: 11.3.2 + fuzzysort: 3.1.0 + https-proxy-agent: 7.0.6 + kleur: 4.1.5 + msw: 2.12.7(typescript@5.9.3) + node-fetch: 3.3.2 + open: 11.0.0 + ora: 8.2.0 + postcss: 8.5.6 + postcss-selector-parser: 7.1.1 + prompts: 2.4.2 + recast: 0.23.11 + stringify-object: 5.0.0 + ts-morph: 26.0.0 + tsconfig-paths: 4.2.0 + zod: 3.25.76 + zod-to-json-schema: 3.25.1(zod@3.25.76) + transitivePeerDependencies: + - '@cfworker/json-schema' + - '@types/node' + - babel-plugin-macros + - hono + - supports-color + - typescript + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 shebang-regex@3.0.0: {} + side-channel-list@1.0.0: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + + side-channel-map@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + + side-channel-weakmap@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + + side-channel@1.1.0: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.0 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + + signal-exit@3.0.7: {} + signal-exit@4.1.0: {} sirv@3.0.2: @@ -5911,6 +7612,8 @@ snapshots: mrmime: 2.0.1 totalist: 3.0.1 + sisteransi@1.0.5: {} + sonner@2.0.7(react-dom@19.2.1(react@19.2.1))(react@19.2.1): dependencies: react: 19.2.1 @@ -5918,6 +7621,8 @@ snapshots: source-map-js@1.2.1: {} + source-map@0.6.1: {} + speakingurl@14.0.1: {} stable-hash-x@0.2.0: {} @@ -5929,6 +7634,42 @@ snapshots: stats.js@0.17.0: {} + statuses@2.0.2: {} + + stdin-discarder@0.2.2: {} + + strict-event-emitter@0.5.1: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@7.2.0: + dependencies: + emoji-regex: 10.6.0 + get-east-asian-width: 1.4.0 + strip-ansi: 7.1.2 + + stringify-object@5.0.0: + dependencies: + get-own-enumerable-keys: 1.0.0 + is-obj: 3.0.0 + is-regexp: 3.1.0 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.1.2: + dependencies: + ansi-regex: 6.2.2 + + strip-bom@3.0.0: {} + + strip-final-newline@2.0.0: {} + strip-final-newline@4.0.0: {} strip-json-comments@3.1.1: {} @@ -5945,6 +7686,8 @@ snapshots: dependencies: react: 19.2.1 + tagged-tag@1.0.0: {} + tailwind-merge@3.4.0: {} tailwindcss@4.1.17: {} @@ -5967,13 +7710,33 @@ snapshots: three@0.182.0: {} + tiny-invariant@1.3.3: {} + + tinyexec@1.0.2: {} + tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 + tldts-core@7.0.19: {} + + tldts@7.0.19: + dependencies: + tldts-core: 7.0.19 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + toidentifier@1.0.1: {} + totalist@3.0.1: {} + tough-cookie@6.0.0: + dependencies: + tldts: 7.0.19 + troika-three-text@0.52.4(three@0.182.0): dependencies: bidi-js: 1.0.3 @@ -5997,6 +7760,17 @@ snapshots: picomatch: 4.0.3 typescript: 5.9.3 + ts-morph@26.0.0: + dependencies: + '@ts-morph/common': 0.27.0 + code-block-writer: 13.0.3 + + tsconfig-paths@4.2.0: + dependencies: + json5: 2.2.3 + minimist: 1.2.8 + strip-bom: 3.0.0 + tslib@2.8.1: {} tunnel-rat@0.1.2(@types/react@19.2.7)(react@19.2.1): @@ -6013,6 +7787,16 @@ snapshots: dependencies: prelude-ls: 1.2.1 + type-fest@5.3.1: + dependencies: + tagged-tag: 1.0.0 + + type-is@2.0.1: + dependencies: + content-type: 1.0.5 + media-typer: 1.1.0 + mime-types: 3.0.2 + typescript-eslint@8.50.1(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3): dependencies: '@typescript-eslint/eslint-plugin': 8.50.1(@typescript-eslint/parser@8.50.1(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) @@ -6030,6 +7814,8 @@ snapshots: universalify@2.0.1: {} + unpipe@1.0.0: {} + unrs-resolver@1.11.1: dependencies: napi-postinstall: 0.3.4 @@ -6054,6 +7840,8 @@ snapshots: '@unrs/resolver-binding-win32-ia32-msvc': 1.11.1 '@unrs/resolver-binding-win32-x64-msvc': 1.11.1 + until-async@3.0.2: {} + update-browserslist-db@1.1.4(browserslist@4.28.0): dependencies: browserslist: 4.28.0 @@ -6083,8 +7871,12 @@ snapshots: dependencies: react: 19.2.1 + util-deprecate@1.0.2: {} + utility-types@3.11.0: {} + vary@1.1.2: {} + vite-hot-client@2.1.0(vite@6.4.1(jiti@2.6.1)(lightningcss@1.30.2)): dependencies: vite: 6.4.1(jiti@2.6.1)(lightningcss@1.30.2) @@ -6178,6 +7970,8 @@ snapshots: optionalDependencies: typescript: 5.9.3 + web-streams-polyfill@3.3.3: {} + webgl-constants@1.1.1: {} webgl-sdf-generator@1.1.1: {} @@ -6186,18 +7980,61 @@ snapshots: dependencies: isexe: 2.0.0 + which@4.0.0: + dependencies: + isexe: 3.1.1 + word-wrap@1.2.5: {} + wrap-ansi@6.2.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrappy@1.0.2: {} + wsl-utils@0.1.0: dependencies: is-wsl: 3.1.0 + wsl-utils@0.3.1: + dependencies: + is-wsl: 3.1.0 + powershell-utils: 0.1.0 + + y18n@5.0.8: {} + yallist@3.1.1: {} + yargs-parser@21.1.1: {} + + yargs@17.7.2: + dependencies: + cliui: 8.0.1 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + yocto-queue@0.1.0: {} + yoctocolors-cjs@2.1.3: {} + yoctocolors@2.1.2: {} + zod-to-json-schema@3.25.1(zod@3.25.76): + dependencies: + zod: 3.25.76 + zod@3.25.76: {} zustand@4.5.7(@types/react@19.2.7)(react@19.2.1): diff --git a/pyproject.toml b/pyproject.toml index 7cadcaa..6e9e539 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [project] name = "embeddr-extension" description = "Embeddr ComfyUI Extension" -version = "1.1.1" +version = "1.2.0" license = { file = "LICENSE.md" } dependencies = [] requires-python = ">=3.8" diff --git a/tsconfig.json b/tsconfig.json index 7d7a8e8..e2eef02 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,17 @@ { - "compilerOptions": { - "target": "ES2022", - "useDefineForClassFields": true, - "jsx": "react-jsx", + "compilerOptions": { + "target": "ES2022", + "useDefineForClassFields": true, + "jsx": "react-jsx", - "module": "ESNext", - "resolveJsonModule": true, - "paths": { - "@components/*": ["./ui/components/*"], - "@hooks/*": ["./ui/hooks/*"], - "@types": ["./ui/types.ts"] - }, - "typeRoots": ["src/types", "node_modules/@types"] + "module": "ESNext", + "resolveJsonModule": true, + "paths": { + "@components/*": ["./ui/components/*"], + "@hooks/*": ["./ui/hooks/*"], + "@types": ["./ui/types.ts"] }, - "exclude": ["node_modules", "dist", "js"] + "typeRoots": ["src/types", "node_modules/@types"] + }, + "exclude": ["node_modules", "dist", "js", "**/*.test.ts", "**/*.test.tsx"] } diff --git a/ui/components/GlobalDialog.tsx b/ui/components/GlobalDialog.tsx new file mode 100644 index 0000000..68fd9fb --- /dev/null +++ b/ui/components/GlobalDialog.tsx @@ -0,0 +1,121 @@ +import React, { useEffect, useState } from "react"; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, +} from "@embeddr/react-ui/components/dialog"; +import { ExploreTab } from "./tabs/ExploreTab"; +import { useEmbeddrApi } from "../hooks/useEmbeddrApi"; +// @ts-ignore +import { app } from "../../../scripts/app.js"; + +export function GlobalDialog() { + const [isOpen, setIsOpen] = useState(false); + const [targetNodeId, setTargetNodeId] = useState(null); + + const api = useEmbeddrApi(); + + useEffect(() => { + const handleOpen = (e: Event) => { + const customEvent = e as CustomEvent; + setTargetNodeId(customEvent.detail.nodeId); + setIsOpen(true); + + // Trigger a fetch if needed + if (api.configLoaded) { + api.fetchImages(true); + } + }; + + window.addEventListener("embeddr-open-dialog", handleOpen); + return () => window.removeEventListener("embeddr-open-dialog", handleOpen); + }, [api.configLoaded]); + + // Theme observer for portals + useEffect(() => { + const applyTheme = () => { + const portals = document.querySelectorAll( + "[data-radix-portal], [data-slot='dialog-content'], [data-slot='dialog-overlay'], [data-slot='select-content'], [data-slot='select-viewport'], [data-slot='popover-content'], [data-slot='dropdown-menu-content']" + ); + + const isDark = api.theme === "dark"; + + portals.forEach((portal) => { + if (!portal.classList.contains("tailwind")) { + portal.classList.add("tailwind"); + } + if (isDark) { + portal.classList.add("dark"); + } else { + portal.classList.remove("dark"); + } + }); + }; + + const observer = new MutationObserver((mutations) => { + mutations.forEach((mutation) => { + if (mutation.type === "childList") { + applyTheme(); + } + }); + }); + + observer.observe(document.body, { childList: true, subtree: true }); + + // Also apply immediately + applyTheme(); + + return () => observer.disconnect(); + }, [api.theme]); + + const handleSelect = (image: any) => { + if (targetNodeId !== null) { + const node = app.graph.getNodeById(targetNodeId); + if (node) { + // Assuming the first widget is the image_id input + // We should check the widget name or type + const idWidget = node.widgets?.find((w: any) => w.name === "image_id"); + if (idWidget) { + idWidget.value = image.id.toString(); + if (idWidget.callback) { + idWidget.callback(idWidget.value); + } + } else { + // Fallback to first widget if name doesn't match + if (node.widgets && node.widgets[0]) { + node.widgets[0].value = image.id.toString(); + } + } + + // Also update image_url if it exists (for preview/compatibility) + const urlWidget = node.widgets?.find( + (w: any) => w.name === "image_url" + ); + if (urlWidget) { + urlWidget.value = image.image_url; + } + + app.graph.setDirtyCanvas(true, true); + } + } + setIsOpen(false); + }; + + return ( + + + + Select Image + +
+ +
+
+
+ ); +} diff --git a/ui/components/panels/EmbeddrPanel.tsx b/ui/components/panels/EmbeddrPanel.tsx index 6eddcb0..06c1433 100644 --- a/ui/components/panels/EmbeddrPanel.tsx +++ b/ui/components/panels/EmbeddrPanel.tsx @@ -1,225 +1,143 @@ import React, { useEffect, useState } from "react"; +import { cn } from "@embeddr/react-ui"; import { - Tabs, - TabsContent, - TabsList, - TabsTrigger, + Tabs, + TabsContent, + TabsList, + TabsTrigger, } from "@embeddr/react-ui/components/tabs"; -import { - ResizableHandle, - ResizablePanel, - ResizablePanelGroup, -} from "@embeddr/react-ui/components/resizable"; -import { GlobeIcon, Search, Settings } from "lucide-react"; +import { useExternalNav } from "@embeddr/react-ui"; +import { GlobeIcon, MessageCircleIcon, Search, Settings } from "lucide-react"; import { Button } from "@embeddr/react-ui/components/button"; -import { SettingsForm } from "@components/ui/SettingsForm"; -import { ImageGrid } from "@components/ui/ImageGrid"; import { useEmbeddrApi } from "@hooks/useEmbeddrApi"; -import { useNodeScanner } from "@hooks/useNodeScanner"; -// @ts-ignore -import { app } from "../../../../scripts/app.js"; -import { ImageDetails } from "./ImageDetails"; -import { SearchBar } from "./SearchBar"; -import type { PromptImageRead } from "@hooks/useEmbeddrApi"; +import { SettingsForm } from "../tabs/SettingsForm"; +import { ExploreTab } from "../tabs/ExploreTab"; export default function EmbeddrPanel() { - const { - endpoint, - setEndpoint, - mode, - setMode, - gridSize, - setGridSize, - images, - loading, - hasMore, - fetchImages, - saveSettings, - configLoaded, - gridPreviewContain, - setGridPreviewContain, - libraries, - similarImageId, - setSimilarImageId, - theme, - setTheme, - } = useEmbeddrApi(); + const { + endpoint, + setEndpoint, + mode, + setMode, + gridSize, + setGridSize, + images, + loading, + hasMore, + fetchImages, + saveSettings, + configLoaded, + gridPreviewContain, + setGridPreviewContain, + libraries, + similarImageId, + setSimilarImageId, + theme, + setTheme, + } = useEmbeddrApi(); - const { targetNodes, handleLoadIntoNode, handleUseImage } = - useNodeScanner(); + const { openExternal } = useExternalNav(); - const [activeTab, setActiveTab] = useState("explore"); - const [searchQuery, setSearchQuery] = useState(""); - const [viewMode, setViewMode] = useState<"all" | "mine">("all"); - const [selectedLibrary, setSelectedLibrary] = useState("all"); - const [selectedImage, setSelectedImage] = useState( - null - ); + const [activeTab, setActiveTab] = useState("explore"); - // Initial fetch - useEffect(() => { - if (configLoaded) { - const libId = - selectedLibrary === "all" ? null : parseInt(selectedLibrary); - fetchImages(true, searchQuery, viewMode, libId, similarImageId); - } - }, [viewMode, configLoaded, selectedLibrary, mode, similarImageId]); // Re-fetch when view mode changes or config is loaded + const [searchQuery] = useState(""); + const [viewMode] = useState<"all" | "mine">("all"); + const [selectedLibrary] = useState("all"); - const handleSearch = (e: React.FormEvent) => { - e.preventDefault(); - const libId = - selectedLibrary === "all" ? null : parseInt(selectedLibrary); - fetchImages(true, searchQuery, viewMode, libId, similarImageId); - }; + // Initial fetch and refetch on change + useEffect(() => { + if (configLoaded) { + const libId = + selectedLibrary === "all" ? null : parseInt(selectedLibrary); + fetchImages(true, searchQuery, viewMode, libId, similarImageId); + } + }, [viewMode, configLoaded, selectedLibrary, mode, similarImageId]); - const handleSave = async () => { - const success = await saveSettings( - endpoint, - mode, - gridSize, - gridPreviewContain - ); - if (success) { - const libId = - selectedLibrary === "all" ? null : parseInt(selectedLibrary); - fetchImages(true, searchQuery, viewMode, libId, similarImageId); - } - }; + const handleSave = async () => { + await saveSettings(endpoint, mode, gridSize, gridPreviewContain); + }; - return ( -
- + +
+
+ + + + + + + + + - -
- - {activeTab === "explore" && ( - - )} -
+ + + +
+ - - {configLoaded ? ( - - - { - const libId = - selectedLibrary === "all" - ? null - : parseInt(selectedLibrary); - fetchImages( - false, - searchQuery, - viewMode, - libId, - similarImageId - ); - }} - onSelect={setSelectedImage} - onSimilarSearch={setSimilarImageId} - selectedId={selectedImage?.id} - /> - - {selectedImage && ( - <> - - - - - - )} - - ) : ( -
- Loading configuration... -
- )} -
+ + + - - - - - - ); + + + + + + ); } diff --git a/ui/components/panels/ImageDetails.tsx b/ui/components/panels/ImageDetails.tsx index 7b80487..ab15ac6 100644 --- a/ui/components/panels/ImageDetails.tsx +++ b/ui/components/panels/ImageDetails.tsx @@ -6,105 +6,97 @@ import type { PromptImageRead } from "@hooks/useEmbeddrApi"; import type { TargetNode } from "@hooks/useNodeScanner"; interface ImageDetailsProps { - selectedImage: PromptImageRead; - targetNodes: Array; - onLoadIntoNode: (nodeId: number, imageUrl: string) => void; - onUseImage: (imageUrl: string) => void; + selectedImage: PromptImageRead; + targetNodes: Array; + onLoadIntoNode: (nodeId: number, imageUrl: string) => void; + onUseImage: (imageUrl: string) => void; } export function ImageDetails({ - selectedImage, - targetNodes, - onLoadIntoNode, - onUseImage, + selectedImage, + targetNodes, + onLoadIntoNode, + onUseImage, }: ImageDetailsProps) { - const [copied, setCopied] = useState(false); + const [copied, setCopied] = useState(false); - const handleCopyPrompt = () => { - if (selectedImage?.prompt) { - navigator.clipboard.writeText(selectedImage.prompt); - setCopied(true); - setTimeout(() => setCopied(false), 2000); - } - }; + const handleCopyPrompt = () => { + if (selectedImage?.prompt) { + navigator.clipboard.writeText(selectedImage.prompt); + setCopied(true); + setTimeout(() => setCopied(false), 2000); + } + }; - return ( -
- -
-
- Selected + return ( +
+ +
+
+ Selected - {/* Overlay Controls */} -
- {/* Left: New Node / Smart Use */} - + {/* Overlay Controls */} +
+ {/* Left: New Node / Smart Use */} + - {/* Right: Actions & Nodes */} -
- {/* Copy Prompt */} - {selectedImage.prompt && ( - - )} + {/* Right: Actions & Nodes */} +
+ {/* Copy Prompt */} + {selectedImage.prompt && ( + + )} - {/* Target Nodes */} - {targetNodes.map((node) => ( - - ))} -
-
-
+ {/* Target Nodes */} + {targetNodes.map((node) => ( + + ))} +
+
+
- {selectedImage.prompt && ( -
- {selectedImage.prompt} -
- )} -
- + {selectedImage.prompt && ( +
+ {selectedImage.prompt} +
+ )}
- ); + +
+ ); } diff --git a/ui/components/panels/SearchBar.tsx b/ui/components/panels/SearchBar.tsx deleted file mode 100644 index 395334c..0000000 --- a/ui/components/panels/SearchBar.tsx +++ /dev/null @@ -1,113 +0,0 @@ -import React from "react"; -import { Input } from "@embeddr/react-ui/components/input"; -import { Button } from "@embeddr/react-ui/components/button"; -import { Globe, ScanEyeIcon, User } from "lucide-react"; -import type { ApiMode, LibraryPath } from "@types"; - -interface SearchBarProps { - searchQuery: string; - setSearchQuery: (query: string) => void; - onSearch: (e: React.FormEvent) => void; - loading: boolean; - similarImageId: number | null; - setSimilarImageId: (id: number | null) => void; - mode: ApiMode; - selectedLibrary: string; - setSelectedLibrary: (lib: string) => void; - libraries: Array; - viewMode: "all" | "mine"; - setViewMode: (mode: "all" | "mine") => void; -} - -export function SearchBar({ - searchQuery, - setSearchQuery, - onSearch, - loading, - similarImageId, - setSimilarImageId, - mode, - selectedLibrary, - setSelectedLibrary, - libraries, - viewMode, - setViewMode, -}: SearchBarProps) { - return ( -
-
- setSearchQuery(e.target.value)} - className="h-8" - /> - {loading ? ( - - ) : ( - - )} -
- - {similarImageId && ( -
- - {" "} - Showing similar images - - -
- )} - -
- {mode === "local" ? ( - - ) : ( - <> - - - - )} -
-
- ); -} diff --git a/ui/components/tabs/ExploreTab.tsx b/ui/components/tabs/ExploreTab.tsx new file mode 100644 index 0000000..73a1218 --- /dev/null +++ b/ui/components/tabs/ExploreTab.tsx @@ -0,0 +1,258 @@ +import React, { useEffect, useRef, useState } from "react"; +import { useImageDialog } from "@embeddr/react-ui"; +import { + ResizableHandle, + ResizablePanel, + ResizablePanelGroup, +} from "@embeddr/react-ui/components/resizable"; +import { Search, Grid3X3 } from "lucide-react"; +import { Slider } from "@embeddr/react-ui/components/slider"; +import { ImageGrid } from "@components/ui/ImageGrid"; +import { useNodeScanner } from "@hooks/useNodeScanner"; +import { ImageDetails } from "../panels/ImageDetails"; +import { SearchBar } from "../ui/SearchBar"; +import type { + ApiMode, + LibraryPath, + PromptImageRead, +} from "@hooks/useEmbeddrApi"; + +interface ExploreTabProps { + images: Array; + loading: boolean; + hasMore: boolean; + fetchImages: ( + reset?: boolean, + query?: string, + viewMode?: "all" | "mine", + libId?: number | null, + similarId?: number | null + ) => Promise; + libraries: Array; + similarImageId: number | null; + setSimilarImageId: (id: number | null) => void; + mode: ApiMode; + gridSize: number; + setGridSize?: (size: number) => void; + gridPreviewContain: boolean; + configLoaded: boolean; + activeTab: string; + onImageSelect?: (image: PromptImageRead) => void; +} + +export function ExploreTab({ + images, + loading, + hasMore, + fetchImages, + libraries, + similarImageId, + setSimilarImageId, + mode, + gridSize, + setGridSize, + gridPreviewContain, + configLoaded, + activeTab, + onImageSelect, +}: ExploreTabProps) { + const { targetNodes, handleLoadIntoNode, handleUseImage } = useNodeScanner(); + const { openImage, closeImage, setGalleryImages, currentGallery } = + useImageDialog(); + + const [searchQuery, setSearchQuery] = useState(""); + const [viewMode, setViewMode] = useState<"all" | "mine">("all"); + const [selectedLibrary, setSelectedLibrary] = useState("all"); + const [selectedImage, setSelectedImage] = useState( + null + ); + const scrollRef = useRef(null); + + // Fetch when dependencies change + useEffect(() => { + if (!configLoaded) return; + const libId = selectedLibrary === "all" ? null : parseInt(selectedLibrary); + fetchImages(true, searchQuery, viewMode, libId, similarImageId); + }, [viewMode, configLoaded, selectedLibrary, mode, similarImageId]); // Re-fetch when view mode changes or config is loaded + + // Sync images to lightbox when they change + useEffect(() => { + if (currentGallery?.id === "virtual-gallery" && images.length > 0) { + const galleryImages = images.map((p) => ({ + src: p.image_url, + title: p.prompt, + metadata: p, + })); + const totalImages = hasMore ? images.length + 100 : images.length; + setGalleryImages(galleryImages, true, undefined, totalImages); + } + }, [images, currentGallery?.id, setGalleryImages, hasMore]); + + const handleSearch = (e: React.FormEvent) => { + e.preventDefault(); + const libId = selectedLibrary === "all" ? null : parseInt(selectedLibrary); + fetchImages(true, searchQuery, viewMode, libId, similarImageId); + }; + + return ( +
+
+
+
+ { + setSimilarImageId(id); + if (!id) { + scrollRef.current?.scrollTo({ top: 0 }); + } + }} + mode={mode} + selectedLibrary={selectedLibrary} + setSelectedLibrary={setSelectedLibrary} + libraries={libraries} + viewMode={viewMode} + setViewMode={setViewMode} + /> +
+ {setGridSize && ( +
+ + setGridSize(vals[0])} + className="flex-1" + /> +
+ )} +
+
+ + {configLoaded ? ( + + + { + setSelectedImage(e); + }} + onLoadMore={() => { + const libId = + selectedLibrary === "all" ? null : parseInt(selectedLibrary); + fetchImages( + false, + searchQuery, + viewMode, + libId, + similarImageId + ); + }} + onSimilarSearch={(image) => { + setSimilarImageId(image); + }} + onSelect={(image) => { + if (!image) return; + if (onImageSelect) { + onImageSelect(image); + return; + } + const galleryImages = images.map((p) => ({ + src: p.image_url, + title: p.prompt, + metadata: p, + })); + const index = images.findIndex((p) => p.id === image.id); + const totalImages = hasMore + ? images.length + 100 + : images.length; + + openImage( + image.image_url, + { + id: "virtual-gallery", + name: + activeTab === "explore" ? "Explore" : "Search Results", + images: galleryImages, + totalImages: totalImages, + fetchMore: async (_dir: any, _offset: any) => { + if (hasMore) { + const libId = + selectedLibrary === "all" + ? null + : parseInt(selectedLibrary); + await fetchImages( + false, + searchQuery, + viewMode, + libId, + similarImageId + ); + } + }, + }, + index >= 0 ? index : 0, + [ + { + id: "search-by-image", + icon: , + label: "Search by Image", + onClick: (galleryImage) => { + const img = galleryImage?.metadata as + | PromptImageRead + | undefined; + if (img) { + setSimilarImageId(img.id); + } else { + setSimilarImageId(image.id); + } + closeImage(); + }, + }, + ], + image.prompt + ); + }} + selectedId={selectedImage?.id} + /> + + {selectedImage && ( + <> + + + + + + )} + + ) : ( +
+ Loading configuration... +
+ )} +
+ ); +} diff --git a/ui/components/tabs/SettingsForm.tsx b/ui/components/tabs/SettingsForm.tsx new file mode 100644 index 0000000..a0fff8a --- /dev/null +++ b/ui/components/tabs/SettingsForm.tsx @@ -0,0 +1,147 @@ +import React from "react"; +import { Input } from "@embeddr/react-ui/components/input"; +import { Label } from "@embeddr/react-ui/components/label"; +import { Button } from "@embeddr/react-ui/components/button"; +import { Slider } from "@embeddr/react-ui/components/slider"; +import { Switch } from "@embeddr/react-ui/components/switch"; + +import { Cloud, Moon, Server, Sun } from "lucide-react"; +// @ts-ignore +import { app } from "../../../../scripts/app.js"; +import type { ApiMode } from "@hooks/useEmbeddrApi"; + +interface SettingsFormProps { + endpoint: string; + setEndpoint: (endpoint: string) => void; + mode: ApiMode; + setMode: (mode: ApiMode) => void; + gridSize: number; + setGridSize: (size: number) => void; + gridPreviewContain: boolean; + setGridPreviewContain: (contain: boolean) => void; + theme: string; + setTheme: (theme: string) => void; + onSave: () => void; +} + +export function SettingsForm({ + endpoint, + setEndpoint, + mode, + setMode, + gridSize, + setGridSize, + gridPreviewContain, + setGridPreviewContain, + theme, + setTheme, + onSave, +}: SettingsFormProps) { + return ( +
+
+
+ + +
+
+ +
+ + setEndpoint(e.target.value)} + /> +

+ {mode !== "local" + ? "Change this if you are using a self-hosted instance or development server." + : "The URL of your local Embeddr instance."} +

+
+ +
+ +
+ setGridSize(value[0])} + />{" "} + {gridSize} +
+

+ Number of columns in the image grid. +

+
+
+ +
+ setGridPreviewContain(value)} + /> + + {gridPreviewContain ? "Contain" : "Cover"} + +
+

+ Switch between contain and cover for image previews. +

+
+
+ +
+ setTheme(checked ? "dark" : "light")} + /> + + {theme === "dark" ? ( + <> + Dark + + ) : ( + <> + Light + + )} + +
+
+ + +
+ ); +} diff --git a/ui/components/ui/ImageGrid.tsx b/ui/components/ui/ImageGrid.tsx index aadbcc3..05787be 100644 --- a/ui/components/ui/ImageGrid.tsx +++ b/ui/components/ui/ImageGrid.tsx @@ -2,121 +2,120 @@ import React, { useEffect, useRef } from "react"; import { ScrollArea } from "@embeddr/react-ui/components/scroll-area"; import { Eye, PenLineIcon } from "lucide-react"; import { Button } from "@embeddr/react-ui/components/button"; -import { cn } from "@embeddr/react-ui/lib/utils"; +import { cn } from "@embeddr/react-ui"; import type { PromptImageRead } from "@hooks/useEmbeddrApi"; interface ImageGridProps { - images: Array; - loading: boolean; - hasMore: boolean; - onLoadMore: () => void; - onSelect?: (image: PromptImageRead) => void; - onSimilarSearch?: (imageId: number) => void; - selectedId?: number; - gridSize?: number; - imagePreviewContain?: boolean; + images: Array; + loading: boolean; + hasMore: boolean; + onLoadMore: () => void; + onSelect?: (image: PromptImageRead) => void; + onRightClick: (image: PromptImageRead) => void; + onSimilarSearch?: (imageId: number) => void; + selectedId?: number; + gridSize?: number; + imagePreviewContain?: boolean; + scrollRef?: React.RefObject; } export function ImageGrid({ - images, - loading, - hasMore, - onLoadMore, - onSelect, - onSimilarSearch, - selectedId, - gridSize = 3, - imagePreviewContain = true, + images, + loading, + hasMore, + onLoadMore, + onSelect, + onRightClick, + onSimilarSearch, + selectedId, + gridSize = 3, + imagePreviewContain = true, + scrollRef, }: ImageGridProps) { - const observerTarget = useRef(null); + const observerTarget = useRef(null); - useEffect(() => { - const observer = new IntersectionObserver( - (entries) => { - if (entries[0].isIntersecting && hasMore && !loading) { - onLoadMore(); - } - }, - { threshold: 0, rootMargin: "200px" } - ); - - if (observerTarget.current) { - observer.observe(observerTarget.current); + useEffect(() => { + const observer = new IntersectionObserver( + (entries) => { + if (entries[0].isIntersecting && hasMore && !loading) { + onLoadMore(); } + }, + { threshold: 0, rootMargin: "200px" } + ); - return () => { - if (observerTarget.current) { - observer.unobserve(observerTarget.current); - } - }; - }, [hasMore, loading, onLoadMore]); + if (observerTarget.current) { + observer.observe(observerTarget.current); + } - const handleDragStart = (e: React.DragEvent, imageUrl: string) => { - e.dataTransfer.setData("text/plain", imageUrl); - e.dataTransfer.setData("text/uri-list", imageUrl); + return () => { + if (observerTarget.current) { + observer.unobserve(observerTarget.current); + } }; + }, [hasMore, loading, onLoadMore]); - return ( - -
- {images.map((image) => ( -
onSelect?.(image)} - draggable - onDragStart={(e) => handleDragStart(e, image.image_url)} - > - {image.prompt} -
-
- {onSimilarSearch && ( - - )} -
- {image.prompt && ( - - )} -
-
- ))} + const handleDragStart = (e: React.DragEvent, imageUrl: string) => { + e.dataTransfer.setData("text/plain", imageUrl); + e.dataTransfer.setData("text/uri-list", imageUrl); + }; -
+ return ( + +
+ {images.map((image) => ( +
{ + e.preventDefault(); + onRightClick(image); + }} + onClick={() => onSelect?.(image)} + draggable + onDragStart={(e) => handleDragStart(e, image.image_url)} + > + {image.prompt} +
+
+ {onSimilarSearch && ( + + )} +
+ {image.prompt && }
- - ); +
+ ))} + +
+
+ + ); } diff --git a/ui/components/ui/SearchBar.tsx b/ui/components/ui/SearchBar.tsx new file mode 100644 index 0000000..feb9461 --- /dev/null +++ b/ui/components/ui/SearchBar.tsx @@ -0,0 +1,114 @@ +import React from "react"; +import { Input } from "@embeddr/react-ui/components/input"; +import { Button } from "@embeddr/react-ui/components/button"; +import { Spinner } from "@embeddr/react-ui/components/spinner"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@embeddr/react-ui/components/select"; +import { Globe, ScanEyeIcon, Search, User } from "lucide-react"; +import type { ApiMode, LibraryPath } from "@types"; + +interface SearchBarProps { + searchQuery: string; + setSearchQuery: (query: string) => void; + onSearch: (e: React.FormEvent) => void; + loading: boolean; + similarImageId: number | null; + setSimilarImageId: (id: number | null) => void; + mode: ApiMode; + selectedLibrary: string; + setSelectedLibrary: (lib: string) => void; + libraries: Array; + viewMode: "all" | "mine"; + setViewMode: (mode: "all" | "mine") => void; +} + +export function SearchBar({ + searchQuery, + setSearchQuery, + onSearch, + loading, + similarImageId, + setSimilarImageId, + mode, + selectedLibrary, + setSelectedLibrary, + libraries, + viewMode, + setViewMode, +}: SearchBarProps) { + return ( +
+ {similarImageId ? ( +
+ + Showing + similar images + + +
+ ) : ( +
+ setSearchQuery(e.target.value)} + /> + + +
+ )} + +
+ {mode === "local" ? ( + + ) : ( + <> + + + + )} +
+
+ ); +} diff --git a/ui/components/ui/SettingsForm.tsx b/ui/components/ui/SettingsForm.tsx deleted file mode 100644 index 042befd..0000000 --- a/ui/components/ui/SettingsForm.tsx +++ /dev/null @@ -1,155 +0,0 @@ -import React from "react"; -import { Input } from "@embeddr/react-ui/components/input"; -import { Label } from "@embeddr/react-ui/components/label"; -import { Button } from "@embeddr/react-ui/components/button"; -import { Slider } from "@embeddr/react-ui/components/slider"; -import { Switch } from "@embeddr/react-ui/components/switch"; - -import { Cloud, Moon, Server, Sun } from "lucide-react"; -// @ts-ignore -import { app } from "../../../../scripts/app.js"; -import type { ApiMode } from "@hooks/useEmbeddrApi"; - -interface SettingsFormProps { - endpoint: string; - setEndpoint: (endpoint: string) => void; - mode: ApiMode; - setMode: (mode: ApiMode) => void; - gridSize: number; - setGridSize: (size: number) => void; - gridPreviewContain: boolean; - setGridPreviewContain: (contain: boolean) => void; - theme: string; - setTheme: (theme: string) => void; - onSave: () => void; -} - -export function SettingsForm({ - endpoint, - setEndpoint, - mode, - setMode, - gridSize, - setGridSize, - gridPreviewContain, - setGridPreviewContain, - theme, - setTheme, - onSave, -}: SettingsFormProps) { - return ( -
-
-
- - -
-
- -
- - setEndpoint(e.target.value)} - /> -

- {mode !== "local" - ? "Change this if you are using a self-hosted instance or development server." - : "The URL of your local Embeddr instance."} -

-
- -
- -
- setGridSize(value[0])} - />{" "} - {gridSize} -
-

- Number of columns in the image grid. -

-
-
- -
- - setGridPreviewContain(value) - } - /> - - {gridPreviewContain ? "Contain" : "Cover"} - -
-

- Switch between contain and cover for image previews. -

-
-
- -
- - setTheme(checked ? "dark" : "light") - } - /> - - {theme === "dark" ? ( - <> - Dark - - ) : ( - <> - Light - - )} - -
-
- - -
- ); -} diff --git a/ui/globals.css b/ui/globals.css index 7aa54c5..93b8ad8 100644 --- a/ui/globals.css +++ b/ui/globals.css @@ -1,292 +1,148 @@ @import "tailwindcss"; @source "../node_modules/@embeddr/react-ui/dist/**/*"; @import "tw-animate-css"; +@import "shadcn/tailwind.css"; @custom-variant dark (&:is(.dark *)); -/* Scope tailwind to the sidebar container */ @layer base { - .tailwind { - @apply border-border outline-ring/50; - } - - .tailwind * { - @apply border-border outline-ring/50; - } - - .tailwind body { - @apply bg-background text-foreground; - } - - /* Ensure radix portals get proper styling */ - [data-radix-portal].tailwind, - [data-radix-portal].tailwind.dark, - [data-radix-popper-content-wrapper].tailwind, - [data-radix-popper-content-wrapper].tailwind.dark { - --background: var(--background); - --foreground: var(--foreground); - --card: var(--card); - --card-foreground: var(--card-foreground); - --popover: var(--popover); - --popover-foreground: var(--popover-foreground); - --primary: var(--primary); - --primary-foreground: var(--primary-foreground); - --secondary: var(--secondary); - --secondary-foreground: var(--secondary-foreground); - --muted: var(--muted); - --muted-foreground: var(--muted-foreground); - --accent: var(--accent); - --accent-foreground: var(--accent-foreground); - --destructive: var(--destructive); - --destructive-foreground: var(--destructive-foreground); - --border: var(--border); - --input: var(--input); - --ring: var(--ring); - --radius: var(--radius); - } - - /* Force styling even without our scoped classes as fallback */ - [data-radix-popper-content-wrapper] [data-slot="select-content"] { - background: oklch(0.145 0 0) !important; - color: oklch(0.985 0 0) !important; - border: 1px solid oklch(0.269 0 0) !important; - border-radius: 0.625rem !important; - box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), - 0 4px 6px -4px rgb(0 0 0 / 0.1) !important; - } - - [data-radix-popper-content-wrapper] [data-slot="select-item"] { - color: oklch(0.985 0 0) !important; - } - - [data-radix-popper-content-wrapper] [data-slot="select-item"]:hover, - [data-radix-popper-content-wrapper] - [data-slot="select-item"][data-highlighted] { - background: oklch(0.269 0 0) !important; - color: oklch(0.985 0 0) !important; - } - - [data-radix-popper-content-wrapper] [data-slot="select-label"] { - color: oklch(0.708 0 0) !important; - } - - /* Ensure select components in portals get dark mode styling */ - [data-radix-portal].tailwind.dark [data-slot="select-content"], - [data-radix-popper-content-wrapper].tailwind.dark - [data-slot="select-content"] { - @apply bg-popover text-popover-foreground border border-border; - } - - [data-radix-portal].tailwind.dark [data-slot="select-item"], - [data-radix-popper-content-wrapper].tailwind.dark - [data-slot="select-item"] { - @apply text-popover-foreground; - } - - [data-radix-portal].tailwind.dark [data-slot="select-item"]:hover, - [data-radix-portal].tailwind.dark - [data-slot="select-item"][data-highlighted], - [data-radix-popper-content-wrapper].tailwind.dark - [data-slot="select-item"]:hover, - [data-radix-popper-content-wrapper].tailwind.dark - [data-slot="select-item"][data-highlighted] { - @apply bg-accent text-accent-foreground; - } - - [data-radix-portal].tailwind.dark [data-slot="select-label"], - [data-radix-popper-content-wrapper].tailwind.dark - [data-slot="select-label"] { - @apply text-muted-foreground; - } -} - -:root, -.tailwind { - --background: oklch(1 0 0); - --foreground: oklch(0.145 0 0); - --card: oklch(1 0 0); - --card-foreground: oklch(0.145 0 0); - --popover: oklch(1 0 0); - --popover-foreground: oklch(0.145 0 0); - --primary: oklch(0.205 0 0); - --primary-foreground: oklch(0.985 0 0); - --secondary: oklch(0.97 0 0); - --secondary-foreground: oklch(0.205 0 0); - --muted: oklch(0.97 0 0); - --muted-foreground: oklch(0.556 0 0); - --accent: oklch(0.97 0 0); - --accent-foreground: oklch(0.205 0 0); - --destructive: oklch(0.577 0.245 27.325); - --destructive-foreground: oklch(0.577 0.245 27.325); - --border: oklch(0.922 0 0); - --input: oklch(0.922 0 0); - --ring: oklch(0.708 0 0); - --chart-1: oklch(0.646 0.222 41.116); - --chart-2: oklch(0.6 0.118 184.704); - --chart-3: oklch(0.398 0.07 227.392); - --chart-4: oklch(0.828 0.189 84.429); - --chart-5: oklch(0.769 0.188 70.08); - --radius: 0.625rem; - --sidebar: oklch(0.985 0 0); - --sidebar-foreground: oklch(0.145 0 0); - --sidebar-primary: oklch(0.205 0 0); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.97 0 0); - --sidebar-accent-foreground: oklch(0.205 0 0); - --sidebar-border: oklch(0.922 0 0); - --sidebar-ring: oklch(0.708 0 0); -} - -.dark, -.tailwind.dark { - --background: oklch(0.145 0 0); - --foreground: oklch(0.985 0 0); - --card: oklch(0.145 0 0); - --card-foreground: oklch(0.985 0 0); - --popover: oklch(0.145 0 0); - --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.985 0 0); - --primary-foreground: oklch(0.205 0 0); - --secondary: oklch(0.269 0 0); - --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.269 0 0); - --muted-foreground: oklch(0.708 0 0); - --accent: oklch(0.269 0 0); - --accent-foreground: oklch(0.985 0 0); - --destructive: oklch(0.396 0.141 25.723); - --destructive-foreground: oklch(0.637 0.237 25.331); - --border: oklch(0.269 0 0); - --input: oklch(0.269 0 0); - --ring: oklch(0.439 0 0); - --chart-1: oklch(0.488 0.243 264.376); - --chart-2: oklch(0.696 0.17 162.48); - --chart-3: oklch(0.769 0.188 70.08); - --chart-4: oklch(0.627 0.265 303.9); - --chart-5: oklch(0.645 0.246 16.439); - --sidebar: oklch(0.205 0 0); - --sidebar-foreground: oklch(0.985 0 0); - --sidebar-primary: oklch(0.488 0.243 264.376); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.269 0 0); - --sidebar-accent-foreground: oklch(0.985 0 0); - --sidebar-border: oklch(0.269 0 0); - --sidebar-ring: oklch(0.439 0 0); + /* Ensure dialogs are above ComfyUI UI (which can have high z-indices) */ + .tailwind[data-slot="dialog-overlay"], + [data-slot="dialog-overlay"] { + z-index: 9999 !important; + } + + .tailwind[data-slot="dialog-content"], + [data-slot="dialog-content"] { + z-index: 10000 !important; + } + + .tailwind[data-slot="select-content"], + [data-slot="select-content"] { + z-index: 10000 !important; + background-color: var(--popover); + color: var(--popover-foreground); + } + .tailwind[data-slot="select-viewport"], + [data-slot="select-viewport"] { + z-index: 10000 !important; + } } @theme inline { - --color-background: var(--background); - --color-foreground: var(--foreground); - --color-card: var(--card); - --color-card-foreground: var(--card-foreground); - --color-popover: var(--popover); - --color-popover-foreground: var(--popover-foreground); - --color-primary: var(--primary); - --color-primary-foreground: var(--primary-foreground); - --color-secondary: var(--secondary); - --color-secondary-foreground: var(--secondary-foreground); - --color-muted: var(--muted); - --color-muted-foreground: var(--muted-foreground); - --color-accent: var(--accent); - --color-accent-foreground: var(--accent-foreground); - --color-destructive: var(--destructive); - --color-destructive-foreground: var(--destructive-foreground); - --color-border: var(--border); - --color-input: var(--input); - --color-ring: var(--ring); - --color-chart-1: var(--chart-1); - --color-chart-2: var(--chart-2); - --color-chart-3: var(--chart-3); - --color-chart-4: var(--chart-4); - --color-chart-5: var(--chart-5); - --radius-sm: calc(var(--radius) - 4px); - --radius-md: calc(var(--radius) - 2px); - --radius-lg: var(--radius); - --radius-xl: calc(var(--radius) + 4px); - --color-sidebar: var(--sidebar); - --color-sidebar-foreground: var(--sidebar-foreground); - --color-sidebar-primary: var(--sidebar-primary); - --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); - --color-sidebar-accent: var(--sidebar-accent); - --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); - --color-sidebar-border: var(--sidebar-border); - --color-sidebar-ring: var(--sidebar-ring); + --color-background: var(--background); + --color-foreground: var(--foreground); + --color-card: var(--card); + --color-card-foreground: var(--card-foreground); + --color-popover: var(--popover); + --color-popover-foreground: var(--popover-foreground); + --color-primary: var(--primary); + --color-primary-foreground: var(--primary-foreground); + --color-secondary: var(--secondary); + --color-secondary-foreground: var(--secondary-foreground); + --color-muted: var(--muted); + --color-muted-foreground: var(--muted-foreground); + --color-accent: var(--accent); + --color-accent-foreground: var(--accent-foreground); + --color-destructive: var(--destructive); + --color-destructive-foreground: var(--destructive-foreground); + --color-border: var(--border); + --color-input: var(--input); + --color-ring: var(--ring); + --color-chart-1: var(--chart-1); + --color-chart-2: var(--chart-2); + --color-chart-3: var(--chart-3); + --color-chart-4: var(--chart-4); + --color-chart-5: var(--chart-5); + --radius-sm: calc(var(--radius) - 4px); + --radius-md: calc(var(--radius) - 2px); + --radius-lg: var(--radius); + --radius-xl: calc(var(--radius) + 4px); + --color-sidebar: var(--sidebar); + --color-sidebar-foreground: var(--sidebar-foreground); + --color-sidebar-primary: var(--sidebar-primary); + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); + --color-sidebar-accent: var(--sidebar-accent); + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); + --color-sidebar-border: var(--sidebar-border); + --color-sidebar-ring: var(--sidebar-ring); } @layer base { - * { - @apply border-border outline-ring/50; - } + * { + @apply border-border outline-ring/50; + } - body { - @apply bg-background text-foreground; - } + body { + @apply bg-background text-foreground; + } } :root { - --radius: 0.625rem; - --background: oklch(1 0 0); - --foreground: oklch(0.145 0 0); - --card: oklch(1 0 0); - --card-foreground: oklch(0.145 0 0); - --popover: oklch(1 0 0); - --popover-foreground: oklch(0.145 0 0); - --primary: oklch(0.205 0 0); - --primary-foreground: oklch(0.985 0 0); - --secondary: oklch(0.97 0 0); - --secondary-foreground: oklch(0.205 0 0); - --muted: oklch(0.97 0 0); - --muted-foreground: oklch(0.556 0 0); - --accent: oklch(0.97 0 0); - --accent-foreground: oklch(0.205 0 0); - --destructive: oklch(0.577 0.245 27.325); - --border: oklch(0.922 0 0); - --input: oklch(0.922 0 0); - --ring: oklch(0.708 0 0); - --chart-1: oklch(0.646 0.222 41.116); - --chart-2: oklch(0.6 0.118 184.704); - --chart-3: oklch(0.398 0.07 227.392); - --chart-4: oklch(0.828 0.189 84.429); - --chart-5: oklch(0.769 0.188 70.08); - --sidebar: oklch(0.985 0 0); - --sidebar-foreground: oklch(0.145 0 0); - --sidebar-primary: oklch(0.205 0 0); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.97 0 0); - --sidebar-accent-foreground: oklch(0.205 0 0); - --sidebar-border: oklch(0.922 0 0); - --sidebar-ring: oklch(0.708 0 0); + --radius: 0.625rem; + --background: oklch(1 0 0); + --foreground: oklch(0.145 0 0); + --card: oklch(1 0 0); + --card-foreground: oklch(0.145 0 0); + --popover: oklch(1 0 0); + --popover-foreground: oklch(0.145 0 0); + --primary: oklch(0.205 0 0); + --primary-foreground: oklch(0.985 0 0); + --secondary: oklch(0.97 0 0); + --secondary-foreground: oklch(0.205 0 0); + --muted: oklch(0.97 0 0); + --muted-foreground: oklch(0.556 0 0); + --accent: oklch(0.97 0 0); + --accent-foreground: oklch(0.205 0 0); + --destructive: oklch(0.577 0.245 27.325); + --border: oklch(0.922 0 0); + --input: oklch(0.922 0 0); + --ring: oklch(0.708 0 0); + --chart-1: oklch(0.646 0.222 41.116); + --chart-2: oklch(0.6 0.118 184.704); + --chart-3: oklch(0.398 0.07 227.392); + --chart-4: oklch(0.828 0.189 84.429); + --chart-5: oklch(0.769 0.188 70.08); + --sidebar: oklch(0.985 0 0); + --sidebar-foreground: oklch(0.145 0 0); + --sidebar-primary: oklch(0.205 0 0); + --sidebar-primary-foreground: oklch(0.985 0 0); + --sidebar-accent: oklch(0.97 0 0); + --sidebar-accent-foreground: oklch(0.205 0 0); + --sidebar-border: oklch(0.922 0 0); + --sidebar-ring: oklch(0.708 0 0); } .dark { - --background: oklch(0.145 0 0); - --foreground: oklch(0.985 0 0); - --card: oklch(0.205 0 0); - --card-foreground: oklch(0.985 0 0); - --popover: oklch(0.205 0 0); - --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.922 0 0); - --primary-foreground: oklch(0.205 0 0); - --secondary: oklch(0.269 0 0); - --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.269 0 0); - --muted-foreground: oklch(0.708 0 0); - --accent: oklch(0.269 0 0); - --accent-foreground: oklch(0.985 0 0); - --destructive: oklch(0.704 0.191 22.216); - --border: oklch(1 0 0 / 10%); - --input: oklch(1 0 0 / 15%); - --ring: oklch(0.556 0 0); - --chart-1: oklch(0.488 0.243 264.376); - --chart-2: oklch(0.696 0.17 162.48); - --chart-3: oklch(0.769 0.188 70.08); - --chart-4: oklch(0.627 0.265 303.9); - --chart-5: oklch(0.645 0.246 16.439); - --sidebar: oklch(0.205 0 0); - --sidebar-foreground: oklch(0.985 0 0); - --sidebar-primary: oklch(0.488 0.243 264.376); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.269 0 0); - --sidebar-accent-foreground: oklch(0.985 0 0); - --sidebar-border: oklch(1 0 0 / 10%); - --sidebar-ring: oklch(0.556 0 0); + --background: oklch(0.145 0 0); + --foreground: oklch(0.985 0 0); + --card: oklch(0.205 0 0); + --card-foreground: oklch(0.985 0 0); + --popover: oklch(0.205 0 0); + --popover-foreground: oklch(0.985 0 0); + --primary: oklch(0.922 0 0); + --primary-foreground: oklch(0.205 0 0); + --secondary: oklch(0.269 0 0); + --secondary-foreground: oklch(0.985 0 0); + --muted: oklch(0.269 0 0); + --muted-foreground: oklch(0.708 0 0); + --accent: oklch(0.269 0 0); + --accent-foreground: oklch(0.985 0 0); + --destructive: oklch(0.704 0.191 22.216); + --border: oklch(1 0 0 / 10%); + --input: oklch(1 0 0 / 15%); + --ring: oklch(0.556 0 0); + --chart-1: oklch(0.488 0.243 264.376); + --chart-2: oklch(0.696 0.17 162.48); + --chart-3: oklch(0.769 0.188 70.08); + --chart-4: oklch(0.627 0.265 303.9); + --chart-5: oklch(0.645 0.246 16.439); + --sidebar: oklch(0.205 0 0); + --sidebar-foreground: oklch(0.985 0 0); + --sidebar-primary: oklch(0.488 0.243 264.376); + --sidebar-primary-foreground: oklch(0.985 0 0); + --sidebar-accent: oklch(0.269 0 0); + --sidebar-accent-foreground: oklch(0.985 0 0); + --sidebar-border: oklch(1 0 0 / 10%); + --sidebar-ring: oklch(0.556 0 0); } diff --git a/ui/hooks/useEmbeddrApi.ts b/ui/hooks/useEmbeddrApi.ts index 721629c..5eb140d 100644 --- a/ui/hooks/useEmbeddrApi.ts +++ b/ui/hooks/useEmbeddrApi.ts @@ -6,29 +6,29 @@ import type { ApiMode, LibraryPath, PromptImageRead } from "@types"; export type { PromptImageRead, LibraryPath, ApiMode }; interface UseEmbeddrApiProps { - baseUrl?: string; + baseUrl?: string; } export function useEmbeddrApi({ - baseUrl = "http://localhost:8003", + baseUrl = "http://localhost:8003", }: UseEmbeddrApiProps = {}) { - const settings = useEmbeddrSettings({ baseUrl }); + const settings = useEmbeddrSettings({ baseUrl }); - const libraries = useEmbeddrLibraries({ - apiBase: settings.apiBase, - mode: settings.mode, - configLoaded: settings.configLoaded, - }); + const libraries = useEmbeddrLibraries({ + apiBase: settings.apiBase, + mode: settings.mode, + configLoaded: settings.configLoaded, + }); - const images = useEmbeddrImages({ - apiBase: settings.apiBase, - mode: settings.mode, - configLoaded: settings.configLoaded, - }); + const images = useEmbeddrImages({ + apiBase: settings.apiBase, + mode: settings.mode, + configLoaded: settings.configLoaded, + }); - return { - ...settings, - ...libraries, - ...images, - }; + return { + ...settings, + ...libraries, + ...images, + }; } diff --git a/ui/hooks/useEmbeddrImages.ts b/ui/hooks/useEmbeddrImages.ts index 0404b67..d6448c3 100644 --- a/ui/hooks/useEmbeddrImages.ts +++ b/ui/hooks/useEmbeddrImages.ts @@ -1,132 +1,137 @@ -import { useCallback, useState } from "react"; +import { useCallback, useRef, useState } from "react"; // @ts-ignore import { app } from "../../../scripts/app.js"; import type { ApiMode, PromptImageRead } from "@types"; interface UseEmbeddrImagesProps { - apiBase: string; - mode: ApiMode; - configLoaded: boolean; + apiBase: string; + mode: ApiMode; + configLoaded: boolean; } export function useEmbeddrImages({ - apiBase, - mode, - configLoaded, + apiBase, + mode, + configLoaded, }: UseEmbeddrImagesProps) { - const [images, setImages] = useState>([]); - const [loading, setLoading] = useState(false); - const [page, setPage] = useState(1); - const [hasMore, setHasMore] = useState(true); - const [similarImageId, setSimilarImageId] = useState(null); + const [images, setImages] = useState>([]); + const [loading, setLoading] = useState(false); + const loadingRef = useRef(false); + const pageRef = useRef(1); + const [hasMore, setHasMore] = useState(true); + const [similarImageId, setSimilarImageId] = useState(null); - const fetchImages = useCallback( - async ( - reset = false, - searchQuery = "", - viewMode: "all" | "mine" = "all", - libraryId?: number | null, - similarId?: number | null - ) => { - if (!configLoaded) return; - if (loading && !reset) return; + const fetchImages = useCallback( + async ( + reset = false, + searchQuery = "", + viewMode: "all" | "mine" = "all", + libraryId?: number | null, + similarId?: number | null, + ) => { + if (!configLoaded) return; + if (loadingRef.current && !reset) return; - setLoading(true); - try { - const headers: Record = {}; - const storedKey = localStorage.getItem("embeddr_api_key"); - if (storedKey) { - headers["Authorization"] = `Bearer ${storedKey}`; - } + loadingRef.current = true; + setLoading(true); + try { + const headers: Record = {}; + const storedKey = localStorage.getItem("embeddr_api_key"); + if (storedKey) { + headers["Authorization"] = `Bearer ${storedKey}`; + } - const currentPage = reset ? 1 : page; - const offset = (currentPage - 1) * 20; + const currentPage = reset ? 1 : pageRef.current; + const offset = (currentPage - 1) * 20; - let baseUrl = apiBase; - if (baseUrl.endsWith("/")) baseUrl = baseUrl.slice(0, -1); + let baseUrl = apiBase; + if (baseUrl.endsWith("/")) baseUrl = baseUrl.slice(0, -1); - let url; - const currentSimilarId = - similarId !== undefined ? similarId : similarImageId; + let url; + const currentSimilarId = + similarId !== undefined ? similarId : similarImageId; - if (currentSimilarId) { - url = `${baseUrl}/images/${currentSimilarId}/similar?limit=20&skip=${offset}`; - if (libraryId) { - url += `&library_id=${libraryId}`; - } - } else if (mode === "local") { - // Local API - url = `${baseUrl}/images?limit=20&skip=${offset}`; - if (libraryId) { - url += `&library_id=${libraryId}`; - } - } + if (currentSimilarId) { + url = `${baseUrl}/images/${currentSimilarId}/similar?limit=20&skip=${offset}`; + if (libraryId) { + url += `&library_id=${libraryId}`; + } + } else if (mode === "local") { + // Local API + url = `${baseUrl}/images?limit=20&skip=${offset}`; + if (libraryId) { + url += `&library_id=${libraryId}`; + } + } - if (searchQuery) { - url += `&q=${encodeURIComponent(searchQuery)}`; - } + if (searchQuery) { + url += `&q=${encodeURIComponent(searchQuery)}`; + } - const response = await fetch(url, { headers }); + const response = await fetch(url, { headers }); - if (response.ok) { - const data = await response.json(); - let items: Array = []; + if (response.ok) { + const data = await response.json(); + let items: Array = []; - if (mode === "local") { - // Local API returns { items: [], total: ... } - items = data.items.map((item: any) => ({ - id: item.id, - prompt: item.prompt, // Use filename as prompt for now - image_url: `${baseUrl}/images/${item.id}/file`, - thumb_url: `${baseUrl}/images/${item.id}/thumbnail`, - created_at: item.created_at, - like_count: 0, - liked_by_me: false, - // Local specific - filename: item.filename, - path: item.path, - width: item.width, - height: item.height, - })); - setHasMore(items.length === 20); // Simple check - } else { - // Cloud API returns array - items = data; - setHasMore(data.length === 20); - } + if (mode === "local") { + // Local API returns { items: [], total: ... } + items = data.items.map((item: any) => ({ + id: item.id, + prompt: item.prompt, // Use filename as prompt for now + image_url: `${baseUrl}/images/${item.id}/file`, + thumb_url: `${baseUrl}/images/${item.id}/thumbnail`, + created_at: item.created_at, + like_count: 0, + liked_by_me: false, + // Local specific + filename: item.filename, + path: item.path, + width: item.width, + height: item.height, + })); + setHasMore(items.length === 20); // Simple check + } else { + // Cloud API returns array + items = data; + setHasMore(data.length === 20); + } - if (reset) { - setImages(items); - } else { - setImages((prev) => [...prev, ...items]); - } - setPage(currentPage + 1); - } else { - throw new Error("Failed to fetch images"); - } - } catch (error) { - console.error("Error fetching images:", error); - if (app.extensionManager?.toast) { - app.extensionManager.toast.add({ - severity: "error", - summary: "Fetch Failed", - detail: "Could not load images. Check your API settings and connection.", - life: 5000, - }); - } - } finally { - setLoading(false); - } - }, - [apiBase, loading, page, configLoaded, mode, similarImageId] - ); + if (reset) { + setImages(items); + pageRef.current = 2; + } else { + setImages((prev) => [...prev, ...items]); + pageRef.current = currentPage + 1; + } + } else { + throw new Error("Failed to fetch images"); + } + } catch (error) { + console.error("Error fetching images:", error); + if (app.extensionManager?.toast) { + app.extensionManager.toast.add({ + severity: "error", + summary: "Fetch Failed", + detail: + "Could not load images. Check your API settings and connection.", + life: 5000, + }); + } + } finally { + loadingRef.current = false; + setLoading(false); + } + }, + [apiBase, configLoaded, mode, similarImageId], + ); - return { - images, - loading, - hasMore, - fetchImages, - similarImageId, - setSimilarImageId, - }; + return { + images, + loading, + hasMore, + fetchImages, + similarImageId, + setSimilarImageId, + }; } diff --git a/ui/hooks/useEmbeddrLibraries.ts b/ui/hooks/useEmbeddrLibraries.ts index 85ccead..da7315c 100644 --- a/ui/hooks/useEmbeddrLibraries.ts +++ b/ui/hooks/useEmbeddrLibraries.ts @@ -2,42 +2,42 @@ import { useEffect, useState } from "react"; import type { ApiMode, LibraryPath } from "@types"; interface UseEmbeddrLibrariesProps { - apiBase: string; - mode: ApiMode; - configLoaded: boolean; + apiBase: string; + mode: ApiMode; + configLoaded: boolean; } export function useEmbeddrLibraries({ - apiBase, - mode, - configLoaded, + apiBase, + mode, + configLoaded, }: UseEmbeddrLibrariesProps) { - const [libraries, setLibraries] = useState>([]); + const [libraries, setLibraries] = useState>([]); - const fetchLibraries = async () => { - try { - let baseUrl = apiBase; - if (baseUrl.endsWith("/")) baseUrl = baseUrl.slice(0, -1); + const fetchLibraries = async () => { + try { + let baseUrl = apiBase; + if (baseUrl.endsWith("/")) baseUrl = baseUrl.slice(0, -1); - const res = await fetch(`${baseUrl}/workspace/paths`); - if (res.ok) { - const data = await res.json(); - setLibraries(data); - } - } catch (e) { - console.error("Failed to fetch libraries", e); - } - }; + const res = await fetch(`${baseUrl}/workspace/paths`); + if (res.ok) { + const data = await res.json(); + setLibraries(data); + } + } catch (e) { + console.error("Failed to fetch libraries", e); + } + }; - // Fetch libraries when in local mode - useEffect(() => { - if (configLoaded && mode === "local") { - fetchLibraries(); - } - }, [configLoaded, mode, apiBase]); + // Fetch libraries when in local mode + useEffect(() => { + if (configLoaded && mode === "local") { + fetchLibraries(); + } + }, [configLoaded, mode, apiBase]); - return { - libraries, - fetchLibraries, - }; + return { + libraries, + fetchLibraries, + }; } diff --git a/ui/hooks/useEmbeddrSettings.ts b/ui/hooks/useEmbeddrSettings.ts index 4cc9022..b90ab61 100644 --- a/ui/hooks/useEmbeddrSettings.ts +++ b/ui/hooks/useEmbeddrSettings.ts @@ -4,172 +4,174 @@ import { app } from "../../../scripts/app.js"; import type { ApiMode } from "@types"; interface UseEmbeddrSettingsProps { - baseUrl?: string; + baseUrl?: string; } export function useEmbeddrSettings({ - baseUrl = "http://localhost:8003", + baseUrl = "http://localhost:8003", }: UseEmbeddrSettingsProps = {}) { - const [endpoint, setEndpoint] = useState(() => { - const stored = localStorage.getItem("embeddr_endpoint"); - return stored || baseUrl; - }); - - const [mode, setMode] = useState(() => "local"); - - const [gridSize, setGridSize] = useState(() => - parseInt(localStorage.getItem("embeddr_grid_size") || "3") + const [endpoint, setEndpoint] = useState(() => { + const stored = localStorage.getItem("embeddr_endpoint"); + return stored || baseUrl; + }); + + const [mode, setMode] = useState(() => "local"); + + const [gridSize, setGridSize] = useState(() => + parseInt(localStorage.getItem("embeddr_grid_size") || "3") + ); + + const [gridPreviewContain, setGridPreviewContain] = useState( + () => localStorage.getItem("embeddr_grid_preview_contain") === "true" + ); + + const [theme, setTheme] = useState(() => { + return localStorage.getItem("embeddr_theme") || "dark"; + }); + + const [configLoaded, setConfigLoaded] = useState(false); + + // computed API base for requests + const apiBase = useMemo(() => { + const url = endpoint.replace(/\/$/, ""); // remove trailing slash + return `${url}/api/v1`; // append API path automatically + }, [endpoint]); + + // Apply theme + useEffect(() => { + const container = document.querySelector(".embeddr-sidebar-container"); + if (container) { + if (theme === "dark") { + container.classList.add("dark"); + } else { + container.classList.remove("dark"); + } + } + + // Also handle portals immediately + const portals = document.querySelectorAll( + "[data-radix-portal], [data-slot='dialog-content'], [data-slot='dialog-overlay'], [data-slot='select-content'], [data-slot='select-viewport'], [data-slot='popover-content'], [data-slot='dropdown-menu-content']" ); + portals.forEach((portal) => { + if (theme === "dark") { + portal.classList.add("dark"); + } else { + portal.classList.remove("dark"); + } + }); - const [gridPreviewContain, setGridPreviewContain] = useState( - () => localStorage.getItem("embeddr_grid_preview_contain") === "true" - ); + localStorage.setItem("embeddr_theme", theme); + }, [theme]); - const [theme, setTheme] = useState(() => { - return localStorage.getItem("embeddr_theme") || "dark"; - }); + // Load config on mount + useEffect(() => { + const loadConfig = async () => { + try { + const res = await fetch("/embeddr/config"); + const data = await res.json(); - const [configLoaded, setConfigLoaded] = useState(false); - - // computed API base for requests - const apiBase = useMemo(() => { - const url = endpoint.replace(/\/$/, ""); // remove trailing slash - return `${url}/api/v1`; // append API path automatically - }, [endpoint]); - - // Apply theme - useEffect(() => { - const container = document.querySelector(".embeddr-sidebar-container"); - if (container) { - if (theme === "dark") { - container.classList.add("dark"); - } else { - container.classList.remove("dark"); - } + if (data.endpoint) { + setEndpoint(new URL(data.endpoint).toString()); + localStorage.setItem("embeddr_endpoint", data.endpoint); } - // Also handle portals immediately - const portals = document.querySelectorAll("[data-radix-portal]"); - portals.forEach((portal) => { - if (theme === "dark") { - portal.classList.add("dark"); - } else { - portal.classList.remove("dark"); - } - }); - - localStorage.setItem("embeddr_theme", theme); - }, [theme]); - - // Load config on mount - useEffect(() => { - const loadConfig = async () => { - try { - const res = await fetch("/embeddr/config"); - const data = await res.json(); - - if (data.endpoint) { - setEndpoint(new URL(data.endpoint).toString()); - localStorage.setItem("embeddr_endpoint", data.endpoint); - } - - if (data.mode) { - setMode("local"); - localStorage.setItem("embeddr_mode", data.mode); - } - - if (data.grid_preview_contain !== undefined) { - setGridPreviewContain(data.grid_preview_contain); - localStorage.setItem( - "embeddr_grid_preview_contain", - data.grid_preview_contain.toString() - ); - } - } catch (e) { - console.error("Failed to load config", e); - } finally { - setConfigLoaded(true); - } - }; - loadConfig(); - }, []); - - const saveSettings = async ( - newEndpoint: string, - newMode: ApiMode, - newGridSize: number, - newGridPreviewContain: boolean - ) => { - try { - localStorage.setItem("embeddr_endpoint", newEndpoint); - localStorage.setItem("embeddr_mode", newMode); - localStorage.setItem("embeddr_grid_size", newGridSize.toString()); - localStorage.setItem( - "embeddr_grid_preview_contain", - newGridPreviewContain.toString() - ); - - const res = await fetch("/embeddr/config", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - endpoint: newEndpoint, - mode: newMode, - grid_size: newGridSize, - grid_preview_contain: newGridPreviewContain, - }), - }); - - if (!res.ok) { - throw new Error(`Server returned ${res.status}`); - } - - setEndpoint(newEndpoint); - setMode(newMode); - setGridSize(newGridSize); - setGridPreviewContain(newGridPreviewContain); - - if (app.extensionManager?.toast) { - app.extensionManager.toast.add({ - severity: "success", - summary: "Settings Saved", - detail: "Settings have been saved successfully.", - life: 3000, - }); - } else { - alert("Settings saved!"); - } - - return true; - } catch (e) { - console.error("Failed to save settings", e); - if (app.extensionManager?.toast) { - app.extensionManager.toast.add({ - severity: "error", - summary: "Save Failed", - detail: "Failed to save settings to server. Check console.", - life: 5000, - }); - } else { - alert("Failed to save settings."); - } - return false; + if (data.mode) { + setMode("local"); + localStorage.setItem("embeddr_mode", data.mode); } - }; - return { - endpoint, - setEndpoint, - mode, - setMode, - gridSize, - setGridSize, - gridPreviewContain, - setGridPreviewContain, - theme, - setTheme, - configLoaded, - apiBase, - saveSettings, + if (data.grid_preview_contain !== undefined) { + setGridPreviewContain(data.grid_preview_contain); + localStorage.setItem( + "embeddr_grid_preview_contain", + data.grid_preview_contain.toString() + ); + } + } catch (e) { + console.error("Failed to load config", e); + } finally { + setConfigLoaded(true); + } }; + loadConfig(); + }, []); + + const saveSettings = async ( + newEndpoint: string, + newMode: ApiMode, + newGridSize: number, + newGridPreviewContain: boolean + ) => { + try { + localStorage.setItem("embeddr_endpoint", newEndpoint); + localStorage.setItem("embeddr_mode", newMode); + localStorage.setItem("embeddr_grid_size", newGridSize.toString()); + localStorage.setItem( + "embeddr_grid_preview_contain", + newGridPreviewContain.toString() + ); + + const res = await fetch("/embeddr/config", { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ + endpoint: newEndpoint, + mode: newMode, + grid_size: newGridSize, + grid_preview_contain: newGridPreviewContain, + }), + }); + + if (!res.ok) { + throw new Error(`Server returned ${res.status}`); + } + + setEndpoint(newEndpoint); + setMode(newMode); + setGridSize(newGridSize); + setGridPreviewContain(newGridPreviewContain); + + if (app.extensionManager?.toast) { + app.extensionManager.toast.add({ + severity: "success", + summary: "Settings Saved", + detail: "Settings have been saved successfully.", + life: 3000, + }); + } else { + alert("Settings saved!"); + } + + return true; + } catch (e) { + console.error("Failed to save settings", e); + if (app.extensionManager?.toast) { + app.extensionManager.toast.add({ + severity: "error", + summary: "Save Failed", + detail: "Failed to save settings to server. Check console.", + life: 5000, + }); + } else { + alert("Failed to save settings."); + } + return false; + } + }; + + return { + endpoint, + setEndpoint, + mode, + setMode, + gridSize, + setGridSize, + gridPreviewContain, + setGridPreviewContain, + theme, + setTheme, + configLoaded, + apiBase, + saveSettings, + }; } diff --git a/ui/hooks/useNodeScanner.ts b/ui/hooks/useNodeScanner.ts index 05fff5e..c85f560 100644 --- a/ui/hooks/useNodeScanner.ts +++ b/ui/hooks/useNodeScanner.ts @@ -3,119 +3,118 @@ import { useEffect, useState } from "react"; import { app } from "../../../scripts/app.js"; export interface TargetNode { - id: number; - title: string; + id: number; + title: string; } export function useNodeScanner() { - const [targetNodes, setTargetNodes] = useState>([]); + const [targetNodes, setTargetNodes] = useState>([]); - useEffect(() => { - const scan = () => { - if (!app.graph) return; - const nodes = app.graph.findNodesByType - ? app.graph.findNodesByType("embeddr.LoadImage") - : []; + useEffect(() => { + const scan = () => { + if (!app.graph) return; + const nodes = app.graph.findNodesByType + ? app.graph.findNodesByType("embeddr.LoadImage") + : []; - if (nodes) { - const info = nodes.map((n: any) => ({ - id: n.id, - title: n.title || `Node ${n.id}`, - })); + if (nodes) { + const info = nodes.map((n: any) => ({ + id: n.id, + title: n.title || `Node ${n.id}`, + })); - // Sort alphabetically by title - info.sort((a: any, b: any) => a.title.localeCompare(b.title)); + // Sort alphabetically by title + info.sort((a: any, b: any) => a.title.localeCompare(b.title)); - setTargetNodes((prev) => { - if (JSON.stringify(prev) !== JSON.stringify(info)) - return info; - return prev; - }); - } - }; + setTargetNodes((prev) => { + if (JSON.stringify(prev) !== JSON.stringify(info)) return info; + return prev; + }); + } + }; - const interval = setInterval(scan, 1000); - scan(); - return () => clearInterval(interval); - }, []); + const interval = setInterval(scan, 1000); + scan(); + return () => clearInterval(interval); + }, []); - const handleLoadIntoNode = (nodeId: number, imageUrl: string) => { - const node = app.graph.getNodeById(nodeId); - if (node) { - if (node.widgets && node.widgets[0]) { - node.widgets[0].value = imageUrl; - if (node.updatePreview) { - node.updatePreview(imageUrl); - } - app.graph.setDirtyCanvas(true, true); - if (app.extensionManager?.toast) { - app.extensionManager.toast.add({ - severity: "info", - summary: "Image Loaded", - detail: `Updated ${node.title || "Node " + node.id}`, - life: 1000, - }); - } - } + const handleLoadIntoNode = (nodeId: number, imageUrl: string) => { + const node = app.graph.getNodeById(nodeId); + if (node) { + if (node.widgets && node.widgets[0]) { + node.widgets[0].value = imageUrl; + if (node.updatePreview) { + node.updatePreview(imageUrl); } - }; + app.graph.setDirtyCanvas(true, true); + if (app.extensionManager?.toast) { + app.extensionManager.toast.add({ + severity: "info", + summary: "Image Loaded", + detail: `Updated ${node.title || "Node " + node.id}`, + life: 1000, + }); + } + } + } + }; - const handleUseImage = (imageUrl: string) => { - const selectedNodes = app.canvas.selected_nodes; - let targetNode = null; + const handleUseImage = (imageUrl: string) => { + const selectedNodes = app.canvas.selected_nodes; + let targetNode = null; - if (selectedNodes && Object.keys(selectedNodes).length > 0) { - const firstNode = Object.values(selectedNodes)[0] as any; - if (firstNode.type === "embeddr.LoadImage") { - targetNode = firstNode; - } - } + if (selectedNodes && Object.keys(selectedNodes).length > 0) { + const firstNode = Object.values(selectedNodes)[0] as any; + if (firstNode.type === "embeddr.LoadImage") { + targetNode = firstNode; + } + } - if (targetNode) { - if (targetNode.widgets && targetNode.widgets[0]) { - targetNode.widgets[0].value = imageUrl; - // Trigger updatePreview if available - if (targetNode.updatePreview) { - targetNode.updatePreview(imageUrl); - } - app.graph.setDirtyCanvas(true, true); - } - } else { - // @ts-ignore - const LiteGraph = window.LiteGraph; - const node = LiteGraph.createNode("embeddr.LoadImage"); - if (node) { - node.pos = [ - app.canvas.graph_mouse[0] || 0, - app.canvas.graph_mouse[1] || 0, - ]; - if (node.widgets && node.widgets[0]) { - node.widgets[0].value = imageUrl; - } - app.graph.add(node); + if (targetNode) { + if (targetNode.widgets && targetNode.widgets[0]) { + targetNode.widgets[0].value = imageUrl; + // Trigger updatePreview if available + if (targetNode.updatePreview) { + targetNode.updatePreview(imageUrl); + } + app.graph.setDirtyCanvas(true, true); + } + } else { + // @ts-ignore + const LiteGraph = window.LiteGraph; + const node = LiteGraph.createNode("embeddr.LoadImage"); + if (node) { + node.pos = [ + app.canvas.graph_mouse[0] || 0, + app.canvas.graph_mouse[1] || 0, + ]; + if (node.widgets && node.widgets[0]) { + node.widgets[0].value = imageUrl; + } + app.graph.add(node); - // Trigger updatePreview if available (must be after add?) - // Actually updatePreview is on the prototype, so it should be available. - if (node.updatePreview) { - node.updatePreview(imageUrl); - } + // Trigger updatePreview if available (must be after add?) + // Actually updatePreview is on the prototype, so it should be available. + if (node.updatePreview) { + node.updatePreview(imageUrl); + } - app.graph.setDirtyCanvas(true, true); - if (app.extensionManager?.toast) { - app.extensionManager.toast.add({ - severity: "success", - summary: "Node Created", - detail: "Created new Embeddr Load Image node", - life: 2000, - }); - } - } + app.graph.setDirtyCanvas(true, true); + if (app.extensionManager?.toast) { + app.extensionManager.toast.add({ + severity: "success", + summary: "Node Created", + detail: "Created new Embeddr Load Image node", + life: 2000, + }); } - }; + } + } + }; - return { - targetNodes, - handleLoadIntoNode, - handleUseImage, - }; + return { + targetNodes, + handleLoadIntoNode, + handleUseImage, + }; } diff --git a/ui/main.tsx b/ui/main.tsx index dd02c9b..0fbdeaa 100644 --- a/ui/main.tsx +++ b/ui/main.tsx @@ -1,81 +1,103 @@ import React from "react"; import ReactDOM from "react-dom/client"; +import { ImageDialogProvider } from "@embeddr/react-ui/providers/ImageDialogProvider"; +import { ExternalNavProvider } from "@embeddr/react-ui"; // @ts-ignore import { app } from "../../../scripts/app.js"; import EmbeddrPanel from "./components/panels/EmbeddrPanel.js"; +import { GlobalDialog } from "./components/GlobalDialog"; import "./nodes/EmbeddrLoadImage.js"; // @ts-ignore import "./globals.css"; -// Inject CSS for the sidebar icon -const style = document.createElement("style"); - -document.head.appendChild(style); +// Mount Global Dialog +const dialogContainer = document.createElement("div"); +dialogContainer.id = "embeddr-global-dialog-root"; +// Add tailwind class to ensure styles work if they rely on parent class +dialogContainer.classList.add("tailwind"); +dialogContainer.classList.add("dark"); +document.body.appendChild(dialogContainer); +const dialogRoot = ReactDOM.createRoot(dialogContainer); +dialogRoot.render( + + + + + +); // Register Embeddr Sidebar app.extensionManager.registerSidebarTab({ - id: "embeddr", - icon: "mdi mdi-cloud-search-outline", // Use the class name - title: "Embeddr", - type: "custom", - render(container) { - container.innerHTML = ""; - container.classList.add("tailwind"); - container.classList.add("embeddr-sidebar-container"); - // Default to dark, but let React handle it - container.classList.add("dark"); - // Prevent the parent container from scrolling - container.style.overflow = "hidden"; - container.style.height = "100%"; + id: "embeddr", + icon: "mdi mdi-cloud-search-outline", + title: "Embeddr", + type: "custom", + render(container) { + document.documentElement.classList.add("dark", "tailwind"); - // Ensure any future portals get proper styling - const observer = new MutationObserver((mutations) => { - mutations.forEach((mutation) => { - if (mutation.type === "childList") { - const portals = document.querySelectorAll( - "[data-radix-portal]" - ); - const isDark = container.classList.contains("dark"); - portals.forEach((portal) => { - if (!portal.classList.contains("tailwind")) { - portal.classList.add("tailwind"); - } - // Sync dark mode - if (isDark) { - portal.classList.add("dark"); - } else { - portal.classList.remove("dark"); - } - }); - } - }); - }); - observer.observe(document.body, { childList: true, subtree: true }); + container.innerHTML = ""; + container.classList.add("tailwind"); + container.classList.add("embeddr-sidebar-container"); + // Default to dark, but let React handle it + container.classList.add("dark"); + // Prevent the parent container from scrolling + container.style.overflow = "hidden"; + container.style.height = "100%"; - const root = ReactDOM.createRoot(container); - root.render(); - return () => { - observer.disconnect(); - root.unmount(); - }; - }, + // Ensure any future portals get proper styling + const observer = new MutationObserver((mutations) => { + mutations.forEach((mutation) => { + if (mutation.type === "childList") { + const portals = document.querySelectorAll( + "[data-radix-portal], [data-slot='dialog-content'], [data-slot='dialog-overlay'], [data-slot='select-content'], [data-slot='select-viewport'], [data-slot='popover-content'], [data-slot='dropdown-menu-content']" + ); + const isDark = container.classList.contains("dark"); + portals.forEach((portal) => { + if (!portal.classList.contains("tailwind")) { + portal.classList.add("tailwind"); + } + // // Sync dark mode + if (isDark) { + portal.classList.add("dark"); + } else { + portal.classList.remove("dark"); + } + }); + } + }); + }); + observer.observe(document.body, { childList: true, subtree: true }); + + const root = ReactDOM.createRoot(container); + root.render( + + + + + + ); + return () => { + observer.disconnect(); + root.unmount(); + }; + }, }); // Register Node Extension app.registerExtension({ - name: "Embeddr.NodeHelper", - aboutPageBadges: [ - { - label: "Embeddr", - url: "https://github.com/embeddr-net/embeddr-local", - icon: "pi pi-globe", - }, - ], - async nodeCreated(node) { - // Handle Embeddr Load Image Node + name: "Embeddr.NodeHelper", + aboutPageBadges: [ + { + label: "Embeddr", + url: "https://github.com/embeddr-net/embeddr-local", + icon: "pi pi-globe", }, + ], + async nodeCreated(node) { + // Handle Embeddr Load Image Node + }, - async loadedGraphNode(node) { - // No-op - }, + async loadedGraphNode(node) { + // No-op + }, }); diff --git a/ui/nodes/EmbeddrLoadImage.ts b/ui/nodes/EmbeddrLoadImage.ts index e21dc9e..eb5f7d6 100644 --- a/ui/nodes/EmbeddrLoadImage.ts +++ b/ui/nodes/EmbeddrLoadImage.ts @@ -2,132 +2,34 @@ import { app } from "../../../scripts/app.js"; app.registerExtension({ - name: "Embeddr.LoadImage", - async beforeRegisterNodeDef(nodeType: any, nodeData: any, app: any) { - if (nodeData.name === "embeddr.LoadImage") { - const hideWidget = (node: any) => { - const urlWidget = node.widgets?.find( - (w: any) => w.name === "image_url" - ); - if (urlWidget) { - urlWidget.type = "hidden"; - urlWidget.computeSize = () => [0, 0]; - if (urlWidget.inputEl) { - urlWidget.inputEl.style.display = "none"; - urlWidget.inputEl.hidden = true; - } - } - }; - - // Add updatePreview method - nodeType.prototype.updatePreview = function (url: string) { - if (!url) return; - - hideWidget(this); - - const img = new Image(); - img.onload = () => { - // Use a custom property to avoid conflict with ComfyUI's default preview - this._embeddr_img = img; - // Ensure node has some size if it collapsed - if (this.size[0] < 64 || this.size[1] < 64) { - this.setSize([256, 256]); - } - app.graph.setDirtyCanvas(true, true); - }; - img.src = url; - }; - - const onNodeCreated = nodeType.prototype.onNodeCreated; - nodeType.prototype.onNodeCreated = function () { - const r = onNodeCreated - ? onNodeCreated.apply(this, arguments) - : undefined; - - hideWidget(this); - - const urlWidget = this.widgets?.find( - (w: any) => w.name === "image_url" - ); - - // If we have a value initially, load it - if (urlWidget && urlWidget.value) { - this.updatePreview(urlWidget.value); - } - - // Hook into widget callback - if (urlWidget) { - const originalCallback = urlWidget.callback; - urlWidget.callback = (value: string) => { - if (originalCallback) { - originalCallback(value); - } - this.updatePreview(value); - }; - } - - return r; - }; - - // Ensure widget is hidden when loading from workflow - const onConfigure = nodeType.prototype.onConfigure; - nodeType.prototype.onConfigure = function () { - const r = onConfigure - ? onConfigure.apply(this, arguments) - : undefined; - hideWidget(this); - return r; - }; - - // Draw the image - const onDrawBackground = nodeType.prototype.onDrawBackground; - nodeType.prototype.onDrawBackground = function (ctx: any) { - // Only draw if we have an image - if (this._embeddr_img) { - // Don't call original onDrawBackground to avoid double drawing - // if the original one draws something that conflicts. - // However, we might want to call it if it draws the node background color. - // But usually onDrawBackground draws the content. - // Let's try NOT calling it if we have an image. - - const img = this._embeddr_img; - - // Calculate available area - const w = this.size[0]; - const h = this.size[1]; - - // Draw - ctx.save(); - - // Better aspect ratio drawing (contain) - const ratio = img.width / img.height; - const nodeRatio = w / h; - - let drawW, drawH, drawX, drawY; - - if (ratio > nodeRatio) { - // Image is wider - drawW = w; - drawH = w / ratio; - drawX = 0; - drawY = (h - drawH) / 2; - } else { - // Image is taller - drawH = h; - drawW = h * ratio; - drawY = 0; - drawX = (w - drawW) / 2; - } - - ctx.drawImage(img, drawX, drawY, drawW, drawH); - - ctx.restore(); - } else { - if (onDrawBackground) { - onDrawBackground.apply(this, arguments); - } - } - }; - } - }, + name: "Embeddr.LoadImage", + async beforeRegisterNodeDef(nodeType: any, nodeData: any, app: any) { + if (nodeData.name === "embeddr.LoadImage") { + // Add a button to open the dialog + const onNodeCreated = nodeType.prototype.onNodeCreated; + nodeType.prototype.onNodeCreated = function () { + const r = onNodeCreated + ? onNodeCreated.apply(this, arguments) + : undefined; + + // Add button widget + this.addWidget("button", "Search Image", "search", () => { + // Dispatch event to open dialog + const event = new CustomEvent("embeddr-open-dialog", { + detail: { nodeId: this.id }, + }); + window.dispatchEvent(event); + }); + + return r; + }; + + // Handle image_id updates (if we want to preview) + // We can reuse the updatePreview logic from LoadImage if we want + // But here we might just want to show the ID or fetch the image. + // The python node returns the image, so ComfyUI will handle the preview if we return it in the output. + // But if we want to show it on the node before execution, we need to fetch it. + // For now, let's just handle the ID insertion. + } + }, }); diff --git a/ui/types.ts b/ui/types.ts index d0f3fa2..b49534b 100644 --- a/ui/types.ts +++ b/ui/types.ts @@ -1,25 +1,25 @@ export interface PromptImageRead { - id: number; - prompt: string; - image_url: string; - thumb_url?: string; - model?: string; - created_at: string; - author_name?: string; - like_count: number; - liked_by_me: boolean; - // Local specific - filename?: string; - path?: string; - width?: number; - height?: number; + id: number; + prompt: string; + image_url: string; + thumb_url?: string; + model?: string; + created_at: string; + author_name?: string; + like_count: number; + liked_by_me: boolean; + // Local specific + filename?: string; + path?: string; + width?: number; + height?: number; } export interface LibraryPath { - id: number; - path: string; - name: string | null; - image_count: number; + id: number; + path: string; + name: string | null; + image_count: number; } export type ApiMode = "local"; diff --git a/uv.lock b/uv.lock index 3a49bac..e1ff2f2 100644 --- a/uv.lock +++ b/uv.lock @@ -9,5 +9,5 @@ resolution-markers = [ [[package]] name = "embeddr-extension" -version = "1.1.1" +version = "1.2.0" source = { virtual = "." } diff --git a/vite.config.mts b/vite.config.mts index 4cb64c9..984c255 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -6,116 +6,116 @@ import tailwindcss from "@tailwindcss/vite"; // Plugin to inline CSS into JS const inlineCssPlugin: any = { - name: "inline-css", - apply: "build" as const, - enforce: "post", - generateBundle(options: any, bundle: any) { - let cssContent = ""; - const cssFiles: string[] = []; + name: "inline-css", + apply: "build" as const, + enforce: "post", + generateBundle(options: any, bundle: any) { + let cssContent = ""; + const cssFiles: string[] = []; - // Collect all CSS files - for (const [fileName, asset] of Object.entries(bundle)) { - if (fileName.endsWith(".css") && (asset as any).type === "asset") { - cssContent += (asset as any).source; - cssFiles.push(fileName); - } - } + // Collect all CSS files + for (const [fileName, asset] of Object.entries(bundle)) { + if (fileName.endsWith(".css") && (asset as any).type === "asset") { + cssContent += (asset as any).source; + cssFiles.push(fileName); + } + } - // Inject CSS into main JS file - if (cssContent && Object.keys(bundle).some((f) => f.endsWith(".js"))) { - const jsFile = Object.keys(bundle).find( - (f) => f.endsWith(".js") && f.startsWith("main") - ); - if (jsFile) { - const jsAsset = bundle[jsFile] as any; + // Inject CSS into main JS file + if (cssContent && Object.keys(bundle).some((f) => f.endsWith(".js"))) { + const jsFile = Object.keys(bundle).find( + (f) => f.endsWith(".js") && f.startsWith("main"), + ); + if (jsFile) { + const jsAsset = bundle[jsFile] as any; - // Wrap all CSS rules with a scoping selector - const scopedCss = cssContent.replace( - /([^{}]+){([^{}]*)}/g, - (match, selector, rules) => { - // Skip @rules (like @media, @keyframes, @import) - if (selector.trim().startsWith("@")) { - return match; - } + // Wrap all CSS rules with a scoping selector + const scopedCss = cssContent.replace( + /([^{}]+){([^{}]*)}/g, + (match, selector, rules) => { + // Skip @rules (like @media, @keyframes, @import) + if (selector.trim().startsWith("@")) { + return match; + } - // Skip if already scoped to avoid double scoping - if (selector.includes(".tailwind")) { - return match; - } + // Skip if already scoped to avoid double scoping + if (selector.includes(".tailwind")) { + return match; + } - // Handle :root selector specially - if (selector.trim() === ":root") { - return match; // Keep :root global - } + // Handle :root selector specially + if (selector.trim() === ":root") { + return match; // Keep :root global + } - // Add scoping to each selector - const scopedSelectors = selector - .split(",") - .map((s) => { - const trimmed = s.trim(); - // Don't scope html, body, or other global selectors that are already in your CSS - if ( - trimmed === "html" || - trimmed === "body" || - trimmed === "*" - ) { - return `.tailwind ${trimmed}`; - } - return `.tailwind ${trimmed}`; - }) - .join(", "); - return `${scopedSelectors} { ${rules} }`; - } - ); + // Add scoping to each selector + const scopedSelectors = selector + .split(",") + .map((s) => { + const trimmed = s.trim(); + // Don't scope html, body, or other global selectors that are already in your CSS + if ( + trimmed === "html" || + trimmed === "body" || + trimmed === "*" + ) { + return `.tailwind ${trimmed}`; + } + return `.tailwind ${trimmed}`; + }) + .join(", "); + return `${scopedSelectors} { ${rules} }`; + }, + ); - const styleInject = `(function(){const css=${JSON.stringify( - scopedCss - )};const style=document.createElement('style');style.setAttribute('data-extension','nynxz_custom_nodes');style.textContent=css;document.head.appendChild(style);})();`; - jsAsset.code = styleInject + jsAsset.code; - } - } + const styleInject = `(function(){const css=${JSON.stringify( + scopedCss, + )};const style=document.createElement('style');style.setAttribute('data-extension','nynxz_custom_nodes');style.textContent=css;document.head.appendChild(style);})();`; + jsAsset.code = styleInject + jsAsset.code; + } + } - // Remove CSS files from bundle - for (const cssFile of cssFiles) { - delete bundle[cssFile]; - } - }, + // Remove CSS files from bundle + for (const cssFile of cssFiles) { + delete bundle[cssFile]; + } + }, }; export default defineConfig({ - plugins: [react(), tailwindcss(), inlineCssPlugin], - resolve: { - alias: { - "@": fileURLToPath(new URL("./ui", import.meta.url)), - "@components": path.resolve(__dirname, "ui/components"), - "@hooks": path.resolve(__dirname, "ui/hooks"), - }, + plugins: [react(), tailwindcss(), inlineCssPlugin], + resolve: { + alias: { + "@": fileURLToPath(new URL("./ui", import.meta.url)), + "@components": path.resolve(__dirname, "ui/components"), + "@hooks": path.resolve(__dirname, "ui/hooks"), }, - define: { - "process.env": {}, // fixes 'process is not defined' + }, + define: { + "process.env": {}, // fixes 'process is not defined' + }, + build: { + lib: { + entry: "./ui/main.tsx", + formats: ["es"], + fileName: "main", }, - build: { - lib: { - entry: "./ui/main.tsx", - formats: ["es"], - fileName: "main", - }, - rollupOptions: { - external: [ - "../../../scripts/app.js", // Comfy's app object - "../../../../scripts/app.js", // Comfy's app object from components - /^primevue\/?.*/, - /^@primevue\/themes\/?.*/, - ], - output: { - dir: "js", - entryFileNames: "main.js", - assetFileNames: "assets/[name].[ext]", - }, - }, - outDir: "js", - sourcemap: false, - assetsInlineLimit: Infinity, - cssCodeSplit: false, + rollupOptions: { + external: [ + "../../../scripts/app.js", // Comfy's app object + "../../../../scripts/app.js", // Comfy's app object from components + /^primevue\/?.*/, + /^@primevue\/themes\/?.*/, + ], + output: { + dir: "js", + entryFileNames: "main.js", + assetFileNames: "assets/[name].[ext]", + }, }, + outDir: "js", + sourcemap: false, + assetsInlineLimit: Infinity, + cssCodeSplit: false, + }, });