@integrity-labs/agt-cli 0.28.1245 → 0.28.1246
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 +3 -3
- package/dist/{chunk-JEC3BUC6.js → chunk-MM3OF6UT.js} +1 -1
- package/dist/chunk-MM3OF6UT.js.map +1 -0
- package/dist/{chunk-RVZDFWIX.js → chunk-ZHLBICZL.js} +2 -2
- package/dist/{claude-pair-runtime-EBDJ7JJV.js → claude-pair-runtime-IOUQF6RF.js} +2 -2
- package/dist/lib/manager-worker.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-JEC3BUC6.js.map +0 -1
- /package/dist/{chunk-RVZDFWIX.js.map → chunk-ZHLBICZL.js.map} +0 -0
- /package/dist/{claude-pair-runtime-EBDJ7JJV.js.map → claude-pair-runtime-IOUQF6RF.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-ZHLBICZL.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5205,7 +5205,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5205
5205
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5206
5206
|
import chalk17 from "chalk";
|
|
5207
5207
|
import ora15 from "ora";
|
|
5208
|
-
var cliVersion = true ? "0.28.
|
|
5208
|
+
var cliVersion = true ? "0.28.1246" : "dev";
|
|
5209
5209
|
async function fetchLatestVersion() {
|
|
5210
5210
|
const host2 = getHost();
|
|
5211
5211
|
if (!host2) return null;
|
|
@@ -6465,7 +6465,7 @@ function handleError(err) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
|
|
6467
6467
|
// src/bin/agt.ts
|
|
6468
|
-
var cliVersion2 = true ? "0.28.
|
|
6468
|
+
var cliVersion2 = true ? "0.28.1246" : "dev";
|
|
6469
6469
|
var program = new Command();
|
|
6470
6470
|
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");
|
|
6471
6471
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/claude-host-args.ts"],"sourcesContent":["/**\n * ENG-11277 — the arguments every manager-run, host-side `claude -p` one-shot\n * shares (conversation eval, the runtime auth probe, the host usage poll).\n *\n * These run on the HOST against the shared `~/.claude`. On Pedders v8\n * (2026-10-02) Claude Code's retention sweep removed live transcript bind\n * sources (`.last-cleanup` 04:24:12Z, mask dir gone, the container's projects\n * dir at nlink 0) and three agents failed every transcript write and\n * compaction; see transcript-mount-health.ts.\n *\n * `-p` one-shots DO run that sweep: measured 5 Oct on 2.1.285 (Koda, ENG-11279),\n * a print-mode run removed old and empty project trees from its config dir. The\n * `--settings` flag below loads flag-level settings, which outrank user settings\n * (user < project < local < flag < policy), and a 3650-day `cleanupPeriodDays`\n * (Claude Code's own suggestion for long retention; 0 is rejected by its schema)\n * means the sweep ages nothing out. It does NOT stop the empty-dir rmdirs, which\n * have no age check, so it is defence in depth, not the guard.\n *\n * The guard is the sentinel kept in every bind source\n * (ensureTranscriptBindSources in persistent-session.ts) plus the manager's mount\n * probe. ENG-11279 additionally runs two of the three one-shots in a PRIVATE\n * config dir on api_key hosts (applyClaudeAuthToEnv's `isolateApiKeyConfigDir`),\n * so they are not sweepers of the shared tree at all:\n * - conversation eval and the host usage poll: isolated on api_key hosts.\n * Subscription hosts stay on the shared dir, BY DECISION (ENG-11279, Sherlock,\n * 11 Nov): the sentinel is the guard there, not a second credential.\n * Why: a second copy of the OAuth credential could refresh and rotate the\n * refresh token out from under every other session on the host; the only safe\n * alternative (a per-host `claude setup-token` passed as an env token) adds a\n * human pairing step and a new stored secret per host. And it would buy little:\n * host-mode (non-docker) agent sessions use the shared dir as their real config\n * and sweep it whatever we do here, so isolating these one-shots removes one\n * sweeper, not the class. The sentinel protects bind sources from every sweeper\n * that behaves like Claude Code's retention sweep today, whichever process\n * runs it: that sweep only rmdir's EMPTY directories and never unlinks a file\n * name it does not recognise (ensureClaudeStateLayout in persistent-session.ts;\n * measured 5 Oct, Koda's run 2: the sentinel-protected dir survived a sweep\n * that removed its siblings). A test pins it into every bind source the\n * container mounts (eng-11279-sentinel-every-bind-source).\n * REVISIT this decision if a Claude Code release changes that sweep: a\n * recursive or age-based removal, or one that unlinks unrecognised files,\n * gets past the sentinel (Obi Wan 5a52c58ad474).\n * - the runtime auth probe: DELIBERATELY on the shared dir in every mode. It\n * exists to prove the host's real credential round-trips (ENG-8623); in a\n * private dir it would report a host with a dead shared credential as healthy.\n */\nexport const HOST_CLAUDE_RETENTION_SETTINGS = JSON.stringify({ cleanupPeriodDays: 3650 });\n\n/** The isolation + retention tail shared by every manager host-side `claude -p`. */\nexport function hostClaudeOneShotArgs(emptyMcpConfigPath: string): string[] {\n return [\n // No project config, no MCP, no tools: these exercise the model or auth only.\n '--mcp-config', emptyMcpConfigPath,\n '--strict-mcp-config',\n '--permission-mode', 'auto',\n '--allowedTools', '',\n // ENG-11277: never age anything out of the shared ~/.claude from here.\n '--settings', HOST_CLAUDE_RETENTION_SETTINGS,\n ];\n}\n\n/** POSIX single-quote one argument: `'` -> `'\\''`. */\nfunction posixSingleQuote(value: string): string {\n return `'${value.replace(/'/g, `'\\\\''`)}'`;\n}\n\n/**\n * ENG-11279 (4): the pair/login runtime's `claude` command, with the same\n * retention flag as the one-shots, for parity.\n *\n * NOT load-bearing: the pair runtime must write the SHARED config dir (it is the\n * login), so it cannot be isolated, and the flag does not stop the empty-dir\n * rmdirs. It only stops this process ageing transcripts out at the 30-day default.\n *\n * A single shell-command STRING, quoted here, because that is what tmux\n * `new-session` is given (it runs one argument through `sh -c`; splitting it into\n * several argv entries changes that to a direct exec on some tmux versions, which\n * is a behaviour change this ticket has no business making).\n */\nexport function hostClaudePairCommand(claudeBin: string): string {\n return `${posixSingleQuote(claudeBin)} --settings ${posixSingleQuote(HOST_CLAUDE_RETENTION_SETTINGS)}`;\n}\n"],"mappings":";AA8CO,IAAM,iCAAiC,KAAK,UAAU,EAAE,mBAAmB,KAAK,CAAC;AAGjF,SAAS,sBAAsB,oBAAsC;AAC1E,SAAO;AAAA;AAAA,IAEL;AAAA,IAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IAAqB;AAAA,IACrB;AAAA,IAAkB;AAAA;AAAA,IAElB;AAAA,IAAc;AAAA,EAChB;AACF;AAGA,SAAS,iBAAiB,OAAuB;AAC/C,SAAO,IAAI,MAAM,QAAQ,MAAM,OAAO,CAAC;AACzC;AAeO,SAAS,sBAAsB,WAA2B;AAC/D,SAAO,GAAG,iBAAiB,SAAS,CAAC,eAAe,iBAAiB,8BAA8B,CAAC;AACtG;","names":[]}
|
|
@@ -8095,7 +8095,7 @@ function exchangeFailureKind(err) {
|
|
|
8095
8095
|
}
|
|
8096
8096
|
|
|
8097
8097
|
// src/lib/api-client.ts
|
|
8098
|
-
var agtCliVersion = true ? "0.28.
|
|
8098
|
+
var agtCliVersion = true ? "0.28.1246" : "dev";
|
|
8099
8099
|
var lastConfigHash = null;
|
|
8100
8100
|
function setConfigHash(hash) {
|
|
8101
8101
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13750,4 +13750,4 @@ export {
|
|
|
13750
13750
|
managerInstallSystemUnitCommand,
|
|
13751
13751
|
managerUninstallSystemUnitCommand
|
|
13752
13752
|
};
|
|
13753
|
-
//# sourceMappingURL=chunk-
|
|
13753
|
+
//# sourceMappingURL=chunk-ZHLBICZL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hostClaudePairCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MM3OF6UT.js";
|
|
4
4
|
import {
|
|
5
5
|
consumerTermsOffKeys,
|
|
6
6
|
selectRowKeys
|
|
@@ -836,4 +836,4 @@ export {
|
|
|
836
836
|
startClaudePair,
|
|
837
837
|
submitClaudePairCode
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
839
|
+
//# sourceMappingURL=claude-pair-runtime-IOUQF6RF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hostClaudeOneShotArgs
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MM3OF6UT.js";
|
|
4
4
|
import {
|
|
5
5
|
ApiError,
|
|
6
6
|
COMPUTER_USE_MCP_KEY,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-ZHLBICZL.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -16686,7 +16686,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16686
16686
|
var lastVersionCheckAt = 0;
|
|
16687
16687
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16688
16688
|
var lastResponsivenessProbeAt = 0;
|
|
16689
|
-
var agtCliVersion = true ? "0.28.
|
|
16689
|
+
var agtCliVersion = true ? "0.28.1246" : "dev";
|
|
16690
16690
|
function resolveBrewPath(execFileSync3) {
|
|
16691
16691
|
try {
|
|
16692
16692
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -25275,7 +25275,7 @@ async function processClaudePairSessions(agents) {
|
|
|
25275
25275
|
snapshotPairConfig,
|
|
25276
25276
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
25277
25277
|
planPairStartReport
|
|
25278
|
-
} = await import("../claude-pair-runtime-
|
|
25278
|
+
} = await import("../claude-pair-runtime-IOUQF6RF.js");
|
|
25279
25279
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
25280
25280
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
25281
25281
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/claude-host-args.ts"],"sourcesContent":["/**\n * ENG-11277 — the arguments every manager-run, host-side `claude -p` one-shot\n * shares (conversation eval, the runtime auth probe, the host usage poll).\n *\n * These run on the HOST against the shared `~/.claude`. On Pedders v8\n * (2026-10-02) Claude Code's retention sweep removed live transcript bind\n * sources (`.last-cleanup` 04:24:12Z, mask dir gone, the container's projects\n * dir at nlink 0) and three agents failed every transcript write and\n * compaction; see transcript-mount-health.ts.\n *\n * `-p` one-shots DO run that sweep: measured 5 Oct on 2.1.285 (Koda, ENG-11279),\n * a print-mode run removed old and empty project trees from its config dir. The\n * `--settings` flag below loads flag-level settings, which outrank user settings\n * (user < project < local < flag < policy), and a 3650-day `cleanupPeriodDays`\n * (Claude Code's own suggestion for long retention; 0 is rejected by its schema)\n * means the sweep ages nothing out. It does NOT stop the empty-dir rmdirs, which\n * have no age check, so it is defence in depth, not the guard.\n *\n * The guard is the sentinel kept in every bind source\n * (ensureTranscriptBindSources in persistent-session.ts) plus the manager's mount\n * probe. ENG-11279 additionally runs two of the three one-shots in a PRIVATE\n * config dir on api_key hosts (applyClaudeAuthToEnv's `isolateApiKeyConfigDir`),\n * so they are not sweepers of the shared tree at all:\n * - conversation eval and the host usage poll: isolated on api_key hosts.\n * Subscription hosts stay on the shared dir - a second copy of the OAuth\n * credential could refresh and rotate the refresh token out from under every\n * other session; isolating those is an open decision on the ticket.\n * - the runtime auth probe: DELIBERATELY on the shared dir in every mode. It\n * exists to prove the host's real credential round-trips (ENG-8623); in a\n * private dir it would report a host with a dead shared credential as healthy.\n */\nexport const HOST_CLAUDE_RETENTION_SETTINGS = JSON.stringify({ cleanupPeriodDays: 3650 });\n\n/** The isolation + retention tail shared by every manager host-side `claude -p`. */\nexport function hostClaudeOneShotArgs(emptyMcpConfigPath: string): string[] {\n return [\n // No project config, no MCP, no tools: these exercise the model or auth only.\n '--mcp-config', emptyMcpConfigPath,\n '--strict-mcp-config',\n '--permission-mode', 'auto',\n '--allowedTools', '',\n // ENG-11277: never age anything out of the shared ~/.claude from here.\n '--settings', HOST_CLAUDE_RETENTION_SETTINGS,\n ];\n}\n\n/** POSIX single-quote one argument: `'` -> `'\\''`. */\nfunction posixSingleQuote(value: string): string {\n return `'${value.replace(/'/g, `'\\\\''`)}'`;\n}\n\n/**\n * ENG-11279 (4): the pair/login runtime's `claude` command, with the same\n * retention flag as the one-shots, for parity.\n *\n * NOT load-bearing: the pair runtime must write the SHARED config dir (it is the\n * login), so it cannot be isolated, and the flag does not stop the empty-dir\n * rmdirs. It only stops this process ageing transcripts out at the 30-day default.\n *\n * A single shell-command STRING, quoted here, because that is what tmux\n * `new-session` is given (it runs one argument through `sh -c`; splitting it into\n * several argv entries changes that to a direct exec on some tmux versions, which\n * is a behaviour change this ticket has no business making).\n */\nexport function hostClaudePairCommand(claudeBin: string): string {\n return `${posixSingleQuote(claudeBin)} --settings ${posixSingleQuote(HOST_CLAUDE_RETENTION_SETTINGS)}`;\n}\n"],"mappings":";AA+BO,IAAM,iCAAiC,KAAK,UAAU,EAAE,mBAAmB,KAAK,CAAC;AAGjF,SAAS,sBAAsB,oBAAsC;AAC1E,SAAO;AAAA;AAAA,IAEL;AAAA,IAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IAAqB;AAAA,IACrB;AAAA,IAAkB;AAAA;AAAA,IAElB;AAAA,IAAc;AAAA,EAChB;AACF;AAGA,SAAS,iBAAiB,OAAuB;AAC/C,SAAO,IAAI,MAAM,QAAQ,MAAM,OAAO,CAAC;AACzC;AAeO,SAAS,sBAAsB,WAA2B;AAC/D,SAAO,GAAG,iBAAiB,SAAS,CAAC,eAAe,iBAAiB,8BAA8B,CAAC;AACtG;","names":[]}
|
|
File without changes
|
|
File without changes
|