@adhdev/mesh-shared 1.0.76-rc.2 → 1.0.76-rc.4
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 +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/dist/worker-protocol.d.ts +9 -0
- package/package.json +1 -1
- package/src/worker-protocol.ts +29 -0
package/dist/index.mjs
CHANGED
|
@@ -1582,10 +1582,23 @@ function renderWorkerProtocolFooter(input = {}) {
|
|
|
1582
1582
|
if (input.readonly) scope.push("read-only");
|
|
1583
1583
|
if (scope.length) lines.push(`You are a delegated worker (${scope.join(", ")}).`);
|
|
1584
1584
|
else lines.push("You are a delegated worker.");
|
|
1585
|
+
if (input.workerMcp === false) {
|
|
1586
|
+
lines.push(
|
|
1587
|
+
"This session has NO adhdev worker tools (`report_completion`, `progress_update`, `peer_context_pull`, `git_*`) \u2014 do not look for them. When your work is finished, blocked, or has failed, end your turn with a plain final summary: what you did, what you found, which files you changed, and where you left the branch. That final message is what the coordinator receives.",
|
|
1588
|
+
"You have no coordinator tools (no `mesh_*`) by design: do not enqueue, dispatch, or restart anything. If you need a decision from the coordinator, say so plainly in your final summary \u2014 what is blocked and what you need \u2014 and stop."
|
|
1589
|
+
);
|
|
1590
|
+
if (input.enclosedHandoffNotes && input.enclosedHandoffNotes > 0) {
|
|
1591
|
+
lines.push(
|
|
1592
|
+
`The ${input.enclosedHandoffNotes} handoff note(s) above were written by agents who touched this code before you; honour their conflict guidance and mention anything the next agent should know in your final summary.`
|
|
1593
|
+
);
|
|
1594
|
+
}
|
|
1595
|
+
return lines.join("\n");
|
|
1596
|
+
}
|
|
1585
1597
|
lines.push(
|
|
1586
1598
|
"When your work is finished, blocked, or has failed, call `report_completion` exactly once. Its `summary` is recorded verbatim as the authoritative record of this task \u2014 your terminal is not scraped for it \u2014 so state what you did, what you found, and where you left the branch.",
|
|
1587
1599
|
"For work that runs longer than a few minutes, call `progress_update` at natural checkpoints so the coordinator can see you are alive without polling.",
|
|
1588
1600
|
"`peer_context_pull` shows what sibling tasks in this mission have reported; `git_status` / `git_diff` / `git_log` inspect your own workspace \u2014 all three REQUIRE the absolute path to it as `workspace`.",
|
|
1601
|
+
"Memos from the coordinator arrive appended to the response of whichever worker tool you call next; read them and follow them.",
|
|
1589
1602
|
"You have no coordinator tools (no `mesh_*`) by design: do not enqueue, dispatch, or restart anything. If you need a decision from the coordinator, finish with `report_completion` and outcome `blocked`, listing what you need in `blockers`.",
|
|
1590
1603
|
"On a code-changing task, `report_completion` with outcome `completed` requires `touched_files` \u2014 send `[]` if you changed nothing, omitting the field is what gets refused. `blocked`/`failed` never need it, and a read-only task should omit it or send `[]`.",
|
|
1591
1604
|
"If `report_completion` is refused, the response carries `validationErrors` (or a `hint`) naming exactly what to fix \u2014 correct that field and call it again; a refusal records nothing."
|