@integrity-labs/agt-cli 0.28.337 → 0.28.339

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.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  INTEGRATION_REGISTRY,
3
+ LATE_BOUND_VARS,
3
4
  OAUTH_PROVIDERS,
4
5
  coerceEnvValue,
5
6
  expandTemplateVars,
@@ -19,7 +20,7 @@ import {
19
20
  resolveConnectivityProbe,
20
21
  worseConnectivityOutcome,
21
22
  wrapScheduledTaskPrompt
22
- } from "./chunk-J2WYEOBH.js";
23
+ } from "./chunk-J6QDPXGS.js";
23
24
  import {
24
25
  parsePsRows
25
26
  } from "./chunk-XWVM4KPK.js";
@@ -7042,7 +7043,7 @@ function requireHost() {
7042
7043
  }
7043
7044
 
7044
7045
  // src/lib/api-client.ts
7045
- var agtCliVersion = true ? "0.28.337" : "dev";
7046
+ var agtCliVersion = true ? "0.28.339" : "dev";
7046
7047
  var lastConfigHash = null;
7047
7048
  function setConfigHash(hash) {
7048
7049
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8309,11 +8310,21 @@ function readMcpStdioServerConfig(projectDir2, serverKey, env) {
8309
8310
  const sub = (value) => {
8310
8311
  if (!env) return value;
8311
8312
  const r = expandTemplateVars(value, env);
8312
- for (const name of r.unresolved) unresolved.add(name);
8313
+ for (const name of r.unresolved) if (!LATE_BOUND_VARS.has(name)) unresolved.add(name);
8313
8314
  return r.value;
8314
8315
  };
8315
8316
  const resolvedEnv = {};
8316
- for (const [k, v] of Object.entries(entry.env ?? {})) resolvedEnv[k] = sub(v);
8317
+ for (const [k, v] of Object.entries(entry.env ?? {})) {
8318
+ if (!env) {
8319
+ resolvedEnv[k] = v;
8320
+ continue;
8321
+ }
8322
+ const r = expandTemplateVars(v, env);
8323
+ const hardUnresolved = r.unresolved.filter((name) => !LATE_BOUND_VARS.has(name));
8324
+ for (const name of hardUnresolved) unresolved.add(name);
8325
+ if (hardUnresolved.length === 0 && r.unresolved.length > 0) continue;
8326
+ resolvedEnv[k] = r.value;
8327
+ }
8317
8328
  return {
8318
8329
  command: entry.command,
8319
8330
  args: (entry.args ?? []).map(sub),
@@ -9476,4 +9487,4 @@ export {
9476
9487
  managerInstallSystemUnitCommand,
9477
9488
  managerUninstallSystemUnitCommand
9478
9489
  };
9479
- //# sourceMappingURL=chunk-N7XPDFCW.js.map
9490
+ //# sourceMappingURL=chunk-UVMGRGRO.js.map