@integrity-labs/agt-cli 0.28.443 → 0.28.445

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.
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
100
100
  return { ok: true };
101
101
  } catch {
102
102
  }
103
- const { resolveClaudeBinary } = await import("./persistent-session-6SCIPYQI.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-NTHAZ2LZ.js");
104
104
  const claudeBin = resolveClaudeBinary();
105
105
  const pairEnv = {
106
106
  ...process.env,
@@ -373,4 +373,4 @@ export {
373
373
  startClaudePair,
374
374
  submitClaudePairCode
375
375
  };
376
- //# sourceMappingURL=claude-pair-runtime-J3BEIXWL.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-NEH45P4Y.js.map
@@ -42,7 +42,7 @@ import {
42
42
  resolveEffectivePinRaw,
43
43
  safeWriteJsonAtomic,
44
44
  setConfigHash
45
- } from "../chunk-X2LHWP6E.js";
45
+ } from "../chunk-H43XPGEC.js";
46
46
  import {
47
47
  getProjectDir as getProjectDir2,
48
48
  getReadyTasks,
@@ -160,7 +160,7 @@ import {
160
160
  toOpencodeModel,
161
161
  transcriptActivityAgeSeconds,
162
162
  writeEgressAllowlist
163
- } from "../chunk-IQX7TMYZ.js";
163
+ } from "../chunk-3CTWN3L4.js";
164
164
  import {
165
165
  reapOrphanChannelMcps
166
166
  } from "../chunk-XWVM4KPK.js";
@@ -9787,7 +9787,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
9787
9787
  var lastVersionCheckAt = 0;
9788
9788
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
9789
9789
  var lastResponsivenessProbeAt = 0;
