@adhdev/daemon-core 0.9.82-rc.506 → 0.9.82-rc.507

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
@@ -417,10 +417,10 @@ function readInjected(value) {
417
417
  }
418
418
  function getDaemonBuildInfo() {
419
419
  if (cached) return cached;
420
- const commit = readInjected(true ? "d7415812627054f6b93f8caf231387b4e6d0181b" : void 0) ?? "unknown";
421
- const commitShort = readInjected(true ? "d7415812" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
422
- const version = readInjected(true ? "0.9.82-rc.506" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
423
- const builtAt = readInjected(true ? "2026-07-12T15:25:43.979Z" : void 0);
420
+ const commit = readInjected(true ? "c79248529d56e594be601fcea3db3f9be709d4c9" : void 0) ?? "unknown";
421
+ const commitShort = readInjected(true ? "c7924852" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
422
+ const version = readInjected(true ? "0.9.82-rc.507" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
423
+ const builtAt = readInjected(true ? "2026-07-12T16:37:57.223Z" : void 0);
424
424
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
425
425
  return cached;
426
426
  }
@@ -3564,7 +3564,8 @@ var init_mesh_config = __esm({
3564
3564
  // src/mesh/coordinator-prompt.ts
3565
3565
  var coordinator_prompt_exports = {};
3566
3566
  __export(coordinator_prompt_exports, {
3567
- buildCoordinatorSystemPrompt: () => buildCoordinatorSystemPrompt
3567
+ buildCoordinatorSystemPrompt: () => buildCoordinatorSystemPrompt,
3568
+ buildMagiKindPanelsSection: () => buildMagiKindPanelsSection
3568
3569
  });
3569
3570
  function buildCoordinatorSystemPrompt(ctx) {
3570
3571
  let prompt = assembleCoordinatorPrompt(ctx, {});
@@ -3650,6 +3651,8 @@ Default branch: \`${mesh.defaultBranch}\`` : ""}`);
3650
3651
  }
3651
3652
  sections.push(buildPolicySection(mergeAndNormalizePolicy(void 0, mesh.policy)));
3652
3653
  sections.push(buildBrainPresetsSection());
3654
+ const magiSection = buildMagiKindPanelsSection(ctx.magiKindPanels);
3655
+ if (magiSection) sections.push(magiSection);
3653
3656
  sections.push(TOOLS_SECTION);
3654
3657
  sections.push(TOOL_EXPOSURE_PREFLIGHT_SECTION);
3655
3658
  sections.push(WORKFLOW_SECTION);
@@ -3866,6 +3869,36 @@ function buildBrainPresetsSection() {
3866
3869
  }
3867
3870
  return lines.join("\n");
3868
3871
  }
3872
+ function buildMagiKindPanelsSection(panels) {
3873
+ if (!panels) return null;
3874
+ const configured = Object.entries(panels).filter(([, slots]) => Array.isArray(slots) && slots.length > 0);
3875
+ if (configured.length === 0) return null;
3876
+ const lines = [
3877
+ "## Configured MAGI panels",
3878
+ "",
3879
+ "These machine-local MAGI kind-panels are configured on this mesh \u2014 read-only cross-verification quorums:",
3880
+ ""
3881
+ ];
3882
+ for (const [kind, slots] of configured) {
3883
+ const replicaCount = slots.reduce((sum, s2) => sum + (s2.n && s2.n > 0 ? s2.n : 1), 0);
3884
+ const label = replicaCount === slots.length ? `${slots.length} ${slots.length === 1 ? "slot" : "slots"}` : `${replicaCount} replicas`;
3885
+ const rendered = slots.map(renderMagiSlot).join(", ");
3886
+ lines.push(`- **${kind}** (${label}): ${rendered}`);
3887
+ }
3888
+ lines.push("");
3889
+ lines.push("Use these via `mesh_magi_review` (the `task_kind` is REQUIRED \u2014 it selects BOTH the output schema and the panel). The live authoritative slot list is `mesh_magi_kind_panel_list`. MAGI worker replicas are read-only and typically do NOT have mesh MCP tools exposed, so for live timing / tool-behavior claims you MUST gather the primary evidence yourself and use MAGI only for independent source-level corroboration.");
3890
+ return lines.join("\n");
3891
+ }
3892
+ function renderMagiSlot(slot) {
3893
+ let s2 = slot.provider;
3894
+ if (slot.nodeId) s2 += `@${slot.nodeId}`;
3895
+ const extra = [];
3896
+ if (slot.model) extra.push(`model: ${slot.model}`);
3897
+ if (slot.capabilityTags && slot.capabilityTags.length) extra.push(`tags: ${slot.capabilityTags.join("+")}`);
3898
+ if (slot.n && slot.n > 1) extra.push(`\xD7${slot.n}`);
3899
+ if (extra.length) s2 += ` (${extra.join(", ")})`;
3900
+ return s2;
3901
+ }
3869
3902
  function buildPolicySection(policy) {
3870
3903
  const rules = [];
3871
3904
  if (policy.requirePreTaskCheckpoint) rules.push("- Create a git checkpoint **before** starting each task");
@@ -57408,6 +57441,14 @@ var meshCoordinatorLaunchHandlers = {
57408
57441
  return void 0;
57409
57442
  }
57410
57443
  };
57444
+ const loadMagiKindPanelsBestEffort = async () => {
57445
+ try {
57446
+ const { listMagiKindPanels: listMagiKindPanels2 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
57447
+ return listMagiKindPanels2();
57448
+ } catch {
57449
+ return void 0;
57450
+ }
57451
+ };
57411
57452
  let mesh;
57412
57453
  if (args?.inlineMesh && typeof args.inlineMesh === "object") {
57413
57454
  mesh = args.inlineMesh;
@@ -57505,7 +57546,7 @@ var meshCoordinatorLaunchHandlers = {
57505
57546
  if (coordinatorSetup.kind === "cli_command") {
57506
57547
  let cliCmdSystemPrompt = "";
57507
57548
  try {
57508
- cliCmdSystemPrompt = buildCoordinatorSystemPrompt2({ mesh: effectiveMesh, coordinatorCliType: cliType, userInstruction: extraSystemPrompt || void 0, missionSection: buildMissionSectionBestEffort(mesh.id), recentActivity: await buildRecentActivityBestEffort(mesh.id), operatingNotes: await buildEffectiveOperatingNotes(mesh.id) });
57549
+ cliCmdSystemPrompt = buildCoordinatorSystemPrompt2({ mesh: effectiveMesh, coordinatorCliType: cliType, userInstruction: extraSystemPrompt || void 0, missionSection: buildMissionSectionBestEffort(mesh.id), recentActivity: await buildRecentActivityBestEffort(mesh.id), operatingNotes: await buildEffectiveOperatingNotes(mesh.id), magiKindPanels: await loadMagiKindPanelsBestEffort() });
57509
57550
  } catch (error) {
57510
57551
  const message = error?.message || String(error);
57511
57552
  LOG.error("MeshCoordinator", `Failed to build coordinator prompt: ${message}`);
@@ -57684,7 +57725,7 @@ ${ptyResult.output.slice(-2e3)}`);
57684
57725
  }
57685
57726
  let systemPrompt = "";
57686
57727
  try {
57687
- systemPrompt = buildCoordinatorSystemPrompt2({ mesh: effectiveMesh, coordinatorCliType: cliType, userInstruction: extraSystemPrompt || void 0, missionSection: buildMissionSectionBestEffort(mesh.id), recentActivity: await buildRecentActivityBestEffort(mesh.id), operatingNotes: await buildEffectiveOperatingNotes(mesh.id) });
57728
+ systemPrompt = buildCoordinatorSystemPrompt2({ mesh: effectiveMesh, coordinatorCliType: cliType, userInstruction: extraSystemPrompt || void 0, missionSection: buildMissionSectionBestEffort(mesh.id), recentActivity: await buildRecentActivityBestEffort(mesh.id), operatingNotes: await buildEffectiveOperatingNotes(mesh.id), magiKindPanels: await loadMagiKindPanelsBestEffort() });
57688
57729
  } catch (error) {
57689
57730
  const message = error?.message || String(error);
57690
57731
  LOG.error("MeshCoordinator", `Failed to build coordinator prompt: ${message}`);