0xray 2.0.1 → 2.1.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/.opencode/codex.codex +1 -1
- package/.opencode/commands/dependency-audit.md +3 -3
- package/.opencode/enforcer-config.json +2 -2
- package/.opencode/hooks/post-commit +1 -1
- package/.opencode/init.sh +2 -2
- package/AGENTS.md +1 -1
- package/README.md +2 -2
- package/dist/AGENTS.md +1 -1
- package/dist/CHANGELOG.md +10 -0
- package/dist/README.md +2 -2
- package/dist/analytics/routing-refiner.js +1 -1
- package/dist/benchmark/performance-benchmark.d.ts +2 -2
- package/dist/benchmark/performance-benchmark.js +3 -3
- package/dist/cli/commands/hermes-install.js +4 -4
- package/dist/cli/commands/mcp-install.js +1 -1
- package/dist/cli/commands/openclaw-install.js +1 -1
- package/dist/cli/commands/plugin-commands.js +2 -2
- package/dist/cli/commands/publish-agent.js +5 -5
- package/dist/cli/commands/skill-install.js +1 -1
- package/dist/cli/commands/status.js +3 -3
- package/dist/cli/commands/storyteller.js +2 -2
- package/dist/cli/index.js +8 -8
- package/dist/cli/server.js +1 -1
- package/dist/core/agent-spawn-gate.d.ts +1 -1
- package/dist/core/agent-spawn-gate.js +1 -1
- package/dist/core/boot-orchestrator.d.ts +4 -4
- package/dist/core/boot-orchestrator.js +27 -27
- package/dist/core/bridge.mjs +22 -22
- package/dist/core/codex-formatter.js +2 -2
- package/dist/core/codex-injector.d.ts +4 -3
- package/dist/core/codex-injector.js +11 -10
- package/dist/core/config-loader.d.ts +5 -4
- package/dist/core/config-loader.js +4 -2
- package/dist/core/config-paths.d.ts +9 -8
- package/dist/core/config-paths.js +24 -23
- package/dist/core/context-loader.d.ts +4 -3
- package/dist/core/context-loader.js +7 -5
- package/dist/core/features-config.js +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/orchestrator.d.ts +1 -0
- package/dist/core/orchestrator.js +3 -2
- package/dist/core/system-prompt-generator.js +2 -2
- package/dist/core/xray-activation.d.ts +4 -4
- package/dist/core/xray-activation.js +29 -24
- package/dist/delegation/agent-delegator.d.ts +3 -3
- package/dist/delegation/agent-delegator.js +3 -3
- package/dist/delegation/metrics-aggregator.d.ts +11 -11
- package/dist/delegation/session-coordinator.d.ts +3 -3
- package/dist/delegation/voting-coordinator.d.ts +3 -3
- package/dist/enforcement/enforcer-tools.js +2 -2
- package/dist/enforcement/loaders/codex-loader.d.ts +1 -1
- package/dist/enforcement/loaders/codex-loader.js +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/inference/deploy-verifier.js +1 -1
- package/dist/inference/inference-cycle.js +7 -7
- package/dist/integrations/base/README.md +2 -2
- package/dist/integrations/governance/index.js +1 -1
- package/dist/integrations/grok/grok-cli.d.ts +1 -1
- package/dist/integrations/grok/grok-cli.js +6 -6
- package/dist/integrations/grok/hooks/pre-tool-use.js +1 -1
- package/dist/integrations/grok/plugin/0xray/.mcp.json +3 -3
- package/dist/integrations/grok/plugin/0xray/hooks/hooks.json +2 -2
- package/dist/integrations/hermes-agent/__init__.py +77 -71
- package/dist/integrations/hermes-agent/__pycache__/__init__.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/conftest.cpython-313-pytest-9.0.2.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/schemas.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/test_plugin.cpython-313-pytest-9.0.2.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/test_plugin.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/tools.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/after-install.md +14 -14
- package/dist/integrations/hermes-agent/bridge.mjs +14 -14
- package/dist/integrations/hermes-agent/logs/framework/routing-outcomes.json +1 -0
- package/dist/integrations/hermes-agent/plugin.yaml +5 -5
- package/dist/integrations/hermes-agent/schemas.py +12 -12
- package/dist/integrations/hermes-agent/test_plugin.py +128 -125
- package/dist/integrations/hermes-agent/tools.py +85 -23
- package/dist/integrations/openclaw/README.md +16 -16
- package/dist/integrations/openclaw/api-server.d.ts +4 -4
- package/dist/integrations/openclaw/api-server.js +9 -9
- package/dist/integrations/openclaw/config.js +1 -1
- package/dist/integrations/openclaw/hooks/{strray-hooks.d.ts → xray-hooks.d.ts} +4 -4
- package/dist/integrations/openclaw/index.d.ts +4 -4
- package/dist/integrations/openclaw/index.js +4 -4
- package/dist/integrations/openclaw/types.d.ts +1 -1
- package/dist/integrations/plugins/plugin-registry.js +2 -2
- package/dist/mcps/architect-tools.server.d.ts +2 -2
- package/dist/mcps/architect-tools.server.js +4 -4
- package/dist/mcps/auto-format.server.d.ts +2 -2
- package/dist/mcps/auto-format.server.js +4 -4
- package/dist/mcps/boot-orchestrator.server.d.ts +2 -2
- package/dist/mcps/boot-orchestrator.server.js +4 -4
- package/dist/mcps/config/server-config-registry.d.ts +1 -1
- package/dist/mcps/config/server-config-registry.js +7 -7
- package/dist/mcps/connection/mcp-connection.js +1 -1
- package/dist/mcps/enforcer-tools.server.d.ts +2 -2
- package/dist/mcps/enforcer-tools.server.js +4 -4
- package/dist/mcps/estimation.server.js +1 -1
- package/dist/mcps/framework-compliance-audit.server.d.ts +2 -2
- package/dist/mcps/framework-compliance-audit.server.js +4 -4
- package/dist/mcps/framework-help.server.js +7 -7
- package/dist/mcps/governance.server.js +1 -1
- package/dist/mcps/in-process-skill-registry.js +6 -6
- package/dist/mcps/knowledge-skills/api-design.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/api-design.server.js +4 -4
- package/dist/mcps/knowledge-skills/architecture-patterns.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/architecture-patterns.server.js +4 -4
- package/dist/mcps/knowledge-skills/bug-triage-specialist.server.js +1 -1
- package/dist/mcps/knowledge-skills/code-analyzer.server.js +1 -1
- package/dist/mcps/knowledge-skills/code-review.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/code-review.server.js +4 -4
- package/dist/mcps/knowledge-skills/content-creator.server.js +1 -1
- package/dist/mcps/knowledge-skills/database-design.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/database-design.server.js +4 -4
- package/dist/mcps/knowledge-skills/devops-deployment.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/devops-deployment.server.js +4 -4
- package/dist/mcps/knowledge-skills/git-workflow.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/git-workflow.server.js +4 -4
- package/dist/mcps/knowledge-skills/growth-strategist.server.js +1 -1
- package/dist/mcps/knowledge-skills/log-monitor.server.js +1 -1
- package/dist/mcps/knowledge-skills/mobile-development.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/mobile-development.server.js +4 -4
- package/dist/mcps/knowledge-skills/multimodal-looker.server.js +1 -1
- package/dist/mcps/knowledge-skills/performance-optimization.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/performance-optimization.server.js +4 -4
- package/dist/mcps/knowledge-skills/project-analysis.server.js +1 -1
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.js +4 -4
- package/dist/mcps/knowledge-skills/security-audit.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/security-audit.server.js +4 -4
- package/dist/mcps/knowledge-skills/seo-consultant.server.js +1 -1
- package/dist/mcps/knowledge-skills/session-management.server.js +1 -1
- package/dist/mcps/knowledge-skills/skill-invocation.server.js +1 -1
- package/dist/mcps/knowledge-skills/strategist.server.js +1 -1
- package/dist/mcps/knowledge-skills/tech-writer.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/tech-writer.server.js +5 -5
- package/dist/mcps/knowledge-skills/testing-best-practices.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/testing-best-practices.server.js +4 -4
- package/dist/mcps/knowledge-skills/testing-strategy.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/testing-strategy.server.js +4 -4
- package/dist/mcps/knowledge-skills/ui-ux-design.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/ui-ux-design.server.js +6 -6
- package/dist/mcps/lint.server.d.ts +2 -2
- package/dist/mcps/lint.server.js +6 -6
- package/dist/mcps/mcp-client.js +3 -3
- package/dist/mcps/model-health-check.server.d.ts +2 -2
- package/dist/mcps/model-health-check.server.js +4 -4
- package/dist/mcps/orchestrator/server.js +2 -2
- package/dist/mcps/performance-analysis.server.d.ts +2 -2
- package/dist/mcps/performance-analysis.server.js +4 -4
- package/dist/mcps/processor-pipeline.server.d.ts +2 -2
- package/dist/mcps/processor-pipeline.server.js +4 -4
- package/dist/mcps/registry.json +1 -1
- package/dist/mcps/researcher.server.d.ts +3 -3
- package/dist/mcps/researcher.server.js +5 -5
- package/dist/mcps/security-scan.server.d.ts +2 -2
- package/dist/mcps/security-scan.server.js +4 -4
- package/dist/mcps/simulation/server-simulations.js +3 -3
- package/dist/mcps/state-manager.server.js +1 -1
- package/dist/metrics/agent-metrics.d.ts +4 -4
- package/dist/metrics/agent-metrics.js +1 -1
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.d.ts +2 -2
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.js +2 -2
- package/dist/orchestrator/intelligent-commit-batcher.d.ts +1 -1
- package/dist/orchestrator/intelligent-commit-batcher.js +3 -3
- package/dist/orchestrator/multi-agent-orchestration-coordinator.d.ts +3 -3
- package/dist/orchestrator/multi-agent-orchestration-coordinator.js +9 -9
- package/dist/orchestrator/orchestrator.d.ts +3 -2
- package/dist/orchestrator/orchestrator.js +8 -6
- package/dist/orchestrator/universal-registry-bridge.js +1 -1
- package/dist/plugin/xray-codex-injection.d.ts +1 -1
- package/dist/plugin/xray-codex-injection.js +8 -7
- package/dist/postprocessor/PostProcessor.d.ts +2 -2
- package/dist/postprocessor/PostProcessor.js +1 -1
- package/dist/postprocessor/monitoring/MonitoringEngine.d.ts +2 -2
- package/dist/postprocessor/services/RegressionAnalysisService.js +2 -2
- package/dist/postprocessor/triggers/GitHookTrigger.js +14 -14
- package/dist/processors/implementations/agents-md-validation-processor.js +2 -2
- package/dist/processors/implementations/inference-improvement-processor.js +2 -2
- package/dist/processors/implementations/log-protection-processor.d.ts +1 -1
- package/dist/processors/implementations/log-protection-processor.js +2 -2
- package/dist/processors/implementations/publish-preflight-processor.d.ts +1 -1
- package/dist/processors/implementations/publish-preflight-processor.js +3 -3
- package/dist/processors/implementations/regression-testing-processor.js +2 -2
- package/dist/processors/implementations/session-summary-processor.js +2 -2
- package/dist/processors/implementations/storytelling-trigger-processor.js +2 -2
- package/dist/processors/processor-manager.d.ts +2 -2
- package/dist/public/about.html +6 -6
- package/dist/public/enterprise.html +1 -1
- package/dist/public/features.html +2 -2
- package/dist/public/index.html +4 -4
- package/dist/reporting/report-formatter.js +1 -1
- package/dist/scripts/activate-kernel-pipeline.js +2 -2
- package/dist/scripts/pre-command +1 -1
- package/dist/services/inference-tuner.js +2 -2
- package/dist/session/session-cleanup-manager.d.ts +3 -3
- package/dist/session/session-monitor.d.ts +3 -3
- package/dist/session/session-state-manager.d.ts +3 -3
- package/dist/skills/hermes-agent/SKILL.md +12 -12
- package/dist/skills/registry.json +1 -1
- package/dist/skills/storyteller/SKILL.md +1 -1
- package/dist/skills/xray-orchestrator/SKILL.md +141 -0
- package/dist/skills/xray-orchestrator/index.d.ts +13 -0
- package/dist/skills/xray-orchestrator/index.js +224 -0
- package/dist/state/index.d.ts +2 -1
- package/dist/state/index.js +2 -1
- package/dist/state/state-manager.d.ts +2 -2
- package/dist/state/state-manager.js +5 -4
- package/dist/utils/import-resolver.js +1 -1
- package/dist/utils/path-resolver.js +2 -2
- package/dist/utils/token-manager.js +1 -1
- package/dist/validation/estimation-validator.js +1 -1
- package/package.json +2 -2
- package/scripts/hooks/pre-command +1 -1
- package/scripts/hooks/run-hook.js +2 -2
- package/scripts/node/auto-reflection-generator.mjs +2 -2
- package/scripts/node/postinstall.cjs +1 -1
- package/scripts/node/pre-publish-guard.js +16 -10
- package/scripts/node/release.js +6 -6
- package/scripts/node/release.mjs +11 -11
- package/scripts/node/universal-version-manager.js +2 -2
- package/scripts/node/version-manager.mjs +1 -1
- package/src/integrations/grok/plugin/0xray/.mcp.json +3 -3
- package/src/integrations/grok/plugin/0xray/hooks/hooks.json +2 -2
- package/src/mcps/architect-tools.server.ts +4 -4
- package/src/mcps/auto-format.server.ts +4 -4
- package/src/mcps/boot-orchestrator.server.ts +4 -4
- package/src/mcps/config/server-config-registry.ts +7 -7
- package/src/mcps/connection/mcp-connection.ts +1 -1
- package/src/mcps/enforcer-tools.server.ts +4 -4
- package/src/mcps/estimation.server.ts +1 -1
- package/src/mcps/framework-compliance-audit.server.ts +4 -4
- package/src/mcps/framework-help.server.ts +7 -7
- package/src/mcps/governance.server.ts +1 -1
- package/src/mcps/in-process-skill-registry.ts +6 -6
- package/src/mcps/knowledge-skills/api-design.server.test.ts +8 -8
- package/src/mcps/knowledge-skills/api-design.server.ts +4 -4
- package/src/mcps/knowledge-skills/architecture-patterns.server.ts +4 -4
- package/src/mcps/knowledge-skills/bug-triage-specialist.server.ts +1 -1
- package/src/mcps/knowledge-skills/code-analyzer.server.ts +1 -1
- package/src/mcps/knowledge-skills/code-review.server.ts +4 -4
- package/src/mcps/knowledge-skills/content-creator.server.ts +1 -1
- package/src/mcps/knowledge-skills/database-design.server.ts +4 -4
- package/src/mcps/knowledge-skills/devops-deployment.server.ts +4 -4
- package/src/mcps/knowledge-skills/git-workflow.server.ts +4 -4
- package/src/mcps/knowledge-skills/growth-strategist.server.ts +1 -1
- package/src/mcps/knowledge-skills/log-monitor.server.ts +1 -1
- package/src/mcps/knowledge-skills/mobile-development.server.ts +4 -4
- package/src/mcps/knowledge-skills/multimodal-looker.server.ts +1 -1
- package/src/mcps/knowledge-skills/performance-optimization.server.ts +4 -4
- package/src/mcps/knowledge-skills/project-analysis.server.ts +1 -1
- package/src/mcps/knowledge-skills/refactoring-strategies.server.ts +4 -4
- package/src/mcps/knowledge-skills/security-audit.server.test.ts +23 -23
- package/src/mcps/knowledge-skills/security-audit.server.ts +4 -4
- package/src/mcps/knowledge-skills/seo-consultant.server.ts +1 -1
- package/src/mcps/knowledge-skills/session-management.server.ts +1 -1
- package/src/mcps/knowledge-skills/skill-invocation.server.ts +1 -1
- package/src/mcps/knowledge-skills/strategist.server.ts +1 -1
- package/src/mcps/knowledge-skills/tech-writer.server.ts +5 -5
- package/src/mcps/knowledge-skills/testing-best-practices.server.test.ts +28 -28
- package/src/mcps/knowledge-skills/testing-best-practices.server.ts +4 -4
- package/src/mcps/knowledge-skills/testing-strategy.server.test.ts +19 -19
- package/src/mcps/knowledge-skills/testing-strategy.server.ts +4 -4
- package/src/mcps/knowledge-skills/ui-ux-design.server.ts +6 -6
- package/src/mcps/lint.server.ts +6 -6
- package/src/mcps/mcp-client.ts +3 -3
- package/src/mcps/model-health-check.server.ts +4 -4
- package/src/mcps/orchestrator/server.ts +2 -2
- package/src/mcps/performance-analysis.server.ts +4 -4
- package/src/mcps/processor-pipeline.server.ts +4 -4
- package/src/mcps/registry.json +1 -1
- package/src/mcps/researcher.server.ts +5 -5
- package/src/mcps/security-scan.server.ts +4 -4
- package/src/mcps/simulation/server-simulations.ts +3 -3
- package/src/mcps/state-manager.server.ts +1 -1
- package/src/opencode/codex.codex +1 -1
- package/src/opencode/commands/dependency-audit.md +3 -3
- package/src/opencode/enforcer-config.json +2 -2
- package/src/skills/hermes-agent/SKILL.md +12 -12
- package/src/skills/registry.json +1 -1
- package/src/skills/storyteller/SKILL.md +1 -1
- package/src/skills/xray-orchestrator/SKILL.md +141 -0
- package/src/skills/xray-orchestrator/index.ts +268 -0
- package/scripts/validate-stringray-comprehensive.js +0 -636
- /package/dist/integrations/openclaw/hooks/{strray-hooks.js → xray-hooks.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
2
2
|
import { ProcessorRegistration, ProcessorHook } from "./processor-types.js";
|
|
3
3
|
import { IProcessor } from "./processor-interfaces.js";
|
|
4
4
|
export interface StaggerPolicy {
|
|
@@ -48,7 +48,7 @@ export declare class ProcessorManager {
|
|
|
48
48
|
private activeProcessors;
|
|
49
49
|
private factories;
|
|
50
50
|
private lastExecutionTime;
|
|
51
|
-
constructor(stateManager:
|
|
51
|
+
constructor(stateManager: XrayStateManager);
|
|
52
52
|
registerProcessorInstance(processor: IProcessor): boolean;
|
|
53
53
|
discoverProcessors(directory?: string): Promise<string[]>;
|
|
54
54
|
private instantiateWithDeps;
|
package/dist/public/about.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>About
|
|
6
|
+
<title>About 0xRay - Enterprise AI Orchestration</title>
|
|
7
7
|
<style>
|
|
8
8
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
9
9
|
body {
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
<div class="container">
|
|
114
114
|
<header>
|
|
115
115
|
<span class="version">v1.4.20</span>
|
|
116
|
-
<h1>
|
|
116
|
+
<h1>0xRay</h1>
|
|
117
117
|
<p class="tagline">Enterprise AI Orchestration Framework</p>
|
|
118
118
|
</header>
|
|
119
119
|
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
</div>
|
|
142
142
|
|
|
143
143
|
<section class="section">
|
|
144
|
-
<h2>🎯 What is
|
|
145
|
-
<p>
|
|
144
|
+
<h2>🎯 What is 0xRay?</h2>
|
|
145
|
+
<p>0xRay is an enterprise-grade AI orchestration framework that provides intelligent task routing, systematic error prevention, and comprehensive monitoring for AI-driven development workflows.</p>
|
|
146
146
|
</section>
|
|
147
147
|
|
|
148
148
|
<section class="section">
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
<h2>🔄 8 Pipeline System</h2>
|
|
192
192
|
<div class="pipeline-diagram">
|
|
193
193
|
┌─────────────────────────────────────────────────────────────────┐
|
|
194
|
-
│
|
|
194
|
+
│ 0XRAY FRAMEWORK v1.4.20 │
|
|
195
195
|
├─────────────────────────────────────────────────────────────────┤
|
|
196
196
|
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────┐ │
|
|
197
197
|
│ │ INIT │─▶│ AGENT │─▶│ RULE │─▶│ POST │ │
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
</section>
|
|
221
221
|
|
|
222
222
|
<footer>
|
|
223
|
-
<p>
|
|
223
|
+
<p>0xRay Framework © 2026 | Built for Enterprise AI Orchestration</p>
|
|
224
224
|
<p style="margin-top: 10px; color: #6e7681;">338 logging points | 51 core files | JobId tracking enabled</p>
|
|
225
225
|
</footer>
|
|
226
226
|
</div>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Enterprise -
|
|
6
|
+
<title>Enterprise - 0xRay</title>
|
|
7
7
|
<style>
|
|
8
8
|
body { margin: 0; padding: 0; background: #0a0a0f; color: #e0e0e0; font-family: system-ui, sans-serif; }
|
|
9
9
|
.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
6
|
+
<title>0xRay - Features</title>
|
|
7
7
|
<style>
|
|
8
8
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
9
9
|
body {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<body>
|
|
57
57
|
<div class="container">
|
|
58
58
|
<header>
|
|
59
|
-
<h1>
|
|
59
|
+
<h1>0xRay Features</h1>
|
|
60
60
|
<p class="subtitle">Enterprise AI Orchestration Platform</p>
|
|
61
61
|
</header>
|
|
62
62
|
|
package/dist/public/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>⚡
|
|
6
|
+
<title>⚡ 0xRay Dashboard</title>
|
|
7
7
|
<style>
|
|
8
8
|
body {
|
|
9
9
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
<body>
|
|
82
82
|
<div class="container">
|
|
83
83
|
<div class="header">
|
|
84
|
-
<h1>⚡
|
|
85
|
-
<p>AI
|
|
84
|
+
<h1>⚡ 0xRay</h1>
|
|
85
|
+
<p>Self-Healing AI Governance OS - Production-Ready Code, No Dead Ends</p>
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
88
|
<div class="grid">
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
123
|
<div class="footer">
|
|
124
|
-
<p>🛡️
|
|
124
|
+
<p>🛡️ 0xRay - Self-Healing, Governed, Autonomous: Catch AI Mistakes Before They Ship</p>
|
|
125
125
|
</div>
|
|
126
126
|
</div>
|
|
127
127
|
|
|
@@ -98,7 +98,7 @@ ${data.recommendations.map((rec) => `- ${rec}`).join("\n")}
|
|
|
98
98
|
4. **Performance Monitoring**: Track rule enforcement effectiveness metrics
|
|
99
99
|
|
|
100
100
|
---
|
|
101
|
-
*Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; primary xray paths + XRAY_||STRRAY_ env + .
|
|
101
|
+
*Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; primary xray paths + XRAY_||STRRAY_ env + .xray fallbacks)*
|
|
102
102
|
*Framework Status: Operational*
|
|
103
103
|
`;
|
|
104
104
|
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Observes the full pipeline in action.
|
|
6
6
|
*/
|
|
7
7
|
import { AgentDelegator } from '../delegation/agent-delegator.js';
|
|
8
|
-
import {
|
|
8
|
+
import { XrayStateManager } from '../state/state-manager.js';
|
|
9
9
|
import { strRayConfigLoader } from '../core/config-loader.js';
|
|
10
10
|
import { routingOutcomeTracker } from '../delegation/analytics/outcome-tracker.js';
|
|
11
11
|
import { patternPerformanceTracker } from '../analytics/pattern-performance-tracker.js';
|
|
12
|
-
const stateManager = new
|
|
12
|
+
const stateManager = new XrayStateManager();
|
|
13
13
|
const delegator = new AgentDelegator(stateManager, strRayConfigLoader);
|
|
14
14
|
console.log('=== KERNEL PIPELINE ACTIVATION TEST ===\n');
|
|
15
15
|
// Test cases designed to trigger kernel patterns
|
package/dist/scripts/pre-command
CHANGED
|
@@ -181,9 +181,9 @@ export class InferenceTuner {
|
|
|
181
181
|
*/
|
|
182
182
|
resolveMappingsPath() {
|
|
183
183
|
const candidates = [
|
|
184
|
-
path.resolve(process.cwd(), ".
|
|
184
|
+
path.resolve(process.cwd(), ".xray/routing-mappings.json"),
|
|
185
185
|
path.resolve(process.cwd(), "xray/routing-mappings.json"),
|
|
186
|
-
path.resolve(process.cwd(), ".opencode/
|
|
186
|
+
path.resolve(process.cwd(), ".opencode/xray/routing-mappings.json"),
|
|
187
187
|
path.resolve(process.cwd(), "routing-mappings.json"),
|
|
188
188
|
];
|
|
189
189
|
for (const p of candidates) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @version 1.0.0
|
|
8
8
|
* @since 2026-01-07
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
11
11
|
import { SessionMonitor } from "./session-monitor.js";
|
|
12
12
|
export interface SessionMetadata {
|
|
13
13
|
sessionId: string;
|
|
@@ -39,7 +39,7 @@ export declare class SessionCleanupManager {
|
|
|
39
39
|
private _sessionMetadata?;
|
|
40
40
|
private _metadataLoaded;
|
|
41
41
|
private sessionMonitor;
|
|
42
|
-
constructor(stateManager:
|
|
42
|
+
constructor(stateManager: XrayStateManager, config?: Partial<CleanupConfig>, sessionMonitor?: SessionMonitor);
|
|
43
43
|
/**
|
|
44
44
|
* Lazy-loaded session metadata - loads from state manager on first access
|
|
45
45
|
*/
|
|
@@ -115,4 +115,4 @@ export declare class SessionCleanupManager {
|
|
|
115
115
|
*/
|
|
116
116
|
shutdown(): void;
|
|
117
117
|
}
|
|
118
|
-
export declare const createSessionCleanupManager: (stateManager:
|
|
118
|
+
export declare const createSessionCleanupManager: (stateManager: XrayStateManager, config?: Partial<CleanupConfig>, sessionMonitor?: SessionMonitor) => SessionCleanupManager;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @version 1.0.0
|
|
8
8
|
* @since 2026-01-07
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
11
11
|
import { SessionCoordinator } from "../delegation/session-coordinator.js";
|
|
12
12
|
import { SessionCleanupManager } from "./session-cleanup-manager.js";
|
|
13
13
|
export interface SessionHealth {
|
|
@@ -75,7 +75,7 @@ export declare class SessionMonitor {
|
|
|
75
75
|
private interactionHistory;
|
|
76
76
|
private sessionResponseTimes;
|
|
77
77
|
private sessionErrors;
|
|
78
|
-
constructor(stateManager:
|
|
78
|
+
constructor(stateManager: XrayStateManager, sessionCoordinator: SessionCoordinator, cleanupManager: SessionCleanupManager, config?: Partial<MonitorConfig>);
|
|
79
79
|
start(): void;
|
|
80
80
|
registerSession(sessionId: string): void;
|
|
81
81
|
unregisterSession(sessionId: string): void;
|
|
@@ -130,4 +130,4 @@ export declare class SessionMonitor {
|
|
|
130
130
|
private countSessionConflicts;
|
|
131
131
|
private calculateAverageResponseTime;
|
|
132
132
|
}
|
|
133
|
-
export declare const createSessionMonitor: (stateManager:
|
|
133
|
+
export declare const createSessionMonitor: (stateManager: XrayStateManager, sessionCoordinator: SessionCoordinator, cleanupManager: SessionCleanupManager, config?: Partial<MonitorConfig>) => SessionMonitor;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @version 1.0.0
|
|
8
8
|
* @since 2026-01-07
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
11
11
|
import { SessionCoordinator } from "../delegation/session-coordinator.js";
|
|
12
12
|
export interface SessionDependency {
|
|
13
13
|
sessionId: string;
|
|
@@ -49,7 +49,7 @@ export declare class SessionStateManager {
|
|
|
49
49
|
private dependencies;
|
|
50
50
|
private sessionGroups;
|
|
51
51
|
private failoverConfigs;
|
|
52
|
-
constructor(stateManager:
|
|
52
|
+
constructor(stateManager: XrayStateManager, sessionCoordinator: SessionCoordinator);
|
|
53
53
|
/**
|
|
54
54
|
* Share state between sessions
|
|
55
55
|
*/
|
|
@@ -142,4 +142,4 @@ export declare class SessionStateManager {
|
|
|
142
142
|
private persistFailoverConfigs;
|
|
143
143
|
shutdown(): void;
|
|
144
144
|
}
|
|
145
|
-
export declare const createSessionStateManager: (stateManager:
|
|
145
|
+
export declare const createSessionStateManager: (stateManager: XrayStateManager, sessionCoordinator: SessionCoordinator) => SessionStateManager;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hermes-agent
|
|
3
|
-
description: Manage
|
|
3
|
+
description: Manage 0xRay framework from Hermes Agent via the native strray-hermes plugin. Covers the 4 plugin tools (validate, codex_check, health, hooks), lifecycle hooks, slash commands, bridge architecture, and CLI fallback.
|
|
4
4
|
version: 2.1.0
|
|
5
|
-
author:
|
|
5
|
+
author: 0xRay AI
|
|
6
6
|
metadata:
|
|
7
7
|
hermes:
|
|
8
|
-
tags: [
|
|
8
|
+
tags: [0xRay, Plugin, Validation, Codex, GitHooks, Bridge]
|
|
9
9
|
related_skills: []
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
#
|
|
12
|
+
# 0xRay Hermes Plugin (strray-hermes)
|
|
13
13
|
|
|
14
|
-
Native Hermes plugin providing
|
|
14
|
+
Native Hermes plugin providing 0xRay framework integration — quality gates, codex enforcement, git hooks, and full pre/post processing pipeline. Runs via a Node.js bridge to compiled framework components.
|
|
15
15
|
|
|
16
16
|
## When to Use
|
|
17
17
|
|
|
18
|
-
- User asks about
|
|
18
|
+
- User asks about 0xRay health, validation, or codex checks
|
|
19
19
|
- User wants to install/manage git hooks for automated enforcement
|
|
20
20
|
- User asks about the plugin's tools, hooks, or slash commands
|
|
21
21
|
- User asks about bridge errors or framework not loading
|
|
@@ -28,7 +28,7 @@ Native Hermes plugin providing StringRay framework integration — quality gates
|
|
|
28
28
|
├── __init__.py # Plugin registration, hooks, slash commands
|
|
29
29
|
├── tools.py # 4 tool handlers (validate, codex_check, health, hooks)
|
|
30
30
|
├── schemas.py # JSON schemas the LLM sees
|
|
31
|
-
├── bridge.mjs # Node.js bridge to compiled
|
|
31
|
+
├── bridge.mjs # Node.js bridge to compiled 0xRay framework
|
|
32
32
|
├── plugin.yaml # Plugin metadata (name, version, tools, hooks)
|
|
33
33
|
├── types.py # TypeScript-equivalent type definitions
|
|
34
34
|
├── after-install.md # Post-install instructions
|
|
@@ -43,7 +43,7 @@ Native Hermes plugin providing StringRay framework integration — quality gates
|
|
|
43
43
|
|
|
44
44
|
**Fallback:** When bridge is unavailable, tools fall back to `npx 0xray` CLI commands.
|
|
45
45
|
|
|
46
|
-
**Config path resolution:** `STRRAY_CONFIG_DIR/` > `.
|
|
46
|
+
**Config path resolution:** `STRRAY_CONFIG_DIR/` > `.xray/` > `.opencode/xray/` > built-in defaults.
|
|
47
47
|
|
|
48
48
|
## 4 Tools
|
|
49
49
|
|
|
@@ -90,7 +90,7 @@ Returns: framework status, version, component availability, node version.
|
|
|
90
90
|
|
|
91
91
|
### strray_hooks
|
|
92
92
|
|
|
93
|
-
Manage
|
|
93
|
+
Manage 0xRay git hooks (install, uninstall, list, status).
|
|
94
94
|
|
|
95
95
|
```
|
|
96
96
|
strray_hooks(action="install")
|
|
@@ -122,7 +122,7 @@ Fires before ANY tool executes:
|
|
|
122
122
|
1. Tracks session stats
|
|
123
123
|
2. Logs tool-start event to `logs/framework/plugin-tool-events.log`
|
|
124
124
|
3. For code-producing tools (write_file, patch, execute_code, write, edit): runs quality gate + pre-processors via bridge
|
|
125
|
-
4. For other tools: nudges when a
|
|
125
|
+
4. For other tools: nudges when a 0xRay MCP alternative exists (e.g., grep → search_codebase, eslint → strray_lint)
|
|
126
126
|
|
|
127
127
|
### post_tool_call
|
|
128
128
|
|
|
@@ -164,7 +164,7 @@ All logs go to `logs/framework/` in the project root:
|
|
|
164
164
|
|
|
165
165
|
| User Says | Tool / Command |
|
|
166
166
|
|----------|---------------|
|
|
167
|
-
| "Is
|
|
167
|
+
| "Is 0xRay working?" | `strray_health()` or `/strray status` |
|
|
168
168
|
| "Check these files before I commit" | `strray_validate(files=[...], operation="commit")` |
|
|
169
169
|
| "Is this code codex compliant?" | `strray_codex_check(code=..., operation="create")` |
|
|
170
170
|
| "Set up git hooks" | `strray_hooks(action="install")` |
|
|
@@ -208,5 +208,5 @@ The plugin's pre_tool_call hook nudges when an MCP alternative exists (e.g., "us
|
|
|
208
208
|
- CLI fallback requires `npx 0xray` in PATH. If bridge fails and CLI isn't available, tools return errors.
|
|
209
209
|
- Quality gate blocks are logged but NOT enforced (advisory). The tool returns violations; the agent decides what to do.
|
|
210
210
|
- Git hooks use symlinks from `.git/hooks/` → `hooks/`. If the `hooks/` directory doesn't exist in the project, `strray_hooks(action="install")` skips those hooks.
|
|
211
|
-
- Project root detection walks up from CWD looking for `node_modules/0xray`, `.opencode/
|
|
211
|
+
- Project root detection walks up from CWD looking for `node_modules/0xray`, `.opencode/xray/features.json`, or `package.json`. Override with `STRRAY_PROJECT_ROOT` env var.
|
|
212
212
|
- `logs/framework/` is created automatically. Never breaks the agent if permissions fail.
|
|
@@ -96,7 +96,7 @@ codex_terms: [5, 7, 32] # Related Codex term numbers
|
|
|
96
96
|
```markdown
|
|
97
97
|
## What Next?
|
|
98
98
|
|
|
99
|
-
- Related Codex terms: [codex.json](../../.opencode/
|
|
99
|
+
- Related Codex terms: [codex.json](../../.opencode/xray/codex.json)
|
|
100
100
|
- Next story to write: [suggestion]
|
|
101
101
|
```
|
|
102
102
|
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: xray-orchestrator
|
|
3
|
+
description: |
|
|
4
|
+
Main orchestration skill for xray agents.
|
|
5
|
+
Provides commands to coordinate agent work and invoke xray APIs
|
|
6
|
+
through the local HTTP API server.
|
|
7
|
+
metadata:
|
|
8
|
+
openclaw:
|
|
9
|
+
primaryEnv: XRAY_API_KEY
|
|
10
|
+
emoji: 🤖
|
|
11
|
+
author: xray
|
|
12
|
+
tags:
|
|
13
|
+
- ai
|
|
14
|
+
- orchestration
|
|
15
|
+
- agent
|
|
16
|
+
user-invocable: true
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# xray Orchestrator Commands
|
|
20
|
+
|
|
21
|
+
## /xray
|
|
22
|
+
|
|
23
|
+
Display xray status and available commands.
|
|
24
|
+
|
|
25
|
+
**Usage:** `/xray`
|
|
26
|
+
|
|
27
|
+
**Example:**
|
|
28
|
+
```
|
|
29
|
+
/xray
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## /xray-status
|
|
33
|
+
|
|
34
|
+
Get detailed status of xray integration including connection status.
|
|
35
|
+
|
|
36
|
+
**Usage:** `/xray-status`
|
|
37
|
+
|
|
38
|
+
**Example:**
|
|
39
|
+
```
|
|
40
|
+
/xray-status
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## /xray-analyze
|
|
44
|
+
|
|
45
|
+
Analyze code using xray code analysis capabilities.
|
|
46
|
+
|
|
47
|
+
**Usage:** `/xray-analyze <file-path>`
|
|
48
|
+
|
|
49
|
+
**Arguments:**
|
|
50
|
+
- `file-path`: Path to file to analyze (required)
|
|
51
|
+
|
|
52
|
+
**Example:**
|
|
53
|
+
```
|
|
54
|
+
/xray-analyze src/index.ts
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## /xray-code
|
|
58
|
+
|
|
59
|
+
Perform code review on a file.
|
|
60
|
+
|
|
61
|
+
**Usage:** `/xray-code <file-path> [options]`
|
|
62
|
+
|
|
63
|
+
**Arguments:**
|
|
64
|
+
- `file-path`: Path to file to review (required)
|
|
65
|
+
- `--fix`: Attempt to fix issues automatically (optional)
|
|
66
|
+
|
|
67
|
+
**Example:**
|
|
68
|
+
```
|
|
69
|
+
/xray-code src/utils/helper.ts
|
|
70
|
+
/xray-code src/utils/helper.ts --fix
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## /xray-file
|
|
74
|
+
|
|
75
|
+
Read file using xray file tools.
|
|
76
|
+
|
|
77
|
+
**Usage:** `/xray-file <file-path> [line-start:line-end]`
|
|
78
|
+
|
|
79
|
+
**Arguments:**
|
|
80
|
+
- `file-path`: Path to file to read (required)
|
|
81
|
+
- `line-start:line-end`: Line range to read (optional)
|
|
82
|
+
|
|
83
|
+
**Example:**
|
|
84
|
+
```
|
|
85
|
+
/xray-file src/index.ts
|
|
86
|
+
/xray-file src/index.ts 1:50
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## /xray-exec
|
|
90
|
+
|
|
91
|
+
Execute arbitrary xray command or script.
|
|
92
|
+
|
|
93
|
+
**Usage:** `/xray-exec <command>`
|
|
94
|
+
|
|
95
|
+
**Arguments:**
|
|
96
|
+
- `command`: Command to execute (required)
|
|
97
|
+
|
|
98
|
+
**Example:**
|
|
99
|
+
```
|
|
100
|
+
/xray-exec list files src/
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## /xray-help
|
|
104
|
+
|
|
105
|
+
Show this help message.
|
|
106
|
+
|
|
107
|
+
**Usage:** `/xray-help [command]`
|
|
108
|
+
|
|
109
|
+
**Arguments:**
|
|
110
|
+
- `command`: Specific command to get help for (optional)
|
|
111
|
+
|
|
112
|
+
**Example:**
|
|
113
|
+
```
|
|
114
|
+
/xray-help
|
|
115
|
+
/xray-help xray-analyze
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
# Implementation Notes
|
|
119
|
+
|
|
120
|
+
This skill acts as the main interface between OpenClaw channels and xray agents.
|
|
121
|
+
It processes user commands and forwards them to the xray API server running on localhost:18431.
|
|
122
|
+
|
|
123
|
+
## API Endpoints
|
|
124
|
+
|
|
125
|
+
- `POST /api/agent/invoke` - Invoke xray agent
|
|
126
|
+
- `GET /api/agent/status` - Get agent status
|
|
127
|
+
- `GET /health` - Health check
|
|
128
|
+
|
|
129
|
+
## Authentication
|
|
130
|
+
|
|
131
|
+
The skill reads the `XRAY_API_KEY` environment variable for authentication.
|
|
132
|
+
|
|
133
|
+
## Error Handling
|
|
134
|
+
|
|
135
|
+
All errors are caught and formatted as user-friendly messages.
|
|
136
|
+
Detailed error information is logged for debugging.
|
|
137
|
+
|
|
138
|
+
# Dependencies
|
|
139
|
+
|
|
140
|
+
- xray API server running on localhost:18431
|
|
141
|
+
- XRAY_API_KEY environment variable
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* xray Orchestrator Skill
|
|
3
|
+
*
|
|
4
|
+
* OpenClaw skill that provides xray orchestration commands.
|
|
5
|
+
*
|
|
6
|
+
* @version 1.0.0
|
|
7
|
+
* @since 2026-03-14
|
|
8
|
+
*/
|
|
9
|
+
export declare function handleSkill(input: string): Promise<string>;
|
|
10
|
+
declare const _default: {
|
|
11
|
+
handleSkill: typeof handleSkill;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|