leglas 1.2.1 → 1.4.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 +19 -0
- package/dist/baseline.d.ts +2 -8
- package/dist/bin-start.d.ts +5 -0
- package/dist/bin.js +3230 -587
- package/dist/dev-server-owner.d.ts +3 -4
- package/dist/explore.d.ts +5 -13
- package/dist/help.d.ts +2 -0
- package/dist/ignore.d.ts +3 -6
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2980 -497
- package/dist/keep.d.ts +3 -10
- package/dist/new.d.ts +3 -4
- package/dist/resolve-title.d.ts +4 -8
- package/dist/rules.d.ts +41 -0
- package/dist/run-classify.d.ts +3 -5
- package/dist/run-explore-build.d.ts +24 -0
- package/dist/run-explore.d.ts +3 -6
- package/dist/run-init.d.ts +3 -4
- package/dist/run-link.d.ts +18 -0
- package/dist/run-log.d.ts +3 -7
- package/dist/run-new.d.ts +4 -7
- package/dist/run-previews.d.ts +4 -4
- package/dist/run-remove.d.ts +17 -0
- package/dist/run-share.d.ts +10 -10
- package/dist/run-show.d.ts +3 -5
- package/dist/run-watch.d.ts +4 -9
- package/dist/run.d.ts +3 -6
- package/dist/running.d.ts +24 -7
- package/dist/shell/assets/index-C59b2VHc.css +1 -0
- package/dist/shell/assets/index-CXz1BSV1.js +14 -0
- package/dist/shell/index.html +2 -2
- package/dist/show.d.ts +7 -16
- package/dist/shutdown.d.ts +7 -22
- package/dist/test-helpers.d.ts +2 -0
- 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
|
@@ -66,8 +66,22 @@ export type ParseResult = {
|
|
|
66
66
|
/** Null lets the running Leglas pick the first tunnel program it finds. */
|
|
67
67
|
tunnel: ShareTunnel | null;
|
|
68
68
|
stop: boolean;
|
|
69
|
+
/** End every link and mint one new, through a new tunnel. */
|
|
70
|
+
rotate: boolean;
|
|
71
|
+
/** One link to end, by its address or id. */
|
|
72
|
+
revoke: string | null;
|
|
69
73
|
port: number | null;
|
|
70
74
|
json: boolean;
|
|
75
|
+
} | {
|
|
76
|
+
kind: "link";
|
|
77
|
+
/** None opens the rail; one opens that direction; two put them side by side. */
|
|
78
|
+
titles: string[];
|
|
79
|
+
port: number | null;
|
|
80
|
+
json: boolean;
|
|
81
|
+
} | {
|
|
82
|
+
kind: "remove";
|
|
83
|
+
titles: string[];
|
|
84
|
+
json: boolean;
|
|
71
85
|
} | {
|
|
72
86
|
kind: "requests";
|
|
73
87
|
json: boolean;
|
|
@@ -76,12 +90,17 @@ export type ParseResult = {
|
|
|
76
90
|
kind: "watch";
|
|
77
91
|
run: string | undefined;
|
|
78
92
|
port: number | undefined;
|
|
93
|
+
json: boolean;
|
|
79
94
|
} | {
|
|
80
95
|
kind: "explore";
|
|
81
96
|
surface: string;
|
|
82
97
|
count: number;
|
|
83
98
|
basedOn: string | null;
|
|
84
99
|
json: boolean;
|
|
100
|
+
/** Build the set with the configured agent instead of printing a brief for one. */
|
|
101
|
+
build: boolean;
|
|
102
|
+
brief: string | null;
|
|
103
|
+
port: number | null;
|
|
85
104
|
} | {
|
|
86
105
|
kind: "keep";
|
|
87
106
|
title: string;
|
package/dist/baseline.d.ts
CHANGED
|
@@ -2,13 +2,7 @@ export type Baseline = {
|
|
|
2
2
|
contents: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
* A baseline that re-exports the real component
|
|
6
|
-
*
|
|
7
|
-
* Copying would freeze the comparison against a duplicate of the user's own
|
|
8
|
-
* code: edit the real component afterwards and the baseline silently stops
|
|
9
|
-
* being the baseline. Re-exporting keeps it live.
|
|
10
|
-
*
|
|
11
|
-
* This pattern was not designed; an agent used it in place of the scaffold's
|
|
12
|
-
* placeholder, and it is plainly better than what the template suggested.
|
|
5
|
+
* A baseline that re-exports the real component, so it never goes stale against
|
|
6
|
+
* the user's own code the way a copy would.
|
|
13
7
|
*/
|
|
14
8
|
export declare function baselineFrom(surface: string, sourcePath: string, sourceContents: string): Baseline | null;
|
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 {};
|