builder.io 1.18.27 → 1.18.30

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.
@@ -102,5 +102,4 @@ export declare function getRipgrepExecutable(sys: DevToolsSys): Promise<string>;
102
102
  * @param query - The query to check
103
103
  */
104
104
  export declare const isLikelyFixedString: (query: string) => boolean;
105
- export declare function newAbortError(): Error;
106
105
  export {};
@@ -239,6 +239,7 @@ export declare class CodeGenSession {
239
239
  model?: string;
240
240
  mode?: CodeGenMode;
241
241
  includeMemories?: boolean;
242
+ needDevServer?: boolean;
242
243
  systemPrompt?: string;
243
244
  }): Promise<SpawnAgentResult>;
244
245
  setProxyOrigin(proxySrc: string | undefined): void;
@@ -60,6 +60,11 @@ export interface CLIArgs {
60
60
  * Example: --addDirectory "../docs" --addDirectory "../../bar"
61
61
  */
62
62
  addDirectory?: string | string[];
63
+ /**
64
+ * Path to the custom docs folder to upload.
65
+ * Example: --uploadCustomDocs ./docs/manual
66
+ */
67
+ uploadCustomDocs?: string;
63
68
  /** The scope of the design system to index */
64
69
  scope?: DesignSystemScope;
65
70
  /** Token to use for figma */
@@ -82,6 +82,7 @@ export interface DevServerOrchestrator {
82
82
  getSetupOutput: () => string;
83
83
  getMiseActivationCommand: (shell: string) => Promise<string | null>;
84
84
  waitUntilIdle: (initialWaitMs?: number, idleTimeMs?: number) => Promise<void>;
85
+ waitUntilServer: (signal?: AbortSignal) => Promise<void>;
85
86
  onClose: (callback: (code: number | null) => void) => void;
86
87
  restart: (abortSignal?: AbortSignal) => Promise<DevCommandResult>;
87
88
  emitter: EventEmitter<{
@@ -5,8 +5,5 @@ interface FusionStatusMonitor {
5
5
  start: () => void;
6
6
  stop: () => void;
7
7
  }
8
- /**
9
- * Creates a fusion status monitor that pings the status endpoint periodically
10
- */
11
8
  export declare function createFusionStatusMonitor(sys: DevToolsSys, credentials: Credentials, fusionConfig: FusionConfig, sharedState: LaunchServerStatus): FusionStatusMonitor | null;
12
9
  export {};
@@ -1,3 +1,4 @@
1
+ import type { IndexDocumentV1 } from "$/ai-utils";
1
2
  interface BaseTask {
2
3
  name: string;
3
4
  }
@@ -25,4 +26,19 @@ export interface InstallationTask extends BaseTask {
25
26
  hash: string;
26
27
  }
27
28
  export type Task = ComponentTask | TokenTask | IconTask | InstallationTask;
29
+ export interface IndexingResults {
30
+ componentsToCheck: Task[];
31
+ storedComponentDocs: IndexDocumentV1[];
32
+ source: "custom" | "auto";
33
+ specificComponentNames?: string[];
34
+ summaryData?: {
35
+ indexedComponents: ComponentTask[];
36
+ discoveredComponents: ComponentTask[];
37
+ failedComponents: string[];
38
+ failedTokens: string[];
39
+ numIconsIndexed: number;
40
+ discoveredTokenGroups: TokenTask[];
41
+ tokenGroupsToIndex: TokenTask[];
42
+ };
43
+ }
28
44
  export {};
@@ -12,6 +12,7 @@ export interface SubAgent {
12
12
  mode?: CodeGenMode;
13
13
  filePath?: string;
14
14
  includeMemories?: boolean;
15
+ needDevServer?: boolean;
15
16
  }
16
17
  /**
17
18
  * Resolves model shortcut to full model name
@@ -1,2 +1,2 @@
1
1
  import type { CustomAgentDefinition } from "$/ai-utils";
2
- export declare const TEST_AGENT: CustomAgentDefinition;
2
+ export declare const BROWSER_TESTING_AGENT: CustomAgentDefinition;
@@ -69,4 +69,6 @@ export declare function mergeEnvironmentVariables(envVariables: EnvironmentVaria
69
69
  export declare function processPushChangesArgs(opts: PushChangesArgs): import("$/ai-utils").PushChangesOptions;
70
70
  export declare function getErrorMessage(err: unknown): string;
71
71
  export declare function waitImmediate(): Promise<void>;
72
+ export declare function abortPromise<T extends Promise<any> | undefined>(promise: T, signal: AbortSignal | undefined): T;
72
73
  export declare function waitRace(promise: Promise<any>, timeout: number): Promise<boolean>;
74
+ export declare function newAbortError(): Error;