repoburg 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/CODEMAP.md +27 -2
  2. package/backend/.env +2 -1
  3. package/backend/dist/src/app.module.js +2 -0
  4. package/backend/dist/src/app.module.js.map +1 -1
  5. package/backend/dist/src/seeding/data/system-prompts/default_master-agent.d.ts +1 -1
  6. package/backend/dist/src/seeding/data/system-prompts/default_master-agent.js +18 -0
  7. package/backend/dist/src/seeding/data/system-prompts/default_master-agent.js.map +1 -1
  8. package/backend/dist/src/visual-editor/visual-editor.controller.d.ts +14 -0
  9. package/backend/dist/src/visual-editor/visual-editor.controller.js +86 -0
  10. package/backend/dist/src/visual-editor/visual-editor.controller.js.map +1 -0
  11. package/backend/dist/src/visual-editor/visual-editor.dto.d.ts +5 -0
  12. package/backend/dist/src/visual-editor/visual-editor.dto.js +32 -0
  13. package/backend/dist/src/visual-editor/visual-editor.dto.js.map +1 -0
  14. package/backend/dist/src/visual-editor/visual-editor.module.d.ts +2 -0
  15. package/backend/dist/src/visual-editor/visual-editor.module.js +24 -0
  16. package/backend/dist/src/visual-editor/visual-editor.module.js.map +1 -0
  17. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  18. package/client/dist/main.js +2 -0
  19. package/package.json +5 -3
  20. package/platform-cli.js +53 -2
  21. package/visual-editor-proxy/client/dist/main.js +89 -0
  22. package/visual-editor-proxy/client/tsconfig.json +14 -0
  23. package/visual-editor-proxy/dist/client/src/inspector.d.ts +9 -0
  24. package/visual-editor-proxy/dist/client/src/inspector.js +96 -0
  25. package/visual-editor-proxy/dist/client/src/inspector.js.map +1 -0
  26. package/visual-editor-proxy/dist/client/src/main.d.ts +6 -0
  27. package/visual-editor-proxy/dist/client/src/main.js +108 -0
  28. package/visual-editor-proxy/dist/client/src/main.js.map +1 -0
  29. package/visual-editor-proxy/dist/client/src/ui.d.ts +6 -0
  30. package/visual-editor-proxy/dist/client/src/ui.js +153 -0
  31. package/visual-editor-proxy/dist/client/src/ui.js.map +1 -0
  32. package/visual-editor-proxy/dist/main.d.ts +1 -0
  33. package/visual-editor-proxy/dist/main.js +61 -0
  34. package/visual-editor-proxy/dist/main.js.map +1 -0
  35. package/visual-editor-proxy/dist/src/main.d.ts +1 -0
  36. package/visual-editor-proxy/dist/src/main.js +61 -0
  37. package/visual-editor-proxy/dist/src/main.js.map +1 -0
  38. package/visual-editor-proxy/dist/tsconfig.tsbuildinfo +1 -0
  39. package/visual-editor-proxy/node_modules/@types/node/LICENSE +21 -0
  40. package/visual-editor-proxy/node_modules/@types/node/README.md +15 -0
  41. package/visual-editor-proxy/node_modules/@types/node/assert/strict.d.ts +8 -0
  42. package/visual-editor-proxy/node_modules/@types/node/assert.d.ts +1062 -0
  43. package/visual-editor-proxy/node_modules/@types/node/async_hooks.d.ts +605 -0
  44. package/visual-editor-proxy/node_modules/@types/node/buffer.buffer.d.ts +462 -0
  45. package/visual-editor-proxy/node_modules/@types/node/buffer.d.ts +1932 -0
  46. package/visual-editor-proxy/node_modules/@types/node/child_process.d.ts +1458 -0
  47. package/visual-editor-proxy/node_modules/@types/node/cluster.d.ts +577 -0
  48. package/visual-editor-proxy/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  49. package/visual-editor-proxy/node_modules/@types/node/compatibility/index.d.ts +9 -0
  50. package/visual-editor-proxy/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  51. package/visual-editor-proxy/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  52. package/visual-editor-proxy/node_modules/@types/node/console.d.ts +452 -0
  53. package/visual-editor-proxy/node_modules/@types/node/constants.d.ts +21 -0
  54. package/visual-editor-proxy/node_modules/@types/node/crypto.d.ts +4570 -0
  55. package/visual-editor-proxy/node_modules/@types/node/dgram.d.ts +596 -0
  56. package/visual-editor-proxy/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  57. package/visual-editor-proxy/node_modules/@types/node/dns/promises.d.ts +479 -0
  58. package/visual-editor-proxy/node_modules/@types/node/dns.d.ts +871 -0
  59. package/visual-editor-proxy/node_modules/@types/node/domain.d.ts +170 -0
  60. package/visual-editor-proxy/node_modules/@types/node/events.d.ts +977 -0
  61. package/visual-editor-proxy/node_modules/@types/node/fs/promises.d.ts +1248 -0
  62. package/visual-editor-proxy/node_modules/@types/node/fs.d.ts +4362 -0
  63. package/visual-editor-proxy/node_modules/@types/node/globals.d.ts +172 -0
  64. package/visual-editor-proxy/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  65. package/visual-editor-proxy/node_modules/@types/node/http.d.ts +2030 -0
  66. package/visual-editor-proxy/node_modules/@types/node/http2.d.ts +2624 -0
  67. package/visual-editor-proxy/node_modules/@types/node/https.d.ts +546 -0
  68. package/visual-editor-proxy/node_modules/@types/node/index.d.ts +93 -0
  69. package/visual-editor-proxy/node_modules/@types/node/inspector.generated.d.ts +3966 -0
  70. package/visual-editor-proxy/node_modules/@types/node/module.d.ts +539 -0
  71. package/visual-editor-proxy/node_modules/@types/node/net.d.ts +1011 -0
  72. package/visual-editor-proxy/node_modules/@types/node/os.d.ts +505 -0
  73. package/visual-editor-proxy/node_modules/@types/node/package.json +140 -0
  74. package/visual-editor-proxy/node_modules/@types/node/path.d.ts +200 -0
  75. package/visual-editor-proxy/node_modules/@types/node/perf_hooks.d.ts +961 -0
  76. package/visual-editor-proxy/node_modules/@types/node/process.d.ts +1944 -0
  77. package/visual-editor-proxy/node_modules/@types/node/punycode.d.ts +117 -0
  78. package/visual-editor-proxy/node_modules/@types/node/querystring.d.ts +152 -0
  79. package/visual-editor-proxy/node_modules/@types/node/readline/promises.d.ts +162 -0
  80. package/visual-editor-proxy/node_modules/@types/node/readline.d.ts +589 -0
  81. package/visual-editor-proxy/node_modules/@types/node/repl.d.ts +430 -0
  82. package/visual-editor-proxy/node_modules/@types/node/sea.d.ts +153 -0
  83. package/visual-editor-proxy/node_modules/@types/node/stream/consumers.d.ts +38 -0
  84. package/visual-editor-proxy/node_modules/@types/node/stream/promises.d.ts +90 -0
  85. package/visual-editor-proxy/node_modules/@types/node/stream/web.d.ts +533 -0
  86. package/visual-editor-proxy/node_modules/@types/node/stream.d.ts +1675 -0
  87. package/visual-editor-proxy/node_modules/@types/node/string_decoder.d.ts +67 -0
  88. package/visual-editor-proxy/node_modules/@types/node/test.d.ts +1787 -0
  89. package/visual-editor-proxy/node_modules/@types/node/timers/promises.d.ts +108 -0
  90. package/visual-editor-proxy/node_modules/@types/node/timers.d.ts +286 -0
  91. package/visual-editor-proxy/node_modules/@types/node/tls.d.ts +1231 -0
  92. package/visual-editor-proxy/node_modules/@types/node/trace_events.d.ts +197 -0
  93. package/visual-editor-proxy/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +460 -0
  94. package/visual-editor-proxy/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  95. package/visual-editor-proxy/node_modules/@types/node/ts5.6/index.d.ts +93 -0
  96. package/visual-editor-proxy/node_modules/@types/node/tty.d.ts +208 -0
  97. package/visual-editor-proxy/node_modules/@types/node/url.d.ts +964 -0
  98. package/visual-editor-proxy/node_modules/@types/node/util.d.ts +2331 -0
  99. package/visual-editor-proxy/node_modules/@types/node/v8.d.ts +808 -0
  100. package/visual-editor-proxy/node_modules/@types/node/vm.d.ts +1000 -0
  101. package/visual-editor-proxy/node_modules/@types/node/wasi.d.ts +181 -0
  102. package/visual-editor-proxy/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  103. package/visual-editor-proxy/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  104. package/visual-editor-proxy/node_modules/@types/node/web-globals/events.d.ts +97 -0
  105. package/visual-editor-proxy/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  106. package/visual-editor-proxy/node_modules/@types/node/worker_threads.d.ts +715 -0
  107. package/visual-editor-proxy/node_modules/@types/node/zlib.d.ts +539 -0
  108. package/visual-editor-proxy/node_modules/undici-types/LICENSE +21 -0
  109. package/visual-editor-proxy/node_modules/undici-types/README.md +6 -0
  110. package/visual-editor-proxy/node_modules/undici-types/agent.d.ts +31 -0
  111. package/visual-editor-proxy/node_modules/undici-types/api.d.ts +43 -0
  112. package/visual-editor-proxy/node_modules/undici-types/balanced-pool.d.ts +29 -0
  113. package/visual-editor-proxy/node_modules/undici-types/cache.d.ts +36 -0
  114. package/visual-editor-proxy/node_modules/undici-types/client.d.ts +108 -0
  115. package/visual-editor-proxy/node_modules/undici-types/connector.d.ts +34 -0
  116. package/visual-editor-proxy/node_modules/undici-types/content-type.d.ts +21 -0
  117. package/visual-editor-proxy/node_modules/undici-types/cookies.d.ts +28 -0
  118. package/visual-editor-proxy/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  119. package/visual-editor-proxy/node_modules/undici-types/dispatcher.d.ts +256 -0
  120. package/visual-editor-proxy/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  121. package/visual-editor-proxy/node_modules/undici-types/errors.d.ts +149 -0
  122. package/visual-editor-proxy/node_modules/undici-types/eventsource.d.ts +61 -0
  123. package/visual-editor-proxy/node_modules/undici-types/fetch.d.ts +209 -0
  124. package/visual-editor-proxy/node_modules/undici-types/file.d.ts +39 -0
  125. package/visual-editor-proxy/node_modules/undici-types/filereader.d.ts +54 -0
  126. package/visual-editor-proxy/node_modules/undici-types/formdata.d.ts +108 -0
  127. package/visual-editor-proxy/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  128. package/visual-editor-proxy/node_modules/undici-types/global-origin.d.ts +7 -0
  129. package/visual-editor-proxy/node_modules/undici-types/handlers.d.ts +15 -0
  130. package/visual-editor-proxy/node_modules/undici-types/header.d.ts +4 -0
  131. package/visual-editor-proxy/node_modules/undici-types/index.d.ts +71 -0
  132. package/visual-editor-proxy/node_modules/undici-types/interceptors.d.ts +17 -0
  133. package/visual-editor-proxy/node_modules/undici-types/mock-agent.d.ts +50 -0
  134. package/visual-editor-proxy/node_modules/undici-types/mock-client.d.ts +25 -0
  135. package/visual-editor-proxy/node_modules/undici-types/mock-errors.d.ts +12 -0
  136. package/visual-editor-proxy/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  137. package/visual-editor-proxy/node_modules/undici-types/mock-pool.d.ts +25 -0
  138. package/visual-editor-proxy/node_modules/undici-types/package.json +55 -0
  139. package/visual-editor-proxy/node_modules/undici-types/patch.d.ts +33 -0
  140. package/visual-editor-proxy/node_modules/undici-types/pool-stats.d.ts +19 -0
  141. package/visual-editor-proxy/node_modules/undici-types/pool.d.ts +39 -0
  142. package/visual-editor-proxy/node_modules/undici-types/proxy-agent.d.ts +28 -0
  143. package/visual-editor-proxy/node_modules/undici-types/readable.d.ts +65 -0
  144. package/visual-editor-proxy/node_modules/undici-types/retry-agent.d.ts +8 -0
  145. package/visual-editor-proxy/node_modules/undici-types/retry-handler.d.ts +116 -0
  146. package/visual-editor-proxy/node_modules/undici-types/util.d.ts +18 -0
  147. package/visual-editor-proxy/node_modules/undici-types/webidl.d.ts +228 -0
  148. package/visual-editor-proxy/node_modules/undici-types/websocket.d.ts +150 -0
  149. package/visual-editor-proxy/package.json +21 -0
  150. package/visual-editor-proxy/tsconfig.json +21 -0
  151. package/backend/orchestration-test-2.txt +0 -1
  152. package/backend/orchestration-test.txt +0 -1
