@builder.io/dev-tools 1.24.0-dev.202602061409.e623db468 → 1.24.0-dev.202602061553.6bec740a7

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 (214) hide show
  1. package/cli/index.cjs +18963 -532
  2. package/cli/index.cjs.map +4 -4
  3. package/core/index.cjs +1 -1
  4. package/core/index.mjs +1 -1
  5. package/node/index.cjs +1 -1
  6. package/node/index.mjs +1 -1
  7. package/package.json +3 -1
  8. package/server/index.cjs +18997 -332
  9. package/server/index.mjs +18998 -331
  10. package/types/_tests_/utils.d.ts +35 -48
  11. package/types/cli/abort-signal-any.d.ts +1 -3
  12. package/types/cli/auth/auth-utils.d.ts +1 -3
  13. package/types/cli/auth/auth.d.ts +1 -5
  14. package/types/cli/backup.d.ts +60 -114
  15. package/types/cli/builder-add/interface.d.ts +4 -21
  16. package/types/cli/code-file-utils.d.ts +8 -11
  17. package/types/cli/code.d.ts +3 -13
  18. package/types/cli/codegen.d.ts +0 -8
  19. package/types/cli/credentials.d.ts +45 -61
  20. package/types/cli/detectors/nextjs.d.ts +1 -4
  21. package/types/cli/detectors/svelte.d.ts +1 -4
  22. package/types/cli/detectors/vue.d.ts +1 -4
  23. package/types/cli/download.d.ts +4 -9
  24. package/types/cli/dsi-mcp.d.ts +1 -4
  25. package/types/cli/fetch.d.ts +21 -8
  26. package/types/cli/fetch.test.d.ts +1 -0
  27. package/types/cli/figma-publish.d.ts +17 -34
  28. package/types/cli/figma-utils.d.ts +21 -51
  29. package/types/cli/figma.d.ts +2 -9
  30. package/types/cli/generate.d.ts +11 -14
  31. package/types/cli/incremental-tsc.d.ts +7 -19
  32. package/types/cli/index.d.ts +154 -154
  33. package/types/cli/indexing.d.ts +5 -0
  34. package/types/cli/launch/InitStateMachine.d.ts +89 -156
  35. package/types/cli/launch/config.d.ts +3 -13
  36. package/types/cli/launch/dry-run-backup.d.ts +7 -14
  37. package/types/cli/launch/errors.d.ts +2 -7
  38. package/types/cli/launch/github.d.ts +3 -0
  39. package/types/cli/launch/grafana.d.ts +1 -5
  40. package/types/cli/launch/helpers.d.ts +10 -19
  41. package/types/cli/launch/machine-health.d.ts +3 -8
  42. package/types/cli/launch/proxy.d.ts +4 -11
  43. package/types/cli/launch/server.d.ts +12 -19
  44. package/types/cli/launch/vscode-tunnel-manager.d.ts +68 -77
  45. package/types/cli/launch.d.ts +106 -109
  46. package/types/cli/prettier.d.ts +2 -9
  47. package/types/cli/repo-connect/env-collector.d.ts +11 -16
  48. package/types/cli/repo-connect/file-collector.d.ts +15 -22
  49. package/types/cli/repo-connect/git-detector.d.ts +11 -13
  50. package/types/cli/repo-connect/install-runner.d.ts +5 -8
  51. package/types/cli/repo-connect/package-detector.d.ts +8 -12
  52. package/types/cli/repo-connect/repo-connect.d.ts +1 -4
  53. package/types/cli/repo-indexing/component-discovery.d.ts +17 -30
  54. package/types/cli/repo-indexing/icons.d.ts +24 -36
  55. package/types/cli/repo-indexing/installation.d.ts +14 -22
  56. package/types/cli/repo-indexing/repo-indexing-utils.d.ts +79 -138
  57. package/types/cli/repo-indexing/repo-indexing.d.ts +17 -37
  58. package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
  59. package/types/cli/repo-indexing/tokens.d.ts +25 -44
  60. package/types/cli/repo-indexing/types.d.ts +0 -2
  61. package/types/cli/repo-indexing.d.ts +17 -0
  62. package/types/cli/repo-indexing.mock.d.ts +5 -0
  63. package/types/cli/repo-metrics-utils.d.ts +5 -13
  64. package/types/cli/repo-metrics.d.ts +1 -4
  65. package/types/cli/report/figma-report.d.ts +36 -63
  66. package/types/cli/server-ws.d.ts +32 -40
  67. package/types/cli/spinner.d.ts +4 -4
  68. package/types/cli/track.d.ts +1 -4
  69. package/types/cli/utils/agent-discovery.d.ts +5 -10
  70. package/types/cli/utils/codegen-utils.d.ts +0 -9
  71. package/types/cli/utils/component-group-mdx-prompt.d.ts +1 -2
  72. package/types/cli/utils/dev-server-url-parser.d.ts +12 -0
  73. package/types/cli/utils/dev-server-url-parser.test.d.ts +1 -0
  74. package/types/cli/utils/discovery-test-utils.d.ts +1 -3
  75. package/types/cli/utils/env-capture.d.ts +15 -21
  76. package/types/cli/utils/env-substitution.d.ts +1 -4
  77. package/types/cli/utils/feature-flags.d.ts +1 -3
  78. package/types/cli/utils/file-overrides-manager.d.ts +23 -39
  79. package/types/cli/utils/git.d.ts +16 -28
  80. package/types/cli/utils/hosts-file-manager.d.ts +4 -7
  81. package/types/cli/utils/lock-file.d.ts +7 -10
  82. package/types/cli/utils/parseGitDiff.d.ts +1 -4
  83. package/types/cli/utils/process-tracker.d.ts +51 -85
  84. package/types/cli/utils/repo-indexing-agent-prompt.d.ts +1 -1
  85. package/types/cli/utils/repo-indexing-group-prompts.d.ts +1 -0
  86. package/types/cli/utils/rules-discovery.d.ts +5 -10
  87. package/types/cli/utils/rules-parser.d.ts +1 -5
  88. package/types/cli/utils/terminal-buffer.d.ts +23 -23
  89. package/types/cli/utils/workspace-path-resolver.d.ts +16 -23
  90. package/types/cli/utils/yaml-frontmatter.d.ts +6 -10
  91. package/types/client/client-api.d.ts +10 -42
  92. package/types/client/edit-button/document-listeners.d.ts +1 -3
  93. package/types/client/edit-button/index.d.ts +6 -6
  94. package/types/client/menu/index.d.ts +3 -3
  95. package/types/client/menu/pages/component-detail.d.ts +2 -8
  96. package/types/client/menu/pages/component-input.d.ts +1 -5
  97. package/types/client/menu/pages/component-list.d.ts +1 -4
  98. package/types/client/menu/toggle/menu-toggle.d.ts +1 -4
  99. package/types/client/setup-ui/overview.d.ts +2 -2
  100. package/types/client/tracking.d.ts +11 -11
  101. package/types/client/utils.d.ts +3 -5
  102. package/types/common/ast/app-dependencies.d.ts +2 -8
  103. package/types/common/ast/component-info.d.ts +6 -26
  104. package/types/common/ast/component-input-types.d.ts +9 -28
  105. package/types/common/ast/component-registry.d.ts +8 -23
  106. package/types/common/ast/convert-values.d.ts +8 -40
  107. package/types/common/ast/ensure-array-statement.d.ts +3 -7
  108. package/types/common/ast/ensure-comments.d.ts +1 -5
  109. package/types/common/ast/ensure-imports.d.ts +5 -10
  110. package/types/common/ast/exported-statements.d.ts +4 -8
  111. package/types/common/ast/imported-statements.d.ts +1 -5
  112. package/types/common/ast/normalize-statements.d.ts +3 -12
  113. package/types/common/ast/remove-unused-imports.d.ts +1 -4
  114. package/types/common/ast/transform.d.ts +3 -13
  115. package/types/common/ast/utils.d.ts +19 -42
  116. package/types/common/builder/builder-api.d.ts +23 -32
  117. package/types/common/builder/builder-sdks.d.ts +8 -10
  118. package/types/common/builder/content-generation.d.ts +7 -10
  119. package/types/common/builder/content-ids.d.ts +1 -2
  120. package/types/common/cache.d.ts +1 -4
  121. package/types/common/constants.d.ts +1 -2
  122. package/types/common/dotenv.d.ts +5 -24
  123. package/types/common/errors.d.ts +22 -50
  124. package/types/common/fs.d.ts +4 -17
  125. package/types/common/interactive-select-files.d.ts +2 -16
  126. package/types/common/mem-sys.d.ts +5 -7
  127. package/types/common/node-request.d.ts +4 -4
  128. package/types/common/path.d.ts +3 -1
  129. package/types/common/test-utils.d.ts +7 -21
  130. package/types/common/typescript.d.ts +7 -26
  131. package/types/common/utils.d.ts +8 -36
  132. package/types/core/adapters/angular/angular-api-key.d.ts +6 -29
  133. package/types/core/adapters/angular/angular-app-module-imports.d.ts +2 -12
  134. package/types/core/adapters/angular/angular-app-routes-update.d.ts +1 -6
  135. package/types/core/adapters/angular/angular-components.d.ts +12 -40
  136. package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +3 -9
  137. package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +4 -16
  138. package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +1 -3
  139. package/types/core/adapters/angular/angular-registry-parse.d.ts +10 -22
  140. package/types/core/adapters/angular/angular-registry.d.ts +2 -15
  141. package/types/core/adapters/angular/angular-test-utils.d.ts +4 -8
  142. package/types/core/adapters/angular/index.d.ts +12 -20
  143. package/types/core/adapters/angular/types.d.ts +5 -5
  144. package/types/core/adapters/next/index.d.ts +18 -26
  145. package/types/core/adapters/next/next-api-key.d.ts +1 -4
  146. package/types/core/adapters/next/next-component-info.d.ts +2 -9
  147. package/types/core/adapters/next/next-components.d.ts +1 -4
  148. package/types/core/adapters/next/next-ensure-builder-setup.d.ts +2 -6
  149. package/types/core/adapters/next/next-ensure-config-plugin.d.ts +1 -5
  150. package/types/core/adapters/next/next-registry-parse.d.ts +8 -21
  151. package/types/core/adapters/next/next-registry.d.ts +2 -15
  152. package/types/core/adapters/next/next-test-utils.d.ts +11 -21
  153. package/types/core/adapters/qwik-city/index.d.ts +6 -14
  154. package/types/core/adapters/qwik-city/qwik-api-key.d.ts +1 -4
  155. package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +1 -4
  156. package/types/core/adapters/qwik-city/qwik-components.d.ts +8 -23
  157. package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +2 -6
  158. package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +1 -5
  159. package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +10 -22
  160. package/types/core/adapters/qwik-city/qwik-registry.d.ts +2 -15
  161. package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +4 -8
  162. package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +1 -3
  163. package/types/core/adapters/react/index.d.ts +11 -19
  164. package/types/core/adapters/react/react-api-key.d.ts +1 -4
  165. package/types/core/adapters/react/react-builder-sdk-setup.d.ts +1 -3
  166. package/types/core/adapters/react/react-component-info.d.ts +2 -9
  167. package/types/core/adapters/react/react-components.d.ts +11 -37
  168. package/types/core/adapters/react/react-ensure-builder-setup.d.ts +2 -6
  169. package/types/core/adapters/react/react-registry-parse.d.ts +8 -21
  170. package/types/core/adapters/react/react-registry.d.ts +2 -15
  171. package/types/core/adapters/react/react-test-utils.d.ts +5 -11
  172. package/types/core/adapters/react/react-ts-program.d.ts +1 -3
  173. package/types/core/adapters/remix/index.d.ts +11 -19
  174. package/types/core/adapters/remix/remix-api-key.d.ts +1 -4
  175. package/types/core/adapters/remix/remix-components.d.ts +1 -4
  176. package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +3 -9
  177. package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +1 -5
  178. package/types/core/adapters/remix/remix-registry-parse.d.ts +10 -22
  179. package/types/core/adapters/remix/remix-registry.d.ts +2 -15
  180. package/types/core/adapters/remix/remix-test-utils.d.ts +5 -11
  181. package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +2 -12
  182. package/types/core/adapters/vue/index.d.ts +12 -20
  183. package/types/core/adapters/vue/vue-api-key.d.ts +1 -4
  184. package/types/core/adapters/vue/vue-components.d.ts +2 -10
  185. package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +3 -7
  186. package/types/core/adapters/vue/vue-registry-parse.d.ts +9 -19
  187. package/types/core/adapters/vue/vue-registry.d.ts +3 -6
  188. package/types/core/adapters/webpack/webpack-config-helpers.d.ts +3 -8
  189. package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +1 -5
  190. package/types/core/create-dev-tools.d.ts +1 -4
  191. package/types/core/detect-frameworks.d.ts +2 -7
  192. package/types/core/ensure-config-plugin.d.ts +2 -6
  193. package/types/core/find-dependencies.d.ts +3 -6
  194. package/types/core/import-export-registry.d.ts +2 -9
  195. package/types/core/index.d.ts +3 -18
  196. package/types/figma/index.d.ts +64 -95
  197. package/types/node/node-sys.d.ts +6 -13
  198. package/types/remix/index.d.ts +3 -5
  199. package/types/server/auth.d.ts +1 -4
  200. package/types/server/builder-connect.d.ts +6 -21
  201. package/types/server/client-script.d.ts +2 -6
  202. package/types/server/create-dev-tools-server.d.ts +1 -3
  203. package/types/server/dev-tools-api.d.ts +1 -4
  204. package/types/server/dev-tools-http-server.d.ts +1 -3
  205. package/types/server/index.d.ts +1 -28
  206. package/types/server/request-handler.d.ts +1 -6
  207. package/types/tsconfig.tsbuildinfo +1 -1
  208. package/types/types/codegen-server.d.ts +1 -1
  209. package/types/types/connection-tracker.d.ts +34 -34
  210. package/types/types/proxy-middleware.d.ts +15 -25
  211. package/types/types/websocket-types.d.ts +7 -9
  212. package/types/types.d.ts +358 -387
  213. package/types/vite/main.d.ts +1 -1
  214. package/types/webpack/main.d.ts +5 -5
