@noyrax/5d-database-plugin 0.1.8-beta.1 → 0.1.8
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 +0 -14
- package/README.md +3 -49
- package/SETUP_NEW_PROJECT.md +14 -245
- package/out/cli/tool-cli.js +4 -59
- 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 +2 -6
- package/out/core/chromadb-vector-database.js.map +1 -1
- package/out/mcp/server.d.ts +0 -3
- package/out/mcp/server.d.ts.map +1 -1
- package/out/mcp/server.js +2 -106
- package/out/mcp/server.js.map +1 -1
- package/out/mcp/tools/gap-analysis.d.ts +2 -6
- package/out/mcp/tools/gap-analysis.d.ts.map +1 -1
- package/out/mcp/tools/gap-analysis.js +5 -32
- package/out/mcp/tools/gap-analysis.js.map +1 -1
- package/out/ui/commands.d.ts.map +1 -1
- package/out/ui/commands.js +1 -112
- package/out/ui/commands.js.map +1 -1
- package/package.json +4 -22
- package/out/cli/merge-workspaces-cli.d.ts +0 -3
- package/out/cli/merge-workspaces-cli.d.ts.map +0 -1
- package/out/cli/merge-workspaces-cli.js +0 -199
- package/out/cli/merge-workspaces-cli.js.map +0 -1
- package/out/mcp/tools/adr-generator.d.ts +0 -123
- package/out/mcp/tools/adr-generator.d.ts.map +0 -1
- package/out/mcp/tools/adr-generator.js +0 -1113
- package/out/mcp/tools/adr-generator.js.map +0 -1
- package/out/services/adr-context-builder.d.ts +0 -70
- package/out/services/adr-context-builder.d.ts.map +0 -1
- package/out/services/adr-context-builder.js +0 -141
- package/out/services/adr-context-builder.js.map +0 -1
- package/out/services/adr-pattern-analyzer.d.ts +0 -75
- package/out/services/adr-pattern-analyzer.d.ts.map +0 -1
- package/out/services/adr-pattern-analyzer.js +0 -339
- package/out/services/adr-pattern-analyzer.js.map +0 -1
- package/out/services/adr-reasoning-service.d.ts +0 -63
- package/out/services/adr-reasoning-service.d.ts.map +0 -1
- package/out/services/adr-reasoning-service.js +0 -760
- package/out/services/adr-reasoning-service.js.map +0 -1
- package/out/services/noyrax-integration-service.d.ts +0 -51
- package/out/services/noyrax-integration-service.d.ts.map +0 -1
- package/out/services/noyrax-integration-service.js +0 -215
- package/out/services/noyrax-integration-service.js.map +0 -1
- package/out/services/semantic-pattern-matcher.d.ts +0 -61
- package/out/services/semantic-pattern-matcher.d.ts.map +0 -1
- package/out/services/semantic-pattern-matcher.js +0 -183
- package/out/services/semantic-pattern-matcher.js.map +0 -1
- package/out/services/workflow-orchestrator.d.ts +0 -63
- package/out/services/workflow-orchestrator.d.ts.map +0 -1
- package/out/services/workflow-orchestrator.js +0 -111
- package/out/services/workflow-orchestrator.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,111 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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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