@integrity-labs/agt-cli 0.28.692 → 0.28.694
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-ITB6NEXM.js → chunk-7F4RC4PU.js} +4 -4
- package/dist/{chunk-7K2I4LJZ.js → chunk-NYWCE5JH.js} +17 -7
- package/dist/chunk-NYWCE5JH.js.map +1 -0
- package/dist/{chunk-WHW747J3.js → chunk-YLADZNC5.js} +2 -2
- package/dist/chunk-YLADZNC5.js.map +1 -0
- package/dist/{claude-pair-runtime-ENI5O3JA.js → claude-pair-runtime-WRVD63Q7.js} +2 -2
- package/dist/lib/manager-worker.js +16 -16
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +6 -0
- package/dist/mcp/index.js +6 -0
- package/dist/mcp/origami.js +6 -0
- package/dist/mcp/slack-channel.js +6 -0
- package/dist/mcp/telegram-channel.js +6 -0
- package/dist/{persistent-session-42FL5BEW.js → persistent-session-WC27KXJE.js} +3 -3
- package/dist/{responsiveness-probe-RG2SD7HX.js → responsiveness-probe-V5M5OXNB.js} +3 -3
- package/dist/{session-auth-dead-SHLP7FRQ.js → session-auth-dead-TVTRCTJR.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-7K2I4LJZ.js.map +0 -1
- package/dist/chunk-WHW747J3.js.map +0 -1
- /package/dist/{chunk-ITB6NEXM.js.map → chunk-7F4RC4PU.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ENI5O3JA.js.map → claude-pair-runtime-WRVD63Q7.js.map} +0 -0
- /package/dist/{persistent-session-42FL5BEW.js.map → persistent-session-WC27KXJE.js.map} +0 -0
- /package/dist/{responsiveness-probe-RG2SD7HX.js.map → responsiveness-probe-V5M5OXNB.js.map} +0 -0
- /package/dist/{session-auth-dead-SHLP7FRQ.js.map → session-auth-dead-TVTRCTJR.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-WC27KXJE.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-WRVD63Q7.js.map
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
safeWriteJsonAtomic,
|
|
55
55
|
setConfigHash,
|
|
56
56
|
tripClass
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-7F4RC4PU.js";
|
|
58
58
|
import {
|
|
59
59
|
getProjectDir as getProjectDir2,
|
|
60
60
|
getReadyTasks,
|
|
@@ -112,11 +112,11 @@ import {
|
|
|
112
112
|
takeZombieDetection,
|
|
113
113
|
toOpencodeModel,
|
|
114
114
|
writeEgressAllowlist
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-YLADZNC5.js";
|
|
116
116
|
import {
|
|
117
117
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
118
118
|
AnchorSessionClient,
|
|
119
|
-
|
|
119
|
+
CLAUDE_MD_CONTEXT_ALARM_CHARS,
|
|
120
120
|
CONVERSATION_FAILURE_CATEGORIES,
|
|
121
121
|
DEFAULT_FRAMEWORK,
|
|
122
122
|
DEFAULT_NEIGHBOURHOOD_MS,
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
subagentActivityAgeSeconds,
|
|
194
194
|
sumTranscriptUsageInWindow,
|
|
195
195
|
transcriptActivityAgeSeconds
|
|
196
|
-
} from "../chunk-
|
|
196
|
+
} from "../chunk-NYWCE5JH.js";
|
|
197
197
|
import {
|
|
198
198
|
reapOrphanChannelMcps
|
|
199
199
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -1017,7 +1017,7 @@ function isQuarantineFile(value) {
|
|
|
1017
1017
|
// src/lib/claude-md-size.ts
|
|
1018
1018
|
import { readFileSync as readFileSync4 } from "fs";
|
|
1019
1019
|
import { join as join4 } from "path";
|
|
1020
|
-
function measureClaudeMd(configDir, codeName, ceiling =
|
|
1020
|
+
function measureClaudeMd(configDir, codeName, ceiling = CLAUDE_MD_CONTEXT_ALARM_CHARS) {
|
|
1021
1021
|
try {
|
|
1022
1022
|
const buf = readFileSync4(join4(configDir, codeName, "project", "CLAUDE.md"));
|
|
1023
1023
|
const chars = buf.toString("utf8").length;
|
|
@@ -1036,7 +1036,7 @@ function logClaudeMdCeilingTransition(codeName, report, log2) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
if (previous === report.overCeiling) return null;
|
|
1038
1038
|
lastOverCeiling.set(codeName, report.overCeiling);
|
|
1039
|
-
const line = report.overCeiling ? `[claude-md] '${codeName}' project/CLAUDE.md is ${report.chars} chars, OVER the ${report.ceiling}
|
|
1039
|
+
const line = report.overCeiling ? `[claude-md] '${codeName}' project/CLAUDE.md is ${report.chars} chars, OVER the ${report.ceiling} threshold by ${report.chars - report.ceiling} \u2014 nothing is truncated, but the whole file is re-sent every request, so this is context permanently spent (ENG-8163 / ENG-9459)` : `[claude-md] '${codeName}' project/CLAUDE.md back under the threshold (${report.chars}/${report.ceiling} chars)`;
|
|
1040
1040
|
log2(line);
|
|
1041
1041
|
return line;
|
|
1042
1042
|
}
|
|
@@ -11754,7 +11754,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
11754
11754
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
11755
11755
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
11756
11756
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
11757
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
11757
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-V5M5OXNB.js");
|
|
11758
11758
|
const newest = newestPendingInboundActivityMtimeMs(dirname10(paneLogPath(codeName)));
|
|
11759
11759
|
if (newest === null) return null;
|
|
11760
11760
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -12402,7 +12402,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12402
12402
|
var lastVersionCheckAt = 0;
|
|
12403
12403
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12404
12404
|
var lastResponsivenessProbeAt = 0;
|
|
12405
|
-
var agtCliVersion = true ? "0.28.
|
|
12405
|
+
var agtCliVersion = true ? "0.28.694" : "dev";
|
|
12406
12406
|
function resolveBrewPath(execFileSync3) {
|
|
12407
12407
|
try {
|
|
12408
12408
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -13863,7 +13863,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
13863
13863
|
if (codeNames.length === 0) return;
|
|
13864
13864
|
void (async () => {
|
|
13865
13865
|
try {
|
|
13866
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13866
|
+
const { collectDiagnostics } = await import("../persistent-session-WC27KXJE.js");
|
|
13867
13867
|
await api.post("/host/heartbeat", {
|
|
13868
13868
|
host_id: hostId,
|
|
13869
13869
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
|
|
@@ -13980,7 +13980,7 @@ async function pollCycleInner() {
|
|
|
13980
13980
|
}
|
|
13981
13981
|
try {
|
|
13982
13982
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
13983
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13983
|
+
const { collectDiagnostics } = await import("../persistent-session-WC27KXJE.js");
|
|
13984
13984
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
13985
13985
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor) : void 0;
|
|
13986
13986
|
let tailscaleHostname;
|
|
@@ -14132,7 +14132,7 @@ async function pollCycleInner() {
|
|
|
14132
14132
|
collectPanelessActivityProbes,
|
|
14133
14133
|
getResponsivenessIntervalMs,
|
|
14134
14134
|
occupancyQualificationClassifications
|
|
14135
|
-
} = await import("../responsiveness-probe-
|
|
14135
|
+
} = await import("../responsiveness-probe-V5M5OXNB.js");
|
|
14136
14136
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
14137
14137
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
14138
14138
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -14242,7 +14242,7 @@ async function pollCycleInner() {
|
|
|
14242
14242
|
collectResponsivenessProbes,
|
|
14243
14243
|
livePendingInboundOldestAgeSeconds,
|
|
14244
14244
|
parkPendingInbound
|
|
14245
|
-
} = await import("../responsiveness-probe-
|
|
14245
|
+
} = await import("../responsiveness-probe-V5M5OXNB.js");
|
|
14246
14246
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
14247
14247
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
14248
14248
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -14398,7 +14398,7 @@ async function pollCycleInner() {
|
|
|
14398
14398
|
}
|
|
14399
14399
|
try {
|
|
14400
14400
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
14401
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
14401
|
+
const { probeSessionAuth } = await import("../session-auth-dead-TVTRCTJR.js");
|
|
14402
14402
|
const observations = [];
|
|
14403
14403
|
const pendingCacheCommits = [];
|
|
14404
14404
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -18158,7 +18158,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
18158
18158
|
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}`));
|
|
18159
18159
|
void (async () => {
|
|
18160
18160
|
try {
|
|
18161
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18161
|
+
const { collectDiagnostics } = await import("../persistent-session-WC27KXJE.js");
|
|
18162
18162
|
await api.post("/host/heartbeat", {
|
|
18163
18163
|
host_id: hostId,
|
|
18164
18164
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
|
|
@@ -18209,7 +18209,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
18209
18209
|
}
|
|
18210
18210
|
try {
|
|
18211
18211
|
const hostId = await getHostId();
|
|
18212
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18212
|
+
const { collectDiagnostics } = await import("../persistent-session-WC27KXJE.js");
|
|
18213
18213
|
await api.post("/host/heartbeat", {
|
|
18214
18214
|
host_id: hostId,
|
|
18215
18215
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
|
|
@@ -18841,7 +18841,7 @@ async function processClaudePairSessions(agents) {
|
|
|
18841
18841
|
killPairSession,
|
|
18842
18842
|
pairTmuxSession,
|
|
18843
18843
|
finalizeClaudePairOnboarding
|
|
18844
|
-
} = await import("../claude-pair-runtime-
|
|
18844
|
+
} = await import("../claude-pair-runtime-WRVD63Q7.js");
|
|
18845
18845
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
18846
18846
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
18847
18847
|
const killed = await killPairSession(pairTmuxSession(pairId));
|