leglas 0.6.0 → 0.7.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/README.md +110 -54
- package/dist/args.d.ts +3 -0
- package/dist/bin.js +3487 -489
- package/dist/dev-server-owner.d.ts +17 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3458 -474
- package/dist/run-show.d.ts +4 -0
- package/dist/shell/assets/index-CuUL6FpW.js +14 -0
- package/dist/shell/assets/index-DT33xxfg.css +1 -0
- package/dist/shell/index.html +2 -2
- package/dist/shutdown.d.ts +32 -0
- package/package.json +6 -3
- package/dist/shell/assets/index-Bfon5OrV.js +0 -14
- package/dist/shell/assets/index-CIdZiWhI.css +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type DevServerOwner = {
|
|
2
|
+
pid: number;
|
|
3
|
+
cwd: string;
|
|
4
|
+
};
|
|
5
|
+
/** Only localhost origins can be tied safely to a process on this machine. */
|
|
6
|
+
export declare function localDevServerPort(origin: string): number | null;
|
|
7
|
+
export declare function parseListeningPids(output: string): number[];
|
|
8
|
+
export declare function parseOwnerCwds(output: string): DevServerOwner[];
|
|
9
|
+
/**
|
|
10
|
+
* Read the working directory of the process listening on a local dev-server
|
|
11
|
+
* port. This is best-effort by design: unsupported platforms, missing lsof,
|
|
12
|
+
* permissions and a process exiting mid-read all mean "no evidence", not a
|
|
13
|
+
* failed Leglas startup.
|
|
14
|
+
*/
|
|
15
|
+
export declare function inspectLocalDevServer(origin: string): Promise<DevServerOwner[]>;
|
|
16
|
+
/** A short, actionable warning only when every discovered owner is unrelated. */
|
|
17
|
+
export declare function devServerOwnerWarning(origin: string, projectRoot: string, owners: readonly DevServerOwner[]): string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ export { PROMPT_TOKEN, WATCH_PATH, commandFor, nextRequest, parseTemplate } from
|
|
|
15
15
|
export { runWatch } from "./run-watch.js";
|
|
16
16
|
export type { TemplateResult, WatchTemplate } from "./watch.js";
|
|
17
17
|
export type { WatchDeps } from "./run-watch.js";
|
|
18
|
-
export { DEFAULT_PORT, LEGLAS_PREFIX, readRequests } from "@leglas/server";
|
|
19
|
-
export type { Failure, FailureCode, PendingRequest, RequestStatus } from "@leglas/server";
|
|
18
|
+
export { CAPTURES_DIR, DEFAULT_PORT, LEGLAS_PREFIX, NO_BROWSER, REFERENCES_DIR, SERVER_INFO_PATH, findBrowser, isOwnCapture, readRequests, readServerInfo, } from "@leglas/server";
|
|
19
|
+
export type { Attachment, AttachmentKind, Failure, FailureCode, PendingRequest, RequestStatus, ServerInfo, } from "@leglas/server";
|
|
20
20
|
export { runClassify } from "./run-classify.js";
|
|
21
21
|
export { run } from "./run.js";
|
|
22
22
|
export type { ParseResult, RunOptions } from "./args.js";
|