@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
|
@@ -1,54 +1,81 @@
|
|
|
1
1
|
import type { FigmaComponentInfo } from "$/ai-utils";
|
|
2
2
|
import type { CLIArgs } from "..";
|
|
3
3
|
import type { DevToolsSys } from "../../core";
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
PublishedComponent,
|
|
6
|
+
PublishedComponentSet,
|
|
7
|
+
} from "@figma/rest-api-spec";
|
|
5
8
|
type Context = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
sys: DevToolsSys;
|
|
10
|
+
args: CLIArgs;
|
|
11
|
+
debug: (msg: unknown) => void;
|
|
12
|
+
figmaAuth: {
|
|
13
|
+
access_token: string;
|
|
14
|
+
oauth: boolean;
|
|
15
|
+
};
|
|
13
16
|
};
|
|
14
17
|
/**
|
|
15
18
|
* A component or component set
|
|
16
19
|
*/
|
|
17
20
|
type FigmaTeamComponent = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
/** The unique identifier for the component. */
|
|
22
|
+
key: string;
|
|
23
|
+
/** The unique identifier of the Figma file that contains the component. */
|
|
24
|
+
file_key: string;
|
|
25
|
+
/** The unique identifier of the component node within the Figma file. */
|
|
26
|
+
node_id: string;
|
|
27
|
+
/** A URL to a thumbnail image of the component. */
|
|
28
|
+
thumbnail_url?: string;
|
|
29
|
+
/** The name of the component. */
|
|
30
|
+
name: string;
|
|
31
|
+
/** The description of the component as entered by the publisher. */
|
|
32
|
+
description: string;
|
|
33
|
+
/** The component data. */
|
|
34
|
+
componentData?: FigmaComponentInfo;
|
|
35
|
+
/** Whether the component is published. */
|
|
36
|
+
isPublished?: boolean;
|
|
34
37
|
};
|
|
35
38
|
export declare function extractFigmaIds(url: string): {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
teamId?: string;
|
|
40
|
+
fileKey?: string;
|
|
41
|
+
nodeId?: string;
|
|
39
42
|
};
|
|
40
|
-
export declare function fetchTeamComponents(
|
|
41
|
-
|
|
43
|
+
export declare function fetchTeamComponents(
|
|
44
|
+
context: Context,
|
|
45
|
+
teamId: string,
|
|
46
|
+
onProgress: () => void,
|
|
47
|
+
): Promise<PublishedComponent[]>;
|
|
48
|
+
export declare function fetchTeamComponentSets(
|
|
49
|
+
context: Context,
|
|
50
|
+
teamId: string,
|
|
51
|
+
onProgress: () => void,
|
|
52
|
+
): Promise<PublishedComponentSet[]>;
|
|
42
53
|
/**
|
|
43
54
|
* Returns a list of components and component sets that are present in the file or selection as
|
|
44
55
|
* well as a set of remote keys for components that are referenced but not present.
|
|
45
56
|
*/
|
|
46
|
-
export declare function processFileOrSelection(
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
export declare function processFileOrSelection(
|
|
58
|
+
context: Context,
|
|
59
|
+
fileKey: string,
|
|
60
|
+
nodeId?: string,
|
|
61
|
+
): Promise<{
|
|
62
|
+
fileComponents: FigmaTeamComponent[];
|
|
63
|
+
remoteKeys: Set<string>;
|
|
49
64
|
}>;
|
|
50
|
-
export declare function fetchRemoteComponentData(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
65
|
+
export declare function fetchRemoteComponentData(
|
|
66
|
+
context: Context,
|
|
67
|
+
remoteKeys: Set<string>,
|
|
68
|
+
): Promise<(FigmaTeamComponent | undefined)[]>;
|
|
69
|
+
export declare function resolveComponentData(
|
|
70
|
+
context: Context,
|
|
71
|
+
components: FigmaTeamComponent[],
|
|
72
|
+
): Promise<FigmaTeamComponent[]>;
|
|
73
|
+
export declare function generateComponentReport(
|
|
74
|
+
component: FigmaTeamComponent,
|
|
75
|
+
baseDir: string,
|
|
76
|
+
): Promise<void>;
|
|
77
|
+
export declare const runFigmaReport: (
|
|
78
|
+
sys: DevToolsSys,
|
|
79
|
+
args: CLIArgs,
|
|
80
|
+
) => Promise<void>;
|
|
54
81
|
export {};
|
package/types/cli/server-ws.d.ts
CHANGED
|
@@ -3,48 +3,56 @@ import type { IncomingMessage } from "node:http";
|
|
|
3
3
|
import type { ServerOptions } from "ws";
|
|
4
4
|
import type { WebSocket } from "ws";
|
|
5
5
|
export interface SocketRequest {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
id: number;
|
|
7
|
+
jsonrpc: string;
|
|
8
|
+
method: string;
|
|
9
|
+
params: any;
|
|
10
10
|
}
|
|
11
11
|
export interface SocketResponse<T = any> {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
id?: number | null;
|
|
13
|
+
jsonrpc: string;
|
|
14
|
+
result?: T;
|
|
15
|
+
notification?: string;
|
|
16
|
+
params?: any;
|
|
17
|
+
error?: {
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
data?: any;
|
|
21
|
+
};
|
|
22
22
|
}
|
|
23
23
|
export interface SocketSendOptions {
|
|
24
|
-
|
|
24
|
+
timeout?: number;
|
|
25
25
|
}
|
|
26
26
|
export interface SocketQueue {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
type: "request" | "notification";
|
|
28
|
+
result?: SocketResponse["result"];
|
|
29
|
+
error?: SocketResponse["error"];
|
|
30
30
|
}
|
|
31
31
|
type RegisterFn<T = any> = (params: T, socketId: string) => Promise<any> | any;
|
|
32
32
|
interface SocketEvents {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
listening: () => Promise<void> | void;
|
|
34
|
+
connection: (socket: WebSocket, socketId: string) => Promise<void> | void;
|
|
35
|
+
disconnection: (socketId: string) => Promise<void> | void;
|
|
36
|
+
error: (error: Error) => Promise<void> | void;
|
|
37
|
+
"socket-error": (socketId: string, error: Error) => Promise<void> | void;
|
|
38
|
+
close: () => Promise<void> | void;
|
|
39
39
|
}
|
|
40
40
|
export declare function RPCWebSocketServer(opts: ServerOptions): {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
on: <EventKey extends keyof SocketEvents>(
|
|
42
|
+
event: EventKey,
|
|
43
|
+
cb: SocketEvents[EventKey],
|
|
44
|
+
) => void;
|
|
45
|
+
event: (e: string) => void;
|
|
46
|
+
handleUpgrade: (
|
|
47
|
+
req: IncomingMessage,
|
|
48
|
+
socket: Duplex,
|
|
49
|
+
upgradeHead: Buffer,
|
|
50
|
+
callback?: (client: WebSocket, request: IncomingMessage) => void,
|
|
51
|
+
) => Promise<void>;
|
|
52
|
+
clients: () => Map<string, WebSocket>;
|
|
53
|
+
register: <T = any>(method: string, fn: RegisterFn<T>) => void;
|
|
54
|
+
emit: (name: string, ...params: any[]) => void;
|
|
55
|
+
notify: (name: string, socketId: string, ...params: any[]) => void;
|
|
56
|
+
close: () => Promise<unknown>;
|
|
49
57
|
};
|
|
50
58
|
export {};
|
package/types/cli/spinner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const spinner: () => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
start: (msg?: string) => void;
|
|
3
|
+
stop: (msg?: string, code?: number) => void;
|
|
4
|
+
message: (msg?: string) => void;
|
|
5
|
+
extra: (msg?: string) => void;
|
|
6
6
|
};
|
package/types/cli/track.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as Amplitude from "@amplitude/analytics-node";
|
|
2
2
|
import * as Sentry from "@sentry/node";
|
|
3
3
|
export declare function initTracking(verbose: boolean): Promise<typeof Sentry>;
|
|
4
|
-
export declare function track(
|
|
4
|
+
export declare function track(
|
|
5
|
+
eventName: string,
|
|
6
|
+
options: Record<string, any>,
|
|
7
|
+
): Promise<Amplitude.Types.Result>;
|
|
5
8
|
export declare function setUserId(id: string): Promise<void>;
|
|
@@ -14,9 +14,14 @@ export type { SubAgent };
|
|
|
14
14
|
* @param rootDir - Root directory to stop search
|
|
15
15
|
* @returns Array of discovered agents
|
|
16
16
|
*/
|
|
17
|
-
export declare function getCustomAgents({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
export declare function getCustomAgents({
|
|
18
|
+
sys,
|
|
19
|
+
projectDir,
|
|
20
|
+
currentDir,
|
|
21
|
+
rootDir,
|
|
22
|
+
}: {
|
|
23
|
+
sys: DevToolsSys;
|
|
24
|
+
projectDir: string;
|
|
25
|
+
currentDir: string;
|
|
26
|
+
rootDir: string;
|
|
22
27
|
}): Promise<SubAgent[]>;
|
|
@@ -17,12 +17,6 @@ export interface SubAgent {
|
|
|
17
17
|
needValidation?: boolean;
|
|
18
18
|
resetAfterRun?: boolean;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Resolves model shortcut to full model name
|
|
22
|
-
* @param modelOrShortcut - Model name or shortcut (or "inherit" to use parent model)
|
|
23
|
-
* @returns Resolved model name or undefined (undefined means inherit from parent)
|
|
24
|
-
*/
|
|
25
|
-
export declare function resolveModelShortcut(modelOrShortcut?: string): string | undefined;
|
|
26
20
|
/**
|
|
27
21
|
* Parses an agent definition file (Markdown with YAML frontmatter)
|
|
28
22
|
* Expected format (following Claude Code sub-agents format):
|
|
@@ -4,7 +4,7 @@ export { getCustomInstructions } from "./rules-discovery";
|
|
|
4
4
|
import type { CodeGenInputOptions, CodegenSetLastCompletion, CodegenTurn, GenerateCodeEvent, GenerateUserMessage, GetSessionTurnsResult, UserContext, WorkspaceConfiguration, WorkspaceFolder, EnvironmentVariable, PushChangesArgs, PushChangesOptions, GenerateCompletionStepDevServerState, FusionConfig, GenerateCompletionStepGit } from "$/ai-utils";
|
|
5
5
|
import type { SessionContext } from "../codegen";
|
|
6
6
|
import type { DevServerOrchestrator } from "../launch/dev-server-orchestrator";
|
|
7
|
-
export declare const DEFAULT_MAX_COMPLETIONS =
|
|
7
|
+
export declare const DEFAULT_MAX_COMPLETIONS = 50;
|
|
8
8
|
/**
|
|
9
9
|
* Merges and deduplicates items by name.
|
|
10
10
|
* Built-in items come first, discovered items can override them by name.
|
|
@@ -27,6 +27,15 @@ export declare function restoreConsumedCredit(sys: DevToolsSys, credentials: Cre
|
|
|
27
27
|
export declare function analyzePayloadBreakdown(body: CodeGenInputOptions, jsonString: string): Record<string, any>;
|
|
28
28
|
export declare function completionStream(sys: DevToolsSys, credentials: Credentials, body: CodeGenInputOptions, signal: AbortSignal): AsyncGenerator<GenerateCodeEvent, void, unknown>;
|
|
29
29
|
export declare function codegenEndpoint(sys: DevToolsSys, credentials: Credentials, endpoint: string, body: Record<string, any>): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Makes a POST request to a codegen endpoint and returns parsed JSON.
|
|
32
|
+
* Returns undefined on failure (no retries, silent failure).
|
|
33
|
+
* Designed for non-critical requests like commit message generation.
|
|
34
|
+
*/
|
|
35
|
+
export declare function codegenPostJson<T>(credentials: Credentials, endpoint: string, body: Record<string, unknown>, options?: {
|
|
36
|
+
signal?: AbortSignal;
|
|
37
|
+
timeoutMs?: number;
|
|
38
|
+
}): Promise<T | undefined>;
|
|
30
39
|
export declare function setLastCompletionOfSession(sys: DevToolsSys, credentials: Credentials, data: CodegenSetLastCompletion, _verbose: boolean): Promise<boolean>;
|
|
31
40
|
export declare function getTurnsBySessionId(sys: DevToolsSys, credentials: Credentials, sessionId: string, linear: boolean, completionIdCursor?: string, signal?: AbortSignal): Promise<GetSessionTurnsResult>;
|
|
32
41
|
export declare const parseCLIURL: (url: string | undefined) => {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const COMPONENT_GROUP_MDX_PROMPT =
|
|
1
|
+
export declare const COMPONENT_GROUP_MDX_PROMPT =
|
|
2
|
+
"# Component Documentation Generation\n\n## Objective\nGenerate comprehensive MDX documentation for a specific component, analyzing their interfaces, relationships, and usage patterns using the relevant files provided in the input.\n\n## Instructions\n\n### 1. Component Analysis\nFor the given component, analyze each relevant file by:\n- **Interdependency mapping** - Document how components depend on each other\n- **Interface examination** - Extract and document all props, their types, and descriptions\n- **Context analysis** - Identify shared state, contexts, or communication patterns\n- **Compositional patterns** - Document required parent-child relationships\n- **Usage pattern analysis** - Identify how components work together\n- **Example extraction** - Find real usage examples from the codebase\n\n{{COMPONENT_NAME}} has the following related components: {{RELATED_COMPONENTS}}\nThe following files are associated with {{COMPONENT_NAME}}: {{FILE_LIST}}\n\n### 2. Documentation Structure\nCreate comprehensive documentation covering:\n- **Component rationale** - Why these components work together and when to use them\n- **Architectural overview** - How the components form a cohesive system\n- **Component interfaces** - Detailed prop documentation with interdependencies\n- **Composition patterns** - Required and optional usage combinations\n- **Integration examples** - Real-world scenarios showing the component in action\n- **Best practices** - Recommended usage patterns and guidelines\n\n## Required Output Format\n\nGenerate an MDX file with this structure:\n\n```mdx\n---\n# {{COMPONENT_NAME}}\n\n## Overview\n\n### Purpose\n{{COMPONENT_DESCRIPTION}}\n\n### When to Use\n[Expand on the use cases mentioned in the description - be specific about scenarios, user needs, and implementation contexts]\n\n### Architecture\n[Explain the architectural pattern based on coupling strength:]\n- **Critical/Strong Coupling**: Describe the required relationships, shared context, or compositional hierarchy\n- **Moderate Coupling**: Explain how components enhance each other\n- **No Coupling**: Note that this is a standalone component\n\n### Component Interdependencies\n[Map out component relationships - only for components with coupling:]\n- Required parent-child relationships\n- Shared context dependencies \n- Communication patterns between components\n- Related components\n\n## API\n**Types**: Interfaces related to the component including all props, methods, or children along with descriptions.\n**Dependencies:** Other components that must be used\n**Provides:** Context/state this component provides to children. Only required for coupled components.\n\n## Usage Examples\nInclude examples that show how to fully use the component. At a minimum, you must include the following examples:\n\n- Basic usage including how to import the component if applicable\n- Usage with any dependency components\n- Variations with conditional rendering, different prop combinations, etc\n\n## Component Relationships {Only for coupled components}\n\n### Data Flow\n[Explain how data flows between the component and related components}\n\n### Context Sharing\n[Document shared contexts, providers, or state management]\n\n### Event Handling\n[Describe how events bubble up or propagate between components]\n\n## Best Practices\n\n### Usage Guidelines\n- [Specific recommendation based on component purpose and use cases]\n- [Another recommendation focusing on accessibility or performance]\n- [Usage pattern guidance based on the component's architecture]\n\n### Accessibility {When relevant}\n- [ARIA relationships between components]\n- [Keyboard navigation patterns]\n- [Screen reader considerations]\n\n### Performance {When relevant}\n- [Optimization recommendations]\n- [State management best practices]\n- [Rendering performance considerations]\n\n## Common Patterns {Expand based on component functionality}\n\n### Pattern 1: [Specific Pattern Name]\n```tsx\n// Example showing a specific usage pattern\n// Include comments explaining why this pattern is recommended\n```\n\n### Pattern 2: [Another Pattern Name]\n```tsx\n// Another common pattern with explanation\n```\n\n```\n\n## File Generation Requirements\n\n**File Naming:**\n- Use kebab-case derived from component name: `{{COMPONENT_NAME_KEBAB}}.mdx`\n- Place in `repo-indexing/` folder\n- Example: `repo-indexing/{{COMPONENT_NAME_KEBAB}}.mdx`\n\n**Content Requirements:**\n1. **Use coupling strength context** - Adapt documentation structure based on couplingStrength value\n2. **Extract real interfaces** - Don't create placeholder interfaces, extract actual type interfaces from the codebase\n3. **Leverage component description** - Expand on the provided description with specific use cases and implementation guidance\n4. **Document interdependencies** - For coupled components, clearly explain component relationships and requirements\n5. **Include practical examples** - Use realistic, working code examples that demonstrate proper usage\n6. **Show integration patterns** - For coupled components, demonstrate required composition patterns\n**Coupling-Specific Requirements:**\n- **Critical/Strong Coupling**: Focus on required relationships, composition patterns, and shared context\n- **Moderate Coupling**: Show how components enhance each other and optional usage patterns \n- **No Coupling**: Document standalone usage, variants, and individual component capabilities\n\n## Output\nReturn only the complete MDX file content, ready to be saved as `repo-indexing/{{COMPONENT_NAME_KEBAB}}.mdx`. You must use the Write tool in your response.";
|
|
@@ -4,4 +4,6 @@ import type { DevToolsSys } from "../../types";
|
|
|
4
4
|
* @param files - Object mapping file paths to file contents
|
|
5
5
|
* @returns Mock DevToolsSys instance
|
|
6
6
|
*/
|
|
7
|
-
export declare function createMockSys(
|
|
7
|
+
export declare function createMockSys(
|
|
8
|
+
files: Record<string, string>,
|
|
9
|
+
): DevToolsSys;
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
* Options for capturing environment variables from a setup command
|
|
3
3
|
*/
|
|
4
4
|
export interface EnvCaptureOptions {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** The command to wrap with env capture */
|
|
6
|
+
command: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Result of environment capture
|
|
10
10
|
*/
|
|
11
11
|
export interface EnvCaptureResult {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
/** The modified command that includes env capture */
|
|
13
|
+
command: string;
|
|
14
|
+
/** Path to the temporary file where env will be captured */
|
|
15
|
+
envFilePath: string;
|
|
16
|
+
/**
|
|
17
|
+
* Function to get the captured environment variables.
|
|
18
|
+
* This will read, parse, and cleanup the env file in one call.
|
|
19
|
+
* Returns undefined if the env file couldn't be read.
|
|
20
|
+
*/
|
|
21
|
+
getCapturedEnv: () => Promise<Record<string, string> | undefined>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Wraps a command with environment variable capture at the end.
|
|
@@ -38,7 +38,9 @@ export interface EnvCaptureResult {
|
|
|
38
38
|
* const env = await getCapturedEnv();
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
export declare function wrapCommandWithEnvCapture(
|
|
41
|
+
export declare function wrapCommandWithEnvCapture(
|
|
42
|
+
options: EnvCaptureOptions,
|
|
43
|
+
): EnvCaptureResult;
|
|
42
44
|
/**
|
|
43
45
|
* Parses an environment file into a key-value object.
|
|
44
46
|
* Handles multi-line values and empty lines.
|
|
@@ -52,7 +54,9 @@ export declare function wrapCommandWithEnvCapture(options: EnvCaptureOptions): E
|
|
|
52
54
|
* console.log(env.PATH); // "/usr/bin:/bin"
|
|
53
55
|
* ```
|
|
54
56
|
*/
|
|
55
|
-
export declare function parseEnvFile(
|
|
57
|
+
export declare function parseEnvFile(
|
|
58
|
+
filePath: string,
|
|
59
|
+
): Promise<Record<string, string>>;
|
|
56
60
|
/**
|
|
57
61
|
* Parses environment variable content into a key-value object.
|
|
58
62
|
* This is the core parsing logic extracted for easier testing.
|
|
@@ -69,7 +73,9 @@ export declare function parseEnvFile(filePath: string): Promise<Record<string, s
|
|
|
69
73
|
* // { PATH: '/usr/bin', HOME: '/home/user' }
|
|
70
74
|
* ```
|
|
71
75
|
*/
|
|
72
|
-
export declare function parseEnvContent(
|
|
76
|
+
export declare function parseEnvContent(
|
|
77
|
+
content: string,
|
|
78
|
+
): Record<string, string>;
|
|
73
79
|
/**
|
|
74
80
|
* Cleans up the environment capture file.
|
|
75
81
|
* Call this after parsing to remove temporary files.
|
|
@@ -28,4 +28,7 @@
|
|
|
28
28
|
* substituteEnvVars("URL: ${API_URL:-https://api.example.com}", { API_URL: "https://custom.com" })
|
|
29
29
|
* // Returns: "URL: https://custom.com"
|
|
30
30
|
*/
|
|
31
|
-
export declare function substituteEnvVars(
|
|
31
|
+
export declare function substituteEnvVars(
|
|
32
|
+
str: string,
|
|
33
|
+
env: Record<string, string | undefined>,
|
|
34
|
+
): string;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
export interface FileOverride {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Path where the file should be written.
|
|
4
|
+
* - Absolute paths: "/app/.env", "/etc/config/app.conf"
|
|
5
|
+
* - Tilde expansion: "~/.config/app.json" (expands to home directory)
|
|
6
|
+
* - Relative paths: "./file.txt", "config.json" (resolved against working directory)
|
|
7
|
+
*/
|
|
8
|
+
path: string;
|
|
9
|
+
/**
|
|
10
|
+
* Content to write to the file.
|
|
11
|
+
*/
|
|
12
|
+
content: string;
|
|
13
13
|
}
|
|
14
14
|
export interface SentryLike {
|
|
15
|
-
|
|
15
|
+
captureException: (error: unknown) => void;
|
|
16
16
|
}
|
|
17
17
|
export interface ApplyFileOverridesResult {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
success: boolean;
|
|
19
|
+
appliedFiles: string[];
|
|
20
|
+
failedFiles: Array<{
|
|
21
|
+
path: string;
|
|
22
|
+
error: string;
|
|
23
|
+
}>;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Expand tilde (~) in file path to home directory
|
|
@@ -35,7 +35,10 @@ export declare function expandTildePath(filePath: string): string;
|
|
|
35
35
|
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
36
36
|
* @returns Resolved absolute path
|
|
37
37
|
*/
|
|
38
|
-
export declare function resolveFilePath(
|
|
38
|
+
export declare function resolveFilePath(
|
|
39
|
+
filePath: string,
|
|
40
|
+
workingDirectory?: string,
|
|
41
|
+
): string;
|
|
39
42
|
/**
|
|
40
43
|
* Validate that a file path can be resolved to an absolute path
|
|
41
44
|
* Supports tilde (~) expansion and relative paths (when workingDirectory is provided)
|
|
@@ -43,7 +46,10 @@ export declare function resolveFilePath(filePath: string, workingDirectory?: str
|
|
|
43
46
|
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
44
47
|
* @returns true if valid, false otherwise
|
|
45
48
|
*/
|
|
46
|
-
export declare function isValidFilePath(
|
|
49
|
+
export declare function isValidFilePath(
|
|
50
|
+
filePath: string,
|
|
51
|
+
workingDirectory?: string,
|
|
52
|
+
): boolean;
|
|
47
53
|
/**
|
|
48
54
|
* Apply multiple file overrides to the filesystem.
|
|
49
55
|
* This function will:
|
|
@@ -58,7 +64,11 @@ export declare function isValidFilePath(filePath: string, workingDirectory?: str
|
|
|
58
64
|
* @param sentry - Optional Sentry instance for error logging
|
|
59
65
|
* @returns Object with overall success status and details for each file
|
|
60
66
|
*/
|
|
61
|
-
export declare function applyFileOverrides(
|
|
67
|
+
export declare function applyFileOverrides(
|
|
68
|
+
overrides: FileOverride[],
|
|
69
|
+
workingDirectory?: string,
|
|
70
|
+
sentry?: SentryLike,
|
|
71
|
+
): ApplyFileOverridesResult;
|
|
62
72
|
/**
|
|
63
73
|
* Read a file and return its content
|
|
64
74
|
* Supports tilde (~) expansion and relative paths.
|
|
@@ -66,7 +76,10 @@ export declare function applyFileOverrides(overrides: FileOverride[], workingDir
|
|
|
66
76
|
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
67
77
|
* @returns The file content or null if it cannot be read
|
|
68
78
|
*/
|
|
69
|
-
export declare function readFileOverride(
|
|
79
|
+
export declare function readFileOverride(
|
|
80
|
+
filePath: string,
|
|
81
|
+
workingDirectory?: string,
|
|
82
|
+
): string | null;
|
|
70
83
|
/**
|
|
71
84
|
* Check if a file exists at the given path
|
|
72
85
|
* Supports tilde (~) expansion and relative paths.
|
|
@@ -74,4 +87,7 @@ export declare function readFileOverride(filePath: string, workingDirectory?: st
|
|
|
74
87
|
* @param workingDirectory - Optional working directory for resolving relative paths
|
|
75
88
|
* @returns true if the file exists, false otherwise
|
|
76
89
|
*/
|
|
77
|
-
export declare function fileOverrideExists(
|
|
90
|
+
export declare function fileOverrideExists(
|
|
91
|
+
filePath: string,
|
|
92
|
+
workingDirectory?: string,
|
|
93
|
+
): boolean;
|
package/types/cli/utils/git.d.ts
CHANGED
|
@@ -2,21 +2,33 @@ import type { DevToolsSys } from "../../types";
|
|
|
2
2
|
import type { Credentials } from "../credentials";
|
|
3
3
|
import type { GitConfigs } from "$/ai-utils";
|
|
4
4
|
export interface RunCommandOptions {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
cwd?: string;
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
sys: DevToolsSys;
|
|
8
|
+
timeout?: number;
|
|
9
|
+
stdin?: string;
|
|
10
|
+
retry?: number;
|
|
11
11
|
}
|
|
12
|
-
type FetchGitConfigsResult =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare function
|
|
12
|
+
type FetchGitConfigsResult =
|
|
13
|
+
| {
|
|
14
|
+
success: true;
|
|
15
|
+
gitConfigs: GitConfigs;
|
|
16
|
+
}
|
|
17
|
+
| {
|
|
18
|
+
success: false;
|
|
19
|
+
error: Error;
|
|
20
|
+
};
|
|
21
|
+
export declare function runCommand(
|
|
22
|
+
cmd: string,
|
|
23
|
+
args: string[],
|
|
24
|
+
opts: RunCommandOptions,
|
|
25
|
+
): Promise<string>;
|
|
26
|
+
export declare const isGitRepoCorrupted: (
|
|
27
|
+
stdout: string,
|
|
28
|
+
stderr: string,
|
|
29
|
+
) => boolean;
|
|
30
|
+
export declare function fetchGitConfigs(
|
|
31
|
+
credentials: Credentials,
|
|
32
|
+
projectId: string,
|
|
33
|
+
): Promise<FetchGitConfigsResult>;
|
|
22
34
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface HostEntry {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
hostname: string;
|
|
3
|
+
ip?: string;
|
|
4
4
|
}
|
|
5
5
|
export interface SentryLike {
|
|
6
|
-
|
|
6
|
+
captureException: (error: unknown) => void;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Check if a hostname is localhost or 127.0.0.1
|
|
@@ -20,7 +20,10 @@ export declare function isLocalhost(hostname: string): boolean;
|
|
|
20
20
|
* @param sentry - Optional Sentry instance for error logging
|
|
21
21
|
* @returns true if successful, false otherwise
|
|
22
22
|
*/
|
|
23
|
-
export declare function updateHostsFile(
|
|
23
|
+
export declare function updateHostsFile(
|
|
24
|
+
entries: HostEntry[],
|
|
25
|
+
sentry?: SentryLike,
|
|
26
|
+
): boolean;
|
|
24
27
|
/**
|
|
25
28
|
* Remove all managed entries from the hosts file
|
|
26
29
|
* @param sentry - Optional Sentry instance for error logging
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
2
|
import type { FusionConfig } from "$/ai-utils";
|
|
3
3
|
export interface LockFileData {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
cwd: string;
|
|
5
|
+
projectId?: string;
|
|
6
|
+
branchId?: string;
|
|
7
|
+
pid: number;
|
|
8
|
+
createdAt: number;
|
|
9
|
+
port?: number;
|
|
10
10
|
}
|
|
11
11
|
export type LockConflictBehavior = "replace" | "exit" | "kill";
|
|
12
12
|
/**
|
|
@@ -25,4 +25,7 @@ export type LockConflictBehavior = "replace" | "exit" | "kill";
|
|
|
25
25
|
* @param projectId - Optional project ID
|
|
26
26
|
* @param branchId - Optional branch ID/name
|
|
27
27
|
*/
|
|
28
|
-
export declare function registerLock(
|
|
28
|
+
export declare function registerLock(
|
|
29
|
+
sys: DevToolsSys,
|
|
30
|
+
fusionConfig: FusionConfig,
|
|
31
|
+
): Promise<void>;
|
|
@@ -5,4 +5,7 @@ import type { ApplyActionsResult } from "../../../ai-utils/src/codegen";
|
|
|
5
5
|
* @param includeFilesOnly - If true, only populate action and filePath properties
|
|
6
6
|
* @returns Array of ApplyActionsResult objects
|
|
7
7
|
*/
|
|
8
|
-
export declare function parseGitDiffToApplyActions(
|
|
8
|
+
export declare function parseGitDiffToApplyActions(
|
|
9
|
+
diff: string,
|
|
10
|
+
includeFilesOnly?: boolean,
|
|
11
|
+
): ApplyActionsResult[];
|