9790
- var agtCliVersion = true ? "0.28.443" : "dev";
9790
+ var agtCliVersion = true ? "0.28.445" : "dev";
9791
9791
  function resolveBrewPath(execFileSync2) {
9792
9792
  try {
9793
9793
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -10810,6 +10810,9 @@ function hostFlagStore() {
10810
10810
  }
10811
10811
  return _hostFlagStore;
10812
10812
  }
10813
+ function shouldRenderIntegrationsSection() {
10814
+ return hostFlagStore().getBoolean("claude-md-integrations-section");
10815
+ }
10813
10816
  function reportManagerModelCallError(source, err, modelId) {
10814
10817
  try {
10815
10818
  if (!hostFlagStore().getBoolean("model-api-error-reporting")) return;
@@ -10945,7 +10948,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
10945
10948
  if (codeNames.length === 0) return;
10946
10949
  void (async () => {
10947
10950
  try {
10948
- const { collectDiagnostics } = await import("../persistent-session-6SCIPYQI.js");
10951
+ const { collectDiagnostics } = await import("../persistent-session-NTHAZ2LZ.js");
10949
10952
  await api.post("/host/heartbeat", {
10950
10953
  host_id: hostId,
10951
10954
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor)
@@ -11052,7 +11055,7 @@ async function pollCycle() {
11052
11055
  }
11053
11056
  try {
11054
11057
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
11055
- const { collectDiagnostics } = await import("../persistent-session-6SCIPYQI.js");
11058
+ const { collectDiagnostics } = await import("../persistent-session-NTHAZ2LZ.js");
11056
11059
  const diagCodeNames = [...agentState.persistentSessionAgents];
11057
11060
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor) : void 0;
11058
11061
  let tailscaleHostname;
@@ -11166,7 +11169,7 @@ async function pollCycle() {
11166
11169
  collectResponsivenessProbes,
11167
11170
  collectPanelessActivityProbes,
11168
11171
  getResponsivenessIntervalMs
11169
- } = await import("../responsiveness-probe-WHDWK62P.js");
11172
+ } = await import("../responsiveness-probe-7FDKX4N6.js");
11170
11173
  const probeIntervalMs = getResponsivenessIntervalMs();
11171
11174
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
11172
11175
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -11230,7 +11233,7 @@ async function pollCycle() {
11230
11233
  collectResponsivenessProbes,
11231
11234
  livePendingInboundOldestAgeSeconds,
11232
11235
  parkPendingInbound
11233
- } = await import("../responsiveness-probe-WHDWK62P.js");
11236
+ } = await import("../responsiveness-probe-7FDKX4N6.js");
11234
11237
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
11235
11238
  const wedgeNow = /* @__PURE__ */ new Date();
11236
11239
  const liveAgents = agentState.persistentSessionAgents;
@@ -11770,6 +11773,7 @@ async function getOrCacheRegisteredAgents(adapter, profile) {
11770
11773
  }
11771
11774
  async function processAgent(agent, agentStates) {
11772
11775
  if (!config) return;
11776
+ const renderIntegrationsSection = shouldRenderIntegrationsSection();
11773
11777
  syncAccountEnforcementMarker(agent.code_name, agent.enforcement ?? null, log);
11774
11778
  const previousKnownStatus = agentState.knownStatuses.get(agent.agent_id);
11775
11779
  agentState.agentDisplayNames.set(agent.code_name, agent.display_name);
@@ -12044,7 +12048,7 @@ async function processAgent(agent, agentStates) {
12044
12048
  }
12045
12049
  }
12046
12050
  try {
12047
- const artifacts = generateArtifacts(agent, refreshData, frameworkAdapter);
12051
+ const artifacts = generateArtifacts(agent, refreshData, frameworkAdapter, renderIntegrationsSection);
12048
12052
  const changedFiles = [];
12049
12053
  mkdirSync11(agentDir2, { recursive: true });
12050
12054
  for (const artifact of artifacts) {
@@ -12907,7 +12911,9 @@ async function processAgent(agent, agentStates) {
12907
12911
  const prevIntHash = agentState.knownIntegrationHashes.get(agent.agent_id);
12908
12912
  if (prevIntHash !== EMPTY_INTEGRATIONS_HASH) {
12909
12913
  try {
12910
- frameworkAdapter.writeIntegrations(agent.code_name, [], agent.agent_id);
12914
+ frameworkAdapter.writeIntegrations(agent.code_name, [], agent.agent_id, {
12915
+ renderClaudeMdSection: renderIntegrationsSection
12916
+ });
12911
12917
  agentState.knownIntegrationHashes.set(agent.agent_id, EMPTY_INTEGRATIONS_HASH);
12912
12918
  log(`[ENG-8035] Pruned integration-derived MCP entries for '${agent.code_name}' (integrations.length=0)`);
12913
12919
  } catch (err) {
@@ -12929,7 +12935,9 @@ async function processAgent(agent, agentStates) {
12929
12935
  preWriteEnv = void 0;
12930
12936
  }
12931
12937
  if (frameworkAdapter.writeIntegrations) {
12932
- frameworkAdapter.writeIntegrations(agent.code_name, integrations, agent.agent_id);
12938
+ frameworkAdapter.writeIntegrations(agent.code_name, integrations, agent.agent_id, {
12939
+ renderClaudeMdSection: renderIntegrationsSection
12940
+ });
12933
12941
  }
12934
12942
  log(`Integrations provisioned for '${agent.code_name}' (${integrations.length} integration(s))`);
12935
12943
  const fw = agentFrameworkCache.get(agent.code_name) ?? DEFAULT_FRAMEWORK;
@@ -14595,7 +14603,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
14595
14603
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
14596
14604
  void (async () => {
14597
14605
  try {
14598
- const { collectDiagnostics } = await import("../persistent-session-6SCIPYQI.js");
14606
+ const { collectDiagnostics } = await import("../persistent-session-NTHAZ2LZ.js");
14599
14607
  await api.post("/host/heartbeat", {
14600
14608
  host_id: hostId,
14601
14609
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -14645,7 +14653,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
14645
14653
  }
14646
14654
  try {
14647
14655
  const hostId = await getHostId();
14648
- const { collectDiagnostics } = await import("../persistent-session-6SCIPYQI.js");
14656
+ const { collectDiagnostics } = await import("../persistent-session-NTHAZ2LZ.js");
14649
14657
  await api.post("/host/heartbeat", {
14650
14658
  host_id: hostId,
14651
14659
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -15098,7 +15106,7 @@ async function processClaudePairSessions(agents) {
15098
15106
  killPairSession,
15099
15107
  pairTmuxSession,
15100
15108
  finalizeClaudePairOnboarding
15101
- } = await import("../claude-pair-runtime-J3BEIXWL.js");
15109
+ } = await import("../claude-pair-runtime-NEH45P4Y.js");
15102
15110
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
15103
15111
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
15104
15112
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -15205,7 +15213,7 @@ async function processClaudePairSessions(agents) {
15205
15213
  }
15206
15214
  }
15207
15215
  }
15208
- function generateArtifacts(agent, refreshData, adapter) {
15216
+ function generateArtifacts(agent, refreshData, adapter, renderIntegrationsSection) {
15209
15217
  if (!refreshData.charter || !refreshData.tools) {
15210
15218
  throw new Error("No charter/tools available");
15211
15219
  }
@@ -15309,7 +15317,11 @@ function generateArtifacts(agent, refreshData, adapter) {
15309
15317
  // ADR-0012 / ENG-6352: down-synced dynamic workflows (flag-gated, resolved
15310
15318
  // server-side). The claude-code adapter renders each as
15311
15319
  // `.claude/workflows/<name>.js`; undefined/empty no-ops.
15312
- workflows: refreshData.workflows
15320
+ workflows: refreshData.workflows,
15321
+ // ENG-8174: the `## Integrations` gate, resolved once per tick by
15322
+ // processAgent so the generator and the side-effect writer cannot disagree
15323
+ // about the sentinel range.
15324
+ renderIntegrationsSection
15313
15325
  };
15314
15326
  const provisionOutput = provision(provisionInput, adapter.id);
15315
15327
  return provisionOutput.artifacts;