package/CODEMAP.md CHANGED
@@ -12,8 +12,9 @@ Repoburg's architecture consists of several key components working together:
12
12
  4. **The `daemon`**: A long-running, headless background process that manages `backend` instances using `pm2`. It handles starting, stopping, and monitoring services for different projects and manages device authentication.
13
13
  5. **The `website`**: The public-facing marketing, documentation, and user authentication portal, available at repoburg.com.
14
14
  6. **The `daemon-desktop`**: An Electron-based desktop application that provides a graphical user interface (GUI) for the `daemon`. It allows users to manage services without using the command line.
15
+ 7. **The `visual-editor-proxy`**: A local proxy server that injects a client script into a target frontend application, enabling developers to visually select components and send prompts to the `backend` from their running app.
15
16
 
16
- The core loop is: **Frontend** sends a prompt to the **Backend** -> **Backend** generates context and sends it to an LLM -> The LLM response is sent back to the **Backend** -> **Backend** parses it into a plan -> **Frontend** displays the plan for user review and action. The **Daemon** and **Daemon Desktop** work in the background, managing the lifecycle of the **Backend** service itself. The **Website** handles user accounts and authorizes local devices to use the service.
17
+ The core loop is: **Frontend** sends a prompt to the **Backend** -> **Backend** generates context and sends it to an LLM -> The LLM response is sent back to the **Backend** -> **Backend** parses it into a plan -> **Frontend** displays the plan for user review and action. The **Daemon** and **Daemon Desktop** work in the background, managing the lifecycle of the **Backend** service itself. The **Website** handles user accounts and authorizes local devices to use the service. The **Visual Editor Proxy** provides an alternative entry point for initiating this loop directly from a user's own application.
17
18
 
18
19
  ---
19
20
 
@@ -54,6 +55,7 @@ The local server that contains the core application logic.
54
55
  - **`/events`**: The WebSocket gateway for real-time communication between the backend, frontend, and userscripts.
55
56
  - **`/application-state`**: Manages global backend settings (e.g., active session, feature flags).
56
57
  - **`/mcp`**: Manages connections and tools for the Model Context Protocol (MCP).
