@integrity-labs/agt-cli 0.28.1244 → 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.
Files changed (31) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-6YZZ2WN2.js → chunk-22GBHBJZ.js} +2 -2
  3. package/dist/{chunk-4D5PTVNR.js → chunk-EGMQVUAO.js} +3 -3
  4. package/dist/{chunk-JEC3BUC6.js → chunk-MM3OF6UT.js} +1 -1
  5. package/dist/chunk-MM3OF6UT.js.map +1 -0
  6. package/dist/{chunk-UAAR6VJI.js → chunk-OSXVD3YF.js} +37 -1
  7. package/dist/{chunk-UAAR6VJI.js.map → chunk-OSXVD3YF.js.map} +1 -1
  8. package/dist/{chunk-AB47AXD6.js → chunk-V47ZQJ3Y.js} +2 -2
  9. package/dist/{chunk-BCYFOHFP.js → chunk-ZHLBICZL.js} +5 -5
  10. package/dist/{claude-code-updater-2QU66VPT.js → claude-code-updater-6QVV5JHB.js} +3 -3
  11. package/dist/{claude-pair-runtime-DR7HRJNI.js → claude-pair-runtime-IOUQF6RF.js} +4 -4
  12. package/dist/lib/manager-worker.js +20 -20
  13. package/dist/mcp/direct-chat-channel.js +32 -0
  14. package/dist/mcp/index.js +32 -0
  15. package/dist/mcp/origami.js +32 -0
  16. package/dist/mcp/slack-channel.js +32 -0
  17. package/dist/mcp/telegram-channel.js +32 -0
  18. package/dist/{persistent-session-YJSZWSLQ.js → persistent-session-4HI235XH.js} +4 -4
  19. package/dist/{responsiveness-probe-SPEEY2LI.js → responsiveness-probe-AD6WIPDA.js} +4 -4
  20. package/dist/{session-auth-dead-TODAGWTJ.js → session-auth-dead-6FSKTBLA.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/chunk-JEC3BUC6.js.map +0 -1
  23. /package/dist/{chunk-6YZZ2WN2.js.map → chunk-22GBHBJZ.js.map} +0 -0
  24. /package/dist/{chunk-4D5PTVNR.js.map → chunk-EGMQVUAO.js.map} +0 -0
  25. /package/dist/{chunk-AB47AXD6.js.map → chunk-V47ZQJ3Y.js.map} +0 -0
  26. /package/dist/{chunk-BCYFOHFP.js.map → chunk-ZHLBICZL.js.map} +0 -0
  27. /package/dist/{claude-code-updater-2QU66VPT.js.map → claude-code-updater-6QVV5JHB.js.map} +0 -0
  28. /package/dist/{claude-pair-runtime-DR7HRJNI.js.map → claude-pair-runtime-IOUQF6RF.js.map} +0 -0
  29. /package/dist/{persistent-session-YJSZWSLQ.js.map → persistent-session-4HI235XH.js.map} +0 -0
  30. /package/dist/{responsiveness-probe-SPEEY2LI.js.map → responsiveness-probe-AD6WIPDA.js.map} +0 -0
  31. /package/dist/{session-auth-dead-TODAGWTJ.js.map → session-auth-dead-6FSKTBLA.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,17 +40,17 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-BCYFOHFP.js";
43
+ } from "../chunk-ZHLBICZL.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-4D5PTVNR.js";
48
+ } from "../chunk-EGMQVUAO.js";
49
49
  import {
50
50
  markDailySessionSpawn,
51
51
  sessionFileExists,
52
52
  sessionTranscriptDir
53
- } from "../chunk-AB47AXD6.js";
53
+ } from "../chunk-V47ZQJ3Y.js";
54
54
  import "../chunk-HYQ7VOC3.js";
55
55
  import "../chunk-6HBXEJHO.js";
56
56
  import "../chunk-XWVM4KPK.js";
@@ -83,7 +83,7 @@ import {
83
83
  requiredMcpWildcard,
84
84
  resolveChannels,
85
85
  serializeManifestForSlackCli
86
- } from "../chunk-UAAR6VJI.js";
86
+ } from "../chunk-OSXVD3YF.js";
87
87
  import "../chunk-AIUIMEUS.js";
88
88
  import "../chunk-DGUM43GV.js";
89
89
 
