@nahisaho/musubix-core 2.3.7 → 2.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.
package/.github/AGENTS.md CHANGED
@@ -8,7 +8,7 @@ This file defines AI agent configurations for MUSUBIX - Neuro-Symbolic AI Integr
8
8
 
9
9
  ## MCP Server Integration
10
10
 
11
- MUSUBIX provides an MCP Server (`@nahisaho/musubix-mcp-server`) with 9 tools and 3 prompts.
11
+ MUSUBIX provides an MCP Server (`@nahisaho/musubix-mcp-server`) with 10 SDD tools and 3 prompts.
12
12
 
13
13
  ### Starting MCP Server
14
14
 
@@ -17,7 +17,7 @@ npx @nahisaho/musubix-mcp-server
17
17
  npx musubix-mcp --transport stdio
18
18
  ```
19
19
 
20
- ### MCP Tools (9 Tools)
20
+ ### MCP Tools (10 SDD Tools)
21
21
 
22
22
  | Tool Name | Description | Usage |
23
23
  |-----------|-------------|-------|
@@ -27,6 +27,7 @@ npx musubix-mcp --transport stdio
27
27
  | `sdd_validate_design` | Validate design traceability | Design validation |
28
28
  | `sdd_create_tasks` | Generate implementation tasks | Task breakdown |
29
29
  | `sdd_query_knowledge` | Query YATA knowledge graph | Knowledge retrieval |
30
+ | `sdd_ask_knowledge` | **Natural language query to YATA (EN/JA)** | NL Knowledge query (v2.4.1 NEW!) |
30
31
  | `sdd_update_knowledge` | Update knowledge graph | Knowledge management |
31
32
  | `sdd_validate_constitution` | Validate against 9 Constitutional Articles | Compliance check |
32
33
  | `sdd_validate_traceability` | Validate requirement-design-task traceability | Traceability audit |
package/AGENTS.md CHANGED
@@ -8,14 +8,14 @@
8
8
 
9
9
  | 項目 | 詳細 |
10
10
  |------|------|
11
- | **バージョン** | 2.3.6 (Technical Writing Skill) |
11
+ | **バージョン** | 2.4.1 (Claude Code Integration) |
12
12
  | **言語** | TypeScript |
13
13
  | **ランタイム** | Node.js >= 20.0.0 |
14
14
  | **パッケージマネージャ** | npm >= 10.0.0 |
15
15
  | **ビルドシステム** | モノレポ(npm workspaces) |
16
16
  | **テストフレームワーク** | Vitest |
17
- | **テスト数** | 2100+ (全合格) |
18
- | **パッケージ数** | 19 |
17
+ | **テスト数** | 2178+ (全合格) |
18
+ | **パッケージ数** | 22 |
19
19
  | **Agent Skills** | 13 (Claude Code対応) |
20
20
 
21
21
  ---
@@ -43,17 +43,20 @@ packages/
43
43
  ├── lean/ # @nahisaho/musubix-lean (v2.0.0 NEW!)
44
44
  ├── library-learner/# @nahisaho/musubix-library-learner (v2.0.0 NEW!)
45
45
  ├── neural-search/ # @nahisaho/musubix-neural-search (v2.0.0 NEW!)
46
- └── synthesis/ # @nahisaho/musubix-synthesis (v2.0.0 NEW!)
46
+ ├── synthesis/ # @nahisaho/musubix-synthesis (v2.0.0 NEW!)
47
+ ├── agent-orchestrator/ # @nahisaho/musubix-agent-orchestrator (v2.4.0 NEW!)
48
+ ├── workflow-engine/ # @nahisaho/musubix-workflow-engine (v2.4.0 NEW!)
49
+ └── skill-manager/ # @nahisaho/musubix-skill-manager (v2.4.0 NEW!)
47
50
  ```
48
51
 
49
52
  | パッケージ | npm | 役割 |
50
53
  |-----------|-----|------|
51
54
  | `packages/core/` | `@nahisaho/musubix-core` | コアライブラリ - CLI、EARS検証、コード生成、設計パターン |
52
- | `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー - 19ツール、3プロンプト |
55
+ | `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー - 44ツール、5プロンプト |
53
56
  | `packages/security/` | `@nahisaho/musubix-security` | セキュリティ分析 - 脆弱性検出、シークレット検出、テイント解析 |
