greprag 5.74.3 → 5.74.5

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.
Files changed (583) hide show
  1. package/dist/archive/glyph-font.js +0 -1
  2. package/dist/archive/page-renderer.js +0 -1
  3. package/dist/archive/png-codec.js +0 -1
  4. package/dist/archive/transcript-extract.js +0 -1
  5. package/dist/assistant-doctrine.js +0 -1
  6. package/dist/capture-manifest.js +0 -1
  7. package/dist/ccr-store.js +0 -1
  8. package/dist/claude-lifecycle-cutover.js +0 -1
  9. package/dist/codex-chip-hooks.js +0 -1
  10. package/dist/codex-delegation-dedupe.js +0 -1
  11. package/dist/codex-fast-hook.js +0 -1
  12. package/dist/codex-hook-events.js +0 -1
  13. package/dist/codex-notify-hook.js +0 -1
  14. package/dist/codex-prompt-cache.js +0 -1
  15. package/dist/codex-steering.js +0 -1
  16. package/dist/codex-store-background.js +0 -1
  17. package/dist/commands/agent-doctrine-file.js +0 -1
  18. package/dist/commands/agents.js +0 -1
  19. package/dist/commands/archive.js +0 -1
  20. package/dist/commands/arm-reminder.js +0 -1
  21. package/dist/commands/assistant-reminder.js +0 -1
  22. package/dist/commands/assistant.js +0 -1
  23. package/dist/commands/checkpoint-helpers.js +0 -1
  24. package/dist/commands/checkpoint.js +0 -1
  25. package/dist/commands/claude-md-patch.js +0 -1
  26. package/dist/commands/codex-app-server-client.js +0 -1
  27. package/dist/commands/codex-app-server.js +0 -1
  28. package/dist/commands/codex-chip/bootstrap.js +0 -1
  29. package/dist/commands/codex-chip/breakthrough-ack-command.js +0 -1
  30. package/dist/commands/codex-chip/breakthrough-command.js +0 -1
  31. package/dist/commands/codex-chip/breakthrough.js +0 -1
  32. package/dist/commands/codex-chip/cleanup-command.js +0 -1
  33. package/dist/commands/codex-chip/command.js +0 -1
  34. package/dist/commands/codex-chip/git.js +0 -1
  35. package/dist/commands/codex-chip/goal-command.js +0 -1
  36. package/dist/commands/codex-chip/goals.js +0 -1
  37. package/dist/commands/codex-chip/help.js +0 -1
  38. package/dist/commands/codex-chip/inbox.js +0 -1
  39. package/dist/commands/codex-chip/lifecycle.js +0 -1
  40. package/dist/commands/codex-chip/mechanic-lifecycle.js +0 -1
  41. package/dist/commands/codex-chip/model.js +0 -1
  42. package/dist/commands/codex-chip/naming.js +0 -1
  43. package/dist/commands/codex-chip/native.js +0 -1
  44. package/dist/commands/codex-chip/prompt.js +0 -1
  45. package/dist/commands/codex-chip/resume-command.js +0 -1
  46. package/dist/commands/codex-chip/selection.js +0 -1
  47. package/dist/commands/codex-chip/store.js +0 -1
  48. package/dist/commands/codex-chip/worker.js +0 -1
  49. package/dist/commands/codex-delivery.js +0 -1
  50. package/dist/commands/codex-doctor.js +0 -1
  51. package/dist/commands/codex-model-policy.js +0 -1
  52. package/dist/commands/codex-startup.js +0 -1
  53. package/dist/commands/codex-supervisor.js +0 -1
  54. package/dist/commands/codex-wake-test.js +0 -1
  55. package/dist/commands/codex-watch-health.js +0 -1
  56. package/dist/commands/codex.js +0 -1
  57. package/dist/commands/collision-check.js +0 -1
  58. package/dist/commands/collision-reminder.js +0 -1
  59. package/dist/commands/context-governor.js +0 -1
  60. package/dist/commands/coordinate-gate.js +0 -1
  61. package/dist/commands/corpus/client.js +0 -1
  62. package/dist/commands/corpus/index.js +0 -1
  63. package/dist/commands/corpus/manage.js +0 -1
  64. package/dist/commands/corpus/refresh.js +0 -1
  65. package/dist/commands/corpus/search.js +0 -1
  66. package/dist/commands/corpus/section.js +0 -1
  67. package/dist/commands/corpus/source.js +0 -1
  68. package/dist/commands/corpus/status.js +0 -1
  69. package/dist/commands/corpus/tags.js +0 -1
  70. package/dist/commands/corpus/upload.js +0 -1
  71. package/dist/commands/corpus/walk.js +0 -1
  72. package/dist/commands/corpus-reminder.js +0 -1
  73. package/dist/commands/crush-stats.js +0 -1
  74. package/dist/commands/crush.js +0 -1
  75. package/dist/commands/delivery-reminder.js +1 -2
  76. package/dist/commands/delivery.js +0 -1
  77. package/dist/commands/desk-line.js +0 -1
  78. package/dist/commands/discord.js +0 -1
  79. package/dist/commands/discover.js +0 -1
  80. package/dist/commands/doc-pointer-reminder.js +0 -1
  81. package/dist/commands/doc.js +0 -1
  82. package/dist/commands/docptr.js +0 -1
  83. package/dist/commands/doctor.js +6 -6
  84. package/dist/commands/email-primer-reminder.js +0 -1
  85. package/dist/commands/email.js +0 -1
  86. package/dist/commands/enrichment-health-reminder.js +0 -1
  87. package/dist/commands/fix.js +0 -1
  88. package/dist/commands/friction-reminder.js +1 -2
  89. package/dist/commands/identity.js +0 -1
  90. package/dist/commands/inbox-drain.js +0 -1
  91. package/dist/commands/inbox-primer-reminder.js +0 -1
  92. package/dist/commands/inbox-retract.js +0 -1
  93. package/dist/commands/inbox-watch-supervisor.js +0 -1
  94. package/dist/commands/inbox-watch.js +0 -1
  95. package/dist/commands/ingress-trigger.js +0 -1
  96. package/dist/commands/init.js +0 -1
  97. package/dist/commands/load-primer-reminder.js +0 -1
  98. package/dist/commands/load.js +0 -1
  99. package/dist/commands/loadout-reminder.js +0 -1
  100. package/dist/commands/loadout.js +0 -1
  101. package/dist/commands/mechanic-live.js +0 -1
  102. package/dist/commands/mechanic-manifest.js +0 -1
  103. package/dist/commands/mechanic-spawn.js +0 -1
  104. package/dist/commands/mechanic.js +0 -1
  105. package/dist/commands/memory-format.js +0 -1
  106. package/dist/commands/memory-reflex.js +0 -1
  107. package/dist/commands/memory.js +0 -1
  108. package/dist/commands/opencode-chip-client.js +0 -1
  109. package/dist/commands/opencode-chip-lifecycle.js +0 -1
  110. package/dist/commands/opencode-chip-mission.js +0 -1
  111. package/dist/commands/opencode-chip-store.js +0 -1
  112. package/dist/commands/opencode-chip.js +0 -1
  113. package/dist/commands/opencode-goals.js +0 -1
  114. package/dist/commands/opencode-interrupt.js +0 -1
  115. package/dist/commands/opencode-relay.js +0 -1
  116. package/dist/commands/opencode-watch.js +0 -1
  117. package/dist/commands/os-primer-reminder.js +0 -1
  118. package/dist/commands/parity.js +0 -1
  119. package/dist/commands/pipe-wrap.js +0 -1
  120. package/dist/commands/poll-registry.js +0 -1
  121. package/dist/commands/procedure-reminder.js +0 -1
  122. package/dist/commands/procedure.js +0 -1
  123. package/dist/commands/project.js +0 -1
  124. package/dist/commands/reminder-registry.js +0 -1
  125. package/dist/commands/reminder-types.js +0 -1
  126. package/dist/commands/search-guard.js +0 -1
  127. package/dist/commands/session.js +0 -1
  128. package/dist/commands/setup-reminder.js +0 -1
  129. package/dist/commands/shell-dialect-guard.js +0 -1
  130. package/dist/commands/skill-gain-reminder.js +0 -1
  131. package/dist/commands/skill-mirror-reminder.js +0 -1
  132. package/dist/commands/skill.js +12 -4
  133. package/dist/commands/skillgain.js +0 -1
  134. package/dist/commands/sms.js +0 -1
  135. package/dist/commands/state-trigger.js +0 -1
  136. package/dist/commands/status.js +6 -6
  137. package/dist/commands/version-reminder.js +13 -2
  138. package/dist/commands/watcher-registry.js +0 -1
  139. package/dist/crush/adaptive-sizer.js +0 -1
  140. package/dist/crush/code-compressor.js +0 -1
  141. package/dist/crush/crush-keywords.js +0 -1
  142. package/dist/crush/crush-types.js +0 -1
  143. package/dist/crush/index.js +0 -1
  144. package/dist/crush/json-crusher.js +0 -1
  145. package/dist/crush/json-detectors.js +0 -1
  146. package/dist/crush/log-compressor.js +0 -1
  147. package/dist/crush/search-compressor.js +0 -1
  148. package/dist/delivery-config.js +0 -1
  149. package/dist/delivery-lifecycle.js +0 -1
  150. package/dist/doc-mirror-client.js +0 -1
  151. package/dist/docptr-refs.js +0 -1
  152. package/dist/email-pull.js +0 -1
  153. package/dist/email-send.js +0 -1
  154. package/dist/equipped-loadouts-cache.js +0 -1
  155. package/dist/fix-trigger.js +0 -1
  156. package/dist/guard.js +0 -1
  157. package/dist/harness.js +0 -1
  158. package/dist/hook-runtime.js +0 -1
  159. package/dist/hook.js +21 -1
  160. package/dist/inbox-attachments.js +0 -1
  161. package/dist/index.js +0 -1
  162. package/dist/inline-atom-background.js +0 -1
  163. package/dist/inline-atom-episode.js +0 -1
  164. package/dist/inline-atom-hook.js +0 -1
  165. package/dist/inline-atom-worker.js +0 -1
  166. package/dist/inline-atom.js +0 -1
  167. package/dist/mechanic-friction.js +0 -1
  168. package/dist/mechanic-role.js +0 -1
  169. package/dist/native-skill-adoption.js +0 -1
  170. package/dist/native-skill-mirror.js +54 -17
  171. package/dist/native-skill-pending.js +0 -1
  172. package/dist/opencode-plugin-crush.js +0 -1
  173. package/dist/opencode-plugin-helpers.js +0 -1
  174. package/dist/opencode-plugin-png.js +0 -1
  175. package/dist/opencode-plugin.bundle.js +14 -3
  176. package/dist/opencode-plugin.js +0 -1
  177. package/dist/proc.js +0 -1
  178. package/dist/procedure-run.js +0 -1
  179. package/dist/procedure-runtime.js +0 -1
  180. package/dist/procedure-shadow.js +0 -1
  181. package/dist/procedure-watch.js +0 -1
  182. package/dist/procedure.js +0 -1
  183. package/dist/project-anchor.js +0 -1
  184. package/dist/reminder-injector.js +0 -1
  185. package/dist/secret-scrubber.js +0 -1
  186. package/dist/session-id.js +0 -1
  187. package/dist/skill-activation-manifest.js +0 -1
  188. package/dist/skill-landing.js +0 -1
  189. package/dist/skill-mirror-client.js +0 -1
  190. package/dist/skill-mirror-files.js +0 -1
  191. package/dist/skill-staleness.js +2 -2
  192. package/dist/turn-provenance.js +0 -1
  193. package/dist/windows-shims.js +134 -42
  194. package/dist/worktree-state.js +0 -1
  195. package/package.json +1 -1
  196. package/skill/mechanic/SKILL.md +1 -1
  197. package/skill/templates/skill-change.md +1 -0
  198. package/dist/archive/glyph-font.d.ts +0 -22
  199. package/dist/archive/glyph-font.js.map +0 -1
  200. package/dist/archive/page-renderer.d.ts +0 -67
  201. package/dist/archive/page-renderer.js.map +0 -1
  202. package/dist/archive/png-codec.d.ts +0 -21
  203. package/dist/archive/png-codec.js.map +0 -1
  204. package/dist/archive/transcript-extract.d.ts +0 -39
  205. package/dist/archive/transcript-extract.js.map +0 -1
  206. package/dist/assistant-doctrine.d.ts +0 -23
  207. package/dist/assistant-doctrine.js.map +0 -1
  208. package/dist/capture-manifest.d.ts +0 -20
  209. package/dist/capture-manifest.js.map +0 -1
  210. package/dist/ccr-store.d.ts +0 -49
  211. package/dist/ccr-store.js.map +0 -1
  212. package/dist/claude-lifecycle-cutover.d.ts +0 -23
  213. package/dist/claude-lifecycle-cutover.js.map +0 -1
  214. package/dist/codex-chip-hooks.d.ts +0 -16
  215. package/dist/codex-chip-hooks.js.map +0 -1
  216. package/dist/codex-delegation-dedupe.d.ts +0 -4
  217. package/dist/codex-delegation-dedupe.js.map +0 -1
  218. package/dist/codex-fast-hook.d.ts +0 -2
  219. package/dist/codex-fast-hook.js.map +0 -1
  220. package/dist/codex-hook-events.d.ts +0 -20
  221. package/dist/codex-hook-events.js.map +0 -1
  222. package/dist/codex-notify-hook.d.ts +0 -2
  223. package/dist/codex-notify-hook.js.map +0 -1
  224. package/dist/codex-prompt-cache.d.ts +0 -11
  225. package/dist/codex-prompt-cache.js.map +0 -1
  226. package/dist/codex-steering.d.ts +0 -30
  227. package/dist/codex-steering.js.map +0 -1
  228. package/dist/codex-store-background.d.ts +0 -2
  229. package/dist/codex-store-background.js.map +0 -1
  230. package/dist/commands/agent-doctrine-file.d.ts +0 -53
  231. package/dist/commands/agent-doctrine-file.js.map +0 -1
  232. package/dist/commands/agents.d.ts +0 -41
  233. package/dist/commands/agents.js.map +0 -1
  234. package/dist/commands/archive.d.ts +0 -81
  235. package/dist/commands/archive.js.map +0 -1
  236. package/dist/commands/arm-reminder.d.ts +0 -30
  237. package/dist/commands/arm-reminder.js.map +0 -1
  238. package/dist/commands/assistant-reminder.d.ts +0 -9
  239. package/dist/commands/assistant-reminder.js.map +0 -1
  240. package/dist/commands/assistant.d.ts +0 -20
  241. package/dist/commands/assistant.js.map +0 -1
  242. package/dist/commands/checkpoint-helpers.d.ts +0 -41
  243. package/dist/commands/checkpoint-helpers.js.map +0 -1
  244. package/dist/commands/checkpoint.d.ts +0 -16
  245. package/dist/commands/checkpoint.js.map +0 -1
  246. package/dist/commands/claude-md-patch.d.ts +0 -56
  247. package/dist/commands/claude-md-patch.js.map +0 -1
  248. package/dist/commands/codex-app-server-client.d.ts +0 -46
  249. package/dist/commands/codex-app-server-client.js.map +0 -1
  250. package/dist/commands/codex-app-server.d.ts +0 -1
  251. package/dist/commands/codex-app-server.js.map +0 -1
  252. package/dist/commands/codex-chip/bootstrap.d.ts +0 -8
  253. package/dist/commands/codex-chip/bootstrap.js.map +0 -1
  254. package/dist/commands/codex-chip/breakthrough-ack-command.d.ts +0 -1
  255. package/dist/commands/codex-chip/breakthrough-ack-command.js.map +0 -1
  256. package/dist/commands/codex-chip/breakthrough-command.d.ts +0 -5
  257. package/dist/commands/codex-chip/breakthrough-command.js.map +0 -1
  258. package/dist/commands/codex-chip/breakthrough.d.ts +0 -15
  259. package/dist/commands/codex-chip/breakthrough.js.map +0 -1
  260. package/dist/commands/codex-chip/cleanup-command.d.ts +0 -2
  261. package/dist/commands/codex-chip/cleanup-command.js.map +0 -1
  262. package/dist/commands/codex-chip/command.d.ts +0 -3
  263. package/dist/commands/codex-chip/command.js.map +0 -1
  264. package/dist/commands/codex-chip/git.d.ts +0 -34
  265. package/dist/commands/codex-chip/git.js.map +0 -1
  266. package/dist/commands/codex-chip/goal-command.d.ts +0 -1
  267. package/dist/commands/codex-chip/goal-command.js.map +0 -1
  268. package/dist/commands/codex-chip/goals.d.ts +0 -73
  269. package/dist/commands/codex-chip/goals.js.map +0 -1
  270. package/dist/commands/codex-chip/help.d.ts +0 -1
  271. package/dist/commands/codex-chip/help.js.map +0 -1
  272. package/dist/commands/codex-chip/inbox.d.ts +0 -10
  273. package/dist/commands/codex-chip/inbox.js.map +0 -1
  274. package/dist/commands/codex-chip/lifecycle.d.ts +0 -8
  275. package/dist/commands/codex-chip/lifecycle.js.map +0 -1
  276. package/dist/commands/codex-chip/mechanic-lifecycle.d.ts +0 -5
  277. package/dist/commands/codex-chip/mechanic-lifecycle.js.map +0 -1
  278. package/dist/commands/codex-chip/model.d.ts +0 -155
  279. package/dist/commands/codex-chip/model.js.map +0 -1
  280. package/dist/commands/codex-chip/naming.d.ts +0 -8
  281. package/dist/commands/codex-chip/naming.js.map +0 -1
  282. package/dist/commands/codex-chip/native.d.ts +0 -70
  283. package/dist/commands/codex-chip/native.js.map +0 -1
  284. package/dist/commands/codex-chip/prompt.d.ts +0 -3
  285. package/dist/commands/codex-chip/prompt.js.map +0 -1
  286. package/dist/commands/codex-chip/resume-command.d.ts +0 -7
  287. package/dist/commands/codex-chip/resume-command.js.map +0 -1
  288. package/dist/commands/codex-chip/selection.d.ts +0 -14
  289. package/dist/commands/codex-chip/selection.js.map +0 -1
  290. package/dist/commands/codex-chip/store.d.ts +0 -16
  291. package/dist/commands/codex-chip/store.js.map +0 -1
  292. package/dist/commands/codex-chip/worker.d.ts +0 -4
  293. package/dist/commands/codex-chip/worker.js.map +0 -1
  294. package/dist/commands/codex-delivery.d.ts +0 -67
  295. package/dist/commands/codex-delivery.js.map +0 -1
  296. package/dist/commands/codex-doctor.d.ts +0 -5
  297. package/dist/commands/codex-doctor.js.map +0 -1
  298. package/dist/commands/codex-model-policy.d.ts +0 -19
  299. package/dist/commands/codex-model-policy.js.map +0 -1
  300. package/dist/commands/codex-startup.d.ts +0 -13
  301. package/dist/commands/codex-startup.js.map +0 -1
  302. package/dist/commands/codex-supervisor.d.ts +0 -17
  303. package/dist/commands/codex-supervisor.js.map +0 -1
  304. package/dist/commands/codex-wake-test.d.ts +0 -46
  305. package/dist/commands/codex-wake-test.js.map +0 -1
  306. package/dist/commands/codex-watch-health.d.ts +0 -68
  307. package/dist/commands/codex-watch-health.js.map +0 -1
  308. package/dist/commands/codex.d.ts +0 -28
  309. package/dist/commands/codex.js.map +0 -1
  310. package/dist/commands/collision-check.d.ts +0 -112
  311. package/dist/commands/collision-check.js.map +0 -1
  312. package/dist/commands/collision-reminder.d.ts +0 -14
  313. package/dist/commands/collision-reminder.js.map +0 -1
  314. package/dist/commands/context-governor.d.ts +0 -87
  315. package/dist/commands/context-governor.js.map +0 -1
  316. package/dist/commands/coordinate-gate.d.ts +0 -80
  317. package/dist/commands/coordinate-gate.js.map +0 -1
  318. package/dist/commands/corpus/client.d.ts +0 -71
  319. package/dist/commands/corpus/client.js.map +0 -1
  320. package/dist/commands/corpus/index.d.ts +0 -24
  321. package/dist/commands/corpus/index.js.map +0 -1
  322. package/dist/commands/corpus/manage.d.ts +0 -6
  323. package/dist/commands/corpus/manage.js.map +0 -1
  324. package/dist/commands/corpus/refresh.d.ts +0 -12
  325. package/dist/commands/corpus/refresh.js.map +0 -1
  326. package/dist/commands/corpus/search.d.ts +0 -6
  327. package/dist/commands/corpus/search.js.map +0 -1
  328. package/dist/commands/corpus/section.d.ts +0 -5
  329. package/dist/commands/corpus/section.js.map +0 -1
  330. package/dist/commands/corpus/source.d.ts +0 -15
  331. package/dist/commands/corpus/source.js.map +0 -1
  332. package/dist/commands/corpus/status.d.ts +0 -5
  333. package/dist/commands/corpus/status.js.map +0 -1
  334. package/dist/commands/corpus/tags.d.ts +0 -17
  335. package/dist/commands/corpus/tags.js.map +0 -1
  336. package/dist/commands/corpus/upload.d.ts +0 -7
  337. package/dist/commands/corpus/upload.js.map +0 -1
  338. package/dist/commands/corpus/walk.d.ts +0 -5
  339. package/dist/commands/corpus/walk.js.map +0 -1
  340. package/dist/commands/corpus-reminder.d.ts +0 -15
  341. package/dist/commands/corpus-reminder.js.map +0 -1
  342. package/dist/commands/crush-stats.d.ts +0 -36
  343. package/dist/commands/crush-stats.js.map +0 -1
  344. package/dist/commands/crush.d.ts +0 -33
  345. package/dist/commands/crush.js.map +0 -1
  346. package/dist/commands/delivery-reminder.d.ts +0 -10
  347. package/dist/commands/delivery-reminder.js.map +0 -1
  348. package/dist/commands/delivery.d.ts +0 -1
  349. package/dist/commands/delivery.js.map +0 -1
  350. package/dist/commands/desk-line.d.ts +0 -36
  351. package/dist/commands/desk-line.js.map +0 -1
  352. package/dist/commands/discord.d.ts +0 -72
  353. package/dist/commands/discord.js.map +0 -1
  354. package/dist/commands/discover.d.ts +0 -45
  355. package/dist/commands/discover.js.map +0 -1
  356. package/dist/commands/doc-pointer-reminder.d.ts +0 -20
  357. package/dist/commands/doc-pointer-reminder.js.map +0 -1
  358. package/dist/commands/doc.d.ts +0 -6
  359. package/dist/commands/doc.js.map +0 -1
  360. package/dist/commands/docptr.d.ts +0 -17
  361. package/dist/commands/docptr.js.map +0 -1
  362. package/dist/commands/doctor.d.ts +0 -15
  363. package/dist/commands/doctor.js.map +0 -1
  364. package/dist/commands/email-primer-reminder.d.ts +0 -23
  365. package/dist/commands/email-primer-reminder.js.map +0 -1
  366. package/dist/commands/email.d.ts +0 -18
  367. package/dist/commands/email.js.map +0 -1
  368. package/dist/commands/enrichment-health-reminder.d.ts +0 -23
  369. package/dist/commands/enrichment-health-reminder.js.map +0 -1
  370. package/dist/commands/fix.d.ts +0 -50
  371. package/dist/commands/fix.js.map +0 -1
  372. package/dist/commands/friction-reminder.d.ts +0 -70
  373. package/dist/commands/friction-reminder.js.map +0 -1
  374. package/dist/commands/identity.d.ts +0 -24
  375. package/dist/commands/identity.js.map +0 -1
  376. package/dist/commands/inbox-drain.d.ts +0 -48
  377. package/dist/commands/inbox-drain.js.map +0 -1
  378. package/dist/commands/inbox-primer-reminder.d.ts +0 -27
  379. package/dist/commands/inbox-primer-reminder.js.map +0 -1
  380. package/dist/commands/inbox-retract.d.ts +0 -18
  381. package/dist/commands/inbox-retract.js.map +0 -1
  382. package/dist/commands/inbox-watch-supervisor.d.ts +0 -66
  383. package/dist/commands/inbox-watch-supervisor.js.map +0 -1
  384. package/dist/commands/inbox-watch.d.ts +0 -127
  385. package/dist/commands/inbox-watch.js.map +0 -1
  386. package/dist/commands/ingress-trigger.d.ts +0 -67
  387. package/dist/commands/ingress-trigger.js.map +0 -1
  388. package/dist/commands/init.d.ts +0 -48
  389. package/dist/commands/init.js.map +0 -1
  390. package/dist/commands/load-primer-reminder.d.ts +0 -38
  391. package/dist/commands/load-primer-reminder.js.map +0 -1
  392. package/dist/commands/load.d.ts +0 -20
  393. package/dist/commands/load.js.map +0 -1
  394. package/dist/commands/loadout-reminder.d.ts +0 -37
  395. package/dist/commands/loadout-reminder.js.map +0 -1
  396. package/dist/commands/loadout.d.ts +0 -15
  397. package/dist/commands/loadout.js.map +0 -1
  398. package/dist/commands/mechanic-live.d.ts +0 -12
  399. package/dist/commands/mechanic-live.js.map +0 -1
  400. package/dist/commands/mechanic-manifest.d.ts +0 -28
  401. package/dist/commands/mechanic-manifest.js.map +0 -1
  402. package/dist/commands/mechanic-spawn.d.ts +0 -39
  403. package/dist/commands/mechanic-spawn.js.map +0 -1
  404. package/dist/commands/mechanic.d.ts +0 -101
  405. package/dist/commands/mechanic.js.map +0 -1
  406. package/dist/commands/memory-format.d.ts +0 -68
  407. package/dist/commands/memory-format.js.map +0 -1
  408. package/dist/commands/memory-reflex.d.ts +0 -20
  409. package/dist/commands/memory-reflex.js.map +0 -1
  410. package/dist/commands/memory.d.ts +0 -74
  411. package/dist/commands/memory.js.map +0 -1
  412. package/dist/commands/opencode-chip-client.d.ts +0 -8
  413. package/dist/commands/opencode-chip-client.js.map +0 -1
  414. package/dist/commands/opencode-chip-lifecycle.d.ts +0 -2
  415. package/dist/commands/opencode-chip-lifecycle.js.map +0 -1
  416. package/dist/commands/opencode-chip-mission.d.ts +0 -22
  417. package/dist/commands/opencode-chip-mission.js.map +0 -1
  418. package/dist/commands/opencode-chip-store.d.ts +0 -72
  419. package/dist/commands/opencode-chip-store.js.map +0 -1
  420. package/dist/commands/opencode-chip.d.ts +0 -3
  421. package/dist/commands/opencode-chip.js.map +0 -1
  422. package/dist/commands/opencode-goals.d.ts +0 -5
  423. package/dist/commands/opencode-goals.js.map +0 -1
  424. package/dist/commands/opencode-interrupt.d.ts +0 -34
  425. package/dist/commands/opencode-interrupt.js.map +0 -1
  426. package/dist/commands/opencode-relay.d.ts +0 -144
  427. package/dist/commands/opencode-relay.js.map +0 -1
  428. package/dist/commands/opencode-watch.d.ts +0 -17
  429. package/dist/commands/opencode-watch.js.map +0 -1
  430. package/dist/commands/os-primer-reminder.d.ts +0 -14
  431. package/dist/commands/os-primer-reminder.js.map +0 -1
  432. package/dist/commands/parity.d.ts +0 -20
  433. package/dist/commands/parity.js.map +0 -1
  434. package/dist/commands/pipe-wrap.d.ts +0 -97
  435. package/dist/commands/pipe-wrap.js.map +0 -1
  436. package/dist/commands/poll-registry.d.ts +0 -56
  437. package/dist/commands/poll-registry.js.map +0 -1
  438. package/dist/commands/procedure-reminder.d.ts +0 -8
  439. package/dist/commands/procedure-reminder.js.map +0 -1
  440. package/dist/commands/procedure.d.ts +0 -15
  441. package/dist/commands/procedure.js.map +0 -1
  442. package/dist/commands/project.d.ts +0 -16
  443. package/dist/commands/project.js.map +0 -1
  444. package/dist/commands/reminder-registry.d.ts +0 -47
  445. package/dist/commands/reminder-registry.js.map +0 -1
  446. package/dist/commands/reminder-types.d.ts +0 -208
  447. package/dist/commands/reminder-types.js.map +0 -1
  448. package/dist/commands/search-guard.d.ts +0 -18
  449. package/dist/commands/search-guard.js.map +0 -1
  450. package/dist/commands/session.d.ts +0 -8
  451. package/dist/commands/session.js.map +0 -1
  452. package/dist/commands/setup-reminder.d.ts +0 -9
  453. package/dist/commands/setup-reminder.js.map +0 -1
  454. package/dist/commands/shell-dialect-guard.d.ts +0 -25
  455. package/dist/commands/shell-dialect-guard.js.map +0 -1
  456. package/dist/commands/skill-gain-reminder.d.ts +0 -17
  457. package/dist/commands/skill-gain-reminder.js.map +0 -1
  458. package/dist/commands/skill-mirror-reminder.d.ts +0 -10
  459. package/dist/commands/skill-mirror-reminder.js.map +0 -1
  460. package/dist/commands/skill.d.ts +0 -1
  461. package/dist/commands/skill.js.map +0 -1
  462. package/dist/commands/skillgain.d.ts +0 -12
  463. package/dist/commands/skillgain.js.map +0 -1
  464. package/dist/commands/sms.d.ts +0 -11
  465. package/dist/commands/sms.js.map +0 -1
  466. package/dist/commands/state-trigger.d.ts +0 -103
  467. package/dist/commands/state-trigger.js.map +0 -1
  468. package/dist/commands/status.d.ts +0 -69
  469. package/dist/commands/status.js.map +0 -1
  470. package/dist/commands/version-reminder.d.ts +0 -27
  471. package/dist/commands/version-reminder.js.map +0 -1
  472. package/dist/commands/watcher-registry.d.ts +0 -121
  473. package/dist/commands/watcher-registry.js.map +0 -1
  474. package/dist/crush/adaptive-sizer.d.ts +0 -40
  475. package/dist/crush/adaptive-sizer.js.map +0 -1
  476. package/dist/crush/code-compressor.d.ts +0 -61
  477. package/dist/crush/code-compressor.js.map +0 -1
  478. package/dist/crush/crush-keywords.d.ts +0 -40
  479. package/dist/crush/crush-keywords.js.map +0 -1
  480. package/dist/crush/crush-types.d.ts +0 -38
  481. package/dist/crush/crush-types.js.map +0 -1
  482. package/dist/crush/index.d.ts +0 -17
  483. package/dist/crush/index.js.map +0 -1
  484. package/dist/crush/json-crusher.d.ts +0 -38
  485. package/dist/crush/json-crusher.js.map +0 -1
  486. package/dist/crush/json-detectors.d.ts +0 -48
  487. package/dist/crush/json-detectors.js.map +0 -1
  488. package/dist/crush/log-compressor.d.ts +0 -60
  489. package/dist/crush/log-compressor.js.map +0 -1
  490. package/dist/crush/search-compressor.d.ts +0 -60
  491. package/dist/crush/search-compressor.js.map +0 -1
  492. package/dist/delivery-config.d.ts +0 -35
  493. package/dist/delivery-config.js.map +0 -1
  494. package/dist/delivery-lifecycle.d.ts +0 -3
  495. package/dist/delivery-lifecycle.js.map +0 -1
  496. package/dist/doc-mirror-client.d.ts +0 -56
  497. package/dist/doc-mirror-client.js.map +0 -1
  498. package/dist/docptr-refs.d.ts +0 -37
  499. package/dist/docptr-refs.js.map +0 -1
  500. package/dist/email-pull.d.ts +0 -106
  501. package/dist/email-pull.js.map +0 -1
  502. package/dist/email-send.d.ts +0 -75
  503. package/dist/email-send.js.map +0 -1
  504. package/dist/equipped-loadouts-cache.d.ts +0 -20
  505. package/dist/equipped-loadouts-cache.js.map +0 -1
  506. package/dist/fix-trigger.d.ts +0 -63
  507. package/dist/fix-trigger.js.map +0 -1
  508. package/dist/guard.d.ts +0 -129
  509. package/dist/guard.js.map +0 -1
  510. package/dist/harness.d.ts +0 -6
  511. package/dist/harness.js.map +0 -1
  512. package/dist/hook-runtime.d.ts +0 -22
  513. package/dist/hook-runtime.js.map +0 -1
  514. package/dist/hook.d.ts +0 -8
  515. package/dist/hook.js.map +0 -1
  516. package/dist/inbox-attachments.d.ts +0 -37
  517. package/dist/inbox-attachments.js.map +0 -1
  518. package/dist/index.d.ts +0 -9
  519. package/dist/index.js.map +0 -1
  520. package/dist/inline-atom-background.d.ts +0 -9
  521. package/dist/inline-atom-background.js.map +0 -1
  522. package/dist/inline-atom-episode.d.ts +0 -85
  523. package/dist/inline-atom-episode.js.map +0 -1
  524. package/dist/inline-atom-hook.d.ts +0 -22
  525. package/dist/inline-atom-hook.js.map +0 -1
  526. package/dist/inline-atom-worker.d.ts +0 -2
  527. package/dist/inline-atom-worker.js.map +0 -1
  528. package/dist/inline-atom.d.ts +0 -52
  529. package/dist/inline-atom.js.map +0 -1
  530. package/dist/mechanic-friction.d.ts +0 -82
  531. package/dist/mechanic-friction.js.map +0 -1
  532. package/dist/mechanic-role.d.ts +0 -20
  533. package/dist/mechanic-role.js.map +0 -1
  534. package/dist/native-skill-adoption.d.ts +0 -45
  535. package/dist/native-skill-adoption.js.map +0 -1
  536. package/dist/native-skill-mirror.d.ts +0 -50
  537. package/dist/native-skill-mirror.js.map +0 -1
  538. package/dist/native-skill-pending.d.ts +0 -44
  539. package/dist/native-skill-pending.js.map +0 -1
  540. package/dist/opencode-plugin-crush.d.ts +0 -137
  541. package/dist/opencode-plugin-crush.js.map +0 -1
  542. package/dist/opencode-plugin-helpers.d.ts +0 -200
  543. package/dist/opencode-plugin-helpers.js.map +0 -1
  544. package/dist/opencode-plugin-png.d.ts +0 -151
  545. package/dist/opencode-plugin-png.js.map +0 -1
  546. package/dist/opencode-plugin.d.ts +0 -93
  547. package/dist/opencode-plugin.js.map +0 -1
  548. package/dist/proc.d.ts +0 -35
  549. package/dist/proc.js.map +0 -1
  550. package/dist/procedure-run.d.ts +0 -51
  551. package/dist/procedure-run.js.map +0 -1
  552. package/dist/procedure-runtime.d.ts +0 -28
  553. package/dist/procedure-runtime.js.map +0 -1
  554. package/dist/procedure-shadow.d.ts +0 -31
  555. package/dist/procedure-shadow.js.map +0 -1
  556. package/dist/procedure-watch.d.ts +0 -155
  557. package/dist/procedure-watch.js.map +0 -1
  558. package/dist/procedure.d.ts +0 -164
  559. package/dist/procedure.js.map +0 -1
  560. package/dist/project-anchor.d.ts +0 -110
  561. package/dist/project-anchor.js.map +0 -1
  562. package/dist/reminder-injector.d.ts +0 -3
  563. package/dist/reminder-injector.js.map +0 -1
  564. package/dist/secret-scrubber.d.ts +0 -48
  565. package/dist/secret-scrubber.js.map +0 -1
  566. package/dist/session-id.d.ts +0 -98
  567. package/dist/session-id.js.map +0 -1
  568. package/dist/skill-activation-manifest.d.ts +0 -37
  569. package/dist/skill-activation-manifest.js.map +0 -1
  570. package/dist/skill-landing.d.ts +0 -88
  571. package/dist/skill-landing.js.map +0 -1
  572. package/dist/skill-mirror-client.d.ts +0 -59
  573. package/dist/skill-mirror-client.js.map +0 -1
  574. package/dist/skill-mirror-files.d.ts +0 -6
  575. package/dist/skill-mirror-files.js.map +0 -1
  576. package/dist/skill-staleness.d.ts +0 -57
  577. package/dist/skill-staleness.js.map +0 -1
  578. package/dist/turn-provenance.d.ts +0 -18
  579. package/dist/turn-provenance.js.map +0 -1
  580. package/dist/windows-shims.d.ts +0 -46
  581. package/dist/windows-shims.js.map +0 -1
  582. package/dist/worktree-state.d.ts +0 -14
  583. package/dist/worktree-state.js.map +0 -1
