@adhdev/daemon-standalone 1.0.54-rc.4 → 1.0.54-rc.5

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
@@ -37075,10 +37075,10 @@ var require_dist3 = __commonJS({
37075
37075
  }
37076
37076
  function getDaemonBuildInfo() {
37077
37077
  if (cached2) return cached2;
37078
- const commit = readInjected(true ? "968e887537fe755b9b980d794a82e5e5d4b92956" : void 0) ?? "unknown";
37079
- const commitShort = readInjected(true ? "968e8875" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
37080
- const version2 = readInjected(true ? "1.0.54-rc.4" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
37081
- const builtAt = readInjected(true ? "2026-08-17T07:59:30.556Z" : void 0);
37078
+ const commit = readInjected(true ? "1da9db5183f2455122862392d42c204459fbeb93" : void 0) ?? "unknown";
37079
+ const commitShort = readInjected(true ? "1da9db51" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
37080
+ const version2 = readInjected(true ? "1.0.54-rc.5" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
37081
+ const builtAt = readInjected(true ? "2026-08-17T09:43:09.618Z" : void 0);
37082
37082
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
37083
37083
  return cached2;
37084
37084
  }
@@ -47825,9 +47825,18 @@ Next step: ${nextStep}`;
47825
47825
  if (input.status !== void 0 && !MESH_MISSION_STATUSES.includes(input.status)) {
47826
47826
  throw new Error(`invalid_mission_status: '${input.status}' (valid: ${MESH_MISSION_STATUSES.join(", ")})`);
47827
47827
  }
47828
- const id = typeof input.id === "string" && input.id.trim() ? input.id.trim() : (0, import_crypto7.randomUUID)();
47828
+ const requestedId = typeof input.id === "string" && input.id.trim() ? input.id.trim() : void 0;
47829
47829
  const store = MeshRuntimeStore.getInstance();
47830
- const existing = store.getMission(meshId, id);
47830
+ if (requestedId) {
47831
+ const target = store.getMission(meshId, requestedId);
47832
+ if (!target) {
47833
+ throw new Error(
47834
+ `mission_not_found: no mission with id '${requestedId}' on this mesh. Omit mission_id to create a new mission, or use mesh_mission_list to get a valid full id.`
47835
+ );
47836
+ }
47837
+ }
47838
+ const id = requestedId ?? (0, import_crypto7.randomUUID)();
47839
+ const existing = requestedId ? store.getMission(meshId, id) : null;
47831
47840
  const prevStatus = existing ? normalizeMissionStatus(existing.status) : null;
47832
47841
  const prevGoal = existing?.goal ?? "";
47833
47842
  const record2 = {