@@ -1,11 +1,4 @@
1
- import {
2
- ChildProcess,
3
- type ChildProcessWithoutNullStreams,
4
- type ChildProcessByStdio,
5
- type SpawnOptions,
6
- type StdioPipe,
7
- type StdioNull,
8
- } from "child_process";
1
+ import { ChildProcess, type ChildProcessWithoutNullStreams, type ChildProcessByStdio, type SpawnOptions, type StdioPipe, type StdioNull } from "child_process";
9
2
  import type { Readable } from "stream";
10
3
  import type { DevToolsSys } from "../../types";
11
4
  import type { DevCommandProcess } from "../launch/dev-server-orchestrator";
@@ -14,81 +7,65 @@ import type { DevCommandProcess } from "../launch/dev-server-orchestrator";
14
7
  * and ensures they are killed when the main process exits
15
8
  */
16
9
  declare class ProcessTracker {
17
- private processes;
18
- private cleanupHandlersRegistered;
19
- constructor();
20
- /**
21
- * Register a spawned process for tracking and cleanup
22
- */
23
- track(childProcess: ChildProcess): void;
24
- /**
25
- * Untrack a process (useful if you're managing it manually)
26
- */
27
- untrack(childProcess: ChildProcess): void;
28
- /**
29
- * Kill all tracked processes
30
- * @param sys - DevToolsSys for logging and Sentry integration
31
- */
32
- killAll(sys?: DevToolsSys): Promise<void>;
33
- /**
34
- * Register cleanup handlers for various exit signals
35
- */
36
- private registerCleanupHandlers;
37
- /**
38
- * Get the number of tracked processes
39
- */
40
- get count(): number;
10
+ private processes;
11
+ private cleanupHandlersRegistered;
12
+ constructor();
13
+ /**
14
+ * Register a spawned process for tracking and cleanup
15
+ */
16
+ track(childProcess: ChildProcess): void;
17
+ /**
18
+ * Untrack a process (useful if you're managing it manually)
19
+ */
20
+ untrack(childProcess: ChildProcess): void;
21
+ /**
22
+ * Kill all tracked processes
23
+ * @param sys - DevToolsSys for logging and Sentry integration
24
+ */
25
+ killAll(sys?: DevToolsSys): Promise<void>;
26
+ /**
27
+ * Register cleanup handlers for various exit signals
28
+ */
29
+ private registerCleanupHandlers;
30
+ /**
31
+ * Get the number of tracked processes
32
+ */
33
+ get count(): number;
41
34
  }
