@integrity-labs/agt-cli 0.28.990 → 0.28.992

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 (27) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-TGCA3LTI.js → chunk-C72SNMP6.js} +26 -5
  3. package/dist/chunk-C72SNMP6.js.map +1 -0
  4. package/dist/{chunk-6KYXH6ZZ.js → chunk-NF7LESJA.js} +73 -6
  5. package/dist/chunk-NF7LESJA.js.map +1 -0
  6. package/dist/{chunk-P7B5IRH5.js → chunk-PNQCXCEY.js} +19 -8
  7. package/dist/chunk-PNQCXCEY.js.map +1 -0
  8. package/dist/{claude-pair-runtime-GQM26I3M.js → claude-pair-runtime-EVAYZI57.js} +2 -2
  9. package/dist/lib/manager-worker.js +33 -15
  10. package/dist/lib/manager-worker.js.map +1 -1
  11. package/dist/mcp/direct-chat-channel.js +15 -1
  12. package/dist/mcp/index.js +15 -1
  13. package/dist/mcp/origami.js +15 -1
  14. package/dist/mcp/remote-oauth-proxy.js +120 -29
  15. package/dist/mcp/slack-channel.js +15 -1
  16. package/dist/mcp/telegram-channel.js +15 -1
  17. package/dist/{persistent-session-PYYD53GZ.js → persistent-session-HBUVJYYR.js} +5 -3
  18. package/dist/{responsiveness-probe-JENZOOKG.js → responsiveness-probe-AIBA25OP.js} +3 -3
  19. package/dist/{session-auth-dead-BGXRQB27.js → session-auth-dead-XTMVOHUX.js} +2 -2
  20. package/package.json +1 -1
  21. package/dist/chunk-6KYXH6ZZ.js.map +0 -1
  22. package/dist/chunk-P7B5IRH5.js.map +0 -1
  23. package/dist/chunk-TGCA3LTI.js.map +0 -1
  24. /package/dist/{claude-pair-runtime-GQM26I3M.js.map → claude-pair-runtime-EVAYZI57.js.map} +0 -0
  25. /package/dist/{persistent-session-PYYD53GZ.js.map → persistent-session-HBUVJYYR.js.map} +0 -0
  26. /package/dist/{responsiveness-probe-JENZOOKG.js.map → responsiveness-probe-AIBA25OP.js.map} +0 -0
  27. /package/dist/{session-auth-dead-BGXRQB27.js.map → session-auth-dead-XTMVOHUX.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-P7B5IRH5.js";
43
+ } from "../chunk-PNQCXCEY.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-6KYXH6ZZ.js";
48
+ } from "../chunk-NF7LESJA.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-TGCA3LTI.js";
82
+ } from "../chunk-C72SNMP6.js";
83
83
  import "../chunk-DHWNVVX4.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
 
@@ -5472,7 +5472,7 @@ import { execFileSync, execSync } from "child_process";
5472
5472
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5473
5473
  import chalk18 from "chalk";
5474
5474
  import ora16 from "ora";
