@integrity-labs/agt-cli 0.28.631 → 0.28.633

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.
@@ -7,7 +7,7 @@ import {
7
7
  expandTemplateVars,
8
8
  isolationMode,
9
9
  parseEnvIntegrations
10
- } from "./chunk-7QNQRV3A.js";
10
+ } from "./chunk-GNTCOXZG.js";
11
11
  import {
12
12
  BIND_FAILURE_QUARANTINE_THRESHOLD,
13
13
  INTEGRATIONS_SECTION_END,
@@ -51,7 +51,7 @@ import {
51
51
  resolveConnectivityProbe,
52
52
  worseConnectivityOutcome,
53
53
  wrapScheduledTaskPrompt
54
- } from "./chunk-XQ7BNYC4.js";
54
+ } from "./chunk-FKG7DIE2.js";
55
55
  import {
56
56
  parsePsRows
57
57
  } from "./chunk-XWVM4KPK.js";
@@ -6069,7 +6069,7 @@ function exchangeFailureKind(err) {
6069
6069
  }
6070
6070
 
6071
6071
  // src/lib/api-client.ts
6072
- var agtCliVersion = true ? "0.28.631" : "dev";
6072
+ var agtCliVersion = true ? "0.28.633" : "dev";
6073
6073
  var lastConfigHash = null;
6074
6074
  function setConfigHash(hash) {
6075
6075
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8129,7 +8129,20 @@ var DID_NOT_RUN_SIGNATURES = [
8129
8129
  // keep its transient grading (I hit one tonight mid-session; it recovered
8130
8130
  // on retry). Only the missing-env case is unambiguously unrunnable, so only
8131
8131
  // that signature is matched here.
8132
- re: /AGT_AGENT_ID is not set in this process environment/i,
8132
+ // ENG-9122: matched on `AGT_AGENT_ID is not set` rather than the full
8133
+ // "…in this process environment" sentence, because there is a SECOND
8134
+ // emitter that does not use that wording: `packages/mcp/src/index.ts:4035`
8135
+ // throws `Cannot forward tool call: AGT_AGENT_ID is not set`. Under the
8136
+ // longer pattern that one graded `transient_error` and climbed the failure
8137
+ // counter — the exact defect this entry exists to stop, reached by a
8138
+ // different door.
8139
+ //
8140
+ // Still narrow on purpose, and the narrowness is the point: a broker HTTP
8141
+ // 500 ("host key exchange failed … returned HTTP 500") does not contain
8142
+ // this phrase and therefore stays `transient_error`. That is correct — it
8143
+ // is a real intermittent our broker genuinely has, and grading it neutral
8144
+ // would hide a fault worth seeing.
8145
+ re: /AGT_AGENT_ID is not set/i,
8133
8146
  reason: "the probe process was spawned without AGT_AGENT_ID, so the credential shim could not identify the agent and nothing was probed (ENG-9005)"
8134
8147
  }
8135
8148
  ];
@@ -8486,7 +8499,7 @@ function deriveMcpServerKey(input) {
8486
8499
  if (isDefaultRemoteMcpConnection(input.connectionKey)) return base;
8487
8500
  return remoteMcpServerKey(input.definitionId, input.connectionKey);
8488
8501
  }
8489
- function buildProbeEnv(projectDir) {
8502
+ function buildProbeEnv(projectDir, agentId) {
8490
8503
  const probeEnv = { ...process.env };
8491
8504
  try {
8492
8505
  const envIntPath = join5(projectDir, ".env.integrations");
@@ -8495,6 +8508,9 @@ function buildProbeEnv(projectDir) {
8495
8508
  }
8496
8509
  } catch {
8497
8510
  }
8511
+ if (typeof agentId === "string" && agentId.trim().length > 0) {
8512
+ probeEnv.AGT_AGENT_ID = agentId.trim();
8513
+ }
8498
8514
  try {
8499
8515
  const agentBinDir = join5(projectDir, ".claude", "agt-bin");
8500
8516
  if (existsSync6(agentBinDir)) {
@@ -8665,7 +8681,7 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
8665
8681
  } catch {
8666
8682
  if (hasDeclaredStdio) return null;
8667
8683
  }
8668
- const probeEnv = buildProbeEnv(projectDir);
8684
+ const probeEnv = buildProbeEnv(projectDir, agent.agent_id);
8669
8685
  const probeDeps = buildConnectivityProbeDeps(projectDir, probeEnv);
8670
8686
  const probeHttp = async (serverKey) => {
8671
8687
  if (!probeDeps.mcpProbe) return void 0;
@@ -9614,4 +9630,4 @@ export {
9614
9630
  managerInstallSystemUnitCommand,
9615
9631
  managerUninstallSystemUnitCommand
9616
9632
  };
9617
- //# sourceMappingURL=chunk-RZDL5TB6.js.map
9633
+ //# sourceMappingURL=chunk-IDERROFJ.js.map