42
35
  export declare const processTracker: ProcessTracker;
43
36
  /**
44
37
  * Options for trackedSpawn function
45
38
  */
46
39
  export interface TrackedSpawnOptions {
47
- /** The command to run */
48
- command: string;
49
- /** Arguments for the command */
50
- args?: readonly string[];
51
- /** Spawn options */
52
- options?: SpawnOptions;
40
+ /** The command to run */
41
+ command: string;
42
+ /** Arguments for the command */
43
+ args?: readonly string[];
44
+ /** Spawn options */
45
+ options?: SpawnOptions;
53
46
  }
54
47
  /**
55
48
  * Wrapper around child_process.spawn that automatically tracks the spawned process
56
49
  * and ensures it gets killed when the main process exits
57
50
  */
58
- export declare function trackedSpawn(
59
- config: TrackedSpawnOptions & {
60
- options: SpawnOptions & {
61
- stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
62
- };
63
- },
64
- ): ChildProcessWithoutNullStreams;
65
- export declare function trackedSpawn(
66
- config: TrackedSpawnOptions & {
67
- options: SpawnOptions & {
68
- stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
69
- };
70
- },
71
- ): ChildProcessByStdio<null, Readable, Readable>;
51
+ export declare function trackedSpawn(config: TrackedSpawnOptions & {
52
+ options: SpawnOptions & {
53
+ stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
54
+ };
55
+ }): ChildProcessWithoutNullStreams;
56
+ export declare function trackedSpawn(config: TrackedSpawnOptions & {
57
+ options: SpawnOptions & {
58
+ stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
59
+ };
60
+ }): ChildProcessByStdio<null, Readable, Readable>;
72
61
  export declare function trackedSpawn(config: TrackedSpawnOptions): ChildProcess;
