@integrity-labs/agt-cli 0.28.1319 → 0.28.1320
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-RRGOSC4A.js → api-client-ZCSKN3SJ.js} +2 -2
- package/dist/bin/agt.js +5 -5
- package/dist/{chunk-RR3LB5VH.js → chunk-2F4EHNRQ.js} +2 -2
- package/dist/chunk-2F4EHNRQ.js.map +1 -0
- package/dist/{chunk-R7ZAJKMK.js → chunk-ZA34ZZCC.js} +2 -2
- package/dist/{chunk-4D2JQ2HP.js → chunk-ZDO57BCK.js} +3 -3
- package/dist/{claude-pair-runtime-DGLYU2HX.js → claude-pair-runtime-5EGI66ET.js} +2 -2
- package/dist/lib/manager-worker.js +41 -19
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-4AGRIK5W.js → persistent-session-XFZ43IDB.js} +2 -2
- package/dist/{responsiveness-probe-SDVMWEM3.js → responsiveness-probe-EJJNNPNB.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-RR3LB5VH.js.map +0 -1
- /package/dist/{api-client-RRGOSC4A.js.map → api-client-ZCSKN3SJ.js.map} +0 -0
- /package/dist/{chunk-R7ZAJKMK.js.map → chunk-ZA34ZZCC.js.map} +0 -0
- /package/dist/{chunk-4D2JQ2HP.js.map → chunk-ZDO57BCK.js.map} +0 -0
- /package/dist/{claude-pair-runtime-DGLYU2HX.js.map → claude-pair-runtime-5EGI66ET.js.map} +0 -0
- /package/dist/{persistent-session-4AGRIK5W.js.map → persistent-session-XFZ43IDB.js.map} +0 -0
- /package/dist/{responsiveness-probe-SDVMWEM3.js.map → responsiveness-probe-EJJNNPNB.js.map} +0 -0
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1320" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-ZA34ZZCC.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZA34ZZCC.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
warnIgnoredIsolationAllowlist,
|
|
27
27
|
withheldRemoteMcpMessage,
|
|
28
28
|
withheldRemoteMcpReasonFor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2F4EHNRQ.js";
|
|
30
30
|
import {
|
|
31
31
|
readDailySessionPin,
|
|
32
32
|
sessionTranscriptDir
|
|
@@ -13882,4 +13882,4 @@ export {
|
|
|
13882
13882
|
managerInstallSystemUnitCommand,
|
|
13883
13883
|
managerUninstallSystemUnitCommand
|
|
13884
13884
|
};
|
|
13885
|
-
//# sourceMappingURL=chunk-
|
|
13885
|
+
//# sourceMappingURL=chunk-ZDO57BCK.js.map
|
|
@@ -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-XFZ43IDB.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-5EGI66ET.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-ZDO57BCK.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-ZA34ZZCC.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
webFetchBaselineValue,
|
|
186
186
|
webFetchRestartNeeded,
|
|
187
187
|
writeEgressAllowlist
|
|
188
|
-
} from "../chunk-
|
|
188
|
+
} from "../chunk-2F4EHNRQ.js";
|
|
189
189
|
import {
|
|
190
190
|
isAgentIdle,
|
|
191
191
|
isStaleForToday,
|
|
@@ -5829,6 +5829,23 @@ function staleGrantReason(currentGrantId) {
|
|
|
5829
5829
|
function singleStartLaunchAllowed(hold, grantId) {
|
|
5830
5830
|
return !(hold.wasHeld() && !hold.grantIsCurrent(grantId));
|
|
5831
5831
|
}
|
|
5832
|
+
var WINDOW_OPENED_DURING_BOOTSTRAP_REASON = "held: the host Claude login refresh window opened during the bootstrap, before the launch (ENG-12379)";
|
|
5833
|
+
function deferredLaunchFence(opts) {
|
|
5834
|
+
const { hold, grantId } = opts;
|
|
5835
|
+
if (opts.grantedSingleStart) {
|
|
5836
|
+
return {
|
|
5837
|
+
launchStillAllowed: () => singleStartLaunchAllowed(hold, grantId),
|
|
5838
|
+
fencedReason: () => staleGrantReason(hold.currentGrantId())
|
|
5839
|
+
};
|
|
5840
|
+
}
|
|
5841
|
+
if (opts.subscriptionBacked === true) {
|
|
5842
|
+
return {
|
|
5843
|
+
launchStillAllowed: () => !hold.wasInWindow(),
|
|
5844
|
+
fencedReason: () => WINDOW_OPENED_DURING_BOOTSTRAP_REASON
|
|
5845
|
+
};
|
|
5846
|
+
}
|
|
5847
|
+
return {};
|
|
5848
|
+
}
|
|
5832
5849
|
|
|
5833
5850
|
// src/lib/manager/host-auth-refresh-hold.ts
|
|
5834
5851
|
async function readHostExpiresAtMs() {
|
|
@@ -16297,7 +16314,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
16297
16314
|
};
|
|
16298
16315
|
}
|
|
16299
16316
|
var managerHostPost = async (path, body) => {
|
|
16300
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
16317
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-ZCSKN3SJ.js");
|
|
16301
16318
|
try {
|
|
16302
16319
|
const json = await api2.post(path, body);
|
|
16303
16320
|
return { status: 200, json };
|
|
@@ -18467,7 +18484,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
18467
18484
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
18468
18485
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
18469
18486
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
18470
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
18487
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-EJJNNPNB.js");
|
|
18471
18488
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
18472
18489
|
if (newest === null) return null;
|
|
18473
18490
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -19379,7 +19396,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
19379
19396
|
var lastVersionCheckAt = 0;
|
|
19380
19397
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
19381
19398
|
var lastResponsivenessProbeAt = 0;
|
|
19382
|
-
var agtCliVersion = true ? "0.28.
|
|
19399
|
+
var agtCliVersion = true ? "0.28.1320" : "dev";
|
|
19383
19400
|
function resolveBrewPath(execFileSync5) {
|
|
19384
19401
|
try {
|
|
19385
19402
|
const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -21515,7 +21532,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
21515
21532
|
if (codeNames.length === 0) return;
|
|
21516
21533
|
void (async () => {
|
|
21517
21534
|
try {
|
|
21518
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
21535
|
+
const { collectDiagnostics } = await import("../persistent-session-XFZ43IDB.js");
|
|
21519
21536
|
await api.post("/host/heartbeat", {
|
|
21520
21537
|
host_id: hostId,
|
|
21521
21538
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor, agentDiskFor)
|
|
@@ -21662,7 +21679,7 @@ async function pollCycleInner() {
|
|
|
21662
21679
|
}
|
|
21663
21680
|
try {
|
|
21664
21681
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
21665
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
21682
|
+
const { collectDiagnostics } = await import("../persistent-session-XFZ43IDB.js");
|
|
21666
21683
|
const recordedSinceHeartbeat = new Set(spawnOutcomesSinceHeartbeat.drain());
|
|
21667
21684
|
const diagCodeNames = heartbeatDiagnosticsCodeNames(agentState.persistentSessionAgents, recordedSinceHeartbeat);
|
|
21668
21685
|
const heartbeatSpawnOutcomeFor = spawnOutcomeIfRecorded(spawnOutcomeForDiagnostics, recordedSinceHeartbeat);
|
|
@@ -21998,7 +22015,7 @@ async function pollCycleInner() {
|
|
|
21998
22015
|
collectPanelessActivityProbes,
|
|
21999
22016
|
getResponsivenessIntervalMs,
|
|
22000
22017
|
occupancyQualificationClassifications
|
|
22001
|
-
} = await import("../responsiveness-probe-
|
|
22018
|
+
} = await import("../responsiveness-probe-EJJNNPNB.js");
|
|
22002
22019
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
22003
22020
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
22004
22021
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -22115,7 +22132,7 @@ async function pollCycleInner() {
|
|
|
22115
22132
|
collectResponsivenessProbes,
|
|
22116
22133
|
livePendingInboundOldestAgeSeconds,
|
|
22117
22134
|
parkPendingInbound
|
|
22118
|
-
} = await import("../responsiveness-probe-
|
|
22135
|
+
} = await import("../responsiveness-probe-EJJNNPNB.js");
|
|
22119
22136
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
22120
22137
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
22121
22138
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -22404,7 +22421,7 @@ async function pollCycleInner() {
|
|
|
22404
22421
|
}
|
|
22405
22422
|
);
|
|
22406
22423
|
if (!paneFatalTornDown) continue;
|
|
22407
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
22424
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-EJJNNPNB.js");
|
|
22408
22425
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
22409
22426
|
paneFatalStreak.delete(codeName);
|
|
22410
22427
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -22435,7 +22452,7 @@ async function pollCycleInner() {
|
|
|
22435
22452
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
22436
22453
|
bindSourceEscalations
|
|
22437
22454
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
22438
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
22455
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-XFZ43IDB.js");
|
|
22439
22456
|
const mountConfig = resolveTranscriptMountConfig();
|
|
22440
22457
|
const liveAgents = agentState.persistentSessionAgents;
|
|
22441
22458
|
for (const tracked of [
|
|
@@ -27317,13 +27334,18 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash21("sha256")
|
|
|
27317
27334
|
});
|
|
27318
27335
|
if (!spawnCopyFailedNow) spawnCopyFailures.noteSuccess(codeName);
|
|
27319
27336
|
const grantForLaunch = singleStartGrantId;
|
|
27320
|
-
const
|
|
27337
|
+
const launchFence = deferredLaunchFence({
|
|
27338
|
+
grantedSingleStart,
|
|
27339
|
+
subscriptionBacked,
|
|
27340
|
+
grantId: grantForLaunch,
|
|
27341
|
+
hold: hostAuthRefreshHold
|
|
27342
|
+
});
|
|
27321
27343
|
const lateRefusal = startWithIsolationBackstop(() => startPersistentSession({
|
|
27322
27344
|
codeName,
|
|
27323
27345
|
agentId: agent.agent_id,
|
|
27324
27346
|
isolationReadiness: startReadiness,
|
|
27325
|
-
launchStillAllowed,
|
|
27326
|
-
onLaunchFenced:
|
|
27347
|
+
launchStillAllowed: launchFence.launchStillAllowed,
|
|
27348
|
+
onLaunchFenced: launchFence.fencedReason ? () => closeSessionRunForCode(codeName, "cancelled", launchFence.fencedReason()) : void 0,
|
|
27327
27349
|
projectDir,
|
|
27328
27350
|
mcpConfigPath: spawnMcpConfigPath,
|
|
27329
27351
|
claudeMdPath,
|
|
@@ -27835,7 +27857,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
27835
27857
|
if (!refreshData) return;
|
|
27836
27858
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
27837
27859
|
const hostId = await getHostId();
|
|
27838
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
27860
|
+
const parkForRestart = await import("../responsiveness-probe-EJJNNPNB.js").then(
|
|
27839
27861
|
(m) => m.parkPendingInbound,
|
|
27840
27862
|
(err) => err
|
|
27841
27863
|
);
|
|
@@ -27916,7 +27938,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
27916
27938
|
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}`));
|
|
27917
27939
|
void (async () => {
|
|
27918
27940
|
try {
|
|
27919
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
27941
|
+
const { collectDiagnostics } = await import("../persistent-session-XFZ43IDB.js");
|
|
27920
27942
|
await api.post("/host/heartbeat", {
|
|
27921
27943
|
host_id: hostId,
|
|
27922
27944
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor, agentDiskFor)
|
|
@@ -27969,7 +27991,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
27969
27991
|
}
|
|
27970
27992
|
try {
|
|
27971
27993
|
const hostId = await getHostId();
|
|
27972
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
27994
|
+
const { collectDiagnostics } = await import("../persistent-session-XFZ43IDB.js");
|
|
27973
27995
|
await api.post("/host/heartbeat", {
|
|
27974
27996
|
host_id: hostId,
|
|
27975
27997
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor, agentDiskFor)
|
|
@@ -28845,7 +28867,7 @@ async function processClaudePairSessions(agents) {
|
|
|
28845
28867
|
snapshotPairConfig,
|
|
28846
28868
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
28847
28869
|
planPairStartReport
|
|
28848
|
-
} = await import("../claude-pair-runtime-
|
|
28870
|
+
} = await import("../claude-pair-runtime-5EGI66ET.js");
|
|
28849
28871
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
28850
28872
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
28851
28873
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|