0xray 3.3.1 → 3.4.2

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 (70) hide show
  1. package/.opencode/enforcer-config.json +1 -4
  2. package/.xray/codex.json +598 -0
  3. package/.xray/config.json +25 -0
  4. package/.xray/features.json +146 -0
  5. package/.xray/features.schema.json +33 -0
  6. package/AGENTS-consumer.md +127 -10
  7. package/AGENTS.md +172 -56
  8. package/README.md +159 -82
  9. package/SKILLS.md +79 -53
  10. package/dist/AGENTS.md +172 -56
  11. package/dist/CHANGELOG.md +90 -51
  12. package/dist/README.md +159 -82
  13. package/dist/SKILLS.md +79 -53
  14. package/dist/analytics/routing-refiner.js +0 -2
  15. package/dist/core/boot-orchestrator.js +9 -1
  16. package/dist/core/features-config.js +5 -1
  17. package/dist/integrations/grok/grok-cli.js +47 -25
  18. package/dist/integrations/grok/hooks/grok-hook-activity.js +53 -0
  19. package/dist/integrations/grok/hooks/grok-hook-utils.js +261 -0
  20. package/dist/integrations/grok/hooks/pre-tool-use.js +85 -115
  21. package/dist/integrations/grok/hooks/session-start.js +52 -0
  22. package/dist/integrations/grok/plugin/0xray/hooks/hooks.json +20 -3
  23. package/dist/integrations/hermes-agent/bridge.mjs +11 -1
  24. package/dist/mcps/config/server-config-registry.js +4 -3
  25. package/dist/mcps/orchestrator/handlers/complexity-handler.js +33 -3
  26. package/dist/mcps/orchestrator/server.js +1 -1
  27. package/dist/mcps/registry.json +0 -1
  28. package/dist/mcps/researcher.server.js +3 -0
  29. package/dist/nucleus/autonomy-kernel.js +176 -0
  30. package/dist/nucleus/index.js +1 -0
  31. package/dist/orchestrator/universal-registry-bridge.js +1 -1
  32. package/dist/skills/boot-orchestrator/SKILL.md +1 -5
  33. package/dist/skills/orchestrator/SKILL.md +35 -12
  34. package/dist/skills/registry.json +0 -1
  35. package/dist/skills/researcher/SKILL.md +17 -4
  36. package/dist/skills/strategist/SKILL.md +12 -0
  37. package/dist/skills/testing-strategy/SKILL.md +13 -2
  38. package/package.json +23 -8
  39. package/scripts/node/consumer-install-smoke.mjs +163 -0
  40. package/scripts/node/enforce-agents-md.mjs +0 -26
  41. package/scripts/node/enforce-version-compliance.sh +0 -1
  42. package/scripts/node/enforce-version-compliance.ts +0 -10
  43. package/scripts/node/install-bridges.cjs +154 -39
  44. package/scripts/node/pre-publish-guard.js +108 -165
  45. package/scripts/node/reconcile-version.mjs +147 -0
  46. package/scripts/node/release-gate.mjs +66 -0
  47. package/scripts/node/release.js +5 -147
  48. package/scripts/node/release.mjs +106 -181
  49. package/scripts/node/setup.cjs +21 -26
  50. package/scripts/node/sync-versions.mjs +12 -134
  51. package/scripts/node/universal-version-manager.js +22 -4
  52. package/scripts/node/validate-release-docs.mjs +299 -0
  53. package/scripts/node/version-manager.mjs +225 -49
  54. package/src/integrations/grok/plugin/0xray/hooks/hooks.json +20 -3
  55. package/src/mcps/config/__tests__/server-config-registry.test.ts +9 -0
  56. package/src/mcps/config/server-config-registry.ts +5 -3
  57. package/src/mcps/orchestrator/handlers/complexity-handler.ts +54 -3
  58. package/src/mcps/orchestrator/server.ts +1 -1
  59. package/src/mcps/registry.json +0 -1
  60. package/src/mcps/researcher.server.ts +4 -0
  61. package/src/opencode/enforcer-config.json +1 -4
  62. package/src/skills/boot-orchestrator/SKILL.md +1 -5
  63. package/src/skills/orchestrator/SKILL.md +35 -12
  64. package/src/skills/registry.json +0 -1
  65. package/src/skills/researcher/SKILL.md +17 -4
  66. package/src/skills/strategist/SKILL.md +12 -0
  67. package/src/skills/testing-strategy/SKILL.md +13 -2
  68. package/xray/config.json +25 -0
  69. package/xray/features.json +146 -0
  70. package/xray/features.schema.json +33 -0
@@ -28,10 +28,23 @@ Multi-repo analysis, documentation lookup, and implementation examples.
28
28
  - **find_implementations**: Find implementations
29
29
  - **analyze_documentation**: Analyze documentation
30
30
 
31
- ## Usage
31
+ ## When to invoke (autonomy-command)
32
32
 
