@integrity-labs/agt-cli 0.28.718 → 0.28.720
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 +5 -5
- package/dist/{chunk-7LH3SVAD.js → chunk-32WU3HBU.js} +7 -1
- package/dist/chunk-32WU3HBU.js.map +1 -0
- package/dist/{chunk-FNALM4HG.js → chunk-E3WGN4GX.js} +2 -2
- package/dist/{chunk-EEZHSNQ2.js → chunk-V5T2K5NN.js} +4 -4
- package/dist/{claude-pair-runtime-PDG74SAT.js → claude-pair-runtime-EKP2KR6N.js} +2 -2
- package/dist/lib/manager-worker.js +24 -18
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +37 -2
- package/dist/mcp/index.js +6 -0
- package/dist/mcp/origami.js +6 -0
- package/dist/mcp/slack-channel.js +6 -0
- package/dist/mcp/telegram-channel.js +6 -0
- package/dist/{persistent-session-2AWYIUCX.js → persistent-session-7NXQBNZB.js} +3 -3
- package/dist/{responsiveness-probe-JQS4WA2L.js → responsiveness-probe-UDFTVXOW.js} +3 -3
- package/dist/{session-auth-dead-VBMZW4GG.js → session-auth-dead-DQW6NXDX.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-7LH3SVAD.js.map +0 -1
- /package/dist/{chunk-FNALM4HG.js.map → chunk-E3WGN4GX.js.map} +0 -0
- /package/dist/{chunk-EEZHSNQ2.js.map → chunk-V5T2K5NN.js.map} +0 -0
- /package/dist/{claude-pair-runtime-PDG74SAT.js.map → claude-pair-runtime-EKP2KR6N.js.map} +0 -0
- /package/dist/{persistent-session-2AWYIUCX.js.map → persistent-session-7NXQBNZB.js.map} +0 -0
- /package/dist/{responsiveness-probe-JQS4WA2L.js.map → responsiveness-probe-UDFTVXOW.js.map} +0 -0
- /package/dist/{session-auth-dead-VBMZW4GG.js.map → session-auth-dead-DQW6NXDX.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
rotateDailySession,
|
|
18
18
|
sessionFileExists,
|
|
19
19
|
todayLocalIso
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-32WU3HBU.js";
|
|
21
21
|
import {
|
|
22
22
|
reapOrphanChannelMcps
|
|
23
23
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -4694,4 +4694,4 @@ export {
|
|
|
4694
4694
|
stopAllSessionsAndWait,
|
|
4695
4695
|
getProjectDir
|
|
4696
4696
|
};
|
|
4697
|
-
//# sourceMappingURL=chunk-
|
|
4697
|
+
//# sourceMappingURL=chunk-E3WGN4GX.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
parseEnvFileEntries,
|
|
14
14
|
parseEnvIntegrations,
|
|
15
15
|
shellQuote
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-E3WGN4GX.js";
|
|
17
17
|
import {
|
|
18
18
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
19
19
|
INTEGRATIONS_SECTION_END,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
sessionTranscriptDir,
|
|
63
63
|
worseConnectivityOutcome,
|
|
64
64
|
wrapScheduledTaskPrompt
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-32WU3HBU.js";
|
|
66
66
|
import {
|
|
67
67
|
parsePsRows
|
|
68
68
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6428,7 +6428,7 @@ function exchangeFailureKind(err) {
|
|
|
6428
6428
|
}
|
|
6429
6429
|
|
|
6430
6430
|
// src/lib/api-client.ts
|
|
6431
|
-
var agtCliVersion = true ? "0.28.
|
|
6431
|
+
var agtCliVersion = true ? "0.28.720" : "dev";
|
|
6432
6432
|
var lastConfigHash = null;
|
|
6433
6433
|
function setConfigHash(hash) {
|
|
6434
6434
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -10470,4 +10470,4 @@ export {
|
|
|
10470
10470
|
managerInstallSystemUnitCommand,
|
|
10471
10471
|
managerUninstallSystemUnitCommand
|
|
10472
10472
|
};
|
|
10473
|
-
//# sourceMappingURL=chunk-
|
|
10473
|
+
//# sourceMappingURL=chunk-V5T2K5NN.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-7NXQBNZB.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-EKP2KR6N.js.map
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
safeWriteJsonAtomic,
|
|
58
58
|
setConfigHash,
|
|
59
59
|
tripClass
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-V5T2K5NN.js";
|
|
61
61
|
import {
|
|
62
62
|
getProjectDir as getProjectDir2,
|
|
63
63
|
getReadyTasks,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
takeZombieDetection,
|
|
116
116
|
toOpencodeModel,
|
|
117
117
|
writeEgressAllowlist
|
|
118
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-E3WGN4GX.js";
|
|
119
119
|
import {
|
|
120
120
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
121
121
|
AnchorSessionClient,
|
|
@@ -200,7 +200,7 @@ import {
|
|
|
200
200
|
subagentActivityAgeSeconds,
|
|
201
201
|
sumTranscriptUsageInWindow,
|
|
202
202
|
transcriptActivityAgeSeconds
|
|
203
|
-
} from "../chunk-
|
|
203
|
+
} from "../chunk-32WU3HBU.js";
|
|
204
204
|
import {
|
|
205
205
|
reapOrphanChannelMcps
|
|
206
206
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -247,8 +247,11 @@ function createSingleFlight(task, opts = {}) {
|
|
|
247
247
|
if (running2) {
|
|
248
248
|
rerunRequested = true;
|
|
249
249
|
coalesced += 1;
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
try {
|
|
251
|
+
opts.onCoalesce?.(coalesced);
|
|
252
|
+
} catch {
|
|
253
|
+
}
|
|
254
|
+
return (settled ?? Promise.resolve()).then(() => ({ coalesced: true }));
|
|
252
255
|
}
|
|
253
256
|
running2 = true;
|
|
254
257
|
let markSettled;
|
|
@@ -266,7 +269,7 @@ function createSingleFlight(task, opts = {}) {
|
|
|
266
269
|
markSettled();
|
|
267
270
|
}
|
|
268
271
|
})();
|
|
269
|
-
return primary;
|
|
272
|
+
return primary.then(() => ({ coalesced: false }));
|
|
270
273
|
}
|
|
271
274
|
return {
|
|
272
275
|
run,
|
|
@@ -6017,15 +6020,18 @@ function writeManagedSkillManifest(path, ids) {
|
|
|
6017
6020
|
|
|
6018
6021
|
// src/lib/poll-loop-guard.ts
|
|
6019
6022
|
async function pollCycleAndReschedule(pollCycle2, opts) {
|
|
6023
|
+
let outcome = void 0;
|
|
6020
6024
|
try {
|
|
6021
|
-
await pollCycle2();
|
|
6025
|
+
outcome = await pollCycle2();
|
|
6022
6026
|
} catch (err) {
|
|
6023
6027
|
try {
|
|
6024
6028
|
await opts.onError(err);
|
|
6025
6029
|
} catch {
|
|
6026
6030
|
}
|
|
6027
6031
|
} finally {
|
|
6028
|
-
|
|
6032
|
+
if (!outcome?.coalesced) {
|
|
6033
|
+
await opts.reschedule();
|
|
6034
|
+
}
|
|
6029
6035
|
}
|
|
6030
6036
|
}
|
|
6031
6037
|
|
|
@@ -12057,7 +12063,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
12057
12063
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
12058
12064
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
12059
12065
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
12060
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
12066
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-UDFTVXOW.js");
|
|
12061
12067
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
12062
12068
|
if (newest === null) return null;
|
|
12063
12069
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -12705,7 +12711,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12705
12711
|
var lastVersionCheckAt = 0;
|
|
12706
12712
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12707
12713
|
var lastResponsivenessProbeAt = 0;
|
|
12708
|
-
var agtCliVersion = true ? "0.28.
|
|
12714
|
+
var agtCliVersion = true ? "0.28.720" : "dev";
|
|
12709
12715
|
function resolveBrewPath(execFileSync3) {
|
|
12710
12716
|
try {
|
|
12711
12717
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -14232,7 +14238,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
14232
14238
|
if (codeNames.length === 0) return;
|
|
14233
14239
|
void (async () => {
|
|
14234
14240
|
try {
|
|
14235
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14241
|
+
const { collectDiagnostics } = await import("../persistent-session-7NXQBNZB.js");
|
|
14236
14242
|
await api.post("/host/heartbeat", {
|
|
14237
14243
|
host_id: hostId,
|
|
14238
14244
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -14350,7 +14356,7 @@ async function pollCycleInner() {
|
|
|
14350
14356
|
}
|
|
14351
14357
|
try {
|
|
14352
14358
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
14353
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14359
|
+
const { collectDiagnostics } = await import("../persistent-session-7NXQBNZB.js");
|
|
14354
14360
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
14355
14361
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
14356
14362
|
let tailscaleHostname;
|
|
@@ -14519,7 +14525,7 @@ async function pollCycleInner() {
|
|
|
14519
14525
|
collectPanelessActivityProbes,
|
|
14520
14526
|
getResponsivenessIntervalMs,
|
|
14521
14527
|
occupancyQualificationClassifications
|
|
14522
|
-
} = await import("../responsiveness-probe-
|
|
14528
|
+
} = await import("../responsiveness-probe-UDFTVXOW.js");
|
|
14523
14529
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
14524
14530
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
14525
14531
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -14629,7 +14635,7 @@ async function pollCycleInner() {
|
|
|
14629
14635
|
collectResponsivenessProbes,
|
|
14630
14636
|
livePendingInboundOldestAgeSeconds,
|
|
14631
14637
|
parkPendingInbound
|
|
14632
|
-
} = await import("../responsiveness-probe-
|
|
14638
|
+
} = await import("../responsiveness-probe-UDFTVXOW.js");
|
|
14633
14639
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
14634
14640
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
14635
14641
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -14785,7 +14791,7 @@ async function pollCycleInner() {
|
|
|
14785
14791
|
}
|
|
14786
14792
|
try {
|
|
14787
14793
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
14788
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
14794
|
+
const { probeSessionAuth } = await import("../session-auth-dead-DQW6NXDX.js");
|
|
14789
14795
|
const observations = [];
|
|
14790
14796
|
const pendingCacheCommits = [];
|
|
14791
14797
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -18616,7 +18622,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
18616
18622
|
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}`));
|
|
18617
18623
|
void (async () => {
|
|
18618
18624
|
try {
|
|
18619
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18625
|
+
const { collectDiagnostics } = await import("../persistent-session-7NXQBNZB.js");
|
|
18620
18626
|
await api.post("/host/heartbeat", {
|
|
18621
18627
|
host_id: hostId,
|
|
18622
18628
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -18667,7 +18673,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
18667
18673
|
}
|
|
18668
18674
|
try {
|
|
18669
18675
|
const hostId = await getHostId();
|
|
18670
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18676
|
+
const { collectDiagnostics } = await import("../persistent-session-7NXQBNZB.js");
|
|
18671
18677
|
await api.post("/host/heartbeat", {
|
|
18672
18678
|
host_id: hostId,
|
|
18673
18679
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -19299,7 +19305,7 @@ async function processClaudePairSessions(agents) {
|
|
|
19299
19305
|
killPairSession,
|
|
19300
19306
|
pairTmuxSession,
|
|
19301
19307
|
finalizeClaudePairOnboarding
|
|
19302
|
-
} = await import("../claude-pair-runtime-
|
|
19308
|
+
} = await import("../claude-pair-runtime-EKP2KR6N.js");
|
|
19303
19309
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
19304
19310
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
19305
19311
|
const killed = await killPairSession(pairTmuxSession(pairId));
|