@nahisaho/musubix-core 1.4.1 → 1.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/AGENTS.md +16 -3
- package/dist/cli/commands/help.d.ts.map +1 -1
- package/dist/cli/commands/help.js +43 -0
- package/dist/cli/commands/help.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +5 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/ontology.d.ts +10 -0
- package/dist/cli/commands/ontology.d.ts.map +1 -0
- package/dist/cli/commands/ontology.js +245 -0
- package/dist/cli/commands/ontology.js.map +1 -0
- package/dist/cli/messages.d.ts +147 -0
- package/dist/cli/messages.d.ts.map +1 -0
- package/dist/cli/messages.js +189 -0
- package/dist/cli/messages.js.map +1 -0
- package/package.json +4 -3
package/AGENTS.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
| **パッケージマネージャ** | npm >= 10.0.0 |
|
|
15
15
|
| **ビルドシステム** | モノレポ(npm workspaces) |
|
|
16
16
|
| **テストフレームワーク** | Vitest |
|
|
17
|
-
| **テスト数** |
|
|
17
|
+
| **テスト数** | 800 (全合格) |
|
|
18
18
|
| **コンポーネント数** | 243 (62ドメイン対応) |
|
|
19
19
|
| **Agent Skills** | 12 (Claude Code対応) |
|
|
20
20
|
|
|
@@ -38,7 +38,7 @@ packages/
|
|
|
38
38
|
| パッケージ | npm | 役割 |
|
|
39
39
|
|-----------|-----|------|
|
|
40
40
|
| `packages/core/` | `@nahisaho/musubix-core` | コアライブラリ - CLI、EARS検証、コード生成、設計パターン |
|
|
41
|
-
| `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー -
|
|
41
|
+
| `packages/mcp-server/` | `@nahisaho/musubix-mcp-server` | MCPサーバー - 19ツール、3プロンプト |
|
|
42
42
|
| `packages/yata-client/` | `@nahisaho/musubix-yata-client` | YATAクライアント - 知識グラフ連携 |
|
|
43
43
|
| `packages/pattern-mcp/` | `@nahisaho/musubix-pattern-mcp` | パターン学習 - 抽出・圧縮・ライブラリ |
|
|
44
44
|
| `packages/ontology-mcp/` | `@nahisaho/musubix-ontology-mcp` | オントロジー - N3Store・推論エンジン |
|
|
@@ -116,6 +116,11 @@ npx musubix learn export # 学習データエクスポート
|
|
|
116
116
|
npx musubix learn import <file> # 学習データインポート
|
|
117
117
|
# オプション: --merge-strategy <skip|overwrite|merge>, --dry-run, --patterns-only, --feedback-only
|
|
118
118
|
|
|
119
|
+
# オントロジー操作 (v1.4.1 NEW!)
|
|
120
|
+
npx musubix ontology validate -f <file> # 知識グラフ整合性検証
|
|
121
|
+
npx musubix ontology check-circular -f <file> # 循環依存チェック
|
|
122
|
+
npx musubix ontology stats -f <file> # 統計表示
|
|
123
|
+
|
|
119
124
|
# ヘルプ
|
|
120
125
|
npx musubix --help
|
|
121
126
|
npx musubix help <command>
|
|
@@ -132,7 +137,7 @@ npx @nahisaho/musubix-mcp-server
|
|
|
132
137
|
npx musubix-mcp --transport stdio
|
|
133
138
|
```
|
|
134
139
|
|
|
135
|
-
### ツール一覧(
|
|
140
|
+
### ツール一覧(19ツール)
|
|
136
141
|
|
|
137
142
|
#### SDD基本ツール(9ツール)
|
|
138
143
|
|
|
@@ -160,6 +165,14 @@ npx musubix-mcp --transport stdio
|
|
|
160
165
|
| `ontology_query` | オントロジーグラフへのクエリ |
|
|
161
166
|
| `ontology_infer` | オントロジーによる推論実行 |
|
|
162
167
|
|
|
168
|
+
#### オントロジー検証ツール(3ツール)- v1.4.1 NEW!
|
|
169
|
+
|
|
170
|
+
| ツール名 | 説明 |
|
|
171
|
+
|---------|------|
|
|
172
|
+
| `consistency_validate` | 知識グラフの整合性検証 |
|
|
173
|
+
| `validate_triple` | 単一トリプルの事前検証 |
|
|
174
|
+
| `check_circular` | 循環依存の検出 |
|
|
175
|
+
|
|
163
176
|
### プロンプト一覧(3プロンプト)
|
|
164
177
|
|
|
165
178
|
| プロンプト名 | 説明 |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyKzC;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAY1D"}
|
|
@@ -122,6 +122,47 @@ const COMMAND_HELP = {
|
|
|
122
122
|
'graph <id> Generate reasoning graph',
|
|
123
123
|
],
|
|
124
124
|
},
|
|
125
|
+
learn: {
|
|
126
|
+
name: 'learn',
|
|
127
|
+
description: 'Manage self-learning system for pattern recognition',
|
|
128
|
+
usage: 'musubix learn <subcommand> [options]',
|
|
129
|
+
examples: [
|
|
130
|
+
'musubix learn status # Show learning dashboard',
|
|
131
|
+
'musubix learn patterns # List learned patterns',
|
|
132
|
+
'musubix learn best-practices # Show best practices',
|
|
133
|
+
'musubix learn export --output p.json --privacy-filter',
|
|
134
|
+
'musubix learn import data.json --merge-strategy merge',
|
|
135
|
+
],
|
|
136
|
+
options: [
|
|
137
|
+
'status Show learning status dashboard',
|
|
138
|
+
'patterns List learned patterns',
|
|
139
|
+
'best-practices Show best practices',
|
|
140
|
+
'feedback <id> Record feedback',
|
|
141
|
+
'add-pattern <name> Add pattern manually',
|
|
142
|
+
'remove-pattern <id> Remove pattern',
|
|
143
|
+
'recommend Get recommendations',
|
|
144
|
+
'decay Decay unused patterns',
|
|
145
|
+
'export Export learning data',
|
|
146
|
+
'import <file> Import learning data',
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
ontology: {
|
|
150
|
+
name: 'ontology',
|
|
151
|
+
description: 'Knowledge graph operations and validation',
|
|
152
|
+
usage: 'musubix ontology <subcommand> [options]',
|
|
153
|
+
examples: [
|
|
154
|
+
'musubix ontology validate -f triples.json',
|
|
155
|
+
'musubix ontology check-circular -f deps.json',
|
|
156
|
+
'musubix ontology stats -f graph.json --json',
|
|
157
|
+
],
|
|
158
|
+
options: [
|
|
159
|
+
'validate Validate knowledge graph consistency',
|
|
160
|
+
'check-circular Check for circular dependencies',
|
|
161
|
+
'stats Show knowledge graph statistics',
|
|
162
|
+
'-f, --file <path> JSON file with triples',
|
|
163
|
+
'--json Output as JSON',
|
|
164
|
+
],
|
|
165
|
+
},
|
|
125
166
|
};
|
|
126
167
|
/**
|
|
127
168
|
* Register help command
|
|
@@ -190,6 +231,8 @@ ${bold('Commands:')}
|
|
|
190
231
|
test Generate tests and measure coverage
|
|
191
232
|
trace Manage traceability between artifacts
|
|
192
233
|
explain Generate explanations for decisions
|
|
234
|
+
learn Manage self-learning system
|
|
235
|
+
ontology Knowledge graph operations
|
|
193
236
|
help Display help for a specific command
|
|
194
237
|
|
|
195
238
|
${bold('Global Options:')}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../../../src/cli/commands/help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAazC;;GAEG;AACH,MAAM,YAAY,GAAgC;IAChD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,4EAA4E;QACzF,KAAK,EAAE,+BAA+B;QACtC,QAAQ,EAAE;YACR,mEAAmE;YACnE,sEAAsE;YACtE,+DAA+D;YAC/D,oEAAoE;SACrE;QACD,OAAO,EAAE;YACP,qCAAqC;YACrC,4DAA4D;YAC5D,iDAAiD;SAClD;KACF;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,cAAc;Q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,CAAC;;;EAGd,IAAI,CAAC,WAAW,CAAC;;;;;;;;;;;;EAYjB,IAAI,CAAC,iBAAiB,CAAC;;;;;;;;EAQvB,IAAI,CAAC,WAAW,CAAC;;;;;;EAMjB,IAAI,CAAC,gBAAgB,CAAC;;;EAGtB,IAAI,CAAC,0BAA0B,CAAC;;;CAGjC,CAAC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,IAAI,CAAC,IAAY;IACxB,OAAO,UAAU,IAAI,SAAS,CAAC;AACjC,CAAC;AAED;;GAEG;AACH,SAAS,GAAG,CAAC,IAAY;IACvB,OAAO,UAAU,IAAI,SAAS,CAAC;AACjC,CAAC"}
|
|
@@ -25,4 +25,5 @@ export { registerTestCommand } from './test.js';
|
|
|
25
25
|
export { registerTraceCommand } from './trace.js';
|
|
26
26
|
export { registerExplainCommand } from './explain.js';
|
|
27
27
|
export { registerLearnCommand } from './learn.js';
|
|
28
|
+
export { registerOntologyCommand } from './ontology.js';
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAazC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmBvD;AAGD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -18,6 +18,7 @@ import { registerTestCommand } from './test.js';
|
|
|
18
18
|
import { registerTraceCommand } from './trace.js';
|
|
19
19
|
import { registerExplainCommand } from './explain.js';
|
|
20
20
|
import { registerLearnCommand } from './learn.js';
|
|
21
|
+
import { registerOntologyCommand } from './ontology.js';
|
|
21
22
|
/**
|
|
22
23
|
* Register all CLI commands
|
|
23
24
|
*
|
|
@@ -37,6 +38,8 @@ export function registerCommands(program) {
|
|
|
37
38
|
registerExplainCommand(program);
|
|
38
39
|
// Self-learning commands (REQ-LEARN-001〜006)
|
|
39
40
|
registerLearnCommand(program);
|
|
41
|
+
// Ontology commands (REQ-INT-003)
|
|
42
|
+
registerOntologyCommand(program);
|
|
40
43
|
}
|
|
41
44
|
// Core command exports
|
|
42
45
|
export { registerInitCommand } from './init.js';
|
|
@@ -51,4 +54,6 @@ export { registerTraceCommand } from './trace.js';
|
|
|
51
54
|
export { registerExplainCommand } from './explain.js';
|
|
52
55
|
// Self-learning command export
|
|
53
56
|
export { registerLearnCommand } from './learn.js';
|
|
57
|
+
// Ontology command export
|
|
58
|
+
export { registerOntologyCommand } from './ontology.js';
|
|
54
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"A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REQ-INT-003
|
|
4
|
+
*/
|
|
5
|
+
import type { Command } from 'commander';
|
|
6
|
+
/**
|
|
7
|
+
* Register ontology command with Commander
|
|
8
|
+
*/
|
|
9
|
+
export declare function registerOntologyCommand(program: Command): void;
|
|
10
|
+
//# sourceMappingURL=ontology.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/ontology.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsOzC;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsC9D"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview CLI commands for ontology operations
|
|
3
|
+
* @traceability REQ-INT-003
|
|
4
|
+
*/
|
|
5
|
+
import { ConsistencyValidator, N3Store } from '@nahisaho/musubix-ontology-mcp';
|
|
6
|
+
import * as fs from 'fs';
|
|
7
|
+
import * as path from 'path';
|
|
8
|
+
/**
|
|
9
|
+
* Parse JSON file with triples
|
|
10
|
+
*/
|
|
11
|
+
function parseTripleFile(filePath) {
|
|
12
|
+
const absolutePath = path.resolve(filePath);
|
|
13
|
+
if (!fs.existsSync(absolutePath)) {
|
|
14
|
+
throw new Error(`File not found: ${absolutePath}`);
|
|
15
|
+
}
|
|
16
|
+
const content = fs.readFileSync(absolutePath, 'utf-8');
|
|
17
|
+
const data = JSON.parse(content);
|
|
18
|
+
if (Array.isArray(data)) {
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
if (data.triples && Array.isArray(data.triples)) {
|
|
22
|
+
return data.triples;
|
|
23
|
+
}
|
|
24
|
+
throw new Error('Invalid file format. Expected array of triples or object with "triples" array.');
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Ontology subcommand handlers
|
|
28
|
+
*/
|
|
29
|
+
const handlers = {
|
|
30
|
+
validate: async (options) => {
|
|
31
|
+
try {
|
|
32
|
+
const validator = new ConsistencyValidator();
|
|
33
|
+
const store = new N3Store();
|
|
34
|
+
let triples = [];
|
|
35
|
+
// Load from file or use single triple
|
|
36
|
+
if (options.file) {
|
|
37
|
+
triples = parseTripleFile(options.file);
|
|
38
|
+
console.log(`Loaded ${triples.length} triples from ${options.file}`);
|
|
39
|
+
}
|
|
40
|
+
else if (options.subject && options.predicate && options.object) {
|
|
41
|
+
triples = [{
|
|
42
|
+
subject: options.subject,
|
|
43
|
+
predicate: options.predicate,
|
|
44
|
+
object: options.object,
|
|
45
|
+
}];
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
console.error('Error: Provide either --file or --subject, --predicate, --object');
|
|
49
|
+
process.exit(1);
|
|
50
|
+
}
|
|
51
|
+
// Add triples to store for validation
|
|
52
|
+
for (const t of triples) {
|
|
53
|
+
store.addTriple(t);
|
|
54
|
+
}
|
|
55
|
+
// Run validation
|
|
56
|
+
const result = validator.validate(store);
|
|
57
|
+
if (options.json) {
|
|
58
|
+
console.log(JSON.stringify(result, null, 2));
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
console.log('\n╔════════════════════════════════════════╗');
|
|
62
|
+
console.log('║ Ontology Consistency Validation ║');
|
|
63
|
+
console.log('╚════════════════════════════════════════╝\n');
|
|
64
|
+
console.log(`Status: ${result.consistent ? '✅ VALID' : '❌ INVALID'}`);
|
|
65
|
+
console.log(`Total triples: ${triples.length}`);
|
|
66
|
+
console.log(`Errors: ${result.violations.filter((v) => v.severity === 'error').length}`);
|
|
67
|
+
console.log(`Warnings: ${result.violations.filter((v) => v.severity === 'warning').length}`);
|
|
68
|
+
if (result.violations.length > 0) {
|
|
69
|
+
console.log('\nViolations:');
|
|
70
|
+
for (const v of result.violations) {
|
|
71
|
+
const icon = v.severity === 'error' ? '❌' : v.severity === 'warning' ? '⚠️' : 'ℹ️';
|
|
72
|
+
console.log(` ${icon} [${v.type}] ${v.message}`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// Show suggestions if available
|
|
76
|
+
if (result.suggestions && result.suggestions.length > 0) {
|
|
77
|
+
console.log('\nSuggestions:');
|
|
78
|
+
for (const s of result.suggestions) {
|
|
79
|
+
console.log(` 💡 ${s.suggestion}`);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
process.exit(result.consistent ? 0 : 1);
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
console.error(`Error: ${error instanceof Error ? error.message : error}`);
|
|
87
|
+
process.exit(1);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
checkCircular: async (options) => {
|
|
91
|
+
try {
|
|
92
|
+
if (!options.file) {
|
|
93
|
+
console.error('Error: --file is required');
|
|
94
|
+
process.exit(1);
|
|
95
|
+
}
|
|
96
|
+
const relationships = parseTripleFile(options.file);
|
|
97
|
+
// Build graph and detect cycles
|
|
98
|
+
const graph = new Map();
|
|
99
|
+
for (const r of relationships) {
|
|
100
|
+
if (!graph.has(r.subject)) {
|
|
101
|
+
graph.set(r.subject, []);
|
|
102
|
+
}
|
|
103
|
+
graph.get(r.subject).push(r.object);
|
|
104
|
+
}
|
|
105
|
+
// DFS cycle detection
|
|
106
|
+
const cycles = [];
|
|
107
|
+
const visited = new Set();
|
|
108
|
+
const inStack = new Set();
|
|
109
|
+
function dfs(node, path) {
|
|
110
|
+
visited.add(node);
|
|
111
|
+
inStack.add(node);
|
|
112
|
+
const neighbors = graph.get(node) || [];
|
|
113
|
+
for (const neighbor of neighbors) {
|
|
114
|
+
if (!visited.has(neighbor)) {
|
|
115
|
+
dfs(neighbor, [...path, node]);
|
|
116
|
+
}
|
|
117
|
+
else if (inStack.has(neighbor)) {
|
|
118
|
+
cycles.push([...path, node, neighbor]);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
inStack.delete(node);
|
|
122
|
+
}
|
|
123
|
+
for (const node of graph.keys()) {
|
|
124
|
+
if (!visited.has(node)) {
|
|
125
|
+
dfs(node, []);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (options.json) {
|
|
129
|
+
console.log(JSON.stringify({ hasCycles: cycles.length > 0, cycles }, null, 2));
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
console.log('\n╔════════════════════════════════════════╗');
|
|
133
|
+
console.log('║ Circular Dependency Check ║');
|
|
134
|
+
console.log('╚════════════════════════════════════════╝\n');
|
|
135
|
+
if (cycles.length === 0) {
|
|
136
|
+
console.log('✅ No circular dependencies detected.');
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
console.log(`❌ Found ${cycles.length} cycle(s):\n`);
|
|
140
|
+
for (let i = 0; i < cycles.length; i++) {
|
|
141
|
+
console.log(` Cycle ${i + 1}: ${cycles[i].join(' → ')}`);
|
|
142
|
+
}
|
|
143
|
+
console.log('\n💡 Remove one relationship from each cycle to break the dependency.');
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
process.exit(cycles.length === 0 ? 0 : 1);
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
console.error(`Error: ${error instanceof Error ? error.message : error}`);
|
|
150
|
+
process.exit(1);
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
stats: async (options) => {
|
|
154
|
+
try {
|
|
155
|
+
if (!options.file) {
|
|
156
|
+
console.error('Error: --file is required');
|
|
157
|
+
process.exit(1);
|
|
158
|
+
}
|
|
159
|
+
const triples = parseTripleFile(options.file);
|
|
160
|
+
// Calculate statistics
|
|
161
|
+
const subjects = new Set(triples.map(t => t.subject));
|
|
162
|
+
const predicates = new Set(triples.map(t => t.predicate));
|
|
163
|
+
const objects = new Set(triples.map(t => t.object));
|
|
164
|
+
const entities = new Set([...subjects, ...objects]);
|
|
165
|
+
// Predicate frequency
|
|
166
|
+
const predicateCount = new Map();
|
|
167
|
+
for (const t of triples) {
|
|
168
|
+
predicateCount.set(t.predicate, (predicateCount.get(t.predicate) || 0) + 1);
|
|
169
|
+
}
|
|
170
|
+
const stats = {
|
|
171
|
+
totalTriples: triples.length,
|
|
172
|
+
uniqueSubjects: subjects.size,
|
|
173
|
+
uniquePredicates: predicates.size,
|
|
174
|
+
uniqueObjects: objects.size,
|
|
175
|
+
uniqueEntities: entities.size,
|
|
176
|
+
predicateDistribution: Object.fromEntries([...predicateCount.entries()].sort((a, b) => b[1] - a[1])),
|
|
177
|
+
};
|
|
178
|
+
if (options.json) {
|
|
179
|
+
console.log(JSON.stringify(stats, null, 2));
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
console.log('\n╔════════════════════════════════════════╗');
|
|
183
|
+
console.log('║ Knowledge Graph Statistics ║');
|
|
184
|
+
console.log('╚════════════════════════════════════════╝\n');
|
|
185
|
+
console.log(`📊 Total Triples: ${stats.totalTriples}`);
|
|
186
|
+
console.log(`👤 Unique Subjects: ${stats.uniqueSubjects}`);
|
|
187
|
+
console.log(`🔗 Unique Predicates: ${stats.uniquePredicates}`);
|
|
188
|
+
console.log(`📦 Unique Objects: ${stats.uniqueObjects}`);
|
|
189
|
+
console.log(`🔢 Unique Entities: ${stats.uniqueEntities}`);
|
|
190
|
+
console.log('\n📈 Predicate Distribution:');
|
|
191
|
+
const topPredicates = [...predicateCount.entries()]
|
|
192
|
+
.sort((a, b) => b[1] - a[1])
|
|
193
|
+
.slice(0, 10);
|
|
194
|
+
for (const [pred, count] of topPredicates) {
|
|
195
|
+
const bar = '█'.repeat(Math.min(20, Math.round(count / stats.totalTriples * 50)));
|
|
196
|
+
console.log(` ${pred.padEnd(30)} ${count.toString().padStart(5)} ${bar}`);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
catch (error) {
|
|
201
|
+
console.error(`Error: ${error instanceof Error ? error.message : error}`);
|
|
202
|
+
process.exit(1);
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Register ontology command with Commander
|
|
208
|
+
*/
|
|
209
|
+
export function registerOntologyCommand(program) {
|
|
210
|
+
const ontology = program
|
|
211
|
+
.command('ontology')
|
|
212
|
+
.description('Ontology operations - knowledge graph management and validation');
|
|
213
|
+
// validate subcommand
|
|
214
|
+
ontology
|
|
215
|
+
.command('validate')
|
|
216
|
+
.description('Validate knowledge graph consistency')
|
|
217
|
+
.option('-f, --file <path>', 'JSON file with triples to validate')
|
|
218
|
+
.option('-s, --subject <value>', 'Subject for single triple validation')
|
|
219
|
+
.option('-p, --predicate <value>', 'Predicate for single triple validation')
|
|
220
|
+
.option('-o, --object <value>', 'Object for single triple validation')
|
|
221
|
+
.option('-c, --checks <types>', 'Comma-separated check types')
|
|
222
|
+
.option('--json', 'Output as JSON')
|
|
223
|
+
.action(async (options) => {
|
|
224
|
+
await handlers.validate(options);
|
|
225
|
+
});
|
|
226
|
+
// check-circular subcommand
|
|
227
|
+
ontology
|
|
228
|
+
.command('check-circular')
|
|
229
|
+
.description('Check for circular dependencies')
|
|
230
|
+
.option('-f, --file <path>', 'JSON file with relationships')
|
|
231
|
+
.option('--json', 'Output as JSON')
|
|
232
|
+
.action(async (options) => {
|
|
233
|
+
await handlers.checkCircular(options);
|
|
234
|
+
});
|
|
235
|
+
// stats subcommand
|
|
236
|
+
ontology
|
|
237
|
+
.command('stats')
|
|
238
|
+
.description('Show knowledge graph statistics')
|
|
239
|
+
.option('-f, --file <path>', 'JSON file with triples')
|
|
240
|
+
.option('--json', 'Output as JSON')
|
|
241
|
+
.action(async (options) => {
|
|
242
|
+
await handlers.stats(options);
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=ontology.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ontology.js","sourceRoot":"","sources":["../../../src/cli/commands/ontology.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,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CAAC,CAAC;IAEL,mBAAmB;IACnB,QAAQ;SACL,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,iCAAiC,CAAC;SAC9C,MAAM,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;SACrD,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC;SAClC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACxB,MAAM,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview CLI Error Messages - Japanese translations
|
|
3
|
+
* @traceability REQ-I18N-001
|
|
4
|
+
*/
|
|
5
|
+
export declare const CLI_MESSAGES: {
|
|
6
|
+
en: {
|
|
7
|
+
welcome: string;
|
|
8
|
+
version: string;
|
|
9
|
+
error: {
|
|
10
|
+
fileNotFound: string;
|
|
11
|
+
invalidFormat: string;
|
|
12
|
+
missingArgument: string;
|
|
13
|
+
invalidOption: string;
|
|
14
|
+
parseError: string;
|
|
15
|
+
validationFailed: string;
|
|
16
|
+
connectionFailed: string;
|
|
17
|
+
timeout: string;
|
|
18
|
+
permissionDenied: string;
|
|
19
|
+
unknownCommand: string;
|
|
20
|
+
};
|
|
21
|
+
success: {
|
|
22
|
+
initialized: string;
|
|
23
|
+
validated: string;
|
|
24
|
+
generated: string;
|
|
25
|
+
exported: string;
|
|
26
|
+
imported: string;
|
|
27
|
+
saved: string;
|
|
28
|
+
};
|
|
29
|
+
commands: {
|
|
30
|
+
init: {
|
|
31
|
+
description: string;
|
|
32
|
+
creating: string;
|
|
33
|
+
done: string;
|
|
34
|
+
};
|
|
35
|
+
requirements: {
|
|
36
|
+
description: string;
|
|
37
|
+
analyzing: string;
|
|
38
|
+
validating: string;
|
|
39
|
+
found: string;
|
|
40
|
+
};
|
|
41
|
+
design: {
|
|
42
|
+
description: string;
|
|
43
|
+
generating: string;
|
|
44
|
+
patterns: string;
|
|
45
|
+
};
|
|
46
|
+
learn: {
|
|
47
|
+
description: string;
|
|
48
|
+
status: string;
|
|
49
|
+
patterns: string;
|
|
50
|
+
exporting: string;
|
|
51
|
+
importing: string;
|
|
52
|
+
};
|
|
53
|
+
ontology: {
|
|
54
|
+
description: string;
|
|
55
|
+
validating: string;
|
|
56
|
+
checking: string;
|
|
57
|
+
stats: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
labels: {
|
|
61
|
+
total: string;
|
|
62
|
+
passed: string;
|
|
63
|
+
failed: string;
|
|
64
|
+
warnings: string;
|
|
65
|
+
errors: string;
|
|
66
|
+
confidence: string;
|
|
67
|
+
traceability: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
ja: {
|
|
71
|
+
welcome: string;
|
|
72
|
+
version: string;
|
|
73
|
+
error: {
|
|
74
|
+
fileNotFound: string;
|
|
75
|
+
invalidFormat: string;
|
|
76
|
+
missingArgument: string;
|
|
77
|
+
invalidOption: string;
|
|
78
|
+
parseError: string;
|
|
79
|
+
validationFailed: string;
|
|
80
|
+
connectionFailed: string;
|
|
81
|
+
timeout: string;
|
|
82
|
+
permissionDenied: string;
|
|
83
|
+
unknownCommand: string;
|
|
84
|
+
};
|
|
85
|
+
success: {
|
|
86
|
+
initialized: string;
|
|
87
|
+
validated: string;
|
|
88
|
+
generated: string;
|
|
89
|
+
exported: string;
|
|
90
|
+
imported: string;
|
|
91
|
+
saved: string;
|
|
92
|
+
};
|
|
93
|
+
commands: {
|
|
94
|
+
init: {
|
|
95
|
+
description: string;
|
|
96
|
+
creating: string;
|
|
97
|
+
done: string;
|
|
98
|
+
};
|
|
99
|
+
requirements: {
|
|
100
|
+
description: string;
|
|
101
|
+
analyzing: string;
|
|
102
|
+
validating: string;
|
|
103
|
+
found: string;
|
|
104
|
+
};
|
|
105
|
+
design: {
|
|
106
|
+
description: string;
|
|
107
|
+
generating: string;
|
|
108
|
+
patterns: string;
|
|
109
|
+
};
|
|
110
|
+
learn: {
|
|
111
|
+
description: string;
|
|
112
|
+
status: string;
|
|
113
|
+
patterns: string;
|
|
114
|
+
exporting: string;
|
|
115
|
+
importing: string;
|
|
116
|
+
};
|
|
117
|
+
ontology: {
|
|
118
|
+
description: string;
|
|
119
|
+
validating: string;
|
|
120
|
+
checking: string;
|
|
121
|
+
stats: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
labels: {
|
|
125
|
+
total: string;
|
|
126
|
+
passed: string;
|
|
127
|
+
failed: string;
|
|
128
|
+
warnings: string;
|
|
129
|
+
errors: string;
|
|
130
|
+
confidence: string;
|
|
131
|
+
traceability: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Get message for current locale
|
|
137
|
+
*/
|
|
138
|
+
export declare function getMessage(key: string, locale?: 'en' | 'ja', params?: Record<string, string | number>): string;
|
|
139
|
+
/**
|
|
140
|
+
* Detect system locale
|
|
141
|
+
*/
|
|
142
|
+
export declare function detectLocale(): 'en' | 'ja';
|
|
143
|
+
/**
|
|
144
|
+
* CLI message helper with auto-detection
|
|
145
|
+
*/
|
|
146
|
+
export declare function t(key: string, params?: Record<string, string | number>): string;
|
|
147
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/cli/messages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJxB,CAAC;AAEF;;GAEG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,IAAI,GAAG,IAAW,EAC1B,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,GAC3C,MAAM,CA4BR;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,GAAG,IAAI,CAM1C;AAED;;GAEG;AACH,wBAAgB,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,GAAG,MAAM,CAEnF"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview CLI Error Messages - Japanese translations
|
|
3
|
+
* @traceability REQ-I18N-001
|
|
4
|
+
*/
|
|
5
|
+
export const CLI_MESSAGES = {
|
|
6
|
+
en: {
|
|
7
|
+
// General
|
|
8
|
+
welcome: 'Welcome to MUSUBIX - Neuro-Symbolic AI Coding System',
|
|
9
|
+
version: 'Version',
|
|
10
|
+
// Errors
|
|
11
|
+
error: {
|
|
12
|
+
fileNotFound: 'File not found: {path}',
|
|
13
|
+
invalidFormat: 'Invalid format: {format}. Expected: {expected}',
|
|
14
|
+
missingArgument: 'Missing required argument: {arg}',
|
|
15
|
+
invalidOption: 'Invalid option: {option}',
|
|
16
|
+
parseError: 'Failed to parse file: {file}',
|
|
17
|
+
validationFailed: 'Validation failed: {count} error(s) found',
|
|
18
|
+
connectionFailed: 'Connection failed: {target}',
|
|
19
|
+
timeout: 'Operation timed out after {seconds} seconds',
|
|
20
|
+
permissionDenied: 'Permission denied: {path}',
|
|
21
|
+
unknownCommand: 'Unknown command: {command}',
|
|
22
|
+
},
|
|
23
|
+
// Success messages
|
|
24
|
+
success: {
|
|
25
|
+
initialized: 'Project initialized successfully',
|
|
26
|
+
validated: 'Validation passed',
|
|
27
|
+
generated: 'Generated {count} file(s)',
|
|
28
|
+
exported: 'Exported to {path}',
|
|
29
|
+
imported: 'Imported {count} item(s)',
|
|
30
|
+
saved: 'Saved successfully',
|
|
31
|
+
},
|
|
32
|
+
// Commands
|
|
33
|
+
commands: {
|
|
34
|
+
init: {
|
|
35
|
+
description: 'Initialize a new MUSUBIX project',
|
|
36
|
+
creating: 'Creating project structure...',
|
|
37
|
+
done: 'Project initialized in {path}',
|
|
38
|
+
},
|
|
39
|
+
requirements: {
|
|
40
|
+
description: 'Analyze and validate requirements',
|
|
41
|
+
analyzing: 'Analyzing requirements...',
|
|
42
|
+
validating: 'Validating EARS format...',
|
|
43
|
+
found: 'Found {count} requirement(s)',
|
|
44
|
+
},
|
|
45
|
+
design: {
|
|
46
|
+
description: 'Generate and validate designs',
|
|
47
|
+
generating: 'Generating design...',
|
|
48
|
+
patterns: 'Detecting patterns...',
|
|
49
|
+
},
|
|
50
|
+
learn: {
|
|
51
|
+
description: 'Manage self-learning system',
|
|
52
|
+
status: 'Learning Status',
|
|
53
|
+
patterns: 'Learned Patterns',
|
|
54
|
+
exporting: 'Exporting learning data...',
|
|
55
|
+
importing: 'Importing learning data...',
|
|
56
|
+
},
|
|
57
|
+
ontology: {
|
|
58
|
+
description: 'Knowledge graph operations',
|
|
59
|
+
validating: 'Validating knowledge graph...',
|
|
60
|
+
checking: 'Checking for circular dependencies...',
|
|
61
|
+
stats: 'Knowledge Graph Statistics',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
// Labels
|
|
65
|
+
labels: {
|
|
66
|
+
total: 'Total',
|
|
67
|
+
passed: 'Passed',
|
|
68
|
+
failed: 'Failed',
|
|
69
|
+
warnings: 'Warnings',
|
|
70
|
+
errors: 'Errors',
|
|
71
|
+
confidence: 'Confidence',
|
|
72
|
+
traceability: 'Traceability',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
ja: {
|
|
76
|
+
// 一般
|
|
77
|
+
welcome: 'MUSUBIX へようこそ - ニューロシンボリックAIコーディングシステム',
|
|
78
|
+
version: 'バージョン',
|
|
79
|
+
// エラー
|
|
80
|
+
error: {
|
|
81
|
+
fileNotFound: 'ファイルが見つかりません: {path}',
|
|
82
|
+
invalidFormat: '無効なフォーマット: {format}。期待値: {expected}',
|
|
83
|
+
missingArgument: '必須引数が不足しています: {arg}',
|
|
84
|
+
invalidOption: '無効なオプション: {option}',
|
|
85
|
+
parseError: 'ファイルの解析に失敗しました: {file}',
|
|
86
|
+
validationFailed: '検証失敗: {count} 件のエラーが見つかりました',
|
|
87
|
+
connectionFailed: '接続に失敗しました: {target}',
|
|
88
|
+
timeout: '操作がタイムアウトしました ({seconds} 秒)',
|
|
89
|
+
permissionDenied: 'アクセス権限がありません: {path}',
|
|
90
|
+
unknownCommand: '不明なコマンド: {command}',
|
|
91
|
+
},
|
|
92
|
+
// 成功メッセージ
|
|
93
|
+
success: {
|
|
94
|
+
initialized: 'プロジェクトを正常に初期化しました',
|
|
95
|
+
validated: '検証に合格しました',
|
|
96
|
+
generated: '{count} 個のファイルを生成しました',
|
|
97
|
+
exported: '{path} にエクスポートしました',
|
|
98
|
+
imported: '{count} 件をインポートしました',
|
|
99
|
+
saved: '正常に保存しました',
|
|
100
|
+
},
|
|
101
|
+
// コマンド
|
|
102
|
+
commands: {
|
|
103
|
+
init: {
|
|
104
|
+
description: '新しいMUSUBIXプロジェクトを初期化',
|
|
105
|
+
creating: 'プロジェクト構造を作成中...',
|
|
106
|
+
done: 'プロジェクトを {path} に初期化しました',
|
|
107
|
+
},
|
|
108
|
+
requirements: {
|
|
109
|
+
description: '要件の分析と検証',
|
|
110
|
+
analyzing: '要件を分析中...',
|
|
111
|
+
validating: 'EARS形式を検証中...',
|
|
112
|
+
found: '{count} 件の要件が見つかりました',
|
|
113
|
+
},
|
|
114
|
+
design: {
|
|
115
|
+
description: '設計の生成と検証',
|
|
116
|
+
generating: '設計を生成中...',
|
|
117
|
+
patterns: 'パターンを検出中...',
|
|
118
|
+
},
|
|
119
|
+
learn: {
|
|
120
|
+
description: '自己学習システムの管理',
|
|
121
|
+
status: '学習状態',
|
|
122
|
+
patterns: '学習済みパターン',
|
|
123
|
+
exporting: '学習データをエクスポート中...',
|
|
124
|
+
importing: '学習データをインポート中...',
|
|
125
|
+
},
|
|
126
|
+
ontology: {
|
|
127
|
+
description: '知識グラフ操作',
|
|
128
|
+
validating: '知識グラフを検証中...',
|
|
129
|
+
checking: '循環依存をチェック中...',
|
|
130
|
+
stats: '知識グラフ統計',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
// ラベル
|
|
134
|
+
labels: {
|
|
135
|
+
total: '合計',
|
|
136
|
+
passed: '合格',
|
|
137
|
+
failed: '失敗',
|
|
138
|
+
warnings: '警告',
|
|
139
|
+
errors: 'エラー',
|
|
140
|
+
confidence: '信頼度',
|
|
141
|
+
traceability: 'トレーサビリティ',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Get message for current locale
|
|
147
|
+
*/
|
|
148
|
+
export function getMessage(key, locale = 'en', params = {}) {
|
|
149
|
+
const messages = CLI_MESSAGES[locale] || CLI_MESSAGES.en;
|
|
150
|
+
const keys = key.split('.');
|
|
151
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
152
|
+
let value = messages;
|
|
153
|
+
for (const k of keys) {
|
|
154
|
+
value = value?.[k];
|
|
155
|
+
if (value === undefined)
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
if (typeof value !== 'string') {
|
|
159
|
+
// Fallback to English
|
|
160
|
+
value = CLI_MESSAGES.en;
|
|
161
|
+
for (const k of keys) {
|
|
162
|
+
value = value?.[k];
|
|
163
|
+
if (value === undefined)
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (typeof value !== 'string') {
|
|
168
|
+
return key; // Return key if not found
|
|
169
|
+
}
|
|
170
|
+
// Replace placeholders
|
|
171
|
+
return value.replace(/\{(\w+)\}/g, (_, name) => String(params[name] ?? `{${name}}`));
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Detect system locale
|
|
175
|
+
*/
|
|
176
|
+
export function detectLocale() {
|
|
177
|
+
const env = process.env.LANG || process.env.LC_ALL || process.env.LANGUAGE || '';
|
|
178
|
+
if (env.toLowerCase().startsWith('ja')) {
|
|
179
|
+
return 'ja';
|
|
180
|
+
}
|
|
181
|
+
return 'en';
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* CLI message helper with auto-detection
|
|
185
|
+
*/
|
|
186
|
+
export function t(key, params = {}) {
|
|
187
|
+
return getMessage(key, detectLocale(), params);
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/cli/messages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,UAAU;QACV,OAAO,EAAE,sDAAsD;QAC/D,OAAO,EAAE,SAAS;QAElB,SAAS;QACT,KAAK,EAAE;YACL,YAAY,EAAE,wBAAwB;YACtC,aAAa,EAAE,gDAAgD;YAC/D,eAAe,EAAE,kCAAkC;YACnD,aAAa,EAAE,0BAA0B;YACzC,UAAU,EAAE,8BAA8B;YAC1C,gBAAgB,EAAE,2CAA2C;YAC7D,gBAAgB,EAAE,6BAA6B;YAC/C,OAAO,EAAE,6CAA6C;YACtD,gBAAgB,EAAE,2BAA2B;YAC7C,cAAc,EAAE,4BAA4B;SAC7C;QAED,mBAAmB;QACnB,OAAO,EAAE;YACP,WAAW,EAAE,kCAAkC;YAC/C,SAAS,EAAE,mBAAmB;YAC9B,SAAS,EAAE,2BAA2B;YACtC,QAAQ,EAAE,oBAAoB;YAC9B,QAAQ,EAAE,0BAA0B;YACpC,KAAK,EAAE,oBAAoB;SAC5B;QAED,WAAW;QACX,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ,WAAW,EAAE,kCAAkC;gBAC/C,QAAQ,EAAE,+BAA+B;gBACzC,IAAI,EAAE,+BAA+B;aACtC;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,mC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
|
|
1
1
|
{
|
|
2
2
|
"name": "@nahisaho/musubix-core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "MUSUBIX Core Library - Neuro-Symbolic Integration Engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"bin": {
|
|
48
|
-
"musubix": "
|
|
48
|
+
"musubix": "bin/musubix.js"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"dist",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@modelcontextprotocol/sdk": "1.25.1",
|
|
71
|
+
"@nahisaho/musubix-ontology-mcp": "^1.0.1",
|
|
71
72
|
"chalk": "^5.3.0",
|
|
72
73
|
"commander": "^11.1.0",
|
|
73
74
|
"ora": "^8.0.0",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
],
|
|
99
100
|
"repository": {
|
|
100
101
|
"type": "git",
|
|
101
|
-
"url": "https://github.com/nahisaho/MUSUBIX.git",
|
|
102
|
+
"url": "git+https://github.com/nahisaho/MUSUBIX.git",
|
|
102
103
|
"directory": "packages/core"
|
|
103
104
|
},
|
|
104
105
|
"homepage": "https://github.com/nahisaho/MUSUBIX/tree/main/packages/core",
|