@dadado/agent-kit-cli 6.8.0 → 6.10.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/dashboard/README.md +31 -5
- package/dashboard/art/atmospheric-purifier.webp +0 -0
- package/dashboard/art/rover-frozen-flats.webp +0 -0
- package/dashboard/art/seed-tree-crane.webp +0 -0
- package/dashboard/art/uplink-tower-road.webp +0 -0
- package/dashboard/dashboard-data.mjs +385 -9
- package/dashboard/dashboard.html +794 -75
- package/dashboard/lib/live-refresh.mjs +1 -0
- package/dashboard/lib/outcome-ledger.d.mts +115 -0
- package/dashboard/lib/outcome-ledger.mjs +595 -0
- package/dashboard/lib/ship-lane.mjs +690 -0
- package/dashboard/serve.mjs +20 -0
- package/dist/{chunk-BCX5NDQC.js → chunk-GQ6Q3P7C.js} +1 -1
- package/dist/{chunk-67G3236R.js → chunk-K5OCGZWA.js} +2 -2
- package/dist/{chunk-3LLXDHIU.js → chunk-LFWPB2JR.js} +1 -0
- package/dist/{chunk-GO3K752H.js → chunk-SC2DBY2R.js} +2 -0
- package/dist/{chunk-3Z4PGEEJ.js → chunk-TUZVOPKY.js} +1 -1
- package/dist/{doctor-PZT7EGLQ.js → doctor-E6LOBJYK.js} +2 -2
- package/dist/{guard-ZZRQW3DJ.js → guard-M3W3QE62.js} +14 -2
- package/dist/index.js +19 -11
- package/dist/{init-MGRZ7U7A.js → init-KKVT2RW4.js} +3 -3
- package/dist/{install-432KJISB.js → install-BPZTP5KT.js} +3 -3
- package/dist/{mission-control-MHQU73XC.js → mission-control-C2QV5D25.js} +1 -1
- package/dist/outcome-ledger-XLWHWPVQ.js +297 -0
- package/dist/{run-DXGTFYJK.js → run-326EEQYY.js} +34 -11
- package/dist/{run-plan-KWGS2SOZ.js → run-plan-2IFO4G4Y.js} +2 -2
- package/dist/{scan-UX4HARMJ.js → scan-BWA64R7I.js} +1 -1
- package/dist/{status-UDM55MHU.js → status-LNXVLDMP.js} +1 -1
- package/package.json +1 -1
|
@@ -37,6 +37,7 @@ export const SNAPSHOT_REPO_SOURCE_RELS = Object.freeze([
|
|
|
37
37
|
".cursor/context/field-report-dismissals.json",
|
|
38
38
|
".cursor/context/mission-timing.json",
|
|
39
39
|
".cursor/context/flight-log.json",
|
|
40
|
+
".cursor/context/test-results.json",
|
|
40
41
|
".cursor/context/field-report-cadence.json",
|
|
41
42
|
".cursor/skills",
|
|
42
43
|
"package.json",
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/** Ambient types for dashboard/lib/outcome-ledger.mjs (consumed by CLI TypeScript). */
|
|
2
|
+
|
|
3
|
+
export const OUTCOME_LEDGER_REL: ".cursor/context/outcome-ledger.json";
|
|
4
|
+
export const TEST_RESULTS_REL: ".cursor/context/test-results.json";
|
|
5
|
+
export const REPOSITORY_PROFILE_REL: ".cursor/agent-kit.config.json";
|
|
6
|
+
export const OUTCOME_LEDGER_VERSION: 1;
|
|
7
|
+
export const MAX_LEDGER_ENTRIES: number;
|
|
8
|
+
export const MAX_TEST_RESULTS: number;
|
|
9
|
+
export const MAX_RECENT_ENTRIES: number;
|
|
10
|
+
|
|
11
|
+
export type OutcomeKind =
|
|
12
|
+
| "todo"
|
|
13
|
+
| "test"
|
|
14
|
+
| "ci"
|
|
15
|
+
| "releaseCut"
|
|
16
|
+
| "plan"
|
|
17
|
+
| "review"
|
|
18
|
+
| "releasePublished";
|
|
19
|
+
export type OutcomeResource = "logic" | "compute" | "rare";
|
|
20
|
+
export const OUTCOME_KINDS: Readonly<Record<OutcomeKind, OutcomeResource>>;
|
|
21
|
+
|
|
22
|
+
export interface OutcomeEntry {
|
|
23
|
+
/** A kind from a newer engine is kept with resource null and not counted. */
|
|
24
|
+
kind: OutcomeKind | string;
|
|
25
|
+
resource: OutcomeResource | null;
|
|
26
|
+
at: string | null;
|
|
27
|
+
label: string;
|
|
28
|
+
}
|
|
29
|
+
export interface OutcomeEvent extends OutcomeEntry {
|
|
30
|
+
key: string;
|
|
31
|
+
}
|
|
32
|
+
export interface OutcomeLedger {
|
|
33
|
+
version: 1;
|
|
34
|
+
entries: Record<string, OutcomeEntry>;
|
|
35
|
+
sources: Record<string, string>;
|
|
36
|
+
}
|
|
37
|
+
export interface FlowSignal {
|
|
38
|
+
plan: string;
|
|
39
|
+
streak: number;
|
|
40
|
+
lastClosedAt: string | null;
|
|
41
|
+
brokenAt: string | null;
|
|
42
|
+
}
|
|
43
|
+
export interface TestRun {
|
|
44
|
+
at: string;
|
|
45
|
+
ok: boolean;
|
|
46
|
+
exitCode: number | null;
|
|
47
|
+
head: string | null;
|
|
48
|
+
commands: string[];
|
|
49
|
+
}
|
|
50
|
+
export interface TestResults {
|
|
51
|
+
version: 1;
|
|
52
|
+
runs: TestRun[];
|
|
53
|
+
}
|
|
54
|
+
export interface TestCollectorStatus {
|
|
55
|
+
configured: boolean;
|
|
56
|
+
lastRun: { at: string; ok: boolean; head: string | null } | null;
|
|
57
|
+
}
|
|
58
|
+
export interface OutcomeLedgerSummary {
|
|
59
|
+
available: boolean;
|
|
60
|
+
reason: string | null;
|
|
61
|
+
version: 1;
|
|
62
|
+
path: string;
|
|
63
|
+
entries: number;
|
|
64
|
+
totals: Record<OutcomeResource, number>;
|
|
65
|
+
byKind: Record<OutcomeKind, number>;
|
|
66
|
+
recent: OutcomeEvent[];
|
|
67
|
+
flow: FlowSignal | null;
|
|
68
|
+
tests: TestCollectorStatus;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function emptyOutcomeLedger(): OutcomeLedger;
|
|
72
|
+
export function parseOutcomeLedger(raw: unknown): OutcomeLedger;
|
|
73
|
+
export function serializeOutcomeLedger(ledger: unknown): string;
|
|
74
|
+
export function parsePlanTodos(content: string): Array<{ id: string; status: string }>;
|
|
75
|
+
export function fullReviewHeadSha(content: string): string | null;
|
|
76
|
+
export function extractOutcomeEvents(inputs?: Record<string, unknown>): OutcomeEvent[];
|
|
77
|
+
export function foldOutcomeLedger(
|
|
78
|
+
prev: unknown,
|
|
79
|
+
events: OutcomeEvent[],
|
|
80
|
+
sources?: Record<string, string>,
|
|
81
|
+
): { ledger: OutcomeLedger; added: number };
|
|
82
|
+
export function deriveFlowSignal(
|
|
83
|
+
timing: unknown,
|
|
84
|
+
runLogs?: unknown[],
|
|
85
|
+
plans?: Array<{ file: string; todos: Array<{ id: string; status: string }> }> | null,
|
|
86
|
+
): FlowSignal | null;
|
|
87
|
+
export function summarizeOutcomeLedger(
|
|
88
|
+
ledger: unknown,
|
|
89
|
+
extras?: {
|
|
90
|
+
available?: boolean;
|
|
91
|
+
reason?: string | null;
|
|
92
|
+
flow?: FlowSignal | null;
|
|
93
|
+
tests?: TestCollectorStatus;
|
|
94
|
+
},
|
|
95
|
+
): OutcomeLedgerSummary;
|
|
96
|
+
export function emptyOutcomeLedgerSummary(reason?: string | null): OutcomeLedgerSummary;
|
|
97
|
+
export function readOutcomeLedger(root: string): OutcomeLedger;
|
|
98
|
+
export function readOutcomeLedgerFile(root: string): { ledger: OutcomeLedger; foldable: boolean };
|
|
99
|
+
export function isFoldableOutcomeLedger(raw: unknown): boolean;
|
|
100
|
+
export function persistOutcomeLedger(root: string, ledger: unknown): boolean;
|
|
101
|
+
export function parseTestResults(raw: unknown): TestResults;
|
|
102
|
+
export function readTestResults(root: string): TestResults;
|
|
103
|
+
export function appendTestResult(root: string, run: TestRun): TestResults;
|
|
104
|
+
export function readProfileTestCommands(root: string): string[];
|
|
105
|
+
export function testCollectorStatus(root: string, testResults: TestResults): TestCollectorStatus;
|
|
106
|
+
export function runAndRecordTests(
|
|
107
|
+
root: string,
|
|
108
|
+
opts?: {
|
|
109
|
+
commands?: string[];
|
|
110
|
+
spawn?: (...args: unknown[]) => { status: number | null; stdout?: unknown };
|
|
111
|
+
stdio?: unknown;
|
|
112
|
+
now?: Date;
|
|
113
|
+
onCommand?: (command: string) => void;
|
|
114
|
+
},
|
|
115
|
+
): { status: "no-commands" } | { status: "recorded"; run: TestRun };
|