@integrity-labs/agt-cli 0.28.1309 → 0.28.1310

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 (30) hide show
  1. package/dist/{api-client-OU7NANHC.js → api-client-A3QUGSNM.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-LZZNWEAC.js → chunk-6WALYNWT.js} +3 -3
  4. package/dist/{chunk-JZOA4A3J.js → chunk-B762DH5R.js} +2 -2
  5. package/dist/{chunk-GODP7VNT.js → chunk-PN5AZVKG.js} +15 -9
  6. package/dist/chunk-PN5AZVKG.js.map +1 -0
  7. package/dist/{chunk-NXTNYNNV.js → chunk-QSND4PGO.js} +2 -2
  8. package/dist/{chunk-VSJUMNQ5.js → chunk-V4LGFXJD.js} +28 -8
  9. package/dist/{chunk-VSJUMNQ5.js.map → chunk-V4LGFXJD.js.map} +1 -1
  10. package/dist/{chunk-WW2CTOEO.js → chunk-XSXBOLMK.js} +1 -1
  11. package/dist/chunk-XSXBOLMK.js.map +1 -0
  12. package/dist/{claude-code-updater-OU4AEM5Y.js → claude-code-updater-MC24BHPQ.js} +3 -3
  13. package/dist/{claude-pair-runtime-H7A7ZOEW.js → claude-pair-runtime-DI4N4NQ5.js} +3 -3
  14. package/dist/lib/manager-worker.js +46 -24
  15. package/dist/lib/manager-worker.js.map +1 -1
  16. package/dist/{persistent-session-OUCTECWP.js → persistent-session-WRHN2XP6.js} +4 -4
  17. package/dist/{responsiveness-probe-SC72APRB.js → responsiveness-probe-ZH5C4LKK.js} +4 -4
  18. package/dist/{session-auth-dead-MQR2SLW5.js → session-auth-dead-ZZO7YYU7.js} +3 -3
  19. package/package.json +1 -1
  20. package/dist/chunk-GODP7VNT.js.map +0 -1
  21. package/dist/chunk-WW2CTOEO.js.map +0 -1
  22. /package/dist/{api-client-OU7NANHC.js.map → api-client-A3QUGSNM.js.map} +0 -0
  23. /package/dist/{chunk-LZZNWEAC.js.map → chunk-6WALYNWT.js.map} +0 -0
  24. /package/dist/{chunk-JZOA4A3J.js.map → chunk-B762DH5R.js.map} +0 -0
  25. /package/dist/{chunk-NXTNYNNV.js.map → chunk-QSND4PGO.js.map} +0 -0
  26. /package/dist/{claude-code-updater-OU4AEM5Y.js.map → claude-code-updater-MC24BHPQ.js.map} +0 -0
  27. /package/dist/{claude-pair-runtime-H7A7ZOEW.js.map → claude-pair-runtime-DI4N4NQ5.js.map} +0 -0
  28. /package/dist/{persistent-session-OUCTECWP.js.map → persistent-session-WRHN2XP6.js.map} +0 -0
  29. /package/dist/{responsiveness-probe-SC72APRB.js.map → responsiveness-probe-ZH5C4LKK.js.map} +0 -0
  30. /package/dist/{session-auth-dead-MQR2SLW5.js.map → session-auth-dead-ZZO7YYU7.js.map} +0 -0
@@ -15,8 +15,8 @@ import {
15
15
  mintRotatedHostKey,
16
16
  probeHostKey,
17
17
  setConfigHash
18
- } from "./chunk-LZZNWEAC.js";
19
- import "./chunk-WW2CTOEO.js";
18
+ } from "./chunk-6WALYNWT.js";
19
+ import "./chunk-XSXBOLMK.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
22
22
  ApiError,
@@ -36,4 +36,4 @@ export {
36
36
  probeHostKey,
37
37
  setConfigHash
38
38
  };
39
- //# sourceMappingURL=api-client-OU7NANHC.js.map
39
+ //# sourceMappingURL=api-client-A3QUGSNM.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-GODP7VNT.js";
34
+ } from "../chunk-PN5AZVKG.js";
35
35
  import {
36
36
  ApiError,
37
37
  PROD_AGT_HOST,
@@ -42,17 +42,17 @@ import {
42
42
  getHost,
43
43
  getHostId,
44
44
  setActiveTeam
45
- } from "../chunk-LZZNWEAC.js";
45
+ } from "../chunk-6WALYNWT.js";
46
46
  import {
47
47
  getProjectDir,
48
48
  isSessionResumeDisabled,
49
49
  readDirectChatSessionState
50
- } from "../chunk-VSJUMNQ5.js";
50
+ } from "../chunk-V4LGFXJD.js";
51
51
  import {
52
52
  markDailySessionSpawn,
53
53
  sessionFileExists,
54
54
  sessionTranscriptDir
55
- } from "../chunk-NXTNYNNV.js";
55
+ } from "../chunk-QSND4PGO.js";
56
56
  import "../chunk-XL2HPM67.js";
57
57
  import "../chunk-6HBXEJHO.js";
58
58
  import "../chunk-XWVM4KPK.js";
@@ -85,7 +85,7 @@ import {
85
85
  requiredMcpWildcard,
86
86
  resolveChannels,
87
87
  serializeManifestForSlackCli
88
- } from "../chunk-WW2CTOEO.js";
88
+ } from "../chunk-XSXBOLMK.js";
89
89
  import "../chunk-AIUIMEUS.js";
90
90
  import "../chunk-DGUM43GV.js";
91
91
 