5475
- var cliVersion = true ? "0.28.990" : "dev";
5475
+ var cliVersion = true ? "0.28.992" : "dev";
5476
5476
  async function fetchLatestVersion() {
5477
5477
  const host2 = getHost();
5478
5478
  if (!host2) return null;
@@ -6732,7 +6732,7 @@ function handleError(err) {
6732
6732
  }
6733
6733
 
6734
6734
  // src/bin/agt.ts
6735
- var cliVersion2 = true ? "0.28.990" : "dev";
6735
+ var cliVersion2 = true ? "0.28.992" : "dev";
6736
6736
  var program = new Command();
6737
6737
  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");
6738
6738
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -9560,6 +9560,11 @@ var ajv2 = new Ajv20202({ allErrors: true, strict: false });
9560
9560
  addFormats2(ajv2);
9561
9561
  var compiledMetaSchema = ajv2.compile(context_meta_schema_default);
9562
9562
 
9563
+ // ../../packages/core/dist/integrations/hitl-resolver.js
9564
+ function isAutoTier(tier) {
9565
+ return tier === "read" || tier === "write";
9566
+ }
9567
+
9563
9568
  // ../../packages/core/dist/integrations/tool-tier-heuristic.js
9564
9569
  var READ_VERBS = "GET|LIST|FIND|FETCH|RETRIEVE|SEARCH|QUERY|DESCRIBE|INSPECT|SCAN|SHOW|VIEW|READ|EXPORT|DOWNLOAD";
9565
9570
  var NO_READ_VERB_ACTION = `(?!(?:^|.*[_-])(${READ_VERBS})[_-])`;
@@ -12614,7 +12619,21 @@ var REMOTE_MCP_PROXY_ENV = {
12614
12619
  // success. Deliberately NOT in REMOTE_MCP_AUTH_ENV_KEYS: it shapes which calls
12615
12620
  // we forward, not what an outbound request looks like, so the probe (which
12616
12621
  // never issues a tools/call) has nothing to reconstruct from it.
12617
- argRejects: "AGT_REMOTE_MCP_ARG_REJECTS"
12622
+ argRejects: "AGT_REMOTE_MCP_ARG_REJECTS",
12623
+ // ENG-10614: the per-tool HITL floor table, as JSON `{ "<tool>": "<tier>" }`.
12624
+ //
12625
+ // WHY THIS EXISTS AT ALL. A hosted API-key remote MCP is called by Claude Code
12626
+ // straight at the vendor, so none of the three brokered HITL gates
12627
+ // (`enforceComposioHitlGate`, `hitlGateForBrokerCall`, the CLI lane) is in the
12628
+ // path, and `tool_definitions.min_hitl_tier` was read by nothing on this lane
12629
+ // — measured: zero hits for that column under `packages/core/src/provisioning`,
12630
+ // `packages/mcp/src` or `apps/cli/src`. The catalog said `delete_item` needed
12631
+ // approval and the call went straight out.
12632
+ //
12633
+ // Deliberately NOT in REMOTE_MCP_AUTH_ENV_KEYS, for the same reason as
12634
+ // `argRejects`: it shapes WHICH calls we forward, not what an outbound request
12635
+ // looks like, so the connectivity probe has nothing to reconstruct from it.
12636
+ toolTiers: "AGT_REMOTE_MCP_TOOL_TIERS"
12618
12637
  };
12619
12638
  var REMOTE_MCP_AUTH_ENV_KEYS = [
12620
12639
  REMOTE_MCP_PROXY_ENV.tokenVar,
@@ -15120,6 +15139,11 @@ export {
15120
15139
  remoteMcpEnvPrefix,
15121
15140
  remoteMcpConnectionScopedEnvVar,
15122
15141
  remoteMcpConnectionLabel,
15142
+ HITL_TIER_ORDER,
15143
+ isAutoTier,
15144
+ REMOTE_MCP_PROXY_ENV,
15145
+ readRemoteMcpAuthConfig,
15146
+ buildForwardHeaders,
15123
15147
  isControlPlaneOnlyConfigKey,
15124
15148
  isControlPlaneOnlyEnvVar,
15125
15149
  senderPolicyIsEnforcedOn,
@@ -15163,9 +15187,6 @@ export {
15163
15187
  PROBE_TOOLKIT_PATH_DIRS,
15164
15188
  PROBE_HOME_RELATIVE_PATH_SEGMENTS,
15165
15189
  PROBE_SYSTEM_PATH_FLOOR,
15166
- REMOTE_MCP_PROXY_ENV,
15167
- readRemoteMcpAuthConfig,
15168
- buildForwardHeaders,
15169
15190
  SLACK_SOCKET_STATE_FILENAME,
15170
15191
  parseSlackSocketState,
15171
15192
  isSlackInboundTransportDown,
@@ -15258,4 +15279,4 @@ export {
15258
15279
  peekCurrentSession,
15259
15280
  readDailySessionPin
15260
15281
  };
15261
- //# sourceMappingURL=chunk-TGCA3LTI.js.map
15282
+ //# sourceMappingURL=chunk-C72SNMP6.js.map