@integrity-labs/agt-cli 0.28.528 → 0.28.529

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 CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-7N55RDMG.js";
43
+ } from "../chunk-MKSL2EQU.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -71,7 +71,7 @@ import {
71
71
  requiredMcpWildcard,
72
72
  resolveChannels,
73
73
  serializeManifestForSlackCli
74
- } from "../chunk-PR3QSOLI.js";
74
+ } from "../chunk-Q4XGKOHZ.js";
75
75
  import "../chunk-XWVM4KPK.js";
76
76
 
77
77
  // src/bin/agt.ts
@@ -4834,7 +4834,7 @@ import { execFileSync, execSync } from "child_process";
4834
4834
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4835
4835
  import chalk18 from "chalk";
4836
4836
  import ora16 from "ora";
4837
- var cliVersion = true ? "0.28.528" : "dev";
4837
+ var cliVersion = true ? "0.28.529" : "dev";
4838
4838
  async function fetchLatestVersion() {
4839
4839
  const host2 = getHost();
4840
4840
  if (!host2) return null;
@@ -6006,7 +6006,7 @@ function handleError(err) {
6006
6006
  }
6007
6007
 
6008
6008
  // src/bin/agt.ts
6009
- var cliVersion2 = true ? "0.28.528" : "dev";
6009
+ var cliVersion2 = true ? "0.28.529" : "dev";
6010
6010
  var program = new Command();
6011
6011
  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");
6012
6012
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -42,7 +42,7 @@ import {
42
42
  resolveConnectivityProbe,
43
43
  worseConnectivityOutcome,
44
44
  wrapScheduledTaskPrompt
45
- } from "./chunk-PR3QSOLI.js";
45
+ } from "./chunk-Q4XGKOHZ.js";
46
46
  import {
47
47
  parsePsRows
48
48
  } from "./chunk-XWVM4KPK.js";
@@ -3673,6 +3673,20 @@ function buildMcpJson(input) {
3673
3673
  }
3674
3674
  };
3675
3675
  }
3676
+ const hasHelpKb = input.integrations?.some((i) => i.definition_id === "augmented-help-kb") ?? false;
3677
+ if (hasHelpKb) {
3678
+ const localHelpKbMcpPath = join2(getHomeDir(), ".augmented", "_mcp", "augmented-help-kb.js");
3679
+ mcpServers["augmented-help-kb"] = {
3680
+ command: "node",
3681
+ args: [localHelpKbMcpPath],
3682
+ env: {
3683
+ AGT_HOST: "${AGT_HOST}",
3684
+ AGT_AGENT_ID: input.agent.agent_id,
3685
+ AGT_RUN_ID: "${AGT_RUN_ID}",
3686
+ AGT_API_KEY: "${AGT_API_KEY}"
3687
+ }
3688
+ };
3689
+ }
3676
3690
  const origamiIntegration = input.integrations?.find((i) => i.definition_id === "origami");
3677
3691
  if (origamiIntegration?.stdioMcp === true && origamiIntegration.id) {
3678
3692
  const localOrigamiMcpPath = join2(getHomeDir(), ".augmented", "_mcp", "origami.js");
@@ -4881,6 +4895,20 @@ ${sections}`
4881
4895
  }
4882
4896
  });
4883
4897
  }
4898
+ const hasHelpKb = integrations.some((i) => i.definition_id === "augmented-help-kb");
4899
+ if (hasHelpKb) {
4900
+ const localHelpKbMcpPath = join2(getHomeDir(), ".augmented", "_mcp", "augmented-help-kb.js");
4901
+ this.writeMcpServer(codeName, "augmented-help-kb", {
4902
+ command: "node",
4903
+ args: [localHelpKbMcpPath],
4904
+ env: {
4905
+ AGT_HOST: "${AGT_HOST}",
4906
+ AGT_AGENT_ID: resolveBrokerAgentId(codeName) ?? agentId ?? "",
4907
+ AGT_RUN_ID: "${AGT_RUN_ID}",
4908
+ AGT_API_KEY: "${AGT_API_KEY}"
4909
+ }
4910
+ });
4911
+ }
4884
4912
  const origamiStdio = integrations.find((i) => i.definition_id === "origami");
4885
4913
  const origamiStdioAgentId = resolveBrokerAgentId(codeName) ?? agentId;
4886
4914
  const origamiStdioExpected = Boolean(origamiStdio?.stdioMcp === true && origamiStdio.id);
@@ -4908,6 +4936,11 @@ ${sections}`
4908
4936
  "xero-broker",
4909
4937
  "augmented-admin",
4910
4938
  "augmented-support",
4939
+ // ENG-8332: the help-KB stdio server. In the universe so that REVOKING
4940
+ // the integration actually removes the entry - without this the docs
4941
+ // surface would keep binding after the grant was taken away, which is
4942
+ // the same reads-healthy-but-isn't shape as ENG-5277.
4943
+ "augmented-help-kb",
4911
4944
  // ENG-7358: the dedicated origami stdio server. In the universe so
4912
4945
  // that removing the integration OR flipping the catalog stdio_mcp
4913
4946
  // flag back (rollback) prunes the entry symmetrically.
@@ -4971,6 +5004,8 @@ ${sections}`
4971
5004
  expectedKeys.add("augmented-admin");
4972
5005
  if (hasSupport)
4973
5006
  expectedKeys.add("augmented-support");
5007
+ if (hasHelpKb)
5008
+ expectedKeys.add("augmented-help-kb");
4974
5009
  if (origamiStdioExpected)
4975
5010
  expectedKeys.add("origami");
4976
5011
  for (const integration of integrations) {
@@ -5451,7 +5486,7 @@ function exchangeFailureKind(err) {
5451
5486
  }
5452
5487
 
5453
5488
  // src/lib/api-client.ts
5454
- var agtCliVersion = true ? "0.28.528" : "dev";
5489
+ var agtCliVersion = true ? "0.28.529" : "dev";
5455
5490
  var lastConfigHash = null;
5456
5491
  function setConfigHash(hash) {
5457
5492
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8763,4 +8798,4 @@ export {
8763
8798
  managerInstallSystemUnitCommand,
8764
8799
  managerUninstallSystemUnitCommand
8765
8800
  };
8766
- //# sourceMappingURL=chunk-7N55RDMG.js.map
8801
+ //# sourceMappingURL=chunk-MKSL2EQU.js.map