@integrity-labs/agt-cli 0.28.1123 → 0.28.1125

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.
Files changed (26) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-IXCMKMDT.js → chunk-C5YNHEST.js} +2 -2
  3. package/dist/chunk-JEC3BUC6.js +29 -0
  4. package/dist/chunk-JEC3BUC6.js.map +1 -0
  5. package/dist/{chunk-E2RGZJA2.js → chunk-JHKH2EYM.js} +4 -4
  6. package/dist/{chunk-J7GZNCX2.js → chunk-JI2D2TA2.js} +7 -1
  7. package/dist/{chunk-J7GZNCX2.js.map → chunk-JI2D2TA2.js.map} +1 -1
  8. package/dist/{claude-pair-runtime-NHQCMIW6.js → claude-pair-runtime-5OBFRZWS.js} +8 -3
  9. package/dist/claude-pair-runtime-5OBFRZWS.js.map +1 -0
  10. package/dist/lib/manager-worker.js +75 -62
  11. package/dist/lib/manager-worker.js.map +1 -1
  12. package/dist/mcp/direct-chat-channel.js +6 -0
  13. package/dist/mcp/index.js +6 -0
  14. package/dist/mcp/origami.js +6 -0
  15. package/dist/mcp/slack-channel.js +6 -0
  16. package/dist/mcp/telegram-channel.js +98 -0
  17. package/dist/{persistent-session-URAR5HDF.js → persistent-session-E5IR3RBF.js} +3 -3
  18. package/dist/{responsiveness-probe-OICDEM3R.js → responsiveness-probe-KCICZE6E.js} +3 -3
  19. package/dist/{session-auth-dead-QYQXJNZP.js → session-auth-dead-VYP4VCMX.js} +2 -2
  20. package/package.json +1 -1
  21. package/dist/claude-pair-runtime-NHQCMIW6.js.map +0 -1
  22. /package/dist/{chunk-IXCMKMDT.js.map → chunk-C5YNHEST.js.map} +0 -0
  23. /package/dist/{chunk-E2RGZJA2.js.map → chunk-JHKH2EYM.js.map} +0 -0
  24. /package/dist/{persistent-session-URAR5HDF.js.map → persistent-session-E5IR3RBF.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-OICDEM3R.js.map → responsiveness-probe-KCICZE6E.js.map} +0 -0
  26. /package/dist/{session-auth-dead-QYQXJNZP.js.map → session-auth-dead-VYP4VCMX.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-E2RGZJA2.js";
43
+ } from "../chunk-JHKH2EYM.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-IXCMKMDT.js";
48
+ } from "../chunk-C5YNHEST.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-J7GZNCX2.js";
82
+ } from "../chunk-JI2D2TA2.js";
83
83
  import "../chunk-OCMJ5E6J.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
  import "../chunk-EL5MWGGH.js";
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
5474
5474
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5475
5475
  import chalk18 from "chalk";
5476
5476
  import ora16 from "ora";
