@integrity-labs/agt-cli 0.28.1216 → 0.28.1218
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 +6 -6
- package/dist/{chunk-KZMARLWR.js → chunk-2TSVU3OU.js} +37 -12
- package/dist/{chunk-KZMARLWR.js.map → chunk-2TSVU3OU.js.map} +1 -1
- package/dist/{chunk-QCQYDXYP.js → chunk-F5R622EX.js} +3 -3
- package/dist/{chunk-U63NF4FC.js → chunk-HAQXH2J4.js} +2 -2
- package/dist/{chunk-B5ZQQ7Z2.js → chunk-MJXBNSJY.js} +31 -1
- package/dist/chunk-MJXBNSJY.js.map +1 -0
- package/dist/{chunk-QHO44YUB.js → chunk-QI5C2VCI.js} +2 -2
- package/dist/{claude-code-updater-FTIWTIDK.js → claude-code-updater-XZTIAQQ3.js} +3 -3
- package/dist/{claude-pair-runtime-M3QT5MWP.js → claude-pair-runtime-N7TZVTF7.js} +3 -3
- package/dist/lib/manager-worker.js +19 -19
- package/dist/mcp/direct-chat-channel.js +358 -21
- package/dist/mcp/index.js +34 -18
- package/dist/mcp/origami.js +34 -18
- package/dist/mcp/slack-channel.js +34 -18
- package/dist/mcp/telegram-channel.js +34 -18
- package/dist/{persistent-session-WEQTZT4Z.js → persistent-session-NQMAJQF2.js} +4 -4
- package/dist/{responsiveness-probe-LMBZ5JOK.js → responsiveness-probe-JGMZCQCI.js} +4 -4
- package/dist/{session-auth-dead-NRVMU7CE.js → session-auth-dead-DPMMX7QL.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-B5ZQQ7Z2.js.map +0 -1
- /package/dist/{chunk-QCQYDXYP.js.map → chunk-F5R622EX.js.map} +0 -0
- /package/dist/{chunk-U63NF4FC.js.map → chunk-HAQXH2J4.js.map} +0 -0
- /package/dist/{chunk-QHO44YUB.js.map → chunk-QI5C2VCI.js.map} +0 -0
- /package/dist/{claude-code-updater-FTIWTIDK.js.map → claude-code-updater-XZTIAQQ3.js.map} +0 -0
- /package/dist/{claude-pair-runtime-M3QT5MWP.js.map → claude-pair-runtime-N7TZVTF7.js.map} +0 -0
- /package/dist/{persistent-session-WEQTZT4Z.js.map → persistent-session-NQMAJQF2.js.map} +0 -0
- /package/dist/{responsiveness-probe-LMBZ5JOK.js.map → responsiveness-probe-JGMZCQCI.js.map} +0 -0
- /package/dist/{session-auth-dead-NRVMU7CE.js.map → session-auth-dead-DPMMX7QL.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XWVM4KPK.js";
|
|
5
5
|
import {
|
|
6
6
|
FORCED_UPDATE_HARD_DEADLINE_MS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MJXBNSJY.js";
|
|
8
8
|
import {
|
|
9
9
|
effectiveClaudeJsonPath
|
|
10
10
|
} from "./chunk-AIUIMEUS.js";
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
probeClaudeInstalls,
|
|
723
723
|
maybeUpdateClaudeCode
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-QI5C2VCI.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QI5C2VCI.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-MJXBNSJY.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-XZTIAQQ3.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MJXBNSJY.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-NQMAJQF2.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-N7TZVTF7.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-2TSVU3OU.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-QI5C2VCI.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-F5R622EX.js";
|
|
196
196
|
import {
|
|
197
197
|
isAgentIdle,
|
|
198
198
|
isStaleForToday,
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
sessionTranscriptDir,
|
|
203
203
|
subagentActivityAgeSeconds,
|
|
204
204
|
transcriptActivityAgeSeconds
|
|
205
|
-
} from "../chunk-
|
|
205
|
+
} from "../chunk-HAQXH2J4.js";
|
|
206
206
|
import {
|
|
207
207
|
classifyUnanswerablePane,
|
|
208
208
|
focusedConfirmDialogBlock,
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
stabiliseResetInstant,
|
|
331
331
|
sumTranscriptUsageInWindow,
|
|
332
332
|
summarizeTranscriptActivity
|
|
333
|
-
} from "../chunk-
|
|
333
|
+
} from "../chunk-MJXBNSJY.js";
|
|
334
334
|
import {
|
|
335
335
|
CLAUDE_CONFIG_DIR_ENV,
|
|
336
336
|
claudeConfigDirFor,
|
|
@@ -15650,7 +15650,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
15650
15650
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
15651
15651
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
15652
15652
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
15653
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
15653
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-JGMZCQCI.js");
|
|
15654
15654
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
15655
15655
|
if (newest === null) return null;
|
|
15656
15656
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -16447,7 +16447,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16447
16447
|
var lastVersionCheckAt = 0;
|
|
16448
16448
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16449
16449
|
var lastResponsivenessProbeAt = 0;
|
|
16450
|
-
var agtCliVersion = true ? "0.28.
|
|
16450
|
+
var agtCliVersion = true ? "0.28.1218" : "dev";
|
|
16451
16451
|
function resolveBrewPath(execFileSync3) {
|
|
16452
16452
|
try {
|
|
16453
16453
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -18351,7 +18351,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
18351
18351
|
if (codeNames.length === 0) return;
|
|
18352
18352
|
void (async () => {
|
|
18353
18353
|
try {
|
|
18354
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18354
|
+
const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
|
|
18355
18355
|
await api.post("/host/heartbeat", {
|
|
18356
18356
|
host_id: hostId,
|
|
18357
18357
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -18494,7 +18494,7 @@ async function pollCycleInner() {
|
|
|
18494
18494
|
}
|
|
18495
18495
|
try {
|
|
18496
18496
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
18497
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18497
|
+
const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
|
|
18498
18498
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
18499
18499
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
18500
18500
|
let tailscaleHostname;
|
|
@@ -18752,7 +18752,7 @@ async function pollCycleInner() {
|
|
|
18752
18752
|
}
|
|
18753
18753
|
try {
|
|
18754
18754
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
18755
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
18755
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-XZTIAQQ3.js");
|
|
18756
18756
|
const securityFloor = currentSecurityFloor();
|
|
18757
18757
|
claudeUpdaterInFlight = true;
|
|
18758
18758
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -18787,7 +18787,7 @@ async function pollCycleInner() {
|
|
|
18787
18787
|
collectPanelessActivityProbes,
|
|
18788
18788
|
getResponsivenessIntervalMs,
|
|
18789
18789
|
occupancyQualificationClassifications
|
|
18790
|
-
} = await import("../responsiveness-probe-
|
|
18790
|
+
} = await import("../responsiveness-probe-JGMZCQCI.js");
|
|
18791
18791
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
18792
18792
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
18793
18793
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -18904,7 +18904,7 @@ async function pollCycleInner() {
|
|
|
18904
18904
|
collectResponsivenessProbes,
|
|
18905
18905
|
livePendingInboundOldestAgeSeconds,
|
|
18906
18906
|
parkPendingInbound
|
|
18907
|
-
} = await import("../responsiveness-probe-
|
|
18907
|
+
} = await import("../responsiveness-probe-JGMZCQCI.js");
|
|
18908
18908
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
|
|
18909
18909
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
18910
18910
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19190,7 +19190,7 @@ async function pollCycleInner() {
|
|
|
19190
19190
|
}
|
|
19191
19191
|
}
|
|
19192
19192
|
);
|
|
19193
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19193
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-JGMZCQCI.js");
|
|
19194
19194
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19195
19195
|
paneFatalStreak.delete(codeName);
|
|
19196
19196
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19221,7 +19221,7 @@ async function pollCycleInner() {
|
|
|
19221
19221
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19222
19222
|
bindSourceEscalations
|
|
19223
19223
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19224
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19224
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NQMAJQF2.js");
|
|
19225
19225
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19226
19226
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19227
19227
|
for (const tracked of [
|
|
@@ -19386,7 +19386,7 @@ async function pollCycleInner() {
|
|
|
19386
19386
|
}
|
|
19387
19387
|
try {
|
|
19388
19388
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
19389
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
19389
|
+
const { probeSessionAuth } = await import("../session-auth-dead-DPMMX7QL.js");
|
|
19390
19390
|
const observations = [];
|
|
19391
19391
|
const pendingCacheCommits = [];
|
|
19392
19392
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24116,7 +24116,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24116
24116
|
try {
|
|
24117
24117
|
const freshId = rotateSessionForWedge(codeName);
|
|
24118
24118
|
consecutiveWedgeCycles.delete(codeName);
|
|
24119
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
24119
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-JGMZCQCI.js");
|
|
24120
24120
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
24121
24121
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
24122
24122
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -24159,7 +24159,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24159
24159
|
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}`));
|
|
24160
24160
|
void (async () => {
|
|
24161
24161
|
try {
|
|
24162
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24162
|
+
const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
|
|
24163
24163
|
await api.post("/host/heartbeat", {
|
|
24164
24164
|
host_id: hostId,
|
|
24165
24165
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24210,7 +24210,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
24210
24210
|
}
|
|
24211
24211
|
try {
|
|
24212
24212
|
const hostId = await getHostId();
|
|
24213
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24213
|
+
const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
|
|
24214
24214
|
await api.post("/host/heartbeat", {
|
|
24215
24215
|
host_id: hostId,
|
|
24216
24216
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24912,7 +24912,7 @@ async function processClaudePairSessions(agents) {
|
|
|
24912
24912
|
snapshotPairConfig,
|
|
24913
24913
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
24914
24914
|
planPairStartReport
|
|
24915
|
-
} = await import("../claude-pair-runtime-
|
|
24915
|
+
} = await import("../claude-pair-runtime-N7TZVTF7.js");
|
|
24916
24916
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
24917
24917
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
24918
24918
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|