@integrity-labs/agt-cli 0.27.135 → 0.27.137

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,7 +1,7 @@
1
1
  import {
2
2
  claudeModelAlias,
3
3
  isClaudeFastMode
4
- } from "./chunk-KZGU4X3A.js";
4
+ } from "./chunk-TDMOEMDM.js";
5
5
  import {
6
6
  reapOrphanChannelMcps
7
7
  } from "./chunk-XWVM4KPK.js";
@@ -108,6 +108,20 @@ function findMissingSubstitutionVars(mcpConfig, env) {
108
108
  function formatMissingVar(f) {
109
109
  return `[mcp-env-substitution] missing var=${f.varName} server=${f.server} state=${f.state}`;
110
110
  }
111
+ function expandTemplateVars(value, env) {
112
+ const unresolved = /* @__PURE__ */ new Set();
113
+ const expanded = value.replace(TEMPLATE_VAR_RE, (literal, name) => {
114
+ if (LATE_BOUND_VARS.has(name)) {
115
+ unresolved.add(name);
116
+ return literal;
117
+ }
118
+ const resolved = env[name];
119
+ if (resolved !== void 0 && resolved.trim() !== "") return resolved;
120
+ unresolved.add(name);
121
+ return literal;
122
+ });
123
+ return { value: expanded, unresolved: [...unresolved] };
124
+ }
111
125
  function parseEnvIntegrations(content) {
112
126
  const out = {};
113
127
  for (const line of content.split("\n")) {
@@ -1558,6 +1572,7 @@ function writeAcpxConfig(config) {
1558
1572
 
1559
1573
  export {
1560
1574
  formatMissingVar,
1575
+ expandTemplateVars,
1561
1576
  parseEnvIntegrations,
1562
1577
  probeMcpEnvSubstitution,
1563
1578
  sanitizeMcpJson,
@@ -1596,4 +1611,4 @@ export {
1596
1611
  stopAllSessionsAndWait,
1597
1612
  getProjectDir
1598
1613
  };
1599
- //# sourceMappingURL=chunk-XKX2HEQY.js.map
1614
+ //# sourceMappingURL=chunk-YJOFVGD2.js.map