@builder.io/dev-tools 1.7.12-dev.202507221527.9fe513f82 → 1.7.13
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/angular/index.cjs +1 -46
- package/angular/index.mjs +1 -21
- package/cli/index.cjs +3844 -108741
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +944 -14283
- package/core/index.mjs +945 -14274
- package/figma/index.cjs +1 -47
- package/figma/index.mjs +1 -27
- package/node/index.cjs +105 -25310
- package/node/index.mjs +105 -25314
- package/package.json +1 -1
- package/remix/build.cjs +1 -132
- package/remix/index.mjs +1 -113
- package/server/index.cjs +1503 -21986
- package/server/index.mjs +1502 -21984
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/utils.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/vite/index.cjs +3 -153
- package/vite/index.mjs +3 -119
- package/webpack/index.cjs +27 -2883
- package/webpack/index.mjs +27 -2871
- package/types/cli/code-server.d.ts +0 -0
- package/types/cli/io-service.d.ts +0 -86
- package/types/cli/launch/install-jsx-plugin.d.ts +0 -7
- package/types/cli/launch/logger.d.ts +0 -38
- package/types/cli/launch-init-v2.d.ts +0 -13
- package/types/cli/launch-init.d.ts +0 -19
- package/types/cli/repo-indexing-utils.d.ts +0 -2
- package/types/cli/repo-indexing.d.ts +0 -17
- package/types/cli/repo-indexing.mock.d.ts +0 -5
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +0 -1
- package/types/core/adapters/vite/ensure-remix-config.d.ts +0 -6
- package/types/core/adapters/vite/remix-utils.d.ts +0 -10
- package/types/core/adapters/vite/vite-config-helpers.d.ts +0 -6
|
File without changes
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { type SelectOptions, type ConfirmOptions, type TextOptions } from "@clack/prompts";
|
|
2
|
-
import { spinner } from "./spinner";
|
|
3
|
-
import type { WebSocket } from "ws";
|
|
4
|
-
export interface IOService {
|
|
5
|
-
log(str: string): void;
|
|
6
|
-
info(str: string): void;
|
|
7
|
-
warn(str: string): void;
|
|
8
|
-
error(str: string): void;
|
|
9
|
-
write(text: string): void;
|
|
10
|
-
writeMetadata(metadata: Record<string, any>): void;
|
|
11
|
-
confirm(options: ConfirmOptions): Promise<boolean | symbol>;
|
|
12
|
-
text(options: TextOptions): Promise<string | symbol>;
|
|
13
|
-
select<Value>(options: SelectOptions<Value>): Promise<Value | symbol>;
|
|
14
|
-
createSpinner(): ReturnType<typeof spinner>;
|
|
15
|
-
isInteractive(): boolean;
|
|
16
|
-
isTTY(): boolean;
|
|
17
|
-
exit(code: number): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export declare class ConsoleIOService implements IOService {
|
|
20
|
-
log(str: string): void;
|
|
21
|
-
info(str: string): void;
|
|
22
|
-
warn(str: string): void;
|
|
23
|
-
error(str: string): void;
|
|
24
|
-
write(text: string): void;
|
|
25
|
-
writeMetadata(_: Record<string, any>): void;
|
|
26
|
-
confirm(options: ConfirmOptions): Promise<boolean | symbol>;
|
|
27
|
-
text(options: TextOptions): Promise<string | symbol>;
|
|
28
|
-
select<Value>(options: SelectOptions<Value>): Promise<Value | symbol>;
|
|
29
|
-
createSpinner(): ReturnType<typeof spinner>;
|
|
30
|
-
isInteractive(): boolean;
|
|
31
|
-
isTTY(): boolean;
|
|
32
|
-
exit(code: number): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export interface BaseMessage {
|
|
35
|
-
type: string;
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}
|
|
38
|
-
export interface LogMessage extends BaseMessage {
|
|
39
|
-
type: "log";
|
|
40
|
-
level: "info" | "warn" | "error";
|
|
41
|
-
message: string;
|
|
42
|
-
}
|
|
43
|
-
export interface WriteMessage extends BaseMessage {
|
|
44
|
-
type: "write";
|
|
45
|
-
text: string;
|
|
46
|
-
}
|
|
47
|
-
export interface SpinnerMessage extends BaseMessage {
|
|
48
|
-
type: "spinner";
|
|
49
|
-
status: "start" | "stop";
|
|
50
|
-
message: string;
|
|
51
|
-
code?: number;
|
|
52
|
-
}
|
|
53
|
-
export interface PromptRequest extends BaseMessage {
|
|
54
|
-
type: "prompt";
|
|
55
|
-
promptType: "text" | "confirm" | "select";
|
|
56
|
-
options: any;
|
|
57
|
-
requestId: string;
|
|
58
|
-
}
|
|
59
|
-
export interface PromptResponse extends BaseMessage {
|
|
60
|
-
type: "prompt_response";
|
|
61
|
-
requestId: string;
|
|
62
|
-
value: any;
|
|
63
|
-
cancelled?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export declare class WebSocketIOService implements IOService {
|
|
66
|
-
private ws;
|
|
67
|
-
private promptCallbacks;
|
|
68
|
-
private messageQueue;
|
|
69
|
-
private isProcessing;
|
|
70
|
-
constructor(ws: WebSocket);
|
|
71
|
-
private sendMessage;
|
|
72
|
-
private prompt;
|
|
73
|
-
log(...args: any[]): void;
|
|
74
|
-
info(...args: any[]): void;
|
|
75
|
-
warn(...args: any[]): void;
|
|
76
|
-
error(...args: any[]): void;
|
|
77
|
-
write(text: string): void;
|
|
78
|
-
writeMetadata(metadata: Record<string, any>): void;
|
|
79
|
-
confirm(options: ConfirmOptions): Promise<boolean | symbol>;
|
|
80
|
-
text(options: TextOptions): Promise<string | symbol>;
|
|
81
|
-
select<Value>(options: SelectOptions<Value>): Promise<Value | symbol>;
|
|
82
|
-
createSpinner(): ReturnType<typeof spinner>;
|
|
83
|
-
isInteractive(): boolean;
|
|
84
|
-
isTTY(): boolean;
|
|
85
|
-
exit(code: number): Promise<void>;
|
|
86
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import { type InstallOutcome } from "./helpers";
|
|
3
|
-
export declare const installJsxPlugin: (sys: DevToolsSys) => Promise<{
|
|
4
|
-
timestamp: string;
|
|
5
|
-
installOutcome: InstallOutcome;
|
|
6
|
-
error: string | undefined;
|
|
7
|
-
}>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Initialize logging by wrapping all console methods to write to logs file
|
|
3
|
-
*/
|
|
4
|
-
export declare function initializeLogging(): void;
|
|
5
|
-
/**
|
|
6
|
-
* Reset console methods to their original state
|
|
7
|
-
*/
|
|
8
|
-
export declare function resetLogging(): void;
|
|
9
|
-
/**
|
|
10
|
-
* Display intro message with logging
|
|
11
|
-
*/
|
|
12
|
-
export declare const intro: (message: string) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Wrapped clack logging methods with file logging
|
|
15
|
-
*/
|
|
16
|
-
export declare const log: {
|
|
17
|
-
info: (message: string) => void;
|
|
18
|
-
success: (message: string) => void;
|
|
19
|
-
error: (message: string) => void;
|
|
20
|
-
warn: (message: string) => void;
|
|
21
|
-
step: (message: string) => void;
|
|
22
|
-
message: (message?: string, { symbol }?: import("@clack/prompts").LogMessageOptions) => void;
|
|
23
|
-
warning: (message: string) => void;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Display outro message with logging
|
|
27
|
-
*/
|
|
28
|
-
export declare const outro: (message: string) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Reads logs with pagination
|
|
31
|
-
* @param nextToken Line number to start reading from (0-indexed)
|
|
32
|
-
* @param limit Number of lines to read
|
|
33
|
-
* @returns Object containing logs array and next token
|
|
34
|
-
*/
|
|
35
|
-
export declare const readLogs: (nextToken?: number, limit?: number) => {
|
|
36
|
-
logs: string[];
|
|
37
|
-
nextToken: number | null;
|
|
38
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
export interface InitArgs extends CLIArgs {
|
|
4
|
-
repoFullName?: string;
|
|
5
|
-
branchName?: string;
|
|
6
|
-
githubToken?: string;
|
|
7
|
-
installCommand?: string;
|
|
8
|
-
dockerImageType?: "fusion-starter" | "node";
|
|
9
|
-
}
|
|
10
|
-
export declare function runLaunchInitCommandV2({ args, sys, }: {
|
|
11
|
-
sys: DevToolsSys;
|
|
12
|
-
args: InitArgs;
|
|
13
|
-
}): Promise<number>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
export interface InitArgs extends CLIArgs {
|
|
4
|
-
repoFullName?: string;
|
|
5
|
-
branchName?: string;
|
|
6
|
-
githubToken?: string;
|
|
7
|
-
installCommand?: string;
|
|
8
|
-
volumePath?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Indicates the type of docker image the CLI is running on.
|
|
11
|
-
*
|
|
12
|
-
* @default "node"
|
|
13
|
-
*/
|
|
14
|
-
dockerImageType?: "fusion-starter" | "node";
|
|
15
|
-
}
|
|
16
|
-
export declare function runLaunchInitCommand({ args, sys, }: {
|
|
17
|
-
sys: DevToolsSys;
|
|
18
|
-
args: InitArgs;
|
|
19
|
-
}): Promise<number>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../types";
|
|
2
|
-
import type { CLIArgs } from "./index";
|
|
3
|
-
export interface RepoIndexingDoc {
|
|
4
|
-
name: string;
|
|
5
|
-
content: string | {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
components: string[];
|
|
9
|
-
relevantFiles: string[];
|
|
10
|
-
}[];
|
|
11
|
-
createdDate: string;
|
|
12
|
-
description: string;
|
|
13
|
-
id: string;
|
|
14
|
-
ownerId: string;
|
|
15
|
-
userId: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const runRepoIndexing: (sys: DevToolsSys, args: CLIArgs) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const REPO_INDEXING_GROUP_PROMPT: string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../..";
|
|
2
|
-
import type { EnsureConfigResult } from "../../../types";
|
|
3
|
-
/**
|
|
4
|
-
* Ensure the Remix Vite config has the necessary plugins and settings
|
|
5
|
-
*/
|
|
6
|
-
export declare function ensureRemixConfig(sys: DevToolsSys, configFilePath: string, configContent: string): Promise<EnsureConfigResult>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../..";
|
|
2
|
-
import type ts from "typescript";
|
|
3
|
-
/**
|
|
4
|
-
* Check if the current project is using Remix framework
|
|
5
|
-
*/
|
|
6
|
-
export declare function isRemixFramework(sys: DevToolsSys): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Update an object literal to include the external dependencies for Remix
|
|
9
|
-
*/
|
|
10
|
-
export declare function updateCommonJsLibrary(sys: DevToolsSys, config: ts.ObjectLiteralExpression): ts.ObjectLiteralExpression | null;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../..";
|
|
2
|
-
import type { EnsureConfigResult } from "../../../types";
|
|
3
|
-
/**
|
|
4
|
-
* Update a Vite config file to include a plugin
|
|
5
|
-
*/
|
|
6
|
-
export declare function updateViteConfig(sys: DevToolsSys, configFilePath: string, configContent: string, pluginName: string, importPath: string): Promise<EnsureConfigResult>;
|