@nahisaho/musubix-core 3.7.3 → 3.8.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 (73) hide show
  1. package/.github/AGENTS.md +99 -46
  2. package/AGENTS.md +321 -212
  3. package/dist/cli/commands/codegen/generators.d.ts +26 -0
  4. package/dist/cli/commands/codegen/generators.d.ts.map +1 -0
  5. package/dist/cli/commands/codegen/generators.js +1374 -0
  6. package/dist/cli/commands/codegen/generators.js.map +1 -0
  7. package/dist/cli/commands/codegen/index.d.ts +23 -0
  8. package/dist/cli/commands/codegen/index.d.ts.map +1 -0
  9. package/dist/cli/commands/codegen/index.js +254 -0
  10. package/dist/cli/commands/codegen/index.js.map +1 -0
  11. package/dist/cli/commands/codegen/security-patterns.d.ts +82 -0
  12. package/dist/cli/commands/codegen/security-patterns.d.ts.map +1 -0
  13. package/dist/cli/commands/codegen/security-patterns.js +231 -0
  14. package/dist/cli/commands/codegen/security-patterns.js.map +1 -0
  15. package/dist/cli/commands/codegen/template-utils.d.ts +48 -0
  16. package/dist/cli/commands/codegen/template-utils.d.ts.map +1 -0
  17. package/dist/cli/commands/codegen/template-utils.js +488 -0
  18. package/dist/cli/commands/codegen/template-utils.js.map +1 -0
  19. package/dist/cli/commands/codegen/types.d.ts +150 -0
  20. package/dist/cli/commands/codegen/types.d.ts.map +1 -0
  21. package/dist/cli/commands/codegen/types.js +13 -0
  22. package/dist/cli/commands/codegen/types.js.map +1 -0
  23. package/dist/cli/commands/design/c4-generator.d.ts +26 -0
  24. package/dist/cli/commands/design/c4-generator.d.ts.map +1 -0
  25. package/dist/cli/commands/design/c4-generator.js +895 -0
  26. package/dist/cli/commands/design/c4-generator.js.map +1 -0
  27. package/dist/cli/commands/design/diagram-generator.d.ts +29 -0
  28. package/dist/cli/commands/design/diagram-generator.d.ts.map +1 -0
  29. package/dist/cli/commands/design/diagram-generator.js +190 -0
  30. package/dist/cli/commands/design/diagram-generator.js.map +1 -0
  31. package/dist/cli/commands/design/index.d.ts +25 -0
  32. package/dist/cli/commands/design/index.d.ts.map +1 -0
  33. package/dist/cli/commands/design/index.js +312 -0
  34. package/dist/cli/commands/design/index.js.map +1 -0
  35. package/dist/cli/commands/design/patterns.d.ts +42 -0
  36. package/dist/cli/commands/design/patterns.d.ts.map +1 -0
  37. package/dist/cli/commands/design/patterns.js +405 -0
  38. package/dist/cli/commands/design/patterns.js.map +1 -0
  39. package/dist/cli/commands/design/types.d.ts +172 -0
  40. package/dist/cli/commands/design/types.d.ts.map +1 -0
  41. package/dist/cli/commands/design/types.js +10 -0
  42. package/dist/cli/commands/design/types.js.map +1 -0
  43. package/dist/cli/commands/design/validation.d.ts +32 -0
  44. package/dist/cli/commands/design/validation.d.ts.map +1 -0
  45. package/dist/cli/commands/design/validation.js +354 -0
  46. package/dist/cli/commands/design/validation.js.map +1 -0
  47. package/dist/cli/commands/index.d.ts +1 -1
  48. package/dist/cli/commands/index.d.ts.map +1 -1
  49. package/dist/cli/commands/index.js +2 -2
  50. package/dist/cli/commands/index.js.map +1 -1
  51. package/dist/symbolic/security-scanner.d.ts +17 -1
  52. package/dist/symbolic/security-scanner.d.ts.map +1 -1
  53. package/dist/symbolic/security-scanner.js +17 -1
  54. package/dist/symbolic/security-scanner.js.map +1 -1
  55. package/dist/utils/__tests__/string-casing.test.d.ts +2 -0
  56. package/dist/utils/__tests__/string-casing.test.d.ts.map +1 -0
  57. package/dist/utils/__tests__/string-casing.test.js +112 -0
  58. package/dist/utils/__tests__/string-casing.test.js.map +1 -0
  59. package/dist/utils/status-workflow.d.ts +3 -3
  60. package/dist/utils/string-casing.d.ts +41 -0
  61. package/dist/utils/string-casing.d.ts.map +1 -0
  62. package/dist/utils/string-casing.js +98 -0
  63. package/dist/utils/string-casing.js.map +1 -0
  64. package/package.json +15 -13
  65. package/LICENSE +0 -21
  66. package/dist/cli/commands/kgpr.d.ts +0 -14
  67. package/dist/cli/commands/kgpr.d.ts.map +0 -1
  68. package/dist/cli/commands/kgpr.js +0 -464
  69. package/dist/cli/commands/kgpr.js.map +0 -1
  70. package/dist/cli/middleware/auto-learn.d.ts +0 -98
  71. package/dist/cli/middleware/auto-learn.d.ts.map +0 -1
  72. package/dist/cli/middleware/auto-learn.js +0 -130
  73. package/dist/cli/middleware/auto-learn.js.map +0 -1
