@builder.io/dev-tools 1.58.2-dev.202605210757.c9eb060b2 → 1.58.2-dev.202605211315.fd9439124
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 +3098 -1688
- 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 +1 -1
- package/server/index.cjs +2083 -494
- package/server/index.mjs +2083 -494
- package/types/cli/code.d.ts +12 -2
- package/types/cli/utils/codegen-utils.d.ts +20 -3
- package/types/common/utils.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/cli/indexing.d.ts +0 -5
- package/types/cli/launch/github.d.ts +0 -3
- package/types/cli/snapshot-mode.d.ts +0 -6
- package/types/cli/utils/agents/design-system-indexer/design-system-indexer.d.ts +0 -2
- 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/core/component-map-builder.d.ts +0 -42
- package/types/server/snapshot-mode.d.ts +0 -24
- package/types/server/source-map-resolver/cache.d.ts +0 -36
- package/types/server/source-map-resolver/indexed-map-resolver.d.ts +0 -10
- package/types/server/source-map-resolver/loader.d.ts +0 -16
- package/types/server/source-map-resolver/security.d.ts +0 -21
- package/types/server/source-map-resolver/types.d.ts +0 -41
- package/types/server/source-map-resolver/validation.d.ts +0 -16
- package/types/server/source-map-resolver.d.ts +0 -25
package/types/cli/code.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
2
|
import type { CLIArgs } from "./index";
|
|
3
|
-
import { type UserContext } from "#ai-utils";
|
|
4
3
|
export declare const runCodeCommand: (sys: DevToolsSys, subCommand: string, args: CLIArgs) => Promise<void>;
|
|
5
4
|
export declare const runCodeGen: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
|
|
6
5
|
export declare function checkProjectRoot(sys: DevToolsSys, interactive: boolean): Promise<void>;
|
|
7
|
-
export declare function getUserContext(sys: DevToolsSys): Promise<
|
|
6
|
+
export declare function getUserContext(sys: DevToolsSys): Promise<{
|
|
7
|
+
[x: string]: string | boolean | string[] | undefined;
|
|
8
|
+
client: string;
|
|
9
|
+
clientVersion: string;
|
|
10
|
+
nodeVersion: string;
|
|
11
|
+
systemPlatform: string;
|
|
12
|
+
frameworks: string[];
|
|
13
|
+
systemEOL: string;
|
|
14
|
+
systemArch: string;
|
|
15
|
+
systemShell?: string | undefined;
|
|
16
|
+
inGitRepo?: boolean | undefined;
|
|
17
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../core";
|
|
2
2
|
import { type Credentials } from "../credentials";
|
|
3
3
|
export { getCustomInstructions } from "./rules-discovery";
|
|
4
|
-
import type { CodeGenInputOptions, CodegenSetLastCompletion, CodegenTurn, GenerateCodeEvent, GenerateUserMessage, GetSessionTurnsResult,
|
|
4
|
+
import type { CodeGenInputOptions, CodegenSetLastCompletion, CodegenTurn, GenerateCodeEvent, GenerateUserMessage, GetSessionTurnsResult, 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
7
|
export declare const DEFAULT_SOFT_MAX_COMPLETIONS = 100;
|
|
@@ -47,7 +47,18 @@ export declare const parseCLIURL: (url: string | undefined) => {
|
|
|
47
47
|
isInitial: boolean;
|
|
48
48
|
id: string;
|
|
49
49
|
};
|
|
50
|
-
export declare function getUserContext(sys: DevToolsSys, gitWorkingDirectory?: string): Promise<
|
|
50
|
+
export declare function getUserContext(sys: DevToolsSys, gitWorkingDirectory?: string): Promise<{
|
|
51
|
+
[x: string]: string | boolean | string[] | undefined;
|
|
52
|
+
client: string;
|
|
53
|
+
clientVersion: string;
|
|
54
|
+
nodeVersion: string;
|
|
55
|
+
systemPlatform: string;
|
|
56
|
+
frameworks: string[];
|
|
57
|
+
systemEOL: string;
|
|
58
|
+
systemArch: string;
|
|
59
|
+
systemShell?: string | undefined;
|
|
60
|
+
inGitRepo?: boolean | undefined;
|
|
61
|
+
}>;
|
|
51
62
|
export declare function makeAsyncIterator<T>(): readonly [AsyncGenerator<T, void, void>, (event: T) => void, () => void];
|
|
52
63
|
export declare function isAGENTSFile(filePath: string): boolean;
|
|
53
64
|
export declare function isBaseImportantFile(filePath: string, recommendedRootDir: string): boolean;
|
|
@@ -85,7 +96,13 @@ export declare class ParentBranchNotFoundError extends Error {
|
|
|
85
96
|
cause?: Error;
|
|
86
97
|
});
|
|
87
98
|
}
|
|
88
|
-
export declare function mergeEnvironmentVariables(envVariables: EnvironmentVariable[], extraEnvVariables: EnvironmentVariable[]):
|
|
99
|
+
export declare function mergeEnvironmentVariables(envVariables: EnvironmentVariable[], extraEnvVariables: EnvironmentVariable[]): {
|
|
100
|
+
key: string;
|
|
101
|
+
value: string;
|
|
102
|
+
isSecret: boolean;
|
|
103
|
+
placeholder?: boolean | undefined;
|
|
104
|
+
explanation?: string | undefined;
|
|
105
|
+
}[];
|
|
89
106
|
export declare function processPushChangesArgs(opts: PushChangesArgs): PushChangesOptions;
|
|
90
107
|
export declare function getErrorMessage(err: unknown): string;
|
|
91
108
|
export declare function waitImmediate(): Promise<void>;
|
package/types/common/utils.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function clone<T>(obj: T): T;
|
|
|
19
19
|
export declare function shouldSkipFolder(sys: DevToolsSys, skipFolders: Set<string>, fileName: string): boolean;
|
|
20
20
|
export declare function getPackageManager(): string;
|
|
21
21
|
export declare function isWindows(): boolean;
|
|
22
|
-
export declare function builderNpxPackage(): "@builder.io/agent" | "\"@builder.io/dev-tools\""
|
|
22
|
+
export declare function builderNpxPackage(): "builder.io" | "@builder.io/agent" | "\"@builder.io/dev-tools\"";
|
|
23
23
|
/**
|
|
24
24
|
* Sanitizes a component name for use in filesystem paths by replacing invalid characters with underscores
|
|
25
25
|
* @param name The component name to sanitize
|