0xray 2.2.4 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (721) hide show
  1. package/.opencode/codex.codex +1 -1
  2. package/.opencode/commands/dependency-audit.md +3 -3
  3. package/.opencode/enforcer-config.json +2 -2
  4. package/AGENTS.md +7 -7
  5. package/README.md +54 -16
  6. package/dist/AGENTS.md +7 -7
  7. package/dist/CHANGELOG.md +147 -0
  8. package/dist/README.md +54 -16
  9. package/dist/agents/architect.js +1 -0
  10. package/dist/agents/architect.js.map +1 -0
  11. package/dist/agents/backend-engineer.js +1 -0
  12. package/dist/agents/backend-engineer.js.map +1 -0
  13. package/dist/agents/bug-triage-specialist.js +1 -0
  14. package/dist/agents/bug-triage-specialist.js.map +1 -0
  15. package/dist/agents/code-analyzer.js +1 -0
  16. package/dist/agents/code-analyzer.js.map +1 -0
  17. package/dist/agents/code-reviewer.js +2 -1
  18. package/dist/agents/code-reviewer.js.map +1 -0
  19. package/dist/agents/content-creator.js +1 -0
  20. package/dist/agents/content-creator.js.map +1 -0
  21. package/dist/agents/database-engineer.js +1 -0
  22. package/dist/agents/database-engineer.js.map +1 -0
  23. package/dist/agents/devops-engineer.js +1 -0
  24. package/dist/agents/devops-engineer.js.map +1 -0
  25. package/dist/agents/frontend-engineer.js +1 -0
  26. package/dist/agents/frontend-engineer.js.map +1 -0
  27. package/dist/agents/frontend-ui-ux-engineer.js +1 -0
  28. package/dist/agents/frontend-ui-ux-engineer.js.map +1 -0
  29. package/dist/agents/growth-strategist.js +1 -0
  30. package/dist/agents/growth-strategist.js.map +1 -0
  31. package/dist/agents/index.js +1 -0
  32. package/dist/agents/index.js.map +1 -0
  33. package/dist/agents/librarian-agents-updater.js +1 -0
  34. package/dist/agents/librarian-agents-updater.js.map +1 -0
  35. package/dist/agents/log-monitor.js +1 -0
  36. package/dist/agents/log-monitor.js.map +1 -0
  37. package/dist/agents/mobile-developer.js +1 -0
  38. package/dist/agents/mobile-developer.js.map +1 -0
  39. package/dist/agents/performance-engineer.js +1 -0
  40. package/dist/agents/performance-engineer.js.map +1 -0
  41. package/dist/agents/refactorer.js +1 -0
  42. package/dist/agents/refactorer.js.map +1 -0
  43. package/dist/agents/registry.js +1 -0
  44. package/dist/agents/registry.js.map +1 -0
  45. package/dist/agents/researcher.js +1 -0
  46. package/dist/agents/researcher.js.map +1 -0
  47. package/dist/agents/security-auditor.js +1 -0
  48. package/dist/agents/security-auditor.js.map +1 -0
  49. package/dist/agents/seo-consultant.js +1 -0
  50. package/dist/agents/seo-consultant.js.map +1 -0
  51. package/dist/agents/strategist.js +1 -0
  52. package/dist/agents/strategist.js.map +1 -0
  53. package/dist/agents/tech-writer.js +1 -0
  54. package/dist/agents/tech-writer.js.map +1 -0
  55. package/dist/agents/testing-lead.js +1 -0
  56. package/dist/agents/testing-lead.js.map +1 -0
  57. package/dist/agents/types.js +1 -0
  58. package/dist/agents/types.js.map +1 -0
  59. package/dist/analytics/emerging-pattern-detector.js +1 -0
  60. package/dist/analytics/emerging-pattern-detector.js.map +1 -0
  61. package/dist/analytics/pattern-learning-engine.js +1 -0
  62. package/dist/analytics/pattern-learning-engine.js.map +1 -0
  63. package/dist/analytics/pattern-performance-tracker.js +1 -0
  64. package/dist/analytics/pattern-performance-tracker.js.map +1 -0
  65. package/dist/analytics/predictive-analytics.js +1 -0
  66. package/dist/analytics/predictive-analytics.js.map +1 -0
  67. package/dist/analytics/prompt-pattern-analyzer.js +1 -0
  68. package/dist/analytics/prompt-pattern-analyzer.js.map +1 -0
  69. package/dist/analytics/routing-performance-analyzer.js +1 -0
  70. package/dist/analytics/routing-performance-analyzer.js.map +1 -0
  71. package/dist/analytics/routing-refiner.js +2 -1
  72. package/dist/analytics/routing-refiner.js.map +1 -0
  73. package/dist/architect/architect-tools.js +1 -0
  74. package/dist/architect/architect-tools.js.map +1 -0
  75. package/dist/architect/architectural-integrity.js +1 -0
  76. package/dist/architect/architectural-integrity.js.map +1 -0
  77. package/dist/cli/commands/antigravity-status.js +1 -0
  78. package/dist/cli/commands/antigravity-status.js.map +1 -0
  79. package/dist/cli/commands/archive-logs.js +1 -0
  80. package/dist/cli/commands/archive-logs.js.map +1 -0
  81. package/dist/cli/commands/credible-init.js +1 -0
  82. package/dist/cli/commands/credible-init.js.map +1 -0
  83. package/dist/cli/commands/govern.js +1 -3
  84. package/dist/cli/commands/govern.js.map +1 -0
  85. package/dist/cli/commands/grok-install.js +1 -0
  86. package/dist/cli/commands/grok-install.js.map +1 -0
  87. package/dist/cli/commands/hermes-install.js +1 -0
  88. package/dist/cli/commands/hermes-install.js.map +1 -0
  89. package/dist/cli/commands/mcp-install.js +1 -0
  90. package/dist/cli/commands/mcp-install.js.map +1 -0
  91. package/dist/cli/commands/openclaw-install.js +1 -0
  92. package/dist/cli/commands/openclaw-install.js.map +1 -0
  93. package/dist/cli/commands/opencode-install.js +1 -0
  94. package/dist/cli/commands/opencode-install.js.map +1 -0
  95. package/dist/cli/commands/plugin-commands.js +1 -0
  96. package/dist/cli/commands/plugin-commands.js.map +1 -0
  97. package/dist/cli/commands/publish-agent.js +1 -0
  98. package/dist/cli/commands/publish-agent.js.map +1 -0
  99. package/dist/cli/commands/security-audit.js +1 -0
  100. package/dist/cli/commands/security-audit.js.map +1 -0
  101. package/dist/cli/commands/skill-install.js +1 -0
  102. package/dist/cli/commands/skill-install.js.map +1 -0
  103. package/dist/cli/commands/status.js +17 -2
  104. package/dist/cli/commands/status.js.map +1 -0
  105. package/dist/cli/commands/storyteller.js +1 -0
  106. package/dist/cli/commands/storyteller.js.map +1 -0
  107. package/dist/cli/index.js +10 -5
  108. package/dist/cli/index.js.map +1 -0
  109. package/dist/config/default-agents.js +1 -0
  110. package/dist/config/default-agents.js.map +1 -0
  111. package/dist/config/routing-mappings.js +1 -0
  112. package/dist/config/routing-mappings.js.map +1 -0
  113. package/dist/core/activity-logger.js +1 -0
  114. package/dist/core/activity-logger.js.map +1 -0
  115. package/dist/core/adaptive-kernel.js +1 -0
  116. package/dist/core/adaptive-kernel.js.map +1 -0
  117. package/dist/core/agent-spawn-gate.js +1 -0
  118. package/dist/core/agent-spawn-gate.js.map +1 -0
  119. package/dist/core/boot-orchestrator.js +3 -2
  120. package/dist/core/boot-orchestrator.js.map +1 -0
  121. package/dist/core/codex-formatter.js +1 -0
  122. package/dist/core/codex-formatter.js.map +1 -0
  123. package/dist/core/codex-injector.js +1 -0
  124. package/dist/core/codex-injector.js.map +1 -0
  125. package/dist/core/config-loader.js +1 -0
  126. package/dist/core/config-loader.js.map +1 -0
  127. package/dist/core/config-paths.js +2 -1
  128. package/dist/core/config-paths.js.map +1 -0
  129. package/dist/core/context-loader.js +1 -0
  130. package/dist/core/context-loader.js.map +1 -0
  131. package/dist/core/context-validator.js +1 -0
  132. package/dist/core/context-validator.js.map +1 -0
  133. package/dist/core/features-config.js +2 -1
  134. package/dist/core/features-config.js.map +1 -0
  135. package/dist/core/framework-logger.js +1 -0
  136. package/dist/core/framework-logger.js.map +1 -0
  137. package/dist/core/index.js +2 -1
  138. package/dist/core/index.js.map +1 -0
  139. package/dist/core/kernel-patterns.js +1 -0
  140. package/dist/core/kernel-patterns.js.map +1 -0
  141. package/dist/core/model-router.js +1 -0
  142. package/dist/core/model-router.js.map +1 -0
  143. package/dist/core/orchestrator.d.ts +11 -10
  144. package/dist/core/orchestrator.js +27 -171
  145. package/dist/core/orchestrator.js.map +1 -0
  146. package/dist/core/system-prompt-generator.js +1 -0
  147. package/dist/core/system-prompt-generator.js.map +1 -0
  148. package/dist/core/xray-activation.js +2 -1
  149. package/dist/core/xray-activation.js.map +1 -0
  150. package/dist/delegation/agent-delegator.js +1 -0
  151. package/dist/delegation/agent-delegator.js.map +1 -0
  152. package/dist/delegation/agent-expertise.js +1 -0
  153. package/dist/delegation/agent-expertise.js.map +1 -0
  154. package/dist/delegation/analytics/index.js +1 -0
  155. package/dist/delegation/analytics/index.js.map +1 -0
  156. package/dist/delegation/analytics/learning-engine.js +1 -0
  157. package/dist/delegation/analytics/learning-engine.js.map +1 -0
  158. package/dist/delegation/analytics/outcome-tracker.js +1 -0
  159. package/dist/delegation/analytics/outcome-tracker.js.map +1 -0
  160. package/dist/delegation/analytics/routing-analytics.js +1 -0
  161. package/dist/delegation/analytics/routing-analytics.js.map +1 -0
  162. package/dist/delegation/ast-code-parser.js +1 -0
  163. package/dist/delegation/ast-code-parser.js.map +1 -0
  164. package/dist/delegation/codebase-context-analyzer.js +1 -0
  165. package/dist/delegation/codebase-context-analyzer.js.map +1 -0
  166. package/dist/delegation/complexity-analyzer.js +1 -0
  167. package/dist/delegation/complexity-analyzer.js.map +1 -0
  168. package/dist/delegation/complexity-core.js +1 -0
  169. package/dist/delegation/complexity-core.js.map +1 -0
  170. package/dist/delegation/config/types.js +1 -0
  171. package/dist/delegation/config/types.js.map +1 -0
  172. package/dist/delegation/dependency-graph-builder.js +1 -0
  173. package/dist/delegation/dependency-graph-builder.js.map +1 -0
  174. package/dist/delegation/index.d.ts +3 -0
  175. package/dist/delegation/index.js +4 -0
  176. package/dist/delegation/index.js.map +1 -0
  177. package/dist/delegation/metrics-aggregator.js +1 -0
  178. package/dist/delegation/metrics-aggregator.js.map +1 -0
  179. package/dist/delegation/session-coordinator.js +1 -0
  180. package/dist/delegation/session-coordinator.js.map +1 -0
  181. package/dist/delegation/strategy-selector.js +1 -0
  182. package/dist/delegation/strategy-selector.js.map +1 -0
  183. package/dist/delegation/voting-types.js +1 -0
  184. package/dist/delegation/voting-types.js.map +1 -0
  185. package/dist/delegation/weighted-voting-aggregator.js +1 -0
  186. package/dist/delegation/weighted-voting-aggregator.js.map +1 -0
  187. package/dist/enforcement/core/index.js +1 -0
  188. package/dist/enforcement/core/index.js.map +1 -0
  189. package/dist/enforcement/core/rule-executor.js +1 -0
  190. package/dist/enforcement/core/rule-executor.js.map +1 -0
  191. package/dist/enforcement/core/rule-hierarchy.js +1 -0
  192. package/dist/enforcement/core/rule-hierarchy.js.map +1 -0
  193. package/dist/enforcement/core/rule-registry.js +1 -0
  194. package/dist/enforcement/core/rule-registry.js.map +1 -0
  195. package/dist/enforcement/core/violation-fixer.js +1 -0
  196. package/dist/enforcement/core/violation-fixer.js.map +1 -0
  197. package/dist/enforcement/enforcer-tools.js +1 -0
  198. package/dist/enforcement/enforcer-tools.js.map +1 -0
  199. package/dist/enforcement/index.js +1 -0
  200. package/dist/enforcement/index.js.map +1 -0
  201. package/dist/enforcement/loaders/agent-triage-loader.js +1 -0
  202. package/dist/enforcement/loaders/agent-triage-loader.js.map +1 -0
  203. package/dist/enforcement/loaders/agents-md-validation-loader.js +1 -0
  204. package/dist/enforcement/loaders/agents-md-validation-loader.js.map +1 -0
  205. package/dist/enforcement/loaders/base-loader.js +1 -0
  206. package/dist/enforcement/loaders/base-loader.js.map +1 -0
  207. package/dist/enforcement/loaders/codex-loader.js +1 -0
  208. package/dist/enforcement/loaders/codex-loader.js.map +1 -0
  209. package/dist/enforcement/loaders/index.js +1 -0
  210. package/dist/enforcement/loaders/index.js.map +1 -0
  211. package/dist/enforcement/loaders/loader-orchestrator.js +1 -0
  212. package/dist/enforcement/loaders/loader-orchestrator.js.map +1 -0
  213. package/dist/enforcement/loaders/processor-loader.js +1 -0
  214. package/dist/enforcement/loaders/processor-loader.js.map +1 -0
  215. package/dist/enforcement/rule-enforcer.js +1 -0
  216. package/dist/enforcement/rule-enforcer.js.map +1 -0
  217. package/dist/enforcement/types.js +1 -0
  218. package/dist/enforcement/types.js.map +1 -0
  219. package/dist/enforcement/validators/architecture-validators.d.ts +17 -0
  220. package/dist/enforcement/validators/architecture-validators.js +81 -0
  221. package/dist/enforcement/validators/architecture-validators.js.map +1 -0
  222. package/dist/enforcement/validators/base-validator.js +1 -0
  223. package/dist/enforcement/validators/base-validator.js.map +1 -0
  224. package/dist/enforcement/validators/code-quality-validators.d.ts +1 -0
  225. package/dist/enforcement/validators/code-quality-validators.js +46 -14
  226. package/dist/enforcement/validators/code-quality-validators.js.map +1 -0
  227. package/dist/enforcement/validators/index.js +1 -0
  228. package/dist/enforcement/validators/index.js.map +1 -0
  229. package/dist/enforcement/validators/security-validators.js +1 -0
  230. package/dist/enforcement/validators/security-validators.js.map +1 -0
  231. package/dist/enforcement/validators/testing-validators.js +1 -0
  232. package/dist/enforcement/validators/testing-validators.js.map +1 -0
  233. package/dist/enforcement/validators/validator-registry.js +3 -1
  234. package/dist/enforcement/validators/validator-registry.js.map +1 -0
  235. package/dist/execution/opencode-cli-invoker.js +6 -23
  236. package/dist/execution/opencode-cli-invoker.js.map +1 -0
  237. package/dist/execution/proposal-applier.js +1 -0
  238. package/dist/execution/proposal-applier.js.map +1 -0
  239. package/dist/governance/codex-policy.service.js +1 -0
  240. package/dist/governance/codex-policy.service.js.map +1 -0
  241. package/dist/governance/governance-core.js +1 -0
  242. package/dist/governance/governance-core.js.map +1 -0
  243. package/dist/governance/governance-service.d.ts +8 -2
  244. package/dist/governance/governance-service.js +64 -76
  245. package/dist/governance/governance-service.js.map +1 -0
  246. package/dist/governance/governance-types.d.ts +4 -0
  247. package/dist/governance/governance-types.js +1 -0
  248. package/dist/governance/governance-types.js.map +1 -0
  249. package/dist/index.d.ts +4 -6
  250. package/dist/index.js +4 -13
  251. package/dist/index.js.map +1 -0
  252. package/dist/inference/deploy-verifier.js +1 -0
  253. package/dist/inference/deploy-verifier.js.map +1 -0
  254. package/dist/inference/index.js +1 -0
  255. package/dist/inference/index.js.map +1 -0
  256. package/dist/inference/inference-accumulator.js +1 -0
  257. package/dist/inference/inference-accumulator.js.map +1 -0
  258. package/dist/inference/inference-cycle.d.ts +0 -6
  259. package/dist/inference/inference-cycle.js +76 -277
  260. package/dist/inference/inference-cycle.js.map +1 -0
  261. package/dist/inference/semantic-patterns.js +1 -0
  262. package/dist/inference/semantic-patterns.js.map +1 -0
  263. package/dist/inference/session-capture.js +1 -0
  264. package/dist/inference/session-capture.js.map +1 -0
  265. package/dist/integrations/base/Integration.js +1 -0
  266. package/dist/integrations/base/Integration.js.map +1 -0
  267. package/dist/integrations/base/index.js +1 -0
  268. package/dist/integrations/base/index.js.map +1 -0
  269. package/dist/integrations/base/registry.js +1 -0
  270. package/dist/integrations/base/registry.js.map +1 -0
  271. package/dist/integrations/base/types.js +1 -0
  272. package/dist/integrations/base/types.js.map +1 -0
  273. package/dist/integrations/enforcement-gate.d.ts +44 -0
  274. package/dist/integrations/enforcement-gate.js +351 -0
  275. package/dist/integrations/enforcement-gate.js.map +1 -0
  276. package/dist/integrations/governance/governance-client.d.ts +4 -1
  277. package/dist/integrations/governance/governance-client.js +8 -1
  278. package/dist/integrations/governance/governance-client.js.map +1 -0
  279. package/dist/integrations/governance/index.d.ts +2 -2
  280. package/dist/integrations/governance/index.js +26 -5
  281. package/dist/integrations/governance/index.js.map +1 -0
  282. package/dist/integrations/governance/types.d.ts +26 -0
  283. package/dist/integrations/governance/types.js +11 -5
  284. package/dist/integrations/governance/types.js.map +1 -0
  285. package/dist/integrations/grok/grok-cli.js +2 -1
  286. package/dist/integrations/grok/grok-cli.js.map +1 -0
  287. package/dist/integrations/grok/hooks/pre-tool-use.d.ts +18 -0
  288. package/dist/integrations/grok/hooks/pre-tool-use.js.map +1 -0
  289. package/dist/integrations/grok/plugin/0xray/.mcp.json +1 -4
  290. package/dist/integrations/hermes-agent/bridge.mjs +11 -34
  291. package/dist/integrations/hermes-agent/hermes-agent-integration.d.ts +133 -0
  292. package/dist/integrations/hermes-agent/hermes-agent-integration.js +504 -0
  293. package/dist/integrations/hermes-agent/hermes-agent-integration.js.map +1 -0
  294. package/dist/integrations/hermes-agent/index.d.ts +11 -0
  295. package/dist/integrations/hermes-agent/index.js +12 -0
  296. package/dist/integrations/hermes-agent/index.js.map +1 -0
  297. package/dist/integrations/hermes-agent/types.d.ts +227 -0
  298. package/dist/integrations/hermes-agent/types.js +11 -0
  299. package/dist/integrations/hermes-agent/types.js.map +1 -0
  300. package/dist/integrations/openclaw/api-server.js +1 -0
  301. package/dist/integrations/openclaw/api-server.js.map +1 -0
  302. package/dist/integrations/openclaw/client.js +1 -0
  303. package/dist/integrations/openclaw/client.js.map +1 -0
  304. package/dist/integrations/openclaw/config.js +1 -0
  305. package/dist/integrations/openclaw/config.js.map +1 -0
  306. package/dist/integrations/openclaw/hooks/xray-hooks.d.ts +11 -0
  307. package/dist/integrations/openclaw/hooks/xray-hooks.js +1 -0
  308. package/dist/integrations/openclaw/hooks/xray-hooks.js.map +1 -0
  309. package/dist/integrations/openclaw/index.js +24 -0
  310. package/dist/integrations/openclaw/index.js.map +1 -0
  311. package/dist/integrations/openclaw/types.js +1 -0
  312. package/dist/integrations/openclaw/types.js.map +1 -0
  313. package/dist/integrations/plugins/index.js +1 -0
  314. package/dist/integrations/plugins/index.js.map +1 -0
  315. package/dist/integrations/plugins/plugin-integration.js +1 -0
  316. package/dist/integrations/plugins/plugin-integration.js.map +1 -0
  317. package/dist/integrations/plugins/plugin-registry.js +1 -0
  318. package/dist/integrations/plugins/plugin-registry.js.map +1 -0
  319. package/dist/mcps/agent-resolver.js +1 -0
  320. package/dist/mcps/agent-resolver.js.map +1 -0
  321. package/dist/mcps/architect-tools.server.js +1 -0
  322. package/dist/mcps/architect-tools.server.js.map +1 -0
  323. package/dist/mcps/auto-format.server.js +1 -0
  324. package/dist/mcps/auto-format.server.js.map +1 -0
  325. package/dist/mcps/boot-orchestrator.server.d.ts +3 -30
  326. package/dist/mcps/boot-orchestrator.server.js +32 -537
  327. package/dist/mcps/boot-orchestrator.server.js.map +1 -0
  328. package/dist/mcps/config/config-loader.js +1 -0
  329. package/dist/mcps/config/config-loader.js.map +1 -0
  330. package/dist/mcps/config/config-validator.js +1 -0
  331. package/dist/mcps/config/config-validator.js.map +1 -0
  332. package/dist/mcps/config/index.js +1 -0
  333. package/dist/mcps/config/index.js.map +1 -0
  334. package/dist/mcps/config/plugin-server-registry.js +1 -0
  335. package/dist/mcps/config/plugin-server-registry.js.map +1 -0
  336. package/dist/mcps/config/server-config-registry.js +1 -0
  337. package/dist/mcps/config/server-config-registry.js.map +1 -0
  338. package/dist/mcps/connection/connection-pool.js +1 -0
  339. package/dist/mcps/connection/connection-pool.js.map +1 -0
  340. package/dist/mcps/connection/mcp-connection.js +1 -0
  341. package/dist/mcps/connection/mcp-connection.js.map +1 -0
  342. package/dist/mcps/connection/process-spawner.js +1 -0
  343. package/dist/mcps/connection/process-spawner.js.map +1 -0
  344. package/dist/mcps/enforcer-tools.server.js +1 -0
  345. package/dist/mcps/enforcer-tools.server.js.map +1 -0
  346. package/dist/mcps/estimation.server.js +1 -0
  347. package/dist/mcps/estimation.server.js.map +1 -0
  348. package/dist/mcps/framework-compliance-audit.server.js +1 -0
  349. package/dist/mcps/framework-compliance-audit.server.js.map +1 -0
  350. package/dist/mcps/framework-help.server.js +1 -0
  351. package/dist/mcps/framework-help.server.js.map +1 -0
  352. package/dist/mcps/governance.server.d.ts +2 -1
  353. package/dist/mcps/governance.server.js +68 -17
  354. package/dist/mcps/governance.server.js.map +1 -0
  355. package/dist/mcps/in-process-skill-registry.js +17 -0
  356. package/dist/mcps/in-process-skill-registry.js.map +1 -0
  357. package/dist/mcps/index.d.ts +17 -0
  358. package/dist/mcps/index.js +65 -0
  359. package/dist/mcps/index.js.map +1 -0
  360. package/dist/mcps/knowledge-skills/api-design.server.js +1 -0
  361. package/dist/mcps/knowledge-skills/api-design.server.js.map +1 -0
  362. package/dist/mcps/knowledge-skills/architecture-patterns.server.js +1 -0
  363. package/dist/mcps/knowledge-skills/architecture-patterns.server.js.map +1 -0
  364. package/dist/mcps/knowledge-skills/bug-triage-specialist.server.js +1 -0
  365. package/dist/mcps/knowledge-skills/bug-triage-specialist.server.js.map +1 -0
  366. package/dist/mcps/knowledge-skills/code-analyzer.server.js +1 -0
  367. package/dist/mcps/knowledge-skills/code-analyzer.server.js.map +1 -0
  368. package/dist/mcps/knowledge-skills/code-review.server.js +1 -0
  369. package/dist/mcps/knowledge-skills/code-review.server.js.map +1 -0
  370. package/dist/mcps/knowledge-skills/content-creator.server.js +1 -0
  371. package/dist/mcps/knowledge-skills/content-creator.server.js.map +1 -0
  372. package/dist/mcps/knowledge-skills/database-design.server.js +1 -0
  373. package/dist/mcps/knowledge-skills/database-design.server.js.map +1 -0
  374. package/dist/mcps/knowledge-skills/devops-deployment.server.js +1 -0
  375. package/dist/mcps/knowledge-skills/devops-deployment.server.js.map +1 -0
  376. package/dist/mcps/knowledge-skills/git-workflow.server.js +1 -0
  377. package/dist/mcps/knowledge-skills/git-workflow.server.js.map +1 -0
  378. package/dist/mcps/knowledge-skills/growth-strategist.server.js +1 -0
  379. package/dist/mcps/knowledge-skills/growth-strategist.server.js.map +1 -0
  380. package/dist/mcps/knowledge-skills/log-monitor.server.js +1 -0
  381. package/dist/mcps/knowledge-skills/log-monitor.server.js.map +1 -0
  382. package/dist/mcps/knowledge-skills/mobile-development.server.js +1 -0
  383. package/dist/mcps/knowledge-skills/mobile-development.server.js.map +1 -0
  384. package/dist/mcps/knowledge-skills/multimodal-looker.server.js +1 -0
  385. package/dist/mcps/knowledge-skills/multimodal-looker.server.js.map +1 -0
  386. package/dist/mcps/knowledge-skills/performance-optimization.server.js +1 -0
  387. package/dist/mcps/knowledge-skills/performance-optimization.server.js.map +1 -0
  388. package/dist/mcps/knowledge-skills/project-analysis.server.js +1 -0
  389. package/dist/mcps/knowledge-skills/project-analysis.server.js.map +1 -0
  390. package/dist/mcps/knowledge-skills/refactoring-strategies.server.js +1 -0
  391. package/dist/mcps/knowledge-skills/refactoring-strategies.server.js.map +1 -0
  392. package/dist/mcps/knowledge-skills/security-audit.server.js +1 -0
  393. package/dist/mcps/knowledge-skills/security-audit.server.js.map +1 -0
  394. package/dist/mcps/knowledge-skills/seo-consultant.server.js +1 -0
  395. package/dist/mcps/knowledge-skills/seo-consultant.server.js.map +1 -0
  396. package/dist/mcps/knowledge-skills/session-management.server.js +1 -0
  397. package/dist/mcps/knowledge-skills/session-management.server.js.map +1 -0
  398. package/dist/mcps/knowledge-skills/skill-invocation.server.d.ts +1 -0
  399. package/dist/mcps/knowledge-skills/skill-invocation.server.js +16 -1
  400. package/dist/mcps/knowledge-skills/skill-invocation.server.js.map +1 -0
  401. package/dist/mcps/knowledge-skills/strategist.server.js +1 -0
  402. package/dist/mcps/knowledge-skills/strategist.server.js.map +1 -0
  403. package/dist/mcps/knowledge-skills/tech-writer.server.js +2 -1
  404. package/dist/mcps/knowledge-skills/tech-writer.server.js.map +1 -0
  405. package/dist/mcps/knowledge-skills/testing-strategy.server.js +1 -0
  406. package/dist/mcps/knowledge-skills/testing-strategy.server.js.map +1 -0
  407. package/dist/mcps/knowledge-skills/ui-ux-design.server.js +1 -0
  408. package/dist/mcps/knowledge-skills/ui-ux-design.server.js.map +1 -0
  409. package/dist/mcps/lint.server.js +1 -0
  410. package/dist/mcps/lint.server.js.map +1 -0
  411. package/dist/mcps/mcp-client.js +3 -2
  412. package/dist/mcps/mcp-client.js.map +1 -0
  413. package/dist/mcps/model-health-check.server.js +1 -0
  414. package/dist/mcps/model-health-check.server.js.map +1 -0
  415. package/dist/mcps/orchestrator/config/agent-capabilities.js +1 -0
  416. package/dist/mcps/orchestrator/config/agent-capabilities.js.map +1 -0
  417. package/dist/mcps/orchestrator/execution/execution-planner.js +1 -0
  418. package/dist/mcps/orchestrator/execution/execution-planner.js.map +1 -0
  419. package/dist/mcps/orchestrator/handlers/complexity-handler.js +1 -0
  420. package/dist/mcps/orchestrator/handlers/complexity-handler.js.map +1 -0
  421. package/dist/mcps/orchestrator/handlers/status-handler.js +1 -0
  422. package/dist/mcps/orchestrator/handlers/status-handler.js.map +1 -0
  423. package/dist/mcps/orchestrator/handlers/task-handler.js +1 -0
  424. package/dist/mcps/orchestrator/handlers/task-handler.js.map +1 -0
  425. package/dist/mcps/orchestrator/server.js +1 -0
  426. package/dist/mcps/orchestrator/server.js.map +1 -0
  427. package/dist/mcps/orchestrator/types.js +1 -0
  428. package/dist/mcps/orchestrator/types.js.map +1 -0
  429. package/dist/mcps/performance-analysis.server.js +1 -0
  430. package/dist/mcps/performance-analysis.server.js.map +1 -0
  431. package/dist/mcps/processor-pipeline.server.js +1 -0
  432. package/dist/mcps/processor-pipeline.server.js.map +1 -0
  433. package/dist/mcps/protocol/protocol-constants.js +1 -0
  434. package/dist/mcps/protocol/protocol-constants.js.map +1 -0
  435. package/dist/mcps/registry.json +1 -1
  436. package/dist/mcps/researcher.server.js +1 -0
  437. package/dist/mcps/researcher.server.js.map +1 -0
  438. package/dist/mcps/security-scan.server.js +1 -0
  439. package/dist/mcps/security-scan.server.js.map +1 -0
  440. package/dist/mcps/shared/knowledge-skill-base.js +1 -0
  441. package/dist/mcps/shared/knowledge-skill-base.js.map +1 -0
  442. package/dist/mcps/shared/prompt-security-validator.js +1 -0
  443. package/dist/mcps/shared/prompt-security-validator.js.map +1 -0
  444. package/dist/mcps/shared/security-scanner.js +1 -0
  445. package/dist/mcps/shared/security-scanner.js.map +1 -0
  446. package/dist/mcps/simulation/index.js +1 -0
  447. package/dist/mcps/simulation/index.js.map +1 -0
  448. package/dist/mcps/simulation/server-simulations.js +1 -0
  449. package/dist/mcps/simulation/server-simulations.js.map +1 -0
  450. package/dist/mcps/simulation/simulation-engine.js +1 -0
  451. package/dist/mcps/simulation/simulation-engine.js.map +1 -0
  452. package/dist/mcps/state-manager.server.js +1 -0
  453. package/dist/mcps/state-manager.server.js.map +1 -0
  454. package/dist/mcps/tools/index.js +1 -0
  455. package/dist/mcps/tools/index.js.map +1 -0
  456. package/dist/mcps/tools/tool-cache.js +1 -0
  457. package/dist/mcps/tools/tool-cache.js.map +1 -0
  458. package/dist/mcps/tools/tool-discovery.js +1 -0
  459. package/dist/mcps/tools/tool-discovery.js.map +1 -0
  460. package/dist/mcps/tools/tool-executor.js +1 -0
  461. package/dist/mcps/tools/tool-executor.js.map +1 -0
  462. package/dist/mcps/tools/tool-registry.js +1 -0
  463. package/dist/mcps/tools/tool-registry.js.map +1 -0
  464. package/dist/mcps/types/index.js +1 -0
  465. package/dist/mcps/types/index.js.map +1 -0
  466. package/dist/mcps/types/json-rpc.types.js +1 -0
  467. package/dist/mcps/types/json-rpc.types.js.map +1 -0
  468. package/dist/mcps/types/mcp.types.js +1 -0
  469. package/dist/mcps/types/mcp.types.js.map +1 -0
  470. package/dist/metrics/agent-metrics.js +2 -1
  471. package/dist/metrics/agent-metrics.js.map +1 -0
  472. package/dist/metrics/index.js +1 -0
  473. package/dist/metrics/index.js.map +1 -0
  474. package/dist/monitoring/advanced-profiler.js +1 -0
  475. package/dist/monitoring/advanced-profiler.js.map +1 -0
  476. package/dist/monitoring/memory-monitor.js +1 -0
  477. package/dist/monitoring/memory-monitor.js.map +1 -0
  478. package/dist/monitoring/nudge-watchdog.js +1 -0
  479. package/dist/monitoring/nudge-watchdog.js.map +1 -0
  480. package/dist/monitoring/test-auto-generation-monitor.js +1 -0
  481. package/dist/monitoring/test-auto-generation-monitor.js.map +1 -0
  482. package/dist/nucleus/default-plugins.d.ts +17 -0
  483. package/dist/nucleus/default-plugins.js +146 -0
  484. package/dist/nucleus/default-plugins.js.map +1 -0
  485. package/dist/nucleus/govern-http.js +1 -0
  486. package/dist/nucleus/govern-http.js.map +1 -0
  487. package/dist/nucleus/index.d.ts +8 -4
  488. package/dist/nucleus/index.js +5 -1
  489. package/dist/nucleus/index.js.map +1 -0
  490. package/dist/nucleus/kernel.d.ts +1 -1
  491. package/dist/nucleus/kernel.js +1 -0
  492. package/dist/nucleus/kernel.js.map +1 -0
  493. package/dist/nucleus/orchestrator.d.ts +97 -0
  494. package/dist/nucleus/orchestrator.js +480 -0
  495. package/dist/nucleus/orchestrator.js.map +1 -0
  496. package/dist/nucleus/plugin-registry.d.ts +28 -0
  497. package/dist/nucleus/plugin-registry.js +33 -4
  498. package/dist/nucleus/plugin-registry.js.map +1 -0
  499. package/dist/nucleus/thin-dispatch.d.ts +28 -0
  500. package/dist/nucleus/thin-dispatch.js +58 -0
  501. package/dist/nucleus/thin-dispatch.js.map +1 -0
  502. package/dist/orchestrator/agent-spawn-governor.js +1 -0
  503. package/dist/orchestrator/agent-spawn-governor.js.map +1 -0
  504. package/dist/orchestrator/enhanced-multi-agent-orchestrator.js +1 -0
  505. package/dist/orchestrator/enhanced-multi-agent-orchestrator.js.map +1 -0
  506. package/dist/orchestrator/intelligent-commit-batcher.js +1 -0
  507. package/dist/orchestrator/intelligent-commit-batcher.js.map +1 -0
  508. package/dist/orchestrator/multi-agent-orchestration-coordinator.js +1 -0
  509. package/dist/orchestrator/multi-agent-orchestration-coordinator.js.map +1 -0
  510. package/dist/orchestrator/orchestrator.js +1 -0
  511. package/dist/orchestrator/orchestrator.js.map +1 -0
  512. package/dist/plugin/xray-codex-injection.js +28 -262
  513. package/dist/plugin/xray-codex-injection.js.map +1 -0
  514. package/dist/postprocessor/PostProcessor.d.ts +1 -1
  515. package/dist/postprocessor/PostProcessor.js +79 -1
  516. package/dist/postprocessor/PostProcessor.js.map +1 -0
  517. package/dist/postprocessor/analysis/CodeChangeAnalyzer.js +1 -0
  518. package/dist/postprocessor/analysis/CodeChangeAnalyzer.js.map +1 -0
  519. package/dist/postprocessor/analysis/FailureAnalysisEngine.js +1 -0
  520. package/dist/postprocessor/analysis/FailureAnalysisEngine.js.map +1 -0
  521. package/dist/postprocessor/autofix/AutoFixEngine.js +1 -0
  522. package/dist/postprocessor/autofix/AutoFixEngine.js.map +1 -0
  523. package/dist/postprocessor/autofix/FixValidator.js +1 -0
  524. package/dist/postprocessor/autofix/FixValidator.js.map +1 -0
  525. package/dist/postprocessor/compliance/ArchitecturalComplianceChecker.js +1 -0
  526. package/dist/postprocessor/compliance/ArchitecturalComplianceChecker.js.map +1 -0
  527. package/dist/postprocessor/config/ProcessorConfigLoader.js +1 -0
  528. package/dist/postprocessor/config/ProcessorConfigLoader.js.map +1 -0
  529. package/dist/postprocessor/config.js +1 -0
  530. package/dist/postprocessor/config.js.map +1 -0
  531. package/dist/postprocessor/escalation/EscalationEngine.js +1 -0
  532. package/dist/postprocessor/escalation/EscalationEngine.js.map +1 -0
  533. package/dist/postprocessor/metamorphosis/SelfProposalEngine.d.ts +20 -1
  534. package/dist/postprocessor/metamorphosis/SelfProposalEngine.js +106 -4
  535. package/dist/postprocessor/metamorphosis/SelfProposalEngine.js.map +1 -0
  536. package/dist/postprocessor/metamorphosis/index.d.ts +2 -0
  537. package/dist/postprocessor/metamorphosis/index.js +2 -0
  538. package/dist/postprocessor/metamorphosis/index.js.map +1 -0
  539. package/dist/postprocessor/monitoring/MonitoringEngine.js +1 -0
  540. package/dist/postprocessor/monitoring/MonitoringEngine.js.map +1 -0
  541. package/dist/postprocessor/redeploy/RedeployCoordinator.js +1 -0
  542. package/dist/postprocessor/redeploy/RedeployCoordinator.js.map +1 -0
  543. package/dist/postprocessor/reporting/PostProcessorReporter.js +1 -0
  544. package/dist/postprocessor/reporting/PostProcessorReporter.js.map +1 -0
  545. package/dist/postprocessor/services/RegressionAnalysisService.js +1 -0
  546. package/dist/postprocessor/services/RegressionAnalysisService.js.map +1 -0
  547. package/dist/postprocessor/success/SuccessHandler.js +1 -0
  548. package/dist/postprocessor/success/SuccessHandler.js.map +1 -0
  549. package/dist/postprocessor/triggers/APITrigger.js +1 -0
  550. package/dist/postprocessor/triggers/APITrigger.js.map +1 -0
  551. package/dist/postprocessor/triggers/GitHookTrigger.js +1 -0
  552. package/dist/postprocessor/triggers/GitHookTrigger.js.map +1 -0
  553. package/dist/postprocessor/triggers/WebhookTrigger.js +1 -0
  554. package/dist/postprocessor/triggers/WebhookTrigger.js.map +1 -0
  555. package/dist/postprocessor/types.d.ts +6 -0
  556. package/dist/postprocessor/types.js +1 -0
  557. package/dist/postprocessor/types.js.map +1 -0
  558. package/dist/postprocessor/validation/HookMetricsCollector.d.ts +47 -0
  559. package/dist/postprocessor/validation/HookMetricsCollector.js +188 -0
  560. package/dist/postprocessor/validation/HookMetricsCollector.js.map +1 -0
  561. package/dist/postprocessor/validation/LightweightValidator.d.ts +46 -0
  562. package/dist/postprocessor/validation/LightweightValidator.js +271 -0
  563. package/dist/postprocessor/validation/LightweightValidator.js.map +1 -0
  564. package/dist/processors/doc-write-guard.js +1 -0
  565. package/dist/processors/doc-write-guard.js.map +1 -0
  566. package/dist/processors/implementations/agents-md-validation-processor.js +1 -0
  567. package/dist/processors/implementations/agents-md-validation-processor.js.map +1 -0
  568. package/dist/processors/implementations/async-pattern-processor.js +1 -0
  569. package/dist/processors/implementations/async-pattern-processor.js.map +1 -0
  570. package/dist/processors/implementations/codex-compliance-processor.js +1 -0
  571. package/dist/processors/implementations/codex-compliance-processor.js.map +1 -0
  572. package/dist/processors/implementations/commit-batcher-processor.js +1 -0
  573. package/dist/processors/implementations/commit-batcher-processor.js.map +1 -0
  574. package/dist/processors/implementations/console-log-guard-processor.js +1 -0
  575. package/dist/processors/implementations/console-log-guard-processor.js.map +1 -0
  576. package/dist/processors/implementations/coverage-analysis-processor.js +1 -0
  577. package/dist/processors/implementations/coverage-analysis-processor.js.map +1 -0
  578. package/dist/processors/implementations/error-boundary-processor.js +1 -0
  579. package/dist/processors/implementations/error-boundary-processor.js.map +1 -0
  580. package/dist/processors/implementations/inference-improvement-processor.js +1 -0
  581. package/dist/processors/implementations/inference-improvement-processor.js.map +1 -0
  582. package/dist/processors/implementations/log-protection-processor.js +1 -0
  583. package/dist/processors/implementations/log-protection-processor.js.map +1 -0
  584. package/dist/processors/implementations/nudge-processor.js +1 -0
  585. package/dist/processors/implementations/nudge-processor.js.map +1 -0
  586. package/dist/processors/implementations/performance-budget-processor.js +1 -0
  587. package/dist/processors/implementations/performance-budget-processor.js.map +1 -0
  588. package/dist/processors/implementations/postprocessor-chain-validator.js +1 -0
  589. package/dist/processors/implementations/postprocessor-chain-validator.js.map +1 -0
  590. package/dist/processors/implementations/pre-validate-processor.js +1 -0
  591. package/dist/processors/implementations/pre-validate-processor.js.map +1 -0
  592. package/dist/processors/implementations/publish-preflight-processor.js +1 -0
  593. package/dist/processors/implementations/publish-preflight-processor.js.map +1 -0
  594. package/dist/processors/implementations/refactoring-logging-processor-wrapper.js +1 -0
  595. package/dist/processors/implementations/refactoring-logging-processor-wrapper.js.map +1 -0
  596. package/dist/processors/implementations/regression-testing-processor.js +1 -0
  597. package/dist/processors/implementations/regression-testing-processor.js.map +1 -0
  598. package/dist/processors/implementations/session-summary-processor.js +1 -0
  599. package/dist/processors/implementations/session-summary-processor.js.map +1 -0
  600. package/dist/processors/implementations/spawn-governance-processor.js +1 -0
  601. package/dist/processors/implementations/spawn-governance-processor.js.map +1 -0
  602. package/dist/processors/implementations/state-validation-processor.js +1 -0
  603. package/dist/processors/implementations/state-validation-processor.js.map +1 -0
  604. package/dist/processors/implementations/storytelling-trigger-processor.js +1 -0
  605. package/dist/processors/implementations/storytelling-trigger-processor.js.map +1 -0
  606. package/dist/processors/implementations/test-auto-creation-processor.js +1 -0
  607. package/dist/processors/implementations/test-auto-creation-processor.js.map +1 -0
  608. package/dist/processors/implementations/test-execution-processor.js +1 -0
  609. package/dist/processors/implementations/test-execution-processor.js.map +1 -0
  610. package/dist/processors/implementations/typescript-compilation-processor.js +1 -0
  611. package/dist/processors/implementations/typescript-compilation-processor.js.map +1 -0
  612. package/dist/processors/implementations/version-compliance-processor.js +1 -0
  613. package/dist/processors/implementations/version-compliance-processor.js.map +1 -0
  614. package/dist/processors/processor-interfaces.js +1 -0
  615. package/dist/processors/processor-interfaces.js.map +1 -0
  616. package/dist/processors/processor-manager.js +1 -0
  617. package/dist/processors/processor-manager.js.map +1 -0
  618. package/dist/processors/processor-types.js +1 -0
  619. package/dist/processors/processor-types.js.map +1 -0
  620. package/dist/public/XrayService.d.ts +17 -0
  621. package/dist/public/XrayService.js +41 -0
  622. package/dist/public/XrayService.js.map +1 -0
  623. package/dist/public/index.d.ts +4 -0
  624. package/dist/public/index.js +3 -0
  625. package/dist/public/index.js.map +1 -0
  626. package/dist/reporting/framework-reporting-system.js +1 -0
  627. package/dist/reporting/framework-reporting-system.js.map +1 -0
  628. package/dist/reporting/log-parser.js +1 -0
  629. package/dist/reporting/log-parser.js.map +1 -0
  630. package/dist/reporting/metrics.js +1 -0
  631. package/dist/reporting/metrics.js.map +1 -0
  632. package/dist/reporting/report-formatter.js +1 -0
  633. package/dist/reporting/report-formatter.js.map +1 -0
  634. package/dist/reporting/types.js +1 -0
  635. package/dist/reporting/types.js.map +1 -0
  636. package/dist/scripts/integration.js +1 -0
  637. package/dist/scripts/integration.js.map +1 -0
  638. package/dist/security/comprehensive-security-audit.js +1 -0
  639. package/dist/security/comprehensive-security-audit.js.map +1 -0
  640. package/dist/security/security-hardener.js +1 -0
  641. package/dist/security/security-hardener.js.map +1 -0
  642. package/dist/security/security-headers.js +1 -0
  643. package/dist/security/security-headers.js.map +1 -0
  644. package/dist/services/inference-tuner.js +1 -0
  645. package/dist/services/inference-tuner.js.map +1 -0
  646. package/dist/session/index.js +1 -0
  647. package/dist/session/index.js.map +1 -0
  648. package/dist/session/session-cleanup-manager.js +1 -0
  649. package/dist/session/session-cleanup-manager.js.map +1 -0
  650. package/dist/session/session-monitor.js +1 -0
  651. package/dist/session/session-monitor.js.map +1 -0
  652. package/dist/session/session-state-manager.js +1 -0
  653. package/dist/session/session-state-manager.js.map +1 -0
  654. package/dist/skills/registry.json +1 -1
  655. package/dist/skills/xray-orchestrator/index.js +1 -0
  656. package/dist/skills/xray-orchestrator/index.js.map +1 -0
  657. package/dist/state/index.js +1 -0
  658. package/dist/state/index.js.map +1 -0
  659. package/dist/state/state-manager.js +1 -0
  660. package/dist/state/state-manager.js.map +1 -0
  661. package/dist/tools/assess-complexity-tool.js +1 -0
  662. package/dist/tools/assess-complexity-tool.js.map +1 -0
  663. package/dist/tools/query-routing-tool.js +1 -0
  664. package/dist/tools/query-routing-tool.js.map +1 -0
  665. package/dist/{postprocessor/metamorphosis/MetamorphosisEngine.d.ts → types/metamorphosis.d.ts} +2 -6
  666. package/dist/types/metamorphosis.js +7 -0
  667. package/dist/types/metamorphosis.js.map +1 -0
  668. package/dist/utils/codex-parser.js +1 -0
  669. package/dist/utils/codex-parser.js.map +1 -0
  670. package/dist/utils/command-runner.js +1 -0
  671. package/dist/utils/command-runner.js.map +1 -0
  672. package/dist/utils/import-resolver.js +1 -0
  673. package/dist/utils/import-resolver.js.map +1 -0
  674. package/dist/utils/language-detector.js +1 -0
  675. package/dist/utils/language-detector.js.map +1 -0
  676. package/dist/utils/path-resolver.js +1 -0
  677. package/dist/utils/path-resolver.js.map +1 -0
  678. package/dist/utils/shutdown-handler.js +1 -0
  679. package/dist/utils/shutdown-handler.js.map +1 -0
  680. package/dist/utils/task-graph.d.ts +29 -0
  681. package/dist/utils/task-graph.js +107 -0
  682. package/dist/utils/task-graph.js.map +1 -0
  683. package/dist/validation/estimation-validator.js +1 -0
  684. package/dist/validation/estimation-validator.js.map +1 -0
  685. package/dist/validation/report-content-validator.js +1 -0
  686. package/dist/validation/report-content-validator.js.map +1 -0
  687. package/package.json +25 -3
  688. package/scripts/hooks/install-hooks.cjs +100 -0
  689. package/scripts/hooks/run-hook.js +185 -72
  690. package/scripts/node/postinstall.cjs +21 -7
  691. package/scripts/node/prepare-consumer.cjs +6 -5
  692. package/scripts/node/setup.cjs +19 -6
  693. package/scripts/node/universal-version-manager.js +9 -9
  694. package/src/integrations/grok/plugin/0xray/.mcp.json +1 -4
  695. package/src/mcps/boot-orchestrator.server.ts +38 -690
  696. package/src/mcps/config/__tests__/config-loader.test.ts +8 -1
  697. package/src/mcps/governance.server.ts +75 -18
  698. package/src/mcps/in-process-skill-registry.ts +16 -0
  699. package/src/mcps/index.ts +79 -0
  700. package/src/mcps/knowledge-skills/skill-invocation.server.ts +13 -1
  701. package/src/mcps/knowledge-skills/tech-writer.server.ts +1 -1
  702. package/src/mcps/mcp-client.ts +2 -2
  703. package/src/mcps/registry.json +1 -1
  704. package/src/opencode/codex.codex +1 -1
  705. package/src/opencode/commands/dependency-audit.md +3 -3
  706. package/src/opencode/enforcer-config.json +2 -2
  707. package/src/skills/registry.json +1 -1
  708. package/xray/codex.json +1 -1
  709. package/xray/config.json +1 -1
  710. package/xray/features.json +17 -1
  711. package/xray/integrations.json +3 -3
  712. package/dist/agents/multimodal-looker.d.ts +0 -9
  713. package/dist/agents/multimodal-looker.js +0 -93
  714. package/dist/benchmark/performance-benchmark.d.ts +0 -103
  715. package/dist/benchmark/performance-benchmark.js +0 -372
  716. package/dist/mcps/connection/connection-manager.d.ts +0 -39
  717. package/dist/mcps/connection/connection-manager.js +0 -79
  718. package/dist/postprocessor/metamorphosis/MetamorphosisEngine.js +0 -10
  719. package/dist/testing/memory-regression-suite.d.ts +0 -105
  720. package/dist/testing/memory-regression-suite.js +0 -258
  721. package/src/mcps/connection/connection-manager.ts +0 -91
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.2",
2
+ "version": "3.0.0",
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.2.2",
72
+ "version": "3.0.0",
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.2.2",
88
+ "version": "3.0.0",
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.2.2"
95
+ "version": "3.0.0"
96
96
  }
