@akagilnc/pi-workflow-roles 0.1.2984-next.bf919eb → 0.1.3017-next.856b08e

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 (36) hide show
  1. package/README.md +5 -0
  2. package/README.zh-CN.md +5 -0
  3. package/dist/evidence-child-executor.js +794 -793
  4. package/dist/grok/mcp-relay.mjs +67 -19
  5. package/dist/grok/production-host.js +8006 -6168
  6. package/dist/institutional-resolution.js +15 -6
  7. package/dist/navigator-attendance.js +40 -390
  8. package/dist/navigator-session-contracts.js +225 -0
  9. package/dist/pi/in-process-session.js +590 -632
  10. package/dist/public-cli/main.js +54 -14
  11. package/dist/reviewer-agent.js +25 -0
  12. package/extensions/role-runtime.ts +22 -159
  13. package/package.json +1 -1
  14. package/resources/navigator-route-playbook.md +4 -0
  15. package/scripts/build-package.mjs +14 -1
  16. package/src/analyst-gate-cycles-read.ts +7 -1
  17. package/src/compliance-transport.ts +4 -3
  18. package/src/doctor-auditor.ts +2 -3
  19. package/src/evidence-child-executor.ts +209 -1
  20. package/src/gatekeeper-role.ts +12 -2
  21. package/src/grok/mcp-relay.mjs +67 -19
  22. package/src/grok/production-host.ts +40 -10
  23. package/src/grok/role-envelope.ts +73 -9
  24. package/src/grok/role-turn-host.ts +0 -6
  25. package/src/institutional-resolution.ts +26 -1
  26. package/src/judge-auditor.ts +2 -3
  27. package/src/navigator-attendance.ts +75 -484
  28. package/src/navigator-session-contracts.ts +282 -0
  29. package/src/navigator-work-context.ts +133 -0
  30. package/src/pi/in-process-session.ts +105 -100
  31. package/src/public-cli/cli.ts +8 -13
  32. package/src/public-cli/option-definitions.ts +4 -3
  33. package/src/reviewer-agent.ts +27 -2
  34. package/src/reviewer-child-executor.ts +2 -2
  35. package/src/role-runtime.ts +32 -8
  36. package/dist/in-process-session.js +0 -64
package/README.md CHANGED
@@ -56,9 +56,14 @@ ak-role config unset gatekeeper
56
56
  # persistent labor engine (callable roles; not navigator); one-shot override remains --engine
57
57
  ak-role config set-engine judge opus
58
58
  ak-role config unset-engine judge
59
+ # persistent main-session host (callable roles); one-shot override remains --host
60
+ ak-role config set-host judge grok-build
61
+ ak-role config unset-host judge
59
62
  ak-role config set-auto-resume-limit 3
60
63
  ```
61
64
 
65
+ **Host axis (invocation-insensible after default):** `--host` is a global public option on every callable role. Resolution is invocation `--host` → persistent seat host (`config set-host`) → package default (`pi`). After `config set-host <seat> <name>`, the same command face used with Pi runs that seat on the named host with zero extra flags and zero caller-side changes. All public callable roles and their institutional sub-legs (soul audit, doctor audit, navigator, reviewer evidence children) are host-neutral on the shared in-process institutional session seam.
66
+
62
67
  For Gate officers (`gatekeeper` / `inspector` / `notary`) resolution is officer pin → province (`gatekeeper`) pin → inherit parent session; an explicit selection that fails is loud and does not fall back. Configuration usage and refusal text are owned by `ak-role config` / `ak-role help config`.
63
68
 
64
69
  Receipts are typed, so callers compose roles without parsing prose; ordering and stopping stay caller-owned ([ADR 0010](docs/adr/0010-callers-own-role-composition-and-repetition.md)). Programmatic consumers derive contracts from the exported schemas in `src/package-contracts/`, not from this guide.
package/README.zh-CN.md CHANGED
@@ -56,9 +56,14 @@ ak-role config unset gatekeeper
56
56
  # 持久劳务引擎(可调用角色;不含 navigator);一次性覆盖仍用 --engine
57
57
  ak-role config set-engine judge opus
58
58
  ak-role config unset-engine judge
59
+ # 持久主会话宿主(可调用角色);一次性覆盖仍用 --host
60
+ ak-role config set-host judge grok-build
61
+ ak-role config unset-host judge
59
62
  ak-role config set-auto-resume-limit 3
60
63
  ```
61
64
 
65
+ **宿主轴(配置默认 host 后调用无感):** `--host` 为全局公开旗,全部可调用角色受理。解析序为调用 `--host` → 席位持久 host(`config set-host`)→ 包默认(`pi`)。`config set-host <seat> <name>` 之后,与 Pi 完全相同的命令面即可在该席跑命名宿主——零额外旗、零调用侧改动。全部 public callable 角色及其机构子腿(审刑审计、太医审计、游奕使、御史台证据子腿)在共享进程内机构子会话接缝上均为宿主中立。
66
+
62
67
  门下省官席解析顺序:官自钉 → 省钉(`gatekeeper`)→ 继承父 session;显式指定失败响亮、不回退。配置用法与拒绝文案以 `ak-role config`/`ak-role help config` 为准。
63
68
 
64
69
  回执是 typed 的,调用者不必解析散文即可组合角色;顺序与停止归调用者([ADR 0010](docs/adr/0010-callers-own-role-composition-and-repetition.md))。编程消费者从 `src/package-contracts/` 导出推导契约,不从本文。