greprag 5.60.10 → 5.60.11

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.
@@ -66,7 +66,7 @@ function context(input) {
66
66
  'Do not merge, push, deploy, clean up, or edit the parent checkout.',
67
67
  ];
68
68
  if (chip.codex.role === 'mechanic') {
69
- lines.push('Harness: Codex. Role: visible native MECHANIC chip with ordinary writable authority, not an internal subagent.', 'Scope: repair GrepRAG-owned harness surfaces in this checkout: load entries, skill templates, docs, hook context, CLI messages, and tests. Codex owns native task creation, worktrees, permissions, Git, and task lifecycle.', 'Own diagnosis, implementation, tests, commit, and parent report. Inspect Codex behavior only far enough to correct GrepRAG guidance or report a precise external blocker.', 'Visible delegation route: load `codex-chip-spawn` and create the child with `codex_app__create_thread` using the current project worktree target; load `chip-leader` for multi-chip seams. Never use `multi_agent_v1__spawn_agent` for a visible chip.');
69
+ lines.push('Harness: Codex. Role: visible native MECHANIC chip with ordinary writable authority, not an internal subagent.', 'Scope: repair GrepRAG-owned harness surfaces in this checkout: load entries, skill templates, docs, hook context, CLI messages, and tests. Codex owns native task creation, worktrees, permissions, Git, and task lifecycle.', 'Own diagnosis, implementation, tests, commit, and parent report. Inspect Codex behavior only far enough to correct GrepRAG guidance or report a precise external blocker.', 'Mechanic peer handoff: if a Mechanic peer offers to coordinate, integrate, rework, or take over a harness repair, hand off branch/commit, dirty files, checks, blockers, and caveats. Do not defend patch ownership; peers may take ownership within their assigned GrepRAG harness scope.', 'Visible delegation route: load `codex-chip-spawn` and create the child with `codex_app__create_thread` using the current project worktree target; load `chip-leader` for multi-chip seams. Never use `multi_agent_v1__spawn_agent` for a visible chip.');
70
70
  }
71
71
  return output(input.hook_event_name || 'SessionStart', lines.join('\n'));
72
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"codex-chip-hooks.js","sourceRoot":"","sources":["../src/codex-chip-hooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC;AACtC,CAAC;AAED;iEACiE;AACjE,SAAS,KAAK,CAAC,KAAoB;IACjC,MAAM,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAChC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC1D,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACzE,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACxE,IAAI,SAAS,KAAK,WAAW,IAAI,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC1E,OAAO,MAAM,CAAC,KAAK,CAAC,eAAe,IAAI,YAAY,EAAE,EAAE,EACrD,kFAAkF,CAAC,CAAC;IACxF,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAoB;IACxD,MAAM,KAAK,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;IAC1C,IAAI,KAAK,KAAK,kBAAkB;QAAE,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACnE,IAAI,KAAK,KAAK,YAAY;QAAE,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IAChD,IAAI,KAAK,KAAK,cAAc,IAAI,KAAK,KAAK,eAAe,IAAI,KAAK,KAAK,cAAc;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7G,OAAO,IAAI,CAAC;AACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greprag",
3
- "version": "5.60.10",
3
+ "version": "5.60.11",
4
4
  "description": "GrepRAG — agent memory for Claude Code, Codex, and OpenCode.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -83,6 +83,13 @@ task is the implicit LEAD; for more than two children or shared seams, load
83
83
  `multi_agent_v1__spawn_agent` is only an ephemeral same-session subagent and
84
84
  never satisfies a visible-chip requirement.
85
85
 
86
+ ABOUT TO answer a Mechanic peer who offers to coordinate, integrate, rework, or
87
+ take over a harness repair? STOP — hand off the repair state: commit/branch,
88
+ dirty files, checks, blockers, and caveats. Do not defend patch ownership or
89
+ tell the peer to avoid your work; Mechanic peers may take ownership of GrepRAG
90
+ harness repairs within their assigned scope. Keep normal gates for destructive,
91
+ external, or out-of-scope actions.
92
+
86
93
  ## Phase 0 — Fix digestion
87
94
 
88
95
  A fix is a raw, undigested signal. Auto-detected friction fixes carry a type; hand-dropped ones are freeform. Digestion does two jobs per fix — **repair** the mechanism and/or **record** the durable gotcha — and runs FIRST.
@@ -60,6 +60,11 @@ dispatch `Chip A` and `Chip B` directly.
60
60
  `chip.advisor`, and `MECHANIC` -> `chip.mechanic`. ABOUT TO call
61
61
  `codex_app__create_thread`? STOP - pass that slot as top-level `model` and
62
62
  `thinking`; never rely on Codex Desktop defaults for a visible chip.
63
+ - An `ADVISOR: <Purview>` child is a lead-facing consultant. It reports
64
+ strategic findings, questions, tradeoffs, and recommendations back to the
65
+ LEAD only. It must not write operator-facing completion language, address the
66
+ operator as if the mission is complete, or decide/spawn worker chips; the LEAD
67
+ owns operator synthesis and any worker dispatch.
63
68
  - Preserve the visible native task identity, isolated worktree, concise final
64
69
  report, parent review/integration, and parent-owned archive + cleanup. Normal
65
70
  completion is the native parent-child task result; `greprag send` remains
@@ -149,6 +154,9 @@ Read AGENTS.md and the session-start recap, then inspect the current repo state.
149
154
  No leases, read-only mode, or goals.
150
155
  If the exact first-line title is `MECHANIC: <Mission>`, make `greprag load
151
156
  mechanic` the first Setup action before diagnosis or edits.
157
+ If the exact first-line title is `ADVISOR: <Purview>`, report consultation to
158
+ the LEAD only: strategic findings, questions, tradeoffs, and recommendations.
159
+ Do not write operator-facing completion language or decide/spawn worker chips.
152
160
 
153
161
  ## Task
154
162
  Outcome: <desired observable result>