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
|
@@ -73,7 +73,7 @@ export const researcherSimulations = {
|
|
|
73
73
|
* Framework Help server simulations
|
|
74
74
|
*/
|
|
75
75
|
export const frameworkHelpSimulations = {
|
|
76
|
-
|
|
76
|
+
xray_get_capabilities: () => ({
|
|
77
77
|
content: [
|
|
78
78
|
{
|
|
79
79
|
type: 'text',
|
|
@@ -104,7 +104,7 @@ export const frameworkHelpSimulations = {
|
|
|
104
104
|
},
|
|
105
105
|
],
|
|
106
106
|
}),
|
|
107
|
-
|
|
107
|
+
xray_get_commands: () => ({
|
|
108
108
|
content: [
|
|
109
109
|
{
|
|
110
110
|
type: 'text',
|
|
@@ -131,7 +131,7 @@ framework-reporting-system - Generate comprehensive framework reports
|
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
133
|
}),
|
|
134
|
-
|
|
134
|
+
xray_explain_capability: () => ({
|
|
135
135
|
content: [
|
|
136
136
|
{
|
|
137
137
|
type: 'text',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
2
2
|
export interface AgentInvocation {
|
|
3
3
|
id: string;
|
|
4
4
|
agentName: string;
|
|
@@ -99,7 +99,7 @@ export declare class AgentMetricsSystem {
|
|
|
99
99
|
private retentionConfig;
|
|
100
100
|
private cleanupInterval;
|
|
101
101
|
private initialized;
|
|
102
|
-
constructor(stateManager:
|
|
102
|
+
constructor(stateManager: XrayStateManager, retentionConfig?: Partial<MetricsRetentionConfig>);
|
|
103
103
|
initialize(): Promise<void>;
|
|
104
104
|
private startAutoCleanup;
|
|
105
105
|
private performCleanup;
|
|
@@ -164,6 +164,6 @@ export declare class AgentMetricsSystem {
|
|
|
164
164
|
updateRetentionConfig(config: Partial<MetricsRetentionConfig>): void;
|
|
165
165
|
destroy(): void;
|
|
166
166
|
}
|
|
167
|
-
export declare function getAgentMetricsSystem(stateManager?:
|
|
168
|
-
export declare function initializeAgentMetrics(stateManager:
|
|
167
|
+
export declare function getAgentMetricsSystem(stateManager?: XrayStateManager): AgentMetricsSystem;
|
|
168
|
+
export declare function initializeAgentMetrics(stateManager: XrayStateManager): AgentMetricsSystem;
|
|
169
169
|
export declare function resetAgentMetricsSystem(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; primary xray paths + XRAY_||STRRAY_ env + .
|
|
1
|
+
// Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; primary xray paths + XRAY_||STRRAY_ env + .xray fallbacks)
|
|
2
2
|
import { frameworkLogger } from "../core/framework-logger.js";
|
|
3
3
|
const DEFAULT_RETENTION_CONFIG = {
|
|
4
4
|
maxEntries: 10000,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Enhanced Multi-Agent Orchestration with Clickable Monitoring
|
|
3
3
|
* Integrates subagent spawning visibility and lifecycle management
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
6
6
|
export interface AgentSpawnRequest {
|
|
7
7
|
agentType: string;
|
|
8
8
|
task: string;
|
|
@@ -73,7 +73,7 @@ export declare class EnhancedMultiAgentOrchestrator {
|
|
|
73
73
|
private agentDelegator;
|
|
74
74
|
private executionContext;
|
|
75
75
|
private cleanupTimer;
|
|
76
|
-
constructor(stateManager?:
|
|
76
|
+
constructor(stateManager?: XrayStateManager, isMainOrchestrator?: boolean);
|
|
77
77
|
/**
|
|
78
78
|
* 🚨 SECURITY: Check if currently executing as a subagent
|
|
79
79
|
* Prevents subagents from spawning other subagents (infinite loops, resource exhaustion)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Enhanced Multi-Agent Orchestration with Clickable Monitoring
|
|
3
3
|
* Integrates subagent spawning visibility and lifecycle management
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
6
6
|
import { frameworkLogger } from "../core/framework-logger.js";
|
|
7
7
|
import { ComplexityAnalyzer, } from "../delegation/complexity-analyzer.js";
|
|
8
8
|
import { createAgentDelegator, } from "../delegation/agent-delegator.js";
|
|
@@ -17,7 +17,7 @@ export class EnhancedMultiAgentOrchestrator {
|
|
|
17
17
|
executionContext;
|
|
18
18
|
cleanupTimer = null;
|
|
19
19
|
constructor(stateManager, isMainOrchestrator = false) {
|
|
20
|
-
this.stateManager = stateManager || new
|
|
20
|
+
this.stateManager = stateManager || new XrayStateManager();
|
|
21
21
|
this.complexityAnalyzer = new ComplexityAnalyzer();
|
|
22
22
|
this.agentDelegator = createAgentDelegator(this.stateManager, strRayConfigLoader);
|
|
23
23
|
this.state = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Intelligent Commit Batcher - Batches related changes for optimal commit history
|
|
3
3
|
* Implements configurable thresholds for file count, time windows, and risk levels
|
|
4
4
|
*
|
|
5
|
-
* Configuration is read from .
|
|
5
|
+
* Configuration is read from .xray/features.json -> commit_cycle
|
|
6
6
|
*/
|
|
7
7
|
export interface PendingChange {
|
|
8
8
|
filePath: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Intelligent Commit Batcher - Batches related changes for optimal commit history
|
|
3
3
|
* Implements configurable thresholds for file count, time windows, and risk levels
|
|
4
4
|
*
|
|
5
|
-
* Configuration is read from .
|
|
5
|
+
* Configuration is read from .xray/features.json -> commit_cycle
|
|
6
6
|
*/
|
|
7
7
|
import * as fs from "fs";
|
|
8
8
|
import * as path from "path";
|
|
@@ -36,8 +36,8 @@ export class IntelligentCommitBatcher {
|
|
|
36
36
|
loadFeaturesConfig() {
|
|
37
37
|
try {
|
|
38
38
|
const configPaths = [
|
|
39
|
-
path.join(process.cwd(), ".
|
|
40
|
-
path.join(process.cwd(), ".opencode", "
|
|
39
|
+
path.join(process.cwd(), ".xray", "features.json"),
|
|
40
|
+
path.join(process.cwd(), ".opencode", "xray", "features.json"),
|
|
41
41
|
];
|
|
42
42
|
for (const configPath of configPaths) {
|
|
43
43
|
if (fs.existsSync(configPath)) {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @since 2026-01-23
|
|
9
9
|
*/
|
|
10
10
|
import { TaskDefinition } from "../agents/types.js";
|
|
11
|
-
import {
|
|
11
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
12
12
|
export interface OrchestrationWorkflow {
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
@@ -68,13 +68,13 @@ export interface CoordinationMetrics {
|
|
|
68
68
|
coordinationEfficiency: number;
|
|
69
69
|
}
|
|
70
70
|
export declare class MultiAgentOrchestrationCoordinator {
|
|
71
|
-
private
|
|
71
|
+
private xrayOrchestrator;
|
|
72
72
|
private enhancedOrchestrator;
|
|
73
73
|
private agentDelegator;
|
|
74
74
|
private stateManager;
|
|
75
75
|
private complexityAnalyzer;
|
|
76
76
|
private coordinationMetrics;
|
|
77
|
-
constructor(stateManager?:
|
|
77
|
+
constructor(stateManager?: XrayStateManager);
|
|
78
78
|
/**
|
|
79
79
|
* Initialize the coordination system with all components
|
|
80
80
|
*/
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
import { KernelOrchestrator } from "../core/orchestrator.js";
|
|
11
11
|
import { enhancedMultiAgentOrchestrator } from "./enhanced-multi-agent-orchestrator.js";
|
|
12
12
|
import { createAgentDelegator } from "../delegation/agent-delegator.js";
|
|
13
|
-
import {
|
|
13
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
14
14
|
import { frameworkLogger } from "../core/framework-logger.js";
|
|
15
15
|
import { ComplexityAnalyzer } from "../delegation/complexity-analyzer.js";
|
|
16
|
-
import {
|
|
16
|
+
import { xrayConfigLoader } from "../core/config-loader.js";
|
|
17
17
|
export class MultiAgentOrchestrationCoordinator {
|
|
18
|
-
|
|
18
|
+
xrayOrchestrator;
|
|
19
19
|
enhancedOrchestrator;
|
|
20
20
|
agentDelegator;
|
|
21
21
|
stateManager;
|
|
22
22
|
complexityAnalyzer;
|
|
23
23
|
coordinationMetrics;
|
|
24
24
|
constructor(stateManager) {
|
|
25
|
-
this.stateManager = stateManager || new
|
|
26
|
-
this.
|
|
25
|
+
this.stateManager = stateManager || new XrayStateManager();
|
|
26
|
+
this.xrayOrchestrator = new KernelOrchestrator();
|
|
27
27
|
this.enhancedOrchestrator = enhancedMultiAgentOrchestrator;
|
|
28
|
-
this.agentDelegator = createAgentDelegator(this.stateManager,
|
|
28
|
+
this.agentDelegator = createAgentDelegator(this.stateManager, xrayConfigLoader);
|
|
29
29
|
this.complexityAnalyzer = new ComplexityAnalyzer();
|
|
30
30
|
this.coordinationMetrics = {
|
|
31
31
|
totalWorkflows: 0,
|
|
@@ -43,7 +43,7 @@ export class MultiAgentOrchestrationCoordinator {
|
|
|
43
43
|
initializeCoordinationSystem() {
|
|
44
44
|
// Register coordination components in state manager
|
|
45
45
|
this.stateManager.set("coordination:main_coordinator", this);
|
|
46
|
-
this.stateManager.set("coordination:
|
|
46
|
+
this.stateManager.set("coordination:xray_orchestrator", this.xrayOrchestrator);
|
|
47
47
|
this.stateManager.set("coordination:enhanced_orchestrator", this.enhancedOrchestrator);
|
|
48
48
|
this.stateManager.set("coordination:agent_delegator", this.agentDelegator);
|
|
49
49
|
this.stateManager.set("coordination:metrics", this.coordinationMetrics);
|
|
@@ -175,7 +175,7 @@ export class MultiAgentOrchestrationCoordinator {
|
|
|
175
175
|
dependencies: [],
|
|
176
176
|
subagentType: "orchestrator",
|
|
177
177
|
};
|
|
178
|
-
const result = await this.
|
|
178
|
+
const result = await this.xrayOrchestrator.executeComplexTask(task.description, [task]);
|
|
179
179
|
result.forEach((r) => {
|
|
180
180
|
taskResults.push({
|
|
181
181
|
success: r.success,
|
|
@@ -448,7 +448,7 @@ export class MultiAgentOrchestrationCoordinator {
|
|
|
448
448
|
async shutdown() {
|
|
449
449
|
frameworkLogger.log("orchestration-coordinator", "Shutting down multi-agent orchestration coordinator", "info");
|
|
450
450
|
await this.enhancedOrchestrator.shutdown();
|
|
451
|
-
await this.
|
|
451
|
+
await this.xrayOrchestrator.getStatus(); // Just get status, no actual shutdown method
|
|
452
452
|
frameworkLogger.log("orchestration-coordinator", "Multi-agent orchestration coordinator shutdown complete", "info");
|
|
453
453
|
}
|
|
454
454
|
}
|
|
@@ -60,7 +60,7 @@ export interface ConsolidationResult {
|
|
|
60
60
|
recommendations: string[];
|
|
61
61
|
summary: string;
|
|
62
62
|
}
|
|
63
|
-
export declare class
|
|
63
|
+
export declare class XrayOrchestrator {
|
|
64
64
|
private config;
|
|
65
65
|
private activeTasks;
|
|
66
66
|
private taskToAgentMap;
|
|
@@ -139,4 +139,5 @@ export declare class StringRayOrchestrator {
|
|
|
139
139
|
config: OrchestratorConfig;
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
export declare const
|
|
142
|
+
export declare const xrayOrchestrator: XrayOrchestrator;
|
|
143
|
+
export { xrayOrchestrator as strRayOrchestrator, XrayOrchestrator as StringRayOrchestrator };
|
|
@@ -13,9 +13,9 @@ import { routingOutcomeTracker } from "../delegation/analytics/outcome-tracker.j
|
|
|
13
13
|
import { patternPerformanceTracker } from "../analytics/pattern-performance-tracker.js";
|
|
14
14
|
import { VotingCoordinator } from "../delegation/voting-coordinator.js";
|
|
15
15
|
import { getAgentExpertiseLevel } from "../delegation/agent-expertise.js";
|
|
16
|
-
import {
|
|
16
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
17
17
|
import fs from "fs";
|
|
18
|
-
export class
|
|
18
|
+
export class XrayOrchestrator {
|
|
19
19
|
config;
|
|
20
20
|
activeTasks = new Map();
|
|
21
21
|
taskToAgentMap = new Map();
|
|
@@ -28,7 +28,7 @@ export class StringRayOrchestrator {
|
|
|
28
28
|
conflictResolutionStrategy: loadedConfig?.conflictResolutionStrategy ?? "majority_vote",
|
|
29
29
|
...config,
|
|
30
30
|
};
|
|
31
|
-
this.votingCoordinator = new VotingCoordinator(new
|
|
31
|
+
this.votingCoordinator = new VotingCoordinator(new XrayStateManager());
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Load orchestrator config from features.json
|
|
@@ -36,8 +36,8 @@ export class StringRayOrchestrator {
|
|
|
36
36
|
loadOrchestratorConfig() {
|
|
37
37
|
try {
|
|
38
38
|
const configPaths = [
|
|
39
|
-
".
|
|
40
|
-
".opencode/
|
|
39
|
+
".xray/features.json",
|
|
40
|
+
".opencode/xray/features.json",
|
|
41
41
|
];
|
|
42
42
|
for (const configPath of configPaths) {
|
|
43
43
|
if (fs.existsSync(configPath)) {
|
|
@@ -654,4 +654,6 @@ export class StringRayOrchestrator {
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
// Export singleton instance
|
|
657
|
-
export const
|
|
657
|
+
export const xrayOrchestrator = new XrayOrchestrator();
|
|
658
|
+
// Backward compat alias
|
|
659
|
+
export { xrayOrchestrator as strRayOrchestrator, XrayOrchestrator as StringRayOrchestrator };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; xray codex injection + XRAY_||STRRAY_ env + .
|
|
2
|
+
* Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; xray codex injection + XRAY_||STRRAY_ env + .xray fallbacks).
|
|
3
3
|
*/
|
|
4
4
|
interface ToolExecuteAfterInput {
|
|
5
5
|
tool: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; xray codex injection + XRAY_||STRRAY_ env + .
|
|
2
|
+
* Consumer runtime compat shim from prior StringRay releases (1-line min per Scope Rule; xray codex injection + XRAY_||STRRAY_ env + .xray fallbacks).
|
|
3
3
|
*/
|
|
4
4
|
import * as fs from "fs";
|
|
5
5
|
import * as path from "path";
|
|
@@ -100,7 +100,7 @@ function validateModulePath(resolvedPath, allowedPrefix) {
|
|
|
100
100
|
throw new Error(`Module path validation failed: ${normalized} is outside allowed path ${allowed}`);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
async function
|
|
103
|
+
async function loadXrayComponents() {
|
|
104
104
|
if (_ProcessorManager && _StrRayStateManager && _featuresConfigLoader)
|
|
105
105
|
return;
|
|
106
106
|
const logger = await getOrCreateLogger(process.cwd());
|
|
@@ -337,7 +337,7 @@ let cachedCodexContexts = null;
|
|
|
337
337
|
async function getCodexFileLocations(directory) {
|
|
338
338
|
const root = directory || process.cwd();
|
|
339
339
|
const resolved = await resolveCodexPath(root);
|
|
340
|
-
resolved.push(path.join(root, ".opencode", "codex.codex"), path.join(root, ".
|
|
340
|
+
resolved.push(path.join(root, ".opencode", "codex.codex"), path.join(root, ".xray", "agents_template.md"), path.join(root, ".opencode", "xray", "agents_template.md"), path.join(root, "AGENTS.md"));
|
|
341
341
|
return resolved;
|
|
342
342
|
}
|
|
343
343
|
function readFileContent(filePath) {
|
|
@@ -467,7 +467,7 @@ function isWriteEditOperation(tool) {
|
|
|
467
467
|
return tool === "write" || tool === "edit" || tool === "multiedit";
|
|
468
468
|
}
|
|
469
469
|
function isPublishOperation(tool) {
|
|
470
|
-
return tool === "publish" || tool === "release" || tool === "npm-publish" || tool === "
|
|
470
|
+
return tool === "publish" || tool === "release" || tool === "npm-publish" || tool === "xray-release";
|
|
471
471
|
}
|
|
472
472
|
function resolveAgentName(input) {
|
|
473
473
|
const globalAgent = globalThis.currentAgent;
|
|
@@ -568,7 +568,7 @@ export default async function xrayCodexPlugin(input) {
|
|
|
568
568
|
const logger = await getOrCreateLogger(directory);
|
|
569
569
|
logger.log(`🚀 TOOL EXECUTE BEFORE HOOK FIRED: ${input.tool}`);
|
|
570
570
|
logger.log(`📥 Full input: ${JSON.stringify(input)}`);
|
|
571
|
-
await
|
|
571
|
+
await loadXrayComponents();
|
|
572
572
|
if (_featuresConfigLoader && _detectTaskType) {
|
|
573
573
|
try {
|
|
574
574
|
const config = _featuresConfigLoader.loadConfig();
|
|
@@ -601,7 +601,7 @@ export default async function xrayCodexPlugin(input) {
|
|
|
601
601
|
}
|
|
602
602
|
let stateManager;
|
|
603
603
|
let processorManager;
|
|
604
|
-
const globalState = globalThis.strRayStateManager;
|
|
604
|
+
const globalState = globalThis.xrayStateManager || globalThis.strRayStateManager;
|
|
605
605
|
if (globalState) {
|
|
606
606
|
logger.log("🔗 Connecting to booted 0xRay framework");
|
|
607
607
|
stateManager = globalState;
|
|
@@ -609,6 +609,7 @@ export default async function xrayCodexPlugin(input) {
|
|
|
609
609
|
else {
|
|
610
610
|
logger.log("🚀 0xRay framework not booted, initializing...");
|
|
611
611
|
stateManager = new _StrRayStateManager(await resolveStateDir(directory));
|
|
612
|
+
globalThis.xrayStateManager = stateManager;
|
|
612
613
|
globalThis.strRayStateManager = stateManager;
|
|
613
614
|
}
|
|
614
615
|
processorManager = stateManager.get("processor:manager") ?? null;
|
|
@@ -667,7 +668,7 @@ export default async function xrayCodexPlugin(input) {
|
|
|
667
668
|
},
|
|
668
669
|
"tool.execute.after": async (input, _output) => {
|
|
669
670
|
const logger = await getOrCreateLogger(directory);
|
|
670
|
-
await
|
|
671
|
+
await loadXrayComponents();
|
|
671
672
|
const { tool, args, result } = input;
|
|
672
673
|
try {
|
|
673
674
|
const { routingOutcomeTracker } = await import("../delegation/analytics/outcome-tracker.js");
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @version 1.0.0
|
|
8
8
|
* @since 2026-01-13
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { XrayStateManager } from "../state/state-manager.js";
|
|
11
11
|
import { SessionMonitor } from "../session/session-monitor.js";
|
|
12
12
|
import { PostProcessorConfig, PostProcessorResult, PostProcessorContext } from "./types.js";
|
|
13
13
|
export declare class PostProcessor {
|
|
@@ -24,7 +24,7 @@ export declare class PostProcessor {
|
|
|
24
24
|
private escalationEngine;
|
|
25
25
|
private successHandler;
|
|
26
26
|
private triggers;
|
|
27
|
-
constructor(stateManager:
|
|
27
|
+
constructor(stateManager: XrayStateManager, sessionMonitor?: SessionMonitor | null, config?: Partial<PostProcessorConfig>);
|
|
28
28
|
/**
|
|
29
29
|
* Generate automated framework report if conditions are met
|
|
30
30
|
*/
|
|
@@ -208,7 +208,7 @@ export class PostProcessor {
|
|
|
208
208
|
const fs = await import("fs");
|
|
209
209
|
const path = await import("path");
|
|
210
210
|
try {
|
|
211
|
-
const configPath = resolveConfigPath("features.json") ?? path.join(process.cwd(), ".opencode", "
|
|
211
|
+
const configPath = resolveConfigPath("features.json") ?? path.join(process.cwd(), ".opencode", "xray", "features.json");
|
|
212
212
|
if (fs.existsSync(configPath)) {
|
|
213
213
|
const config = JSON.parse(fs.readFileSync(configPath, "utf-8"));
|
|
214
214
|
return config.processors || {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Post-Processor Monitoring Engine
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { XrayStateManager } from "../../state/state-manager.js";
|
|
5
5
|
import { SessionMonitor } from "../../session/session-monitor.js";
|
|
6
6
|
import { MonitoringResult } from "../types.js";
|
|
7
7
|
export interface CIStatus {
|
|
@@ -25,7 +25,7 @@ export interface SecurityStatus {
|
|
|
25
25
|
export declare class PostProcessorMonitoringEngine {
|
|
26
26
|
private stateManager;
|
|
27
27
|
private sessionMonitor?;
|
|
28
|
-
constructor(stateManager:
|
|
28
|
+
constructor(stateManager: XrayStateManager, sessionMonitor?: SessionMonitor | undefined);
|
|
29
29
|
initialize(): Promise<void>;
|
|
30
30
|
monitorDeployment(commitSha: string): Promise<MonitoringResult>;
|
|
31
31
|
private checkCIStatus;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { getKernel } from '../../core/kernel-patterns.js';
|
|
12
12
|
import { createAgentDelegator } from '../../delegation/agent-delegator.js';
|
|
13
13
|
import { frameworkLogger } from '../../core/framework-logger.js';
|
|
14
|
-
import {
|
|
14
|
+
import { XrayStateManager } from '../../state/state-manager.js';
|
|
15
15
|
import { strRayConfigLoader } from '../../core/config-loader.js';
|
|
16
16
|
/**
|
|
17
17
|
* Main service for systematic regression analysis
|
|
@@ -94,7 +94,7 @@ export class RegressionAnalysisService {
|
|
|
94
94
|
conferenceType: 'regression-investigation'
|
|
95
95
|
};
|
|
96
96
|
// Create agent delegator for this operation
|
|
97
|
-
const stateManager = new
|
|
97
|
+
const stateManager = new XrayStateManager();
|
|
98
98
|
const agentDelegator = createAgentDelegator(stateManager, strRayConfigLoader);
|
|
99
99
|
// Analyze delegation strategy
|
|
100
100
|
const analysis = await agentDelegator.analyzeDelegation(delegationRequest);
|
|
@@ -314,7 +314,7 @@ if [ -z "$COMMIT_SHA" ]; then
|
|
|
314
314
|
fi
|
|
315
315
|
|
|
316
316
|
# Get repository info
|
|
317
|
-
REPO="
|
|
317
|
+
REPO="0xRayAI/xray" # Placeholder for now
|
|
318
318
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
319
319
|
AUTHOR=$(git log -1 --pretty=format:'%an <%ae>')
|
|
320
320
|
|
|
@@ -330,25 +330,25 @@ fi
|
|
|
330
330
|
cd "$(dirname "$0")/../.." # Navigate to project root
|
|
331
331
|
|
|
332
332
|
# Find the 0xRay plugin in node_modules or current project (development)
|
|
333
|
-
|
|
334
|
-
if [ -d "node_modules/
|
|
335
|
-
|
|
336
|
-
elif [ -d "node_modules/@
|
|
337
|
-
|
|
338
|
-
elif [ -d "node_modules/OpenCode/plugins/
|
|
339
|
-
|
|
333
|
+
XRAY_PLUGIN=""
|
|
334
|
+
if [ -d "node_modules/0xray" ]; then
|
|
335
|
+
XRAY_PLUGIN="node_modules/0xray"
|
|
336
|
+
elif [ -d "node_modules/@0xray/xray" ]; then
|
|
337
|
+
XRAY_PLUGIN="node_modules/@0xray/xray"
|
|
338
|
+
elif [ -d "node_modules/OpenCode/plugins/0xray" ]; then
|
|
339
|
+
XRAY_PLUGIN="node_modules/OpenCode/plugins/0xray"
|
|
340
340
|
elif [ -f "dist/postprocessor/PostProcessor.js" ]; then
|
|
341
341
|
# Development mode - use current project
|
|
342
|
-
|
|
342
|
+
XRAY_PLUGIN="."
|
|
343
343
|
fi
|
|
344
344
|
|
|
345
|
-
if command -v node >/dev/null 2>&1 && [ -n "$
|
|
345
|
+
if command -v node >/dev/null 2>&1 && [ -n "$XRAY_PLUGIN" ]; then
|
|
346
346
|
# Call a separate script to avoid bash variable issues
|
|
347
347
|
export COMMIT_SHA="$COMMIT_SHA"
|
|
348
348
|
export REPO="$REPO"
|
|
349
349
|
export BRANCH="$BRANCH"
|
|
350
350
|
export AUTHOR="$AUTHOR"
|
|
351
|
-
export
|
|
351
|
+
export XRAY_PLUGIN="$XRAY_PLUGIN"
|
|
352
352
|
export MONITORING_LEVEL="$MONITORING_LEVEL"
|
|
353
353
|
export IS_FULL_MONITORING="$([ "$MONITORING_LEVEL" = "full" ] && echo "true" || echo "false")"
|
|
354
354
|
|
|
@@ -422,7 +422,7 @@ fi
|
|
|
422
422
|
// Core inference/logging - NEVER DELETE
|
|
423
423
|
'activity.log',
|
|
424
424
|
'framework-activity-',
|
|
425
|
-
'
|
|
425
|
+
'xray-plugin-',
|
|
426
426
|
|
|
427
427
|
// Analysis & reflections - Contains inference data
|
|
428
428
|
'kernel-',
|
|
@@ -441,8 +441,8 @@ fi
|
|
|
441
441
|
'reflections/',
|
|
442
442
|
|
|
443
443
|
// Init logs can be cleaned but keep recent
|
|
444
|
-
'
|
|
445
|
-
'
|
|
444
|
+
'xray-init-2026-01-2', // Keep Jan 20s
|
|
445
|
+
'xray-init-2026-01-3', // Keep Jan 30s
|
|
446
446
|
|
|
447
447
|
// Other important files
|
|
448
448
|
'current-session.log',
|
|
@@ -212,7 +212,7 @@ export class AgentsMdValidationProcessor {
|
|
|
212
212
|
"",
|
|
213
213
|
"## Available Skills",
|
|
214
214
|
"",
|
|
215
|
-
"
|
|
215
|
+
"Xray ships with 30 framework skills and provides a registry of 10 curated community sources.",
|
|
216
216
|
"",
|
|
217
217
|
"```bash",
|
|
218
218
|
"npx 0xray skill:install # Show starter packs + available sources",
|
|
@@ -225,7 +225,7 @@ export class AgentsMdValidationProcessor {
|
|
|
225
225
|
"",
|
|
226
226
|
"## Codex",
|
|
227
227
|
"",
|
|
228
|
-
`
|
|
228
|
+
`Xray enforces Universal Development Codex (60 terms) for systematic error prevention.`,
|
|
229
229
|
"",
|
|
230
230
|
].join("\n"),
|
|
231
231
|
"## CLI Commands": [
|
|
@@ -38,8 +38,8 @@ export class InferenceImprovementProcessor extends PostProcessor {
|
|
|
38
38
|
loadInferenceConfig() {
|
|
39
39
|
try {
|
|
40
40
|
const configPaths = [
|
|
41
|
-
path.join(process.cwd(), ".
|
|
42
|
-
path.join(process.cwd(), ".opencode", "
|
|
41
|
+
path.join(process.cwd(), ".xray", "features.json"),
|
|
42
|
+
path.join(process.cwd(), ".opencode", "xray", "features.json"),
|
|
43
43
|
];
|
|
44
44
|
for (const configPath of configPaths) {
|
|
45
45
|
if (fs.existsSync(configPath)) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Protected files:
|
|
8
8
|
* - routing-outcomes.json (routing analytics - NEVER delete)
|
|
9
9
|
* - activity.log (framework activity - NEVER delete)
|
|
10
|
-
* -
|
|
10
|
+
* - xray-plugin-*.log (plugin logs)
|
|
11
11
|
*
|
|
12
12
|
* Archival flow is ALLOWED:
|
|
13
13
|
* - framework-activity-*.log.gz (archived/compressed logs)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Protected files:
|
|
8
8
|
* - routing-outcomes.json (routing analytics - NEVER delete)
|
|
9
9
|
* - activity.log (framework activity - NEVER delete)
|
|
10
|
-
* -
|
|
10
|
+
* - xray-plugin-*.log (plugin logs)
|
|
11
11
|
*
|
|
12
12
|
* Archival flow is ALLOWED:
|
|
13
13
|
* - framework-activity-*.log.gz (archived/compressed logs)
|
|
@@ -31,7 +31,7 @@ const ACTIVE_LOG_PATTERNS = [
|
|
|
31
31
|
*/
|
|
32
32
|
const ARCHIVE_PATTERNS = [
|
|
33
33
|
/framework-activity-.+\.log\.gz$/,
|
|
34
|
-
/
|
|
34
|
+
/xray-plugin-.+\.log\.gz$/,
|
|
35
35
|
];
|
|
36
36
|
/**
|
|
37
37
|
* Directories/files that are protected
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Ensures README.md, AGENTS.md, and reflection documents are up-to-date
|
|
6
6
|
* before allowing npm publish.
|
|
7
7
|
*
|
|
8
|
-
* Configuration is read from .
|
|
8
|
+
* Configuration is read from .xray/features.json
|
|
9
9
|
*
|
|
10
10
|
* @processor_type post
|
|
11
11
|
* @priority 10 (runs early after post-processing starts)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Ensures README.md, AGENTS.md, and reflection documents are up-to-date
|
|
6
6
|
* before allowing npm publish.
|
|
7
7
|
*
|
|
8
|
-
* Configuration is read from .
|
|
8
|
+
* Configuration is read from .xray/features.json
|
|
9
9
|
*
|
|
10
10
|
* @processor_type post
|
|
11
11
|
* @priority 10 (runs early after post-processing starts)
|
|
@@ -45,8 +45,8 @@ export class PublishPreflightProcessor extends PostProcessor {
|
|
|
45
45
|
loadConfig() {
|
|
46
46
|
try {
|
|
47
47
|
const configPaths = [
|
|
48
|
-
path.join(process.cwd(), ".
|
|
49
|
-
path.join(process.cwd(), ".opencode", "
|
|
48
|
+
path.join(process.cwd(), ".xray", "features.json"),
|
|
49
|
+
path.join(process.cwd(), ".opencode", "xray", "features.json"),
|
|
50
50
|
];
|
|
51
51
|
for (const configPath of configPaths) {
|
|
52
52
|
if (fs.existsSync(configPath)) {
|
|
@@ -14,7 +14,7 @@ export class RegressionTestingProcessor extends PostProcessor {
|
|
|
14
14
|
};
|
|
15
15
|
try {
|
|
16
16
|
const projectRoot = process.cwd();
|
|
17
|
-
const testCountPath = path.join(projectRoot, ".opencode", "
|
|
17
|
+
const testCountPath = path.join(projectRoot, ".opencode", "xray", "test-count.json");
|
|
18
18
|
if (!fs.existsSync(testCountPath)) {
|
|
19
19
|
frameworkLogger.log("regression-testing-processor", "no-baseline", "info", { message: "No test-count.json baseline found" });
|
|
20
20
|
return result;
|
|
@@ -46,7 +46,7 @@ export class RegressionTestingProcessor extends PostProcessor {
|
|
|
46
46
|
}
|
|
47
47
|
getCurrentTestCount(projectRoot) {
|
|
48
48
|
try {
|
|
49
|
-
const testCountPath = path.join(projectRoot, ".opencode", "
|
|
49
|
+
const testCountPath = path.join(projectRoot, ".opencode", "xray", "test-count.json");
|
|
50
50
|
if (!fs.existsSync(testCountPath))
|
|
51
51
|
return 0;
|
|
52
52
|
const data = JSON.parse(fs.readFileSync(testCountPath, "utf-8"));
|
|
@@ -30,8 +30,8 @@ export class SessionSummaryProcessor extends PostProcessor {
|
|
|
30
30
|
}
|
|
31
31
|
loadConfig() {
|
|
32
32
|
try {
|
|
33
|
-
const featuresPath = path.join(process.cwd(), ".opencode", "
|
|
34
|
-
const altPath = path.join(process.cwd(), ".
|
|
33
|
+
const featuresPath = path.join(process.cwd(), ".opencode", "xray", "features.json");
|
|
34
|
+
const altPath = path.join(process.cwd(), ".xray", "features.json");
|
|
35
35
|
const configPath = fs.existsSync(featuresPath) ? featuresPath :
|
|
36
36
|
fs.existsSync(altPath) ? altPath : null;
|
|
37
37
|
if (configPath) {
|
|
@@ -34,8 +34,8 @@ export class StorytellingTriggerProcessor extends PostProcessor {
|
|
|
34
34
|
}
|
|
35
35
|
resolveConfigPath(filename) {
|
|
36
36
|
const candidates = [
|
|
37
|
-
path.join(process.cwd(), ".
|
|
38
|
-
path.join(process.cwd(), ".opencode", "
|
|
37
|
+
path.join(process.cwd(), ".xray", filename),
|
|
38
|
+
path.join(process.cwd(), ".opencode", "xray", filename),
|
|
39
39
|
];
|
|
40
40
|
for (const candidate of candidates) {
|
|
41
41
|
if (fs.existsSync(candidate))
|