73
- export declare function safeSpawn(
74
- shell: string,
75
- command: string,
76
- options: SpawnOptions & {
77
- stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
78
- },
79
- ): ChildProcessWithoutNullStreams;
80
- export declare function safeSpawn(
81
- shell: string,
82
- command: string,
83
- options: SpawnOptions & {
84
- stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
85
- },
86
- ): ChildProcessByStdio<null, Readable, Readable>;
87
- export declare function safeSpawn(
88
- shell: string,
89
- command: string,
90
- options: SpawnOptions,
91
- ): ChildProcess;
62
+ export declare function safeSpawn(shell: string, command: string, options: SpawnOptions & {
63
+ stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
64
+ }): ChildProcessWithoutNullStreams;
65
+ export declare function safeSpawn(shell: string, command: string, options: SpawnOptions & {
66
+ stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
67
+ }): ChildProcessByStdio<null, Readable, Readable>;
68
+ export declare function safeSpawn(shell: string, command: string, options: SpawnOptions): ChildProcess;
92
69
  export declare const getTempFolder: () => string;
93
70
  export declare const cleanupTempFolder: () => boolean;
94
71
  /**
@@ -98,19 +75,13 @@ export declare const isMultiLineCommand: (command: string) => boolean;
98
75
  /**
99
76
  * Creates a temporary script file for multi-line commands
100
77
  */
101
- export declare const createTempScript: (
102
- command: string,
103
- shell: string,
104
- ) => string;
78
+ export declare const createTempScript: (command: string, shell: string) => string;
105
79
  export declare const getTempScriptPath: (extension: string) => string;
106
80
  /**
107
81
  * Cleans up a temporary script file
108
82
  */
109
83
  export declare const cleanupTempScript: (scriptPath: string) => void;
110
- export declare const getCommandWithShellArgs: (
111
- command: string,
112
- shell: string,
113
- ) => string[];
84
+ export declare const getCommandWithShellArgs: (command: string, shell: string) => string[];
114
85
  /**
115
86
  * Checks if a process with the given PID is still running.
116
87
  * Uses process.kill(pid, 0) which sends a signal 0 to check process existence.
@@ -118,10 +89,5 @@ export declare const getCommandWithShellArgs: (
118
89
  * @returns true if the process is alive, false otherwise
119
90
  */
120
91
  export declare function isProcessAlive(pid: number): boolean;