@@ -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.1309" : "dev";
5210
+ var cliVersion = true ? "0.28.1310" : "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.1309" : "dev";
6470
+ var cliVersion2 = true ? "0.28.1310" : "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) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOST_ROTATE_KEY_CONFLICT
3
- } from "./chunk-WW2CTOEO.js";
3
+ } from "./chunk-XSXBOLMK.js";
4
4
 
5
5
  // src/lib/config.ts
6
6
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1309" : "dev";
106
+ var agtCliVersion = true ? "0.28.1310" : "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-LZZNWEAC.js.map
471
+ //# sourceMappingURL=chunk-6WALYNWT.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-WW2CTOEO.js";
7
+ } from "./chunk-XSXBOLMK.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-JZOA4A3J.js.map
725
+ //# sourceMappingURL=chunk-B762DH5R.js.map
@@ -2,7 +2,7 @@ import {
2
2
  exchangeApiKey,
3
3
  getApiKey,
4
4
  getHost
5
- } from "./chunk-LZZNWEAC.js";
5
+ } from "./chunk-6WALYNWT.js";
6
6
  import {
7
7
  LATE_BOUND_VARS,
8
8
  PLATFORM_DENY_PERMISSIONS,
@@ -26,11 +26,11 @@ import {
26
26
  warnIgnoredIsolationAllowlist,
27
27
  withheldRemoteMcpMessage,
28
28
  withheldRemoteMcpReasonFor
29
- } from "./chunk-VSJUMNQ5.js";
29
+ } from "./chunk-V4LGFXJD.js";
30
30
  import {
31
31
  readDailySessionPin,
32
32
  sessionTranscriptDir
33
- } from "./chunk-NXTNYNNV.js";
33
+ } from "./chunk-QSND4PGO.js";
34
34
  import {
35
35
  classifyUnanswerablePane,
36
36
  isConsumerTermsDialogVisible,
@@ -102,7 +102,7 @@ import {
102
102
  scanConfigForLiteralSecrets,
103
103
  worseConnectivityOutcome,
104
104
  wrapScheduledTaskPrompt
105
- } from "./chunk-WW2CTOEO.js";
105
+ } from "./chunk-XSXBOLMK.js";
106
106
  import {
107
107
  claudeJsonPathFor,
108
108
  effectiveClaudeJsonPath,
@@ -6397,7 +6397,11 @@ function buildMcpJson(input) {
6397
6397
  integration.credentialDelivery === "broker" ? integration.id : null,
6398
6398
  // CodeRabbit on 5ddf5d6d: the CURRENT agent id first; the on-disk
6399
6399
  // lookup only when it is missing or a placeholder.
6400
- currentOrResolvedBrokerAgentId(input.agent.code_name, input.agent.agent_id)
6400
+ currentOrResolvedBrokerAgentId(input.agent.code_name, input.agent.agent_id),
6401
+ // ENG-12314: this install's granted tools, so a denied scope's tools
6402
+ // are not advertised or callable. Null when none survives: withheld
6403
+ // below, never a fall-through to the unfiltered direct entry.
6404
+ { grantedTools: integration.grantedTools }
6401
6405
  );
6402
6406
  if (proxyEntry) {
6403
6407
  mcpServers[serverKey] = proxyEntry;
@@ -6408,7 +6412,7 @@ function buildMcpJson(input) {
6408
6412
  mcpServers[serverKey] = tierGatedEntry;
6409
6413
  continue;
6410
6414
  }
6411
- if (mustNotRenderDirectRemoteMcp(integration.definition_id, integration.remoteMcp)) {
6415
+ if (mustNotRenderDirectRemoteMcp(integration.definition_id, integration.remoteMcp, integration.grantedTools)) {
6412
6416
  console.error(withheldRemoteMcpMessage(integration.definition_id, withheldRemoteMcpReasonFor(integration)));
6413
6417
  continue;
6414
6418
  }
@@ -7719,7 +7723,9 @@ ${sections}`
7719
7723
  integration.toolTiers,
7720
7724
  // ENG-12046: see the spawn-path call above.
7721
7725
  integration.credentialDelivery === "broker" ? integration.id : null,
7722
- currentOrResolvedBrokerAgentId(codeName, agentId)
7726
+ currentOrResolvedBrokerAgentId(codeName, agentId),
7727
+ // ENG-12314: see the spawn-path call above.
7728
+ { grantedTools: integration.grantedTools }
7723
7729
  );
7724
7730
  if (proxyEntry) {
7725
7731
  this.writeMcpServer(codeName, serverKey, proxyEntry);
@@ -7730,7 +7736,7 @@ ${sections}`
7730
7736
  this.writeMcpServer(codeName, serverKey, tierGatedEntry);
7731
7737
  continue;
7732
7738
  }
7733
- if (mustNotRenderDirectRemoteMcp(integration.definition_id, integration.remoteMcp)) {
7739
+ if (mustNotRenderDirectRemoteMcp(integration.definition_id, integration.remoteMcp, integration.grantedTools)) {
7734
7740
  console.error(withheldRemoteMcpMessage(integration.definition_id, withheldRemoteMcpReasonFor(integration)));
7735
7741
  this.removeMcpServer?.(codeName, serverKey);
7736
7742
  continue;
@@ -13876,4 +13882,4 @@ export {
13876
13882
  managerInstallSystemUnitCommand,
13877
13883
  managerUninstallSystemUnitCommand
13878
13884
  };
13879
- //# sourceMappingURL=chunk-GODP7VNT.js.map
13885
+ //# sourceMappingURL=chunk-PN5AZVKG.js.map