@integrity-labs/agt-cli 0.28.1254 → 0.28.1255
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-EW7NBMWI.js → api-client-QWPG4CTP.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-AZOT5URF.js → chunk-FHBQ567A.js} +2 -2
- package/dist/{chunk-EWD3K6YD.js → chunk-JNG5SRQC.js} +1 -1
- package/dist/chunk-JNG5SRQC.js.map +1 -0
- package/dist/{chunk-SEXB6LTM.js → chunk-JZFSKDEJ.js} +15 -13
- package/dist/chunk-JZFSKDEJ.js.map +1 -0
- package/dist/{chunk-FD3GWWVL.js → chunk-M4IKX2W2.js} +3 -3
- package/dist/{chunk-ZKLOPCWS.js → chunk-YRKZIOZ4.js} +56 -9
- package/dist/{chunk-ZKLOPCWS.js.map → chunk-YRKZIOZ4.js.map} +1 -1
- package/dist/{chunk-ZDON4IXL.js → chunk-ZGG6D257.js} +2 -2
- package/dist/{claude-code-updater-CHEL6LOF.js → claude-code-updater-DE7N7KAQ.js} +3 -3
- package/dist/{claude-pair-runtime-AGJH54AR.js → claude-pair-runtime-NNQOJHPB.js} +3 -3
- package/dist/lib/manager-worker.js +29 -22
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-HQPQPNPK.js → persistent-session-JR6TQJXM.js} +4 -4
- package/dist/{responsiveness-probe-6GNSPLD2.js → responsiveness-probe-MOGAXCXI.js} +4 -4
- package/dist/{session-auth-dead-4Z24MU6C.js → session-auth-dead-KZ7BTXYR.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-EWD3K6YD.js.map +0 -1
- package/dist/chunk-SEXB6LTM.js.map +0 -1
- /package/dist/{api-client-EW7NBMWI.js.map → api-client-QWPG4CTP.js.map} +0 -0
- /package/dist/{chunk-AZOT5URF.js.map → chunk-FHBQ567A.js.map} +0 -0
- /package/dist/{chunk-FD3GWWVL.js.map → chunk-M4IKX2W2.js.map} +0 -0
- /package/dist/{chunk-ZDON4IXL.js.map → chunk-ZGG6D257.js.map} +0 -0
- /package/dist/{claude-code-updater-CHEL6LOF.js.map → claude-code-updater-DE7N7KAQ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-AGJH54AR.js.map → claude-pair-runtime-NNQOJHPB.js.map} +0 -0
- /package/dist/{persistent-session-HQPQPNPK.js.map → persistent-session-JR6TQJXM.js.map} +0 -0
- /package/dist/{responsiveness-probe-6GNSPLD2.js.map → responsiveness-probe-MOGAXCXI.js.map} +0 -0
- /package/dist/{session-auth-dead-4Z24MU6C.js.map → session-auth-dead-KZ7BTXYR.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JNG5SRQC.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-ZGG6D257.js.map
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FHBQ567A.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JNG5SRQC.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-DE7N7KAQ.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JNG5SRQC.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-JR6TQJXM.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-NNQOJHPB.js.map
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
tripClass,
|
|
70
70
|
writeEtcEnvironment,
|
|
71
71
|
writeProfileDScript
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-JZFSKDEJ.js";
|
|
73
73
|
import {
|
|
74
74
|
ApiError,
|
|
75
75
|
adoptHostKeyInProcess,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
probeHostKey,
|
|
88
88
|
requireHost,
|
|
89
89
|
setConfigHash
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-M4IKX2W2.js";
|
|
91
91
|
import {
|
|
92
92
|
BLOCKED_ON_PROMPT_DECISION,
|
|
93
93
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
webFetchBaselineValue,
|
|
172
172
|
webFetchRestartNeeded,
|
|
173
173
|
writeEgressAllowlist
|
|
174
|
-
} from "../chunk-
|
|
174
|
+
} from "../chunk-YRKZIOZ4.js";
|
|
175
175
|
import {
|
|
176
176
|
isAgentIdle,
|
|
177
177
|
isStaleForToday,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
subagentActivityAgeSeconds,
|
|
183
183
|
subagentTranscriptDir,
|
|
184
184
|
transcriptActivityAgeSeconds
|
|
185
|
-
} from "../chunk-
|
|
185
|
+
} from "../chunk-ZGG6D257.js";
|
|
186
186
|
import {
|
|
187
187
|
classifyUnanswerablePane,
|
|
188
188
|
focusedConfirmDialogBlock,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
runSafeCleanup,
|
|
207
207
|
tightestDiskStat,
|
|
208
208
|
withPackageCacheLock
|
|
209
|
-
} from "../chunk-
|
|
209
|
+
} from "../chunk-FHBQ567A.js";
|
|
210
210
|
import {
|
|
211
211
|
parsePsRows,
|
|
212
212
|
reapOrphanChannelMcps
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
stabiliseResetInstant,
|
|
335
335
|
sumTranscriptUsageInWindow,
|
|
336
336
|
summarizeTranscriptActivity
|
|
337
|
-
} from "../chunk-
|
|
337
|
+
} from "../chunk-JNG5SRQC.js";
|
|
338
338
|
import {
|
|
339
339
|
CLAUDE_CONFIG_DIR_ENV,
|
|
340
340
|
claudeConfigDirFor,
|
|
@@ -1440,6 +1440,11 @@ function remoteMcpUrlOf(i) {
|
|
|
1440
1440
|
const url = i.remoteMcp?.url;
|
|
1441
1441
|
return typeof url === "string" && url ? url : null;
|
|
1442
1442
|
}
|
|
1443
|
+
function remoteMcpAllowlistOf(i) {
|
|
1444
|
+
const raw = i.remoteMcp?.tool_allowlist;
|
|
1445
|
+
if (!Array.isArray(raw)) return null;
|
|
1446
|
+
return JSON.stringify(raw);
|
|
1447
|
+
}
|
|
1443
1448
|
function canonicalize(value) {
|
|
1444
1449
|
if (Array.isArray(value)) return value.map(canonicalize);
|
|
1445
1450
|
if (value && typeof value === "object") {
|
|
@@ -1465,7 +1470,9 @@ function computeIntegrationsHash(integrations) {
|
|
|
1465
1470
|
const payload = integrations.map((i) => {
|
|
1466
1471
|
const base = `${i.definition_id}:${JSON.stringify(canonicalize(i.credentials ?? {}))}:${JSON.stringify(canonicalize(hashableConfig(i.config)))}`;
|
|
1467
1472
|
const url = remoteMcpUrlOf(i);
|
|
1468
|
-
|
|
1473
|
+
const withUrl = url ? `${base}:remote=${url}` : base;
|
|
1474
|
+
const allow = remoteMcpAllowlistOf(i);
|
|
1475
|
+
return allow ? `${withUrl}:allow=${allow}` : withUrl;
|
|
1469
1476
|
}).sort();
|
|
1470
1477
|
return createHash2("sha256").update(JSON.stringify(payload)).digest("hex").slice(0, 16);
|
|
1471
1478
|
}
|
|
@@ -14150,7 +14157,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
14150
14157
|
};
|
|
14151
14158
|
}
|
|
14152
14159
|
var managerHostPost = async (path, body) => {
|
|
14153
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
14160
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-QWPG4CTP.js");
|
|
14154
14161
|
try {
|
|
14155
14162
|
const json = await api2.post(path, body);
|
|
14156
14163
|
return { status: 200, json };
|
|
@@ -16189,7 +16196,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
16189
16196
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
16190
16197
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
16191
16198
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
16192
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
16199
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-MOGAXCXI.js");
|
|
16193
16200
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
16194
16201
|
if (newest === null) return null;
|
|
16195
16202
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -17005,7 +17012,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
17005
17012
|
var lastVersionCheckAt = 0;
|
|
17006
17013
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17007
17014
|
var lastResponsivenessProbeAt = 0;
|
|
17008
|
-
var agtCliVersion = true ? "0.28.
|
|
17015
|
+
var agtCliVersion = true ? "0.28.1255" : "dev";
|
|
17009
17016
|
function resolveBrewPath(execFileSync4) {
|
|
17010
17017
|
try {
|
|
17011
17018
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -19004,7 +19011,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
19004
19011
|
if (codeNames.length === 0) return;
|
|
19005
19012
|
void (async () => {
|
|
19006
19013
|
try {
|
|
19007
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19014
|
+
const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
|
|
19008
19015
|
await api.post("/host/heartbeat", {
|
|
19009
19016
|
host_id: hostId,
|
|
19010
19017
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -19147,7 +19154,7 @@ async function pollCycleInner() {
|
|
|
19147
19154
|
}
|
|
19148
19155
|
try {
|
|
19149
19156
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
19150
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
19157
|
+
const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
|
|
19151
19158
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
19152
19159
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
19153
19160
|
let tailscaleHostname;
|
|
@@ -19412,7 +19419,7 @@ async function pollCycleInner() {
|
|
|
19412
19419
|
}
|
|
19413
19420
|
try {
|
|
19414
19421
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
19415
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
19422
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-DE7N7KAQ.js");
|
|
19416
19423
|
const securityFloor = currentSecurityFloor();
|
|
19417
19424
|
claudeUpdaterInFlight = true;
|
|
19418
19425
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -19447,7 +19454,7 @@ async function pollCycleInner() {
|
|
|
19447
19454
|
collectPanelessActivityProbes,
|
|
19448
19455
|
getResponsivenessIntervalMs,
|
|
19449
19456
|
occupancyQualificationClassifications
|
|
19450
|
-
} = await import("../responsiveness-probe-
|
|
19457
|
+
} = await import("../responsiveness-probe-MOGAXCXI.js");
|
|
19451
19458
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
19452
19459
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
19453
19460
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -19564,7 +19571,7 @@ async function pollCycleInner() {
|
|
|
19564
19571
|
collectResponsivenessProbes,
|
|
19565
19572
|
livePendingInboundOldestAgeSeconds,
|
|
19566
19573
|
parkPendingInbound
|
|
19567
|
-
} = await import("../responsiveness-probe-
|
|
19574
|
+
} = await import("../responsiveness-probe-MOGAXCXI.js");
|
|
19568
19575
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
19569
19576
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
19570
19577
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19850,7 +19857,7 @@ async function pollCycleInner() {
|
|
|
19850
19857
|
}
|
|
19851
19858
|
}
|
|
19852
19859
|
);
|
|
19853
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19860
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-MOGAXCXI.js");
|
|
19854
19861
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19855
19862
|
paneFatalStreak.delete(codeName);
|
|
19856
19863
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19881,7 +19888,7 @@ async function pollCycleInner() {
|
|
|
19881
19888
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19882
19889
|
bindSourceEscalations
|
|
19883
19890
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19884
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19891
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-JR6TQJXM.js");
|
|
19885
19892
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19886
19893
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19887
19894
|
for (const tracked of [
|
|
@@ -20046,7 +20053,7 @@ async function pollCycleInner() {
|
|
|
20046
20053
|
}
|
|
20047
20054
|
try {
|
|
20048
20055
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
20049
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
20056
|
+
const { probeSessionAuth } = await import("../session-auth-dead-KZ7BTXYR.js");
|
|
20050
20057
|
const observations = [];
|
|
20051
20058
|
const pendingCacheCommits = [];
|
|
20052
20059
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24974,7 +24981,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24974
24981
|
if (!refreshData) return;
|
|
24975
24982
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
24976
24983
|
const hostId = await getHostId();
|
|
24977
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
24984
|
+
const parkForRestart = await import("../responsiveness-probe-MOGAXCXI.js").then(
|
|
24978
24985
|
(m) => m.parkPendingInbound,
|
|
24979
24986
|
(err) => err
|
|
24980
24987
|
);
|
|
@@ -25047,7 +25054,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
25047
25054
|
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}`));
|
|
25048
25055
|
void (async () => {
|
|
25049
25056
|
try {
|
|
25050
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25057
|
+
const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
|
|
25051
25058
|
await api.post("/host/heartbeat", {
|
|
25052
25059
|
host_id: hostId,
|
|
25053
25060
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25098,7 +25105,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
25098
25105
|
}
|
|
25099
25106
|
try {
|
|
25100
25107
|
const hostId = await getHostId();
|
|
25101
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
25108
|
+
const { collectDiagnostics } = await import("../persistent-session-JR6TQJXM.js");
|
|
25102
25109
|
await api.post("/host/heartbeat", {
|
|
25103
25110
|
host_id: hostId,
|
|
25104
25111
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -25800,7 +25807,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25800
25807
|
snapshotPairConfig,
|
|
25801
25808
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25802
25809
|
planPairStartReport
|
|
25803
|
-
} = await import("../claude-pair-runtime-
|
|
25810
|
+
} = await import("../claude-pair-runtime-NNQOJHPB.js");
|
|
25804
25811
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25805
25812
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25806
25813
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|