@integrity-labs/agt-cli 0.28.639 → 0.28.640
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-T23GT44E.js → chunk-4FANS7I6.js} +4 -4
- package/dist/{chunk-MRQ2GRTN.js → chunk-HYLJPTKL.js} +2 -2
- package/dist/{chunk-MAZUBHNT.js → chunk-REWZFCUX.js} +1 -1
- package/dist/{claude-pair-runtime-EZUIIJYB.js → claude-pair-runtime-F2O36YHH.js} +2 -2
- package/dist/lib/manager-worker.js +13 -13
- package/dist/mcp/index.js +29437 -8159
- package/dist/{persistent-session-NMGMDXTO.js → persistent-session-JJ7L23KO.js} +3 -3
- package/dist/{responsiveness-probe-ZUFKGLDN.js → responsiveness-probe-JAME5YLS.js} +3 -3
- package/dist/{session-auth-dead-TDWEX7R5.js → session-auth-dead-WX47XEZJ.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-T23GT44E.js.map → chunk-4FANS7I6.js.map} +0 -0
- /package/dist/{chunk-MRQ2GRTN.js.map → chunk-HYLJPTKL.js.map} +0 -0
- /package/dist/{chunk-MAZUBHNT.js.map → chunk-REWZFCUX.js.map} +0 -0
- /package/dist/{claude-pair-runtime-EZUIIJYB.js.map → claude-pair-runtime-F2O36YHH.js.map} +0 -0
- /package/dist/{persistent-session-NMGMDXTO.js.map → persistent-session-JJ7L23KO.js.map} +0 -0
- /package/dist/{responsiveness-probe-ZUFKGLDN.js.map → responsiveness-probe-JAME5YLS.js.map} +0 -0
- /package/dist/{session-auth-dead-TDWEX7R5.js.map → session-auth-dead-WX47XEZJ.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-4FANS7I6.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-HYLJPTKL.js";
|
|
47
47
|
import {
|
|
48
48
|
AnchorSessionClient,
|
|
49
49
|
CHANNEL_REGISTRY,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
requiredMcpWildcard,
|
|
74
74
|
resolveChannels,
|
|
75
75
|
serializeManifestForSlackCli
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-REWZFCUX.js";
|
|
77
77
|
import "../chunk-XWVM4KPK.js";
|
|
78
78
|
|
|
79
79
|
// src/bin/agt.ts
|
|
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4909
4909
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4910
4910
|
import chalk18 from "chalk";
|
|
4911
4911
|
import ora16 from "ora";
|
|
4912
|
-
var cliVersion = true ? "0.28.
|
|
4912
|
+
var cliVersion = true ? "0.28.640" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.640" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6095
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isolationMode,
|
|
9
9
|
log,
|
|
10
10
|
parseEnvIntegrations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HYLJPTKL.js";
|
|
12
12
|
import {
|
|
13
13
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
14
14
|
INTEGRATIONS_SECTION_END,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
resolveConnectivityProbe,
|
|
56
56
|
worseConnectivityOutcome,
|
|
57
57
|
wrapScheduledTaskPrompt
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-REWZFCUX.js";
|
|
59
59
|
import {
|
|
60
60
|
parsePsRows
|
|
61
61
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6073,7 +6073,7 @@ function exchangeFailureKind(err) {
|
|
|
6073
6073
|
}
|
|
6074
6074
|
|
|
6075
6075
|
// src/lib/api-client.ts
|
|
6076
|
-
var agtCliVersion = true ? "0.28.
|
|
6076
|
+
var agtCliVersion = true ? "0.28.640" : "dev";
|
|
6077
6077
|
var lastConfigHash = null;
|
|
6078
6078
|
function setConfigHash(hash) {
|
|
6079
6079
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9814,4 +9814,4 @@ export {
|
|
|
9814
9814
|
managerInstallSystemUnitCommand,
|
|
9815
9815
|
managerUninstallSystemUnitCommand
|
|
9816
9816
|
};
|
|
9817
|
-
//# sourceMappingURL=chunk-
|
|
9817
|
+
//# sourceMappingURL=chunk-4FANS7I6.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
rotateDailySession,
|
|
17
17
|
sessionFileExists,
|
|
18
18
|
todayLocalIso
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-REWZFCUX.js";
|
|
20
20
|
import {
|
|
21
21
|
reapOrphanChannelMcps
|
|
22
22
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -4313,4 +4313,4 @@ export {
|
|
|
4313
4313
|
stopAllSessionsAndWait,
|
|
4314
4314
|
getProjectDir
|
|
4315
4315
|
};
|
|
4316
|
-
//# sourceMappingURL=chunk-
|
|
4316
|
+
//# sourceMappingURL=chunk-HYLJPTKL.js.map
|
|
@@ -12118,4 +12118,4 @@ export {
|
|
|
12118
12118
|
minutesSinceLocalMidnight,
|
|
12119
12119
|
peekCurrentSession
|
|
12120
12120
|
};
|
|
12121
|
-
//# sourceMappingURL=chunk-
|
|
12121
|
+
//# sourceMappingURL=chunk-REWZFCUX.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-JJ7L23KO.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-F2O36YHH.js.map
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
safeWriteJsonAtomic,
|
|
56
56
|
setConfigHash,
|
|
57
57
|
tripClass
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-4FANS7I6.js";
|
|
59
59
|
import {
|
|
60
60
|
getProjectDir as getProjectDir2,
|
|
61
61
|
getReadyTasks,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
takeZombieDetection,
|
|
112
112
|
toOpencodeModel,
|
|
113
113
|
writeEgressAllowlist
|
|
114
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-HYLJPTKL.js";
|
|
115
115
|
import {
|
|
116
116
|
ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
|
|
117
117
|
AnchorSessionClient,
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
subagentActivityAgeSeconds,
|
|
189
189
|
sumTranscriptUsageInWindow,
|
|
190
190
|
transcriptActivityAgeSeconds
|
|
191
|
-
} from "../chunk-
|
|
191
|
+
} from "../chunk-REWZFCUX.js";
|
|
192
192
|
import {
|
|
193
193
|
reapOrphanChannelMcps
|
|
194
194
|
} from "../chunk-XWVM4KPK.js";
|
|
@@ -11511,7 +11511,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
11511
11511
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
11512
11512
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
11513
11513
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
11514
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
11514
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-JAME5YLS.js");
|
|
11515
11515
|
const newest = newestPendingInboundActivityMtimeMs(dirname9(paneLogPath(codeName)));
|
|
11516
11516
|
if (newest === null) return null;
|
|
11517
11517
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -12154,7 +12154,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
12154
12154
|
var lastVersionCheckAt = 0;
|
|
12155
12155
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
12156
12156
|
var lastResponsivenessProbeAt = 0;
|
|
12157
|
-
var agtCliVersion = true ? "0.28.
|
|
12157
|
+
var agtCliVersion = true ? "0.28.640" : "dev";
|
|
12158
12158
|
function resolveBrewPath(execFileSync3) {
|
|
12159
12159
|
try {
|
|
12160
12160
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -13461,7 +13461,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
13461
13461
|
if (codeNames.length === 0) return;
|
|
13462
13462
|
void (async () => {
|
|
13463
13463
|
try {
|
|
13464
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13464
|
+
const { collectDiagnostics } = await import("../persistent-session-JJ7L23KO.js");
|
|
13465
13465
|
await api.post("/host/heartbeat", {
|
|
13466
13466
|
host_id: hostId,
|
|
13467
13467
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
|
|
@@ -13577,7 +13577,7 @@ async function pollCycleInner() {
|
|
|
13577
13577
|
}
|
|
13578
13578
|
try {
|
|
13579
13579
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
13580
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
13580
|
+
const { collectDiagnostics } = await import("../persistent-session-JJ7L23KO.js");
|
|
13581
13581
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
13582
13582
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor) : void 0;
|
|
13583
13583
|
let tailscaleHostname;
|
|
@@ -13700,7 +13700,7 @@ async function pollCycleInner() {
|
|
|
13700
13700
|
collectPanelessActivityProbes,
|
|
13701
13701
|
getResponsivenessIntervalMs,
|
|
13702
13702
|
occupancyQualificationClassifications
|
|
13703
|
-
} = await import("../responsiveness-probe-
|
|
13703
|
+
} = await import("../responsiveness-probe-JAME5YLS.js");
|
|
13704
13704
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
13705
13705
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
13706
13706
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -13806,7 +13806,7 @@ async function pollCycleInner() {
|
|
|
13806
13806
|
collectResponsivenessProbes,
|
|
13807
13807
|
livePendingInboundOldestAgeSeconds,
|
|
13808
13808
|
parkPendingInbound
|
|
13809
|
-
} = await import("../responsiveness-probe-
|
|
13809
|
+
} = await import("../responsiveness-probe-JAME5YLS.js");
|
|
13810
13810
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
|
|
13811
13811
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
13812
13812
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -13962,7 +13962,7 @@ async function pollCycleInner() {
|
|
|
13962
13962
|
}
|
|
13963
13963
|
try {
|
|
13964
13964
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-JA437JIB.js");
|
|
13965
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
13965
|
+
const { probeSessionAuth } = await import("../session-auth-dead-WX47XEZJ.js");
|
|
13966
13966
|
const observations = [];
|
|
13967
13967
|
const pendingCacheCommits = [];
|
|
13968
13968
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -17529,7 +17529,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
17529
17529
|
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}`));
|
|
17530
17530
|
void (async () => {
|
|
17531
17531
|
try {
|
|
17532
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
17532
|
+
const { collectDiagnostics } = await import("../persistent-session-JJ7L23KO.js");
|
|
17533
17533
|
await api.post("/host/heartbeat", {
|
|
17534
17534
|
host_id: hostId,
|
|
17535
17535
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
|
|
@@ -17580,7 +17580,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
17580
17580
|
}
|
|
17581
17581
|
try {
|
|
17582
17582
|
const hostId = await getHostId();
|
|
17583
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
17583
|
+
const { collectDiagnostics } = await import("../persistent-session-JJ7L23KO.js");
|
|
17584
17584
|
await api.post("/host/heartbeat", {
|
|
17585
17585
|
host_id: hostId,
|
|
17586
17586
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor)
|
|
@@ -18177,7 +18177,7 @@ async function processClaudePairSessions(agents) {
|
|
|
18177
18177
|
killPairSession,
|
|
18178
18178
|
pairTmuxSession,
|
|
18179
18179
|
finalizeClaudePairOnboarding
|
|
18180
|
-
} = await import("../claude-pair-runtime-
|
|
18180
|
+
} = await import("../claude-pair-runtime-F2O36YHH.js");
|
|
18181
18181
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
18182
18182
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
18183
18183
|
const killed = await killPairSession(pairTmuxSession(pairId));
|