diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..7341039 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,70 @@ +# Contributing + +Dyad is still a very early-stage project, thus the codebase is rapidly changing. + +Before opening a pull request, please open an issue and discuss whether the change makes sense in Dyad. Ensuring a cohesive user experience sometimes means we can't include every possible feature or we need to consider the long-term design of how we want to support a feature area. + +For a high-level overview of how Dyad works, please see the [Architecture Guide](./docs/architecture.md). Understanding the architecture will help ensure your contributions align with the overall design of the project. + +## More than code contributions + +Something that I really appreciate are all the non-code contributions, such as reporting bugs, writing feature requests and participating on [Dyad's sub-reddit](https://www.reddit.com/r/dyadbuilders). + +## Development + +Dyad is an Electron app. + +**Install dependencies:** + +```sh +npm install +``` + +**Apply migrations:** + +```sh +npm run db:generate +npm run db:push +``` + +**Run locally:** + +```sh +npm start +``` + +## Testing + +### Unit tests + +```sh +npm test +``` + +### E2E tests + +Build the app for E2E testing: + +```sh +npm run pre:e2e +``` + +> Note: you only need to re-build the app when changing the app code. You don't need to re-build the app if you're just updating the tests. + +Run the whole e2e test suite: + +```sh +npm run e2e +``` + +Run a specific test file: + +```sh +npm run e2e e2e-tests/context_manage.spec.ts +``` + +Update snapshots for a test: + +```sh +npm run e2e e2e-tests/context_manage.spec.ts -- --update-snapshots +``` diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8d8dd57 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025 Dyad Tech, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..6b58fce --- /dev/null +++ b/README.md @@ -0,0 +1,92 @@ +# Dyad + +Dyad is a local, open-source AI app builder. It's fast, private, and fully under your control — like Lovable, v0, or Bolt, but running right on your machine. + +![Image](https://github.com/user-attachments/assets/f6c83dfc-6ffd-4d32-93dd-4b9c46d17790) + +## 🚀 Features + +- ⚡️ **Local**: Fast, private and no lock-in. +- 🛠 **Bring your own keys**: Use your own AI API keys — no vendor lock-in. +- 🖥️ **Cross-platform**: Easy to run on Mac or Windows. + +## 🧰 Prerequisites + +- Node.js >= 20 +- npm (comes with Node.js) +- Git + +You can verify your versions: + +```bash +node -v +npm -v +``` + +## 🏗️ Install (from source) + +```bash +git clone https://github.com/dyad-sh/dyad.git +cd dyad +npm install +``` + +## ▶️ Run locally (development) + +- Start the app with the default configuration: + +```bash +npm start +``` + +- Optionally, point the app to a locally running engine (on http://localhost:8080/v1): + +```bash +npm run dev:engine +``` + +### Environment variables (optional) + +- `DYAD_ENGINE_URL`: URL of the Dyad engine (defaults to built-in configuration). +- `DYAD_GATEWAY_URL`: URL of a compatible gateway if you prefer to route requests. + +Example: + +```bash +DYAD_ENGINE_URL=http://localhost:8080/v1 npm start +``` + +## 📦 Build installers (make) + +Create platform-specific distributables: + +```bash +npm run make +``` + +Outputs are written to the `out/` directory. + +## 🧪 Tests and linting + +```bash +# Unit tests +npm test + +# Lint +npm run lint + +# Prettier check +npm run prettier:check +``` + +## 🤝 Community + +Join our growing community of AI app builders on **Reddit**: [r/dyadbuilders](https://www.reddit.com/r/dyadbuilders/) — share your projects and get help from the community! + +## 🛠️ Contributing + +If you're interested in contributing to Dyad, please read our [contributing](./CONTRIBUTING.md) doc. + +## 📄 License + +MIT License — see [LICENSE](./LICENSE). diff --git a/assets/icon/logo.icns b/assets/icon/logo.icns new file mode 100644 index 0000000..ffc1d1a Binary files /dev/null and b/assets/icon/logo.icns differ diff --git a/assets/icon/logo.ico b/assets/icon/logo.ico new file mode 100644 index 0000000..fd2933f Binary files /dev/null and b/assets/icon/logo.ico differ diff --git a/assets/icon/logo.png b/assets/icon/logo.png new file mode 100644 index 0000000..562eb9c Binary files /dev/null and b/assets/icon/logo.png differ diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..53c8f6f Binary files /dev/null and b/assets/logo.png differ diff --git a/assets/logo_transparent.png b/assets/logo_transparent.png new file mode 100644 index 0000000..0868f0a Binary files /dev/null and b/assets/logo_transparent.png differ diff --git a/assets/supabase/connect-supabase-dark.svg b/assets/supabase/connect-supabase-dark.svg new file mode 100644 index 0000000..73da0b1 --- /dev/null +++ b/assets/supabase/connect-supabase-dark.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/supabase/connect-supabase-light.svg b/assets/supabase/connect-supabase-light.svg new file mode 100644 index 0000000..ecdd633 --- /dev/null +++ b/assets/supabase/connect-supabase-light.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/supabase/supabase-logo-wordmark--dark.svg b/assets/supabase/supabase-logo-wordmark--dark.svg new file mode 100644 index 0000000..9e96fab --- /dev/null +++ b/assets/supabase/supabase-logo-wordmark--dark.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/supabase/supabase-logo-wordmark--light.svg b/assets/supabase/supabase-logo-wordmark--light.svg new file mode 100644 index 0000000..60cbc71 --- /dev/null +++ b/assets/supabase/supabase-logo-wordmark--light.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..2aa55a6 --- /dev/null +++ b/biome.json @@ -0,0 +1,59 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.4.1/schema.json", + "vcs": { + "useIgnoreFile": true + }, + "files": { + "ignore": [ + "**/static/build/**", + "**/third_party/**", + "third_party/**", + "**/external/**", + "tools/**", + "mesop/**/*.json", + "scripts/**", + "**/esbuild*", + "**/venv/**" + ] + }, + "organizeImports": { + "enabled": true + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "correctness": { + "noUnusedImports": "error" + }, + "complexity": { + "useLiteralKeys": "off", + "noForEach": "off" + }, + "style": { + "noParameterAssign": "off", + "noNonNullAssertion": "off" + }, + "suspicious": { + "noExplicitAny": "off", + "noFallthroughSwitchClause": "off", + "noPrototypeBuiltins": "off", + "noArrayIndexKey": "off" + }, + "a11y": { + "useButtonType": "off", + "useIframeTitle": "off", + "noLabelWithoutControl": "off", + "noSvgWithoutTitle": "off" + } + } + }, + "formatter": { + "enabled": false + }, + "javascript": { + "parser": { + "unsafeParameterDecoratorsEnabled": true + } + } +} diff --git a/blank b/blank deleted file mode 100644 index 9ae3967..0000000 --- a/blank +++ /dev/null @@ -1 +0,0 @@ -just blank diff --git a/components.json b/components.json new file mode 100644 index 0000000..285033d --- /dev/null +++ b/components.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/styles/globals.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "iconLibrary": "lucide" +} diff --git a/docs/architecture.md b/docs/architecture.md new file mode 100644 index 0000000..ea93a2a --- /dev/null +++ b/docs/architecture.md @@ -0,0 +1,52 @@ +# Dyad Architecture + +This doc describes how the Dyad desktop app works at a high-level. If something is out of date, please feel free to suggest a change via a pull request. + +## Overview + +Dyad is an Electron app that is a local, open-source alternative to AI app builders like Lovable, v0, and Bolt. While the specifics of how other AI app builders are constructed aren't publicly documented, there is available information like [system prompts](https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools) about these other app builders. + +## Electron Architecture + +If you're not familiar with Electron apps, they are similar to a full-stack JavaScript app where there's a client-side called the **renderer process** which executes the UI code like React and then there's a Node.js process called the **main process** which is comparable to the server-side portion of a full-stack app. The main process is privileged, meaning it has access to the filesystem and other system resources, whereas the renderer process is sandboxed. The renderer process can communicate to the main process using [IPCs](https://en.wikipedia.org/wiki/Inter-process_communication) which is similar to how the browser communicates to the server using HTTP requests. + +## Life of a request + +The core workflow of Dyad is that a user sends a prompt to the AI which edits the code and is reflected in the preview. We'll break this down step-by-step. + +1. **Constructing an LLM request** - the LLM request that Dyad sends consists of much more than the prompt (i.e. user input). It includes, by default, the entire codebase as well as a detailed [system prompt](https://github.com/dyad-sh/dyad/blob/main/src/prompts/system_prompt.ts) which gives the LLM instructions to respond in a specific XML-like format (e.g. `console.log("hi")`). +2. **Stream the LLM response to the UI** - It's important to provide visual feedback to the user otherwise they're waiting for several minutes without knowing what's happening so we stream the LLM response and show the LLM response. We have a specialized [Markdown parser](https://github.com/dyad-sh/dyad/blob/main/src/components/chat/DyadMarkdownParser.tsx) which parses these `` tags like the `` tag shown earlier, so we can display the LLM output in a nice UI rather than just printing out raw XML-like text. +3. **Process the LLM response** - Once the LLM response has finished, and the user has approved the changes, the [response processor](https://github.com/dyad-sh/dyad/blob/main/src/ipc/processors/response_processor.ts) in the main process applies these changes. Essentially each `` tag described in the [system prompt](https://github.com/dyad-sh/dyad/blob/main/src/prompts/system_prompt.ts) maps to specific logic in the response processor, e.g. writing a file, deleting a file, adding a new NPM package, etc. + +To recap, Dyad essentially tells the LLM about a bunch of tools like writing files using the `` tags, the renderer process displays these Dyad tags in a nice UI and the main process executes these Dyad tags to apply the changes. + +## FAQ + +### Why not use actual tool calls? + +One thing that may seem strange is that we don't use actual function calling/tool calling capabilities of the AI and instead use these XML-like syntax which simulate tool calling. This is something I observed from studying the [system prompts](https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools) of other app builders. + +I think the two main reasons to use this XML-like format instead of actual tool calling is that: + +1. You can call many tools at once, although some models allow [parallel calls](https://platform.openai.com/docs/guides/function-calling/parallel-function-calling#parallel-function-calling), many don't. +2. There's also [evidence](https://aider.chat/2024/08/14/code-in-json.html) that forcing LLMs to return code in JSON (which is essentially what tool calling would entail here) negatively affects the quality. + +However, many AI editors _do_ heavily rely on tool calling and this is something that we're evaluating, particularly with upcoming MCP support. + +### Why isn't Dyad more agentic? + +Many other systems (e.g. Cursor) are much more agentic than Dyad. For example, they will call many tools and do things like create a plan, use command-line tools to search through the codebase, run linters and tests and automatically fix the code based on those output. + +Dyad, on the other hand, has a relatively simple agentic loop. We will fix TypeScript compiler errors if Auto-fix problems is enabled, but otherwise it's usually a single request to the AI. + +The biggest issue with complex agentic workflows is that they can get very expensive very quickly! It's not uncommon to see users report spending a few dollars with a single request because under the hood, that single user requests turns into dozens of LLM requests. To keep Dyad as cost-efficient as possible, we've avoided complex agentic workflows at least until the cost of LLMs is more affordable. + +### Why does Dyad send the entire codebase with each AI request? + +Sending the right context to the AI has been rightfully emphasized as important, so much so that the term ["context engineering"](https://www.philschmid.de/context-engineering) is now in vogue. + +Sending the entire codebase is the simplest approach and quite effective for small codebases. Another approach is for the user to explicitly select the part of the codebase to use as context. This can be done through the [select component](https://www.dyad.sh/docs/releases/0.8.0) feature or [manual context management](https://www.dyad.sh/docs/guides/large-apps#manual-context-management). + +However, both of these approaches require users to manually select the right files which isn't always practical. Dyad's [Smart Context](https://www.dyad.sh/docs/guides/ai-models/pro-modes#smart-context) feature essentially uses smaller models to filter out the most important files in the given chat. That said, we are constantly experimenting with new approaches to context selection as it's quite a difficult problem. + +One approach that we don't use is a more agentic-style like what Claude Code and Cursor does where it iteratively searches and navigates through a codebase using tool calls. The main reason we don't do this is due to cost (see the above question: [Why isn't Dyad more agentic](#why-isnt-dyad-more-agentic)). diff --git a/drizzle.config.ts b/drizzle.config.ts new file mode 100644 index 0000000..ee2c2ca --- /dev/null +++ b/drizzle.config.ts @@ -0,0 +1,14 @@ +import type { Config } from "drizzle-kit"; +import path from "path"; +import { getUserDataPath } from "./src/paths/paths"; + +const dbPath = path.join(getUserDataPath(), "sqlite.db"); + +export default { + schema: "./src/db/schema.ts", + out: "./drizzle", + dialect: "sqlite", + dbCredentials: { + url: dbPath, + }, +} satisfies Config; diff --git a/drizzle/0000_nebulous_proemial_gods.sql b/drizzle/0000_nebulous_proemial_gods.sql new file mode 100644 index 0000000..ec78439 --- /dev/null +++ b/drizzle/0000_nebulous_proemial_gods.sql @@ -0,0 +1,26 @@ +CREATE TABLE `apps` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `name` text NOT NULL, + `path` text NOT NULL, + `created_at` integer DEFAULT (unixepoch()) NOT NULL, + `updated_at` integer DEFAULT (unixepoch()) NOT NULL, + `github_org` text, + `github_repo` text +); +--> statement-breakpoint +CREATE TABLE `chats` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `app_id` integer NOT NULL, + `title` text, + `created_at` integer DEFAULT (unixepoch()) NOT NULL, + FOREIGN KEY (`app_id`) REFERENCES `apps`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE TABLE `messages` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `chat_id` integer NOT NULL, + `role` text NOT NULL, + `content` text NOT NULL, + `created_at` integer DEFAULT (unixepoch()) NOT NULL, + FOREIGN KEY (`chat_id`) REFERENCES `chats`(`id`) ON UPDATE no action ON DELETE cascade +); diff --git a/drizzle/0001_hesitant_roland_deschain.sql b/drizzle/0001_hesitant_roland_deschain.sql new file mode 100644 index 0000000..31a509d --- /dev/null +++ b/drizzle/0001_hesitant_roland_deschain.sql @@ -0,0 +1 @@ +ALTER TABLE `messages` ADD `approval_state` text; \ No newline at end of file diff --git a/drizzle/0002_unique_morlocks.sql b/drizzle/0002_unique_morlocks.sql new file mode 100644 index 0000000..7b904c7 --- /dev/null +++ b/drizzle/0002_unique_morlocks.sql @@ -0,0 +1 @@ +ALTER TABLE `apps` ADD `supabase_project_id` text; \ No newline at end of file diff --git a/drizzle/0003_open_bucky.sql b/drizzle/0003_open_bucky.sql new file mode 100644 index 0000000..b4d741e --- /dev/null +++ b/drizzle/0003_open_bucky.sql @@ -0,0 +1 @@ +ALTER TABLE `messages` ADD `commit_hash` text; \ No newline at end of file diff --git a/drizzle/0004_flawless_jigsaw.sql b/drizzle/0004_flawless_jigsaw.sql new file mode 100644 index 0000000..16b71da --- /dev/null +++ b/drizzle/0004_flawless_jigsaw.sql @@ -0,0 +1 @@ +ALTER TABLE `chats` ADD `initial_commit_hash` text; \ No newline at end of file diff --git a/drizzle/0005_clumsy_namor.sql b/drizzle/0005_clumsy_namor.sql new file mode 100644 index 0000000..4bbb033 --- /dev/null +++ b/drizzle/0005_clumsy_namor.sql @@ -0,0 +1,22 @@ +CREATE TABLE `language_model_providers` ( + `id` text PRIMARY KEY NOT NULL, + `name` text NOT NULL, + `api_base_url` text NOT NULL, + `env_var_name` text, + `created_at` integer DEFAULT (unixepoch()) NOT NULL, + `updated_at` integer DEFAULT (unixepoch()) NOT NULL +); +--> statement-breakpoint +CREATE TABLE `language_models` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `display_name` text NOT NULL, + `api_name` text NOT NULL, + `builtin_provider_id` text, + `custom_provider_id` text, + `description` text, + `max_output_tokens` integer, + `context_window` integer, + `created_at` integer DEFAULT (unixepoch()) NOT NULL, + `updated_at` integer DEFAULT (unixepoch()) NOT NULL, + FOREIGN KEY (`custom_provider_id`) REFERENCES `language_model_providers`(`id`) ON UPDATE no action ON DELETE cascade +); diff --git a/drizzle/0006_mushy_squirrel_girl.sql b/drizzle/0006_mushy_squirrel_girl.sql new file mode 100644 index 0000000..ff61267 --- /dev/null +++ b/drizzle/0006_mushy_squirrel_girl.sql @@ -0,0 +1 @@ +ALTER TABLE `apps` ADD `chat_context` text; \ No newline at end of file diff --git a/drizzle/0007_dapper_overlord.sql b/drizzle/0007_dapper_overlord.sql new file mode 100644 index 0000000..f6bf75f --- /dev/null +++ b/drizzle/0007_dapper_overlord.sql @@ -0,0 +1 @@ +ALTER TABLE `apps` ADD `github_branch` text; \ No newline at end of file diff --git a/drizzle/0008_medical_vulcan.sql b/drizzle/0008_medical_vulcan.sql new file mode 100644 index 0000000..23ebec5 --- /dev/null +++ b/drizzle/0008_medical_vulcan.sql @@ -0,0 +1,4 @@ +ALTER TABLE `apps` ADD `vercel_project_id` text;--> statement-breakpoint +ALTER TABLE `apps` ADD `vercel_project_name` text;--> statement-breakpoint +ALTER TABLE `apps` ADD `vercel_team_id` text;--> statement-breakpoint +ALTER TABLE `apps` ADD `vercel_deployment_url` text; \ No newline at end of file diff --git a/drizzle/0009_previous_misty_knight.sql b/drizzle/0009_previous_misty_knight.sql new file mode 100644 index 0000000..7fd0140 --- /dev/null +++ b/drizzle/0009_previous_misty_knight.sql @@ -0,0 +1,14 @@ +CREATE TABLE `versions` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `app_id` integer NOT NULL, + `commit_hash` text NOT NULL, + `neon_db_timestamp` text, + `created_at` integer DEFAULT (unixepoch()) NOT NULL, + `updated_at` integer DEFAULT (unixepoch()) NOT NULL, + FOREIGN KEY (`app_id`) REFERENCES `apps`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE UNIQUE INDEX `versions_app_commit_unique` ON `versions` (`app_id`,`commit_hash`);--> statement-breakpoint +ALTER TABLE `apps` ADD `neon_project_id` text;--> statement-breakpoint +ALTER TABLE `apps` ADD `neon_development_branch_id` text;--> statement-breakpoint +ALTER TABLE `apps` ADD `neon_preview_branch_id` text; \ No newline at end of file diff --git a/drizzle/0010_nappy_fat_cobra.sql b/drizzle/0010_nappy_fat_cobra.sql new file mode 100644 index 0000000..16cd764 --- /dev/null +++ b/drizzle/0010_nappy_fat_cobra.sql @@ -0,0 +1,2 @@ +ALTER TABLE `apps` ADD `install_command` text;--> statement-breakpoint +ALTER TABLE `apps` ADD `start_command` text; diff --git a/drizzle/0011_light_zeigeist.sql b/drizzle/0011_light_zeigeist.sql new file mode 100644 index 0000000..2b30e6c --- /dev/null +++ b/drizzle/0011_light_zeigeist.sql @@ -0,0 +1,8 @@ +CREATE TABLE `prompts` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `title` text NOT NULL, + `description` text, + `content` text NOT NULL, + `created_at` integer DEFAULT (unixepoch()) NOT NULL, + `updated_at` integer DEFAULT (unixepoch()) NOT NULL +); diff --git a/drizzle/meta/0000_snapshot.json b/drizzle/meta/0000_snapshot.json new file mode 100644 index 0000000..9de7b06 --- /dev/null +++ b/drizzle/meta/0000_snapshot.json @@ -0,0 +1,192 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "1a0ffcb3-606d-4b03-81b7-7c585555a548", + "prevId": "00000000-0000-0000-0000-000000000000", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0001_snapshot.json b/drizzle/meta/0001_snapshot.json new file mode 100644 index 0000000..e1dd202 --- /dev/null +++ b/drizzle/meta/0001_snapshot.json @@ -0,0 +1,199 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "0803dac6-46b8-4e22-8397-4840e614d6c9", + "prevId": "1a0ffcb3-606d-4b03-81b7-7c585555a548", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0002_snapshot.json b/drizzle/meta/0002_snapshot.json new file mode 100644 index 0000000..fa30bc0 --- /dev/null +++ b/drizzle/meta/0002_snapshot.json @@ -0,0 +1,206 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "e1d700a4-d507-4e2a-80dc-8dbbfd91edfd", + "prevId": "0803dac6-46b8-4e22-8397-4840e614d6c9", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0003_snapshot.json b/drizzle/meta/0003_snapshot.json new file mode 100644 index 0000000..189f647 --- /dev/null +++ b/drizzle/meta/0003_snapshot.json @@ -0,0 +1,213 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "859942b1-88b8-4a16-b2d0-77c9ece76693", + "prevId": "e1d700a4-d507-4e2a-80dc-8dbbfd91edfd", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0004_snapshot.json b/drizzle/meta/0004_snapshot.json new file mode 100644 index 0000000..ab597e0 --- /dev/null +++ b/drizzle/meta/0004_snapshot.json @@ -0,0 +1,220 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "ceedb797-6aa3-4a50-b42f-bc85ee08b3df", + "prevId": "859942b1-88b8-4a16-b2d0-77c9ece76693", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0005_snapshot.json b/drizzle/meta/0005_snapshot.json new file mode 100644 index 0000000..d8b47c6 --- /dev/null +++ b/drizzle/meta/0005_snapshot.json @@ -0,0 +1,370 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "0a47ec41-9477-4457-b3e8-e5ecb3e3a855", + "prevId": "ceedb797-6aa3-4a50-b42f-bc85ee08b3df", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_model_providers": { + "name": "language_model_providers", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_base_url": { + "name": "api_base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "env_var_name": { + "name": "env_var_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_models": { + "name": "language_models", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "display_name": { + "name": "display_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_name": { + "name": "api_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "builtin_provider_id": { + "name": "builtin_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "custom_provider_id": { + "name": "custom_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max_output_tokens": { + "name": "max_output_tokens", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "context_window": { + "name": "context_window", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "language_models_custom_provider_id_language_model_providers_id_fk": { + "name": "language_models_custom_provider_id_language_model_providers_id_fk", + "tableFrom": "language_models", + "tableTo": "language_model_providers", + "columnsFrom": [ + "custom_provider_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0006_snapshot.json b/drizzle/meta/0006_snapshot.json new file mode 100644 index 0000000..70ce5c2 --- /dev/null +++ b/drizzle/meta/0006_snapshot.json @@ -0,0 +1,377 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "164b6b9d-8df1-41f0-b3d2-5fe479312bdc", + "prevId": "0a47ec41-9477-4457-b3e8-e5ecb3e3a855", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "chat_context": { + "name": "chat_context", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_model_providers": { + "name": "language_model_providers", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_base_url": { + "name": "api_base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "env_var_name": { + "name": "env_var_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_models": { + "name": "language_models", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "display_name": { + "name": "display_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_name": { + "name": "api_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "builtin_provider_id": { + "name": "builtin_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "custom_provider_id": { + "name": "custom_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max_output_tokens": { + "name": "max_output_tokens", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "context_window": { + "name": "context_window", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "language_models_custom_provider_id_language_model_providers_id_fk": { + "name": "language_models_custom_provider_id_language_model_providers_id_fk", + "tableFrom": "language_models", + "tableTo": "language_model_providers", + "columnsFrom": [ + "custom_provider_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0007_snapshot.json b/drizzle/meta/0007_snapshot.json new file mode 100644 index 0000000..521a492 --- /dev/null +++ b/drizzle/meta/0007_snapshot.json @@ -0,0 +1,384 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "035de440-2d81-4a70-8068-ad4702c9fe32", + "prevId": "164b6b9d-8df1-41f0-b3d2-5fe479312bdc", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_branch": { + "name": "github_branch", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "chat_context": { + "name": "chat_context", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_model_providers": { + "name": "language_model_providers", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_base_url": { + "name": "api_base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "env_var_name": { + "name": "env_var_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_models": { + "name": "language_models", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "display_name": { + "name": "display_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_name": { + "name": "api_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "builtin_provider_id": { + "name": "builtin_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "custom_provider_id": { + "name": "custom_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max_output_tokens": { + "name": "max_output_tokens", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "context_window": { + "name": "context_window", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "language_models_custom_provider_id_language_model_providers_id_fk": { + "name": "language_models_custom_provider_id_language_model_providers_id_fk", + "tableFrom": "language_models", + "tableTo": "language_model_providers", + "columnsFrom": [ + "custom_provider_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0008_snapshot.json b/drizzle/meta/0008_snapshot.json new file mode 100644 index 0000000..441f283 --- /dev/null +++ b/drizzle/meta/0008_snapshot.json @@ -0,0 +1,412 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "553360d1-7173-4bb0-9f31-ab49a0010279", + "prevId": "035de440-2d81-4a70-8068-ad4702c9fe32", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_branch": { + "name": "github_branch", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_id": { + "name": "vercel_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_name": { + "name": "vercel_project_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_team_id": { + "name": "vercel_team_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_deployment_url": { + "name": "vercel_deployment_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "chat_context": { + "name": "chat_context", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_model_providers": { + "name": "language_model_providers", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_base_url": { + "name": "api_base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "env_var_name": { + "name": "env_var_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_models": { + "name": "language_models", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "display_name": { + "name": "display_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_name": { + "name": "api_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "builtin_provider_id": { + "name": "builtin_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "custom_provider_id": { + "name": "custom_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max_output_tokens": { + "name": "max_output_tokens", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "context_window": { + "name": "context_window", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "language_models_custom_provider_id_language_model_providers_id_fk": { + "name": "language_models_custom_provider_id_language_model_providers_id_fk", + "tableFrom": "language_models", + "tableTo": "language_model_providers", + "columnsFrom": [ + "custom_provider_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0009_snapshot.json b/drizzle/meta/0009_snapshot.json new file mode 100644 index 0000000..822549e --- /dev/null +++ b/drizzle/meta/0009_snapshot.json @@ -0,0 +1,510 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "4d1fc225-7395-4d56-8d0d-7f76fed4a8d8", + "prevId": "553360d1-7173-4bb0-9f31-ab49a0010279", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_branch": { + "name": "github_branch", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_project_id": { + "name": "neon_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_development_branch_id": { + "name": "neon_development_branch_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_preview_branch_id": { + "name": "neon_preview_branch_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_id": { + "name": "vercel_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_name": { + "name": "vercel_project_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_team_id": { + "name": "vercel_team_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_deployment_url": { + "name": "vercel_deployment_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "chat_context": { + "name": "chat_context", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_model_providers": { + "name": "language_model_providers", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_base_url": { + "name": "api_base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "env_var_name": { + "name": "env_var_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_models": { + "name": "language_models", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "display_name": { + "name": "display_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_name": { + "name": "api_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "builtin_provider_id": { + "name": "builtin_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "custom_provider_id": { + "name": "custom_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max_output_tokens": { + "name": "max_output_tokens", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "context_window": { + "name": "context_window", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "language_models_custom_provider_id_language_model_providers_id_fk": { + "name": "language_models_custom_provider_id_language_model_providers_id_fk", + "tableFrom": "language_models", + "tableTo": "language_model_providers", + "columnsFrom": [ + "custom_provider_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "versions": { + "name": "versions", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "neon_db_timestamp": { + "name": "neon_db_timestamp", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "versions_app_commit_unique": { + "name": "versions_app_commit_unique", + "columns": [ + "app_id", + "commit_hash" + ], + "isUnique": true + } + }, + "foreignKeys": { + "versions_app_id_apps_id_fk": { + "name": "versions_app_id_apps_id_fk", + "tableFrom": "versions", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0010_snapshot.json b/drizzle/meta/0010_snapshot.json new file mode 100644 index 0000000..bbf6ba1 --- /dev/null +++ b/drizzle/meta/0010_snapshot.json @@ -0,0 +1,524 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "a7f4a6e1-2a38-4dc8-a37e-b473b6304bab", + "prevId": "4d1fc225-7395-4d56-8d0d-7f76fed4a8d8", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_branch": { + "name": "github_branch", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_project_id": { + "name": "neon_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_development_branch_id": { + "name": "neon_development_branch_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_preview_branch_id": { + "name": "neon_preview_branch_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_id": { + "name": "vercel_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_name": { + "name": "vercel_project_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_team_id": { + "name": "vercel_team_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_deployment_url": { + "name": "vercel_deployment_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "install_command": { + "name": "install_command", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "start_command": { + "name": "start_command", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "chat_context": { + "name": "chat_context", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_model_providers": { + "name": "language_model_providers", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_base_url": { + "name": "api_base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "env_var_name": { + "name": "env_var_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_models": { + "name": "language_models", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "display_name": { + "name": "display_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_name": { + "name": "api_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "builtin_provider_id": { + "name": "builtin_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "custom_provider_id": { + "name": "custom_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max_output_tokens": { + "name": "max_output_tokens", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "context_window": { + "name": "context_window", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "language_models_custom_provider_id_language_model_providers_id_fk": { + "name": "language_models_custom_provider_id_language_model_providers_id_fk", + "tableFrom": "language_models", + "tableTo": "language_model_providers", + "columnsFrom": [ + "custom_provider_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "versions": { + "name": "versions", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "neon_db_timestamp": { + "name": "neon_db_timestamp", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "versions_app_commit_unique": { + "name": "versions_app_commit_unique", + "columns": [ + "app_id", + "commit_hash" + ], + "isUnique": true + } + }, + "foreignKeys": { + "versions_app_id_apps_id_fk": { + "name": "versions_app_id_apps_id_fk", + "tableFrom": "versions", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0011_snapshot.json b/drizzle/meta/0011_snapshot.json new file mode 100644 index 0000000..162b858 --- /dev/null +++ b/drizzle/meta/0011_snapshot.json @@ -0,0 +1,578 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "6ac2fe61-675b-4e3f-baf7-0f7d5f76bb2c", + "prevId": "a7f4a6e1-2a38-4dc8-a37e-b473b6304bab", + "tables": { + "apps": { + "name": "apps", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "github_org": { + "name": "github_org", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_repo": { + "name": "github_repo", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "github_branch": { + "name": "github_branch", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "supabase_project_id": { + "name": "supabase_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_project_id": { + "name": "neon_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_development_branch_id": { + "name": "neon_development_branch_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "neon_preview_branch_id": { + "name": "neon_preview_branch_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_id": { + "name": "vercel_project_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_project_name": { + "name": "vercel_project_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_team_id": { + "name": "vercel_team_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "vercel_deployment_url": { + "name": "vercel_deployment_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "install_command": { + "name": "install_command", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "start_command": { + "name": "start_command", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "chat_context": { + "name": "chat_context", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "chats": { + "name": "chats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "initial_commit_hash": { + "name": "initial_commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "chats_app_id_apps_id_fk": { + "name": "chats_app_id_apps_id_fk", + "tableFrom": "chats", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_model_providers": { + "name": "language_model_providers", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_base_url": { + "name": "api_base_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "env_var_name": { + "name": "env_var_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "language_models": { + "name": "language_models", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "display_name": { + "name": "display_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "api_name": { + "name": "api_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "builtin_provider_id": { + "name": "builtin_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "custom_provider_id": { + "name": "custom_provider_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max_output_tokens": { + "name": "max_output_tokens", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "context_window": { + "name": "context_window", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "language_models_custom_provider_id_language_model_providers_id_fk": { + "name": "language_models_custom_provider_id_language_model_providers_id_fk", + "tableFrom": "language_models", + "tableTo": "language_model_providers", + "columnsFrom": [ + "custom_provider_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "messages": { + "name": "messages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "chat_id": { + "name": "chat_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "approval_state": { + "name": "approval_state", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": { + "messages_chat_id_chats_id_fk": { + "name": "messages_chat_id_chats_id_fk", + "tableFrom": "messages", + "tableTo": "chats", + "columnsFrom": [ + "chat_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "prompts": { + "name": "prompts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "versions": { + "name": "versions", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "app_id": { + "name": "app_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "commit_hash": { + "name": "commit_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "neon_db_timestamp": { + "name": "neon_db_timestamp", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "versions_app_commit_unique": { + "name": "versions_app_commit_unique", + "columns": [ + "app_id", + "commit_hash" + ], + "isUnique": true + } + }, + "foreignKeys": { + "versions_app_id_apps_id_fk": { + "name": "versions_app_id_apps_id_fk", + "tableFrom": "versions", + "tableTo": "apps", + "columnsFrom": [ + "app_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json new file mode 100644 index 0000000..6662c49 --- /dev/null +++ b/drizzle/meta/_journal.json @@ -0,0 +1,90 @@ +{ + "version": "7", + "dialect": "sqlite", + "entries": [ + { + "idx": 0, + "version": "6", + "when": 1744692127560, + "tag": "0000_nebulous_proemial_gods", + "breakpoints": true + }, + { + "idx": 1, + "version": "6", + "when": 1744999922420, + "tag": "0001_hesitant_roland_deschain", + "breakpoints": true + }, + { + "idx": 2, + "version": "6", + "when": 1745359640409, + "tag": "0002_unique_morlocks", + "breakpoints": true + }, + { + "idx": 3, + "version": "6", + "when": 1746209201530, + "tag": "0003_open_bucky", + "breakpoints": true + }, + { + "idx": 4, + "version": "6", + "when": 1746556241557, + "tag": "0004_flawless_jigsaw", + "breakpoints": true + }, + { + "idx": 5, + "version": "6", + "when": 1747095436506, + "tag": "0005_clumsy_namor", + "breakpoints": true + }, + { + "idx": 6, + "version": "6", + "when": 1749515724373, + "tag": "0006_mushy_squirrel_girl", + "breakpoints": true + }, + { + "idx": 7, + "version": "6", + "when": 1750186036000, + "tag": "0007_dapper_overlord", + "breakpoints": true + }, + { + "idx": 8, + "version": "6", + "when": 1752625491756, + "tag": "0008_medical_vulcan", + "breakpoints": true + }, + { + "idx": 9, + "version": "6", + "when": 1753473275674, + "tag": "0009_previous_misty_knight", + "breakpoints": true + }, + { + "idx": 10, + "version": "6", + "when": 1755110011615, + "tag": "0010_nappy_fat_cobra", + "breakpoints": true + }, + { + "idx": 11, + "version": "6", + "when": 1755545060076, + "tag": "0011_light_zeigeist", + "breakpoints": true + } + ] +} \ No newline at end of file diff --git a/e2e-tests/1.spec.ts b/e2e-tests/1.spec.ts new file mode 100644 index 0000000..49e8b2f --- /dev/null +++ b/e2e-tests/1.spec.ts @@ -0,0 +1,9 @@ +import { expect } from "@playwright/test"; +import { test } from "./helpers/test_helper"; + +test("renders the first page", async ({ electronApp }) => { + const page = await electronApp.firstWindow(); + await page.waitForSelector("h1"); + const text = await page.$eval("h1", (el) => el.textContent); + expect(text).toBe("Build your dream app"); +}); diff --git a/e2e-tests/approve.spec.ts b/e2e-tests/approve.spec.ts new file mode 100644 index 0000000..3b2b6c2 --- /dev/null +++ b/e2e-tests/approve.spec.ts @@ -0,0 +1,18 @@ +import { testSkipIfWindows, Timeout } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +testSkipIfWindows("write to index, approve, check preview", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=write-index"); + await po.snapshotMessages(); + await po.approveProposal(); + + // Should be slightly different from above, because it will say "approved" + await po.snapshotMessages(); + + // This can be pretty slow because it's waiting for the app to build. + await expect(po.getPreviewIframeElement()).toBeVisible({ + timeout: Timeout.LONG, + }); + await po.snapshotPreview(); +}); diff --git a/e2e-tests/astro.spec.ts b/e2e-tests/astro.spec.ts new file mode 100644 index 0000000..baaf016 --- /dev/null +++ b/e2e-tests/astro.spec.ts @@ -0,0 +1,10 @@ +import { test } from "./helpers/test_helper"; + +test("astro", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.importApp("astro"); + + await po.sendPrompt("[dump] hi"); + + await po.snapshotServerDump("all-messages"); +}); diff --git a/e2e-tests/attach_image.spec.ts b/e2e-tests/attach_image.spec.ts new file mode 100644 index 0000000..46d35e4 --- /dev/null +++ b/e2e-tests/attach_image.spec.ts @@ -0,0 +1,104 @@ +import path from "path"; +import { test } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; +import * as fs from "fs"; + +// It's hard to read the snapshots, but they should be identical across +// all test cases in this file, so we use the same snapshot name to ensure +// the outputs are identical. +const SNAPSHOT_NAME = "attach-image"; + +// attach image is implemented in two separate components +// - HomeChatInput +// - ChatInput +// so we need to test both +test("attach image - home chat", async ({ po }) => { + await po.setUp(); + + await po + .getHomeChatInputContainer() + .getByTestId("chat-context-file-input") + .setInputFiles("e2e-tests/fixtures/images/logo.png"); + await po.sendPrompt("[dump]"); + await po.snapshotServerDump("last-message", { name: SNAPSHOT_NAME }); + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +test("attach image - chat", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("basic"); + + // attach via file input (click-to-upload) + await po + .getChatInputContainer() + .getByTestId("chat-context-file-input") + .setInputFiles("e2e-tests/fixtures/images/logo.png"); + await po.sendPrompt("[dump]"); + await po.snapshotServerDump("last-message", { name: SNAPSHOT_NAME }); + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +test("attach image - chat - upload to codebase", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("basic"); + + // attach via file input (click-to-upload) + await po + .getChatInputContainer() + .getByTestId("upload-to-codebase-file-input") + .setInputFiles("e2e-tests/fixtures/images/logo.png"); + await po.sendPrompt("[[UPLOAD_IMAGE_TO_CODEBASE]]"); + + await po.snapshotServerDump("last-message", { name: "upload-to-codebase" }); + await po.snapshotMessages({ replaceDumpPath: true }); + + // new/image/file.png + const appPath = await po.getCurrentAppPath(); + const filePath = path.join(appPath, "new", "image", "file.png"); + expect(fs.existsSync(filePath)).toBe(true); + // check contents of filePath is equal in value to e2e-tests/fixtures/images/logo.png + const expectedContents = fs.readFileSync( + "e2e-tests/fixtures/images/logo.png", + "base64", + ); + const actualContents = fs.readFileSync(filePath, "base64"); + expect(actualContents).toBe(expectedContents); +}); + +// attach image via drag-and-drop to chat input container +test("attach image via drag - chat", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("basic"); + // read fixture and convert to base64 for browser context + const fileBase64 = fs.readFileSync( + "e2e-tests/fixtures/images/logo.png", + "base64", + ); + // locate the inner drop target (first child div of the container) + const dropTarget = po.getChatInputContainer().locator("div").first(); + // simulate dragenter, dragover, and drop with a File + await dropTarget.evaluate((element, fileBase64) => { + // convert base64 to Uint8Array + const binary = atob(fileBase64); + const len = binary.length; + const array = new Uint8Array(len); + for (let i = 0; i < len; i++) array[i] = binary.charCodeAt(i); + // create file and dataTransfer + const blob = new Blob([array], { type: "image/png" }); + const file = new File([blob], "logo.png", { type: "image/png" }); + const dt = new DataTransfer(); + dt.items.add(file); + // dispatch drag events + ["dragenter", "dragover", "drop"].forEach((eventType) => { + element.dispatchEvent( + new DragEvent(eventType, { dataTransfer: dt, bubbles: true }), + ); + }); + }, fileBase64); + + // submit and verify + await po.sendPrompt("[dump]"); + // Note: this should match EXACTLY the server dump from the previous test. + await po.snapshotServerDump("last-message", { name: SNAPSHOT_NAME }); + await po.snapshotMessages({ replaceDumpPath: true }); +}); diff --git a/e2e-tests/auto_approve.spec.ts b/e2e-tests/auto_approve.spec.ts new file mode 100644 index 0000000..bc57eb9 --- /dev/null +++ b/e2e-tests/auto_approve.spec.ts @@ -0,0 +1,14 @@ +import { testSkipIfWindows, Timeout } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +testSkipIfWindows("auto-approve", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("tc=write-index"); + await po.snapshotMessages(); + + // This can be pretty slow because it's waiting for the app to build. + await expect(po.getPreviewIframeElement()).toBeVisible({ + timeout: Timeout.LONG, + }); + await po.snapshotPreview(); +}); diff --git a/e2e-tests/auto_update.spec.ts b/e2e-tests/auto_update.spec.ts new file mode 100644 index 0000000..f03b7ac --- /dev/null +++ b/e2e-tests/auto_update.spec.ts @@ -0,0 +1,15 @@ +import { expect } from "@playwright/test"; +import { test } from "./helpers/test_helper"; + +test("auto update - disable and enable", async ({ po }) => { + await po.goToSettingsTab(); + + await po.toggleAutoUpdate(); + await expect( + po.page.getByRole("button", { name: "Restart Dyad" }), + ).toBeVisible(); + await po.snapshotSettings(); + + await po.toggleAutoUpdate(); + await po.snapshotSettings(); +}); diff --git a/e2e-tests/backup.spec.ts b/e2e-tests/backup.spec.ts new file mode 100644 index 0000000..3994c9f --- /dev/null +++ b/e2e-tests/backup.spec.ts @@ -0,0 +1,225 @@ +import * as path from "path"; +import * as fs from "fs"; +import * as crypto from "crypto"; +import { testWithConfig, test, PageObject } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +const BACKUP_SETTINGS = { testFixture: true }; +const testWithLastVersion = testWithConfig({ + preLaunchHook: async ({ userDataDir }) => { + fs.mkdirSync(path.join(userDataDir), { recursive: true }); + fs.writeFileSync(path.join(userDataDir, ".last_version"), "0.1.0"); + fs.copyFileSync( + path.join(__dirname, "fixtures", "backups", "empty-v0.12.0-beta.1.db"), + path.join(userDataDir, "sqlite.db"), + ); + fs.writeFileSync( + path.join(userDataDir, "user-settings.json"), + JSON.stringify(BACKUP_SETTINGS, null, 2), + ); + }, +}); + +const testWithMultipleBackups = testWithConfig({ + preLaunchHook: async ({ userDataDir }) => { + fs.mkdirSync(path.join(userDataDir), { recursive: true }); + // Make sure there's a last version file so the version upgrade is detected. + fs.writeFileSync(path.join(userDataDir, ".last_version"), "0.1.0"); + fs.writeFileSync( + path.join(userDataDir, "user-settings.json"), + JSON.stringify(BACKUP_SETTINGS, null, 2), + ); + + // Create backups directory + const backupsDir = path.join(userDataDir, "backups"); + fs.mkdirSync(backupsDir, { recursive: true }); + + // Create 5 mock backup directories with different timestamps + // These timestamps are in ascending order (oldest to newest) + const mockBackups = [ + { + name: "v1.0.0_2023-01-01T10-00-00-000Z_upgrade_from_0.9.0", + timestamp: "2023-01-01T10:00:00.000Z", + version: "1.0.0", + reason: "upgrade_from_0.9.0", + }, + { + name: "v1.0.1_2023-01-02T10-00-00-000Z_upgrade_from_1.0.0", + timestamp: "2023-01-02T10:00:00.000Z", + version: "1.0.1", + reason: "upgrade_from_1.0.0", + }, + { + name: "v1.0.2_2023-01-03T10-00-00-000Z_upgrade_from_1.0.1", + timestamp: "2023-01-03T10:00:00.000Z", + version: "1.0.2", + reason: "upgrade_from_1.0.1", + }, + { + name: "v1.0.3_2023-01-04T10-00-00-000Z_upgrade_from_1.0.2", + timestamp: "2023-01-04T10:00:00.000Z", + version: "1.0.3", + reason: "upgrade_from_1.0.2", + }, + { + name: "v1.0.4_2023-01-05T10-00-00-000Z_upgrade_from_1.0.3", + timestamp: "2023-01-05T10:00:00.000Z", + version: "1.0.4", + reason: "upgrade_from_1.0.3", + }, + ]; + + // Create each backup directory with realistic structure + for (const backup of mockBackups) { + const backupPath = path.join(backupsDir, backup.name); + fs.mkdirSync(backupPath, { recursive: true }); + + // Create backup metadata + const metadata = { + version: backup.version, + timestamp: backup.timestamp, + reason: backup.reason, + files: { + settings: true, + database: true, + }, + checksums: { + settings: "mock_settings_checksum_" + backup.version, + database: "mock_database_checksum_" + backup.version, + }, + }; + + fs.writeFileSync( + path.join(backupPath, "backup.json"), + JSON.stringify(metadata, null, 2), + ); + + // Create mock backup files + fs.writeFileSync( + path.join(backupPath, "user-settings.json"), + JSON.stringify({ version: backup.version, mockData: true }, null, 2), + ); + + fs.writeFileSync( + path.join(backupPath, "sqlite.db"), + `mock_database_content_${backup.version}`, + ); + } + }, +}); + +const ensureAppIsRunning = async (po: PageObject) => { + await po.page.waitForSelector("h1"); + const text = await po.page.$eval("h1", (el) => el.textContent); + expect(text).toBe("Build your dream app"); +}; + +test("backup is not created for first run", async ({ po }) => { + await ensureAppIsRunning(po); + + expect(fs.existsSync(path.join(po.userDataDir, "backups"))).toEqual(false); +}); + +testWithLastVersion( + "backup is created if version is upgraded", + async ({ po }) => { + await ensureAppIsRunning(po); + + const backups = fs.readdirSync(path.join(po.userDataDir, "backups")); + expect(backups).toHaveLength(1); + const backupDir = path.join(po.userDataDir, "backups", backups[0]); + const backupMetadata = JSON.parse( + fs.readFileSync(path.join(backupDir, "backup.json"), "utf8"), + ); + + expect(backupMetadata.version).toBeDefined(); + expect(backupMetadata.timestamp).toBeDefined(); + expect(backupMetadata.reason).toBe("upgrade_from_0.1.0"); + expect(backupMetadata.files.settings).toBe(true); + expect(backupMetadata.files.database).toBe(true); + expect(backupMetadata.checksums.settings).toBeDefined(); + expect(backupMetadata.checksums.database).toBeDefined(); + + // Compare the backup files to the original files + const backupSettings = fs.readFileSync( + path.join(backupDir, "user-settings.json"), + "utf8", + ); + expect(backupSettings).toEqual(JSON.stringify(BACKUP_SETTINGS, null, 2)); + + // For database, verify the backup file exists and has correct checksum + const backupDbPath = path.join(backupDir, "sqlite.db"); + const originalDbPath = path.join(po.userDataDir, "sqlite.db"); + + expect(fs.existsSync(backupDbPath)).toBe(true); + expect(fs.existsSync(originalDbPath)).toBe(true); + + const backupChecksum = calculateChecksum(backupDbPath); + // Verify backup metadata contains the correct checksum + expect(backupMetadata.checksums.database).toBe(backupChecksum); + }, +); + +testWithMultipleBackups( + "backup cleanup deletes oldest backups when exceeding MAX_BACKUPS", + async ({ po }) => { + await ensureAppIsRunning(po); + + const backupsDir = path.join(po.userDataDir, "backups"); + const backups = fs.readdirSync(backupsDir); + + // Should have only 3 backups remaining (MAX_BACKUPS = 3) + expect(backups).toHaveLength(3); + + const expectedRemainingBackups = [ + "*", + // These are the two older backups + "v1.0.4_2023-01-05T10-00-00-000Z_upgrade_from_1.0.3", + "v1.0.3_2023-01-04T10-00-00-000Z_upgrade_from_1.0.2", + ]; + + // Check that the expected backups exist + for (let backup of expectedRemainingBackups) { + let expectedBackup = backup; + if (backup === "*") { + expectedBackup = backups[0]; + expect(expectedBackup.endsWith("_upgrade_from_0.1.0")).toEqual(true); + } else { + expect(backups).toContain(expectedBackup); + } + + // Verify the backup directory and metadata still exist + const backupPath = path.join(backupsDir, expectedBackup); + expect(fs.existsSync(backupPath)).toBe(true); + expect(fs.existsSync(path.join(backupPath, "backup.json"))).toBe(true); + expect(fs.existsSync(path.join(backupPath, "user-settings.json"))).toBe( + true, + ); + + // The first backup does NOT have a SQLite database because the backup + // manager is run before the DB is initialized. + expect(fs.existsSync(path.join(backupPath, "sqlite.db"))).toBe( + backup !== "*", + ); + } + + // The 2 oldest backups should have been deleted + const deletedBackups = [ + "v1.0.0_2023-01-01T10-00-00-000Z_upgrade_from_0.9.0", // oldest + "v1.0.1_2023-01-02T10-00-00-000Z_upgrade_from_1.0.0", // second oldest + "v1.0.2_2023-01-03T10-00-00-000Z_upgrade_from_1.0.1", // third oldest + ]; + + for (const deletedBackup of deletedBackups) { + expect(backups).not.toContain(deletedBackup); + expect(fs.existsSync(path.join(backupsDir, deletedBackup))).toBe(false); + } + }, +); + +function calculateChecksum(filePath: string): string { + const fileBuffer = fs.readFileSync(filePath); + const hash = crypto.createHash("sha256"); + hash.update(fileBuffer); + return hash.digest("hex"); +} diff --git a/e2e-tests/capacitor.spec.ts b/e2e-tests/capacitor.spec.ts new file mode 100644 index 0000000..d33fa6c --- /dev/null +++ b/e2e-tests/capacitor.spec.ts @@ -0,0 +1,34 @@ +import { testSkipIfWindows, Timeout } from "./helpers/test_helper"; + +testSkipIfWindows("capacitor upgrade and sync works", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("hi"); + await po.getTitleBarAppNameButton().click(); + await po.clickAppUpgradeButton({ upgradeId: "capacitor" }); + await po.expectNoAppUpgrades(); + await po.snapshotAppFiles({ name: "upgraded-capacitor" }); + + await po.page.getByTestId("capacitor-controls").waitFor({ state: "visible" }); + + // Test sync & open iOS functionality - the button contains "Sync & Open iOS" + const iosButton = po.page.getByRole("button", { name: /Sync & Open iOS/i }); + await iosButton.click(); + + // In test mode, this should complete without error and return to idle state + // Wait for the button to be enabled again (not in loading state) + await po.page + .getByText("Sync & Open iOS") + .waitFor({ state: "visible", timeout: Timeout.LONG }); + + // Test sync & open Android functionality - the button contains "Sync & Open Android" + const androidButton = po.page.getByRole("button", { + name: /Sync & Open Android/i, + }); + await androidButton.click(); + + // In test mode, this should complete without error and return to idle state + // Wait for the button to be enabled again (not in loading state) + await po.page + .getByText("Sync & Open Android") + .waitFor({ state: "visible", timeout: Timeout.LONG }); +}); diff --git a/e2e-tests/chat_mode.spec.ts b/e2e-tests/chat_mode.spec.ts new file mode 100644 index 0000000..329113b --- /dev/null +++ b/e2e-tests/chat_mode.spec.ts @@ -0,0 +1,24 @@ +import { test } from "./helpers/test_helper"; + +test("chat mode selector - default build mode", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.importApp("minimal"); + + await po.sendPrompt("[dump] hi"); + await po.waitForChatCompletion(); + + await po.snapshotServerDump("all-messages"); + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +test("chat mode selector - ask mode", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.importApp("minimal"); + + await po.selectChatMode("ask"); + await po.sendPrompt("[dump] hi"); + await po.waitForChatCompletion(); + + await po.snapshotServerDump("all-messages"); + await po.snapshotMessages({ replaceDumpPath: true }); +}); diff --git a/e2e-tests/context_manage.spec.ts b/e2e-tests/context_manage.spec.ts new file mode 100644 index 0000000..4303b11 --- /dev/null +++ b/e2e-tests/context_manage.spec.ts @@ -0,0 +1,137 @@ +import { test } from "./helpers/test_helper"; + +test("manage context - default", async ({ po }) => { + await po.setUp(); + await po.importApp("context-manage"); + + const dialog = await po.openContextFilesPicker(); + await po.snapshotDialog(); + await dialog.addManualContextFile("DELETETHIS"); + await dialog.removeManualContextFile(); + await dialog.addManualContextFile("src/**/*.ts"); + await dialog.addManualContextFile("src/sub/**"); + await po.snapshotDialog(); + await dialog.close(); + + await po.sendPrompt("[dump]"); + + await po.snapshotServerDump("all-messages"); +}); + +test("manage context - smart context", async ({ po }) => { + await po.setUpDyadPro(); + await po.selectModel({ provider: "Google", model: "Gemini 2.5 Pro" }); + await po.importApp("context-manage"); + + let dialog = await po.openContextFilesPicker(); + await po.snapshotDialog(); + + await dialog.addManualContextFile("src/**/*.ts"); + await dialog.addManualContextFile("src/sub/**"); + await dialog.addAutoIncludeContextFile("a.ts"); + await dialog.addAutoIncludeContextFile("manual/**"); + await po.snapshotDialog(); + await dialog.close(); + + await po.sendPrompt("[dump]"); + + await po.snapshotServerDump("request"); + await po.snapshotServerDump("all-messages"); + + // Disabling smart context will automatically disable + // the auto-includes. + const proModesDialog = await po.openProModesDialog(); + await proModesDialog.setSmartContextMode("off"); + await proModesDialog.close(); + + await po.sendPrompt("[dump]"); + await po.snapshotServerDump("request"); + + // Removing manual context files will result in all files being included. + dialog = await po.openContextFilesPicker(); + await dialog.removeManualContextFile(); + await dialog.removeManualContextFile(); + await dialog.close(); + + await po.sendPrompt("[dump]"); + await po.snapshotServerDump("request"); +}); + +test("manage context - smart context - auto-includes only", async ({ po }) => { + await po.setUpDyadPro(); + await po.selectModel({ provider: "Google", model: "Gemini 2.5 Pro" }); + await po.importApp("context-manage"); + + const dialog = await po.openContextFilesPicker(); + await po.snapshotDialog(); + + await dialog.addAutoIncludeContextFile("a.ts"); + await dialog.addAutoIncludeContextFile("manual/**"); + await po.snapshotDialog(); + await dialog.close(); + + await po.sendPrompt("[dump]"); + + await po.snapshotServerDump("request"); +}); + +test("manage context - exclude paths", async ({ po }) => { + await po.setUp(); + await po.importApp("context-manage"); + + const dialog = await po.openContextFilesPicker(); + await po.snapshotDialog(); + + // Add some include paths first + await dialog.addManualContextFile("src/**/*.ts"); + await dialog.addManualContextFile("manual/**"); + + // Add exclude paths + await dialog.addExcludeContextFile("src/components/**"); + await dialog.addExcludeContextFile("manual/exclude/**"); + await po.snapshotDialog(); + await dialog.close(); + + await po.sendPrompt("[dump]"); + await po.snapshotServerDump("all-messages", { name: "exclude-paths-basic" }); + + // Test that exclude paths take precedence over include paths + const dialog2 = await po.openContextFilesPicker(); + await dialog2.removeExcludeContextFile(); // Remove src/components/** + await dialog2.addExcludeContextFile("src/**"); // This should exclude everything from src + await po.snapshotDialog(); + await dialog2.close(); + + await po.sendPrompt("[dump]"); + await po.snapshotServerDump("all-messages", { + name: "exclude-paths-precedence", + }); +}); + +test("manage context - exclude paths with smart context", async ({ po }) => { + await po.setUpDyadPro(); + await po.selectModel({ provider: "Google", model: "Gemini 2.5 Pro" }); + await po.importApp("context-manage"); + + const dialog = await po.openContextFilesPicker(); + await po.snapshotDialog(); + + // Add manual context files + await dialog.addManualContextFile("src/**/*.ts"); + await dialog.addManualContextFile("manual/**"); + + // Add smart context auto-includes + await dialog.addAutoIncludeContextFile("a.ts"); + await dialog.addAutoIncludeContextFile("exclude/**"); + + // Add exclude paths that should filter out some of the above + await dialog.addExcludeContextFile("src/components/**"); + await dialog.addExcludeContextFile("exclude/exclude.ts"); + await po.snapshotDialog(); + await dialog.close(); + + await po.sendPrompt("[dump]"); + await po.snapshotServerDump("all-messages", { + name: "exclude-paths-with-smart-context", + }); +}); diff --git a/e2e-tests/context_window.spec.ts b/e2e-tests/context_window.spec.ts new file mode 100644 index 0000000..40c9d43 --- /dev/null +++ b/e2e-tests/context_window.spec.ts @@ -0,0 +1,27 @@ +import { testSkipIfWindows } from "./helpers/test_helper"; + +testSkipIfWindows("context window", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=1"); + await po.sendPrompt("tc=2"); + await po.sendPrompt("[dump] tc=3"); + await po.snapshotServerDump(); + await po.sendPrompt("[dump] tc=4"); + await po.snapshotServerDump(); + await po.sendPrompt("[dump] tc=5"); + await po.snapshotServerDump(); + + await po.goToSettingsTab(); + await po.page + .getByRole("combobox", { name: "Maximum number of chat turns" }) + .click(); + await po.page.getByRole("option", { name: "Plus (5)" }).click(); + + // close combobox + // await po.page.keyboard.press("Escape"); + await po.snapshotSettings(); + await po.page.getByText("Go Back").click(); + + await po.sendPrompt("[dump] tc=6"); + await po.snapshotServerDump(); +}); diff --git a/e2e-tests/copy_app.spec.ts b/e2e-tests/copy_app.spec.ts new file mode 100644 index 0000000..520c27e --- /dev/null +++ b/e2e-tests/copy_app.spec.ts @@ -0,0 +1,52 @@ +import { expect } from "@playwright/test"; +import { test, Timeout } from "./helpers/test_helper"; + +const tests = [ + { + testName: "with history", + newAppName: "copied-app-with-history", + buttonName: "Copy app with history", + expectedVersion: "Version 2", + }, + { + testName: "without history", + newAppName: "copied-app-without-history", + buttonName: "Copy app without history", + expectedVersion: "Version 1", + }, +]; + +for (const { testName, newAppName, buttonName, expectedVersion } of tests) { + test(`copy app ${testName}`, async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("hi"); + await po.snapshotAppFiles({ name: "app" }); + + await po.getTitleBarAppNameButton().click(); + + // Open the dropdown menu + await po.clickAppDetailsMoreOptions(); + await po.clickAppDetailsCopyAppButton(); + + await po.page.getByLabel("New app name").fill(newAppName); + + // Click the "Copy app" button + await po.page.getByRole("button", { name: buttonName }).click(); + + // Expect to be on the new app's detail page + await expect( + po.page.getByRole("heading", { name: newAppName }), + ).toBeVisible({ + // Potentially takes a while for the copy to complete + timeout: Timeout.MEDIUM, + }); + + const currentAppName = await po.getCurrentAppName(); + expect(currentAppName).toBe(newAppName); + + await po.clickOpenInChatButton(); + + await expect(po.page.getByText(expectedVersion)).toBeVisible(); + await po.snapshotAppFiles({ name: "app" }); + }); +} diff --git a/e2e-tests/delete_app.spec.ts b/e2e-tests/delete_app.spec.ts new file mode 100644 index 0000000..82e42f0 --- /dev/null +++ b/e2e-tests/delete_app.spec.ts @@ -0,0 +1,27 @@ +import fs from "fs"; +import { testSkipIfWindows } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +testSkipIfWindows("delete app", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("hi"); + const appName = await po.getCurrentAppName(); + if (!appName) { + throw new Error("App name not found"); + } + const appPath = await po.getCurrentAppPath(); + await po.getTitleBarAppNameButton().click(); + await expect(po.getAppListItem({ appName })).toBeVisible(); + + // Delete app + await po.clickAppDetailsMoreOptions(); + // Open delete dialog + await po.page.getByRole("button", { name: "Delete" }).click(); + // Confirm delete + await po.page.getByRole("button", { name: "Delete App" }).click(); + + // Make sure the app is deleted + await po.isCurrentAppNameNone(); + expect(fs.existsSync(appPath)).toBe(false); + expect(po.getAppListItem({ appName })).not.toBeVisible(); +}); diff --git a/e2e-tests/delete_provider.spec.ts b/e2e-tests/delete_provider.spec.ts new file mode 100644 index 0000000..9348056 --- /dev/null +++ b/e2e-tests/delete_provider.spec.ts @@ -0,0 +1,12 @@ +import { test } from "./helpers/test_helper"; + +test("delete custom provider should not freeze", async ({ po }) => { + await po.setUp(); + await po.goToSettingsTab(); + await po.page.getByTestId("custom-provider-more-options").click(); + await po.page.getByRole("button", { name: "Delete Provider" }).click(); + await po.page.getByRole("button", { name: "Delete Provider" }).click(); + + // Make sure UI hasn't freezed + await po.goToAppsTab(); +}); diff --git a/e2e-tests/dump_messages.spec.ts b/e2e-tests/dump_messages.spec.ts new file mode 100644 index 0000000..a2dd3ef --- /dev/null +++ b/e2e-tests/dump_messages.spec.ts @@ -0,0 +1,8 @@ +import { test } from "./helpers/test_helper"; + +// This is useful to make sure the messages are being sent correctly. +test("dump messages", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("[dump]"); + await po.snapshotServerDump(); +}); diff --git a/e2e-tests/dyad_tags_parsing.spec.ts b/e2e-tests/dyad_tags_parsing.spec.ts new file mode 100644 index 0000000..8924008 --- /dev/null +++ b/e2e-tests/dyad_tags_parsing.spec.ts @@ -0,0 +1,8 @@ +import { testSkipIfWindows } from "./helpers/test_helper"; + +testSkipIfWindows("dyad tags handles nested < tags", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.importApp("minimal"); + await po.sendPrompt("tc=dyad-write-angle"); + await po.snapshotAppFiles({ name: "angle-tags-handled" }); +}); diff --git a/e2e-tests/edit_code.spec.ts b/e2e-tests/edit_code.spec.ts new file mode 100644 index 0000000..fa1bb4a --- /dev/null +++ b/e2e-tests/edit_code.spec.ts @@ -0,0 +1,84 @@ +import { test } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; +import fs from "fs"; +import path from "path"; + +test("edit code", async ({ po }) => { + const editedFilePath = path.join("src", "components", "made-with-dyad.tsx"); + await po.sendPrompt("foo"); + const appPath = await po.getCurrentAppPath(); + + await po.clickTogglePreviewPanel(); + + await po.selectPreviewMode("code"); + await po.page.getByText("made-with-dyad.tsx").click(); + await po.page + .getByRole("code") + .locator("div") + .filter({ hasText: "export const" }) + .nth(4) + .click(); + await po.page + .getByRole("textbox", { name: "Editor content" }) + .fill("export const MadeWithDyad = ;"); + + // Save the file + await po.page.getByTestId("save-file-button").click(); + + // Expect toast to be visible + await expect(po.page.getByText("File saved")).toBeVisible(); + + // We are NOT snapshotting the app files because the Monaco UI edit + // is not deterministic. + const editedFile = fs.readFileSync( + path.join(appPath, editedFilePath), + "utf8", + ); + expect(editedFile).toContain("export const MadeWithDyad = ;"); +}); + +test("edit code edits the right file", async ({ po }) => { + const editedFilePath = path.join("src", "components", "made-with-dyad.tsx"); + const robotsFilePath = path.join("public", "robots.txt"); + await po.sendPrompt("foo"); + const appPath = await po.getCurrentAppPath(); + const originalRobotsFile = fs.readFileSync( + path.join(appPath, robotsFilePath), + "utf8", + ); + + await po.clickTogglePreviewPanel(); + + await po.selectPreviewMode("code"); + await po.page.getByText("made-with-dyad.tsx").click(); + await po.page + .getByRole("code") + .locator("div") + .filter({ hasText: "export const" }) + .nth(4) + .click(); + await po.page + .getByRole("textbox", { name: "Editor content" }) + .fill("export const MadeWithDyad = ;"); + + // Save the file by switching files + await po.page.getByText("robots.txt").click(); + + // Expect toast to be visible + await expect(po.page.getByText("File saved")).toBeVisible(); + + // We are NOT snapshotting the app files because the Monaco UI edit + // is not deterministic. + const editedFile = fs.readFileSync( + path.join(appPath, editedFilePath), + "utf8", + ); + expect(editedFile).toContain("export const MadeWithDyad = ;"); + + // Make sure the robots.txt file is not edited + const editedRobotsFile = fs.readFileSync( + path.join(appPath, robotsFilePath), + "utf8", + ); + expect(editedRobotsFile).toEqual(originalRobotsFile); +}); diff --git a/e2e-tests/edit_custom_models.spec.ts b/e2e-tests/edit_custom_models.spec.ts new file mode 100644 index 0000000..e2092cc --- /dev/null +++ b/e2e-tests/edit_custom_models.spec.ts @@ -0,0 +1,55 @@ +import { test } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +test("edit custom model", async ({ po }) => { + await po.setUp(); + await po.goToSettingsTab(); + await po.page.getByText("test-provider").click(); + + // test edit model by double clicking the model panel + await po.page + .locator(".text-lg.font-semibold", { hasText: "test-model" }) + .dblclick({ delay: 100 }); + await po.page.locator("#edit-model-id").clear(); + await po.page.locator("#edit-model-id").fill("new-model-id"); + await po.page.locator("#edit-model-name").clear(); + await po.page.locator("#edit-model-name").fill("new-model-name"); + await po.page.getByRole("button", { name: "Update Model" }).click(); + + // assert that the model was updated + await po.page + .locator(".text-lg.font-semibold", { hasText: "new-model-name" }) + .dblclick({ delay: 100 }); + await expect(po.page.locator("#edit-model-id")).toHaveValue("new-model-id"); + await expect(po.page.locator("#edit-model-name")).toHaveValue( + "new-model-name", + ); + await po.page.getByRole("button", { name: "Cancel" }).click(); + + // test edit model by clicking the edit button + await po.page + .locator('button svg path[d*="M11 5H6a2"]') + .locator("..") + .locator("..") + .click(); + await po.page.locator("#edit-model-id").clear(); + await po.page.locator("#edit-model-id").fill("another-model-id"); + await po.page.locator("#edit-model-name").clear(); + await po.page.locator("#edit-model-name").fill("another-model-name"); + await po.page.getByRole("button", { name: "Update Model" }).click(); + + // assert that the model was updated + await po.page + .locator(".text-lg.font-semibold", { hasText: "another-model-name" }) + .dblclick({ delay: 100 }); + await expect(po.page.locator("#edit-model-id")).toHaveValue( + "another-model-id", + ); + await expect(po.page.locator("#edit-model-name")).toHaveValue( + "another-model-name", + ); + await po.page.getByRole("button", { name: "Cancel" }).click(); + + // Make sure UI hasn't freezed + await po.goToAppsTab(); +}); diff --git a/e2e-tests/engine.spec.ts b/e2e-tests/engine.spec.ts new file mode 100644 index 0000000..4964d03 --- /dev/null +++ b/e2e-tests/engine.spec.ts @@ -0,0 +1,77 @@ +import { testSkipIfWindows } from "./helpers/test_helper"; + +testSkipIfWindows("send message to engine", async ({ po }) => { + await po.setUpDyadPro(); + await po.selectModel({ provider: "Google", model: "Gemini 2.5 Pro" }); + await po.sendPrompt("[dump] tc=turbo-edits"); + + await po.snapshotServerDump("request"); + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +testSkipIfWindows( + "send message to engine - smart context balanced", + async ({ po }) => { + await po.setUpDyadPro(); + const proModesDialog = await po.openProModesDialog({ + location: "home-chat-input-container", + }); + await proModesDialog.setSmartContextMode("balanced"); + await proModesDialog.close(); + await po.selectModel({ provider: "Google", model: "Gemini 2.5 Pro" }); + await po.sendPrompt("[dump] tc=turbo-edits"); + + await po.snapshotServerDump("request"); + await po.snapshotMessages({ replaceDumpPath: true }); + }, +); + +testSkipIfWindows("send message to engine - openai gpt-4.1", async ({ po }) => { + await po.setUpDyadPro(); + // By default, it's using auto which points to Flash 2.5 and doesn't + // use engine. + await po.selectModel({ provider: "OpenAI", model: "GPT 4.1" }); + await po.sendPrompt("[dump] tc=turbo-edits"); + + await po.snapshotServerDump("request"); +}); + +testSkipIfWindows( + "send message to engine - anthropic claude sonnet 4", + async ({ po }) => { + await po.setUpDyadPro(); + // By default, it's using auto which points to Flash 2.5 and doesn't + // use engine. + await po.selectModel({ provider: "Anthropic", model: "Claude 4 Sonnet" }); + await po.sendPrompt("[dump] tc=turbo-edits"); + + await po.snapshotServerDump("request"); + }, +); + +testSkipIfWindows( + "smart auto should send message to engine", + async ({ po }) => { + await po.setUpDyadPro(); + await po.sendPrompt("[dump] tc=turbo-edits"); + + await po.snapshotServerDump("request"); + await po.snapshotMessages({ replaceDumpPath: true }); + }, +); + +testSkipIfWindows( + "regular auto should send message to engine", + async ({ po }) => { + await po.setUpDyadPro(); + const proModesDialog = await po.openProModesDialog({ + location: "home-chat-input-container", + }); + await proModesDialog.setSmartContextMode("off"); + await proModesDialog.close(); + await po.sendPrompt("[dump] tc=turbo-edits"); + + await po.snapshotServerDump("request"); + await po.snapshotMessages({ replaceDumpPath: true }); + }, +); diff --git a/e2e-tests/env_var.spec.ts b/e2e-tests/env_var.spec.ts new file mode 100644 index 0000000..d9af7f0 --- /dev/null +++ b/e2e-tests/env_var.spec.ts @@ -0,0 +1,62 @@ +import { expect } from "@playwright/test"; +import { test } from "./helpers/test_helper"; +import path from "path"; +import fs from "fs"; + +test("env var", async ({ po }) => { + await po.sendPrompt("tc=1"); + const appPath = await po.getCurrentAppPath(); + + await po.selectPreviewMode("configure"); + + // Create a new env var + await po.page + .getByRole("button", { name: "Add Environment Variable" }) + .click(); + await po.page.getByRole("textbox", { name: "Key" }).click(); + await po.page.getByRole("textbox", { name: "Key" }).fill("aKey"); + + await po.page.getByRole("textbox", { name: "Value" }).click(); + await po.page.getByRole("textbox", { name: "Value" }).fill("aValue"); + + await po.page.getByRole("button", { name: "Save" }).click(); + await snapshotEnvVar({ appPath, name: "create-aKey" }); + + // Create second env var + await po.page + .getByRole("button", { name: "Add Environment Variable" }) + .click(); + await po.page.getByRole("textbox", { name: "Key" }).click(); + await po.page.getByRole("textbox", { name: "Key" }).fill("bKey"); + + await po.page.getByRole("textbox", { name: "Value" }).click(); + await po.page.getByRole("textbox", { name: "Value" }).fill("bValue"); + + await po.page.getByRole("button", { name: "Save" }).click(); + await snapshotEnvVar({ appPath, name: "create-bKey" }); + + // Edit second env var + await po.page.getByTestId("edit-env-var-bKey").click(); + await po.page.getByRole("textbox", { name: "Value" }).click(); + await po.page.getByRole("textbox", { name: "Value" }).fill("bValue2"); + await po.page.getByTestId("save-edit-env-var").click(); + await snapshotEnvVar({ appPath, name: "edit-bKey" }); + + // Delete first env var + await po.page.getByTestId("delete-env-var-aKey").click(); + await snapshotEnvVar({ appPath, name: "delete-aKey" }); +}); + +async function snapshotEnvVar({ + appPath, + name, +}: { + appPath: string; + name: string; +}) { + expect(() => { + const envFile = path.join(appPath, ".env.local"); + const envFileContent = fs.readFileSync(envFile, "utf8"); + expect(envFileContent).toMatchSnapshot({ name }); + }).toPass(); +} diff --git a/e2e-tests/fix_error.spec.ts b/e2e-tests/fix_error.spec.ts new file mode 100644 index 0000000..08f7202 --- /dev/null +++ b/e2e-tests/fix_error.spec.ts @@ -0,0 +1,21 @@ +import { testSkipIfWindows } from "./helpers/test_helper"; + +testSkipIfWindows("fix error with AI", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("tc=create-error"); + + await po.snapshotPreviewErrorBanner(); + + await po.page.getByText("Error Line 6 error", { exact: true }).click(); + await po.snapshotPreviewErrorBanner(); + + await po.clickFixErrorWithAI(); + await po.waitForChatCompletion(); + await po.snapshotMessages(); + + // TODO: this is an actual bug where the error banner should not + // be shown, however there's some kind of race condition and + // we don't reliably detect when the HMR update has completed. + // await po.locatePreviewErrorBanner().waitFor({ state: "hidden" }); + await po.snapshotPreview(); +}); diff --git a/e2e-tests/fixtures/1.md b/e2e-tests/fixtures/1.md new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/e2e-tests/fixtures/1.md @@ -0,0 +1 @@ +1 diff --git a/e2e-tests/fixtures/2.md b/e2e-tests/fixtures/2.md new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/e2e-tests/fixtures/2.md @@ -0,0 +1 @@ +2 diff --git a/e2e-tests/fixtures/3.md b/e2e-tests/fixtures/3.md new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/e2e-tests/fixtures/3.md @@ -0,0 +1 @@ +3 diff --git a/e2e-tests/fixtures/4.md b/e2e-tests/fixtures/4.md new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/e2e-tests/fixtures/4.md @@ -0,0 +1 @@ +4 diff --git a/e2e-tests/fixtures/5.md b/e2e-tests/fixtures/5.md new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/e2e-tests/fixtures/5.md @@ -0,0 +1 @@ +5 diff --git a/e2e-tests/fixtures/6.md b/e2e-tests/fixtures/6.md new file mode 100644 index 0000000..1e8b314 --- /dev/null +++ b/e2e-tests/fixtures/6.md @@ -0,0 +1 @@ +6 diff --git a/e2e-tests/fixtures/add-supabase.md b/e2e-tests/fixtures/add-supabase.md new file mode 100644 index 0000000..0e924a2 --- /dev/null +++ b/e2e-tests/fixtures/add-supabase.md @@ -0,0 +1,2 @@ +Adding supabase... + diff --git a/e2e-tests/fixtures/backups/empty-v0.12.0-beta.1.db b/e2e-tests/fixtures/backups/empty-v0.12.0-beta.1.db new file mode 100644 index 0000000..14faf9e Binary files /dev/null and b/e2e-tests/fixtures/backups/empty-v0.12.0-beta.1.db differ diff --git a/e2e-tests/fixtures/basic.md b/e2e-tests/fixtures/basic.md new file mode 100644 index 0000000..668dfa6 --- /dev/null +++ b/e2e-tests/fixtures/basic.md @@ -0,0 +1 @@ +This is a simple basic response diff --git a/e2e-tests/fixtures/chat1.md b/e2e-tests/fixtures/chat1.md new file mode 100644 index 0000000..bad12d4 --- /dev/null +++ b/e2e-tests/fixtures/chat1.md @@ -0,0 +1,3 @@ +chat1 + +Chat 1 diff --git a/e2e-tests/fixtures/chat2.md b/e2e-tests/fixtures/chat2.md new file mode 100644 index 0000000..fd0f067 --- /dev/null +++ b/e2e-tests/fixtures/chat2.md @@ -0,0 +1,3 @@ +chat2 + +Chat 2 diff --git a/e2e-tests/fixtures/create-error.md b/e2e-tests/fixtures/create-error.md new file mode 100644 index 0000000..d5ed315 --- /dev/null +++ b/e2e-tests/fixtures/create-error.md @@ -0,0 +1,25 @@ +I will intentionally add an error + + +// Update this page (the content is just a fallback if you fail to update the page) + +import { MadeWithDyad } from "@/components/made-with-dyad"; + +const Index = () => { +throw new Error("Line 6 error"); +return ( + +
+
+

Welcome to Your Blank App

+

+Start building your amazing project here! +

+
+ +
+); +}; + +export default Index; +
diff --git a/e2e-tests/fixtures/create-ts-errors-complex.md b/e2e-tests/fixtures/create-ts-errors-complex.md new file mode 100644 index 0000000..b7b9c63 --- /dev/null +++ b/e2e-tests/fixtures/create-ts-errors-complex.md @@ -0,0 +1,9 @@ +Tests delete-rename-write order + + + + + +finalMainTsxFileWithError(); + +EOM diff --git a/e2e-tests/fixtures/create-ts-errors.md b/e2e-tests/fixtures/create-ts-errors.md new file mode 100644 index 0000000..247d495 --- /dev/null +++ b/e2e-tests/fixtures/create-ts-errors.md @@ -0,0 +1,10 @@ +This will get a TypeScript error. + + +import NonExistentClass from 'non-existent-class'; + +const x = new Object(); +x.nonExistentMethod(); + + +EOM diff --git a/e2e-tests/fixtures/create-unfixable-ts-errors.md b/e2e-tests/fixtures/create-unfixable-ts-errors.md new file mode 100644 index 0000000..b7f59b0 --- /dev/null +++ b/e2e-tests/fixtures/create-unfixable-ts-errors.md @@ -0,0 +1,11 @@ +This should not get fixed + + +import NonExistentClass from 'non-existent-class'; +import NonExistentClass2 from 'non-existent-class'; +import NonExistentClass3 from 'non-existent-class'; +import NonExistentClass4 from 'non-existent-class'; +import NonExistentClass5 from 'non-existent-class'; + + +EOM diff --git a/e2e-tests/fixtures/dyad-write-angle.md b/e2e-tests/fixtures/dyad-write-angle.md new file mode 100644 index 0000000..6712537 --- /dev/null +++ b/e2e-tests/fixtures/dyad-write-angle.md @@ -0,0 +1,5 @@ +BEFORE TAG + +// BEGINNING OF FILE + +AFTER TAG diff --git a/e2e-tests/fixtures/edit-made-with-dyad.md b/e2e-tests/fixtures/edit-made-with-dyad.md new file mode 100644 index 0000000..18c98cd --- /dev/null +++ b/e2e-tests/fixtures/edit-made-with-dyad.md @@ -0,0 +1,16 @@ + +export const MadeWithDyad = () => { + return ( + + ); +}; + diff --git a/e2e-tests/fixtures/engine/turbo-edits.md b/e2e-tests/fixtures/engine/turbo-edits.md new file mode 100644 index 0000000..b564c89 --- /dev/null +++ b/e2e-tests/fixtures/engine/turbo-edits.md @@ -0,0 +1,8 @@ +Example with turbo edit + + + + +"making some edits" + +End of turbo edit diff --git a/e2e-tests/fixtures/execute-sql-1.md b/e2e-tests/fixtures/execute-sql-1.md new file mode 100644 index 0000000..82fa7ba --- /dev/null +++ b/e2e-tests/fixtures/execute-sql-1.md @@ -0,0 +1,7 @@ +Example SQL + + +CREATE TABLE users (id serial primary key); + + +Done. diff --git a/e2e-tests/fixtures/execute-sql-no-description.md b/e2e-tests/fixtures/execute-sql-no-description.md new file mode 100644 index 0000000..cc709f2 --- /dev/null +++ b/e2e-tests/fixtures/execute-sql-no-description.md @@ -0,0 +1,7 @@ +No description! + + +DROP TABLE users; + + +Done. diff --git a/e2e-tests/fixtures/gateway/gateway-simple.md b/e2e-tests/fixtures/gateway/gateway-simple.md new file mode 100644 index 0000000..551817c --- /dev/null +++ b/e2e-tests/fixtures/gateway/gateway-simple.md @@ -0,0 +1 @@ +Simple-response-from-gateway diff --git a/e2e-tests/fixtures/generate-supabase-client.md b/e2e-tests/fixtures/generate-supabase-client.md new file mode 100644 index 0000000..f85c0af --- /dev/null +++ b/e2e-tests/fixtures/generate-supabase-client.md @@ -0,0 +1,5 @@ +BEGIN + +$$SUPABASE_CLIENT_CODE$$ + +END diff --git a/e2e-tests/fixtures/images/logo.png b/e2e-tests/fixtures/images/logo.png new file mode 100644 index 0000000..7f90ff4 Binary files /dev/null and b/e2e-tests/fixtures/images/logo.png differ diff --git a/e2e-tests/fixtures/import-app/astro/.gitignore b/e2e-tests/fixtures/import-app/astro/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/e2e-tests/fixtures/import-app/astro/index.html b/e2e-tests/fixtures/import-app/astro/index.html new file mode 100644 index 0000000..6595328 --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/index.html @@ -0,0 +1,13 @@ + + + + + + dyad-generated-app + + + +
+ + + diff --git a/e2e-tests/fixtures/import-app/astro/package.json b/e2e-tests/fixtures/import-app/astro/package.json new file mode 100644 index 0000000..1bfaa09 --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/package.json @@ -0,0 +1,25 @@ +{ + "name": "vite_react_shadcn_ts", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "build:dev": "vite build --mode development", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@types/node": "^22.5.5", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@vitejs/plugin-react-swc": "^3.9.0", + "typescript": "^5.5.3", + "vite": "^6.3.4" + } +} diff --git a/e2e-tests/fixtures/import-app/astro/pnpm-lock.yaml b/e2e-tests/fixtures/import-app/astro/pnpm-lock.yaml new file mode 100644 index 0000000..c8b26d2 --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/pnpm-lock.yaml @@ -0,0 +1,838 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + react: + specifier: ^18.3.1 + version: 18.3.1 + react-dom: + specifier: ^18.3.1 + version: 18.3.1(react@18.3.1) + devDependencies: + '@types/node': + specifier: ^22.5.5 + version: 22.15.29 + '@types/react': + specifier: ^18.3.3 + version: 18.3.23 + '@types/react-dom': + specifier: ^18.3.0 + version: 18.3.7(@types/react@18.3.23) + '@vitejs/plugin-react-swc': + specifier: ^3.9.0 + version: 3.10.0(vite@6.3.5(@types/node@22.15.29)) + typescript: + specifier: ^5.5.3 + version: 5.8.3 + vite: + specifier: ^6.3.4 + version: 6.3.5(@types/node@22.15.29) + +packages: + + '@esbuild/aix-ppc64@0.25.5': + resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.5': + resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.5': + resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.5': + resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.5': + resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.5': + resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.5': + resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.5': + resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.5': + resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.5': + resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.5': + resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.5': + resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.5': + resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.5': + resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.5': + resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.5': + resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.5': + resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.5': + resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.5': + resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.5': + resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.5': + resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.25.5': + resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.5': + resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.5': + resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.5': + resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.0-beta.9': + resolution: {integrity: sha512-e9MeMtVWo186sgvFFJOPGy7/d2j2mZhLJIdVW0C/xDluuOvymEATqz6zKsP0ZmXGzQtqlyjz5sC1sYQUoJG98w==} + + '@rollup/rollup-android-arm-eabi@4.41.1': + resolution: {integrity: sha512-NELNvyEWZ6R9QMkiytB4/L4zSEaBC03KIXEghptLGLZWJ6VPrL63ooZQCOnlx36aQPGhzuOMwDerC1Eb2VmrLw==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.41.1': + resolution: {integrity: sha512-DXdQe1BJ6TK47ukAoZLehRHhfKnKg9BjnQYUu9gzhI8Mwa1d2fzxA1aw2JixHVl403bwp1+/o/NhhHtxWJBgEA==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.41.1': + resolution: {integrity: sha512-5afxvwszzdulsU2w8JKWwY8/sJOLPzf0e1bFuvcW5h9zsEg+RQAojdW0ux2zyYAz7R8HvvzKCjLNJhVq965U7w==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.41.1': + resolution: {integrity: sha512-egpJACny8QOdHNNMZKf8xY0Is6gIMz+tuqXlusxquWu3F833DcMwmGM7WlvCO9sB3OsPjdC4U0wHw5FabzCGZg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.41.1': + resolution: {integrity: sha512-DBVMZH5vbjgRk3r0OzgjS38z+atlupJ7xfKIDJdZZL6sM6wjfDNo64aowcLPKIx7LMQi8vybB56uh1Ftck/Atg==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.41.1': + resolution: {integrity: sha512-3FkydeohozEskBxNWEIbPfOE0aqQgB6ttTkJ159uWOFn42VLyfAiyD9UK5mhu+ItWzft60DycIN1Xdgiy8o/SA==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + resolution: {integrity: sha512-wC53ZNDgt0pqx5xCAgNunkTzFE8GTgdZ9EwYGVcg+jEjJdZGtq9xPjDnFgfFozQI/Xm1mh+D9YlYtl+ueswNEg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + resolution: {integrity: sha512-jwKCca1gbZkZLhLRtsrka5N8sFAaxrGz/7wRJ8Wwvq3jug7toO21vWlViihG85ei7uJTpzbXZRcORotE+xyrLA==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + resolution: {integrity: sha512-g0UBcNknsmmNQ8V2d/zD2P7WWfJKU0F1nu0k5pW4rvdb+BIqMm8ToluW/eeRmxCared5dD76lS04uL4UaNgpNA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.41.1': + resolution: {integrity: sha512-XZpeGB5TKEZWzIrj7sXr+BEaSgo/ma/kCgrZgL0oo5qdB1JlTzIYQKel/RmhT6vMAvOdM2teYlAaOGJpJ9lahg==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + resolution: {integrity: sha512-bkCfDJ4qzWfFRCNt5RVV4DOw6KEgFTUZi2r2RuYhGWC8WhCA8lCAJhDeAmrM/fdiAH54m0mA0Vk2FGRPyzI+tw==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + resolution: {integrity: sha512-3mr3Xm+gvMX+/8EKogIZSIEF0WUu0HL9di+YWlJpO8CQBnoLAEL/roTCxuLncEdgcfJcvA4UMOf+2dnjl4Ut1A==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + resolution: {integrity: sha512-3rwCIh6MQ1LGrvKJitQjZFuQnT2wxfU+ivhNBzmxXTXPllewOF7JR1s2vMX/tWtUYFgphygxjqMl76q4aMotGw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + resolution: {integrity: sha512-LdIUOb3gvfmpkgFZuccNa2uYiqtgZAz3PTzjuM5bH3nvuy9ty6RGc/Q0+HDFrHrizJGVpjnTZ1yS5TNNjFlklw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + resolution: {integrity: sha512-oIE6M8WC9ma6xYqjvPhzZYk6NbobIURvP/lEbh7FWplcMO6gn7MM2yHKA1eC/GvYwzNKK/1LYgqzdkZ8YFxR8g==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.41.1': + resolution: {integrity: sha512-cWBOvayNvA+SyeQMp79BHPK8ws6sHSsYnK5zDcsC3Hsxr1dgTABKjMnMslPq1DvZIp6uO7kIWhiGwaTdR4Og9A==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.41.1': + resolution: {integrity: sha512-y5CbN44M+pUCdGDlZFzGGBSKCA4A/J2ZH4edTYSSxFg7ce1Xt3GtydbVKWLlzL+INfFIZAEg1ZV6hh9+QQf9YQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + resolution: {integrity: sha512-lZkCxIrjlJlMt1dLO/FbpZbzt6J/A8p4DnqzSa4PWqPEUUUnzXLeki/iyPLfV0BmHItlYgHUqJe+3KiyydmiNQ==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + resolution: {integrity: sha512-+psFT9+pIh2iuGsxFYYa/LhS5MFKmuivRsx9iPJWNSGbh2XVEjk90fmpUEjCnILPEPJnikAU6SFDiEUyOv90Pg==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.41.1': + resolution: {integrity: sha512-Wq2zpapRYLfi4aKxf2Xff0tN+7slj2d4R87WEzqw7ZLsVvO5zwYCIuEGSZYiK41+GlwUo1HiR+GdkLEJnCKTCw==} + cpu: [x64] + os: [win32] + + '@swc/core-darwin-arm64@1.11.29': + resolution: {integrity: sha512-whsCX7URzbuS5aET58c75Dloby3Gtj/ITk2vc4WW6pSDQKSPDuONsIcZ7B2ng8oz0K6ttbi4p3H/PNPQLJ4maQ==} + engines: {node: '>=10'} + cpu: [arm64] + os: [darwin] + + '@swc/core-darwin-x64@1.11.29': + resolution: {integrity: sha512-S3eTo/KYFk+76cWJRgX30hylN5XkSmjYtCBnM4jPLYn7L6zWYEPajsFLmruQEiTEDUg0gBEWLMNyUeghtswouw==} + engines: {node: '>=10'} + cpu: [x64] + os: [darwin] + + '@swc/core-linux-arm-gnueabihf@1.11.29': + resolution: {integrity: sha512-o9gdshbzkUMG6azldHdmKklcfrcMx+a23d/2qHQHPDLUPAN+Trd+sDQUYArK5Fcm7TlpG4sczz95ghN0DMkM7g==} + engines: {node: '>=10'} + cpu: [arm] + os: [linux] + + '@swc/core-linux-arm64-gnu@1.11.29': + resolution: {integrity: sha512-sLoaciOgUKQF1KX9T6hPGzvhOQaJn+3DHy4LOHeXhQqvBgr+7QcZ+hl4uixPKTzxk6hy6Hb0QOvQEdBAAR1gXw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-arm64-musl@1.11.29': + resolution: {integrity: sha512-PwjB10BC0N+Ce7RU/L23eYch6lXFHz7r3NFavIcwDNa/AAqywfxyxh13OeRy+P0cg7NDpWEETWspXeI4Ek8otw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-x64-gnu@1.11.29': + resolution: {integrity: sha512-i62vBVoPaVe9A3mc6gJG07n0/e7FVeAvdD9uzZTtGLiuIfVfIBta8EMquzvf+POLycSk79Z6lRhGPZPJPYiQaA==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-linux-x64-musl@1.11.29': + resolution: {integrity: sha512-YER0XU1xqFdK0hKkfSVX1YIyCvMDI7K07GIpefPvcfyNGs38AXKhb2byySDjbVxkdl4dycaxxhRyhQ2gKSlsFQ==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-win32-arm64-msvc@1.11.29': + resolution: {integrity: sha512-po+WHw+k9g6FAg5IJ+sMwtA/fIUL3zPQ4m/uJgONBATCVnDDkyW6dBA49uHNVtSEvjvhuD8DVWdFP847YTcITw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [win32] + + '@swc/core-win32-ia32-msvc@1.11.29': + resolution: {integrity: sha512-h+NjOrbqdRBYr5ItmStmQt6x3tnhqgwbj9YxdGPepbTDamFv7vFnhZR0YfB3jz3UKJ8H3uGJ65Zw1VsC+xpFkg==} + engines: {node: '>=10'} + cpu: [ia32] + os: [win32] + + '@swc/core-win32-x64-msvc@1.11.29': + resolution: {integrity: sha512-Q8cs2BDV9wqDvqobkXOYdC+pLUSEpX/KvI0Dgfun1F+LzuLotRFuDhrvkU9ETJA6OnD2+Fn/ieHgloiKA/Mn/g==} + engines: {node: '>=10'} + cpu: [x64] + os: [win32] + + '@swc/core@1.11.29': + resolution: {integrity: sha512-g4mThMIpWbNhV8G2rWp5a5/Igv8/2UFRJx2yImrLGMgrDDYZIopqZ/z0jZxDgqNA1QDx93rpwNF7jGsxVWcMlA==} + engines: {node: '>=10'} + peerDependencies: + '@swc/helpers': '>=0.5.17' + peerDependenciesMeta: + '@swc/helpers': + optional: true + + '@swc/counter@0.1.3': + resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + + '@swc/types@0.1.21': + resolution: {integrity: sha512-2YEtj5HJVbKivud9N4bpPBAyZhj4S2Ipe5LkUG94alTpr7in/GU/EARgPAd3BwU+YOmFVJC2+kjqhGRi3r0ZpQ==} + + '@types/estree@1.0.7': + resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==} + + '@types/node@22.15.29': + resolution: {integrity: sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==} + + '@types/prop-types@15.7.14': + resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==} + + '@types/react-dom@18.3.7': + resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} + peerDependencies: + '@types/react': ^18.0.0 + + '@types/react@18.3.23': + resolution: {integrity: sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==} + + '@vitejs/plugin-react-swc@3.10.0': + resolution: {integrity: sha512-ZmkdHw3wo/o/Rk05YsXZs/DJAfY2CdQ5DUAjoWji+PEr+hYADdGMCGgEAILbiKj+CjspBTuTACBcWDrmC8AUfw==} + peerDependencies: + vite: ^4 || ^5 || ^6 + + csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + + esbuild@0.25.5: + resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} + engines: {node: '>=18'} + hasBin: true + + fdir@6.4.5: + resolution: {integrity: sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + + postcss@8.5.4: + resolution: {integrity: sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==} + engines: {node: ^10 || ^12 || >=14} + + react-dom@18.3.1: + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + peerDependencies: + react: ^18.3.1 + + react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + engines: {node: '>=0.10.0'} + + rollup@4.41.1: + resolution: {integrity: sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + tinyglobby@0.2.14: + resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + engines: {node: '>=12.0.0'} + + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + vite@6.3.5: + resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + +snapshots: + + '@esbuild/aix-ppc64@0.25.5': + optional: true + + '@esbuild/android-arm64@0.25.5': + optional: true + + '@esbuild/android-arm@0.25.5': + optional: true + + '@esbuild/android-x64@0.25.5': + optional: true + + '@esbuild/darwin-arm64@0.25.5': + optional: true + + '@esbuild/darwin-x64@0.25.5': + optional: true + + '@esbuild/freebsd-arm64@0.25.5': + optional: true + + '@esbuild/freebsd-x64@0.25.5': + optional: true + + '@esbuild/linux-arm64@0.25.5': + optional: true + + '@esbuild/linux-arm@0.25.5': + optional: true + + '@esbuild/linux-ia32@0.25.5': + optional: true + + '@esbuild/linux-loong64@0.25.5': + optional: true + + '@esbuild/linux-mips64el@0.25.5': + optional: true + + '@esbuild/linux-ppc64@0.25.5': + optional: true + + '@esbuild/linux-riscv64@0.25.5': + optional: true + + '@esbuild/linux-s390x@0.25.5': + optional: true + + '@esbuild/linux-x64@0.25.5': + optional: true + + '@esbuild/netbsd-arm64@0.25.5': + optional: true + + '@esbuild/netbsd-x64@0.25.5': + optional: true + + '@esbuild/openbsd-arm64@0.25.5': + optional: true + + '@esbuild/openbsd-x64@0.25.5': + optional: true + + '@esbuild/sunos-x64@0.25.5': + optional: true + + '@esbuild/win32-arm64@0.25.5': + optional: true + + '@esbuild/win32-ia32@0.25.5': + optional: true + + '@esbuild/win32-x64@0.25.5': + optional: true + + '@rolldown/pluginutils@1.0.0-beta.9': {} + + '@rollup/rollup-android-arm-eabi@4.41.1': + optional: true + + '@rollup/rollup-android-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-x64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-arm64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-x64@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-musl@4.41.1': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.41.1': + optional: true + + '@swc/core-darwin-arm64@1.11.29': + optional: true + + '@swc/core-darwin-x64@1.11.29': + optional: true + + '@swc/core-linux-arm-gnueabihf@1.11.29': + optional: true + + '@swc/core-linux-arm64-gnu@1.11.29': + optional: true + + '@swc/core-linux-arm64-musl@1.11.29': + optional: true + + '@swc/core-linux-x64-gnu@1.11.29': + optional: true + + '@swc/core-linux-x64-musl@1.11.29': + optional: true + + '@swc/core-win32-arm64-msvc@1.11.29': + optional: true + + '@swc/core-win32-ia32-msvc@1.11.29': + optional: true + + '@swc/core-win32-x64-msvc@1.11.29': + optional: true + + '@swc/core@1.11.29': + dependencies: + '@swc/counter': 0.1.3 + '@swc/types': 0.1.21 + optionalDependencies: + '@swc/core-darwin-arm64': 1.11.29 + '@swc/core-darwin-x64': 1.11.29 + '@swc/core-linux-arm-gnueabihf': 1.11.29 + '@swc/core-linux-arm64-gnu': 1.11.29 + '@swc/core-linux-arm64-musl': 1.11.29 + '@swc/core-linux-x64-gnu': 1.11.29 + '@swc/core-linux-x64-musl': 1.11.29 + '@swc/core-win32-arm64-msvc': 1.11.29 + '@swc/core-win32-ia32-msvc': 1.11.29 + '@swc/core-win32-x64-msvc': 1.11.29 + + '@swc/counter@0.1.3': {} + + '@swc/types@0.1.21': + dependencies: + '@swc/counter': 0.1.3 + + '@types/estree@1.0.7': {} + + '@types/node@22.15.29': + dependencies: + undici-types: 6.21.0 + + '@types/prop-types@15.7.14': {} + + '@types/react-dom@18.3.7(@types/react@18.3.23)': + dependencies: + '@types/react': 18.3.23 + + '@types/react@18.3.23': + dependencies: + '@types/prop-types': 15.7.14 + csstype: 3.1.3 + + '@vitejs/plugin-react-swc@3.10.0(vite@6.3.5(@types/node@22.15.29))': + dependencies: + '@rolldown/pluginutils': 1.0.0-beta.9 + '@swc/core': 1.11.29 + vite: 6.3.5(@types/node@22.15.29) + transitivePeerDependencies: + - '@swc/helpers' + + csstype@3.1.3: {} + + esbuild@0.25.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.5 + '@esbuild/android-arm': 0.25.5 + '@esbuild/android-arm64': 0.25.5 + '@esbuild/android-x64': 0.25.5 + '@esbuild/darwin-arm64': 0.25.5 + '@esbuild/darwin-x64': 0.25.5 + '@esbuild/freebsd-arm64': 0.25.5 + '@esbuild/freebsd-x64': 0.25.5 + '@esbuild/linux-arm': 0.25.5 + '@esbuild/linux-arm64': 0.25.5 + '@esbuild/linux-ia32': 0.25.5 + '@esbuild/linux-loong64': 0.25.5 + '@esbuild/linux-mips64el': 0.25.5 + '@esbuild/linux-ppc64': 0.25.5 + '@esbuild/linux-riscv64': 0.25.5 + '@esbuild/linux-s390x': 0.25.5 + '@esbuild/linux-x64': 0.25.5 + '@esbuild/netbsd-arm64': 0.25.5 + '@esbuild/netbsd-x64': 0.25.5 + '@esbuild/openbsd-arm64': 0.25.5 + '@esbuild/openbsd-x64': 0.25.5 + '@esbuild/sunos-x64': 0.25.5 + '@esbuild/win32-arm64': 0.25.5 + '@esbuild/win32-ia32': 0.25.5 + '@esbuild/win32-x64': 0.25.5 + + fdir@6.4.5(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + + fsevents@2.3.3: + optional: true + + js-tokens@4.0.0: {} + + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + + nanoid@3.3.11: {} + + picocolors@1.1.1: {} + + picomatch@4.0.2: {} + + postcss@8.5.4: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + react-dom@18.3.1(react@18.3.1): + dependencies: + loose-envify: 1.4.0 + react: 18.3.1 + scheduler: 0.23.2 + + react@18.3.1: + dependencies: + loose-envify: 1.4.0 + + rollup@4.41.1: + dependencies: + '@types/estree': 1.0.7 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.41.1 + '@rollup/rollup-android-arm64': 4.41.1 + '@rollup/rollup-darwin-arm64': 4.41.1 + '@rollup/rollup-darwin-x64': 4.41.1 + '@rollup/rollup-freebsd-arm64': 4.41.1 + '@rollup/rollup-freebsd-x64': 4.41.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.41.1 + '@rollup/rollup-linux-arm-musleabihf': 4.41.1 + '@rollup/rollup-linux-arm64-gnu': 4.41.1 + '@rollup/rollup-linux-arm64-musl': 4.41.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.41.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-musl': 4.41.1 + '@rollup/rollup-linux-s390x-gnu': 4.41.1 + '@rollup/rollup-linux-x64-gnu': 4.41.1 + '@rollup/rollup-linux-x64-musl': 4.41.1 + '@rollup/rollup-win32-arm64-msvc': 4.41.1 + '@rollup/rollup-win32-ia32-msvc': 4.41.1 + '@rollup/rollup-win32-x64-msvc': 4.41.1 + fsevents: 2.3.3 + + scheduler@0.23.2: + dependencies: + loose-envify: 1.4.0 + + source-map-js@1.2.1: {} + + tinyglobby@0.2.14: + dependencies: + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + + typescript@5.8.3: {} + + undici-types@6.21.0: {} + + vite@6.3.5(@types/node@22.15.29): + dependencies: + esbuild: 0.25.5 + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + postcss: 8.5.4 + rollup: 4.41.1 + tinyglobby: 0.2.14 + optionalDependencies: + '@types/node': 22.15.29 + fsevents: 2.3.3 diff --git a/e2e-tests/fixtures/import-app/astro/src/App.tsx b/e2e-tests/fixtures/import-app/astro/src/App.tsx new file mode 100644 index 0000000..295988b --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/src/App.tsx @@ -0,0 +1,3 @@ +const App = () =>
Minimal imported app
; + +export default App; diff --git a/e2e-tests/fixtures/import-app/astro/src/foo.astro b/e2e-tests/fixtures/import-app/astro/src/foo.astro new file mode 100644 index 0000000..fbaf1f8 --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/src/foo.astro @@ -0,0 +1,41 @@ +--- +// Component script (runs at build time) +const greeting = "Hello World"; +const currentTime = new Date().toLocaleString(); +--- + +
+

{greeting}

+

Welcome to Astro!

+

Generated at: {currentTime}

+
+ + diff --git a/e2e-tests/fixtures/import-app/astro/src/main.tsx b/e2e-tests/fixtures/import-app/astro/src/main.tsx new file mode 100644 index 0000000..c8d124c --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/src/main.tsx @@ -0,0 +1,4 @@ +import { createRoot } from "react-dom/client"; +import App from "./App.tsx"; + +createRoot(document.getElementById("root")!).render(); diff --git a/e2e-tests/fixtures/import-app/astro/src/vite-env.d.ts b/e2e-tests/fixtures/import-app/astro/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/e2e-tests/fixtures/import-app/astro/tsconfig.app.json b/e2e-tests/fixtures/import-app/astro/tsconfig.app.json new file mode 100644 index 0000000..0b0e43e --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/tsconfig.app.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": false, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitAny": false, + "noFallthroughCasesInSwitch": false, + + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["src"] +} diff --git a/e2e-tests/fixtures/import-app/astro/tsconfig.json b/e2e-tests/fixtures/import-app/astro/tsconfig.json new file mode 100644 index 0000000..129b1a3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/tsconfig.json @@ -0,0 +1,19 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ], + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, + "noImplicitAny": false, + "noUnusedParameters": false, + "skipLibCheck": true, + "allowJs": true, + "noUnusedLocals": false, + "strictNullChecks": false + } +} diff --git a/e2e-tests/fixtures/import-app/astro/tsconfig.node.json b/e2e-tests/fixtures/import-app/astro/tsconfig.node.json new file mode 100644 index 0000000..3133162 --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/tsconfig.node.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/e2e-tests/fixtures/import-app/astro/vite.config.ts b/e2e-tests/fixtures/import-app/astro/vite.config.ts new file mode 100644 index 0000000..19e7eca --- /dev/null +++ b/e2e-tests/fixtures/import-app/astro/vite.config.ts @@ -0,0 +1,16 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react-swc"; +import path from "path"; + +export default defineConfig(() => ({ + server: { + host: "::", + port: 8080, + }, + plugins: [react()], + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, +})); diff --git a/e2e-tests/fixtures/import-app/context-manage/.env.foobar b/e2e-tests/fixtures/import-app/context-manage/.env.foobar new file mode 100644 index 0000000..afba512 --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/.env.foobar @@ -0,0 +1 @@ +# THIS FILE SHOULD NOT BE SENT IN THE CONTEXT \ No newline at end of file diff --git a/e2e-tests/fixtures/import-app/context-manage/AI_RULES.md b/e2e-tests/fixtures/import-app/context-manage/AI_RULES.md new file mode 100644 index 0000000..6f9c9e1 --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/AI_RULES.md @@ -0,0 +1 @@ +# AI_RULES.md diff --git a/e2e-tests/fixtures/import-app/context-manage/a.ts b/e2e-tests/fixtures/import-app/context-manage/a.ts new file mode 100644 index 0000000..124ea84 --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/a.ts @@ -0,0 +1 @@ +// a.ts diff --git a/e2e-tests/fixtures/import-app/context-manage/exclude/exclude.ts b/e2e-tests/fixtures/import-app/context-manage/exclude/exclude.ts new file mode 100644 index 0000000..528ffeb --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/exclude/exclude.ts @@ -0,0 +1 @@ +// exclude.ts: this file is not in any of the globs diff --git a/e2e-tests/fixtures/import-app/context-manage/exclude/exclude.tsx b/e2e-tests/fixtures/import-app/context-manage/exclude/exclude.tsx new file mode 100644 index 0000000..46672e2 --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/exclude/exclude.tsx @@ -0,0 +1 @@ +// exclude.tsx: this file is not in any of the globs diff --git a/e2e-tests/fixtures/import-app/context-manage/manual/baz.json b/e2e-tests/fixtures/import-app/context-manage/manual/baz.json new file mode 100644 index 0000000..9f38a43 --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/manual/baz.json @@ -0,0 +1 @@ +["should not be included b/c it's json"] diff --git a/e2e-tests/fixtures/import-app/context-manage/manual/file.ts b/e2e-tests/fixtures/import-app/context-manage/manual/file.ts new file mode 100644 index 0000000..e69de29 diff --git a/e2e-tests/fixtures/import-app/context-manage/manual/sub-manual/sub-manual.js b/e2e-tests/fixtures/import-app/context-manage/manual/sub-manual/sub-manual.js new file mode 100644 index 0000000..e69de29 diff --git a/e2e-tests/fixtures/import-app/context-manage/src/components/ui/button.tsx b/e2e-tests/fixtures/import-app/context-manage/src/components/ui/button.tsx new file mode 100644 index 0000000..56c178b --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/src/components/ui/button.tsx @@ -0,0 +1 @@ +// button.tsx diff --git a/e2e-tests/fixtures/import-app/context-manage/src/components/ui/helper.ts b/e2e-tests/fixtures/import-app/context-manage/src/components/ui/helper.ts new file mode 100644 index 0000000..71cd3da --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/src/components/ui/helper.ts @@ -0,0 +1 @@ +// helper.ts diff --git a/e2e-tests/fixtures/import-app/context-manage/src/dir/some.css b/e2e-tests/fixtures/import-app/context-manage/src/dir/some.css new file mode 100644 index 0000000..06d8d5e --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/src/dir/some.css @@ -0,0 +1 @@ +/* some.css */ diff --git a/e2e-tests/fixtures/import-app/context-manage/src/foo.ts b/e2e-tests/fixtures/import-app/context-manage/src/foo.ts new file mode 100644 index 0000000..8da7aa6 --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/src/foo.ts @@ -0,0 +1 @@ +// foo.ts diff --git a/e2e-tests/fixtures/import-app/context-manage/src/sub/sub1.ts b/e2e-tests/fixtures/import-app/context-manage/src/sub/sub1.ts new file mode 100644 index 0000000..c03ac5d --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/src/sub/sub1.ts @@ -0,0 +1 @@ +// sub/sub1.ts diff --git a/e2e-tests/fixtures/import-app/context-manage/src/sub/sub2.tsx b/e2e-tests/fixtures/import-app/context-manage/src/sub/sub2.tsx new file mode 100644 index 0000000..eb2809b --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/src/sub/sub2.tsx @@ -0,0 +1 @@ +// sub/sub2.tsx diff --git a/e2e-tests/fixtures/import-app/context-manage/src/very-large-file.ts b/e2e-tests/fixtures/import-app/context-manage/src/very-large-file.ts new file mode 100644 index 0000000..661da4a --- /dev/null +++ b/e2e-tests/fixtures/import-app/context-manage/src/very-large-file.ts @@ -0,0 +1,92 @@ +// very-large-file.ts + +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 +// 1234567890 diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/.gitignore b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/AI_RULES.md b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/AI_RULES.md new file mode 100644 index 0000000..e3ced03 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/AI_RULES.md @@ -0,0 +1,3 @@ +[[beginning of AI_RULES.md]] +There's already AI rules... +[[end of AI_RULES.md]] diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/index.html b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/index.html new file mode 100644 index 0000000..6595328 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/index.html @@ -0,0 +1,13 @@ + + + + + + dyad-generated-app + + + +
+ + + diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/package.json b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/package.json new file mode 100644 index 0000000..1bfaa09 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/package.json @@ -0,0 +1,25 @@ +{ + "name": "vite_react_shadcn_ts", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "build:dev": "vite build --mode development", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@types/node": "^22.5.5", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@vitejs/plugin-react-swc": "^3.9.0", + "typescript": "^5.5.3", + "vite": "^6.3.4" + } +} diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/pnpm-lock.yaml b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/pnpm-lock.yaml new file mode 100644 index 0000000..c8b26d2 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/pnpm-lock.yaml @@ -0,0 +1,838 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + react: + specifier: ^18.3.1 + version: 18.3.1 + react-dom: + specifier: ^18.3.1 + version: 18.3.1(react@18.3.1) + devDependencies: + '@types/node': + specifier: ^22.5.5 + version: 22.15.29 + '@types/react': + specifier: ^18.3.3 + version: 18.3.23 + '@types/react-dom': + specifier: ^18.3.0 + version: 18.3.7(@types/react@18.3.23) + '@vitejs/plugin-react-swc': + specifier: ^3.9.0 + version: 3.10.0(vite@6.3.5(@types/node@22.15.29)) + typescript: + specifier: ^5.5.3 + version: 5.8.3 + vite: + specifier: ^6.3.4 + version: 6.3.5(@types/node@22.15.29) + +packages: + + '@esbuild/aix-ppc64@0.25.5': + resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.5': + resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.5': + resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.5': + resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.5': + resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.5': + resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.5': + resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.5': + resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.5': + resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.5': + resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.5': + resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.5': + resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.5': + resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.5': + resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.5': + resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.5': + resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.5': + resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.5': + resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.5': + resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.5': + resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.5': + resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.25.5': + resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.5': + resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.5': + resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.5': + resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.0-beta.9': + resolution: {integrity: sha512-e9MeMtVWo186sgvFFJOPGy7/d2j2mZhLJIdVW0C/xDluuOvymEATqz6zKsP0ZmXGzQtqlyjz5sC1sYQUoJG98w==} + + '@rollup/rollup-android-arm-eabi@4.41.1': + resolution: {integrity: sha512-NELNvyEWZ6R9QMkiytB4/L4zSEaBC03KIXEghptLGLZWJ6VPrL63ooZQCOnlx36aQPGhzuOMwDerC1Eb2VmrLw==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.41.1': + resolution: {integrity: sha512-DXdQe1BJ6TK47ukAoZLehRHhfKnKg9BjnQYUu9gzhI8Mwa1d2fzxA1aw2JixHVl403bwp1+/o/NhhHtxWJBgEA==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.41.1': + resolution: {integrity: sha512-5afxvwszzdulsU2w8JKWwY8/sJOLPzf0e1bFuvcW5h9zsEg+RQAojdW0ux2zyYAz7R8HvvzKCjLNJhVq965U7w==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.41.1': + resolution: {integrity: sha512-egpJACny8QOdHNNMZKf8xY0Is6gIMz+tuqXlusxquWu3F833DcMwmGM7WlvCO9sB3OsPjdC4U0wHw5FabzCGZg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.41.1': + resolution: {integrity: sha512-DBVMZH5vbjgRk3r0OzgjS38z+atlupJ7xfKIDJdZZL6sM6wjfDNo64aowcLPKIx7LMQi8vybB56uh1Ftck/Atg==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.41.1': + resolution: {integrity: sha512-3FkydeohozEskBxNWEIbPfOE0aqQgB6ttTkJ159uWOFn42VLyfAiyD9UK5mhu+ItWzft60DycIN1Xdgiy8o/SA==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + resolution: {integrity: sha512-wC53ZNDgt0pqx5xCAgNunkTzFE8GTgdZ9EwYGVcg+jEjJdZGtq9xPjDnFgfFozQI/Xm1mh+D9YlYtl+ueswNEg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + resolution: {integrity: sha512-jwKCca1gbZkZLhLRtsrka5N8sFAaxrGz/7wRJ8Wwvq3jug7toO21vWlViihG85ei7uJTpzbXZRcORotE+xyrLA==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + resolution: {integrity: sha512-g0UBcNknsmmNQ8V2d/zD2P7WWfJKU0F1nu0k5pW4rvdb+BIqMm8ToluW/eeRmxCared5dD76lS04uL4UaNgpNA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.41.1': + resolution: {integrity: sha512-XZpeGB5TKEZWzIrj7sXr+BEaSgo/ma/kCgrZgL0oo5qdB1JlTzIYQKel/RmhT6vMAvOdM2teYlAaOGJpJ9lahg==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + resolution: {integrity: sha512-bkCfDJ4qzWfFRCNt5RVV4DOw6KEgFTUZi2r2RuYhGWC8WhCA8lCAJhDeAmrM/fdiAH54m0mA0Vk2FGRPyzI+tw==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + resolution: {integrity: sha512-3mr3Xm+gvMX+/8EKogIZSIEF0WUu0HL9di+YWlJpO8CQBnoLAEL/roTCxuLncEdgcfJcvA4UMOf+2dnjl4Ut1A==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + resolution: {integrity: sha512-3rwCIh6MQ1LGrvKJitQjZFuQnT2wxfU+ivhNBzmxXTXPllewOF7JR1s2vMX/tWtUYFgphygxjqMl76q4aMotGw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + resolution: {integrity: sha512-LdIUOb3gvfmpkgFZuccNa2uYiqtgZAz3PTzjuM5bH3nvuy9ty6RGc/Q0+HDFrHrizJGVpjnTZ1yS5TNNjFlklw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + resolution: {integrity: sha512-oIE6M8WC9ma6xYqjvPhzZYk6NbobIURvP/lEbh7FWplcMO6gn7MM2yHKA1eC/GvYwzNKK/1LYgqzdkZ8YFxR8g==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.41.1': + resolution: {integrity: sha512-cWBOvayNvA+SyeQMp79BHPK8ws6sHSsYnK5zDcsC3Hsxr1dgTABKjMnMslPq1DvZIp6uO7kIWhiGwaTdR4Og9A==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.41.1': + resolution: {integrity: sha512-y5CbN44M+pUCdGDlZFzGGBSKCA4A/J2ZH4edTYSSxFg7ce1Xt3GtydbVKWLlzL+INfFIZAEg1ZV6hh9+QQf9YQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + resolution: {integrity: sha512-lZkCxIrjlJlMt1dLO/FbpZbzt6J/A8p4DnqzSa4PWqPEUUUnzXLeki/iyPLfV0BmHItlYgHUqJe+3KiyydmiNQ==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + resolution: {integrity: sha512-+psFT9+pIh2iuGsxFYYa/LhS5MFKmuivRsx9iPJWNSGbh2XVEjk90fmpUEjCnILPEPJnikAU6SFDiEUyOv90Pg==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.41.1': + resolution: {integrity: sha512-Wq2zpapRYLfi4aKxf2Xff0tN+7slj2d4R87WEzqw7ZLsVvO5zwYCIuEGSZYiK41+GlwUo1HiR+GdkLEJnCKTCw==} + cpu: [x64] + os: [win32] + + '@swc/core-darwin-arm64@1.11.29': + resolution: {integrity: sha512-whsCX7URzbuS5aET58c75Dloby3Gtj/ITk2vc4WW6pSDQKSPDuONsIcZ7B2ng8oz0K6ttbi4p3H/PNPQLJ4maQ==} + engines: {node: '>=10'} + cpu: [arm64] + os: [darwin] + + '@swc/core-darwin-x64@1.11.29': + resolution: {integrity: sha512-S3eTo/KYFk+76cWJRgX30hylN5XkSmjYtCBnM4jPLYn7L6zWYEPajsFLmruQEiTEDUg0gBEWLMNyUeghtswouw==} + engines: {node: '>=10'} + cpu: [x64] + os: [darwin] + + '@swc/core-linux-arm-gnueabihf@1.11.29': + resolution: {integrity: sha512-o9gdshbzkUMG6azldHdmKklcfrcMx+a23d/2qHQHPDLUPAN+Trd+sDQUYArK5Fcm7TlpG4sczz95ghN0DMkM7g==} + engines: {node: '>=10'} + cpu: [arm] + os: [linux] + + '@swc/core-linux-arm64-gnu@1.11.29': + resolution: {integrity: sha512-sLoaciOgUKQF1KX9T6hPGzvhOQaJn+3DHy4LOHeXhQqvBgr+7QcZ+hl4uixPKTzxk6hy6Hb0QOvQEdBAAR1gXw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-arm64-musl@1.11.29': + resolution: {integrity: sha512-PwjB10BC0N+Ce7RU/L23eYch6lXFHz7r3NFavIcwDNa/AAqywfxyxh13OeRy+P0cg7NDpWEETWspXeI4Ek8otw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-x64-gnu@1.11.29': + resolution: {integrity: sha512-i62vBVoPaVe9A3mc6gJG07n0/e7FVeAvdD9uzZTtGLiuIfVfIBta8EMquzvf+POLycSk79Z6lRhGPZPJPYiQaA==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-linux-x64-musl@1.11.29': + resolution: {integrity: sha512-YER0XU1xqFdK0hKkfSVX1YIyCvMDI7K07GIpefPvcfyNGs38AXKhb2byySDjbVxkdl4dycaxxhRyhQ2gKSlsFQ==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-win32-arm64-msvc@1.11.29': + resolution: {integrity: sha512-po+WHw+k9g6FAg5IJ+sMwtA/fIUL3zPQ4m/uJgONBATCVnDDkyW6dBA49uHNVtSEvjvhuD8DVWdFP847YTcITw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [win32] + + '@swc/core-win32-ia32-msvc@1.11.29': + resolution: {integrity: sha512-h+NjOrbqdRBYr5ItmStmQt6x3tnhqgwbj9YxdGPepbTDamFv7vFnhZR0YfB3jz3UKJ8H3uGJ65Zw1VsC+xpFkg==} + engines: {node: '>=10'} + cpu: [ia32] + os: [win32] + + '@swc/core-win32-x64-msvc@1.11.29': + resolution: {integrity: sha512-Q8cs2BDV9wqDvqobkXOYdC+pLUSEpX/KvI0Dgfun1F+LzuLotRFuDhrvkU9ETJA6OnD2+Fn/ieHgloiKA/Mn/g==} + engines: {node: '>=10'} + cpu: [x64] + os: [win32] + + '@swc/core@1.11.29': + resolution: {integrity: sha512-g4mThMIpWbNhV8G2rWp5a5/Igv8/2UFRJx2yImrLGMgrDDYZIopqZ/z0jZxDgqNA1QDx93rpwNF7jGsxVWcMlA==} + engines: {node: '>=10'} + peerDependencies: + '@swc/helpers': '>=0.5.17' + peerDependenciesMeta: + '@swc/helpers': + optional: true + + '@swc/counter@0.1.3': + resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + + '@swc/types@0.1.21': + resolution: {integrity: sha512-2YEtj5HJVbKivud9N4bpPBAyZhj4S2Ipe5LkUG94alTpr7in/GU/EARgPAd3BwU+YOmFVJC2+kjqhGRi3r0ZpQ==} + + '@types/estree@1.0.7': + resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==} + + '@types/node@22.15.29': + resolution: {integrity: sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==} + + '@types/prop-types@15.7.14': + resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==} + + '@types/react-dom@18.3.7': + resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} + peerDependencies: + '@types/react': ^18.0.0 + + '@types/react@18.3.23': + resolution: {integrity: sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==} + + '@vitejs/plugin-react-swc@3.10.0': + resolution: {integrity: sha512-ZmkdHw3wo/o/Rk05YsXZs/DJAfY2CdQ5DUAjoWji+PEr+hYADdGMCGgEAILbiKj+CjspBTuTACBcWDrmC8AUfw==} + peerDependencies: + vite: ^4 || ^5 || ^6 + + csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + + esbuild@0.25.5: + resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} + engines: {node: '>=18'} + hasBin: true + + fdir@6.4.5: + resolution: {integrity: sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + + postcss@8.5.4: + resolution: {integrity: sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==} + engines: {node: ^10 || ^12 || >=14} + + react-dom@18.3.1: + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + peerDependencies: + react: ^18.3.1 + + react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + engines: {node: '>=0.10.0'} + + rollup@4.41.1: + resolution: {integrity: sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + tinyglobby@0.2.14: + resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + engines: {node: '>=12.0.0'} + + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + vite@6.3.5: + resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + +snapshots: + + '@esbuild/aix-ppc64@0.25.5': + optional: true + + '@esbuild/android-arm64@0.25.5': + optional: true + + '@esbuild/android-arm@0.25.5': + optional: true + + '@esbuild/android-x64@0.25.5': + optional: true + + '@esbuild/darwin-arm64@0.25.5': + optional: true + + '@esbuild/darwin-x64@0.25.5': + optional: true + + '@esbuild/freebsd-arm64@0.25.5': + optional: true + + '@esbuild/freebsd-x64@0.25.5': + optional: true + + '@esbuild/linux-arm64@0.25.5': + optional: true + + '@esbuild/linux-arm@0.25.5': + optional: true + + '@esbuild/linux-ia32@0.25.5': + optional: true + + '@esbuild/linux-loong64@0.25.5': + optional: true + + '@esbuild/linux-mips64el@0.25.5': + optional: true + + '@esbuild/linux-ppc64@0.25.5': + optional: true + + '@esbuild/linux-riscv64@0.25.5': + optional: true + + '@esbuild/linux-s390x@0.25.5': + optional: true + + '@esbuild/linux-x64@0.25.5': + optional: true + + '@esbuild/netbsd-arm64@0.25.5': + optional: true + + '@esbuild/netbsd-x64@0.25.5': + optional: true + + '@esbuild/openbsd-arm64@0.25.5': + optional: true + + '@esbuild/openbsd-x64@0.25.5': + optional: true + + '@esbuild/sunos-x64@0.25.5': + optional: true + + '@esbuild/win32-arm64@0.25.5': + optional: true + + '@esbuild/win32-ia32@0.25.5': + optional: true + + '@esbuild/win32-x64@0.25.5': + optional: true + + '@rolldown/pluginutils@1.0.0-beta.9': {} + + '@rollup/rollup-android-arm-eabi@4.41.1': + optional: true + + '@rollup/rollup-android-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-x64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-arm64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-x64@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-musl@4.41.1': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.41.1': + optional: true + + '@swc/core-darwin-arm64@1.11.29': + optional: true + + '@swc/core-darwin-x64@1.11.29': + optional: true + + '@swc/core-linux-arm-gnueabihf@1.11.29': + optional: true + + '@swc/core-linux-arm64-gnu@1.11.29': + optional: true + + '@swc/core-linux-arm64-musl@1.11.29': + optional: true + + '@swc/core-linux-x64-gnu@1.11.29': + optional: true + + '@swc/core-linux-x64-musl@1.11.29': + optional: true + + '@swc/core-win32-arm64-msvc@1.11.29': + optional: true + + '@swc/core-win32-ia32-msvc@1.11.29': + optional: true + + '@swc/core-win32-x64-msvc@1.11.29': + optional: true + + '@swc/core@1.11.29': + dependencies: + '@swc/counter': 0.1.3 + '@swc/types': 0.1.21 + optionalDependencies: + '@swc/core-darwin-arm64': 1.11.29 + '@swc/core-darwin-x64': 1.11.29 + '@swc/core-linux-arm-gnueabihf': 1.11.29 + '@swc/core-linux-arm64-gnu': 1.11.29 + '@swc/core-linux-arm64-musl': 1.11.29 + '@swc/core-linux-x64-gnu': 1.11.29 + '@swc/core-linux-x64-musl': 1.11.29 + '@swc/core-win32-arm64-msvc': 1.11.29 + '@swc/core-win32-ia32-msvc': 1.11.29 + '@swc/core-win32-x64-msvc': 1.11.29 + + '@swc/counter@0.1.3': {} + + '@swc/types@0.1.21': + dependencies: + '@swc/counter': 0.1.3 + + '@types/estree@1.0.7': {} + + '@types/node@22.15.29': + dependencies: + undici-types: 6.21.0 + + '@types/prop-types@15.7.14': {} + + '@types/react-dom@18.3.7(@types/react@18.3.23)': + dependencies: + '@types/react': 18.3.23 + + '@types/react@18.3.23': + dependencies: + '@types/prop-types': 15.7.14 + csstype: 3.1.3 + + '@vitejs/plugin-react-swc@3.10.0(vite@6.3.5(@types/node@22.15.29))': + dependencies: + '@rolldown/pluginutils': 1.0.0-beta.9 + '@swc/core': 1.11.29 + vite: 6.3.5(@types/node@22.15.29) + transitivePeerDependencies: + - '@swc/helpers' + + csstype@3.1.3: {} + + esbuild@0.25.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.5 + '@esbuild/android-arm': 0.25.5 + '@esbuild/android-arm64': 0.25.5 + '@esbuild/android-x64': 0.25.5 + '@esbuild/darwin-arm64': 0.25.5 + '@esbuild/darwin-x64': 0.25.5 + '@esbuild/freebsd-arm64': 0.25.5 + '@esbuild/freebsd-x64': 0.25.5 + '@esbuild/linux-arm': 0.25.5 + '@esbuild/linux-arm64': 0.25.5 + '@esbuild/linux-ia32': 0.25.5 + '@esbuild/linux-loong64': 0.25.5 + '@esbuild/linux-mips64el': 0.25.5 + '@esbuild/linux-ppc64': 0.25.5 + '@esbuild/linux-riscv64': 0.25.5 + '@esbuild/linux-s390x': 0.25.5 + '@esbuild/linux-x64': 0.25.5 + '@esbuild/netbsd-arm64': 0.25.5 + '@esbuild/netbsd-x64': 0.25.5 + '@esbuild/openbsd-arm64': 0.25.5 + '@esbuild/openbsd-x64': 0.25.5 + '@esbuild/sunos-x64': 0.25.5 + '@esbuild/win32-arm64': 0.25.5 + '@esbuild/win32-ia32': 0.25.5 + '@esbuild/win32-x64': 0.25.5 + + fdir@6.4.5(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + + fsevents@2.3.3: + optional: true + + js-tokens@4.0.0: {} + + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + + nanoid@3.3.11: {} + + picocolors@1.1.1: {} + + picomatch@4.0.2: {} + + postcss@8.5.4: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + react-dom@18.3.1(react@18.3.1): + dependencies: + loose-envify: 1.4.0 + react: 18.3.1 + scheduler: 0.23.2 + + react@18.3.1: + dependencies: + loose-envify: 1.4.0 + + rollup@4.41.1: + dependencies: + '@types/estree': 1.0.7 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.41.1 + '@rollup/rollup-android-arm64': 4.41.1 + '@rollup/rollup-darwin-arm64': 4.41.1 + '@rollup/rollup-darwin-x64': 4.41.1 + '@rollup/rollup-freebsd-arm64': 4.41.1 + '@rollup/rollup-freebsd-x64': 4.41.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.41.1 + '@rollup/rollup-linux-arm-musleabihf': 4.41.1 + '@rollup/rollup-linux-arm64-gnu': 4.41.1 + '@rollup/rollup-linux-arm64-musl': 4.41.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.41.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-musl': 4.41.1 + '@rollup/rollup-linux-s390x-gnu': 4.41.1 + '@rollup/rollup-linux-x64-gnu': 4.41.1 + '@rollup/rollup-linux-x64-musl': 4.41.1 + '@rollup/rollup-win32-arm64-msvc': 4.41.1 + '@rollup/rollup-win32-ia32-msvc': 4.41.1 + '@rollup/rollup-win32-x64-msvc': 4.41.1 + fsevents: 2.3.3 + + scheduler@0.23.2: + dependencies: + loose-envify: 1.4.0 + + source-map-js@1.2.1: {} + + tinyglobby@0.2.14: + dependencies: + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + + typescript@5.8.3: {} + + undici-types@6.21.0: {} + + vite@6.3.5(@types/node@22.15.29): + dependencies: + esbuild: 0.25.5 + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + postcss: 8.5.4 + rollup: 4.41.1 + tinyglobby: 0.2.14 + optionalDependencies: + '@types/node': 22.15.29 + fsevents: 2.3.3 diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/App.tsx b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/App.tsx new file mode 100644 index 0000000..295988b --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/App.tsx @@ -0,0 +1,3 @@ +const App = () =>
Minimal imported app
; + +export default App; diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/main.tsx b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/main.tsx new file mode 100644 index 0000000..c8d124c --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/main.tsx @@ -0,0 +1,4 @@ +import { createRoot } from "react-dom/client"; +import App from "./App.tsx"; + +createRoot(document.getElementById("root")!).render(); diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/vite-env.d.ts b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.app.json b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.app.json new file mode 100644 index 0000000..0b0e43e --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.app.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": false, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitAny": false, + "noFallthroughCasesInSwitch": false, + + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["src"] +} diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.json b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.json new file mode 100644 index 0000000..129b1a3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.json @@ -0,0 +1,19 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ], + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, + "noImplicitAny": false, + "noUnusedParameters": false, + "skipLibCheck": true, + "allowJs": true, + "noUnusedLocals": false, + "strictNullChecks": false + } +} diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.node.json b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.node.json new file mode 100644 index 0000000..3133162 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/tsconfig.node.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/e2e-tests/fixtures/import-app/minimal-with-ai-rules/vite.config.ts b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/vite.config.ts new file mode 100644 index 0000000..19e7eca --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal-with-ai-rules/vite.config.ts @@ -0,0 +1,16 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react-swc"; +import path from "path"; + +export default defineConfig(() => ({ + server: { + host: "::", + port: 8080, + }, + plugins: [react()], + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, +})); diff --git a/e2e-tests/fixtures/import-app/minimal/.gitignore b/e2e-tests/fixtures/import-app/minimal/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/e2e-tests/fixtures/import-app/minimal/index.html b/e2e-tests/fixtures/import-app/minimal/index.html new file mode 100644 index 0000000..6595328 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/index.html @@ -0,0 +1,13 @@ + + + + + + dyad-generated-app + + + +
+ + + diff --git a/e2e-tests/fixtures/import-app/minimal/package.json b/e2e-tests/fixtures/import-app/minimal/package.json new file mode 100644 index 0000000..1bfaa09 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/package.json @@ -0,0 +1,25 @@ +{ + "name": "vite_react_shadcn_ts", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "build:dev": "vite build --mode development", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@types/node": "^22.5.5", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@vitejs/plugin-react-swc": "^3.9.0", + "typescript": "^5.5.3", + "vite": "^6.3.4" + } +} diff --git a/e2e-tests/fixtures/import-app/minimal/pnpm-lock.yaml b/e2e-tests/fixtures/import-app/minimal/pnpm-lock.yaml new file mode 100644 index 0000000..c8b26d2 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/pnpm-lock.yaml @@ -0,0 +1,838 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + react: + specifier: ^18.3.1 + version: 18.3.1 + react-dom: + specifier: ^18.3.1 + version: 18.3.1(react@18.3.1) + devDependencies: + '@types/node': + specifier: ^22.5.5 + version: 22.15.29 + '@types/react': + specifier: ^18.3.3 + version: 18.3.23 + '@types/react-dom': + specifier: ^18.3.0 + version: 18.3.7(@types/react@18.3.23) + '@vitejs/plugin-react-swc': + specifier: ^3.9.0 + version: 3.10.0(vite@6.3.5(@types/node@22.15.29)) + typescript: + specifier: ^5.5.3 + version: 5.8.3 + vite: + specifier: ^6.3.4 + version: 6.3.5(@types/node@22.15.29) + +packages: + + '@esbuild/aix-ppc64@0.25.5': + resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.5': + resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.5': + resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.5': + resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.5': + resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.5': + resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.5': + resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.5': + resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.5': + resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.5': + resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.5': + resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.5': + resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.5': + resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.5': + resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.5': + resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.5': + resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.5': + resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.5': + resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.5': + resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.5': + resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.5': + resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.25.5': + resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.5': + resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.5': + resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.5': + resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.0-beta.9': + resolution: {integrity: sha512-e9MeMtVWo186sgvFFJOPGy7/d2j2mZhLJIdVW0C/xDluuOvymEATqz6zKsP0ZmXGzQtqlyjz5sC1sYQUoJG98w==} + + '@rollup/rollup-android-arm-eabi@4.41.1': + resolution: {integrity: sha512-NELNvyEWZ6R9QMkiytB4/L4zSEaBC03KIXEghptLGLZWJ6VPrL63ooZQCOnlx36aQPGhzuOMwDerC1Eb2VmrLw==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.41.1': + resolution: {integrity: sha512-DXdQe1BJ6TK47ukAoZLehRHhfKnKg9BjnQYUu9gzhI8Mwa1d2fzxA1aw2JixHVl403bwp1+/o/NhhHtxWJBgEA==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.41.1': + resolution: {integrity: sha512-5afxvwszzdulsU2w8JKWwY8/sJOLPzf0e1bFuvcW5h9zsEg+RQAojdW0ux2zyYAz7R8HvvzKCjLNJhVq965U7w==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.41.1': + resolution: {integrity: sha512-egpJACny8QOdHNNMZKf8xY0Is6gIMz+tuqXlusxquWu3F833DcMwmGM7WlvCO9sB3OsPjdC4U0wHw5FabzCGZg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.41.1': + resolution: {integrity: sha512-DBVMZH5vbjgRk3r0OzgjS38z+atlupJ7xfKIDJdZZL6sM6wjfDNo64aowcLPKIx7LMQi8vybB56uh1Ftck/Atg==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.41.1': + resolution: {integrity: sha512-3FkydeohozEskBxNWEIbPfOE0aqQgB6ttTkJ159uWOFn42VLyfAiyD9UK5mhu+ItWzft60DycIN1Xdgiy8o/SA==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + resolution: {integrity: sha512-wC53ZNDgt0pqx5xCAgNunkTzFE8GTgdZ9EwYGVcg+jEjJdZGtq9xPjDnFgfFozQI/Xm1mh+D9YlYtl+ueswNEg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + resolution: {integrity: sha512-jwKCca1gbZkZLhLRtsrka5N8sFAaxrGz/7wRJ8Wwvq3jug7toO21vWlViihG85ei7uJTpzbXZRcORotE+xyrLA==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + resolution: {integrity: sha512-g0UBcNknsmmNQ8V2d/zD2P7WWfJKU0F1nu0k5pW4rvdb+BIqMm8ToluW/eeRmxCared5dD76lS04uL4UaNgpNA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.41.1': + resolution: {integrity: sha512-XZpeGB5TKEZWzIrj7sXr+BEaSgo/ma/kCgrZgL0oo5qdB1JlTzIYQKel/RmhT6vMAvOdM2teYlAaOGJpJ9lahg==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + resolution: {integrity: sha512-bkCfDJ4qzWfFRCNt5RVV4DOw6KEgFTUZi2r2RuYhGWC8WhCA8lCAJhDeAmrM/fdiAH54m0mA0Vk2FGRPyzI+tw==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + resolution: {integrity: sha512-3mr3Xm+gvMX+/8EKogIZSIEF0WUu0HL9di+YWlJpO8CQBnoLAEL/roTCxuLncEdgcfJcvA4UMOf+2dnjl4Ut1A==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + resolution: {integrity: sha512-3rwCIh6MQ1LGrvKJitQjZFuQnT2wxfU+ivhNBzmxXTXPllewOF7JR1s2vMX/tWtUYFgphygxjqMl76q4aMotGw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + resolution: {integrity: sha512-LdIUOb3gvfmpkgFZuccNa2uYiqtgZAz3PTzjuM5bH3nvuy9ty6RGc/Q0+HDFrHrizJGVpjnTZ1yS5TNNjFlklw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + resolution: {integrity: sha512-oIE6M8WC9ma6xYqjvPhzZYk6NbobIURvP/lEbh7FWplcMO6gn7MM2yHKA1eC/GvYwzNKK/1LYgqzdkZ8YFxR8g==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.41.1': + resolution: {integrity: sha512-cWBOvayNvA+SyeQMp79BHPK8ws6sHSsYnK5zDcsC3Hsxr1dgTABKjMnMslPq1DvZIp6uO7kIWhiGwaTdR4Og9A==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.41.1': + resolution: {integrity: sha512-y5CbN44M+pUCdGDlZFzGGBSKCA4A/J2ZH4edTYSSxFg7ce1Xt3GtydbVKWLlzL+INfFIZAEg1ZV6hh9+QQf9YQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + resolution: {integrity: sha512-lZkCxIrjlJlMt1dLO/FbpZbzt6J/A8p4DnqzSa4PWqPEUUUnzXLeki/iyPLfV0BmHItlYgHUqJe+3KiyydmiNQ==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + resolution: {integrity: sha512-+psFT9+pIh2iuGsxFYYa/LhS5MFKmuivRsx9iPJWNSGbh2XVEjk90fmpUEjCnILPEPJnikAU6SFDiEUyOv90Pg==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.41.1': + resolution: {integrity: sha512-Wq2zpapRYLfi4aKxf2Xff0tN+7slj2d4R87WEzqw7ZLsVvO5zwYCIuEGSZYiK41+GlwUo1HiR+GdkLEJnCKTCw==} + cpu: [x64] + os: [win32] + + '@swc/core-darwin-arm64@1.11.29': + resolution: {integrity: sha512-whsCX7URzbuS5aET58c75Dloby3Gtj/ITk2vc4WW6pSDQKSPDuONsIcZ7B2ng8oz0K6ttbi4p3H/PNPQLJ4maQ==} + engines: {node: '>=10'} + cpu: [arm64] + os: [darwin] + + '@swc/core-darwin-x64@1.11.29': + resolution: {integrity: sha512-S3eTo/KYFk+76cWJRgX30hylN5XkSmjYtCBnM4jPLYn7L6zWYEPajsFLmruQEiTEDUg0gBEWLMNyUeghtswouw==} + engines: {node: '>=10'} + cpu: [x64] + os: [darwin] + + '@swc/core-linux-arm-gnueabihf@1.11.29': + resolution: {integrity: sha512-o9gdshbzkUMG6azldHdmKklcfrcMx+a23d/2qHQHPDLUPAN+Trd+sDQUYArK5Fcm7TlpG4sczz95ghN0DMkM7g==} + engines: {node: '>=10'} + cpu: [arm] + os: [linux] + + '@swc/core-linux-arm64-gnu@1.11.29': + resolution: {integrity: sha512-sLoaciOgUKQF1KX9T6hPGzvhOQaJn+3DHy4LOHeXhQqvBgr+7QcZ+hl4uixPKTzxk6hy6Hb0QOvQEdBAAR1gXw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-arm64-musl@1.11.29': + resolution: {integrity: sha512-PwjB10BC0N+Ce7RU/L23eYch6lXFHz7r3NFavIcwDNa/AAqywfxyxh13OeRy+P0cg7NDpWEETWspXeI4Ek8otw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-x64-gnu@1.11.29': + resolution: {integrity: sha512-i62vBVoPaVe9A3mc6gJG07n0/e7FVeAvdD9uzZTtGLiuIfVfIBta8EMquzvf+POLycSk79Z6lRhGPZPJPYiQaA==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-linux-x64-musl@1.11.29': + resolution: {integrity: sha512-YER0XU1xqFdK0hKkfSVX1YIyCvMDI7K07GIpefPvcfyNGs38AXKhb2byySDjbVxkdl4dycaxxhRyhQ2gKSlsFQ==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-win32-arm64-msvc@1.11.29': + resolution: {integrity: sha512-po+WHw+k9g6FAg5IJ+sMwtA/fIUL3zPQ4m/uJgONBATCVnDDkyW6dBA49uHNVtSEvjvhuD8DVWdFP847YTcITw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [win32] + + '@swc/core-win32-ia32-msvc@1.11.29': + resolution: {integrity: sha512-h+NjOrbqdRBYr5ItmStmQt6x3tnhqgwbj9YxdGPepbTDamFv7vFnhZR0YfB3jz3UKJ8H3uGJ65Zw1VsC+xpFkg==} + engines: {node: '>=10'} + cpu: [ia32] + os: [win32] + + '@swc/core-win32-x64-msvc@1.11.29': + resolution: {integrity: sha512-Q8cs2BDV9wqDvqobkXOYdC+pLUSEpX/KvI0Dgfun1F+LzuLotRFuDhrvkU9ETJA6OnD2+Fn/ieHgloiKA/Mn/g==} + engines: {node: '>=10'} + cpu: [x64] + os: [win32] + + '@swc/core@1.11.29': + resolution: {integrity: sha512-g4mThMIpWbNhV8G2rWp5a5/Igv8/2UFRJx2yImrLGMgrDDYZIopqZ/z0jZxDgqNA1QDx93rpwNF7jGsxVWcMlA==} + engines: {node: '>=10'} + peerDependencies: + '@swc/helpers': '>=0.5.17' + peerDependenciesMeta: + '@swc/helpers': + optional: true + + '@swc/counter@0.1.3': + resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + + '@swc/types@0.1.21': + resolution: {integrity: sha512-2YEtj5HJVbKivud9N4bpPBAyZhj4S2Ipe5LkUG94alTpr7in/GU/EARgPAd3BwU+YOmFVJC2+kjqhGRi3r0ZpQ==} + + '@types/estree@1.0.7': + resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==} + + '@types/node@22.15.29': + resolution: {integrity: sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==} + + '@types/prop-types@15.7.14': + resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==} + + '@types/react-dom@18.3.7': + resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} + peerDependencies: + '@types/react': ^18.0.0 + + '@types/react@18.3.23': + resolution: {integrity: sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==} + + '@vitejs/plugin-react-swc@3.10.0': + resolution: {integrity: sha512-ZmkdHw3wo/o/Rk05YsXZs/DJAfY2CdQ5DUAjoWji+PEr+hYADdGMCGgEAILbiKj+CjspBTuTACBcWDrmC8AUfw==} + peerDependencies: + vite: ^4 || ^5 || ^6 + + csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + + esbuild@0.25.5: + resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} + engines: {node: '>=18'} + hasBin: true + + fdir@6.4.5: + resolution: {integrity: sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + + postcss@8.5.4: + resolution: {integrity: sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==} + engines: {node: ^10 || ^12 || >=14} + + react-dom@18.3.1: + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + peerDependencies: + react: ^18.3.1 + + react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + engines: {node: '>=0.10.0'} + + rollup@4.41.1: + resolution: {integrity: sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + tinyglobby@0.2.14: + resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + engines: {node: '>=12.0.0'} + + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + vite@6.3.5: + resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + +snapshots: + + '@esbuild/aix-ppc64@0.25.5': + optional: true + + '@esbuild/android-arm64@0.25.5': + optional: true + + '@esbuild/android-arm@0.25.5': + optional: true + + '@esbuild/android-x64@0.25.5': + optional: true + + '@esbuild/darwin-arm64@0.25.5': + optional: true + + '@esbuild/darwin-x64@0.25.5': + optional: true + + '@esbuild/freebsd-arm64@0.25.5': + optional: true + + '@esbuild/freebsd-x64@0.25.5': + optional: true + + '@esbuild/linux-arm64@0.25.5': + optional: true + + '@esbuild/linux-arm@0.25.5': + optional: true + + '@esbuild/linux-ia32@0.25.5': + optional: true + + '@esbuild/linux-loong64@0.25.5': + optional: true + + '@esbuild/linux-mips64el@0.25.5': + optional: true + + '@esbuild/linux-ppc64@0.25.5': + optional: true + + '@esbuild/linux-riscv64@0.25.5': + optional: true + + '@esbuild/linux-s390x@0.25.5': + optional: true + + '@esbuild/linux-x64@0.25.5': + optional: true + + '@esbuild/netbsd-arm64@0.25.5': + optional: true + + '@esbuild/netbsd-x64@0.25.5': + optional: true + + '@esbuild/openbsd-arm64@0.25.5': + optional: true + + '@esbuild/openbsd-x64@0.25.5': + optional: true + + '@esbuild/sunos-x64@0.25.5': + optional: true + + '@esbuild/win32-arm64@0.25.5': + optional: true + + '@esbuild/win32-ia32@0.25.5': + optional: true + + '@esbuild/win32-x64@0.25.5': + optional: true + + '@rolldown/pluginutils@1.0.0-beta.9': {} + + '@rollup/rollup-android-arm-eabi@4.41.1': + optional: true + + '@rollup/rollup-android-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-x64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-arm64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-x64@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-musl@4.41.1': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.41.1': + optional: true + + '@swc/core-darwin-arm64@1.11.29': + optional: true + + '@swc/core-darwin-x64@1.11.29': + optional: true + + '@swc/core-linux-arm-gnueabihf@1.11.29': + optional: true + + '@swc/core-linux-arm64-gnu@1.11.29': + optional: true + + '@swc/core-linux-arm64-musl@1.11.29': + optional: true + + '@swc/core-linux-x64-gnu@1.11.29': + optional: true + + '@swc/core-linux-x64-musl@1.11.29': + optional: true + + '@swc/core-win32-arm64-msvc@1.11.29': + optional: true + + '@swc/core-win32-ia32-msvc@1.11.29': + optional: true + + '@swc/core-win32-x64-msvc@1.11.29': + optional: true + + '@swc/core@1.11.29': + dependencies: + '@swc/counter': 0.1.3 + '@swc/types': 0.1.21 + optionalDependencies: + '@swc/core-darwin-arm64': 1.11.29 + '@swc/core-darwin-x64': 1.11.29 + '@swc/core-linux-arm-gnueabihf': 1.11.29 + '@swc/core-linux-arm64-gnu': 1.11.29 + '@swc/core-linux-arm64-musl': 1.11.29 + '@swc/core-linux-x64-gnu': 1.11.29 + '@swc/core-linux-x64-musl': 1.11.29 + '@swc/core-win32-arm64-msvc': 1.11.29 + '@swc/core-win32-ia32-msvc': 1.11.29 + '@swc/core-win32-x64-msvc': 1.11.29 + + '@swc/counter@0.1.3': {} + + '@swc/types@0.1.21': + dependencies: + '@swc/counter': 0.1.3 + + '@types/estree@1.0.7': {} + + '@types/node@22.15.29': + dependencies: + undici-types: 6.21.0 + + '@types/prop-types@15.7.14': {} + + '@types/react-dom@18.3.7(@types/react@18.3.23)': + dependencies: + '@types/react': 18.3.23 + + '@types/react@18.3.23': + dependencies: + '@types/prop-types': 15.7.14 + csstype: 3.1.3 + + '@vitejs/plugin-react-swc@3.10.0(vite@6.3.5(@types/node@22.15.29))': + dependencies: + '@rolldown/pluginutils': 1.0.0-beta.9 + '@swc/core': 1.11.29 + vite: 6.3.5(@types/node@22.15.29) + transitivePeerDependencies: + - '@swc/helpers' + + csstype@3.1.3: {} + + esbuild@0.25.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.5 + '@esbuild/android-arm': 0.25.5 + '@esbuild/android-arm64': 0.25.5 + '@esbuild/android-x64': 0.25.5 + '@esbuild/darwin-arm64': 0.25.5 + '@esbuild/darwin-x64': 0.25.5 + '@esbuild/freebsd-arm64': 0.25.5 + '@esbuild/freebsd-x64': 0.25.5 + '@esbuild/linux-arm': 0.25.5 + '@esbuild/linux-arm64': 0.25.5 + '@esbuild/linux-ia32': 0.25.5 + '@esbuild/linux-loong64': 0.25.5 + '@esbuild/linux-mips64el': 0.25.5 + '@esbuild/linux-ppc64': 0.25.5 + '@esbuild/linux-riscv64': 0.25.5 + '@esbuild/linux-s390x': 0.25.5 + '@esbuild/linux-x64': 0.25.5 + '@esbuild/netbsd-arm64': 0.25.5 + '@esbuild/netbsd-x64': 0.25.5 + '@esbuild/openbsd-arm64': 0.25.5 + '@esbuild/openbsd-x64': 0.25.5 + '@esbuild/sunos-x64': 0.25.5 + '@esbuild/win32-arm64': 0.25.5 + '@esbuild/win32-ia32': 0.25.5 + '@esbuild/win32-x64': 0.25.5 + + fdir@6.4.5(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + + fsevents@2.3.3: + optional: true + + js-tokens@4.0.0: {} + + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + + nanoid@3.3.11: {} + + picocolors@1.1.1: {} + + picomatch@4.0.2: {} + + postcss@8.5.4: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + react-dom@18.3.1(react@18.3.1): + dependencies: + loose-envify: 1.4.0 + react: 18.3.1 + scheduler: 0.23.2 + + react@18.3.1: + dependencies: + loose-envify: 1.4.0 + + rollup@4.41.1: + dependencies: + '@types/estree': 1.0.7 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.41.1 + '@rollup/rollup-android-arm64': 4.41.1 + '@rollup/rollup-darwin-arm64': 4.41.1 + '@rollup/rollup-darwin-x64': 4.41.1 + '@rollup/rollup-freebsd-arm64': 4.41.1 + '@rollup/rollup-freebsd-x64': 4.41.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.41.1 + '@rollup/rollup-linux-arm-musleabihf': 4.41.1 + '@rollup/rollup-linux-arm64-gnu': 4.41.1 + '@rollup/rollup-linux-arm64-musl': 4.41.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.41.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-musl': 4.41.1 + '@rollup/rollup-linux-s390x-gnu': 4.41.1 + '@rollup/rollup-linux-x64-gnu': 4.41.1 + '@rollup/rollup-linux-x64-musl': 4.41.1 + '@rollup/rollup-win32-arm64-msvc': 4.41.1 + '@rollup/rollup-win32-ia32-msvc': 4.41.1 + '@rollup/rollup-win32-x64-msvc': 4.41.1 + fsevents: 2.3.3 + + scheduler@0.23.2: + dependencies: + loose-envify: 1.4.0 + + source-map-js@1.2.1: {} + + tinyglobby@0.2.14: + dependencies: + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + + typescript@5.8.3: {} + + undici-types@6.21.0: {} + + vite@6.3.5(@types/node@22.15.29): + dependencies: + esbuild: 0.25.5 + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + postcss: 8.5.4 + rollup: 4.41.1 + tinyglobby: 0.2.14 + optionalDependencies: + '@types/node': 22.15.29 + fsevents: 2.3.3 diff --git a/e2e-tests/fixtures/import-app/minimal/src/App.tsx b/e2e-tests/fixtures/import-app/minimal/src/App.tsx new file mode 100644 index 0000000..295988b --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/src/App.tsx @@ -0,0 +1,3 @@ +const App = () =>
Minimal imported app
; + +export default App; diff --git a/e2e-tests/fixtures/import-app/minimal/src/main.tsx b/e2e-tests/fixtures/import-app/minimal/src/main.tsx new file mode 100644 index 0000000..c8d124c --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/src/main.tsx @@ -0,0 +1,4 @@ +import { createRoot } from "react-dom/client"; +import App from "./App.tsx"; + +createRoot(document.getElementById("root")!).render(); diff --git a/e2e-tests/fixtures/import-app/minimal/src/vite-env.d.ts b/e2e-tests/fixtures/import-app/minimal/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/e2e-tests/fixtures/import-app/minimal/tsconfig.app.json b/e2e-tests/fixtures/import-app/minimal/tsconfig.app.json new file mode 100644 index 0000000..0b0e43e --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/tsconfig.app.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": false, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitAny": false, + "noFallthroughCasesInSwitch": false, + + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["src"] +} diff --git a/e2e-tests/fixtures/import-app/minimal/tsconfig.json b/e2e-tests/fixtures/import-app/minimal/tsconfig.json new file mode 100644 index 0000000..129b1a3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/tsconfig.json @@ -0,0 +1,19 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ], + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, + "noImplicitAny": false, + "noUnusedParameters": false, + "skipLibCheck": true, + "allowJs": true, + "noUnusedLocals": false, + "strictNullChecks": false + } +} diff --git a/e2e-tests/fixtures/import-app/minimal/tsconfig.node.json b/e2e-tests/fixtures/import-app/minimal/tsconfig.node.json new file mode 100644 index 0000000..3133162 --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/tsconfig.node.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/e2e-tests/fixtures/import-app/minimal/vite.config.ts b/e2e-tests/fixtures/import-app/minimal/vite.config.ts new file mode 100644 index 0000000..19e7eca --- /dev/null +++ b/e2e-tests/fixtures/import-app/minimal/vite.config.ts @@ -0,0 +1,16 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react-swc"; +import path from "path"; + +export default defineConfig(() => ({ + server: { + host: "::", + port: 8080, + }, + plugins: [react()], + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, +})); diff --git a/e2e-tests/fixtures/import-app/select-component/.gitignore b/e2e-tests/fixtures/import-app/select-component/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/e2e-tests/fixtures/import-app/select-component/AI_RULES.md b/e2e-tests/fixtures/import-app/select-component/AI_RULES.md new file mode 100644 index 0000000..706e081 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/AI_RULES.md @@ -0,0 +1 @@ +# AI RULES placeholder diff --git a/e2e-tests/fixtures/import-app/select-component/components.json b/e2e-tests/fixtures/import-app/select-component/components.json new file mode 100644 index 0000000..285033d --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/components.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/styles/globals.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "iconLibrary": "lucide" +} diff --git a/e2e-tests/fixtures/import-app/select-component/index.html b/e2e-tests/fixtures/import-app/select-component/index.html new file mode 100644 index 0000000..6595328 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/index.html @@ -0,0 +1,13 @@ + + + + + + dyad-generated-app + + + +
+ + + diff --git a/e2e-tests/fixtures/import-app/select-component/package.json b/e2e-tests/fixtures/import-app/select-component/package.json new file mode 100644 index 0000000..96ee388 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/package.json @@ -0,0 +1,34 @@ +{ + "name": "vite_react_shadcn_ts", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "build:dev": "vite build --mode development", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@radix-ui/react-slot": "^1.2.3", + "@tailwindcss/vite": "^4.1.8", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "lucide-react": "^0.514.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-router-dom": "^6.26.2", + "tailwind-merge": "^3.3.1", + "tailwindcss": "^4.1.8" + }, + "devDependencies": { + "@types/node": "^22.5.5", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@vitejs/plugin-react-swc": "^3.9.0", + "tw-animate-css": "^1.3.4", + "typescript": "^5.5.3", + "vite": "^6.3.4" + } +} diff --git a/e2e-tests/fixtures/import-app/select-component/pnpm-lock.yaml b/e2e-tests/fixtures/import-app/select-component/pnpm-lock.yaml new file mode 100644 index 0000000..1952744 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/pnpm-lock.yaml @@ -0,0 +1,1373 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@radix-ui/react-slot': + specifier: ^1.2.3 + version: 1.2.3(@types/react@18.3.23)(react@18.3.1) + '@tailwindcss/vite': + specifier: ^4.1.8 + version: 4.1.8(vite@6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1)) + class-variance-authority: + specifier: ^0.7.1 + version: 0.7.1 + clsx: + specifier: ^2.1.1 + version: 2.1.1 + lucide-react: + specifier: ^0.514.0 + version: 0.514.0(react@18.3.1) + react: + specifier: ^18.3.1 + version: 18.3.1 + react-dom: + specifier: ^18.3.1 + version: 18.3.1(react@18.3.1) + react-router-dom: + specifier: ^6.26.2 + version: 6.30.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + tailwind-merge: + specifier: ^3.3.1 + version: 3.3.1 + tailwindcss: + specifier: ^4.1.8 + version: 4.1.8 + devDependencies: + '@types/node': + specifier: ^22.5.5 + version: 22.15.29 + '@types/react': + specifier: ^18.3.3 + version: 18.3.23 + '@types/react-dom': + specifier: ^18.3.0 + version: 18.3.7(@types/react@18.3.23) + '@vitejs/plugin-react-swc': + specifier: ^3.9.0 + version: 3.10.0(vite@6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1)) + tw-animate-css: + specifier: ^1.3.4 + version: 1.3.4 + typescript: + specifier: ^5.5.3 + version: 5.8.3 + vite: + specifier: ^6.3.4 + version: 6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1) + +packages: + + '@ampproject/remapping@2.3.0': + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + + '@esbuild/aix-ppc64@0.25.5': + resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.5': + resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.5': + resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.5': + resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.5': + resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.5': + resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.5': + resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.5': + resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.5': + resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.5': + resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.5': + resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.5': + resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.5': + resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.5': + resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.5': + resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.5': + resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.5': + resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.5': + resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.5': + resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.5': + resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.5': + resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.25.5': + resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.5': + resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.5': + resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.5': + resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@radix-ui/react-compose-refs@1.1.2': + resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-slot@1.2.3': + resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@remix-run/router@1.23.0': + resolution: {integrity: sha512-O3rHJzAQKamUz1fvE0Qaw0xSFqsA/yafi2iqeE0pvdFtCO1viYx8QL6f3Ln/aCCTLxs68SLf0KPM9eSeM8yBnA==} + engines: {node: '>=14.0.0'} + + '@rolldown/pluginutils@1.0.0-beta.9': + resolution: {integrity: sha512-e9MeMtVWo186sgvFFJOPGy7/d2j2mZhLJIdVW0C/xDluuOvymEATqz6zKsP0ZmXGzQtqlyjz5sC1sYQUoJG98w==} + + '@rollup/rollup-android-arm-eabi@4.41.1': + resolution: {integrity: sha512-NELNvyEWZ6R9QMkiytB4/L4zSEaBC03KIXEghptLGLZWJ6VPrL63ooZQCOnlx36aQPGhzuOMwDerC1Eb2VmrLw==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.41.1': + resolution: {integrity: sha512-DXdQe1BJ6TK47ukAoZLehRHhfKnKg9BjnQYUu9gzhI8Mwa1d2fzxA1aw2JixHVl403bwp1+/o/NhhHtxWJBgEA==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.41.1': + resolution: {integrity: sha512-5afxvwszzdulsU2w8JKWwY8/sJOLPzf0e1bFuvcW5h9zsEg+RQAojdW0ux2zyYAz7R8HvvzKCjLNJhVq965U7w==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.41.1': + resolution: {integrity: sha512-egpJACny8QOdHNNMZKf8xY0Is6gIMz+tuqXlusxquWu3F833DcMwmGM7WlvCO9sB3OsPjdC4U0wHw5FabzCGZg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.41.1': + resolution: {integrity: sha512-DBVMZH5vbjgRk3r0OzgjS38z+atlupJ7xfKIDJdZZL6sM6wjfDNo64aowcLPKIx7LMQi8vybB56uh1Ftck/Atg==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.41.1': + resolution: {integrity: sha512-3FkydeohozEskBxNWEIbPfOE0aqQgB6ttTkJ159uWOFn42VLyfAiyD9UK5mhu+ItWzft60DycIN1Xdgiy8o/SA==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + resolution: {integrity: sha512-wC53ZNDgt0pqx5xCAgNunkTzFE8GTgdZ9EwYGVcg+jEjJdZGtq9xPjDnFgfFozQI/Xm1mh+D9YlYtl+ueswNEg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + resolution: {integrity: sha512-jwKCca1gbZkZLhLRtsrka5N8sFAaxrGz/7wRJ8Wwvq3jug7toO21vWlViihG85ei7uJTpzbXZRcORotE+xyrLA==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + resolution: {integrity: sha512-g0UBcNknsmmNQ8V2d/zD2P7WWfJKU0F1nu0k5pW4rvdb+BIqMm8ToluW/eeRmxCared5dD76lS04uL4UaNgpNA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.41.1': + resolution: {integrity: sha512-XZpeGB5TKEZWzIrj7sXr+BEaSgo/ma/kCgrZgL0oo5qdB1JlTzIYQKel/RmhT6vMAvOdM2teYlAaOGJpJ9lahg==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + resolution: {integrity: sha512-bkCfDJ4qzWfFRCNt5RVV4DOw6KEgFTUZi2r2RuYhGWC8WhCA8lCAJhDeAmrM/fdiAH54m0mA0Vk2FGRPyzI+tw==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + resolution: {integrity: sha512-3mr3Xm+gvMX+/8EKogIZSIEF0WUu0HL9di+YWlJpO8CQBnoLAEL/roTCxuLncEdgcfJcvA4UMOf+2dnjl4Ut1A==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + resolution: {integrity: sha512-3rwCIh6MQ1LGrvKJitQjZFuQnT2wxfU+ivhNBzmxXTXPllewOF7JR1s2vMX/tWtUYFgphygxjqMl76q4aMotGw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + resolution: {integrity: sha512-LdIUOb3gvfmpkgFZuccNa2uYiqtgZAz3PTzjuM5bH3nvuy9ty6RGc/Q0+HDFrHrizJGVpjnTZ1yS5TNNjFlklw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + resolution: {integrity: sha512-oIE6M8WC9ma6xYqjvPhzZYk6NbobIURvP/lEbh7FWplcMO6gn7MM2yHKA1eC/GvYwzNKK/1LYgqzdkZ8YFxR8g==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.41.1': + resolution: {integrity: sha512-cWBOvayNvA+SyeQMp79BHPK8ws6sHSsYnK5zDcsC3Hsxr1dgTABKjMnMslPq1DvZIp6uO7kIWhiGwaTdR4Og9A==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.41.1': + resolution: {integrity: sha512-y5CbN44M+pUCdGDlZFzGGBSKCA4A/J2ZH4edTYSSxFg7ce1Xt3GtydbVKWLlzL+INfFIZAEg1ZV6hh9+QQf9YQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + resolution: {integrity: sha512-lZkCxIrjlJlMt1dLO/FbpZbzt6J/A8p4DnqzSa4PWqPEUUUnzXLeki/iyPLfV0BmHItlYgHUqJe+3KiyydmiNQ==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + resolution: {integrity: sha512-+psFT9+pIh2iuGsxFYYa/LhS5MFKmuivRsx9iPJWNSGbh2XVEjk90fmpUEjCnILPEPJnikAU6SFDiEUyOv90Pg==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.41.1': + resolution: {integrity: sha512-Wq2zpapRYLfi4aKxf2Xff0tN+7slj2d4R87WEzqw7ZLsVvO5zwYCIuEGSZYiK41+GlwUo1HiR+GdkLEJnCKTCw==} + cpu: [x64] + os: [win32] + + '@swc/core-darwin-arm64@1.11.29': + resolution: {integrity: sha512-whsCX7URzbuS5aET58c75Dloby3Gtj/ITk2vc4WW6pSDQKSPDuONsIcZ7B2ng8oz0K6ttbi4p3H/PNPQLJ4maQ==} + engines: {node: '>=10'} + cpu: [arm64] + os: [darwin] + + '@swc/core-darwin-x64@1.11.29': + resolution: {integrity: sha512-S3eTo/KYFk+76cWJRgX30hylN5XkSmjYtCBnM4jPLYn7L6zWYEPajsFLmruQEiTEDUg0gBEWLMNyUeghtswouw==} + engines: {node: '>=10'} + cpu: [x64] + os: [darwin] + + '@swc/core-linux-arm-gnueabihf@1.11.29': + resolution: {integrity: sha512-o9gdshbzkUMG6azldHdmKklcfrcMx+a23d/2qHQHPDLUPAN+Trd+sDQUYArK5Fcm7TlpG4sczz95ghN0DMkM7g==} + engines: {node: '>=10'} + cpu: [arm] + os: [linux] + + '@swc/core-linux-arm64-gnu@1.11.29': + resolution: {integrity: sha512-sLoaciOgUKQF1KX9T6hPGzvhOQaJn+3DHy4LOHeXhQqvBgr+7QcZ+hl4uixPKTzxk6hy6Hb0QOvQEdBAAR1gXw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-arm64-musl@1.11.29': + resolution: {integrity: sha512-PwjB10BC0N+Ce7RU/L23eYch6lXFHz7r3NFavIcwDNa/AAqywfxyxh13OeRy+P0cg7NDpWEETWspXeI4Ek8otw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + + '@swc/core-linux-x64-gnu@1.11.29': + resolution: {integrity: sha512-i62vBVoPaVe9A3mc6gJG07n0/e7FVeAvdD9uzZTtGLiuIfVfIBta8EMquzvf+POLycSk79Z6lRhGPZPJPYiQaA==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-linux-x64-musl@1.11.29': + resolution: {integrity: sha512-YER0XU1xqFdK0hKkfSVX1YIyCvMDI7K07GIpefPvcfyNGs38AXKhb2byySDjbVxkdl4dycaxxhRyhQ2gKSlsFQ==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + + '@swc/core-win32-arm64-msvc@1.11.29': + resolution: {integrity: sha512-po+WHw+k9g6FAg5IJ+sMwtA/fIUL3zPQ4m/uJgONBATCVnDDkyW6dBA49uHNVtSEvjvhuD8DVWdFP847YTcITw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [win32] + + '@swc/core-win32-ia32-msvc@1.11.29': + resolution: {integrity: sha512-h+NjOrbqdRBYr5ItmStmQt6x3tnhqgwbj9YxdGPepbTDamFv7vFnhZR0YfB3jz3UKJ8H3uGJ65Zw1VsC+xpFkg==} + engines: {node: '>=10'} + cpu: [ia32] + os: [win32] + + '@swc/core-win32-x64-msvc@1.11.29': + resolution: {integrity: sha512-Q8cs2BDV9wqDvqobkXOYdC+pLUSEpX/KvI0Dgfun1F+LzuLotRFuDhrvkU9ETJA6OnD2+Fn/ieHgloiKA/Mn/g==} + engines: {node: '>=10'} + cpu: [x64] + os: [win32] + + '@swc/core@1.11.29': + resolution: {integrity: sha512-g4mThMIpWbNhV8G2rWp5a5/Igv8/2UFRJx2yImrLGMgrDDYZIopqZ/z0jZxDgqNA1QDx93rpwNF7jGsxVWcMlA==} + engines: {node: '>=10'} + peerDependencies: + '@swc/helpers': '>=0.5.17' + peerDependenciesMeta: + '@swc/helpers': + optional: true + + '@swc/counter@0.1.3': + resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + + '@swc/types@0.1.21': + resolution: {integrity: sha512-2YEtj5HJVbKivud9N4bpPBAyZhj4S2Ipe5LkUG94alTpr7in/GU/EARgPAd3BwU+YOmFVJC2+kjqhGRi3r0ZpQ==} + + '@tailwindcss/node@4.1.8': + resolution: {integrity: sha512-OWwBsbC9BFAJelmnNcrKuf+bka2ZxCE2A4Ft53Tkg4uoiE67r/PMEYwCsourC26E+kmxfwE0hVzMdxqeW+xu7Q==} + + '@tailwindcss/oxide-android-arm64@4.1.8': + resolution: {integrity: sha512-Fbz7qni62uKYceWYvUjRqhGfZKwhZDQhlrJKGtnZfuNtHFqa8wmr+Wn74CTWERiW2hn3mN5gTpOoxWKk0jRxjg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.1.8': + resolution: {integrity: sha512-RdRvedGsT0vwVVDztvyXhKpsU2ark/BjgG0huo4+2BluxdXo8NDgzl77qh0T1nUxmM11eXwR8jA39ibvSTbi7A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.1.8': + resolution: {integrity: sha512-t6PgxjEMLp5Ovf7uMb2OFmb3kqzVTPPakWpBIFzppk4JE4ix0yEtbtSjPbU8+PZETpaYMtXvss2Sdkx8Vs4XRw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.1.8': + resolution: {integrity: sha512-g8C8eGEyhHTqwPStSwZNSrOlyx0bhK/V/+zX0Y+n7DoRUzyS8eMbVshVOLJTDDC+Qn9IJnilYbIKzpB9n4aBsg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.8': + resolution: {integrity: sha512-Jmzr3FA4S2tHhaC6yCjac3rGf7hG9R6Gf2z9i9JFcuyy0u79HfQsh/thifbYTF2ic82KJovKKkIB6Z9TdNhCXQ==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.1.8': + resolution: {integrity: sha512-qq7jXtO1+UEtCmCeBBIRDrPFIVI4ilEQ97qgBGdwXAARrUqSn/L9fUrkb1XP/mvVtoVeR2bt/0L77xx53bPZ/Q==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-musl@4.1.8': + resolution: {integrity: sha512-O6b8QesPbJCRshsNApsOIpzKt3ztG35gfX9tEf4arD7mwNinsoCKxkj8TgEE0YRjmjtO3r9FlJnT/ENd9EVefQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-gnu@4.1.8': + resolution: {integrity: sha512-32iEXX/pXwikshNOGnERAFwFSfiltmijMIAbUhnNyjFr3tmWmMJWQKU2vNcFX0DACSXJ3ZWcSkzNbaKTdngH6g==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-musl@4.1.8': + resolution: {integrity: sha512-s+VSSD+TfZeMEsCaFaHTaY5YNj3Dri8rST09gMvYQKwPphacRG7wbuQ5ZJMIJXN/puxPcg/nU+ucvWguPpvBDg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-wasm32-wasi@4.1.8': + resolution: {integrity: sha512-CXBPVFkpDjM67sS1psWohZ6g/2/cd+cq56vPxK4JeawelxwK4YECgl9Y9TjkE2qfF+9/s1tHHJqrC4SS6cVvSg==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.1.8': + resolution: {integrity: sha512-7GmYk1n28teDHUjPlIx4Z6Z4hHEgvP5ZW2QS9ygnDAdI/myh3HTHjDqtSqgu1BpRoI4OiLx+fThAyA1JePoENA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.1.8': + resolution: {integrity: sha512-fou+U20j+Jl0EHwK92spoWISON2OBnCazIc038Xj2TdweYV33ZRkS9nwqiUi2d/Wba5xg5UoHfvynnb/UB49cQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.1.8': + resolution: {integrity: sha512-d7qvv9PsM5N3VNKhwVUhpK6r4h9wtLkJ6lz9ZY9aeZgrUWk1Z8VPyqyDT9MZlem7GTGseRQHkeB1j3tC7W1P+A==} + engines: {node: '>= 10'} + + '@tailwindcss/vite@4.1.8': + resolution: {integrity: sha512-CQ+I8yxNV5/6uGaJjiuymgw0kEQiNKRinYbZXPdx1fk5WgiyReG0VaUx/Xq6aVNSUNJFzxm6o8FNKS5aMaim5A==} + peerDependencies: + vite: ^5.2.0 || ^6 + + '@types/estree@1.0.7': + resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==} + + '@types/node@22.15.29': + resolution: {integrity: sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==} + + '@types/prop-types@15.7.14': + resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==} + + '@types/react-dom@18.3.7': + resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} + peerDependencies: + '@types/react': ^18.0.0 + + '@types/react@18.3.23': + resolution: {integrity: sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==} + + '@vitejs/plugin-react-swc@3.10.0': + resolution: {integrity: sha512-ZmkdHw3wo/o/Rk05YsXZs/DJAfY2CdQ5DUAjoWji+PEr+hYADdGMCGgEAILbiKj+CjspBTuTACBcWDrmC8AUfw==} + peerDependencies: + vite: ^4 || ^5 || ^6 + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-variance-authority@0.7.1: + resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + + csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + + detect-libc@2.0.4: + resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==} + engines: {node: '>=8'} + + enhanced-resolve@5.18.1: + resolution: {integrity: sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==} + engines: {node: '>=10.13.0'} + + esbuild@0.25.5: + resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} + engines: {node: '>=18'} + hasBin: true + + fdir@6.4.5: + resolution: {integrity: sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + jiti@2.4.2: + resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==} + hasBin: true + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + lightningcss-darwin-arm64@1.30.1: + resolution: {integrity: sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.30.1: + resolution: {integrity: sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.30.1: + resolution: {integrity: sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.30.1: + resolution: {integrity: sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.30.1: + resolution: {integrity: sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-arm64-musl@1.30.1: + resolution: {integrity: sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-x64-gnu@1.30.1: + resolution: {integrity: sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-linux-x64-musl@1.30.1: + resolution: {integrity: sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-win32-arm64-msvc@1.30.1: + resolution: {integrity: sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.30.1: + resolution: {integrity: sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.30.1: + resolution: {integrity: sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==} + engines: {node: '>= 12.0.0'} + + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + + lucide-react@0.514.0: + resolution: {integrity: sha512-HXD0OAMd+JM2xCjlwG1EGW9Nuab64dhjO3+MvdyD+pSUeOTBaVAPhQblKIYmmX4RyBYbdzW0VWnJpjJmxWGr6w==} + peerDependencies: + react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.0.2: + resolution: {integrity: sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==} + engines: {node: '>= 18'} + + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} + engines: {node: '>=10'} + hasBin: true + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + + postcss@8.5.4: + resolution: {integrity: sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==} + engines: {node: ^10 || ^12 || >=14} + + react-dom@18.3.1: + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + peerDependencies: + react: ^18.3.1 + + react-router-dom@6.30.1: + resolution: {integrity: sha512-llKsgOkZdbPU1Eg3zK8lCn+sjD9wMRZZPuzmdWWX5SUs8OFkN5HnFVC0u5KMeMaC9aoancFI/KoLuKPqN+hxHw==} + engines: {node: '>=14.0.0'} + peerDependencies: + react: '>=16.8' + react-dom: '>=16.8' + + react-router@6.30.1: + resolution: {integrity: sha512-X1m21aEmxGXqENEPG3T6u0Th7g0aS4ZmoNynhbs+Cn+q+QGTLt+d5IQ2bHAXKzKcxGJjxACpVbnYQSCRcfxHlQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + react: '>=16.8' + + react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + engines: {node: '>=0.10.0'} + + rollup@4.41.1: + resolution: {integrity: sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + tailwind-merge@3.3.1: + resolution: {integrity: sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==} + + tailwindcss@4.1.8: + resolution: {integrity: sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==} + + tapable@2.2.2: + resolution: {integrity: sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==} + engines: {node: '>=6'} + + tar@7.4.3: + resolution: {integrity: sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==} + engines: {node: '>=18'} + + tinyglobby@0.2.14: + resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + engines: {node: '>=12.0.0'} + + tw-animate-css@1.3.4: + resolution: {integrity: sha512-dd1Ht6/YQHcNbq0znIT6dG8uhO7Ce+VIIhZUhjsryXsMPJQz3bZg7Q2eNzLwipb25bRZslGb2myio5mScd1TFg==} + + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + vite@6.3.5: + resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + +snapshots: + + '@ampproject/remapping@2.3.0': + dependencies: + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + + '@esbuild/aix-ppc64@0.25.5': + optional: true + + '@esbuild/android-arm64@0.25.5': + optional: true + + '@esbuild/android-arm@0.25.5': + optional: true + + '@esbuild/android-x64@0.25.5': + optional: true + + '@esbuild/darwin-arm64@0.25.5': + optional: true + + '@esbuild/darwin-x64@0.25.5': + optional: true + + '@esbuild/freebsd-arm64@0.25.5': + optional: true + + '@esbuild/freebsd-x64@0.25.5': + optional: true + + '@esbuild/linux-arm64@0.25.5': + optional: true + + '@esbuild/linux-arm@0.25.5': + optional: true + + '@esbuild/linux-ia32@0.25.5': + optional: true + + '@esbuild/linux-loong64@0.25.5': + optional: true + + '@esbuild/linux-mips64el@0.25.5': + optional: true + + '@esbuild/linux-ppc64@0.25.5': + optional: true + + '@esbuild/linux-riscv64@0.25.5': + optional: true + + '@esbuild/linux-s390x@0.25.5': + optional: true + + '@esbuild/linux-x64@0.25.5': + optional: true + + '@esbuild/netbsd-arm64@0.25.5': + optional: true + + '@esbuild/netbsd-x64@0.25.5': + optional: true + + '@esbuild/openbsd-arm64@0.25.5': + optional: true + + '@esbuild/openbsd-x64@0.25.5': + optional: true + + '@esbuild/sunos-x64@0.25.5': + optional: true + + '@esbuild/win32-arm64@0.25.5': + optional: true + + '@esbuild/win32-ia32@0.25.5': + optional: true + + '@esbuild/win32-x64@0.25.5': + optional: true + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.2 + + '@jridgewell/gen-mapping@0.3.8': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@radix-ui/react-compose-refs@1.1.2(@types/react@18.3.23)(react@18.3.1)': + dependencies: + react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.23 + + '@radix-ui/react-slot@1.2.3(@types/react@18.3.23)(react@18.3.1)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@18.3.23)(react@18.3.1) + react: 18.3.1 + optionalDependencies: + '@types/react': 18.3.23 + + '@remix-run/router@1.23.0': {} + + '@rolldown/pluginutils@1.0.0-beta.9': {} + + '@rollup/rollup-android-arm-eabi@4.41.1': + optional: true + + '@rollup/rollup-android-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-arm64@4.41.1': + optional: true + + '@rollup/rollup-darwin-x64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-arm64@4.41.1': + optional: true + + '@rollup/rollup-freebsd-x64@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.41.1': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.41.1': + optional: true + + '@rollup/rollup-linux-x64-musl@4.41.1': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.41.1': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.41.1': + optional: true + + '@swc/core-darwin-arm64@1.11.29': + optional: true + + '@swc/core-darwin-x64@1.11.29': + optional: true + + '@swc/core-linux-arm-gnueabihf@1.11.29': + optional: true + + '@swc/core-linux-arm64-gnu@1.11.29': + optional: true + + '@swc/core-linux-arm64-musl@1.11.29': + optional: true + + '@swc/core-linux-x64-gnu@1.11.29': + optional: true + + '@swc/core-linux-x64-musl@1.11.29': + optional: true + + '@swc/core-win32-arm64-msvc@1.11.29': + optional: true + + '@swc/core-win32-ia32-msvc@1.11.29': + optional: true + + '@swc/core-win32-x64-msvc@1.11.29': + optional: true + + '@swc/core@1.11.29': + dependencies: + '@swc/counter': 0.1.3 + '@swc/types': 0.1.21 + optionalDependencies: + '@swc/core-darwin-arm64': 1.11.29 + '@swc/core-darwin-x64': 1.11.29 + '@swc/core-linux-arm-gnueabihf': 1.11.29 + '@swc/core-linux-arm64-gnu': 1.11.29 + '@swc/core-linux-arm64-musl': 1.11.29 + '@swc/core-linux-x64-gnu': 1.11.29 + '@swc/core-linux-x64-musl': 1.11.29 + '@swc/core-win32-arm64-msvc': 1.11.29 + '@swc/core-win32-ia32-msvc': 1.11.29 + '@swc/core-win32-x64-msvc': 1.11.29 + + '@swc/counter@0.1.3': {} + + '@swc/types@0.1.21': + dependencies: + '@swc/counter': 0.1.3 + + '@tailwindcss/node@4.1.8': + dependencies: + '@ampproject/remapping': 2.3.0 + enhanced-resolve: 5.18.1 + jiti: 2.4.2 + lightningcss: 1.30.1 + magic-string: 0.30.17 + source-map-js: 1.2.1 + tailwindcss: 4.1.8 + + '@tailwindcss/oxide-android-arm64@4.1.8': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.1.8': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.1.8': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.1.8': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.8': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.1.8': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.1.8': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.1.8': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.1.8': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.1.8': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.1.8': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.1.8': + optional: true + + '@tailwindcss/oxide@4.1.8': + dependencies: + detect-libc: 2.0.4 + tar: 7.4.3 + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.1.8 + '@tailwindcss/oxide-darwin-arm64': 4.1.8 + '@tailwindcss/oxide-darwin-x64': 4.1.8 + '@tailwindcss/oxide-freebsd-x64': 4.1.8 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.8 + '@tailwindcss/oxide-linux-arm64-gnu': 4.1.8 + '@tailwindcss/oxide-linux-arm64-musl': 4.1.8 + '@tailwindcss/oxide-linux-x64-gnu': 4.1.8 + '@tailwindcss/oxide-linux-x64-musl': 4.1.8 + '@tailwindcss/oxide-wasm32-wasi': 4.1.8 + '@tailwindcss/oxide-win32-arm64-msvc': 4.1.8 + '@tailwindcss/oxide-win32-x64-msvc': 4.1.8 + + '@tailwindcss/vite@4.1.8(vite@6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1))': + dependencies: + '@tailwindcss/node': 4.1.8 + '@tailwindcss/oxide': 4.1.8 + tailwindcss: 4.1.8 + vite: 6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1) + + '@types/estree@1.0.7': {} + + '@types/node@22.15.29': + dependencies: + undici-types: 6.21.0 + + '@types/prop-types@15.7.14': {} + + '@types/react-dom@18.3.7(@types/react@18.3.23)': + dependencies: + '@types/react': 18.3.23 + + '@types/react@18.3.23': + dependencies: + '@types/prop-types': 15.7.14 + csstype: 3.1.3 + + '@vitejs/plugin-react-swc@3.10.0(vite@6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1))': + dependencies: + '@rolldown/pluginutils': 1.0.0-beta.9 + '@swc/core': 1.11.29 + vite: 6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1) + transitivePeerDependencies: + - '@swc/helpers' + + chownr@3.0.0: {} + + class-variance-authority@0.7.1: + dependencies: + clsx: 2.1.1 + + clsx@2.1.1: {} + + csstype@3.1.3: {} + + detect-libc@2.0.4: {} + + enhanced-resolve@5.18.1: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.2.2 + + esbuild@0.25.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.5 + '@esbuild/android-arm': 0.25.5 + '@esbuild/android-arm64': 0.25.5 + '@esbuild/android-x64': 0.25.5 + '@esbuild/darwin-arm64': 0.25.5 + '@esbuild/darwin-x64': 0.25.5 + '@esbuild/freebsd-arm64': 0.25.5 + '@esbuild/freebsd-x64': 0.25.5 + '@esbuild/linux-arm': 0.25.5 + '@esbuild/linux-arm64': 0.25.5 + '@esbuild/linux-ia32': 0.25.5 + '@esbuild/linux-loong64': 0.25.5 + '@esbuild/linux-mips64el': 0.25.5 + '@esbuild/linux-ppc64': 0.25.5 + '@esbuild/linux-riscv64': 0.25.5 + '@esbuild/linux-s390x': 0.25.5 + '@esbuild/linux-x64': 0.25.5 + '@esbuild/netbsd-arm64': 0.25.5 + '@esbuild/netbsd-x64': 0.25.5 + '@esbuild/openbsd-arm64': 0.25.5 + '@esbuild/openbsd-x64': 0.25.5 + '@esbuild/sunos-x64': 0.25.5 + '@esbuild/win32-arm64': 0.25.5 + '@esbuild/win32-ia32': 0.25.5 + '@esbuild/win32-x64': 0.25.5 + + fdir@6.4.5(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + + fsevents@2.3.3: + optional: true + + graceful-fs@4.2.11: {} + + jiti@2.4.2: {} + + js-tokens@4.0.0: {} + + lightningcss-darwin-arm64@1.30.1: + optional: true + + lightningcss-darwin-x64@1.30.1: + optional: true + + lightningcss-freebsd-x64@1.30.1: + optional: true + + lightningcss-linux-arm-gnueabihf@1.30.1: + optional: true + + lightningcss-linux-arm64-gnu@1.30.1: + optional: true + + lightningcss-linux-arm64-musl@1.30.1: + optional: true + + lightningcss-linux-x64-gnu@1.30.1: + optional: true + + lightningcss-linux-x64-musl@1.30.1: + optional: true + + lightningcss-win32-arm64-msvc@1.30.1: + optional: true + + lightningcss-win32-x64-msvc@1.30.1: + optional: true + + lightningcss@1.30.1: + dependencies: + detect-libc: 2.0.4 + optionalDependencies: + lightningcss-darwin-arm64: 1.30.1 + lightningcss-darwin-x64: 1.30.1 + lightningcss-freebsd-x64: 1.30.1 + lightningcss-linux-arm-gnueabihf: 1.30.1 + lightningcss-linux-arm64-gnu: 1.30.1 + lightningcss-linux-arm64-musl: 1.30.1 + lightningcss-linux-x64-gnu: 1.30.1 + lightningcss-linux-x64-musl: 1.30.1 + lightningcss-win32-arm64-msvc: 1.30.1 + lightningcss-win32-x64-msvc: 1.30.1 + + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + + lucide-react@0.514.0(react@18.3.1): + dependencies: + react: 18.3.1 + + magic-string@0.30.17: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + minipass@7.1.2: {} + + minizlib@3.0.2: + dependencies: + minipass: 7.1.2 + + mkdirp@3.0.1: {} + + nanoid@3.3.11: {} + + picocolors@1.1.1: {} + + picomatch@4.0.2: {} + + postcss@8.5.4: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + react-dom@18.3.1(react@18.3.1): + dependencies: + loose-envify: 1.4.0 + react: 18.3.1 + scheduler: 0.23.2 + + react-router-dom@6.30.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + dependencies: + '@remix-run/router': 1.23.0 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-router: 6.30.1(react@18.3.1) + + react-router@6.30.1(react@18.3.1): + dependencies: + '@remix-run/router': 1.23.0 + react: 18.3.1 + + react@18.3.1: + dependencies: + loose-envify: 1.4.0 + + rollup@4.41.1: + dependencies: + '@types/estree': 1.0.7 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.41.1 + '@rollup/rollup-android-arm64': 4.41.1 + '@rollup/rollup-darwin-arm64': 4.41.1 + '@rollup/rollup-darwin-x64': 4.41.1 + '@rollup/rollup-freebsd-arm64': 4.41.1 + '@rollup/rollup-freebsd-x64': 4.41.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.41.1 + '@rollup/rollup-linux-arm-musleabihf': 4.41.1 + '@rollup/rollup-linux-arm64-gnu': 4.41.1 + '@rollup/rollup-linux-arm64-musl': 4.41.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.41.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-gnu': 4.41.1 + '@rollup/rollup-linux-riscv64-musl': 4.41.1 + '@rollup/rollup-linux-s390x-gnu': 4.41.1 + '@rollup/rollup-linux-x64-gnu': 4.41.1 + '@rollup/rollup-linux-x64-musl': 4.41.1 + '@rollup/rollup-win32-arm64-msvc': 4.41.1 + '@rollup/rollup-win32-ia32-msvc': 4.41.1 + '@rollup/rollup-win32-x64-msvc': 4.41.1 + fsevents: 2.3.3 + + scheduler@0.23.2: + dependencies: + loose-envify: 1.4.0 + + source-map-js@1.2.1: {} + + tailwind-merge@3.3.1: {} + + tailwindcss@4.1.8: {} + + tapable@2.2.2: {} + + tar@7.4.3: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.2 + minizlib: 3.0.2 + mkdirp: 3.0.1 + yallist: 5.0.0 + + tinyglobby@0.2.14: + dependencies: + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + + tw-animate-css@1.3.4: {} + + typescript@5.8.3: {} + + undici-types@6.21.0: {} + + vite@6.3.5(@types/node@22.15.29)(jiti@2.4.2)(lightningcss@1.30.1): + dependencies: + esbuild: 0.25.5 + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 + postcss: 8.5.4 + rollup: 4.41.1 + tinyglobby: 0.2.14 + optionalDependencies: + '@types/node': 22.15.29 + fsevents: 2.3.3 + jiti: 2.4.2 + lightningcss: 1.30.1 + + yallist@5.0.0: {} diff --git a/e2e-tests/fixtures/import-app/select-component/src/App.tsx b/e2e-tests/fixtures/import-app/select-component/src/App.tsx new file mode 100644 index 0000000..c7f60fb --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/src/App.tsx @@ -0,0 +1,12 @@ +import { BrowserRouter, Routes, Route } from "react-router-dom"; +import Index from "./pages/Index"; + +const App = () => ( + + + } /> + + +); + +export default App; diff --git a/e2e-tests/fixtures/import-app/select-component/src/components/ui/button.tsx b/e2e-tests/fixtures/import-app/select-component/src/components/ui/button.tsx new file mode 100644 index 0000000..2adaf00 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/src/components/ui/button.tsx @@ -0,0 +1,59 @@ +import * as React from "react"; +import { Slot } from "@radix-ui/react-slot"; +import { cva, type VariantProps } from "class-variance-authority"; + +import { cn } from "@/lib/utils"; + +const buttonVariants = cva( + "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", + { + variants: { + variant: { + default: + "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90", + destructive: + "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", + outline: + "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50", + secondary: + "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80", + ghost: + "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", + link: "text-primary underline-offset-4 hover:underline", + }, + size: { + default: "h-9 px-4 py-2 has-[>svg]:px-3", + sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5", + lg: "h-10 rounded-md px-6 has-[>svg]:px-4", + icon: "size-9", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + }, +); + +function Button({ + className, + variant, + size, + asChild = false, + ...props +}: React.ComponentProps<"button"> & + VariantProps & { + asChild?: boolean; + }) { + const Comp = asChild ? Slot : "button"; + + return ( + + ); +} + +export { Button, buttonVariants }; diff --git a/e2e-tests/fixtures/import-app/select-component/src/lib/utils.ts b/e2e-tests/fixtures/import-app/select-component/src/lib/utils.ts new file mode 100644 index 0000000..a5ef193 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/src/lib/utils.ts @@ -0,0 +1,6 @@ +import { clsx, type ClassValue } from "clsx"; +import { twMerge } from "tailwind-merge"; + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)); +} diff --git a/e2e-tests/fixtures/import-app/select-component/src/main.tsx b/e2e-tests/fixtures/import-app/select-component/src/main.tsx new file mode 100644 index 0000000..f7b4cce --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/src/main.tsx @@ -0,0 +1,5 @@ +import { createRoot } from "react-dom/client"; +import App from "./App.tsx"; +import "./styles/globals.css"; + +createRoot(document.getElementById("root")!).render(); diff --git a/e2e-tests/fixtures/import-app/select-component/src/pages/Index.tsx b/e2e-tests/fixtures/import-app/select-component/src/pages/Index.tsx new file mode 100644 index 0000000..9f9debe --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/src/pages/Index.tsx @@ -0,0 +1,62 @@ +import { Button } from "@/components/ui/button"; +import { Rocket, ShieldCheck, Sparkles } from "lucide-react"; + +const features = [ + { + icon: , + title: "Fast & Modern", + description: "Built with the latest tech for blazing fast performance.", + }, + { + icon: , + title: "Secure by Design", + description: "Security best practices baked in from the start.", + }, + { + icon: , + title: "Easy to Customize", + description: "Effortlessly adapt the template to your needs.", + }, +]; + +const Index = () => { + return ( +
+ {/* Hero Section */} +
+

+ Launch Your Next Project +

+

+ A simple, modern landing page template built with React, shadcn/ui, + and Tailwind CSS. +

+ +
+ + {/* Features Section */} +
+
+
+ {features.map((feature, idx) => ( +
+ {feature.icon} +

+ {feature.title} +

+

{feature.description}

+
+ ))} +
+
+
+
+ ); +}; + +export default Index; diff --git a/e2e-tests/fixtures/import-app/select-component/src/styles/globals.css b/e2e-tests/fixtures/import-app/select-component/src/styles/globals.css new file mode 100644 index 0000000..f4c1e9b --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/src/styles/globals.css @@ -0,0 +1,120 @@ +@import "tailwindcss"; +@import "tw-animate-css"; + +@custom-variant dark (&:is(.dark *)); + +@theme inline { + --radius-sm: calc(var(--radius) - 4px); + --radius-md: calc(var(--radius) - 2px); + --radius-lg: var(--radius); + --radius-xl: calc(var(--radius) + 4px); + --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-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); + --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); +} + +: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); +} + +.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); +} + +@layer base { + * { + @apply border-border outline-ring/50; + } + body { + @apply bg-background text-foreground; + } +} diff --git a/e2e-tests/fixtures/import-app/select-component/src/vite-env.d.ts b/e2e-tests/fixtures/import-app/select-component/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/e2e-tests/fixtures/import-app/select-component/tsconfig.app.json b/e2e-tests/fixtures/import-app/select-component/tsconfig.app.json new file mode 100644 index 0000000..0b0e43e --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/tsconfig.app.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": false, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitAny": false, + "noFallthroughCasesInSwitch": false, + + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["src"] +} diff --git a/e2e-tests/fixtures/import-app/select-component/tsconfig.json b/e2e-tests/fixtures/import-app/select-component/tsconfig.json new file mode 100644 index 0000000..129b1a3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/tsconfig.json @@ -0,0 +1,19 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ], + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, + "noImplicitAny": false, + "noUnusedParameters": false, + "skipLibCheck": true, + "allowJs": true, + "noUnusedLocals": false, + "strictNullChecks": false + } +} diff --git a/e2e-tests/fixtures/import-app/select-component/tsconfig.node.json b/e2e-tests/fixtures/import-app/select-component/tsconfig.node.json new file mode 100644 index 0000000..3133162 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/tsconfig.node.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/e2e-tests/fixtures/import-app/select-component/vite.config.ts b/e2e-tests/fixtures/import-app/select-component/vite.config.ts new file mode 100644 index 0000000..e58c1b3 --- /dev/null +++ b/e2e-tests/fixtures/import-app/select-component/vite.config.ts @@ -0,0 +1,17 @@ +import { defineConfig } from "vite"; +import tailwindcss from "@tailwindcss/vite"; +import react from "@vitejs/plugin-react-swc"; +import path from "path"; + +export default defineConfig(() => ({ + server: { + host: "::", + port: 8080, + }, + plugins: [react(), tailwindcss()], + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, +})); diff --git a/e2e-tests/fixtures/import-app/version-integrity/AI_RULES.md b/e2e-tests/fixtures/import-app/version-integrity/AI_RULES.md new file mode 100644 index 0000000..85abfb8 --- /dev/null +++ b/e2e-tests/fixtures/import-app/version-integrity/AI_RULES.md @@ -0,0 +1 @@ +avoid AI_RULES auto-prompt diff --git a/e2e-tests/fixtures/import-app/version-integrity/a.txt b/e2e-tests/fixtures/import-app/version-integrity/a.txt new file mode 100644 index 0000000..2e65efe --- /dev/null +++ b/e2e-tests/fixtures/import-app/version-integrity/a.txt @@ -0,0 +1 @@ +a \ No newline at end of file diff --git a/e2e-tests/fixtures/import-app/version-integrity/b.txt b/e2e-tests/fixtures/import-app/version-integrity/b.txt new file mode 100644 index 0000000..63d8dbd --- /dev/null +++ b/e2e-tests/fixtures/import-app/version-integrity/b.txt @@ -0,0 +1 @@ +b \ No newline at end of file diff --git a/e2e-tests/fixtures/import-app/version-integrity/dir/c.txt b/e2e-tests/fixtures/import-app/version-integrity/dir/c.txt new file mode 100644 index 0000000..21b6070 --- /dev/null +++ b/e2e-tests/fixtures/import-app/version-integrity/dir/c.txt @@ -0,0 +1 @@ +dir/c.txt \ No newline at end of file diff --git a/e2e-tests/fixtures/import-app/version-integrity/to-be-deleted.txt b/e2e-tests/fixtures/import-app/version-integrity/to-be-deleted.txt new file mode 100644 index 0000000..22de87f --- /dev/null +++ b/e2e-tests/fixtures/import-app/version-integrity/to-be-deleted.txt @@ -0,0 +1 @@ +this file should be deleted \ No newline at end of file diff --git a/e2e-tests/fixtures/import-app/version-integrity/to-be-edited.txt b/e2e-tests/fixtures/import-app/version-integrity/to-be-edited.txt new file mode 100644 index 0000000..71e5997 --- /dev/null +++ b/e2e-tests/fixtures/import-app/version-integrity/to-be-edited.txt @@ -0,0 +1 @@ +before-edit \ No newline at end of file diff --git a/e2e-tests/fixtures/partial-write.md b/e2e-tests/fixtures/partial-write.md new file mode 100644 index 0000000..8ad5cbe --- /dev/null +++ b/e2e-tests/fixtures/partial-write.md @@ -0,0 +1,3 @@ +START OF MESSAGE + +const a = "[[STRING_TO_BE_FINISHED]] diff --git a/e2e-tests/fixtures/rename-edit.md b/e2e-tests/fixtures/rename-edit.md new file mode 100644 index 0000000..20b079e --- /dev/null +++ b/e2e-tests/fixtures/rename-edit.md @@ -0,0 +1,6 @@ + + + + +// newly added content to renamed file should exist + diff --git a/e2e-tests/fixtures/version-integrity-add-edit-delete.md b/e2e-tests/fixtures/version-integrity-add-edit-delete.md new file mode 100644 index 0000000..0bc00c9 --- /dev/null +++ b/e2e-tests/fixtures/version-integrity-add-edit-delete.md @@ -0,0 +1,10 @@ +Deleting a file + + + +new-file +end of new-file + + +after-edit + diff --git a/e2e-tests/fixtures/version-integrity-move-file.md b/e2e-tests/fixtures/version-integrity-move-file.md new file mode 100644 index 0000000..a2080e3 --- /dev/null +++ b/e2e-tests/fixtures/version-integrity-move-file.md @@ -0,0 +1,2 @@ +Moving a file + diff --git a/e2e-tests/fixtures/write-index-2.md b/e2e-tests/fixtures/write-index-2.md new file mode 100644 index 0000000..eca1b5a --- /dev/null +++ b/e2e-tests/fixtures/write-index-2.md @@ -0,0 +1,15 @@ +OK, I'm going to do some writing now... + + +const Index = () => { + return ( +
+ Testing:write-index(2)! +
+ ); +}; + +export default Index; +
+ +And it's done! diff --git a/e2e-tests/fixtures/write-index.md b/e2e-tests/fixtures/write-index.md new file mode 100644 index 0000000..6e48a9a --- /dev/null +++ b/e2e-tests/fixtures/write-index.md @@ -0,0 +1,15 @@ +OK, I'm going to do some writing now... + + +const Index = () => { + return ( +
+ Testing:write-index! +
+ ); +}; + +export default Index; +
+ +And it's done! diff --git a/e2e-tests/gateway.spec.ts b/e2e-tests/gateway.spec.ts new file mode 100644 index 0000000..e9b1d53 --- /dev/null +++ b/e2e-tests/gateway.spec.ts @@ -0,0 +1,19 @@ +import { testSkipIfWindows } from "./helpers/test_helper"; + +testSkipIfWindows("claude 4 sonnet", async ({ po }) => { + await po.setUpDyadPro(); + // Disable the pro modes so it routes to gateway. + const proModesDialog = await po.openProModesDialog({ + location: "home-chat-input-container", + }); + await proModesDialog.toggleTurboEdits(); + await proModesDialog.setSmartContextMode("off"); + await proModesDialog.close(); + + await po.selectModel({ provider: "Anthropic", model: "Claude 4 Sonnet" }); + + await po.sendPrompt("[dump] tc=gateway-simple"); + + await po.snapshotServerDump("request"); + await po.snapshotMessages({ replaceDumpPath: true }); +}); diff --git a/e2e-tests/github.spec.ts b/e2e-tests/github.spec.ts new file mode 100644 index 0000000..f1e8a4b --- /dev/null +++ b/e2e-tests/github.spec.ts @@ -0,0 +1,145 @@ +import { expect } from "@playwright/test"; +import { test } from "./helpers/test_helper"; + +test("should connect to GitHub using device flow", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + + await po.getTitleBarAppNameButton().click(); + await po.githubConnector.connect(); + + // Wait for device flow to start and show the code + await expect(po.page.locator("text=FAKE-CODE")).toBeVisible(); + + // Verify the verification URI is displayed + await expect( + po.page.locator("text=https://github.com/login/device"), + ).toBeVisible(); + + // Verify the "Set up your GitHub repo" section appears + await expect(po.githubConnector.getSetupYourGitHubRepoButton()).toBeVisible(); +}); + +test("create and sync to new repo", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + + await po.getTitleBarAppNameButton().click(); + await po.githubConnector.connect(); + + // Verify "Create new repo" is selected by default + await expect(po.githubConnector.getCreateNewRepoModeButton()).toHaveClass( + /bg-primary/, + ); + + await po.githubConnector.fillCreateRepoName("test-new-repo"); + + // Wait for availability check + await po.page.waitForSelector("text=Repository name is available!", { + timeout: 5000, + }); + + // Click create repo button + await po.githubConnector.clickCreateRepoButton(); + + // Snapshot post-creation state + await po.githubConnector.snapshotConnectedRepo(); + + // Sync: capture success message + await po.githubConnector.clickSyncToGithubButton(); + + await po.githubConnector.snapshotConnectedRepo(); + // Verify the push was received for the default branch (main) + await po.githubConnector.verifyPushEvent({ + repo: "test-new-repo", + branch: "main", + operation: "create", + }); +}); + +test("create and sync to new repo - custom branch", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + + await po.getTitleBarAppNameButton().click(); + await po.githubConnector.connect(); + + await po.githubConnector.fillCreateRepoName("test-new-repo"); + await po.githubConnector.fillNewRepoBranchName("new-branch"); + + // Click create repo button + await po.githubConnector.clickCreateRepoButton(); + + // Sync to GitHub + await po.githubConnector.clickSyncToGithubButton(); + + // Snapshot post-creation state + await po.githubConnector.snapshotConnectedRepo(); + + // Verify the push was received for the correct custom branch + await po.githubConnector.verifyPushEvent({ + repo: "test-new-repo", + branch: "new-branch", + operation: "create", + }); +}); + +test("disconnect from repo", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + + await po.getTitleBarAppNameButton().click(); + await po.githubConnector.connect(); + + await po.githubConnector.fillCreateRepoName("test-new-repo"); + await po.githubConnector.clickCreateRepoButton(); + + await po.githubConnector.clickDisconnectRepoButton(); + await po.githubConnector.getSetupYourGitHubRepoButton().click(); + // Make this deterministic + await po.githubConnector.fillCreateRepoName("[scrubbed]"); + await po.githubConnector.snapshotSetupRepo(); +}); + +test("create and sync to existing repo", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + + await po.getTitleBarAppNameButton().click(); + await po.githubConnector.connect(); + + await po.githubConnector.getConnectToExistingRepoModeButton().click(); + + await po.githubConnector.selectRepo("testuser/existing-app"); + await po.githubConnector.selectBranch("main"); + await po.githubConnector.clickConnectToRepoButton(); + + await po.githubConnector.snapshotConnectedRepo(); +}); + +test("create and sync to existing repo - custom branch", async ({ po }) => { + // Clear any previous push events + await po.githubConnector.clearPushEvents(); + + await po.setUp(); + await po.sendPrompt("tc=basic"); + + await po.getTitleBarAppNameButton().click(); + await po.githubConnector.connect(); + + await po.githubConnector.getConnectToExistingRepoModeButton().click(); + + await po.githubConnector.selectRepo("testuser/existing-app"); + await po.githubConnector.selectCustomBranch("new-branch"); + await po.githubConnector.clickConnectToRepoButton(); + + // Sync to GitHub to trigger a push + await po.githubConnector.clickSyncToGithubButton(); + await po.githubConnector.snapshotConnectedRepo(); + // Verify the push was received for the correct custom branch + await po.githubConnector.verifyPushEvent({ + repo: "existing-app", + branch: "new-branch", + operation: "create", + }); +}); diff --git a/e2e-tests/helpers/codegen.js b/e2e-tests/helpers/codegen.js new file mode 100644 index 0000000..18df6f7 --- /dev/null +++ b/e2e-tests/helpers/codegen.js @@ -0,0 +1,24 @@ +/* + * From: https://github.com/microsoft/playwright/issues/5181#issuecomment-2769098576 + * + * Usage: + * cd e2e-tests/helpers && node codegen.js + */ + +const { _electron: electron } = require("playwright"); + +(async () => { + const browser = await electron.launch({ + args: [ + "../../out/dyad-darwin-arm64/dyad.app/Contents/Resources/app.asar/.vite/build/main.js", + "--enable-logging", + "--user-data-dir=/tmp/dyad-e2e-tests", + ], + executablePath: "../../out/dyad-darwin-arm64/dyad.app/Contents/MacOS/dyad", + }); + const context = await browser.context(); + await context.route("**/*", (route) => route.continue()); + + await require("node:timers/promises").setTimeout(3000); // wait for the window to load + await browser.windows()[0].pause(); // .pause() opens the Playwright-Inspector for manual recording +})(); diff --git a/e2e-tests/helpers/generateAppFilesSnapshotData.ts b/e2e-tests/helpers/generateAppFilesSnapshotData.ts new file mode 100644 index 0000000..7ba5665 --- /dev/null +++ b/e2e-tests/helpers/generateAppFilesSnapshotData.ts @@ -0,0 +1,135 @@ +import fs from "fs"; +import path from "path"; +import crypto from "crypto"; + +export interface FileSnapshotData { + relativePath: string; + content: string; +} + +const binaryExtensions = new Set([ + ".png", + ".jpg", + ".jpeg", + ".gif", + ".webp", + ".tiff", + ".psd", + ".raw", + ".bmp", + ".heif", + ".ico", + ".pdf", + ".eot", + ".otf", + ".ttf", + ".woff", + ".woff2", + ".zip", + ".tar", + ".gz", + ".7z", + ".rar", + ".mov", + ".mp4", + ".m4v", + ".mkv", + ".webm", + ".flv", + ".avi", + ".wmv", + ".mp3", + ".wav", + ".ogg", + ".flac", + ".exe", + ".dll", + ".so", + ".a", + ".lib", + ".o", + ".db", + ".sqlite3", + ".wasm", +]); + +function isBinaryFile(filePath: string): boolean { + return binaryExtensions.has(path.extname(filePath).toLowerCase()); +} + +export function generateAppFilesSnapshotData( + currentPath: string, + basePath: string, +): FileSnapshotData[] { + const ignorePatterns = [ + ".DS_Store", + ".git", + "node_modules", + // Avoid snapshotting lock files because they are getting generated + // automatically and cause noise, and not super important anyways. + "package-lock.json", + "pnpm-lock.yaml", + ]; + + const entries = fs.readdirSync(currentPath, { withFileTypes: true }); + let files: FileSnapshotData[] = []; + + // Sort entries for deterministic order + entries.sort((a, b) => a.name.localeCompare(b.name)); + + for (const entry of entries) { + const entryPath = path.join(currentPath, entry.name); + if (ignorePatterns.includes(entry.name)) { + continue; + } + + if (entry.isDirectory()) { + files = files.concat(generateAppFilesSnapshotData(entryPath, basePath)); + } else if (entry.isFile()) { + const relativePath = path + .relative(basePath, entryPath) + // Normalize path separators to always use / + // to prevent diffs on Windows. + .replace(/\\/g, "/"); + try { + if (isBinaryFile(entryPath)) { + const fileBuffer = fs.readFileSync(entryPath); + const hash = crypto + .createHash("sha256") + .update(fileBuffer) + .digest("hex"); + files.push({ + relativePath, + content: `[binary hash="${hash}"]`, + }); + continue; + } + + let content = fs + .readFileSync(entryPath, "utf-8") + // Normalize line endings to always use \n + .replace(/\r\n/g, "\n"); + if (entry.name === "package.json") { + const packageJson = JSON.parse(content); + packageJson.packageManager = ""; + for (const key in packageJson.dependencies) { + if (key.startsWith("@capacitor/")) { + packageJson.dependencies[key] = ""; + } + } + content = JSON.stringify(packageJson, null, 2); + } + files.push({ relativePath, content }); + } catch (error) { + // Could be a binary file or permission issue, log and add a placeholder + const e = error as Error; + console.warn(`Could not read file ${entryPath}: ${e.message}`); + files.push({ + relativePath, + content: `[Error reading file: ${e.message}]`, + }); + } + } + } + return files; +} diff --git a/e2e-tests/helpers/test_helper.ts b/e2e-tests/helpers/test_helper.ts new file mode 100644 index 0000000..0b6932c --- /dev/null +++ b/e2e-tests/helpers/test_helper.ts @@ -0,0 +1,1165 @@ +import { test as base, Page, expect } from "@playwright/test"; +import * as eph from "electron-playwright-helpers"; +import { ElectronApplication, _electron as electron } from "playwright"; +import fs from "fs"; +import path from "path"; +import os from "os"; +import { execSync } from "child_process"; +import { generateAppFilesSnapshotData } from "./generateAppFilesSnapshotData"; +import { + BUILD_SYSTEM_POSTFIX, + BUILD_SYSTEM_PREFIX, +} from "@/prompts/system_prompt"; + +const showDebugLogs = process.env.DEBUG_LOGS === "true"; + +export const Timeout = { + // Things generally take longer on CI, so we make them longer. + EXTRA_LONG: process.env.CI ? 120_000 : 60_000, + LONG: process.env.CI ? 60_000 : 30_000, + MEDIUM: process.env.CI ? 30_000 : 15_000, +}; + +export class ContextFilesPickerDialog { + constructor( + public page: Page, + public close: () => Promise, + ) {} + + async addManualContextFile(path: string) { + await this.page.getByTestId("manual-context-files-input").fill(path); + await this.page.getByTestId("manual-context-files-add-button").click(); + } + + async addAutoIncludeContextFile(path: string) { + await this.page.getByTestId("auto-include-context-files-input").fill(path); + await this.page + .getByTestId("auto-include-context-files-add-button") + .click(); + } + + async removeManualContextFile() { + await this.page + .getByTestId("manual-context-files-remove-button") + .first() + .click(); + } + + async removeAutoIncludeContextFile() { + await this.page + .getByTestId("auto-include-context-files-remove-button") + .first() + .click(); + } + + async addExcludeContextFile(path: string) { + await this.page.getByTestId("exclude-context-files-input").fill(path); + await this.page.getByTestId("exclude-context-files-add-button").click(); + } + + async removeExcludeContextFile() { + await this.page + .getByTestId("exclude-context-files-remove-button") + .first() + .click(); + } +} + +class ProModesDialog { + constructor( + public page: Page, + public close: () => Promise, + ) {} + + async setSmartContextMode(mode: "balanced" | "off" | "conservative") { + await this.page + .getByRole("button", { + name: mode.charAt(0).toUpperCase() + mode.slice(1), + }) + .click(); + } + + async toggleTurboEdits() { + await this.page.getByRole("switch", { name: "Turbo Edits" }).click(); + } +} + +class GitHubConnector { + constructor(public page: Page) {} + + async connect() { + await this.page.getByRole("button", { name: "Connect to GitHub" }).click(); + } + + getSetupYourGitHubRepoButton() { + return this.page.getByText("Set up your GitHub repo"); + } + + getCreateNewRepoModeButton() { + return this.page.getByRole("button", { name: "Create new repo" }); + } + + getConnectToExistingRepoModeButton() { + return this.page.getByRole("button", { name: "Connect to existing repo" }); + } + + async clickCreateRepoButton() { + await this.page.getByRole("button", { name: "Create Repo" }).click(); + } + + async fillCreateRepoName(name: string) { + await this.page.getByTestId("github-create-repo-name-input").fill(name); + } + + async fillNewRepoBranchName(name: string) { + await this.page.getByTestId("github-new-repo-branch-input").fill(name); + } + + async selectRepo(repo: string) { + await this.page.getByTestId("github-repo-select").click(); + await this.page.getByRole("option", { name: repo }).click(); + } + + async selectBranch(branch: string) { + await this.page.getByTestId("github-branch-select").click(); + await this.page.getByRole("option", { name: branch }).click(); + } + + async selectCustomBranch(branch: string) { + await this.page.getByTestId("github-branch-select").click(); + await this.page + .getByRole("option", { name: "✏️ Type custom branch name" }) + .click(); + await this.page.getByTestId("github-custom-branch-input").click(); + await this.page.getByTestId("github-custom-branch-input").fill(branch); + } + + async clickConnectToRepoButton() { + await this.page.getByRole("button", { name: "Connect to repo" }).click(); + } + + async snapshotConnectedRepo() { + await expect( + this.page.getByTestId("github-connected-repo"), + ).toMatchAriaSnapshot(); + } + + async snapshotSetupRepo() { + await expect( + this.page.getByTestId("github-setup-repo"), + ).toMatchAriaSnapshot(); + } + + async snapshotUnconnectedRepo() { + await expect( + this.page.getByTestId("github-unconnected-repo"), + ).toMatchAriaSnapshot(); + } + + async clickSyncToGithubButton() { + await this.page.getByRole("button", { name: "Sync to GitHub" }).click(); + } + + async clickDisconnectRepoButton() { + await this.page + .getByRole("button", { name: "Disconnect from repo" }) + .click(); + } + + async clearPushEvents() { + const response = await this.page.request.post( + "http://localhost:3500/github/api/test/clear-push-events", + ); + return await response.json(); + } + + async getPushEvents(repo?: string) { + const url = repo + ? `http://localhost:3500/github/api/test/push-events?repo=${repo}` + : "http://localhost:3500/github/api/test/push-events"; + const response = await this.page.request.get(url); + return await response.json(); + } + + async verifyPushEvent(expectedEvent: { + repo: string; + branch: string; + operation?: "push" | "create" | "delete"; + }) { + const pushEvents = await this.getPushEvents(expectedEvent.repo); + const matchingEvent = pushEvents.find( + (event: any) => + event.repo === expectedEvent.repo && + event.branch === expectedEvent.branch && + (!expectedEvent.operation || + event.operation === expectedEvent.operation), + ); + + if (!matchingEvent) { + throw new Error( + `Expected push event not found. Expected: ${JSON.stringify(expectedEvent)}. ` + + `Actual events: ${JSON.stringify(pushEvents)}`, + ); + } + + return matchingEvent; + } +} + +export class PageObject { + public userDataDir: string; + public githubConnector: GitHubConnector; + constructor( + public electronApp: ElectronApplication, + public page: Page, + { userDataDir }: { userDataDir: string }, + ) { + this.userDataDir = userDataDir; + this.githubConnector = new GitHubConnector(this.page); + } + + private async baseSetup() { + await this.githubConnector.clearPushEvents(); + } + + async setUp({ + autoApprove = false, + nativeGit = false, + enableAutoFixProblems = false, + }: { + autoApprove?: boolean; + nativeGit?: boolean; + enableAutoFixProblems?: boolean; + } = {}) { + await this.baseSetup(); + await this.goToSettingsTab(); + if (autoApprove) { + await this.toggleAutoApprove(); + } + if (nativeGit) { + await this.toggleNativeGit(); + } + if (enableAutoFixProblems) { + await this.toggleAutoFixProblems(); + } + await this.setUpTestProvider(); + await this.setUpTestModel(); + + await this.goToAppsTab(); + await this.selectTestModel(); + } + + async setUpDyadPro({ autoApprove = false }: { autoApprove?: boolean } = {}) { + await this.baseSetup(); + await this.goToSettingsTab(); + if (autoApprove) { + await this.toggleAutoApprove(); + } + await this.setUpDyadProvider(); + await this.goToAppsTab(); + } + + async ensurePnpmInstall() { + const appPath = await this.getCurrentAppPath(); + if (!appPath) { + throw new Error("No app selected"); + } + + const maxDurationMs = 180_000; // 3 minutes + const retryIntervalMs = 15_000; + const startTime = Date.now(); + let lastOutput = ""; + + const checkCommand = `node -e 'const pkg=require("./package.json");const{execSync}=require("child_process");try{const prodResult=JSON.parse(execSync("pnpm list --json --depth=0",{encoding:"utf8"}));const devResult=JSON.parse(execSync("pnpm list --json --depth=0 --dev",{encoding:"utf8"}));const installed={...(prodResult[0]||{}).dependencies||{},...(devResult[0]||{}).devDependencies||{}};const expected=Object.keys({...pkg.dependencies||{},...pkg.devDependencies||{}});const missing=expected.filter(dep=>!installed[dep]);console.log(missing.length?"MISSING: "+missing.join(", "):"All dependencies installed")}catch(e){console.log("Error:",e.message)}'`; + + while (Date.now() - startTime < maxDurationMs) { + try { + console.log(`Checking installed dependencies in ${appPath}...`); + const stdout = execSync(checkCommand, { + cwd: appPath, + stdio: "pipe", + encoding: "utf8", + }); + lastOutput = (stdout || "").toString().trim(); + console.log(`Dependency check output: ${lastOutput}`); + if (lastOutput.includes("All dependencies installed")) { + return; + } + } catch (error: any) { + // Capture any error output to include in the final error if we time out + const stdOut = error?.stdout ? error.stdout.toString() : ""; + const stdErr = error?.stderr ? error.stderr.toString() : ""; + lastOutput = [stdOut, stdErr, error?.message] + .filter(Boolean) + .join("\n"); + console.error("Dependency check command failed:", lastOutput); + } + + const elapsed = Date.now() - startTime; + const remaining = Math.max(0, maxDurationMs - elapsed); + const waitMs = Math.min(retryIntervalMs, remaining); + if (waitMs <= 0) break; + console.log(`Waiting ${waitMs}ms before retry...`); + await new Promise((resolve) => setTimeout(resolve, waitMs)); + } + + throw new Error( + `Dependencies not fully installed in ${appPath} after 3 minutes. Last output: ${lastOutput}`, + ); + } + + async setUpDyadProvider() { + await this.page + .locator("div") + .filter({ hasText: /^DyadNeeds Setup$/ }) + .nth(1) + .click(); + await this.page.getByRole("textbox", { name: "Set Dyad API Key" }).click(); + await this.page + .getByRole("textbox", { name: "Set Dyad API Key" }) + .fill("testdyadkey"); + await this.page.getByRole("button", { name: "Save Key" }).click(); + } + + async importApp(appDir: string) { + await this.page.getByRole("button", { name: "Import App" }).click(); + await eph.stubDialog(this.electronApp, "showOpenDialog", { + filePaths: [path.join(__dirname, "..", "fixtures", "import-app", appDir)], + }); + await this.page.getByRole("button", { name: "Select Folder" }).click(); + await this.page.getByRole("button", { name: "Import" }).click(); + } + + async selectChatMode(mode: "build" | "ask") { + await this.page.getByTestId("chat-mode-selector").click(); + await this.page.getByRole("option", { name: mode }).click(); + } + + async openContextFilesPicker() { + const contextButton = this.page.getByTestId("codebase-context-button"); + await contextButton.click(); + return new ContextFilesPickerDialog(this.page, async () => { + await contextButton.click(); + }); + } + + async openProModesDialog({ + location = "chat-input-container", + }: { + location?: "chat-input-container" | "home-chat-input-container"; + } = {}): Promise { + const proButton = this.page + // Assumes you're on the chat page. + .getByTestId(location) + .getByRole("button", { name: "Pro", exact: true }); + await proButton.click(); + return new ProModesDialog(this.page, async () => { + await proButton.click(); + }); + } + + async snapshotDialog() { + await expect(this.page.getByRole("dialog")).toMatchAriaSnapshot(); + } + + async snapshotAppFiles({ name }: { name: string }) { + const currentAppName = await this.getCurrentAppName(); + if (!currentAppName) { + throw new Error("No app selected"); + } + const normalizedAppName = currentAppName.toLowerCase().replace(/-/g, ""); + const appPath = await this.getCurrentAppPath(); + if (!appPath || !fs.existsSync(appPath)) { + throw new Error(`App path does not exist: ${appPath}`); + } + + await expect(() => { + const filesData = generateAppFilesSnapshotData(appPath, appPath); + + // Sort by relative path to ensure deterministic output + filesData.sort((a, b) => a.relativePath.localeCompare(b.relativePath)); + + const snapshotContent = filesData + .map( + (file) => + `=== ${file.relativePath.replace(normalizedAppName, "[[normalizedAppName]]")} ===\n${file.content + .split(normalizedAppName) + .join("[[normalizedAppName]]") + .split(currentAppName) + .join("[[appName]]")}`, + ) + .join("\n\n"); + + if (name) { + expect(snapshotContent).toMatchSnapshot(name + ".txt"); + } else { + expect(snapshotContent).toMatchSnapshot(); + } + }).toPass(); + } + + async snapshotMessages({ + replaceDumpPath = false, + }: { replaceDumpPath?: boolean } = {}) { + if (replaceDumpPath) { + // Update page so that "[[dyad-dump-path=*]]" is replaced with a placeholder path + // which is stable across runs. + await this.page.evaluate(() => { + const messagesList = document.querySelector( + "[data-testid=messages-list]", + ); + if (!messagesList) { + throw new Error("Messages list not found"); + } + messagesList.innerHTML = messagesList.innerHTML.replace( + /\[\[dyad-dump-path=([^\]]+)\]\]/g, + "[[dyad-dump-path=*]]", + ); + }); + } + await expect(this.page.getByTestId("messages-list")).toMatchAriaSnapshot(); + } + + async approveProposal() { + await this.page.getByTestId("approve-proposal-button").click(); + } + + async rejectProposal() { + await this.page.getByTestId("reject-proposal-button").click(); + } + + async clickRestart() { + await this.page.getByRole("button", { name: "Restart" }).click(); + } + + //////////////////////////////// + // Preview panel + //////////////////////////////// + + async selectPreviewMode(mode: "code" | "problems" | "preview" | "configure") { + await this.page.getByTestId(`${mode}-mode-button`).click(); + } + + async clickRecheckProblems() { + await this.page.getByTestId("recheck-button").click(); + } + + async clickFixAllProblems() { + await this.page.getByTestId("fix-all-button").click(); + await this.waitForChatCompletion(); + } + + async snapshotProblemsPane() { + await expect(this.page.getByTestId("problems-pane")).toMatchAriaSnapshot({ + timeout: Timeout.MEDIUM, + }); + } + + async clickRebuild() { + await this.clickPreviewMoreOptions(); + await this.page.getByText("Rebuild").click(); + } + + async clickTogglePreviewPanel() { + await this.page.getByTestId("toggle-preview-panel-button").click(); + } + + async clickPreviewPickElement() { + await this.page + .getByTestId("preview-pick-element-button") + .click({ timeout: Timeout.EXTRA_LONG }); + } + + async clickDeselectComponent() { + await this.page.getByRole("button", { name: "Deselect component" }).click(); + } + + async clickPreviewMoreOptions() { + await this.page.getByTestId("preview-more-options-button").click(); + } + + async clickPreviewRefresh() { + await this.page.getByTestId("preview-refresh-button").click(); + } + + async clickPreviewNavigateBack() { + await this.page.getByTestId("preview-navigate-back-button").click(); + } + + async clickPreviewNavigateForward() { + await this.page.getByTestId("preview-navigate-forward-button").click(); + } + + async clickPreviewOpenBrowser() { + await this.page.getByTestId("preview-open-browser-button").click(); + } + + locateLoadingAppPreview() { + return this.page.getByText("Preparing app preview..."); + } + + locateStartingAppPreview() { + return this.page.getByText("Starting your app server..."); + } + + getPreviewIframeElement() { + return this.page.getByTestId("preview-iframe-element"); + } + + expectPreviewIframeIsVisible() { + return expect(this.getPreviewIframeElement()).toBeVisible({ + timeout: Timeout.LONG, + }); + } + + async clickFixErrorWithAI() { + await this.page.getByRole("button", { name: "Fix error with AI" }).click(); + } + + async snapshotPreviewErrorBanner() { + await expect(this.locatePreviewErrorBanner()).toMatchAriaSnapshot({ + timeout: Timeout.LONG, + }); + } + + locatePreviewErrorBanner() { + return this.page.getByTestId("preview-error-banner"); + } + + async snapshotChatInputContainer() { + await expect(this.getChatInputContainer()).toMatchAriaSnapshot(); + } + + getSelectedComponentDisplay() { + return this.page.getByTestId("selected-component-display"); + } + + async snapshotSelectedComponentDisplay() { + await expect(this.getSelectedComponentDisplay()).toMatchAriaSnapshot(); + } + + async snapshotPreview({ name }: { name?: string } = {}) { + const iframe = this.getPreviewIframeElement(); + await expect(iframe.contentFrame().locator("body")).toMatchAriaSnapshot({ + name, + timeout: Timeout.LONG, + }); + } + + async snapshotServerDump( + type: "all-messages" | "last-message" | "request" = "all-messages", + { name = "", dumpIndex = -1 }: { name?: string; dumpIndex?: number } = {}, + ) { + // Get the text content of the messages list + const messagesListText = await this.page + .getByTestId("messages-list") + .textContent(); + + // Find ALL dump paths using global regex + const dumpPathMatches = messagesListText?.match( + /\[\[dyad-dump-path=([^\]]+)\]\]/g, + ); + + if (!dumpPathMatches || dumpPathMatches.length === 0) { + throw new Error("No dump path found in messages list"); + } + + // Extract the actual paths from the matches + const dumpPaths = dumpPathMatches + .map((match) => { + const pathMatch = match.match(/\[\[dyad-dump-path=([^\]]+)\]\]/); + return pathMatch ? pathMatch[1] : null; + }) + .filter(Boolean); + + // Select the dump path based on index + // -1 means last, -2 means second to last, etc. + // 0 means first, 1 means second, etc. + const selectedIndex = + dumpIndex < 0 ? dumpPaths.length + dumpIndex : dumpIndex; + + if (selectedIndex < 0 || selectedIndex >= dumpPaths.length) { + throw new Error( + `Dump index ${dumpIndex} is out of range. Found ${dumpPaths.length} dump paths.`, + ); + } + + const dumpFilePath = dumpPaths[selectedIndex]; + if (!dumpFilePath) { + throw new Error("No dump file path found"); + } + + // Read the JSON file + const dumpContent: string = ( + fs.readFileSync(dumpFilePath, "utf-8") as any + ).replaceAll(/\[\[dyad-dump-path=([^\]]+)\]\]/g, "[[dyad-dump-path=*]]"); + // Perform snapshot comparison + const parsedDump = JSON.parse(dumpContent); + if (type === "request") { + parsedDump["body"]["messages"] = parsedDump["body"]["messages"].map( + (message: any) => { + if (message.role === "system") { + message.content = "[[SYSTEM_MESSAGE]]"; + } + return message; + }, + ); + expect( + JSON.stringify(parsedDump, null, 2).replace(/\\r\\n/g, "\\n"), + ).toMatchSnapshot(name); + return; + } + expect( + prettifyDump(parsedDump["body"]["messages"], { + onlyLastMessage: type === "last-message", + }), + ).toMatchSnapshot(name); + } + + async waitForChatCompletion() { + await expect(this.getRetryButton()).toBeVisible({ + timeout: Timeout.MEDIUM, + }); + } + + async clickRetry() { + await this.getRetryButton().click(); + } + + async clickUndo() { + await this.getUndoButton().click(); + } + + private getRetryButton() { + return this.page.getByRole("button", { name: "Retry" }); + } + + private getUndoButton() { + return this.page.getByRole("button", { name: "Undo" }); + } + + getHomeChatInputContainer() { + return this.page.getByTestId("home-chat-input-container"); + } + + getChatInputContainer() { + return this.page.getByTestId("chat-input-container"); + } + + getChatInput() { + return this.page.locator( + '[data-lexical-editor="true"][aria-placeholder="Ask Dyad to build..."]', + ); + } + + clickNewChat({ index = 0 }: { index?: number } = {}) { + // There is two new chat buttons... + return this.page + .getByRole("button", { name: "New Chat" }) + .nth(index) + .click(); + } + + async clickBackButton() { + await this.page.getByRole("button", { name: "Back" }).click(); + } + + async sendPrompt(prompt: string) { + await this.getChatInput().click(); + await this.getChatInput().fill(prompt); + await this.page.getByRole("button", { name: "Send message" }).click(); + await this.waitForChatCompletion(); + } + + async selectModel({ provider, model }: { provider: string; model: string }) { + await this.page.getByRole("button", { name: "Model: Auto" }).click(); + await this.page.getByText(provider).click(); + await this.page.getByText(model, { exact: true }).click(); + } + + async selectTestModel() { + await this.page.getByRole("button", { name: "Model: Auto" }).click(); + await this.page.getByText("test-provider").click(); + await this.page.getByText("test-model").click(); + } + + async selectTestOllamaModel() { + await this.page.getByRole("button", { name: "Model: Auto" }).click(); + await this.page.getByText("Local models").click(); + await this.page.getByText("Ollama", { exact: true }).click(); + await this.page.getByText("Testollama", { exact: true }).click(); + } + + async selectTestLMStudioModel() { + await this.page.getByRole("button", { name: "Model: Auto" }).click(); + await this.page.getByText("Local models").click(); + await this.page.getByText("LM Studio", { exact: true }).click(); + // Both of the elements that match "lmstudio-model-1" are the same button, so we just pick the first. + await this.page + .getByText("lmstudio-model-1", { exact: true }) + .first() + .click(); + } + + async setUpTestProvider() { + await this.page.getByText("Add custom providerConnect to").click(); + // Fill out provider dialog + await this.page + .getByRole("textbox", { name: "Provider ID" }) + .fill("testing"); + await this.page.getByRole("textbox", { name: "Display Name" }).click(); + await this.page + .getByRole("textbox", { name: "Display Name" }) + .fill("test-provider"); + await this.page.getByText("API Base URLThe base URL for").click(); + await this.page + .getByRole("textbox", { name: "API Base URL" }) + .fill("http://localhost:3500/v1"); + await this.page.getByRole("button", { name: "Add Provider" }).click(); + } + + async setUpTestModel() { + await this.page + .getByRole("heading", { name: "test-provider Needs Setup" }) + .click(); + await this.page.getByRole("button", { name: "Add Custom Model" }).click(); + await this.page + .getByRole("textbox", { name: "Model ID*" }) + .fill("test-model"); + await this.page.getByRole("textbox", { name: "Model ID*" }).press("Tab"); + await this.page.getByRole("textbox", { name: "Name*" }).fill("test-model"); + await this.page.getByRole("button", { name: "Add Model" }).click(); + } + + async goToSettingsTab() { + await this.page.getByRole("link", { name: "Settings" }).click(); + } + + async goToLibraryTab() { + await this.page.getByRole("link", { name: "Library" }).click(); + } + + async createPrompt({ + title, + description, + content, + }: { + title: string; + description?: string; + content: string; + }) { + await this.page.getByRole("button", { name: "New Prompt" }).click(); + await this.page.getByRole("textbox", { name: "Title" }).fill(title); + if (description) { + await this.page + .getByRole("textbox", { name: "Description (optional)" }) + .fill(description); + } + await this.page.getByRole("textbox", { name: "Content" }).fill(content); + await this.page.getByRole("button", { name: "Save" }).click(); + } + + getTitleBarAppNameButton() { + return this.page.getByTestId("title-bar-app-name-button"); + } + + getAppListItem({ appName }: { appName: string }) { + return this.page.getByTestId(`app-list-item-${appName}`); + } + + async isCurrentAppNameNone() { + await expect(async () => { + await expect(this.getTitleBarAppNameButton()).toContainText( + "no app selected", + ); + }).toPass(); + } + + async getCurrentAppName() { + // Make sure to wait for the app to be set to avoid a race condition. + await expect(async () => { + await expect(this.getTitleBarAppNameButton()).not.toContainText( + "no app selected", + ); + }).toPass(); + return (await this.getTitleBarAppNameButton().textContent())?.replace( + "App: ", + "", + ); + } + + async getCurrentAppPath() { + const currentAppName = await this.getCurrentAppName(); + if (!currentAppName) { + throw new Error("No current app name found"); + } + return this.getAppPath({ appName: currentAppName }); + } + + getAppPath({ appName }: { appName: string }) { + return path.join(this.userDataDir, "dyad-apps", appName); + } + + async clickAppListItem({ appName }: { appName: string }) { + await this.page.getByTestId(`app-list-item-${appName}`).click(); + } + + async clickOpenInChatButton() { + await this.page.getByRole("button", { name: "Open in Chat" }).click(); + } + + locateAppUpgradeButton({ upgradeId }: { upgradeId: string }) { + return this.page.getByTestId(`app-upgrade-${upgradeId}`); + } + + async clickAppUpgradeButton({ upgradeId }: { upgradeId: string }) { + await this.locateAppUpgradeButton({ upgradeId }).click(); + } + + async expectAppUpgradeButtonIsNotVisible({ + upgradeId, + }: { + upgradeId: string; + }) { + await expect(this.locateAppUpgradeButton({ upgradeId })).toBeHidden({ + timeout: Timeout.MEDIUM, + }); + } + + async expectNoAppUpgrades() { + await expect(this.page.getByTestId("no-app-upgrades-needed")).toBeVisible({ + timeout: Timeout.LONG, + }); + } + + async clickAppDetailsRenameAppButton() { + await this.page.getByTestId("app-details-rename-app-button").click(); + } + + async clickAppDetailsMoreOptions() { + await this.page.getByTestId("app-details-more-options-button").click(); + } + + async clickAppDetailsCopyAppButton() { + await this.page.getByRole("button", { name: "Copy app" }).click(); + } + + async clickConnectSupabaseButton() { + await this.page.getByTestId("connect-supabase-button").click(); + } + + //////////////////////////////// + // Settings related + //////////////////////////////// + + async toggleAutoApprove() { + await this.page.getByRole("switch", { name: "Auto-approve" }).click(); + } + + async toggleNativeGit() { + await this.page.getByRole("switch", { name: "Enable Native Git" }).click(); + } + + async toggleAutoFixProblems() { + await this.page.getByRole("switch", { name: "Auto-fix problems" }).click(); + } + + async snapshotSettings() { + const settings = path.join(this.userDataDir, "user-settings.json"); + const settingsContent = fs.readFileSync(settings, "utf-8"); + // Sanitize the "telemetryUserId" since it's a UUID + const sanitizedSettingsContent = settingsContent + .replace(/"telemetryUserId": "[^"]*"/g, '"telemetryUserId": "[UUID]"') + // Don't snapshot this otherwise it'll diff with every release. + .replace( + /"lastShownReleaseNotesVersion": "[^"]*"/g, + '"lastShownReleaseNotesVersion": "[scrubbed]"', + ); + + expect(sanitizedSettingsContent).toMatchSnapshot(); + } + + async toggleAutoUpdate() { + await this.page.getByRole("switch", { name: "Auto-update" }).click(); + } + + async changeReleaseChannel(channel: "stable" | "beta") { + // await page.getByRole('combobox').filter({ hasText: 'Stable' }).click(); + // await page.getByRole('option', { name: 'Beta' }).dblclick(); + await this.page.getByRole("combobox", { name: "Release Channel" }).click(); + await this.page + .getByRole("option", { name: channel === "stable" ? "Stable" : "Beta" }) + .click(); + } + + async clickTelemetryAccept() { + await this.page.getByTestId("telemetry-accept-button").click(); + } + + async clickTelemetryReject() { + await this.page.getByTestId("telemetry-reject-button").click(); + } + + async clickTelemetryLater() { + await this.page.getByTestId("telemetry-later-button").click(); + } + + async goToAppsTab() { + await this.page.getByRole("link", { name: "Apps" }).click(); + await expect(this.page.getByText("Build your dream app")).toBeVisible(); + } + + async goToChatTab() { + await this.page.getByRole("link", { name: "Chat" }).click(); + } + + async goToHubTab() { + await this.page.getByRole("link", { name: "Hub" }).click(); + } + + async selectTemplate(templateName: string) { + await this.page.getByRole("img", { name: templateName }).click(); + } + + async goToHubAndSelectTemplate(templateName: "Next.js Template") { + await this.goToHubTab(); + await this.selectTemplate(templateName); + await this.goToAppsTab(); + } + + //////////////////////////////// + // Toast assertions + //////////////////////////////// + + async expectNoToast() { + await expect(this.page.locator("[data-sonner-toast]")).toHaveCount(0); + } + + async waitForToast( + type?: "success" | "error" | "warning" | "info", + timeout = 5000, + ) { + const selector = type + ? `[data-sonner-toast][data-type="${type}"]` + : "[data-sonner-toast]"; + + await this.page.waitForSelector(selector, { timeout }); + } + + async waitForToastWithText(text: string, timeout = 5000) { + await this.page.waitForSelector(`[data-sonner-toast]:has-text("${text}")`, { + timeout, + }); + } + + async assertToastVisible(type?: "success" | "error" | "warning" | "info") { + const selector = type + ? `[data-sonner-toast][data-type="${type}"]` + : "[data-sonner-toast]"; + + await expect(this.page.locator(selector)).toBeVisible(); + } + + async assertToastWithText(text: string) { + await expect( + this.page.locator(`[data-sonner-toast]:has-text("${text}")`), + ).toBeVisible(); + } + + async dismissAllToasts() { + // Click all close buttons if they exist + const closeButtons = this.page.locator( + "[data-sonner-toast] button[data-close-button]", + ); + const count = await closeButtons.count(); + for (let i = 0; i < count; i++) { + await closeButtons.nth(i).click(); + } + } + + async sleep(ms: number) { + await new Promise((resolve) => setTimeout(resolve, ms)); + } +} + +interface ElectronConfig { + preLaunchHook?: ({ userDataDir }: { userDataDir: string }) => Promise; +} + +// From https://github.com/microsoft/playwright/issues/8208#issuecomment-1435475930 +// +// Note how we mark the fixture as { auto: true }. +// This way it is always instantiated, even if the test does not use it explicitly. +export const test = base.extend<{ + electronConfig: ElectronConfig; + attachScreenshotsToReport: void; + electronApp: ElectronApplication; + po: PageObject; +}>({ + electronConfig: [ + async ({}, use) => { + // Default configuration - tests can override this fixture + await use({}); + }, + { auto: true }, + ], + po: [ + async ({ electronApp }, use) => { + const page = await electronApp.firstWindow(); + + const po = new PageObject(electronApp, page, { + userDataDir: (electronApp as any).$dyadUserDataDir, + }); + await use(po); + }, + { auto: true }, + ], + attachScreenshotsToReport: [ + async ({ electronApp }, use, testInfo) => { + await use(); + + // After the test we can check whether the test passed or failed. + if (testInfo.status !== testInfo.expectedStatus) { + const page = await electronApp.firstWindow(); + try { + const screenshot = await page.screenshot({ timeout: 5_000 }); + await testInfo.attach("screenshot", { + body: screenshot, + contentType: "image/png", + }); + } catch (error) { + console.error("Error taking screenshot on failure", error); + } + } + }, + { auto: true }, + ], + electronApp: [ + async ({ electronConfig }, use) => { + // find the latest build in the out directory + const latestBuild = eph.findLatestBuild(); + // parse the directory and find paths and other info + const appInfo = eph.parseElectronApp(latestBuild); + process.env.OLLAMA_HOST = "http://localhost:3500/ollama"; + process.env.LM_STUDIO_BASE_URL_FOR_TESTING = + "http://localhost:3500/lmstudio"; + process.env.DYAD_ENGINE_URL = "http://localhost:3500/engine/v1"; + process.env.DYAD_GATEWAY_URL = "http://localhost:3500/gateway/v1"; + process.env.E2E_TEST_BUILD = "true"; + // This is just a hack to avoid the AI setup screen. + process.env.OPENAI_API_KEY = "sk-test"; + const baseTmpDir = os.tmpdir(); + const userDataDir = path.join(baseTmpDir, `dyad-e2e-tests-${Date.now()}`); + if (electronConfig.preLaunchHook) { + await electronConfig.preLaunchHook({ userDataDir }); + } + const electronApp = await electron.launch({ + args: [ + appInfo.main, + "--enable-logging", + `--user-data-dir=${userDataDir}`, + ], + executablePath: appInfo.executable, + // Strong suspicion this is causing issues on Windows with tests hanging due to error: + // ffmpeg failed to write: Error [ERR_STREAM_WRITE_AFTER_END]: write after end + // recordVideo: { + // dir: "test-results", + // }, + }); + (electronApp as any).$dyadUserDataDir = userDataDir; + + console.log("electronApp launched!"); + if (showDebugLogs) { + // Listen to main process output immediately + electronApp.process().stdout?.on("data", (data) => { + console.log(`MAIN_PROCESS_STDOUT: ${data.toString()}`); + }); + electronApp.process().stderr?.on("data", (data) => { + console.error(`MAIN_PROCESS_STDERR: ${data.toString()}`); + }); + } + electronApp.on("close", () => { + console.log(`Electron app closed listener:`); + }); + + electronApp.on("window", async (page) => { + const filename = page.url()?.split("/").pop(); + console.log(`Window opened: ${filename}`); + + // capture errors + page.on("pageerror", (error) => { + console.error(error); + }); + // capture console messages + page.on("console", (msg) => { + console.log(msg.text()); + }); + }); + + await use(electronApp); + // Why are we doing a force kill on Windows? + // + // Otherwise, Playwright will just hang on the test cleanup + // because the electron app does NOT ever fully quit due to + // Windows' strict resource locking (e.g. file locking). + if (os.platform() === "win32") { + try { + console.log("[cleanup:start] Killing dyad.exe"); + console.time("taskkill"); + execSync("taskkill /f /t /im dyad.exe"); + console.timeEnd("taskkill"); + console.log("[cleanup:end] Killed dyad.exe"); + } catch (error) { + console.warn( + "Failed to kill dyad.exe: (continuing with test cleanup)", + error, + ); + } + } else { + await electronApp.close(); + } + }, + { auto: true }, + ], +}); + +export function testWithConfig(config: ElectronConfig) { + return test.extend({ + electronConfig: async ({}, use) => { + await use(config); + }, + }); +} + +// Wrapper that skips tests on Windows platform +export const testSkipIfWindows = os.platform() === "win32" ? test.skip : test; + +function prettifyDump( + allMessages: { + role: string; + content: string | Array<{}>; + }[], + { onlyLastMessage = false }: { onlyLastMessage?: boolean } = {}, +) { + const messages = onlyLastMessage ? allMessages.slice(-1) : allMessages; + + return messages + .map((message) => { + const content = Array.isArray(message.content) + ? JSON.stringify(message.content) + : message.content + .replace(BUILD_SYSTEM_PREFIX, "\n${BUILD_SYSTEM_PREFIX}") + .replace(BUILD_SYSTEM_POSTFIX, "${BUILD_SYSTEM_POSTFIX}") + // Normalize line endings to always use \n + .replace(/\r\n/g, "\n") + // We remove package.json because it's flaky. + // Depending on whether pnpm install is run, it will be modified, + // and the contents and timestamp (thus affecting order) will be affected. + .replace( + /\n[\s\S]*?<\/dyad-file>\n/g, + "", + ); + return `===\nrole: ${message.role}\nmessage: ${content}`; + }) + .join("\n\n"); +} diff --git a/e2e-tests/import.spec.ts b/e2e-tests/import.spec.ts new file mode 100644 index 0000000..78b9c72 --- /dev/null +++ b/e2e-tests/import.spec.ts @@ -0,0 +1,101 @@ +import path from "path"; +import { testSkipIfWindows } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; +import * as eph from "electron-playwright-helpers"; + +testSkipIfWindows("import app", async ({ po }) => { + await po.setUp(); + await po.page.getByRole("button", { name: "Import App" }).click(); + await eph.stubDialog(po.electronApp, "showOpenDialog", { + filePaths: [path.join(__dirname, "fixtures", "import-app", "minimal")], + }); + + await po.page.getByRole("button", { name: "Select Folder" }).click(); + await po.page.getByRole("textbox", { name: "Enter new app name" }).click(); + await po.page + .getByRole("textbox", { name: "Enter new app name" }) + .fill("minimal-imported-app"); + await po.page.getByRole("button", { name: "Import" }).click(); + + await po.snapshotPreview(); + await po.snapshotMessages(); +}); + +testSkipIfWindows("import app with AI rules", async ({ po }) => { + await po.setUp(); + await po.page.getByRole("button", { name: "Import App" }).click(); + await eph.stubDialog(po.electronApp, "showOpenDialog", { + filePaths: [ + path.join(__dirname, "fixtures", "import-app", "minimal-with-ai-rules"), + ], + }); + + await po.page.getByRole("button", { name: "Select Folder" }).click(); + await po.page.getByRole("textbox", { name: "Enter new app name" }).click(); + await po.page + .getByRole("textbox", { name: "Enter new app name" }) + .fill("minimal-imported-app"); + await po.page.getByRole("button", { name: "Import" }).click(); + + await po.snapshotPreview(); + + await po.sendPrompt("[dump]"); + + await po.snapshotServerDump(); + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +testSkipIfWindows("import app with custom commands", async ({ po }) => { + await po.setUp(); + await po.page.getByRole("button", { name: "Import App" }).click(); + await eph.stubDialog(po.electronApp, "showOpenDialog", { + filePaths: [path.join(__dirname, "fixtures", "import-app", "minimal")], + }); + await po.page.getByRole("button", { name: "Select Folder" }).click(); + await po.page + .getByRole("textbox", { name: "Enter new app name" }) + .fill("minimal-imported-app"); + + await po.page.getByRole("button", { name: "Advanced options" }).click(); + + await po.page.getByPlaceholder("pnpm install").fill(""); + await po.page.getByPlaceholder("pnpm dev").fill("npm start"); + await expect(po.page.getByRole("button", { name: "Import" })).toBeDisabled(); + await expect( + po.page.getByText("Both commands are required when customizing."), + ).toBeVisible(); + + await po.page.getByPlaceholder("pnpm install").fill("npm i"); + await expect(po.page.getByRole("button", { name: "Import" })).toBeEnabled(); + await expect( + po.page.getByText("Both commands are required when customizing."), + ).toHaveCount(0); + + await po.page.getByRole("button", { name: "Import" }).click(); +}); + +testSkipIfWindows( + "advanced options: both cleared are valid and use defaults", + async ({ po }) => { + await po.setUp(); + await po.page.getByRole("button", { name: "Import App" }).click(); + await eph.stubDialog(po.electronApp, "showOpenDialog", { + filePaths: [path.join(__dirname, "fixtures", "import-app", "minimal")], + }); + await po.page.getByRole("button", { name: "Select Folder" }).click(); + + await po.page + .getByRole("textbox", { name: "Enter new app name" }) + .fill("both-cleared"); + + await po.page.getByRole("button", { name: "Advanced options" }).click(); + await po.page.getByPlaceholder("pnpm install").fill(""); + await po.page.getByPlaceholder("pnpm dev").fill(""); + + await expect(po.page.getByRole("button", { name: "Import" })).toBeEnabled(); + + await po.page.getByRole("button", { name: "Import" }).click(); + + await po.snapshotPreview(); + }, +); diff --git a/e2e-tests/lm_studio.spec.ts b/e2e-tests/lm_studio.spec.ts new file mode 100644 index 0000000..5700819 --- /dev/null +++ b/e2e-tests/lm_studio.spec.ts @@ -0,0 +1,7 @@ +import { test } from "./helpers/test_helper"; + +test("send message to LM studio", async ({ po }) => { + await po.selectTestLMStudioModel(); + await po.sendPrompt("hi"); + await po.snapshotMessages(); +}); diff --git a/e2e-tests/main.spec.ts b/e2e-tests/main.spec.ts new file mode 100644 index 0000000..492df72 --- /dev/null +++ b/e2e-tests/main.spec.ts @@ -0,0 +1,13 @@ +import { test } from "./helpers/test_helper"; + +test("simple message to custom test model", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("hi"); + await po.snapshotMessages(); +}); + +test("basic message to custom test model", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + await po.snapshotMessages(); +}); diff --git a/e2e-tests/mention_app.spec.ts b/e2e-tests/mention_app.spec.ts new file mode 100644 index 0000000..cbbf0d6 --- /dev/null +++ b/e2e-tests/mention_app.spec.ts @@ -0,0 +1,21 @@ +import { test } from "./helpers/test_helper"; + +test("mention app (without pro)", async ({ po }) => { + await po.setUp({ autoApprove: true }); + + await po.importApp("minimal-with-ai-rules"); + await po.goToAppsTab(); + await po.sendPrompt("[dump] @app:minimal-with-ai-rules hi"); + + await po.snapshotServerDump("all-messages"); +}); + +test("mention app (with pro)", async ({ po }) => { + await po.setUpDyadPro(); + + await po.importApp("minimal-with-ai-rules"); + await po.goToAppsTab(); + await po.sendPrompt("[dump] @app:minimal-with-ai-rules hi"); + + await po.snapshotServerDump("all-messages"); +}); diff --git a/e2e-tests/new_chat.spec.ts b/e2e-tests/new_chat.spec.ts new file mode 100644 index 0000000..867e9f9 --- /dev/null +++ b/e2e-tests/new_chat.spec.ts @@ -0,0 +1,21 @@ +import { test } from "./helpers/test_helper"; + +const newChatTestCases = [ + { name: "first button", clickOptions: undefined }, + { name: "second button", clickOptions: { index: 1 } }, +]; + +newChatTestCases.forEach(({ name, clickOptions }) => { + test(`new chat (${name})`, async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=chat1"); + await po.snapshotMessages(); + await po.clickNewChat(clickOptions); + + // Make sure it's empty + await po.snapshotMessages(); + + await po.sendPrompt("tc=chat2"); + await po.snapshotMessages(); + }); +}); diff --git a/e2e-tests/ollama.spec.ts b/e2e-tests/ollama.spec.ts new file mode 100644 index 0000000..7a4712e --- /dev/null +++ b/e2e-tests/ollama.spec.ts @@ -0,0 +1,7 @@ +import { test } from "./helpers/test_helper"; + +test("send message to ollama", async ({ po }) => { + await po.selectTestOllamaModel(); + await po.sendPrompt("hi"); + await po.snapshotMessages(); +}); diff --git a/e2e-tests/partial_response.spec.ts b/e2e-tests/partial_response.spec.ts new file mode 100644 index 0000000..09c5081 --- /dev/null +++ b/e2e-tests/partial_response.spec.ts @@ -0,0 +1,12 @@ +import { test } from "./helpers/test_helper"; + +test("partial message is resumed", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.importApp("minimal"); + await po.sendPrompt("tc=partial-write"); + + // This is a special test case which triggers a dump. + await po.snapshotServerDump("all-messages"); + await po.snapshotMessages({ replaceDumpPath: true }); + await po.snapshotAppFiles({ name: "message-resumed" }); +}); diff --git a/e2e-tests/problems.spec.ts b/e2e-tests/problems.spec.ts new file mode 100644 index 0000000..fd22175 --- /dev/null +++ b/e2e-tests/problems.spec.ts @@ -0,0 +1,139 @@ +import { test, testSkipIfWindows } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; +import fs from "fs"; +import path from "path"; + +const MINIMAL_APP = "minimal-with-ai-rules"; + +test("problems auto-fix - enabled", async ({ po }) => { + await po.setUp({ enableAutoFixProblems: true }); + await po.importApp(MINIMAL_APP); + await po.expectPreviewIframeIsVisible(); + + await po.sendPrompt("tc=create-ts-errors"); + + await po.snapshotServerDump("all-messages", { dumpIndex: -2 }); + await po.snapshotServerDump("all-messages", { dumpIndex: -1 }); + + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +test("problems auto-fix - gives up after 2 attempts", async ({ po }) => { + await po.setUp({ enableAutoFixProblems: true }); + await po.importApp(MINIMAL_APP); + await po.expectPreviewIframeIsVisible(); + + await po.sendPrompt("tc=create-unfixable-ts-errors"); + + await po.snapshotServerDump("all-messages", { dumpIndex: -2 }); + await po.snapshotServerDump("all-messages", { dumpIndex: -1 }); + + await po.page.getByTestId("problem-summary").last().click(); + await expect( + po.page.getByTestId("problem-summary").last(), + ).toMatchAriaSnapshot(); + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +test("problems auto-fix - complex delete-rename-write", async ({ po }) => { + await po.setUp({ enableAutoFixProblems: true }); + await po.importApp(MINIMAL_APP); + await po.expectPreviewIframeIsVisible(); + + await po.sendPrompt("tc=create-ts-errors-complex"); + + await po.snapshotServerDump("all-messages", { dumpIndex: -2 }); + await po.snapshotServerDump("all-messages", { dumpIndex: -1 }); + + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +test("problems auto-fix - disabled", async ({ po }) => { + await po.setUp({ enableAutoFixProblems: false }); + await po.importApp(MINIMAL_APP); + await po.expectPreviewIframeIsVisible(); + + await po.sendPrompt("tc=create-ts-errors"); + + await po.snapshotMessages(); +}); + +testSkipIfWindows("problems - fix all", async ({ po }) => { + await po.setUp({ enableAutoFixProblems: true }); + await po.importApp(MINIMAL_APP); + const appPath = await po.getCurrentAppPath(); + const badFilePath = path.join(appPath, "src", "bad-file.tsx"); + fs.writeFileSync( + badFilePath, + `const App = () =>
Minimal imported app
; +nonExistentFunction1(); +nonExistentFunction2(); +nonExistentFunction3(); + +export default App; +`, + ); + await po.ensurePnpmInstall(); + + await po.sendPrompt("tc=create-ts-errors"); + await po.selectPreviewMode("problems"); + await po.clickFixAllProblems(); + + await po.snapshotServerDump("last-message"); + await po.snapshotMessages({ replaceDumpPath: true }); +}); + +testSkipIfWindows("problems - manual edit (react/vite)", async ({ po }) => { + await po.setUp({ enableAutoFixProblems: true }); + await po.sendPrompt("tc=1"); + + const appPath = await po.getCurrentAppPath(); + const badFilePath = path.join(appPath, "src", "bad-file.tsx"); + fs.writeFileSync( + badFilePath, + `const App = () =>
Minimal imported app
; +nonExistentFunction(); + +export default App; +`, + ); + await po.ensurePnpmInstall(); + await po.clickTogglePreviewPanel(); + + await po.selectPreviewMode("problems"); + await po.clickRecheckProblems(); + await po.snapshotProblemsPane(); + + fs.unlinkSync(badFilePath); + + await po.clickRecheckProblems(); + await po.snapshotProblemsPane(); +}); + +testSkipIfWindows("problems - manual edit (next.js)", async ({ po }) => { + await po.setUp({ enableAutoFixProblems: true }); + await po.goToHubAndSelectTemplate("Next.js Template"); + await po.sendPrompt("tc=1"); + + const appPath = await po.getCurrentAppPath(); + const badFilePath = path.join(appPath, "src", "bad-file.tsx"); + fs.writeFileSync( + badFilePath, + `const App = () =>
Minimal imported app
; + nonExistentFunction(); + + export default App; + `, + ); + await po.ensurePnpmInstall(); + await po.clickTogglePreviewPanel(); + + await po.selectPreviewMode("problems"); + await po.clickRecheckProblems(); + await po.snapshotProblemsPane(); + + fs.unlinkSync(badFilePath); + + await po.clickRecheckProblems(); + await po.snapshotProblemsPane(); +}); diff --git a/e2e-tests/prompt_library.spec.ts b/e2e-tests/prompt_library.spec.ts new file mode 100644 index 0000000..5aec6e5 --- /dev/null +++ b/e2e-tests/prompt_library.spec.ts @@ -0,0 +1,56 @@ +import { test } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +test("create and edit prompt", async ({ po }) => { + await po.setUp(); + await po.goToLibraryTab(); + await po.createPrompt({ + title: "title1", + description: "desc", + content: "prompt1content", + }); + + await expect(po.page.getByTestId("prompt-card")).toMatchAriaSnapshot(); + + await po.page.getByTestId("edit-prompt-button").click(); + await po.page + .getByRole("textbox", { name: "Content" }) + .fill("prompt1content-edited"); + await po.page.getByRole("button", { name: "Save" }).click(); + + await expect(po.page.getByTestId("prompt-card")).toMatchAriaSnapshot(); +}); + +test("delete prompt", async ({ po }) => { + await po.setUp(); + await po.goToLibraryTab(); + await po.createPrompt({ + title: "title1", + description: "desc", + content: "prompt1content", + }); + + await po.page.getByTestId("delete-prompt-button").click(); + await po.page.getByRole("button", { name: "Delete" }).click(); + + await expect(po.page.getByTestId("prompt-card")).not.toBeVisible(); +}); + +test("use prompt", async ({ po }) => { + await po.setUp(); + await po.goToLibraryTab(); + await po.createPrompt({ + title: "title1", + description: "desc", + content: "prompt1content", + }); + + await po.goToAppsTab(); + await po.getChatInput().click(); + await po.getChatInput().fill("[dump] @"); + await po.page.getByRole("menuitem", { name: "Choose title1" }).click(); + await po.page.getByRole("button", { name: "Send message" }).click(); + await po.waitForChatCompletion(); + + await po.snapshotServerDump("last-message"); +}); diff --git a/e2e-tests/rebuild.spec.ts b/e2e-tests/rebuild.spec.ts new file mode 100644 index 0000000..a168689 --- /dev/null +++ b/e2e-tests/rebuild.spec.ts @@ -0,0 +1,24 @@ +import { testSkipIfWindows, Timeout } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; +import fs from "fs"; +import path from "path"; + +testSkipIfWindows("rebuild app", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("hi"); + await po.snapshotPreview(); + + const currentAppPath = await po.getCurrentAppPath(); + const testPath = path.join(currentAppPath, "node_modules", "test.txt"); + fs.writeFileSync(testPath, "test"); + + await po.clickRebuild(); + await expect(po.locateLoadingAppPreview()).toBeVisible(); + await expect(po.locateLoadingAppPreview()).not.toBeVisible({ + timeout: Timeout.LONG, + }); + + // Check that the file is removed with the rebuild + expect(fs.existsSync(testPath)).toBe(false); + await po.snapshotPreview(); +}); diff --git a/e2e-tests/refresh.spec.ts b/e2e-tests/refresh.spec.ts new file mode 100644 index 0000000..f005724 --- /dev/null +++ b/e2e-tests/refresh.spec.ts @@ -0,0 +1,19 @@ +import { testSkipIfWindows } from "./helpers/test_helper"; + +testSkipIfWindows("refresh app", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("hi"); + + // Drop the document.body inside the contentFrame to make + // sure refresh works. + await po + .getPreviewIframeElement() + .contentFrame() + .locator("body") + .evaluate((body) => { + body.remove(); + }); + + await po.clickPreviewRefresh(); + await po.snapshotPreview(); +}); diff --git a/e2e-tests/reject.spec.ts b/e2e-tests/reject.spec.ts new file mode 100644 index 0000000..1ad9038 --- /dev/null +++ b/e2e-tests/reject.spec.ts @@ -0,0 +1,14 @@ +import { test } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +test("reject", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=write-index"); + await po.snapshotMessages(); + await po.rejectProposal(); + + // Should be slightly different from above, because it will say "rejected" + await po.snapshotMessages(); + + await expect(po.getPreviewIframeElement()).not.toBeVisible(); +}); diff --git a/e2e-tests/release_channel.spec.ts b/e2e-tests/release_channel.spec.ts new file mode 100644 index 0000000..9f743a4 --- /dev/null +++ b/e2e-tests/release_channel.spec.ts @@ -0,0 +1,22 @@ +import { expect } from "@playwright/test"; +import { test } from "./helpers/test_helper"; + +test("release channel - change from stable to beta and back", async ({ + po, +}) => { + await po.goToSettingsTab(); + + // Change to beta channel + await po.changeReleaseChannel("beta"); + await expect( + po.page.getByRole("button", { name: "Restart Dyad" }), + ).toBeVisible(); + await po.snapshotSettings(); + + // Change back to stable channel + await po.changeReleaseChannel("stable"); + await expect( + po.page.getByRole("button", { name: "Download Stable" }), + ).toBeVisible(); + await po.snapshotSettings(); +}); diff --git a/e2e-tests/rename_app.spec.ts b/e2e-tests/rename_app.spec.ts new file mode 100644 index 0000000..240d15c --- /dev/null +++ b/e2e-tests/rename_app.spec.ts @@ -0,0 +1,54 @@ +import fs from "fs"; +import { test } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +test("rename app (including folder)", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("hi"); + + const appPath = await po.getCurrentAppPath(); + await po.getTitleBarAppNameButton().click(); + + await po.clickAppDetailsRenameAppButton(); + await po.page + .getByRole("textbox", { name: "Enter new app name" }) + .fill("new-app-name"); + await po.page.getByRole("button", { name: "Continue" }).click(); + await po.page + .getByRole("button", { name: "Recommended Rename app and" }) + .click(); + + await expect(async () => { + expect(await po.getCurrentAppName()).toBe("new-app-name"); + }).toPass(); + + expect(fs.existsSync(appPath)).toBe(false); + const newAppPath = po.getAppPath({ appName: "new-app-name" }); + expect(fs.existsSync(newAppPath)).toBe(true); + + await expect(po.page.getByText(newAppPath)).toBeVisible(); +}); + +test("rename app (without folder)", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("hi"); + + const appPath = await po.getCurrentAppPath(); + await po.getTitleBarAppNameButton().click(); + + await po.clickAppDetailsRenameAppButton(); + await po.page + .getByRole("textbox", { name: "Enter new app name" }) + .fill("new-app-name"); + await po.page.getByRole("button", { name: "Continue" }).click(); + await po.page + .getByRole("button", { name: "Rename app only The folder" }) + .click(); + + await expect(async () => { + expect(await po.getCurrentAppName()).toBe("new-app-name"); + }).toPass(); + + expect(fs.existsSync(appPath)).toBe(true); + await expect(po.page.getByText(appPath)).toBeVisible(); +}); diff --git a/e2e-tests/rename_edit.spec.ts b/e2e-tests/rename_edit.spec.ts new file mode 100644 index 0000000..7244e4f --- /dev/null +++ b/e2e-tests/rename_edit.spec.ts @@ -0,0 +1,9 @@ +import { test } from "./helpers/test_helper"; + +test("rename then edit works", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.importApp("minimal"); + + await po.sendPrompt("tc=rename-edit"); + await po.snapshotAppFiles({ name: "rename-edit" }); +}); diff --git a/e2e-tests/restart.spec.ts b/e2e-tests/restart.spec.ts new file mode 100644 index 0000000..3eee941 --- /dev/null +++ b/e2e-tests/restart.spec.ts @@ -0,0 +1,15 @@ +import { testSkipIfWindows, Timeout } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +testSkipIfWindows("restart app", async ({ po }) => { + await po.setUp({ autoApprove: true }); + await po.sendPrompt("hi"); + + await po.clickRestart(); + await expect(po.locateLoadingAppPreview()).toBeVisible(); + await expect(po.locateLoadingAppPreview()).not.toBeVisible({ + timeout: Timeout.LONG, + }); + + await po.snapshotPreview(); +}); diff --git a/e2e-tests/retry.spec.ts b/e2e-tests/retry.spec.ts new file mode 100644 index 0000000..91eebcf --- /dev/null +++ b/e2e-tests/retry.spec.ts @@ -0,0 +1,13 @@ +import { test } from "./helpers/test_helper"; + +test("retry - should work", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("[increment]"); + await po.snapshotMessages(); + + await po.dismissAllToasts(); + await po.clickRetry(); + await po.expectNoToast(); + // The counter should be incremented in the snapshotted messages. + await po.snapshotMessages(); +}); diff --git a/e2e-tests/select_component.spec.ts b/e2e-tests/select_component.spec.ts new file mode 100644 index 0000000..3e43ac8 --- /dev/null +++ b/e2e-tests/select_component.spec.ts @@ -0,0 +1,103 @@ +import { expect } from "@playwright/test"; +import { testSkipIfWindows } from "./helpers/test_helper"; + +testSkipIfWindows("select component", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + await po.clickTogglePreviewPanel(); + await po.clickPreviewPickElement(); + + await po + .getPreviewIframeElement() + .contentFrame() + .getByRole("heading", { name: "Welcome to Your Blank App" }) + .click(); + + await po.snapshotPreview(); + await po.snapshotSelectedComponentDisplay(); + + await po.sendPrompt("[dump] make it smaller"); + await po.snapshotPreview(); + await expect(po.getSelectedComponentDisplay()).not.toBeVisible(); + + await po.snapshotServerDump("all-messages"); + + // Send one more prompt to make sure it's a normal message. + await po.sendPrompt("[dump] tc=basic"); + await po.snapshotServerDump("last-message"); +}); + +testSkipIfWindows("deselect component", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("tc=basic"); + await po.clickTogglePreviewPanel(); + await po.clickPreviewPickElement(); + + await po + .getPreviewIframeElement() + .contentFrame() + .getByRole("heading", { name: "Welcome to Your Blank App" }) + .click(); + + await po.snapshotPreview(); + await po.snapshotSelectedComponentDisplay(); + + // Deselect the component and make sure the state has reverted + await po.clickDeselectComponent(); + + await po.snapshotPreview(); + await expect(po.getSelectedComponentDisplay()).not.toBeVisible(); + + // Send one more prompt to make sure it's a normal message. + await po.sendPrompt("[dump] tc=basic"); + await po.snapshotServerDump("last-message"); +}); + +testSkipIfWindows("upgrade app to select component", async ({ po }) => { + await po.setUp(); + await po.importApp("select-component"); + await po.getTitleBarAppNameButton().click(); + await po.clickAppUpgradeButton({ upgradeId: "component-tagger" }); + await po.expectAppUpgradeButtonIsNotVisible({ + upgradeId: "component-tagger", + }); + await po.snapshotAppFiles({ name: "app-upgraded" }); + await po.clickOpenInChatButton(); + // There should be another version from the upgrade being committed. + await expect(po.page.getByText("Version 2")).toBeVisible(); + + await po.clickPreviewPickElement(); + + await po + .getPreviewIframeElement() + .contentFrame() + .getByRole("heading", { name: "Launch Your Next Project" }) + .click(); + + await po.sendPrompt("[dump] make it smaller"); + await po.snapshotServerDump("last-message"); +}); + +testSkipIfWindows("select component next.js", async ({ po }) => { + await po.setUp(); + + await po.goToHubAndSelectTemplate("Next.js Template"); + + await po.sendPrompt("tc=basic"); + await po.clickTogglePreviewPanel(); + await po.clickPreviewPickElement(); + + await po + .getPreviewIframeElement() + .contentFrame() + .getByRole("heading", { name: "Blank page" }) + .click(); + + await po.snapshotPreview(); + await po.snapshotSelectedComponentDisplay(); + + await po.sendPrompt("[dump] make it smaller"); + await po.snapshotPreview(); + + await po.snapshotServerDump("all-messages"); +}); diff --git a/e2e-tests/smart_context_options.spec.ts b/e2e-tests/smart_context_options.spec.ts new file mode 100644 index 0000000..2b7b77e --- /dev/null +++ b/e2e-tests/smart_context_options.spec.ts @@ -0,0 +1,15 @@ +import { test } from "./helpers/test_helper"; + +test("switching smart context mode saves the right setting", async ({ po }) => { + await po.setUpDyadPro(); + const proModesDialog = await po.openProModesDialog({ + location: "home-chat-input-container", + }); + await po.snapshotSettings(); + await proModesDialog.setSmartContextMode("balanced"); + await po.snapshotSettings(); + await proModesDialog.setSmartContextMode("off"); + await po.snapshotSettings(); + await proModesDialog.setSmartContextMode("conservative"); + await po.snapshotSettings(); +}); diff --git a/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-1.aria.yml b/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-1.aria.yml new file mode 100644 index 0000000..89efbdc --- /dev/null +++ b/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-1.aria.yml @@ -0,0 +1,9 @@ +- paragraph: tc=write-index +- paragraph: OK, I'm going to do some writing now... +- img +- text: Index.tsx +- img +- text: "src/pages/Index.tsx Summary: write-description" +- paragraph: And it's done! +- button "Retry": + - img \ No newline at end of file diff --git a/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-2.aria.yml b/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-2.aria.yml new file mode 100644 index 0000000..0b43a10 --- /dev/null +++ b/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-2.aria.yml @@ -0,0 +1,13 @@ +- paragraph: tc=write-index +- paragraph: OK, I'm going to do some writing now... +- img +- text: Index.tsx +- img +- text: "src/pages/Index.tsx Summary: write-description" +- paragraph: And it's done! +- img +- text: Approved +- button "Undo": + - img +- button "Retry": + - img \ No newline at end of file diff --git a/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-3.aria.yml b/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-3.aria.yml new file mode 100644 index 0000000..d176260 --- /dev/null +++ b/e2e-tests/snapshots/approve.spec.ts_write-to-index-approve-check-preview-3.aria.yml @@ -0,0 +1,4 @@ +- region "Notifications (F8)": + - list +- region "Notifications alt+T" +- text: Testing:write-index! \ No newline at end of file diff --git a/e2e-tests/snapshots/astro.spec.ts_astro-1.txt b/e2e-tests/snapshots/astro.spec.ts_astro-1.txt new file mode 100644 index 0000000..de2c987 --- /dev/null +++ b/e2e-tests/snapshots/astro.spec.ts_astro-1.txt @@ -0,0 +1,230 @@ +=== +role: system +message: +${BUILD_SYSTEM_PREFIX} + +# Tech Stack +- You are building a React application. +- Use TypeScript. +- Use React Router. KEEP the routes in src/App.tsx +- Always put source code in the src folder. +- Put pages into src/pages/ +- Put components into src/components/ +- The main page (default page) is src/pages/Index.tsx +- UPDATE the main page to include the new components. OTHERWISE, the user can NOT see any components! +- ALWAYS try to use the shadcn/ui library. +- Tailwind CSS: always use Tailwind CSS for styling components. Utilize Tailwind classes extensively for layout, spacing, colors, and other design aspects. + +Available packages and libraries: +- The lucide-react package is installed for icons. +- You ALREADY have ALL the shadcn/ui components and their dependencies installed. So you don't need to install them again. +- You have ALL the necessary Radix UI components installed. +- Use prebuilt components from the shadcn/ui library after importing them. Note that these files shouldn't be edited, so make new components if you need to change them. + + +${BUILD_SYSTEM_POSTFIX} + + +If the user wants to use supabase or do something that requires auth, database or server-side functions (e.g. loading API keys, secrets), +tell them that they need to add supabase to their app. + +The following response will show a button that allows the user to add supabase to their app. + + + +# Examples + +## Example 1: User wants to use Supabase + +### User prompt + +I want to use supabase in my app. + +### Assistant response + +You need to first add Supabase to your app. + + + +## Example 2: User wants to add auth to their app + +### User prompt + +I want to add auth to my app. + +### Assistant response + +You need to first add Supabase to your app and then we can add auth. + + + + +=== +role: user +message: This is my codebase. +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + + + + +// File contents excluded from context + + + + + + + + + dyad-generated-app + + + +
+ + + + +
+ + +const App = () =>
Minimal imported app
; + +export default App; + +
+ + +--- +// Component script (runs at build time) +const greeting = "Hello World"; +const currentTime = new Date().toLocaleString(); +--- + +
+

{greeting}

+

Welcome to Astro!

+

Generated at: {currentTime}

+
+ + + +
+ + +import { createRoot } from "react-dom/client"; +import App from "./App.tsx"; + +createRoot(document.getElementById("root")!).render(); + + + + +/// + + + + +// File contents excluded from context + + + +// File contents excluded from context + + + +// File contents excluded from context + + + +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react-swc"; +import path from "path"; + +export default defineConfig(() => ({ + server: { + host: "::", + port: 8080, + }, + plugins: [react()], + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, +})); + + + + + +=== +role: assistant +message: OK, got it. I'm ready to help + +=== +role: user +message: Generate an AI_RULES.md file for this app. Describe the tech stack in 5-10 bullet points and describe clear rules about what libraries to use for what. + +=== +role: assistant +message: + A file (2) + + More + EOM + +=== +role: user +message: [dump] hi \ No newline at end of file diff --git a/e2e-tests/snapshots/attach_image.spec.ts_attach-image b/e2e-tests/snapshots/attach_image.spec.ts_attach-image new file mode 100644 index 0000000..a9b5f75 --- /dev/null +++ b/e2e-tests/snapshots/attach_image.spec.ts_attach-image @@ -0,0 +1,3 @@ +=== +role: user +message: [{"type":"text","text":"[dump]\n\nAttachments:\n- logo.png (image/png)"},{"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEKADAAQAAAABAAAAEAAAAADHbxzxAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAACbElEQVQ4EY1TTWgTQRR+M7NpQoKmPVTPQi/qoaDWQAsxIigqRS/JzYNHxVz0oAcrG6hQoV68ePNQECUpeBFBIqQiVBrbaqvgoXjRSzVJf8zfzu7MG2eWbGywFN8e3ux73/fNm/dmAP7TFCgSQHeurSC4t1eEAFET4+WjzPIq5AX5ZURMjO5GNEk7VbJKKWU9Or8WBg2cvPRxlLXiX7arVtFWNjVkzSX/VJBPK0YKRMIciI6477kjhsDrAxfJoebVUwd0bl1vBD0ChpzR5JkrKzGvjum2B8MtrphLRXGTY5RKCaioi7wr/lcgID+//Omsu4EzERg4GIIoWAygxrezwOvNhmiAoCrkCtZtqF9BPp33d86nl46jw173aWKtXWtzWi21kELDgzOo+mJCCRBIFIowBr3rOQK4bDJC90PVrf5Ayi/efDP62QBvn14Y5m0sKogOCoWy/nvL55syqOl4ppCRT6+9GxAKjgmtLYg3ldVkM4Hs0Fr4QSmxwi28T1gUHE+J9rpGdozqRvoWcmKWUMpyEXWH2IYJiq0KtQYr/qgRWc3T4lJ/IbNVx/xmmCrMXJ+ML3+wZP+Jmre5MN8/NVYoFKTB2XbJ+vYyPi9l/4hLq+XZpZMJ0BxzP3z1XGpO99qUDg897VFGEkd+3lm9lVy8e2NsceL7q/iqwvCIohIYU9MGm+pwuuOwbUVtm+D0uXIO5b57noxCWzJoSQJNIaAhm8BxMze7PGbboLFA/El0BYxqcJTJC+Vkg5PrLU4PO1KBg/jVo87jZ++Tb4PSDX5XMxdq14QOpvfI9XDMxTKPKQim9DqtY8H/Tv8HGFE+AZtzYdAAAAAASUVORK5CYII="}}] \ No newline at end of file diff --git a/e2e-tests/snapshots/attach_image.spec.ts_attach-image---chat---upload-to-codebase-1.aria.yml b/e2e-tests/snapshots/attach_image.spec.ts_attach-image---chat---upload-to-codebase-1.aria.yml new file mode 100644 index 0000000..6e70cfe --- /dev/null +++ b/e2e-tests/snapshots/attach_image.spec.ts_attach-image---chat---upload-to-codebase-1.aria.yml @@ -0,0 +1,23 @@ +- paragraph: basic +- img +- text: file1.txt +- img +- text: file1.txt +- paragraph: More EOM +- img +- text: Approved +- paragraph: "[[UPLOAD_IMAGE_TO_CODEBASE]]" +- paragraph: "Attachments:" +- paragraph: "File to upload to codebase: logo.png (file id: DYAD_ATTACHMENT_0)" +- paragraph: Uploading image to codebase +- img +- text: file.png +- img +- text: "new/image/file.png Summary: Uploaded image to codebase" +- paragraph: "[[dyad-dump-path=*]]" +- img +- text: Approved +- button "Undo": + - img +- button "Retry": + - img \ No newline at end of file diff --git a/e2e-tests/snapshots/attach_image.spec.ts_attach-image---chat-1.aria.yml b/e2e-tests/snapshots/attach_image.spec.ts_attach-image---chat-1.aria.yml new file mode 100644 index 0000000..3ecbcaf --- /dev/null +++ b/e2e-tests/snapshots/attach_image.spec.ts_attach-image---chat-1.aria.yml @@ -0,0 +1,17 @@ +- paragraph: basic +- img +- text: file1.txt +- img +- text: file1.txt +- paragraph: More EOM +- img +- text: Approved +- paragraph: "[dump]" +- paragraph: "Attachments:" +- list: + - listitem: logo.png (image/png) +- paragraph: "[[dyad-dump-path=*]]" +- img +- text: Approved +- button "Retry": + - img \ No newline at end of file diff --git a/e2e-tests/snapshots/attach_image.spec.ts_attach-image---home-chat-1.aria.yml b/e2e-tests/snapshots/attach_image.spec.ts_attach-image---home-chat-1.aria.yml new file mode 100644 index 0000000..437e0dd --- /dev/null +++ b/e2e-tests/snapshots/attach_image.spec.ts_attach-image---home-chat-1.aria.yml @@ -0,0 +1,7 @@ +- paragraph: "[dump]" +- paragraph: "Attachments:" +- list: + - listitem: logo.png (image/png) +- paragraph: "[[dyad-dump-path=*]]" +- button "Retry": + - img \ No newline at end of file diff --git a/e2e-tests/snapshots/attach_image.spec.ts_attach-image-via-drag---chat-1.aria.yml b/e2e-tests/snapshots/attach_image.spec.ts_attach-image-via-drag---chat-1.aria.yml new file mode 100644 index 0000000..3ecbcaf --- /dev/null +++ b/e2e-tests/snapshots/attach_image.spec.ts_attach-image-via-drag---chat-1.aria.yml @@ -0,0 +1,17 @@ +- paragraph: basic +- img +- text: file1.txt +- img +- text: file1.txt +- paragraph: More EOM +- img +- text: Approved +- paragraph: "[dump]" +- paragraph: "Attachments:" +- list: + - listitem: logo.png (image/png) +- paragraph: "[[dyad-dump-path=*]]" +- img +- text: Approved +- button "Retry": + - img \ No newline at end of file diff --git a/e2e-tests/snapshots/attach_image.spec.ts_upload-to-codebase b/e2e-tests/snapshots/attach_image.spec.ts_upload-to-codebase new file mode 100644 index 0000000..027beb3 --- /dev/null +++ b/e2e-tests/snapshots/attach_image.spec.ts_upload-to-codebase @@ -0,0 +1,3 @@ +=== +role: user +message: [{"type":"text","text":"[[UPLOAD_IMAGE_TO_CODEBASE]]\n\nAttachments:\n\n\nFile to upload to codebase: logo.png (file id: DYAD_ATTACHMENT_0)"},{"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEKADAAQAAAABAAAAEAAAAADHbxzxAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAACbElEQVQ4EY1TTWgTQRR+M7NpQoKmPVTPQi/qoaDWQAsxIigqRS/JzYNHxVz0oAcrG6hQoV68ePNQECUpeBFBIqQiVBrbaqvgoXjRSzVJf8zfzu7MG2eWbGywFN8e3ux73/fNm/dmAP7TFCgSQHeurSC4t1eEAFET4+WjzPIq5AX5ZURMjO5GNEk7VbJKKWU9Or8WBg2cvPRxlLXiX7arVtFWNjVkzSX/VJBPK0YKRMIciI6477kjhsDrAxfJoebVUwd0bl1vBD0ChpzR5JkrKzGvjum2B8MtrphLRXGTY5RKCaioi7wr/lcgID+//Omsu4EzERg4GIIoWAygxrezwOvNhmiAoCrkCtZtqF9BPp33d86nl46jw173aWKtXWtzWi21kELDgzOo+mJCCRBIFIowBr3rOQK4bDJC90PVrf5Ayi/efDP62QBvn14Y5m0sKogOCoWy/nvL55syqOl4ppCRT6+9GxAKjgmtLYg3ldVkM4Hs0Fr4QSmxwi28T1gUHE+J9rpGdozqRvoWcmKWUMpyEXWH2IYJiq0KtQYr/qgRWc3T4lJ/IbNVx/xmmCrMXJ+ML3+wZP+Jmre5MN8/NVYoFKTB2XbJ+vYyPi9l/4hLq+XZpZMJ0BxzP3z1XGpO99qUDg897VFGEkd+3lm9lVy8e2NsceL7q/iqwvCIohIYU9MGm+pwuuOwbUVtm+D0uXIO5b57noxCWzJoSQJNIaAhm8BxMze7PGbboLFA/El0BYxqcJTJC+Vkg5PrLU4PO1KBg/jVo87jZ++Tb4PSDX5XMxdq14QOpvfI9XDMxTKPKQim9DqtY8H/Tv8HGFE+AZtzYdAAAAAASUVORK5CYII="}}] \ No newline at end of file diff --git a/e2e-tests/snapshots/auto_approve.spec.ts_auto-approve-1.aria.yml b/e2e-tests/snapshots/auto_approve.spec.ts_auto-approve-1.aria.yml new file mode 100644 index 0000000..0b43a10 --- /dev/null +++ b/e2e-tests/snapshots/auto_approve.spec.ts_auto-approve-1.aria.yml @@ -0,0 +1,13 @@ +- paragraph: tc=write-index +- paragraph: OK, I'm going to do some writing now... +- img +- text: Index.tsx +- img +- text: "src/pages/Index.tsx Summary: write-description" +- paragraph: And it's done! +- img +- text: Approved +- button "Undo": + - img +- button "Retry": + - img \ No newline at end of file diff --git a/e2e-tests/snapshots/auto_approve.spec.ts_auto-approve-2.aria.yml b/e2e-tests/snapshots/auto_approve.spec.ts_auto-approve-2.aria.yml new file mode 100644 index 0000000..d176260 --- /dev/null +++ b/e2e-tests/snapshots/auto_approve.spec.ts_auto-approve-2.aria.yml @@ -0,0 +1,4 @@ +- region "Notifications (F8)": + - list +- region "Notifications alt+T" +- text: Testing:write-index! \ No newline at end of file diff --git a/e2e-tests/snapshots/auto_update.spec.ts_auto-update---disable-and-enable-1.txt b/e2e-tests/snapshots/auto_update.spec.ts_auto-update---disable-and-enable-1.txt new file mode 100644 index 0000000..4f464e8 --- /dev/null +++ b/e2e-tests/snapshots/auto_update.spec.ts_auto-update---disable-and-enable-1.txt @@ -0,0 +1,20 @@ +{ + "selectedModel": { + "name": "auto", + "provider": "auto" + }, + "providerSettings": {}, + "telemetryConsent": "unset", + "telemetryUserId": "[UUID]", + "hasRunBefore": true, + "experiments": {}, + "lastShownReleaseNotesVersion": "[scrubbed]", + "enableProLazyEditsMode": true, + "enableProSmartFilesContextMode": true, + "selectedTemplateId": "react", + "selectedChatMode": "build", + "enableAutoFixProblems": false, + "enableAutoUpdate": false, + "releaseChannel": "stable", + "isTestMode": true +} \ No newline at end of file diff --git a/e2e-tests/snapshots/auto_update.spec.ts_auto-update---disable-and-enable-2.txt b/e2e-tests/snapshots/auto_update.spec.ts_auto-update---disable-and-enable-2.txt new file mode 100644 index 0000000..281cd57 --- /dev/null +++ b/e2e-tests/snapshots/auto_update.spec.ts_auto-update---disable-and-enable-2.txt @@ -0,0 +1,20 @@ +{ + "selectedModel": { + "name": "auto", + "provider": "auto" + }, + "providerSettings": {}, + "telemetryConsent": "unset", + "telemetryUserId": "[UUID]", + "hasRunBefore": true, + "experiments": {}, + "lastShownReleaseNotesVersion": "[scrubbed]", + "enableProLazyEditsMode": true, + "enableProSmartFilesContextMode": true, + "selectedTemplateId": "react", + "selectedChatMode": "build", + "enableAutoFixProblems": false, + "enableAutoUpdate": true, + "releaseChannel": "stable", + "isTestMode": true +} \ No newline at end of file diff --git a/e2e-tests/snapshots/capacitor.spec.ts_upgraded-capacitor.txt b/e2e-tests/snapshots/capacitor.spec.ts_upgraded-capacitor.txt new file mode 100644 index 0000000..bcf8e3a --- /dev/null +++ b/e2e-tests/snapshots/capacitor.spec.ts_upgraded-capacitor.txt @@ -0,0 +1,7833 @@ +=== .gitignore === +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + + +=== AI_RULES.md === +# Tech Stack + +- You are building a React application. +- Use TypeScript. +- Use React Router. KEEP the routes in src/App.tsx +- Always put source code in the src folder. +- Put pages into src/pages/ +- Put components into src/components/ +- The main page (default page) is src/pages/Index.tsx +- UPDATE the main page to include the new components. OTHERWISE, the user can NOT see any components! +- ALWAYS try to use the shadcn/ui library. +- Tailwind CSS: always use Tailwind CSS for styling components. Utilize Tailwind classes extensively for layout, spacing, colors, and other design aspects. + +Available packages and libraries: + +- The lucide-react package is installed for icons. +- You ALREADY have ALL the shadcn/ui components and their dependencies installed. So you don't need to install them again. +- You have ALL the necessary Radix UI components installed. +- Use prebuilt components from the shadcn/ui library after importing them. Note that these files shouldn't be edited, so make new components if you need to change them. + + +=== android/.gitignore === +# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore + +# Built application files +*.apk +*.aar +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ +out/ +# Uncomment the following line in case you need and you don't have the release build type files in your app +# release/ + +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# IntelliJ +*.iml +.idea/workspace.xml +.idea/tasks.xml +.idea/gradle.xml +.idea/assetWizardSettings.xml +.idea/dictionaries +.idea/libraries +# Android Studio 3 in .gitignore file. +.idea/caches +.idea/modules.xml +# Comment next line if keeping position of elements in Navigation Editor is relevant for you +.idea/navEditor.xml + +# Keystore files +# Uncomment the following lines if you do not want to check your keystore files in. +#*.jks +#*.keystore + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild +.cxx/ + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Freeline +freeline.py +freeline/ +freeline_project_description.json + +# fastlane +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output +fastlane/readme.md + +# Version control +vcs.xml + +# lint +lint/intermediates/ +lint/generated/ +lint/outputs/ +lint/tmp/ +# lint/reports/ + +# Android Profiling +*.hprof + +# Cordova plugins for Capacitor +capacitor-cordova-android-plugins + +# Copied web assets +app/src/main/assets/public + +# Generated Config files +app/src/main/assets/capacitor.config.json +app/src/main/assets/capacitor.plugins.json +app/src/main/res/xml/config.xml + + +=== android/app/.gitignore === +/build/* +!/build/.npmkeep + + +=== android/app/build.gradle === +apply plugin: 'com.android.application' + +android { + namespace "com.example.[[normalizedAppName]]" + compileSdk rootProject.ext.compileSdkVersion + defaultConfig { + applicationId "com.example.[[normalizedAppName]]" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + aaptOptions { + // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. + // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61 + ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' + } + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +repositories { + flatDir{ + dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs' + } +} + +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" + implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion" + implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion" + implementation project(':capacitor-android') + testImplementation "junit:junit:$junitVersion" + androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" + androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" + implementation project(':capacitor-cordova-android-plugins') +} + +apply from: 'capacitor.build.gradle' + +try { + def servicesJSON = file('google-services.json') + if (servicesJSON.text) { + apply plugin: 'com.google.gms.google-services' + } +} catch(Exception e) { + logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work") +} + + +=== android/app/build/.npmkeep === + + +=== android/app/proguard-rules.pro === +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile + + +=== android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java === +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import android.content.Context; +import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.platform.app.InstrumentationRegistry; +import org.junit.Test; +import org.junit.runner.RunWith; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + + assertEquals("com.getcapacitor.app", appContext.getPackageName()); + } +} + + +=== android/app/src/main/AndroidManifest.xml === + + + + + + + + + + + + + + + + + + + + + + + + + +=== android/app/src/main/java/com/example/[[normalizedAppName]]/MainActivity.java === +package com.example.[[normalizedAppName]]; + +import com.getcapacitor.BridgeActivity; + +public class MainActivity extends BridgeActivity {} + + +=== android/app/src/main/res/drawable-land-hdpi/splash.png === +[binary hash="08cc34ad7713fe7ed58bceaa37b2387b670c53cd60264b4bd6442db3098e75dc"] + +=== android/app/src/main/res/drawable-land-mdpi/splash.png === +[binary hash="5cf98b4451bd99b20df26f9e608a46946118be6b0ae90762f9ca1786a30c76ff"] + +=== android/app/src/main/res/drawable-land-xhdpi/splash.png === +[binary hash="22f87e1e3bc89aa01a7dbc39c9a4db058cd0bf4ad3fe9f55712bf69eb997f4bf"] + +=== android/app/src/main/res/drawable-land-xxhdpi/splash.png === +[binary hash="42aa26392546fcdee1b8d3ac6d4b41bfcceb41dc6a4f3a3c30c24a8a8f4db862"] + +=== android/app/src/main/res/drawable-land-xxxhdpi/splash.png === +[binary hash="60393ce8636fd263e4e1fea3fd4ab2de948c6295e898fda9b50ac4e5283be809"] + +=== android/app/src/main/res/drawable-port-hdpi/splash.png === +[binary hash="c5015f4ba3628392b538386c5e210f0b94f352a3160adab934fd0311972137ca"] + +=== android/app/src/main/res/drawable-port-mdpi/splash.png === +[binary hash="07fa579e1c83e04ba7f9cbcbfcf41b68e15fe3638f2c44a04e58b809103e6b69"] + +=== android/app/src/main/res/drawable-port-xhdpi/splash.png === +[binary hash="b73049cb37fe76d6c11b87a796766bf6af0c85483b31eb6a921657b0d764a4b9"] + +=== android/app/src/main/res/drawable-port-xxhdpi/splash.png === +[binary hash="0c7f1212f25b7b90e9a6e1d320013e4ff3d3e03e634cbb07b7b7981cac51627f"] + +=== android/app/src/main/res/drawable-port-xxxhdpi/splash.png === +[binary hash="3db071a03b2f8ffe0dfd4170fc59842d53cd15bba5e88af59401d58efabf7827"] + +=== android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml === + + + + + + + + + + + + + +=== android/app/src/main/res/drawable/ic_launcher_background.xml === + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +=== android/app/src/main/res/drawable/splash.png === +[binary hash="5cf98b4451bd99b20df26f9e608a46946118be6b0ae90762f9ca1786a30c76ff"] + +=== android/app/src/main/res/layout/activity_main.xml === + + + + + + + +=== android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml === + + + + + + +=== android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml === + + + + + + +=== android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png === +[binary hash="32baa10d2632a4417454a579f992bd640e0a3cec79321423559b2c9940de58a9"] + +=== android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png === +[binary hash="bfcc1b0fa931b14bb241372c76ab4f04374b67d02363c98d9cb12edfdacdf5f3"] + +=== android/app/src/main/res/mipmap-hdpi/ic_launcher.png === +[binary hash="72b71c3581ca3b5a23b1c168d69b9d855b3f184fa079902a01f088eb4f0607d5"] + +=== android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png === +[binary hash="58e78a618778926b1f6d9472a6468de878de8530970934e94aab5ba4ba08cc00"] + +=== android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png === +[binary hash="0166fc333074c373fbd0ce6b5defd71552166165ac778121ca9c9dff6b83f0fc"] + +=== android/app/src/main/res/mipmap-mdpi/ic_launcher.png === +[binary hash="27ed3603010ebc278f64f8645741ab132ff517abb5308eb9df6c8e42a48956b2"] + +=== android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png === +[binary hash="6f88083b8166cc559102f7044688de7525287632ebe09ac45d001ac8bf4b3eae"] + +=== android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png === +[binary hash="40911a00922868686854a4804b93fd6e56b503664696de03f450bff690affb6d"] + +=== android/app/src/main/res/mipmap-xhdpi/ic_launcher.png === +[binary hash="d35dbfff175b83c13ef59cf924abfc810f7b6a158595d7417c5498ea8c7c7ed1"] + +=== android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png === +[binary hash="4a82bc1e9923576275869998925ce0ae021a79aa18b24a0dd87ad6b61ca85053"] + +=== android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png === +[binary hash="1ee4cd9ff371dcb2e3938097e434f6fb8731688ed7165e61fc63693ad5b2f455"] + +=== android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png === +[binary hash="ed346eb1e3f0280f15709393705899b3ff55c20b88f4e0308006b3c33cf5fe14"] + +=== android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png === +[binary hash="bd24fd383253bf8d43f0a81f11c071d76d1d555114376dd647cd9fb38fa0a9da"] + +=== android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png === +[binary hash="ab93096331e7cd8ec379f73f1e9adcaaa9ee1115c9f4ff10411a811fb9700174"] + +=== android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png === +[binary hash="87cb2f2ffe992652bb4fa768c73719a37b5852ab17fbf8e170e888f7a42b0761"] + +=== android/app/src/main/res/values/ic_launcher_background.xml === + + + #FFFFFF + + +=== android/app/src/main/res/values/strings.xml === + + + [[appName]] + [[appName]] + com.example.[[normalizedAppName]] + com.example.[[normalizedAppName]] + + + +=== android/app/src/main/res/values/styles.xml === + + + + + + + + + + + + +=== android/app/src/main/res/xml/file_paths.xml === + + + + + + +=== android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java === +package com.getcapacitor.myapp; + +import static org.junit.Assert.*; + +import org.junit.Test; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} + + +=== android/build.gradle === +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:8.7.2' + classpath 'com.google.gms:google-services:4.4.2' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +apply from: "variables.gradle" + +allprojects { + repositories { + google() + mavenCentral() + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} + + +=== android/gradle.properties === +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true + + +=== android/gradle/wrapper/gradle-wrapper.jar === +PK! META-INF/LICENSEUT�Z[s�6~ϯ�hfg�FI���}Rc�U7�3���>B$(aC,@Z���=�(�N�u=�֢���s��w�J|�g��r��]�ΩW/��/e�6��v����n��(�}���g퇡��͛��0�����ݛ��ro^�������X݈ww�����n�����as[��������;|\�[7���z��>!��ō�u�P��_ymf�D3���iD�d'8�l��*Q���U�6V�Nªޚj,�q�Eổv���� �D�[�Jl�b�J� ȷf������A�{�[� �z{�Xi��ջ� ̡SV�J�PG!�ao�����\Z1�� `ӝ�����K��j'qK�ϔ;< i��,IJ���z1^� +j�xk0�`MSiU�А����]�JӶ����⠇=�� �⽱�G?��@�$�F�ͼ�ʼn+}�K�A��g�K�����B F����y)�'�����N��p_7�{�X!{E��Ӿ�d�9h�&�r�Ar���%պk�ʖ(������� �� �����p�U.H�[ՁJ ��H��L.�Ì3qk�7;�ν��&��Q�y|x� ���[�<�'��,�6�[ )�՞FZoU�����ך,��hM��h��*8Xwe3�) Eg��V���Gg����hCpJ��G��~��_��h����Fe�q��7�¹�;�3p��P~�ִ��r/;�:$DE��M��4�c-�`�bz@/�䘐6�Ƅ2��?�"��'�� N����P�n�*-�p��c2��(�!iL8���R@w�1�t�X��H�n� ���R�h�XJJ2�B@70��-/k2��-d���qPO��agX�a� ��E�+�� ��1��d�e�#X�Q 4���F�q���^� (����Q*V�F?DcnE��\8�u����5@ �̴�Q�+1��4>O� >���<��0�r�A���%lfJ +X�w��]�}~����I���|�z��w$�W �Z�c~�^Z�� �UV5Gȃ�3n тq��V]�k"[˒�D���h�3��:������}������)�� �.�Ҩ +���b��L$H2lZN�"K�Q���M�m7n;h#��3Z�L���j�De��}���5��y��u�^��f^��˰H5���腭l(��uD>��[_`�FW�Ph���d!����R�+��%�u���� -+Y� +��T�r��;*,!%�H��+��ȵr��L� �6� 8n9:��cKx�i�'B�T��S0���!�(���hF��J���&v(�rz��C(��Ȱ#�j�{K���|v��'�:;d�)On@���dS�e� +� (�"$��}R:����ඥ{s�F›�ѷs� �*��]<~`Vb3rq��z����,GeURd!�3�8�@���z5�eB��5�A#��L��<�����5�����e3_�V�' ��є�g����a�`�X�q|�t ��q k���}#!��ЙK��'�X�}[N�#Y>��B9'la�5s�G�����+X�� Z�!P$P�qCt-z>k�=�� l/����Ѧ���AP �/��؁q�e� + f���죰����MӁ��ʈ]^������f�+��ܺ7;�^�Ք��� �ҡ��审 6���Id���tA8w��ڂ�L���-�P��bY��c/��0��S�c�N� �|�~� +V���8�� ��(͈��?��h���z��6j�E,�O��_8� ���v�S&�ñ�?Zb� ���4e +ͨϔ�h��%/�*����+��V��|Ѻ �Ċ�໹X�|24��[yL�v�B��:p� ����%Ha�@�� ��Ċ 3 %� ��s��un���D���C>�!R� e���-B��d6ˆ�*��b��Gd&%��-�5�P��8"?�S8ި*�Uch�$b�p��y�id�0�3\L&�VA��<����džy��⢉RWA����LN_�+P�?G�2��4�� ˽���h�•���L}A�"�MM���V$���T"y�u6�K +��VM�pd�8K&*�q4��N��8�{jv�M�����x蠊:r�z��J��/I�.H�|�x�"�aV6�zvt��>�x:�a��ͧ��Kk�i�� �`�Z��G^�2.��7T_���2L��wXFH57B9p�R|�i���o���`�������?� ��L=�2�x�h�v���i����P�CX�xte9��ٍ�_�1} ��ŹYd48�R�g��#��c�_A4���T����=‚��'X�ɥP�M��Ө XxG ���MNj��!���|5�P�R����u�K�Z|� v9�$��n���R�-V��"5/i +V$���wI�+���-j�6�/'νƹ@�l���L���,7�������=܋O��z��_�n��:���{/�?�?���;�o��p:��I4�J��ISќT�:B�K���ȞC,�~y����^/W����/��߮� ����ݯ�������B���� }`�e|\��ak��a��ns�Ֆo �Y�{�Tӭ��pW8 �5��H���5D�B�7����9�Dx����;S��&3��{V������,��?��9�}�r��<_b�@���`�a'��v6j 7Y@C>2�Ԯ���Ju]���b2ʍ��/����7zK�����<"�[�-���������9)8� .k4m�'�Z���t����Wҗ\��n=�}��b�W H`x��r^h@h����8��|g�U<�j�5>mtɚcĘ����;3��|bp��x� +��؝1�A7���3e����� FT���-W#��c�� � ��[ ����r8�H�Oq^F���Q�%i���������s�0�kZ! /�H�:K�O{���t=�,|�-��ro OAi�9�l��+�Z�ԑ��+��1�G�#ŝj;�jI��Y���0��O����A�A��W-p��_造������V2�� N�o�tMv9���!��@�`��%��nQ��IQ~&�=���1�9��6u�M�jhWx0����\ږ�(��hŔΣ���O���+�f������x{�d#�H6�d��EcF�.���������PK���� �'PK! META-INF/MANIFEST.MFUT�M��LK-.� K-*��ϳR0�3����-�I�M�+I, +�d��Z)�%��*�%��r�rPKm�>=@?PK!1 org/gradle/cli/CommandLineArgumentException.classUTMO�J1�����^/sR��R�a�"H�SO-xO��46�.�n�>�o�I���P�,(:���}~���3x�ng�_�F��1�K��2��6�Й�l�"� ��$�D�� +�:�6��R��}��Ȋ<�� \\���y}�ۿ,�!"�D4�,Ni��S�n��E|2 �(� ncЙg��x� 2�e^�ʋ�`,��'��¥S�t�Ui������4=����p*������M�+�tq���x�g��Y�'�]h�nZ�aИ�0��U0JR�v @��y�{���G�j ��PK�`zX!pPK!& org/gradle/cli/CommandLineOption.classUTeR]OA=��� +(���~���ʇZ��B� ��X��2����fwK4F���_ՈM����zw�����3w�=�Ι��Ϸ���~o�y�V��p-mI3���fz��tx(=Wox���/�A�u�f]�;A�hK[� DQk�z�7uq���U�'�_j�o��A��ĵ�+�/]����H�����n�]��C��|S<��`��|۰}n9�0i�x�w�21U�Q� + ��|�wm�R�f���A�bD�0Z��P:�cԫ"$#T�ۭ�põ�M�ʔ;,+��-���yF��0zA��ﵚ2�3�ߓ� �`�K�,�p9��Л˯�B&#�x�+c)d1�b�$�p�a�#��IK�$Cbm���N�.�HE�>\R1xT8E�v +WC��#h 2:���0��w5�z�_Vq �Ӹ�m�� +r�. �S�*���BE�i�Q���8=����b���n���#7��,�l�tm���ۑAwhLlV��=��'Vh1K~(4� d"_i�"��� �Ld�� a��%:Uя^��� �/0�����c�3.�����C�d(OBgx���f~b��L���Ƈ��?�T ����b_�`�k+���PK×�n�PK!3 org/gradle/cli/CommandLineParser$AfterOptions.classUT�SmO�P~.ʺ1@|+�6( ��ILL0����ܶw]��]n;��!�?h��h��GO��,��=��<�9O�=����9�:7��t=)��K��"�E����b�tā�q�A����<_0��rK��/J��6� �ҩP�\EBͬ�b����HC?�BOJ�l�<2����\HЂ;�Ҭ1 >��?a����v��� ;Y����0���i `�a4��� 9*n��D���x���-m�I�� +� á���ׅyQ�喴�k ��JO�k�/�w�Y��覭g�zK=/���)��F���P���i��_z��^�5�bȉ�����mB��_�t3��ҺR���E�Zwp7�ۘf��`0���\�-kO�1 @3��qh�6�1�$"6��%�+n�K4T�u��d�h�O{Z��5���f��� r��0��3F�(G6��>wb�ډ�Q�ّ����1:��x��_Z5 ��ʹ�����ة�+V�q�{��1�挣St��i������PKd�� Z�PK!< org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.classUT�UkO�P~ �Z��x��� �� S��-�8%&���UzY�4F��~�h�b$^�����o�A���-k��<�{��r����� �Q�`x�����S���%a�� U_TS��XU���ؚ��0�-V����/y5�S'�鉔Z-k�jF�C�ϔ������5�$��pm$��e��5�2����h/³Ù�V��609��\]\3L�0��t��%S�u�HO;���� y��]O��Sb�q��z~�Vl�Kha8i{��;������/$�2����?͠�D����a�E�����u�����WІ�v삢@�n�0t86)t�P7����#���&����6����HĺPL���]$t3�w�g>�i���2Ģ��p�a�S�˛z:a� �|�L��^e�Ws +�p;�Cצe ����gX/�V��}J�&H� �dG߶:��ත��ҵۊ�Cy� �3�F7 3���ۺ�!�����m�[Zۢ �c&����w�g�ٲ3���j�� =�me������^�v�}��5{s�/I���%6�j\�n>�ly�+�2��W��7�`��;`���oC�u�a� +�ĐL���uvh%� d#���Ò�!uD��]݈uڶ:�W(l�M���p�i�a����-��~�@���~ X��% �*�%aCU����r�������*5�o���N�)2d\#�B2�Z�v=U�evڙ|��.CW�Ϡ���X��湦C��3 MT�j�־�%����nCu�a�Ԣ�3����Ih%��R{wʸA(Ű�a���%l��ԣ�G�n7� ��f��j�LiĽ��x��h�/c��AA��6oh�#2n�� Q}+C˕-�)�y$� u^�MB7��NS�ٜ;�)TFUG��ֈ�qM�l��}Q�|+~�*�;��8!��J��V!�*R�%c�L�b�xe�'�.��t_��Y�QL�U\�0WTs:&B�C����n?�G ����{��<ݍ}"OI��f�KBw��!y+ �?�D��pi�����=5��;Ug���=��Ȑ2��ÊƝ��{�vO\� �.��+��%��}XAc�Đ��R��*�j��@��h[2D+��.#��o��Ƶ�eqS�2�.t�-s� 1�kf�P)�r ��D:]cET�JVeg8��� ���T_v,a����ɰ��p(�8�� F��̆�8����ܡ��EN9�$Ώ�Q�1*�Bx2��fg�fƄ�%<%�i�����T��2 B+v�h�g�l��s4H�!.�Ob2.��8�Uő�Y���%�����4 +���QF�ͯz��B���V]�fXZ���9E�^Pޠ +.?��1A_ob&�8�}ux�P& .�����? ��0�fl+��6��7���� +���d���o)Q�.�^�Tgp6���!qo�5Bt�C,�S�'1鋴�b�>���8��OK�]Q=�� ���A�cm �>p�Q/�9�Ջ]�=i�{O��ޓ���I�a�~�}K$6�SVMa�,O����V�L`Mdk�X���za!�v$���z��}c�-I��3Yj�7��0Eo8������O:H��K��p�8ҩ��Q�h��Df�%��V4&q8Y�)�"����|V��{ZƑ�L��p4�ӿǣ�x�s�q��_�>����)��5�|��bM���Z̉��x��x�Q{5F��� _ak����������I��֌���̈́q]O�t�Nh�$�D�W��]4Rt� �"ΏN\���*�ϑ������,�XYV�9ډ�]$���1(MR��=�S���Q�#�٩�H�*c ~��PKC'|�L�PK!= org/gradle/cli/CommandLineParser$OptionAwareParserState.classUT�TkO�P~��!����PA7�2nʸ� D�_�Y{(��#�B����pI4����o(�%k����}�罜�����/��c�||������'\C�R�m5��Eg߲�o]�)�p)l�=A��i�������S���DZ�75��kV�! +��Fa��2{�]�m���״\!�嚄�Q,³CcCY��z0��Z�$u�ڲ�DQ�Sr�ݶ2�E�᮱DJ+\zB�/�9�>py���� +� ��7<���u��ݸ&3�P��X^�p��p{�r-��M�:�z���h���‰���9 +�� L� �?**T��1�'�v����53k~p.��� Jb�KjC�z�'��]Dq�O����Qt��ZWt�E�J�U%�_?jVo���2����9i���V]�-;���-Y�?��'�����A�S�7�[�Y.� +ݧ�Đ@2�g��ٝJ�)�����r~+�{����[__X�3t]KO +SR]�/�K)!����/g�`������=��5����H�x�^0hU��ۦ���d��d剋a*�I� ���Sgh +L��Sr�lS�S�x0�@s<�SBB`��Hϗ�փ0!d��L��)t���)ھ!��hG�%�1i�Ъ�Z:��� mf�YGkp��He� +�������` u��� ��cd� ?1�9H�s�|���MZ����o#)�Qr���^�]�� PK��[��JPK!8 org/gradle/cli/CommandLineParser$OptionParserState.classUT�PMO1绁�PJ9q誇�bY =���Z$D�(��ʡ7��d����lo�����_�T�������qDo>��ߛy���~���b����s�� yt�*��h��xQ��Br+2�Y��k�� �8�Ə�]�"5��K�;^��)�}�<0|�.{�����BJ"̔��.E%B!j�b� �E|����c�{� ` ����� � 2���� �"8�Ҕ�x@N�\�o.r�����r�u�0h�����$�g�:�Ԏ���A���B�5�M�Χ� U�2E>���~� ��Nw��6�i��f��)*��cg���Ⱥ=ٱ��=��ѕF����*s���U9��3Xs&�" Q���k��Ԁ���ޤ�:!#���+ߝ�v��R�&,-��Nf�j�A1-�k�X699| |�x�*�]��=PKu[z?�}PK!3 org/gradle/cli/CommandLineParser$OptionString.classUTuR]OA=Ck[�ji���+J[�4����D����3�;��Wf�}1�?��� �D�?�x�-�5���9sϙ{��?�~�������w�ɭ����n���n^(]��7���+� + ���Ȱ:�:��^�o����:��CC&�|��67(W5/����u�������P�w� �[�7�6֚�-z��C~?�*K���`0�4�mW4,W6��㾽CJ{\EB-�I��q��E�a��x����5��g�aHq�0�v~_)[ �` A�3���9�Je�|��7,�joK� �g���Q�O(��ڟ�g�2�i��w�R�rR�PK�� CPK!2 org/gradle/cli/CommandLineParser$ParserState.classUT�Q�J1����j��W.\��q�\( +BQ���]f�v�$%3-����~�%������ss�ɹɽo�/�� �kw�σT���M��:n �S���)oP"O��Oܠ��M҉g��e�U��1o��z�����5���͎��HZ�]� �h��(�E�P-��V7Vkn�]�~�BCwL�GB"��6�J�)��\�ur:�&A�� �����,��5�rOry��5ir r�B�t�A�\��-@ + ����e�m\����de�Ӷ���r�ǯ����T������p���s> =j���V'Z}��t����Z���%9T!u���`�&N:�����KԜ<�/�v��9�M2��g{�|���}z�p�O-�`��A1 j&�70r�8 3=��w�boOϝ� �C��PK��ɉ��PK!? org/gradle/cli/CommandLineParser$UnknownOptionParserState.classUT�S�NQ=��� +�oWԶt�|�X�� ��؀�@L���eY؏��5F�g��&�>�qn)� Iß�{g�93�������a�������'�ʭ=���nm�E� +����� �mA~)<�#A�֎������܋DQ�9��k��8Du�]��\Y>�o�=��7fUJก� �� Q-�K�a�}�s7Cf=�KKL�F�� +GA���]>��&���|��<��G���\fd`z43>>0�c� ��g�iG��Bz�{�p�~:q���S��^5\^2���n3�k���b��v���ܭ����MӞ�i�Z���o�a�w�� �C �~+�8��f��m> +�0�#��&��Q��J����F�Y��Uc8� �p��Y ��q����ݎ�]��q'"c�t��В����T�~ƴ�������d{�1ۅ&�3(�v���!5��oߕ�N�0N�-��d0�DO�\��ɝ��� �����myܰ�!��pdsP���L��%�MSMS!��O�4nS�M�z��� ël����q牌*�h:����l�;q�.,M�@�H�Qҋ>II����\\�ƍ�,�%|�߸n�4E���\� +�XЄO��+ �YnY��r]Wd�m��6��*��,�\Z梺ʥ��Z�SW��j�F�p����L�m�6�1���U*��P| �;�5�C5��"��O%��w!ݟ����b���f$1~9�y*���ah�o:d�!�\_Tu1C}�(�F�ɯ�{c����e�/�P��.1r:�{��! ��o�V� Il�m�^ c $F��&,[E� ��)�i"���|I�bP�gS�Mlep�NNJ��� ��n�W0Ca�g!'�*hُ2 ��E�É��9G0 S⪤L�:�zv��7�ʺ+59����,}nHeUr�jI8�R�q��E��^1�5���@�4Km�'���{�V������I��&�+������ +�$± !���m�{(�w'���A��_ � ��1:й +���Kϕ�W�N�|���'����X,���p#��]F��?")���y��o���?_"[ � +�8� с� �`��-��.�� �X�8����`�9��!�;~�]�'8��i��8���R��p&�����{�1��Ô���~�g ��PK���cPK!& org/gradle/cli/ParsedCommandLine.classUT�U�vU�v�v��Xh�P@$DJ�{���"ФE��@=Lfv�i'3qf��%����ŵjf�\y����E������"��?��߷w~��ǟL�dx�����Wᜪ�qKχ�|8��b�0Uϰ�x��9�nr�����Ƶ�����ϫ��c�R!^TKqC�๹Y=7CX'��ϗM����`X�;�U��>w\�E����d2�����09c���0L���B�਺��i$��U�XT-=E�$����j�T�Bb3��5OB�1�$�qWe<ѕ�D�,{�����;i���0Xr��-o��e�'`/��\�=G]v +�"eS`�%o�q�G)��}��ex�N�w�qO�1 ɐd�S�I�*���8݁�b��8+P2�MJ�{���2�����"� +�� ���َ�x�e�[����Q\�����K�`�H5tD���+�"6�� ~�>٬�BUN����$���: f.��D��+2��Õ �5��m 69Q�Ĝ�Y̷���# ��S�L+$�;7�t]�� B�cP�,�_��۶a1L��d9��4o�6Mʣ�۪�"���gl�l�:'&ޗ�&��F�hʙtw>�M�aO,�mR�Z*ѣ����ٸф�I!-�l0��<�y��ynSp���ʤ<�3�+;uc���U��_B �=�=r����� �6�,��~� �;����Z?�%2�\ ��� Rv{������X&��?ǧ�B���F�+T���D����K:��_�yV��E�u_4,D(���_j%Xm���PK�2w�:�PK!, org/gradle/cli/ParsedCommandLineOption.classUTm��J�@��m�mmu�" Q1����� 7��4�M�N�2�D�A| "(�>�8)�ss���oΝ�/{Xexy~���Ɣ�ޑ �/�Ӊ��y�yLFW$�k2�k?Q4�e���!��v�I�|�*���`߰*�;?,�4�q�[!Y"2"%�ĨSR��2z����1M��:�s��*�s!�a#WI�(K +")�+�4Ž�kܫ�".Up�� :M ;�tx����wx;�)l���b��I7�U����1zo�#�"p�]#��k�+>n�ַ#b�/L����!�]�pλ��q]k�@�\����Ik�9N���FX�~.b�ܿ_���K�%�e�;�+����B�5zN�rYu���pe�V��J�PK�$O��PK!A org/gradle/internal/file/locking/ExclusiveFileAccessManager.classUTePMO�@}[LBRHi��"���!T�B�DU�H��^O�%�u�kG�������9�r�ȁUul�z�f4�y3;����b]�������0�jJ6 B5�BU�3md� �EJ�;2$=19�>RRS_�><K�i+�eQ.g��=(y��&{�u���qe ~"��Zb3m����sr�g1>���E)��Kݳ�r�N�!���eq�dj(ֶ$g���LŦPS��?^*Sy=o>(E��Vf��V/�\�F��srA� �(�x��.� ,ll����N��\^%tl +O_*M��X�8mLt7�L n���?8�K����V�Y� +k���uiV_9��@�O��yz�^@��p|�Հ����b��t�C��~�D� ���+�_h}�a�Ţ>^3�_l|�PKy�wʇPK!> org/gradle/util/internal/WrapperDistributionUrlConverter.classUT�Q]o�0=f�2�����c᥃��CX/CHHC�U��InSo�9N_�!��=u�xE�G!�u4��dY���{�����2|���?z��H%ކ���Y!$7"W~�'dqM�xI�r�K?Q�WVY�m �,������u��=M�u���~XIi�r���5E�Bi�R��I����aw�� ��O�` �~^�^ I a�� �<�TF�@(CZq|м(H���"���w��̕�l) ��|��U��v)6�V�)錔�Q{�X �v�m���M=wom +)2������g���0�\(a^0���пw��B ��p>%ӷ�٠�����.q�&_9u:���5�%�����qm\�L5W��?��@כh�ì�m �n�3A]���t���i����Y8��́y��٪�f��aa0x���&X���#�:\;�� �tN�5�f~PKb����PK!/ org/gradle/wrapper/BootstrapMainStarter$1.classUTmQ�nA�!�5�@$������^�p0 �!H�����qi����ήf��ȇ� \��ā����Li���{z���� �C�S�py�r�.�Pv�6���l��*km(��&e���� �g)��'ٌ� �(}|<%��ERR��&�'��#Ѻ�o�ta�~Fɰ��B[f�m!쒝�^G�Q��2~߂Rh������6�Ы\��r��[Gu�.=����\����@.�{0����5�%��l����9 6�W���&�R�d�'BKa�:�*�u{�:h�F:R�,�:(����?9��c�ל�^+\ �ZXY�K�osr-l�3֕%ŽBTR�W���/��;�kc� +�Oe�bC�S�.yMP���ܶ��������[����+�5�����W����PK�EҚ�PK!A org/gradle/wrapper/Download$DefaultDownloadProgressListener.classUT�SQo�V�.i��sKJ(T�գ, MC)+��+CJ �Ԡ�H�؍}�u���N��썇=���3�Z*&��6i�O��50:��l���s�{�s����_/^8��ݻ�V�c���)|�\2��9kZA��z���P�C=)�n��`5�G �F��w}7���X�#�R�º�Qdth30��a�1n@�'��00��C Y� [#�Q.wh�fH�WV +냗�H��wc�Σ���D���V+� ��c�Vq�7�������)y5�`��܋�j���� +��1Uyt|�"����Y�,MGE|*�T~OjF6���-Q�Kp9A�'�de%�"���GP�j���;�Z�GnW|}�=u/4|�0���l%)^�rV�"*$��� ��t8�0��q�rmuO:�{`�� +��:]�o�nK�*��Fʤ0�$&oL �hE�ݧT�~�^�UƋ�����mL�mLmc�Y"�� �O � ��~��������{�~�~0��͟R�va�b&�{�:���CT7�M?A��M�?�M����33��_Qʦwp�&>�ȵ_��,>ǹW��1������Ț�~�p17�� Ϩ�)�@��=���]�Zb�U��2=J39J� ��A>���4RPK��%)�PK!4 org/gradle/wrapper/Download$ProxyAuthenticator.classUT�T�R�P]��� ��P�ҋ\�R�A/��Te����&�m4M�I +2�|��:ZF�q|�?�q���Vf$'��k��>+����7�X`x���K�� +�x!S�hFQ�k�[�Z6�-�IT\SP\ +[pOP�̽�Q� �V�L�۞�k�R�« +�! +S�fa��2�[_��6�2O��d9BH�)QtEH��(�NN$� S�ho�` �C�& 1oق!��R�$�i�Ԫ�ժ��9wձ]n�,I���L�/ Ƿ �2����|���Zr� o��E�*��o ��oq _�-;u�W�:�Z��_g�[r�e�v=��B�� �atu�������=oՕf5m�aX�.�յ7��#�!'^քG��UizcaӆF���*b0�t�ad?!f8��{�$�p~�$Gq� Gp�I,����"��R��'q*u�Am̄p��;�t}�pm���b�;��C?p +5ƈ ��fgk�m +:� +t���qL���o����I �A�8�/Y l��2�$C�w��*.Jt�1�4�"� ��������\~�NH�%\��$���ZU�0�л-c�)a�;�j�N��F!ܠ��n��匔|��C�>ͪ���� �4�=��4���[ +nb^E?���C�Y��1F&�O�Q�!� =?�l�:)Z���t�#���S�V����Ot\_��� `=�29x���@ŀ�Z���":XQ_Փ)5�X���z��� ����3��a3�4+�����+R�`RIU!�l��@{���`:� �9�׉-Z\�87T-N�n���荡 ��`��T��c�����;�gX�񆸡��a�PR)n4l�G����$�J�+#JCB�� ���QKB CIB�ǹA�t؋�Ĝ2���M�C5-� �+ 1�4Vn�J:a���9�B�9N�IZ!FK�&���iKM4t*)ڴT�֨n ��I��-��paT��+Vx����< ��k�Ȼs�^6�(�O.�B�Tk CquM�˱‹e(gX^H���<\���0'˪��ه��ҋ.aX2kI�j�U-n(�N.-��ۖ��/\����?]B%�D����,���}� k� +� .�&/�����\�:���a�,�Wn'�"Ĺ���}X+�6`�l�aK��\���n�F/$\N{��_I��/r4��)����&ͧ�� �"*W0��^ s Ľ��_XV�����}�a��jah�?�Z�6�� ����/�c�^,Z�|X� �W;�%�ۃj6�5m Qn�Q����)�э. +�� �>C�5ڧ�Ri��i��+�2��q = �(&a�SI +J��T}$���t��a�C{�C�� '����G��ͮ(֐/qv�sb}]��,�C`XL��O�A|�9t�X����s>������}\(b���zO����Ǣ<%�,a?U���jL�t9�&��u$j��w��G����Ӽ�N�5?�q�R���H�nȲR��z�� �Y��nNi�B\4�� +N�2��b�`�z��o�+8�Z(��&��47S��ӥ���܋�x�����a}]X&��5D�K�Y[m��ƭ^܂א@%kQL5:�j��}>�Ѫk��6�82�9d({H�o�u):��p;����[1M��b��.��-i5��f/��D�`�b ��2�Yf�)Xo�ۄ��S�n]x�;�����r��ĉڴA݇w:�.�r�&���i�EV��/ދ{���c�u�֞����r�IJ�]��ݲ�yvd��`Y�dU3y����(�X6�db�w��c�) u -���n{jl�J��3 +�!>����T‡�hv�s��Z�0���(>Be$ � �&�n�#8'���"w����H68H�g�Yq�S �=W����,n#������1�i��X���| _���ڈ>L�����<�ݗ�_�W(��zw=��s)��[b>,/��=-><������,6��ƒ�Ѐ��B�K��S�ՙ9�9�ES^�x-�-���|'���jA�K-��_�!7���H]y�y݁"������~�pC�C�j)PX�<�ZC �jʚn�f:����.9���SB���� +�G�Y�6!��1"�$�iz�p�p��I*�;%F���䝟e�P����/��I�#��&� iJ�{�J`Bf�,*Ftȃ?�Y�>��'�Z�L�G��Pe��Uf��_����_)�u#�Xs2�@�Ȩ�9�o��H���J�-�(�6�J'��+�y��yL�'� eb���21�ِ�J�|G��VK c�a�PL<@�v�"퓸0�US����n +5 wa3}N�!��z� 6uMa3�xX�Q,��1"w��3�r�ѳ�j�A��l�-YekI�PVYٻwW�����h���H{�$v��5���#�k'l�E��uY�[G�jሐ�A;���� nؒ�K�\D�� 6���կ +��@�$�c�������H=b YLo��.Pr��UU1����PK� e *PK!- org/gradle/wrapper/GradleUserHomeLookup.classUT�R]OA=C+�~�XQPTdU( ۍ�CEb�R��Z�����v�~ev���!� c�F�?�x�h��/3sϜs�w����_�NJ����v�ޗֈ[�ԭ���[���L�00��&�y$c�ˡ� kH�(N�X�H/�u=r _F�����v����K?H=��x(�{%p܀H����T̵o�7� æ��V�(u�TY��z$�*�t��=2_+E�̽I؍I�>��p�F�f�X�� �HVR����Nsw��z��koﴚ�n������#b��)��f9�%�P��.�Ubg;�o\�G�1�t"�%�!� ���La�o�۩���k񸱿+�7i�On��ax�E�����W�n��"ȂV��H���К�oEɊ�"45W�i�H� +n�N(�-�%�����&��m��Y� )$�p�^[|�B��K�1=�P ++- +��e�tFO����4�$������X�����3> З�������龍���z]o�/В� ��}Z<�W�)tN���H*��Oy)g��>,�����鍩�6��hWK ^�i�ȡb�A���JW�G'��t��8���1(o��-�qe�Yݲj�i�b�*�l��q����I�u!l��o�T\j�<��F����G2 �8Y�?��0= �;/j�]��7�#�eP\�nzTpSCGQ���t޽+�m%��7�q�-d^#Y$펓,(�Ep�~q��PٓL��y|��F6˳+��1 ���/�\|��U��.���KW���P�D���X2���/�����}zA��—ۦR���I5���4��T�s�Yn_�����@�� +fM^_E�Z�� �9ܩ%��u�O��3����ECu#��)Ei���QQ����Jo���)��$jh���S�����?����1�M7�Q42oҟ`,�H�����t���;�֡����A��W˼'q��>3����߅���d��� �t\h�>A3M:s�&�n�DOqۊ[R�t���w.�M�Ă0����2+*;�% +E�{2�1)���FU�iL:9�g !�&�|���g�x&��b�+T���>e��(b�1@�0RC��?;��̧�)�~Q.�����F�hQQJ�2c�p��x�d|����"�0����)= ��'Qp���j�qC)������z���nM�g�\��J�LaO�.�ݼ ���&���Ҵ���NW:��jq3�[D���V2͵X����x&�Y�G��A�W��;=5��/id�O�i� � �ʧ���6�� ��l��D洴�k� +m۳~kcK�uOWg��=6��������ƹN4�uf��-֌���\�R���׋����Tx#l �zr��C f�Y��Ǎ4��i��x �b���1`�V�%%c����m@ ő�x�u 0q�ե�J�������%,qj������g���.�w�n1�@�������_�J��_~��#Y�Fq7|_$��%�21GYg�*G�� ��e� G5�0ٔf�%�� �g�@j�87�����.Y����K�cR�o��n�%tC$nss?_�b��f�^�A�ɖ��O!kI e8�r�17-�ڲ���m��tx��%�ے� S�//�c +��>@��D��lFh�4ۨ��'^�򕌡j� >�1Jn�?��������D�ٝ�Z���� L��Z�^��0�fڬ��͟���+Fn�4%���+c�?ŵ�(��f�` U�2Fcgs[[�Q�[�k� eko9G�O��o���tZ��[b��(i��de%)nٖN��J�?��;T��1 9��� �TX�? �4��7�͝Mn�<�)������G��A���IT�/���B�C��W��mKft3A`rFMD�0�}��8�y��6� �u��w�}��z\�= )䂙��פ�Q����np�زu����m +O�4o��a r����-�G��G�5 �1k훈�@$�M���W���Tخ%�E�m�xߋA�TR�[Wlq#��o���?�S~�鴩n�R�1s�NLŞV*$��J�̆��V�)~�� +�"5�hp�����]�d��Z��U�yX3�7�a��/XySHY �~ +���B�Ck�ǩc�f���q��K����l�1t�׍�i#���e_5��'*�,�%�% ���6{��ο��f4����Xa������ ˒�}(c��R����o��� +U�iɤ�2q���l�ZM�6˃@u��� ��3�;!�̘.�Lj )E������?�T~��fZ���S�1��2o��FZ?_\��ƲN77�g6�忩�~�h�����t��"��~���|\�H�`�x�[���)�V������9�5�-ɘt$�����X�"�(�%<��02H +Z���b��Y�ʒ[�����#g�#������B9QPvN�,�fH3�VҬ¤���`GU +j�<�Rؗ�rK�����H&�SË$:ڰ���r�b��/s��T�Ti��Z��Ӆ,;�?�L�m�t�*UH�M��n� �l7���ZŁ �E€R*����@���S�S�'��j���e>,V�o��Z6�Csn���^�T+,�|&Z� z>7IuR��fO��pYZ�`�3�J��>��-Ay�$���J�=�f�ޢ�Cϑ��T&�(��(���UH���>c/Ъ����E���Z:W��F%GDĢ[:OD����u,u���3ݼ)���+�ٷ�q�/�,,�/��ŋҋ� S�9}�%�S��´$�H�h�u(�~X��+���ո;i#�iS������Z, 3���j�ff0_�0�A�1s9E����|��/k}bQ��q���0��A�}�U$��Ĭu��E�����D](1�L������ +%�:6��#�x���KQL��D,��"���Q�L1��̷QK�zRF�1�z7d+Xj���9k�k� -f�k�Hf�cUW�S��k��0L�o�{��dԺw��•� 39�l.>��K��l�[Om<�� �,��9R��%����ʈ�����Qe����p(G�˫sTH~�f��y�V3��|�5��kr�v�ZjCKj +������PyG��QW�.���FhGx׮�!�m?B��� �m�N{�ޙ�Xy�2 +��b5-V�V�X�/V��,��]5LG��p�>Bׇ���2D� ѡ�L8�x�C�ه�LA�����t��y���L��tP���C�%�\�bҬ�@<�,���c�� 4�y�+���S9�^�1x��?o�׉�� 9zq���,�J��b���X ��OL$�@���ze�ؖ�����vR����> � +��*9z�UZ����@�v�%�\&�G��z3�u�)���.Go��m�����_�� ����O{��ݠñ\�T�P��w���T� I+SԠb�U��Z̼�W ���񣰓V���Ȕ|��F�Y�/���ۇY������gs<�0{r<{���Vdk�����r��%�yx^���>x��)�W�U*B�~q�����^{8 �\\z���s�X�;D�^8`C�Q�z8�4yXj�F����l���v�e�� +0��$}�W�=�z��=j���p�v�s�:F�"� �8^'䧀�7 s��3���� ���o��aC��u���pd,��T�/uC|Q��C�'G8׎���G���0�m����9 K ��=C|�_nG�� ��C�Q��;�u�>���x�o/���=�무t.l�� {*d�i��i��M�� 3̷������O�g�A�����s|�� ?�/Wr��J<�?sa�4�K���p.q:���r��,��!�j�<�zA� �+��5AW��x]�R@:���%"C�N5�a>�j.�#$�T ��z]5�=^L(���y����S��z��P�wr������"N.̇�)�F���G������Ҁ�'M��GfJ���a�[���?��?-���(wpa�� +~-���j+���ԕ_�����0�o���z��&�0���'i>"4���Y���a�I��;y6RT�{��M�����襚�d��@ � ���=�q���#� ��յ�U�#Ҵp��4�6'��ۏ���G�#�ֶ�}��^{���H�]!@T�9��Gh^�V�9,��I�!i���'�z '-�nY8d�Hguz����+2V�t2~�ٞ��z3�7�jּdXZ/T6�y�8Z�1���L㼞�B�CX�U��%���FѼ����J�i��(�k +�M�#m[2$m?:��Zp.p/��O�1=���6���*�h �h�IG�#' �� +=���u�$�PN�+�{h�K��9�A/�LVi�S��5�HS�t�*��i�m�b���"�ڪ�T�r�kk��l[h����ےt����]Gg�~@U�wh��F �2-�Ϡ��i��O~{-U�Ϧ%�Tco�Z����:{����L�i�}���拾����w��{�#� +�BZ��*Ǚt��j�f:ב��>Z�������{��YAM��켍Z��S��eZ'���� �A~���Wi��6t������PK5����)PK!" org/gradle/wrapper/Install$1.classUT�W |[e�I�{{�=ڮ�ҽ�n��m�=X����I���n��a�Mnӻ%�%�f�@�m�K����]Z(cߦ���n�7�����v���M�1�8�\/JPZ�B�{����&{�M�����5Ջ ��_��5�� 35(�(��S�&��k{��7� s�E g���>��ٍYO�8�k����#"�ιӒf4l$�j�c� +�k�c�X ��I� ,��"�1���5�/<|oF�X���m9�`mR�X@u��*/NduX"0;� ��"C`�8/M�2�e%�������Xγ�����R�X�:M`9��˶�I�X�;=^�L{w�@�SB�'�BꡐaSFΧ���5���G�<'C�h(v-���3p���ǸI�Ydmz�V�p6'dV������c���� ����^MV:d���Ȃ�XW�v�Kw�[7�Ʉq�A�Pʔ�K��dm�R��`%]/D ���Щ�\H�&vȋ��1�(y����m��QI+��|�"����2+0ɘ\Tk��.njOƼ��m�R��bP6�P��̼隅�"����0��lۋD� 2�|���h�Ҙ�� +�EF����J;(�Y�J#��E�fP�Ei�ՓĒ�y��b�%�4�4{RʊDB��|F��n=s�[�9|��]A90�W�y��Aa�(�*FYے';�—��E\M>��J +��m�Nj�`y1��u�q9�U��(�Q+1H��|w�UN��qS����JNJ��p*�T|�a��ag���L�!�^��˿�[)�鄔��dL +p�n�|��&���'/���`#�ʢz&S|�PݱV�7��dA�{�Kw��Q���+��x���͙D`q��s,������es2~������H�|�1�x��?N�4~�Lۙ��[�C�$ B���G�ٛ�Ńf)��Y��%����^c�^=L甝k��&3p��~$[�2�,Q�X�����'���֮�/Q�@���G,EOkx{�mK��������]�n��ϋ�8d��sR�Z6�������%��l%�᪸�Tu3�Tѝ�"С�}��>O�fC��(��m�K�ͨGcc�^��k�fL9�^����������hP�*9G.�V<@F����smO��K����d8������#�l� q�@T��J:gV�"��㎩� ����ըw�.�O�ؤ���u퇪U��|/������(�*�'�X�VU z��+#�A�_�ǿɽ>3��l��HQC��f��zj�o�=z�ݸ(i�Ci�/>��)j]fF8g u�����f��-�2k9B�K���QdQ8���cQo��[LRz�IJ/7.Z_�I��^I\-���Qܰ�W�u;1�~'*�;1�W�31�>�_ �1;��p�$���j�17�Z;�))�F]��s����� �M�/���X6��N݆�u)4oC���_e0�UCh �5�s�m{��w���$d} +z +��`p��S�0-P@��� x�S��@,���TOS�_JW��m�����.���lG�.��ha��`@}�t|ǧ��`@�gn*v7y˽��w`�O-�. �I��}�����q�W�|էT���,���^`�����4����Y�m;��t,R�mwv�|��� �?�{�>e��a�F?^�(/�܎�|ʓ�[/W��p�S��>���+�K�>է�3G�O�����΁2��� ����0' ����A<3�gS�PSxާ�~�q��|<��>��H�,}�<�+)�/��!���jg����7M��RФ��. 6�"����;�)@�iR�=9� 4� +��K�<��܏��a�G)��/H� �e�E~��aQ��������3�.���2��6yR�����>(ƧD)eMJL�����Q(>�V�T'���Bq�]�b&Es-؃��L� +���En��N�.J��t����c"�*Y�q�Q��)�HA N�3���,_A6J��eb��Ĩ��K�:�� 9���h +�e'����і��r��2qR�li ��p�8O�L��ݒ�C�/�< �c��1݋g%}�%} $}���R�%J5V�t�/��b���b��'�5��D�xU�".WIz��V���IoC�>$�I�OYc}RN��X�̜�em�%�_���:�|:Wp��R��tZw�����S�^l��n�Z�3 �Μ�>� w,����g���WУ���{[ kM�ܱ���#9,o?&�n?��J!?5 +�����O� +��� iy�hM���_wI�e������[�n4Z�e��IJgV'V�I����=��Y����1Lٷ��ۗ�GPs��j/9�'Hw�]lUP��X?��!�y�qi�G�����D�j����u�Y�� ;~ + j����D�5UN��<�#U��b�a�� ���������`��]zl[���i�B;�}� �߰��eOigI�.h�e�prap����ݼ>!h�|�t� �� �E���ږ�����&W3���_Z���lQ3��i�t5�T5sb%� ��PΏ��gT�R���Q��Z��M��f�&:�3/�K��S\�����/ĉ7\,�zP�~zHЖ�A~�)�����4��>J +�:���`��A6�!D���+[́q,5���a ����[$HG�(���3F�� �m�a�^�r��6�� �� Vؼ�O':ɘk�oS�35�L05p��tJо�F��|�Y,�5Vᾚ�5HFv�B}��$hg �����{��wv\/E=]� w�s?� ��o��$�<�[��LC|[�3�~��Lc�i��茠��� ��[�Z�Oyf��ʗ�f)d�x�07o�_`_�D/Cѥ�B�E4�3� �������k���9�у�]�z +��/6K��]�n����U7�-� g��U�"�qNb�Ef���\�a�|i�"����*���C��Q7�cA�a:�1�#b���߆p���eE��{��X�� �/��%V~�W>�4�Z]W�k����!��0g�wP�23l?}� �ʅM?Z"�g�vzF+Wpu��Az�w�D?)��1���,�T+[+Ԭ$d�n3��*��2ymB���ꈮ�������s�;��f�Yfְ�;�����-Ջ��4�p!�E�-,t'TD��U"�x�,:�� +���p�63A���� ��a +�����լm��]p��Y�u����/s��%�6��}ԤU2Qix�&+%jBRK�ٓvᐪa�;�ޱ�����̖�5€R ̣�i\׭����K���밵� (�Pq�a�p�t���ZL�u~���}^:�T�zeF |(j�#�,VZf+���~�>ư�x�~�~^A1� PD�|���U33αԼJ +:1�K��5��3w�u��,'(4�X0 yݖޅS4��/�ۯJ�O7Qx��l} ��+��\�|�n�nL��[�X³���WX�W�Wi=5'�����{�.H�p�~�^�,Y@sh�5~�h��� �7Qm:ZV>�%���o�gz�~�OF�W�?�w���|tXqBo!��x?Xp���� ���M�g_�/�_Bs��(C��"�!*G�ggu���MW���,���1� ��O�Z����sH�0�_p��s�*�<ū�� Ef�\�~�~��W�"����+ +)��o��^���� ���u�ǖ���Œ5�or<��3r�ap�N����|������9m����P �)�� �'C�?迪����@�ȣ��sWw�cK����G��Z���UM��B^n_Pw�~�u� ���1�2. |_���m^�~��3^�چ�;� ��� �e"�E,_�p��̫�X '�U��XyO�h���u�p�ꢥ�$\-Z�,��_��;Q�&�tf�B]�~n;��@x<�j���)��A��T3W�V��f�q���-��e�.�Ptut�g;E+P��Mp>���p@�UhѦ~�[9�{5*�C�Č͒�� �EDa�i��9�>sI�*��`P�EGt�D��9�g%�a.�6���؁=�2Z�,;KS����%c^�b��p�<�Ž��O�A�����Z:q/��R�a_ZH�Qx�m�G�^,0�܎XA��ܾI�h��Y��I��\p&T��j5�q�]�t����9��V����H ����,Z�5B��" J� �a Y���9�Mo���L�~����#�mCV���j�N᫑�6%� -G� V�Jp�i��@ދv}$ur��n�����D����u +Ů���> ��6�������h�Hw/ҖˤLS|h��i[j�U������ ڑJNѽ7�z��-ލ���H�w{*�+R�%R�!|�9~�+&o���Lot�T�ɟ�Ć�z#���� ڗJ��ퟤA +�^�^$6�L��P�l���T*iJM�#P�������7�$+�(��������M�s��l�$�x����EG,���@'� �H�3�������!����Cga�����bt�~�&�y r ��L٨��g�}.�*y�6e�)w����7:E�l\E� +$|!/[�\���Yj��|���"=9 k�Z�뮰ٿy�t�H߃��~���t�Z|��SG�ŷ��n]����X���ﲐw��"��8����_��!_��>�R����R4U�+p��I?%u2��D���a_l�>>���!o�B/�`����Z��-��v�f���m���Y{����z�����.��3�]�8�_`7m�ܿ!��l`�F��ñ�t�2��&�l�Iٞ�S�.�FYَ�%��G���r�˶��61[��Zņ�K�8�M�__M���Q��=���)�[ j�{������@�H�R��j�7)�߳338���z�7�շ!��:��K\�ER2���E�)�l,��fQ_�J�����A�S�"���Ŋ�h�����%<�N����O��EP�W~v+�e����hG\��Dž��(67�{NE��Z����H$|�a8Q���m�4t+!_L� �u�E_Q�к��c�x(���G)�Fi�>��eZ_Ãzw��Hbh�R�C���% ��Jw`��sC!�;IN�Mܠ7S��Ȕ8: �C��5q�Y�ׯ�<���"0��W��;�x� vm�¢ ��,N�3.�8�,2%KG���L�ίP��~!��/x�� �h�N�a��1�6O�e�['�f��݀������/��d�[����>�����>���>+��r���5���o��>�� �h�l�ݲ�-����g).������Q�H�G�������mPK�u��xPK! org/gradle/wrapper/Logger.classUT��kOA���B)B� �[[XV���Ą�Qc F�M����^�^0���W�њ����2��EHچ�����9�?�� S����M�^��!� }[���5� +����� |� ��\��dSF��$�0J�H�ޗnDkz�6<�2���O7�[� K��~�����P�v|���m�S��K�[�%�A���Q�t-HB�^8. ,�mڡl�d~e�E�Y l�B �S�X���m�U���XCJ`�"�� �!�.i9J�Ğ@��;�3���^aW`(_�� ��ih�� ��1� �3n` ��yk�ZGYq�j�}�b�4�1$�3�A��|���)�^9�X�<f�4��� +�~˘Mc ��dy��G�k�4eX���|�ʅj�ŗ̫��"W�+߻�ٝ���WC},(ˇ��|e`��s}U�U�j�w��d�7��īS�V����j�'����b��3����y\�H���T���B]Y�`���u5���>E�n��q�\��;]a�+�v���w�/X�1�o�Ha���*��f:؄–�����Cg`a�_���^���w�PK]��o;PK!& org/gradle/wrapper/PathAssembler.classUTU��J�@�gM��ZE�@�S+MC���� �'AQ�}��&�n6a7���[x<�>�8=8 �����Y����N`���fs=�X�%��O����E^*-*U� /$nQ�pH��p��P.�*w|:�ဗi��2P��'�I<������+� �L�:bRe�2)�5ZGo���a$���>0��be%^+� � +������ъ�Dމ*�t�X�mC���B�E��I��x��jC�A�\U]08���T�[��������Ϻ�C�m�aи�/��d�bt|ئ�K��#m�A��7P�-�PK�)�>$jPK!0 org/gradle/wrapper/SystemPropertiesHandler.classUT�T[wU��M;q���B kn�E -x��� P/x29I�Nf��LZX]����W^y�,�Z�������}Rڦ�f�����}�o�����W��`�|�d����pkU���tʪ��)�k�l���M�*���$lp߰�Z��M?5]�/�V�h�a+�r�r�2E���c_k;~���[�]!��� ]ҧX�'�&�FU��~��1�e�--q�vC֓�B]�# +뒷ZBʏ�@4oK��-�9�Xj�0 ?�k��p�^X�<V�a�a�.��V ���=m�+�`3��c;���� �5�p��Ag�j�v�1�@:s/�8��� �x�O äj��Ő��8F0��8N0��s�����:ƕ��~O%��ʁ���4�u0�^o�H�m����*é=�>���;8��$-��E)UB�)�U�,��'���.&��{ ���4d�v $<�pr�m�Nr�ǐ��0rX�����ţ ����}\��\�e;^�FL>/���!exT%q��6J�E\ѡa�!��rb2���س���&�����b�=c��>�T?�g:>�u���v���X�td�cViߤ^;��1���JJ�%��j���فy,��,�! ��x���tu_)./3$���m7��b��%Z��pg��}�]o�NU��=Z�Y)=�\o7��H�dk�����Z_�KK{t��c�P���Dh�?ڱ/ *�;|�\�yZ�`jQ\ %qF,h���PS��dE+2�י¨�0X�F�Pf� �V1ĕU 6#V�d�V�2���� �|�z��K5E� �L�s\�J�ʘ.��֙n�Z8��M�f�EV?���級^`�e��j���tZTX�R��*�S�,���%Y���={�C xN�4�PUJ��Y��B/�(�.�k\G ��T��Lf�V�j�o� ���eʙ|���7�,n�ʕ���R�V!�}/W�Lܳ�\�R�/����Ld��H�*r��l�%ѡ�`�@��:��X�H�!��n�V^d7w�w�s�ٳ��v}0*�n�A��wJ��g����/@��0`y�Aq�a��#3w��.�^;�)�q}���t]o`(w+��&�uj�G������fG۴�"@�u�4��Dx��?q��7ZV�ZƎX�F^��{� �Ol�j ���ڏ4^�1�?O섧�l�k�9<�_8� ���M+ض߶���ߴ�z�A���w Gi�J�F�ǧ��a$|����so�{��h�S�D��� q;A��Л�n������� �$�A����q�Ǯ���Ϲ��>�/8��;���K����?q�'<�O:��;>��+��O}��k��`w|6\�?�M7�n,�K�vA�PK���PPK!( org/gradle/wrapper/WrapperExecutor.classUT�V�wU��]BX���6Mv ��J7S�:M^ҡ��83i � +��J�QTP�V*�������f�&iS����{�~w��{������ ��0v�to�����j"�-OB����ȊdʚNk N�:W�dpZ��p|�LJ�l�lKJ��C�L*��2aY��[7%6��ޜ�'��BƠ^/TԔ�r��j�f��n�/�on���N���)7�'�e�8�#+�!��HJ� +���R&���!G����.T2,<& KERS��c�PW_j�| *�z1 =p�����ͅEԢ� /��A�x���� 抯 ��8\XEA�Q�0 �u���V�O(��(��E �I/�2fu�� ���r&Jͅ;�;D��"�3N�bNL}4mM?��������'����;� O%�!�.n�h��~9͵�i�v/R:2Ce}��h��Ȍ�x�1$���*4��0� �%ENH&�vJ������!p}�!� +�Θ�h��Q��](AoV5)�ݣq�q��� �6-�$��f�E��纛�Њ�I]K���uMn�.��NQ]x��WR�ӒY~o�~+�?//�^« ���a�umD������=8�7h�T��<˰��紫��IF��v�Bɷ$�����;�U��.�Gd �h�E�m+�C��G��JU\���*�hb�~&.�Oq��\���n|ΰ�\�(��.�d�٥��%%��#�9����*�� ��I�'��Z���A��_ &v +v���H-��n|��=t'E3k/�%\E��x.���]�Wŏ Ts��HG�*~��'�B�.��ݸ&��{�%�&B��$�VM�gm���%�r3��A�pX��J�FO+*U���������錺�W�q��W���mIO�.�X@��sa*i���`c0���7��X�k�ob�M,���<���`86�G���P�i!D�,l�5�`{���c�|�i�dn���I��P�������ix8�x��,��Q��1 i �Y0-�X8y�:'q*Vy�XWEc��Bx���q��uJ-�V\��hC�-{pĖG1dK'lygly���Qȓ�QRAr�$��:C�q��𱅱�$���\�^���'��E5�#�%x�},|uޠ���l���ia��*~���w!Z���i��q�!��Y���Ŷ�k=@? 0META-INF/MANIFEST.MFUTPK!�`zX!p1 �org/gradle/cli/CommandLineArgumentException.classUTPK!×�n�& Dorg/gradle/cli/CommandLineOption.classUTPK!d�� Z�3 org/gradle/cli/CommandLineParser$AfterOptions.classUTPK!��1,]< �org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.classUTPK!����b= rorg/gradle/cli/CommandLineParser$KnownOptionParserState.classUTPK!C'|�L�< � org/gradle/cli/CommandLineParser$MissingOptionArgState.classUTPK!��[��J= �#org/gradle/cli/CommandLineParser$OptionAwareParserState.classUTPK!u[z?�}8 �&org/gradle/cli/CommandLineParser$OptionParserState.classUTPK!�� C3 �(org/gradle/cli/CommandLineParser$OptionString.classUTPK!��ɉ��2 W+org/gradle/cli/CommandLineParser$ParserState.classUTPK!Kϖ�s�? g-org/gradle/cli/CommandLineParser$UnknownOptionParserState.classUTPK!���c& P0org/gradle/cli/CommandLineParser.classUTPK!�2w�:�& \5org/gradle/cli/ParsedCommandLine.classUTPK!Z�vmT�, �9org/gradle/cli/ParsedCommandLineOption.classUTPK!�$O��3 �;org/gradle/internal/file/PathTraversalChecker.classUTPK!y�wʇA ?org/gradle/internal/file/locking/ExclusiveFileAccessManager.classUTPK!b����> Aorg/gradle/util/internal/WrapperDistributionUrlConverter.classUTPK!�EҚ�/ HCorg/gradle/wrapper/BootstrapMainStarter$1.classUTPK!��%)�A $j& ��org/gradle/wrapper/PathAssembler.classUTPK!��%��N0 �org/gradle/wrapper/SystemPropertiesHandler.classUTPK!���P- �org/gradle/wrapper/WrapperConfiguration.classUTPK!Ya�S� ( e�org/gradle/wrapper/WrapperExecutor.classUTPK!! � + +=== android/gradle/wrapper/gradle-wrapper.properties === +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists + + +=== android/gradlew === +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" + + +=== android/gradlew.bat === +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega + + +=== android/settings.gradle === +include ':app' +include ':capacitor-cordova-android-plugins' +project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/') + +apply from: 'capacitor.settings.gradle' + +=== android/variables.gradle === +ext { + minSdkVersion = 23 + compileSdkVersion = 35 + targetSdkVersion = 35 + androidxActivityVersion = '1.9.2' + androidxAppCompatVersion = '1.7.0' + androidxCoordinatorLayoutVersion = '1.2.0' + androidxCoreVersion = '1.15.0' + androidxFragmentVersion = '1.8.4' + coreSplashScreenVersion = '1.0.1' + androidxWebkitVersion = '1.12.1' + junitVersion = '4.13.2' + androidxJunitVersion = '1.2.1' + androidxEspressoCoreVersion = '3.6.1' + cordovaAndroidVersion = '10.1.1' +} + +=== capacitor.config.ts === +import type { CapacitorConfig } from '@capacitor/cli'; + +const config: CapacitorConfig = { + appId: 'com.example.[[normalizedAppName]]', + appName: '[[appName]]', + webDir: 'dist' +}; + +export default config; + + +=== components.json === +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "default", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.ts", + "css": "src/index.css", + "baseColor": "slate", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + } +} + + +=== eslint.config.js === +import js from "@eslint/js"; +import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; +import tseslint from "typescript-eslint"; + +export default tseslint.config( + { ignores: ["dist"] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ["**/*.{ts,tsx}"], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + "react-hooks": reactHooks, + "react-refresh": reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + "react-refresh/only-export-components": [ + "warn", + { allowConstantExport: true }, + ], + "@typescript-eslint/no-unused-vars": "off", + }, + }, +); + + +=== index.html === + + + + + + dyad-generated-app + + + +
+ + + + + +=== ios/.gitignore === +App/build +App/Pods +App/output +App/App/public +DerivedData +xcuserdata + +# Cordova plugins for Capacitor +capacitor-cordova-ios-plugins + +# Generated Config files +App/App/capacitor.config.json +App/App/config.xml + + +=== ios/App/App.xcodeproj/project.pbxproj === +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; }; + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; }; + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; }; + 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; }; + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; }; + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; }; + 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; }; + A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = ""; }; + 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = ""; }; + 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; }; + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; }; + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 504EC3011FED79650016851F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = { + isa = PBXGroup; + children = ( + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 504EC2FB1FED79650016851F = { + isa = PBXGroup; + children = ( + 504EC3061FED79650016851F /* App */, + 504EC3051FED79650016851F /* Products */, + 7F8756D8B27F46E3366F6CEA /* Pods */, + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */, + ); + sourceTree = ""; + }; + 504EC3051FED79650016851F /* Products */ = { + isa = PBXGroup; + children = ( + 504EC3041FED79650016851F /* App.app */, + ); + name = Products; + sourceTree = ""; + }; + 504EC3061FED79650016851F /* App */ = { + isa = PBXGroup; + children = ( + 50379B222058CBB4000EE86E /* capacitor.config.json */, + 504EC3071FED79650016851F /* AppDelegate.swift */, + 504EC30B1FED79650016851F /* Main.storyboard */, + 504EC30E1FED79650016851F /* Assets.xcassets */, + 504EC3101FED79650016851F /* LaunchScreen.storyboard */, + 504EC3131FED79650016851F /* Info.plist */, + 2FAD9762203C412B000D30F8 /* config.xml */, + 50B271D01FEDC1A000F3C39B /* public */, + ); + path = App; + sourceTree = ""; + }; + 7F8756D8B27F46E3366F6CEA /* Pods */ = { + isa = PBXGroup; + children = ( + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */, + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 504EC3031FED79650016851F /* App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */; + buildPhases = ( + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */, + 504EC3001FED79650016851F /* Sources */, + 504EC3011FED79650016851F /* Frameworks */, + 504EC3021FED79650016851F /* Resources */, + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = App; + productName = App; + productReference = 504EC3041FED79650016851F /* App.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 504EC2FC1FED79650016851F /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0920; + TargetAttributes = { + 504EC3031FED79650016851F = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 504EC2FB1FED79650016851F; + packageReferences = ( + ); + productRefGroup = 504EC3051FED79650016851F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 504EC3031FED79650016851F /* App */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 504EC3021FED79650016851F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */, + 50B271D11FEDC1A000F3C39B /* public in Resources */, + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */, + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */, + 504EC30D1FED79650016851F /* Main.storyboard in Resources */, + 2FAD9763203C412B000D30F8 /* config.xml in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 504EC3001FED79650016851F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 504EC30B1FED79650016851F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC30C1FED79650016851F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC3111FED79650016851F /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 504EC3141FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 504EC3151FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 504EC3171FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.0; + OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; + PRODUCT_BUNDLE_IDENTIFIER = com.example.[[normalizedAppName]]; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 504EC3181FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.[[normalizedAppName]]; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3141FED79650016851F /* Debug */, + 504EC3151FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3171FED79650016851F /* Debug */, + 504EC3181FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 504EC2FC1FED79650016851F /* Project object */; +} + + +=== ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist === + + + + + IDEDidComputeMac32BitWarning + + + + + +=== ios/App/App/AppDelegate.swift === +import UIKit +import Capacitor + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool { + // Called when the app was launched with a url. Feel free to add additional processing here, + // but if you want the App API to support tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(app, open: url, options: options) + } + + func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { + // Called when the app was launched with an activity, including Universal Links. + // Feel free to add additional processing here, but if you want the App API to support + // tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler) + } + +} + + +=== ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png === +[binary hash="29e4777e319de3ee5a52c3a8004ec19d0568414004257e36d7c94a077d71c93b"] + +=== ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json === +{ + "images" : [ + { + "filename" : "AppIcon-512@2x.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} + + +=== ios/App/App/Assets.xcassets/Contents.json === +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} + +=== ios/App/App/Assets.xcassets/Splash.imageset/Contents.json === +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "splash-2732x2732-2.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732-1.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} + +=== ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png === +[binary hash="1b5002b74a5500e697298ced06ca2811ac33f2771f236f3c720ff23243890530"] + +=== ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png === +[binary hash="1b5002b74a5500e697298ced06ca2811ac33f2771f236f3c720ff23243890530"] + +=== ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png === +[binary hash="1b5002b74a5500e697298ced06ca2811ac33f2771f236f3c720ff23243890530"] + +=== ios/App/App/Base.lproj/LaunchScreen.storyboard === + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +=== ios/App/App/Base.lproj/Main.storyboard === + + + + + + + + + + + + + + + + + + + + + +=== ios/App/App/Info.plist === + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + [[appName]] + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + + + +=== ios/App/Podfile === +require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers' + +platform :ios, '14.0' +use_frameworks! + +# workaround to avoid Xcode caching of Pods that requires +# Product -> Clean Build Folder after new Cordova plugins installed +# Requires CocoaPods 1.6 or newer +install! 'cocoapods', :disable_input_output_paths => true + +def capacitor_pods + pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' +end + +target 'App' do + capacitor_pods + # Add your Pods here +end + +post_install do |installer| + assertDeploymentTarget(installer) +end + + +=== package.json === +{ + "name": "vite_react_shadcn_ts", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "build:dev": "vite build --mode development", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@capacitor/android": "", + "@capacitor/cli": "", + "@capacitor/core": "", + "@capacitor/ios": "", + "@hookform/resolvers": "^3.9.0", + "@radix-ui/react-accordion": "^1.2.0", + "@radix-ui/react-alert-dialog": "^1.1.1", + "@radix-ui/react-aspect-ratio": "^1.1.0", + "@radix-ui/react-avatar": "^1.1.0", + "@radix-ui/react-checkbox": "^1.1.1", + "@radix-ui/react-collapsible": "^1.1.0", + "@radix-ui/react-context-menu": "^2.2.1", + "@radix-ui/react-dialog": "^1.1.2", + "@radix-ui/react-dropdown-menu": "^2.1.1", + "@radix-ui/react-hover-card": "^1.1.1", + "@radix-ui/react-label": "^2.1.0", + "@radix-ui/react-menubar": "^1.1.1", + "@radix-ui/react-navigation-menu": "^1.2.0", + "@radix-ui/react-popover": "^1.1.1", + "@radix-ui/react-progress": "^1.1.0", + "@radix-ui/react-radio-group": "^1.2.0", + "@radix-ui/react-scroll-area": "^1.1.0", + "@radix-ui/react-select": "^2.1.1", + "@radix-ui/react-separator": "^1.1.0", + "@radix-ui/react-slider": "^1.2.0", + "@radix-ui/react-slot": "^1.1.0", + "@radix-ui/react-switch": "^1.1.0", + "@radix-ui/react-tabs": "^1.1.0", + "@radix-ui/react-toast": "^1.2.1", + "@radix-ui/react-toggle": "^1.1.0", + "@radix-ui/react-toggle-group": "^1.1.0", + "@radix-ui/react-tooltip": "^1.1.4", + "@tanstack/react-query": "^5.56.2", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "cmdk": "^1.0.0", + "date-fns": "^3.6.0", + "embla-carousel-react": "^8.3.0", + "input-otp": "^1.2.4", + "lucide-react": "^0.462.0", + "next-themes": "^0.3.0", + "react": "^18.3.1", + "react-day-picker": "^8.10.1", + "react-dom": "^18.3.1", + "react-hook-form": "^7.53.0", + "react-resizable-panels": "^2.1.3", + "react-router-dom": "^6.26.2", + "recharts": "^2.12.7", + "sonner": "^1.5.0", + "tailwind-merge": "^2.5.2", + "tailwindcss-animate": "^1.0.7", + "vaul": "^0.9.3", + "zod": "^3.23.8" + }, + "devDependencies": { + "@dyad-sh/react-vite-component-tagger": "^0.8.0", + "@eslint/js": "^9.9.0", + "@tailwindcss/typography": "^0.5.15", + "@types/node": "^22.5.5", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@vitejs/plugin-react-swc": "^3.9.0", + "autoprefixer": "^10.4.20", + "eslint": "^9.9.0", + "eslint-plugin-react-hooks": "^5.1.0-rc.0", + "eslint-plugin-react-refresh": "^0.4.9", + "globals": "^15.9.0", + "postcss": "^8.4.47", + "tailwindcss": "^3.4.11", + "typescript": "^5.5.3", + "typescript-eslint": "^8.0.1", + "vite": "^6.3.4" + }, + "packageManager": "" +} + +=== postcss.config.js === +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; + + +=== public/favicon.ico === +[binary hash="a75a75f315bbed01f033fd813195a1728acfbad637888935298604e6467d34ab"] + +=== public/placeholder.svg === + + +=== public/robots.txt === +User-agent: Googlebot +Allow: / + +User-agent: Bingbot +Allow: / + +User-agent: Twitterbot +Allow: / + +User-agent: facebookexternalhit +Allow: / + +User-agent: * +Allow: / + + +=== README.md === +# Welcome to your Dyad app + + +=== src/App.css === +#root { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +.logo { + height: 6em; + padding: 1.5em; + will-change: filter; + transition: filter 300ms; +} +.logo:hover { + filter: drop-shadow(0 0 2em #646cffaa); +} +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafbaa); +} + +@keyframes logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +@media (prefers-reduced-motion: no-preference) { + a:nth-of-type(2) .logo { + animation: logo-spin infinite 20s linear; + } +} + +.card { + padding: 2em; +} + +.read-the-docs { + color: #888; +} + + +=== src/App.tsx === +import { Toaster } from "@/components/ui/toaster"; +import { Toaster as Sonner } from "@/components/ui/sonner"; +import { TooltipProvider } from "@/components/ui/tooltip"; +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; +import { BrowserRouter, Routes, Route } from "react-router-dom"; +import Index from "./pages/Index"; +import NotFound from "./pages/NotFound"; + +const queryClient = new QueryClient(); + +const App = () => ( + + + + + + + } /> + {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} + } /> + + + + +); + +export default App; + + +=== src/components/made-with-dyad.tsx === +export const MadeWithDyad = () => { + return ( + + ); +}; + + +=== src/components/ui/accordion.tsx === +import * as React from "react"; +import * as AccordionPrimitive from "@radix-ui/react-accordion"; +import { ChevronDown } from "lucide-react"; + +import { cn } from "@/lib/utils"; + +const Accordion = AccordionPrimitive.Root; + +const AccordionItem = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AccordionItem.displayName = "AccordionItem"; + +const AccordionTrigger = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + svg]:rotate-180", + className, + )} + {...props} + > + {children} + + + +)); +AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName; + +const AccordionContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + +
{children}
+
+)); + +AccordionContent.displayName = AccordionPrimitive.Content.displayName; + +export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }; + + +=== src/components/ui/alert-dialog.tsx === +import * as React from "react"; +import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"; + +import { cn } from "@/lib/utils"; +import { buttonVariants } from "@/components/ui/button"; + +const AlertDialog = AlertDialogPrimitive.Root; + +const AlertDialogTrigger = AlertDialogPrimitive.Trigger; + +const AlertDialogPortal = AlertDialogPrimitive.Portal; + +const AlertDialogOverlay = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName; + +const AlertDialogContent = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + + +)); +AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName; + +const AlertDialogHeader = ({ + className, + ...props +}: React.HTMLAttributes) => ( +
+); +AlertDialogHeader.displayName = "AlertDialogHeader"; + +const AlertDialogFooter = ({ + className, + ...props +}: React.HTMLAttributes) => ( +
+); +AlertDialogFooter.displayName = "AlertDialogFooter"; + +const AlertDialogTitle = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName; + +const AlertDialogDescription = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AlertDialogDescription.displayName = + AlertDialogPrimitive.Description.displayName; + +const AlertDialogAction = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName; + +const AlertDialogCancel = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName; + +export { + AlertDialog, + AlertDialogPortal, + AlertDialogOverlay, + AlertDialogTrigger, + AlertDialogContent, + AlertDialogHeader, + AlertDialogFooter, + AlertDialogTitle, + AlertDialogDescription, + AlertDialogAction, + AlertDialogCancel, +}; + + +=== src/components/ui/alert.tsx === +import * as React from "react"; +import { cva, type VariantProps } from "class-variance-authority"; + +import { cn } from "@/lib/utils"; + +const alertVariants = cva( + "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", + { + variants: { + variant: { + default: "bg-background text-foreground", + destructive: + "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", + }, + }, + defaultVariants: { + variant: "default", + }, + }, +); + +const Alert = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes & VariantProps +>(({ className, variant, ...props }, ref) => ( +
+)); +Alert.displayName = "Alert"; + +const AlertTitle = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)); +AlertTitle.displayName = "AlertTitle"; + +const AlertDescription = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)); +AlertDescription.displayName = "AlertDescription"; + +export { Alert, AlertTitle, AlertDescription }; + + +=== src/components/ui/aspect-ratio.tsx === +import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"; + +const AspectRatio = AspectRatioPrimitive.Root; + +export { AspectRatio }; + + +=== src/components/ui/avatar.tsx === +import * as React from "react"; +import * as AvatarPrimitive from "@radix-ui/react-avatar"; + +import { cn } from "@/lib/utils"; + +const Avatar = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +Avatar.displayName = AvatarPrimitive.Root.displayName; + +const AvatarImage = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AvatarImage.displayName = AvatarPrimitive.Image.displayName; + +const AvatarFallback = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName; + +export { Avatar, AvatarImage, AvatarFallback }; + + +=== src/components/ui/badge.tsx === +import * as React from "react"; +import { cva, type VariantProps } from "class-variance-authority"; + +import { cn } from "@/lib/utils"; + +const badgeVariants = cva( + "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", + { + variants: { + variant: { + default: + "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", + secondary: + "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", + destructive: + "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", + outline: "text-foreground", + }, + }, + defaultVariants: { + variant: "default", + }, + }, +); + +export interface BadgeProps + extends React.HTMLAttributes, + VariantProps {} + +function Badge({ className, variant, ...props }: BadgeProps) { + return ( +
+ ); +} + +export { Badge, badgeVariants }; + + +=== src/components/ui/breadcrumb.tsx === +import * as React from "react"; +import { Slot } from "@radix-ui/react-slot"; +import { ChevronRight, MoreHorizontal } from "lucide-react"; + +import { cn } from "@/lib/utils"; + +const Breadcrumb = React.forwardRef< + HTMLElement, + React.ComponentPropsWithoutRef<"nav"> & { + separator?: React.ReactNode; + } +>(({ ...props }, ref) =>