@@ -202,4 +202,3 @@ async function runIdentity(args) {
202
202
  process.exit(1);
203
203
  }
204
204
  }
205
- //# sourceMappingURL=identity.js.map
@@ -166,4 +166,3 @@ async function runInboxDrain(opts) {
166
166
  }
167
167
  return { context, drained: drain.length, truncated, cursorAdvancedTo: cursor };
168
168
  }
169
- //# sourceMappingURL=inbox-drain.js.map
@@ -74,4 +74,3 @@ exports.inboxPrimerModule = {
74
74
  announce: (env) => buildInboxPrimer(env),
75
75
  reminder: () => null,
76
76
  };
77
- //# sourceMappingURL=inbox-primer-reminder.js.map
@@ -36,4 +36,3 @@ function formatRetractResult(status) {
36
36
  return 'Not found (status: not_found — code does not match any message you sent, or the message has already expired).';
37
37
  }
38
38
  }
39
- //# sourceMappingURL=inbox-retract.js.map
@@ -448,4 +448,3 @@ function sleepUntilOrShutdown(ms, isDown) {
448
448
  tick();
449
449
  });
450
450
  }
451
- //# sourceMappingURL=inbox-watch-supervisor.js.map
@@ -575,4 +575,3 @@ function sleep(ms, signal) {
575
575
  signal.addEventListener('abort', onAbort, { once: true });
576
576
  });
