@integrity-labs/agt-cli 0.28.393 → 0.28.395
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-7HONFACG.js → chunk-DXJEJRSZ.js} +13 -1
- package/dist/{chunk-7HONFACG.js.map → chunk-DXJEJRSZ.js.map} +1 -1
- package/dist/{chunk-HG2MMV5F.js → chunk-EMR2ZIOH.js} +3 -3
- package/dist/{claude-pair-runtime-OF2D6W2E.js → claude-pair-runtime-UYH2UF4M.js} +2 -2
- package/dist/lib/manager-worker.js +46 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +12 -0
- package/dist/mcp/origami.js +12 -0
- package/dist/mcp/slack-channel.js +12 -0
- package/dist/mcp/telegram-channel.js +12 -0
- package/dist/{persistent-session-QRUINHGI.js → persistent-session-VB5LXYCJ.js} +2 -2
- package/dist/{responsiveness-probe-IHKBNMSQ.js → responsiveness-probe-RFPBJWSC.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-HG2MMV5F.js.map → chunk-EMR2ZIOH.js.map} +0 -0
- /package/dist/{claude-pair-runtime-OF2D6W2E.js.map → claude-pair-runtime-UYH2UF4M.js.map} +0 -0
- /package/dist/{persistent-session-QRUINHGI.js.map → persistent-session-VB5LXYCJ.js.map} +0 -0
- /package/dist/{responsiveness-probe-IHKBNMSQ.js.map → responsiveness-probe-RFPBJWSC.js.map} +0 -0
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
resolveConnectivityProbe,
|
|
26
26
|
worseConnectivityOutcome,
|
|
27
27
|
wrapScheduledTaskPrompt
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-DXJEJRSZ.js";
|
|
29
29
|
import {
|
|
30
30
|
parsePsRows
|
|
31
31
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6196,7 +6196,7 @@ function requireHost() {
|
|
|
6196
6196
|
}
|
|
6197
6197
|
|
|
6198
6198
|
// src/lib/api-client.ts
|
|
6199
|
-
var agtCliVersion = true ? "0.28.
|
|
6199
|
+
var agtCliVersion = true ? "0.28.395" : "dev";
|
|
6200
6200
|
var lastConfigHash = null;
|
|
6201
6201
|
function setConfigHash(hash) {
|
|
6202
6202
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8650,4 +8650,4 @@ export {
|
|
|
8650
8650
|
managerInstallSystemUnitCommand,
|
|
8651
8651
|
managerUninstallSystemUnitCommand
|
|
8652
8652
|
};
|
|
8653
|
-
//# sourceMappingURL=chunk-
|
|
8653
|
+
//# sourceMappingURL=chunk-EMR2ZIOH.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-VB5LXYCJ.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-UYH2UF4M.js.map
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
resolveEffectivePinRaw,
|
|
44
44
|
safeWriteJsonAtomic,
|
|
45
45
|
setConfigHash
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-EMR2ZIOH.js";
|
|
47
47
|
import {
|
|
48
48
|
getProjectDir as getProjectDir2,
|
|
49
49
|
getReadyTasks,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
toOpencodeModel,
|
|
146
146
|
transcriptActivityAgeSeconds,
|
|
147
147
|
writeEgressAllowlist
|
|
148
|
-
} from "../chunk-
|
|
148
|
+
} from "../chunk-DXJEJRSZ.js";
|
|
149
149
|
import {
|
|
150
150
|
reapOrphanChannelMcps
|
|
151
151
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -9248,7 +9248,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9248
9248
|
var lastVersionCheckAt = 0;
|
|
9249
9249
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9250
9250
|
var lastResponsivenessProbeAt = 0;
|
|
9251
|
-
var agtCliVersion = true ? "0.28.
|
|
9251
|
+
var agtCliVersion = true ? "0.28.395" : "dev";
|
|
9252
9252
|
function resolveBrewPath(execFileSync2) {
|
|
9253
9253
|
try {
|
|
9254
9254
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10380,7 +10380,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
10380
10380
|
if (codeNames.length === 0) return;
|
|
10381
10381
|
void (async () => {
|
|
10382
10382
|
try {
|
|
10383
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10383
|
+
const { collectDiagnostics } = await import("../persistent-session-VB5LXYCJ.js");
|
|
10384
10384
|
await api.post("/host/heartbeat", {
|
|
10385
10385
|
host_id: hostId,
|
|
10386
10386
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor)
|
|
@@ -10479,7 +10479,7 @@ async function pollCycle() {
|
|
|
10479
10479
|
}
|
|
10480
10480
|
try {
|
|
10481
10481
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
10482
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10482
|
+
const { collectDiagnostics } = await import("../persistent-session-VB5LXYCJ.js");
|
|
10483
10483
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
10484
10484
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor) : void 0;
|
|
10485
10485
|
let tailscaleHostname;
|
|
@@ -10634,7 +10634,7 @@ async function pollCycle() {
|
|
|
10634
10634
|
const {
|
|
10635
10635
|
collectResponsivenessProbes,
|
|
10636
10636
|
getResponsivenessIntervalMs
|
|
10637
|
-
} = await import("../responsiveness-probe-
|
|
10637
|
+
} = await import("../responsiveness-probe-RFPBJWSC.js");
|
|
10638
10638
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
10639
10639
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
10640
10640
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -10666,7 +10666,7 @@ async function pollCycle() {
|
|
|
10666
10666
|
collectResponsivenessProbes,
|
|
10667
10667
|
livePendingInboundOldestAgeSeconds,
|
|
10668
10668
|
parkPendingInbound
|
|
10669
|
-
} = await import("../responsiveness-probe-
|
|
10669
|
+
} = await import("../responsiveness-probe-RFPBJWSC.js");
|
|
10670
10670
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-HYOOQV4A.js");
|
|
10671
10671
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
10672
10672
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -10923,6 +10923,28 @@ async function pollCycle() {
|
|
|
10923
10923
|
(err) => log(`[restart] clear failed for agent_id=${clear.agentId}: ${err.message}`)
|
|
10924
10924
|
);
|
|
10925
10925
|
}
|
|
10926
|
+
for (const agent of agents) {
|
|
10927
|
+
const clears = agent.channel_clears ?? [];
|
|
10928
|
+
if (clears.length === 0) continue;
|
|
10929
|
+
for (const clear of clears) {
|
|
10930
|
+
const removed = channelQuarantineStore().clearQuarantine(
|
|
10931
|
+
agent.code_name,
|
|
10932
|
+
clear.channel_id
|
|
10933
|
+
);
|
|
10934
|
+
log(
|
|
10935
|
+
`[channel-reenable] ${removed ? "cleared" : "no marker for"} '${clear.channel_id}' on '${agent.code_name}' (operator re-enable)`
|
|
10936
|
+
);
|
|
10937
|
+
void api.post("/host/channel-clear-ack", {
|
|
10938
|
+
agent_id: agent.agent_id,
|
|
10939
|
+
channel_id: clear.channel_id,
|
|
10940
|
+
requested_at: clear.requested_at
|
|
10941
|
+
}).catch(
|
|
10942
|
+
(err) => log(
|
|
10943
|
+
`[channel-reenable] ack failed for agent_id=${agent.agent_id} channel=${clear.channel_id}: ${err.message}`
|
|
10944
|
+
)
|
|
10945
|
+
);
|
|
10946
|
+
}
|
|
10947
|
+
}
|
|
10926
10948
|
const frameworksThisCycle = new Set(agents.map((a) => a.framework).filter(Boolean));
|
|
10927
10949
|
for (const fw of frameworksThisCycle) {
|
|
10928
10950
|
await ensureFrameworkBinary(fw);
|
|
@@ -12222,7 +12244,20 @@ async function processAgent(agent, agentStates) {
|
|
|
12222
12244
|
if (hostFlagStore().getBoolean("connectivity-probe")) {
|
|
12223
12245
|
try {
|
|
12224
12246
|
const probeProjectDir = join22(homedir10(), ".augmented", agent.code_name, "project");
|
|
12225
|
-
|
|
12247
|
+
let probeSet = integrations;
|
|
12248
|
+
try {
|
|
12249
|
+
const quarantined = await api.post("/host/agent-integrations/quarantined", { agent_id: agent.agent_id });
|
|
12250
|
+
const qRows = quarantined.integrations ?? [];
|
|
12251
|
+
if (qRows.length > 0) {
|
|
12252
|
+
probeSet = [...probeSet, ...qRows];
|
|
12253
|
+
log(
|
|
12254
|
+
`Auto-resume: connectivity-probing ${qRows.length} quarantined integration(s) for '${agent.code_name}'`
|
|
12255
|
+
);
|
|
12256
|
+
}
|
|
12257
|
+
} catch (err) {
|
|
12258
|
+
log(`Quarantined-probe fetch failed for '${agent.code_name}': ${err.message}`);
|
|
12259
|
+
}
|
|
12260
|
+
await runAgentConnectivityProbes(agent, probeSet, probeProjectDir);
|
|
12226
12261
|
} catch (err) {
|
|
12227
12262
|
log(`Connectivity probe failed for '${agent.code_name}': ${err.message}`);
|
|
12228
12263
|
}
|
|
@@ -13888,7 +13923,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
13888
13923
|
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}`));
|
|
13889
13924
|
void (async () => {
|
|
13890
13925
|
try {
|
|
13891
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13926
|
+
const { collectDiagnostics } = await import("../persistent-session-VB5LXYCJ.js");
|
|
13892
13927
|
await api.post("/host/heartbeat", {
|
|
13893
13928
|
host_id: hostId,
|
|
13894
13929
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor)
|
|
@@ -13938,7 +13973,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
13938
13973
|
}
|
|
13939
13974
|
try {
|
|
13940
13975
|
const hostId = await getHostId();
|
|
13941
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13976
|
+
const { collectDiagnostics } = await import("../persistent-session-VB5LXYCJ.js");
|
|
13942
13977
|
await api.post("/host/heartbeat", {
|
|
13943
13978
|
host_id: hostId,
|
|
13944
13979
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor)
|
|
@@ -14391,7 +14426,7 @@ async function processClaudePairSessions(agents) {
|
|
|
14391
14426
|
killPairSession,
|
|
14392
14427
|
pairTmuxSession,
|
|
14393
14428
|
finalizeClaudePairOnboarding
|
|
14394
|
-
} = await import("../claude-pair-runtime-
|
|
14429
|
+
} = await import("../claude-pair-runtime-UYH2UF4M.js");
|
|
14395
14430
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
14396
14431
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
14397
14432
|
const killed = await killPairSession(pairTmuxSession(pairId));
|