@integrity-labs/agt-cli 0.28.408 → 0.28.410

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-DRWBCTED.js";
43
+ } from "../chunk-QZEA7FWB.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -70,7 +70,7 @@ import {
70
70
  renderTemplate,
71
71
  resolveChannels,
72
72
  serializeManifestForSlackCli
73
- } from "../chunk-G7M7OFCG.js";
73
+ } from "../chunk-YLLK4G3B.js";
74
74
  import "../chunk-XWVM4KPK.js";
75
75
 
76
76
  // src/bin/agt.ts
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
4829
4829
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4830
4830
  import chalk18 from "chalk";
4831
4831
  import ora16 from "ora";
4832
- var cliVersion = true ? "0.28.408" : "dev";
4832
+ var cliVersion = true ? "0.28.410" : "dev";
4833
4833
  async function fetchLatestVersion() {
4834
4834
  const host2 = getHost();
4835
4835
  if (!host2) return null;
@@ -6001,7 +6001,7 @@ function handleError(err) {
6001
6001
  }
6002
6002
 
6003
6003
  // src/bin/agt.ts
6004
- var cliVersion2 = true ? "0.28.408" : "dev";
6004
+ var cliVersion2 = true ? "0.28.410" : "dev";
6005
6005
  var program = new Command();
6006
6006
  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");
6007
6007
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -25,7 +25,7 @@ import {
25
25
  resolveConnectivityProbe,
26
26
  worseConnectivityOutcome,
27
27
  wrapScheduledTaskPrompt
28
- } from "./chunk-G7M7OFCG.js";
28
+ } from "./chunk-YLLK4G3B.js";
29
29
  import {
30
30
  parsePsRows
31
31
  } from "./chunk-XWVM4KPK.js";
@@ -5901,6 +5901,26 @@ ${sections}`
5901
5901
  getMcpPath(codeName) {
5902
5902
  return join2(getAgentDir(codeName), "provision", ".mcp.json");
5903
5903
  },
5904
+ /**
5905
+ * ENG-7994: the declared servers from `provision/.mcp.json`. Mirrors what the
5906
+ * manager's prunes used to do inline; owning it here is what lets those call
5907
+ * sites stay shape-agnostic across frameworks. A missing or unparseable file
5908
+ * means "nothing declared", matching `removeMcpServer`'s fail-soft read.
5909
+ */
5910
+ readMcpServers(codeName) {
5911
+ let parsed;
5912
+ try {
5913
+ parsed = JSON.parse(readFileSync3(join2(getAgentDir(codeName), "provision", ".mcp.json"), "utf-8"));
5914
+ } catch {
5915
+ return {};
5916
+ }
5917
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
5918
+ return {};
5919
+ const mcpServers = parsed["mcpServers"];
5920
+ if (!mcpServers || typeof mcpServers !== "object" || Array.isArray(mcpServers))
5921
+ return {};
5922
+ return mcpServers;
5923
+ },
5904
5924
  removeMcpServer(codeName, serverId) {
5905
5925
  const agentDir = getAgentDir(codeName);
5906
5926
  const mcpJsonPath = join2(agentDir, "provision", ".mcp.json");
@@ -6227,7 +6247,7 @@ function requireHost() {
6227
6247
  }
6228
6248
 
6229
6249
  // src/lib/api-client.ts
6230
- var agtCliVersion = true ? "0.28.408" : "dev";
6250
+ var agtCliVersion = true ? "0.28.410" : "dev";
6231
6251
  var lastConfigHash = null;
6232
6252
  function setConfigHash(hash) {
6233
6253
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8731,4 +8751,4 @@ export {
8731
8751
  managerInstallSystemUnitCommand,
8732
8752
  managerUninstallSystemUnitCommand
8733
8753
  };
8734
- //# sourceMappingURL=chunk-DRWBCTED.js.map
8754
+ //# sourceMappingURL=chunk-QZEA7FWB.js.map