builder.io 1.6.60 → 1.6.62
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 +275 -272
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +10 -10
- package/node/index.mjs +8 -8
- package/package.json +1 -1
- package/server/index.cjs +37 -37
- package/server/index.mjs +41 -41
- package/types/cli/code-tools.d.ts +1 -1
- package/types/cli/codegen.d.ts +2 -2
- package/types/cli/index.d.ts +2 -0
- package/types/cli/launch.d.ts +7 -0
- package/types/cli/utils/terminal-buffer.d.ts +26 -0
- package/types/cli/utils/terminal-buffer.spec.d.ts +1 -0
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -61,5 +61,5 @@ interface RipgrepResult {
|
|
|
61
61
|
}
|
|
62
62
|
export declare function runRipgrep(workingDirectory: string, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
|
|
63
63
|
export declare function newAbortError(): Error;
|
|
64
|
-
export declare function killProcess(sys: DevToolsSys, proc: ChildProcessByStdio<null, Readable, Readable> | undefined, timeout?: number): Promise<void>;
|
|
64
|
+
export declare function killProcess(sys: DevToolsSys, proc: ChildProcessByStdio<null, Readable, Readable> | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<void>;
|
|
65
65
|
export {};
|
package/types/cli/codegen.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type CommitMode, type FusionContext } from "./code-tools";
|
|
|
6
6
|
export interface RunCommandCtx {
|
|
7
7
|
command: string;
|
|
8
8
|
state: "running" | "stopped";
|
|
9
|
-
ensureRunning: () => Promise<boolean>;
|
|
9
|
+
ensureRunning: (abortSignal?: AbortSignal) => Promise<boolean>;
|
|
10
10
|
addCheckpoint: () => void;
|
|
11
11
|
getCheckpoints: (n: number, mode: "all" | "out" | "err") => string;
|
|
12
12
|
getAllStdout: () => string;
|
|
@@ -17,7 +17,7 @@ export interface RunCommandCtx {
|
|
|
17
17
|
onClose: (callback: (code: number | null) => void) => void;
|
|
18
18
|
onStdout: (callback: (data: string) => void) => void;
|
|
19
19
|
onStderr: (callback: (data: string) => void) => void;
|
|
20
|
-
restart: () => Promise<void>;
|
|
20
|
+
restart: (abortSignal?: AbortSignal) => Promise<void>;
|
|
21
21
|
}
|
|
22
22
|
export interface SessionContext {
|
|
23
23
|
sessionId: string;
|
package/types/cli/index.d.ts
CHANGED
package/types/cli/launch.d.ts
CHANGED
|
@@ -43,6 +43,13 @@ export interface LaunchArgs extends CLIArgs {
|
|
|
43
43
|
* @default "node"
|
|
44
44
|
*/
|
|
45
45
|
dockerImageType?: "fusion-starter" | "node";
|
|
46
|
+
/**
|
|
47
|
+
* Output structured JSON data.
|
|
48
|
+
* Useful for programmatic consumption (e.g., VSCode extensions).
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
jsonOutput?: boolean;
|
|
46
53
|
}
|
|
47
54
|
export interface FusionConfig {
|
|
48
55
|
command: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple terminal buffer that handles basic control sequences
|
|
3
|
+
* to properly represent what would be shown in a real terminal
|
|
4
|
+
*/
|
|
5
|
+
export declare class TerminalBuffer {
|
|
6
|
+
private lines;
|
|
7
|
+
private currentLine;
|
|
8
|
+
private currentColumn;
|
|
9
|
+
private maxLines;
|
|
10
|
+
constructor(maxLines?: number);
|
|
11
|
+
write(data: string): void;
|
|
12
|
+
private ensureLineExists;
|
|
13
|
+
getContent(): string;
|
|
14
|
+
clear(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Get current cursor position for testing/debugging
|
|
17
|
+
*/
|
|
18
|
+
getCursorPosition(): {
|
|
19
|
+
line: number;
|
|
20
|
+
column: number;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Get the current number of lines for testing/debugging
|
|
24
|
+
*/
|
|
25
|
+
getLineCount(): number;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|