@integrity-labs/agt-cli 0.28.430 → 0.28.432
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-EREBH2LV.js → chunk-6A5BDKCN.js} +199 -274
- package/dist/chunk-6A5BDKCN.js.map +1 -0
- package/dist/{chunk-ARNUO2QE.js → chunk-X6OWJOAL.js} +3 -3
- package/dist/{claude-pair-runtime-44RPFRIE.js → claude-pair-runtime-WZU2YZ3I.js} +2 -2
- package/dist/lib/manager-worker.js +10 -10
- package/dist/mcp/direct-chat-channel.js +7 -0
- package/dist/{persistent-session-A4VUV3UI.js → persistent-session-7XQDAZW5.js} +2 -2
- package/dist/{responsiveness-probe-QRVMR22C.js → responsiveness-probe-QL66KMNI.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-EREBH2LV.js.map +0 -1
- /package/dist/{chunk-ARNUO2QE.js.map → chunk-X6OWJOAL.js.map} +0 -0
- /package/dist/{claude-pair-runtime-44RPFRIE.js.map → claude-pair-runtime-WZU2YZ3I.js.map} +0 -0
- /package/dist/{persistent-session-A4VUV3UI.js.map → persistent-session-7XQDAZW5.js.map} +0 -0
- /package/dist/{responsiveness-probe-QRVMR22C.js.map → responsiveness-probe-QL66KMNI.js.map} +0 -0
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveConnectivityProbe,
|
|
29
29
|
worseConnectivityOutcome,
|
|
30
30
|
wrapScheduledTaskPrompt
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6A5BDKCN.js";
|
|
32
32
|
import {
|
|
33
33
|
parsePsRows
|
|
34
34
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -4903,7 +4903,7 @@ function requireHost() {
|
|
|
4903
4903
|
}
|
|
4904
4904
|
|
|
4905
4905
|
// src/lib/api-client.ts
|
|
4906
|
-
var agtCliVersion = true ? "0.28.
|
|
4906
|
+
var agtCliVersion = true ? "0.28.432" : "dev";
|
|
4907
4907
|
var lastConfigHash = null;
|
|
4908
4908
|
function setConfigHash(hash) {
|
|
4909
4909
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -7404,4 +7404,4 @@ export {
|
|
|
7404
7404
|
managerInstallSystemUnitCommand,
|
|
7405
7405
|
managerUninstallSystemUnitCommand
|
|
7406
7406
|
};
|
|
7407
|
-
//# sourceMappingURL=chunk-
|
|
7407
|
+
//# sourceMappingURL=chunk-X6OWJOAL.js.map
|
|
@@ -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-7XQDAZW5.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-WZU2YZ3I.js.map
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
resolveEffectivePinRaw,
|
|
43
43
|
safeWriteJsonAtomic,
|
|
44
44
|
setConfigHash
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-X6OWJOAL.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir as getProjectDir2,
|
|
48
48
|
getReadyTasks,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
toOpencodeModel,
|
|
154
154
|
transcriptActivityAgeSeconds,
|
|
155
155
|
writeEgressAllowlist
|
|
156
|
-
} from "../chunk-
|
|
156
|
+
} from "../chunk-6A5BDKCN.js";
|
|
157
157
|
import {
|
|
158
158
|
reapOrphanChannelMcps
|
|
159
159
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -9564,7 +9564,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
9564
9564
|
var lastVersionCheckAt = 0;
|
|
9565
9565
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
9566
9566
|
var lastResponsivenessProbeAt = 0;
|
|
9567
|
-
var agtCliVersion = true ? "0.28.
|
|
9567
|
+
var agtCliVersion = true ? "0.28.432" : "dev";
|
|
9568
9568
|
function resolveBrewPath(execFileSync2) {
|
|
9569
9569
|
try {
|
|
9570
9570
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -10722,7 +10722,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
10722
10722
|
if (codeNames.length === 0) return;
|
|
10723
10723
|
void (async () => {
|
|
10724
10724
|
try {
|
|
10725
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10725
|
+
const { collectDiagnostics } = await import("../persistent-session-7XQDAZW5.js");
|
|
10726
10726
|
await api.post("/host/heartbeat", {
|
|
10727
10727
|
host_id: hostId,
|
|
10728
10728
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor)
|
|
@@ -10829,7 +10829,7 @@ async function pollCycle() {
|
|
|
10829
10829
|
}
|
|
10830
10830
|
try {
|
|
10831
10831
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
10832
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
10832
|
+
const { collectDiagnostics } = await import("../persistent-session-7XQDAZW5.js");
|
|
10833
10833
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
10834
10834
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor) : void 0;
|
|
10835
10835
|
let tailscaleHostname;
|
|
@@ -10943,7 +10943,7 @@ async function pollCycle() {
|
|
|
10943
10943
|
collectResponsivenessProbes,
|
|
10944
10944
|
collectPanelessActivityProbes,
|
|
10945
10945
|
getResponsivenessIntervalMs
|
|
10946
|
-
} = await import("../responsiveness-probe-
|
|
10946
|
+
} = await import("../responsiveness-probe-QL66KMNI.js");
|
|
10947
10947
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
10948
10948
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
10949
10949
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -11007,7 +11007,7 @@ async function pollCycle() {
|
|
|
11007
11007
|
collectResponsivenessProbes,
|
|
11008
11008
|
livePendingInboundOldestAgeSeconds,
|
|
11009
11009
|
parkPendingInbound
|
|
11010
|
-
} = await import("../responsiveness-probe-
|
|
11010
|
+
} = await import("../responsiveness-probe-QL66KMNI.js");
|
|
11011
11011
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
11012
11012
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
11013
11013
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -14323,7 +14323,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
14323
14323
|
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}`));
|
|
14324
14324
|
void (async () => {
|
|
14325
14325
|
try {
|
|
14326
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14326
|
+
const { collectDiagnostics } = await import("../persistent-session-7XQDAZW5.js");
|
|
14327
14327
|
await api.post("/host/heartbeat", {
|
|
14328
14328
|
host_id: hostId,
|
|
14329
14329
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
|
|
@@ -14373,7 +14373,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
14373
14373
|
}
|
|
14374
14374
|
try {
|
|
14375
14375
|
const hostId = await getHostId();
|
|
14376
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
14376
|
+
const { collectDiagnostics } = await import("../persistent-session-7XQDAZW5.js");
|
|
14377
14377
|
await api.post("/host/heartbeat", {
|
|
14378
14378
|
host_id: hostId,
|
|
14379
14379
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
|
|
@@ -14826,7 +14826,7 @@ async function processClaudePairSessions(agents) {
|
|
|
14826
14826
|
killPairSession,
|
|
14827
14827
|
pairTmuxSession,
|
|
14828
14828
|
finalizeClaudePairOnboarding
|
|
14829
|
-
} = await import("../claude-pair-runtime-
|
|
14829
|
+
} = await import("../claude-pair-runtime-WZU2YZ3I.js");
|
|
14830
14830
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
14831
14831
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
14832
14832
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -30550,6 +30550,7 @@ var DEFAULT_STREAM_SLICE_CONFIG = {
|
|
|
30550
30550
|
maxSteps: 40
|
|
30551
30551
|
};
|
|
30552
30552
|
function computeStreamSlices(content, config2 = DEFAULT_STREAM_SLICE_CONFIG) {
|
|
30553
|
+
if (!content) return [];
|
|
30553
30554
|
const len = content.length;
|
|
30554
30555
|
if (len < config2.minContentLength) return [];
|
|
30555
30556
|
const byTarget = Math.ceil(len / config2.targetSteps);
|
|
@@ -35857,6 +35858,12 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
35857
35858
|
}
|
|
35858
35859
|
if (name === "direct_chat.reply") {
|
|
35859
35860
|
const { session_id, content: rawContent } = args;
|
|
35861
|
+
if (rawContent == null) {
|
|
35862
|
+
return {
|
|
35863
|
+
content: [{ type: "text", text: "Missing required argument: content" }],
|
|
35864
|
+
isError: true
|
|
35865
|
+
};
|
|
35866
|
+
}
|
|
35860
35867
|
const sanitizedReply = stripRepostPreambleWithMeta(rawContent);
|
|
35861
35868
|
if (sanitizedReply.stripped) emitPreambleStripTelemetry("direct_chat", sanitizedReply.shape);
|
|
35862
35869
|
const sanitizedReplyGuarded = redactToolCallMarkup(sanitizedReply.text);
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
writeDirectChatSessionState,
|
|
37
37
|
writeEgressAllowlist,
|
|
38
38
|
writePersistentClaudeWrapper
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6A5BDKCN.js";
|
|
40
40
|
import "./chunk-XWVM4KPK.js";
|
|
41
41
|
export {
|
|
42
42
|
EGRESS_BASELINE_DOMAINS,
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
writeEgressAllowlist,
|
|
78
78
|
writePersistentClaudeWrapper
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=persistent-session-
|
|
80
|
+
//# sourceMappingURL=persistent-session-7XQDAZW5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6A5BDKCN.js";
|
|
4
4
|
import "./chunk-XWVM4KPK.js";
|
|
5
5
|
|
|
6
6
|
// src/lib/responsiveness-probe.ts
|
|
@@ -471,4 +471,4 @@ export {
|
|
|
471
471
|
readAndResetSlackReplyBindingClassifications,
|
|
472
472
|
readAndResetSlackReplyTargetClassifications
|
|
473
473
|
};
|
|
474
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
474
|
+
//# sourceMappingURL=responsiveness-probe-QL66KMNI.js.map
|