577
577
  }
578
- //# sourceMappingURL=inbox-watch.js.map
@@ -100,4 +100,3 @@ function runIngressGate(trigger, projectId, stateValues = {}) {
100
100
  firedNodeIds,
101
101
  };
102
102
  }
103
- //# sourceMappingURL=ingress-trigger.js.map
@@ -1945,4 +1945,3 @@ function prompt(question) {
1945
1945
  });
1946
1946
  });
1947
1947
  }
1948
- //# sourceMappingURL=init.js.map
@@ -81,4 +81,3 @@ exports.codexChipSpawnPointerModule = {
81
81
  announce: (env) => env.platform === 'codex' ? exports.CODEX_CHIP_SPAWN_POINTER : null,
82
82
  reminder: () => null,
83
83
  };
84
- //# sourceMappingURL=load-primer-reminder.js.map
@@ -453,4 +453,3 @@ function normalizeLoadName(name) {
453
453
  return name;
454
454
  return name.replace(/^\/+/, '');
455
455
  }
456
- //# sourceMappingURL=load.js.map
@@ -75,4 +75,3 @@ exports.loadoutRegistrarModule = {
75
75
  announce: (env) => buildLoadoutAnnounce(env.equippedLoadouts),
76
76
  reminder: (d) => buildLoadoutReminder(d.detail?.matched || []),
77
77
  };
