@integrity-labs/agt-cli 0.28.396 → 0.28.397

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-6E5YUIA3.js";
43
+ } from "../chunk-33ZECLH7.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -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.396" : "dev";
4832
+ var cliVersion = true ? "0.28.397" : "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.396" : "dev";
6004
+ var cliVersion2 = true ? "0.28.397" : "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) => {
@@ -6196,7 +6196,7 @@ function requireHost() {
6196
6196
  }
6197
6197
 
6198
6198
  // src/lib/api-client.ts
6199
- var agtCliVersion = true ? "0.28.396" : "dev";
6199
+ var agtCliVersion = true ? "0.28.397" : "dev";
6200
6200
  var lastConfigHash = null;
6201
6201
  function setConfigHash(hash) {
6202
6202
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -6783,6 +6783,17 @@ function liveProxyExtraHeaderVars(mcp) {
6783
6783
  }
6784
6784
  return out;
6785
6785
  }
6786
+ function liveProxyTokenVars(mcp) {
6787
+ const out = /* @__PURE__ */ new Set();
6788
+ if (!mcp?.mcpServers) return out;
6789
+ for (const entry of Object.values(mcp.mcpServers)) {
6790
+ const tokenVar = entry?.env?.["AGT_REMOTE_MCP_TOKEN_VAR"];
6791
+ if (typeof tokenVar === "string" && tokenVar.trim()) {
6792
+ out.add(tokenVar.trim());
6793
+ }
6794
+ }
6795
+ return out;
6796
+ }
6786
6797
  function buildArgvMatchersForEntry(key, entry) {
6787
6798
  const escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
6788
6799
  const patterns = [];
@@ -8623,6 +8634,7 @@ export {
8623
8634
  findMcpServersUsingVars,
8624
8635
  envOnlyRespawnVars,
8625
8636
  liveProxyExtraHeaderVars,
8637
+ liveProxyTokenVars,
8626
8638
  reapStaleMcpChildren,
8627
8639
  clearPresenceReaperState,
8628
8640
  clearPresenceReaperStateForKeys,
@@ -8650,4 +8662,4 @@ export {
8650
8662
  managerInstallSystemUnitCommand,
8651
8663
  managerUninstallSystemUnitCommand
8652
8664
  };
8653
- //# sourceMappingURL=chunk-6E5YUIA3.js.map
8665
+ //# sourceMappingURL=chunk-33ZECLH7.js.map