@integrity-labs/agt-cli 0.27.109 → 0.27.111

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.
@@ -17,7 +17,7 @@ import {
17
17
  provisionStopHook,
18
18
  requireHost,
19
19
  safeWriteJsonAtomic
20
- } from "../chunk-OATXUUQB.js";
20
+ } from "../chunk-QPHCYMGF.js";
21
21
  import {
22
22
  getProjectDir as getProjectDir2,
23
23
  getReadyTasks,
@@ -4133,7 +4133,7 @@ var cachedMaintenanceWindow = null;
4133
4133
  var lastVersionCheckAt = 0;
4134
4134
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
4135
4135
  var lastResponsivenessProbeAt = 0;
4136
- var agtCliVersion = true ? "0.27.109" : "dev";
4136
+ var agtCliVersion = true ? "0.27.111" : "dev";
4137
4137
  function resolveBrewPath(execFileSync4) {
4138
4138
  try {
4139
4139
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7526,6 +7526,26 @@ function cleanupOldFiles(dir, maxAgeDays, ext) {
7526
7526
  } catch {
7527
7527
  }
7528
7528
  }
7529
+ function buildSchedulerTaskInput(t) {
7530
+ return {
7531
+ id: t.id,
7532
+ template_id: t.template_id,
7533
+ name: t.name,
7534
+ schedule_kind: t.schedule_kind,
7535
+ schedule_expr: t.schedule_expr ?? null,
7536
+ schedule_every: t.schedule_every ?? null,
7537
+ schedule_at: t.schedule_at ?? null,
7538
+ timezone: t.timezone ?? "UTC",
7539
+ prompt: t.prompt ?? "",
7540
+ session_target: t.session_target ?? "isolated",
7541
+ delivery_mode: t.delivery_mode ?? "none",
7542
+ delivery_policy: t.delivery_policy ?? "always",
7543
+ delivery_channel: t.delivery_channel ?? null,
7544
+ delivery_to: t.delivery_to ?? null,
7545
+ enabled: t.enabled ?? true,
7546
+ triggered_at: t.triggered_at ?? null
7547
+ };
7548
+ }
7529
7549
  var inFlightClaudeTasks = /* @__PURE__ */ new Set();
7530
7550
  var claudeTaskConcurrency = /* @__PURE__ */ new Map();
7531
7551
  var MAX_CLAUDE_CONCURRENCY = 2;
@@ -7558,23 +7578,7 @@ async function syncAndCheckClaudeScheduler(agent, tasks, boardItems, refreshData
7558
7578
  const combinedHash = `${stableTasksHash}:${boardHash}:${modelsHash}`;
7559
7579
  const prevHash = agentState.knownTasksHashes.get(agent.agent_id);
7560
7580
  if (combinedHash !== prevHash) {
7561
- const taskInputs = tasks.map((t) => ({
7562
- id: t.id,
7563
- template_id: t.template_id,
7564
- name: t.name,
7565
- schedule_kind: t.schedule_kind,
7566
- schedule_expr: t.schedule_expr ?? null,
7567
- schedule_every: t.schedule_every ?? null,
7568
- schedule_at: t.schedule_at ?? null,
7569
- timezone: t.timezone ?? "UTC",
7570
- prompt: t.prompt ?? "",
7571
- session_target: t.session_target ?? "isolated",
7572
- delivery_mode: t.delivery_mode ?? "none",
7573
- delivery_channel: t.delivery_channel ?? null,
7574
- delivery_to: t.delivery_to ?? null,
7575
- enabled: t.enabled ?? true,
7576
- triggered_at: t.triggered_at ?? null
7577
- }));
7581
+ const taskInputs = tasks.map((t) => buildSchedulerTaskInput(t));
7578
7582
  const state7 = syncTasksToScheduler(codeName, agent.agent_id, taskInputs);
7579
7583
  claudeSchedulerStates.set(codeName, state7);
7580
7584
  agentState.knownTasksHashes.set(agent.agent_id, combinedHash);
@@ -8300,23 +8304,7 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash3("sha256").
8300
8304
  const stableTasksHash = createHash3("sha256").update(JSON.stringify(tasks)).digest("hex").slice(0, 16);
8301
8305
  const prevHash = agentState.knownTasksHashes.get(agent.agent_id);
8302
8306
  if (stableTasksHash !== prevHash) {
8303
- const taskInputs = tasks.map((t) => ({
8304
- id: t.id,
8305
- template_id: t.template_id,
8306
- name: t.name,
8307
- schedule_kind: t.schedule_kind,
8308
- schedule_expr: t.schedule_expr ?? null,
8309
- schedule_every: t.schedule_every ?? null,
8310
- schedule_at: t.schedule_at ?? null,
8311
- timezone: t.timezone ?? "UTC",
8312
- prompt: t.prompt ?? "",
8313
- session_target: t.session_target ?? "isolated",
8314
- delivery_mode: t.delivery_mode ?? "none",
8315
- delivery_channel: t.delivery_channel ?? null,
8316
- delivery_to: t.delivery_to ?? null,
8317
- enabled: t.enabled ?? true,
8318
- triggered_at: t.triggered_at ?? null
8319
- }));
8307
+ const taskInputs = tasks.map((t) => buildSchedulerTaskInput(t));
8320
8308
  const schedulerState = syncTasksToScheduler(codeName, agent.agent_id, taskInputs);
8321
8309
  claudeSchedulerStates.set(codeName, schedulerState);
8322
8310
  agentState.knownTasksHashes.set(agent.agent_id, stableTasksHash);
@@ -10693,6 +10681,7 @@ export {
10693
10681
  __setAgentChannelTokensForTest,
10694
10682
  applyRestartAcks,
10695
10683
  buildDoneCardNotification,
10684
+ buildSchedulerTaskInput,
10696
10685
  claudeCodeUpgradeMarkerPath,
10697
10686
  claudeCodeUpgradeThrottled,
10698
10687
  claudeManagedSettingsPath,