@integrity-labs/agt-cli 0.28.2 → 0.28.3

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-QXLGGGO2.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-DSG4HI4R.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-H73LQ5AR.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-OACH27NE.js.map
@@ -22,7 +22,7 @@ import {
22
22
  provisionStopHook,
23
23
  requireHost,
24
24
  safeWriteJsonAtomic
25
- } from "../chunk-ZBMZTL7G.js";
25
+ } from "../chunk-CPJ4TFUO.js";
26
26
  import {
27
27
  getProjectDir as getProjectDir2,
28
28
  getReadyTasks,
@@ -64,7 +64,7 @@ import {
64
64
  takeWatchdogGiveUpCount,
65
65
  takeZombieDetection,
66
66
  transcriptActivityAgeSeconds
67
- } from "../chunk-K2HIV5DB.js";
67
+ } from "../chunk-LIB6VTH3.js";
68
68
  import {
69
69
  FLAGS_SCHEMA_VERSION,
70
70
  KANBAN_CHECK_COMMAND,
@@ -96,7 +96,7 @@ import {
96
96
  sumTranscriptUsageInWindow,
97
97
  worseConnectivityOutcome,
98
98
  wrapScheduledTaskPrompt
99
- } from "../chunk-I6QV3IE7.js";
99
+ } from "../chunk-NS4G4HHD.js";
100
100
  import {
101
101
  parsePsRows,
102
102
  reapOrphanChannelMcps
@@ -5079,7 +5079,7 @@ var cachedMaintenanceWindow = null;
5079
5079
  var lastVersionCheckAt = 0;
5080
5080
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
5081
5081
  var lastResponsivenessProbeAt = 0;
5082
- var agtCliVersion = true ? "0.28.2" : "dev";
5082
+ var agtCliVersion = true ? "0.28.3" : "dev";
5083
5083
  function resolveBrewPath(execFileSync4) {
5084
5084
  try {
5085
5085
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -6282,7 +6282,7 @@ async function pollCycle() {
6282
6282
  }
6283
6283
  try {
6284
6284
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
6285
- const { collectDiagnostics } = await import("../persistent-session-QXLGGGO2.js");
6285
+ const { collectDiagnostics } = await import("../persistent-session-DSG4HI4R.js");
6286
6286
  const diagCodeNames = [...agentState.persistentSessionAgents];
6287
6287
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
6288
6288
  let tailscaleHostname;
@@ -6376,7 +6376,7 @@ async function pollCycle() {
6376
6376
  const {
6377
6377
  collectResponsivenessProbes,
6378
6378
  getResponsivenessIntervalMs
6379
- } = await import("../responsiveness-probe-3BUUOZZO.js");
6379
+ } = await import("../responsiveness-probe-GX5W4ZMI.js");
6380
6380
  const probeIntervalMs = getResponsivenessIntervalMs();
6381
6381
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
6382
6382
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -6408,7 +6408,7 @@ async function pollCycle() {
6408
6408
  collectResponsivenessProbes,
6409
6409
  livePendingInboundOldestAgeSeconds,
6410
6410
  parkPendingInbound
6411
- } = await import("../responsiveness-probe-3BUUOZZO.js");
6411
+ } = await import("../responsiveness-probe-GX5W4ZMI.js");
6412
6412
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
6413
6413
  const wedgeNow = /* @__PURE__ */ new Date();
6414
6414
  const liveAgents = agentState.persistentSessionAgents;
@@ -7236,6 +7236,23 @@ async function processAgent(agent, agentStates) {
7236
7236
  }
7237
7237
  send({ type: "provisioned", agentId: agent.agent_id, codeName: agent.code_name });
7238
7238
  }
7239
+ if (Array.isArray(refreshData.workflows)) {
7240
+ try {
7241
+ const provWorkflowsDir = join10(agentDir, ".claude", "workflows");
7242
+ if (existsSync5(provWorkflowsDir)) {
7243
+ const expected = new Set(refreshData.workflows.map((w) => `${w.name}.js`));
7244
+ for (const file of readdirSync5(provWorkflowsDir)) {
7245
+ if (!file.endsWith(".js")) continue;
7246
+ if (expected.has(file)) continue;
7247
+ try {
7248
+ rmSync2(join10(provWorkflowsDir, file));
7249
+ } catch {
7250
+ }
7251
+ }
7252
+ }
7253
+ } catch {
7254
+ }
7255
+ }
7239
7256
  if (frameworkAdapter.deployArtifactsToProject) {
7240
7257
  frameworkAdapter.deployArtifactsToProject(agent.code_name, agentDir);
7241
7258
  }
@@ -11038,7 +11055,7 @@ async function processClaudePairSessions(agents) {
11038
11055
  killPairSession,
11039
11056
  pairTmuxSession,
11040
11057
  finalizeClaudePairOnboarding
11041
- } = await import("../claude-pair-runtime-H73LQ5AR.js");
11058
+ } = await import("../claude-pair-runtime-OACH27NE.js");
11042
11059
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
11043
11060
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
11044
11061
  const killed = await killPairSession(pairTmuxSession(pairId));
@@ -11309,7 +11326,11 @@ function generateArtifacts(agent, refreshData, adapter) {
11309
11326
  knowledgeDelivery: refreshData.agent.knowledge_delivery ?? "both",
11310
11327
  teamMembers: refreshData.team_members ?? void 0,
11311
11328
  people: refreshData.people ?? void 0,
11312
- guardrails: refreshData.guardrails
11329
+ guardrails: refreshData.guardrails,
11330
+ // ADR-0012 / ENG-6352: down-synced dynamic workflows (flag-gated, resolved
11331
+ // server-side). The claude-code adapter renders each as
11332
+ // `.claude/workflows/<name>.js`; undefined/empty no-ops.
11333
+ workflows: refreshData.workflows
11313
11334
  };
11314
11335
  const provisionOutput = provision(provisionInput, adapter.id);
11315
11336
  return provisionOutput.artifacts;