@builder.io/dev-tools 1.19.2 → 1.19.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.
@@ -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>;
@@ -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/agent" | "\"@builder.io/dev-tools\"" | "builder.io";
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