@integrity-labs/agt-cli 0.28.366 → 0.28.368
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-YUQIJ2KO.js → chunk-3QBV4ZA3.js} +3 -3
- package/dist/{chunk-EFIXTBUQ.js → chunk-COOBM6RF.js} +84 -43
- package/dist/{chunk-EFIXTBUQ.js.map → chunk-COOBM6RF.js.map} +1 -1
- package/dist/{claude-pair-runtime-Y6CE4MNP.js → claude-pair-runtime-SNLRINSI.js} +2 -2
- package/dist/lib/manager-worker.js +21 -10
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +231 -14
- package/dist/{persistent-session-YMOHCLWV.js → persistent-session-O2RYNO42.js} +2 -2
- package/dist/{responsiveness-probe-WATZJVZU.js → responsiveness-probe-IZJNJO2C.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-YUQIJ2KO.js.map → chunk-3QBV4ZA3.js.map} +0 -0
- /package/dist/{claude-pair-runtime-Y6CE4MNP.js.map → claude-pair-runtime-SNLRINSI.js.map} +0 -0
- /package/dist/{persistent-session-YMOHCLWV.js.map → persistent-session-O2RYNO42.js.map} +0 -0
- /package/dist/{responsiveness-probe-WATZJVZU.js.map → responsiveness-probe-IZJNJO2C.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-O2RYNO42.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-SNLRINSI.js.map
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
resolveEffectivePinRaw,
|
|
44
44
|
safeWriteJsonAtomic,
|
|
45
45
|
setConfigHash
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-3QBV4ZA3.js";
|
|
47
47
|
import {
|
|
48
48
|
getProjectDir as getProjectDir2,
|
|
49
49
|
getReadyTasks,
|
|
@@ -107,6 +107,7 @@ import {
|
|
|
107
107
|
isolationMode,
|
|
108
108
|
laneTagFragment,
|
|
109
109
|
log,
|
|
110
|
+
mergeOpencodeConfigArtifact,
|
|
110
111
|
minutesSinceLocalMidnight,
|
|
111
112
|
paneLogPath,
|
|
112
113
|
parseDeliverAssertion,
|
|
@@ -146,7 +147,7 @@ import {
|
|
|
146
147
|
toOpencodeModel,
|
|
147
148
|
transcriptActivityAgeSeconds,
|
|
148
149
|
writeEgressAllowlist
|
|
149
|
-
} from "../chunk-
|
|
150
|
+
} from "../chunk-COOBM6RF.js";
|
|
150
151
|
import {
|
|
151
152
|
reapOrphanChannelMcps
|
|
152
153
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -9071,7 +9072,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9071
9072
|
var lastVersionCheckAt = 0;
|
|
9072
9073
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9073
9074
|
var lastResponsivenessProbeAt = 0;
|
|
9074
|
-
var agtCliVersion = true ? "0.28.
|
|
9075
|
+
var agtCliVersion = true ? "0.28.368" : "dev";
|
|
9075
9076
|
function resolveBrewPath(execFileSync2) {
|
|
9076
9077
|
try {
|
|
9077
9078
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10090,7 +10091,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
10090
10091
|
if (codeNames.length === 0) return;
|
|
10091
10092
|
void (async () => {
|
|
10092
10093
|
try {
|
|
10093
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10094
|
+
const { collectDiagnostics } = await import("../persistent-session-O2RYNO42.js");
|
|
10094
10095
|
await api.post("/host/heartbeat", {
|
|
10095
10096
|
host_id: hostId,
|
|
10096
10097
|
agent_diagnostics: collectDiagnostics(codeNames)
|
|
@@ -10189,7 +10190,7 @@ async function pollCycle() {
|
|
|
10189
10190
|
}
|
|
10190
10191
|
try {
|
|
10191
10192
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
10192
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10193
|
+
const { collectDiagnostics } = await import("../persistent-session-O2RYNO42.js");
|
|
10193
10194
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
10194
10195
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
10195
10196
|
let tailscaleHostname;
|
|
@@ -10344,7 +10345,7 @@ async function pollCycle() {
|
|
|
10344
10345
|
const {
|
|
10345
10346
|
collectResponsivenessProbes,
|
|
10346
10347
|
getResponsivenessIntervalMs
|
|
10347
|
-
} = await import("../responsiveness-probe-
|
|
10348
|
+
} = await import("../responsiveness-probe-IZJNJO2C.js");
|
|
10348
10349
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
10349
10350
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
10350
10351
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -10376,7 +10377,7 @@ async function pollCycle() {
|
|
|
10376
10377
|
collectResponsivenessProbes,
|
|
10377
10378
|
livePendingInboundOldestAgeSeconds,
|
|
10378
10379
|
parkPendingInbound
|
|
10379
|
-
} = await import("../responsiveness-probe-
|
|
10380
|
+
} = await import("../responsiveness-probe-IZJNJO2C.js");
|
|
10380
10381
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-HYOOQV4A.js");
|
|
10381
10382
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
10382
10383
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -11231,6 +11232,16 @@ async function processAgent(agent, agentStates) {
|
|
|
11231
11232
|
};
|
|
11232
11233
|
newHash = sha256(JSON.stringify(generatorServers));
|
|
11233
11234
|
existingHash = existingRaw ? sha256(JSON.stringify(sliceGeneratorKeys(existingServers))) : null;
|
|
11235
|
+
} else if (artifact.relativePath === "opencode.json") {
|
|
11236
|
+
let existingRaw = null;
|
|
11237
|
+
try {
|
|
11238
|
+
existingRaw = readFileSync17(filePath, "utf-8");
|
|
11239
|
+
} catch {
|
|
11240
|
+
}
|
|
11241
|
+
const mergeResult = mergeOpencodeConfigArtifact(artifact.content, existingRaw);
|
|
11242
|
+
writeContent = mergeResult.content;
|
|
11243
|
+
newHash = sha256(mergeResult.generatorSlice);
|
|
11244
|
+
existingHash = mergeResult.existingSlice ? sha256(mergeResult.existingSlice) : null;
|
|
11234
11245
|
} else {
|
|
11235
11246
|
newHash = sha256(artifact.content);
|
|
11236
11247
|
existingHash = hashFile(filePath);
|
|
@@ -13531,7 +13542,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
13531
13542
|
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}`));
|
|
13532
13543
|
void (async () => {
|
|
13533
13544
|
try {
|
|
13534
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13545
|
+
const { collectDiagnostics } = await import("../persistent-session-O2RYNO42.js");
|
|
13535
13546
|
await api.post("/host/heartbeat", {
|
|
13536
13547
|
host_id: hostId,
|
|
13537
13548
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -13581,7 +13592,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
13581
13592
|
}
|
|
13582
13593
|
try {
|
|
13583
13594
|
const hostId = await getHostId();
|
|
13584
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13595
|
+
const { collectDiagnostics } = await import("../persistent-session-O2RYNO42.js");
|
|
13585
13596
|
await api.post("/host/heartbeat", {
|
|
13586
13597
|
host_id: hostId,
|
|
13587
13598
|
agent_diagnostics: collectDiagnostics([codeName])
|
|
@@ -14079,7 +14090,7 @@ async function processClaudePairSessions(agents) {
|
|
|
14079
14090
|
killPairSession,
|
|
14080
14091
|
pairTmuxSession,
|
|
14081
14092
|
finalizeClaudePairOnboarding
|
|
14082
|
-
} = await import("../claude-pair-runtime-
|
|
14093
|
+
} = await import("../claude-pair-runtime-SNLRINSI.js");
|
|
14083
14094
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
14084
14095
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
14085
14096
|
const killed = await killPairSession(pairTmuxSession(pairId));
|