@@ -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.1244" : "dev";
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.1244" : "dev";
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) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-UAAR6VJI.js";
7
+ } from "./chunk-OSXVD3YF.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-6YZZ2WN2.js.map
725
+ //# sourceMappingURL=chunk-22GBHBJZ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-AB47AXD6.js";
7
+ } from "./chunk-V47ZQJ3Y.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-UAAR6VJI.js";
54
+ } from "./chunk-OSXVD3YF.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6196,4 +6196,4 @@ export {
6196
6196
  stopAllSessionsAndWait,
6197
6197
  getProjectDir
6198
6198
  };
6199
- //# sourceMappingURL=chunk-4D5PTVNR.js.map
6199
+ //# sourceMappingURL=chunk-EGMQVUAO.js.map
@@ -26,4 +26,4 @@ export {
26
26
  hostClaudeOneShotArgs,
27
27
  hostClaudePairCommand
28
28
  };
29
- //# sourceMappingURL=chunk-JEC3BUC6.js.map
29
+ //# sourceMappingURL=chunk-MM3OF6UT.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, 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":[]}
@@ -9880,6 +9880,38 @@ var integration_metadata_v1_default = {
9880
9880
  type: "string",
9881
9881
  enum: ["required", "optional"],
9882
9882
  description: "ADR 0010 \u2014 per-tool credential expectation. `required` (default) makes the broker fail closed when no install credential is attached; `optional` lets the broker call the vendor without an `Authorization` header (used by keyless integrations such as Augmented Live)."
9883
+ },
9884
+ approval_snapshot: {
9885
+ type: "object",
9886
+ additionalProperties: false,
9887
+ required: ["http", "resource_label"],
9888
+ description: "CS-2460: for a held tool, the GET that reads the resource it acts on. Read when the approval is requested (and shown on the card), and again before the approved call runs; a difference, or a failed read, refuses the call. `http` is templated with the tool's own args.",
9889
+ properties: {
9890
+ http: {
9891
+ type: "object",
9892
+ additionalProperties: false,
9893
+ required: ["method", "path_template"],
9894
+ properties: {
9895
+ method: { const: "GET" },
9896
+ path_template: { type: "string", minLength: 1 },
9897
+ headers_template: {
9898
+ type: "object",
9899
+ propertyNames: { pattern: "^[A-Za-z0-9!#$%&'*+.^_`|~-]+$" },
9900
+ additionalProperties: { type: "string" }
9901
+ }
9902
+ }
9903
+ },
9904
+ resource_label: {
9905
+ type: "string",
9906
+ minLength: 1,
9907
+ description: "What the resource is called to a person (e.g. `campaign`), for the card and the refusal message."
9908
+ },
9909
+ ignore_keys: {
9910
+ type: "array",
9911
+ items: { type: "string", minLength: 1 },
9912
+ description: "Keys removed from the snapshot before hashing, matched by name at any depth (timestamps, statistics)."
9913
+ }
9914
+ }
9883
9915
  }
9884
9916
  }
9885
9917
  }
@@ -13224,6 +13256,9 @@ var HTTP_PROBE_PROVIDERS = /* @__PURE__ */ new Set([
13224
13256
  // only as failed reports. Routes to `probeOmnisend` against
13225
13257
  // `GET /brands/current`, never the rate-capped analytics endpoints.
13226
13258
  "omnisend",
13259
+ // CS-2460: Omnisend write access. Same API and key type as `omnisend`, so the
13260
+ // same probe; a write-permissioned key must also carry brand read for it.
13261
+ "omnisend-writes",
13227
13262
  // ENG-11540: FlutterFlow, added with the integration. Without it the CLI
13228
13263
  // default (`flutterflow --version`) runs, and that exits 1 outside a
13229
13264
  // workspace, so every healthy install would read broken from its first probe.
@@ -14154,6 +14189,7 @@ async function probeHttpProvider(definitionId, credentials, fetchImpl = fetch, c
14154
14189
  case "cultureamp":
14155
14190
  return probeCultureAmp(credentials, fetchImpl);
14156
14191
  case "omnisend":
14192
+ case "omnisend-writes":
14157
14193
  return probeOmnisend(credentials, fetchImpl);
14158
14194
  case "flutterflow":
14159
14195
  return probeFlutterFlow(credentials, fetchImpl);
@@ -18396,4 +18432,4 @@ export {
18396
18432
  HOST_ROTATE_KEY_CONFLICT,
18397
18433
  shouldMintReplacementKey
18398
18434
  };
18399
- //# sourceMappingURL=chunk-UAAR6VJI.js.map
18435
+ //# sourceMappingURL=chunk-OSXVD3YF.js.map