@adhdev/daemon-standalone 0.9.82-rc.272 → 0.9.82-rc.273

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.js CHANGED
@@ -29983,10 +29983,10 @@ var require_dist3 = __commonJS({
29983
29983
  }
29984
29984
  function getDaemonBuildInfo() {
29985
29985
  if (cached2) return cached2;
29986
- const commit = readInjected(true ? "1f169aa4f18b9abeb993f274d84b6a8d0a4dfb13" : void 0) ?? "unknown";
29987
- const commitShort = readInjected(true ? "1f169aa4" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
- const version2 = readInjected(true ? "0.9.82-rc.272" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
- const builtAt = readInjected(true ? "2026-06-15T04:22:01.984Z" : void 0);
29986
+ const commit = readInjected(true ? "e4a64afbd050fa5167c383b1fc6f9df5f8e48ba2" : void 0) ?? "unknown";
29987
+ const commitShort = readInjected(true ? "e4a64afb" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
29988
+ const version2 = readInjected(true ? "0.9.82-rc.273" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
29989
+ const builtAt = readInjected(true ? "2026-06-15T05:37:35.385Z" : void 0);
29990
29990
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
29991
29991
  return cached2;
29992
29992
  }
@@ -34125,6 +34125,7 @@ Valid status values: \`completed\` | \`failed\` | \`blocked\` | \`partial\`.`;
34125
34125
  getActiveMeshMissionSummaries: () => getActiveMeshMissionSummaries,
34126
34126
  getMeshMission: () => getMeshMission,
34127
34127
  getMeshMissions: () => getMeshMissions,
34128
+ getMeshStatusMissionSummaries: () => getMeshStatusMissionSummaries,
34128
34129
  summarizeMeshMission: () => summarizeMeshMission,
34129
34130
  summarizeMissionTasks: () => summarizeMissionTasks,
34130
34131
  upsertMeshMission: () => upsertMeshMission
@@ -34190,6 +34191,13 @@ Valid status values: \`completed\` | \`failed\` | \`blocked\` | \`partial\`.`;
34190
34191
  function getActiveMeshMissionSummaries(meshId) {
34191
34192
  return getMeshMissions(meshId, ["active"]).map((mission) => summarizeMeshMission(meshId, mission));
34192
34193
  }
34194
+ function getMeshStatusMissionSummaries(meshId, options) {
34195
+ const historyLimit = Math.max(0, options?.historyLimit ?? 10);
34196
+ const all = getMeshMissions(meshId);
34197
+ const live = all.filter((m) => m.status === "active" || m.status === "paused");
34198
+ const history = all.filter((m) => m.status === "completed" || m.status === "abandoned").sort((a, b) => (b.updatedAt || "").localeCompare(a.updatedAt || "")).slice(0, historyLimit);
34199
+ return [...live, ...history].map((mission) => summarizeMeshMission(meshId, mission));
34200
+ }
34193
34201
  function buildMissionPromptSection(meshId) {
34194
34202
  const summaries = getActiveMeshMissionSummaries(meshId);
34195
34203
  if (summaries.length === 0) return "";
@@ -62243,9 +62251,11 @@ ${formatManifestValidationIssues2(validation.issues)}`,
62243
62251
  if (!this.generatingStartedAt) this.generatingStartedAt = now;
62244
62252
  const modal = adapterStatus.activeModal;
62245
62253
  LOG2.info("CLI", `[${this.type}] approval modal: "${modal?.message?.slice(0, 80) ?? "none"}"`);
62254
+ const approvalEntrySeq = typeof adapterStatus?.approvalEntrySeq === "number" ? adapterStatus.approvalEntrySeq : 0;
62246
62255
  const approvalFingerprint = JSON.stringify({
62247
62256
  message: typeof modal?.message === "string" ? modal.message.trim() : "",
62248
- buttons: Array.isArray(modal?.buttons) ? modal.buttons.map((button) => String(button).trim()) : []
62257
+ buttons: Array.isArray(modal?.buttons) ? modal.buttons.map((button) => String(button).trim()) : [],
62258
+ seq: approvalEntrySeq
62249
62259
  });
62250
62260
  if (approvalFingerprint !== this.lastApprovalEventFingerprint) {
62251
62261
  this.lastApprovalEventFingerprint = approvalFingerprint;
@@ -62262,6 +62272,8 @@ ${formatManifestValidationIssues2(validation.issues)}`,
62262
62272
  modalButtons: modal?.buttons
62263
62273
  });
62264
62274
  }
62275
+ } else if (newStatus === "generating" && this.lastStatus === "waiting_approval") {
62276
+ this.lastApprovalEventFingerprint = "";
62265
62277
  } else if (newStatus === "idle" && (this.lastStatus === "generating" || this.lastStatus === "waiting_approval")) {
62266
62278
  const duration3 = this.generatingStartedAt ? Math.round((now - this.generatingStartedAt) / 1e3) : 0;
62267
62279
  if (!this.generatingStartedAt && !this.generatingDebouncePending) {
@@ -74119,18 +74131,6 @@ ${hintLines.join("\n")}` : "",
74119
74131
  return { success: true };
74120
74132
  }
74121
74133
  case "launch_cli": {
74122
- {
74123
- const launchSettings = args?.settings && typeof args.settings === "object" ? args.settings : void 0;
74124
- const isMeshWorkerLaunch = !!launchSettings && (readStringValue(launchSettings.meshNodeFor) || launchSettings.launchedByCoordinator === true);
74125
- const hasCoordinatorDaemonId = !!launchSettings && !!readStringValue(launchSettings.meshCoordinatorDaemonId);
74126
- if (launchSettings && isMeshWorkerLaunch && !hasCoordinatorDaemonId) {
74127
- try {
74128
- const localDaemonId = readStringValue(loadConfig2().machineId);
74129
- if (localDaemonId) launchSettings.meshCoordinatorDaemonId = localDaemonId;
74130
- } catch {
74131
- }
74132
- }
74133
- }
74134
74134
  const launchResult = await this.deps.cliManager.handleCliCommand(cmd, args);
74135
74135
  const meshNodeId = readStringValue(args?.settings?.meshNodeId);
74136
74136
  const meshId = readStringValue(args?.settings?.meshNodeFor);
@@ -76792,6 +76792,8 @@ ${ptyResult.output.slice(-2e3)}`);
76792
76792
  nodes: mesh.nodes || [],
76793
76793
  liveSessionRecords: liveMeshSessions
76794
76794
  });
76795
+ const { getMeshStatusMissionSummaries: getMeshStatusMissionSummaries2 } = await Promise.resolve().then(() => (init_mesh_missions(), mesh_missions_exports));
76796
+ const missions = getMeshStatusMissionSummaries2(meshId);
76795
76797
  const statusResult = {
76796
76798
  success: true,
76797
76799
  meshId: mesh.id,
@@ -76830,6 +76832,7 @@ ${ptyResult.output.slice(-2e3)}`);
76830
76832
  nodes: nodeStatuses,
76831
76833
  queue: { tasks: queue, summary: queueSummary },
76832
76834
  ledger: { entries: ledgerEntries, summary: ledgerSummary },
76835
+ ...missions.length > 0 ? { missions } : {},
76833
76836
  ...asyncRefineJobs.length > 0 ? { asyncRefineJobs } : {},
76834
76837
  ...historicalSessions ? { historicalSessions } : {},
76835
76838
  ...pendingCoordinatorEvents.length > 0 ? { pendingCoordinatorEvents } : {},