@agent-deck/cli 1.10.0 → 1.10.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/backend-runtime.d.ts +13 -0
- package/dist/backend-runtime.d.ts.map +1 -1
- package/dist/backend-runtime.js +20 -0
- package/dist/backend-runtime.js.map +1 -1
- package/dist/cli-integration-harness.d.ts +93 -0
- package/dist/cli-integration-harness.d.ts.map +1 -0
- package/dist/cli-integration-harness.js +309 -0
- package/dist/cli-integration-harness.js.map +1 -0
- package/dist/daemon-logs.d.ts +7 -0
- package/dist/daemon-logs.d.ts.map +1 -1
- package/dist/daemon-logs.js +55 -0
- package/dist/daemon-logs.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/menubar.d.ts +13 -0
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +32 -1
- package/dist/menubar.js.map +1 -1
- package/dist/node-runtime.d.ts +14 -2
- package/dist/node-runtime.d.ts.map +1 -1
- package/dist/node-runtime.js +37 -18
- package/dist/node-runtime.js.map +1 -1
- package/dist/shutdown-reason.d.ts +105 -0
- package/dist/shutdown-reason.d.ts.map +1 -0
- package/dist/shutdown-reason.js +247 -0
- package/dist/shutdown-reason.js.map +1 -0
- package/dist/start.d.ts.map +1 -1
- package/dist/start.js +361 -37
- package/dist/start.js.map +1 -1
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +27 -0
- package/dist/status.js.map +1 -1
- package/dist/stop.d.ts +14 -1
- package/dist/stop.d.ts.map +1 -1
- package/dist/stop.js +72 -1
- package/dist/stop.js.map +1 -1
- package/dist/store.d.ts +9 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +41 -0
- package/dist/store.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.STOP_REQUEST_MAX_AGE_MS = void 0;
|
|
7
|
+
exports.stopRequestPath = stopRequestPath;
|
|
8
|
+
exports.lastStopPath = lastStopPath;
|
|
9
|
+
exports.lastStartFailurePath = lastStartFailurePath;
|
|
10
|
+
exports.recordStopRequest = recordStopRequest;
|
|
11
|
+
exports.readStopRequest = readStopRequest;
|
|
12
|
+
exports.clearStopRequest = clearStopRequest;
|
|
13
|
+
exports.consumeStopRequest = consumeStopRequest;
|
|
14
|
+
exports.describeStopRequest = describeStopRequest;
|
|
15
|
+
exports.composeShutdownReason = composeShutdownReason;
|
|
16
|
+
exports.describeCrash = describeCrash;
|
|
17
|
+
exports.describeSignalOrigin = describeSignalOrigin;
|
|
18
|
+
exports.formatSupervisorShutdownLine = formatSupervisorShutdownLine;
|
|
19
|
+
exports.formatCommandExitLine = formatCommandExitLine;
|
|
20
|
+
exports.formatStartFailureLine = formatStartFailureLine;
|
|
21
|
+
exports.recordStartFailure = recordStartFailure;
|
|
22
|
+
exports.writeLastStop = writeLastStop;
|
|
23
|
+
exports.readLastStop = readLastStop;
|
|
24
|
+
exports.readLastStartFailure = readLastStartFailure;
|
|
25
|
+
exports.clearLastStartFailure = clearLastStartFailure;
|
|
26
|
+
exports.formatLastStopLines = formatLastStopLines;
|
|
27
|
+
exports.formatLastStartFailureLines = formatLastStartFailureLines;
|
|
28
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
29
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
30
|
+
const node_util_1 = require("node:util");
|
|
31
|
+
const shared_1 = require("@agent-deck/shared");
|
|
32
|
+
const daemon_logs_1 = require("./daemon-logs");
|
|
33
|
+
/** A stop note older than this is stale — a previous run left it behind. */
|
|
34
|
+
exports.STOP_REQUEST_MAX_AGE_MS = 60_000;
|
|
35
|
+
function stopRequestPath() {
|
|
36
|
+
return node_path_1.default.join((0, shared_1.resolveAgentDeckHome)(), 'stop-request.json');
|
|
37
|
+
}
|
|
38
|
+
function lastStopPath() {
|
|
39
|
+
return node_path_1.default.join((0, shared_1.resolveAgentDeckHome)(), 'last-stop.json');
|
|
40
|
+
}
|
|
41
|
+
function lastStartFailurePath() {
|
|
42
|
+
return node_path_1.default.join((0, shared_1.resolveAgentDeckHome)(), 'last-start-failure.json');
|
|
43
|
+
}
|
|
44
|
+
function recordStopRequest(input) {
|
|
45
|
+
const request = {
|
|
46
|
+
source: input.source,
|
|
47
|
+
...(input.detail ? { detail: input.detail } : {}),
|
|
48
|
+
requestedAt: (input.now ?? new Date()).toISOString(),
|
|
49
|
+
requesterPid: input.requesterPid ?? process.pid,
|
|
50
|
+
targetPid: input.targetPid ?? 0,
|
|
51
|
+
};
|
|
52
|
+
const target = stopRequestPath();
|
|
53
|
+
node_fs_1.default.mkdirSync(node_path_1.default.dirname(target), { recursive: true });
|
|
54
|
+
node_fs_1.default.writeFileSync(target, `${JSON.stringify(request, null, 2)}\n`, 'utf8');
|
|
55
|
+
return request;
|
|
56
|
+
}
|
|
57
|
+
function readStopRequest() {
|
|
58
|
+
try {
|
|
59
|
+
const parsed = JSON.parse(node_fs_1.default.readFileSync(stopRequestPath(), 'utf8'));
|
|
60
|
+
if (typeof parsed?.source !== 'string' || typeof parsed?.requestedAt !== 'string') {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return parsed;
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function clearStopRequest() {
|
|
70
|
+
try {
|
|
71
|
+
node_fs_1.default.unlinkSync(stopRequestPath());
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
// ignore
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Take the pending stop note if it is fresh and aimed at this supervisor.
|
|
79
|
+
* Always removes the file so a stale note cannot mislabel a later shutdown.
|
|
80
|
+
*/
|
|
81
|
+
function consumeStopRequest(options) {
|
|
82
|
+
const request = readStopRequest();
|
|
83
|
+
if (!request) {
|
|
84
|
+
clearStopRequest();
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
const requestedAt = new Date(request.requestedAt).getTime();
|
|
88
|
+
const age = (options.now ?? new Date()).getTime() - requestedAt;
|
|
89
|
+
const stale = Number.isNaN(requestedAt) || age < 0 || age > (options.maxAgeMs ?? exports.STOP_REQUEST_MAX_AGE_MS);
|
|
90
|
+
const forThisSupervisor = request.targetPid === 0 || request.targetPid === options.supervisorPid;
|
|
91
|
+
// Someone else's note is left where its target can still find it: eating it
|
|
92
|
+
// would cost that supervisor its attribution *and* convince `agent-deck stop`
|
|
93
|
+
// that the origin was recorded when nobody recorded it.
|
|
94
|
+
if (forThisSupervisor || stale) {
|
|
95
|
+
clearStopRequest();
|
|
96
|
+
}
|
|
97
|
+
return forThisSupervisor && !stale ? request : null;
|
|
98
|
+
}
|
|
99
|
+
function describeStopRequest(request) {
|
|
100
|
+
const parts = [request.source];
|
|
101
|
+
if (request.detail) {
|
|
102
|
+
parts.push(request.detail);
|
|
103
|
+
}
|
|
104
|
+
return `${parts.join(' — ')} (pid ${request.requesterPid})`;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Combine what the supervisor observed (a signal, a child exit, a failed
|
|
108
|
+
* start) with the requester note, when there is one.
|
|
109
|
+
*/
|
|
110
|
+
function composeShutdownReason(origin, request) {
|
|
111
|
+
return request ? `${origin}; requested by ${describeStopRequest(request)}` : origin;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A supervisor that throws is a stop too, and the least explained one: Node's
|
|
115
|
+
* default handler prints a trace and exits without any of our bookkeeping. Split
|
|
116
|
+
* into a one-line reason (the log line, `status`) and the frames (the log body).
|
|
117
|
+
*/
|
|
118
|
+
function describeCrash(error) {
|
|
119
|
+
if (error instanceof Error) {
|
|
120
|
+
const code = error.code;
|
|
121
|
+
return {
|
|
122
|
+
reason: code ? `${error.name} [${code}]: ${error.message}` : `${error.name}: ${error.message}`,
|
|
123
|
+
// error.stack repeats the message on its first line; keep only the frames.
|
|
124
|
+
detail: (error.stack?.split('\n').slice(1) ?? []).map((line) => line.trim()).filter(Boolean),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
// `String({})` is "[object Object]" — a rejected plain object is exactly the
|
|
128
|
+
// throw an operator has no other way to identify.
|
|
129
|
+
return { reason: typeof error === 'string' ? error : (0, node_util_1.inspect)(error, { depth: 2 }), detail: [] };
|
|
130
|
+
}
|
|
131
|
+
/** Origin string for a signal with no matching stop note. */
|
|
132
|
+
function describeSignalOrigin(signal) {
|
|
133
|
+
switch (signal) {
|
|
134
|
+
case 'SIGINT':
|
|
135
|
+
return 'signal SIGINT (Ctrl-C or terminal interrupt)';
|
|
136
|
+
case 'SIGHUP':
|
|
137
|
+
return 'signal SIGHUP (terminal closed)';
|
|
138
|
+
default:
|
|
139
|
+
return 'signal SIGTERM';
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function formatSupervisorShutdownLine(exitCode, reason) {
|
|
143
|
+
return `[agent-deck] supervisor shutting down (exit ${exitCode}, reason: ${reason})`;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A `start` that never supervised anything — it found a deck already running,
|
|
147
|
+
* or died before spawning one — is not the deck stopping, and must not claim a
|
|
148
|
+
* `supervisor shutting down` line that an operator reads as exactly that.
|
|
149
|
+
*/
|
|
150
|
+
function formatCommandExitLine(exitCode, reason) {
|
|
151
|
+
return `[agent-deck] agent-deck start exiting (exit ${exitCode}, reason: ${reason})`;
|
|
152
|
+
}
|
|
153
|
+
function formatStartFailureLine(reason) {
|
|
154
|
+
return `[agent-deck] start failed: ${reason}`;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* A start that dies before the supervisor loop still has to leave a trail. The
|
|
158
|
+
* operator's next move is supervisor.log or `agent-deck status`, and neither can
|
|
159
|
+
* show a message that only ever reached the invoking terminal.
|
|
160
|
+
*/
|
|
161
|
+
function recordStartFailure(input) {
|
|
162
|
+
const exitCode = input.exitCode ?? 1;
|
|
163
|
+
const at = (input.now ?? new Date()).toISOString();
|
|
164
|
+
try {
|
|
165
|
+
(0, daemon_logs_1.appendDaemonLogLine)('supervisor', `${at} ${formatStartFailureLine(input.reason)}`);
|
|
166
|
+
for (const line of input.detail ?? []) {
|
|
167
|
+
(0, daemon_logs_1.appendDaemonLogLine)('supervisor', `${at} [agent-deck] start failed| ${line}`);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
catch {
|
|
171
|
+
// A start already failing must not fail again on its own diagnostic.
|
|
172
|
+
}
|
|
173
|
+
if (!input.keepExistingRecord) {
|
|
174
|
+
writeJsonRecord(lastStartFailurePath(), {
|
|
175
|
+
at,
|
|
176
|
+
exitCode,
|
|
177
|
+
reason: input.reason,
|
|
178
|
+
pid: input.pid ?? process.pid,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
return exitCode;
|
|
182
|
+
}
|
|
183
|
+
function writeJsonRecord(target, record) {
|
|
184
|
+
try {
|
|
185
|
+
node_fs_1.default.mkdirSync(node_path_1.default.dirname(target), { recursive: true });
|
|
186
|
+
node_fs_1.default.writeFileSync(target, `${JSON.stringify(record, null, 2)}\n`, 'utf8');
|
|
187
|
+
}
|
|
188
|
+
catch {
|
|
189
|
+
// Never block a shutdown (or a failing start) on a bookkeeping write.
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function readJsonRecord(source) {
|
|
193
|
+
try {
|
|
194
|
+
const parsed = JSON.parse(node_fs_1.default.readFileSync(source, 'utf8'));
|
|
195
|
+
if (typeof parsed?.at !== 'string' || typeof parsed?.reason !== 'string') {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
return parsed;
|
|
199
|
+
}
|
|
200
|
+
catch {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function writeLastStop(record) {
|
|
205
|
+
writeJsonRecord(lastStopPath(), record);
|
|
206
|
+
}
|
|
207
|
+
function readLastStop() {
|
|
208
|
+
return readJsonRecord(lastStopPath());
|
|
209
|
+
}
|
|
210
|
+
function readLastStartFailure() {
|
|
211
|
+
return readJsonRecord(lastStartFailurePath());
|
|
212
|
+
}
|
|
213
|
+
/** A start that got the deck running answers the previous failure — drop it. */
|
|
214
|
+
function clearLastStartFailure() {
|
|
215
|
+
try {
|
|
216
|
+
node_fs_1.default.unlinkSync(lastStartFailurePath());
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
// Nothing to clear.
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function formatLastStopLines(record) {
|
|
223
|
+
if (!record) {
|
|
224
|
+
return [
|
|
225
|
+
'Last stop: (no record — an instance stopped before this build, or was killed with SIGKILL)',
|
|
226
|
+
];
|
|
227
|
+
}
|
|
228
|
+
return [
|
|
229
|
+
'Last stop:',
|
|
230
|
+
` at ${record.at}`,
|
|
231
|
+
` exit ${record.exitCode}`,
|
|
232
|
+
` reason ${record.reason}`,
|
|
233
|
+
];
|
|
234
|
+
}
|
|
235
|
+
/** Printed under the last stop, so "won't start" and "stopped" stay distinct. */
|
|
236
|
+
function formatLastStartFailureLines(record) {
|
|
237
|
+
if (!record) {
|
|
238
|
+
return [];
|
|
239
|
+
}
|
|
240
|
+
return [
|
|
241
|
+
'Last failed start:',
|
|
242
|
+
` at ${record.at}`,
|
|
243
|
+
` exit ${record.exitCode}`,
|
|
244
|
+
` reason ${record.reason}`,
|
|
245
|
+
];
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=shutdown-reason.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shutdown-reason.js","sourceRoot":"","sources":["../src/shutdown-reason.ts"],"names":[],"mappings":";;;;;;AA6CA,0CAEC;AAED,oCAEC;AAED,oDAEC;A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KAC7B,CAAC;AACJ,CAAC"}
|
package/dist/start.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"AAgDA,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,sBAAsB,CAAC,OAAO,SAAwB,GAAG,MAAM,CAE9E;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/E;AAqfD,wBAAsB,QAAQ,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAmQ1E;AAED,wBAAsB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAyFjD"}
|