78
- //# sourceMappingURL=loadout-reminder.js.map
@@ -317,4 +317,3 @@ async function runLoadout(args) {
317
317
  return;
318
318
  }
319
319
  }
320
- //# sourceMappingURL=loadout.js.map
@@ -82,4 +82,3 @@ async function mechanicReplyCmd(args, cfg) {
82
82
  const res = await (0, mechanic_friction_1.postMechanicReply)(cfg.apiUrl, cfg.apiKey, args, process.cwd());
83
83
  console.log(`Sent mechanic reply${res.id ? ` (${res.id.slice(0, 8)})` : ''}.`);
84
84
  }
85
- //# sourceMappingURL=mechanic-live.js.map
@@ -140,4 +140,3 @@ function renderRepairManifestLines(manifest) {
140
140
  }
141
141
  return lines;
142
142
  }
143
- //# sourceMappingURL=mechanic-manifest.js.map
@@ -210,4 +210,3 @@ async function fixSpawn(args, opts = {}) {
210
210
  async function mechanicSpawn(args) {
211
211
  return fixSpawn(args, { deprecatedAlias: 'greprag mechanic spawn' });
212
212
  }
213
- //# sourceMappingURL=mechanic-spawn.js.map
@@ -613,4 +613,3 @@ async function runMechanic(args) {
613
613
  process.exit(1);
614
614
  }
615
615
  }
