musubix 3.4.3 → 3.4.7

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 (95) hide show
  1. package/.github/AGENTS.md +949 -0
  2. package/.github/prompts/sdd-change-apply.prompt.md +283 -0
  3. package/.github/prompts/sdd-change-archive.prompt.md +241 -0
  4. package/.github/prompts/sdd-change-init.prompt.md +269 -0
  5. package/.github/prompts/sdd-design.prompt.md +250 -0
  6. package/.github/prompts/sdd-implement.prompt.md +387 -0
  7. package/.github/prompts/sdd-requirements.prompt.md +193 -0
  8. package/.github/prompts/sdd-review.prompt.md +155 -0
  9. package/.github/prompts/sdd-security.prompt.md +228 -0
  10. package/.github/prompts/sdd-steering.prompt.md +269 -0
  11. package/.github/prompts/sdd-tasks.prompt.md +255 -0
  12. package/.github/prompts/sdd-test.prompt.md +230 -0
  13. package/.github/prompts/sdd-validate.prompt.md +304 -0
  14. package/.github/skills/musubix-adr-generation/SKILL.md +209 -0
  15. package/.github/skills/musubix-best-practices/SKILL.md +315 -0
  16. package/.github/skills/musubix-c4-design/SKILL.md +162 -0
  17. package/.github/skills/musubix-code-generation/SKILL.md +237 -0
  18. package/.github/skills/musubix-domain-inference/SKILL.md +196 -0
  19. package/.github/skills/musubix-ears-validation/SKILL.md +161 -0
  20. package/.github/skills/musubix-sdd-workflow/SKILL.md +217 -0
  21. package/.github/skills/musubix-technical-writing/SKILL.md +444 -0
  22. package/.github/skills/musubix-test-generation/SKILL.md +212 -0
  23. package/.github/skills/musubix-traceability/SKILL.md +141 -0
  24. package/AGENTS.md +1134 -0
  25. package/LICENSE +21 -0
  26. package/README.ja.md +313 -0
  27. package/README.md +315 -50
  28. package/bin/musubix-mcp.js +15 -0
  29. package/bin/musubix.js +9 -1
  30. package/docs/API-REFERENCE.md +1425 -0
  31. package/docs/GITHUB-ACTIONS-NPM-SETUP.md +132 -0
  32. package/docs/INSTALL-GUIDE.ja.md +459 -0
  33. package/docs/INSTALL-GUIDE.md +459 -0
  34. package/docs/MIGRATION-v3.0.md +324 -0
  35. package/docs/MUSUBI-enhancement_roadmap_20260105.md +651 -0
  36. package/docs/MUSUBIX-v3.0-User-Guide.md +1357 -0
  37. package/docs/MUSUBIXv2.2.0-Manual-outline.md +136 -0
  38. package/docs/MUSUBIXv2.2.0-Manual.md +3123 -0
  39. package/docs/MUSUBIXv2.3.5-Refactering.md +1310 -0
  40. package/docs/MUSUBIv1.6.1-enhancement_roadmap_20260105.md +291 -0
  41. package/docs/MUSUBIv2.2.0-USERGUIDE.md +2079 -0
  42. package/docs/ROADMAP-v1.5.md +116 -0
  43. package/docs/SwarmCoding.md +1284 -0
  44. package/docs/Test-prompt.md +105 -0
  45. package/docs/USER-GUIDE-v1.8.0.md +2371 -0
  46. package/docs/USER-GUIDE.ja.md +2147 -0
  47. package/docs/USER-GUIDE.md +3022 -0
  48. package/docs/YATA-GLOBAL-GUIDE.ja.md +750 -0
  49. package/docs/YATA-GLOBAL-GUIDE.md +595 -0
  50. package/docs/YATA-LOCAL-GUIDE.ja.md +989 -0
  51. package/docs/YATA-LOCAL-GUIDE.md +730 -0
  52. package/docs/adr/0001-real-time-pattern-learning-architecture-for-v1-5-0.md +75 -0
  53. package/docs/adr/0002-pattern-sharing-protocol-for-cross-team-collaborat.md +79 -0
  54. package/docs/adr/0003-owl-2-rl-implementation-strategy-for-advanced-infe.md +90 -0
  55. package/docs/adr/ADR-v3.4.0-001-deep-research-architecture.md +217 -0
  56. package/docs/adr/ADR-v3.4.0-002-search-provider-selection.md +308 -0
  57. package/docs/adr/ADR-v3.4.0-003-lm-api-integration.md +475 -0
  58. package/docs/enterprise-knowledge-management.md +1737 -0
  59. package/docs/evolution-from-musubi-to-musubix.md +2170 -0
  60. package/docs/getting-started-with-sdd.md +1602 -0
  61. package/docs/moodle-refactering-codegraph-musubix.md +391 -0
  62. package/docs/moodle-refactering-codegraph.md +278 -0
  63. package/docs/overview/MUSUBIX-CodeGraph.md +322 -0
  64. package/docs/overview/MUSUBIX-Core.md +671 -0
  65. package/docs/overview/MUSUBIX-Decisions.md +494 -0
  66. package/docs/overview/MUSUBIX-FormalVerify.md +566 -0
  67. package/docs/overview/MUSUBIX-Knowledge.md +1231 -0
  68. package/docs/overview/MUSUBIX-Learning.md +837 -0
  69. package/docs/overview/MUSUBIX-MCP-Server.md +535 -0
  70. package/docs/overview/MUSUBIX-Overview.md +264 -0
  71. package/docs/overview/MUSUBIX-Phase1-Complete.md +271 -0
  72. package/docs/overview/MUSUBIX-Phase2-Complete.md +310 -0
  73. package/docs/overview/MUSUBIX-Policy.md +477 -0
  74. package/docs/overview/MUSUBIX-Roadmap-v2.md +399 -0
  75. package/docs/overview/MUSUBIX-Security-Plan.md +939 -0
  76. package/docs/overview/MUSUBIX-Security-v2.1.md +668 -0
  77. package/docs/overview/MUSUBIX-Security.md +891 -0
  78. package/docs/overview/MUSUBIX-YATA.md +666 -0
  79. package/docs/overview/MUSUBIX-v2.2.0-Advanced-Learning.md +513 -0
  80. package/docs/overview/Neuro-SymbolicAI.md +159 -0
  81. package/docs/packages/knowledge.md +594 -0
  82. package/docs/qiita-linux-kernel-knowledge-graph.md +596 -0
  83. package/package.json +58 -51
  84. package/scripts/generate-quality-gate-report.ts +106 -0
  85. package/scripts/postinstall.js +94 -0
  86. package/steering/.musubi-version +1 -0
  87. package/steering/product.ja.md +572 -0
  88. package/steering/project.yml +66 -0
  89. package/steering/rules/constitution.md +491 -0
  90. package/steering/structure.ja.md +503 -0
  91. package/steering/tech.ja.md +208 -0
  92. package/dist/index.d.ts +0 -25
  93. package/dist/index.d.ts.map +0 -1
  94. package/dist/index.js +0 -74
  95. package/dist/index.js.map +0 -1
