@integrity-labs/agt-cli 0.28.1276 → 0.28.1277
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/{api-client-LXSFEHBG.js → api-client-X2732UKK.js} +2 -2
- package/dist/bin/agt.js +5 -5
- package/dist/{chunk-IDLNB6GR.js → chunk-3POXIX7X.js} +2 -1
- package/dist/{chunk-2JILRR4Y.js → chunk-JQCTNAQW.js} +3 -3
- package/dist/{chunk-HISRTLZ3.js → chunk-OAXNWYVU.js} +2 -2
- package/dist/{claude-pair-runtime-TUWLJ7TS.js → claude-pair-runtime-CNYIVUOQ.js} +2 -2
- package/dist/lib/manager-worker.js +18 -17
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-VII4LBJ2.js → persistent-session-6B2DPG4U.js} +2 -2
- package/dist/{responsiveness-probe-GX3TEW2E.js → responsiveness-probe-ZN2VIGOX.js} +2 -2
- package/package.json +1 -1
- /package/dist/{api-client-LXSFEHBG.js.map → api-client-X2732UKK.js.map} +0 -0
- /package/dist/{chunk-IDLNB6GR.js.map → chunk-3POXIX7X.js.map} +0 -0
- /package/dist/{chunk-2JILRR4Y.js.map → chunk-JQCTNAQW.js.map} +0 -0
- /package/dist/{chunk-HISRTLZ3.js.map → chunk-OAXNWYVU.js.map} +0 -0
- /package/dist/{claude-pair-runtime-TUWLJ7TS.js.map → claude-pair-runtime-CNYIVUOQ.js.map} +0 -0
- /package/dist/{persistent-session-VII4LBJ2.js.map → persistent-session-6B2DPG4U.js.map} +0 -0
- /package/dist/{responsiveness-probe-GX3TEW2E.js.map → responsiveness-probe-ZN2VIGOX.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OAXNWYVU.js";
|
|
19
19
|
import "./chunk-ZQVYTNLA.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-X2732UKK.js.map
|
package/dist/bin/agt.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
success,
|
|
32
32
|
table,
|
|
33
33
|
warn
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-JQCTNAQW.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,12 +42,12 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-OAXNWYVU.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
49
49
|
readDirectChatSessionState
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-3POXIX7X.js";
|
|
51
51
|
import {
|
|
52
52
|
markDailySessionSpawn,
|
|
53
53
|
sessionFileExists,
|
|
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5207
5207
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
-
var cliVersion = true ? "0.28.
|
|
5210
|
+
var cliVersion = true ? "0.28.1277" : "dev";
|
|
5211
5211
|
async function fetchLatestVersion() {
|
|
5212
5212
|
const host2 = getHost();
|
|
5213
5213
|
if (!host2) return null;
|
|
@@ -6467,7 +6467,7 @@ function handleError(err) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
|
|
6469
6469
|
// src/bin/agt.ts
|
|
6470
|
-
var cliVersion2 = true ? "0.28.
|
|
6470
|
+
var cliVersion2 = true ? "0.28.1277" : "dev";
|
|
6471
6471
|
var program = new Command();
|
|
6472
6472
|
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");
|
|
6473
6473
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -6405,6 +6405,7 @@ export {
|
|
|
6405
6405
|
getOpencodeTurnHealth,
|
|
6406
6406
|
getOpencodeActivityAgeSeconds,
|
|
6407
6407
|
probeClaudeProcessInTmux,
|
|
6408
|
+
TMUX_SESSION_ABSENT,
|
|
6408
6409
|
probeTmuxSession,
|
|
6409
6410
|
BLOCKED_ON_PROMPT_DECISION,
|
|
6410
6411
|
noteSessionBlockedOnPrompt,
|
|
@@ -6511,4 +6512,4 @@ export {
|
|
|
6511
6512
|
stopAllSessionsAndWait,
|
|
6512
6513
|
getProjectDir
|
|
6513
6514
|
};
|
|
6514
|
-
//# sourceMappingURL=chunk-
|
|
6515
|
+
//# sourceMappingURL=chunk-3POXIX7X.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OAXNWYVU.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
warnIgnoredIsolationAllowlist,
|
|
27
27
|
withheldRemoteMcpMessage,
|
|
28
28
|
withheldRemoteMcpReasonFor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3POXIX7X.js";
|
|
30
30
|
import {
|
|
31
31
|
readDailySessionPin,
|
|
32
32
|
sessionTranscriptDir
|
|
@@ -13853,4 +13853,4 @@ export {
|
|
|
13853
13853
|
managerInstallSystemUnitCommand,
|
|
13854
13854
|
managerUninstallSystemUnitCommand
|
|
13855
13855
|
};
|
|
13856
|
-
//# sourceMappingURL=chunk-
|
|
13856
|
+
//# sourceMappingURL=chunk-JQCTNAQW.js.map
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1277" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-OAXNWYVU.js.map
|
|
@@ -323,7 +323,7 @@ async function spawnPairSession(session) {
|
|
|
323
323
|
return { ok: true };
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
326
|
+
const { resolveClaudeBinary } = await import("./persistent-session-6B2DPG4U.js");
|
|
327
327
|
const claudeBin = resolveClaudeBinary();
|
|
328
328
|
const pairEnv = {
|
|
329
329
|
...process.env,
|
|
@@ -838,4 +838,4 @@ export {
|
|
|
838
838
|
startClaudePair,
|
|
839
839
|
submitClaudePairCode
|
|
840
840
|
};
|
|
841
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
841
|
+
//# sourceMappingURL=claude-pair-runtime-CNYIVUOQ.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-JQCTNAQW.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,13 +88,14 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-OAXNWYVU.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
95
95
|
CLAUDE_MANAGED_SETTINGS_DIR,
|
|
96
96
|
ChildProcessError,
|
|
97
97
|
DEFAULT_KILL_AFTER_MS,
|
|
98
|
+
TMUX_SESSION_ABSENT,
|
|
98
99
|
agentRuntimeKey,
|
|
99
100
|
applyBlockedPromptVerdict,
|
|
100
101
|
boundedArgv,
|
|
@@ -179,7 +180,7 @@ import {
|
|
|
179
180
|
webFetchBaselineValue,
|
|
180
181
|
webFetchRestartNeeded,
|
|
181
182
|
writeEgressAllowlist
|
|
182
|
-
} from "../chunk-
|
|
183
|
+
} from "../chunk-3POXIX7X.js";
|
|
183
184
|
import {
|
|
184
185
|
isAgentIdle,
|
|
185
186
|
isStaleForToday,
|
|
@@ -389,7 +390,7 @@ function confirmsNoSession(err) {
|
|
|
389
390
|
const e = err;
|
|
390
391
|
if (!e || e.status !== 1 || e.signal) return false;
|
|
391
392
|
const stderr = typeof e.stderr === "string" ? e.stderr : Buffer.isBuffer(e.stderr) ? e.stderr.toString("utf8") : "";
|
|
392
|
-
return
|
|
393
|
+
return TMUX_SESSION_ABSENT.test(stderr);
|
|
393
394
|
}
|
|
394
395
|
function killAbortsRestart(killed, restartReason) {
|
|
395
396
|
if (killed === "timed-out") return true;
|
|
@@ -15143,7 +15144,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
15143
15144
|
};
|
|
15144
15145
|
}
|
|
15145
15146
|
var managerHostPost = async (path, body) => {
|
|
15146
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
15147
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-X2732UKK.js");
|
|
15147
15148
|
try {
|
|
15148
15149
|
const json = await api2.post(path, body);
|
|
15149
15150
|
return { status: 200, json };
|
|
@@ -17194,7 +17195,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
17194
17195
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
17195
17196
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
17196
17197
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
17197
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
17198
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
17198
17199
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
17199
17200
|
if (newest === null) return null;
|
|
17200
17201
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -18075,7 +18076,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
18075
18076
|
var lastVersionCheckAt = 0;
|
|
18076
18077
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
18077
18078
|
var lastResponsivenessProbeAt = 0;
|
|
18078
|
-
var agtCliVersion = true ? "0.28.
|
|
18079
|
+
var agtCliVersion = true ? "0.28.1277" : "dev";
|
|
18079
18080
|
function resolveBrewPath(execFileSync5) {
|
|
18080
18081
|
try {
|
|
18081
18082
|
const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -20084,7 +20085,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
20084
20085
|
if (codeNames.length === 0) return;
|
|
20085
20086
|
void (async () => {
|
|
20086
20087
|
try {
|
|
20087
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20088
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
20088
20089
|
await api.post("/host/heartbeat", {
|
|
20089
20090
|
host_id: hostId,
|
|
20090
20091
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -20227,7 +20228,7 @@ async function pollCycleInner() {
|
|
|
20227
20228
|
}
|
|
20228
20229
|
try {
|
|
20229
20230
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
20230
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
20231
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
20231
20232
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
20232
20233
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
20233
20234
|
let tailscaleHostname;
|
|
@@ -20534,7 +20535,7 @@ async function pollCycleInner() {
|
|
|
20534
20535
|
collectPanelessActivityProbes,
|
|
20535
20536
|
getResponsivenessIntervalMs,
|
|
20536
20537
|
occupancyQualificationClassifications
|
|
20537
|
-
} = await import("../responsiveness-probe-
|
|
20538
|
+
} = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
20538
20539
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
20539
20540
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
20540
20541
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -20651,7 +20652,7 @@ async function pollCycleInner() {
|
|
|
20651
20652
|
collectResponsivenessProbes,
|
|
20652
20653
|
livePendingInboundOldestAgeSeconds,
|
|
20653
20654
|
parkPendingInbound
|
|
20654
|
-
} = await import("../responsiveness-probe-
|
|
20655
|
+
} = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
20655
20656
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
|
|
20656
20657
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
20657
20658
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -20937,7 +20938,7 @@ async function pollCycleInner() {
|
|
|
20937
20938
|
}
|
|
20938
20939
|
}
|
|
20939
20940
|
);
|
|
20940
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
20941
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-ZN2VIGOX.js");
|
|
20941
20942
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
20942
20943
|
paneFatalStreak.delete(codeName);
|
|
20943
20944
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -20968,7 +20969,7 @@ async function pollCycleInner() {
|
|
|
20968
20969
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
20969
20970
|
bindSourceEscalations
|
|
20970
20971
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
20971
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
20972
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-6B2DPG4U.js");
|
|
20972
20973
|
const mountConfig = resolveTranscriptMountConfig();
|
|
20973
20974
|
const liveAgents = agentState.persistentSessionAgents;
|
|
20974
20975
|
for (const tracked of [
|
|
@@ -26201,7 +26202,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
26201
26202
|
if (!refreshData) return;
|
|
26202
26203
|
const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
|
|
26203
26204
|
const hostId = await getHostId();
|
|
26204
|
-
const parkForRestart = await import("../responsiveness-probe-
|
|
26205
|
+
const parkForRestart = await import("../responsiveness-probe-ZN2VIGOX.js").then(
|
|
26205
26206
|
(m) => m.parkPendingInbound,
|
|
26206
26207
|
(err) => err
|
|
26207
26208
|
);
|
|
@@ -26278,7 +26279,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
26278
26279
|
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}`));
|
|
26279
26280
|
void (async () => {
|
|
26280
26281
|
try {
|
|
26281
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
26282
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
26282
26283
|
await api.post("/host/heartbeat", {
|
|
26283
26284
|
host_id: hostId,
|
|
26284
26285
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -26331,7 +26332,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
26331
26332
|
}
|
|
26332
26333
|
try {
|
|
26333
26334
|
const hostId = await getHostId();
|
|
26334
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
26335
|
+
const { collectDiagnostics } = await import("../persistent-session-6B2DPG4U.js");
|
|
26335
26336
|
await api.post("/host/heartbeat", {
|
|
26336
26337
|
host_id: hostId,
|
|
26337
26338
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -27058,7 +27059,7 @@ async function processClaudePairSessions(agents) {
|
|
|
27058
27059
|
snapshotPairConfig,
|
|
27059
27060
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
27060
27061
|
planPairStartReport
|
|
27061
|
-
} = await import("../claude-pair-runtime-
|
|
27062
|
+
} = await import("../claude-pair-runtime-CNYIVUOQ.js");
|
|
27062
27063
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
27063
27064
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
27064
27065
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|