616
- //# sourceMappingURL=mechanic.js.map
@@ -176,4 +176,3 @@ function coachingHint(hits, opts) {
176
176
  lines.push('Or narrow this search to summaries: --shape daily');
177
177
  return lines.join('\n');
178
178
  }
179
- //# sourceMappingURL=memory-format.js.map
@@ -31,4 +31,3 @@ exports.memoryPrimerModule = {
31
31
  announce: (_env) => buildMemoryAnnounce(),
32
32
  reminder: () => null,
33
33
  };
34
- //# sourceMappingURL=memory-reflex.js.map
@@ -694,4 +694,3 @@ async function runMemory(args) {
694
694
  process.exit(1);
695
695
  }
696
696
  }
697
- //# sourceMappingURL=memory.js.map
@@ -42,4 +42,3 @@ async function ocFetch(baseUrl, method, pathSegment, query, body) {
42
42
  }
43
43
  return { status: res.status, ok: res.ok || res.status === 204, data, text: text.slice(0, 500) };
44
44
  }
45
- //# sourceMappingURL=opencode-chip-client.js.map
@@ -134,4 +134,3 @@ async function respawnChip(args) {
134
134
  (0, opencode_chip_store_1.writeRecord)(record);
135
135
  console.log(JSON.stringify({ ok: true, replaced: old.id, chipId: record.id, title: record.title, child: record.child, state: record.state, predecessor: pred }, null, 2));
136
136
  }