58
+ - **`/visual-editor`**: Provides an endpoint for the visual editor's injected client script to submit prompts and context, adapting them into standard session inputs.
57
59
  - **`/projects`**: Manages project-specific information.
58
60
  - **`/seeding`**: Seeds the database with default data (prompts, templates) on startup.
59
61
  - **`/core-entities`**: Contains all TypeORM entity definitions for the database schema.
@@ -165,6 +167,23 @@ A graphical user interface for managing the `daemon` and its services.
165
167
 
166
168
  ---
167
169
 
170
+ ## Visual Editor Proxy (`visual-editor-proxy/`)
171
+
172
+ A lightweight proxy server that enables the in-context visual editing feature.
173
+
174
+ ### 🚀 Tech Stack & Structure
175
+ - **Framework**: Express.js
176
+ - **Proxying**: Uses `http-proxy-middleware` to forward requests.
177
+ - **Client-side Script**: A vanilla TypeScript application bundled with `esbuild`.
178
+
179
+ ### ✨ Key Files
180
+ - **`src/main.ts`**: The Express server entry point. It handles proxying, injecting the client script into the target application's HTML, and serving the client script itself.
181
+ - **`client/src/main.ts`**: The entry point for the client-side logic that runs in the browser. It manages selector mode, the prompt UI, and communication with the `backend`.
182
+ - **`client/src/inspector.ts`**: Contains logic to interact with React DevTools hooks to inspect the component hierarchy of a selected element.
183
+ - **`client/src/ui.ts`**: Responsible for creating and managing all injected UI elements (floating button, modal, toast notifications).
184
+
185
+ ---
186
+
168
187
  ## System Interaction Flow
169
188
 
170
189
  ### Authentication & Authorization
@@ -179,4 +198,10 @@ A graphical user interface for managing the `daemon` and its services.
179
198
  ### Core AI Workflow
180
199
  - **Backend <-> Frontend**: The `frontend` makes API calls to a specific `backend` instance. It knows the correct port via the `bport` URL query parameter. Real-time updates are sent from backend to frontend via WebSocket.
181
200
  - **Backend <-> Userscript**: In manual mode, the `backend` sends `llm-input-generated` events to the `userscript` via WebSocket, telling it to paste a new prompt into AI Studio.
182
- - **Data from Userscript (HTTP)**: The `userscript` sends the AI's raw response back to the `backend`'s `/llm-responses/submit-external` endpoint.
201
+ - **Data from Userscript (HTTP)**: The `userscript` sends the AI's raw response back to the `backend`'s `/llm-responses/submit-external` endpoint.
202
+
203
+ ### Visual Editor Workflow
204
+ - **CLI -> visual-editor-proxy**: The `repoburg start-live` command spawns the `visual-editor-proxy` process, passing the target application URL and the active backend port as environment variables.
205
+ - **User's Browser <-> visual-editor-proxy**: The proxy serves the user's target application, but injects its own client-side script into the HTML.
206
+ - **Injected Script -> Backend**: When the user selects a component and submits a prompt, the injected script sends a POST request to the `/visual-editor/submit` endpoint on the `backend`.
207
+ - **Backend -> Frontend**: The backend's `/visual-editor` controller receives the request, creates a new session input, which then triggers a WebSocket event to the `frontend`, causing the new AI plan to appear for review.
package/backend/.env CHANGED
@@ -1,9 +1,10 @@
1
1
  #REPOBURG_PROJECT_PATH='/Users/celalertug/WebstormProjects/hihiho'
2
2
  #REPOBURG_PROJECT_PATH='/Users/celalertug/github/webcoder'
3
3
  #REPOBURG_PROJECT_PATH='/Users/celalertug/WebstormProjects/appdb'
4
- REPOBURG_PROJECT_PATH='/tmp/a/cleanappdev'
4
+ #REPOBURG_PROJECT_PATH='/tmp/a/cleanappdev'
5
5
  #REPOBURG_PROJECT_PATH='/Users/celalertug/everest/cleanappdev'
6
6
  #REPOBURG_PROJECT_PATH='/Users/celalertug/github/vscode'
7
7
 
8
8
  #react project
9
9
  #REPOBURG_PROJECT_PATH='/Users/celalertug/WebstormProjects/ttt1234'
10
+ REPOBURG_PROJECT_PATH=/Users/celalertug/Desktop/tmp/repoburg-preview-boilerplate-main
@@ -35,6 +35,7 @@ const events_module_1 = require("./events/events.module");
35
35
  const context_snippets_module_1 = require("./context-snippets/context-snippets.module");
36
36
  const chat_module_1 = require("./interactive-chat/chat.module");
37
37
  const mcp_module_1 = require("./mcp/mcp.module");
38
+ const visual_editor_module_1 = require("./visual-editor/visual-editor.module");
38
39
  let dbPath = ':memory:';
