@integrity-labs/agt-cli 0.28.1230 → 0.28.1232
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 +11 -6
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-IHVSRQIE.js → chunk-3CUCO6BU.js} +17 -3
- package/dist/{chunk-IHVSRQIE.js.map → chunk-3CUCO6BU.js.map} +1 -1
- package/dist/{chunk-AG4RMBPC.js → chunk-BDXOVKWJ.js} +2 -2
- package/dist/{chunk-K3H5MSQS.js → chunk-LS27F6QF.js} +32 -6
- package/dist/chunk-LS27F6QF.js.map +1 -0
- package/dist/{chunk-DDWK6QGY.js → chunk-QCBL7EBD.js} +2 -2
- package/dist/{chunk-4B5LCENE.js → chunk-XBADGTJP.js} +11 -1
- package/dist/chunk-XBADGTJP.js.map +1 -0
- package/dist/{claude-code-updater-W5FRCR44.js → claude-code-updater-R7QSZDGD.js} +3 -3
- package/dist/{claude-pair-runtime-QAITVF75.js → claude-pair-runtime-BH7XN36C.js} +3 -3
- package/dist/lib/manager-worker.js +32 -21
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +19 -2
- package/dist/mcp/index.js +14 -2
- package/dist/mcp/origami.js +10 -0
- package/dist/mcp/slack-channel.js +15 -1
- package/dist/mcp/teams-channel.js +5 -1
- package/dist/mcp/telegram-channel.js +15 -1
- package/dist/mcp/whatsapp-channel.js +5 -1
- package/dist/{persistent-session-TVE4RBPD.js → persistent-session-LQ4GJ264.js} +4 -4
- package/dist/{responsiveness-probe-G5YKDDTH.js → responsiveness-probe-NN7XEPJM.js} +4 -4
- package/dist/{session-auth-dead-ZUSPTKZ3.js → session-auth-dead-ESB735FG.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-4B5LCENE.js.map +0 -1
- package/dist/chunk-K3H5MSQS.js.map +0 -1
- /package/dist/{chunk-AG4RMBPC.js.map → chunk-BDXOVKWJ.js.map} +0 -0
- /package/dist/{chunk-DDWK6QGY.js.map → chunk-QCBL7EBD.js.map} +0 -0
- /package/dist/{claude-code-updater-W5FRCR44.js.map → claude-code-updater-R7QSZDGD.js.map} +0 -0
- /package/dist/{claude-pair-runtime-QAITVF75.js.map → claude-pair-runtime-BH7XN36C.js.map} +0 -0
- /package/dist/{persistent-session-TVE4RBPD.js.map → persistent-session-LQ4GJ264.js.map} +0 -0
- /package/dist/{responsiveness-probe-G5YKDDTH.js.map → responsiveness-probe-NN7XEPJM.js.map} +0 -0
- /package/dist/{session-auth-dead-ZUSPTKZ3.js.map → session-auth-dead-ESB735FG.js.map} +0 -0
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QCBL7EBD.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XBADGTJP.js";
|
|
19
19
|
import "./chunk-AIUIMEUS.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
readsAsNativeInstall,
|
|
35
35
|
shouldRunClaudeCodeUpdater
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=claude-code-updater-
|
|
37
|
+
//# sourceMappingURL=claude-code-updater-R7QSZDGD.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XBADGTJP.js";
|
|
12
12
|
import {
|
|
13
13
|
CLAUDE_CONFIG_DIR_ENV,
|
|
14
14
|
claudeConfigDirFor,
|
|
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
|
|
|
321
321
|
return { ok: true };
|
|
322
322
|
} catch {
|
|
323
323
|
}
|
|
324
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
324
|
+
const { resolveClaudeBinary } = await import("./persistent-session-LQ4GJ264.js");
|
|
325
325
|
const claudeBin = resolveClaudeBinary();
|
|
326
326
|
const pairEnv = {
|
|
327
327
|
...process.env,
|
|
@@ -836,4 +836,4 @@ export {
|
|
|
836
836
|
startClaudePair,
|
|
837
837
|
submitClaudePairCode
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
839
|
+
//# sourceMappingURL=claude-pair-runtime-BH7XN36C.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-LS27F6QF.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
runSafeCleanup,
|
|
100
100
|
tightestDiskStat,
|
|
101
101
|
withPackageCacheLock
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-QCBL7EBD.js";
|
|
103
103
|
import {
|
|
104
104
|
rewriteSupervisorApiKey,
|
|
105
105
|
supervisorChannelsRefusing
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
webFetchBaselineValue,
|
|
193
193
|
webFetchRestartNeeded,
|
|
194
194
|
writeEgressAllowlist
|
|
195
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-3CUCO6BU.js";
|
|
196
196
|
import {
|
|
197
197
|
isAgentIdle,
|
|
198
198
|
isStaleForToday,
|
|
@@ -203,7 +203,7 @@ import {
|
|
|
203
203
|
subagentActivityAgeSeconds,
|
|
204
204
|
subagentTranscriptDir,
|
|
205
205
|
transcriptActivityAgeSeconds
|
|
206
|
-
} from "../chunk-
|
|
206
|
+
} from "../chunk-BDXOVKWJ.js";
|
|
207
207
|
import {
|
|
208
208
|
classifyUnanswerablePane,
|
|
209
209
|
focusedConfirmDialogBlock,
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
stabiliseResetInstant,
|
|
335
335
|
sumTranscriptUsageInWindow,
|
|
336
336
|
summarizeTranscriptActivity
|
|
337
|
-
} from "../chunk-
|
|
337
|
+
} from "../chunk-XBADGTJP.js";
|
|
338
338
|
import {
|
|
339
339
|
CLAUDE_CONFIG_DIR_ENV,
|
|
340
340
|
claudeConfigDirFor,
|
|
@@ -15843,7 +15843,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
15843
15843
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
15844
15844
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
15845
15845
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
15846
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
15846
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-NN7XEPJM.js");
|
|
15847
15847
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
15848
15848
|
if (newest === null) return null;
|
|
15849
15849
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -16343,6 +16343,9 @@ function sessionToolRebindKey(codeName, serverKey) {
|
|
|
16343
16343
|
}
|
|
16344
16344
|
var promptBindProbeAttempts = /* @__PURE__ */ new Map();
|
|
16345
16345
|
var PROMPT_BIND_PROBE_ATTEMPTS = 6;
|
|
16346
|
+
function integrationRenderPending(integrations, knownHash) {
|
|
16347
|
+
return integrations.length > 0 && computeIntegrationsHash(integrations) !== knownHash;
|
|
16348
|
+
}
|
|
16346
16349
|
async function runAgentSessionToolBindProbes(agent, integrations, projectDir, opts) {
|
|
16347
16350
|
if (integrations.length === 0) return true;
|
|
16348
16351
|
const intervalSec = Number(process.env.AGT_CONNECTIVITY_PROBE_INTERVAL_SECONDS) || 3600;
|
|
@@ -16356,7 +16359,10 @@ async function runAgentSessionToolBindProbes(agent, integrations, projectDir, op
|
|
|
16356
16359
|
// ENG-7429 (CodeRabbit on #3063): a prompt probe must cover the WHOLE set, not
|
|
16357
16360
|
// the rolling batch cap (25), so the just-added integration can't be crowded out
|
|
16358
16361
|
// on a busy agent. Rolling probes keep the default cap.
|
|
16359
|
-
...opts?.forceDue ? { maxPerRun: integrations.length } : {}
|
|
16362
|
+
...opts?.forceDue ? { maxPerRun: integrations.length } : {},
|
|
16363
|
+
// CS-1561 (Obi Wan 54cd60904eb5): a prompt-probe burst must not strike a
|
|
16364
|
+
// withheld gate-requiring remote MCP into quarantine within a minute.
|
|
16365
|
+
...opts?.forceDue || opts?.renderPending ? { forced: true } : {}
|
|
16360
16366
|
});
|
|
16361
16367
|
if (result && (result.reports.length > 0 || result.skippedDetail.length > 0)) {
|
|
16362
16368
|
if (result.reports.length > 0) {
|
|
@@ -16643,7 +16649,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16643
16649
|
var lastVersionCheckAt = 0;
|
|
16644
16650
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16645
16651
|
var lastResponsivenessProbeAt = 0;
|
|
16646
|
-
var agtCliVersion = true ? "0.28.
|
|
16652
|
+
var agtCliVersion = true ? "0.28.1232" : "dev";
|
|
16647
16653
|
function resolveBrewPath(execFileSync3) {
|
|
16648
16654
|
try {
|
|
16649
16655
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -18640,7 +18646,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
18640
18646
|
if (codeNames.length === 0) return;
|
|
18641
18647
|
void (async () => {
|
|
18642
18648
|
try {
|
|
18643
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18649
|
+
const { collectDiagnostics } = await import("../persistent-session-LQ4GJ264.js");
|
|
18644
18650
|
await api.post("/host/heartbeat", {
|
|
18645
18651
|
host_id: hostId,
|
|
18646
18652
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -18783,7 +18789,7 @@ async function pollCycleInner() {
|
|
|
18783
18789
|
}
|
|
18784
18790
|
try {
|
|
18785
18791
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
18786
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18792
|
+
const { collectDiagnostics } = await import("../persistent-session-LQ4GJ264.js");
|
|
18787
18793
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
18788
18794
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
18789
18795
|
let tailscaleHostname;
|
|
@@ -19048,7 +19054,7 @@ async function pollCycleInner() {
|
|
|
19048
19054
|
}
|
|
19049
19055
|
try {
|
|
19050
19056
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
19051
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
19057
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-R7QSZDGD.js");
|
|
19052
19058
|
const securityFloor = currentSecurityFloor();
|
|
19053
19059
|
claudeUpdaterInFlight = true;
|
|
19054
19060
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -19083,7 +19089,7 @@ async function pollCycleInner() {
|
|
|
19083
19089
|
collectPanelessActivityProbes,
|
|
19084
19090
|
getResponsivenessIntervalMs,
|
|
19085
19091
|
occupancyQualificationClassifications
|
|
19086
|
-
} = await import("../responsiveness-probe-
|
|
19092
|
+
} = await import("../responsiveness-probe-NN7XEPJM.js");
|
|
19087
19093
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19088
19094
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19089
19095
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19200,7 +19206,7 @@ async function pollCycleInner() {
|
|
|
19200
19206
|
collectResponsivenessProbes,
|
|
19201
19207
|
livePendingInboundOldestAgeSeconds,
|
|
19202
19208
|
parkPendingInbound
|
|
19203
|
-
} = await import("../responsiveness-probe-
|
|
19209
|
+
} = await import("../responsiveness-probe-NN7XEPJM.js");
|
|
19204
19210
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
|
|
19205
19211
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19206
19212
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19486,7 +19492,7 @@ async function pollCycleInner() {
|
|
|
19486
19492
|
}
|
|
19487
19493
|
}
|
|
19488
19494
|
);
|
|
19489
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19495
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-NN7XEPJM.js");
|
|
19490
19496
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19491
19497
|
paneFatalStreak.delete(codeName);
|
|
19492
19498
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19517,7 +19523,7 @@ async function pollCycleInner() {
|
|
|
19517
19523
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19518
19524
|
bindSourceEscalations
|
|
19519
19525
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19520
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19526
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-LQ4GJ264.js");
|
|
19521
19527
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19522
19528
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19523
19529
|
for (const tracked of [
|
|
@@ -19682,7 +19688,7 @@ async function pollCycleInner() {
|
|
|
19682
19688
|
}
|
|
19683
19689
|
try {
|
|
19684
19690
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
19685
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
19691
|
+
const { probeSessionAuth } = await import("../session-auth-dead-ESB735FG.js");
|
|
19686
19692
|
const observations = [];
|
|
19687
19693
|
const pendingCacheCommits = [];
|
|
19688
19694
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -21991,7 +21997,11 @@ async function processAgent(agent, agentStates, managedToolkits) {
|
|
|
21991
21997
|
let probeRan = false;
|
|
21992
21998
|
try {
|
|
21993
21999
|
const probeProjectDir = join44(homedir17(), ".augmented", agent.code_name, "project");
|
|
21994
|
-
|
|
22000
|
+
const renderPending = integrationRenderPending(
|
|
22001
|
+
integrations,
|
|
22002
|
+
agentState.knownIntegrationHashes.get(agent.agent_id)
|
|
22003
|
+
);
|
|
22004
|
+
probeRan = await runAgentSessionToolBindProbes(agent, integrations, probeProjectDir, { forceDue, renderPending });
|
|
21995
22005
|
} catch (err) {
|
|
21996
22006
|
log(`Session-tool-bind probe failed for '${agent.code_name}': ${err.message}`);
|
|
21997
22007
|
}
|
|
@@ -24428,7 +24438,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24428
24438
|
try {
|
|
24429
24439
|
const freshId = rotateSessionForWedge(codeName);
|
|
24430
24440
|
consecutiveWedgeCycles.delete(codeName);
|
|
24431
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
24441
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-NN7XEPJM.js");
|
|
24432
24442
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
24433
24443
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
24434
24444
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -24471,7 +24481,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24471
24481
|
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}`));
|
|
24472
24482
|
void (async () => {
|
|
24473
24483
|
try {
|
|
24474
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24484
|
+
const { collectDiagnostics } = await import("../persistent-session-LQ4GJ264.js");
|
|
24475
24485
|
await api.post("/host/heartbeat", {
|
|
24476
24486
|
host_id: hostId,
|
|
24477
24487
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24522,7 +24532,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
24522
24532
|
}
|
|
24523
24533
|
try {
|
|
24524
24534
|
const hostId = await getHostId();
|
|
24525
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24535
|
+
const { collectDiagnostics } = await import("../persistent-session-LQ4GJ264.js");
|
|
24526
24536
|
await api.post("/host/heartbeat", {
|
|
24527
24537
|
host_id: hostId,
|
|
24528
24538
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25224,7 +25234,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25224
25234
|
snapshotPairConfig,
|
|
25225
25235
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25226
25236
|
planPairStartReport
|
|
25227
|
-
} = await import("../claude-pair-runtime-
|
|
25237
|
+
} = await import("../claude-pair-runtime-BH7XN36C.js");
|
|
25228
25238
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25229
25239
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25230
25240
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
@@ -26704,6 +26714,7 @@ export {
|
|
|
26704
26714
|
hasRevokedResiduals,
|
|
26705
26715
|
holdRealtimeRebindInFlight,
|
|
26706
26716
|
inboundHoldMinutes,
|
|
26717
|
+
integrationRenderPending,
|
|
26707
26718
|
isOlderSemverTuple,
|
|
26708
26719
|
isPrereleaseVersion,
|
|
26709
26720
|
jitteredRealtimeRebindBackoffMs,
|