@integrity-labs/agt-cli 0.28.1101 → 0.28.1103
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 +5 -5
- package/dist/{chunk-U2CHXYDJ.js → chunk-FQPGSXUX.js} +2 -2
- package/dist/{chunk-3ZUCX5MN.js → chunk-HTK57ZUK.js} +401 -4
- package/dist/chunk-HTK57ZUK.js.map +1 -0
- package/dist/{chunk-NULQEO5H.js → chunk-NNCRFBTL.js} +1 -1
- package/dist/{chunk-NULQEO5H.js.map → chunk-NNCRFBTL.js.map} +1 -1
- package/dist/{claude-pair-runtime-OTQOPMBH.js → claude-pair-runtime-7K2E2HMM.js} +2 -2
- package/dist/lib/manager-worker.js +22 -16
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-RVYRYF6U.js → persistent-session-Q2HSRKRJ.js} +3 -3
- package/dist/{responsiveness-probe-OPCRQN27.js → responsiveness-probe-JC5WBBFG.js} +3 -3
- package/dist/{session-auth-dead-XOCRHVHW.js → session-auth-dead-MDHN6IVP.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3ZUCX5MN.js.map +0 -1
- /package/dist/{chunk-U2CHXYDJ.js.map → chunk-FQPGSXUX.js.map} +0 -0
- /package/dist/{claude-pair-runtime-OTQOPMBH.js.map → claude-pair-runtime-7K2E2HMM.js.map} +0 -0
- /package/dist/{persistent-session-RVYRYF6U.js.map → persistent-session-Q2HSRKRJ.js.map} +0 -0
- /package/dist/{responsiveness-probe-OPCRQN27.js.map → responsiveness-probe-JC5WBBFG.js.map} +0 -0
- /package/dist/{session-auth-dead-XOCRHVHW.js.map → session-auth-dead-MDHN6IVP.js.map} +0 -0
|
@@ -266,7 +266,7 @@ async function spawnPairSession(session) {
|
|
|
266
266
|
return { ok: true };
|
|
267
267
|
} catch {
|
|
268
268
|
}
|
|
269
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
269
|
+
const { resolveClaudeBinary } = await import("./persistent-session-Q2HSRKRJ.js");
|
|
270
270
|
const claudeBin = resolveClaudeBinary();
|
|
271
271
|
const pairEnv = {
|
|
272
272
|
...process.env,
|
|
@@ -734,4 +734,4 @@ export {
|
|
|
734
734
|
startClaudePair,
|
|
735
735
|
submitClaudePairCode
|
|
736
736
|
};
|
|
737
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
737
|
+
//# sourceMappingURL=claude-pair-runtime-7K2E2HMM.js.map
|
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
provisionAutoKanbanProgressHook,
|
|
52
52
|
provisionChannelProgressHook,
|
|
53
53
|
provisionIsolationHook,
|
|
54
|
+
provisionLongCommandHook,
|
|
54
55
|
provisionOrientHook,
|
|
55
56
|
provisionPreCompactHook,
|
|
56
57
|
provisionSessionStateHook,
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
safeWriteJsonAtomic,
|
|
68
69
|
setConfigHash,
|
|
69
70
|
tripClass
|
|
70
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-HTK57ZUK.js";
|
|
71
72
|
import {
|
|
72
73
|
getProjectDir as getProjectDir2,
|
|
73
74
|
getReadyTasks,
|
|
@@ -154,7 +155,7 @@ import {
|
|
|
154
155
|
webFetchBaselineValue,
|
|
155
156
|
webFetchRestartNeeded,
|
|
156
157
|
writeEgressAllowlist
|
|
157
|
-
} from "../chunk-
|
|
158
|
+
} from "../chunk-FQPGSXUX.js";
|
|
158
159
|
import {
|
|
159
160
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
160
161
|
AnchorSessionClient,
|
|
@@ -264,7 +265,7 @@ import {
|
|
|
264
265
|
subagentActivityAgeSeconds,
|
|
265
266
|
sumTranscriptUsageInWindow,
|
|
266
267
|
transcriptActivityAgeSeconds
|
|
267
|
-
} from "../chunk-
|
|
268
|
+
} from "../chunk-NNCRFBTL.js";
|
|
268
269
|
import {
|
|
269
270
|
classifyUnanswerablePane,
|
|
270
271
|
paneRemedy
|
|
@@ -14142,7 +14143,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
14142
14143
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
14143
14144
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
14144
14145
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
14145
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
14146
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-JC5WBBFG.js");
|
|
14146
14147
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
14147
14148
|
if (newest === null) return null;
|
|
14148
14149
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -14900,7 +14901,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
14900
14901
|
var lastVersionCheckAt = 0;
|
|
14901
14902
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
14902
14903
|
var lastResponsivenessProbeAt = 0;
|
|
14903
|
-
var agtCliVersion = true ? "0.28.
|
|
14904
|
+
var agtCliVersion = true ? "0.28.1103" : "dev";
|
|
14904
14905
|
function resolveBrewPath(execFileSync3) {
|
|
14905
14906
|
try {
|
|
14906
14907
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -16517,7 +16518,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
16517
16518
|
if (codeNames.length === 0) return;
|
|
16518
16519
|
void (async () => {
|
|
16519
16520
|
try {
|
|
16520
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
16521
|
+
const { collectDiagnostics } = await import("../persistent-session-Q2HSRKRJ.js");
|
|
16521
16522
|
await api.post("/host/heartbeat", {
|
|
16522
16523
|
host_id: hostId,
|
|
16523
16524
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
|
|
@@ -16659,7 +16660,7 @@ async function pollCycleInner() {
|
|
|
16659
16660
|
}
|
|
16660
16661
|
try {
|
|
16661
16662
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
16662
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
16663
|
+
const { collectDiagnostics } = await import("../persistent-session-Q2HSRKRJ.js");
|
|
16663
16664
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
16664
16665
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor) : void 0;
|
|
16665
16666
|
let tailscaleHostname;
|
|
@@ -16867,7 +16868,7 @@ async function pollCycleInner() {
|
|
|
16867
16868
|
collectPanelessActivityProbes,
|
|
16868
16869
|
getResponsivenessIntervalMs,
|
|
16869
16870
|
occupancyQualificationClassifications
|
|
16870
|
-
} = await import("../responsiveness-probe-
|
|
16871
|
+
} = await import("../responsiveness-probe-JC5WBBFG.js");
|
|
16871
16872
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
16872
16873
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
16873
16874
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -16984,7 +16985,7 @@ async function pollCycleInner() {
|
|
|
16984
16985
|
collectResponsivenessProbes,
|
|
16985
16986
|
livePendingInboundOldestAgeSeconds,
|
|
16986
16987
|
parkPendingInbound
|
|
16987
|
-
} = await import("../responsiveness-probe-
|
|
16988
|
+
} = await import("../responsiveness-probe-JC5WBBFG.js");
|
|
16988
16989
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
|
|
16989
16990
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
16990
16991
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -17270,7 +17271,7 @@ async function pollCycleInner() {
|
|
|
17270
17271
|
}
|
|
17271
17272
|
}
|
|
17272
17273
|
);
|
|
17273
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
17274
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-JC5WBBFG.js");
|
|
17274
17275
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
17275
17276
|
paneFatalStreak.delete(codeName);
|
|
17276
17277
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -17301,7 +17302,7 @@ async function pollCycleInner() {
|
|
|
17301
17302
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
17302
17303
|
bindSourceEscalations
|
|
17303
17304
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
17304
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
17305
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-Q2HSRKRJ.js");
|
|
17305
17306
|
const mountConfig = resolveTranscriptMountConfig();
|
|
17306
17307
|
const liveAgents = agentState.persistentSessionAgents;
|
|
17307
17308
|
for (const tracked of [
|
|
@@ -17466,7 +17467,7 @@ async function pollCycleInner() {
|
|
|
17466
17467
|
}
|
|
17467
17468
|
try {
|
|
17468
17469
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
17469
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
17470
|
+
const { probeSessionAuth } = await import("../session-auth-dead-MDHN6IVP.js");
|
|
17470
17471
|
const observations = [];
|
|
17471
17472
|
const pendingCacheCommits = [];
|
|
17472
17473
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -21523,6 +21524,11 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash20("sha256")
|
|
|
21523
21524
|
} catch (err) {
|
|
21524
21525
|
log(`[persistent-session] Failed to provision channel-progress hook for '${codeName}': ${err.message}`);
|
|
21525
21526
|
}
|
|
21527
|
+
try {
|
|
21528
|
+
provisionLongCommandHook(codeName);
|
|
21529
|
+
} catch (err) {
|
|
21530
|
+
log(`[persistent-session] Failed to provision long-command hook for '${codeName}': ${err.message}`);
|
|
21531
|
+
}
|
|
21526
21532
|
try {
|
|
21527
21533
|
provisionSessionStateHook(codeName);
|
|
21528
21534
|
} catch (err) {
|
|
@@ -22048,7 +22054,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
22048
22054
|
try {
|
|
22049
22055
|
const freshId = rotateSessionForWedge(codeName);
|
|
22050
22056
|
consecutiveWedgeCycles.delete(codeName);
|
|
22051
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
22057
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-JC5WBBFG.js");
|
|
22052
22058
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
22053
22059
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
22054
22060
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -22091,7 +22097,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
22091
22097
|
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}`));
|
|
22092
22098
|
void (async () => {
|
|
22093
22099
|
try {
|
|
22094
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
22100
|
+
const { collectDiagnostics } = await import("../persistent-session-Q2HSRKRJ.js");
|
|
22095
22101
|
await api.post("/host/heartbeat", {
|
|
22096
22102
|
host_id: hostId,
|
|
22097
22103
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
|
|
@@ -22142,7 +22148,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
22142
22148
|
}
|
|
22143
22149
|
try {
|
|
22144
22150
|
const hostId = await getHostId();
|
|
22145
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
22151
|
+
const { collectDiagnostics } = await import("../persistent-session-Q2HSRKRJ.js");
|
|
22146
22152
|
await api.post("/host/heartbeat", {
|
|
22147
22153
|
host_id: hostId,
|
|
22148
22154
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
|
|
@@ -22815,7 +22821,7 @@ async function processClaudePairSessions(agents) {
|
|
|
22815
22821
|
// cannot take it for itself — by the time it runs, the write it is looking
|
|
22816
22822
|
// for may already have happened.
|
|
22817
22823
|
snapshotPairConfig
|
|
22818
|
-
} = await import("../claude-pair-runtime-
|
|
22824
|
+
} = await import("../claude-pair-runtime-7K2E2HMM.js");
|
|
22819
22825
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
22820
22826
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
22821
22827
|
const killed = await killPairSession(pairTmuxSession(pairId));
|