33
- This skill provides research capabilities for researcher functionality.
33
+ Lead dev dispatches researcher **before** major planning, refactors, or cross-repo work — not only when user says "research."
34
34
 
35
- ## Integration
35
+ | Trigger | Action |
36
+ |---------|--------|
37
+ | Major refactor / new phase | `search_codebase`, `get_documentation`, `find_implementation` |
38
+ | Prior art / patterns | Search sibling repos (xray, groover, repertoire) |
39
+ | Proposal analysis | `analyze_proposal` via xray-researcher MCP |
36
40
 
37
- Activated when research capabilities are requested through the skills system.
41
+ ## MCP tools (xray-researcher)
42
+
43
+ - `get_documentation` — module/class docs (`target` required)
44
+ - `search_codebase` — text search in workspace
45
+ - `find_implementation` — locate implementations
46
+ - `analyze_proposal` — governance-aware proposal review
47
+
48
+ ## Return shape for lead
49
+
50
+ Summarize: findings (3–5 bullets), file paths, recommended next todos. Do not defer work back to lead without concrete patches or todos.
@@ -30,3 +30,15 @@ Think deeply before recommending. Consider trade-offs and long-term implications
30
30
  - Risk analysis and mitigation planning
31
31
  - High-level system design and framework evolution
32
32
  - Technical debt identification and prioritization
33
+
34
+ ## When to invoke (autonomy-command)
35
+
36
+ Lead dev dispatches strategist when `analyze-complexity` score **>25** or work spans multiple repos/phases.
37
+
38
+ | Output required | Format |
39
+ |-----------------|--------|
40
+ | Phased plan | Phase N + goal + definition of done |
41
+ | Todo breakdown | ID, task, subagent assignment |
42
+ | Risks | Top 3 with mitigations |
43
+
44
+ Use `orchestrate-task` or Task subagent. Return actionable todos — not essays.
@@ -38,6 +38,17 @@ This skill helps design and optimize testing strategies for:
38
38
  - Test coverage optimization
39
39
  - Testing best practices implementation
40
40
 
41
- ## Integration
41
+ ## Per-suite triage (autonomy-command rule 3)
42
42
 