54
57
  | `packages/formal-verify/` | `@nahisaho/musubix-formal-verify` | 形式検証 - Z3統合、Hoare検証、EARS→SMT変換 |
55
58
  | `packages/yata-client/` | `@nahisaho/musubix-yata-client` | YATAクライアント - 知識グラフ連携 |
56
- | `packages/yata-local/` | `@nahisaho/yata-local` | YATA Local - SQLiteベースローカル知識グラフ |
59
+ | `packages/yata-local/` | `@nahisaho/yata-local` | YATA Local - SQLiteベースローカル知識グラフ、**自然言語クエリ対応** (v2.4.1 NEW!) |
57
60
  | `packages/yata-global/` | `@nahisaho/yata-global` | YATA Global - 分散型知識グラフプラットフォーム |
58
61
  | `packages/yata-ui/` | `@nahisaho/yata-ui` | YATA UI - Web可視化・管理インターフェース |
59
62
  | `packages/yata-scale/` | `@nahisaho/yata-scale` | **YATA Scale** - 分散シャーディング・キャッシュ (v2.0.0 NEW!) |
@@ -66,6 +69,9 @@ packages/
66
69
  | `packages/library-learner/` | `@nahisaho/musubix-library-learner` | **ライブラリ学習** - APIパターン抽出、メトリクスエクスポート (v2.2.0 Enhanced!) |
67
70
  | `packages/neural-search/` | `@nahisaho/musubix-neural-search` | **ニューラル検索** - 意味的コード検索、軌跡ロギング (v2.2.0 Enhanced!) |
68
71
  | `packages/synthesis/` | `@nahisaho/musubix-synthesis` | **プログラム合成** - ニューラル誘導合成、説明生成 (v2.2.0 Enhanced!) |
72
+ | `packages/agent-orchestrator/` | `@nahisaho/musubix-agent-orchestrator` | **エージェント調整** - サブエージェント分散・複雑度分析 (v2.4.0 NEW!) |
73
+ | `packages/workflow-engine/` | `@nahisaho/musubix-workflow-engine` | **ワークフロー制御** - 5フェーズ制御・品質ゲート (v2.4.0 NEW!) |
74
+ | `packages/skill-manager/` | `@nahisaho/musubix-skill-manager` | **スキル管理** - スキル登録・実行・検証 (v2.4.0 NEW!) |
69
75
 
70
76
  ### Core パッケージモジュール
71
77
 
@@ -193,9 +199,9 @@ npx @nahisaho/musubix-mcp-server
193
199
  npx musubix-mcp --transport stdio
