@integrity-labs/agt-cli 0.28.241 → 0.28.243
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 +4 -4
- package/dist/{chunk-ALYKJRFJ.js → chunk-U2WPXD6Q.js} +3 -3
- package/dist/{chunk-LSOXMJYA.js → chunk-ZS2T67OF.js} +16 -3
- package/dist/chunk-ZS2T67OF.js.map +1 -0
- package/dist/{claude-pair-runtime-4NHJGZBH.js → claude-pair-runtime-OURKHXEW.js} +2 -2
- package/dist/lib/manager-worker.js +30 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-W2MICXSS.js → persistent-session-X427LHOW.js} +2 -2
- package/dist/{responsiveness-probe-R7NX5NRH.js → responsiveness-probe-CFF27A7B.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-LSOXMJYA.js.map +0 -1
- /package/dist/{chunk-ALYKJRFJ.js.map → chunk-U2WPXD6Q.js.map} +0 -0
- /package/dist/{claude-pair-runtime-4NHJGZBH.js.map → claude-pair-runtime-OURKHXEW.js.map} +0 -0
- /package/dist/{persistent-session-W2MICXSS.js.map → persistent-session-X427LHOW.js.map} +0 -0
- /package/dist/{responsiveness-probe-R7NX5NRH.js.map → responsiveness-probe-CFF27A7B.js.map} +0 -0
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-X427LHOW.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-OURKHXEW.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
requireHost,
|
|
38
38
|
safeWriteJsonAtomic,
|
|
39
39
|
setConfigHash
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-U2WPXD6Q.js";
|
|
41
41
|
import {
|
|
42
42
|
getProjectDir as getProjectDir2,
|
|
43
43
|
getReadyTasks,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
takeZombieDetection,
|
|
123
123
|
transcriptActivityAgeSeconds,
|
|
124
124
|
writeEgressAllowlist
|
|
125
|
-
} from "../chunk-
|
|
125
|
+
} from "../chunk-ZS2T67OF.js";
|
|
126
126
|
import {
|
|
127
127
|
reapOrphanChannelMcps
|
|
128
128
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -6509,7 +6509,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
6509
6509
|
var lastVersionCheckAt = 0;
|
|
6510
6510
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6511
6511
|
var lastResponsivenessProbeAt = 0;
|
|
6512
|
-
var agtCliVersion = true ? "0.28.
|
|
6512
|
+
var agtCliVersion = true ? "0.28.243" : "dev";
|
|
6513
6513
|
function resolveBrewPath(execFileSync2) {
|
|
6514
6514
|
try {
|
|
6515
6515
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7346,6 +7346,15 @@ ${SKILLS_INDEX_END}`;
|
|
|
7346
7346
|
}
|
|
7347
7347
|
}
|
|
7348
7348
|
var consecutivePollFailures = 0;
|
|
7349
|
+
function reorderRestartedFirst(agents, restartedIds) {
|
|
7350
|
+
if (restartedIds.size === 0) return agents;
|
|
7351
|
+
const restarted = [];
|
|
7352
|
+
const rest = [];
|
|
7353
|
+
for (const a of agents) {
|
|
7354
|
+
(restartedIds.has(a.agent_id) ? restarted : rest).push(a);
|
|
7355
|
+
}
|
|
7356
|
+
return [...restarted, ...rest];
|
|
7357
|
+
}
|
|
7349
7358
|
async function pollCycle() {
|
|
7350
7359
|
if (!config) return;
|
|
7351
7360
|
if (restartAfterUpgrade) return;
|
|
@@ -7434,7 +7443,7 @@ async function pollCycle() {
|
|
|
7434
7443
|
}
|
|
7435
7444
|
try {
|
|
7436
7445
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
7437
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7446
|
+
const { collectDiagnostics } = await import("../persistent-session-X427LHOW.js");
|
|
7438
7447
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
7439
7448
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
7440
7449
|
let tailscaleHostname;
|
|
@@ -7582,7 +7591,7 @@ async function pollCycle() {
|
|
|
7582
7591
|
const {
|
|
7583
7592
|
collectResponsivenessProbes,
|
|
7584
7593
|
getResponsivenessIntervalMs
|
|
7585
|
-
} = await import("../responsiveness-probe-
|
|
7594
|
+
} = await import("../responsiveness-probe-CFF27A7B.js");
|
|
7586
7595
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
7587
7596
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
7588
7597
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -7614,7 +7623,7 @@ async function pollCycle() {
|
|
|
7614
7623
|
collectResponsivenessProbes,
|
|
7615
7624
|
livePendingInboundOldestAgeSeconds,
|
|
7616
7625
|
parkPendingInbound
|
|
7617
|
-
} = await import("../responsiveness-probe-
|
|
7626
|
+
} = await import("../responsiveness-probe-CFF27A7B.js");
|
|
7618
7627
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
7619
7628
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
7620
7629
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -7859,7 +7868,8 @@ async function pollCycle() {
|
|
|
7859
7868
|
}
|
|
7860
7869
|
activeChannels.clear();
|
|
7861
7870
|
const agentStates = [];
|
|
7862
|
-
|
|
7871
|
+
const processOrder = hostFlagStore().getBoolean("fast-mcp-restart-respawn") ? reorderRestartedFirst(agents, new Set(restartAcks.keys())) : agents;
|
|
7872
|
+
for (const agent of processOrder) {
|
|
7863
7873
|
if (restartInFlight.has(agent.agent_id)) {
|
|
7864
7874
|
const existing = state6.agents.find((a) => a.agentId === agent.agent_id);
|
|
7865
7875
|
if (existing) {
|
|
@@ -7910,7 +7920,7 @@ async function pollCycle() {
|
|
|
7910
7920
|
if (restartedCodeNames.length > 0) {
|
|
7911
7921
|
void (async () => {
|
|
7912
7922
|
try {
|
|
7913
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7923
|
+
const { collectDiagnostics } = await import("../persistent-session-X427LHOW.js");
|
|
7914
7924
|
const freshDiagnostics = collectDiagnostics(restartedCodeNames);
|
|
7915
7925
|
await api.post("/host/heartbeat", {
|
|
7916
7926
|
host_id: hostId,
|
|
@@ -10169,6 +10179,14 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash10("sha256")
|
|
|
10169
10179
|
} : null,
|
|
10170
10180
|
runId: sessionRunResult.run_id,
|
|
10171
10181
|
agentTimezone,
|
|
10182
|
+
// ENG-6476: materialize the host-side reply-routing flags into the agent
|
|
10183
|
+
// spawn env so the channel MCP + Stop hook (which can't call the flag
|
|
10184
|
+
// evaluator) see the values the operator set. The HostFlagStore resolves
|
|
10185
|
+
// them from the flags-cache the manager already maintains; the launcher
|
|
10186
|
+
// injects AGT_SLACK_REPLY_BINDING / AGT_BLOCK_TURN_END_ALL_MARKERS_ENABLED
|
|
10187
|
+
// unless an operator env override is already present (which keeps precedence).
|
|
10188
|
+
slackReplyBindingMode: hostFlagStore().getString("slack-reply-binding"),
|
|
10189
|
+
blockTurnEndAllMarkers: hostFlagStore().getBoolean("block-turn-end-all-markers"),
|
|
10172
10190
|
egressAllowlist,
|
|
10173
10191
|
log
|
|
10174
10192
|
});
|
|
@@ -10429,7 +10447,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
10429
10447
|
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}`));
|
|
10430
10448
|
void (async () => {
|
|
10431
10449
|
try {
|
|
10432
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10450
|
+
const { collectDiagnostics } = await import("../persistent-session-X427LHOW.js");
|
|
10433
10451
|
await api.post("/host/heartbeat", {
|
|
10434
10452
|
host_id: hostId,
|
|
10435
10453
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -10479,7 +10497,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
10479
10497
|
}
|
|
10480
10498
|
try {
|
|
10481
10499
|
const hostId = await getHostId();
|
|
10482
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10500
|
+
const { collectDiagnostics } = await import("../persistent-session-X427LHOW.js");
|
|
10483
10501
|
await api.post("/host/heartbeat", {
|
|
10484
10502
|
host_id: hostId,
|
|
10485
10503
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -10870,7 +10888,7 @@ async function processClaudePairSessions(agents) {
|
|
|
10870
10888
|
killPairSession,
|
|
10871
10889
|
pairTmuxSession,
|
|
10872
10890
|
finalizeClaudePairOnboarding
|
|
10873
|
-
} = await import("../claude-pair-runtime-
|
|
10891
|
+
} = await import("../claude-pair-runtime-OURKHXEW.js");
|
|
10874
10892
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
10875
10893
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
10876
10894
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -11767,6 +11785,7 @@ export {
|
|
|
11767
11785
|
markAgentForFreshMemorySync,
|
|
11768
11786
|
maybeInjectKanbanCheck,
|
|
11769
11787
|
maybeUpgradeClaudeCode,
|
|
11788
|
+
reorderRestartedFirst,
|
|
11770
11789
|
restartReasonBindsNewMcp,
|
|
11771
11790
|
shouldSkipRevokedCleanup,
|
|
11772
11791
|
shouldUpdateOnLatest,
|