137
- //# sourceMappingURL=opencode-chip-lifecycle.js.map
@@ -103,4 +103,3 @@ function buildMission(input) {
103
103
  'Do not end without DONE or BLOCKED. Parent greprag session: `' + parentGreprag + '`.',
104
104
  ].join('\n');
105
105
  }
106
- //# sourceMappingURL=opencode-chip-mission.js.map
@@ -138,4 +138,3 @@ function isActiveOpencodeLeadForGoal(parentGoalId, ownerSessionId) {
138
138
  || ownerSessionId.toLowerCase().startsWith(k.toLowerCase().slice(0, 8)));
139
139
  });
140
140
  }
141
- //# sourceMappingURL=opencode-chip-store.js.map
@@ -486,4 +486,3 @@ var opencode_chip_store_2 = require("./opencode-chip-store");
486
486
  Object.defineProperty(exports, "activeRecords", { enumerable: true, get: function () { return opencode_chip_store_2.activeRecords; } });
487
487
  Object.defineProperty(exports, "findRecord", { enumerable: true, get: function () { return opencode_chip_store_2.findRecord; } });
488
488
  Object.defineProperty(exports, "listRecords", { enumerable: true, get: function () { return opencode_chip_store_2.listRecords; } });
489
- //# sourceMappingURL=opencode-chip.js.map
@@ -80,4 +80,3 @@ function recordOpencodeGoalEvidence(goalId, chipId, evidence, checks = []) {
80
80
  return current;
81
81
  });
82
82
  }
83
- //# sourceMappingURL=opencode-goals.js.map
@@ -52,4 +52,3 @@ function getOpenCodeAnnounces(env) {
52
52
  function getOpenCodeReminders(env) {
53
53
  return (0, reminder_registry_1.collectReminders)(env, exports.opencodeRegistry);
54
54
  }
55
- //# sourceMappingURL=opencode-interrupt.js.map
@@ -565,4 +565,3 @@ function armOpencodeRelayCommand(session, opencodeUrl) {
565
565
  return `while true; do greprag opencode relay --session ${session}${urlFlag}; ` +
566
566
  `echo "[restart]" >&2; sleep 1; done`;
567
567
  }
568
- //# sourceMappingURL=opencode-relay.js.map
@@ -490,4 +490,3 @@ async function runOpencodeWatch(args) {
490
490
  await new Promise(r => setTimeout(r, opts.intervalMs));
491
491
  }
492
492
  }
493
- //# sourceMappingURL=opencode-watch.js.map
@@ -35,4 +35,3 @@ exports.osPrimerModule = {
35
35
  announce: (env) => buildOsPrimer(env),
36
36
  reminder: () => null,
37
37
  };
38
- //# sourceMappingURL=os-primer-reminder.js.map
@@ -269,4 +269,3 @@ async function runParity(args) {
269
269
  return seedCmd(args.slice(1));
270
270
  return tableCmd(args);
271
271
  }
272
- //# sourceMappingURL=parity.js.map
@@ -321,4 +321,3 @@ function runPipeWrap(input) {
321
321
  },
322
322
  };
323
323
  }
324
- //# sourceMappingURL=pipe-wrap.js.map
@@ -258,4 +258,3 @@ function killProcess(pid) {
258
258
  return false;
259
259
  }
260
260
  }
261
- //# sourceMappingURL=poll-registry.js.map
@@ -23,4 +23,3 @@ exports.procedureAnnounceModule = {
23
23
  announce: (env) => buildProcedureAnnounce(env.procedureAnnounces),
24
24
  reminder: () => null,
25
25
  };
26
- //# sourceMappingURL=procedure-reminder.js.map
@@ -482,4 +482,3 @@ async function runProcedure(args) {
482
482
  return;
483
483
  }
484
484
  }
485
- //# sourceMappingURL=procedure.js.map
@@ -427,4 +427,3 @@ async function apiPost(url, apiKey, body) {
427
427
  return await res.json();
428
428
  return res.json();
429
429
  }
430
- //# sourceMappingURL=project.js.map
@@ -148,4 +148,3 @@ function collectAnnounces(env, registry = exports.REGISTRY) {
148
148
  }
149
149
  return out;
150
150
  }
151
- //# sourceMappingURL=reminder-registry.js.map
@@ -5,4 +5,3 @@
5
5
  * instant it resolves. `detect(env)` is the primitive (the arm-check's
6
6
  * `isLocallyArmed`, generalized); a turn counter is not. */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- //# sourceMappingURL=reminder-types.js.map
@@ -167,4 +167,3 @@ function runSearchGuard(input) {
167
167
  },
168
168
  };
169
169
  }
170
- //# sourceMappingURL=search-guard.js.map
@@ -129,4 +129,3 @@ async function runSession(args) {
129
129
  process.exit(1);
130
130
  }
131
131
  }
132
- //# sourceMappingURL=session.js.map
@@ -17,4 +17,3 @@ exports.setupWarningModule = {
17
17
  announce: (env) => env.setupWarning ?? null,
18
18
  reminder: () => null,
19
19
  };
20
- //# sourceMappingURL=setup-reminder.js.map
@@ -180,4 +180,3 @@ function runShellDialectGuard(input, opts = {}) {
180
180
  },
181
181
  };
182
182
  }
183
- //# sourceMappingURL=shell-dialect-guard.js.map
@@ -29,4 +29,3 @@ exports.skillGainAnnounceModule = {
29
29
  reannounceOnCompact: false,
30
30
  reminder: () => null,
31
31
  };
32
- //# sourceMappingURL=skill-gain-reminder.js.map
@@ -61,4 +61,3 @@ exports.skillMirrorAnnounceModule = {
61
61
  announce: (env) => buildSkillMirrorAnnounce(env.mirroredSkills),
62
62
  reminder: () => null,
63
63
  };
64
- //# sourceMappingURL=skill-mirror-reminder.js.map
@@ -66,7 +66,7 @@ USAGE
66
66
  greprag skill install <name> Install a bundled advisor skill
67
67
  greprag skill uninstall <name> Remove a previously-installed advisor
68
68
  greprag skill edit <name> [--skill-id <id>] [--scope project --project-id <id>]
69
- Edit canonical mirror via $EDITOR + hash guard
69
+ Export/edit/apply helper; opens $EDITOR unless --no-open or Codex
70
70
  greprag skill mirror sync [harness] Install native GrepRAG skill adapters
71
71
  claude-code --cutover-lifecycle Cut over commit/deploy/release only
72
72
  greprag skill mirror export <name> --to <dir>
@@ -94,6 +94,9 @@ NOTES
94
94
  • Mirrored skill edits use export/apply semantics. \`skill edit\` only wraps
95
95
  that flow: export current bytes, open an editor, show a diff summary, then
96
96
  apply with the exported content hash.
97
+ • Codex agents must use a non-interactive path: \`skill mirror export\`, patch
98
+ files, then \`skill mirror apply\`. In Codex, \`skill edit\` skips the editor
99
+ and prints the guarded apply command; \`--no-open\` does the same explicitly.
97
100
  • Source stamps are local Git facts. They update the local canonical skill
98
101
  file, then mirror to GrepRAG when GREPRAG_API_KEY is configured.`;