194
200
  ```
195
201
 
196
- ### ツール一覧(29ツール)
202
+ ### ツール一覧(44ツール)
197
203
 
198
- #### SDD基本ツール(9ツール)
204
+ #### SDD基本ツール(10ツール)
199
205
 
200
206
  | ツール名 | 説明 |
201
207
  |---------|------|
@@ -205,6 +211,7 @@ npx musubix-mcp --transport stdio
205
211
  | `sdd_validate_design` | 設計の要件トレーサビリティ検証 |
206
212
  | `sdd_create_tasks` | 設計から実装タスク生成 |
207
213
  | `sdd_query_knowledge` | YATA知識グラフへのクエリ |
214
+ | `sdd_ask_knowledge` | **自然言語でYATA知識グラフに質問(日英対応)** (v2.4.1 NEW!) |
208
215
  | `sdd_update_knowledge` | 知識グラフの更新 |
209
216
  | `sdd_validate_constitution` | 9憲法条項への準拠検証 |
210
217
  | `sdd_validate_traceability` | 要件↔設計↔タスクのトレーサビリティ検証 |
@@ -249,6 +256,35 @@ npx musubix-mcp --transport stdio
249
256
  | `synthesis_query_patterns` | パターン検索 |
250
257
  | `synthesis_get_stats` | 統計取得 |
251
258
 
259
+ #### Agent Orchestratorツール(4ツール)- v2.4.0 NEW!
260
+
261
+ | ツール名 | 説明 |
262
+ |---------|------|
263
+ | `agent_analyze_complexity` | タスク複雑度分析・サブエージェント分散判定 |
264
+ | `agent_dispatch` | サブエージェントへのタスクディスパッチ |
265
+ | `agent_collect_results` | サブエージェント結果の収集・統合 |
266
+ | `agent_get_status` | エージェント実行状態の取得 |
267
+
268
+ #### Workflow Engineツール(5ツール)- v2.4.0 NEW!
269
+
270
+ | ツール名 | 説明 |
271
+ |---------|------|
272
+ | `workflow_create` | 新規ワークフロー作成(5フェーズ制御) |
273
+ | `workflow_advance_phase` | 次フェーズへの遷移(品質ゲート検証付き) |
274
+ | `workflow_set_approval` | ユーザー承認状態の設定 |
275
+ | `workflow_get_status` | ワークフロー現在状態の取得 |
276
+ | `workflow_validate_transition` | フェーズ遷移の事前検証 |
277
+
278
+ #### Skill Managerツール(5ツール)- v2.4.0 NEW!
279
+
280
+ | ツール名 | 説明 |
281
+ |---------|------|
282
+ | `skill_register` | 新規スキルの登録 |
283
+ | `skill_execute` | スキルの実行 |
284
+ | `skill_list` | 登録済みスキル一覧の取得 |
285
+ | `skill_get_info` | スキル詳細情報の取得 |
286
+ | `skill_validate` | スキル定義の検証 |
287
+
252
288
  ### プロンプト一覧(5プロンプト)
253
289
 
254
290
  | プロンプト名 | 説明 |
@@ -456,6 +492,38 @@ const summary = explainer.summarize(program);
456
492
  // "Converts to uppercase"
457
493
  ```
458
494
 
495
+ ### 8. 自然言語クエリ(v2.4.1 NEW!)
496
+
497
+ YATA Localで日本語・英語の自然言語によるクエリが可能になりました:
498
+
499
+ ```typescript
500
+ import { createYataLocal } from '@nahisaho/yata-local';
501
+
502
+ const yata = createYataLocal({ path: './knowledge.db' });
503
+ await yata.open();
504
+
505
+ // 日本語でクエリ
506
+ const result1 = await yata.ask('UserServiceを呼び出している関数は?');
507
+
508
+ // 英語でクエリ
509
+ const result2 = await yata.ask('What functions call UserService?');
510
+
511
+ console.log(result1.entities); // マッチしたエンティティ
512
+ console.log(result1.explanation); // 結果の説明
513
+ ```
514
+
515
+ **対応インテント**:
516
+ | インテント | 自然言語例 | 等価API |
517
+ |-----------|-----------|---------|
518
+ | `find_callers` | 「〜を呼び出している関数」 | `getRelationships(id, 'in')` |
519
+ | `find_callees` | 「〜は何を呼び出していますか」 | `getRelationships(id, 'out')` |
520
+ | `find_implementations` | 「〜の実装を表示」 | `getRelationships(id, 'in', {types: ['implements']})` |
521
+ | `find_dependencies` | 「〜の依存関係」 | `traverse(id, ['depends-on'], 'forward')` |
522
+ | `find_entity` | 「〜を探して」 | `search()`, `getEntityByName()` |
523
+ | `find_related` | 「〜に関連するもの」 | `getNeighbors(id, {direction: 'both'})` |
524
+
525
+ **MCPツール**: `sdd_ask_knowledge` で MCP経由でも利用可能
526
+
459
527
  ---
460
528
 
461
529
  ## 📚 学習済みベストプラクティス(v1.1.10 Updated!)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nahisaho/musubix-core",
3
- "version": "2.3.7",
3
+ "version": "2.4.2",
4
4
  "description": "MUSUBIX Core Library - Neuro-Symbolic Integration Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -72,7 +72,7 @@
72
72
  "typecheck": "tsc --noEmit"
73
73
  },
74
74
  "dependencies": {
75
- "@modelcontextprotocol/sdk": "1.25.1",
75
+ "@modelcontextprotocol/sdk": "^1.25.2",
76
76
  "@nahisaho/musubix-codegraph": "*",
77
77
  "@nahisaho/musubix-ontology-mcp": "^2.0.0",
78
78
  "chalk": "^5.3.0",