@dendelion/paper-camp 0.28.4 → 0.31.1
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/chunks/daemon-state.61FBbbsV.js +332 -0
- package/dist/chunks/daemon-state.61FBbbsV.js.map +1 -0
- package/dist/chunks/dev-port.DG-T8zNq.js +42 -0
- package/dist/chunks/dev-port.DG-T8zNq.js.map +1 -0
- package/dist/chunks/{daemon-state.CI9RArUn.js → phase-progress.CazP7K7B.js} +1602 -1801
- package/dist/chunks/phase-progress.CazP7K7B.js.map +1 -0
- package/dist/cli/index.js +9720 -7854
- package/dist/cli/index.js.map +1 -1
- package/dist/core/daemon-state/daemon-state.d.ts +26 -1
- package/dist/core/daemon-state/daemon-state.d.ts.map +1 -1
- package/dist/core/desk-discovery/evidence.d.ts +1 -0
- package/dist/core/desk-discovery/evidence.d.ts.map +1 -1
- package/dist/core/desk-discovery/toolbar-host.d.ts +9 -0
- package/dist/core/desk-discovery/toolbar-host.d.ts.map +1 -0
- package/dist/core/desk-discovery/toolbar-host.test.d.ts +2 -0
- package/dist/core/desk-discovery/toolbar-host.test.d.ts.map +1 -0
- package/dist/core/doctor/checks/structural.d.ts.map +1 -1
- package/dist/core/doctor/rules.d.ts +5 -0
- package/dist/core/doctor/rules.d.ts.map +1 -1
- package/dist/core/index.js +147 -133
- package/dist/core/index.js.map +1 -1
- package/dist/core/machine-registry/machine-registry.d.ts +14 -0
- package/dist/core/machine-registry/machine-registry.d.ts.map +1 -1
- package/dist/core/night-checks.d.ts +14 -0
- package/dist/core/night-checks.d.ts.map +1 -0
- package/dist/core/night-checks.test.d.ts +2 -0
- package/dist/core/night-checks.test.d.ts.map +1 -0
- package/dist/core/night-findings.d.ts +9 -0
- package/dist/core/night-findings.d.ts.map +1 -0
- package/dist/core/night-findings.test.d.ts +2 -0
- package/dist/core/night-findings.test.d.ts.map +1 -0
- package/dist/core/night-gate.d.ts +14 -0
- package/dist/core/night-gate.d.ts.map +1 -0
- package/dist/core/night-gate.test.d.ts +2 -0
- package/dist/core/night-gate.test.d.ts.map +1 -0
- package/dist/core/night-health.d.ts +21 -0
- package/dist/core/night-health.d.ts.map +1 -0
- package/dist/core/night-health.test.d.ts +2 -0
- package/dist/core/night-health.test.d.ts.map +1 -0
- package/dist/core/night-prompts.d.ts +16 -0
- package/dist/core/night-prompts.d.ts.map +1 -0
- package/dist/core/night-prompts.test.d.ts +2 -0
- package/dist/core/night-prompts.test.d.ts.map +1 -0
- package/dist/core/night-shift.d.ts +33 -0
- package/dist/core/night-shift.d.ts.map +1 -0
- package/dist/core/night-shift.test.d.ts +2 -0
- package/dist/core/night-shift.test.d.ts.map +1 -0
- package/dist/core/night-suggestions.d.ts +14 -0
- package/dist/core/night-suggestions.d.ts.map +1 -0
- package/dist/core/night-suggestions.test.d.ts +2 -0
- package/dist/core/night-suggestions.test.d.ts.map +1 -0
- package/dist/core/night-worktree.d.ts +7 -0
- package/dist/core/night-worktree.d.ts.map +1 -0
- package/dist/core/night-worktree.test.d.ts +2 -0
- package/dist/core/night-worktree.test.d.ts.map +1 -0
- package/dist/core/parse/schemas.d.ts +68 -0
- package/dist/core/parse/schemas.d.ts.map +1 -1
- package/dist/core/phase-run.d.ts +1 -1
- package/dist/core/phase-run.d.ts.map +1 -1
- package/dist/core/registry-version.d.ts +10 -0
- package/dist/core/registry-version.d.ts.map +1 -0
- package/dist/core/registry-version.test.d.ts +2 -0
- package/dist/core/registry-version.test.d.ts.map +1 -0
- package/dist/core/stats.d.ts.map +1 -1
- package/dist/core/update-token.d.ts +5 -0
- package/dist/core/update-token.d.ts.map +1 -0
- package/dist/core/update-token.test.d.ts +2 -0
- package/dist/core/update-token.test.d.ts.map +1 -0
- package/dist/toolbar/toolbar.js +1665 -1608
- package/dist/toolbar/toolbar.js.map +1 -1
- package/dist/types/index.d.ts +157 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +32 -12
- package/dist/types/index.js.map +1 -1
- package/dist/vite/daemon-target.d.ts +13 -0
- package/dist/vite/daemon-target.d.ts.map +1 -0
- package/dist/vite/daemon-target.test.d.ts +2 -0
- package/dist/vite/daemon-target.test.d.ts.map +1 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +40 -63
- package/dist/vite/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/daemon-state.CI9RArUn.js.map +0 -1
- package/dist/chunks/dev-port.BGjGddjm.js +0 -43
- package/dist/chunks/dev-port.BGjGddjm.js.map +0 -1
- package/dist/vite/proxy.d.ts +0 -10
- package/dist/vite/proxy.d.ts.map +0 -1
- package/dist/vite/proxy.test.d.ts +0 -2
- package/dist/vite/proxy.test.d.ts.map +0 -1
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
import { MachineProjectSummary } from '../../types/index';
|
|
1
|
+
import { MachineNightGateResponse, MachineProjectSummary } from '../../types/index';
|
|
2
|
+
export interface DaemonLinks {
|
|
3
|
+
host: string;
|
|
4
|
+
network?: string;
|
|
5
|
+
tailnet?: string;
|
|
6
|
+
tunnel?: string;
|
|
7
|
+
}
|
|
8
|
+
export type UpdateEvent = {
|
|
9
|
+
kind: 'hooked';
|
|
10
|
+
version: string;
|
|
11
|
+
at: string;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'boot check current';
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'failed';
|
|
16
|
+
version: string;
|
|
17
|
+
output: string;
|
|
18
|
+
};
|
|
2
19
|
export interface DaemonState {
|
|
3
20
|
pid: number;
|
|
4
21
|
port: number;
|
|
@@ -6,6 +23,9 @@ export interface DaemonState {
|
|
|
6
23
|
startedAt: string;
|
|
7
24
|
share: boolean;
|
|
8
25
|
tailnet: boolean;
|
|
26
|
+
updateEvent?: UpdateEvent;
|
|
27
|
+
updatePendingVersion?: string | null;
|
|
28
|
+
links?: DaemonLinks;
|
|
9
29
|
}
|
|
10
30
|
export declare function daemonStatePath(): string;
|
|
11
31
|
export declare function daemonLogPath(): string;
|
|
@@ -14,11 +34,16 @@ export declare function fetchMachineProjects(port: number): Promise<MachineProje
|
|
|
14
34
|
/** A response at all is proof the port is a live daemon, not just a live pid
|
|
15
35
|
* (pids get reused, ports get taken by something else). */
|
|
16
36
|
export declare function probeMachineEndpoint(port: number): Promise<boolean>;
|
|
37
|
+
export declare function fetchMachineNightGate(port: number): Promise<MachineNightGateResponse | null>;
|
|
17
38
|
/** The one truth every lifecycle command reads: a state file, a live pid, and
|
|
18
39
|
* a daemon answering on its port. Anything less is stale, so this prunes the
|
|
19
40
|
* file before reporting not-running. */
|
|
20
41
|
export declare function readRunningDaemonState(path: string): Promise<DaemonState | null>;
|
|
21
42
|
export declare function formatDaemonStatusLine(state: DaemonState): string;
|
|
43
|
+
export declare function formatUpdateStatusLine(state: DaemonState): string;
|
|
44
|
+
/** Unlike the daemon banner, which prints only the single best way in, status
|
|
45
|
+
* lists every link this machine has on offer. */
|
|
46
|
+
export declare function formatDaemonLinks(links: DaemonLinks): string;
|
|
22
47
|
/** Written to a sibling temp path and renamed into place, so a crash mid-write
|
|
23
48
|
* never leaves a stale-file reader a truncated file to trip over. */
|
|
24
49
|
export declare function writeDaemonState(path: string, state: DaemonState): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-state.d.ts","sourceRoot":"","sources":["../../../src/core/daemon-state/daemon-state.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"daemon-state.d.ts","sourceRoot":"","sources":["../../../src/core/daemon-state/daemon-state.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAI3B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAqED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAOnD;AAID,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,EAAE,GAAG,IAAI,CAAC,CAWhG;AAED;2DAC2D;AAC3D,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEzE;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC,CAU1C;AAED;;wCAEwC;AACxC,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAStF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAOjE;AAQD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAcjE;AAED;iDACiD;AACjD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAU5D;AAED;qEACqE;AACrE,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAKtF;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnE"}
|
|
@@ -17,5 +17,6 @@ export interface ProjectEvidence {
|
|
|
17
17
|
hasReleasePlease: boolean;
|
|
18
18
|
nonJsManifests: NonJsManifest[];
|
|
19
19
|
}
|
|
20
|
+
export declare function detectPackageManager(root: string): PackageManager | null;
|
|
20
21
|
export declare function gatherProjectEvidence(root: string): Promise<ProjectEvidence>;
|
|
21
22
|
//# sourceMappingURL=evidence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../../src/core/desk-discovery/evidence.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;
|
|
1
|
+
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../../src/core/desk-discovery/evidence.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAsCD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAKxE;AAiJD,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAgBlF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ToolbarHostState {
|
|
2
|
+
viteConfigPath: string | null;
|
|
3
|
+
importsPlugin: boolean;
|
|
4
|
+
isDependency: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Deterministic evidence for the Toolbar settings section — no agent call, unlike
|
|
7
|
+
* `gatherProjectEvidence`'s desk proposal, since there's only one fact to classify. */
|
|
8
|
+
export declare function detectToolbarHostState(root: string): Promise<ToolbarHostState>;
|
|
9
|
+
//# sourceMappingURL=toolbar-host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-host.d.ts","sourceRoot":"","sources":["../../../src/core/desk-discovery/toolbar-host.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;CACvB;AAkED;uFACuF;AACvF,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAapF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-host.test.d.ts","sourceRoot":"","sources":["../../../src/core/desk-discovery/toolbar-host.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structural.d.ts","sourceRoot":"","sources":["../../../../src/core/doctor/checks/structural.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"structural.d.ts","sourceRoot":"","sources":["../../../../src/core/doctor/checks/structural.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,WAAW,CAAC;AA0J/D,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAMzC,CAAC"}
|
|
@@ -41,6 +41,11 @@ export declare const DOCTOR_RULES: readonly [{
|
|
|
41
41
|
readonly category: "structural";
|
|
42
42
|
readonly severity: "error";
|
|
43
43
|
readonly summary: "A kind: note entity carries a Phases section; notes never grow phases.";
|
|
44
|
+
}, {
|
|
45
|
+
readonly id: "duplicate-phases-section";
|
|
46
|
+
readonly category: "structural";
|
|
47
|
+
readonly severity: "error";
|
|
48
|
+
readonly summary: "A file carries more than one Phases heading — a redraft appended instead of replacing the existing list in place.";
|
|
44
49
|
}, {
|
|
45
50
|
readonly id: "archive-placement";
|
|
46
51
|
readonly category: "structural";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/core/doctor/rules.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC;AAEvD,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/core/doctor/rules.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC;AAEvD,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEiB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAE/D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAE3B,CAAC"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,154 +1,168 @@
|
|
|
1
|
-
import { A as s, C as t, a as r, b as n, D as o, c as i, d, e as c, M as l, P as m, f as P, g as S, S as E, h as T, i as h, j as
|
|
2
|
-
import {
|
|
1
|
+
import { A as s, C as t, a as r, b as n, D as o, c as i, d, e as c, M as l, P as m, f as P, g as S, S as E, h as T, i as h, j as g, k as C, l as _, m as I, n as R, o as p, p as v, q as A, r as N, s as f, t as y, u as F, v as D, w as L, x as u, y as M, z as O, B as H, E as b, F as k, G, H as j, I as w, J as U, K, L as x, N as B, O as q, Q as W, R as X, T as z, U as J, V as Q, W as V, X as Y, Y as Z, Z as $, _ as aa, $ as ea, a0 as sa, a1 as ta, a2 as ra, a3 as na, a4 as oa, a5 as ia, a6 as da, a7 as ca, a8 as la, a9 as ma, aa as Pa, ab as Sa, ac as Ea, ad as Ta, ae as ha, af as ga, ag as Ca, ah as _a, ai as Ia, aj as Ra, ak as pa, al as va, am as Aa, an as Na, ao as fa, ap as ya, aq as Fa, ar as Da, as as La, at as ua, au as Ma, av as Oa, aw as Ha, ax as ba, ay as ka, az as Ga, aA as ja, aB as wa, aC as Ua, aD as Ka, aE as xa, aF as Ba, aG as qa, aH as Wa, aI as Xa, aJ as za, aK as Ja, aL as Qa, aM as Va, aN as Ya, aO as Za, aP as $a, aQ as ae, aR as ee, aS as se, aT as te, aU as re, aV as ne, aW as oe, aX as ie, aY as de, aZ as ce, a_ as le, a$ as me, b0 as Pe, b1 as Se, b2 as Ee, b3 as Te, b4 as he } from "../chunks/phase-progress.CazP7K7B.js";
|
|
2
|
+
import { a as Ce, c as _e, d as Ie, b as Re, e as pe, f as ve, g as Ae, h as Ne, i as fe, j as ye, k as Fe, l as De, m as Le, n as ue, o as Me, p as Oe, r as He, q as be, s as ke, t as Ge, u as je, v as we, w as Ue, x as Ke } from "../chunks/daemon-state.61FBbbsV.js";
|
|
3
|
+
import { AGENT_IDS as Be, AGENT_LABELS as qe, AGENT_OPTIONS as We, DEFAULT_AGENTS as Xe, DEFAULT_NIGHT_CONFIG as ze, MACHINE_NIGHT_PATH as Je, MACHINE_PROJECTS_PATH as Qe, MACHINE_UPDATE_PATH as Ve, NIGHT_CHECK_IDS as Ye, PAIRING_TOKEN_HEADER as Ze, PLAN_KINDS as $e, PLAN_STATUSES as as, TOOLBAR_SEGMENT_IDS as es, agentConfigsEqual as ss, coerceAgentConfig as ts } from "../types/index.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Be as AGENT_IDS,
|
|
6
|
+
qe as AGENT_LABELS,
|
|
7
|
+
We as AGENT_OPTIONS,
|
|
7
8
|
s as AlreadyInitializedError,
|
|
8
9
|
t as CLAUDE_SETTINGS_JSON,
|
|
9
10
|
r as COMMIT_SCOPES,
|
|
10
11
|
n as COMMIT_SHA_RE,
|
|
11
|
-
|
|
12
|
+
Xe as DEFAULT_AGENTS,
|
|
13
|
+
ze as DEFAULT_NIGHT_CONFIG,
|
|
12
14
|
o as DOCTOR_CHECKS,
|
|
13
15
|
i as DOCTOR_FIXERS,
|
|
14
16
|
d as DOCTOR_RULES,
|
|
15
17
|
c as DOCTOR_RULES_BY_ID,
|
|
16
|
-
|
|
18
|
+
Je as MACHINE_NIGHT_PATH,
|
|
19
|
+
Qe as MACHINE_PROJECTS_PATH,
|
|
20
|
+
Ve as MACHINE_UPDATE_PATH,
|
|
17
21
|
l as MAX_TITLE_LENGTH,
|
|
18
|
-
|
|
22
|
+
Ye as NIGHT_CHECK_IDS,
|
|
23
|
+
Ze as PAIRING_TOKEN_HEADER,
|
|
19
24
|
m as PAPER_CAMP_VERSION,
|
|
20
25
|
P as PHASE_MAX_FRACTION,
|
|
21
26
|
S as PHASE_STALL_MS,
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
$e as PLAN_KINDS,
|
|
28
|
+
as as PLAN_STATUSES,
|
|
24
29
|
E as SKILL_MD_CONTENT,
|
|
25
30
|
T as SUGGESTION_ENTRY_RE,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
es as TOOLBAR_SEGMENT_IDS,
|
|
32
|
+
Ce as addProject,
|
|
33
|
+
h as addRoadmapCandidate,
|
|
29
34
|
g as addRoadmapItem,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
C as advanceAnchor,
|
|
36
|
+
_ as agentConfigSchema,
|
|
37
|
+
ss as agentConfigsEqual,
|
|
38
|
+
I as agentThreadMessage,
|
|
39
|
+
R as applyEnvEntries,
|
|
40
|
+
p as archiveEntityFile,
|
|
41
|
+
v as assignEntityId,
|
|
42
|
+
A as assignPlanId,
|
|
43
|
+
N as assignTicketId,
|
|
44
|
+
f as branchName,
|
|
45
|
+
y as classifyAnchor,
|
|
46
|
+
_e as clearNightProject,
|
|
47
|
+
F as clearPrCache,
|
|
48
|
+
ts as coerceAgentConfig,
|
|
43
49
|
D as collectDoctorContext,
|
|
44
50
|
L as collectParkedQuestions,
|
|
45
|
-
|
|
51
|
+
u as computePlanContentHash,
|
|
46
52
|
M as computePrTitle,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
53
|
+
O as createPrReview,
|
|
54
|
+
Ie as daemonLogPath,
|
|
55
|
+
Re as daemonStatePath,
|
|
56
|
+
H as dateString,
|
|
57
|
+
pe as defaultRegistryPath,
|
|
58
|
+
b as derivePrLabels,
|
|
59
|
+
k as deriveRoadmapEvents,
|
|
60
|
+
G as deriveSubjectVocabulary,
|
|
61
|
+
j as describeFindings,
|
|
62
|
+
w as deskCheckSchema,
|
|
63
|
+
U as deskCiSchema,
|
|
64
|
+
K as deskConfigSchema,
|
|
65
|
+
x as deskServiceSchema,
|
|
66
|
+
B as dispatchPrReview,
|
|
67
|
+
q as ensureSubject,
|
|
68
|
+
W as entityFrontmatterKnownKeys,
|
|
69
|
+
X as entityFrontmatterSchema,
|
|
70
|
+
z as entityToIdea,
|
|
71
|
+
J as entityToPlan,
|
|
72
|
+
ve as fetchMachineNightGate,
|
|
73
|
+
Ae as fetchMachineProjects,
|
|
74
|
+
Q as fetchPrDiff,
|
|
75
|
+
V as fetchUnresolvedThreads,
|
|
76
|
+
Y as findArchivableIdeas,
|
|
77
|
+
Z as findConsistencyIssues,
|
|
78
|
+
$ as findReleaseLineForId,
|
|
79
|
+
aa as findingSeverity,
|
|
80
|
+
Ne as formatDaemonLinks,
|
|
81
|
+
fe as formatDaemonStatusLine,
|
|
82
|
+
ea as formatEntityFile,
|
|
83
|
+
sa as formatIdeaFile,
|
|
84
|
+
ta as formatPlanEntry,
|
|
85
|
+
ra as formatPlanFile,
|
|
86
|
+
na as formatPlans,
|
|
87
|
+
oa as formatReleaseNotesMarkdown,
|
|
88
|
+
ye as formatUpdateStatusLine,
|
|
89
|
+
ia as getPrMapFetchedAt,
|
|
90
|
+
da as ideaFrontmatterSchema,
|
|
91
|
+
ca as initProject,
|
|
92
|
+
la as isConventionalPrTitle,
|
|
93
|
+
ma as isPhaseStalled,
|
|
94
|
+
Fe as isProcessAlive,
|
|
95
|
+
De as isProjectMissing,
|
|
96
|
+
Pa as linkRoadmapItem,
|
|
97
|
+
Le as listProjects,
|
|
98
|
+
ue as loadRegistry,
|
|
99
|
+
Me as machineConfigDir,
|
|
100
|
+
Sa as medianSegmentMs,
|
|
101
|
+
Ea as nightConfigSchema,
|
|
102
|
+
Ta as nightCustomCheckSchema,
|
|
103
|
+
ha as nightWindowSchema,
|
|
104
|
+
ga as paperCampConfigSchema,
|
|
105
|
+
Ca as parseEntityFile,
|
|
106
|
+
_a as parseEnv,
|
|
107
|
+
Ia as parseFrontmatter,
|
|
108
|
+
Ra as parseIdeaFile,
|
|
109
|
+
pa as parseIdeas,
|
|
110
|
+
va as parseNotificationLog,
|
|
111
|
+
Aa as parsePlanFile,
|
|
112
|
+
Na as parsePlans,
|
|
113
|
+
fa as parseRawEntries,
|
|
114
|
+
ya as parseRoadmap,
|
|
115
|
+
Fa as parseSuggestions,
|
|
116
|
+
Da as phaseFraction,
|
|
117
|
+
La as planDoctorFixes,
|
|
118
|
+
ua as planFieldsSchema,
|
|
119
|
+
Ma as planFrontmatterSchema,
|
|
120
|
+
Oe as probeMachineEndpoint,
|
|
121
|
+
Oa as readEntities,
|
|
122
|
+
Ha as readEntitiesWithDerivedStatus,
|
|
123
|
+
ba as readFileMaybe,
|
|
124
|
+
ka as readNoteEntries,
|
|
125
|
+
Ga as readParkedQuestions,
|
|
126
|
+
He as readRunningDaemonState,
|
|
127
|
+
ja as readTaskLog,
|
|
128
|
+
wa as readWorkEntries,
|
|
129
|
+
be as removeDaemonState,
|
|
130
|
+
ke as removeProject,
|
|
131
|
+
Ua as removeRoadmapItem,
|
|
132
|
+
Ka as removeSuggestionLine,
|
|
133
|
+
xa as renderConsistencyComment,
|
|
134
|
+
Ba as renderPlanPhasesIntoBody,
|
|
135
|
+
qa as replyToReviewThread,
|
|
136
|
+
Wa as reportFindings,
|
|
137
|
+
Xa as resolveEntityIdForCommit,
|
|
138
|
+
za as resolveEntityTrail,
|
|
139
|
+
Ja as resolveIdFromCommitMessage,
|
|
140
|
+
Qa as resolveIdeasForRelease,
|
|
141
|
+
Va as resolvePlanForPrRef,
|
|
142
|
+
Ya as resolvePrimaryScope,
|
|
143
|
+
Za as resolvePrsByEntity,
|
|
144
|
+
$a as resolveReleaseNotes,
|
|
145
|
+
ae as resolveReleaseRanges,
|
|
146
|
+
ee as resolveReviewThread,
|
|
147
|
+
se as resolveRoadmap,
|
|
148
|
+
te as runDoctor,
|
|
149
|
+
re as runDoctorChecks,
|
|
150
|
+
Ge as saveRegistry,
|
|
151
|
+
je as scanForProjects,
|
|
152
|
+
ne as scoutReviewFooter,
|
|
153
|
+
oe as serializeFrontmatter,
|
|
154
|
+
we as setNightPause,
|
|
155
|
+
Ue as setNightProject,
|
|
156
|
+
ie as sortFindings,
|
|
157
|
+
de as squashMergePr,
|
|
158
|
+
ce as storedNotificationSchema,
|
|
159
|
+
le as syncConsistencyCommentToPr,
|
|
160
|
+
me as syncPlanPhasesToPr,
|
|
161
|
+
Pe as syncPrLabelsToPr,
|
|
162
|
+
Se as syncPrReadinessToPr,
|
|
163
|
+
Ee as syncPrTitleToPr,
|
|
164
|
+
Te as todayDateString,
|
|
165
|
+
he as validatePrTitle,
|
|
166
|
+
Ke as writeDaemonState
|
|
153
167
|
};
|
|
154
168
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -3,9 +3,15 @@ export interface MachineProject {
|
|
|
3
3
|
path: string;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
+
export interface NightSelection {
|
|
7
|
+
slug: string;
|
|
8
|
+
pausedUntil?: number;
|
|
9
|
+
}
|
|
6
10
|
export interface MachineRegistry {
|
|
7
11
|
version: 1;
|
|
8
12
|
projects: MachineProject[];
|
|
13
|
+
/** The one project `paper-camp daemon` runs the night shift for (IDEA-241); absent means off. */
|
|
14
|
+
night?: NightSelection;
|
|
9
15
|
}
|
|
10
16
|
export declare function machineConfigDir(): string;
|
|
11
17
|
export declare function defaultRegistryPath(): string;
|
|
@@ -29,6 +35,14 @@ export interface RemoveProjectResult {
|
|
|
29
35
|
}
|
|
30
36
|
export declare function removeProject(registry: MachineRegistry, slug: string): RemoveProjectResult;
|
|
31
37
|
export declare function listProjects(registry: MachineRegistry): MachineProject[];
|
|
38
|
+
export interface SetNightProjectResult {
|
|
39
|
+
registry: MachineRegistry;
|
|
40
|
+
ok: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** Fails for a slug not in `projects` — the night shift only ever runs a registered project. */
|
|
43
|
+
export declare function setNightProject(registry: MachineRegistry, slug: string): SetNightProjectResult;
|
|
44
|
+
export declare function clearNightProject(registry: MachineRegistry): MachineRegistry;
|
|
45
|
+
export declare function setNightPause(registry: MachineRegistry, pausedUntil: number | null): MachineRegistry;
|
|
32
46
|
/** A registered path is missing once its `papercamp/config.json` is gone — the
|
|
33
47
|
* mounter, the machine-projects endpoint, and `ls`/`status` all key off this. */
|
|
34
48
|
export declare function isProjectMissing(path: string): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine-registry.d.ts","sourceRoot":"","sources":["../../../src/core/machine-registry/machine-registry.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,cAAc,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"machine-registry.d.ts","sourceRoot":"","sources":["../../../src/core/machine-registry/machine-registry.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,iGAAiG;IACjG,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAID,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAmCD;iDACiD;AACjD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAgBzE;AAED;gEACgE;AAChE,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAKzF;AAiBD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,cAAc,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;0EAC0E;AAC1E,wBAAgB,UAAU,CACxB,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,MAAM,GACZ,gBAAgB,CAalB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAQ1F;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,cAAc,EAAE,CAExE;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,eAAe,CAAC;IAC1B,EAAE,EAAE,OAAO,CAAC;CACb;AAED,gGAAgG;AAChG,wBAAgB,eAAe,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,qBAAqB,CAK9F;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,eAAe,GAAG,eAAe,CAI5E;AAED,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,MAAM,GAAG,IAAI,GACzB,eAAe,CAOjB;AAED;iFACiF;AACjF,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOrE;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAwBD,iGAAiG;AACjG,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAYvE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NightCheckId, NightConfig } from '../types/index';
|
|
2
|
+
export interface NightBuiltinCheck {
|
|
3
|
+
id: NightCheckId;
|
|
4
|
+
name: string;
|
|
5
|
+
instructions: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const NIGHT_BUILTIN_CHECKS: NightBuiltinCheck[];
|
|
8
|
+
export interface ResolvedNightCheck {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
instructions: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function resolveNightChecks(config: NightConfig | undefined): ResolvedNightCheck[];
|
|
14
|
+
//# sourceMappingURL=night-checks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-checks.d.ts","sourceRoot":"","sources":["../../src/core/night-checks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAElF,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,YAAY,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAgCnD,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,kBAAkB,EAAE,CAWxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-checks.test.d.ts","sourceRoot":"","sources":["../../src/core/night-checks.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NightFindingSeverity, NightRawFinding } from '../types/index';
|
|
2
|
+
export declare function parseNightCheckFindings(resultText: string): NightRawFinding[] | undefined;
|
|
3
|
+
export interface NightConfirmVerdict {
|
|
4
|
+
confirmed: boolean;
|
|
5
|
+
severity: NightFindingSeverity | null;
|
|
6
|
+
reasoning: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function parseNightConfirmVerdict(resultText: string): NightConfirmVerdict | undefined;
|
|
9
|
+
//# sourceMappingURL=night-findings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-findings.d.ts","sourceRoot":"","sources":["../../src/core/night-findings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAI5E,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,EAAE,GAAG,SAAS,CAmBzF;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAyB5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-findings.test.d.ts","sourceRoot":"","sources":["../../src/core/night-findings.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NightGateStatus, NightWindow, RateLimitSnapshot } from '../types/index';
|
|
2
|
+
export declare function isWithinNightWindow(now: Date, window: NightWindow | undefined): boolean;
|
|
3
|
+
export interface NightGateInput {
|
|
4
|
+
now: number;
|
|
5
|
+
lastDashboardRequestAt: number | null;
|
|
6
|
+
taskRunning: boolean;
|
|
7
|
+
snapshot: RateLimitSnapshot | null;
|
|
8
|
+
ceiling: number;
|
|
9
|
+
floor: number;
|
|
10
|
+
window?: NightWindow;
|
|
11
|
+
pausedUntil?: number | null;
|
|
12
|
+
}
|
|
13
|
+
export declare function evaluateNightGate(input: NightGateInput): NightGateStatus;
|
|
14
|
+
//# sourceMappingURL=night-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-gate.d.ts","sourceRoot":"","sources":["../../src/core/night-gate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAStF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,CAOvF;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,CAuCxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-gate.test.d.ts","sourceRoot":"","sources":["../../src/core/night-gate.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChunkHealth, ChunkSignals, NightHealthMap } from '../types/index';
|
|
2
|
+
export declare function computeChurnByChunk(root: string, chunkPaths: string[]): Promise<Map<string, number>>;
|
|
3
|
+
interface CoverageFileEntry {
|
|
4
|
+
lines?: {
|
|
5
|
+
total?: number;
|
|
6
|
+
covered?: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function chunkCoveragePct(summary: Record<string, CoverageFileEntry> | null, chunkAbsPath: string): number | null;
|
|
10
|
+
export declare function scoreChunk(signals: ChunkSignals): number;
|
|
11
|
+
export declare function computeNightHealthMap(root: string): Promise<NightHealthMap>;
|
|
12
|
+
export declare function markChunkReviewed(root: string, chunkPath: string, commit: string, at?: string): Promise<void>;
|
|
13
|
+
/** The chunks one night reviews: above the threshold, highest score first, at most
|
|
14
|
+
* `maxChunks`, skipping any already reviewed tonight. */
|
|
15
|
+
export declare function selectNightChunks(map: NightHealthMap, options: {
|
|
16
|
+
threshold: number;
|
|
17
|
+
maxChunks: number;
|
|
18
|
+
exclude?: ReadonlySet<string>;
|
|
19
|
+
}): ChunkHealth[];
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=night-health.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-health.d.ts","sourceRoot":"","sources":["../../src/core/night-health.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAe,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAmF7F,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAuB9B;AAED,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAgBD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,IAAI,EACjD,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,IAAI,CAWf;AAaD,wBAAgB,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAYxD;AAQD,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAsCjF;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,EAAE,GAAE,MAAiC,GACpC,OAAO,CAAC,IAAI,CAAC,CA4Bf;AAED;0DAC0D;AAC1D,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAAE,GAC/E,WAAW,EAAE,CAKf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-health.test.d.ts","sourceRoot":"","sources":["../../src/core/night-health.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NightRawFinding } from '../types/index';
|
|
2
|
+
export interface NightCheckPromptInput {
|
|
3
|
+
name: string;
|
|
4
|
+
instructions: string;
|
|
5
|
+
chunkPath: string;
|
|
6
|
+
files: string[];
|
|
7
|
+
sinceCommit: string | null;
|
|
8
|
+
diff: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function buildNightCheckPrompt(input: NightCheckPromptInput): string;
|
|
11
|
+
export interface NightConfirmPromptInput {
|
|
12
|
+
checkName: string;
|
|
13
|
+
finding: NightRawFinding;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildNightConfirmPrompt(input: NightConfirmPromptInput): string;
|
|
16
|
+
//# sourceMappingURL=night-prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-prompts.d.ts","sourceRoot":"","sources":["../../src/core/night-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,CAoB1E;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAe9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"night-prompts.test.d.ts","sourceRoot":"","sources":["../../src/core/night-prompts.test.ts"],"names":[],"mappings":""}
|