99
102
  function formatAdoptionLine(prefix, entry) {
@@ -394,6 +397,9 @@ function editorCommand() {
394
397
  || process.env.EDITOR
395
398
  || (process.platform === 'win32' ? 'notepad' : 'vi');
396
399
  }
400
+ function codexHarnessDetected() {
401
+ return Boolean(process.env.CODEX_THREAD_ID || process.env.CODEX_CI || process.env.CODEX_SHELL);
402
+ }
397
403
  function runEditor(target) {
398
404
  const editor = editorCommand();
399
405
  const result = (0, proc_1.safeSpawnSync)(editor, [target], { stdio: 'inherit', shell: true });
@@ -453,8 +459,11 @@ async function runSkillEdit(args) {
453
459
  });
454
460
  console.log(`Editing ${skill} revision ${loaded.revision} (${loaded.contentHash.slice(0, 12)})`);
455
461
  console.log(`Work dir: ${workDir}`);
456
- if (noOpen) {
457
- console.log('Editor skipped.');
462
+ const skipEditor = noOpen || codexHarnessDetected();
463
+ if (skipEditor) {
464
+ console.log(noOpen
465
+ ? 'Editor skipped.'
466
+ : 'Codex harness detected; editor skipped to avoid launching an interactive editor.');
458
467
  const forward = forwardedMirrorArgs(args);
459
468
  console.log(`Apply after editing: greprag skill mirror apply ${shellArg(workDir)} --skill ${skill}${forward ? ` ${forward}` : ''} --expected-hash ${loaded.contentHash}`);
460
469
  return;
@@ -799,4 +808,3 @@ async function runSkill(args) {
799
808
  process.exit(1);
800
809
  }
801
810
  }
802
- //# sourceMappingURL=skill.js.map
@@ -106,4 +106,3 @@ async function runSkillGain(args) {
106
106
  }
107
107
  console.log(HELP);
108
108
  }
109
- //# sourceMappingURL=skillgain.js.map
@@ -213,4 +213,3 @@ async function runSms(args) {
213
213
  }
214
214
  console.log(SMS_HELP);
215
215
  }
216
- //# sourceMappingURL=sms.js.map
@@ -543,4 +543,3 @@ function computeStateValues(transcriptPath, opts = {}) {
543
543
  }
544
544
  return values;
545
545
  }
546
- //# sourceMappingURL=state-trigger.js.map
@@ -264,11 +264,11 @@ function buildWindowsShims(installed) {
264
264
  shims = (0, windows_shims_1.auditWindowsShims)(installed);
265
265
  }
266
266
  catch { /* best-effort */ }
267
- const mismatch = shims.some(s => s.stale);
267
+ const mismatch = shims.some(windows_shims_1.shimNeedsRepair);
268
268
  return {
269
269
  shims,
270
270
  mismatch,
271
- repair: mismatch ? 'greprag doctor (rewrites stale shims to forward to the current install)' : null,
271
+ repair: mismatch ? 'greprag doctor (rewrites stale/incomplete PowerShell/CMD shims to forward to the current install)' : null,
272
272
  };
273
273
  }
274
274
  function renderPlatform(name, p) {
@@ -324,14 +324,15 @@ function renderHuman(s, docMirror) {
324
324
  function renderShims(w) {
325
325
  if (!w || w.shims.length === 0)
326
326
  return [];
327
- const lines = ['', 'Windows shims (what each .cmd on PATH actually executes):'];
327
+ const lines = ['', 'Windows shims (what each PowerShell/CMD shim on PATH actually executes):'];
328
328
  for (const s of w.shims) {
329
329
  const ver = s.version ? `v${s.version}` : '(version unknown)';
330
- const flag = s.stale ? ' ⚠ STALE' : s.unresolvable ? ' ? unresolvable' : '';
330
+ const missing = s.incomplete ? ` missing ${s.missingFiles.join(', ')}` : '';
331
+ const flag = s.stale ? ` ⚠ STALE${missing}` : s.incomplete ? ` ⚠ INCOMPLETE${missing}` : s.unresolvable ? ' ? unresolvable' : '';
331
332
  lines.push(` ${s.name}${s.active ? '' : ' (shadowed)'}: ${s.shimPath} → ${ver}${flag}`);
332
333
  }
333
334
  if (w.mismatch) {
334
- lines.push(` ⚠ A shim executes a DIFFERENT version than this CLI — hooks may silently run old code.`);
335
+ lines.push(` ⚠ A shim executes a different or incomplete GrepRAG install — hooks and shell commands may silently run old code.`);
335
336
  lines.push(` Repair: ${w.repair}`);
336
337
  }
337
338
  return lines;
@@ -353,4 +354,3 @@ async function runStatus(args) {
353
354
  ? JSON.stringify({ ...status, doc_mirror: docMirror }, null, 2) + '\n'
354
355
  : renderHuman(status, docMirror) + '\n');
355
356
  }
356
- //# sourceMappingURL=status.js.map
@@ -20,12 +20,22 @@
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.versionUpgradeModule = void 0;
22
22
  exports.buildVersionAnnounce = buildVersionAnnounce;
23
+ exports.buildActiveCommandDriftAnnounce = buildActiveCommandDriftAnnounce;
23
24
  exports.buildLoadoutUpdateAnnounce = buildLoadoutUpdateAnnounce;
24
25
  /** The upgrade announce — null unless the hook detected a newer published version. */
25
26
  function buildVersionAnnounce(current, latest) {
26
27
  return [
27
28
  `[greprag — a new release is out: v${latest} (you are on v${current}).]`,
28
- `Upgrade: \`npm i -g greprag@latest\`. New behavior + fixes land on your next session.`,
29
+ `Upgrade: \`npm i -g greprag@latest\`, then \`greprag status\`. New behavior + fixes land once the active shell shim resolves to the new install.`,
30
+ ].join('\n');
31
+ }
32
+ function buildActiveCommandDriftAnnounce(drift) {
33
+ const active = drift.activeVersion ? `v${drift.activeVersion}` : 'an unknown version';
34
+ const missing = drift.missingFiles.length ? ` and is missing ${drift.missingFiles.join(', ')}` : '';
35
+ return [
36
+ `[greprag — active command drift detected.]`,
37
+ `The startup hook is running greprag v${drift.current}, but \`greprag\` on PATH resolves to ${active} at ${drift.shimPath}${missing}.`,
38
+ `Run \`greprag doctor --inspect\`; if it reports stale shims, run \`greprag doctor --yes\`. If no current shim exists, run \`npm i -g greprag@latest\`.`,
29
39
  ].join('\n');
30
40
  }
31
41
  /** The CONTEXTUALIZED upgrade announce: a pending loadout is waiting but needs a
@@ -47,6 +57,8 @@ exports.versionUpgradeModule = {
47
57
  const lo = env.loadoutUpdateRequired;
48
58
  if (lo && lo.needed && lo.current)
49
59
  return buildLoadoutUpdateAnnounce(lo.from, lo.needed, lo.current);
60
+ if (env.activeCommandDrift)
61
+ return buildActiveCommandDriftAnnounce(env.activeCommandDrift);
50
62
  const u = env.updateAvailable;
51
63
  if (!u || !u.current || !u.latest)
52
64
  return null;
@@ -54,4 +66,3 @@ exports.versionUpgradeModule = {
54
66
  },
55
67
  reminder: () => null,
56
68
  };
57
- //# sourceMappingURL=version-reminder.js.map
@@ -465,4 +465,3 @@ function killProcessTree(pid) {
465
465
  return false;
466
466
  }
467
467
  }
468
- //# sourceMappingURL=watcher-registry.js.map
@@ -153,4 +153,3 @@ function computeOptimalK(items, bias, minK, maxK) {
153
153
  k = Math.min(k, effectiveMax);
154
154
  return Math.max(minK, Math.min(k, effectiveMax));
155
155
  }
156
- //# sourceMappingURL=adaptive-sizer.js.map
@@ -356,4 +356,3 @@ function crushCode(content, config = {}) {
356
356
  },
357
357
  };
358
358
  }
359
- //# sourceMappingURL=code-compressor.js.map
@@ -107,4 +107,3 @@ function classifyImportance(line) {
107
107
  return 'importance';
108
108
  return null;
109
109
  }
110
- //# sourceMappingURL=crush-keywords.js.map
@@ -33,4 +33,3 @@ function makePassthrough(content, sourceType, reason, units = 0) {
33
33
  },
34
34
  };
35
35
  }
36
- //# sourceMappingURL=crush-types.js.map
@@ -50,4 +50,3 @@ Object.defineProperty(exports, "JSON_ERROR_KEYWORDS", { enumerable: true, get: f
50
50
  Object.defineProperty(exports, "containsKeyword", { enumerable: true, get: function () { return crush_keywords_1.containsKeyword; } });
51
51
  Object.defineProperty(exports, "containsAnyKeyword", { enumerable: true, get: function () { return crush_keywords_1.containsAnyKeyword; } });
52
52
  Object.defineProperty(exports, "classifyImportance", { enumerable: true, get: function () { return crush_keywords_1.classifyImportance; } });
53
- //# sourceMappingURL=index.js.map
@@ -247,4 +247,3 @@ function crushJson(content, config = {}) {
247
247
  },
248
248
  };
249
249
  }
250
- //# sourceMappingURL=json-crusher.js.map
@@ -208,4 +208,3 @@ function detectErrorItems(items) {
208
208
  }
209
209
  return out;
210
210
  }
211
- //# sourceMappingURL=json-detectors.js.map
@@ -391,4 +391,3 @@ function crushLog(content, config = {}) {
391
391
  },
392
392
  };
393
393
  }
394
- //# sourceMappingURL=log-compressor.js.map
@@ -207,4 +207,3 @@ function crushSearch(content, query = '', config = {}) {
207
207
  },
208
208
  };
209
209
  }
210
- //# sourceMappingURL=search-compressor.js.map
@@ -185,4 +185,3 @@ function resolveDeliveryProfile(cwd) {
185
185
  errors: found ? [] : ['no delivery profile or legacy deploy/release source found'],
186
186
  };
187
187
  }
188
- //# sourceMappingURL=delivery-config.js.map
@@ -10,4 +10,3 @@ const DELIVERY_LIFECYCLE_SET = new Set(exports.DELIVERY_LIFECYCLE_VERBS);
10
10
  function isDeliveryLifecycleVerb(verb) {
11
11
  return DELIVERY_LIFECYCLE_SET.has((verb || '').trim().toLowerCase());
12
12
  }
13
- //# sourceMappingURL=delivery-lifecycle.js.map
@@ -282,4 +282,3 @@ function formatDocMirrorFreshness(report) {
282
282
  ].filter(Boolean).join(', ');
283
283
  return `Doc mirror: stale — ${parts || 'local and remote differ'}. Run: greprag doc update`;
284
284
  }
285
- //# sourceMappingURL=doc-mirror-client.js.map
@@ -145,4 +145,3 @@ function extractDocRefs(snippet, docPath, cwd, present) {
145
145
  }
146
146
  return Array.from(out).slice(0, exports.DOC_MANIFEST_CAP);
147
147
  }
148
- //# sourceMappingURL=docptr-refs.js.map
@@ -220,4 +220,3 @@ function buildAutoSaveSummary(saved, dir) {
220
220
  const more = fresh.length > 6 ? ` (+${fresh.length - 6} more)` : '';
221
221
  return `💾 Auto-saved ${fresh.length} email attachment${fresh.length === 1 ? '' : 's'} to ${dir}: ${names}${more}`;
222
222
  }
223
- //# sourceMappingURL=email-pull.js.map
@@ -133,4 +133,3 @@ async function postSend(apiUrl, apiKey, payload) {
133
133
  }
134
134
  return data;
135
135
  }
136
- //# sourceMappingURL=email-send.js.map
@@ -76,4 +76,3 @@ function writeEquippedLoadouts(loadouts) {
76
76
  /* best-effort — a write miss just leaves the prior cache in place */
77
77
  }
78
78
  }
