0xray 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/.opencode/codex.codex +1 -1
  2. package/AGENTS.md +1 -1
  3. package/dist/AGENTS.md +1 -1
  4. package/dist/benchmark/performance-benchmark.d.ts +2 -2
  5. package/dist/benchmark/performance-benchmark.js +3 -3
  6. package/dist/cli/commands/hermes-install.js +4 -4
  7. package/dist/cli/commands/mcp-install.js +1 -1
  8. package/dist/cli/commands/openclaw-install.js +1 -1
  9. package/dist/cli/commands/plugin-commands.js +2 -2
  10. package/dist/cli/commands/publish-agent.js +5 -5
  11. package/dist/cli/commands/skill-install.js +1 -1
  12. package/dist/cli/commands/status.js +3 -3
  13. package/dist/cli/commands/storyteller.js +2 -2
  14. package/dist/cli/index.js +8 -8
  15. package/dist/cli/server.js +1 -1
  16. package/dist/core/agent-spawn-gate.d.ts +1 -1
  17. package/dist/core/agent-spawn-gate.js +1 -1
  18. package/dist/core/boot-orchestrator.d.ts +4 -4
  19. package/dist/core/boot-orchestrator.js +26 -26
  20. package/dist/core/bridge.mjs +22 -22
  21. package/dist/core/codex-formatter.js +2 -2
  22. package/dist/core/codex-injector.d.ts +4 -3
  23. package/dist/core/codex-injector.js +11 -10
  24. package/dist/core/config-loader.d.ts +5 -4
  25. package/dist/core/config-loader.js +4 -2
  26. package/dist/core/config-paths.d.ts +9 -8
  27. package/dist/core/config-paths.js +24 -23
  28. package/dist/core/context-loader.d.ts +4 -3
  29. package/dist/core/context-loader.js +7 -5
  30. package/dist/core/index.d.ts +1 -1
  31. package/dist/core/index.js +1 -1
  32. package/dist/core/orchestrator.d.ts +1 -0
  33. package/dist/core/orchestrator.js +3 -2
  34. package/dist/core/system-prompt-generator.js +2 -2
  35. package/dist/core/xray-activation.d.ts +4 -4
  36. package/dist/core/xray-activation.js +29 -24
  37. package/dist/delegation/agent-delegator.d.ts +3 -3
  38. package/dist/delegation/agent-delegator.js +3 -3
  39. package/dist/delegation/metrics-aggregator.d.ts +11 -11
  40. package/dist/delegation/session-coordinator.d.ts +3 -3
  41. package/dist/delegation/voting-coordinator.d.ts +3 -3
  42. package/dist/enforcement/enforcer-tools.js +2 -2
  43. package/dist/enforcement/loaders/codex-loader.d.ts +1 -1
  44. package/dist/enforcement/loaders/codex-loader.js +2 -2
  45. package/dist/index.d.ts +5 -5
  46. package/dist/index.js +6 -6
  47. package/dist/inference/deploy-verifier.js +1 -1
  48. package/dist/inference/inference-cycle.js +7 -7
  49. package/dist/integrations/base/README.md +2 -2
  50. package/dist/integrations/governance/index.js +1 -1
  51. package/dist/integrations/grok/grok-cli.d.ts +1 -1
  52. package/dist/integrations/grok/grok-cli.js +6 -6
  53. package/dist/integrations/grok/hooks/pre-tool-use.js +1 -1
  54. package/dist/integrations/grok/plugin/0xray/.mcp.json +3 -3
  55. package/dist/integrations/grok/plugin/0xray/hooks/hooks.json +2 -2
  56. package/dist/integrations/hermes-agent/__init__.py +77 -71
  57. package/dist/integrations/hermes-agent/__pycache__/__init__.cpython-313.pyc +0 -0
  58. package/dist/integrations/hermes-agent/__pycache__/conftest.cpython-313-pytest-9.0.2.pyc +0 -0
  59. package/dist/integrations/hermes-agent/__pycache__/schemas.cpython-313.pyc +0 -0
  60. package/dist/integrations/hermes-agent/__pycache__/test_plugin.cpython-313-pytest-9.0.2.pyc +0 -0
  61. package/dist/integrations/hermes-agent/__pycache__/test_plugin.cpython-313.pyc +0 -0
  62. package/dist/integrations/hermes-agent/__pycache__/tools.cpython-313.pyc +0 -0
  63. package/dist/integrations/hermes-agent/after-install.md +14 -14
  64. package/dist/integrations/hermes-agent/bridge.mjs +14 -14
  65. package/dist/integrations/hermes-agent/logs/framework/routing-outcomes.json +1 -0
  66. package/dist/integrations/hermes-agent/plugin.yaml +5 -5
  67. package/dist/integrations/hermes-agent/schemas.py +12 -12
  68. package/dist/integrations/hermes-agent/test_plugin.py +128 -125
  69. package/dist/integrations/hermes-agent/tools.py +85 -23
  70. package/dist/integrations/openclaw/README.md +16 -16
  71. package/dist/integrations/openclaw/api-server.d.ts +4 -4
  72. package/dist/integrations/openclaw/api-server.js +9 -9
  73. package/dist/integrations/openclaw/config.js +1 -1
  74. package/dist/integrations/openclaw/hooks/{strray-hooks.d.ts → xray-hooks.d.ts} +4 -4
  75. package/dist/integrations/openclaw/index.d.ts +4 -4
  76. package/dist/integrations/openclaw/index.js +4 -4
  77. package/dist/integrations/openclaw/types.d.ts +1 -1
  78. package/dist/integrations/plugins/plugin-registry.js +2 -2
  79. package/dist/mcps/architect-tools.server.d.ts +2 -2
  80. package/dist/mcps/architect-tools.server.js +3 -3
  81. package/dist/mcps/auto-format.server.d.ts +2 -2
  82. package/dist/mcps/auto-format.server.js +3 -3
  83. package/dist/mcps/boot-orchestrator.server.d.ts +2 -2
  84. package/dist/mcps/boot-orchestrator.server.js +3 -3
  85. package/dist/mcps/config/server-config-registry.d.ts +1 -1
  86. package/dist/mcps/config/server-config-registry.js +7 -7
  87. package/dist/mcps/connection/mcp-connection.js +1 -1
  88. package/dist/mcps/enforcer-tools.server.d.ts +2 -2
  89. package/dist/mcps/enforcer-tools.server.js +3 -3
  90. package/dist/mcps/framework-compliance-audit.server.d.ts +2 -2
  91. package/dist/mcps/framework-compliance-audit.server.js +3 -3
  92. package/dist/mcps/framework-help.server.js +6 -6
  93. package/dist/mcps/in-process-skill-registry.js +6 -6
  94. package/dist/mcps/knowledge-skills/api-design.server.d.ts +2 -2
  95. package/dist/mcps/knowledge-skills/api-design.server.js +3 -3
  96. package/dist/mcps/knowledge-skills/architecture-patterns.server.d.ts +2 -2
  97. package/dist/mcps/knowledge-skills/architecture-patterns.server.js +3 -3
  98. package/dist/mcps/knowledge-skills/code-review.server.d.ts +2 -2
  99. package/dist/mcps/knowledge-skills/code-review.server.js +3 -3
  100. package/dist/mcps/knowledge-skills/database-design.server.d.ts +2 -2
  101. package/dist/mcps/knowledge-skills/database-design.server.js +3 -3
  102. package/dist/mcps/knowledge-skills/devops-deployment.server.d.ts +2 -2
  103. package/dist/mcps/knowledge-skills/devops-deployment.server.js +3 -3
  104. package/dist/mcps/knowledge-skills/git-workflow.server.d.ts +2 -2
  105. package/dist/mcps/knowledge-skills/git-workflow.server.js +3 -3
  106. package/dist/mcps/knowledge-skills/mobile-development.server.d.ts +2 -2
  107. package/dist/mcps/knowledge-skills/mobile-development.server.js +3 -3
  108. package/dist/mcps/knowledge-skills/performance-optimization.server.d.ts +2 -2
  109. package/dist/mcps/knowledge-skills/performance-optimization.server.js +3 -3
  110. package/dist/mcps/knowledge-skills/refactoring-strategies.server.d.ts +2 -2
  111. package/dist/mcps/knowledge-skills/refactoring-strategies.server.js +3 -3
  112. package/dist/mcps/knowledge-skills/security-audit.server.d.ts +2 -2
  113. package/dist/mcps/knowledge-skills/security-audit.server.js +3 -3
  114. package/dist/mcps/knowledge-skills/tech-writer.server.d.ts +2 -2
  115. package/dist/mcps/knowledge-skills/tech-writer.server.js +3 -3
  116. package/dist/mcps/knowledge-skills/testing-best-practices.server.d.ts +2 -2
  117. package/dist/mcps/knowledge-skills/testing-best-practices.server.js +3 -3
  118. package/dist/mcps/knowledge-skills/testing-strategy.server.d.ts +2 -2
  119. package/dist/mcps/knowledge-skills/testing-strategy.server.js +3 -3
  120. package/dist/mcps/knowledge-skills/ui-ux-design.server.d.ts +2 -2
  121. package/dist/mcps/knowledge-skills/ui-ux-design.server.js +5 -5
  122. package/dist/mcps/lint.server.d.ts +2 -2
  123. package/dist/mcps/lint.server.js +5 -5
  124. package/dist/mcps/mcp-client.js +3 -3
  125. package/dist/mcps/model-health-check.server.d.ts +2 -2
  126. package/dist/mcps/model-health-check.server.js +3 -3
  127. package/dist/mcps/orchestrator/server.js +2 -2
  128. package/dist/mcps/performance-analysis.server.d.ts +2 -2
  129. package/dist/mcps/performance-analysis.server.js +3 -3
  130. package/dist/mcps/processor-pipeline.server.d.ts +2 -2
  131. package/dist/mcps/processor-pipeline.server.js +3 -3
  132. package/dist/mcps/researcher.server.d.ts +3 -3
  133. package/dist/mcps/researcher.server.js +4 -4
  134. package/dist/mcps/security-scan.server.d.ts +2 -2
  135. package/dist/mcps/security-scan.server.js +3 -3
  136. package/dist/mcps/simulation/server-simulations.js +3 -3
  137. package/dist/metrics/agent-metrics.d.ts +4 -4
  138. package/dist/metrics/agent-metrics.js +1 -1
  139. package/dist/orchestrator/enhanced-multi-agent-orchestrator.d.ts +2 -2
  140. package/dist/orchestrator/enhanced-multi-agent-orchestrator.js +2 -2
  141. package/dist/orchestrator/intelligent-commit-batcher.d.ts +1 -1
  142. package/dist/orchestrator/intelligent-commit-batcher.js +3 -3
  143. package/dist/orchestrator/multi-agent-orchestration-coordinator.d.ts +3 -3
  144. package/dist/orchestrator/multi-agent-orchestration-coordinator.js +9 -9
  145. package/dist/orchestrator/orchestrator.d.ts +3 -2
  146. package/dist/orchestrator/orchestrator.js +8 -6
  147. package/dist/plugin/xray-codex-injection.d.ts +1 -1
  148. package/dist/plugin/xray-codex-injection.js +8 -7
  149. package/dist/postprocessor/PostProcessor.d.ts +2 -2
  150. package/dist/postprocessor/PostProcessor.js +1 -1
  151. package/dist/postprocessor/monitoring/MonitoringEngine.d.ts +2 -2
  152. package/dist/postprocessor/services/RegressionAnalysisService.js +2 -2
  153. package/dist/postprocessor/triggers/GitHookTrigger.js +14 -14
  154. package/dist/processors/implementations/agents-md-validation-processor.js +2 -2
  155. package/dist/processors/implementations/inference-improvement-processor.js +2 -2
  156. package/dist/processors/implementations/log-protection-processor.d.ts +1 -1
  157. package/dist/processors/implementations/log-protection-processor.js +2 -2
  158. package/dist/processors/implementations/publish-preflight-processor.d.ts +1 -1
  159. package/dist/processors/implementations/publish-preflight-processor.js +3 -3
  160. package/dist/processors/implementations/regression-testing-processor.js +2 -2
  161. package/dist/processors/implementations/session-summary-processor.js +2 -2
  162. package/dist/processors/implementations/storytelling-trigger-processor.js +2 -2
  163. package/dist/processors/processor-manager.d.ts +2 -2
  164. package/dist/public/about.html +6 -6
  165. package/dist/public/enterprise.html +1 -1
  166. package/dist/public/features.html +2 -2
  167. package/dist/public/index.html +4 -4
  168. package/dist/reporting/report-formatter.js +1 -1
  169. package/dist/scripts/activate-kernel-pipeline.js +2 -2
  170. package/dist/scripts/pre-command +1 -1
  171. package/dist/services/inference-tuner.js +2 -2
  172. package/dist/session/session-cleanup-manager.d.ts +3 -3
  173. package/dist/session/session-monitor.d.ts +3 -3
  174. package/dist/session/session-state-manager.d.ts +3 -3
  175. package/dist/skills/hermes-agent/SKILL.md +11 -11
  176. package/dist/skills/storyteller/SKILL.md +1 -1
  177. package/dist/skills/xray-orchestrator/SKILL.md +141 -0
  178. package/dist/skills/xray-orchestrator/index.d.ts +13 -0
  179. package/dist/skills/xray-orchestrator/index.js +224 -0
  180. package/dist/state/index.d.ts +2 -1
  181. package/dist/state/index.js +2 -1
  182. package/dist/state/state-manager.d.ts +2 -2
  183. package/dist/state/state-manager.js +5 -4
  184. package/dist/utils/import-resolver.js +1 -1
  185. package/dist/utils/path-resolver.js +2 -2
  186. package/dist/utils/token-manager.js +1 -1
  187. package/dist/validation/estimation-validator.js +1 -1
  188. package/package.json +2 -2
  189. package/scripts/hooks/pre-command +1 -1
  190. package/scripts/hooks/run-hook.js +2 -2
  191. package/scripts/node/auto-reflection-generator.mjs +2 -2
  192. package/scripts/node/postinstall.cjs +1 -1
  193. package/scripts/node/release.js +6 -6
  194. package/scripts/node/release.mjs +10 -10
  195. package/scripts/node/version-manager.mjs +1 -1
  196. package/src/integrations/grok/plugin/0xray/.mcp.json +3 -3
  197. package/src/integrations/grok/plugin/0xray/hooks/hooks.json +2 -2
  198. package/src/mcps/architect-tools.server.ts +3 -3
  199. package/src/mcps/auto-format.server.ts +3 -3
  200. package/src/mcps/boot-orchestrator.server.ts +3 -3
  201. package/src/mcps/config/server-config-registry.ts +7 -7
  202. package/src/mcps/connection/mcp-connection.ts +1 -1
  203. package/src/mcps/enforcer-tools.server.ts +3 -3
  204. package/src/mcps/framework-compliance-audit.server.ts +3 -3
  205. package/src/mcps/framework-help.server.ts +6 -6
  206. package/src/mcps/in-process-skill-registry.ts +6 -6
  207. package/src/mcps/knowledge-skills/api-design.server.test.ts +8 -8
  208. package/src/mcps/knowledge-skills/api-design.server.ts +3 -3
  209. package/src/mcps/knowledge-skills/architecture-patterns.server.ts +3 -3
  210. package/src/mcps/knowledge-skills/code-review.server.ts +3 -3
  211. package/src/mcps/knowledge-skills/database-design.server.ts +3 -3
  212. package/src/mcps/knowledge-skills/devops-deployment.server.ts +3 -3
  213. package/src/mcps/knowledge-skills/git-workflow.server.ts +3 -3
  214. package/src/mcps/knowledge-skills/mobile-development.server.ts +3 -3
  215. package/src/mcps/knowledge-skills/performance-optimization.server.ts +3 -3
  216. package/src/mcps/knowledge-skills/refactoring-strategies.server.ts +3 -3
  217. package/src/mcps/knowledge-skills/security-audit.server.test.ts +23 -23
  218. package/src/mcps/knowledge-skills/security-audit.server.ts +3 -3
  219. package/src/mcps/knowledge-skills/tech-writer.server.ts +3 -3
  220. package/src/mcps/knowledge-skills/testing-best-practices.server.test.ts +28 -28
  221. package/src/mcps/knowledge-skills/testing-best-practices.server.ts +3 -3
  222. package/src/mcps/knowledge-skills/testing-strategy.server.test.ts +19 -19
  223. package/src/mcps/knowledge-skills/testing-strategy.server.ts +3 -3
  224. package/src/mcps/knowledge-skills/ui-ux-design.server.ts +5 -5
  225. package/src/mcps/lint.server.ts +5 -5
  226. package/src/mcps/mcp-client.ts +3 -3
  227. package/src/mcps/model-health-check.server.ts +3 -3
  228. package/src/mcps/orchestrator/server.ts +2 -2
  229. package/src/mcps/performance-analysis.server.ts +3 -3
  230. package/src/mcps/processor-pipeline.server.ts +3 -3
  231. package/src/mcps/researcher.server.ts +4 -4
  232. package/src/mcps/security-scan.server.ts +3 -3
  233. package/src/mcps/simulation/server-simulations.ts +3 -3
  234. package/src/opencode/codex.codex +1 -1
  235. package/src/skills/hermes-agent/SKILL.md +11 -11
  236. package/src/skills/storyteller/SKILL.md +1 -1
  237. package/src/skills/xray-orchestrator/SKILL.md +141 -0
  238. package/src/skills/xray-orchestrator/index.ts +268 -0
  239. package/scripts/validate-stringray-comprehensive.js +0 -636
  240. /package/dist/integrations/openclaw/hooks/{strray-hooks.js → xray-hooks.js} +0 -0
