musubix 1.0.8 → 1.0.12
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/AGENTS.md +35 -3
- package/README.ja.md +8 -2
- package/README.md +8 -2
- package/bin/musubix-mcp.js +0 -0
- package/bin/musubix.js +0 -0
- package/docs/API-REFERENCE.md +2 -2
- package/docs/USER-GUIDE.ja.md +132 -6
- package/docs/USER-GUIDE.md +132 -6
- package/package.json +2 -2
- package/steering/tech.ja.md +115 -24
package/AGENTS.md
CHANGED
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
| 項目 | 詳細 |
|
|
10
10
|
|------|------|
|
|
11
|
-
| **バージョン** | 1.0.
|
|
11
|
+
| **バージョン** | 1.0.12 |
|
|
12
12
|
| **言語** | TypeScript |
|
|
13
13
|
| **ランタイム** | Node.js >= 20.0.0 |
|
|
14
14
|
| **パッケージマネージャ** | npm >= 10.0.0 |
|
|
15
15
|
| **ビルドシステム** | モノレポ(npm workspaces) |
|
|
16
16
|
| **テストフレームワーク** | Vitest |
|
|
17
|
+
| **テスト数** | 285 (全合格) |
|
|
17
18
|
|
|
18
19
|
---
|
|
19
20
|
|
|
@@ -44,6 +45,7 @@ packages/core/src/
|
|
|
44
45
|
├── design/ # 設計パターン・C4モデル
|
|
45
46
|
├── error/ # エラーハンドリング
|
|
46
47
|
├── explanation/ # 説明生成・可視化
|
|
48
|
+
├── learning/ # 自己学習システム(NEW!)
|
|
47
49
|
├── requirements/ # 要件分析・分解
|
|
48
50
|
├── traceability/ # トレーサビリティ
|
|
49
51
|
├── types/ # 型定義
|
|
@@ -90,6 +92,17 @@ npx musubix trace validate # リンク検証
|
|
|
90
92
|
npx musubix explain why <id> # 決定理由の説明
|
|
91
93
|
npx musubix explain graph <id> # 推論グラフ生成
|
|
92
94
|
|
|
95
|
+
# 自己学習システム
|
|
96
|
+
npx musubix learn status # 学習状態ダッシュボード
|
|
97
|
+
npx musubix learn feedback <id> # フィードバック記録
|
|
98
|
+
npx musubix learn patterns # パターン一覧表示
|
|
99
|
+
npx musubix learn add-pattern <name> # パターン手動登録
|
|
100
|
+
npx musubix learn remove-pattern <id> # パターン削除
|
|
101
|
+
npx musubix learn recommend # コンテキストベースの推奨
|
|
102
|
+
npx musubix learn decay # 未使用パターンの減衰
|
|
103
|
+
npx musubix learn export # 学習データエクスポート
|
|
104
|
+
npx musubix learn import <file> # 学習データインポート
|
|
105
|
+
|
|
93
106
|
# ヘルプ
|
|
94
107
|
npx musubix --help
|
|
95
108
|
npx musubix help <command>
|
|
@@ -236,11 +249,30 @@ npm run clean
|
|
|
236
249
|
- **Component**: コンテナ内部構造
|
|
237
250
|
- **Code**: 実装詳細
|
|
238
251
|
|
|
252
|
+
**C4コード生成** (v1.0.12 NEW!):
|
|
253
|
+
```bash
|
|
254
|
+
# C4設計ドキュメントからTypeScriptスケルトンコードを自動生成
|
|
255
|
+
npx musubix codegen generate <design.md> --output src/
|
|
256
|
+
```
|
|
257
|
+
- 設計パターン(Repository, Service, Factory等)を自動検出
|
|
258
|
+
- コンポーネントごとにTypeScriptファイル生成
|
|
259
|
+
- 設計との完全なトレーサビリティを維持
|
|
260
|
+
|
|
239
261
|
### 4. 完全なトレーサビリティ
|
|
240
262
|
```
|
|
241
263
|
要件(REQ-*) → 設計(DES-*) → タスク(TSK-*) → コード → テスト
|
|
242
264
|
```
|
|
243
265
|
|
|
266
|
+
### 5. 自己学習システム(REQ-LEARN-001〜006準拠)
|
|
267
|
+
- **フィードバック収集**: accept/reject/modifyの記録と分析
|
|
268
|
+
- **パターン抽出**: 繰り返しパターンの自動検出・登録
|
|
269
|
+
- **適応的推論**: 学習済みパターンに基づく推論調整
|
|
270
|
+
- **プライバシー保護**: 機密情報の自動フィルタリング(ローカルストレージのみ)
|
|
271
|
+
|
|
272
|
+
```
|
|
273
|
+
フィードバック → パターン候補 → 閾値超過 → パターン登録 → 推論に適用
|
|
274
|
+
```
|
|
275
|
+
|
|
244
276
|
---
|
|
245
277
|
|
|
246
278
|
## 📚 ドキュメント
|
|
@@ -281,6 +313,6 @@ npm run clean
|
|
|
281
313
|
---
|
|
282
314
|
|
|
283
315
|
**Agent**: GitHub Copilot / Claude
|
|
284
|
-
**Last Updated**: 2026-01-
|
|
285
|
-
**Version**: 1.0.
|
|
316
|
+
**Last Updated**: 2026-01-05
|
|
317
|
+
**Version**: 1.0.12
|
|
286
318
|
**Repository**: https://github.com/nahisaho/MUSUBIX
|
package/README.ja.md
CHANGED
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
[](https://nodejs.org/)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
[](https://www.typescriptlang.org/)
|
|
9
|
+
[](https://github.com/nahisaho/MUSUBIX)
|
|
9
10
|
|
|
10
11
|
> MUSUBI × YATA 統合による次世代AIコーディングシステム
|
|
12
|
+
>
|
|
13
|
+
> **v1.0.12** - 自己学習システム、C4コード生成、日本語EARSサポート
|
|
11
14
|
|
|
12
15
|
## 概要
|
|
13
16
|
|
|
@@ -23,6 +26,8 @@ MUSUBIXは、**ニューラル(LLM)** と **シンボリック(知識グ
|
|
|
23
26
|
- 💬 **一問一答形式ヒアリング** - 対話的な要件定義サポート
|
|
24
27
|
- 🌐 **多言語対応(i18n)** - 日本語・英語対応
|
|
25
28
|
- 🔒 **セキュリティスキャン** - 脆弱性検出・認証管理
|
|
29
|
+
- 📚 **自己学習システム** - フィードバック収集とパターン抽出による適応的改善
|
|
30
|
+
- 🏗️ **C4コード生成** - C4設計ドキュメントからTypeScriptスケルトン生成
|
|
26
31
|
|
|
27
32
|
## アーキテクチャ
|
|
28
33
|
|
|
@@ -59,6 +64,7 @@ flowchart TB
|
|
|
59
64
|
| `packages/core/design/` | 設計パターン・C4モデル |
|
|
60
65
|
| `packages/core/error/` | エラーハンドリング |
|
|
61
66
|
| `packages/core/explanation/` | 説明生成・可視化 |
|
|
67
|
+
| `packages/core/learning/` | 自己学習・パターン抽出 |
|
|
62
68
|
| `packages/core/requirements/` | 要件分析・分解 |
|
|
63
69
|
| `packages/core/traceability/` | トレーサビリティ |
|
|
64
70
|
| `packages/core/types/` | 型定義 |
|
|
@@ -198,5 +204,5 @@ nahisaho
|
|
|
198
204
|
---
|
|
199
205
|
|
|
200
206
|
**文書ID**: README
|
|
201
|
-
**バージョン**: 1.0.
|
|
202
|
-
**最終更新**: 2026-01-
|
|
207
|
+
**バージョン**: 1.0.12
|
|
208
|
+
**最終更新**: 2026-01-03
|
package/README.md
CHANGED
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
[](https://www.typescriptlang.org/)
|
|
10
|
+
[](https://github.com/nahisaho/MUSUBIX)
|
|
10
11
|
|
|
11
12
|
> Next-generation AI Coding System powered by MUSUBI × YATA Integration
|
|
13
|
+
>
|
|
14
|
+
> **v1.0.12** - Self-learning system, C4 code generation, Japanese EARS support
|
|
12
15
|
|
|
13
16
|
**[日本語版 README](README.ja.md)**
|
|
14
17
|
|
|
@@ -26,6 +29,8 @@ MUSUBIX is an innovative AI coding system that integrates **Neural (LLM)** and *
|
|
|
26
29
|
- 💬 **Interactive Q&A Hearing** - Dialogue-based requirements gathering support
|
|
27
30
|
- 🌐 **Internationalization (i18n)** - Japanese and English support
|
|
28
31
|
- 🔒 **Security Scanning** - Vulnerability detection and authentication management
|
|
32
|
+
- 📚 **Self-Learning System** - Adaptive improvement through feedback collection and pattern extraction
|
|
33
|
+
- 🏗️ **C4 Code Generation** - Generate TypeScript skeleton from C4 design documents
|
|
29
34
|
|
|
30
35
|
## Architecture
|
|
31
36
|
|
|
@@ -62,6 +67,7 @@ flowchart TB
|
|
|
62
67
|
| `packages/core/design/` | Design Patterns & C4 Models |
|
|
63
68
|
| `packages/core/error/` | Error Handling |
|
|
64
69
|
| `packages/core/explanation/` | Explanation Generation & Visualization |
|
|
70
|
+
| `packages/core/learning/` | Self-Learning & Pattern Extraction |
|
|
65
71
|
| `packages/core/requirements/` | Requirements Analysis & Decomposition |
|
|
66
72
|
| `packages/core/traceability/` | Traceability |
|
|
67
73
|
| `packages/core/types/` | Type Definitions |
|
|
@@ -201,5 +207,5 @@ See [CHANGELOG.md](CHANGELOG.md)
|
|
|
201
207
|
---
|
|
202
208
|
|
|
203
209
|
**Document ID**: README
|
|
204
|
-
**Version**: 1.0.
|
|
205
|
-
**Last Updated**: 2026-01-
|
|
210
|
+
**Version**: 1.0.12
|
|
211
|
+
**Last Updated**: 2026-01-03
|
package/bin/musubix-mcp.js
CHANGED
|
File without changes
|
package/bin/musubix.js
CHANGED
|
File without changes
|
package/docs/API-REFERENCE.md
CHANGED
package/docs/USER-GUIDE.ja.md
CHANGED
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
7. [設計フェーズ](#設計フェーズ)
|
|
14
14
|
8. [タスクフェーズ](#タスクフェーズ)
|
|
15
15
|
9. [検証フェーズ](#検証フェーズ)
|
|
16
|
-
10. [
|
|
17
|
-
11. [
|
|
18
|
-
12. [
|
|
19
|
-
13. [
|
|
16
|
+
10. [自己学習システム](#自己学習システム)
|
|
17
|
+
11. [C4コード生成](#c4コード生成)
|
|
18
|
+
12. [MCPサーバー連携](#mcpサーバー連携)
|
|
19
|
+
13. [YATA知識グラフ](#yata知識グラフ)
|
|
20
|
+
14. [ベストプラクティス](#ベストプラクティス)
|
|
21
|
+
15. [トラブルシューティング](#トラブルシューティング)
|
|
20
22
|
|
|
21
23
|
---
|
|
22
24
|
|
|
@@ -507,6 +509,130 @@ console.log(` テスト: ${result.coverage.tests}%`);
|
|
|
507
509
|
|
|
508
510
|
---
|
|
509
511
|
|
|
512
|
+
## 自己学習システム
|
|
513
|
+
|
|
514
|
+
MUSUBIXには、フィードバック収集とパターン抽出により改善を続ける自己学習システムが含まれています。
|
|
515
|
+
|
|
516
|
+
### 学習CLIコマンド
|
|
517
|
+
|
|
518
|
+
```bash
|
|
519
|
+
# 学習状態ダッシュボードを表示
|
|
520
|
+
musubix learn status
|
|
521
|
+
|
|
522
|
+
# 成果物にフィードバックを記録
|
|
523
|
+
musubix learn feedback <artifact-id> --type accept|reject|modify --artifact-type requirement|design|code|test --reason "説明"
|
|
524
|
+
|
|
525
|
+
# 学習済みパターン一覧を表示
|
|
526
|
+
musubix learn patterns
|
|
527
|
+
|
|
528
|
+
# パターンを手動登録
|
|
529
|
+
musubix learn add-pattern <name> --category code|design|requirement|test --action prefer|avoid --description "パターンの説明"
|
|
530
|
+
|
|
531
|
+
# パターンを削除
|
|
532
|
+
musubix learn remove-pattern <pattern-id>
|
|
533
|
+
|
|
534
|
+
# コンテキストベースの推奨を取得
|
|
535
|
+
musubix learn recommend --artifact-type code
|
|
536
|
+
|
|
537
|
+
# 未使用パターンの減衰を適用
|
|
538
|
+
musubix learn decay
|
|
539
|
+
|
|
540
|
+
# 学習データをエクスポート
|
|
541
|
+
musubix learn export --output learning-data.json
|
|
542
|
+
|
|
543
|
+
# 学習データをインポート
|
|
544
|
+
musubix learn import learning-data.json
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
### プログラムからの使用
|
|
548
|
+
|
|
549
|
+
```typescript
|
|
550
|
+
import { createLearningEngine } from '@nahisaho/musubix-core';
|
|
551
|
+
|
|
552
|
+
const learningEngine = createLearningEngine();
|
|
553
|
+
|
|
554
|
+
// フィードバックを記録
|
|
555
|
+
await learningEngine.recordFeedback({
|
|
556
|
+
type: 'accept',
|
|
557
|
+
artifactType: 'code',
|
|
558
|
+
artifactId: 'AUTH-001',
|
|
559
|
+
reason: 'JWT認証の良い実装'
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
// 推奨を取得
|
|
563
|
+
const recommendations = await learningEngine.getRecommendations({
|
|
564
|
+
artifactType: 'code',
|
|
565
|
+
context: 'authentication'
|
|
566
|
+
});
|
|
567
|
+
|
|
568
|
+
// 学習データをエクスポート
|
|
569
|
+
const data = await learningEngine.exportData();
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
### パターン抽出
|
|
573
|
+
|
|
574
|
+
類似のフィードバックが複数回(デフォルト閾値:3回)記録されると、パターンが自動的に抽出されます。
|
|
575
|
+
|
|
576
|
+
```typescript
|
|
577
|
+
// パターンは出現ごとに信頼度が上昇
|
|
578
|
+
// 高信頼度パターン(≥70%)は推奨に表示される
|
|
579
|
+
const stats = await learningEngine.getStats();
|
|
580
|
+
console.log(`総パターン数: ${stats.totalPatterns}`);
|
|
581
|
+
console.log(`高信頼度パターン: ${stats.highConfidencePatterns}`);
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
---
|
|
585
|
+
|
|
586
|
+
## C4コード生成
|
|
587
|
+
|
|
588
|
+
C4設計ドキュメントからTypeScriptスケルトンコードを生成します。
|
|
589
|
+
|
|
590
|
+
### CLIの使用
|
|
591
|
+
|
|
592
|
+
```bash
|
|
593
|
+
# C4設計からコード生成
|
|
594
|
+
musubix codegen generate design-c4.md --output src/
|
|
595
|
+
|
|
596
|
+
# 言語を指定
|
|
597
|
+
musubix codegen generate design-c4.md --output src/ --language typescript
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
### 生成されるコード構造
|
|
601
|
+
|
|
602
|
+
以下のようなコンポーネントを持つC4設計から:
|
|
603
|
+
|
|
604
|
+
| ID | Name | Type | Description |
|
|
605
|
+
|----|------|------|-------------|
|
|
606
|
+
| auth | AuthService | component | 認証 |
|
|
607
|
+
|
|
608
|
+
MUSUBIXは以下を生成します:
|
|
609
|
+
|
|
610
|
+
```typescript
|
|
611
|
+
// auth-service.ts
|
|
612
|
+
export interface IAuthService {
|
|
613
|
+
authenticate(credentials: { username: string; password: string }): Promise<{ token: string }>;
|
|
614
|
+
validate(token: string): Promise<boolean>;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export class AuthService implements IAuthService {
|
|
618
|
+
async authenticate(credentials: { username: string; password: string }): Promise<{ token: string }> {
|
|
619
|
+
// TODO: authenticateを実装
|
|
620
|
+
throw new Error('Not implemented');
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
async validate(token: string): Promise<boolean> {
|
|
624
|
+
// TODO: validateを実装
|
|
625
|
+
throw new Error('Not implemented');
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export function createAuthService(): IAuthService {
|
|
630
|
+
return new AuthService();
|
|
631
|
+
}
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
---
|
|
635
|
+
|
|
510
636
|
## MCPサーバー連携
|
|
511
637
|
|
|
512
638
|
### MCPサーバーの起動
|
|
@@ -819,6 +945,6 @@ const client = createYATAClient({
|
|
|
819
945
|
|
|
820
946
|
---
|
|
821
947
|
|
|
822
|
-
**バージョン**: 1.0.
|
|
823
|
-
**最終更新**: 2026-01-
|
|
948
|
+
**バージョン**: 1.0.12
|
|
949
|
+
**最終更新**: 2026-01-03
|
|
824
950
|
**MUSUBIX Project**
|
package/docs/USER-GUIDE.md
CHANGED
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
3. [CLI Usage](#cli-usage)
|
|
12
12
|
4. [Quick Start](#quick-start)
|
|
13
13
|
5. [SDD Workflow](#sdd-workflow)
|
|
14
|
-
6. [
|
|
15
|
-
7. [
|
|
16
|
-
8. [
|
|
17
|
-
9. [
|
|
14
|
+
6. [Self-Learning System](#self-learning-system)
|
|
15
|
+
7. [C4 Code Generation](#c4-code-generation)
|
|
16
|
+
8. [MCP Server Integration](#mcp-server-integration)
|
|
17
|
+
9. [YATA Integration](#yata-integration)
|
|
18
|
+
10. [Best Practices](#best-practices)
|
|
19
|
+
11. [Troubleshooting](#troubleshooting)
|
|
18
20
|
|
|
19
21
|
---
|
|
20
22
|
|
|
@@ -375,6 +377,130 @@ result.articleResults.forEach(article => {
|
|
|
375
377
|
|
|
376
378
|
---
|
|
377
379
|
|
|
380
|
+
## Self-Learning System
|
|
381
|
+
|
|
382
|
+
MUSUBIX includes a self-learning system that improves through feedback collection and pattern extraction.
|
|
383
|
+
|
|
384
|
+
### Learning CLI Commands
|
|
385
|
+
|
|
386
|
+
```bash
|
|
387
|
+
# View learning status dashboard
|
|
388
|
+
musubix learn status
|
|
389
|
+
|
|
390
|
+
# Record feedback on an artifact
|
|
391
|
+
musubix learn feedback <artifact-id> --type accept|reject|modify --artifact-type requirement|design|code|test --reason "explanation"
|
|
392
|
+
|
|
393
|
+
# List learned patterns
|
|
394
|
+
musubix learn patterns
|
|
395
|
+
|
|
396
|
+
# Manually register a pattern
|
|
397
|
+
musubix learn add-pattern <name> --category code|design|requirement|test --action prefer|avoid --description "pattern description"
|
|
398
|
+
|
|
399
|
+
# Remove a pattern
|
|
400
|
+
musubix learn remove-pattern <pattern-id>
|
|
401
|
+
|
|
402
|
+
# Get context-based recommendations
|
|
403
|
+
musubix learn recommend --artifact-type code
|
|
404
|
+
|
|
405
|
+
# Apply decay to unused patterns
|
|
406
|
+
musubix learn decay
|
|
407
|
+
|
|
408
|
+
# Export learning data
|
|
409
|
+
musubix learn export --output learning-data.json
|
|
410
|
+
|
|
411
|
+
# Import learning data
|
|
412
|
+
musubix learn import learning-data.json
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### Programmatic Usage
|
|
416
|
+
|
|
417
|
+
```typescript
|
|
418
|
+
import { createLearningEngine } from '@nahisaho/musubix-core';
|
|
419
|
+
|
|
420
|
+
const learningEngine = createLearningEngine();
|
|
421
|
+
|
|
422
|
+
// Record feedback
|
|
423
|
+
await learningEngine.recordFeedback({
|
|
424
|
+
type: 'accept',
|
|
425
|
+
artifactType: 'code',
|
|
426
|
+
artifactId: 'AUTH-001',
|
|
427
|
+
reason: 'Good implementation of JWT authentication'
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
// Get recommendations
|
|
431
|
+
const recommendations = await learningEngine.getRecommendations({
|
|
432
|
+
artifactType: 'code',
|
|
433
|
+
context: 'authentication'
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
// Export learning data
|
|
437
|
+
const data = await learningEngine.exportData();
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Pattern Extraction
|
|
441
|
+
|
|
442
|
+
Patterns are automatically extracted when similar feedback is recorded multiple times (default threshold: 3).
|
|
443
|
+
|
|
444
|
+
```typescript
|
|
445
|
+
// Patterns gain confidence with each occurrence
|
|
446
|
+
// High-confidence patterns (≥70%) appear in recommendations
|
|
447
|
+
const stats = await learningEngine.getStats();
|
|
448
|
+
console.log(`Total patterns: ${stats.totalPatterns}`);
|
|
449
|
+
console.log(`High confidence patterns: ${stats.highConfidencePatterns}`);
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
## C4 Code Generation
|
|
455
|
+
|
|
456
|
+
Generate TypeScript skeleton code from C4 design documents.
|
|
457
|
+
|
|
458
|
+
### CLI Usage
|
|
459
|
+
|
|
460
|
+
```bash
|
|
461
|
+
# Generate code from C4 design
|
|
462
|
+
musubix codegen generate design-c4.md --output src/
|
|
463
|
+
|
|
464
|
+
# With specific language
|
|
465
|
+
musubix codegen generate design-c4.md --output src/ --language typescript
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
### Generated Code Structure
|
|
469
|
+
|
|
470
|
+
From a C4 design with components like:
|
|
471
|
+
|
|
472
|
+
| ID | Name | Type | Description |
|
|
473
|
+
|----|------|------|-------------|
|
|
474
|
+
| auth | AuthService | component | Authentication |
|
|
475
|
+
|
|
476
|
+
MUSUBIX generates:
|
|
477
|
+
|
|
478
|
+
```typescript
|
|
479
|
+
// auth-service.ts
|
|
480
|
+
export interface IAuthService {
|
|
481
|
+
authenticate(credentials: { username: string; password: string }): Promise<{ token: string }>;
|
|
482
|
+
validate(token: string): Promise<boolean>;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export class AuthService implements IAuthService {
|
|
486
|
+
async authenticate(credentials: { username: string; password: string }): Promise<{ token: string }> {
|
|
487
|
+
// TODO: Implement authenticate
|
|
488
|
+
throw new Error('Not implemented');
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
async validate(token: string): Promise<boolean> {
|
|
492
|
+
// TODO: Implement validate
|
|
493
|
+
throw new Error('Not implemented');
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export function createAuthService(): IAuthService {
|
|
498
|
+
return new AuthService();
|
|
499
|
+
}
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
---
|
|
503
|
+
|
|
378
504
|
## MCP Server Integration
|
|
379
505
|
|
|
380
506
|
### CLI Startup
|
|
@@ -659,6 +785,6 @@ const client = createYATAClient({
|
|
|
659
785
|
|
|
660
786
|
---
|
|
661
787
|
|
|
662
|
-
**Version**: 1.0.
|
|
663
|
-
**Last Updated**: 2026-01-
|
|
788
|
+
**Version**: 1.0.12
|
|
789
|
+
**Last Updated**: 2026-01-03
|
|
664
790
|
**MUSUBIX Project**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "musubix",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "Neuro-Symbolic AI Coding System - MUSUBI × YATA Integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@modelcontextprotocol/sdk": "1.25.1",
|
|
63
|
-
"@nahisaho/musubix-core": "^1.0.
|
|
63
|
+
"@nahisaho/musubix-core": "^1.0.8",
|
|
64
64
|
"@nahisaho/musubix-mcp-server": "^1.0.2",
|
|
65
65
|
"@nahisaho/musubix-yata-client": "^1.0.2"
|
|
66
66
|
}
|
package/steering/tech.ja.md
CHANGED
|
@@ -1,42 +1,133 @@
|
|
|
1
1
|
# Technology Stack
|
|
2
2
|
|
|
3
3
|
**Project**: MUSUBIX
|
|
4
|
-
**Last Updated**: 2026-01-
|
|
5
|
-
**
|
|
4
|
+
**Last Updated**: 2026-01-03
|
|
5
|
+
**Version**: 1.0.10
|
|
6
|
+
**Status**: Production Ready
|
|
6
7
|
|
|
7
8
|
---
|
|
8
9
|
|
|
9
10
|
## Overview
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
MUSUBIXはニューロシンボリックAIコーディングシステムであり、LLM(Large Language Model)とシンボリック推論(知識グラフ)を統合しています。
|
|
12
13
|
|
|
13
|
-
##
|
|
14
|
+
## Core Technologies
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
| カテゴリ | 技術 | バージョン | 状態 |
|
|
17
|
+
|---------|------|-----------|------|
|
|
18
|
+
| 言語 | TypeScript | 5.3+ | ✅ 採用 |
|
|
19
|
+
| ランタイム | Node.js | 20.0.0+ | ✅ 採用 |
|
|
20
|
+
| パッケージマネージャ | npm | 10.0.0+ | ✅ 採用 |
|
|
21
|
+
| ビルドシステム | tsc | 5.3+ | ✅ 採用 |
|
|
22
|
+
| テストフレームワーク | Vitest | 4.0+ | ✅ 採用 |
|
|
23
|
+
| リンター | ESLint | 9.0+ | ✅ 採用 |
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
2. **Performance Requirements**: What are the performance constraints?
|
|
19
|
-
3. **Team Expertise**: What technologies is the team familiar with?
|
|
20
|
-
4. **Ecosystem**: What libraries and tools are available?
|
|
21
|
-
5. **Long-term Maintainability**: How well-supported is the technology?
|
|
25
|
+
## Architecture
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
### パッケージ構成(モノレポ)
|
|
24
28
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
```
|
|
30
|
+
packages/
|
|
31
|
+
├── core/ # @nahisaho/musubix-core (v1.0.9)
|
|
32
|
+
├── mcp-server/ # @nahisaho/musubix-mcp-server (v1.0.3)
|
|
33
|
+
└── yata-client/ # @nahisaho/musubix-yata-client (v1.0.3)
|
|
34
|
+
```
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
### Core Package モジュール
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
| モジュール | 役割 | 主要機能 |
|
|
39
|
+
|-----------|------|---------|
|
|
40
|
+
| `auth/` | 認証・認可 | JWT/OAuth管理 |
|
|
41
|
+
| `cli/` | CLIインターフェース | コマンドライン処理 |
|
|
42
|
+
| `codegen/` | コード生成・解析 | テンプレート生成、静的解析、セキュリティスキャン |
|
|
43
|
+
| `design/` | 設計 | パターン検出、C4モデル、ADR生成 |
|
|
44
|
+
| `error/` | エラーハンドリング | 構造化エラー、リカバリー |
|
|
45
|
+
| `explanation/` | 説明生成 | 推論グラフ、可視化 |
|
|
46
|
+
| `requirements/` | 要件分析 | EARS検証、オントロジーマッピング |
|
|
47
|
+
| `traceability/` | トレーサビリティ | アーティファクト追跡、カバレッジ分析 |
|
|
48
|
+
| `validators/` | 検証 | EARS検証器 |
|
|
49
|
+
|
|
50
|
+
## Key Features
|
|
51
|
+
|
|
52
|
+
### 1. EARS検証器(Symbolic Reasoning)
|
|
53
|
+
|
|
54
|
+
5つのEARSパターンをサポート:
|
|
55
|
+
|
|
56
|
+
| パターン | 構文 | 信頼度ボーナス |
|
|
57
|
+
|---------|------|---------------|
|
|
58
|
+
| Event-driven | `WHEN <trigger>, THE <system> SHALL <action>` | +0.25 |
|
|
59
|
+
| State-driven | `WHILE <state>, THE <system> SHALL <action>` | +0.25 |
|
|
60
|
+
| Unwanted | `THE <system> SHALL NOT <behavior>` | +0.20 |
|
|
61
|
+
| Optional | `WHERE <feature>, THE <system> SHALL <action>` | +0.20 |
|
|
62
|
+
| Ubiquitous | `THE <system> SHALL <action>` | +0.00 |
|
|
63
|
+
|
|
64
|
+
**最適化機能**:
|
|
65
|
+
- 早期終了(高信頼度≥0.85で即座にマッチ)
|
|
66
|
+
- 事前チェック("shall"キーワードの存在確認)
|
|
67
|
+
|
|
68
|
+
### 2. トレーサビリティ管理
|
|
69
|
+
|
|
70
|
+
**カバレッジ計算(重み付け平均)**:
|
|
71
|
+
- 要件: 30%
|
|
72
|
+
- 設計: 20%
|
|
73
|
+
- コード: 30%
|
|
74
|
+
- テスト: 20%
|
|
75
|
+
|
|
76
|
+
**最適化機能**:
|
|
77
|
+
- リンクインデックス(O(1)検索)
|
|
78
|
+
- アーティファクト型インデックス
|
|
79
|
+
|
|
80
|
+
### 3. アーティファクトステータス
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
type ArtifactStatus =
|
|
84
|
+
| 'draft' // 初期作成状態
|
|
85
|
+
| 'active' // アクティブ開発中
|
|
86
|
+
| 'approved' // レビュー承認済み
|
|
87
|
+
| 'implemented' // コード実装完了
|
|
88
|
+
| 'verified' // テスト・検証完了
|
|
89
|
+
| 'deprecated' // 非推奨
|
|
90
|
+
| 'deleted'; // 削除予定
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 4. ニューロシンボリック統合ルール(REQ-INT-002)
|
|
94
|
+
|
|
95
|
+
| シンボリック結果 | ニューラル信頼度 | 最終決定 |
|
|
96
|
+
|-----------------|-----------------|---------|
|
|
97
|
+
| invalid | - | ニューラル結果を棄却 |
|
|
98
|
+
| valid | ≥0.8 | ニューラル結果を採用 |
|
|
99
|
+
| valid | <0.8 | シンボリック結果を優先 |
|
|
100
|
+
|
|
101
|
+
## Development Commands
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# 依存関係インストール
|
|
105
|
+
npm install
|
|
106
|
+
|
|
107
|
+
# 全パッケージビルド
|
|
108
|
+
npm run build
|
|
109
|
+
|
|
110
|
+
# テスト実行
|
|
111
|
+
npm run test
|
|
112
|
+
|
|
113
|
+
# コード品質
|
|
114
|
+
npm run lint
|
|
115
|
+
npm run typecheck
|
|
116
|
+
|
|
117
|
+
# クリーンアップ
|
|
118
|
+
npm run clean
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Performance Benchmarks
|
|
122
|
+
|
|
123
|
+
| 機能 | 処理速度 | 備考 |
|
|
124
|
+
|------|---------|------|
|
|
125
|
+
| EARS検証(単一要件) | <1ms | 早期終了最適化 |
|
|
126
|
+
| パターンマッチング | <5ms | 信頼度計算含む |
|
|
127
|
+
| トレーサビリティリンク検索 | O(1) | インデックス利用 |
|
|
128
|
+
| C4モデル生成 | <10ms | 11要素、6関係 |
|
|
129
|
+
| 全テスト(262件) | ~750ms | Vitest実行 |
|
|
39
130
|
|
|
40
131
|
---
|
|
41
132
|
|
|
42
|
-
*
|
|
133
|
+
*Last Updated: 2026-01-03 by MUSUBIX v1.0.10*
|