@integrity-labs/agt-cli 0.28.578 → 0.28.580

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.
@@ -46,7 +46,7 @@ import {
46
46
  resolveConnectivityProbe,
47
47
  worseConnectivityOutcome,
48
48
  wrapScheduledTaskPrompt
49
- } from "./chunk-L24SX6LH.js";
49
+ } from "./chunk-RC5YRTZU.js";
50
50
  import {
51
51
  parsePsRows
52
52
  } from "./chunk-XWVM4KPK.js";
@@ -198,9 +198,9 @@ function validateRenderedMcpConfig(config) {
198
198
  }
199
199
  const rules = REQUIRED_ENV_RULES_BY_SERVER[serverKey];
200
200
  if (rules) {
201
- const env = entry.env ?? {};
201
+ const env2 = entry.env ?? {};
202
202
  for (const rule of rules) {
203
- const value = env[rule.key];
203
+ const value = env2[rule.key];
204
204
  if (typeof value !== "string" || value.length === 0) {
205
205
  errors.push({
206
206
  kind: "missing_required_env",
@@ -218,6 +218,18 @@ function validateRenderedMcpConfig(config) {
218
218
  }
219
219
  }
220
220
  }
221
+ const env = entry.env ?? {};
222
+ const agentId = env["AGT_AGENT_ID"];
223
+ if (typeof agentId === "string" && PLACEHOLDER_RE.test(agentId)) {
224
+ const already = errors.some((e) => e.server === serverKey && e.kind === "unexpanded_placeholder");
225
+ if (!already) {
226
+ errors.push({
227
+ kind: "unexpanded_placeholder",
228
+ server: serverKey,
229
+ message: "env.AGT_AGENT_ID contains an unexpanded ${...} placeholder; it must be concrete on every server (ENG-8800: a late substitution reads the pane env, which can carry a neighbouring agent's id)"
230
+ });
231
+ }
232
+ }
221
233
  }
222
234
  return errors.length === 0 ? { ok: true } : { ok: false, errors };
223
235
  }
@@ -5959,7 +5971,7 @@ function exchangeFailureKind(err) {
5959
5971
  }
5960
5972
 
5961
5973
  // src/lib/api-client.ts
5962
- var agtCliVersion = true ? "0.28.578" : "dev";
5974
+ var agtCliVersion = true ? "0.28.580" : "dev";
5963
5975
  var lastConfigHash = null;
5964
5976
  function setConfigHash(hash) {
5965
5977
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9335,4 +9347,4 @@ export {
9335
9347
  managerInstallSystemUnitCommand,
9336
9348
  managerUninstallSystemUnitCommand
9337
9349
  };
9338
- //# sourceMappingURL=chunk-5YFIIWS2.js.map
9350
+ //# sourceMappingURL=chunk-YU2B3L6G.js.map