@adhdev/daemon-standalone 0.9.76-rc.56 → 0.9.76-rc.57

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
@@ -31863,7 +31863,7 @@ ${rules.join("\n")}`;
31863
31863
  - **Respect explicit provider requests.** If the user names an agent/provider, pass the matching provider type to \`mesh_launch_session\`: Hermes \u2192 \`hermes-cli\`, Claude Code/Claude \u2192 \`claude-cli\`, Codex \u2192 \`codex-cli\`, Gemini \u2192 \`gemini-cli\`. Never substitute \`claude-cli\` just because the coordinator itself is Claude Code.
31864
31864
  - **Front-load the task message.** When calling \`mesh_send_task\`, include everything the agent needs: what files to touch, what the problem is, what the fix should look like. The agent won't ask follow-up questions.
31865
31865
  - **Don't inspect code.** Trust the agent's output. Verify via \`mesh_git_status\`, not by reading source files.
31866
- - **Don't over-parallelize.** Start with 1-2 concurrent tasks. Scale up if they succeed.
31866
+ - **Don't over-parallelize.** Start with 1-2 concurrent tasks. Scale up if they succeed. Never launch a duplicate session or second worker solely because \`mesh_read_chat\` has no final assistant message while the delegated session is still showing tool/terminal activity.
31867
31867
  - **Handle failures gracefully.** If a task fails, read the chat to understand why, then retry or reassign.
31868
31868
  - **Keep the user informed.** Report progress after each delegation round \u2014 one or two sentences, not a narration.
31869
31869
  - **Respect node capabilities.** Don't send build tasks to read-only nodes. Don't push from nodes that aren't allowed to.
@@ -31900,8 +31900,8 @@ ${rules.join("\n")}`;
31900
31900
  b. If you need branch isolation for parallel work, call \`mesh_clone_node\` to create a worktree node first.
31901
31901
  c. If no session exists, call \`mesh_launch_session\` to start one.
31902
31902
  d. Call \`mesh_send_task\` with a **complete, self-contained** instruction that includes all context the agent needs (file paths, line numbers, what to change, why). Do not send partial instructions expecting future follow-up.
31903
- 4. **Monitor** \u2014 Periodically call \`mesh_read_chat\` to check progress. Handle approvals via \`mesh_approve\`.
31904
- 5. **Verify** \u2014 When a task reports completion, call \`mesh_git_status\` to verify changes were made.
31903
+ 4. **Monitor** \u2014 Prefer event-driven completion/status notifications. Do **not** poll \`mesh_read_chat\` repeatedly just because the delegated session has not produced a final assistant message yet; tool/terminal activity means work may still be in progress. Use at most one compact \`mesh_read_chat\` check after a completion/approval signal, an explicit user status request, or a real timeout/stall. Handle approvals via \`mesh_approve\`.
31904
+ 5. **Verify** \u2014 When a task reports completion or git work is visible, call \`mesh_git_status\` to verify changes were made.
31905
31905
  6. **Checkpoint** \u2014 Call \`mesh_checkpoint\` to save the work.
31906
31906
  7. **Clean up** \u2014 Remove worktree nodes via \`mesh_remove_node\` after their work is merged or no longer needed.
31907
31907
  8. **Report** \u2014 Summarize what was done, what changed, and any issues.`;
@@ -39305,18 +39305,22 @@ ${lastSnapshot}`;
39305
39305
  function readStringField(value) {
39306
39306
  return typeof value === "string" ? value.trim().toLowerCase() : "";
39307
39307
  }
39308
+ function readVisibilityField(message, meta3) {
39309
+ const record2 = message;
39310
+ return readStringField(record2.visibility ?? record2.transcriptVisibility ?? meta3?.visibility ?? meta3?.transcriptVisibility);
39311
+ }
39308
39312
  function isExplicitlyHiddenFromTranscript(message, meta3) {
39309
39313
  const record2 = message;
39310
- const visibility = readStringField(record2.visibility || meta3?.visibility || meta3?.transcriptVisibility);
39311
- const audience = readStringField(record2.audience || meta3?.audience);
39312
- const source = readStringField(record2.source || meta3?.source);
39313
- return visibility === "hidden" || visibility === "debug" || visibility === "internal" || audience === "debug" || audience === "trace" || audience === "internal" || source === "runtime_status" || source === "provider_chrome" || source === "control" || record2.internal === true || record2.isInternal === true || record2.debug === true || meta3?.internal === true || meta3?.isInternal === true || meta3?.debug === true || meta3?.statusOnly === true || meta3?.controlOnly === true;
39314
+ const visibility = readVisibilityField(message, meta3);
39315
+ const audience = readStringField(record2.audience ?? meta3?.audience);
39316
+ const source = readStringField(record2.source ?? meta3?.source);
39317
+ return visibility === "hidden" || visibility === "debug" || visibility === "internal" || audience === "debug" || audience === "trace" || audience === "internal" || source === "runtime_status" || source === "runtime_activity" || source === "provider_chrome" || source === "control" || record2.internal === true || record2.isInternal === true || record2.debug === true || meta3?.internal === true || meta3?.isInternal === true || meta3?.debug === true || meta3?.statusOnly === true || meta3?.controlOnly === true;
39314
39318
  }
39315
39319
  function isExplicitlyVisibleInTranscript(message, meta3) {
39316
39320
  const record2 = message;
39317
- const visibility = readStringField(record2.visibility || meta3?.visibility || meta3?.transcriptVisibility);
39318
- const audience = readStringField(record2.audience || meta3?.audience);
39319
- return visibility === "visible" || visibility === "user" || audience === "chat" || record2.userFacing === true || meta3?.userFacing === true;
39321
+ const visibility = readVisibilityField(message, meta3);
39322
+ const audience = readStringField(record2.audience ?? meta3?.audience);
39323
+ return visibility === "visible" || visibility === "user" || visibility === "chat" || audience === "chat" || record2.userFacing === true || meta3?.userFacing === true;
39320
39324
  }
39321
39325
  function isUserFacingChatMessage(message) {
39322
39326
  if (!message) return false;
@@ -41290,6 +41294,14 @@ ${effect.notification.body || ""}`.trim();
41290
41294
  if (typeof message.senderName === "string") normalized.senderName = message.senderName;
41291
41295
  if (typeof message._type === "string") normalized._type = message._type;
41292
41296
  if (typeof message._sub === "string") normalized._sub = message._sub;
41297
+ if (typeof message.visibility === "string") normalized.visibility = message.visibility;
41298
+ if (typeof message.transcriptVisibility === "string") normalized.transcriptVisibility = message.transcriptVisibility;
41299
+ if (typeof message.audience === "string") normalized.audience = message.audience;
41300
+ if (typeof message.source === "string") normalized.source = message.source;
41301
+ if (typeof message.userFacing === "boolean") normalized.userFacing = message.userFacing;
41302
+ if (typeof message.internal === "boolean") normalized.internal = message.internal;
41303
+ if (typeof message.isInternal === "boolean") normalized.isInternal = message.isInternal;
41304
+ if (typeof message.debug === "boolean") normalized.debug = message.debug;
41293
41305
  return normalized;
41294
41306
  }
41295
41307
  function validateModal(activeModal, status, source) {