oh-my-opencode 5.0.0-beta.60 → 5.0.0-beta.62

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 (83) hide show
  1. package/dist/cli/index.js +418 -330
  2. package/dist/cli-node/index.js +418 -330
  3. package/dist/index.js +14 -14
  4. package/package.json +14 -14
  5. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  6. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +6885 -249
  7. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  8. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  9. package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +7 -1
  10. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  11. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  12. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  13. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  14. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  15. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  16. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  17. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  18. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  19. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  20. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  21. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  22. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  23. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  24. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  25. package/packages/omo-codex/plugin/components/ultrawork/dist/cli.js +20 -11
  26. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  27. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  28. package/packages/omo-codex/plugin/components/ultrawork/src/directive-content.ts +1 -1
  29. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  30. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  31. package/packages/omo-codex/plugin/components/ulw-loop/CHANGELOG.md +2 -0
  32. package/packages/omo-codex/plugin/components/ulw-loop/directive.md +20 -11
  33. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +58 -5
  34. package/packages/omo-codex/plugin/components/ulw-loop/dist/sdk/factory.js +17 -1
  35. package/packages/omo-codex/plugin/components/ulw-loop/dist/spawn-guard.d.ts +1 -0
  36. package/packages/omo-codex/plugin/components/ulw-loop/dist/spawn-guard.js +21 -4
  37. package/packages/omo-codex/plugin/components/ulw-loop/dist/spawn-role-guard.d.ts +2 -0
  38. package/packages/omo-codex/plugin/components/ulw-loop/dist/spawn-role-guard.js +22 -0
  39. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +7 -7
  40. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  41. package/packages/omo-codex/plugin/components/ulw-loop/src/sdk/factory.ts +25 -1
  42. package/packages/omo-codex/plugin/components/ulw-loop/src/spawn-guard.ts +21 -3
  43. package/packages/omo-codex/plugin/components/ulw-loop/src/spawn-role-guard.ts +22 -0
  44. package/packages/omo-codex/plugin/components/ulw-loop/test/sdk-driver-states.test.ts +145 -0
  45. package/packages/omo-codex/plugin/components/ulw-loop/test/spawn-guard.test.ts +7 -1
  46. package/packages/omo-codex/plugin/components/ulw-loop/test/spawn-role-matrix.test.ts +113 -0
  47. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  48. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  49. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  50. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  51. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  52. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  53. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  54. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  55. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  56. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  57. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  58. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  59. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  60. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  61. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  62. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  63. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  64. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  65. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  66. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  67. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  68. package/packages/omo-codex/plugin/package-lock.json +12 -12
  69. package/packages/omo-codex/plugin/package.json +1 -1
  70. package/packages/omo-codex/plugin/scripts/sync-skills.mjs +3 -3
  71. package/packages/omo-codex/plugin/skills/init-deep/SKILL.md +3 -3
  72. package/packages/omo-codex/plugin/skills/refactor/SKILL.md +3 -3
  73. package/packages/omo-codex/plugin/skills/remove-ai-slops/SKILL.md +3 -3
  74. package/packages/omo-codex/plugin/skills/review-work/SKILL.md +3 -3
  75. package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +20 -11
  76. package/packages/omo-codex/plugin/skills/ulw-execute/SKILL.md +3 -3
  77. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +3 -3
  78. package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +3 -3
  79. package/packages/omo-codex/plugin/skills/visual-qa/SKILL.md +3 -3
  80. package/packages/omo-codex/plugin/test/bootstrap-default-role.test.mjs +66 -0
  81. package/packages/omo-codex/plugin/test/component-hook-contract-cases.mjs +13 -1
  82. package/packages/omo-codex/scripts/install-dist/install-local.mjs +7058 -417
  83. package/packages/prompts-core/prompts/ultrawork/codex.md +20 -11
@@ -340,17 +340,26 @@ make the child continue old parent context instead of the delegated task.
340
340
  If your tool list has a flat `spawn_agent` with a required `task_name` instead of `multi_agent_v1.*` (`multi_agent_v2`), rewrite: `fork_context: false` becomes `fork_turns: "none"`, `send_input` becomes `send_message`, finished agents end on their own (no `close_agent`; `followup_task` re-tasks, `interrupt_agent` stops), and `wait_agent` takes only `timeout_ms`, returning on any child mailbox activity.
341
341
 
342
342
  # TOML-backed subagent routing compatibility
343
- Installed role TOMLs (`~/.codex/agents/`) bind ONLY via `agent_type`.
344
- `multi_agent_v1.spawn_agent` exposes `agent_type`; the deployed
345
- `multi_agent_v2` `collaboration.spawn_agent` schema does NOT (verified
346
- 2026-07-11: only `fork_turns`, `message`, `task_name`). On a v2 surface,
347
- omit `agent_type`, describe the role and difficulty tier inside
348
- `message`, and expect the session model for children. Difficulty tiers
349
- when `agent_type` IS exposed: low -> `lazycodex-worker-low`
350
- (gpt-5.6-luna/high), medium -> `lazycodex-worker-medium`
351
- (gpt-5.6-luna/max), high -> `lazycodex-worker-high` (gpt-5.6-sol/max);
352
- explorer/librarian carry their own TOMLs (gpt-5.6-luna/low). Difficulty
353
- (model power) is orthogonal to LIGHT/HEAVY rigor (process size).
343
+ Inspect the ACTUAL spawn tool schema, not a version or namespace assumption.
344
+ When `agent_type` is exposed (V1 or V2), EVERY spawn MUST pass an exact
345
+ LazyCodex role: `explorer`, `librarian`, `plan`, `metis`, `momus`,
346
+ `lazycodex-worker-low`, `lazycodex-worker-medium`, `lazycodex-worker-high`,
347
+ `lazycodex-code-reviewer`, `lazycodex-qa-executor`, `lazycodex-gate-reviewer`,
348
+ or `lazycodex-clone-fidelity-reviewer`. Map implementation difficulty to
349
+ worker low/medium/high; their installed TOMLs supply model and instructions.
350
+ Never select generic `worker`/`default` or describe a role instead of selecting it.
351
+ Use `fork_turns: "none"` on V2 or `fork_context: false` on V1 unless full
352
+ history is deliberately required; even a deliberate fork MUST name its role.
353
+
354
+ Legacy-schema exception: ONLY when `agent_type` is absent, omit that unsupported
355
+ field and carry the role, difficulty, and complete instructions in `message`;
356
+ explicitly disable history. This cannot select a specialized TOML. The managed
357
+ `default` supplies the medium worker for unnamed non-forks, unless opted out or
358
+ blocked by a preserved user default. The spawn guard cannot see the schema and
359
+ rejects unnamed requests: report incompatible routing, do not retry generically.
360
+ An unnamed full-history fork skips role application inside Codex; no LazyCodex
361
+ config can fix that upstream gap. Never claim this path has been repaired.
362
+ Difficulty (model power) is orthogonal to LIGHT/HEAVY rigor (process size).
354
363
 
355
364
  Treat child status as a progress signal, not a timeout counter. For
356
365
  work likely to exceed one wait cycle, tell the child to send