@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.js
CHANGED
|
@@ -1935,10 +1935,23 @@ function renderWorkerProtocolFooter(input = {}) {
|
|
|
1935
1935
|
if (input.readonly) scope.push("read-only");
|
|
1936
1936
|
if (scope.length) lines.push(`You are a delegated worker (${scope.join(", ")}).`);
|
|
1937
1937
|
else lines.push("You are a delegated worker.");
|
|
1938
|
+
if (input.workerMcp === false) {
|
|
1939
|
+
lines.push(
|
|
1940
|
+
"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.",
|
|
1941
|
+
"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."
|
|
1942
|
+
);
|
|
1943
|
+
if (input.enclosedHandoffNotes && input.enclosedHandoffNotes > 0) {
|
|
1944
|
+
lines.push(
|
|
1945
|
+
`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.`
|
|
1946
|
+
);
|
|
1947
|
+
}
|
|
1948
|
+
return lines.join("\n");
|
|
1949
|
+
}
|
|
1938
1950
|
lines.push(
|
|
1939
1951
|
"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.",
|
|
1940
1952
|
"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.",
|
|
1941
1953
|
"`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`.",
|
|
1954
|
+
"Memos from the coordinator arrive appended to the response of whichever worker tool you call next; read them and follow them.",
|
|
1942
1955
|
"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`.",
|
|
1943
1956
|
"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 `[]`.",
|
|
1944
1957
|
"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."
|