@integrity-labs/agt-cli 0.28.501 → 0.28.502
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/bin/agt.js +4 -4
- package/dist/{chunk-XKBUTWON.js → chunk-HMBECQIY.js} +107 -84
- package/dist/chunk-HMBECQIY.js.map +1 -0
- package/dist/{chunk-N4Y5IBZR.js → chunk-KS762LYV.js} +3 -3
- package/dist/{claude-pair-runtime-U5ES3GOY.js → claude-pair-runtime-5GY4G7MD.js} +2 -2
- package/dist/lib/manager-worker.js +34 -14
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-HL3LNPAX.js → persistent-session-ZW5HH2SC.js} +2 -2
- package/dist/{responsiveness-probe-AZ44ONES.js → responsiveness-probe-RAHKBJEE.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-XKBUTWON.js.map +0 -1
- /package/dist/{chunk-N4Y5IBZR.js.map → chunk-KS762LYV.js.map} +0 -0
- /package/dist/{claude-pair-runtime-U5ES3GOY.js.map → claude-pair-runtime-5GY4G7MD.js.map} +0 -0
- /package/dist/{persistent-session-HL3LNPAX.js.map → persistent-session-ZW5HH2SC.js.map} +0 -0
- /package/dist/{responsiveness-probe-AZ44ONES.js.map → responsiveness-probe-RAHKBJEE.js.map} +0 -0
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
resolveConnectivityProbe,
|
|
43
43
|
worseConnectivityOutcome,
|
|
44
44
|
wrapScheduledTaskPrompt
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-HMBECQIY.js";
|
|
46
46
|
import {
|
|
47
47
|
parsePsRows
|
|
48
48
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -5061,7 +5061,7 @@ function exchangeFailureKind(err) {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
|
|
5063
5063
|
// src/lib/api-client.ts
|
|
5064
|
-
var agtCliVersion = true ? "0.28.
|
|
5064
|
+
var agtCliVersion = true ? "0.28.502" : "dev";
|
|
5065
5065
|
var lastConfigHash = null;
|
|
5066
5066
|
function setConfigHash(hash) {
|
|
5067
5067
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8280,4 +8280,4 @@ export {
|
|
|
8280
8280
|
managerInstallSystemUnitCommand,
|
|
8281
8281
|
managerUninstallSystemUnitCommand
|
|
8282
8282
|
};
|
|
8283
|
-
//# sourceMappingURL=chunk-
|
|
8283
|
+
//# sourceMappingURL=chunk-KS762LYV.js.map
|
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-ZW5HH2SC.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-5GY4G7MD.js.map
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
safeWriteJsonAtomic,
|
|
53
53
|
setConfigHash,
|
|
54
54
|
tripClass
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-KS762LYV.js";
|
|
56
56
|
import {
|
|
57
57
|
getProjectDir as getProjectDir2,
|
|
58
58
|
getReadyTasks,
|
|
@@ -77,6 +77,7 @@ import {
|
|
|
77
77
|
SUPPRESS_SENTINEL,
|
|
78
78
|
StreamEncoder,
|
|
79
79
|
UNKNOWN_RATE_LIMIT,
|
|
80
|
+
agentRuntimeKey,
|
|
80
81
|
appendDmFooter,
|
|
81
82
|
attributeTranscriptUsageByRun,
|
|
82
83
|
buildEgressAllowlist,
|
|
@@ -171,7 +172,7 @@ import {
|
|
|
171
172
|
toOpencodeModel,
|
|
172
173
|
transcriptActivityAgeSeconds,
|
|
173
174
|
writeEgressAllowlist
|
|
174
|
-
} from "../chunk-
|
|
175
|
+
} from "../chunk-HMBECQIY.js";
|
|
175
176
|
import {
|
|
176
177
|
reapOrphanChannelMcps
|
|
177
178
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -9953,7 +9954,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9953
9954
|
var lastVersionCheckAt = 0;
|
|
9954
9955
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9955
9956
|
var lastResponsivenessProbeAt = 0;
|
|
9956
|
-
var agtCliVersion = true ? "0.28.
|
|
9957
|
+
var agtCliVersion = true ? "0.28.502" : "dev";
|
|
9957
9958
|
function resolveBrewPath(execFileSync2) {
|
|
9958
9959
|
try {
|
|
9959
9960
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -11116,7 +11117,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
11116
11117
|
if (codeNames.length === 0) return;
|
|
11117
11118
|
void (async () => {
|
|
11118
11119
|
try {
|
|
11119
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
11120
|
+
const { collectDiagnostics } = await import("../persistent-session-ZW5HH2SC.js");
|
|
11120
11121
|
await api.post("/host/heartbeat", {
|
|
11121
11122
|
host_id: hostId,
|
|
11122
11123
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor)
|
|
@@ -11223,7 +11224,7 @@ async function pollCycle() {
|
|
|
11223
11224
|
}
|
|
11224
11225
|
try {
|
|
11225
11226
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
11226
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
11227
|
+
const { collectDiagnostics } = await import("../persistent-session-ZW5HH2SC.js");
|
|
11227
11228
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
11228
11229
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor) : void 0;
|
|
11229
11230
|
let tailscaleHostname;
|
|
@@ -11338,7 +11339,7 @@ async function pollCycle() {
|
|
|
11338
11339
|
collectResponsivenessProbes,
|
|
11339
11340
|
collectPanelessActivityProbes,
|
|
11340
11341
|
getResponsivenessIntervalMs
|
|
11341
|
-
} = await import("../responsiveness-probe-
|
|
11342
|
+
} = await import("../responsiveness-probe-RAHKBJEE.js");
|
|
11342
11343
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
11343
11344
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
11344
11345
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -11402,7 +11403,7 @@ async function pollCycle() {
|
|
|
11402
11403
|
collectResponsivenessProbes,
|
|
11403
11404
|
livePendingInboundOldestAgeSeconds,
|
|
11404
11405
|
parkPendingInbound
|
|
11405
|
-
} = await import("../responsiveness-probe-
|
|
11406
|
+
} = await import("../responsiveness-probe-RAHKBJEE.js");
|
|
11406
11407
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
11407
11408
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
11408
11409
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -14894,7 +14895,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
14894
14895
|
void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
|
|
14895
14896
|
void (async () => {
|
|
14896
14897
|
try {
|
|
14897
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14898
|
+
const { collectDiagnostics } = await import("../persistent-session-ZW5HH2SC.js");
|
|
14898
14899
|
await api.post("/host/heartbeat", {
|
|
14899
14900
|
host_id: hostId,
|
|
14900
14901
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
|
|
@@ -14944,7 +14945,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
14944
14945
|
}
|
|
14945
14946
|
try {
|
|
14946
14947
|
const hostId = await getHostId();
|
|
14947
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14948
|
+
const { collectDiagnostics } = await import("../persistent-session-ZW5HH2SC.js");
|
|
14948
14949
|
await api.post("/host/heartbeat", {
|
|
14949
14950
|
host_id: hostId,
|
|
14950
14951
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
|
|
@@ -15298,19 +15299,38 @@ ${escapeXml(msg.content)}
|
|
|
15298
15299
|
}
|
|
15299
15300
|
var lastKanbanInjectAt = /* @__PURE__ */ new Map();
|
|
15300
15301
|
var kanbanNudgeStateByCode = /* @__PURE__ */ new Map();
|
|
15302
|
+
function kanbanNudgeStateKey(codeName) {
|
|
15303
|
+
return agentRuntimeKey(codeName);
|
|
15304
|
+
}
|
|
15305
|
+
function getKanbanNudgeState(codeName) {
|
|
15306
|
+
const key = kanbanNudgeStateKey(codeName);
|
|
15307
|
+
const hit = kanbanNudgeStateByCode.get(key);
|
|
15308
|
+
if (hit || key === codeName) return hit;
|
|
15309
|
+
const legacy = kanbanNudgeStateByCode.get(codeName);
|
|
15310
|
+
if (!legacy) return void 0;
|
|
15311
|
+
kanbanNudgeStateByCode.delete(codeName);
|
|
15312
|
+
kanbanNudgeStateByCode.set(key, legacy);
|
|
15313
|
+
saveKanbanNudgeState(kanbanNudgeStateByCode, channelHashCacheDir());
|
|
15314
|
+
return legacy;
|
|
15315
|
+
}
|
|
15301
15316
|
function loadKanbanNudgeStateFromDisk() {
|
|
15302
15317
|
loadKanbanNudgeState(kanbanNudgeStateByCode, channelHashCacheDir());
|
|
15303
15318
|
}
|
|
15304
15319
|
function setKanbanNudgeState(codeName, state7) {
|
|
15305
|
-
|
|
15320
|
+
const key = kanbanNudgeStateKey(codeName);
|
|
15321
|
+
if (key !== codeName) kanbanNudgeStateByCode.delete(codeName);
|
|
15322
|
+
kanbanNudgeStateByCode.set(key, state7);
|
|
15306
15323
|
saveKanbanNudgeState(kanbanNudgeStateByCode, channelHashCacheDir());
|
|
15307
15324
|
}
|
|
15308
15325
|
function clearKanbanNudgeState(codeName) {
|
|
15309
|
-
|
|
15326
|
+
const key = kanbanNudgeStateKey(codeName);
|
|
15327
|
+
let removed = kanbanNudgeStateByCode.delete(key);
|
|
15328
|
+
if (key !== codeName && kanbanNudgeStateByCode.delete(codeName)) removed = true;
|
|
15329
|
+
if (!removed) return;
|
|
15310
15330
|
saveKanbanNudgeState(kanbanNudgeStateByCode, channelHashCacheDir());
|
|
15311
15331
|
}
|
|
15312
15332
|
function nextKanbanNudgeCount(codeName, signature) {
|
|
15313
|
-
const prev =
|
|
15333
|
+
const prev = getKanbanNudgeState(codeName);
|
|
15314
15334
|
return prev && prev.signature === signature ? (prev.nudgeCount ?? 1) + 1 : 1;
|
|
15315
15335
|
}
|
|
15316
15336
|
var openInjectedRunByCode = /* @__PURE__ */ new Map();
|
|
@@ -15388,7 +15408,7 @@ ${formatRunMarker(run_id)}` : KANBAN_CHECK_COMMAND;
|
|
|
15388
15408
|
async function maybeInjectKanbanCheck(codeName, agentId, actionableCount, signature) {
|
|
15389
15409
|
if (!shouldNudgeUnchangedBoard(
|
|
15390
15410
|
signature,
|
|
15391
|
-
|
|
15411
|
+
getKanbanNudgeState(codeName),
|
|
15392
15412
|
Date.now(),
|
|
15393
15413
|
KANBAN_HYBRID_FULL_CADENCE_MS,
|
|
15394
15414
|
KANBAN_HYBRID_MAX_CADENCE_MS
|
|
@@ -15432,7 +15452,7 @@ async function processClaudePairSessions(agents) {
|
|
|
15432
15452
|
killPairSession,
|
|
15433
15453
|
pairTmuxSession,
|
|
15434
15454
|
finalizeClaudePairOnboarding
|
|
15435
|
-
} = await import("../claude-pair-runtime-
|
|
15455
|
+
} = await import("../claude-pair-runtime-5GY4G7MD.js");
|
|
15436
15456
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
15437
15457
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
15438
15458
|
const killed = await killPairSession(pairTmuxSession(pairId));
|