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
|
@@ -36,13 +36,13 @@ interface ModelHealthReportData {
|
|
|
36
36
|
summary: { total: number; healthy: number; issues: number };
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class XrayModelHealthCheckServer {
|
|
40
40
|
private server: Server;
|
|
41
41
|
|
|
42
42
|
constructor() {
|
|
43
43
|
this.server = new Server(
|
|
44
44
|
{
|
|
45
|
-
name: "model-health-check", version: "2.0.
|
|
45
|
+
name: "model-health-check", version: "2.0.1",
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
capabilities: {
|
|
@@ -285,8 +285,8 @@ class StringRayModelHealthCheckServer {
|
|
|
285
285
|
|
|
286
286
|
// Start the server if this file is run directly
|
|
287
287
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
288
|
-
const server = new
|
|
288
|
+
const server = new XrayModelHealthCheckServer();
|
|
289
289
|
server.start().catch((error) => frameworkLogger.log("mcps/model-health-check", "run", "error", { error: String(error) }));
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
export default
|
|
292
|
+
export default XrayModelHealthCheckServer;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ListToolsRequestSchema,
|
|
13
13
|
} from '@modelcontextprotocol/sdk/types.js';
|
|
14
14
|
import { frameworkLogger } from '../../core/framework-logger.js';
|
|
15
|
-
import {
|
|
15
|
+
import { XrayStateManager } from '../../state/state-manager.js';
|
|
16
16
|
import { MultiAgentOrchestrationCoordinator } from '../../orchestrator/multi-agent-orchestration-coordinator.js';
|
|
17
17
|
|
|
18
18
|
import { TaskHandler } from './handlers/task-handler.js';
|
|
@@ -45,7 +45,7 @@ export class OrchestratorServer {
|
|
|
45
45
|
|
|
46
46
|
constructor() {
|
|
47
47
|
// Initialize actual coordinator
|
|
48
|
-
const stateManager = new
|
|
48
|
+
const stateManager = new XrayStateManager();
|
|
49
49
|
this.coordinator = new MultiAgentOrchestrationCoordinator(stateManager);
|
|
50
50
|
|
|
51
51
|
// Initialize handlers
|
|
@@ -57,14 +57,14 @@ interface ResourceMetrics {
|
|
|
57
57
|
recommendations: string[];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class XrayPerformanceAnalysisServer {
|
|
61
61
|
private server: Server;
|
|
62
62
|
private startTime: number;
|
|
63
63
|
|
|
64
64
|
constructor() {
|
|
65
65
|
this.server = new Server(
|
|
66
66
|
{
|
|
67
|
-
name: "performance-analysis", version: "2.0.
|
|
67
|
+
name: "performance-analysis", version: "2.0.1",
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
capabilities: {
|
|
@@ -708,8 +708,8 @@ ${results.recommendations.map((r) => `• 💡 ${r}`).join("\n") || "No recommen
|
|
|
708
708
|
|
|
709
709
|
// Start the server if run directly
|
|
710
710
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
711
|
-
const server = new
|
|
711
|
+
const server = new XrayPerformanceAnalysisServer();
|
|
712
712
|
server.run().catch((error) => frameworkLogger.log("mcps/performance-analysis", "run", "error", { error: String(error) }));
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
export {
|
|
715
|
+
export { XrayPerformanceAnalysisServer };
|
|
@@ -87,7 +87,7 @@ interface FrameworkComplianceResult {
|
|
|
87
87
|
approved: boolean;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class XrayProcessorPipelineServer {
|
|
91
91
|
private server: Server;
|
|
92
92
|
private codexLoader: CodexLoader;
|
|
93
93
|
private codexRules: RuleDefinition[] = [];
|
|
@@ -107,7 +107,7 @@ class StringRayProcessorPipelineServer {
|
|
|
107
107
|
this.codexLoader = new CodexLoader();
|
|
108
108
|
this.server = new Server(
|
|
109
109
|
{
|
|
110
|
-
name: "processor-pipeline", version: "2.0.
|
|
110
|
+
name: "processor-pipeline", version: "2.0.1",
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
capabilities: {
|
|
@@ -771,8 +771,8 @@ ${complianceResults.actions.map((a: string) => `• 🔧 ${a}`).join("\n") || "N
|
|
|
771
771
|
|
|
772
772
|
// Start the server if run directly
|
|
773
773
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
774
|
-
const server = new
|
|
774
|
+
const server = new XrayProcessorPipelineServer();
|
|
775
775
|
server.run().catch((error) => frameworkLogger.log("mcps/processor-pipeline", "run", "error", { error: String(error) }));
|
|
776
776
|
}
|
|
777
777
|
|
|
778
|
-
export {
|
|
778
|
+
export { XrayProcessorPipelineServer };
|
package/src/mcps/registry.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for codebase documentation lookup, implementation examples,
|
|
5
5
|
* and multi-repo analysis - serves as the universal documentation reference
|
|
6
6
|
*
|
|
7
|
-
* NOTE: Class is named
|
|
7
|
+
* NOTE: Class is named XrayLibrarianServer but the MCP server name is
|
|
8
8
|
* "researcher" for backwards compatibility with existing tool references.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -48,13 +48,13 @@ interface AnalyzeProposalArgs {
|
|
|
48
48
|
proposalType?: string;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class XrayLibrarianServer {
|
|
52
52
|
private server: Server;
|
|
53
53
|
|
|
54
54
|
constructor() {
|
|
55
55
|
this.server = new Server(
|
|
56
56
|
{
|
|
57
|
-
name: "researcher", version: "2.0.
|
|
57
|
+
name: "researcher", version: "2.0.1",
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
capabilities: {
|
|
@@ -588,8 +588,8 @@ class StringRayLibrarianServer {
|
|
|
588
588
|
|
|
589
589
|
// Run the server if this file is executed directly
|
|
590
590
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
591
|
-
const server = new
|
|
591
|
+
const server = new XrayLibrarianServer();
|
|
592
592
|
server.run().catch((error) => frameworkLogger.log("mcps/researcher", "run", "error", { error: String(error) }));
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
export {
|
|
595
|
+
export { XrayLibrarianServer };
|
|
@@ -39,13 +39,13 @@ interface SecuritySummaryResults {
|
|
|
39
39
|
summary: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class XraySecurityScanServer {
|
|
43
43
|
private server: Server;
|
|
44
44
|
|
|
45
45
|
constructor() {
|
|
46
46
|
this.server = new Server(
|
|
47
47
|
{
|
|
48
|
-
name: "security-scan", version: "2.0.
|
|
48
|
+
name: "security-scan", version: "2.0.1",
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
capabilities: {
|
|
@@ -644,8 +644,8 @@ ${results.recommendations.map((r) => `• ${r}`).join("\n") || "No recommendatio
|
|
|
644
644
|
|
|
645
645
|
// Start the server if run directly
|
|
646
646
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
647
|
-
const server = new
|
|
647
|
+
const server = new XraySecurityScanServer();
|
|
648
648
|
server.run().catch((error) => frameworkLogger.log("mcps/security-scan", "run", "error", { error: String(error) }));
|
|
649
649
|
}
|
|
650
650
|
|
|
651
|
-
export {
|
|
651
|
+
export { XraySecurityScanServer };
|
|
@@ -86,7 +86,7 @@ export const researcherSimulations: Record<string, SimulatorFunction> = {
|
|
|
86
86
|
* Framework Help server simulations
|
|
87
87
|
*/
|
|
88
88
|
export const frameworkHelpSimulations: Record<string, SimulatorFunction> = {
|
|
89
|
-
|
|
89
|
+
xray_get_capabilities: (): MCPToolResult => ({
|
|
90
90
|
content: [
|
|
91
91
|
{
|
|
92
92
|
type: 'text',
|
|
@@ -118,7 +118,7 @@ export const frameworkHelpSimulations: Record<string, SimulatorFunction> = {
|
|
|
118
118
|
],
|
|
119
119
|
}),
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
xray_get_commands: (): MCPToolResult => ({
|
|
122
122
|
content: [
|
|
123
123
|
{
|
|
124
124
|
type: 'text',
|
|
@@ -146,7 +146,7 @@ framework-reporting-system - Generate comprehensive framework reports
|
|
|
146
146
|
],
|
|
147
147
|
}),
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
xray_explain_capability: (): MCPToolResult => ({
|
|
150
150
|
content: [
|
|
151
151
|
{
|
|
152
152
|
type: 'text',
|
package/src/opencode/codex.codex
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.1",
|
|
3
3
|
"terms": [
|
|
4
4
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68
|
|
5
5
|
],
|
|
@@ -69,7 +69,7 @@ Comprehensive dependency analysis and security audit for all project dependencie
|
|
|
69
69
|
"vulnerabilities": [
|
|
70
70
|
{
|
|
71
71
|
"package": "lodash",
|
|
72
|
-
"version": "2.0.
|
|
72
|
+
"version": "2.0.1",
|
|
73
73
|
"severity": "high",
|
|
74
74
|
"cve": "CVE-2021-23337",
|
|
75
75
|
"description": "Command injection vulnerability"
|
|
@@ -85,14 +85,14 @@ Security-focused format for CI/CD integration:
|
|
|
85
85
|
|
|
86
86
|
```json
|
|
87
87
|
{
|
|
88
|
-
"version": "2.0.
|
|
88
|
+
"version": "2.0.1",
|
|
89
89
|
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
|
|
90
90
|
"runs": [
|
|
91
91
|
{
|
|
92
92
|
"tool": {
|
|
93
93
|
"driver": {
|
|
94
94
|
"name": "Dependency Audit",
|
|
95
|
-
"version": "2.0.
|
|
95
|
+
"version": "2.0.1"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"results": [...]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "xray 2.0",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Codex-compliant framework configuration for Credible UI project",
|
|
5
5
|
"thresholds": {
|
|
6
6
|
"bundleSize": {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
"codex": {
|
|
223
|
-
"version": "2.0.
|
|
223
|
+
"version": "2.0.1",
|
|
224
224
|
"terms": [
|
|
225
225
|
1,
|
|
226
226
|
2,
|
|
@@ -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.
|
package/src/skills/registry.json
CHANGED
|
@@ -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
|