43
- Provides testing expertise and coverage analysis when requested through the skills system.
43
+ After major changes, **do not** run the full test suite first.
44
+
45
+ ```text
46
+ 1. Identify affected test file(s) from the diff
47
+ 2. Run ONE suite: npm test -- path/to/focused.test.ts
48
+ 3. Read ALL failure output — triage root cause
49
+ 4. Fix → rerun that suite until green
50
+ 5. Repeat for each affected suite
51
+ 6. Only then: npm test (full suite gate)
52
+ ```
53
+
54
+ Lead dev owns every failure. No "pre-existing" deferrals.
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "./config.schema.json",
3
+ "description": "0xRay Framework - Token Management & Performance Configuration",
4
+ "token_management": {
5
+ "maxPromptTokens": 20000,
6
+ "warningThreshold": 15000,
7
+ "modelLimits": {},
8
+ "contextPruning": {
9
+ "enabled": true,
10
+ "aggressivePruning": true,
11
+ "preserveCriticalContext": true
12
+ }
13
+ },
14
+ "cache_settings": {
15
+ "enabled": true,
16
+ "max_size_mb": 25,
17
+ "ttl_seconds": 120,
18
+ "auto_cleanup_interval_seconds": 60
19
+ },
20
+ "memory_management": {
21
+ "max_heap_mb": 512,
22
+ "gc_interval_ms": 30000,
23
+ "force_gc_on_threshold": true
24
+ }
25
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "$schema": "./features.schema.json",
3
+ "description": "0xRay Framework - Unified Feature Configuration",
4
+ "token_optimization": {
5
+ "enabled": true,
6
+ "max_context_tokens": 20000,
7
+ "prune_after_task": true,
8
+ "summarize_tool_outputs": true,
9
+ "context_compression": {
10
+ "enabled": true,
11
+ "threshold_tokens": 15000,
12
+ "compression_ratio": 0.4
13
+ }
14
+ },
15
+ "model_routing": {
16
+ "enabled": true
17
+ },
18
+ "batch_operations": {
19
+ "enabled": true,
20
+ "prefer_sed_for_replacements": true,
21
+ "parallel_file_updates": true,
22
+ "max_concurrent_edits": 10,
23
+ "auto_batch_threshold": 5
24
+ },
25
+ "multi_agent_orchestration": {
26
+ "enabled": true,
27
+ "coordination_model": "async-multi-agent",
28
+ "max_concurrent_agents": 3,
29
+ "task_distribution_strategy": "capability-based",
30
+ "conflict_resolution": "expert-priority",
31
+ "progress_tracking": true,
32
+ "session_persistence": true,
33
+ "lead_dev_mode": true,
34
+ "per_suite_test_triage": true,
35
+ "phased_plan_threshold": 25,
36
+ "auto_consult_major_work": true,
37
+ "no_new_surface": true
38
+ },
39
+ "autonomous_reporting": {
40
+ "enabled": true,
41
+ "interval_minutes": 60,
42
+ "auto_schedule": true,
43
+ "include_health_assessment": true,
44
+ "include_agent_activities": true,
45
+ "include_pipeline_operations": true,
46
+ "include_critical_issues": true,
47
+ "include_recommendations": true,
48
+ "report_retention_days": 30,
49
+ "notification_channels": [
50
+ "console"
51
+ ]
52
+ },
53
+ "agent_management": {
54
+ "disabled_agents": [],
55
+ "agent_models": {},
56
+ "performance_limits": {
57
+ "max_task_duration_ms": 30000,
58
+ "max_memory_usage_mb": 512,
59
+ "max_tokens_per_request": 16000
60
+ }
61
+ },
62
+ "refactoring": {
63
+ "enabled": true,
64
+ "automatic_detection": true,
65
+ "require_user_approval": false,
66
+ "max_complexity_threshold": 80,
67
+ "safe_mode": true,
68
+ "batch_mode": true
69
+ },
70
+ "activity_logging": {
71
+ "enabled": true,
72
+ "level": "info",
73
+ "include_performance_metrics": true,
74
+ "include_agent_states": false,
75
+ "include_token_usage": true,
76
+ "retention_days": 3,
77
+ "log_to_file": true,
78
+ "log_path": ".opencode/logs"
79
+ },
80
+ "security": {
81
+ "enabled": true,
82
+ "prompt_sanitization": true,
83
+ "vulnerability_scanning": true,
84
+ "code_review_enforcement": true,
85
+ "security_score_threshold": 70
86
+ },
87
+ "performance_monitoring": {
88
+ "enabled": true,
89
+ "real_time_metrics": true,
90
+ "benchmark_tracking": true,
91
+ "token_tracking": true,
92
+ "cost_tracking": true,
93
+ "alerting": {
94
+ "enabled": true,
95
+ "performance_degradation_threshold": 20,
96
+ "error_rate_threshold": 5,
97
+ "cost_threshold_daily": 10
98
+ }
99
+ },
100
+ "caching": {
101
+ "enabled": true,
102
+ "file_content_cache": true,
103
+ "search_result_cache": true,
104
+ "cache_ttl_seconds": 60,
105
+ "max_cache_size_mb": 25
106
+ },
107
+ "agent_spawn": {
108
+ "max_concurrent": 8,
109
+ "max_per_type": 3,
110
+ "spawn_cooldown_ms": 500,
111
+ "rate_limit_per_minute": 20
112
+ },
113
+ "delegation": {
114
+ "confidence_threshold": 0.5,
115
+ "enable_intelligent_routing": true
116
+ },
117
+ "complexity_thresholds": {
118
+ "simple": 15,
119
+ "moderate": 25,
120
+ "complex": 50,
121
+ "enterprise": 100
122
+ },
123
+ "analytics": {
124
+ "enabled": true,
125
+ "default_limit": 500,
126
+ "min_samples_for_calibration": 3,
127
+ "track_complexity_accuracy": true,
128
+ "track_agent_performance": true
129
+ },
130
+ "pattern_learning": {
131
+ "enabled": true,
132
+ "learning_interval_ms": 300000,
133
+ "auto_apply_threshold": 0.9,
134
+ "min_success_rate": 0.7
135
+ },
136
+ "memory_routing": {
137
+ "enabled": true,
138
+ "provider": "repertoire",
139
+ "module_path": "../repertoire/dist/provider/memory-routing-provider.js",
140
+ "config": {
141
+ "dataDir": "../repertoire/data",
142
+ "signalsPath": "../repertoire/data/curated_signals.json",
143
+ "logDir": "../repertoire/logs/groover-inference"
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://0xray.ai/schemas/features.schema.json",
4
+ "title": "0xRay Features Configuration",
5
+ "type": "object",
6
+ "properties": {
7
+ "version": { "type": "string" },
8
+ "description": { "type": "string" },
9
+ "memory_routing": {
10
+ "type": "object",
11
+ "properties": {
12
+ "enabled": { "type": "boolean" },
13
+ "provider": {
14
+ "type": "string",
15
+ "enum": ["null", "repertoire", "custom"]
16
+ },
17
+ "module_path": { "type": "string" },
18
+ "config": { "type": "object" }
19
+ },
20
+ "required": ["enabled", "provider"],
21
+ "if": {
22
+ "properties": {
23
+ "enabled": { "const": true },
24
+ "provider": { "enum": ["repertoire", "custom"] }
25
+ }
26
+ },
27
+ "then": {
28
+ "required": ["module_path"]
29
+ }
30
+ }
31
+ },
32
+ "additionalProperties": true
33
+ }