@integrity-labs/agt-cli 0.28.1275 → 0.28.1277
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/{api-client-5S4JHNCY.js → api-client-X2732UKK.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-7D6EMIHG.js → chunk-3POXIX7X.js} +4 -3
- package/dist/{chunk-4UXZAUEY.js → chunk-C3NM6OTP.js} +2 -2
- package/dist/{chunk-GRWU34ID.js → chunk-IEXBHI4X.js} +2 -2
- package/dist/{chunk-7PIMV2ID.js → chunk-JQCTNAQW.js} +51 -8
- package/dist/{chunk-7PIMV2ID.js.map → chunk-JQCTNAQW.js.map} +1 -1
- package/dist/{chunk-BSVQWPBC.js → chunk-OAXNWYVU.js} +3 -3
- package/dist/{chunk-V2BS3IN3.js → chunk-ZQVYTNLA.js} +52 -1
- package/dist/{chunk-V2BS3IN3.js.map → chunk-ZQVYTNLA.js.map} +1 -1
- package/dist/{claude-code-updater-EC3JMSNJ.js → claude-code-updater-GADHFGSY.js} +3 -3
- package/dist/{claude-pair-runtime-NPBFKJSQ.js → claude-pair-runtime-CNYIVUOQ.js} +3 -3
- package/dist/lib/manager-worker.js +24 -22
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +51 -0
- package/dist/mcp/index.js +282 -10
- package/dist/mcp/origami.js +51 -0
- package/dist/mcp/slack-channel.js +51 -0
- package/dist/mcp/telegram-channel.js +51 -0
- package/dist/{persistent-session-EJUOBWXJ.js → persistent-session-6B2DPG4U.js} +4 -4
- package/dist/{responsiveness-probe-GBYZCGXX.js → responsiveness-probe-ZN2VIGOX.js} +4 -4
- package/dist/{session-auth-dead-4U6NDCWN.js → session-auth-dead-7NXTFGDV.js} +3 -3
- package/package.json +1 -1
- /package/dist/{api-client-5S4JHNCY.js.map → api-client-X2732UKK.js.map} +0 -0
- /package/dist/{chunk-7D6EMIHG.js.map → chunk-3POXIX7X.js.map} +0 -0
- /package/dist/{chunk-4UXZAUEY.js.map → chunk-C3NM6OTP.js.map} +0 -0
- /package/dist/{chunk-GRWU34ID.js.map → chunk-IEXBHI4X.js.map} +0 -0
- /package/dist/{chunk-BSVQWPBC.js.map → chunk-OAXNWYVU.js.map} +0 -0
- /package/dist/{claude-code-updater-EC3JMSNJ.js.map → claude-code-updater-GADHFGSY.js.map} +0 -0
- /package/dist/{claude-pair-runtime-NPBFKJSQ.js.map → claude-pair-runtime-CNYIVUOQ.js.map} +0 -0
- /package/dist/{persistent-session-EJUOBWXJ.js.map → persistent-session-6B2DPG4U.js.map} +0 -0
- /package/dist/{responsiveness-probe-GBYZCGXX.js.map → responsiveness-probe-ZN2VIGOX.js.map} +0 -0
- /package/dist/{session-auth-dead-4U6NDCWN.js.map → session-auth-dead-7NXTFGDV.js.map} +0 -0
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C3NM6OTP.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ZQVYTNLA.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-GADHFGSY.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
redactPaneFrame,
|
|
12
12
|
sanitizeTerminalFrame
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZQVYTNLA.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_CONFIG_DIR_ENV,
|
|
16
16
|
claudeConfigDirFor,
|
|
@@ -323,7 +323,7 @@ async function spawnPairSession(session) {
|
|
|
323
323
|
return { ok: true };
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
326
|
+
const { resolveClaudeBinary } = await import("./persistent-session-6B2DPG4U.js");
|
|
327
327
|
const claudeBin = resolveClaudeBinary();
|
|
328
328
|
const pairEnv = {
|
|
329
329
|
...process.env,
|
|
@@ -838,4 +838,4 @@ export {
|
|
|
838
838
|
startClaudePair,
|
|
839
839
|
submitClaudePairCode
|
|
840
840
|
};
|
|
841
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
841
|
+
//# sourceMappingURL=claude-pair-runtime-CNYIVUOQ.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-JQCTNAQW.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,13 +88,14 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-OAXNWYVU.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
95
95
|
CLAUDE_MANAGED_SETTINGS_DIR,
|
|
96
96
|
ChildProcessError,
|
|
97
97
|
DEFAULT_KILL_AFTER_MS,
|
|
98
|
+
TMUX_SESSION_ABSENT,
|
|
98
99
|
agentRuntimeKey,
|
|
99
100
|
applyBlockedPromptVerdict,
|
|
100
101
|
boundedArgv,
|
|
@@ -179,7 +180,7 @@ import {
|
|
|
179
180
|
webFetchBaselineValue,
|
|
180
181
|
webFetchRestartNeeded,
|
|
181
182
|
writeEgressAllowlist
|
|
182
|
-
} from "../chunk-
|
|
183
|
+
} from "../chunk-3POXIX7X.js";
|
|
183
184
|
import {
|
|
184
185
|
isAgentIdle,
|
|
185
186
|
isStaleForToday,
|
|
@@ -190,7 +191,7 @@ import {
|
|
|
190
191
|
subagentActivityAgeSeconds,
|
|
191
192
|
subagentTranscriptDir,
|
|
192
193
|
transcriptActivityAgeSeconds
|
|
193
|
-
} from "../chunk-
|
|
194
|
+
} from "../chunk-IEXBHI4X.js";
|
|
194
195
|
import {
|
|
195
196
|
classifyUnanswerablePane,
|
|
196
197
|
focusedConfirmDialogBlock,
|
|
@@ -216,7 +217,7 @@ import {
|
|
|
216
217
|
runSafeCleanup,
|
|
217
218
|
tightestDiskStat,
|
|
218
219
|
withPackageCacheLock
|
|
219
|
-
} from "../chunk-
|
|
220
|
+
} from "../chunk-C3NM6OTP.js";
|
|
220
221
|
import {
|
|
221
222
|
parsePsRows,
|
|
222
223
|
reapOrphanChannelMcps
|
|
@@ -345,7 +346,7 @@ import {
|
|
|
345
346
|
stabiliseResetInstant,
|
|
346
347
|
sumTranscriptUsageInWindow,
|
|
347
348
|
summarizeTranscriptActivity
|
|
348
|
-
} from "../chunk-
|
|
349
|
+
} from "../chunk-ZQVYTNLA.js";
|
|
349
350
|
import {
|
|
350
351
|
CLAUDE_CONFIG_DIR_ENV,
|
|
351
352
|
claudeConfigDirFor,
|
|
@@ -389,7 +390,7 @@ function confirmsNoSession(err) {
|
|
|
389
390
|
const e = err;
|
|
390
391
|
if (!e || e.status !== 1 || e.signal) return false;
|
|
391
392
|
const stderr = typeof e.stderr === "string" ? e.stderr : Buffer.isBuffer(e.stderr) ? e.stderr.toString("utf8") : "";
|
|
392
|
-
return
|
|
393
|
+
return TMUX_SESSION_ABSENT.test(stderr);
|
|
393
394
|
}
|
|
394
395
|
function killAbortsRestart(killed, restartReason) {
|
|
395
396
|
if (killed === "timed-out") return true;
|
|
@@ -15143,7 +15144,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
15143
15144
|
};
|
|
15144
15145
|
}
|
|
15145
15146
|
var managerHostPost = async (path, body) => {
|
|
15146
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
15147
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-X2732UKK.js");
|
|
15147
15148
|
try {
|
|
15148
15149
|
const json = await api2.post(path, body);
|
|
15149
15150
|
return { status: 200, json };
|
|
@@ -17194,7 +17195,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
17194
17195
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
17195
17196
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
17196
17197
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
17197
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
17198
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
17198
17199
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
17199
17200
|
if (newest === null) return null;
|
|
17200
17201
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -18075,7 +18076,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
18075
18076
|
var lastVersionCheckAt = 0;
|
|
18076
18077
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
18077
18078
|
var lastResponsivenessProbeAt = 0;
|
|
18078
|
-
var agtCliVersion = true ? "0.28.
|
|
18079
|
+
var agtCliVersion = true ? "0.28.1277" : "dev";
|
|
18079
18080
|
function resolveBrewPath(execFileSync5) {
|
|
18080
18081
|
try {
|
|
18081
18082
|
const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -20084,7 +20085,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
20084
20085
|
if (codeNames.length === 0) return;
|
|
20085
20086
|
void (async () => {
|
|
20086
20087
|
try {
|
|
20087
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20088
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
20088
20089
|
await api.post("/host/heartbeat", {
|
|
20089
20090
|
host_id: hostId,
|
|
20090
20091
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -20227,7 +20228,7 @@ async function pollCycleInner() {
|
|
|
20227
20228
|
}
|
|
20228
20229
|
try {
|
|
20229
20230
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
20230
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20231
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
20231
20232
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
20232
20233
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
20233
20234
|
let tailscaleHostname;
|
|
@@ -20443,6 +20444,7 @@ async function pollCycleInner() {
|
|
|
20443
20444
|
}
|
|
20444
20445
|
hostFlagStore().applyNotifyDispatchByAgent(hbResp?.notify_dispatch_by_agent);
|
|
20445
20446
|
hostFlagStore().applyBooleanFlagsByAgent(hbResp?.feature_flags_by_agent, hbResp?.feature_flags_by_agent_evaluated);
|
|
20447
|
+
hostFlagStore().applyToolCatalogVersion(hbResp?.tool_catalog_version);
|
|
20446
20448
|
recordScratchHoldsFromHeartbeat({
|
|
20447
20449
|
holdsDir: SCRATCH_HOLDS_DIR(),
|
|
20448
20450
|
evaluatedAgentIds: hbResp?.feature_flags_by_agent_evaluated,
|
|
@@ -20498,7 +20500,7 @@ async function pollCycleInner() {
|
|
|
20498
20500
|
}
|
|
20499
20501
|
try {
|
|
20500
20502
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
20501
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
20503
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-GADHFGSY.js");
|
|
20502
20504
|
const securityFloor = currentSecurityFloor();
|
|
20503
20505
|
claudeUpdaterInFlight = true;
|
|
20504
20506
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -20533,7 +20535,7 @@ async function pollCycleInner() {
|
|
|
20533
20535
|
collectPanelessActivityProbes,
|
|
20534
20536
|
getResponsivenessIntervalMs,
|
|
20535
20537
|
occupancyQualificationClassifications
|
|
20536
|
-
} = await import("../responsiveness-probe-
|
|
20538
|
+
} = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
20537
20539
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
20538
20540
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
20539
20541
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -20650,7 +20652,7 @@ async function pollCycleInner() {
|
|
|
20650
20652
|
collectResponsivenessProbes,
|
|
20651
20653
|
livePendingInboundOldestAgeSeconds,
|
|
20652
20654
|
parkPendingInbound
|
|
20653
|
-
} = await import("../responsiveness-probe-
|
|
20655
|
+
} = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
20654
20656
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
20655
20657
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
20656
20658
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -20936,7 +20938,7 @@ async function pollCycleInner() {
|
|
|
20936
20938
|
}
|
|
20937
20939
|
}
|
|
20938
20940
|
);
|
|
20939
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
20941
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
20940
20942
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
20941
20943
|
paneFatalStreak.delete(codeName);
|
|
20942
20944
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -20967,7 +20969,7 @@ async function pollCycleInner() {
|
|
|
20967
20969
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
20968
20970
|
bindSourceEscalations
|
|
20969
20971
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
20970
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
20972
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-6B2DPG4U.js");
|
|
20971
20973
|
const mountConfig = resolveTranscriptMountConfig();
|
|
20972
20974
|
const liveAgents = agentState.persistentSessionAgents;
|
|
20973
20975
|
for (const tracked of [
|
|
@@ -21132,7 +21134,7 @@ async function pollCycleInner() {
|
|
|
21132
21134
|
}
|
|
21133
21135
|
try {
|
|
21134
21136
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
21135
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
21137
|
+
const { probeSessionAuth } = await import("../session-auth-dead-7NXTFGDV.js");
|
|
21136
21138
|
const observations = [];
|
|
21137
21139
|
const pendingCacheCommits = [];
|
|
21138
21140
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -26200,7 +26202,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
26200
26202
|
if (!refreshData) return;
|
|
26201
26203
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
26202
26204
|
const hostId = await getHostId();
|
|
26203
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
26205
|
+
const parkForRestart = await import("../responsiveness-probe-ZN2VIGOX.js").then(
|
|
26204
26206
|
(m) => m.parkPendingInbound,
|
|
26205
26207
|
(err) => err
|
|
26206
26208
|
);
|
|
@@ -26277,7 +26279,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
26277
26279
|
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}`));
|
|
26278
26280
|
void (async () => {
|
|
26279
26281
|
try {
|
|
26280
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
26282
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
26281
26283
|
await api.post("/host/heartbeat", {
|
|
26282
26284
|
host_id: hostId,
|
|
26283
26285
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -26330,7 +26332,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
26330
26332
|
}
|
|
26331
26333
|
try {
|
|
26332
26334
|
const hostId = await getHostId();
|
|
26333
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
26335
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
26334
26336
|
await api.post("/host/heartbeat", {
|
|
26335
26337
|
host_id: hostId,
|
|
26336
26338
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -27057,7 +27059,7 @@ async function processClaudePairSessions(agents) {
|
|
|
27057
27059
|
snapshotPairConfig,
|
|
27058
27060
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
27059
27061
|
planPairStartReport
|
|
27060
|
-
} = await import("../claude-pair-runtime-
|
|
27062
|
+
} = await import("../claude-pair-runtime-CNYIVUOQ.js");
|
|
27061
27063
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
27062
27064
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
27063
27065
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|