@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,8 +2,13 @@ import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
|
2
2
|
import type { Credentials } from "../credentials";
|
|
3
3
|
import type { FusionConfig, LaunchServerStatus } from "$/ai-utils";
|
|
4
4
|
interface FusionStatusMonitor {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
start: () => void;
|
|
6
|
+
stop: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function createFusionStatusMonitor(
|
|
8
|
+
export declare function createFusionStatusMonitor(
|
|
9
|
+
sys: DevToolsSys,
|
|
10
|
+
credentials: Credentials,
|
|
11
|
+
fusionConfig: FusionConfig,
|
|
12
|
+
sharedState: LaunchServerStatus,
|
|
13
|
+
): FusionStatusMonitor | null;
|
|
9
14
|
export {};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../types";
|
|
2
2
|
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
3
|
import type { IncomingMessage } from "http";
|
|
4
|
-
export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<
|
|
5
|
-
|
|
4
|
+
export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<
|
|
5
|
+
typeof IncomingMessage,
|
|
6
|
+
typeof import("http").ServerResponse,
|
|
7
|
+
Error
|
|
8
|
+
>;
|
|
9
|
+
export declare const createProxyMiddleware: (
|
|
10
|
+
serverUrl: URL,
|
|
11
|
+
sys: DevToolsSys,
|
|
12
|
+
) => ProxyMiddleware | undefined;
|
|
6
13
|
/**
|
|
7
14
|
* Detects if HTML was server-side rendered by checking for framework-specific markers.
|
|
8
15
|
* Returns whether SSR was used and whether the header/head was server-rendered.
|
|
9
16
|
*/
|
|
10
17
|
export declare const detectSSR: (body: string) => {
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
hasSSR: boolean;
|
|
19
|
+
hasHeaderSSR: boolean;
|
|
13
20
|
};
|
|
14
21
|
export declare const permissiveHTTPS: any;
|
|
@@ -7,17 +7,24 @@ export declare const BUILDER_API_ENDPOINT_PREFIX: string;
|
|
|
7
7
|
* Endpoints that are not authenticated because they are used by the fly.io health check.
|
|
8
8
|
*/
|
|
9
9
|
export declare const NON_AUTHENTICATED_ENDPOINTS: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
readonly STATUS: "/status";
|
|
11
|
+
readonly PROXY_STATUS: "/proxy-status";
|
|
12
|
+
readonly STATUS_V2: "/status-v2";
|
|
13
|
+
readonly INIT_LOGS: "/init-logs";
|
|
14
|
+
readonly TUNNEL_STATUS: "/tunnel/status";
|
|
15
15
|
};
|
|
16
|
-
export declare const configureServer: ({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
export declare const configureServer: ({
|
|
17
|
+
sys,
|
|
18
|
+
app,
|
|
19
|
+
validBuilderPrivateKey,
|
|
20
|
+
authenticateProxy,
|
|
21
|
+
isLocal,
|
|
22
|
+
sharedState,
|
|
23
|
+
}: {
|
|
24
|
+
sys: DevToolsSys;
|
|
25
|
+
app: Express;
|
|
26
|
+
validBuilderPrivateKey: string | undefined;
|
|
27
|
+
authenticateProxy: boolean;
|
|
28
|
+
isLocal: boolean;
|
|
29
|
+
sharedState: LaunchServerStatus;
|
|
23
30
|
}) => void;
|
|
@@ -7,23 +7,23 @@ export type TunnelStatus = "stopped" | "starting" | "running" | "error";
|
|
|
7
7
|
* VS Code Tunnel information
|
|
8
8
|
*/
|
|
9
9
|
export interface TunnelInfo {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
status: TunnelStatus;
|
|
11
|
+
name: string | null;
|
|
12
|
+
url: string | null;
|
|
13
|
+
vscodeUri: string | null;
|
|
14
|
+
cursorUri: string | null;
|
|
15
|
+
webUrl: string | null;
|
|
16
|
+
error: string | null;
|
|
17
|
+
workspacePath: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Options for starting a VS Code tunnel
|
|
21
21
|
*/
|
|
22
22
|
export interface TunnelOptions {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
name: string;
|
|
24
|
+
workspacePath?: string;
|
|
25
|
+
acceptLicense?: boolean;
|
|
26
|
+
autoRestart?: boolean;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* VS Code Tunnel Manager
|
|
@@ -36,59 +36,59 @@ export interface TunnelOptions {
|
|
|
36
36
|
* - Cleanup on shutdown
|
|
37
37
|
*/
|
|
38
38
|
export declare class VSCodeTunnelManager extends EventEmitter {
|
|
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
|
-
|
|
39
|
+
private process;
|
|
40
|
+
private status;
|
|
41
|
+
private tunnelName;
|
|
42
|
+
private tunnelUrl;
|
|
43
|
+
private error;
|
|
44
|
+
private workspacePath;
|
|
45
|
+
private autoRestart;
|
|
46
|
+
private restartAttempts;
|
|
47
|
+
private maxRestartAttempts;
|
|
48
|
+
private restartDelay;
|
|
49
|
+
private isShuttingDown;
|
|
50
|
+
constructor();
|
|
51
|
+
/**
|
|
52
|
+
* Start the VS Code tunnel
|
|
53
|
+
*/
|
|
54
|
+
start(options: TunnelOptions): Promise<TunnelInfo>;
|
|
55
|
+
/**
|
|
56
|
+
* Spawn the tunnel process
|
|
57
|
+
*/
|
|
58
|
+
private spawnTunnel;
|
|
59
|
+
/**
|
|
60
|
+
* Parse tunnel output to extract URL
|
|
61
|
+
*/
|
|
62
|
+
private parseOutput;
|
|
63
|
+
/**
|
|
64
|
+
* Stop the VS Code tunnel
|
|
65
|
+
*/
|
|
66
|
+
stop(): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Get current tunnel information
|
|
69
|
+
*/
|
|
70
|
+
getInfo(): TunnelInfo;
|
|
71
|
+
/**
|
|
72
|
+
* Get tunnel status
|
|
73
|
+
*/
|
|
74
|
+
getStatus(): TunnelStatus;
|
|
75
|
+
/**
|
|
76
|
+
* Check if tunnel is enabled
|
|
77
|
+
* Enabled by default for cloud environments, can be disabled with VSCODE_TUNNEL_ENABLED=false
|
|
78
|
+
*/
|
|
79
|
+
static isEnabled(): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Check if auto-start is enabled
|
|
82
|
+
*/
|
|
83
|
+
static isAutoStartEnabled(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Get the configured tunnel name from environment or generate one
|
|
86
|
+
*/
|
|
87
|
+
static getTunnelName(projectId?: string, branchName?: string): string;
|
|
88
|
+
/**
|
|
89
|
+
* Get the configured workspace path
|
|
90
|
+
*/
|
|
91
|
+
static getWorkspacePath(): string;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Get the singleton tunnel manager instance
|
|
@@ -97,12 +97,21 @@ export declare function getTunnelManager(): VSCodeTunnelManager;
|
|
|
97
97
|
/**
|
|
98
98
|
* Generate VS Code deep link for a tunnel
|
|
99
99
|
*/
|
|
100
|
-
export declare function generateVSCodeDeepLink(
|
|
100
|
+
export declare function generateVSCodeDeepLink(
|
|
101
|
+
tunnelName: string,
|
|
102
|
+
workspacePath?: string,
|
|
103
|
+
): string;
|
|
101
104
|
/**
|
|
102
105
|
* Generate Cursor deep link for a tunnel
|
|
103
106
|
*/
|
|
104
|
-
export declare function generateCursorDeepLink(
|
|
107
|
+
export declare function generateCursorDeepLink(
|
|
108
|
+
tunnelName: string,
|
|
109
|
+
workspacePath?: string,
|
|
110
|
+
): string;
|
|
105
111
|
/**
|
|
106
112
|
* Generate web editor link for a tunnel
|
|
107
113
|
*/
|
|
108
|
-
export declare function generateWebEditorLink(
|
|
114
|
+
export declare function generateWebEditorLink(
|
|
115
|
+
tunnelName: string,
|
|
116
|
+
workspacePath?: string,
|
|
117
|
+
): string;
|
package/types/cli/launch.d.ts
CHANGED
|
@@ -2,111 +2,114 @@ import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
|
2
2
|
import type { CLIArgs } from "./index";
|
|
3
3
|
export declare const DEFAULT_PROXY_PORT = 48752;
|
|
4
4
|
export interface LaunchArgs extends CLIArgs {
|
|
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
|
-
|
|
5
|
+
/** Project ID for the dev server. Only needed when running in a remote container. */
|
|
6
|
+
projectId?: string;
|
|
7
|
+
/** Branch name for the dev server. Only needed when running in a remote container. */
|
|
8
|
+
branchName?: string;
|
|
9
|
+
/** Silent mode for launch command */
|
|
10
|
+
silent?: boolean;
|
|
11
|
+
/** Port number for the dev server */
|
|
12
|
+
port?: number;
|
|
13
|
+
/** Port number for the dev server (shorthand) */
|
|
14
|
+
p?: number;
|
|
15
|
+
/** Dev server command to execute */
|
|
16
|
+
command?: string;
|
|
17
|
+
/** Install command to execute */
|
|
18
|
+
installCommand?: string;
|
|
19
|
+
/** Dev server command to execute (shorthand) */
|
|
20
|
+
c?: string;
|
|
21
|
+
/** Dev server URL to proxy to (alternative to command + port) */
|
|
22
|
+
serverUrl?: string;
|
|
23
|
+
/**
|
|
24
|
+
* If true, CLI will run the init command instead of the launch command.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
fusionInit?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If true, CLI will be interactive and prompt the user for input.
|
|
31
|
+
*
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
interactive?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Decides whether to skip authentication for the user's proxy server.
|
|
37
|
+
* Our own _builder.io/ endpoitns are always authenticated.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
authenticateProxy?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates the type of docker image the CLI is running on.
|
|
44
|
+
*
|
|
45
|
+
* @default "node"
|
|
46
|
+
*/
|
|
47
|
+
dockerImageType?: "fusion-starter" | "node";
|
|
48
|
+
/**
|
|
49
|
+
* Output structured JSON data.
|
|
50
|
+
* Useful for programmatic consumption (e.g., VSCode extensions).
|
|
51
|
+
*
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
jsonOutput?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Enable local development mode with port availability checking.
|
|
57
|
+
* When enabled, automatically finds an available port if the default is in use.
|
|
58
|
+
*
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
local?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Enable privacy mode for codegen.
|
|
64
|
+
* When enabled, encrypts sensitive data in communication with the AI service.
|
|
65
|
+
*
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
privacyMode?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Auto-detect dev server URL and port from command output.
|
|
71
|
+
* When enabled, the system will parse the dev server output to automatically
|
|
72
|
+
* detect the server URL and port instead of requiring manual configuration.
|
|
73
|
+
*
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
autoDetectDevServer?: boolean;
|
|
77
|
+
/** Inlined to builder.config.json file */
|
|
78
|
+
configJson?: string;
|
|
79
|
+
/** Path to fusion.config.json file */
|
|
80
|
+
configPath?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Enable HTTPS server.
|
|
83
|
+
* When enabled, creates both HTTP and HTTPS servers.
|
|
84
|
+
*
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
https?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Custom domain to use instead of localhost in proxy URLs.
|
|
90
|
+
* Useful for development with custom SSL certificates.
|
|
91
|
+
*/
|
|
92
|
+
localHttpsDomain?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Enable native app mode.
|
|
95
|
+
* When enabled, runs setup and dev commands without proxy server functionality.
|
|
96
|
+
* Useful for native app development where the simulator handles its own server.
|
|
97
|
+
*
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
nativeApp?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Open Builder in chat-only mode.
|
|
103
|
+
* When enabled, adds ?chatOnly=true to the Builder URL.
|
|
104
|
+
*
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
chat?: boolean;
|
|
108
108
|
}
|
|
109
|
-
export declare function runFusionCommand({
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
export declare function runFusionCommand({
|
|
110
|
+
sys,
|
|
111
|
+
args,
|
|
112
|
+
}: {
|
|
113
|
+
sys: DevToolsSys;
|
|
114
|
+
args: LaunchArgs;
|
|
112
115
|
}): Promise<void>;
|
package/types/cli/prettier.d.ts
CHANGED
|
@@ -8,9 +8,16 @@
|
|
|
8
8
|
* Load prettier, preferring the user's local installation.
|
|
9
9
|
* Falls back to built-in prettier, or null if not available.
|
|
10
10
|
*/
|
|
11
|
-
export declare function loadPrettier(
|
|
11
|
+
export declare function loadPrettier(
|
|
12
|
+
absoluteFilePath: string | undefined,
|
|
13
|
+
): typeof import("prettier") | null;
|
|
12
14
|
/**
|
|
13
15
|
* Format code using prettier.
|
|
14
16
|
* Gracefully returns original code if prettier is not available.
|
|
15
17
|
*/
|
|
16
|
-
export declare function prettierFormat(
|
|
18
|
+
export declare function prettierFormat(
|
|
19
|
+
workingDirectory: string,
|
|
20
|
+
code: string,
|
|
21
|
+
parser: string | undefined,
|
|
22
|
+
filePath: string | undefined,
|
|
23
|
+
): Promise<string>;
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
import type { EnvironmentVariable } from "$/ai-utils";
|
|
2
2
|
import type { DevToolsSys } from "../../types";
|
|
3
3
|
interface CategorizedEnvVar {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
category: string;
|
|
7
|
+
isSecret: boolean;
|
|
8
|
+
shouldPreselect: boolean;
|
|
9
|
+
fromDotEnv?: boolean;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Filter and categorize environment variables
|
|
13
13
|
*/
|
|
14
|
-
export declare function filterAndCategorizeEnvVars(
|
|
14
|
+
export declare function filterAndCategorizeEnvVars(
|
|
15
|
+
dotEnvVars?: Record<string, string>,
|
|
16
|
+
): CategorizedEnvVar[];
|
|
15
17
|
/**
|
|
16
18
|
* Present multiselect UI for environment variables
|
|
17
19
|
*/
|
|
18
|
-
export declare function selectEnvironmentVariables(
|
|
20
|
+
export declare function selectEnvironmentVariables(
|
|
21
|
+
sys: DevToolsSys,
|
|
22
|
+
gitRoot: string,
|
|
23
|
+
): Promise<EnvironmentVariable[] | null>;
|
|
19
24
|
/**
|
|
20
25
|
* Format environment variables summary
|
|
21
26
|
*/
|
|
22
27
|
export declare function formatEnvSummary(envVars: EnvironmentVariable[]): {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
total: number;
|
|
29
|
+
secrets: number;
|
|
30
|
+
public: number;
|
|
26
31
|
};
|
|
27
32
|
export {};
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../types";
|
|
2
2
|
import type { FileOverride } from "$/ai-utils";
|
|
3
3
|
export interface CollectedFiles {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
projectNpmrc?: {
|
|
5
|
+
path: string;
|
|
6
|
+
content: string;
|
|
7
|
+
};
|
|
8
|
+
userNpmrc?: {
|
|
9
|
+
path: string;
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
12
|
+
etcHosts?: {
|
|
13
|
+
path: string;
|
|
14
|
+
content: string;
|
|
15
|
+
};
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Collect configuration files from the project and system
|
|
19
19
|
*/
|
|
20
|
-
export declare function collectConfigFiles(
|
|
20
|
+
export declare function collectConfigFiles(
|
|
21
|
+
sys: DevToolsSys,
|
|
22
|
+
gitRoot: string,
|
|
23
|
+
): Promise<CollectedFiles>;
|
|
21
24
|
/**
|
|
22
25
|
* Convert collected files to FileOverride array with proper path conventions
|
|
23
26
|
*
|
|
@@ -26,7 +29,9 @@ export declare function collectConfigFiles(sys: DevToolsSys, gitRoot: string): P
|
|
|
26
29
|
* - ~/ prefix = relative to home directory
|
|
27
30
|
* - absolute paths = only for well-known system files
|
|
28
31
|
*/
|
|
29
|
-
export declare function filesToFileOverrides(
|
|
32
|
+
export declare function filesToFileOverrides(
|
|
33
|
+
collected: CollectedFiles,
|
|
34
|
+
): FileOverride[];
|
|
30
35
|
/**
|
|
31
36
|
* Format collected files summary
|
|
32
37
|
*/
|
|
@@ -34,4 +39,6 @@ export declare function formatFilesSummary(collected: CollectedFiles): string[];
|
|
|
34
39
|
/**
|
|
35
40
|
* Present multiselect UI for file overrides
|
|
36
41
|
*/
|
|
37
|
-
export declare function selectFileOverrides(
|
|
42
|
+
export declare function selectFileOverrides(
|
|
43
|
+
collected: CollectedFiles,
|
|
44
|
+
): Promise<FileOverride[] | null>;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../types";
|
|
2
2
|
export interface GitInfo {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
gitRoot: string;
|
|
4
|
+
recommendedRoot?: string;
|
|
5
|
+
originUrl: string;
|
|
6
|
+
repoProvider: "github" | "gitlab" | "bitbucket" | "azure" | "custom";
|
|
7
|
+
repoProtocol: "https" | "ssh";
|
|
8
|
+
repoFullName: string;
|
|
9
|
+
repoOwner: string;
|
|
10
|
+
repoName: string;
|
|
11
|
+
isPrivate: boolean;
|
|
12
|
+
projectName: string;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Detect git repository information
|
|
16
16
|
*/
|
|
17
|
-
export declare function detectGitInfo(
|
|
17
|
+
export declare function detectGitInfo(
|
|
18
|
+
sys: DevToolsSys,
|
|
19
|
+
): Promise<GitInfo | undefined>;
|
|
18
20
|
/**
|
|
19
21
|
* Display git info in a user-friendly format
|
|
20
22
|
*/
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export interface InstallResult {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
success: boolean;
|
|
3
|
+
command: string;
|
|
4
|
+
exitCode?: number;
|
|
5
|
+
skipped: boolean;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Run install command with live output and retry logic
|
|
9
9
|
*/
|
|
10
|
-
export declare function runInstallCommand(
|
|
10
|
+
export declare function runInstallCommand(
|
|
11
|
+
cwd: string,
|
|
12
|
+
initialCommand?: string,
|
|
13
|
+
): Promise<InstallResult>;
|