121
- export declare function killProcess(
122
- sys: DevToolsSys | undefined,
123
- procOrPid: ChildProcess | DevCommandProcess | number | undefined,
124
- abortSignal?: AbortSignal,
125
- timeout?: number,
126
- ): Promise<Error | null>;
92
+ export declare function killProcess(sys: DevToolsSys | undefined, procOrPid: ChildProcess | DevCommandProcess | number | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<Error | null>;
127
93
  export {};
@@ -1 +1 @@
1
- export declare const REPO_INDEXING_AGENT_PROMPT = "# Design System Component Reference\n\nThis document provides a comprehensive overview of the design system's component architecture and available components for code generation and development reference.\n\n## System Architecture\n\nThe design system follows a modular component-based architecture where each component provides specific functionality. Components are organized into logical groups that can work independently or in combination with other components.\n\n### Component Organization Principles\n\n- **Single Responsibility**: Each component serves a specific purpose\n- **Composability**: Components can be combined to create complex interfaces\n- **Consistency**: All components follow the same design patterns and API conventions\n- **Accessibility**: Components are built with accessibility standards in mind\n\n## Documentation Structure\n\nFor detailed documentation on any component, refer to the corresponding MDX file in the `design-system-docs` folder. The documentation files follow the naming convention:\n\n```\ndesign-system-docs/[componentname].mdx\n```\n\nFor example:\n- `design-system-docs/Button.mdx` - Detailed documentation for Button component\n- `design-system-docs/Table.mdx` - Detailed documentation for Table component\n- `design-system-docs/AnnotationContext.mdx` - Detailed documentation for AnnotationContext\n- `design-system-docs/AppLayout.mdx` - Detailed documentation for AppLayout component\n\nThese MDX files contain comprehensive information including:\n- Component API documentation\n- Usage examples\n- Props and configuration options\n- Best practices and implementation guidelines\n- Accessibility requirements\n- Integration patterns with other components\n\n## Components\n\n{{COMPONENTS}}\n{{ICONS}}\n{{TOKENS}}\n\n## Usage Guidelines\n\n### Component Dependencies\n- Most components are self-contained and can be used independently\n- Identify any components that require multiple components to work together\n- Some components work better in combination (e.g., Form + FormField, Table + Pagination)\n\n### Integration Patterns\n- Layout components typically serve as containers for other components\n- Form controls should be wrapped in FormField components for proper labeling\n- Navigation components can be used independently or as part of larger layout structures\n- Data display components can be enhanced with interactive elements like buttons and popovers\n\n### Accessibility Considerations\n- All components are built with accessibility in mind\n- Use semantic HTML structures provided by the components\n- Leverage built-in ARIA attributes and keyboard navigation\n- The LiveRegion component provides additional accessibility announcements when needed\n\n### Responsive Design\n- Layout components provide responsive behavior out of the box\n- Grid and ColumnLayout components adapt to different screen sizes\n- Mobile-friendly navigation patterns are built into navigation components\n\n## Usage Reference\n\nThis reference should be used to understand the available components and their intended purposes when generating code or building applications with this design system. For specific implementation details, always consult the corresponding MDX documentation file in the `design-system-docs` folder.";
1
+ export declare const REPO_INDEXING_AGENT_PROMPT = "# Design System Component Reference\n\nThis document provides a comprehensive overview of the design system's component architecture and available components for code generation and development reference.\n\n## System Architecture\n\nThe design system follows a modular component-based architecture where each component provides specific functionality. Components are organized into logical groups that can work independently or in combination with other components.\n\n### Component Organization Principles\n\n- **Single Responsibility**: Each component serves a specific purpose\n- **Composability**: Components can be combined to create complex interfaces\n- **Consistency**: All components follow the same design patterns and API conventions\n- **Accessibility**: Components are built with accessibility standards in mind\n\n## Documentation Structure\n\nFor detailed documentation on any component, refer to the corresponding MDX file in the `design-system-docs` folder. The documentation files follow the naming convention:\n\n```\ndesign-system-docs/[componentname].mdx\n```\n\nFor example:\n- `design-system-docs/button.mdx` - Detailed documentation for Button component\n- `design-system-docs/table.mdx` - Detailed documentation for Table component\n- `design-system-docs/annotationcontext.mdx` - Detailed documentation for AnnotationContext\n- `design-system-docs/applayout.mdx` - Detailed documentation for AppLayout component\n\nThese MDX files contain comprehensive information including:\n- Component API documentation\n- Usage examples\n- Props and configuration options\n- Best practices and implementation guidelines\n- Accessibility requirements\n- Integration patterns with other components\n\n## Components\n\n{{COMPONENTS}}\n{{ICONS}}\n{{TOKENS}}\n\n## Usage Guidelines\n\n### Component Dependencies\n- Most components are self-contained and can be used independently\n- Identify any components that require multiple components to work together\n- Some components work better in combination (e.g., Form + FormField, Table + Pagination)\n\n### Integration Patterns\n- Layout components typically serve as containers for other components\n- Form controls should be wrapped in FormField components for proper labeling\n- Navigation components can be used independently or as part of larger layout structures\n- Data display components can be enhanced with interactive elements like buttons and popovers\n\n### Accessibility Considerations\n- All components are built with accessibility in mind\n- Use semantic HTML structures provided by the components\n- Leverage built-in ARIA attributes and keyboard navigation\n- The LiveRegion component provides additional accessibility announcements when needed\n\n### Responsive Design\n- Layout components provide responsive behavior out of the box\n- Grid and ColumnLayout components adapt to different screen sizes\n- Mobile-friendly navigation patterns are built into navigation components\n\n## Usage Reference\n\nThis reference should be used to understand the available components and their intended purposes when generating code or building applications with this design system. For specific implementation details, always consult the corresponding MDX documentation file in the `design-system-docs` folder.";
@@ -0,0 +1 @@
1
+ export declare const REPO_INDEXING_GROUP_PROMPT: string;
@@ -20,14 +20,9 @@ import type { CustomInstruction } from "$/ai-utils";
20
20
  * @param rootDir - Root directory to stop search
21
21
  * @returns Array of discovered custom instructions (both rules and skills)
22
22
  */
23
- export declare function getCustomInstructions({
24
- sys,
25
- projectDir,
26
- currentDir,
27
- rootDir,
28
- }: {
29
- sys: DevToolsSys;
30
- projectDir: string;
31
- currentDir: string;
32
- rootDir: string;
23
+ export declare function getCustomInstructions({ sys, projectDir, currentDir, rootDir, }: {
24
+ sys: DevToolsSys;
25
+ projectDir: string;
26
+ currentDir: string;
27
+ rootDir: string;
33
28
  }): Promise<CustomInstruction[]>;
@@ -14,8 +14,4 @@ import type { CustomInstruction } from "$/ai-utils";
14
14
  * @param hashFunction - Optional hash function for generating unique IDs
15
15
  * @returns Parsed CustomInstruction or null
16
16
  */
17
- export declare function parseCustomInstructionFile(
18
- fileContent: string,
19
- filePath: string,
20
- hashFunction?: (content: string) => string,
21
- ): CustomInstruction | null;
17
+ export declare function parseCustomInstructionFile(fileContent: string, filePath: string, hashFunction?: (content: string) => string): CustomInstruction | null;
@@ -3,27 +3,27 @@
3
3
  * to properly represent what would be shown in a real terminal
4
4
  */
5
5
  export declare class TerminalBuffer {
6
- private lines;
7
- private currentLine;
8
- private currentColumn;
9
- private maxLines;
10
- private maxColumns;
11
- private chunks;
12
- constructor(maxLines?: number, maxColumns?: number);
13
- write(data: string): void;
14
- private ensureLineExists;
15
- getWrite(): string;
16
- getContent(): string;
17
- clear(): void;
18
- /**
19
- * Get current cursor position for testing/debugging
20
- */
21
- getCursorPosition(): {
22
- line: number;
23
- column: number;
24
- };
25
- /**
26
- * Get the current number of lines for testing/debugging
27
- */
28
- getLineCount(): number;
6
+ private lines;
7
+ private currentLine;
8
+ private currentColumn;
9
+ private maxLines;
10
+ private maxColumns;
11
+ private chunks;
12
+ constructor(maxLines?: number, maxColumns?: number);
13
+ write(data: string): void;
14
+ private ensureLineExists;
15
+ getWrite(): string;
16
+ getContent(): string;
17
+ clear(): void;
18
+ /**
19
+ * Get current cursor position for testing/debugging
20
+ */
21
+ getCursorPosition(): {
22
+ line: number;
23
+ column: number;
24
+ };
25
+ /**
26
+ * Get the current number of lines for testing/debugging
27
+ */
28
+ getLineCount(): number;
29
29
  }
@@ -1,19 +1,16 @@
1
- import type {
2
- WorkspaceFolder,
3
- WorkspaceConfiguration,
4
- } from "@builder.io/ai-utils";
1
+ import type { WorkspaceFolder, WorkspaceConfiguration } from "@builder.io/ai-utils";
5
2
  import type { DevToolsSys } from "../../types";
6
3
  export interface ResolveWorkspacePathOptions {
7
- filePath: string;
8
- forceWorkspace?: boolean;
9
- workspace?: WorkspaceConfiguration;
10
- workingDirectory: string;
11
- sys: DevToolsSys;
12
- canCollapseWorkspace?: boolean;
4
+ filePath: string;
5
+ forceWorkspace?: boolean;
6
+ workspace?: WorkspaceConfiguration;
7
+ workingDirectory: string;
8
+ sys: DevToolsSys;
9
+ canCollapseWorkspace?: boolean;
13
10
  }
14
11
  export interface ResolveWorkspacePathResult {
15
- resolvedPath: string;
16
- workspaceFolder?: WorkspaceFolder;
12
+ resolvedPath: string;
13
+ workspaceFolder?: WorkspaceFolder;
17
14
  }
18
15
  /**
19
16
  * Resolves a workspace file path to its actual file system path.
@@ -52,15 +49,13 @@ export interface ResolveWorkspacePathResult {
52
49
  * // }
53
50
  * ```
54
51
  */
55
- export declare function resolveWorkspacePath(
56
- options: ResolveWorkspacePathOptions,
57
- ): ResolveWorkspacePathResult;
52
+ export declare function resolveWorkspacePath(options: ResolveWorkspacePathOptions): ResolveWorkspacePathResult;
58
53
  export interface AbsolutePathToWorkspaceUrlOptions {
59
- absolutePath: string;
60
- workspace?: WorkspaceConfiguration;
61
- workingDirectory: string;
62
- sys: DevToolsSys;
63
- canCollapseWorkspace?: boolean;
54
+ absolutePath: string;
55
+ workspace?: WorkspaceConfiguration;
56
+ workingDirectory: string;
57
+ sys: DevToolsSys;
58
+ canCollapseWorkspace?: boolean;
64
59
  }
65
60
  /**
66
61
  * Converts an absolute file system path to a workspace URL if possible.
@@ -94,6 +89,4 @@ export interface AbsolutePathToWorkspaceUrlOptions {
94
89
  * // Returns: 'frontend/src/components/Button.tsx'
95
90
  * ```
96
91
  */
97
- export declare function absolutePathToWorkspaceUrl(
98
- options: AbsolutePathToWorkspaceUrlOptions,
99
- ): string | undefined;
92
+ export declare function absolutePathToWorkspaceUrl(options: AbsolutePathToWorkspaceUrlOptions): string | undefined;
@@ -3,8 +3,8 @@
3
3
  * Supports both simple key-value pairs and arrays
4
4
  */
5
5
  export interface YamlFrontmatterResult<T = Record<string, any>> {
6
- frontmatter: T;
7
- body: string;
6
+ frontmatter: T;
7
+ body: string;
8
8
  }
9
9
  /**
10
10
  * Checks if content has YAML frontmatter
@@ -14,23 +14,19 @@ export declare function hasYamlFrontmatter(content: string): boolean;
14
14
  * Parses YAML frontmatter from a string
15
15
  * Handles simple YAML: key-value pairs, arrays, and comments
16
16
  */
17
- export declare function parseYamlFrontmatter(
18
- yamlContent: string,
19
- ): Record<string, any>;
17
+ export declare function parseYamlFrontmatter(yamlContent: string): Record<string, any>;
20
18
  /**
21
19
  * Extracts YAML frontmatter and body from Markdown content
22
20
  * @param content - The raw Markdown content with frontmatter
23
21
  * @returns Object with frontmatter and body, or null if no frontmatter found
24
22
  */
25
23
  export declare function extractYamlFrontmatter(content: string): {
26
- frontmatterContent: string;
27
- body: string;
24
+ frontmatterContent: string;
25
+ body: string;
28
26
  } | null;
29
27
  /**
30
28
  * Parse Markdown file with YAML frontmatter
31
29
  * @param content - The raw file content
32
30
  * @returns Parsed frontmatter and body
33
31
  */
34
- export declare function parseMarkdownWithYaml<T = Record<string, any>>(
35
- content: string,
36
- ): YamlFrontmatterResult<T>;
32
+ export declare function parseMarkdownWithYaml<T = Record<string, any>>(content: string): YamlFrontmatterResult<T>;
@@ -1,44 +1,12 @@
1
- import type {
2
- ComponentRegistry,
3
- ConnectedBuilder,
4
- GetRegistryOptions,
5
- LaunchEditorFile,
6
- LoadComponentOptions,
7
- LocalConfig,
8
- RegisterComponentOptions,
9
- SetComponentInfoOptions,
10
- SetComponentInputOptions,
11
- UnregisterComponentOptions,
12
- ValidatedBuilder,
13
- } from "../types";
14
- export declare const apiConnectBuilder: (
15
- publicApiKey: string,
16
- privateAuthKey: string,
17
- kind: string | null,
18
- ) => Promise<ConnectedBuilder>;
1
+ import type { ComponentRegistry, ConnectedBuilder, GetRegistryOptions, LaunchEditorFile, LoadComponentOptions, LocalConfig, RegisterComponentOptions, SetComponentInfoOptions, SetComponentInputOptions, UnregisterComponentOptions, ValidatedBuilder } from "../types";
2
+ export declare const apiConnectBuilder: (publicApiKey: string, privateAuthKey: string, kind: string | null) => Promise<ConnectedBuilder>;
19
3
  export declare const apiValidateBuilder: () => Promise<ValidatedBuilder>;
20
- export declare const apiLaunchEditor: (
21
- file: LaunchEditorFile,
22
- ) => Promise<unknown>;
23
- export declare const apiRegistry: (
24
- opts?: GetRegistryOptions,
25
- ) => Promise<ComponentRegistry>;
26
- export declare const apiLoadComponent: (
27
- opts: LoadComponentOptions,
28
- ) => Promise<ComponentRegistry>;
29
- export declare const apiRegisterComponent: (
30
- opts: RegisterComponentOptions,
31
- ) => Promise<ComponentRegistry>;
32
- export declare const apiSetComponentInfo: (
33
- opts: SetComponentInfoOptions,
34
- ) => Promise<ComponentRegistry>;
35
- export declare const apiSetComponentInput: (
36
- opts: SetComponentInputOptions,
37
- ) => Promise<ComponentRegistry>;
38
- export declare const apiUnregisterComponent: (
39
- opts: UnregisterComponentOptions,
40
- ) => Promise<ComponentRegistry>;
41
- export declare const apiDevToolsEnabled: (
42
- enabled: boolean,
43
- ) => Promise<ComponentRegistry>;
4
+ export declare const apiLaunchEditor: (file: LaunchEditorFile) => Promise<unknown>;
5
+ export declare const apiRegistry: (opts?: GetRegistryOptions) => Promise<ComponentRegistry>;
6
+ export declare const apiLoadComponent: (opts: LoadComponentOptions) => Promise<ComponentRegistry>;
7
+ export declare const apiRegisterComponent: (opts: RegisterComponentOptions) => Promise<ComponentRegistry>;
8
+ export declare const apiSetComponentInfo: (opts: SetComponentInfoOptions) => Promise<ComponentRegistry>;
9
+ export declare const apiSetComponentInput: (opts: SetComponentInputOptions) => Promise<ComponentRegistry>;
10
+ export declare const apiUnregisterComponent: (opts: UnregisterComponentOptions) => Promise<ComponentRegistry>;
11
+ export declare const apiDevToolsEnabled: (enabled: boolean) => Promise<ComponentRegistry>;
44
12
  export declare const apiLocalConfig: () => Promise<LocalConfig>;
@@ -1,4 +1,2 @@
1
1
  import type { BuilderDevToolsEditButton } from ".";
2
- export declare function initDocumentListeners(
3
- editButton: BuilderDevToolsEditButton,
4
- ): void;
2
+ export declare function initDocumentListeners(editButton: BuilderDevToolsEditButton): void;
@@ -1,8 +1,8 @@
1
1
  export declare class BuilderDevToolsEditButton extends HTMLElement {
2
- openInBuilder: HTMLAnchorElement | null;
3
- block: HTMLElement | null;
4
- constructor();
5
- connectedCallback(): void;
6
- show(contentElm: HTMLElement, blockElm: HTMLElement): string | null;
7
- hide(): void;
2
+ openInBuilder: HTMLAnchorElement | null;
3
+ block: HTMLElement | null;
4
+ constructor();
5
+ connectedCallback(): void;
6
+ show(contentElm: HTMLElement, blockElm: HTMLElement): string | null;
7
+ hide(): void;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  export declare class BuilderDevToolsMenu extends HTMLElement {
2
- constructor();
3
- connectedCallback(): void;
4
- highlightOpener(): void;
2
+ constructor();
3
+ connectedCallback(): void;
4
+ highlightOpener(): void;
5
5
  }
@@ -1,10 +1,4 @@
1
1
  import type { ComponentInfo } from "../../../types";
2
2
  export declare function initComponentDetailSection(shadow: ShadowRoot): void;
3
- export declare function loadComponentDetail(
4
- shadow: ShadowRoot,
5
- opt: "load" | "update",
6
- ): Promise<void>;
7
- export declare function renderComponentDetail(
8
- shadow: ShadowRoot,
9
- cmpId: string,
10
- ): ComponentInfo | null;
3
+ export declare function loadComponentDetail(shadow: ShadowRoot, opt: "load" | "update"): Promise<void>;
4
+ export declare function renderComponentDetail(shadow: ShadowRoot, cmpId: string): ComponentInfo | null;
@@ -1,7 +1,3 @@
1
1
  import type { ComponentInput } from "../../../types";
2
2
  export declare function initComponentInputSection(shadow: ShadowRoot): void;
3
- export declare function renderComponentInput(
4
- shadow: ShadowRoot,
5
- cmpId: string,
6
- propName: string,
7
- ): ComponentInput | null;
3
+ export declare function renderComponentInput(shadow: ShadowRoot, cmpId: string, propName: string): ComponentInput | null;
@@ -1,7 +1,4 @@
1
1
  import type { ComponentInfo } from "../../../types";
2
2
  export declare function initComponentListSection(shadow: ShadowRoot): void;
3
3
  export declare function loadComponentsSection(shadow: ShadowRoot): void;
4
- export declare function renderComponentList(
5
- shadow: ShadowRoot,
6
- filteredComponents?: ComponentInfo[],
7
- ): void;
4
+ export declare function renderComponentList(shadow: ShadowRoot, filteredComponents?: ComponentInfo[]): void;
@@ -1,5 +1,2 @@
1
1
  export declare const initMenuToggle: (shadow: ShadowRoot) => void;
2
- export declare const openMenu: (
3
- shadow: ShadowRoot,
4
- openDevToolsMenu: boolean,
5
- ) => void;
2
+ export declare const openMenu: (shadow: ShadowRoot, openDevToolsMenu: boolean) => void;
@@ -1,4 +1,4 @@
1
1
  export declare class BuilderOverviewStep extends HTMLElement {
2
- constructor();
3
- connectedCallback(): void;
2
+ constructor();
3
+ connectedCallback(): void;
4
4
  }
@@ -6,17 +6,17 @@ export declare const getTracking: () => ClientTracking;
6
6
  export declare const hasCTA: (ctaName: string) => boolean;
7
7
  export declare const setCTA: (ctaName: string) => ClientTracking;
8
8
  interface ClientTracking {
9
- /**
10
- * first time visit timestamp
11
- */
12
- firstVisitTs: number;
13
- /**
14
- * Name of the call to actions and timestamps when they happened
15
- */
16
- ctas: {
17
- [ctaName: string]: number;
18
- };
19
- builderUserId: string;
9
+ /**
10
+ * first time visit timestamp
11
+ */
12
+ firstVisitTs: number;
13
+ /**
14
+ * Name of the call to actions and timestamps when they happened
15
+ */
16
+ ctas: {
17
+ [ctaName: string]: number;
18
+ };
19
+ builderUserId: string;
20
20
  }
21
21
  export type TriggerName = "init" | "menuOpen" | "menuClose" | "registryUpdate";
22
22
  export {};
@@ -6,11 +6,9 @@ export declare const closeToasts: (shadow: ShadowRoot) => void;
6
6
  export declare const isEditEnabled: () => boolean;
7
7
  export declare const enableEdit: (enable: boolean) => void;
8
8
  export declare const getEditorUrl: () => string;
9
- export declare const getBuilderContentUrl: (
10
- contentId?: string | null,
11
- blockId?: string | null,
12
- ) => string;
9
+ export declare const getBuilderContentUrl: (contentId?: string | null, blockId?: string | null) => string;
13
10
  export declare const DEV_TOOLS_URL = "__DEV_TOOLS_URL__";
14
11
  export declare const APP_STATE: AppState;
15
12
  export declare const updateAppState: (registry: ComponentRegistry) => void;
16
- export interface AppState extends ComponentRegistry {}
13
+ export interface AppState extends ComponentRegistry {
14
+ }
@@ -1,10 +1,4 @@
1
1
  import type { AppDependency, ComponentInfo, DevToolsSys } from "../../types";
2
2
  import type ts from "typescript";
3
- export declare function getSourceDependencies(
4
- sys: DevToolsSys,
5
- typeChecker: ts.TypeChecker | null,
6
- fnNode: ts.Node,
7
- ): AppDependency[] | undefined;
8
- export declare function getAppDependencies(
9
- cmps: ComponentInfo[],
10
- ): AppDependency[];
3
+ export declare function getSourceDependencies(sys: DevToolsSys, typeChecker: ts.TypeChecker | null, fnNode: ts.Node): AppDependency[] | undefined;
4
+ export declare function getAppDependencies(cmps: ComponentInfo[]): AppDependency[];
@@ -1,29 +1,9 @@
1
1
  import type ts from "typescript";
2
2
  import type { ComponentInfo, ComponentInput, DevToolsSys } from "../../types";
3
- export declare function parseRegisteredComponentInfo(
4
- sys: DevToolsSys,
5
- cmpInfo: ComponentInfo,
6
- cmpObjLit: ts.ObjectLiteralExpression,
7
- ): ComponentInfo;
8
- export declare function updateComponentObjLiteralInfoProperties(
9
- sys: DevToolsSys,
10
- cmpObjExp: ts.ObjectLiteralExpression,
11
- cmpInfo: ComponentInfo,
12
- ): ts.ObjectLiteralExpression;
13
- export declare function updateComponentInputsArrayLiteralExp(
14
- sys: DevToolsSys,
15
- arrExp: ts.ArrayLiteralExpression,
16
- inputs: ComponentInput[],
17
- ): ts.ArrayLiteralExpression;
18
- export declare function mergeComponentInputs(
19
- cmp: ComponentInfo,
20
- inputs: ComponentInput[],
21
- ): void;
3
+ export declare function parseRegisteredComponentInfo(sys: DevToolsSys, cmpInfo: ComponentInfo, cmpObjLit: ts.ObjectLiteralExpression): ComponentInfo;
4
+ export declare function updateComponentObjLiteralInfoProperties(sys: DevToolsSys, cmpObjExp: ts.ObjectLiteralExpression, cmpInfo: ComponentInfo): ts.ObjectLiteralExpression;
5
+ export declare function updateComponentInputsArrayLiteralExp(sys: DevToolsSys, arrExp: ts.ArrayLiteralExpression, inputs: ComponentInput[]): ts.ArrayLiteralExpression;
6
+ export declare function mergeComponentInputs(cmp: ComponentInfo, inputs: ComponentInput[]): void;
22
7
  export declare function componentAcceptsChildren(cmp: ComponentInfo): boolean;
23
- export declare function normalizeComponentInput(
24
- input: ComponentInput,
25
- ): ComponentInput;
26
- export declare function componentHasAcceptChildrenProp(
27
- sys: DevToolsSys,
28
- cmpObjLit: ts.ObjectLiteralExpression,
29
- ): boolean;
8
+ export declare function normalizeComponentInput(input: ComponentInput): ComponentInput;
9
+ export declare function componentHasAcceptChildrenProp(sys: DevToolsSys, cmpObjLit: ts.ObjectLiteralExpression): boolean;