package/.github/AGENTS.md CHANGED
@@ -8,14 +8,14 @@
8
8
 
9
9
  | 項目 | 詳細 |
10
10
  |------|------|
11
- | **バージョン** | 3.2.0 (Expert Delegation System) |
11
+ | **バージョン** | 3.8.1 |
12
12
  | **言語** | TypeScript |
13
13
  | **ランタイム** | Node.js >= 20.0.0 |
14
14
  | **パッケージマネージャ** | npm >= 10.0.0 |
15
15
  | **ビルドシステム** | モノレポ(npm workspaces) |
16
16
  | **テストフレームワーク** | Vitest |
17
- | **テスト数** | 4500+ (全合格) |
18
- | **パッケージ数** | 26 |
17
+ | **テスト数** | 5,738+ (全合格) |
18
+ | **パッケージ数** | 25 |
19
19
  | **MCPツール数** | 107 |
20
20
  | **Agent Skills** | 13 (Claude Code対応) |
21
21
 
@@ -44,16 +44,20 @@ packages/
44
44
  ├── workflow-engine/ # @nahisaho/musubix-workflow-engine
45
45
  ├── skill-manager/ # @nahisaho/musubix-skill-manager
46
46
  ├── codegraph/ # @nahisaho/musubix-codegraph
47
- ├── expert-delegation/ # @nahisaho/musubix-expert-delegation (v3.2.0 NEW!)
48
- ├── knowledge/ # @musubix/knowledge (v3.0.0 NEW!)
49
- ├── policy/ # @musubix/policy (v3.0.0 NEW!)
50
- └── decisions/ # @musubix/decisions (v3.0.0 NEW!)
47
+ ├── expert-delegation/ # @nahisaho/musubix-expert-delegation
48
+ ├── deep-research/ # @nahisaho/musubix-deep-research
49
+ ├── assistant-axis/ # @nahisaho/musubix-assistant-axis
50
+ ├── musubi/ # @nahisaho/musubi
51
+ ├── musubix/ # musubix (CLIエントリポイント)
52
+ ├── knowledge/ # @musubix/knowledge
53
+ ├── policy/ # @musubix/policy
54
+ └── decisions/ # @musubix/decisions
51
55
  ```
52
56
 
53
57
  | パッケージ | npm | 役割 |
54
58
  |-----------|-----|------|
55
59
  | `packages/core/` | `@nahisaho/musubix-core` | コアライブラリ - CLI、EARS検証、コード生成、設計パターン |
56
- | `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー - 61ツール、5プロンプト |
60
+ | `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー - 107ツール、5プロンプト |
57
61
  | `packages/security/` | `@nahisaho/musubix-security` | セキュリティ分析 - 脆弱性検出、シークレット検出、テイント解析 |
58
62
  | `packages/formal-verify/` | `@nahisaho/musubix-formal-verify` | 形式検証 - Z3統合、Hoare検証、EARS→SMT変換 |
59
63
  | `packages/pattern-mcp/` | `@nahisaho/musubix-pattern-mcp` | パターン学習 - 抽出・圧縮・ライブラリ |
@@ -72,21 +76,11 @@ packages/
72
76
  | `packages/workflow-engine/` | `@nahisaho/musubix-workflow-engine` | **ワークフロー制御** - 5フェーズ制御・品質ゲート |
73
77
  | `packages/skill-manager/` | `@nahisaho/musubix-skill-manager` | **スキル管理** - スキル登録・実行・検証 |
74
78
  | `packages/codegraph/` | `@nahisaho/musubix-codegraph` | **コードグラフ** - コード構造解析・依存関係追跡 |
75
- | `packages/expert-delegation/` | `@nahisaho/musubix-expert-delegation` | **エキスパート委譲 (v3.2.0 NEW!)** - 7種AI専門家・VS Code LM API統合 |
76
-
77
- ### 非推奨パッケージ(Deprecated) ⚠️
78
-
79
- 以下のYATA関連パッケージはv3.0.0で非推奨となりました。`@musubix/knowledge`へ移行してください。
80
-
81
- | パッケージ | 状態 | 移行先 |
82
- |-----------|------|--------|
83
- | `packages/yata-client/` | ⚠️ Deprecated | `@musubix/knowledge` |
84
- | `packages/yata-global/` | ⚠️ Deprecated | `@musubix/knowledge` |
85
- | `packages/yata-local/` | ⚠️ Deprecated | `@musubix/knowledge` |
86
- | `packages/yata-scale/` | ⚠️ Deprecated | `@musubix/knowledge` |
87
- | `packages/yata-ui/` | ⚠️ Deprecated | `@musubix/knowledge` |
88
-
89
- **移行ガイド**: [docs/MIGRATION-v3.0.md](docs/MIGRATION-v3.0.md)
79
+ | `packages/expert-delegation/` | `@nahisaho/musubix-expert-delegation` | **エキスパート委譲** - 7種AI専門家・VS Code LM API統合 |
80
+ | `packages/deep-research/` | `@nahisaho/musubix-deep-research` | **Deep Research** - AI駆動型深層リサーチ・6統合機能 |
81
+ | `packages/assistant-axis/` | `@nahisaho/musubix-assistant-axis` | **マルチモーダル統合** - アシスタント軸 |
82
+ | `packages/musubi/` | `@nahisaho/musubi` | **AI要約** |
83
+ | `packages/musubix/` | `musubix` | **CLIエントリポイント** |
90
84
 
91
85
  ### Core パッケージモジュール
92
86
 
@@ -120,6 +114,7 @@ npx musubix requirements analyze <file> # 自然言語 → EARS変換
120
114
  npx musubix requirements validate <file> # EARS構文検証
121
115
  npx musubix requirements map <file> # オントロジーマッピング
122
116
  npx musubix requirements search <query> # 関連要件検索
117
+ npx musubix requirements new <feature> # 対話的要件作成
123
118
 
124
119
  # 設計生成
125
120
  npx musubix design generate <file> # 要件から設計生成
@@ -127,14 +122,16 @@ npx musubix design patterns <context> # パターン検出
127
122
  npx musubix design validate <file> # SOLID準拠検証
128
123
  npx musubix design c4 <file> # C4ダイアグラム生成
129
124
  npx musubix design adr <decision> # ADR生成
130
- npx musubix design traceability # REQ↔DESトレーサビリティ検証 (v3.1.0 NEW!)
125
+ npx musubix design traceability # REQ↔DESトレーサビリティ検証
131
126
  npx musubix design traceability --min-coverage 80 # カバレッジ閾値指定
132
127
 
133
128
  # コード生成
134
129
  npx musubix codegen generate <file> # 設計からコード生成
130
+ npx musubix codegen generate <file> --full-skeleton # 4ファイル生成
131
+ npx musubix codegen generate <file> --with-tests # テストファイル付き
135
132
  npx musubix codegen analyze <file> # 静的解析
136
133
  npx musubix codegen security <path> # セキュリティスキャン
137
- npx musubix codegen status <spec> # ステータス遷移コード生成 (v3.1.0 NEW!)
134
+ npx musubix codegen status <spec> # ステータス遷移コード生成
138
135
  npx musubix codegen status <spec> --enum # enum型で生成
139
136
 
140
137
  # テスト
@@ -146,7 +143,7 @@ npx musubix trace matrix # トレーサビリティマトリ
146
143
  npx musubix trace matrix -p <project> # 指定プロジェクトのマトリクス
147
144
  npx musubix trace impact <id> # 影響分析
148
145
  npx musubix trace validate # リンク検証
149
- npx musubix trace sync # トレースマトリクス自動更新 (v1.6.7 NEW!)
146
+ npx musubix trace sync # トレースマトリクス自動更新
150
147
  npx musubix trace sync --dry-run # プレビューのみ
151
148
 
152
149
  # 説明生成
@@ -155,49 +152,105 @@ npx musubix explain graph <id> # 推論グラフ生成
155
152
 
156
153
  # 自己学習システム
157
154
  npx musubix learn status # 学習状態ダッシュボード
155
+ npx musubix learn dashboard # インタラクティブダッシュボード
158
156
  npx musubix learn feedback <id> # フィードバック記録
159
157
  npx musubix learn patterns # パターン一覧表示
158
+ npx musubix learn best-practices # ベストプラクティス表示
159
+ npx musubix learn bp-list # ベストプラクティスID一覧
160
+ npx musubix learn bp-show <id> # ベストプラクティス詳細
160
161
  npx musubix learn add-pattern <name> # パターン手動登録
161
162
  npx musubix learn remove-pattern <id> # パターン削除
162
- npx musubix learn recommend # コンテキストベースの推奨
163
+ npx musubix learn recommend -a <type> # 推奨(-a 必須: code|design|test)
163
164
  npx musubix learn decay # 未使用パターンの減衰
165
+ npx musubix learn wake # Wakeフェーズ実行
166
+ npx musubix learn sleep # Sleepフェーズ実行
167
+ npx musubix learn cycle # Wake-Sleep完全サイクル
168
+ npx musubix learn compress # パターン圧縮・最適化
164
169
  npx musubix learn export # 学習データエクスポート
165
170
  # オプション: --output <file>, --privacy-filter, --patterns-only, --feedback-only, --min-confidence <n>
166
171
  npx musubix learn import <file> # 学習データインポート
167
172
  # オプション: --merge-strategy <skip|overwrite|merge>, --dry-run, --patterns-only, --feedback-only
168
173
 
169
- # オントロジー操作 (v1.4.1 NEW!)
170
- npx musubix ontology validate -f <file> # 知識グラフ整合性検証
171
- npx musubix ontology check-circular -f <file> # 循環依存チェック
172
- npx musubix ontology stats -f <file> # 統計表示
173
-
174
- # Interactive REPL (v1.5.0 NEW!)
174
+ # 知識グラフ (Knowledge)
175
+ npx musubix knowledge add <type> <id> <name> # エンティティ追加
176
+ npx musubix knowledge get <id> # エンティティ取得
177
+ npx musubix knowledge delete <id> # エンティティ削除
178
+ npx musubix knowledge link <source> <type> <target> # リレーション追加
179
+ npx musubix knowledge query [--type <type>] # クエリ検索
180
+ npx musubix knowledge traverse <id> # グラフ走査
181
+ npx musubix knowledge stats # 統計表示
182
+
183
+ # ADR (Architecture Decision Records)
184
+ npx musubix decision create <title> # ADR作成
185
+ npx musubix decision list # ADR一覧
186
+ npx musubix decision get <id> # ADR詳細
187
+ npx musubix decision accept <id> # ADR承認
188
+ npx musubix decision deprecate <id> # ADR廃止
189
+ npx musubix decision search <query> # ADR検索
190
+ npx musubix decision index # ADRインデックス生成
191
+
192
+ # ポリシー検証
193
+ npx musubix policy validate [path] # プロジェクト検証
194
+ npx musubix policy list # ポリシー一覧
195
+ npx musubix policy info <id> # ポリシー詳細
196
+ npx musubix policy check <file> # 単一ファイル検証
197
+
198
+ # コードグラフ (16言語対応)
199
+ npx musubix cg index <path> # インデックス作成
200
+ npx musubix cg query [name] # エンティティ検索
201
+ npx musubix cg search <query> # セマンティック検索
202
+ npx musubix cg deps <name> # 依存関係
203
+ npx musubix cg callers <name> # 呼び出し元
204
+ npx musubix cg callees <name> # 呼び出し先
205
+ npx musubix cg languages # 対応言語一覧
206
+ npx musubix cg stats # 統計
207
+
208
+ # オントロジー操作
209
+ npx musubix ontology validate # 知識グラフ整合性検証
210
+ npx musubix ontology check-circular # 循環依存チェック
211
+ npx musubix ontology stats # 統計表示
212
+
213
+ # Interactive REPL
175
214
  npx musubix repl # 対話的シェルを起動
176
- npx musubix repl --history <file> # カスタム履歴ファイル
177
- npx musubix repl --no-color # 色なしモード
178
215
 
179
- # KGPR - Knowledge Graph Pull Request (v1.6.4 - DEPRECATED)
180
- # KGPRは廃止されました。通常のGit PRワークフローを使用してください。
181
-
182
- # SDDプロジェクトスキャフォールド (v1.6.7 NEW!, v3.1.0 Enhanced!)
216
+ # SDDプロジェクトスキャフォールド
183
217
  npx musubix scaffold domain-model <name> # DDDプロジェクト生成
184
218
  npx musubix scaffold domain-model <name> -e "Entity1,Entity2" # エンティティ指定
185
219
  npx musubix scaffold domain-model <name> -d DOMAIN # ドメイン接頭辞指定
186
- npx musubix scaffold domain-model <name> -v "Price,Email" # Value Object生成 (v3.1.0 NEW!)
187
- npx musubix scaffold domain-model <name> -s "Order,Task" # ステータス遷移生成 (v3.1.0 NEW!)
220
+ npx musubix scaffold domain-model <name> -v "Price,Email" # Value Object生成
221
+ npx musubix scaffold domain-model <name> -s "Order,Task" # ステータス遷移生成
222
+ npx musubix scaffold domain-model <name> -s "Order=pending,Task=open" # 初期状態指定
188
223
  npx musubix scaffold minimal <name> # 最小構成プロジェクト
224
+ npx musubix scaffold api-service <name> # APIサービスプロジェクト
189
225
 
190
- # プログラム合成 (v2.2.0 NEW!)
226
+ # プログラム合成
191
227
  npx musubix synthesize <examples.json> # 例からプログラム合成
192
228
  npx musubix synthesize pbe <examples.json> # PBE特化合成
193
229
  npx musubix syn <examples.json> # エイリアス
194
230
 
195
- # パターンライブラリ管理 (v2.2.0 NEW!)
231
+ # パターンライブラリ管理
196
232
  npx musubix library learn <file> # コードからパターン学習
197
233
  npx musubix library query <query> # パターン検索
198
234
  npx musubix library stats # 統計表示
199
235
  npx musubix lib stats # エイリアス
200
236
 
237
+ # パフォーマンス
238
+ npx musubix perf benchmark # ベンチマーク
239
+ npx musubix perf startup # 起動時間計測
240
+ npx musubix perf memory # メモリ使用量
241
+
242
+ # Deep Research
243
+ npx musubix deep-research <query> [-i <iterations>] [-o <file>]
244
+
245
+ # スキル・タスク管理
246
+ npx musubix skills list # スキル一覧
247
+ npx musubix skills validate [skill-name] # スキル検証
248
+ npx musubix tasks list # タスク一覧
249
+ npx musubix tasks stats # タスク統計
250
+
251
+ # ファイルウォッチャー
252
+ npx musubix watch [paths...] [--lint] [--test] [--security] [--ears]
253
+
201
254
  # ヘルプ
202
255
  npx musubix --help
203
256
  npx musubix help <command>
@@ -214,7 +267,7 @@ npx @nahisaho/musubix-mcp-server
214
267
  npx musubix-mcp --transport stdio
215
268
  ```
216
269
 
217
- ### ツール一覧(61ツール)
270
+ ### ツール一覧(107ツール)
218
271
 
219
272
  #### SDD基本ツール(7ツール)
220
273
 
@@ -945,5 +998,5 @@ npx musubix learn best-practices --format markdown
945
998
  ---
946
999
 
947
1000
  **Agent**: GitHub Copilot / Claude
948
- **Last Updated**: 2026-01-11
949
- **Version**: 3.0.0
1001
+ **Last Updated**: 2026-02-08
1002
+ **Version**: 3.8.1