@@ -7,7 +7,7 @@
7
7
  * @version 1.0.0
8
8
  * @since 2026-01-07
9
9
  */
10
- import { StringRayStateManager } from "../state/state-manager.js";
10
+ import { XrayStateManager } from "../state/state-manager.js";
11
11
  import { DelegationResult } from "./agent-delegator.js";
12
12
  export interface SessionContext {
13
13
  sessionId: string;
@@ -63,7 +63,7 @@ export interface SessionMetrics {
63
63
  export declare class SessionCoordinator {
64
64
  private stateManager;
65
65
  private sessions;
66
- constructor(stateManager: StringRayStateManager);
66
+ constructor(stateManager: XrayStateManager);
67
67
  /**
68
68
  * Get read-only view of all sessions - avoids breaking encapsulation
69
69
  */
@@ -130,4 +130,4 @@ export declare class SessionCoordinator {
130
130
  cleanupSession(sessionId: string): void;
131
131
  private updateSessionMetrics;
132
132
  }
133
- export declare const createSessionCoordinator: (stateManager: StringRayStateManager) => SessionCoordinator;
133
+ export declare const createSessionCoordinator: (stateManager: XrayStateManager) => SessionCoordinator;
@@ -13,7 +13,7 @@
13
13
  import type { VotingSession, VotingResult, StrategySelectionContext, VotingHistoryEntry, VotingMetrics, ConflictResolutionRequest, ConflictResolutionResponse } from "./voting-types.js";
14
14
  import { SessionCoordinator } from "./session-coordinator.js";
15
15
  import { WeightedVotingAggregator } from "./weighted-voting-aggregator.js";
16
- import { StringRayStateManager } from "../state/state-manager.js";
16
+ import { XrayStateManager } from "../state/state-manager.js";
17
17
  export interface VotingCoordinatorConfig {
18
18
  enableHistoryTracking: boolean;
19
19
  enableLearning: boolean;
@@ -28,7 +28,7 @@ export declare class VotingCoordinator {
28
28
  private metrics;
29
29
  private config;
30
30
  private aggregator;
31
- constructor(stateManager: StringRayStateManager, sessionCoordinator?: SessionCoordinator, config?: Partial<VotingCoordinatorConfig>);
31
+ constructor(stateManager: XrayStateManager, sessionCoordinator?: SessionCoordinator, config?: Partial<VotingCoordinatorConfig>);
32
32
  initiateVoting(sessionId: string, topic: string, description: string, participants: string[], context?: StrategySelectionContext): Promise<string>;
33
33
  submitVote(voteId: string, agentName: string, vote: string, confidence: number, reasoning?: string): boolean;
34
34
  resolveVoting(voteId: string): VotingResult | null;
@@ -46,4 +46,4 @@ export declare class VotingCoordinator {
46
46
  private initializeMetrics;
47
47
  private updateMetricsAfterVote;
48
48
  }
49
- export declare const createVotingCoordinator: (stateManager: StringRayStateManager, sessionCoordinator?: SessionCoordinator) => VotingCoordinator;
49
+ export declare const createVotingCoordinator: (stateManager: XrayStateManager, sessionCoordinator?: SessionCoordinator) => VotingCoordinator;
@@ -5,7 +5,7 @@
5
5
  import { ruleEnforcer, } from "./rule-enforcer.js";
6
6
  import { frameworkLogger } from "../core/framework-logger.js";
7
7
  import { AgentDelegator } from "../delegation/agent-delegator.js";
8
- import { StringRayStateManager } from "../state/state-manager.js";
8
+ import { XrayStateManager } from "../state/state-manager.js";
9
9
  import { strRayConfigLoader } from "../core/config-loader.js";
10
10
  import * as fs from "fs";
11
11
  import * as path from "path";
@@ -325,7 +325,7 @@ async function executeReleaseWorkflow(operation, context, jobId, routing) {
325
325
  async function delegateToAgent(agentName, operation, context, jobId) {
326
326
  try {
327
327
  // Create a minimal state manager and config loader for the delegator
328
- const stateManager = new StringRayStateManager();
328
+ const stateManager = new XrayStateManager();
329
329
  // Create the delegator
330
330
  const delegator = new AgentDelegator(stateManager, strRayConfigLoader);
331
331
  // Build task description for the delegated agent
@@ -28,7 +28,7 @@ export declare class CodexLoader extends BaseLoader {
28
28
  readonly name = "codex";
29
29
  /**
30
30
  * Path to the codex.json file.
31
- * Uses the standard config-paths resolver which checks .strray/, .opencode/strray/, etc.
31
+ * Uses the standard config-paths resolver which checks .xray/, .opencode/xray/, etc.
32
32
  */
33
33
  private get codexPath();
34
34
  /**
@@ -30,13 +30,13 @@ export class CodexLoader extends BaseLoader {
30
30
  name = "codex";
31
31
  /**
32
32
  * Path to the codex.json file.
33
- * Uses the standard config-paths resolver which checks .strray/, .opencode/strray/, etc.
33
+ * Uses the standard config-paths resolver which checks .xray/, .opencode/xray/, etc.
34
34
  */
35
35
  get codexPath() {
36
36
  const candidates = resolveCodexPath();
37
37
  const found = candidates.find((p) => existsSync(p));
38
38
  // Fallback to primary path even if not found yet
39
- return found ?? candidates[0] ?? this.resolvePath(".opencode/strray/codex.json");
39
+ return found ?? candidates[0] ?? this.resolvePath(".opencode/xray/codex.json");
40
40
  }
41
41
  /**
42
42
  * Check if codex.json exists.
package/dist/index.d.ts CHANGED
@@ -4,16 +4,16 @@
4
4
  * This is the main entry point for the 0xRay framework.
5
5
  * It exports the core initialization function and key components.
6
6
  */
7
- export { StringRayOrchestrator } from "./orchestrator/orchestrator.js";
8
- export { StringRayStateManager } from "./state/index.js";
7
+ export { XrayOrchestrator, XrayOrchestrator as StringRayOrchestrator } from "./orchestrator/orchestrator.js";
8
+ export { XrayStateManager, XrayStateManager as StringRayStateManager } from "./state/index.js";
9
9
  export { AgentDelegator } from "./delegation/index.js";
10
10
  export { frameworkLogger } from "./core/framework-logger.js";
11
11
  export { BUILTIN_CODEX } from "./core/codex-formatter.js";
12
- import { defaultStringRayConfig } from "./core/index.js";
13
- export { defaultStringRayConfig };
12
+ import { defaultXrayConfig } from "./core/index.js";
13
+ export { defaultXrayConfig, defaultXrayConfig as defaultStringRayConfig };
14
14
  export { OpenClawIntegration, initializeOpenClawIntegration, getOpenClawIntegration, shutdownOpenClawIntegration } from "./integrations/openclaw/index.js";
15
15
  export type { OpenClawIntegrationConfig } from "./integrations/openclaw/types.js";
16
- export declare function initializeStringRay(config?: {}): {
16
+ export declare function initializeXray(config?: {}): {
17
17
  success: boolean;
18
18
  config: {
19
19
  enableOrchestrator: boolean;
package/dist/index.js CHANGED
@@ -4,17 +4,17 @@
4
4
  * This is the main entry point for the 0xRay framework.
5
5
  * It exports the core initialization function and key components.
6
6
  */
7
- export { StringRayOrchestrator } from "./orchestrator/orchestrator.js";
8
- export { StringRayStateManager } from "./state/index.js";
7
+ export { XrayOrchestrator, XrayOrchestrator as StringRayOrchestrator } from "./orchestrator/orchestrator.js";
8
+ export { XrayStateManager, XrayStateManager as StringRayStateManager } from "./state/index.js";
9
9
  export { AgentDelegator } from "./delegation/index.js";
10
10
  export { frameworkLogger } from "./core/framework-logger.js";
11
11
  export { BUILTIN_CODEX } from "./core/codex-formatter.js";
12
- import { defaultStringRayConfig } from "./core/index.js";
13
- export { defaultStringRayConfig };
12
+ import { defaultXrayConfig } from "./core/index.js";
13
+ export { defaultXrayConfig, defaultXrayConfig as defaultStringRayConfig };
14
14
  export { OpenClawIntegration, initializeOpenClawIntegration, getOpenClawIntegration, shutdownOpenClawIntegration } from "./integrations/openclaw/index.js";
15
15
  // Main initialization function
16
- export function initializeStringRay(config = {}) {
17
- const mergedConfig = { ...defaultStringRayConfig, ...config };
16
+ export function initializeXray(config = {}) {
17
+ const mergedConfig = { ...defaultXrayConfig, ...config };
18
18
  // Return a standardized initialization result
19
19
  return {
20
20
  success: true,
@@ -43,7 +43,7 @@ export class DeployVerifier {
43
43
  if (!packCheck.passed) {
44
44
  return this.result(false, version, tarballPath, installDir, checks, startTime);
45
45
  }
46
- installDir = fs.mkdtempSync(path.join(os.tmpdir(), "strray-deploy-verify-"));
46
+ installDir = fs.mkdtempSync(path.join(os.tmpdir(), "xray-deploy-verify-"));
47
47
  const installCheck = this.runCheck("npm-install-fresh", () => {
48
48
  this.exec(`npm install ${tarballPath} --no-save`, installDir, 60000);
49
49
  return "Fresh install succeeded";
@@ -3,7 +3,7 @@ import * as path from "path";
3
3
  import { shouldTriggerCycle, accumulateCorpus } from "./inference-accumulator.js";
4
4
  import { DeployVerifier } from "./deploy-verifier.js";
5
5
  import { VotingCoordinator } from "../delegation/voting-coordinator.js";
6
- import { StringRayStateManager } from "../state/state-manager.js";
6
+ import { XrayStateManager } from "../state/state-manager.js";
7
7
  import { frameworkLogger } from "../core/framework-logger.js";
8
8
  import { getGovernanceIntegration } from "../integrations/governance/index.js";
9
9
  import { featuresConfigLoader } from "../core/features-config.js";
@@ -50,7 +50,7 @@ export class InferenceCycle {
50
50
  constructor(projectRoot, agentInvoker, options) {
51
51
  this.projectRoot = projectRoot || process.cwd();
52
52
  this.inferenceDir = path.join(this.projectRoot, "docs", "inference");
53
- this.stateDir = path.join(this.projectRoot, ".strray", "inference");
53
+ this.stateDir = path.join(this.projectRoot, ".xray", "inference");
54
54
  this.agentInvoker = agentInvoker ?? null;
55
55
  this.options = options ?? {};
56
56
  }
@@ -353,7 +353,7 @@ export class InferenceCycle {
353
353
  ``,
354
354
  `1. Read the relevant source files`,
355
355
  `2. Add the missing guard, validation, or edge case handling`,
356
- `3. If this is a codex rule, add the term to .opencode/strray/codex.json`,
356
+ `3. If this is a codex rule, add the term to .opencode/xray/codex.json`,
357
357
  `4. Make minimal, surgical changes`,
358
358
  ].join("\n");
359
359
  try {
@@ -922,7 +922,7 @@ Respond with EXACTLY one of:
922
922
  fs.mkdirSync(this.stateDir, { recursive: true });
923
923
  }
924
924
  const stateFile = path.join(this.stateDir, "governance-state.json");
925
- const stateManager = new StringRayStateManager();
925
+ const stateManager = new XrayStateManager();
926
926
  if (fs.existsSync(stateFile)) {
927
927
  try {
928
928
  const data = JSON.parse(fs.readFileSync(stateFile, "utf-8"));
@@ -975,10 +975,10 @@ Respond with EXACTLY one of:
975
975
  return texts.join("\n").trim();
976
976
  }
977
977
  resolveOpencodeRoot() {
978
- // Use the provider-agnostic config path resolver (prefers .strray/, falls back to .opencode/strray/)
978
+ // Use the provider-agnostic config path resolver (prefers .xray/, falls back to .opencode/xray/)
979
979
  const configDir = getConfigDir(this.projectRoot);
980
- // If we resolved to a .strray or custom dir, use its parent as the "root"
981
- if (configDir.includes(".strray") || configDir.includes("strray")) {
980
+ // If we resolved to a .xray or custom dir, use its parent as the "root"
981
+ if (configDir.includes(".xray") || configDir.includes("xray")) {
982
982
  return path.dirname(configDir);
983
983
  }
984
984
  // Legacy fallback
@@ -1,6 +1,6 @@
1
1
  # Integration Base System
2
2
 
3
- The Integration Base System provides a standardized foundation for creating and managing StringRay integrations. It includes the `BaseIntegration` class, `IntegrationRegistry`, and supporting types that ensure consistent lifecycle management, event handling, and configuration across all integrations.
3
+ The Integration Base System provides a standardized foundation for creating and managing Xray integrations. It includes the `BaseIntegration` class, `IntegrationRegistry`, and supporting types that ensure consistent lifecycle management, event handling, and configuration across all integrations.
4
4
 
5
5
  ## Overview
6
6
 
@@ -21,7 +21,7 @@ src/integrations/
21
21
  │ ├── ExampleIntegration.ts # Example implementation
22
22
  │ └── index.ts # Module exports
23
23
  ├── core/ # Core framework integrations
24
- │ └── strray-integration.ts # Cross-framework integration
24
+ │ └── xray-integration.ts # Cross-framework integration
25
25
  └── openclaw/ # External service integrations
26
26
  ├── index.ts
27
27
  ├── client.ts
@@ -283,7 +283,7 @@ export class InferenceGovernanceIntegration extends BaseIntegration {
283
283
  */
284
284
  async loadConfig() {
285
285
  try {
286
- const configPath = path.join(process.cwd(), '.opencode', 'strray', 'features.json');
286
+ const configPath = path.join(process.cwd(), '.opencode', 'xray', 'features.json');
287
287
  if (!fs.existsSync(configPath)) {
288
288
  await this.log('warning', 'features.json not found, using defaults');
289
289
  return;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Grok CLI Integration for StringRay / 0xRay
2
+ * Grok CLI Integration for 0xRay
3
3
  *
4
4
  * This module provides the integration points for using 0xRay with the official Grok CLI.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Grok CLI Integration for StringRay / 0xRay
2
+ * Grok CLI Integration for 0xRay
3
3
  *
4
4
  * This module provides the integration points for using 0xRay with the official Grok CLI.
5
5
  *
@@ -60,14 +60,14 @@ export async function installForGrokCLI(options = {}) {
60
60
  const govMcpPath = path.resolve(__dirname, '..', '..', '..', 'dist/mcps/governance.server.js');
61
61
  const skillsMcpPath = path.resolve(__dirname, '..', '..', '..', 'dist/mcps/knowledge-skills/skill-invocation.server.js');
62
62
  try {
63
- execSync(`grok mcp add strray-governance --command node --args "${govMcpPath}" --env "STRRAY_FORCE_MCP_GOVERNANCE=true" --env "STRRAY_ROOT=${process.cwd()}"`, { stdio: 'pipe' });
64
- execSync(`grok mcp add strray-skills --command node --args "${skillsMcpPath}" --env "STRRAY_ROOT=${process.cwd()}"`, { stdio: 'pipe' });
65
- console.log('\x1b[32m✓ Registered strray MCP servers with Grok CLI\x1b[0m');
63
+ execSync(`grok mcp add xray-governance --command node --args "${govMcpPath}" --env "STRRAY_FORCE_MCP_GOVERNANCE=true" --env "STRRAY_ROOT=${process.cwd()}"`, { stdio: 'pipe' });
64
+ execSync(`grok mcp add xray-skills --command node --args "${skillsMcpPath}" --env "STRRAY_ROOT=${process.cwd()}"`, { stdio: 'pipe' });
65
+ console.log('\x1b[32m✓ Registered xray MCP servers with Grok CLI\x1b[0m');
66
66
  }
67
67
  catch {
68
68
  console.log('\nCould not auto-register MCP servers. Run manually:');
69
- console.log(` grok mcp add strray-governance --command node --args "${govMcpPath}"`);
70
- console.log(` grok mcp add strray-skills --command node --args "${skillsMcpPath}"`);
69
+ console.log(` grok mcp add xray-governance --command node --args "${govMcpPath}"`);
70
+ console.log(` grok mcp add xray-skills --command node --args "${skillsMcpPath}"`);
71
71
  }
72
72
  console.log('\n✅ 0xRay is now installed as a first-class Grok CLI plugin!');
73
73
  console.log('Restart Grok or run `grok` to load the new hooks and MCP servers.');
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Grok CLI PreToolUse Hook Handler for StringRay (0xRay) — First Class Citizen
3
+ * Grok CLI PreToolUse Hook Handler for 0xRay — First Class Citizen
4
4
  *
5
5
  * Real governance enforcement hook.
6
6
  * When Grok is about to execute a tool (write_file, edit, terminal cmd, etc.),
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "mcpServers": {
3
- "strray-governance": {
3
+ "xray-governance": {
4
4
  "command": "npx",
5
5
  "args": ["-y", "0xray", "mcp", "governance"],
6
6
  "env": {
7
- "STRRAY_FORCE_MCP_GOVERNANCE": "true"
7
+ "XRAY_FORCE_MCP_GOVERNANCE": "true"
8
8
  }
9
9
  },
10
- "strray-skills": {
10
+ "xray-skills": {
11
11
  "command": "npx",
12
12
  "args": ["-y", "0xray", "mcp", "skills"]
13
13
  }
@@ -8,7 +8,7 @@
8
8
  "type": "command",
9
9
  "command": "node",
10
10
  "args": [
11
- "${STRRAY_AI_PATH:-node_modules/0xray}/dist/integrations/grok/hooks/pre-tool-use.js"
11
+ "${XRAY_PATH:-node_modules/0xray}/dist/integrations/grok/hooks/pre-tool-use.js"
12
12
  ],
13
13
  "timeout": 30000
14
14
  }
@@ -21,7 +21,7 @@
21
21
  {
22
22
  "type": "command",
23
23
  "command": "echo",
24
- "args": ["[0xRay] Grok session started with StringRay governance enabled"]
24
+ "args": ["[0xRay] Grok session started with 0xRay governance enabled"]
25
25
  }
26
26
  ]
27
27
  }