0xray 3.5.5 → 4.0.1
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.
- package/.mcp.json +18 -14
- package/.opencode/skills/api-design/SKILL.md +1 -1
- package/.opencode/skills/architect-tools/SKILL.md +1 -1
- package/.opencode/skills/architecture-patterns/SKILL.md +1 -1
- package/.opencode/skills/auto-format/SKILL.md +1 -1
- package/.opencode/skills/boot-orchestrator/SKILL.md +2 -6
- package/.opencode/skills/bug-triage/SKILL.md +1 -1
- package/.opencode/skills/code-analyzer/SKILL.md +1 -1
- package/.opencode/skills/code-review/SKILL.md +1 -1
- package/.opencode/skills/enforcer/SKILL.md +1 -1
- package/.opencode/skills/framework-compliance-audit/SKILL.md +1 -1
- package/.opencode/skills/git-workflow/SKILL.md +1 -1
- package/.opencode/skills/hermes-agent/SKILL.md +36 -36
- package/.opencode/skills/inference-improve/SKILL.md +1 -1
- package/.opencode/skills/lint/SKILL.md +1 -1
- package/.opencode/skills/log-monitor/SKILL.md +1 -1
- package/.opencode/skills/model-health-check/SKILL.md +1 -1
- package/.opencode/skills/multimodal-looker/SKILL.md +1 -1
- package/.opencode/skills/orchestrator/SKILL.md +38 -14
- package/.opencode/skills/performance-analysis/SKILL.md +1 -1
- package/.opencode/skills/performance-optimization/SKILL.md +1 -1
- package/.opencode/skills/processor-pipeline/SKILL.md +1 -1
- package/.opencode/skills/project-analysis/SKILL.md +1 -1
- package/.opencode/skills/refactoring-strategies/SKILL.md +1 -1
- package/.opencode/skills/registry.json +65 -0
- package/.opencode/skills/researcher/SKILL.md +18 -5
- package/.opencode/skills/security-audit/SKILL.md +1 -1
- package/.opencode/skills/security-scan/SKILL.md +1 -1
- package/.opencode/skills/session-management/SKILL.md +1 -1
- package/.opencode/skills/state-manager/SKILL.md +1 -1
- package/.opencode/skills/storyteller/SKILL.md +1 -1
- package/.opencode/skills/strategist/SKILL.md +12 -0
- package/.opencode/skills/testing-best-practices/SKILL.md +37 -0
- package/.opencode/skills/testing-strategy/SKILL.md +14 -3
- package/.opencode/skills/ui-ux-design/SKILL.md +1 -1
- package/.opencode/skills/xray-orchestrator/index.ts +267 -0
- package/.xray/codex.json +12 -3
- package/.xray/features.json +28 -6
- package/.xray/features.schema.json +31 -0
- package/AGENTS-consumer.md +17 -7
- package/AGENTS.md +18 -10
- package/README.md +30 -27
- package/SKILLS.md +2 -2
- package/dist/AGENTS.md +18 -10
- package/dist/CHANGELOG.md +81 -11
- package/dist/README.md +30 -27
- package/dist/SKILLS.md +2 -2
- package/dist/cli/commands/hermes-install.js +3 -0
- package/dist/cli/commands/openclaw-install.js +14 -0
- package/dist/cli/index.js +10 -1
- package/dist/core/features-config.d.ts +15 -2
- package/dist/infrastructure/schemas/cloud-schemas.d.ts +1 -1
- package/dist/integrations/grok/grok-cli.d.ts +3 -0
- package/dist/integrations/grok/grok-cli.js +92 -4
- package/dist/integrations/grok/hooks/grok-hook-utils.js +53 -7
- package/dist/integrations/grok/hooks/post-tool-use.js +68 -46
- package/dist/integrations/grok/hooks/pre-tool-use.js +14 -31
- package/dist/integrations/grok/hooks/session-start.js +86 -4
- package/dist/integrations/grok/plugin/0xray/hooks/hooks.json +31 -24
- package/dist/integrations/hermes-agent/bridge.mjs +26 -1
- package/dist/integrations/hooks/delegation-gate-runtime.mjs +32 -3
- package/dist/integrations/hooks/pipeline-hook-runtime.mjs +1 -1
- package/dist/integrations/hooks/station-hook-runtime.cjs +421 -0
- package/dist/integrations/hooks/station-hook-runtime.mjs +24 -0
- package/dist/integrations/hooks/station-memory-ingest.mjs +45 -0
- package/dist/integrations/hooks/station-memory-match.mjs +47 -0
- package/dist/integrations/openclaw/client.d.ts +5 -1
- package/dist/integrations/openclaw/client.js +17 -9
- package/dist/integrations/openclaw/config.js +0 -1
- package/dist/integrations/openclaw/hooks/pre-tool-gate-runtime.mjs +102 -0
- package/dist/integrations/openclaw/index.js +17 -0
- package/dist/integrations/openclaw/plugin/xray-pre-tool/index.js +75 -0
- package/dist/integrations/openclaw/plugin/xray-pre-tool/openclaw.plugin.json +10 -0
- package/dist/integrations/openclaw/plugin/xray-pre-tool/package.json +12 -0
- package/dist/integrations/openclaw/pre-tool-gate.d.ts +19 -0
- package/dist/integrations/openclaw/pre-tool-gate.js +39 -0
- package/dist/mcps/orchestrator/handlers/complexity-handler.js +2 -2
- package/dist/memory-routing/index.d.ts +1 -1
- package/dist/memory-routing/index.js +1 -1
- package/dist/memory-routing/provider-loader.d.ts +4 -0
- package/dist/memory-routing/provider-loader.js +44 -2
- package/dist/memory-routing/provider-registry.js +3 -2
- package/dist/nucleus/autonomy-kernel.d.ts +2 -2
- package/dist/nucleus/autonomy-kernel.js +17 -6
- package/dist/nucleus/confer.js +17 -3
- package/dist/nucleus/delegation-gate.d.ts +14 -8
- package/dist/nucleus/delegation-gate.js +151 -16
- package/dist/nucleus/suit-temperament.d.ts +40 -0
- package/dist/nucleus/suit-temperament.js +157 -0
- package/dist/nucleus/user-aside.js +1 -1
- package/dist/plugin/xray-codex-injection.js +14 -3
- package/dist/postprocessor/triggers/GitHookTrigger.js +11 -5
- package/opencode.json +80 -0
- package/package.json +15 -5
- package/scripts/hooks/install-hooks.cjs +18 -3
- package/scripts/hooks/run-hook.js +67 -3
- package/scripts/mjs/run-repertoire-mcp.mjs +39 -0
- package/scripts/mjs/verify-confer-core.mjs +1 -1
- package/scripts/mjs/verify-delegation-gate-core.mjs +29 -2
- package/scripts/mjs/verify-four-floor-compact.mjs +524 -0
- package/scripts/mjs/verify-pipeline-facets.mjs +215 -0
- package/scripts/mjs/verify-temperament-live.mjs +261 -0
- package/scripts/node/bridge-mcp-wiring.cjs +277 -29
- package/scripts/node/consumer-install-smoke.mjs +55 -2
- package/scripts/node/install-bridges.cjs +195 -33
- package/scripts/node/postinstall.cjs +50 -27
- package/scripts/node/reconcile-version.mjs +0 -4
- package/scripts/node/release-gate.mjs +1 -1
- package/scripts/node/release.mjs +2 -2
- package/scripts/node/universal-version-manager.js +1 -1
- package/scripts/node/validate-release-docs.mjs +20 -33
- package/scripts/node/version-manager.mjs +63 -18
- package/src/integrations/grok/plugin/0xray/hooks/hooks.json +31 -24
- package/src/integrations/openclaw/README.md +134 -0
- package/src/integrations/openclaw/plugin/xray-pre-tool/index.js +75 -0
- package/src/integrations/openclaw/plugin/xray-pre-tool/openclaw.plugin.json +10 -0
- package/src/integrations/openclaw/plugin/xray-pre-tool/package.json +12 -0
- package/src/mcps/orchestrator/handlers/complexity-handler.ts +2 -1
- package/vendor/@0xray/repertoire/AGENTS.md +163 -0
- package/vendor/@0xray/repertoire/LICENSE +21 -0
- package/vendor/@0xray/repertoire/README.md +120 -0
- package/vendor/@0xray/repertoire/data/curated_signals.json +208 -0
- package/vendor/@0xray/repertoire/dist/RepertoireService.d.ts +78 -0
- package/vendor/@0xray/repertoire/dist/RepertoireService.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/RepertoireService.js +153 -0
- package/vendor/@0xray/repertoire/dist/RepertoireService.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/governance/ontological-trap-enforcer.d.ts +39 -0
- package/vendor/@0xray/repertoire/dist/governance/ontological-trap-enforcer.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/governance/ontological-trap-enforcer.js +60 -0
- package/vendor/@0xray/repertoire/dist/governance/ontological-trap-enforcer.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/index.d.ts +14 -0
- package/vendor/@0xray/repertoire/dist/index.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/index.js +14 -0
- package/vendor/@0xray/repertoire/dist/index.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-ingester.d.ts +26 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-ingester.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-ingester.js +109 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-ingester.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-parser.d.ts +18 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-parser.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-parser.js +94 -0
- package/vendor/@0xray/repertoire/dist/ingestion/groover-log-parser.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/orchestrator-feedback-ingester.d.ts +7 -0
- package/vendor/@0xray/repertoire/dist/ingestion/orchestrator-feedback-ingester.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/orchestrator-feedback-ingester.js +18 -0
- package/vendor/@0xray/repertoire/dist/ingestion/orchestrator-feedback-ingester.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/xray-session-ingester.d.ts +31 -0
- package/vendor/@0xray/repertoire/dist/ingestion/xray-session-ingester.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/ingestion/xray-session-ingester.js +83 -0
- package/vendor/@0xray/repertoire/dist/ingestion/xray-session-ingester.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/mcp/server.d.ts +6 -0
- package/vendor/@0xray/repertoire/dist/mcp/server.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/mcp/server.js +173 -0
- package/vendor/@0xray/repertoire/dist/mcp/server.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/RepertoireOrchestratorBridge.d.ts +27 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/RepertoireOrchestratorBridge.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/RepertoireOrchestratorBridge.js +107 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/RepertoireOrchestratorBridge.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/capability-enhancer.d.ts +11 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/capability-enhancer.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/capability-enhancer.js +32 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/capability-enhancer.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/confidence-gate.d.ts +9 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/confidence-gate.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/confidence-gate.js +72 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/confidence-gate.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-agent-affinity.d.ts +5 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-agent-affinity.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-agent-affinity.js +18 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-agent-affinity.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-injector.d.ts +31 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-injector.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-injector.js +218 -0
- package/vendor/@0xray/repertoire/dist/orchestrator-bridge/signal-injector.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/paths.d.ts +24 -0
- package/vendor/@0xray/repertoire/dist/paths.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/paths.js +74 -0
- package/vendor/@0xray/repertoire/dist/paths.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/provider/memory-routing-provider.d.ts +141 -0
- package/vendor/@0xray/repertoire/dist/provider/memory-routing-provider.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/provider/memory-routing-provider.js +210 -0
- package/vendor/@0xray/repertoire/dist/provider/memory-routing-provider.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/registry/CuratedSignalsManager.d.ts +48 -0
- package/vendor/@0xray/repertoire/dist/registry/CuratedSignalsManager.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/registry/CuratedSignalsManager.js +221 -0
- package/vendor/@0xray/repertoire/dist/registry/CuratedSignalsManager.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/registry/InferenceStateManager.d.ts +11 -0
- package/vendor/@0xray/repertoire/dist/registry/InferenceStateManager.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/registry/InferenceStateManager.js +43 -0
- package/vendor/@0xray/repertoire/dist/registry/InferenceStateManager.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/registry/signal-prune.d.ts +15 -0
- package/vendor/@0xray/repertoire/dist/registry/signal-prune.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/registry/signal-prune.js +35 -0
- package/vendor/@0xray/repertoire/dist/registry/signal-prune.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/concrete-sections.d.ts +3 -0
- package/vendor/@0xray/repertoire/dist/synthesis/concrete-sections.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/concrete-sections.js +24 -0
- package/vendor/@0xray/repertoire/dist/synthesis/concrete-sections.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/meta-inference-engine.d.ts +24 -0
- package/vendor/@0xray/repertoire/dist/synthesis/meta-inference-engine.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/meta-inference-engine.js +148 -0
- package/vendor/@0xray/repertoire/dist/synthesis/meta-inference-engine.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/primitive-confidence-aggregator.d.ts +4 -0
- package/vendor/@0xray/repertoire/dist/synthesis/primitive-confidence-aggregator.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/primitive-confidence-aggregator.js +44 -0
- package/vendor/@0xray/repertoire/dist/synthesis/primitive-confidence-aggregator.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/synthesis-prompt-builder.d.ts +22 -0
- package/vendor/@0xray/repertoire/dist/synthesis/synthesis-prompt-builder.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/synthesis/synthesis-prompt-builder.js +66 -0
- package/vendor/@0xray/repertoire/dist/synthesis/synthesis-prompt-builder.js.map +1 -0
- package/vendor/@0xray/repertoire/dist/types.d.ts +210 -0
- package/vendor/@0xray/repertoire/dist/types.d.ts.map +1 -0
- package/vendor/@0xray/repertoire/dist/types.js +2 -0
- package/vendor/@0xray/repertoire/dist/types.js.map +1 -0
- package/vendor/@0xray/repertoire/docs/MEMORY-ROUTING-PROVIDER.md +54 -0
- package/vendor/@0xray/repertoire/hermes-mcp.example.json +20 -0
- package/vendor/@0xray/repertoire/mcp-config.example.json +11 -0
- package/vendor/@0xray/repertoire/package.json +124 -0
- package/vendor/@0xray/repertoire/schemas/curated-signal.schema.json +68 -0
- package/vendor/@0xray/repertoire/schemas/inference-log.schema.json +82 -0
- package/vendor/@0xray/repertoire/scripts/confirm-suit-all.mjs +253 -0
- package/vendor/@0xray/repertoire/scripts/confirm-suit-harness.mjs +220 -0
- package/vendor/@0xray/repertoire/scripts/run-live-synthesis-checkpoint.mjs +215 -0
- package/vendor/@0xray/repertoire/scripts/suit-bridge-shared.mjs +139 -0
- package/vendor/@0xray/repertoire/scripts/verify-grok-suit.mjs +304 -0
- package/vendor/@0xray/repertoire/scripts/verify-hermes-suit.mjs +163 -0
- package/vendor/@0xray/repertoire/scripts/verify-openclaw-suit.mjs +125 -0
- package/vendor/@0xray/repertoire/scripts/verify-opencode-suit.mjs +127 -0
- package/vendor/@0xray/repertoire/scripts/verify-synthesis-dogfood.mjs +207 -0
- package/vendor/@0xray/repertoire/skills/repertoire-trap-handling/SKILL.md +206 -0
- package/xray/codex.json +12 -3
- package/xray/features.json +28 -6
- package/xray/features.schema.json +31 -0
package/README.md
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
# xray —
|
|
1
|
+
# xray — exo for coding agents
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**v4.0.1** — a suit that survives the context window
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Not a catalog of agents. The product is the **skeleton you wear**.
|
|
4
8
|
|
|
5
9
|
## Your AI Power Suit
|
|
6
10
|
|
|
7
11
|
**Your AI Power ⚡️ Suit 🦾** — an exoskeleton that blocks AI slop from becoming real damage.
|
|
8
12
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
- **Bone** — three-subsystem OS: Inference · External Governance (Dynamo / Codex) · Autonomous Engine (thinDispatch)
|
|
14
|
+
- **Always on** — Codex 11 / 29 / 69, destructive shell, no new MCP/skill/handler surface
|
|
15
|
+
- **Temperament** — `frontier` | `guided` | `strict` | `auto` — how loud the engine is, not whether governance exists
|
|
16
|
+
- **Wear** — Grok, OpenCode, Hermes, OpenClaw. One SSOT gate
|
|
17
|
+
- **Muscle** — Repertoire: auto-enables when the module resolves; session-start writes a one-line resume so the next station is not born amnesiac
|
|
14
18
|
|
|
15
19
|
```bash
|
|
16
|
-
npm install 0xray
|
|
20
|
+
npm install 0xray
|
|
17
21
|
```
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
Consumer `npm install 0xray` auto-wires four platform bridges and seven MCP servers. Repertoire **0.2** is the factory memory organ (vendored): seed primitives, in-process routing, extra host MCP `repertoire`. Not an eighth `xray-*` server. Opt out with `"enabled": false, "provider": "repertoire"`.
|
|
20
24
|
|
|
21
25
|
## Quick Start
|
|
22
26
|
|
|
@@ -46,6 +50,7 @@ Docs: [guides/autonomy-command](docs-site/docs/guides/autonomy-command.md) · Sk
|
|
|
46
50
|
|
|
47
51
|
| Version | Highlights |
|
|
48
52
|
|---------|------------|
|
|
53
|
+
| **4.0.0** | Exo + temperament. Constitution always on; ceremony by host. Repertoire organ on (vendored 0.2). Station card survives compact/host-swap. **On npm.** [vision](docs-site/docs/architecture/v4-vision.md) · [now](docs-site/docs/architecture/v4-now.md) |
|
|
49
54
|
| **3.4.1** | Unified `install-bridges.cjs` on postinstall — OpenCode, Grok, Hermes, OpenClaw in one pass. All 7 MCPs servers via `npx -y 0xray mcp <cmd>` (no `dist/` paths). Canonical `release.mjs` pipeline. |
|
|
50
55
|
| **3.3.1** | Orchestrator confidence gate wired into execution planning. |
|
|
51
56
|
| **3.3.0** | Pluggable **Memory Routing** (`features.json` → `memory_routing`). Repertoire is the default provider in the framework repo. |
|
|
@@ -146,11 +151,11 @@ Pluggable `memory_routing` block in `features.json` (validated by `features.sche
|
|
|
146
151
|
"memory_routing": {
|
|
147
152
|
"enabled": true,
|
|
148
153
|
"provider": "repertoire",
|
|
149
|
-
"module_path": "
|
|
154
|
+
"module_path": "node_modules/@0xray/repertoire/dist/provider/memory-routing-provider.js",
|
|
150
155
|
"config": {
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
156
|
+
"signalsPath": "node_modules/@0xray/repertoire/data/curated_signals.json",
|
|
157
|
+
"statePath": ".xray/state/repertoire/inference-state.json",
|
|
158
|
+
"feedbackDir": ".xray/state/repertoire/feedback"
|
|
154
159
|
}
|
|
155
160
|
}
|
|
156
161
|
```
|
|
@@ -165,7 +170,7 @@ Pluggable `memory_routing` block in `features.json` (validated by `features.sche
|
|
|
165
170
|
|
|
166
171
|
**External hosts** (Hermes/Grok): add `repertoire-mcp` to `.mcp.json` — see Repertoire docs.
|
|
167
172
|
|
|
168
|
-
|
|
173
|
+
Opt out: `"memory_routing": { "enabled": false, "provider": "repertoire" }`.
|
|
169
174
|
|
|
170
175
|
Docs: [memory routing](docs-site/docs/guides/memory-routing.md) · [Repertoire](docs-site/docs/guides/repertoire.md) · [features.json](docs-site/docs/guides/features-json.md) · [all features since 3.1](docs-site/docs/guides/features-since-3.1.md)
|
|
171
176
|
|
|
@@ -180,7 +185,7 @@ Docs: [memory routing](docs-site/docs/guides/memory-routing.md) · [Repertoire](
|
|
|
180
185
|
|
|
181
186
|
## Governance & Codex
|
|
182
187
|
|
|
183
|
-
- **
|
|
188
|
+
- **69 terms** in `.xray/codex.json` — core, architecture, testing, performance, security, operations, governance (Codex 69: no new MCP/skill/handler surface)
|
|
184
189
|
- CodexPolicyService — Governance-owned SSOT for codex loading
|
|
185
190
|
- Pre-governance gate blocks non-compliant proposals
|
|
186
191
|
- Active codex snapshot via `get_active_codex` MCP tool
|
|
@@ -188,27 +193,25 @@ Docs: [memory routing](docs-site/docs/guides/memory-routing.md) · [Repertoire](
|
|
|
188
193
|
|
|
189
194
|
## Testing
|
|
190
195
|
|
|
191
|
-
| Suite | Status (
|
|
196
|
+
| Suite | Status (v4.0.1) |
|
|
192
197
|
|-------|-----------------|
|
|
193
|
-
|
|
|
194
|
-
|
|
|
195
|
-
| Grok CLI E2E | 62/0 failures (v3.2.0 verified) |
|
|
196
|
-
| OpenClaw E2E | 9/9 (v3.2.0 verified) |
|
|
197
|
-
| Hermes E2E | 44/0/0 (v3.2.0 verified) |
|
|
198
|
-
| Consumer smoke | `npm run release:gate` — pack → clean install → 7 MCPs + 4 bridges |
|
|
198
|
+
| Four-floor consumer e2e | OpenCode 34/0 · Grok 63/0 · Hermes 39/0/2 · OpenClaw 96/0/1 (npm 4.0.0 pack) |
|
|
199
|
+
| Consumer smoke | `npm run release:gate` — pack → clean install → 7 MCPs + 4 bridges + organ on |
|
|
199
200
|
|
|
200
201
|
```bash
|
|
201
202
|
npm test
|
|
202
|
-
npm run release:gate # full release gate
|
|
203
|
+
npm run release:gate # full release gate (before upload)
|
|
204
|
+
npm run release:npm # gate + prepare + npm publish --access public
|
|
203
205
|
```
|
|
204
206
|
|
|
205
207
|
## Release
|
|
206
208
|
|
|
209
|
+
Product **4.0.0** is on npm. Do **not** run `release:major` to ship a 4.x fix (that becomes 5.0.0). Do **not** put a `scripts.publish` lifecycle that re-runs the gate after the registry PUT.
|
|
210
|
+
|
|
207
211
|
```bash
|
|
208
|
-
npm run release:
|
|
209
|
-
npm run release:
|
|
210
|
-
npm run release:
|
|
211
|
-
npm run release:patch -- --dry-run
|
|
212
|
+
npm run release:gate
|
|
213
|
+
npm run release:npm # after gate is green; uses npm publish --access public
|
|
214
|
+
npm run release:patch # version bump pipeline (not for a already-bumped 4.0.0)
|
|
212
215
|
```
|
|
213
216
|
|
|
214
217
|
Pipeline: reconcile-version → release-gate (build + test + consumer smoke) → CHANGELOG/README/AGENTS artifacts → commit → tag → npm publish.
|
package/SKILLS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 0xray Skills
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**v4.0.1** — **45 skills** · invoked via `xray-skills` MCP · synced on postinstall
|
|
4
4
|
|
|
5
5
|
xray ships 45 knowledge skills (`src/skills/<name>/SKILL.md`) across the full software lifecycle. Lead-dev operating model lives in **`orchestrator`** skill + `multi_agent_orchestration.lead_dev_mode` in features.json. Skills load on demand via the **xray-skills** MCP server (`npx -y 0xray mcp skills`), agent `@mentions`, or platform skill directories after postinstall.
|
|
6
6
|
|
|
@@ -157,7 +157,7 @@ npx 0xray skill:install <source>
|
|
|
157
157
|
|---------|------------------|
|
|
158
158
|
| **Memory routing** (v3.3) | Researcher uses Repertoire signals; optional `@0xray/repertoire` MCP |
|
|
159
159
|
| **AsideContext** (v3.2) | Orchestrator subcontexts during skill dispatch |
|
|
160
|
-
| **7 MCP servers** (
|
|
160
|
+
| **7 MCP servers** (v4.0.1) | `xray-skills` is the primary skill invocation surface |
|
|
161
161
|
|
|
162
162
|
Docs: [AGENTS.md](AGENTS.md) · [README.md](README.md) · [Docusaurus guides](docs-site/docs/guides/)
|
|
163
163
|
|
package/dist/AGENTS.md
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
# xray Agents
|
|
2
2
|
|
|
3
|
-
Quick reference for the xray AI orchestration framework (**
|
|
3
|
+
Quick reference for the xray AI orchestration framework (**v4.0.1**).
|
|
4
4
|
|
|
5
|
-
**
|
|
5
|
+
**v4.0.1** — a suit that survives the context window.
|
|
6
|
+
|
|
7
|
+
**Exo, not catalog.** Three-subsystem OS (Inference · External Governance · Autonomous Engine) · constitution always on · temperament by host · 4 floors · Repertoire when it resolves.
|
|
8
|
+
|
|
9
|
+
**Temperament:** ceremony (analyze-complexity before spawn, confer) is **guided** by default so free-model OpenCode/Hermes stay in check. Frontier hosts (Grok 4.6 class) with `suit_temperament.profile: auto` **warn** on spawn-without-plan; Codex 11/29/69 still **deny**. Missing `suit_temperament` stays guided. See `docs-site/docs/architecture/v3-from-v2.md`.
|
|
10
|
+
|
|
11
|
+
## Hot-swap
|
|
12
|
+
|
|
13
|
+
Before other work, Read `.xray/state/STATION.md`. Compaction and host change are the same cut. Continue the card. Do not restart the job. Grok does not inject the card (OpenCode does) — this Read is the Grok contract. Do not thicken the Grok exo.
|
|
6
14
|
|
|
7
15
|
## What is xray?
|
|
8
16
|
|
|
9
17
|
xray provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation under the pure v2 three-subsystem model:
|
|
10
18
|
|
|
11
|
-
- **Inference** — proposals, reflection, memory routing (
|
|
12
|
-
- **External Governance** — Dynamo Solar SSOT,
|
|
19
|
+
- **Inference** — proposals, reflection, memory routing (Repertoire organ on in 4.0)
|
|
20
|
+
- **External Governance** — Dynamo Solar SSOT, 69-term Codex
|
|
13
21
|
- **Autonomous Engine** — thinDispatch 7-flow, AsideContext, confidence gate
|
|
14
22
|
|
|
15
23
|
Agents are declared in `src/opencode/agents/*.yml` — the YML SSOT. Skills live in `src/skills/*/SKILL.md` — see [SKILLS.md](SKILLS.md). Consumer projects receive slimmed copies via postinstall (`AGENTS-consumer.md` → `AGENTS.md`, skills synced to platform dirs).
|
|
@@ -30,12 +38,12 @@ Registered in `.mcp.json`, invoked via `npx -y 0xray mcp <cmd>`:
|
|
|
30
38
|
|
|
31
39
|
Governance deliberation: **code-review**, **security-audit**, **researcher** within the 7-server set.
|
|
32
40
|
|
|
33
|
-
## Postinstall (
|
|
41
|
+
## Postinstall (v4.0.1)
|
|
34
42
|
|
|
35
43
|
`postinstall.cjs` → `installAllBridges()`:
|
|
36
44
|
|
|
37
45
|
1. `AGENTS-consumer.md` → `AGENTS.md`
|
|
38
|
-
2. `SKILLS.md` +
|
|
46
|
+
2. `SKILLS.md` + 45 skills → platform skill directories
|
|
39
47
|
3. `.gitignore.default` → `.gitignore` (if absent)
|
|
40
48
|
4. `.xray/` config (`codex.json`, `features.json`, `config.json`)
|
|
41
49
|
5. `.mcp.json` (7 servers)
|
|
@@ -50,11 +58,11 @@ Governance deliberation: **code-review**, **security-audit**, **researcher** wit
|
|
|
50
58
|
"memory_routing": {
|
|
51
59
|
"enabled": true,
|
|
52
60
|
"provider": "repertoire",
|
|
53
|
-
"module_path": "
|
|
61
|
+
"module_path": "node_modules/@0xray/repertoire/dist/provider/memory-routing-provider.js",
|
|
54
62
|
"config": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
63
|
+
"signalsPath": "node_modules/@0xray/repertoire/data/curated_signals.json",
|
|
64
|
+
"statePath": ".xray/state/repertoire/inference-state.json",
|
|
65
|
+
"feedbackDir": ".xray/state/repertoire/feedback"
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
68
|
```
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,87 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Conventional Commits](https://www.conventionalcommits.org/).
|
|
6
6
|
|
|
7
|
+
## [4.0.1] - 2026-09-02
|
|
8
|
+
|
|
9
|
+
Patch on the 4.0 temperament line. npm **4.0.0** stays latest until this tag publishes.
|
|
10
|
+
|
|
11
|
+
### 🐛 Bug Fixes
|
|
12
|
+
- CLI `-V` / `--version` no longer dumps a Commander stack after `exitOverride`
|
|
13
|
+
- Hermes: post-processor logs `[nudge]`; e2e calls `session-start`
|
|
14
|
+
- OpenClaw e2e reads `plugins.entries` (OpenClaw 2026.8.2)
|
|
15
|
+
- Release gate: consumer smoke expects organ **on**; no `scripts.publish` after the registry PUT; reconcile allows tagged-but-unpublished
|
|
16
|
+
|
|
17
|
+
### 📚 Documentation
|
|
18
|
+
- Archive catalog / enterprise Docusaurus boiler; live site is exo wear
|
|
19
|
+
- Version-manager stamps live Docusaurus kernel headers (no archived `docs-site/docs/README.md`)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## [4.0.0] - 2026-09-02
|
|
24
|
+
|
|
25
|
+
First ship of the **temperament** line on the **v2 three-subsystem OS** (Inference · External Governance · Autonomous Engine). npm **4.0.0**. Tag `v4.0.0` on `0xRayAI/xray` `main` (`f80b42c`).
|
|
26
|
+
|
|
27
|
+
### ✨ Features
|
|
28
|
+
- **Factory memory organ** — `@0xray/repertoire@0.2.0` vendored as a runtime dependency. Shipped `memory_routing` is **on** (8 factory primitives). Extra host MCP stays `repertoire`, not an 8th `xray-*` server. Compact ingest writes `.xray/state/repertoire/`. Explicit opt-out: `enabled: false` + `provider: "repertoire"`.
|
|
29
|
+
- **Four-floor compact + memory** — station heat matches Repertoire on every host (not only Grok). Compact on Grok Pre/PostCompact, Hermes session-start, OpenCode plugin boot, OpenClaw PreToolUse keeps intent, Working signals, and `Repertoire: on`.
|
|
30
|
+
- **Suit temperament** — `frontier` | `guided` | `strict` | `auto`. Constitution (Codex 11/29/69, destructive shell) always on. Ceremony (spawn-plan deny, confer, synthesis) scales by host.
|
|
31
|
+
- **Grok 4.6 / Grok Build** — `auto` → frontier: spawn missing/stale/todo-mismatch **warns**; confer off unless opted in.
|
|
32
|
+
- **OpenCode / Hermes** (including free models) — stay **guided**: full v2 engine ceremony.
|
|
33
|
+
- **Upgrade safety** — consumers without `suit_temperament` stay **guided**; postinstall merge will not frontier existing Grok installs.
|
|
34
|
+
- **Codex 69** — in `codex.json` (blocking). PreToolUse already denied new MCP/skill/handler files.
|
|
35
|
+
- **OpenClaw host PreToolUse** — `evaluateOpenClawHostPreTool` SSOT + `~/.openclaw/hooks/xray-pre-tool.mjs` on `0xray openclaw install`. Platform still has no native abort API; this is the host adapter.
|
|
36
|
+
- **Repertoire harness** — leftover `memory_routing` default-off auto-enables when sibling `@0xray/repertoire` or `node_modules/@0xray/repertoire` resolves (install **and** runtime provider load). Explicit `enabled: false` + `provider: repertoire` is opt-out. Consumers without the module stay off. Not an 8th 0xRay MCP.
|
|
37
|
+
- **Repertoire working state** — station heat writes `.xray/state/repertoire-working.json` and a `Working:` line on the card. Compact may ingest non-Bedrock matches. Registry primitives are routing; the working file is session memory.
|
|
38
|
+
- **Session resume** — Grok session-start writes `repertoireResume` (one line, signal count) into `session-boot.json` so the next station survives compaction.
|
|
39
|
+
- **Hot-swap station card** — `.xray/state/STATION.md` is the projection of `session-boot.json` (intent, git, **live** plan, last host, Repertoire). PreCompact/PostCompact persist it. AGENTS.md tells the model to Read it (Grok does not inject). Host change sets `hotSwap`. Same-host compact **keeps** the last swap stamp. OpenClaw first PreToolUse heats the card. Intent strips `<user_query>` wrappers. Works without Repertoire.
|
|
40
|
+
- **Framework dogfood wear** — `installAllBridges` on the 0xRay package still patches `<project>/.grok/hooks/0xray.json` and enable-when-resolves. Does not deploy consumer copies over the package.
|
|
41
|
+
- **Repertoire MCP names** — unprefixed server tools; Grok TUI namespaces them as `repertoire__*`. Grok install resolves sibling *or* `node_modules/@0xray/repertoire`.
|
|
42
|
+
- **Configurable archive marker** — `plan_archive_marker_hours` (default 24) in `features.json`
|
|
43
|
+
- **grok_postprocessor_light** — PostToolUse write-tool marker + activity.log
|
|
44
|
+
- **P2 session capture** — git post-commit → `captureSessionInference` when `inference_session_capture.min_commits` met
|
|
45
|
+
- **Docs** — [4.0 vision](docs-site/docs/architecture/v4-vision.md), [v3 from v2](docs-site/docs/architecture/v3-from-v2.md), [temperament](docs-site/docs/guides/v3-temperament.md), [trim list](docs-site/docs/architecture/v3-museum.md).
|
|
46
|
+
|
|
47
|
+
### 🔄 Changes
|
|
48
|
+
- Product version **4.0.0** throughout (`package.json`, `features.json`, plugin, banners). 3.x entries below are historical (npm `3.0.0`–`3.5.5`).
|
|
49
|
+
- `evaluatePreToolGate` is constitution-first (Grok, Hermes, OpenCode). Grok PreToolUse no longer re-runs 11/29/69/surface/destructive after the SSOT.
|
|
50
|
+
- Codex 69 denies **new** surface only (existing MCP/skill files may be rewired). `paths[]` / `target_notebook` / `prompt` content are in the SSOT collector.
|
|
51
|
+
- **strict** locks `no_new_surface` on (cannot opt out).
|
|
52
|
+
- Dual-host session-boot: Hermes / OpenCode / OpenClaw write `host` + `suit_profile`. A Hermes host ignores leftover Grok boot (and vice versa). Kernel/`generic` uses last boot.
|
|
53
|
+
- Frontier `auto_consult` follows confer opt-in (`confer.enabled` / `confer_on_synthesis`).
|
|
54
|
+
- Session-boot refreshes leftover host/workspace from another machine.
|
|
55
|
+
- Post-commit log maintenance prefers consumer `node_modules/0xray/dist` and ESM `pathToFileURL`.
|
|
56
|
+
|
|
57
|
+
### 🐛 Fixes
|
|
58
|
+
- OpenClaw plugin ships in the npm tarball; install resolves `dist` then `src`.
|
|
59
|
+
- Bare `node scripts/node/release.mjs` no longer defaults to patch (that path applied npm `3.5.5` → `3.5.6` over the 4.0 plant). Bump type is required. CJS/MJS loadability syntax-checks version/release/reflection/prepare/setup/CI-report scripts instead of executing them.
|
|
60
|
+
- Postinstall wears OpenClaw PreToolUse (stdin hook + plugin link), not only `0xray openclaw install`.
|
|
61
|
+
- Ephemeral e2e consumers no longer overwrite machine Hermes/OpenClaw `xray-consumer-root.txt`.
|
|
62
|
+
- Hermes postinstall copies hook runtimes; plugin enable prefers `xray-hermes`.
|
|
63
|
+
- OpenClaw install writes `opencode-cli` backend when `opencode` is on PATH (CLI pickle, not Zen HTTP).
|
|
64
|
+
- `0xray grok install` always runs `patchGrokHooks` (command strings, PreCompact/PostCompact) even when the plugin already exists. Stale `args[]` / smoke / blaze paths no longer leave compact cold. Patched JSON is also copied to `<project>/.grok/hooks/0xray.json` — the path Grok TUI actually loads.
|
|
65
|
+
- `buildLeadDevPlan` / `buildSynthesisCheckpointPlan` resolve temperament from `projectRoot`, not `process.cwd()` session-boot. A Grok frontier checkout no longer empties guided confer todos in tmp asides and release-gate verify scripts.
|
|
66
|
+
- Stop committing machine-local `.grok/` (absolute hook paths). Template stays `src/integrations/grok/plugin/0xray`.
|
|
67
|
+
- Grok hook `command` strings quote `XRAY_AI_PATH` and the script path so installs with spaces still start PreToolUse (Grok fail-opens on crash).
|
|
68
|
+
- OpenClaw `maybeHeatHostStation` skips only when both sides have a concrete matching session id. An install card with no session no longer swallows first PreToolUse.
|
|
69
|
+
- `postinstall.cjs` always calls `installAllBridges` (framework dogfood wear is no longer gated out of the production caller).
|
|
70
|
+
- `loadFeatures` forwards `grok_postprocessor_light`; PostToolUse can run the advertised write-tool marker path.
|
|
71
|
+
- `0xray grok install` writes `[mcp_servers.repertoire]` to `<project>/.grok/config.toml` and resolves the sibling from the consumer root.
|
|
72
|
+
- OpenClaw 2026.8.2 handshake uses client id `gateway-client` (not `openclaw-tui`). Control-UI id requires device identity; TUI id is rejected on loopback.
|
|
73
|
+
- OpenClaw e2e falls back to `openclaw agent` when token-only WS lacks `operator.write`. Grok e2e asserts `evaluatePreToolGate` SSOT instead of inlined gate names.
|
|
74
|
+
|
|
75
|
+
### ✅ Tests
|
|
76
|
+
- `suit-temperament.test.ts`; leftover-plan warn; confer frontier opt-in; install-bridges guided pin; Codex 69 rewrite vs create; strict lock; `paths[]`; dual-host boot.
|
|
77
|
+
- `spawn-plan-stale` after archival in `verify-delegation-gate-core` (6/6); OpenCode host in `release-gate`.
|
|
78
|
+
- OpenClaw PreToolUse unit coverage; live temperament probe across Grok, Hermes, OpenCode, OpenClaw.
|
|
79
|
+
- Wear-layout: plugin/hook resolve, ephemeral marker skip, opencode-cli backend write.
|
|
80
|
+
- `grok-hooks-json`: stale `args[]` smoke hooks gain compact events; station compact keeps `hotSwap`.
|
|
81
|
+
- `autonomy-kernel`: plan consults follow `projectRoot` profile; confer/synthesis verify scripts pass tmp, not cwd Grok boot.
|
|
82
|
+
- Repertoire enable-when-resolves + session-start `repertoireResume` unit coverage.
|
|
83
|
+
- Quoted Grok hook commands; postinstall dogfood wear; OpenClaw install-then-first-tool heat; `grok_postprocessor_light` loadFeatures; project Repertoire `config.toml`.
|
|
84
|
+
- Four-floor compact survival attests Codex 11 / 69 / destructive shell plus temperament after the cut. `XRAY_LIVE_SUCCESSOR=1` asks each host CLI to quote the station card.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
7
88
|
## [3.5.5] - 2026-06-20
|
|
8
89
|
|
|
9
90
|
### ✨ Features
|
|
@@ -47,17 +128,6 @@ The format is based on [Conventional Commits](https://www.conventionalcommits.or
|
|
|
47
128
|
|
|
48
129
|
---
|
|
49
130
|
|
|
50
|
-
## [Unreleased]
|
|
51
|
-
|
|
52
|
-
### Planned (iterate before next release)
|
|
53
|
-
- **Configurable archive marker** — `plan_archive_marker_hours` controls `spawn-plan-stale` persistence after archival
|
|
54
|
-
- **Verifier coverage** — `spawn-plan-stale` in `verify-delegation-gate-core` (5/5); wired into `release-gate`
|
|
55
|
-
- **Post-commit log maintenance** — consumer path fix (`node_modules/0xray/dist`)
|
|
56
|
-
- **grok_postprocessor_light** — opt-in marker + activity.log on Grok write tools (full PP subset deferred)
|
|
57
|
-
- **P2 session capture** — git post-commit → `captureSessionInference` when threshold met
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
131
|
## [3.5.3] - 2026-06-19
|
|
62
132
|
|
|
63
133
|
### 🔄 Changes
|
package/dist/README.md
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
# xray —
|
|
1
|
+
# xray — exo for coding agents
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**v4.0.1** — a suit that survives the context window
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Not a catalog of agents. The product is the **skeleton you wear**.
|
|
4
8
|
|
|
5
9
|
## Your AI Power Suit
|
|
6
10
|
|
|
7
11
|
**Your AI Power ⚡️ Suit 🦾** — an exoskeleton that blocks AI slop from becoming real damage.
|
|
8
12
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
- **Bone** — three-subsystem OS: Inference · External Governance (Dynamo / Codex) · Autonomous Engine (thinDispatch)
|
|
14
|
+
- **Always on** — Codex 11 / 29 / 69, destructive shell, no new MCP/skill/handler surface
|
|
15
|
+
- **Temperament** — `frontier` | `guided` | `strict` | `auto` — how loud the engine is, not whether governance exists
|
|
16
|
+
- **Wear** — Grok, OpenCode, Hermes, OpenClaw. One SSOT gate
|
|
17
|
+
- **Muscle** — Repertoire: auto-enables when the module resolves; session-start writes a one-line resume so the next station is not born amnesiac
|
|
14
18
|
|
|
15
19
|
```bash
|
|
16
|
-
npm install 0xray
|
|
20
|
+
npm install 0xray
|
|
17
21
|
```
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
Consumer `npm install 0xray` auto-wires four platform bridges and seven MCP servers. Repertoire **0.2** is the factory memory organ (vendored): seed primitives, in-process routing, extra host MCP `repertoire`. Not an eighth `xray-*` server. Opt out with `"enabled": false, "provider": "repertoire"`.
|
|
20
24
|
|
|
21
25
|
## Quick Start
|
|
22
26
|
|
|
@@ -46,6 +50,7 @@ Docs: [guides/autonomy-command](docs-site/docs/guides/autonomy-command.md) · Sk
|
|
|
46
50
|
|
|
47
51
|
| Version | Highlights |
|
|
48
52
|
|---------|------------|
|
|
53
|
+
| **4.0.0** | Exo + temperament. Constitution always on; ceremony by host. Repertoire organ on (vendored 0.2). Station card survives compact/host-swap. **On npm.** [vision](docs-site/docs/architecture/v4-vision.md) · [now](docs-site/docs/architecture/v4-now.md) |
|
|
49
54
|
| **3.4.1** | Unified `install-bridges.cjs` on postinstall — OpenCode, Grok, Hermes, OpenClaw in one pass. All 7 MCPs servers via `npx -y 0xray mcp <cmd>` (no `dist/` paths). Canonical `release.mjs` pipeline. |
|
|
50
55
|
| **3.3.1** | Orchestrator confidence gate wired into execution planning. |
|
|
51
56
|
| **3.3.0** | Pluggable **Memory Routing** (`features.json` → `memory_routing`). Repertoire is the default provider in the framework repo. |
|
|
@@ -146,11 +151,11 @@ Pluggable `memory_routing` block in `features.json` (validated by `features.sche
|
|
|
146
151
|
"memory_routing": {
|
|
147
152
|
"enabled": true,
|
|
148
153
|
"provider": "repertoire",
|
|
149
|
-
"module_path": "
|
|
154
|
+
"module_path": "node_modules/@0xray/repertoire/dist/provider/memory-routing-provider.js",
|
|
150
155
|
"config": {
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
156
|
+
"signalsPath": "node_modules/@0xray/repertoire/data/curated_signals.json",
|
|
157
|
+
"statePath": ".xray/state/repertoire/inference-state.json",
|
|
158
|
+
"feedbackDir": ".xray/state/repertoire/feedback"
|
|
154
159
|
}
|
|
155
160
|
}
|
|
156
161
|
```
|
|
@@ -165,7 +170,7 @@ Pluggable `memory_routing` block in `features.json` (validated by `features.sche
|
|
|
165
170
|
|
|
166
171
|
**External hosts** (Hermes/Grok): add `repertoire-mcp` to `.mcp.json` — see Repertoire docs.
|
|
167
172
|
|
|
168
|
-
|
|
173
|
+
Opt out: `"memory_routing": { "enabled": false, "provider": "repertoire" }`.
|
|
169
174
|
|
|
170
175
|
Docs: [memory routing](docs-site/docs/guides/memory-routing.md) · [Repertoire](docs-site/docs/guides/repertoire.md) · [features.json](docs-site/docs/guides/features-json.md) · [all features since 3.1](docs-site/docs/guides/features-since-3.1.md)
|
|
171
176
|
|
|
@@ -180,7 +185,7 @@ Docs: [memory routing](docs-site/docs/guides/memory-routing.md) · [Repertoire](
|
|
|
180
185
|
|
|
181
186
|
## Governance & Codex
|
|
182
187
|
|
|
183
|
-
- **
|
|
188
|
+
- **69 terms** in `.xray/codex.json` — core, architecture, testing, performance, security, operations, governance (Codex 69: no new MCP/skill/handler surface)
|
|
184
189
|
- CodexPolicyService — Governance-owned SSOT for codex loading
|
|
185
190
|
- Pre-governance gate blocks non-compliant proposals
|
|
186
191
|
- Active codex snapshot via `get_active_codex` MCP tool
|
|
@@ -188,27 +193,25 @@ Docs: [memory routing](docs-site/docs/guides/memory-routing.md) · [Repertoire](
|
|
|
188
193
|
|
|
189
194
|
## Testing
|
|
190
195
|
|
|
191
|
-
| Suite | Status (
|
|
196
|
+
| Suite | Status (v4.0.1) |
|
|
192
197
|
|-------|-----------------|
|
|
193
|
-
|
|
|
194
|
-
|
|
|
195
|
-
| Grok CLI E2E | 62/0 failures (v3.2.0 verified) |
|
|
196
|
-
| OpenClaw E2E | 9/9 (v3.2.0 verified) |
|
|
197
|
-
| Hermes E2E | 44/0/0 (v3.2.0 verified) |
|
|
198
|
-
| Consumer smoke | `npm run release:gate` — pack → clean install → 7 MCPs + 4 bridges |
|
|
198
|
+
| Four-floor consumer e2e | OpenCode 34/0 · Grok 63/0 · Hermes 39/0/2 · OpenClaw 96/0/1 (npm 4.0.0 pack) |
|
|
199
|
+
| Consumer smoke | `npm run release:gate` — pack → clean install → 7 MCPs + 4 bridges + organ on |
|
|
199
200
|
|
|
200
201
|
```bash
|
|
201
202
|
npm test
|
|
202
|
-
npm run release:gate # full release gate
|
|
203
|
+
npm run release:gate # full release gate (before upload)
|
|
204
|
+
npm run release:npm # gate + prepare + npm publish --access public
|
|
203
205
|
```
|
|
204
206
|
|
|
205
207
|
## Release
|
|
206
208
|
|
|
209
|
+
Product **4.0.0** is on npm. Do **not** run `release:major` to ship a 4.x fix (that becomes 5.0.0). Do **not** put a `scripts.publish` lifecycle that re-runs the gate after the registry PUT.
|
|
210
|
+
|
|
207
211
|
```bash
|
|
208
|
-
npm run release:
|
|
209
|
-
npm run release:
|
|
210
|
-
npm run release:
|
|
211
|
-
npm run release:patch -- --dry-run
|
|
212
|
+
npm run release:gate
|
|
213
|
+
npm run release:npm # after gate is green; uses npm publish --access public
|
|
214
|
+
npm run release:patch # version bump pipeline (not for a already-bumped 4.0.0)
|
|
212
215
|
```
|
|
213
216
|
|
|
214
217
|
Pipeline: reconcile-version → release-gate (build + test + consumer smoke) → CHANGELOG/README/AGENTS artifacts → commit → tag → npm publish.
|
package/dist/SKILLS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 0xray Skills
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**v4.0.1** — **45 skills** · invoked via `xray-skills` MCP · synced on postinstall
|
|
4
4
|
|
|
5
5
|
xray ships 45 knowledge skills (`src/skills/<name>/SKILL.md`) across the full software lifecycle. Lead-dev operating model lives in **`orchestrator`** skill + `multi_agent_orchestration.lead_dev_mode` in features.json. Skills load on demand via the **xray-skills** MCP server (`npx -y 0xray mcp skills`), agent `@mentions`, or platform skill directories after postinstall.
|
|
6
6
|
|
|
@@ -157,7 +157,7 @@ npx 0xray skill:install <source>
|
|
|
157
157
|
|---------|------------------|
|
|
158
158
|
| **Memory routing** (v3.3) | Researcher uses Repertoire signals; optional `@0xray/repertoire` MCP |
|
|
159
159
|
| **AsideContext** (v3.2) | Orchestrator subcontexts during skill dispatch |
|
|
160
|
-
| **7 MCP servers** (
|
|
160
|
+
| **7 MCP servers** (v4.0.1) | `xray-skills` is the primary skill invocation surface |
|
|
161
161
|
|
|
162
162
|
Docs: [AGENTS.md](AGENTS.md) · [README.md](README.md) · [Docusaurus guides](docs-site/docs/guides/)
|
|
163
163
|
|
|
@@ -64,6 +64,9 @@ async function installForHermes(options = {}) {
|
|
|
64
64
|
frameworkLogger.log('hermes-integration', 'skills-synced', 'info', { count: skillsCopied });
|
|
65
65
|
}
|
|
66
66
|
wiring.copyHermesFindProjectRootHelper(packageRoot, targetPluginDir);
|
|
67
|
+
if (wiring.copyHermesHookRuntimes(packageRoot)) {
|
|
68
|
+
frameworkLogger.log('hermes-integration', 'hooks-copied', 'info', {});
|
|
69
|
+
}
|
|
67
70
|
const wired = wiring.wireHermesBridge(targetDir);
|
|
68
71
|
console.log(`\x1b[32m✓ Wired Hermes mcp_servers (${wired.count} servers)\x1b[0m`);
|
|
69
72
|
console.log(`\x1b[32m✓ Consumer root → ${targetDir}\x1b[0m`);
|
|
@@ -5,6 +5,7 @@ import { createRequire } from 'module';
|
|
|
5
5
|
import { frameworkLogger } from '../../core/framework-logger.js';
|
|
6
6
|
import { syncBuiltinSkills } from './skill-install.js';
|
|
7
7
|
import { OpenClawConfigLoader } from '../../integrations/openclaw/config.js';
|
|
8
|
+
import { writeSuitSessionBoot } from '../../nucleus/suit-temperament.js';
|
|
8
9
|
const __dirname = path.dirname(new URL(import.meta.url).pathname);
|
|
9
10
|
const require = createRequire(import.meta.url);
|
|
10
11
|
const wiring = require(path.join(__dirname, '..', '..', '..', 'scripts', 'node', 'bridge-mcp-wiring.cjs'));
|
|
@@ -47,6 +48,19 @@ async function installForOpenClaw(options = {}) {
|
|
|
47
48
|
const wired = wiring.wireOpenClawBridge(targetDir);
|
|
48
49
|
console.log(`\x1b[32m✓ Wired OpenClaw MCP servers (${wired.count} via ${wired.method}) → ${wired.path}\x1b[0m`);
|
|
49
50
|
console.log(`\x1b[32m✓ Consumer root → ${targetDir}\x1b[0m`);
|
|
51
|
+
try {
|
|
52
|
+
writeSuitSessionBoot(targetDir, 'openclaw', { source: '0xray/openclaw-install' });
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
/* session-boot is best-effort */
|
|
56
|
+
}
|
|
57
|
+
const packageRoot = path.resolve(__dirname, '..', '..', '..');
|
|
58
|
+
const hookInstalled = wiring.installOpenClawHostWear(packageRoot);
|
|
59
|
+
const cliBackend = wiring.maybeWriteOpenClawCliBackend();
|
|
60
|
+
frameworkLogger.log('openclaw-integration', 'cli-backend', 'info', { written: cliBackend });
|
|
61
|
+
if (hookInstalled) {
|
|
62
|
+
console.log(`\x1b[32m✓ OpenClaw PreToolUse hook → ${hookInstalled}\x1b[0m`);
|
|
63
|
+
}
|
|
50
64
|
console.log('\n✅ 0xRay OpenClaw integration configured!');
|
|
51
65
|
console.log('Run `openclaw mcp list` to verify MCP servers.');
|
|
52
66
|
console.log('Edit `.xray/config/openclaw.json` for gateway URL, auth token, and device ID.');
|
package/dist/cli/index.js
CHANGED
|
@@ -984,4 +984,13 @@ For more information, visit: https://github.com/0xRayAI/xray
|
|
|
984
984
|
`);
|
|
985
985
|
// Parse command line arguments
|
|
986
986
|
program.exitOverride();
|
|
987
|
-
|
|
987
|
+
try {
|
|
988
|
+
program.parse();
|
|
989
|
+
}
|
|
990
|
+
catch (err) {
|
|
991
|
+
const code = err && typeof err === 'object' && 'code' in err ? String(err.code) : '';
|
|
992
|
+
if (code === 'commander.helpDisplayed' || code === 'commander.help' || code === 'commander.version') {
|
|
993
|
+
process.exit(0);
|
|
994
|
+
}
|
|
995
|
+
throw err;
|
|
996
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @since 2026-01-25
|
|
8
8
|
*/
|
|
9
9
|
import type { MemoryRoutingConfig } from "../memory-routing/types.js";
|
|
10
|
+
import type { SuitHost, SuitProfile, SuitTemperamentConfig } from "../nucleus/suit-temperament.js";
|
|
10
11
|
export type { MemoryRoutingConfig };
|
|
11
12
|
export interface TokenOptimizationConfig {
|
|
12
13
|
enabled: boolean;
|
|
@@ -63,7 +64,7 @@ export interface MultiAgentOrchestrationConfig {
|
|
|
63
64
|
auto_consult_major_work?: boolean;
|
|
64
65
|
/** Codex 69 — block new MCP/skill/handler files via PreToolUse (default true) */
|
|
65
66
|
no_new_surface?: boolean;
|
|
66
|
-
/**
|
|
67
|
+
/** PreToolUse gate after delegate-deferred (default true when lead_dev_mode) */
|
|
67
68
|
auto_chain_delegations?: boolean;
|
|
68
69
|
/** Hours before unstarted lead-dev plan is archived (default 8) */
|
|
69
70
|
plan_stale_hours?: number;
|
|
@@ -81,13 +82,15 @@ export interface MultiAgentOrchestrationConfig {
|
|
|
81
82
|
on_synthesis?: boolean;
|
|
82
83
|
};
|
|
83
84
|
}
|
|
85
|
+
/** 0xRay 4.0 — nucleus SSOT. See docs-site/docs/guides/v3-temperament.md */
|
|
86
|
+
export type { SuitHost, SuitProfile, SuitTemperamentConfig };
|
|
84
87
|
/** Reflection triggers merged from legacy auto_reflection when synthesis is configured */
|
|
85
88
|
export interface SynthesisReflectionConfig {
|
|
86
89
|
mode?: AutoReflectionConfig['mode'];
|
|
87
90
|
triggers?: AutoReflectionConfig['triggers'];
|
|
88
91
|
thresholds?: AutoReflectionConfig['thresholds'];
|
|
89
92
|
}
|
|
90
|
-
/**
|
|
93
|
+
/** Periodic reflect & realign checkpoint (Synthesis) */
|
|
91
94
|
export interface SynthesisConfig {
|
|
92
95
|
enabled: boolean;
|
|
93
96
|
every_n_gates: number;
|
|
@@ -399,10 +402,20 @@ export interface FeaturesConfig {
|
|
|
399
402
|
auto_reflection?: AutoReflectionConfig;
|
|
400
403
|
inference?: InferenceConfig;
|
|
401
404
|
memory_routing?: MemoryRoutingConfig;
|
|
405
|
+
/** P2.2 — lightweight Grok write-tool postprocessor marker */
|
|
406
|
+
grok_postprocessor_light?: boolean;
|
|
407
|
+
/** P2 — git post-commit session inference capture */
|
|
408
|
+
inference_session_capture?: {
|
|
409
|
+
enabled?: boolean;
|
|
410
|
+
min_commits?: number;
|
|
411
|
+
lookback_commits?: number;
|
|
412
|
+
};
|
|
402
413
|
synthesis: SynthesisConfig;
|
|
403
414
|
kernel?: KernelConfig;
|
|
404
415
|
processors?: ProcessorsConfig;
|
|
405
416
|
enforcement?: EnforcementConfig;
|
|
417
|
+
/** v3 temperament — missing key means guided (existing consumers unchanged) */
|
|
418
|
+
suit_temperament?: SuitTemperamentConfig;
|
|
406
419
|
}
|
|
407
420
|
export type TaskType = "file_read" | "grep_search" | "simple_edit" | "bulk_refactor" | "architecture_review" | "security_audit" | "git_operations" | "documentation" | "code_generation" | "debugging" | "unknown";
|
|
408
421
|
/**
|
|
@@ -19,7 +19,10 @@ export interface GrokInstallOptions {
|
|
|
19
19
|
dryRun?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare function installForGrokCLI(options?: GrokInstallOptions): Promise<void>;
|
|
22
|
+
/** Grok TUI reads <project>/.grok/config.toml, not the package copy. */
|
|
23
|
+
export declare function writeProjectRepertoireMcp(projectRoot: string): string | null;
|
|
22
24
|
declare const _default: {
|
|
23
25
|
installForGrokCLI: typeof installForGrokCLI;
|
|
26
|
+
writeProjectRepertoireMcp: typeof writeProjectRepertoireMcp;
|
|
24
27
|
};
|
|
25
28
|
export default _default;
|