package/README.md CHANGED
@@ -1,71 +1,336 @@
1
- # musubix
1
+ # MUSUBIX - Neuro-Symbolic AI Integration System
2
2
 
3
- MUSUBIX - Neuro-Symbolic AI Integration System for Software Development
3
+ [![CI](https://github.com/nahisaho/MUSUBIX/actions/workflows/ci.yml/badge.svg)](https://github.com/nahisaho/MUSUBIX/actions/workflows/ci.yml)
4
+ [![npm version](https://img.shields.io/npm/v/musubix.svg)](https://www.npmjs.com/package/musubix)
5
+ [![npm core](https://img.shields.io/npm/v/@nahisaho/musubix-core.svg?label=@nahisaho/musubix-core)](https://www.npmjs.com/package/@nahisaho/musubix-core)
6
+ [![npm mcp](https://img.shields.io/npm/v/@nahisaho/musubix-mcp-server.svg?label=@nahisaho/musubix-mcp-server)](https://www.npmjs.com/package/@nahisaho/musubix-mcp-server)
7
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org/)
8
+ [![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
9
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.3-blue)](https://www.typescriptlang.org/)
10
+ [![Tests](https://img.shields.io/badge/tests-1600%2B%20passing-brightgreen)](https://github.com/nahisaho/MUSUBIX)
11
+ [![npm security](https://img.shields.io/npm/v/@nahisaho/musubix-security.svg?label=@nahisaho/musubix-security)](https://www.npmjs.com/package/@nahisaho/musubix-security)
12
+ [![npm dfg](https://img.shields.io/npm/v/@nahisaho/musubix-dfg.svg?label=@nahisaho/musubix-dfg)](https://www.npmjs.com/package/@nahisaho/musubix-dfg)
13
+ [![npm lean](https://img.shields.io/npm/v/@nahisaho/musubix-lean.svg?label=@nahisaho/musubix-lean)](https://www.npmjs.com/package/@nahisaho/musubix-lean)
14
+ [![npm synthesis](https://img.shields.io/npm/v/@nahisaho/musubix-synthesis.svg?label=@nahisaho/musubix-synthesis)](https://www.npmjs.com/package/@nahisaho/musubix-synthesis)
15
+ [![npm library-learner](https://img.shields.io/npm/v/@nahisaho/musubix-library-learner.svg?label=@nahisaho/musubix-library-learner)](https://www.npmjs.com/package/@nahisaho/musubix-library-learner)
16
+ [![npm neural-search](https://img.shields.io/npm/v/@nahisaho/musubix-neural-search.svg?label=@nahisaho/musubix-neural-search)](https://www.npmjs.com/package/@nahisaho/musubix-neural-search)
17
+
18
+ > Next-generation AI Coding System powered by Git-Native Knowledge Integration
19
+ >
20
+ > **v3.4.0** - Deep Research Integration
21
+
22
+ **[日本語版 README](README.ja.md)**
23
+
24
+ ## Overview
25
+
26
+ MUSUBIX is an innovative AI coding system that integrates **Neural (LLM)** and **Symbolic (Knowledge Graph)** reasoning. It combines MUSUBI SDD methodology with Git-native knowledge management to support high-quality software development.
27
+
28
+ ### 🎉 v3.4.0 Highlights - Deep Research Integration
29
+
30
+ - **🔍 Deep Research Package** - AI-driven iterative research system (433 tests)
31
+ - **6 Integration Modules** - Expert Delegation, Neural Search, Agent Orchestrator, Knowledge Store, Workflow Engine, VS Code Extension
32
+ - **Expert Delegation** - VS Code LM API integration with 7 AI expert types
33
+ - **81% Development Efficiency** - 7h actual vs 36h estimated through established patterns
34
+ - **100% Test Coverage** - 433/433 tests passing, 1,734 lines implementation + 2,488 lines tests
35
+
36
+ ### Previous Highlights
37
+
38
+ #### v3.0.0 - Git-Native Knowledge System
39
+
40
+ - **Git-Native Knowledge** - File-based knowledge graph in `.knowledge/`
41
+ - **Policy Engine** - Executable TypeScript policies in `.policies/`
42
+ - **Decision Records** - ADR management in `docs/decisions/`
43
+ - **2100+ tests** passing across 17 packages
44
+
45
+ ### Features
46
+
47
+ - 🧠 **Neuro-Symbolic Integration** - Fusion of LLM creativity and knowledge graph precision
48
+ - 📂 **Git-Native Knowledge** - File-based knowledge graph management *(v3.0.0)*
49
+ - 📊 **DFG/CFG Analysis** - Data flow and control flow graph extraction for TypeScript/JavaScript
50
+ - 🧮 **Lean 4 Integration** - Formal theorem proving with EARS-to-Lean conversion
51
+ - 📚 **Library Learning** - DreamCoder-style hierarchical abstraction and pattern compression
52
+ - 🔍 **Neural Search** - Neural-guided program synthesis with beam search
53
+ - ⚗️ **Program Synthesis** - DSL-based PBE synthesis with witness functions
54
+ - 🔒 **Symbolic Reasoning** - Formal verification, hallucination detection, constitution enforcement
55
+ - 📝 **EARS Requirements Analysis** - Conversion and validation from natural language to formal requirements
56
+ - 🎨 **Design Pattern Recommendations** - Context-based C4 model and ADR generation
57
+ - ✅ **Test-Driven Development** - Quality assurance through Test-First principles
58
+ - 🔗 **Complete Traceability** - Tracking from requirements to code
59
+ - 🛡️ **Security Analysis** - Vulnerability scanning, secret detection, taint analysis *(v1.8.0)*
60
+ - 🔬 **Formal Verification** - Z3 SMT solver integration, Hoare triple verification *(v1.7.5)*
61
+ - 🖥️ **Interactive REPL** - Command completion, history, session variables *(v1.6.0)*
62
+ - 🔮 **Advanced Inference** - OWL 2 RL reasoning and Datalog evaluation *(v1.4.5)*
63
+
64
+ ## Architecture
65
+
66
+ ```mermaid
67
+ flowchart TB
68
+ subgraph MUSUBIX["MUSUBIX System v3.0"]
69
+ subgraph Packages["Packages"]
70
+ Core["@nahisaho/musubix-core"]
71
+ MCP["@nahisaho/musubix-mcp-server"]
72
+ Security["@nahisaho/musubix-security"]
73
+ end
74
+
75
+ Core <--> MCP
76
+ MCP <--> Security
77
+
78
+ subgraph Integration["Neuro-Symbolic Integration"]
79
+ NSI["LLM Creativity + Git-Native Knowledge"]
80
+ end
81
+
82
+ Core --> Integration
83
+ MCP --> Integration
84
+ end
85
+ ```
86
+
87
+ ## Project Structure
88
+
89
+ | Path | Description |
90
+ |------|-------------|
91
+ | `packages/core/` | Core library (249 modules) |
92
+ | `packages/core/auth/` | Authentication & Authorization |
93
+ | `packages/core/cli/` | CLI Interface |
94
+ | `packages/core/codegen/` | Code Generation & Analysis |
95
+ | `packages/core/design/` | Design Patterns & C4 Models |
96
+ | `packages/core/error/` | Error Handling |
97
+ | `packages/core/explanation/` | Explanation Generation & Visualization |
98
+ | `packages/core/learning/` | Self-Learning & Pattern Extraction |
99
+ | `packages/core/requirements/` | Requirements Analysis & Decomposition |
100
+ | `packages/core/symbolic/` | Symbolic Reasoning |
101
+ | `packages/core/traceability/` | Traceability |
102
+ | `packages/core/types/` | Type Definitions |
103
+ | `packages/core/utils/` | Utilities |
104
+ | `packages/core/validators/` | EARS Validation |
105
+ | `packages/mcp-server/` | MCP Server (35 tools, 5 prompts) |
106
+ | `packages/pattern-mcp/` | Pattern Learning |
107
+ | `packages/ontology-mcp/` | Ontology Engine |
108
+ | `packages/wake-sleep/` | Wake-Sleep Learning |
109
+ | `packages/sdd-ontology/` | SDD Ontology |
110
+ | `packages/security/` | Security Analysis |
111
+ | `packages/formal-verify/` | Formal Verification |
112
+ | `packages/dfg/` | DFG/CFG Extraction - Data Flow Analysis |
113
+ | `packages/lean/` | Lean 4 Integration - Theorem Proving |
114
+ | `packages/library-learner/` | Library Learning - DreamCoder-style |
115
+ | `packages/neural-search/` | Neural Search - Guided Synthesis |
116
+ | `packages/synthesis/` | Program Synthesis - DSL/PBE |
117
+ | `steering/` | Project Memory |
118
+ | `storage/` | Specifications & Artifacts |
119
+ | `templates/` | Templates |
120
+ | `docs/` | Documentation |
121
+
122
+ ## Requirements
123
+
124
+ - Node.js >= 20.0.0
125
+ - npm >= 10.0.0
126
+ - TypeScript >= 5.3
4
127
 
5
128
  ## Installation
6
129
 
130
+ ### npm/npx (Recommended)
131
+
7
132
  ```bash
8
- npm install musubix
133
+ # Global installation
134
+ npm install -g musubix
135
+
136
+ # Run directly with npx
137
+ npx musubix init
138
+ npx musubix --help
139
+
140
+ # Start MCP Server
141
+ npx @nahisaho/musubix-mcp-server
142
+ npx musubix-mcp --transport stdio
9
143
  ```
10
144
 
11
- This will install all MUSUBIX packages:
12
-
13
- - `@nahisaho/musubix-core` - Core library (CLI, EARS validation, code generation)
14
- - `@nahisaho/musubix-mcp-server` - MCP Server (19 tools, 3 prompts)
15
- - `@nahisaho/musubix-security` - Security analysis
16
- - `@nahisaho/musubix-formal-verify` - Formal verification with Z3
17
- - `@nahisaho/musubix-yata-client` - YATA knowledge graph client
18
- - `@nahisaho/yata-local` - Local SQLite-based knowledge graph
19
- - `@nahisaho/yata-global` - Distributed knowledge graph platform
20
- - `@nahisaho/yata-scale` - Distributed sharding and caching
21
- - `@nahisaho/musubix-pattern-mcp` - Pattern learning MCP
22
- - `@nahisaho/musubix-ontology-mcp` - Ontology reasoning MCP
23
- - `@nahisaho/musubix-wake-sleep` - Wake-Sleep learning cycle
24
- - `@nahisaho/musubix-sdd-ontology` - SDD methodology ontology
25
- - `@nahisaho/musubix-dfg` - Data Flow Graph extraction
26
- - `@nahisaho/musubix-lean` - Lean 4 theorem prover integration
27
- - `@nahisaho/musubix-library-learner` - API pattern learning
28
- - `@nahisaho/musubix-neural-search` - Semantic code search
29
- - `@nahisaho/musubix-synthesis` - Program synthesis
30
-
31
- ## Usage
32
-
33
- ### CLI
145
+ ### Scoped Packages
34
146
 
35
147
  ```bash
36
- npx musubix --help
37
- npx musubix init
38
- npx musubix requirements analyze <file>
39
- npx musubix design generate <file>
40
- npx musubix design traceability # REQ↔DES traceability validation (v3.1.0)
41
- npx musubix codegen generate <file>
42
- npx musubix codegen status <spec> # Status transition code generation (v3.1.0)
43
- npx musubix scaffold domain-model <name> # DDD project scaffolding
44
- npx musubix scaffold domain-model <name> -v "Price,Email" # With Value Objects (v3.1.0)
45
- npx musubix scaffold domain-model <name> -s "Order,Task" # With status machines (v3.1.0)
148
+ # Install individual packages
149
+ npm install @nahisaho/musubix-core
150
+ npm install @nahisaho/musubix-mcp-server
151
+ npm install @nahisaho/musubix-yata-client
152
+ npm install @nahisaho/musubix-security
153
+ npm install @nahisaho/musubix-formal-verify
154
+
155
+ # Phase 1: Deep Symbolic Integration
156
+ npm install @nahisaho/musubix-dfg
157
+ npm install @nahisaho/musubix-lean
158
+ npm install @nahisaho/yata-scale
159
+
160
+ # Phase 2: Advanced Learning
161
+ npm install @nahisaho/musubix-library-learner
162
+ npm install @nahisaho/musubix-neural-search
163
+ npm install @nahisaho/musubix-synthesis
46
164
  ```
47
165
 
48
- ### Library
166
+ ### Build from Source
49
167
 
50
- ```typescript
51
- import { EarsValidator, CodeGenerator } from 'musubix';
52
- import { security, synthesis, neuralSearch } from 'musubix';
168
+ ```bash
169
+ git clone https://github.com/nahisaho/MUSUBIX.git
170
+ cd MUSUBIX
171
+ npm install
172
+ npm run build
173
+ ```
174
+
175
+ ## Development
176
+
177
+ ```bash
178
+ # Build
179
+ npm run build
180
+
181
+ # Run tests
182
+ npm test
53
183
 
54
- // Core features
55
- const validator = new EarsValidator();
56
- const result = validator.validate(requirement);
184
+ # Lint
185
+ npm run lint
57
186
 
58
- // Advanced features
59
- const synthesizer = synthesis.createEnhancedPBESynthesizer();
60
- const searcher = neuralSearch.createHybridRanker();
187
+ # Type check
188
+ npm run type-check
189
+ ```
190
+
191
+ ## Key Features
192
+
193
+ ### Requirements Definition (Article II Compliant)
194
+
195
+ - **EARS Validation**: Easy Approach to Requirements Syntax pattern validation
196
+ - **Interactive Q&A Hearing**: Dialogue-based requirements gathering
197
+ - **Requirements Decomposition**: Breaking down large requirements into implementation units
198
+ - **Related Requirements Search**: Automatic detection of similar and dependent requirements
199
+
200
+ ### Design Generation (Article III Compliant)
201
+
202
+ - **C4 Model Generation**: Context/Container/Component/Code diagrams
203
+ - **ADR Generation**: Architecture Decision Records
204
+ - **Pattern Detection**: Automatic detection and recommendation of design patterns
205
+ - **SOLID Validation**: SOLID principle compliance checking
206
+
207
+ ### Code Generation & Verification
208
+
209
+ - **Static Analysis**: Quality metrics and complexity calculation
210
+ - **Security Scanning**: Vulnerability detection
211
+ - **Test Generation**: Unit and integration test generation
212
+ - **Coverage Reporting**: Test coverage measurement
213
+
214
+ ### MCP Server
215
+
216
+ Provides 24 tools (9 SDD + 7 Pattern + 3 Ontology + 5 KGPR) and 3 prompts:
217
+
218
+ ```bash
219
+ # Start MCP Server
220
+ npx @nahisaho/musubix-mcp-server
61
221
  ```
62
222
 
63
223
  ## Documentation
64
224
 
65
- - [User Guide](https://github.com/nahisaho/MUSUBIX/blob/main/docs/USER-GUIDE.md)
66
- - [API Reference](https://github.com/nahisaho/MUSUBIX/blob/main/docs/API-REFERENCE.md)
67
- - [AGENTS.md](https://github.com/nahisaho/MUSUBIX/blob/main/AGENTS.md) - For AI coding agents
225
+ | Document | Description |
226
+ |----------|-------------|
227
+ | [Requirements Specification](storage/specs/REQ-MUSUBIX-001.md) | EARS format functional/non-functional requirements |
228
+ | [Design Document](storage/specs/DES-MUSUBIX-001.md) | C4 model and ADR-based design |
229
+ | [Task Definition](storage/specs/TSK-MUSUBIX-001.md) | 56 tasks sprint plan |
230
+ | [API Reference](docs/API-REFERENCE.md) | Public API specification |
231
+ | [Symbolic Integration](storage/specs/REQ-SYMB-001.md) | Neuro-Symbolic requirements (27 requirements) |
232
+
233
+ ## Symbolic Reasoning Module (v1.2.0)
234
+
235
+ The new symbolic reasoning module provides:
236
+
237
+ ### Phase 1: Foundation
238
+ - **SemanticCodeFilterPipeline** - LLM output semantic validation
239
+ - **HallucinationDetector** - Undefined symbol/invalid import detection
240
+ - **ConstitutionRuleRegistry** - 9 Constitution articles enforcement
241
+ - **ConfidenceEstimator** - AST complexity, requirement coverage scoring
242
+ - **ConfidenceBasedRouter** - Confidence-based routing decisions
243
+ - **ErrorHandler** - Graceful degradation
244
+
245
+ ### Phase 2: Formal Verification
246
+ - **EarsToFormalSpecConverter** - EARS → SMT-LIB conversion
247
+ - **VerificationConditionGenerator** - Verification condition (VC) generation
248
+ - **Z3Adapter** - Z3 SMT solver integration
249
+ - **SecurityScanner** - OWASP patterns, secret detection
250
+
251
+ ### Phase 3: Advanced Features
252
+ - **CandidateRanker** - Multi-criteria candidate scoring
253
+ - **ResultBlender** - Neural/Symbolic result integration (3 strategies)
254
+ - **ExtensibleRuleConfig** - YAML/JSON rule configuration
255
+ - **AuditLogger** - SHA-256 hash-chain tamper detection
256
+ - **PerformanceBudget** - Step-level budgets, SLO metrics
257
+ - **QualityGateValidator** - Automated quality gate validation
258
+
259
+ ## Wake-Sleep Learning Cycle (v1.3.0)
260
+
261
+ Continuous learning system based on the Wake-Sleep algorithm:
262
+
263
+ | Phase | Processing |
264
+ |-------|------------|
265
+ | **Wake** | Code observation → Pattern extraction → Knowledge graph update |
266
+ | **Sleep** | Pattern consolidation → Similar pattern compression → Memory optimization |
267
+
268
+ ### Key Components
269
+ - **WakeSleepCycle** - Learning cycle orchestration
270
+ - **PatternLibrary** - Persistent pattern storage management
271
+ - **PatternOntologyBridge** - Pattern ↔ Ontology bidirectional conversion
272
+ - **N3Store** - RDF/OWL-based knowledge graph storage
273
+
274
+ ### New MCP Tools (7 tools)
275
+ - `pattern_extract` - Extract patterns from code
276
+ - `pattern_compress` - Abstraction and compression of patterns
277
+ - `pattern_store` - Save to pattern library
278
+ - `pattern_query` - Search and retrieve patterns
279
+ - `pattern_consolidate` - Consolidate similar patterns
280
+ - `ontology_query` - Query ontology graph
281
+ - `ontology_infer` - Execute ontology-based inference
282
+
283
+ ## Advanced Inference (v1.4.5)
284
+
285
+ OWL 2 RL profile reasoning and Datalog evaluation engine:
286
+
287
+ ### Inference Components
288
+ - **OWL2RLReasoner** - OWL 2 RL profile compliant inference (20+ built-in rules)
289
+ - **DatalogEngine** - Stratified Datalog evaluation with negation support
290
+ - **InferenceExplainer** - Human-readable inference explanation generator
291
+ - **ProgressReporter** - Real-time progress feedback (500ms interval)
292
+
293
+ ### OWL 2 RL Built-in Rules
294
+ | Category | Rules | Description |
295
+ |----------|-------|-------------|
296
+ | Class Axioms | cax-sco, cax-eqc | Subclass, Equivalent class inference |
297
+ | Property | prp-dom, prp-rng | Domain, Range inference |
298
+ | Property Characteristics | prp-symp, prp-trp, prp-inv | Symmetric, Transitive, Inverse |
299
+ | Equality | eq-ref, eq-sym, eq-trans | sameAs inference |
300
+
301
+ ### Explanation Formats
302
+ - `text` - Plain text explanation
303
+ - `markdown` - Markdown format
304
+ - `html` - HTML format with escaping
305
+
306
+ ## Constitutional Articles (9 Articles)
307
+
308
+ MUSUBIX adheres to the following 9 constitutional articles:
309
+
310
+ 1. **Specification First** - Requirements before implementation
311
+ 2. **Design Before Code** - Design before coding
312
+ 3. **Single Source of Truth** - Project memory is authoritative
313
+ 4. **Traceability** - Tracking from requirements to code
314
+ 5. **Incremental Progress** - Small, frequent deliveries
315
+ 6. **Decision Documentation** - Decisions recorded as ADRs
316
+ 7. **Quality Gates** - Phase validation required
317
+ 8. **User-Centric** - Document user value
318
+ 9. **Continuous Learning** - Retrospectives and improvements
68
319
 
69
320
  ## License
70
321
 
71
- MIT
322
+ MIT License - See [LICENSE](LICENSE) for details
323
+
324
+ ## Author
325
+
326
+ nahisaho
327
+
328
+ ## Changelog
329
+
330
+ See [CHANGELOG.md](CHANGELOG.md)
331
+
332
+ ---
333
+
334
+ **Document ID**: README
335
+ **Version**: 1.8.0
336
+ **Last Updated**: 2026-01-06
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * MUSUBIX MCP Server Entry Point (Root Package)
4
+ *
5
+ * This file delegates to the @nahisaho/musubix-mcp-server package.
6
+ *
7
+ * @see REQ-ARC-003 - MCP Server
8
+ *
9
+ * Usage:
10
+ * npx musubix-mcp
11
+ * musubix-mcp --transport stdio
12
+ */
13
+
14
+ // Forward to the mcp-server package's CLI
15
+ import '@nahisaho/musubix-mcp-server/bin/musubix-mcp.js';
package/bin/musubix.js CHANGED
@@ -1,7 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * MUSUBIX CLI - Delegates to @nahisaho/musubix-core
3
+ * MUSUBIX CLI Entry Point (Root Package)
4
+ *
5
+ * This file re-exports the CLI from @nahisaho/musubix-core package.
4
6
  *
5
7
  * @see REQ-ARC-002 - CLI Interface
8
+ *
9
+ * Usage:
10
+ * npx musubix
11
+ * musubix <command> [options]
6
12
  */
13
+
14
+ // Forward to the core package's CLI
7
15
  import '@nahisaho/musubix-core/bin/musubix.js';