79
- //# sourceMappingURL=equipped-loadouts-cache.js.map
@@ -291,4 +291,3 @@ function validateCondition(condition, depth = 0) {
291
291
  }
292
292
  return [];
293
293
  }
294
- //# sourceMappingURL=fix-trigger.js.map
package/dist/guard.js CHANGED
@@ -507,4 +507,3 @@ function maybeSpawnGuardRefresh(cwd, projectId, harness) {
507
507
  }
508
508
  catch { /* best-effort */ }
509
509
  }
510
- //# sourceMappingURL=guard.js.map
package/dist/harness.js CHANGED
@@ -44,4 +44,3 @@ function targetMatchesHarness(target, current) {
44
44
  return current === 'claude-code';
45
45
  return normalized === 'all' || normalized === current;
46
46
  }
47
- //# sourceMappingURL=harness.js.map
@@ -105,4 +105,3 @@ function writeAdditionalContext(hookEventName, additionalContext) {
105
105
  },
106
106
  }) + '\n');
107
107
  }
108
- //# sourceMappingURL=hook-runtime.js.map
package/dist/hook.js CHANGED
@@ -138,6 +138,7 @@ const native_skill_pending_1 = require("./native-skill-pending");
138
138
  const doc_mirror_client_1 = require("./doc-mirror-client");
139
139
  const equipped_loadouts_cache_1 = require("./equipped-loadouts-cache");
140
140
  const codex_chip_hooks_1 = require("./codex-chip-hooks");
141
+ const windows_shims_1 = require("./windows-shims");
141
142
  const MAX_FIELD_CHARS = 500_000; // safety cap per text field
142
143
  function extractText(content) {
143
144
  if (typeof content === 'string')
@@ -1399,6 +1400,25 @@ async function checkForUpdate() {
1399
1400
  return { current, latest };
1400
1401
  return null;
1401
1402
  }
1403
+ function activeCommandDrift() {
1404
+ const current = installedVersion();
1405
+ if (!current || process.platform !== 'win32')
1406
+ return null;
1407
+ try {
1408
+ const active = (0, windows_shims_1.auditWindowsShims)(current).find(s => s.name === 'greprag' && s.active);
1409
+ if (!active || !(0, windows_shims_1.shimNeedsRepair)(active))
1410
+ return null;
1411
+ return {
1412
+ current,
1413
+ activeVersion: active.version,
1414
+ shimPath: active.shimPath,
1415
+ missingFiles: active.missingFiles,
1416
+ };
1417
+ }
1418
+ catch {
1419
+ return null;
1420
+ }
1421
+ }
1402
1422
  /** SessionStart — fetch recent episodic activity for this project and print
1403
1423
  * to stdout. Claude Code injects the printed text as session context. Codex
1404
1424
  * uses the same content via `hookSpecificOutput.additionalContext`. Fires
@@ -1662,6 +1682,7 @@ async function recap(input, mode = 'plain', opts = {}) {
1662
1682
  procedureAnnounces,
1663
1683
  equippedLoadouts,
1664
1684
  updateAvailable,
1685
+ activeCommandDrift: activeCommandDrift(),
1665
1686
  loadoutUpdateRequired,
1666
1687
  };
1667
1688
  let announceReg = (0, reminder_injector_1.mechanicKilled)() ? reminder_registry_1.REGISTRY.filter(m => m.id !== 'mechanic-friction') : reminder_registry_1.REGISTRY;
@@ -2351,4 +2372,3 @@ main().catch(err => {
2351
2372
  // may not: proceeding after it fails would leave the native child unbound.
2352
2373
  process.exit(process.argv[2] === 'codex-chip-hook' ? 2 : 0);
2353
2374
  });
2354
- //# sourceMappingURL=hook.js.map
@@ -61,4 +61,3 @@ function formatInboxAttachments(attachments, recordId) {
61
61
  }
62
62
  return lines;
63
63
  }
64
- //# sourceMappingURL=inbox-attachments.js.map
package/dist/index.js CHANGED
@@ -1934,4 +1934,3 @@ main().catch((err) => {
1934
1934
  console.error(`Error: ${err.message}`);
1935
1935
  process.exit(1);
1936
1936
  });
1937
- //# sourceMappingURL=index.js.map
@@ -65,4 +65,3 @@ function spawnInlineAtomObserver(payload) {
65
65
  // Inline-atom capture is best-effort and must not extend Stop.
66
66
  }
67
67
  }
68
- //# sourceMappingURL=inline-atom-background.js.map
@@ -393,4 +393,3 @@ function applyInlineAtomDistillation(projectId, sessionId, episodeIdToApply, dis
393
393
  writeEpisodeStore(projectId, sessionId, store);
394
394
  return 'learned';
395
395
  }
396
- //# sourceMappingURL=inline-atom-episode.js.map
@@ -272,4 +272,3 @@ function buildPendingInlineAtomContext(input, short, opts = {}) {
272
272
  return null;
273
273
  }
274
274
  }
275
- //# sourceMappingURL=inline-atom-hook.js.map