leglas 1.2.1 → 1.3.0
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/dist/args.d.ts +5 -0
- package/dist/bin-start.d.ts +5 -0
- package/dist/bin.js +1834 -372
- package/dist/index.js +1482 -162
- package/dist/run-explore-build.d.ts +27 -0
- package/dist/run-watch.d.ts +1 -0
- package/dist/shell/assets/index-C59b2VHc.css +1 -0
- package/dist/shell/assets/index-CcHf_UOb.js +14 -0
- package/dist/shell/index.html +2 -2
- package/package.json +3 -3
- package/dist/shell/assets/index-DfiRUTCS.css +0 -1
- package/dist/shell/assets/index-lVZbvEvf.js +0 -14
package/dist/args.d.ts
CHANGED
|
@@ -76,12 +76,17 @@ export type ParseResult = {
|
|
|
76
76
|
kind: "watch";
|
|
77
77
|
run: string | undefined;
|
|
78
78
|
port: number | undefined;
|
|
79
|
+
json: boolean;
|
|
79
80
|
} | {
|
|
80
81
|
kind: "explore";
|
|
81
82
|
surface: string;
|
|
82
83
|
count: number;
|
|
83
84
|
basedOn: string | null;
|
|
84
85
|
json: boolean;
|
|
86
|
+
/** Build the set with the configured agent instead of printing a brief for one. */
|
|
87
|
+
build: boolean;
|
|
88
|
+
brief: string | null;
|
|
89
|
+
port: number | null;
|
|
85
90
|
} | {
|
|
86
91
|
kind: "keep";
|
|
87
92
|
title: string;
|
package/dist/bin-start.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { createUpdateService } from "@leglas/server";
|
|
2
2
|
import type { RunOptions } from "./args.js";
|
|
3
|
+
import { createHandoff } from "./restart.js";
|
|
3
4
|
import { run } from "./run.js";
|
|
4
5
|
import { installShutdown } from "./shutdown.js";
|
|
6
|
+
type HandoffDeps = Parameters<ReturnType<typeof createHandoff>["handOff"]>[2];
|
|
5
7
|
/** Wire the long-running CLI instance to its updater and signal handlers. */
|
|
6
8
|
export declare function startViewer(options: RunOptions & {
|
|
7
9
|
cwd: string;
|
|
@@ -13,4 +15,7 @@ export declare function startViewer(options: RunOptions & {
|
|
|
13
15
|
createUpdateService?: typeof createUpdateService;
|
|
14
16
|
run?: typeof run;
|
|
15
17
|
installShutdown?: typeof installShutdown;
|
|
18
|
+
/** Where a restart spawns and how either shutdown ends the process. */
|
|
19
|
+
handoff?: HandoffDeps;
|
|
16
20
|
}): Promise<void>;
|
|
21
|
+
export {};
|