@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
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
runPlanLoop,
|
|
4
4
|
shouldUseLiveTui,
|
|
5
5
|
withLiveTui
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TUZVOPKY.js";
|
|
7
7
|
import {
|
|
8
8
|
DRIVER_EVENTS_FORMATS,
|
|
9
9
|
DRIVER_PROTOCOL_VERSION,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
classifyGateExit,
|
|
28
28
|
landGateExit
|
|
29
29
|
} from "./chunk-26KXYR5T.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-LFWPB2JR.js";
|
|
31
31
|
import {
|
|
32
32
|
negatedFlag
|
|
33
33
|
} from "./chunk-XDCCYBCJ.js";
|
|
@@ -77,25 +77,46 @@ function projectQueueState(handoff) {
|
|
|
77
77
|
if (queue.length === 0) return { cursor: null, total: 0, current: null, status: null };
|
|
78
78
|
return { cursor, total: queue.length, current, status };
|
|
79
79
|
}
|
|
80
|
-
async function
|
|
81
|
-
let handoff = "";
|
|
80
|
+
async function readHandoffText(root) {
|
|
82
81
|
try {
|
|
83
|
-
|
|
82
|
+
return await readFile(path.join(root, HANDOFF_REL), "utf8");
|
|
84
83
|
} catch {
|
|
84
|
+
return null;
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
}
|
|
87
|
+
async function readQueueState(root) {
|
|
88
|
+
return projectQueueState(await readHandoffText(root) ?? "");
|
|
87
89
|
}
|
|
88
90
|
function createQueueStateWatcher(opts) {
|
|
91
|
+
const read = opts.read ?? (() => readHandoffText(opts.root));
|
|
89
92
|
let last = JSON.stringify(opts.initial);
|
|
93
|
+
let pending = null;
|
|
90
94
|
let busy = null;
|
|
91
95
|
let stopped = false;
|
|
92
|
-
const
|
|
93
|
-
const next = await readQueueState(opts.root);
|
|
94
|
-
const key = JSON.stringify(next);
|
|
95
|
-
if (key === last || stopped) return;
|
|
96
|
+
const emit = (next, key) => {
|
|
96
97
|
last = key;
|
|
98
|
+
pending = null;
|
|
97
99
|
opts.emitter.emit({ type: "queue_state", ...next });
|
|
98
100
|
};
|
|
101
|
+
const sample = async () => {
|
|
102
|
+
const text = await read();
|
|
103
|
+
if (text !== null && text.trim() === "") return null;
|
|
104
|
+
const next = projectQueueState(text ?? "");
|
|
105
|
+
return { next, key: JSON.stringify(next) };
|
|
106
|
+
};
|
|
107
|
+
const check = async () => {
|
|
108
|
+
const got = await sample();
|
|
109
|
+
if (!got || stopped) return;
|
|
110
|
+
if (got.key === last) {
|
|
111
|
+
pending = null;
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (got.key !== pending) {
|
|
115
|
+
pending = got.key;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
emit(got.next, got.key);
|
|
119
|
+
};
|
|
99
120
|
const tick = () => {
|
|
100
121
|
if (busy) return busy;
|
|
101
122
|
busy = check().finally(() => {
|
|
@@ -111,7 +132,9 @@ function createQueueStateWatcher(opts) {
|
|
|
111
132
|
return {
|
|
112
133
|
flush: async () => {
|
|
113
134
|
if (busy) await busy;
|
|
114
|
-
await
|
|
135
|
+
const got = await sample();
|
|
136
|
+
if (!got || stopped || got.key === last) return;
|
|
137
|
+
emit(got.next, got.key);
|
|
115
138
|
},
|
|
116
139
|
stop: () => {
|
|
117
140
|
stopped = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPlanLoop
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TUZVOPKY.js";
|
|
4
4
|
import {
|
|
5
5
|
DRIVER_EVENTS_FORMATS
|
|
6
6
|
} from "./chunk-CXDAT76O.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
LAND_ON_GATE_DESCRIPTION
|
|
13
13
|
} from "./chunk-26KXYR5T.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LFWPB2JR.js";
|
|
15
15
|
import {
|
|
16
16
|
negatedFlag
|
|
17
17
|
} from "./chunk-XDCCYBCJ.js";
|
package/package.json
CHANGED