create-byan-agent 2.48.0 → 2.50.0

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 (23) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/install/package.json +1 -1
  3. package/install/templates/.claude/CLAUDE.md +21 -13
  4. package/install/templates/.claude/hooks/agent-gate-check.js +14 -2
  5. package/install/templates/.claude/hooks/codex-autodelegate.js +19 -2
  6. package/install/templates/.claude/hooks/codex-delegate-guard.js +145 -0
  7. package/install/templates/.claude/hooks/inject-voice-anchor.js +25 -0
  8. package/install/templates/.claude/hooks/lib/agent-gate.js +95 -5
  9. package/install/templates/.claude/hooks/lib/autodelegate-decision.js +11 -7
  10. package/install/templates/.claude/hooks/lib/codex-delegate-gate.js +0 -0
  11. package/install/templates/.claude/hooks/lib/fact-check-core.js +34 -2
  12. package/install/templates/.claude/hooks/lib/voice-conformance.js +97 -0
  13. package/install/templates/.claude/hooks/strict-scope-guard.js +71 -14
  14. package/install/templates/.claude/hooks/voice-conformance-check.js +53 -0
  15. package/install/templates/.claude/rules/agent-entry-gate.md +40 -20
  16. package/install/templates/.claude/settings.json +8 -0
  17. package/install/templates/.claude/skills/byan-byan/SKILL.md +52 -26
  18. package/install/templates/_byan/mcp/byan-mcp-server/bin/byan-armament-report.js +82 -0
  19. package/install/templates/_byan/mcp/byan-mcp-server/lib/armament-report.js +80 -0
  20. package/install/templates/_byan/mcp/byan-mcp-server/skill-bundles-manifest.json +1 -1
  21. package/install/templates/dist/skill-bundles/byan-byan.zip +0 -0
  22. package/install/templates/docs/codex-auto-delegation.md +18 -3
  23. package/package.json +1 -1
@@ -12,9 +12,24 @@ work crosses the line.
12
12
  Every turn, a `UserPromptSubmit` hook estimates how much of the Claude 5h window
13
13
  you have burned and looks at the task you just asked for. If the task is
14
14
  delegable (code / mechanical) — or if you are over the pressure threshold — BYAN
15
- injects a one-line advisory nudge proposing you hand it to Codex via
16
- `codex:codex-rescue --model gpt-5.4`. You still decide, and you still verify
17
- Codex's output before commit.
15
+ injects a one-line note directing you to hand it to Codex via
16
+ `codex:codex-rescue --model gpt-5.4`. You still verify Codex's output before commit.
17
+
18
+ **Both engines must be present.** The lane only arms — and the note only fires —
19
+ when TWO conditions hold together: the yanstaller option wrote
20
+ `_byan/_config/autodelegate.json` with `enabled:true`, AND Codex is actually
21
+ linked on this machine (`~/.codex/auth.json` from `codex login`, or
22
+ `CODEX_API_KEY`). Option on but no linked Codex = one engine only = no delegation.
23
+ This is the runtime `codexLinked()` gate in `codex-autodelegate.js`, the mirror of
24
+ the installer's arm-time `codexAuthState` check.
25
+
26
+ **Armed = directive, not advice.** Because the note only appears when the lane is
27
+ armed (both engines present), it reads as a directive: delegate the delegable
28
+ part, fall back to Claude only if Codex is unavailable. When the lane is not
29
+ armed, no note is injected and everything runs on Claude — there is nothing to
30
+ decide. Honest ceiling: Claude Code has no control point before a response is
31
+ shown, so this stays model-driven doctrine (BYAN delegates because the skill's
32
+ entry chain and this note say so), not a mechanism enforced before display.
18
33
 
19
34
  Three triggers, in priority order:
20
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-byan-agent",
3
- "version": "2.48.0",
3
+ "version": "2.50.0",
4
4
  "description": "BYAN v2.8 - Intelligent AI agent creator with ELO trust system + scientific fact-check + Hermes universal dispatcher + native Claude Code integration (hooks, skills, MCP server). Multi-platform (Claude Code, Codex). Merise Agile + TDD + 71 Mantras. ~54% LLM cost savings.",
5
5
  "main": "src/index.js",
6
6
  "bin": {