5477
- var cliVersion = true ? "0.28.1123" : "dev";
5477
+ var cliVersion = true ? "0.28.1125" : "dev";
5478
5478
  async function fetchLatestVersion() {
5479
5479
  const host2 = getHost();
5480
5480
  if (!host2) return null;
@@ -6734,7 +6734,7 @@ function handleError(err) {
6734
6734
  }
6735
6735
 
6736
6736
  // src/bin/agt.ts
6737
- var cliVersion2 = true ? "0.28.1123" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1125" : "dev";
6738
6738
  var program = new Command();
6739
6739
  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");
6740
6740
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -24,7 +24,7 @@ import {
24
24
  rotateDailySession,
25
25
  sessionFileExists,
26
26
  todayLocalIso
27
- } from "./chunk-J7GZNCX2.js";
27
+ } from "./chunk-JI2D2TA2.js";
28
28
  import {
29
29
  classifyUnanswerablePane,
30
30
  findUsageLimitResetHint,
@@ -6114,4 +6114,4 @@ export {
6114
6114
  stopAllSessionsAndWait,
6115
6115
  getProjectDir
6116
6116
  };
6117
- //# sourceMappingURL=chunk-IXCMKMDT.js.map
6117
+ //# sourceMappingURL=chunk-C5YNHEST.js.map
@@ -0,0 +1,29 @@
1
+ // src/lib/claude-host-args.ts
2
+ var HOST_CLAUDE_RETENTION_SETTINGS = JSON.stringify({ cleanupPeriodDays: 3650 });
3
+ function hostClaudeOneShotArgs(emptyMcpConfigPath) {
4
+ return [
5
+ // No project config, no MCP, no tools: these exercise the model or auth only.
6
+ "--mcp-config",
7
+ emptyMcpConfigPath,
8
+ "--strict-mcp-config",
9
+ "--permission-mode",
10
+ "auto",
11
+ "--allowedTools",
12
+ "",
13
+ // ENG-11277: never age anything out of the shared ~/.claude from here.
14
+ "--settings",
15
+ HOST_CLAUDE_RETENTION_SETTINGS
16
+ ];
17
+ }
18
+ function posixSingleQuote(value) {
19
+ return `'${value.replace(/'/g, `'\\''`)}'`;
20
+ }
21
+ function hostClaudePairCommand(claudeBin) {
22
+ return `${posixSingleQuote(claudeBin)} --settings ${posixSingleQuote(HOST_CLAUDE_RETENTION_SETTINGS)}`;
23
+ }
24
+
25
+ export {
26
+ hostClaudeOneShotArgs,
27
+ hostClaudePairCommand
28
+ };
29
+ //# sourceMappingURL=chunk-JEC3BUC6.js.map
@@ -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 - 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":[]}
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-IXCMKMDT.js";
19
+ } from "./chunk-C5YNHEST.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -79,7 +79,7 @@ import {
79
79
  sessionTranscriptDir,
80
80
  worseConnectivityOutcome,
81
81
  wrapScheduledTaskPrompt
82
- } from "./chunk-J7GZNCX2.js";
82
+ } from "./chunk-JI2D2TA2.js";
83
83
  import {
84
84
  classifyUnanswerablePane,
85
85
  isConsumerTermsDialogVisible,
@@ -7518,7 +7518,7 @@ function exchangeFailureKind(err) {
7518
7518
  }
7519
7519
 
7520
7520
  // src/lib/api-client.ts
7521
- var agtCliVersion = true ? "0.28.1123" : "dev";
7521
+ var agtCliVersion = true ? "0.28.1125" : "dev";
7522
7522
  var lastConfigHash = null;
7523
7523
  function setConfigHash(hash) {
7524
7524
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12664,4 +12664,4 @@ export {
12664
12664
  managerInstallSystemUnitCommand,
12665
12665
  managerUninstallSystemUnitCommand
12666
12666
  };
12667
- //# sourceMappingURL=chunk-E2RGZJA2.js.map
12667
+ //# sourceMappingURL=chunk-JHKH2EYM.js.map
@@ -5935,6 +5935,12 @@ var FLAG_REGISTRY = [
5935
5935
  flagType: "boolean",
5936
5936
  defaultValue: false
5937
5937
  },
5938
+ {
5939
+ key: "broker-read-jobs",
5940
+ description: `Slow broker READ tools finish in a background job (ENG-11476, ADR-0129). When on for an org, an opted-in read tool (Pronto Xi first) that misses an 18s grace window answers "still running, call again with the same arguments" and finishes in the broker-read-job worker instead of timing out. Off = today's synchronous call, so false is the safe value. Evaluated in the API per org, team and agent.`,
5941
+ flagType: "boolean",
5942
+ defaultValue: false
5943
+ },
5938
5944
  {
5939
5945
  key: "id-keyed-layout-migration",
5940
5946
  description: "Dark migration engine (ENG-7891 / ADR-0049 slice 3): convert an EXISTING legacy codename-keyed agent host dir to the agent_id-keyed layout (real ~/.augmented/{agent_id} dir + codename compatibility symlink) at the next pre-spawn tick, moving the Claude transcript store so the agent keeps its history. Resolved PER-AGENT (getBooleanForAgent) so a one-way-door migration can be armed one agent at a time. Ships dark; NOT armed until a test-host rehearsal passes (the last ENG-7891 acceptance gate). Crash recovery + the per-agent preconditions (session-down, WhatsApp-writer quiesce, id-aware hook regen by the spawn funnel) are always-on and flag-independent; this flag only gates INITIATING a fresh conversion. Deliberately no host-wide env override - arming is per-agent to avoid flipping every legacy agent on a host at once.",
@@ -16830,4 +16836,4 @@ export {
16830
16836
  peekCurrentSession,
16831
16837
  readDailySessionPin
16832
16838
  };
16833
- //# sourceMappingURL=chunk-J7GZNCX2.js.map
16839
+ //# sourceMappingURL=chunk-JI2D2TA2.js.map