@builder.io/dev-tools 1.19.1-dev.202512171713.23dff0c22 → 1.19.2-dev.202512181512.5830fb3b9

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.
@@ -1,6 +1,6 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
- import type { WorkspaceConfiguration, ComponentDocument } from "$/ai-utils";
3
+ import type { WorkspaceConfiguration, ComponentDocument, PrivacyMode } from "$/ai-utils";
4
4
  import type { ComponentTask } from "./types";
5
5
  export declare const discoverComponents: (sys: DevToolsSys, credentials: Credentials, sessionId: string, remoteComponents: ComponentDocument[], opts?: {
6
6
  force?: boolean;
@@ -12,6 +12,7 @@ export declare const discoverComponents: (sys: DevToolsSys, credentials: Credent
12
12
  include?: string | string[];
13
13
  exclude?: string | string[];
14
14
  instructions?: string;
15
+ privacyMode?: PrivacyMode;
15
16
  }) => Promise<{
16
17
  numComponentsFound: number;
17
18
  componentsToIndex: ComponentTask[];
@@ -1,7 +1,7 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
3
  import type { ComponentTask, Task } from "./types";
4
- import type { WorkspaceConfiguration, IndexDocumentV1 } from "$/ai-utils";
4
+ import type { WorkspaceConfiguration, IndexDocumentV1, PrivacyMode } from "$/ai-utils";
5
5
  export declare const processComponent: (sys: DevToolsSys, credentials: Credentials, sessionId: string, component: ComponentTask, opts: {
6
6
  designSystemId: string;
7
7
  designSystemPackage?: string;
@@ -11,6 +11,7 @@ export declare const processComponent: (sys: DevToolsSys, credentials: Credentia
11
11
  include?: string | string[];
12
12
  exclude?: string | string[];
13
13
  instructions?: string;
14
+ privacyMode?: PrivacyMode;
14
15
  }) => Promise<void>;
15
16
  export declare const processAgent: (sys: DevToolsSys, credentials: Credentials, discoveredComponents: ComponentTask[], opts: {
16
17
  hasIcons?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
- import type { WorkspaceConfiguration } from "$/ai-utils";
3
+ import type { WorkspaceConfiguration, PrivacyMode } from "$/ai-utils";
4
4
  export declare const discoverIcons: (sys: DevToolsSys, credentials: Credentials, sessionId: string, opts?: {
5
5
  designSystemPackage?: string;
6
6
  workspaceConfig?: WorkspaceConfiguration;
@@ -8,6 +8,7 @@ export declare const discoverIcons: (sys: DevToolsSys, credentials: Credentials,
8
8
  include?: string | string[];
9
9
  exclude?: string | string[];
10
10
  instructions?: string;
11
+ privacyMode?: PrivacyMode;
11
12
  }) => Promise<{
12
13
  icons: string[];
13
14
  usage: string;
@@ -1,6 +1,6 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
- import type { WorkspaceConfiguration } from "$/ai-utils";
3
+ import type { WorkspaceConfiguration, PrivacyMode } from "$/ai-utils";
4
4
  export declare const discoverInstallation: (sys: DevToolsSys, credentials: Credentials, sessionId: string, opts: {
5
5
  designSystemId: string;
6
6
  designSystemPackage?: string;
@@ -10,6 +10,7 @@ export declare const discoverInstallation: (sys: DevToolsSys, credentials: Crede
10
10
  include?: string | string[];
11
11
  exclude?: string | string[];
12
12
  instructions?: string;
13
+ privacyMode?: PrivacyMode;
13
14
  }) => Promise<{
14
15
  hash: string;
15
16
  relevantFiles: string[];
@@ -1,6 +1,6 @@
1
1
  import type { DevToolsSys } from "../../core";
2
2
  import { type Credentials } from "../credentials";
3
- import type { DesignSystem, GenerateUserMessage, WorkspaceConfiguration, UpdateDesignSystemInput, DesignSystemScope, DisplayDesignSystem, IndexDocumentV1, AclPolicy } from "$/ai-utils";
3
+ import type { DesignSystem, GenerateUserMessage, WorkspaceConfiguration, UpdateDesignSystemInput, DesignSystemScope, DisplayDesignSystem, IndexDocumentV1, AclPolicy, PrivacyMode } from "$/ai-utils";
4
4
  export declare const AGENT_FILE = "AGENTS.md";
5
5
  export declare const ICONS_FILE = "icons.mdx";
6
6
  export declare const TOKENS_FILE = "tokens.mdx";
@@ -64,6 +64,10 @@ export declare const runCodeGen: (sys: DevToolsSys, credentials: Credentials, se
64
64
  * Extra instructions to be taken into account during repo indexing.
65
65
  */
66
66
  instructions?: string;
67
+ /**
68
+ * Privacy mode settings for encryption key handling.
69
+ */
70
+ privacyMode?: PrivacyMode;
67
71
  }, metadata?: any) => Promise<string>;
68
72
  /**
69
73
  * Generates an ACL policy for repo indexing based on include/exclude patterns.
@@ -1,7 +1,7 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { TokenTask } from "./types";
3
3
  import type { Credentials } from "../credentials";
4
- import type { WorkspaceConfiguration, TokenDocument } from "$/ai-utils";
4
+ import type { WorkspaceConfiguration, TokenDocument, PrivacyMode } from "$/ai-utils";
5
5
  export declare const discoverTokens: (sys: DevToolsSys, credentials: Credentials, sessionId: string, remoteTokens: TokenDocument[], opts?: {
6
6
  force?: boolean;
7
7
  designSystemPackage?: string;
@@ -10,6 +10,7 @@ export declare const discoverTokens: (sys: DevToolsSys, credentials: Credentials
10
10
  include?: string | string[];
11
11
  exclude?: string | string[];
12
12
  instructions?: string;
13
+ privacyMode?: PrivacyMode;
13
14
  }) => Promise<{
14
15
  tokenGroupsToIndex: TokenTask[];
15
16
  discoveredTokenGroups: TokenTask[];
@@ -23,4 +24,5 @@ export declare const processTokens: (sys: DevToolsSys, credentials: Credentials,
23
24
  include?: string | string[];
24
25
  exclude?: string | string[];
25
26
  instructions?: string;
27
+ privacyMode?: PrivacyMode;
26
28
  }) => Promise<void>;
@@ -0,0 +1,12 @@
1
+ export interface DevServerUrlInfo {
2
+ url: string;
3
+ port: number;
4
+ }
5
+ /**
6
+ * Parse dev server output to extract URL and port information
7
+ *
8
+ * @param output - The command output string to parse
9
+ * @param customPatterns - Optional array of custom regex patterns to try first
10
+ * @returns Object with url and port, or null if no valid URL found
11
+ */
12
+ export declare function parseDevServerOutput(output: string, customPatterns?: string[]): DevServerUrlInfo | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -17,7 +17,7 @@ export declare const NUMBER_TYPES: string[];
17
17
  export declare const BOOLEAN_TYPES: string[];
18
18
  export declare const ARRAY_TYPES: string[];
19
19
  export declare const OBJECT_TYPES: string[];
20
- export declare function getPrimitiveType(t: string): "number" | "string" | "boolean" | "object" | "array";
20
+ export declare function getPrimitiveType(t: string): "string" | "boolean" | "object" | "number" | "array";
21
21
  export declare function removeQuotes(text: string): string;
22
22
  export declare const resolveType: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string[] | undefined;
23
23
  export declare const typeToString: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string;
@@ -8,4 +8,4 @@ export declare function objectExpressionToObjectValue(sys: DevToolsSys, objectLi
8
8
  };
9
9
  export declare function convertArrayExpressionToJsArray(sys: DevToolsSys, arr: ts.ArrayLiteralExpression): any[];
10
10
  export declare function getTextOfPropertyName(sys: DevToolsSys, prop: ts.PropertyAssignment | ts.ObjectLiteralElementLike | undefined): string | undefined;
11
- export declare function valueToExpression(sys: DevToolsSys, val: any): ts.ObjectLiteralExpression | ts.Identifier | ts.StringLiteral | ts.NumericLiteral | ts.TrueLiteral | ts.FalseLiteral | ts.ArrayLiteralExpression;
11
+ export declare function valueToExpression(sys: DevToolsSys, val: any): ts.ObjectLiteralExpression | ts.ArrayLiteralExpression | ts.Identifier | ts.StringLiteral | ts.NumericLiteral | ts.TrueLiteral | ts.FalseLiteral;
@@ -19,7 +19,7 @@ export declare function clone<T>(obj: T): T;
19
19
  export declare function shouldSkipFolder(sys: DevToolsSys, skipFolders: Set<string>, fileName: string): boolean;
20
20
  export declare function getPackageManager(): string;
21
21
  export declare function isWindows(): boolean;
22
- export declare function builderNpxPackage(): "\"@builder.io/dev-tools\"" | "builder.io";
22
+ export declare function builderNpxPackage(): "builder.io" | "\"@builder.io/dev-tools\"";
23
23
  /**
24
24
  * Sanitizes a component name for use in filesystem paths by replacing invalid characters with underscores
25
25
  * @param name The component name to sanitize