@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.js CHANGED
@@ -226,6 +226,7 @@ __export(index_exports, {
226
226
  WORKER_PROTOCOL_FOOTER_MARKER: () => WORKER_PROTOCOL_FOOTER_MARKER,
227
227
  WORKER_REPORT_OUTCOMES: () => WORKER_REPORT_OUTCOMES,
228
228
  WORKER_REPORT_SUMMARY_MAX_CHARS: () => WORKER_REPORT_SUMMARY_MAX_CHARS,
229
+ WORKER_SHELL_LITERAL_PATHS_RULE: () => WORKER_SHELL_LITERAL_PATHS_RULE,
229
230
  WORKER_TOOLS: () => WORKER_TOOLS,
230
231
  aggregateMissionGitState: () => aggregateMissionGitState,
231
232
  appendWorkerProtocolFooter: () => appendWorkerProtocolFooter,
@@ -2231,6 +2232,7 @@ function renderLightWorkspaceRules(light) {
2231
2232
  ];
2232
2233
  }
2233
2234
  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.";
2235
+ 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.";
2234
2236
  function hasWorkerProtocolFooter(body) {
2235
2237
  return typeof body === "string" && body.includes(WORKER_PROTOCOL_FOOTER_MARKER);
2236
2238
  }
@@ -2254,6 +2256,7 @@ function renderWorkerProtocolFooter(input = {}) {
2254
2256
  else lines.push("You are a delegated worker.");
2255
2257
  if (input.light) lines.push(...renderLightWorkspaceRules(input.light));
2256
2258
  else if (input.commitOnCurrentBranch && input.stage?.role !== "review") lines.push(WORKER_CURRENT_BRANCH_RULE);
2259
+ lines.push(WORKER_SHELL_LITERAL_PATHS_RULE);
2257
2260
  if (input.workerMcp === false) {
2258
2261
  lines.push(
2259
2262
  "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.",
@@ -5374,6 +5377,7 @@ function formatStageVerdictLine(input) {
5374
5377
  WORKER_PROTOCOL_FOOTER_MARKER,
5375
5378
  WORKER_REPORT_OUTCOMES,
5376
5379
  WORKER_REPORT_SUMMARY_MAX_CHARS,
5380
+ WORKER_SHELL_LITERAL_PATHS_RULE,
5377
5381
  WORKER_TOOLS,
5378
5382
  aggregateMissionGitState,
5379
5383
  appendWorkerProtocolFooter,