@noyrax/5d-database-plugin 0.1.7 → 0.1.8-beta.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.
- package/MCP_SERVER_SETUP.md +14 -0
- package/README.md +49 -3
- package/SETUP_NEW_PROJECT.md +245 -14
- package/out/cli/merge-workspaces-cli.d.ts +3 -0
- package/out/cli/merge-workspaces-cli.d.ts.map +1 -0
- package/out/cli/merge-workspaces-cli.js +199 -0
- package/out/cli/merge-workspaces-cli.js.map +1 -0
- package/out/cli/tool-cli.js +59 -4
- package/out/cli/tool-cli.js.map +1 -1
- package/out/core/chromadb-vector-database.d.ts.map +1 -1
- package/out/core/chromadb-vector-database.js +6 -2
- package/out/core/chromadb-vector-database.js.map +1 -1
- package/out/mcp/server.d.ts +3 -0
- package/out/mcp/server.d.ts.map +1 -1
- package/out/mcp/server.js +141 -0
- package/out/mcp/server.js.map +1 -1
- package/out/mcp/tools/adr-generator.d.ts +123 -0
- package/out/mcp/tools/adr-generator.d.ts.map +1 -0
- package/out/mcp/tools/adr-generator.js +1113 -0
- package/out/mcp/tools/adr-generator.js.map +1 -0
- package/out/mcp/tools/gap-analysis.d.ts +6 -2
- package/out/mcp/tools/gap-analysis.d.ts.map +1 -1
- package/out/mcp/tools/gap-analysis.js +32 -5
- package/out/mcp/tools/gap-analysis.js.map +1 -1
- package/out/services/adr-context-builder.d.ts +70 -0
- package/out/services/adr-context-builder.d.ts.map +1 -0
- package/out/services/adr-context-builder.js +141 -0
- package/out/services/adr-context-builder.js.map +1 -0
- package/out/services/adr-pattern-analyzer.d.ts +75 -0
- package/out/services/adr-pattern-analyzer.d.ts.map +1 -0
- package/out/services/adr-pattern-analyzer.js +339 -0
- package/out/services/adr-pattern-analyzer.js.map +1 -0
- package/out/services/adr-reasoning-service.d.ts +63 -0
- package/out/services/adr-reasoning-service.d.ts.map +1 -0
- package/out/services/adr-reasoning-service.js +760 -0
- package/out/services/adr-reasoning-service.js.map +1 -0
- package/out/services/noyrax-integration-service.d.ts +51 -0
- package/out/services/noyrax-integration-service.d.ts.map +1 -0
- package/out/services/noyrax-integration-service.js +215 -0
- package/out/services/noyrax-integration-service.js.map +1 -0
- package/out/services/semantic-pattern-matcher.d.ts +61 -0
- package/out/services/semantic-pattern-matcher.d.ts.map +1 -0
- package/out/services/semantic-pattern-matcher.js +183 -0
- package/out/services/semantic-pattern-matcher.js.map +1 -0
- package/out/services/workflow-orchestrator.d.ts +63 -0
- package/out/services/workflow-orchestrator.d.ts.map +1 -0
- package/out/services/workflow-orchestrator.js +111 -0
- package/out/services/workflow-orchestrator.js.map +1 -0
- package/out/ui/commands.d.ts.map +1 -1
- package/out/ui/commands.js +112 -1
- package/out/ui/commands.js.map +1 -1
- package/package.json +22 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-orchestrator.d.ts","sourceRoot":"","sources":["../../src/services/workflow-orchestrator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;GAKG;AACH,qBAAa,oBAAoB;IAC7B,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,qBAAqB,CAAwB;IACrD,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,aAAa,CAAS;gBAG1B,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,cAAc,EACzB,qBAAqB,EAAE,qBAAqB;IAQhD;;;;;OAKG;IACG,eAAe,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,cAAc,CAAC;IAmF7E;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC;QACzB,eAAe,EAAE,OAAO,CAAC;QACzB,UAAU,EAAE,OAAO,8BAA8B,EAAE,UAAU,CAAC;QAC9D,cAAc,EAAE,OAAO,CAAC;KAC3B,CAAC;CAYL"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowOrchestrator = void 0;
|
|
4
|
+
const noyrax_integration_service_1 = require("./noyrax-integration-service");
|
|
5
|
+
const docs_path_resolver_1 = require("../core/docs-path-resolver");
|
|
6
|
+
/**
|
|
7
|
+
* Orchestrates the complete workflow:
|
|
8
|
+
* 1. Noyrax: Generate documentation (scan → validate → generate)
|
|
9
|
+
* 2. 5D Database: Ingest documentation into SQLite databases
|
|
10
|
+
* 3. V-Dimension: Generate embeddings and calculate importance scores
|
|
11
|
+
*/
|
|
12
|
+
class WorkflowOrchestrator {
|
|
13
|
+
constructor(workspaceRoot, dbManager, ingestionOrchestrator) {
|
|
14
|
+
this.workspaceRoot = workspaceRoot;
|
|
15
|
+
this.dbManager = dbManager;
|
|
16
|
+
this.ingestionOrchestrator = ingestionOrchestrator;
|
|
17
|
+
this.noyraxService = new noyrax_integration_service_1.NoyraxIntegrationService(workspaceRoot);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Runs the full workflow.
|
|
21
|
+
*
|
|
22
|
+
* @param options Workflow options
|
|
23
|
+
* @returns Promise that resolves with the workflow result
|
|
24
|
+
*/
|
|
25
|
+
async runFullWorkflow(options = {}) {
|
|
26
|
+
const { generateDocs = true, fullIngestion = false, generateEmbeddings = true, skipIfUpToDate = false } = options;
|
|
27
|
+
const result = {
|
|
28
|
+
success: false,
|
|
29
|
+
docsGenerated: false,
|
|
30
|
+
ingestionCompleted: false,
|
|
31
|
+
embeddingsGenerated: false,
|
|
32
|
+
errors: [],
|
|
33
|
+
warnings: []
|
|
34
|
+
};
|
|
35
|
+
try {
|
|
36
|
+
// Step 1: Generate documentation (if requested)
|
|
37
|
+
if (generateDocs) {
|
|
38
|
+
// Check if docs need regeneration
|
|
39
|
+
if (skipIfUpToDate) {
|
|
40
|
+
const needsRegen = await this.noyraxService.needsRegeneration();
|
|
41
|
+
if (!needsRegen) {
|
|
42
|
+
console.log('[WorkflowOrchestrator] Documentation is up-to-date, skipping generation.');
|
|
43
|
+
result.docsGenerated = false; // Not generated, but exists
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
console.log('[WorkflowOrchestrator] Documentation needs regeneration, generating...');
|
|
47
|
+
await this.noyraxService.generateDocumentation();
|
|
48
|
+
result.docsGenerated = true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.log('[WorkflowOrchestrator] Generating documentation...');
|
|
53
|
+
await this.noyraxService.generateDocumentation();
|
|
54
|
+
result.docsGenerated = true;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// Step 2: Find docs path
|
|
58
|
+
const docsPath = docs_path_resolver_1.DocsPathResolver.findDocsDirectoryFromPath(this.workspaceRoot);
|
|
59
|
+
if (!docsPath) {
|
|
60
|
+
throw new Error('docs/ directory not found. ' +
|
|
61
|
+
'Please ensure documentation has been generated or specify the docs path.');
|
|
62
|
+
}
|
|
63
|
+
// Step 3: Get plugin ID
|
|
64
|
+
const pluginId = this.dbManager.getPluginId();
|
|
65
|
+
// Step 4: Perform ingestion
|
|
66
|
+
console.log('[WorkflowOrchestrator] Starting ingestion...');
|
|
67
|
+
if (fullIngestion) {
|
|
68
|
+
await this.ingestionOrchestrator.ingestFull(this.workspaceRoot, pluginId, docsPath);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
await this.ingestionOrchestrator.ingestIncremental(this.workspaceRoot, pluginId, docsPath);
|
|
72
|
+
}
|
|
73
|
+
result.ingestionCompleted = true;
|
|
74
|
+
// Step 5: Generate embeddings (if requested)
|
|
75
|
+
// Note: Embeddings are already generated during ingestion (V-Dimension),
|
|
76
|
+
// but we can verify they exist
|
|
77
|
+
if (generateEmbeddings) {
|
|
78
|
+
// Embeddings are handled by IngestionOrchestrator during ingestion
|
|
79
|
+
// This is just a flag to indicate they should be generated
|
|
80
|
+
result.embeddingsGenerated = true;
|
|
81
|
+
}
|
|
82
|
+
result.success = true;
|
|
83
|
+
console.log('[WorkflowOrchestrator] Full workflow completed successfully.');
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
const errorMessage = error.message || String(error);
|
|
87
|
+
result.errors = result.errors || [];
|
|
88
|
+
result.errors.push(errorMessage);
|
|
89
|
+
result.success = false;
|
|
90
|
+
console.error('[WorkflowOrchestrator] Workflow failed:', errorMessage);
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Checks the status of the workflow prerequisites.
|
|
97
|
+
*/
|
|
98
|
+
async checkStatus() {
|
|
99
|
+
// Check if Noyrax is available by checking docs status
|
|
100
|
+
const docsStatus = await this.noyraxService.checkDocsStatus();
|
|
101
|
+
const noyraxAvailable = docsStatus.exists || docsStatus.hasModules;
|
|
102
|
+
const dbManagerReady = this.dbManager !== undefined;
|
|
103
|
+
return {
|
|
104
|
+
noyraxAvailable,
|
|
105
|
+
docsStatus,
|
|
106
|
+
dbManagerReady
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.WorkflowOrchestrator = WorkflowOrchestrator;
|
|
111
|
+
//# sourceMappingURL=workflow-orchestrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-orchestrator.js","sourceRoot":"","sources":["../../src/services/workflow-orchestrator.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AAGxE,mEAA8D;AAuC9D;;;;;GAKG;AACH,MAAa,oBAAoB;IAM7B,YACI,aAAqB,EACrB,SAAyB,EACzB,qBAA4C;QAE5C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,aAAa,GAAG,IAAI,qDAAwB,CAAC,aAAa,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CAAC,UAA2B,EAAE;QAC/C,MAAM,EACF,YAAY,GAAG,IAAI,EACnB,aAAa,GAAG,KAAK,EACrB,kBAAkB,GAAG,IAAI,EACzB,cAAc,GAAG,KAAK,EACzB,GAAG,OAAO,CAAC;QAEZ,MAAM,MAAM,GAAmB;YAC3B,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,KAAK;YACpB,kBAAkB,EAAE,KAAK;YACzB,mBAAmB,EAAE,KAAK;YAC1B,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;SACf,CAAC;QAEF,IAAI,CAAC;YACD,gDAAgD;YAChD,IAAI,YAAY,EAAE,CAAC;gBACf,kCAAkC;gBAClC,IAAI,cAAc,EAAE,CAAC;oBACjB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,CAAC;oBAChE,IAAI,CAAC,UAAU,EAAE,CAAC;wBACd,OAAO,CAAC,GAAG,CAAC,0EAA0E,CAAC,CAAC;wBACxF,MAAM,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,4BAA4B;oBAC9D,CAA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AC;YACtC,CAAC;YAED,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;YACtB,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAC;QAEhF,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAClB,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;YACpD,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC;YACpC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACjC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;YACvB,OAAO,CAAC,KAAK,CAAC,yCAAyC,EAAE,YAAY,CAAC,CAAC;YACvE,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW;QAKb,uDAAuD;QACvD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC;QAC9D,MAAM,eAAe,GAAG,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,UAAU,CAAC;QACnE,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC;QAEpD,OAAO;YACH,eAAe;YACf,UAAU;YACV,cAAc;SACjB,CAAC;IACN,CAAC;CACJ;AA7HD,oDA6HC"}
|
package/out/ui/commands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/ui/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAG3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/ui/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAG3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAI/D;;GAEG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,MAAM,CAAC,gBAAgB,EAChC,SAAS,EAAE,cAAc,EACzB,qBAAqB,EAAE,qBAAqB,EAC5C,gBAAgB,EAAE,wBAAwB,EAC1C,QAAQ,CAAC,EAAE,MAAM,GAClB,IAAI,CAmPN"}
|
package/out/ui/commands.js
CHANGED
|
@@ -38,6 +38,8 @@ const vscode = __importStar(require("vscode"));
|
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const docs_path_resolver_1 = require("../core/docs-path-resolver");
|
|
40
40
|
const detail_view_provider_1 = require("./detail-view-provider");
|
|
41
|
+
const noyrax_integration_service_1 = require("../services/noyrax-integration-service");
|
|
42
|
+
const workflow_orchestrator_1 = require("../services/workflow-orchestrator");
|
|
41
43
|
/**
|
|
42
44
|
* Registers all VS Code commands for the 5D Database Plugin.
|
|
43
45
|
*/
|
|
@@ -118,6 +120,115 @@ function registerCommands(context, dbManager, ingestionOrchestrator, explorerPro
|
|
|
118
120
|
vscode.window.showErrorMessage(`Failed to open file: ${filePath}. Error: ${error}`);
|
|
119
121
|
}
|
|
120
122
|
});
|
|
121
|
-
|
|
123
|
+
// New command: Generate documentation using Noyrax
|
|
124
|
+
const generateDocsCommand = vscode.commands.registerCommand('5d-database.generate-docs', async () => {
|
|
125
|
+
const workspaceFolders = vscode.workspace.workspaceFolders;
|
|
126
|
+
if (!workspaceFolders || workspaceFolders.length === 0) {
|
|
127
|
+
vscode.window.showErrorMessage('No workspace folder found');
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const workspaceRoot = workspaceFolders[0].uri.fsPath;
|
|
131
|
+
const noyraxService = new noyrax_integration_service_1.NoyraxIntegrationService(workspaceRoot);
|
|
132
|
+
vscode.window.withProgress({
|
|
133
|
+
location: vscode.ProgressLocation.Notification,
|
|
134
|
+
title: 'Generating Documentation',
|
|
135
|
+
cancellable: false
|
|
136
|
+
}, async (progress) => {
|
|
137
|
+
progress.report({ increment: 0, message: 'Starting documentation generation...' });
|
|
138
|
+
try {
|
|
139
|
+
progress.report({ increment: 33, message: 'Running scan...' });
|
|
140
|
+
await noyraxService.generateDocumentation();
|
|
141
|
+
progress.report({ increment: 100, message: 'Documentation generated successfully' });
|
|
142
|
+
vscode.window.showInformationMessage('Documentation generated successfully');
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
const errorMessage = error.message || String(error);
|
|
146
|
+
vscode.window.showErrorMessage(`Documentation generation failed: ${errorMessage}`);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
// New command: Full workflow (Generate docs + Ingest)
|
|
151
|
+
const fullWorkflowCommand = vscode.commands.registerCommand('5d-database.full-workflow', async () => {
|
|
152
|
+
const workspaceFolders = vscode.workspace.workspaceFolders;
|
|
153
|
+
if (!workspaceFolders || workspaceFolders.length === 0) {
|
|
154
|
+
vscode.window.showErrorMessage('No workspace folder found');
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const workspaceRoot = workspaceFolders[0].uri.fsPath;
|
|
158
|
+
const workflowOrchestrator = new workflow_orchestrator_1.WorkflowOrchestrator(workspaceRoot, dbManager, ingestionOrchestrator);
|
|
159
|
+
vscode.window.withProgress({
|
|
160
|
+
location: vscode.ProgressLocation.Notification,
|
|
161
|
+
title: 'Running Full Workflow',
|
|
162
|
+
cancellable: false
|
|
163
|
+
}, async (progress) => {
|
|
164
|
+
progress.report({ increment: 0, message: 'Starting full workflow...' });
|
|
165
|
+
try {
|
|
166
|
+
progress.report({ increment: 20, message: 'Generating documentation...' });
|
|
167
|
+
const result = await workflowOrchestrator.runFullWorkflow({
|
|
168
|
+
generateDocs: true,
|
|
169
|
+
fullIngestion: false,
|
|
170
|
+
generateEmbeddings: true,
|
|
171
|
+
skipIfUpToDate: false
|
|
172
|
+
});
|
|
173
|
+
if (result.success) {
|
|
174
|
+
progress.report({ increment: 100, message: 'Workflow completed successfully' });
|
|
175
|
+
// Refresh the database explorer to show newly ingested data
|
|
176
|
+
explorerProvider.refresh();
|
|
177
|
+
let message = 'Full workflow completed successfully';
|
|
178
|
+
if (result.warnings && result.warnings.length > 0) {
|
|
179
|
+
message += ` (${result.warnings.length} warning(s))`;
|
|
180
|
+
}
|
|
181
|
+
vscode.window.showInformationMessage(message);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
const errorMessage = result.errors?.join(', ') || 'Unknown error';
|
|
185
|
+
vscode.window.showErrorMessage(`Workflow failed: ${errorMessage}`);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
catch (error) {
|
|
189
|
+
const errorMessage = error.message || String(error);
|
|
190
|
+
vscode.window.showErrorMessage(`Workflow failed: ${errorMessage}`);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
// New command: Merge workspaces (combine both systems into one database)
|
|
195
|
+
const mergeWorkspacesCommand = vscode.commands.registerCommand('5d-database.merge-workspaces', async () => {
|
|
196
|
+
const workspaceFolders = vscode.workspace.workspaceFolders;
|
|
197
|
+
if (!workspaceFolders || workspaceFolders.length === 0) {
|
|
198
|
+
vscode.window.showErrorMessage('No workspace folder found');
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
const workspaceRoot = workspaceFolders[0].uri.fsPath;
|
|
202
|
+
const { exec } = await Promise.resolve().then(() => __importStar(require('child_process')));
|
|
203
|
+
const { promisify } = await Promise.resolve().then(() => __importStar(require('util')));
|
|
204
|
+
const execAsync = promisify(exec);
|
|
205
|
+
const mergeCliPath = path.join(__dirname, '..', '..', 'out', 'cli', 'merge-workspaces-cli.js');
|
|
206
|
+
vscode.window.withProgress({
|
|
207
|
+
location: vscode.ProgressLocation.Notification,
|
|
208
|
+
title: 'Merging Workspaces',
|
|
209
|
+
cancellable: false
|
|
210
|
+
}, async (progress) => {
|
|
211
|
+
progress.report({ increment: 0, message: 'Starting workspace merge...' });
|
|
212
|
+
try {
|
|
213
|
+
progress.report({ increment: 50, message: 'Merging documentation from both systems...' });
|
|
214
|
+
const { stdout, stderr } = await execAsync(`node "${mergeCliPath}" "${workspaceRoot}" --full`, {
|
|
215
|
+
cwd: workspaceRoot,
|
|
216
|
+
maxBuffer: 10 * 1024 * 1024 // 10MB buffer
|
|
217
|
+
});
|
|
218
|
+
if (stderr && !stderr.includes('WARN')) {
|
|
219
|
+
console.warn('[Merge Workspaces] Warnings:', stderr);
|
|
220
|
+
}
|
|
221
|
+
progress.report({ increment: 100, message: 'Merge completed successfully' });
|
|
222
|
+
// Refresh the database explorer to show merged data
|
|
223
|
+
explorerProvider.refresh();
|
|
224
|
+
vscode.window.showInformationMessage('Workspaces merged successfully. Both systems are now in one database.');
|
|
225
|
+
}
|
|
226
|
+
catch (error) {
|
|
227
|
+
const errorMessage = error.message || String(error);
|
|
228
|
+
vscode.window.showErrorMessage(`Workspace merge failed: ${errorMessage}`);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
context.subscriptions.push(ingestCommand, searchCommand, showModuleDetailCommand, showSymbolDetailCommand, showAdrDetailCommand, showDependencyDetailCommand, showChangeDetailCommand, openSourceFileCommand, generateDocsCommand, fullWorkflowCommand, mergeWorkspacesCommand, detailViewProvider);
|
|
122
233
|
}
|
|
123
234
|
//# sourceMappingURL=commands.js.map
|
package/out/ui/commands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/ui/commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;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gBAClB,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;gBACpD,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,2BAA2B,YAAY,EAAE,CAAC,CAAC;YAC9E,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,aAAa,CAAC,IAAI,CACtB,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,CACrB,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noyrax/5d-database-plugin",
|
|
3
3
|
"displayName": "5D Database Plugin",
|
|
4
|
-
"description": "5-dimensional database layer for documentation system with semantic brain integration",
|
|
5
|
-
"version": "0.1.
|
|
4
|
+
"description": "5-dimensional database layer for documentation system with semantic brain integration. Provides SQLite databases for modules, symbols, dependencies, ADRs, and changes. Includes semantic search and MCP server integration for AI agents.",
|
|
5
|
+
"version": "0.1.8-beta.1",
|
|
6
6
|
"publisher": "noyrax",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/noyrax/
|
|
10
|
+
"url": "https://github.com/noyrax/noyrax.git",
|
|
11
|
+
"directory": "5d-database-plugin"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
11
15
|
},
|
|
12
16
|
"keywords": [
|
|
13
17
|
"documentation",
|
|
@@ -95,6 +99,18 @@
|
|
|
95
99
|
{
|
|
96
100
|
"command": "5d-database.openSourceFile",
|
|
97
101
|
"title": "Open Source File"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"command": "5d-database.generate-docs",
|
|
105
|
+
"title": "Generate Documentation (Noyrax)"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"command": "5d-database.full-workflow",
|
|
109
|
+
"title": "Full Workflow (Generate + Ingest)"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"command": "5d-database.merge-workspaces",
|
|
113
|
+
"title": "Merge Workspaces (Combine Both Systems)"
|
|
98
114
|
}
|
|
99
115
|
],
|
|
100
116
|
"menus": {
|
|
@@ -142,9 +158,11 @@
|
|
|
142
158
|
"test:v-dimension": "node out/cli/test-v-dimension.js",
|
|
143
159
|
"test:chromadb": "node out/cli/test-chromadb.js",
|
|
144
160
|
"verify:openai-key": "node out/cli/verify-openai-key.js",
|
|
145
|
-
"verify:vss-status": "node out/cli/verify-vss-status.js"
|
|
161
|
+
"verify:vss-status": "node out/cli/verify-vss-status.js",
|
|
162
|
+
"merge:workspaces": "node out/cli/merge-workspaces-cli.js"
|
|
146
163
|
},
|
|
147
164
|
"dependencies": {
|
|
165
|
+
"@chroma-core/default-embed": "^0.1.9",
|
|
148
166
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
149
167
|
"chromadb": "^3.2.0",
|
|
150
168
|
"dotenv": "^16.4.5",
|