@adhdev/daemon-core 0.9.82-rc.453 → 0.9.82-rc.454

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.
package/dist/index.mjs CHANGED
@@ -404,10 +404,10 @@ function readInjected(value) {
404
404
  }
405
405
  function getDaemonBuildInfo() {
406
406
  if (cached) return cached;
407
- const commit = readInjected(true ? "0bdc67e3dfbc383e6a3f07527c75b23b0fa88232" : void 0) ?? "unknown";
408
- const commitShort = readInjected(true ? "0bdc67e3" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
409
- const version = readInjected(true ? "0.9.82-rc.453" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
410
- const builtAt = readInjected(true ? "2026-07-03T19:10:33.620Z" : void 0);
407
+ const commit = readInjected(true ? "e0af973026c31d89cf9254dcbb0a57b1d56686b3" : void 0) ?? "unknown";
408
+ const commitShort = readInjected(true ? "e0af9730" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
409
+ const version = readInjected(true ? "0.9.82-rc.454" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
410
+ const builtAt = readInjected(true ? "2026-07-04T02:29:44.388Z" : void 0);
411
411
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
412
412
  return cached;
413
413
  }
@@ -5156,6 +5156,7 @@ __export(mesh_work_queue_exports, {
5156
5156
  recordTaskAutoLaunch: () => recordTaskAutoLaunch,
5157
5157
  requeueTask: () => requeueTask,
5158
5158
  resolveConvergeRequiredTags: () => resolveConvergeRequiredTags,
5159
+ taskDependenciesSatisfied: () => taskDependenciesSatisfied,
5159
5160
  updateDirectDispatchStatus: () => updateDirectDispatchStatus,
5160
5161
  updateSessionTaskStatus: () => updateSessionTaskStatus,
5161
5162
  updateTaskStatus: () => updateTaskStatus,
@@ -5752,12 +5753,17 @@ function updateSessionTaskStatus(meshId, sessionId, status, opts) {
5752
5753
  function hasPendingDependents(meshId, taskId) {
5753
5754
  return MeshRuntimeStore.getInstance().getQueueEntries(meshId, ["pending"]).some((entry) => Array.isArray(entry.dependsOn) && entry.dependsOn.includes(taskId));
5754
5755
  }
5756
+ function taskDependenciesSatisfied(entry, statusById) {
5757
+ if (entry.blockedReason) return false;
5758
+ const deps = Array.isArray(entry.dependsOn) ? entry.dependsOn : [];
5759
+ return deps.every((depId) => statusById.get(depId) === "completed");
5760
+ }
5755
5761
  function describeTaskDependencyState(entry, statusById) {
5756
5762
  const deps = Array.isArray(entry.dependsOn) ? entry.dependsOn : [];
5757
5763
  const waitingOn = deps.filter((depId) => statusById.get(depId) !== "completed");
5758
5764
  return {
5759
5765
  waitingOn,
5760
- dependenciesSatisfied: waitingOn.length === 0 && !entry.blockedReason
5766
+ dependenciesSatisfied: taskDependenciesSatisfied(entry, statusById)
5761
5767
  };
5762
5768
  }
5763
5769
  function getMeshQueueStats(meshId) {
@@ -6534,11 +6540,7 @@ var init_mesh_runtime_store = __esm({
6534
6540
  ).all(meshId, ...depIds);
6535
6541
  for (const r of depRows) depStatus.set(r.id, r.status);
6536
6542
  }
6537
- const dependenciesSatisfied = (candidate) => {
6538
- if (candidate.blockedReason) return false;
6539
- const deps = Array.isArray(candidate.dependsOn) ? candidate.dependsOn : [];
6540
- return deps.every((depId) => depStatus.get(depId) === "completed");
6541
- };
6543
+ const dependenciesSatisfied = (candidate) => taskDependenciesSatisfied(candidate, depStatus);
6542
6544
  const nodeConflictAllows = (candidate) => {
6543
6545
  if (isTaskReadonly(candidate)) return true;
6544
6546
  return !nodeBusy;
@@ -13079,11 +13081,16 @@ function readMeshNodeId(node) {
13079
13081
  }
13080
13082
  async function maybeAutoLaunchOneQueueSession(components, meshId, mesh) {
13081
13083
  const queue = getQueue(meshId);
13084
+ const statusById = new Map(queue.map((task) => [task.id, task.status]));
13082
13085
  const pending = queue.filter((task) => task.status === "pending");
13083
13086
  if (!pending.length) return false;
13084
13087
  const maxParallelTasks = resolveMaxParallelTasks(mesh?.policy?.maxParallelTasks);
13085
13088
  const maxReadonlyParallelTasks = resolveMaxReadonlyParallelTasks(maxParallelTasks);
13086
13089
  for (const task of pending) {
13090
+ if (!taskDependenciesSatisfied(task, statusById)) {
13091
+ markAutoLaunch(meshId, task.id, { status: "skipped", reason: "dependencies_unsatisfied" });
13092
+ continue;
13093
+ }
13087
13094
  const isReadonly = isTaskReadonly(task);
13088
13095
  if (isReadonly) {
13089
13096
  if (activeReadonlyAssignedCount(meshId) >= maxReadonlyParallelTasks) {
@@ -66646,6 +66653,7 @@ export {
66646
66653
  summarizeMeshMagiActivity,
66647
66654
  summarizeMeshMission,
66648
66655
  summarizeMissionTasks,
66656
+ taskDependenciesSatisfied,
66649
66657
  tombstoneOperatingNote,
66650
66658
  triggerMeshQueue,
66651
66659
  unregisterMeshCoordinator,