@adhdev/mesh-shared 1.0.82-rc.89 → 1.0.82-rc.90

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.mjs CHANGED
@@ -1733,6 +1733,7 @@ function renderLightWorkspaceRules(light) {
1733
1733
  ];
1734
1734
  }
1735
1735
  var WORKER_CURRENT_BRANCH_RULE = "Commit your change on the branch that is currently checked out in this workspace. Do not create or switch branches (no `git checkout -b` / `git switch`) unless the task explicitly says to; report the branch you committed on.";
1736
+ var WORKER_SHELL_LITERAL_PATHS_RULE = "In shell commands, write file and directory paths literally (absolute, or relative to your workspace) instead of through shell variables (`N=dir; cat $N/x`) or `$(...)` substitutions, and keep to one simple command per call, so the command can be checked before it runs. This does not change what you are allowed to run or read.";
1736
1737
  function hasWorkerProtocolFooter(body) {
1737
1738
  return typeof body === "string" && body.includes(WORKER_PROTOCOL_FOOTER_MARKER);
1738
1739
  }
@@ -1756,6 +1757,7 @@ function renderWorkerProtocolFooter(input = {}) {
1756
1757
  else lines.push("You are a delegated worker.");
1757
1758
  if (input.light) lines.push(...renderLightWorkspaceRules(input.light));
1758
1759
  else if (input.commitOnCurrentBranch && input.stage?.role !== "review") lines.push(WORKER_CURRENT_BRANCH_RULE);
1760
+ lines.push(WORKER_SHELL_LITERAL_PATHS_RULE);
1759
1761
  if (input.workerMcp === false) {
1760
1762
  lines.push(
1761
1763
  "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.",
@@ -4875,6 +4877,7 @@ export {
4875
4877
  WORKER_PROTOCOL_FOOTER_MARKER,
4876
4878
  WORKER_REPORT_OUTCOMES,
4877
4879
  WORKER_REPORT_SUMMARY_MAX_CHARS,
4880
+ WORKER_SHELL_LITERAL_PATHS_RULE,
4878
4881
  WORKER_TOOLS,
4879
4882
  aggregateMissionGitState,
4880
4883
  appendWorkerProtocolFooter,