@integrity-labs/agt-cli 0.28.938 → 0.28.940
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 +9 -6
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-TH3HADAH.js → chunk-4ZRXKEXO.js} +2 -2
- package/dist/chunk-4ZRXKEXO.js.map +1 -0
- package/dist/{chunk-3ZYWTOUW.js → chunk-5LIYT2YF.js} +2 -2
- package/dist/{chunk-HEXKSBBV.js → chunk-GJKEPMA5.js} +4 -4
- package/dist/{claude-pair-runtime-GMAY5E45.js → claude-pair-runtime-7PLWWVWK.js} +2 -2
- package/dist/lib/manager-worker.js +18 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +26 -17
- package/dist/mcp/slack-channel.js +16 -5
- package/dist/mcp/telegram-channel.js +16 -5
- package/dist/{persistent-session-JL7QVQJH.js → persistent-session-BBN5CBFI.js} +3 -3
- package/dist/{responsiveness-probe-H5HCW7HT.js → responsiveness-probe-5GAOO7P4.js} +3 -3
- package/dist/{session-auth-dead-PRK7BNLU.js → session-auth-dead-FRVOFPZL.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-TH3HADAH.js.map +0 -1
- /package/dist/{chunk-3ZYWTOUW.js.map → chunk-5LIYT2YF.js.map} +0 -0
- /package/dist/{chunk-HEXKSBBV.js.map → chunk-GJKEPMA5.js.map} +0 -0
- /package/dist/{claude-pair-runtime-GMAY5E45.js.map → claude-pair-runtime-7PLWWVWK.js.map} +0 -0
- /package/dist/{persistent-session-JL7QVQJH.js.map → persistent-session-BBN5CBFI.js.map} +0 -0
- /package/dist/{responsiveness-probe-H5HCW7HT.js.map → responsiveness-probe-5GAOO7P4.js.map} +0 -0
- /package/dist/{session-auth-dead-PRK7BNLU.js.map → session-auth-dead-FRVOFPZL.js.map} +0 -0
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
rotateDailySession,
|
|
20
20
|
sessionFileExists,
|
|
21
21
|
todayLocalIso
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4ZRXKEXO.js";
|
|
23
23
|
import {
|
|
24
24
|
reapOrphanChannelMcps
|
|
25
25
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -5730,4 +5730,4 @@ export {
|
|
|
5730
5730
|
stopAllSessionsAndWait,
|
|
5731
5731
|
getProjectDir
|
|
5732
5732
|
};
|
|
5733
|
-
//# sourceMappingURL=chunk-
|
|
5733
|
+
//# sourceMappingURL=chunk-5LIYT2YF.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
parseEnvIntegrations,
|
|
17
17
|
shellQuote,
|
|
18
18
|
summarizeUnanswerablePane
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5LIYT2YF.js";
|
|
20
20
|
import {
|
|
21
21
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
22
22
|
INTEGRATIONS_SECTION_END,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
sessionTranscriptDir,
|
|
77
77
|
worseConnectivityOutcome,
|
|
78
78
|
wrapScheduledTaskPrompt
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-4ZRXKEXO.js";
|
|
80
80
|
import {
|
|
81
81
|
parsePsRows
|
|
82
82
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6965,7 +6965,7 @@ function exchangeFailureKind(err) {
|
|
|
6965
6965
|
}
|
|
6966
6966
|
|
|
6967
6967
|
// src/lib/api-client.ts
|
|
6968
|
-
var agtCliVersion = true ? "0.28.
|
|
6968
|
+
var agtCliVersion = true ? "0.28.940" : "dev";
|
|
6969
6969
|
var lastConfigHash = null;
|
|
6970
6970
|
function setConfigHash(hash) {
|
|
6971
6971
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11657,4 +11657,4 @@ export {
|
|
|
11657
11657
|
managerInstallSystemUnitCommand,
|
|
11658
11658
|
managerUninstallSystemUnitCommand
|
|
11659
11659
|
};
|
|
11660
|
-
//# sourceMappingURL=chunk-
|
|
11660
|
+
//# sourceMappingURL=chunk-GJKEPMA5.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-BBN5CBFI.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-7PLWWVWK.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-GJKEPMA5.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
takeZombieDetection,
|
|
137
137
|
toOpencodeModel,
|
|
138
138
|
writeEgressAllowlist
|
|
139
|
-
} from "../chunk-
|
|
139
|
+
} from "../chunk-5LIYT2YF.js";
|
|
140
140
|
import {
|
|
141
141
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
142
142
|
AnchorSessionClient,
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
subagentActivityAgeSeconds,
|
|
233
233
|
sumTranscriptUsageInWindow,
|
|
234
234
|
transcriptActivityAgeSeconds
|
|
235
|
-
} from "../chunk-
|
|
235
|
+
} from "../chunk-4ZRXKEXO.js";
|
|
236
236
|
import {
|
|
237
237
|
reapOrphanChannelMcps
|
|
238
238
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -8778,7 +8778,10 @@ async function processClaudeTaskResult(codeName, agentId, templateId, rawOutput,
|
|
|
8778
8778
|
if (planItems.length > 0) {
|
|
8779
8779
|
await api.post("/host/kanban", {
|
|
8780
8780
|
agent_id: agentId,
|
|
8781
|
-
|
|
8781
|
+
// ENG-10583: manager-created from a scheduled run, so there is no
|
|
8782
|
+
// conversation behind these cards. Without the flag the add path
|
|
8783
|
+
// attached each one to whatever inbound thread was fresh.
|
|
8784
|
+
add: planItems.map((item) => ({ ...item, no_channel_origin: true }))
|
|
8782
8785
|
});
|
|
8783
8786
|
log(`[claude-scheduler] Plan items posted for '${codeName}' (${planItems.length} items)`);
|
|
8784
8787
|
}
|
|
@@ -13254,7 +13257,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
13254
13257
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
13255
13258
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
13256
13259
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
13257
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
13260
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-5GAOO7P4.js");
|
|
13258
13261
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
13259
13262
|
if (newest === null) return null;
|
|
13260
13263
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -13939,7 +13942,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13939
13942
|
var lastVersionCheckAt = 0;
|
|
13940
13943
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13941
13944
|
var lastResponsivenessProbeAt = 0;
|
|
13942
|
-
var agtCliVersion = true ? "0.28.
|
|
13945
|
+
var agtCliVersion = true ? "0.28.940" : "dev";
|
|
13943
13946
|
function resolveBrewPath(execFileSync2) {
|
|
13944
13947
|
try {
|
|
13945
13948
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -15529,7 +15532,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
15529
15532
|
if (codeNames.length === 0) return;
|
|
15530
15533
|
void (async () => {
|
|
15531
15534
|
try {
|
|
15532
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15535
|
+
const { collectDiagnostics } = await import("../persistent-session-BBN5CBFI.js");
|
|
15533
15536
|
await api.post("/host/heartbeat", {
|
|
15534
15537
|
host_id: hostId,
|
|
15535
15538
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -15671,7 +15674,7 @@ async function pollCycleInner() {
|
|
|
15671
15674
|
}
|
|
15672
15675
|
try {
|
|
15673
15676
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
15674
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
15677
|
+
const { collectDiagnostics } = await import("../persistent-session-BBN5CBFI.js");
|
|
15675
15678
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
15676
15679
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor) : void 0;
|
|
15677
15680
|
let tailscaleHostname;
|
|
@@ -15846,7 +15849,7 @@ async function pollCycleInner() {
|
|
|
15846
15849
|
collectPanelessActivityProbes,
|
|
15847
15850
|
getResponsivenessIntervalMs,
|
|
15848
15851
|
occupancyQualificationClassifications
|
|
15849
|
-
} = await import("../responsiveness-probe-
|
|
15852
|
+
} = await import("../responsiveness-probe-5GAOO7P4.js");
|
|
15850
15853
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
15851
15854
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
15852
15855
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -15963,7 +15966,7 @@ async function pollCycleInner() {
|
|
|
15963
15966
|
collectResponsivenessProbes,
|
|
15964
15967
|
livePendingInboundOldestAgeSeconds,
|
|
15965
15968
|
parkPendingInbound
|
|
15966
|
-
} = await import("../responsiveness-probe-
|
|
15969
|
+
} = await import("../responsiveness-probe-5GAOO7P4.js");
|
|
15967
15970
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
15968
15971
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
15969
15972
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -16119,7 +16122,7 @@ async function pollCycleInner() {
|
|
|
16119
16122
|
}
|
|
16120
16123
|
try {
|
|
16121
16124
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
16122
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
16125
|
+
const { probeSessionAuth } = await import("../session-auth-dead-FRVOFPZL.js");
|
|
16123
16126
|
const observations = [];
|
|
16124
16127
|
const pendingCacheCommits = [];
|
|
16125
16128
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -20383,7 +20386,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20383
20386
|
try {
|
|
20384
20387
|
const freshId = rotateSessionForWedge(codeName);
|
|
20385
20388
|
consecutiveWedgeCycles.delete(codeName);
|
|
20386
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
20389
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-5GAOO7P4.js");
|
|
20387
20390
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
20388
20391
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
20389
20392
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -20426,7 +20429,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
20426
20429
|
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}`));
|
|
20427
20430
|
void (async () => {
|
|
20428
20431
|
try {
|
|
20429
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20432
|
+
const { collectDiagnostics } = await import("../persistent-session-BBN5CBFI.js");
|
|
20430
20433
|
await api.post("/host/heartbeat", {
|
|
20431
20434
|
host_id: hostId,
|
|
20432
20435
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -20477,7 +20480,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
20477
20480
|
}
|
|
20478
20481
|
try {
|
|
20479
20482
|
const hostId = await getHostId();
|
|
20480
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20483
|
+
const { collectDiagnostics } = await import("../persistent-session-BBN5CBFI.js");
|
|
20481
20484
|
await api.post("/host/heartbeat", {
|
|
20482
20485
|
host_id: hostId,
|
|
20483
20486
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor)
|
|
@@ -21119,7 +21122,7 @@ async function processClaudePairSessions(agents) {
|
|
|
21119
21122
|
killPairSession,
|
|
21120
21123
|
pairTmuxSession,
|
|
21121
21124
|
finalizeClaudePairOnboarding
|
|
21122
|
-
} = await import("../claude-pair-runtime-
|
|
21125
|
+
} = await import("../claude-pair-runtime-7PLWWVWK.js");
|
|
21123
21126
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
21124
21127
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
21125
21128
|
const killed = await killPairSession(pairTmuxSession(pairId));
|