@integrity-labs/agt-cli 0.28.282 → 0.28.284
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-6SRVCYKR.js → chunk-6Y7K5FLO.js} +3 -3
- package/dist/{chunk-C4QMCOAN.js → chunk-TZKHPDOH.js} +34 -4
- package/dist/chunk-TZKHPDOH.js.map +1 -0
- package/dist/{claude-pair-runtime-JOYTDNXZ.js → claude-pair-runtime-2VTCDNBY.js} +2 -2
- package/dist/lib/manager-worker.js +19 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +21 -5
- package/dist/mcp/origami.js +23 -1
- package/dist/{persistent-session-7H3IYXXP.js → persistent-session-MIA4XYG4.js} +2 -2
- package/dist/{responsiveness-probe-PFJM4QMQ.js → responsiveness-probe-C4OMAIZQ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-C4QMCOAN.js.map +0 -1
- /package/dist/{chunk-6SRVCYKR.js.map → chunk-6Y7K5FLO.js.map} +0 -0
- /package/dist/{claude-pair-runtime-JOYTDNXZ.js.map → claude-pair-runtime-2VTCDNBY.js.map} +0 -0
- /package/dist/{persistent-session-7H3IYXXP.js.map → persistent-session-MIA4XYG4.js.map} +0 -0
- /package/dist/{responsiveness-probe-PFJM4QMQ.js.map → responsiveness-probe-C4OMAIZQ.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-MIA4XYG4.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-2VTCDNBY.js.map
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
requireHost,
|
|
39
39
|
safeWriteJsonAtomic,
|
|
40
40
|
setConfigHash
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-6Y7K5FLO.js";
|
|
42
42
|
import {
|
|
43
43
|
getProjectDir as getProjectDir2,
|
|
44
44
|
getReadyTasks,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
takeZombieDetection,
|
|
126
126
|
transcriptActivityAgeSeconds,
|
|
127
127
|
writeEgressAllowlist
|
|
128
|
-
} from "../chunk-
|
|
128
|
+
} from "../chunk-TZKHPDOH.js";
|
|
129
129
|
import {
|
|
130
130
|
reapOrphanChannelMcps
|
|
131
131
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -6886,7 +6886,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
6886
6886
|
var lastVersionCheckAt = 0;
|
|
6887
6887
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6888
6888
|
var lastResponsivenessProbeAt = 0;
|
|
6889
|
-
var agtCliVersion = true ? "0.28.
|
|
6889
|
+
var agtCliVersion = true ? "0.28.284" : "dev";
|
|
6890
6890
|
function resolveBrewPath(execFileSync2) {
|
|
6891
6891
|
try {
|
|
6892
6892
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7732,11 +7732,14 @@ function reorderRestartedFirst(agents, restartedIds) {
|
|
|
7732
7732
|
}
|
|
7733
7733
|
return [...restarted, ...rest];
|
|
7734
7734
|
}
|
|
7735
|
+
function resolveManagedMcpServerId(toolkit) {
|
|
7736
|
+
return toolkit.mcp_server_key ?? toolkit.toolkit_id.replace(/[^a-z0-9]/gi, "_").toLowerCase();
|
|
7737
|
+
}
|
|
7735
7738
|
function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
7736
7739
|
if (codeNames.length === 0) return;
|
|
7737
7740
|
void (async () => {
|
|
7738
7741
|
try {
|
|
7739
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7742
|
+
const { collectDiagnostics } = await import("../persistent-session-MIA4XYG4.js");
|
|
7740
7743
|
await api.post("/host/heartbeat", {
|
|
7741
7744
|
host_id: hostId,
|
|
7742
7745
|
agent_diagnostics: collectDiagnostics(codeNames)
|
|
@@ -7834,7 +7837,7 @@ async function pollCycle() {
|
|
|
7834
7837
|
}
|
|
7835
7838
|
try {
|
|
7836
7839
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
7837
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7840
|
+
const { collectDiagnostics } = await import("../persistent-session-MIA4XYG4.js");
|
|
7838
7841
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
7839
7842
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
7840
7843
|
let tailscaleHostname;
|
|
@@ -7982,7 +7985,7 @@ async function pollCycle() {
|
|
|
7982
7985
|
const {
|
|
7983
7986
|
collectResponsivenessProbes,
|
|
7984
7987
|
getResponsivenessIntervalMs
|
|
7985
|
-
} = await import("../responsiveness-probe-
|
|
7988
|
+
} = await import("../responsiveness-probe-C4OMAIZQ.js");
|
|
7986
7989
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
7987
7990
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
7988
7991
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -8014,7 +8017,7 @@ async function pollCycle() {
|
|
|
8014
8017
|
collectResponsivenessProbes,
|
|
8015
8018
|
livePendingInboundOldestAgeSeconds,
|
|
8016
8019
|
parkPendingInbound
|
|
8017
|
-
} = await import("../responsiveness-probe-
|
|
8020
|
+
} = await import("../responsiveness-probe-C4OMAIZQ.js");
|
|
8018
8021
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
8019
8022
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
8020
8023
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -9602,7 +9605,7 @@ async function processAgent(agent, agentStates) {
|
|
|
9602
9605
|
const expectedServerIds = /* @__PURE__ */ new Set();
|
|
9603
9606
|
const desiredEntries = [];
|
|
9604
9607
|
for (const tk of agentToolkits) {
|
|
9605
|
-
const serverId = tk
|
|
9608
|
+
const serverId = resolveManagedMcpServerId(tk);
|
|
9606
9609
|
expectedServerIds.add(serverId);
|
|
9607
9610
|
managedToolkitIdByAgentAndServerId.set(
|
|
9608
9611
|
managedToolkitMapKey(agent.agent_id, serverId),
|
|
@@ -10669,6 +10672,10 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash11("sha256")
|
|
|
10669
10672
|
// unless an operator env override is already present (which keeps precedence).
|
|
10670
10673
|
slackReplyBindingMode: hostFlagStore().getString("slack-reply-binding"),
|
|
10671
10674
|
blockTurnEndAllMarkers: hostFlagStore().getBoolean("block-turn-end-all-markers"),
|
|
10675
|
+
// ENG-7493 (ADR-0044): materialize kanban-waiting-status into the spawn env
|
|
10676
|
+
// (AGT_KANBAN_WAITING_ENABLED) so the stdio kanban MCP exposes the `waiting`
|
|
10677
|
+
// option. Host-grained (HostFlagStore); the per-org API gate is authoritative.
|
|
10678
|
+
kanbanWaitingEnabled: hostFlagStore().getBoolean("kanban-waiting-status"),
|
|
10672
10679
|
egressAllowlist,
|
|
10673
10680
|
log
|
|
10674
10681
|
});
|
|
@@ -10930,7 +10937,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
10930
10937
|
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}`));
|
|
10931
10938
|
void (async () => {
|
|
10932
10939
|
try {
|
|
10933
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10940
|
+
const { collectDiagnostics } = await import("../persistent-session-MIA4XYG4.js");
|
|
10934
10941
|
await api.post("/host/heartbeat", {
|
|
10935
10942
|
host_id: hostId,
|
|
10936
10943
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -10980,7 +10987,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
10980
10987
|
}
|
|
10981
10988
|
try {
|
|
10982
10989
|
const hostId = await getHostId();
|
|
10983
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10990
|
+
const { collectDiagnostics } = await import("../persistent-session-MIA4XYG4.js");
|
|
10984
10991
|
await api.post("/host/heartbeat", {
|
|
10985
10992
|
host_id: hostId,
|
|
10986
10993
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -11384,7 +11391,7 @@ async function processClaudePairSessions(agents) {
|
|
|
11384
11391
|
killPairSession,
|
|
11385
11392
|
pairTmuxSession,
|
|
11386
11393
|
finalizeClaudePairOnboarding
|
|
11387
|
-
} = await import("../claude-pair-runtime-
|
|
11394
|
+
} = await import("../claude-pair-runtime-2VTCDNBY.js");
|
|
11388
11395
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
11389
11396
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
11390
11397
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -12296,6 +12303,7 @@ export {
|
|
|
12296
12303
|
maybeInjectKanbanCheck,
|
|
12297
12304
|
maybeUpgradeClaudeCode,
|
|
12298
12305
|
reorderRestartedFirst,
|
|
12306
|
+
resolveManagedMcpServerId,
|
|
12299
12307
|
restartReasonBindsNewMcp,
|
|
12300
12308
|
shouldSkipRevokedCleanup,
|
|
12301
12309
|
shouldUpdateOnLatest,
|