@builder.io/dev-tools 1.25.0-dev.202602091727.eacc0b043 → 1.26.0-dev.202602091901.45f4b8d8b
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.
- package/cli/index.cjs +1698 -406
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +3 -3
- package/server/index.cjs +16 -90
- package/server/index.mjs +16 -90
- package/types/_tests_/utils.d.ts +48 -35
- package/types/cli/abort-signal-any.d.ts +3 -1
- package/types/cli/auth/auth-utils.d.ts +3 -1
- package/types/cli/auth/auth.d.ts +5 -1
- package/types/cli/backup.d.ts +114 -60
- package/types/cli/builder-add/interface.d.ts +21 -4
- package/types/cli/code-file-utils.d.ts +11 -8
- package/types/cli/code.d.ts +13 -3
- package/types/cli/codegen.d.ts +9 -1
- package/types/cli/credentials.d.ts +61 -45
- package/types/cli/detectors/nextjs.d.ts +4 -1
- package/types/cli/detectors/svelte.d.ts +4 -1
- package/types/cli/detectors/vue.d.ts +4 -1
- package/types/cli/doctor/doctor.d.ts +3 -0
- package/types/cli/download.d.ts +9 -4
- package/types/cli/dsi-mcp.d.ts +4 -1
- package/types/cli/figma-publish.d.ts +34 -17
- package/types/cli/figma-utils.d.ts +51 -21
- package/types/cli/figma.d.ts +9 -2
- package/types/cli/generate.d.ts +14 -11
- package/types/cli/incremental-tsc.d.ts +19 -7
- package/types/cli/index.d.ts +154 -154
- package/types/cli/launch/config.d.ts +13 -3
- package/types/cli/launch/dry-run-backup.d.ts +14 -7
- package/types/cli/launch/errors.d.ts +7 -2
- package/types/cli/launch/grafana.d.ts +5 -1
- package/types/cli/launch/helpers.d.ts +19 -10
- package/types/cli/launch/machine-health.d.ts +8 -3
- package/types/cli/launch/proxy.d.ts +11 -4
- package/types/cli/launch/server.d.ts +19 -12
- package/types/cli/launch/vscode-tunnel-manager.d.ts +77 -68
- package/types/cli/launch.d.ts +109 -106
- package/types/cli/prettier.d.ts +9 -2
- package/types/cli/repo-connect/env-collector.d.ts +16 -11
- package/types/cli/repo-connect/file-collector.d.ts +22 -15
- package/types/cli/repo-connect/git-detector.d.ts +13 -11
- package/types/cli/repo-connect/install-runner.d.ts +8 -5
- package/types/cli/repo-connect/package-detector.d.ts +12 -8
- package/types/cli/repo-connect/repo-connect.d.ts +4 -1
- package/types/cli/repo-indexing/component-discovery.d.ts +30 -17
- package/types/cli/repo-indexing/icons.d.ts +36 -24
- package/types/cli/repo-indexing/installation.d.ts +22 -14
- package/types/cli/repo-indexing/repo-indexing-utils.d.ts +138 -79
- package/types/cli/repo-indexing/repo-indexing.d.ts +37 -17
- package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
- package/types/cli/repo-indexing/tokens.d.ts +44 -25
- package/types/cli/repo-metrics-utils.d.ts +13 -5
- package/types/cli/repo-metrics.d.ts +4 -1
- package/types/cli/report/figma-report.d.ts +63 -36
- package/types/cli/server-ws.d.ts +40 -32
- package/types/cli/spinner.d.ts +4 -4
- package/types/cli/track.d.ts +4 -1
- package/types/cli/utils/agent-discovery.d.ts +10 -5
- package/types/cli/utils/agent-parser.d.ts +0 -6
- package/types/cli/utils/codegen-utils.d.ts +10 -1
- package/types/cli/utils/component-group-mdx-prompt.d.ts +2 -1
- package/types/cli/utils/discovery-test-utils.d.ts +3 -1
- package/types/cli/utils/env-capture.d.ts +21 -15
- package/types/cli/utils/env-substitution.d.ts +4 -1
- package/types/cli/utils/feature-flags.d.ts +3 -1
- package/types/cli/utils/file-overrides-manager.d.ts +39 -23
- package/types/cli/utils/git.d.ts +28 -16
- package/types/cli/utils/hosts-file-manager.d.ts +7 -4
- package/types/cli/utils/lock-file.d.ts +10 -7
- package/types/cli/utils/parseGitDiff.d.ts +4 -1
- package/types/cli/utils/process-tracker.d.ts +85 -51
- package/types/cli/utils/rules-discovery.d.ts +10 -5
- package/types/cli/utils/rules-parser.d.ts +5 -1
- package/types/cli/utils/terminal-buffer.d.ts +23 -23
- package/types/cli/utils/workspace-path-resolver.d.ts +23 -16
- package/types/cli/utils/yaml-frontmatter.d.ts +10 -6
- package/types/client/client-api.d.ts +42 -10
- package/types/client/edit-button/document-listeners.d.ts +3 -1
- package/types/client/edit-button/index.d.ts +6 -6
- package/types/client/menu/index.d.ts +3 -3
- package/types/client/menu/pages/component-detail.d.ts +8 -2
- package/types/client/menu/pages/component-input.d.ts +5 -1
- package/types/client/menu/pages/component-list.d.ts +4 -1
- package/types/client/menu/toggle/menu-toggle.d.ts +4 -1
- package/types/client/setup-ui/overview.d.ts +2 -2
- package/types/client/tracking.d.ts +11 -11
- package/types/client/utils.d.ts +5 -3
- package/types/common/ast/app-dependencies.d.ts +8 -2
- package/types/common/ast/component-info.d.ts +26 -6
- package/types/common/ast/component-input-types.d.ts +28 -9
- package/types/common/ast/component-registry.d.ts +23 -8
- package/types/common/ast/convert-values.d.ts +40 -8
- package/types/common/ast/ensure-array-statement.d.ts +7 -3
- package/types/common/ast/ensure-comments.d.ts +5 -1
- package/types/common/ast/ensure-imports.d.ts +10 -5
- package/types/common/ast/exported-statements.d.ts +8 -4
- package/types/common/ast/imported-statements.d.ts +5 -1
- package/types/common/ast/normalize-statements.d.ts +12 -3
- package/types/common/ast/remove-unused-imports.d.ts +4 -1
- package/types/common/ast/transform.d.ts +13 -3
- package/types/common/ast/utils.d.ts +42 -19
- package/types/common/builder/builder-api.d.ts +32 -23
- package/types/common/builder/builder-sdks.d.ts +10 -8
- package/types/common/builder/content-generation.d.ts +10 -7
- package/types/common/builder/content-ids.d.ts +2 -1
- package/types/common/cache.d.ts +4 -1
- package/types/common/constants.d.ts +2 -1
- package/types/common/dotenv.d.ts +24 -5
- package/types/common/errors.d.ts +50 -22
- package/types/common/fs.d.ts +17 -4
- package/types/common/interactive-select-files.d.ts +16 -2
- package/types/common/mem-sys.d.ts +7 -5
- package/types/common/node-request.d.ts +4 -4
- package/types/common/path.d.ts +1 -3
- package/types/common/test-utils.d.ts +21 -7
- package/types/common/typescript.d.ts +26 -7
- package/types/common/utils.d.ts +36 -8
- package/types/core/adapters/angular/angular-api-key.d.ts +29 -6
- package/types/core/adapters/angular/angular-app-module-imports.d.ts +12 -2
- package/types/core/adapters/angular/angular-app-routes-update.d.ts +6 -1
- package/types/core/adapters/angular/angular-components.d.ts +40 -12
- package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +9 -3
- package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +16 -4
- package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +3 -1
- package/types/core/adapters/angular/angular-registry-parse.d.ts +22 -10
- package/types/core/adapters/angular/angular-registry.d.ts +15 -2
- package/types/core/adapters/angular/angular-test-utils.d.ts +8 -4
- package/types/core/adapters/angular/index.d.ts +20 -12
- package/types/core/adapters/angular/types.d.ts +5 -5
- package/types/core/adapters/next/index.d.ts +26 -18
- package/types/core/adapters/next/next-api-key.d.ts +4 -1
- package/types/core/adapters/next/next-component-info.d.ts +9 -2
- package/types/core/adapters/next/next-components.d.ts +4 -1
- package/types/core/adapters/next/next-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/next/next-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/next/next-registry-parse.d.ts +21 -8
- package/types/core/adapters/next/next-registry.d.ts +15 -2
- package/types/core/adapters/next/next-test-utils.d.ts +21 -11
- package/types/core/adapters/qwik-city/index.d.ts +14 -6
- package/types/core/adapters/qwik-city/qwik-api-key.d.ts +4 -1
- package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +4 -1
- package/types/core/adapters/qwik-city/qwik-components.d.ts +23 -8
- package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +22 -10
- package/types/core/adapters/qwik-city/qwik-registry.d.ts +15 -2
- package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +8 -4
- package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +3 -1
- package/types/core/adapters/react/index.d.ts +19 -11
- package/types/core/adapters/react/react-api-key.d.ts +4 -1
- package/types/core/adapters/react/react-builder-sdk-setup.d.ts +3 -1
- package/types/core/adapters/react/react-component-info.d.ts +9 -2
- package/types/core/adapters/react/react-components.d.ts +37 -11
- package/types/core/adapters/react/react-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/react/react-registry-parse.d.ts +21 -8
- package/types/core/adapters/react/react-registry.d.ts +15 -2
- package/types/core/adapters/react/react-test-utils.d.ts +11 -5
- package/types/core/adapters/react/react-ts-program.d.ts +3 -1
- package/types/core/adapters/remix/index.d.ts +19 -11
- package/types/core/adapters/remix/remix-api-key.d.ts +4 -1
- package/types/core/adapters/remix/remix-components.d.ts +4 -1
- package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +9 -3
- package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/remix/remix-registry-parse.d.ts +22 -10
- package/types/core/adapters/remix/remix-registry.d.ts +15 -2
- package/types/core/adapters/remix/remix-test-utils.d.ts +11 -5
- package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +12 -2
- package/types/core/adapters/vue/index.d.ts +20 -12
- package/types/core/adapters/vue/vue-api-key.d.ts +4 -1
- package/types/core/adapters/vue/vue-components.d.ts +10 -2
- package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +7 -3
- package/types/core/adapters/vue/vue-registry-parse.d.ts +19 -9
- package/types/core/adapters/vue/vue-registry.d.ts +6 -3
- package/types/core/adapters/webpack/webpack-config-helpers.d.ts +8 -3
- package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +5 -1
- package/types/core/create-dev-tools.d.ts +4 -1
- package/types/core/detect-frameworks.d.ts +7 -2
- package/types/core/ensure-config-plugin.d.ts +6 -2
- package/types/core/find-dependencies.d.ts +6 -3
- package/types/core/import-export-registry.d.ts +9 -2
- package/types/core/index.d.ts +18 -3
- package/types/figma/index.d.ts +95 -64
- package/types/node/node-sys.d.ts +13 -6
- package/types/remix/index.d.ts +5 -3
- package/types/server/auth.d.ts +4 -1
- package/types/server/builder-connect.d.ts +21 -6
- package/types/server/client-script.d.ts +6 -2
- package/types/server/create-dev-tools-server.d.ts +3 -1
- package/types/server/dev-tools-api.d.ts +4 -1
- package/types/server/dev-tools-http-server.d.ts +3 -1
- package/types/server/index.d.ts +28 -1
- package/types/server/request-handler.d.ts +6 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types/codegen-server.d.ts +1 -1
- package/types/types/connection-tracker.d.ts +34 -34
- package/types/types/proxy-middleware.d.ts +25 -15
- package/types/types/websocket-types.d.ts +9 -7
- package/types/types.d.ts +387 -358
- package/types/vite/main.d.ts +1 -1
- package/types/webpack/main.d.ts +5 -5
- package/vendors/darwin-arm64/complete/rg.bash +783 -0
- package/vendors/darwin-arm64/complete/rg.fish +175 -0
- package/vendors/darwin-arm64/doc/rg.1 +2178 -0
- package/vendors/darwin-arm64/rg +0 -0
- package/vendors/darwin-x64/complete/rg.bash +783 -0
- package/vendors/darwin-x64/complete/rg.fish +175 -0
- package/vendors/darwin-x64/doc/rg.1 +2178 -0
- package/vendors/darwin-x64/rg +0 -0
- package/vendors/linux-arm64/complete/rg.bash +783 -0
- package/vendors/linux-arm64/complete/rg.fish +175 -0
- package/vendors/linux-arm64/doc/rg.1 +2178 -0
- package/vendors/linux-arm64/rg +0 -0
- package/vendors/linux-x64/complete/rg.bash +783 -0
- package/vendors/linux-x64/complete/rg.fish +175 -0
- package/vendors/linux-x64/doc/rg.1 +2178 -0
- package/vendors/linux-x64/rg +0 -0
- package/vendors/win32-x64/rg.exe +0 -0
- package/types/cli/indexing.d.ts +0 -5
- package/types/cli/launch/github.d.ts +0 -3
- package/types/cli/repo-indexing.d.ts +0 -17
- package/types/cli/repo-indexing.mock.d.ts +0 -5
- package/types/cli/utils/dev-server-url-parser.d.ts +0 -12
- package/types/cli/utils/dev-server-url-parser.test.d.ts +0 -1
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +0 -1
|
@@ -2,23 +2,40 @@ import ts from "typescript";
|
|
|
2
2
|
import type { DevTools, DevToolsSys } from "../types";
|
|
3
3
|
import type { CLIArgs } from "./index";
|
|
4
4
|
import type { FigmaBuilderLink, FigmaMapperFile } from "$/ai-utils";
|
|
5
|
-
export declare const runFigmaPublish: (
|
|
5
|
+
export declare const runFigmaPublish: (
|
|
6
|
+
sys: DevToolsSys,
|
|
7
|
+
args: CLIArgs,
|
|
8
|
+
) => Promise<undefined>;
|
|
6
9
|
export declare const FIGMA_CONNECT_CALL = "figmaMapping";
|
|
7
|
-
export declare function findAllMappingFiles(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
export declare function findAllMappingFiles(
|
|
11
|
+
sys: DevToolsSys,
|
|
12
|
+
): Promise<string[]>;
|
|
13
|
+
export declare function setPublicKey(
|
|
14
|
+
sys: DevToolsSys,
|
|
15
|
+
publicKey: string,
|
|
16
|
+
devTools: DevTools | undefined,
|
|
17
|
+
ensureFigmaImportPage?: boolean,
|
|
18
|
+
): Promise<
|
|
19
|
+
| {
|
|
20
|
+
success: boolean;
|
|
21
|
+
error: string;
|
|
22
|
+
}
|
|
23
|
+
| {
|
|
24
|
+
success: boolean;
|
|
25
|
+
error?: undefined;
|
|
26
|
+
}
|
|
27
|
+
>;
|
|
28
|
+
export declare function findMappingsFromFiles({
|
|
29
|
+
sys,
|
|
30
|
+
mappingFiles,
|
|
31
|
+
typeCheck,
|
|
32
|
+
}: {
|
|
33
|
+
mappingFiles: string[];
|
|
34
|
+
sys: DevToolsSys;
|
|
35
|
+
typeCheck?: boolean;
|
|
19
36
|
}): Promise<{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
37
|
+
mapperFiles: FigmaMapperFile[];
|
|
38
|
+
figmaBuilderLinks: FigmaBuilderLink[];
|
|
39
|
+
diagnostics: ts.Diagnostic[];
|
|
40
|
+
figmaLinksToResolve: string[];
|
|
24
41
|
}>;
|
|
@@ -3,29 +3,59 @@ import type { DevToolsSys } from "../types";
|
|
|
3
3
|
import type { CLIArgs } from "./index";
|
|
4
4
|
import type { FigmaBuilderLink, FigmaComponentInfo } from "$/ai-utils";
|
|
5
5
|
interface FigmaAPIOpts {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
auth: {
|
|
7
|
+
access_token: string;
|
|
8
|
+
oauth: boolean;
|
|
9
|
+
};
|
|
10
|
+
params?: Record<string, any>;
|
|
11
11
|
}
|
|
12
12
|
export declare const parseFigmaURL: (str: string) => {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
fileID: string;
|
|
14
|
+
nodeId: string;
|
|
15
15
|
} | null;
|
|
16
|
-
export declare const figmaApi: <T = any>(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
export declare const figmaApi: <T = any>(
|
|
17
|
+
sys: DevToolsSys,
|
|
18
|
+
args: CLIArgs,
|
|
19
|
+
path: string,
|
|
20
|
+
{ auth, params }: FigmaAPIOpts,
|
|
21
|
+
) => Promise<T>;
|
|
22
|
+
export declare const getFigmaNodeData: (
|
|
23
|
+
sys: DevToolsSys,
|
|
24
|
+
args: CLIArgs,
|
|
25
|
+
auth: {
|
|
26
|
+
access_token: string;
|
|
27
|
+
oauth: boolean;
|
|
28
|
+
},
|
|
29
|
+
fileId: string,
|
|
30
|
+
nodeIds: string,
|
|
31
|
+
depth?: number,
|
|
32
|
+
) => Promise<any>;
|
|
33
|
+
export declare function getImportDataFromToken(
|
|
34
|
+
credentials: Credentials,
|
|
35
|
+
token: string,
|
|
36
|
+
verbose: boolean,
|
|
37
|
+
): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
22
38
|
export declare function needsFigmaAuth(urls: string[]): boolean;
|
|
23
|
-
export declare function getFigmaNodeDataFromURLs(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
export declare function getFigmaNodeDataFromURLs(
|
|
40
|
+
sys: DevToolsSys,
|
|
41
|
+
args: CLIArgs,
|
|
42
|
+
figmaAuth:
|
|
43
|
+
| {
|
|
44
|
+
access_token: string;
|
|
45
|
+
oauth: boolean;
|
|
46
|
+
}
|
|
47
|
+
| undefined,
|
|
48
|
+
builderAuth: {
|
|
49
|
+
privateKey: string;
|
|
50
|
+
spaceId: string;
|
|
51
|
+
},
|
|
52
|
+
urls: string[],
|
|
53
|
+
): Promise<(readonly [string, FigmaComponentInfo])[]>;
|
|
54
|
+
export declare function inPlaceResolveFigmaURLs(
|
|
55
|
+
sys: DevToolsSys,
|
|
56
|
+
args: CLIArgs,
|
|
57
|
+
figmaAuth: FigmaAuth,
|
|
58
|
+
figmaBuilderLinks: FigmaBuilderLink[],
|
|
59
|
+
figmaLinksToResolve: string[],
|
|
60
|
+
): Promise<void>;
|
|
31
61
|
export {};
|
package/types/cli/figma.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
2
|
import type { CLIArgs } from ".";
|
|
3
|
-
export declare const runFigmaCommand: (
|
|
4
|
-
|
|
3
|
+
export declare const runFigmaCommand: (
|
|
4
|
+
sys: DevToolsSys,
|
|
5
|
+
subCommand: string,
|
|
6
|
+
args: CLIArgs,
|
|
7
|
+
) => Promise<void>;
|
|
8
|
+
export declare function askToInstallBuilder(
|
|
9
|
+
sys: DevToolsSys,
|
|
10
|
+
args: CLIArgs,
|
|
11
|
+
): Promise<void>;
|
package/types/cli/generate.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import type { ComponentInfo, ComponentRegistry, DevToolsSys } from "../types";
|
|
2
2
|
import type { CLIArgs } from "./index";
|
|
3
3
|
import { type FigmaComponentInfo, type UserContext } from "$/ai-utils";
|
|
4
|
-
export declare const runFigmaGenerate: (
|
|
4
|
+
export declare const runFigmaGenerate: (
|
|
5
|
+
sys: DevToolsSys,
|
|
6
|
+
args: CLIArgs,
|
|
7
|
+
) => Promise<undefined>;
|
|
5
8
|
export interface MappingCodeV3 {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
figmaNode?: FigmaComponentInfo;
|
|
10
|
+
registry?: ComponentRegistry;
|
|
11
|
+
userContext?: UserContext;
|
|
12
|
+
figmaUrl?: string;
|
|
13
|
+
docsUrl?: string;
|
|
14
|
+
registeredCmp?: ComponentInfo;
|
|
15
|
+
previousCompletion?: string;
|
|
16
|
+
userPrompt?: string;
|
|
17
|
+
token?: string;
|
|
18
|
+
pragma?: string;
|
|
16
19
|
}
|
|
@@ -8,23 +8,35 @@ import * as ts from "typescript";
|
|
|
8
8
|
* @returns An object containing the new builder program and collected diagnostics.
|
|
9
9
|
*/
|
|
10
10
|
export interface CheckpointData {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
program: ts.EmitAndSemanticDiagnosticsBuilderProgram;
|
|
12
|
+
diagnostics: ts.Diagnostic[];
|
|
13
13
|
}
|
|
14
14
|
export type Checkpoint = CheckpointData | null;
|
|
15
|
-
export declare function runCheckpoint(
|
|
15
|
+
export declare function runCheckpoint(
|
|
16
|
+
projectDir: string,
|
|
17
|
+
oldProgram?: ts.EmitAndSemanticDiagnosticsBuilderProgram,
|
|
18
|
+
): Checkpoint;
|
|
16
19
|
export declare function filterDiagnostic(c: ts.Diagnostic): boolean;
|
|
17
20
|
/**
|
|
18
21
|
* Given a new list of diagnostics and a baseline list, filter out diagnostics
|
|
19
22
|
* that were already present in the baseline.
|
|
20
23
|
*/
|
|
21
|
-
export declare function filterBaselineDiagnostics(
|
|
22
|
-
|
|
24
|
+
export declare function filterBaselineDiagnostics(
|
|
25
|
+
baselineFingerprints: Set<string>,
|
|
26
|
+
checkpoint: Checkpoint,
|
|
27
|
+
): ts.Diagnostic[];
|
|
28
|
+
export declare function createFingerprintSet(
|
|
29
|
+
checkpoint: Checkpoint,
|
|
30
|
+
): Set<string>;
|
|
23
31
|
/**
|
|
24
32
|
* Pretty prints diagnostics as a plain text string.
|
|
25
33
|
*
|
|
26
34
|
* @param diagnostics - An array of ts.Diagnostic objects.
|
|
27
35
|
* @returns A formatted string that describes the diagnostics.
|
|
28
36
|
*/
|
|
29
|
-
export declare function prettyPrintDiagnostics(
|
|
30
|
-
|
|
37
|
+
export declare function prettyPrintDiagnostics(
|
|
38
|
+
diagnostics: ts.Diagnostic[],
|
|
39
|
+
): string;
|
|
40
|
+
export declare function prettyPrintDiagnosticsWithContext(
|
|
41
|
+
diagnostics: ts.Diagnostic[],
|
|
42
|
+
): string;
|
package/types/cli/index.d.ts
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
1
|
import type { DesignSystemScope } from "$/ai-utils";
|
|
2
2
|
export interface CLIArgs {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
3
|
+
/** Figma access token */
|
|
4
|
+
figmaToken?: string;
|
|
5
|
+
/** GitHub access token */
|
|
6
|
+
githubToken?: string;
|
|
7
|
+
/** Run in CI mode without interactive prompts */
|
|
8
|
+
ci?: boolean;
|
|
9
|
+
/** Show help text */
|
|
10
|
+
help?: boolean;
|
|
11
|
+
/** Force operation even if there are warnings */
|
|
12
|
+
force?: boolean;
|
|
13
|
+
/** Print output as JSON */
|
|
14
|
+
verbose?: boolean;
|
|
15
|
+
/** Run in dry-run mode without making changes */
|
|
16
|
+
dryrun?: boolean;
|
|
17
|
+
/** Auto-confirm all prompts */
|
|
18
|
+
yes?: boolean;
|
|
19
|
+
/** Builder.io space ID */
|
|
20
|
+
spaceId?: string;
|
|
21
|
+
/** Component name to use */
|
|
22
|
+
componentName?: string;
|
|
23
|
+
/** Mapping directory to use */
|
|
24
|
+
mappingOutput?: string;
|
|
25
|
+
/** Skip package installation step */
|
|
26
|
+
skipInstallation?: boolean;
|
|
27
|
+
/** Skip detailed grouping in repo indexing */
|
|
28
|
+
skipDetailedGrouping?: boolean;
|
|
29
|
+
/** Skip display of header in repo indexing */
|
|
30
|
+
skipHeader?: boolean;
|
|
31
|
+
/** NPM package name to index */
|
|
32
|
+
designSystemPackage?: string;
|
|
33
|
+
/**
|
|
34
|
+
* A user-friendly design system name to index.
|
|
35
|
+
*
|
|
36
|
+
* This can be used in conjunction with designSystemPackage to index components
|
|
37
|
+
* where the design system name is different than the npm package name.
|
|
38
|
+
* Example: --designSystemPackage=@adobe/react-spectrum --designSystemName="Adobe React Spectrum"
|
|
39
|
+
*
|
|
40
|
+
* This flag can also be used with addDirectory to specify a name for design systems
|
|
41
|
+
* that are not npm packages.
|
|
42
|
+
* Example: --addDirectory "path/to/swift/ui/components" --designSystemName="Native UI"
|
|
43
|
+
**/
|
|
44
|
+
designSystemName?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Comma separated string of directories to look in for repo indexing.
|
|
47
|
+
* Use this when component implementations live in a different place
|
|
48
|
+
* than the workspace package you are indexing.
|
|
49
|
+
* Example: --includeDirectories "packages/foo, packages/bar"
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Use addDirectory instead
|
|
52
|
+
**/
|
|
53
|
+
includeDirectories?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Additional directories to look in for repo indexing.
|
|
56
|
+
* Use this when component implementations live in a different place
|
|
57
|
+
* than the workspace package you are indexing.
|
|
58
|
+
*
|
|
59
|
+
* @alias add
|
|
60
|
+
* Example: --addDirectory "../docs" --addDirectory "../../bar"
|
|
61
|
+
*/
|
|
62
|
+
addDirectory?: string | string[];
|
|
63
|
+
/**
|
|
64
|
+
* Path to the custom docs folder to upload.
|
|
65
|
+
* Example: --uploadCustomDocs ./docs/manual
|
|
66
|
+
*/
|
|
67
|
+
uploadCustomDocs?: string;
|
|
68
|
+
/** The scope of the design system to index */
|
|
69
|
+
scope?: DesignSystemScope;
|
|
70
|
+
/** Token to use for figma */
|
|
71
|
+
token?: string;
|
|
72
|
+
/** Url to start from */
|
|
73
|
+
url?: string;
|
|
74
|
+
/** Node ID from Figma URL */
|
|
75
|
+
nodeId?: string;
|
|
76
|
+
/** Prompt text for non-interactive mode */
|
|
77
|
+
prompt?: string;
|
|
78
|
+
/** Generation mode */
|
|
79
|
+
mode?: "quality" | "quality-v3";
|
|
80
|
+
/** Working directory to run commands from */
|
|
81
|
+
cwd?: string;
|
|
82
|
+
/** Debug mode */
|
|
83
|
+
debug?: boolean;
|
|
84
|
+
/** Raw command line arguments */
|
|
85
|
+
_: string[];
|
|
86
|
+
/** Builder private key, used for authentication. */
|
|
87
|
+
builderPrivateKey?: string;
|
|
88
|
+
/** Builder public key, used for authentication. */
|
|
89
|
+
builderPublicKey?: string;
|
|
90
|
+
/** Builder user ID, used for authentication. */
|
|
91
|
+
builderUserId?: string;
|
|
92
|
+
/** Path to workspace configuration file */
|
|
93
|
+
workspace?: string;
|
|
94
|
+
/** Output structured JSON data instead of human-readable logs */
|
|
95
|
+
jsonOutput?: boolean;
|
|
96
|
+
/** Remove all mappings from the space, publishing zero mappings even if mapper files exist */
|
|
97
|
+
clearMappings?: boolean;
|
|
98
|
+
/** Enabled tools, list of strings separated by commas */
|
|
99
|
+
enabledTools?: string;
|
|
100
|
+
/** Disabled tools, list of strings separated by commas */
|
|
101
|
+
disabledTools?: string;
|
|
102
|
+
/** If true run brief indexing before running code generation */
|
|
103
|
+
index?: boolean;
|
|
104
|
+
/** If true list indexed repositories */
|
|
105
|
+
listIndexedRepos?: boolean;
|
|
106
|
+
/** Disable MCP support */
|
|
107
|
+
disableMcp?: boolean;
|
|
108
|
+
/** Clear all stored credentials (logout) */
|
|
109
|
+
reset?: boolean;
|
|
110
|
+
/** Comma-separated list of component names to reindex */
|
|
111
|
+
components?: string;
|
|
112
|
+
nativeApp?: boolean;
|
|
113
|
+
/** Install command to run for connect-repo (e.g., npm install) */
|
|
114
|
+
installCommand?: string;
|
|
115
|
+
/** Use development server instead of production for launch command */
|
|
116
|
+
dev?: boolean;
|
|
117
|
+
/** Use native builder:// protocol instead of https:// */
|
|
118
|
+
app?: boolean;
|
|
119
|
+
/** Skip browser auto-open (flag form) */
|
|
120
|
+
open?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Glob pattern(s) to include for repo indexing access control.
|
|
123
|
+
* When specified, only these patterns will be accessible by default.
|
|
124
|
+
* Can be a single string or array of strings (when flag is repeated).
|
|
125
|
+
* Example: --include "src/components/*.tsx" --include "src/lib/*.ts"
|
|
126
|
+
*/
|
|
127
|
+
include?: string | string[];
|
|
128
|
+
/**
|
|
129
|
+
* Glob pattern(s) to exclude for repo indexing access control.
|
|
130
|
+
* These patterns will be denied access even if included.
|
|
131
|
+
* Can be a single string or array of strings (when flag is repeated).
|
|
132
|
+
* Example: --exclude "*.test.ts" --exclude "__tests__/**"
|
|
133
|
+
*/
|
|
134
|
+
exclude?: string | string[];
|
|
135
|
+
/**
|
|
136
|
+
* Extra instructions to be taken into account during repo indexing.
|
|
137
|
+
* Example: --instructions "Do not index mapper files."
|
|
138
|
+
*/
|
|
139
|
+
instructions?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Accept self-signed SSL certificates.
|
|
142
|
+
* Useful for development environments where SSL certificates are not trusted.
|
|
143
|
+
* Example: --acceptSelfSigned
|
|
144
|
+
*/
|
|
145
|
+
acceptSelfSigned?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Create a fusion example project after design system indexing completes.
|
|
148
|
+
* The project will be created with the design system pre-attached and a background
|
|
149
|
+
* agent will be spawned to install the design system using installation.md.
|
|
150
|
+
*/
|
|
151
|
+
createFusionExample?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Test creating a fusion example project without running indexing.
|
|
154
|
+
* Requires designSystemName to be provided or will prompt for it.
|
|
155
|
+
*/
|
|
156
|
+
testFusionExample?: boolean;
|
|
157
157
|
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { type FusionConfig } from "$/ai-utils";
|
|
2
2
|
import type { LaunchArgs } from "../launch";
|
|
3
3
|
import type { DevToolsSys } from "../../types";
|
|
4
|
-
export declare function getFusionConfig(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export declare function getFusionConfig(
|
|
5
|
+
sys: DevToolsSys,
|
|
6
|
+
args: LaunchArgs,
|
|
7
|
+
): Promise<FusionConfig>;
|
|
8
|
+
export declare function saveFusionConfig(
|
|
9
|
+
sys: DevToolsSys,
|
|
10
|
+
fusionConfig: FusionConfig,
|
|
11
|
+
args: LaunchArgs,
|
|
12
|
+
): Promise<void>;
|
|
13
|
+
export declare function trackConfigData(
|
|
14
|
+
sys: DevToolsSys,
|
|
15
|
+
fusionConfig: FusionConfig,
|
|
16
|
+
): void;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { type InitConfig } from "./InitStateMachine";
|
|
2
2
|
import type { InitState } from "$/ai-utils";
|
|
3
|
-
export declare const attemptDryRunBackupGit: (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
export declare const attemptDryRunBackupGit: (
|
|
4
|
+
initConfig: InitConfig,
|
|
5
|
+
realInitState: InitState,
|
|
6
|
+
) => Promise<
|
|
7
|
+
| {
|
|
8
|
+
success: boolean;
|
|
9
|
+
error: string;
|
|
10
|
+
}
|
|
11
|
+
| {
|
|
12
|
+
success: boolean;
|
|
13
|
+
error?: undefined;
|
|
14
|
+
}
|
|
15
|
+
| null
|
|
16
|
+
>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export declare const isGitHubAuthError: (errorMessage: string) => boolean;
|
|
2
|
-
export declare const getGitHubAuthErrorMessage: (
|
|
3
|
-
|
|
2
|
+
export declare const getGitHubAuthErrorMessage: (
|
|
3
|
+
repoName: string,
|
|
4
|
+
hasGhToken: boolean,
|
|
5
|
+
) => string;
|
|
6
|
+
export declare const getUserMessageForNpmInstallErrors: (
|
|
7
|
+
errorOutput: string,
|
|
8
|
+
) => string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { FusionMetrics } from "$/ai-utils";
|
|
2
2
|
import type { Credentials } from "../credentials";
|
|
3
3
|
import type { DevToolsSys } from "../../types";
|
|
4
|
-
export declare function pushMetrics(
|
|
4
|
+
export declare function pushMetrics(
|
|
5
|
+
sys: DevToolsSys,
|
|
6
|
+
credentials: Credentials,
|
|
7
|
+
body: FusionMetrics,
|
|
8
|
+
): Promise<void>;
|
|
@@ -3,17 +3,26 @@ import type { DevToolsSys } from "../../types";
|
|
|
3
3
|
/**
|
|
4
4
|
* Scrub sensitive data from fusion config before sending to webapp or logging
|
|
5
5
|
*/
|
|
6
|
-
export declare function scrubFusionConfig(
|
|
6
|
+
export declare function scrubFusionConfig(
|
|
7
|
+
config: FusionConfig | undefined,
|
|
8
|
+
): FusionConfig | undefined;
|
|
7
9
|
export declare const isInRemoteContainer: () => boolean;
|
|
8
10
|
export declare const getVolumePath: (fusionConfig: FusionConfig) => string;
|
|
9
|
-
export declare function computeAIBranchName(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export declare function computeAIBranchName(
|
|
12
|
+
featureBranch: string,
|
|
13
|
+
sessionId: string,
|
|
14
|
+
): string;
|
|
15
|
+
export declare const getAndParseGitRepoInfo: ({
|
|
16
|
+
sys,
|
|
17
|
+
gitWorkingDirectory,
|
|
18
|
+
strict,
|
|
19
|
+
}: {
|
|
20
|
+
sys: DevToolsSys;
|
|
21
|
+
gitWorkingDirectory: string;
|
|
22
|
+
strict: boolean;
|
|
14
23
|
}) => Promise<{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
currentBranch: string;
|
|
25
|
+
featureBranch: string;
|
|
26
|
+
sessionId: string | undefined;
|
|
27
|
+
currentCommitHash: string;
|
|
19
28
|
}>;
|