39
40
  if (process.env.NODE_ENV === 'production') {
40
41
  const projectPath = process.env.REPOBURG_PROJECT_PATH || process.cwd();
@@ -92,6 +93,7 @@ exports.AppModule = AppModule = __decorate([
92
93
  context_snippets_module_1.ContextSnippetsModule,
93
94
  chat_module_1.InteractiveChatModule,
94
95
  mcp_module_1.McpModule,
96
+ visual_editor_module_1.VisualEditorModule,
95
97
  ],
96
98
  controllers: [app_controller_1.AppController],
97
99
  providers: [app_service_1.AppService],
@@ -1 +1 @@
1
- {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AACjD,+CAA2C;AAC3C,6CAAgD;AAChD,mDAayB;AACzB,gEAA4D;AAC5D,gEAA4D;AAC5D,kFAA6E;AAC7E,iGAA2F;AAC3F,sEAAiE;AACjE,kFAA6E;AAC7E,2FAAsF;AACtF,8FAAyF;AACzF,kFAA6E;AAC7E,6DAAyD;AACzD,mEAA+D;AAC/D,qFAAgF;AAChF,6BAA6B;AAC7B,yBAAyB;AACzB,wFAAmF;AACnF,wFAAmF;AACnF,wFAAmF;AACnF,2FAAsF;AACtF,+EAA0E;AAC1E,0DAAsD;AACtD,wFAAmF;AACnF,gEAAuE;AACvE,iDAA6C;AAE7C,IAAI,MAAM,GAAG,UAAU,CAAC;AAExB,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;IAC1C,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IACvE,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAClD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,iCAAiC,MAAM,EAAE,CAAC,CAAC;AACzD,CAAC;AAiDM,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IA/CrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,OAAO,CAAC;gBACpB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,MAAM;gBAChB,QAAQ,EAAE;oBACR,uBAAO;oBACP,uBAAO;oBACP,+BAAe;oBACf,4BAAY;oBACZ,wBAAQ;oBACR,4BAAY;oBACZ,4BAAY;oBACZ,6BAAa;oBACb,gCAAgB;oBAChB,8BAAc;oBACd,yBAAS;oBACT,uBAAO;iBACR;gBACD,WAAW,EAAE,IAAI;gBACjB,gBAAgB,EAAE,IAAI;aACvB,CAAC;YACF,gCAAc;YACd,gCAAc;YACd,2CAAmB;YACnB,oDAAuB;YACvB,mCAAe;YACf,2CAAmB;YACnB,iDAAsB;YACtB,mDAAuB;YACvB,2CAAmB;YACnB,8BAAa;YACb,kCAAe;YACf,6CAAoB;YACpB,+CAAqB;YACrB,+CAAqB;YACrB,+CAAqB;YACrB,iDAAsB;YACtB,yCAAkB;YAClB,4BAAY;YACZ,+CAAqB;YACrB,mCAAqB;YACrB,sBAAS;SACV;QACD,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAG"}
1
+ {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AACjD,+CAA2C;AAC3C,6CAAgD;AAChD,mDAayB;AACzB,gEAA4D;AAC5D,gEAA4D;AAC5D,kFAA6E;AAC7E,iGAA2F;AAC3F,sEAAiE;AACjE,kFAA6E;AAC7E,2FAAsF;AACtF,8FAAyF;AACzF,kFAA6E;AAC7E,6DAAyD;AACzD,mEAA+D;AAC/D,qFAAgF;AAChF,6BAA6B;AAC7B,yBAAyB;AACzB,wFAAmF;AACnF,wFAAmF;AACnF,wFAAmF;AACnF,2FAAsF;AACtF,+EAA0E;AAC1E,0DAAsD;AACtD,wFAAmF;AACnF,gEAAuE;AACvE,iDAA6C;AAC7C,+EAA0E;AAE1E,IAAI,MAAM,GAAG,UAAU,CAAC;AAExB,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;IAC1C,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IACvE,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAClD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,iCAAiC,MAAM,EAAE,CAAC,CAAC;AACzD,CAAC;AAkDM,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAhDrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,OAAO,CAAC;gBACpB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,MAAM;gBAChB,QAAQ,EAAE;oBACR,uBAAO;oBACP,uBAAO;oBACP,+BAAe;oBACf,4BAAY;oBACZ,wBAAQ;oBACR,4BAAY;oBACZ,4BAAY;oBACZ,6BAAa;oBACb,gCAAgB;oBAChB,8BAAc;oBACd,yBAAS;oBACT,uBAAO;iBACR;gBACD,WAAW,EAAE,IAAI;gBACjB,gBAAgB,EAAE,IAAI;aACvB,CAAC;YACF,gCAAc;YACd,gCAAc;YACd,2CAAmB;YACnB,oDAAuB;YACvB,mCAAe;YACf,2CAAmB;YACnB,iDAAsB;YACtB,mDAAuB;YACvB,2CAAmB;YACnB,8BAAa;YACb,kCAAe;YACf,6CAAoB;YACpB,+CAAqB;YACrB,+CAAqB;YACrB,+CAAqB;YACrB,iDAAsB;YACtB,yCAAkB;YAClB,4BAAY;YACZ,+CAAqB;YACrB,mCAAqB;YACrB,sBAAS;YACT,yCAAkB;SACnB;QACD,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAG"}
@@ -1,2 +1,2 @@
1
1
  export declare const name = "Master Agent";
2
- export declare const content = "\n<ai>\n <definition>you are a software developer AI agent. you're talking to a software developer. your task is implementing\n new feature, fixing bugs, explaining codebase or just helping to the user\n </definition>\n\n <preparation-phase-loop>\n\n <clear-the-request>\n user provides a request for code or software development task. and they might provide relevant context (code\n files, file/folder tree structure, docs or code snippets).\n first make sure you understand the request. if you don't understand, ask for clarification.\n </clear-the-request>\n\n <build-context>\n you're always working within a code repository. meticulously search codebase to find where to work and find\n relevant examples or documentations.\n you have 3 tools:\n 1- `request_context`: with this tool you can ask files and folders. you will get the content of files in\n response. if you ask folder you will get all the files content in that folder and its subfolders.\n 2- `run_command`: with this tool you can run any command line commands. for example rg, tree, ls, find\n etc. note: use tree over ls\n 3- `use_mcp_tool`: if there is any mcp server connected, you can use its tools to get more context. if\n it's not possible with native tools.\n\n this step is a loop. you should use this step as exploration phase.\n never stop exploring until you are 100% sure you have all the context you need to work on the request.\n you are encouraged to ask more context to validate your assumptions.\n </build-context>\n\n <propose-changes>\n if you reach this phase you are 100% sure you have all the context you need to work on the request.\n now you should propose the changes you will make to fulfill the request.\n be concise in your proposal. explain with code snippets if needed.\n\n use `final` tool to explain your proposal.\n </propose-changes>\n\n\n <desicion-point>\n if user agrees with your proposal, you can move to implementation phase.\n if user disagrees or wants changes, go back to `clear-the-request` phase.\n\n </desicion-point>\n\n </preparation-phase-loop>\n\n <implementation-phase>\n you will modify the codebase to fulfill the request. you can create, update or delete files.\n you have 1 tools:\n 1- `modify_file`: with this tool you can create, edit or delete files.\n\n\n - rule: NEVER EDIT (`modify_file` command) A FILE BEFORE REQUESTING CONTEXT. if you don't have the file content, request it first (`request_context` command).\n\n - scope: only code what you propose and user agrees. do not refactor code or change anything that is not related\n to the request.\n - file size: keep files are small as possible. if a file is getting too big, split it into smaller files.\n - commenting: only use comments when you absolutely need to explain something. otherwise write self-explanatory\n code.\n\n </implementation-phase>\n\n\n <user-feedbck>\n if user is not satisfied with your implementation, go back to `clear-the-request` phase.\n if user says `yolo` in response, you can continue. if you're done, explain what you did with `final` tool.\n </user-feedbck>\n\n\n <using-mcp-tools>\n if there is any mcp server available, you can use its tools to get more context or do some tasks.\n use `use_mcp_tool` tool to use mcp server tools.\n make sure to follow the instructions for `use_mcp_tool` tool below.\n RULE: always prioritize native tools over mcp tools.\n </using-mcp-tools>\n\n <tools>\n\n you have 3 tools: `modify_file`, `request_context` and `run_command`. you also have `final` tool to\n explain your proposal or explain the task you did.\n make sure to use only one tool per action item. never combine multiple tools in a single action item or never\n generate multiple action items for same tool.\n make sure to follow the instructions for each tool below.\n\n <modify_file>\n\n Based on the user request, you must generate a numbered list of action items.\n Each action item represents the *complete* set of modifications for a *single* file.\n Action items are ordered sequentially.\n Each action item should be enclosed within `\u00A7ACTION_ITEM_START\u00A7` and `\u00A7ACTION_ITEM_END\u00A7` markers and\n include the following details using the `\u00A6FieldName\u00A6 Value` format:\n\n\n \u00A7TITLE_START\u00A7 very brief title for entire chat history including previous prompt, if current title is fine\n then leave it (max 4 words) \u00A7TITLE_END\u00A7\n\n * `\u00A6ActionNumber\u00A6`: The sequential identifier for the task.\n * `\u00A6TaskDescription\u00A6`: A concise description of **all** changes to be made to this particular file.\n * `\u00A6FilePath\u00A6`: The file path where the modification will occur (ensure it aligns with the *Project Files\n from Structure*).\n * `\u00A6FileAction\u00A6`: The operation to perform: `create_file`, `edit_file`, `delete_file`\n * `\u00A6Code\u00A6`:\n * For `create_file`: Provide the complete content of the new file within a code block.\n * For `edit_file`: Provide the complete content with modifications of the new file within a code block.\n * For `delete_file`: Leave this section empty or provide an empty code block.\n\n\n <example>\n\n \u00A7TITLE_START\u00A7 Refactor react components \u00A7TITLE_END\u00A7\n\n Explanation of the changes:\n 1. Create `ErrorBanner.tsx` component in `src/components/common` to display error messages.\n 2. Modify `ErrorBoundary.tsx` component in `src/components/common` to catch unrecoverable errors and\n prevent UI crashes.\n 3. Delete unused svg\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 Create `ErrorBanner.tsx` component in `src/components/common` to display error\n messages.\n \u00A6FilePath\u00A6 src/components/common/ErrorBanner.tsx\n \u00A6FileAction\u00A6 create_file\n \u00A6Code\u00A6\n ```typescript\n import React from 'react';\n\n // full content of the file\n\n export default ErrorBanner;\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n ---\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 2\n \u00A6TaskDescription\u00A6 Modify `ErrorBoundary.tsx` component in `src/components/common` to catch\n unrecoverable errors and prevent UI crashes.\n \u00A6FilePath\u00A6 src/components/common/ErrorBoundary.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n import React, { Component, ReactNode } from 'react';\n\n // full content of the file\n\n export default ErrorBoundary;\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n ---\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 3\n \u00A6TaskDescription\u00A6 Delete unused svg file.\n \u00A6FilePath\u00A6 src/asset/common/some.svg\n \u00A6FileAction\u00A6 delete_file\n \u00A6Code\u00A6\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n\n 1 action item only for 1 file. never combine multiple files in a single action item or never generate\n multiple action items for same file.\n\n <bad-example>\n <why>same file multiple action</why>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 some description\n \u00A6FilePath\u00A6 src/same-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n\n // full content of the file\n\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 2\n \u00A6TaskDescription\u00A6 some other description\n \u00A6FilePath\u00A6 src/same-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n\n // full content of the file\n\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n </bad-example>\n\n <bad-example>\n <why>one action multiple file</why>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 some description\n \u00A6FilePath\u00A6 src/same-file.tsx, src/another-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n\n // full content of the file\n\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n\n </bad-example>\n\n <bad-example>\n <why>partial content generation</why>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 some description\n \u00A6FilePath\u00A6 src/some-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n import React from 'react';\n // partial content of the file\n // missing rest of the file content\n ```\n \u00A7ACTION_ITEM_END\u00A7\n </bad-example>\n\n\n do not use + or - for diff, just use the whole content of the file.\n\n\n </modify_file>\n\n <request_context>\n\n The action item should be enclosed within `\u00A7ACTION_ITEM_START\u00A7` and `\u00A7ACTION_ITEM_END\u00A7` markers and\n include the following details using the `\u00A6FieldName\u00A6 Value` format:\n\n * `\u00A6FileAction\u00A6`: Always `request_context`.\n * `\u00A6Files\u00A6`: (Optional) A comma-separated list of file paths you need to see.\n * `\u00A6Folders\u00A6`: (Optional) A comma-separated list of folder paths you need to see.\n * `\u00A6Reason\u00A6`: A clear and detailed explanation of why you need this context to proceed with your analysis.\n You can also mention what you plan to investigate after receiving this new information.\n\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 request_context\n \u00A6Files\u00A6 src/components/common/ErrorBoundary.tsx, src/components/common/ErrorBanner.tsx\n \u00A6Reason\u00A6 I need to understand how error handling is currently implemented in the project. By examining\n the ErrorBoundary component, I can see how it catches errors and what fallback UI it provides.\n Additionally, reviewing the ErrorBanner component will help me understand how error messages are\n displayed to users. This context is crucial for implementing a new feature that enhances error reporting\n and user experience.\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 request_context\n \u00A6Folders\u00A6 src/components/common\n \u00A6Reason\u00A6 I need to explore the common components used across the application to identify reusable\n elements and understand the overall structure. This will help me in proposing changes that align with\n existing design patterns and ensure consistency in the user interface.\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n\n <bad-example>\n <why>multiple action item with request_context</why>\n \u00A7ACTION_ITEM_START\u00A7\n xxx some stuff xxx\n \u00A7ACTION_ITEM_END\u00A7\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 request_context\n \u00A6Folders\u00A6 somefolder1\n \u00A6Reason\u00A6 some explanation 2\n \u00A7ACTION_ITEM_END\u00A7\n </bad-example>\n\n you must generate only one action_item for `request_context`\n\n </request_context>\n\n <run_command>\n\n Use to execute safe, read-only shell commands for exploration (e.g., `ls`, `tree`, `rg`).\n if user tell you to run a command then you can run that command as well.\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 rg --files . | head -n 20\n \u00A6Reason\u00A6 I want to get a quick overview of the first 20 files in the repository to understand its\n structure and identify key files that might be relevant to the user's request.\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n - when you use rg command always use target path like . to restrict the search to the current directory.\n GOOD usage `rg -i \"xxx\" .` BAD usage `rg -i \"xxx\"`\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 rg 'ErrorBoundary' .\n \u00A6Reason\u00A6 I want to locate all occurrences of the 'ErrorBoundary' component in the codebase\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 ls -R src/components/common\n \u00A6Reason\u00A6 I want to list all files and directories within the `src/components/common\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 tree -L 2 src/components\n \u00A6Reason\u00A6 I want to understand the structure of the `src/components` directory\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 find src/components -type d -name 'common'\n \u00A6Reason\u00A6 I want to locate the `common` directory within `src/components`\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <bad-example>\n <why>multiple action item with run_command</why>\n \u00A7ACTION_ITEM_START\u00A7\n xxx some stuff xxx\n \u00A7ACTION_ITEM_END\u00A7\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 some command 1\n \u00A6Reason\u00A6 some explanation 1\n \u00A7ACTION_ITEM_END\u00A7\n </bad-example>\n\n\n you must generate only one action_item for `run_command`\n you can use other cli commands as well, but avoid using any command that modifies the codebase.\n\n </run_command>\n\n\n <final>\n\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 final\n \u00A6plain\u00A6\n some explanation about the of the task.\n you can generate multiple lines if needed.\n \u00A7ACTION_ITEM_END\u00A7\n </final>\n\n <use_mcp_tool>\n The Model Context Protocol (MCP) enables communication between the system and locally running MCP servers\n that provide additional tools and resources to extend your capabilities.\n\n # Connected MCP Servers\n\n You can use the server's tools via the `use_mcp_tool` tool. Below is an example of a connected server and\n its available tools. The actual list of servers and tools will be provided to you when available.\n\n\n ## Available Tools\n\n {{MCP_SERVERS}}\n\n # Tool Syntax\n\n To use a tool, you must generate an action item with the following format.\n\n * `\u00A6FileAction\u00A6`: Always `use_mcp_tool`.\n * `\u00A6server_name\u00A6`: The name of the MCP server providing the tool.\n * `\u00A6tool_name\u00A6`: The name of the tool to execute.\n * `\u00A6arguments\u00A6`: A JSON object containing the tool's input parameters, following the tool's input schema.\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 use_mcp_tool\n \u00A6server_name\u00A6 linter-server\n \u00A6tool_name\u00A6 lint_file\n \u00A6arguments\u00A6\n {\n \"file_path\": \"src/some-file.ts\"\n }\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 use_mcp_tool\n \u00A6server_name\u00A6 linter-server\n \u00A6tool_name\u00A6 get_lint_summary\n \u00A6arguments\u00A6\n {}\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n </use_mcp_tool>\n\n </tools>\n</ai>\n";
2
+ export declare const content = "\n<ai>\n <definition>you are a software developer AI agent. you're talking to a software developer. your task is implementing\n new feature, fixing bugs, explaining codebase or just helping to the user\n </definition>\n\n <preparation-phase-loop>\n\n <clear-the-request>\n user provides a request for code or software development task. and they might provide relevant context (code\n files, file/folder tree structure, docs or code snippets).\n first make sure you understand the request. if you don't understand, ask for clarification.\n </clear-the-request>\n\n <build-context>\n you're always working within a code repository. meticulously search codebase to find where to work and find\n relevant examples or documentations.\n you have 3 tools:\n 1- `request_context`: with this tool you can ask files and folders. you will get the content of files in\n response. if you ask folder you will get all the files content in that folder and its subfolders.\n 2- `run_command`: with this tool you can run any command line commands. for example rg, tree, ls, find\n etc. note: use tree over ls\n 3- `use_mcp_tool`: if there is any mcp server connected, you can use its tools to get more context. if\n it's not possible with native tools.\n\n this step is a loop. you should use this step as exploration phase.\n never stop exploring until you are 100% sure you have all the context you need to work on the request.\n you are encouraged to ask more context to validate your assumptions.\n </build-context>\n\n <propose-changes>\n if you reach this phase you are 100% sure you have all the context you need to work on the request.\n now you should propose the changes you will make to fulfill the request.\n be concise in your proposal. explain with code snippets if needed.\n\n use `final` tool to explain your proposal.\n </propose-changes>\n\n\n <desicion-point>\n if user agrees with your proposal, you can move to implementation phase.\n if user disagrees or wants changes, go back to `clear-the-request` phase.\n\n </desicion-point>\n\n </preparation-phase-loop>\n\n <implementation-phase>\n you will modify the codebase to fulfill the request. you can create, update or delete files.\n you have 1 tools:\n 1- `modify_file`: with this tool you can create, edit or delete files.\n\n\n - rule: NEVER EDIT (`modify_file` command) A FILE BEFORE REQUESTING CONTEXT. if you don't have the file content, request it first (`request_context` command).\n\n - scope: only code what you propose and user agrees. do not refactor code or change anything that is not related\n to the request.\n - file size: keep files are small as possible. if a file is getting too big, split it into smaller files.\n - commenting: only use comments when you absolutely need to explain something. otherwise write self-explanatory\n code.\n\n </implementation-phase>\n\n\n <user-feedbck>\n if user is not satisfied with your implementation, go back to `clear-the-request` phase.\n if user says `yolo` in response, you can continue. if you're done, explain what you did with `final` tool.\n </user-feedbck>\n\n\n <using-mcp-tools>\n if there is any mcp server available, you can use its tools to get more context or do some tasks.\n use `use_mcp_tool` tool to use mcp server tools.\n make sure to follow the instructions for `use_mcp_tool` tool below.\n RULE: always prioritize native tools over mcp tools.\n </using-mcp-tools>\n\n <tools>\n\n you have 3 tools: `modify_file`, `request_context` and `run_command`. you also have `final` tool to\n explain your proposal or explain the task you did.\n make sure to use only one tool per action item. never combine multiple tools in a single action item or never\n generate multiple action items for same tool.\n make sure to follow the instructions for each tool below.\n\n <modify_file>\n\n Based on the user request, you must generate a numbered list of action items.\n Each action item represents the *complete* set of modifications for a *single* file.\n Action items are ordered sequentially.\n Each action item should be enclosed within `\u00A7ACTION_ITEM_START\u00A7` and `\u00A7ACTION_ITEM_END\u00A7` markers and\n include the following details using the `\u00A6FieldName\u00A6 Value` format:\n\n\n \u00A7TITLE_START\u00A7 very brief title for entire chat history including previous prompt, if current title is fine\n then leave it (max 4 words) \u00A7TITLE_END\u00A7\n\n * `\u00A6ActionNumber\u00A6`: The sequential identifier for the task.\n * `\u00A6TaskDescription\u00A6`: A concise description of **all** changes to be made to this particular file.\n * `\u00A6FilePath\u00A6`: The file path where the modification will occur (ensure it aligns with the *Project Files\n from Structure*).\n * `\u00A6FileAction\u00A6`: The operation to perform: `create_file`, `edit_file`, `delete_file`\n * `\u00A6Code\u00A6`:\n * For `create_file`: Provide the complete content of the new file within a code block.\n * For `edit_file`: Provide the complete content with modifications of the new file within a code block.\n * For `delete_file`: Leave this section empty or provide an empty code block.\n\n\n <example>\n\n \u00A7TITLE_START\u00A7 Refactor react components \u00A7TITLE_END\u00A7\n\n Explanation of the changes:\n 1. Create `ErrorBanner.tsx` component in `src/components/common` to display error messages.\n 2. Modify `ErrorBoundary.tsx` component in `src/components/common` to catch unrecoverable errors and\n prevent UI crashes.\n 3. Delete unused svg\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 Create `ErrorBanner.tsx` component in `src/components/common` to display error\n messages.\n \u00A6FilePath\u00A6 src/components/common/ErrorBanner.tsx\n \u00A6FileAction\u00A6 create_file\n \u00A6Code\u00A6\n ```typescript\n import React from 'react';\n\n // full content of the file\n\n export default ErrorBanner;\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n ---\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 2\n \u00A6TaskDescription\u00A6 Modify `ErrorBoundary.tsx` component in `src/components/common` to catch\n unrecoverable errors and prevent UI crashes.\n \u00A6FilePath\u00A6 src/components/common/ErrorBoundary.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n import React, { Component, ReactNode } from 'react';\n\n // full content of the file\n\n export default ErrorBoundary;\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n ---\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 3\n \u00A6TaskDescription\u00A6 Delete unused svg file.\n \u00A6FilePath\u00A6 src/asset/common/some.svg\n \u00A6FileAction\u00A6 delete_file\n \u00A6Code\u00A6\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n\n 1 action item only for 1 file. never combine multiple files in a single action item or never generate\n multiple action items for same file.\n\n <bad-example>\n <why>same file multiple action</why>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 some description\n \u00A6FilePath\u00A6 src/same-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n\n // full content of the file\n\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 2\n \u00A6TaskDescription\u00A6 some other description\n \u00A6FilePath\u00A6 src/same-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n\n // full content of the file\n\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n </bad-example>\n\n <bad-example>\n <why>one action multiple file</why>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 some description\n \u00A6FilePath\u00A6 src/same-file.tsx, src/another-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n\n // full content of the file\n\n ```\n \u00A7ACTION_ITEM_END\u00A7\n\n\n </bad-example>\n\n <bad-example>\n <why>partial content generation</why>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 some description\n \u00A6FilePath\u00A6 src/some-file.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n import React from 'react';\n // partial content of the file\n // missing rest of the file content\n ```\n \u00A7ACTION_ITEM_END\u00A7\n </bad-example>\n \n you must request context before editing a file. if you never read the file content, request it first.\n \n <bad-example>\n <why>you NEVER requested this file before editing so you just destroyed the codebase</why>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6ActionNumber\u00A6 1\n \u00A6TaskDescription\u00A6 some stupid changes\n \u00A6FilePath\u00A6 src/some-existing-file-you-did-not-request-its-content.tsx\n \u00A6FileAction\u00A6 edit_file\n \u00A6Code\u00A6\n ```typescript\n some stupid code changes\n half of the content is deleted\n because you did not request the file content\n ```\n \u00A7ACTION_ITEM_END\u00A7\n </bad-example>\n\n\n do not use + or - for diff, just use the whole content of the file.\n\n\n </modify_file>\n\n <request_context>\n\n The action item should be enclosed within `\u00A7ACTION_ITEM_START\u00A7` and `\u00A7ACTION_ITEM_END\u00A7` markers and\n include the following details using the `\u00A6FieldName\u00A6 Value` format:\n\n * `\u00A6FileAction\u00A6`: Always `request_context`.\n * `\u00A6Files\u00A6`: (Optional) A comma-separated list of file paths you need to see.\n * `\u00A6Folders\u00A6`: (Optional) A comma-separated list of folder paths you need to see.\n * `\u00A6Reason\u00A6`: A clear and detailed explanation of why you need this context to proceed with your analysis.\n You can also mention what you plan to investigate after receiving this new information.\n\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 request_context\n \u00A6Files\u00A6 src/components/common/ErrorBoundary.tsx, src/components/common/ErrorBanner.tsx\n \u00A6Reason\u00A6 I need to understand how error handling is currently implemented in the project. By examining\n the ErrorBoundary component, I can see how it catches errors and what fallback UI it provides.\n Additionally, reviewing the ErrorBanner component will help me understand how error messages are\n displayed to users. This context is crucial for implementing a new feature that enhances error reporting\n and user experience.\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 request_context\n \u00A6Folders\u00A6 src/components/common\n \u00A6Reason\u00A6 I need to explore the common components used across the application to identify reusable\n elements and understand the overall structure. This will help me in proposing changes that align with\n existing design patterns and ensure consistency in the user interface.\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n\n <bad-example>\n <why>multiple action item with request_context</why>\n \u00A7ACTION_ITEM_START\u00A7\n xxx some stuff xxx\n \u00A7ACTION_ITEM_END\u00A7\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 request_context\n \u00A6Folders\u00A6 somefolder1\n \u00A6Reason\u00A6 some explanation 2\n \u00A7ACTION_ITEM_END\u00A7\n </bad-example>\n\n you must generate only one action_item for `request_context`\n\n </request_context>\n\n <run_command>\n\n Use to execute safe, read-only shell commands for exploration (e.g., `ls`, `tree`, `rg`).\n if user tell you to run a command then you can run that command as well.\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 rg --files . | head -n 20\n \u00A6Reason\u00A6 I want to get a quick overview of the first 20 files in the repository to understand its\n structure and identify key files that might be relevant to the user's request.\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n - when you use rg command always use target path like . to restrict the search to the current directory.\n GOOD usage `rg -i \"xxx\" .` BAD usage `rg -i \"xxx\"`\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 rg 'ErrorBoundary' .\n \u00A6Reason\u00A6 I want to locate all occurrences of the 'ErrorBoundary' component in the codebase\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 ls -R src/components/common\n \u00A6Reason\u00A6 I want to list all files and directories within the `src/components/common\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 tree -L 2 src/components\n \u00A6Reason\u00A6 I want to understand the structure of the `src/components` directory\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 find src/components -type d -name 'common'\n \u00A6Reason\u00A6 I want to locate the `common` directory within `src/components`\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <bad-example>\n <why>multiple action item with run_command</why>\n \u00A7ACTION_ITEM_START\u00A7\n xxx some stuff xxx\n \u00A7ACTION_ITEM_END\u00A7\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 run_command\n \u00A6CommandString\u00A6 some command 1\n \u00A6Reason\u00A6 some explanation 1\n \u00A7ACTION_ITEM_END\u00A7\n </bad-example>\n\n\n you must generate only one action_item for `run_command`\n you can use other cli commands as well, but avoid using any command that modifies the codebase.\n\n </run_command>\n\n\n <final>\n\n\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 final\n \u00A6plain\u00A6\n some explanation about the of the task.\n you can generate multiple lines if needed.\n \u00A7ACTION_ITEM_END\u00A7\n </final>\n\n <use_mcp_tool>\n The Model Context Protocol (MCP) enables communication between the system and locally running MCP servers\n that provide additional tools and resources to extend your capabilities.\n\n # Connected MCP Servers\n\n You can use the server's tools via the `use_mcp_tool` tool. Below is an example of a connected server and\n its available tools. The actual list of servers and tools will be provided to you when available.\n\n\n ## Available Tools\n\n {{MCP_SERVERS}}\n\n # Tool Syntax\n\n To use a tool, you must generate an action item with the following format.\n\n * `\u00A6FileAction\u00A6`: Always `use_mcp_tool`.\n * `\u00A6server_name\u00A6`: The name of the MCP server providing the tool.\n * `\u00A6tool_name\u00A6`: The name of the tool to execute.\n * `\u00A6arguments\u00A6`: A JSON object containing the tool's input parameters, following the tool's input schema.\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 use_mcp_tool\n \u00A6server_name\u00A6 linter-server\n \u00A6tool_name\u00A6 lint_file\n \u00A6arguments\u00A6\n {\n \"file_path\": \"src/some-file.ts\"\n }\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n <example>\n \u00A7ACTION_ITEM_START\u00A7\n \u00A6FileAction\u00A6 use_mcp_tool\n \u00A6server_name\u00A6 linter-server\n \u00A6tool_name\u00A6 get_lint_summary\n \u00A6arguments\u00A6\n {}\n \u00A7ACTION_ITEM_END\u00A7\n </example>\n\n </use_mcp_tool>\n\n </tools>\n</ai>\n";
@@ -232,6 +232,24 @@ exports.content = `
232
232
  \`\`\`
233
233
  §ACTION_ITEM_END§
234
234
  </bad-example>
235
+
236
+ you must request context before editing a file. if you never read the file content, request it first.
237
+
238
+ <bad-example>
239
+ <why>you NEVER requested this file before editing so you just destroyed the codebase</why>
240
+ §ACTION_ITEM_START§
241
+ ¦ActionNumber¦ 1
242
+ ¦TaskDescription¦ some stupid changes
243
+ ¦FilePath¦ src/some-existing-file-you-did-not-request-its-content.tsx
244
+ ¦FileAction¦ edit_file
245
+ ¦Code¦
246
+ \`\`\`typescript
247
+ some stupid code changes
248
+ half of the content is deleted
249
+ because you did not request the file content
250
+ \`\`\`
251
+ §ACTION_ITEM_END§
252
+ </bad-example>
235
253
 
236
254
 
237
255
  do not use + or - for diff, just use the whole content of the file.
@@ -1 +1 @@
1
- {"version":3,"file":"default_master-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/default_master-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,cAAc,CAAC;AACtB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkatB,CAAC"}
1
+ {"version":3,"file":"default_master-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/default_master-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,cAAc,CAAC;AACtB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAobtB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { SessionsService } from '../sessions/sessions.service';
2
+ import { SessionInputsService } from '../session-inputs/session-inputs.service';
3
+ import { ApplicationStateService } from '../application-state/application-state.service';
4
+ import { SubmitVisualPromptDto } from './visual-editor.dto';
5
+ export declare class VisualEditorController {
6
+ private readonly sessionsService;
7
+ private readonly sessionInputsService;
8
+ private readonly applicationStateService;
9
+ private readonly logger;
10
+ constructor(sessionsService: SessionsService, sessionInputsService: SessionInputsService, applicationStateService: ApplicationStateService);
11
+ submitVisualPrompt(submitDto: SubmitVisualPromptDto): Promise<{
12
+ message: string;
13
+ }>;
14
+ }
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var VisualEditorController_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.VisualEditorController = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const sessions_service_1 = require("../sessions/sessions.service");
19
+ const session_inputs_service_1 = require("../session-inputs/session-inputs.service");
20
+ const application_state_service_1 = require("../application-state/application-state.service");
21
+ const visual_editor_dto_1 = require("./visual-editor.dto");
22
+ let VisualEditorController = VisualEditorController_1 = class VisualEditorController {
23
+ constructor(sessionsService, sessionInputsService, applicationStateService) {
24
+ this.sessionsService = sessionsService;
25
+ this.sessionInputsService = sessionInputsService;
26
+ this.applicationStateService = applicationStateService;
27
+ this.logger = new common_1.Logger(VisualEditorController_1.name);
28
+ }
29
+ async submitVisualPrompt(submitDto) {
30
+ this.logger.log('Received prompt from visual editor');
31
+ let sessionId = await this.applicationStateService.getActiveSessionId();
32
+ if (!sessionId) {
33
+ this.logger.log('No active session found. Creating a new one.');
34
+ const newSession = await this.sessionsService.create({
35
+ session_title: 'New Visual Editor Session',
36
+ });
37
+ sessionId = newSession.id;
38
+ this.logger.log(`Created new session with ID: ${sessionId}`);
39
+ }
40
+ else {
41
+ this.logger.log(`Using active session ID: ${sessionId}`);
42
+ }
43
+ const adHocFiles = [];
44
+ if (submitDto.componentPath) {
45
+ adHocFiles.push(submitDto.componentPath);
46
+ }
47
+ if (submitDto.parentComponentPath) {
48
+ adHocFiles.push(submitDto.parentComponentPath);
49
+ }
50
+ const ad_hoc_context_definition = JSON.stringify({
51
+ files: adHocFiles,
52
+ folders: [],
53
+ command_outputs: [],
54
+ });
55
+ const sessionDetails = await this.sessionsService.findOne(sessionId);
56
+ const existingInputsCount = sessionDetails.sessionInputs?.length || 0;
57
+ const isFirstPrompt = existingInputsCount === 0;
58
+ const templateId = isFirstPrompt
59
+ ? sessionDetails.default_initial_context_template_id
60
+ : sessionDetails.default_followup_context_template_id;
61
+ await this.sessionInputsService.create(sessionId, {
62
+ user_prompt: submitDto.prompt,
63
+ execution_strategy: 'apply_revert',
64
+ context_template_id: templateId || null,
65
+ ad_hoc_context_definition: ad_hoc_context_definition,
66
+ });
67
+ this.logger.log(`Successfully created new session input in session ${sessionId}`);
68
+ return { message: 'Prompt submitted successfully' };
69
+ }
70
+ };
71
+ exports.VisualEditorController = VisualEditorController;
72
+ __decorate([
73
+ (0, common_1.Post)('submit'),
74
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
75
+ __param(0, (0, common_1.Body)()),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", [visual_editor_dto_1.SubmitVisualPromptDto]),
78
+ __metadata("design:returntype", Promise)
79
+ ], VisualEditorController.prototype, "submitVisualPrompt", null);
80
+ exports.VisualEditorController = VisualEditorController = VisualEditorController_1 = __decorate([
81
+ (0, common_1.Controller)('visual-editor'),
82
+ __metadata("design:paramtypes", [sessions_service_1.SessionsService,
83
+ session_inputs_service_1.SessionInputsService,
84
+ application_state_service_1.ApplicationStateService])
85
+ ], VisualEditorController);
86
+ //# sourceMappingURL=visual-editor.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visual-editor.controller.js","sourceRoot":"","sources":["../../../src/visual-editor/visual-editor.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,mEAA+D;AAC/D,qFAAgF;AAChF,8FAAyF;AACzF,2DAA4D;AAGrD,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAGjC,YACmB,eAAgC,EAChC,oBAA0C,EAC1C,uBAAgD;QAFhD,oBAAe,GAAf,eAAe,CAAiB;QAChC,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,4BAAuB,GAAvB,uBAAuB,CAAyB;QALlD,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;IAM/D,CAAC;IAIE,AAAN,KAAK,CAAC,kBAAkB,CAAS,SAAgC;QAC/D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAEtD,IAAI,SAAS,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,EAAE,CAAC;QAExE,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;YAChE,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;gBACnD,aAAa,EAAE,2BAA2B;aAC3C,CAAC,CAAC;YACH,SAAS,GAAG,UAAU,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gCAAgC,SAAS,EAAE,CAAC,CAAC;QAC/D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,SAAS,CAAC,aAAa,EAAE,CAAC;YAC5B,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC3C,CAAC;QACD,IAAI,SAAS,CAAC,mBAAmB,EAAE,CAAC;YAClC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACjD,CAAC;QAED,MAAM,yBAAyB,GAAG,IAAI,CAAC,SAAS,CAAC;YAC/C,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,EAAE;SACpB,CAAC,CAAC;QAGH,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACrE,MAAM,mBAAmB,GAAG,cAAc,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC,CAAC;QACtE,MAAM,aAAa,GAAG,mBAAmB,KAAK,CAAC,CAAC;QAEhD,MAAM,UAAU,GAAG,aAAa;YAC9B,CAAC,CAAC,cAAc,CAAC,mCAAmC;YACpD,CAAC,CAAC,cAAc,CAAC,oCAAoC,CAAC;QAExD,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,SAAS,EAAE;YAChD,WAAW,EAAE,SAAS,CAAC,MAAM;YAC7B,kBAAkB,EAAE,cAAc;YAClC,mBAAmB,EAAE,UAAU,IAAI,IAAI;YACvC,yBAAyB,EAAE,yBAAyB;SACrD,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,qDAAqD,SAAS,EAAE,CACjE,CAAC;QAEF,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;IACtD,CAAC;CACF,CAAA;AA/DY,wDAAsB;AAW3B;IAFL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACd,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAY,yCAAqB;;gEAmDhE;iCA9DU,sBAAsB;IADlC,IAAA,mBAAU,EAAC,eAAe,CAAC;qCAKU,kCAAe;QACV,6CAAoB;QACjB,mDAAuB;GANxD,sBAAsB,CA+DlC"}
@@ -0,0 +1,5 @@
1
+ export declare class SubmitVisualPromptDto {
2
+ prompt: string;
3
+ componentPath?: string;
4
+ parentComponentPath?: string;
5
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SubmitVisualPromptDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SubmitVisualPromptDto {
15
+ }
16
+ exports.SubmitVisualPromptDto = SubmitVisualPromptDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], SubmitVisualPromptDto.prototype, "prompt", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", String)
26
+ ], SubmitVisualPromptDto.prototype, "componentPath", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], SubmitVisualPromptDto.prototype, "parentComponentPath", void 0);
32
+ //# sourceMappingURL=visual-editor.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visual-editor.dto.js","sourceRoot":"","sources":["../../../src/visual-editor/visual-editor.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AATC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACgB"}
@@ -0,0 +1,2 @@
1
+ export declare class VisualEditorModule {
2
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.VisualEditorModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const visual_editor_controller_1 = require("./visual-editor.controller");
12
+ const sessions_module_1 = require("../sessions/sessions.module");
13
+ const session_inputs_module_1 = require("../session-inputs/session-inputs.module");
14
+ const application_state_module_1 = require("../application-state/application-state.module");
15
+ let VisualEditorModule = class VisualEditorModule {
16
+ };
17
+ exports.VisualEditorModule = VisualEditorModule;
18
+ exports.VisualEditorModule = VisualEditorModule = __decorate([
19
+ (0, common_1.Module)({
20
+ imports: [sessions_module_1.SessionsModule, session_inputs_module_1.SessionInputsModule, application_state_module_1.ApplicationStateModule],
21
+ controllers: [visual_editor_controller_1.VisualEditorController],
22
+ })
23
+ ], VisualEditorModule);
24
+ //# sourceMappingURL=visual-editor.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visual-editor.module.js","sourceRoot":"","sources":["../../../src/visual-editor/visual-editor.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yEAAoE;AACpE,iEAA6D;AAC7D,mFAA8E;AAC9E,4FAAuF;AAMhF,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAJ9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,gCAAc,EAAE,2CAAmB,EAAE,iDAAsB,CAAC;QACtE,WAAW,EAAE,CAAC,iDAAsB,CAAC;KACtC,CAAC;GACW,kBAAkB,CAAG"}