builder.io 1.12.6 → 1.12.8
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 +365 -365
- 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 +107 -107
- package/server/index.mjs +107 -107
- package/types/cli/index.d.ts +0 -8
- package/types/cli/launch.d.ts +14 -0
- package/types/cli/utils/process-tracker.d.ts +59 -0
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/index.d.ts
CHANGED
|
@@ -74,12 +74,6 @@ export interface CLIArgs {
|
|
|
74
74
|
workspace?: string;
|
|
75
75
|
/** Output structured JSON data instead of human-readable logs */
|
|
76
76
|
jsonOutput?: boolean;
|
|
77
|
-
/** Local mode */
|
|
78
|
-
local?: boolean;
|
|
79
|
-
/** Inlined to builder.config.json file */
|
|
80
|
-
configJson?: string;
|
|
81
|
-
/** Server URL */
|
|
82
|
-
serverUrl?: string;
|
|
83
77
|
/** Remove all mappings from the space, publishing zero mappings even if mapper files exist */
|
|
84
78
|
clearMappings?: boolean;
|
|
85
79
|
/** Enabled tools, list of strings separated by commas */
|
|
@@ -90,8 +84,6 @@ export interface CLIArgs {
|
|
|
90
84
|
listIndexedRepos?: boolean;
|
|
91
85
|
/** Disable MCP support */
|
|
92
86
|
disableMcp?: boolean;
|
|
93
|
-
/** Enable privacy mode for codegen */
|
|
94
|
-
privacyMode?: boolean;
|
|
95
87
|
/** Clear all stored credentials (logout) */
|
|
96
88
|
reset?: boolean;
|
|
97
89
|
}
|
package/types/cli/launch.d.ts
CHANGED
|
@@ -83,6 +83,20 @@ export interface LaunchArgs extends CLIArgs {
|
|
|
83
83
|
* @default false
|
|
84
84
|
*/
|
|
85
85
|
autoDetectDevServer?: boolean;
|
|
86
|
+
/** Inlined to builder.config.json file */
|
|
87
|
+
configJson?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Enable HTTPS server.
|
|
90
|
+
* When enabled, creates both HTTP and HTTPS servers.
|
|
91
|
+
*
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
https?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Custom domain to use instead of localhost in proxy URLs.
|
|
97
|
+
* Useful for development with custom SSL certificates.
|
|
98
|
+
*/
|
|
99
|
+
localHttpsDomain?: string;
|
|
86
100
|
}
|
|
87
101
|
export declare function runFusionCommand({ sys, args, }: {
|
|
88
102
|
sys: DevToolsSys;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChildProcess, type ChildProcessWithoutNullStreams, type ChildProcessByStdio, type SpawnOptions, type StdioPipe, type StdioNull } from "child_process";
|
|
2
|
+
import type { Readable } from "stream";
|
|
3
|
+
/**
|
|
4
|
+
* Global process tracker that keeps track of all spawned processes
|
|
5
|
+
* and ensures they are killed when the main process exits
|
|
6
|
+
*/
|
|
7
|
+
declare class ProcessTracker {
|
|
8
|
+
private processes;
|
|
9
|
+
private cleanupHandlersRegistered;
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* Register a spawned process for tracking and cleanup
|
|
13
|
+
*/
|
|
14
|
+
track(childProcess: ChildProcess): void;
|
|
15
|
+
/**
|
|
16
|
+
* Untrack a process (useful if you're managing it manually)
|
|
17
|
+
*/
|
|
18
|
+
untrack(childProcess: ChildProcess): void;
|
|
19
|
+
/**
|
|
20
|
+
* Kill all tracked processes
|
|
21
|
+
*/
|
|
22
|
+
killAll(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Register cleanup handlers for various exit signals
|
|
25
|
+
*/
|
|
26
|
+
private registerCleanupHandlers;
|
|
27
|
+
/**
|
|
28
|
+
* Get the number of tracked processes
|
|
29
|
+
*/
|
|
30
|
+
get count(): number;
|
|
31
|
+
}
|
|
32
|
+
export declare const processTracker: ProcessTracker;
|
|
33
|
+
/**
|
|
34
|
+
* Options for trackedSpawn function
|
|
35
|
+
*/
|
|
36
|
+
export interface TrackedSpawnOptions {
|
|
37
|
+
/** The command to run */
|
|
38
|
+
command: string;
|
|
39
|
+
/** Arguments for the command */
|
|
40
|
+
args?: readonly string[];
|
|
41
|
+
/** Spawn options */
|
|
42
|
+
options?: SpawnOptions;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Wrapper around child_process.spawn that automatically tracks the spawned process
|
|
46
|
+
* and ensures it gets killed when the main process exits
|
|
47
|
+
*/
|
|
48
|
+
export declare function trackedSpawn(config: TrackedSpawnOptions & {
|
|
49
|
+
options: SpawnOptions & {
|
|
50
|
+
stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
|
|
51
|
+
};
|
|
52
|
+
}): ChildProcessWithoutNullStreams;
|
|
53
|
+
export declare function trackedSpawn(config: TrackedSpawnOptions & {
|
|
54
|
+
options: SpawnOptions & {
|
|
55
|
+
stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
|
|
56
|
+
};
|
|
57
|
+
}): ChildProcessByStdio<null, Readable, Readable>;
|
|
58
|
+
export declare function trackedSpawn(config: TrackedSpawnOptions): ChildProcess;
|
|
59
|
+
export {};
|