97
97
  },
98
98
  "results": [...]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "framework": "xray 2.0",
3
- "version": "2.2.2",
3
+ "version": "3.0.0",
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.2.2",
223
+ "version": "3.0.0",
224
224
  "terms": [
225
225
  1,
226
226
  2,
package/AGENTS.md CHANGED
@@ -4,11 +4,11 @@ Quick reference for xray AI orchestration framework (v15 MCPs-centric three-subs
4
4
 
5
5
  ## What is xray?
6
6
 
7
- xray provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation under the pure v2 three-subsystem model (Inference + External Governance via Dynamo + Autonomous Engine via thinDispatch 7-flow in MCP orchestrator). Agents operate via `.opencode/agents/*.yml` YML surfaces and 3 dedicated MCP skill servers — no manual setup needed.
7
+ xray provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation under the pure v3 three-subsystem model (Inference + External Governance via Dynamo + Autonomous Engine via thinDispatch 7-flow in MCP orchestrator). Agents operate via `src/opencode/agents/*.yml` YML surfaces and 3 dedicated MCP skill servers — no manual setup needed.
8
8
 
9
9
  ## v15 MCPs-Centric Architecture
10
10
 
11
- The v2 release centers on **MCP (Model Context Protocol)** as the primary surface for agent skills. Three agent MCP servers handle governance deliberation:
11
+ The v3 release centers on **MCP (Model Context Protocol)** as the primary surface for agent skills. Three agent MCP servers handle governance deliberation:
12
12
 
13
13
  - `code-review` — Proposal quality, code analysis, best practices
14
14
  - `security-audit` — Vulnerability detection, threat modeling
@@ -18,7 +18,7 @@ These MCP servers integrate with the three-subsystem pipeline for governance-gat
18
18
 
19
19
  ## xray Three-Subsystem Operation
20
20
 
21
- xray operates under the pure three-subsystem model: Inference + External Governance (Dynamo Solar SSOT) + Autonomous Engine (thinDispatch 7-flow in MCP orchestrator). Agents are declared in `.opencode/agents/*.yml` YML surfaces with zero manual setup.
21
+ xray operates under the pure three-subsystem model: Inference + External Governance (Dynamo Solar SSOT) + Autonomous Engine (thinDispatch 7-flow in MCP orchestrator). Agents are declared in `src/opencode/agents/*.yml` YML surfaces with zero manual setup.
22
22
 
23
23
  ### Core Tenets
24
24
  - YML declarations are the SSOT
@@ -39,7 +39,7 @@ xray operates under the pure three-subsystem model: Inference + External Governa
39
39
  | **Scripts** | `scripts/` or `scripts/bash/` | `scripts/bash/my-script.sh` |
40
40
  | **Test Files** | `src/__tests__/` | `src/__tests__/unit/my-test.test.ts` |
41
41
  | **Source Code** | `src/` | `src/my-module.ts` |
42
- | **Config** | `config/` or `.opencode/xray/` | `.opencode/xray/config.json` |
42
+ | **Config** | `config/` or `xray/` | `xray/config.json` |
43
43
 
44
44
  **Never save to root** - Root directory is for essential files only:
45
45
  - `README.md`, `CHANGELOG.md`, `package.json`, `tsconfig.json`
@@ -82,7 +82,7 @@ The Autonomous Engine routes via complexity:
82
82
 
83
83
  ## Codex
84
84
 
85
- xray enforces the Universal Development Codex (60 terms) via Dynamo governance. The codex lives in `.opencode/xray/codex.json`.
85
+ xray enforces the Universal Development Codex (68 terms) via Dynamo governance. The codex lives in `xray/codex.json`.
86
86
 
87
87
  Pure v15 MCPs. Clean. Complete.
88
88
 
@@ -107,5 +107,5 @@ Pure v15 MCPs. Clean. Complete.
107
107
  - `status.ts` CLI command wired into `index.ts`
108
108
  - Orphaned files analyzed (not deleted): `security-audit.ts`, `src/security/` (11 files), `session-capture-processor.ts`, `activate-kernel-pipeline.ts`
109
109
  - **Hermes-agent bridge backward compat**: all JS/Python bridge files check for both `strray-ai` (old) and `0xray` (new). Default paths updated to `0xray`.
110
- - **Test suite**: 162 files, 2196 tests (+ 44 skipped), 0 failures. Build passes clean.
111
- - **OpenClaw e2e**: Phase 13 validates `logs/framework/activity.log` via agent tool event → hooks → frameworkLogger pipeline — 2196 tests, 0 failures.
110
+ - **Test suite**: 162 files, 2290 tests (+ 44 skipped), 0 failures. Build passes clean.
111
+ - **OpenClaw e2e**: Phase 13 validates `logs/framework/activity.log` via agent tool event → hooks → frameworkLogger pipeline — 2290 tests, 0 failures.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 0xRay — Self-Healing AI Governance OS
2
2
 
3
- **v2.2.3** — 41 agents · 44 skills · 15 MCPs servers · 9 codex terms · 160 test files
3
+ **v3.0.1** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
4
4
 
5
5
  [![Docs](https://img.shields.io/badge/docs-0xRayAI.github.io/xray-10b981?style=flat-square)](https://0xrayai.github.io/xray/)
6
6
 
@@ -62,7 +62,7 @@ AI coding assistants are powerful but unreliable. They hallucinate APIs, introdu
62
62
  ├─────────────────────────────────────────────────┤
63
63
  │ External Governance (Dynamo) │
64
64
  │ Codex enforcement · Multi-agent review · SSOT │
65
- │ 15 MCPs servers (governance + knowledge skills) deliberate proposals │
65
+ │ 15 MCPs servers deliberate proposals via 3-skill governance │
66
66
  ├─────────────────────────────────────────────────┤
67
67
  │ Autonomous Engine (thinDispatch) │
68
68
  │ Task routing · Multi-agent coordination │
@@ -88,7 +88,7 @@ Routes tasks to the right agents based on complexity (simple tasks go to a singl
88
88
  | Platform | Install Command | What It Does |
89
89
  |----------|----------------|--------------|
90
90
  | **OpenCode** | `npx 0xray opencode install` | Installs as native plugin, seeds YML agent surfaces, merges configuration |
91
- | **Grok CLI** | `npx 0xray grok install` | Registers plugin + full MCP surface (governance, skills, orchestrator, enforcer + knowledge skills) |
91
+ | **Grok CLI** | `npx 0xray grok install` | Registers plugin + xray-skills MCP server (13 tools, 44 skills) |
92
92
  | **Hermes Agent** | `npx 0xray hermes install` | Copies bridge plugin to `~/.hermes/plugins/` |
93
93
  | **OpenClaw** | `npx 0xray openclaw install` | Creates integration config at `.xray/config/openclaw.json` |
94
94
 
@@ -127,6 +127,8 @@ Postinstall automatically registers MCP servers with Grok CLI when `grok` is ava
127
127
 
128
128
  | Command | Description |
129
129
  |---------|-------------|
130
+ | `mcp skills` | Run the xray-skills MCP server (stdio, 13 tools) |
131
+ | `mcp governance` | Run the xray-governance MCP server (stdio, advanced) |
130
132
  | `mcp:list` | Browse available community MCP servers |
131
133
  | `mcp:status` | Show installed MCP servers |
132
134
  | `mcp:install <name>` | Install an MCP server from the registry |
@@ -175,11 +177,11 @@ Postinstall automatically registers MCP servers with Grok CLI when `grok` is ava
175
177
 
176
178
  ### Feature Flags (`features.json`)
177
179
 
178
- Every subsystem is configurable via `features.json` (located at `.opencode/xray/features.json` or `xray/features.json` after installation):
180
+ Every subsystem is configurable via `features.json` (located at `xray/features.json`):
179
181
 
180
182
  ```json
181
183
  {
182
- "version": "2.2.2",
184
+ "version": "3.0.0",
183
185
  "token_optimization": {
184
186
  "enabled": true,
185
187
  "max_context_tokens": 20000,
@@ -198,13 +200,13 @@ Toggle any feature on/off with `enabled: true/false`. The framework reloads conf
198
200
 
199
201
  ### Governance Setup
200
202
 
201
- Governance is your quality gate. Configure it under `inference_governance` in `features.json`:
203
+ Governance is your quality gate. Configure it under `inference_governance` in `features.json`. The hosted Railway endpoint is available at `https://governance-production-69c3.up.railway.app/mcp`:
202
204
 
203
205
  ```json
204
206
  {
205
207
  "inference_governance": {
206
208
  "enabled": true,
207
- "endpoint_url": "https://your-governance-endpoint/governance",
209
+ "endpoint_url": "https://governance-production-69c3.up.railway.app/mcp",
208
210
  "request_timeout_ms": 10000,
209
211
  "min_confidence_threshold": 0.5,
210
212
  "decision_logic": {
@@ -222,9 +224,11 @@ The governance pipeline works in three stages:
222
224
 
223
225
  **Options:** `requireExternalDynamo`, `minConfidence`, `enableSolarAdjustment`, `timeoutMs`, `maxAbstentionThreshold`.
224
226
 
227
+ > ⚠️ **Privacy Notice**: All proposals submitted to the governance endpoint are **public by default**. They are **not persisted on-chain** unless the `onChain: true` flag is set. 0xRay framework self-governance proposals (tagged `0xray`) save on-chain by default; project proposals do not. Set `onChain: false` or omit the field for non-public governance checks.
228
+
225
229
  ---
226
230
 
227
- ## Included Agents (42)
231
+ ## Included Agents (41)
228
232
 
229
233
  0xRay ships with specialized agents for every engineering domain:
230
234
 
@@ -251,19 +255,52 @@ The governance pipeline works in three stages:
251
255
  | **Code Analyzer** | Code metrics, complexity analysis |
252
256
  | **Log Monitor** | Diagnostics, error pattern detection |
253
257
 
254
- Plus 22 domain-specialist subagents for full-stack, database, mobile, UI/UX, and more. All agents are declared declaratively in `.opencode/agents/*.yml` — add or customize without touching code.
258
+ Plus 22 domain-specialist subagents for full-stack, database, mobile, UI/UX, and more. All agents are declared declaratively in `src/opencode/agents/*.yml` — add or customize without touching code.
255
259
 
256
260
  ---
257
261
 
258
- ## Included MCP Servers (41)
262
+ ## MCP Servers
263
+
264
+ 0xRay ships two MCP servers. The primary user-facing one runs standalone with zero configuration:
265
+
266
+ ### xray-skills (public)
267
+ 13 tools for code review, security audit, API design, database design, testing strategy, and more. Runs via `npx`:
259
268
 
260
- Model Context Protocol servers provide the skill infrastructure:
269
+ ```json
270
+ {
271
+ "mcpServers": {
272
+ "xray-skills": {
273
+ "command": "npx",
274
+ "args": ["-y", "0xray", "mcp", "skills"]
275
+ }
276
+ }
277
+ }
278
+ ```
261
279
 
262
- **Governance & Review (5):** code-review, security-audit, researcher, enforcer-tools, governance
280
+ - **13 tools**: skill-code-review, skill-security-audit, skill-api-design, skill-database-design, skill-project-analysis, skill-testing-strategy, skill-performance-optimization, skill-ui-ux-design, skill-devops-deployment, skill-documentation-generation, skill-storyteller, list-skills, invoke-skill
281
+ - **44 knowledge skills** (SKILL.md) for chat-based development assistance
282
+ - No external services, no API keys, no configuration needed
283
+
284
+ ### xray-governance (advanced)
285
+ Orchestrates proposals through code-review + security-audit + researcher + external Dynamo SSOT. Requires additional setup.
286
+
287
+ ```json
288
+ {
289
+ "mcpServers": {
290
+ "xray-governance": {
291
+ "command": "npx",
292
+ "args": ["-y", "0xray", "mcp", "governance"]
293
+ }
294
+ }
295
+ }
296
+ ```
263
297
 
264
- **Core Framework (12):** architect-tools, boot-orchestrator, estimation, framework-compliance-audit, framework-help, lint, model-health-check, orchestrator, performance-analysis, processor-pipeline, state-manager, auto-format
298
+ Or connect to the hosted Railway endpoint:
299
+ `https://governance-production-69c3.up.railway.app/mcp`
265
300
 
266
- **Knowledge Skills (24):** api-design, architecture-patterns, bug-triage-specialist, code-analyzer, content-creator, database-design, devops-deployment, git-workflow, growth-strategist, log-monitor, mobile-development, multimodal-looker, performance-optimization, project-analysis, refactoring-strategies, security-scan, seo-consultant, session-management, skill-invocation, strategist, tech-writer, testing-best-practices, testing-strategy, ui-ux-design
301
+ > **Marketplace**: 0xRay is listed on the [xAI Plugin Marketplace](https://github.com/xai-org/plugin-marketplace) (PR #23) — one-click install for Grok users.
302
+ >
303
+ > **Deploy your own**: see the [custom MCP server guide](https://0xrayai.github.io/xray/docs/mcp/deploy-custom) for stdio and Railway HTTP deployment patterns.
267
304
 
268
305
  ---
269
306
 
@@ -302,7 +339,7 @@ npx 0xray status
302
339
  npx 0xray skill:install
303
340
 
304
341
  # 3. Configure governance (optional)
305
- # Edit .opencode/xray/features.json
342
+ # Edit xray/features.json
306
343
 
307
344
  # 4. View full agent documentation
308
345
  less AGENTS.md
@@ -319,7 +356,8 @@ npx 0xray health
319
356
  - **[CHANGELOG.md](CHANGELOG.md)** — Version history and release notes
320
357
  - **[docs/](docs/)** — Architecture docs, governance model, integration guides
321
358
  - **[Docs](https://0xrayai.github.io/xray/)** — Full documentation site
322
- - **[Dynamo Governance](https://dynamo.rippel.ai/vortex)** — Mint governance proposals for donations
359
+ - **[Dynamo Governance](https://0xrayai.github.io/xray/docs/guides/self-hosting-dynamo)** — External governance service (self-host your own instance — see docs)
360
+ - **[Deploy a Custom MCP Server](https://0xrayai.github.io/xray/docs/mcp/deploy-custom)** — Create, register, and deploy your own MCP server (stdio or Railway HTTP)
323
361
  - **[GitHub](https://github.com/0xRayAI/xray)** — Source code, issues, discussions
324
362
  - **[npm](https://www.npmjs.com/package/0xray)** — Package registry
325
363
 
package/dist/AGENTS.md CHANGED
@@ -4,11 +4,11 @@ Quick reference for xray AI orchestration framework (v15 MCPs-centric three-subs
4
4
 
5
5
  ## What is xray?
6
6
 
7
- xray provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation under the pure v2 three-subsystem model (Inference + External Governance via Dynamo + Autonomous Engine via thinDispatch 7-flow in MCP orchestrator). Agents operate via `.opencode/agents/*.yml` YML surfaces and 3 dedicated MCP skill servers — no manual setup needed.
7
+ xray provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation under the pure v3 three-subsystem model (Inference + External Governance via Dynamo + Autonomous Engine via thinDispatch 7-flow in MCP orchestrator). Agents operate via `src/opencode/agents/*.yml` YML surfaces and 3 dedicated MCP skill servers — no manual setup needed.
8
8
 
9
9
  ## v15 MCPs-Centric Architecture
10
10
 
11
- The v2 release centers on **MCP (Model Context Protocol)** as the primary surface for agent skills. Three agent MCP servers handle governance deliberation:
11
+ The v3 release centers on **MCP (Model Context Protocol)** as the primary surface for agent skills. Three agent MCP servers handle governance deliberation:
12
12
 
13
13
  - `code-review` — Proposal quality, code analysis, best practices
14
14
  - `security-audit` — Vulnerability detection, threat modeling
@@ -18,7 +18,7 @@ These MCP servers integrate with the three-subsystem pipeline for governance-gat
18
18
 
19
19
  ## xray Three-Subsystem Operation
20
20
 
21
- xray operates under the pure three-subsystem model: Inference + External Governance (Dynamo Solar SSOT) + Autonomous Engine (thinDispatch 7-flow in MCP orchestrator). Agents are declared in `.opencode/agents/*.yml` YML surfaces with zero manual setup.
21
+ xray operates under the pure three-subsystem model: Inference + External Governance (Dynamo Solar SSOT) + Autonomous Engine (thinDispatch 7-flow in MCP orchestrator). Agents are declared in `src/opencode/agents/*.yml` YML surfaces with zero manual setup.
22
22
 
23
23
  ### Core Tenets
24
24
  - YML declarations are the SSOT
@@ -39,7 +39,7 @@ xray operates under the pure three-subsystem model: Inference + External Governa
39
39
  | **Scripts** | `scripts/` or `scripts/bash/` | `scripts/bash/my-script.sh` |
40
40
  | **Test Files** | `src/__tests__/` | `src/__tests__/unit/my-test.test.ts` |
41
41
  | **Source Code** | `src/` | `src/my-module.ts` |
42
- | **Config** | `config/` or `.opencode/xray/` | `.opencode/xray/config.json` |
42
+ | **Config** | `config/` or `xray/` | `xray/config.json` |
43
43
 
44
44
  **Never save to root** - Root directory is for essential files only:
45
45
  - `README.md`, `CHANGELOG.md`, `package.json`, `tsconfig.json`
@@ -82,7 +82,7 @@ The Autonomous Engine routes via complexity:
82
82
 
83
83
  ## Codex
84
84
 
85
- xray enforces the Universal Development Codex (60 terms) via Dynamo governance. The codex lives in `.opencode/xray/codex.json`.
85
+ xray enforces the Universal Development Codex (68 terms) via Dynamo governance. The codex lives in `xray/codex.json`.
86
86
 
87
87
  Pure v15 MCPs. Clean. Complete.
88
88
 
@@ -107,5 +107,5 @@ Pure v15 MCPs. Clean. Complete.
107
107
  - `status.ts` CLI command wired into `index.ts`
108
108
  - Orphaned files analyzed (not deleted): `security-audit.ts`, `src/security/` (11 files), `session-capture-processor.ts`, `activate-kernel-pipeline.ts`
109
109
  - **Hermes-agent bridge backward compat**: all JS/Python bridge files check for both `strray-ai` (old) and `0xray` (new). Default paths updated to `0xray`.
110
- - **Test suite**: 162 files, 2196 tests (+ 44 skipped), 0 failures. Build passes clean.
111
- - **OpenClaw e2e**: Phase 13 validates `logs/framework/activity.log` via agent tool event → hooks → frameworkLogger pipeline — 2196 tests, 0 failures.
110
+ - **Test suite**: 162 files, 2290 tests (+ 44 skipped), 0 failures. Build passes clean.
111
+ - **OpenClaw e2e**: Phase 13 validates `logs/framework/activity.log` via agent tool event → hooks → frameworkLogger pipeline — 2290 tests, 0 failures.
package/dist/CHANGELOG.md CHANGED
@@ -4,6 +4,153 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Conventional Commits](https://www.conventionalcommits.org/).
6
6
 
7
+ ## [3.0.1] - 2026-06-12
8
+
9
+ ### 🔄 Changes
10
+
11
+ - Version bump
12
+
13
+ ---
14
+
15
+ ## [3.0.0] - 2026-06-12
16
+
17
+ ### 🧠 Governance Closure + Full System Integration
18
+
19
+ v3.0 closes the governance loop: all enforcement flows through the shared gate, governance is enabled by default with external Dynamo, and source changes to the governance fabric are auto-detected and proposed for deliberation.
20
+
21
+ ### 🌟 Highlights
22
+
23
+ - **Governance default-on**: `enabled: true` in both `DEFAULT_GOVERNANCE_CONFIG` and `xray/features.json`. Endpoint defaults to `https://mcp-production-80e2.up.railway.app/governance`. `GOVERNANCE_ENDPOINT` env var overrides all defaults. No manual opt-in required.
24
+ - **E2E pipeline smoketest extended to 10 steps**: gate → escalation → CI → consumer → governance → nucleus → inference → SelfProposal → EscalationEngine → LightweightValidator. All 10 pass.
25
+ - **Source-change governance detector**: `scripts/ci/source-change-governance-detector.mjs` watches codex.json, features.json, enforcement/nucleus/postprocessor/governance files. Auto-submits strategic proposals via `handleGovernRequest` with `requireExternalDynamo: true`. Wired in CI enforcement job.
26
+ - **Consumer path hygiene audit**: All published scripts (`postinstall.cjs`, `setup.cjs`, `prepare-consumer.cjs`) now use robust consumer-aware path resolution. Nucleus exports map (`./nucleus/*`) verified via consumer plugin test.
27
+
28
+ ### 🏪 Marketplace & Polish
29
+
30
+ - **Marketplace PR #23** submitted to `xai-org/plugin-marketplace` — 13 xray-skills tools, 44 skills, 2 MCP servers
31
+ - **xray-skills MCP server**: 13 tools via `npx -y 0xray mcp skills` — standalone, zero config
32
+ - **Railway governance HTTP MCP**: multi-client session support, JSON response mode, GET `/mcp` SSE endpoint
33
+ - **`.mcp.json`**: xray-skills (public) + xray-governance (advanced) declared
34
+ - **`.plugin/plugin.json`**: Marketplace manifest with correct tool/skill counts
35
+ - **skills/ symlink** → `src/skills/` for marketplace scanner discovery
36
+
37
+ ### 🔧 Changes
38
+
39
+ #### Governance & Enforcement (Phases 0-1)
40
+ - **Retro governance ritual (Phase 0)**: 5 proposals submitted via `handleGovernRequest` covering enforcement gate canonical surface, per-pipeline CI scanners, nucleus/SelfProposal wiring, legacy purge, consumer hooks. All 5 approved.
41
+ - **Governance lazy init**: `governance-service.ts` calls `initializeGovernanceIntegration()` in `govern()` if not initialized — handles inference cycle calls outside boot orchestrator lifecycle.
42
+ - **Governance endpoint default-on**: `src/integrations/governance/types.ts` — `DEFAULT_GOVERNANCE_CONFIG.enabled → true`, `endpointUrl → Railway URL`. `xray/features.json` added `inference_governance` section.
43
+ - **Source-change detector (Phase 1)**: `scripts/ci/source-change-governance-detector.mjs` — detects changes to 18+ governance-interest files, builds proposals from CATEGORY_MAP, requires external Dynamo. Wired in `ci.yml` enforcement job step.
44
+
45
+ #### Docs Cascade (Phase 2)
46
+ - `V3-ENFORCEMENT-PIPELINES.md` → v3.3.1+ (full enforcement cascade documented)
47
+ - `PIPELINE_INVENTORY.md` → v3.3.1+ (new CI scanners, consumer hooks, coverage gate, governance detector)
48
+ - `docs/index.md` → v3 stats (7 agents, 3 MCP servers, 29 validators, 2880 tests)
49
+
50
+ #### Pipeline Exerciser (Phase 3)
51
+ - `e2e-pipeline-smoke.mjs` extended from 4 to 10 steps covering all major pipelines (gate, escalation, CI, consumer, governance, nucleus/boot, inference, SelfProposal, EscalationEngine, LightweightValidator). All 10 pass.
52
+ - EscalationEngine must load before LightweightValidator (ESM circular dep on frameworkLogger).
53
+
54
+ #### Codex Closure (Phase 4)
55
+ - `processorRoadmap` terms 7 (ErrorResolution), 74 (BootWiring), 75 (Coverage) → done
56
+ - `validationCriteria`: 6/8 true (governance approval, metamorphosis threshold, consumer verification, no console.*, boot wiring, coverage gate)
57
+ - `perPipelineValidationMatrix`: 15+ entries, `gapsRemaining` empty, `enforcementGaps` 2 remaining
58
+ - Terms 73 (orphan pre-PR check), 78 (compat shim scanner) added with CI wiring
59
+
60
+ #### Build & Consumer Hygiene (Phase 5)
61
+ - `package.json` exports: added `./nucleus` and `./nucleus/*` for consumer plugin-registry access
62
+ - `tsconfig.full.json`: excludes test files from compilation
63
+ - `postinstall.cjs`, `setup.cjs`, `prepare-consumer.cjs`: consumer-aware path resolution (robust `node_modules` detection)
64
+ - `verify-consumer.sh`: Phase 5b (29 validators + gate) + nucleus plugin-registry test both PASS
65
+ - Full verification: 2880 unit tests pass, typecheck clean, 0 console.* in non-CLI source
66
+
67
+ #### Compat & Scanners
68
+ - `scripts/ci/compat-shim-scanner.mjs` (term 78): scans for legacy fallback patterns, compat exports, @deprecated. Wired as non-blocking CI step.
69
+ - `scripts/ci/orphan-code-pre-pr-check.mjs` (term 73): git diff deletion scanner with 6-check protocol. Wired in CI.
70
+ - `scripts/hooks/install-hooks.cjs`: consumer-aware pre-commit hook installer, wired via postinstall + setup.
71
+ - `scripts/hooks/run-hook.js`: inline regex replaced with LightweightValidator + gate call (shared enforcement path).
72
+
73
+ ### 📊 Stats
74
+ - **2880 tests pass**, typecheck clean
75
+ - **29 validators** in registry, all mapped in `validatorTermMap`
76
+ - **10/10 E2E pipeline steps** pass
77
+ - **3/4 bridge E2Es** pass (hermes: pre-existing model variance in JSON output parsing)
78
+ - **18 governance-interest files** tracked by source-change detector
79
+ - **Consumer verification**: Phase 5 (plugin reg) + Phase 5b (29 validators + gate) both PASS
80
+
81
+ ## [3.3.0] - 2026-06-11
82
+
83
+ ### ✅ All Three Remaining Matrix Gaps Closed
84
+
85
+ Resolved the final `gapsRemaining` entries — PostProcessor non-blocking, Inference non-blocking, and Coverage gate.
86
+
87
+ - **PostProcessor escalation from gate**: `afterToolHook` in enforcement-gate.ts now filters pipeline validator violations by severity ("error"/"blocking") and passes them as `criticalViolations` in the PostProcessor context. `PostProcessor.executePostProcessorLoop` evaluates them through `EscalationEngine.evaluateEscalation`, triggering real escalation (manual-intervention/rollback/emergency) instead of logs-only.
88
+ - **Inference 1/3/5 blocking**: `generateProposals` in inference-cycle.ts now filters out proposals with confidence ≤ 0.3 after NoOverEngineeringValidator (terms 1/3) and SingleResponsibilityValidator (term 5) adjustments. These proposals are logged as `proposal-blocked` via frameworkLogger. Non-severe violations still adjust confidence by 0.85x as before.
89
+ - **Coverage gate (term 75)**: vitest.config.ts now has coverage thresholds (statements 60%, branches 50%, functions 55%, lines 60%). CI enforcement job runs `npx vitest run --coverage` as a blocking step. Fails CI if thresholds not met.
90
+
91
+ ### 🔧 Changes
92
+ - `src/postprocessor/types.ts`: Added `criticalViolations` field to `PostProcessorContext`
93
+ - `src/postprocessor/PostProcessor.ts`: Escalation engine invoked on gate-sourced critical violations
94
+ - `src/integrations/enforcement-gate.ts`: Critical violations passed to PostProcessor loop context
95
+ - `src/inference/inference-cycle.ts`: Proposals with confidence ≤ 0.3 filtered out after validator adjustments
96
+ - `vitest.config.ts`: Coverage thresholds enabled (stmts 60, branches 50, funcs 55, lines 60)
97
+ - `.github/workflows/ci.yml`: New coverage gate step in enforcement job
98
+ - `.opencode/xray/codex.json`: 3.3.0 — all 3 gaps removed from `gapsRemaining` + `enforcementGaps`. New `coverage-gate` pipeline entry. Post-processor + inference-cycle entries updated to note blocking/escalation. `ci-gate` activeForTerms includes 75.
99
+
100
+ ## [3.2.1] - 2026-06-11
101
+
102
+ ### 🚦 Enforcement Pipeline Cascade
103
+
104
+ Closing the "hooks or CI/CD" gap: all four TUI/CLI integrations (OpenCode, Hermes, Grok, OpenClaw) now exclusively route through `src/integrations/enforcement-gate.ts` (full 29-validator registry + v3 PostProcessor loop), and CI now calls the registry directly with no snippet-safe filter.
105
+
106
+ - **P0-1**: Removed duplicate legacy ProcessorManager block from `xray-codex-injection.ts` (38 lines, ran afterToolHook alongside inline quality gate)
107
+ - **P0-2**: Fixed Grok silent fail-open — catch block now returns `allow_with_error` with reason/resonance/error
108
+ - **P1-1/P1-2**: Consolidated `loadStateManager` to prefer `xray*` globals with logged `strRay*` fallback; `bridge.mjs` renamed to `XrayStateManager` with `||` fallback
109
+ - **P1-3/P1-4**: Removed dead types/interfaces/imports from `xray-codex-injection.ts`; shrunk legacy compat comment
110
+ - **`scripts/ci/enforce-validators.mjs`**: Direct ValidatorRegistry invocation (29 validators, no snippet-safe filter, no dead `--terms` flag). Supports `--all`, explicit paths, `git diff HEAD` auto-detection
111
+ - **CI enforcement job**: Replaced `bridge.mjs codex-check --focus "full" --terms "..."` (10 of 29 validators) with `enforce-validators.mjs --all`
112
+ - **CI consumer step**: `npm pack` → `npm install` → registry load test (expects 29) + enforcement gate load test (beforeToolHook/afterToolHook) — runs on every PR
113
+ - **`verify-consumer.sh` Phase 5b**: Full-registry + gate exercise from consumer tarball
114
+ - **Codex**: v3.2.1 — 8 ci-lint terms partial→wired, new `ci-enforce-consumer` pipeline, `gapsRemaining` reduced by 2 entries
115
+
116
+ ### 🔧 Changes
117
+ - `src/plugin/xray-codex-injection.ts`: beforeToolHook/afterToolHook sole post-tool path
118
+ - `src/integrations/hermes-agent/bridge.mjs`: `XrayStateManager` with backward-compat fallback
119
+ - `src/integrations/grok/hooks/pre-tool-use.ts`: `allow_with_error` on gate error
120
+ - `src/integrations/enforcement-gate.ts`: `loadStateManager` prefers `xray*` globals
121
+ - `scripts/ci/enforce-validators.mjs`: 109 lines — new
122
+ - `.github/workflows/ci.yml`: Enforcement job reworked (registry + consumer steps)
123
+ - `.opencode/xray/codex.json`: 3.2.1 — perPipelineValidationMatrix expanded, gaps reduced
124
+ - `docs/reflections/enforcement-gate-pipeline-resolution.md`: Updated
125
+
126
+ ## [3.0.0] - 2026-06-10
127
+
128
+ ### 🚀 Major: Nucleus Architecture (v3)
129
+
130
+ The callable core is now `src/nucleus/` — governance, orchestration, dispatch, and default plugins live here. MCP is the standard external surface; nucleus is the library beneath it.
131
+
132
+ - **Phase 1 (Nucleus Primary)**: Governance call site audit (29 sites), MCP fallback chain removed from inference-cycle.ts (287 lines, 9 methods, 7 `XRAY_FORCE_MCP_GOVERNANCE` checks), opencode-cli-invoker.ts cleaned, boot-orchestrator.server.ts slimmed ~80%, `src/nucleus/orchestrator.ts` + `thin-dispatch.ts` created, 50 nucleus-primary tests
133
+ - **Phase 2 (Plugin System)**: 24 knowledge-skill servers audited, pluginRegistry extended with listTools/registerServer/getToolPlugin/listSkillTools, `src/nucleus/default-plugins.ts` registers all 24 servers as plugins, MCP bypass paths deprecated, root MCP server audit
134
+ - **Phase 3 (Self-Evolution)**: SelfProposalEngine auto-wired into PostProcessor as default metamorphosis engine, safe apply with backup/rollback, circuit breaker, `scripts/run-self-evolution.sh`
135
+ - **Phase 4 (Legacy Cleanup)**: `XRAY_FORCE_MCP_GOVERNANCE` removed from CLI/govern/.mcp.json/grok-cli, MCP+in-process fallback removed from governance-service, legacy `.grok/plugins/strray-ai/` deleted, `STRRAY_HOME` removed
136
+
137
+ ### 🔧 Changes
138
+ - `registerDefaultPlugins()` now called during NucleusOrchestrator boot sequence (plugin-registration step)
139
+ - FrameworkLogger discipline enforced across all production paths
140
+ - ~17,000 LOC net removed across subtract pass + v3 refactoring
141
+
142
+ ### ✅ Verification
143
+ - 2846 tests passed (2890 total, 44 skipped), 163 test files — 0 failures
144
+ - Consumer verification gate: 4/4 bridge E2Es (Hermes 46, OpenCode 34, OpenClaw 101, Grok 53+2 skipped)
145
+ - npm pack → fresh consumer install → plugin dispatch → activity.log (728 entries)
146
+ - tsc --noEmit clean
147
+
148
+ ### 🏷️ Package
149
+ - Renamed: `strray-ai` → `0xray` across all source files, CLI, bridges, docs
150
+ - Published to npm as `0xray@3.0.0`
151
+
152
+ ---
153
+
7
154
  ## [2.2.4] - 2026-06-10
8
155
 
9
156
  ### 🐛 Bug Fixes
package/dist/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 0xRay — Self-Healing AI Governance OS
2
2
 
3
- **v2.2.3** — 41 agents · 44 skills · 15 MCPs servers · 9 codex terms · 160 test files
3
+ **v3.0.1** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
4
4
 
5
5
  [![Docs](https://img.shields.io/badge/docs-0xRayAI.github.io/xray-10b981?style=flat-square)](https://0xrayai.github.io/xray/)
6
6
 
@@ -62,7 +62,7 @@ AI coding assistants are powerful but unreliable. They hallucinate APIs, introdu
62
62
  ├─────────────────────────────────────────────────┤
63
63
  │ External Governance (Dynamo) │
64
64
  │ Codex enforcement · Multi-agent review · SSOT │
65
- │ 15 MCPs servers (governance + knowledge skills) deliberate proposals │
65
+ │ 15 MCPs servers deliberate proposals via 3-skill governance │
66
66
  ├─────────────────────────────────────────────────┤
67
67
  │ Autonomous Engine (thinDispatch) │
68
68
  │ Task routing · Multi-agent coordination │
@@ -88,7 +88,7 @@ Routes tasks to the right agents based on complexity (simple tasks go to a singl
88
88
  | Platform | Install Command | What It Does |
89
89
  |----------|----------------|--------------|
90
90
  | **OpenCode** | `npx 0xray opencode install` | Installs as native plugin, seeds YML agent surfaces, merges configuration |
91
- | **Grok CLI** | `npx 0xray grok install` | Registers plugin + full MCP surface (governance, skills, orchestrator, enforcer + knowledge skills) |
91
+ | **Grok CLI** | `npx 0xray grok install` | Registers plugin + xray-skills MCP server (13 tools, 44 skills) |
92
92
  | **Hermes Agent** | `npx 0xray hermes install` | Copies bridge plugin to `~/.hermes/plugins/` |
93
93
  | **OpenClaw** | `npx 0xray openclaw install` | Creates integration config at `.xray/config/openclaw.json` |
94
94
 
@@ -127,6 +127,8 @@ Postinstall automatically registers MCP servers with Grok CLI when `grok` is ava
127
127
 
128
128
  | Command | Description |
129
129
  |---------|-------------|
130
+ | `mcp skills` | Run the xray-skills MCP server (stdio, 13 tools) |
131
+ | `mcp governance` | Run the xray-governance MCP server (stdio, advanced) |
130
132
  | `mcp:list` | Browse available community MCP servers |
131
133
  | `mcp:status` | Show installed MCP servers |
132
134
  | `mcp:install <name>` | Install an MCP server from the registry |
@@ -175,11 +177,11 @@ Postinstall automatically registers MCP servers with Grok CLI when `grok` is ava
175
177
 
176
178
  ### Feature Flags (`features.json`)
177
179
 
178
- Every subsystem is configurable via `features.json` (located at `.opencode/xray/features.json` or `xray/features.json` after installation):
180
+ Every subsystem is configurable via `features.json` (located at `xray/features.json`):
179
181
 
180
182
  ```json
181
183
  {
182
- "version": "2.2.2",
184
+ "version": "3.0.0",
183
185
  "token_optimization": {
184
186
  "enabled": true,
185
187
  "max_context_tokens": 20000,
@@ -198,13 +200,13 @@ Toggle any feature on/off with `enabled: true/false`. The framework reloads conf
198
200
 
199
201
  ### Governance Setup
200
202
 
201
- Governance is your quality gate. Configure it under `inference_governance` in `features.json`:
203
+ Governance is your quality gate. Configure it under `inference_governance` in `features.json`. The hosted Railway endpoint is available at `https://governance-production-69c3.up.railway.app/mcp`:
202
204
 
203
205
  ```json
204
206
  {
205
207
  "inference_governance": {
206
208
  "enabled": true,
207
- "endpoint_url": "https://your-governance-endpoint/governance",
209
+ "endpoint_url": "https://governance-production-69c3.up.railway.app/mcp",
208
210
  "request_timeout_ms": 10000,
209
211
  "min_confidence_threshold": 0.5,
210
212
  "decision_logic": {
@@ -222,9 +224,11 @@ The governance pipeline works in three stages:
222
224
 
223
225
  **Options:** `requireExternalDynamo`, `minConfidence`, `enableSolarAdjustment`, `timeoutMs`, `maxAbstentionThreshold`.
224
226
 
227
+ > ⚠️ **Privacy Notice**: All proposals submitted to the governance endpoint are **public by default**. They are **not persisted on-chain** unless the `onChain: true` flag is set. 0xRay framework self-governance proposals (tagged `0xray`) save on-chain by default; project proposals do not. Set `onChain: false` or omit the field for non-public governance checks.
228
+
225
229
  ---
226
230
 
227
- ## Included Agents (42)
231
+ ## Included Agents (41)
228
232
 
229
233
  0xRay ships with specialized agents for every engineering domain:
230
234
 
@@ -251,19 +255,52 @@ The governance pipeline works in three stages:
251
255
  | **Code Analyzer** | Code metrics, complexity analysis |
252
256
  | **Log Monitor** | Diagnostics, error pattern detection |
253
257
 
254
- Plus 22 domain-specialist subagents for full-stack, database, mobile, UI/UX, and more. All agents are declared declaratively in `.opencode/agents/*.yml` — add or customize without touching code.
258
+ Plus 22 domain-specialist subagents for full-stack, database, mobile, UI/UX, and more. All agents are declared declaratively in `src/opencode/agents/*.yml` — add or customize without touching code.
255
259
 
256
260
  ---
257
261
 
258
- ## Included MCP Servers (41)
262
+ ## MCP Servers
263
+
264
+ 0xRay ships two MCP servers. The primary user-facing one runs standalone with zero configuration:
265
+
266
+ ### xray-skills (public)
267
+ 13 tools for code review, security audit, API design, database design, testing strategy, and more. Runs via `npx`:
259
268
 
260
- Model Context Protocol servers provide the skill infrastructure:
269
+ ```json
270
+ {
271
+ "mcpServers": {
272
+ "xray-skills": {
273
+ "command": "npx",
274
+ "args": ["-y", "0xray", "mcp", "skills"]
275
+ }
276
+ }
277
+ }
278
+ ```
261
279
 
262
- **Governance & Review (5):** code-review, security-audit, researcher, enforcer-tools, governance
280
+ - **13 tools**: skill-code-review, skill-security-audit, skill-api-design, skill-database-design, skill-project-analysis, skill-testing-strategy, skill-performance-optimization, skill-ui-ux-design, skill-devops-deployment, skill-documentation-generation, skill-storyteller, list-skills, invoke-skill
281
+ - **44 knowledge skills** (SKILL.md) for chat-based development assistance
282
+ - No external services, no API keys, no configuration needed
283
+
284
+ ### xray-governance (advanced)
285
+ Orchestrates proposals through code-review + security-audit + researcher + external Dynamo SSOT. Requires additional setup.
286
+
287
+ ```json
288
+ {
289
+ "mcpServers": {
290
+ "xray-governance": {
291
+ "command": "npx",
292
+ "args": ["-y", "0xray", "mcp", "governance"]
293
+ }
294
+ }
295
+ }
296
+ ```
263
297
 
264
- **Core Framework (12):** architect-tools, boot-orchestrator, estimation, framework-compliance-audit, framework-help, lint, model-health-check, orchestrator, performance-analysis, processor-pipeline, state-manager, auto-format
298
+ Or connect to the hosted Railway endpoint:
299
+ `https://governance-production-69c3.up.railway.app/mcp`
265
300
 
266
- **Knowledge Skills (24):** api-design, architecture-patterns, bug-triage-specialist, code-analyzer, content-creator, database-design, devops-deployment, git-workflow, growth-strategist, log-monitor, mobile-development, multimodal-looker, performance-optimization, project-analysis, refactoring-strategies, security-scan, seo-consultant, session-management, skill-invocation, strategist, tech-writer, testing-best-practices, testing-strategy, ui-ux-design
301
+ > **Marketplace**: 0xRay is listed on the [xAI Plugin Marketplace](https://github.com/xai-org/plugin-marketplace) (PR #23) — one-click install for Grok users.
302
+ >
303
+ > **Deploy your own**: see the [custom MCP server guide](https://0xrayai.github.io/xray/docs/mcp/deploy-custom) for stdio and Railway HTTP deployment patterns.
267
304
 
268
305
  ---
269
306
 
@@ -302,7 +339,7 @@ npx 0xray status
302
339
  npx 0xray skill:install
303
340
 
304
341
  # 3. Configure governance (optional)
305
- # Edit .opencode/xray/features.json
342
+ # Edit xray/features.json
306
343
 
307
344
  # 4. View full agent documentation
308
345
  less AGENTS.md
@@ -319,7 +356,8 @@ npx 0xray health
319
356
  - **[CHANGELOG.md](CHANGELOG.md)** — Version history and release notes
320
357
  - **[docs/](docs/)** — Architecture docs, governance model, integration guides
321
358
  - **[Docs](https://0xrayai.github.io/xray/)** — Full documentation site
322
- - **[Dynamo Governance](https://dynamo.rippel.ai/vortex)** — Mint governance proposals for donations
359
+ - **[Dynamo Governance](https://0xrayai.github.io/xray/docs/guides/self-hosting-dynamo)** — External governance service (self-host your own instance — see docs)
360
+ - **[Deploy a Custom MCP Server](https://0xrayai.github.io/xray/docs/mcp/deploy-custom)** — Create, register, and deploy your own MCP server (stdio or Railway HTTP)
323
361
  - **[GitHub](https://github.com/0xRayAI/xray)** — Source code, issues, discussions
324
362
  - **[npm](https://www.npmjs.com/package/0xray)** — Package registry
325
363
 
@@ -54,3 +54,4 @@ Stop after giving your answer. Do not loop.`,
54
54
  },
55
55
  },
56
56
  };
57
+ //# sourceMappingURL=architect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"architect.js","sourceRoot":"","sources":["../../src/agents/architect.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAgB;IACpC,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE;QACZ,cAAc;QACd,QAAQ;QACR,oBAAoB;QACpB,YAAY;QACZ,qBAAqB;KACtB;IACD,aAAa,EAAE,GAAG;IAClB,OAAO,EAAE,IAAI;IACb,WAAW,EACT,0DAA0D;IAC5D,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE;;;;;;;;;;;;;;4CAckC;IAC1C,WAAW,EAAE,GAAG;IAChB,KAAK,EAAE;QACL,OAAO,EAAE;YACP,MAAM;YACN,MAAM;YACN,OAAO;YACP,kBAAkB;YAClB,iBAAiB;YACjB,qBAAqB;YACrB,qBAAqB;YACrB,oDAAoD;YACpD,cAAc;YACd,mBAAmB;YACnB,sBAAsB;YACtB,gCAAgC;YAChC,wBAAwB;YACxB,wBAAwB;SACzB;KACF;IACD,UAAU,EAAE;QACV,IAAI,EAAE,OAAO;QACb,IAAI,EAAE;YACJ,GAAG,EAAE,OAAO;YACZ,GAAG,EAAE,OAAO;YACZ,GAAG,EAAE,OAAO;SACb;KACF;CACF,CAAC"}
@@ -79,3 +79,4 @@ Use database-engineer skills for:
79
79
 
80
80
  Tone: Systematic, secure, performance-oriented.`,
81
81
  };
82
+ //# sourceMappingURL=backend-engineer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backend-engineer.js","sourceRoot":"","sources":["../../src/agents/backend-engineer.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAgB;IAC1C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE;QACZ,YAAY;QACZ,eAAe;QACf,gBAAgB;QAChB,qBAAqB;QACrB,oBAAoB;QACpB,gBAAgB;QAChB,cAAc;QACd,gBAAgB;KACjB;IACD,aAAa,EAAE,EAAE;IACjB,WAAW,EAAE,GAAG;IAChB,OAAO,EAAE,IAAI;IACb,WAAW,EACT,6HAA6H;IAE/H,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAwDsC;CAC/C,CAAC"}