@adhdev/daemon-standalone 0.9.75 → 0.9.76-rc.2
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 +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/public/assets/{index-QCRCggSl.js → index-B7upbbbO.js} +12 -12
- package/public/assets/index-DHNzD5nE.css +1 -0
- package/public/index.html +2 -2
- package/vendor/mcp-server/index.js +33 -11
- package/vendor/mcp-server/index.js.map +1 -1
- package/vendor/session-host-daemon/index.js +0 -0
- package/vendor/session-host-daemon/index.mjs +0 -0
- package/public/assets/index-CJ15gPBY.css +0 -1
package/dist/index.js
CHANGED
|
@@ -28347,7 +28347,7 @@ ${userInstruction}`);
|
|
|
28347
28347
|
for (const n of mesh.nodes) {
|
|
28348
28348
|
const labels = [];
|
|
28349
28349
|
if (n.isLocalWorktree) labels.push("worktree");
|
|
28350
|
-
if (n.policy
|
|
28350
|
+
if (n.policy?.readOnly) labels.push("read-only");
|
|
28351
28351
|
const suffix = labels.length ? ` [${labels.join(", ")}]` : "";
|
|
28352
28352
|
lines.push(`- **${n.workspace}** (${n.id})${suffix}`);
|
|
28353
28353
|
}
|
|
@@ -28395,18 +28395,20 @@ ${rules.join("\n")}`;
|
|
|
28395
28395
|
3. **Delegate** \u2014 For each task:
|
|
28396
28396
|
a. Pick the best node (consider: health, dirty state, current workload).
|
|
28397
28397
|
b. If no session exists, call \`mesh_launch_session\` to start one.
|
|
28398
|
-
c. Call \`mesh_send_task\` with a
|
|
28398
|
+
c. 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.
|
|
28399
28399
|
4. **Monitor** \u2014 Periodically call \`mesh_read_chat\` to check progress. Handle approvals via \`mesh_approve\`.
|
|
28400
28400
|
5. **Verify** \u2014 When a task reports completion, call \`mesh_git_status\` to verify changes were made.
|
|
28401
28401
|
6. **Checkpoint** \u2014 Call \`mesh_checkpoint\` to save the work.
|
|
28402
28402
|
7. **Report** \u2014 Summarize what was done, what changed, and any issues.`;
|
|
28403
28403
|
RULES_SECTION = `## Rules
|
|
28404
28404
|
|
|
28405
|
-
- **
|
|
28406
|
-
- **
|
|
28405
|
+
- **Minimize coordinator context.** The coordinator's job is routing, not implementing. Do not read source files, run commands, or analyze code directly \u2014 delegate all of that to node agents. Your context should stay lean.
|
|
28406
|
+
- **Delegate analysis too.** If you need to understand a bug or explore the codebase, send that investigation as a task to a node. Do not do it yourself.
|
|
28407
|
+
- **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.
|
|
28408
|
+
- **Don't inspect code.** Trust the agent's output. Verify via \`mesh_git_status\`, not by reading source files.
|
|
28407
28409
|
- **Don't over-parallelize.** Start with 1-2 concurrent tasks. Scale up if they succeed.
|
|
28408
28410
|
- **Handle failures gracefully.** If a task fails, read the chat to understand why, then retry or reassign.
|
|
28409
|
-
- **Keep the user informed.** Report progress after each delegation round.
|
|
28411
|
+
- **Keep the user informed.** Report progress after each delegation round \u2014 one or two sentences, not a narration.
|
|
28410
28412
|
- **Respect node capabilities.** Don't send build tasks to read-only nodes. Don't push from nodes that aren't allowed to.
|
|
28411
28413
|
- **Never fabricate tool results.** Always call the actual tool; never pretend you did.`;
|
|
28412
28414
|
}
|
|
@@ -29633,6 +29635,10 @@ ${rules.join("\n")}`;
|
|
|
29633
29635
|
const currentSnapshot = normalizeScreenSnapshot(screenText);
|
|
29634
29636
|
const lastSnapshot = this.lastScreenSnapshot;
|
|
29635
29637
|
if (!lastSnapshot || lastSnapshot === currentSnapshot) return screenText;
|
|
29638
|
+
const staleSnapshotLooksActive = /\besc to (?:interrupt|stop)\b|Enter to interrupt, Ctrl\+C to cancel/i.test(lastSnapshot);
|
|
29639
|
+
const currentScreenLooksIdle = /(?:^|\n|\r)\s*[❯›>]\s*(?:\n|\r|$)/.test(screenText) && !/\besc to (?:interrupt|stop)\b|Enter to interrupt, Ctrl\+C to cancel/i.test(screenText);
|
|
29640
|
+
if (staleSnapshotLooksActive && currentScreenLooksIdle) return screenText;
|
|
29641
|
+
if (currentSnapshot.length >= lastSnapshot.length) return screenText;
|
|
29636
29642
|
return `${screenText}
|
|
29637
29643
|
${lastSnapshot}`;
|
|
29638
29644
|
}
|