@noyrax/5d-database-plugin 0.1.14-beta.5 → 0.1.14-beta.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/out/api/adr-api.d.ts +0 -6
- package/out/api/adr-api.d.ts.map +1 -1
- package/out/api/adr-api.js +14 -49
- package/out/api/adr-api.js.map +1 -1
- package/out/api/bootstrap-api.d.ts +4 -1
- package/out/api/bootstrap-api.d.ts.map +1 -1
- package/out/api/bootstrap-api.js +27 -4
- package/out/api/bootstrap-api.js.map +1 -1
- package/out/api/context-builder.d.ts.map +1 -1
- package/out/api/context-builder.js +21 -5
- package/out/api/context-builder.js.map +1 -1
- package/out/api/evidence-grader.d.ts +83 -0
- package/out/api/evidence-grader.d.ts.map +1 -0
- package/out/api/evidence-grader.js +161 -0
- package/out/api/evidence-grader.js.map +1 -0
- package/out/api/index.d.ts +5 -0
- package/out/api/index.d.ts.map +1 -1
- package/out/api/index.js +11 -1
- package/out/api/index.js.map +1 -1
- package/out/api/learning-path-api.d.ts +3 -0
- package/out/api/learning-path-api.d.ts.map +1 -1
- package/out/api/learning-path-api.js +15 -2
- package/out/api/learning-path-api.js.map +1 -1
- package/out/api/module-api.d.ts +0 -1
- package/out/api/module-api.d.ts.map +1 -1
- package/out/api/module-api.js +4 -38
- package/out/api/module-api.js.map +1 -1
- package/out/api/self-explanation-api.d.ts +11 -1
- package/out/api/self-explanation-api.d.ts.map +1 -1
- package/out/api/self-explanation-api.js +285 -19
- package/out/api/self-explanation-api.js.map +1 -1
- package/out/api/semantic-search-api.d.ts +3 -0
- package/out/api/semantic-search-api.d.ts.map +1 -1
- package/out/api/semantic-search-api.js +39 -2
- package/out/api/semantic-search-api.js.map +1 -1
- package/out/api/source-access-contract-api.d.ts +60 -0
- package/out/api/source-access-contract-api.d.ts.map +1 -0
- package/out/api/source-access-contract-api.js +231 -0
- package/out/api/source-access-contract-api.js.map +1 -0
- package/out/api/source-snippet-api.d.ts +58 -0
- package/out/api/source-snippet-api.d.ts.map +1 -0
- package/out/api/source-snippet-api.js +187 -0
- package/out/api/source-snippet-api.js.map +1 -0
- package/out/api/vector-backend-status-api.d.ts +68 -0
- package/out/api/vector-backend-status-api.d.ts.map +1 -0
- package/out/api/vector-backend-status-api.js +241 -0
- package/out/api/vector-backend-status-api.js.map +1 -0
- package/out/cli/ingest-cli.js +44 -5
- package/out/cli/ingest-cli.js.map +1 -1
- package/out/cli/tool-cli.js +1 -1
- package/out/cli/tool-cli.js.map +1 -1
- package/out/core/migration-manager.d.ts.map +1 -1
- package/out/core/migration-manager.js +61 -32
- package/out/core/migration-manager.js.map +1 -1
- package/out/core/multi-db-manager.d.ts +26 -0
- package/out/core/multi-db-manager.d.ts.map +1 -1
- package/out/core/multi-db-manager.js +143 -2
- package/out/core/multi-db-manager.js.map +1 -1
- package/out/core/path-normalizer.d.ts +46 -0
- package/out/core/path-normalizer.d.ts.map +1 -0
- package/out/core/path-normalizer.js +152 -0
- package/out/core/path-normalizer.js.map +1 -0
- package/out/ingestors/adr-ingestor.d.ts.map +1 -1
- package/out/ingestors/adr-ingestor.js +7 -8
- package/out/ingestors/adr-ingestor.js.map +1 -1
- package/out/ingestors/module-ingestor.d.ts.map +1 -1
- package/out/ingestors/module-ingestor.js +17 -0
- package/out/ingestors/module-ingestor.js.map +1 -1
- package/out/ingestors/symbol-ingestor.d.ts.map +1 -1
- package/out/ingestors/symbol-ingestor.js +24 -2
- package/out/ingestors/symbol-ingestor.js.map +1 -1
- package/out/mcp/tools/gap-analysis.d.ts +16 -2
- package/out/mcp/tools/gap-analysis.d.ts.map +1 -1
- package/out/mcp/tools/gap-analysis.js +177 -31
- package/out/mcp/tools/gap-analysis.js.map +1 -1
- package/out/mcp/tools/learning-path.d.ts.map +1 -1
- package/out/mcp/tools/learning-path.js +19 -5
- package/out/mcp/tools/learning-path.js.map +1 -1
- package/out/mcp/tools/semantic-discovery.d.ts.map +1 -1
- package/out/mcp/tools/semantic-discovery.js +44 -4
- package/out/mcp/tools/semantic-discovery.js.map +1 -1
- package/out/mcp/tools/source-access-contract.d.ts +26 -0
- package/out/mcp/tools/source-access-contract.d.ts.map +1 -0
- package/out/mcp/tools/source-access-contract.js +45 -0
- package/out/mcp/tools/source-access-contract.js.map +1 -0
- package/out/mcp/tools/source-snippet.d.ts +71 -0
- package/out/mcp/tools/source-snippet.d.ts.map +1 -0
- package/out/mcp/tools/source-snippet.js +82 -0
- package/out/mcp/tools/source-snippet.js.map +1 -0
- package/out/models/action-hint.d.ts +36 -0
- package/out/models/action-hint.d.ts.map +1 -0
- package/out/models/action-hint.js +38 -0
- package/out/models/action-hint.js.map +1 -0
- package/out/models/evidence.d.ts +68 -0
- package/out/models/evidence.d.ts.map +1 -0
- package/out/models/evidence.js +91 -0
- package/out/models/evidence.js.map +1 -0
- package/out/models/module.d.ts +2 -0
- package/out/models/module.d.ts.map +1 -1
- package/out/models/reason-codes.d.ts +52 -0
- package/out/models/reason-codes.d.ts.map +1 -0
- package/out/models/reason-codes.js +83 -0
- package/out/models/reason-codes.js.map +1 -0
- package/out/models/symbol.d.ts +6 -0
- package/out/models/symbol.d.ts.map +1 -1
- package/out/repositories/module-repository.d.ts.map +1 -1
- package/out/repositories/module-repository.js +9 -3
- package/out/repositories/module-repository.js.map +1 -1
- package/out/repositories/symbol-repository.d.ts.map +1 -1
- package/out/repositories/symbol-repository.js +22 -4
- package/out/repositories/symbol-repository.js.map +1 -1
- package/out/services/cross-dimension-linker.d.ts +0 -5
- package/out/services/cross-dimension-linker.d.ts.map +1 -1
- package/out/services/cross-dimension-linker.js +2 -35
- package/out/services/cross-dimension-linker.js.map +1 -1
- package/package.json +196 -196
- package/schemas/sqlite/001_add_source_code_spans_modules.sql +7 -0
- package/schemas/sqlite/001_z_add_source_code_spans_modules.sql +13 -0
- package/schemas/sqlite/002_add_source_code_spans_symbols.sql +15 -0
- package/schemas/sqlite/002_z_add_source_code_spans_symbols.sql +21 -0
- package/schemas/sqlite/006_add_source_access_config.sql +33 -0
package/package.json
CHANGED
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@noyrax/5d-database-plugin",
|
|
3
|
-
"displayName": "5D Database Plugin",
|
|
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.14-beta.
|
|
6
|
-
"publisher": "noyrax",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/noyrax/noyrax.git",
|
|
11
|
-
"directory": "5d-database-plugin"
|
|
12
|
-
},
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"documentation",
|
|
18
|
-
"database",
|
|
19
|
-
"semantic-search",
|
|
20
|
-
"mcp",
|
|
21
|
-
"llm",
|
|
22
|
-
"ai",
|
|
23
|
-
"code-analysis",
|
|
24
|
-
"architecture",
|
|
25
|
-
"5d-database",
|
|
26
|
-
"noyrax"
|
|
27
|
-
],
|
|
28
|
-
"files": [
|
|
29
|
-
"out/",
|
|
30
|
-
"schemas/",
|
|
31
|
-
"README.md",
|
|
32
|
-
"LICENSE",
|
|
33
|
-
"package.json",
|
|
34
|
-
"MCP_SERVER_SETUP.md",
|
|
35
|
-
"SETUP_NEW_PROJECT.md",
|
|
36
|
-
"CHROMADB_SETUP.md",
|
|
37
|
-
"QUICK_START.md",
|
|
38
|
-
"ADR_VORSCHLAEGE.md",
|
|
39
|
-
"SYSTEM_ANALYSIS_REPORT.md",
|
|
40
|
-
"INSTALLATION_READINESS.md",
|
|
41
|
-
"MCP_SERVER_TEST_REPORT.md",
|
|
42
|
-
"KNOWN_ISSUES.md",
|
|
43
|
-
"IMPROVEMENT_ROADMAP.md",
|
|
44
|
-
"NOYRAX_INTEGRATION.md",
|
|
45
|
-
"NOYRAX_WORKSPACE_INTEGRATION.md"
|
|
46
|
-
],
|
|
47
|
-
"engines": {
|
|
48
|
-
"vscode": "^1.74.0"
|
|
49
|
-
},
|
|
50
|
-
"categories": [
|
|
51
|
-
"Other"
|
|
52
|
-
],
|
|
53
|
-
"activationEvents": [
|
|
54
|
-
"onStartupFinished"
|
|
55
|
-
],
|
|
56
|
-
"main": "./out/extension.js",
|
|
57
|
-
"exports": {
|
|
58
|
-
".": "./out/extension.js",
|
|
59
|
-
"./api": "./out/api/index.js"
|
|
60
|
-
},
|
|
61
|
-
"bin": {
|
|
62
|
-
"noyrax-5d-database": "./out/cli/ingest-cli.js",
|
|
63
|
-
"noyrax-5d-database-
|
|
64
|
-
"noyrax-5d-database-
|
|
65
|
-
"noyrax-5d-database-
|
|
66
|
-
"noyrax-5d-database-
|
|
67
|
-
"noyrax-5d-database-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"verify:
|
|
151
|
-
"verify:
|
|
152
|
-
"verify:
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"test": "jest",
|
|
158
|
-
"test:
|
|
159
|
-
"test:
|
|
160
|
-
"
|
|
161
|
-
"verify:
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"@
|
|
167
|
-
"@
|
|
168
|
-
"chromadb": "^3.2.0",
|
|
169
|
-
"dotenv": "^16.4.5",
|
|
170
|
-
"openai": "^6.15.0",
|
|
171
|
-
"sqlite-vss": "^0.1.2",
|
|
172
|
-
"sqlite3": "^5.1.6",
|
|
173
|
-
"uuid": "^9.0.1",
|
|
174
|
-
"zod": "^4.2.1"
|
|
175
|
-
},
|
|
176
|
-
"devDependencies": {
|
|
177
|
-
"@types/dotenv": "^6.1.1",
|
|
178
|
-
"@types/jest": "^30.0.0",
|
|
179
|
-
"@types/node": "16.x",
|
|
180
|
-
"@types/uuid": "^10.0.0",
|
|
181
|
-
"@types/vscode": "^1.74.0",
|
|
182
|
-
"@vscode/vsce": "^2.22.0",
|
|
183
|
-
"jest": "^29.7.0",
|
|
184
|
-
"ts-jest": "^29.4.6",
|
|
185
|
-
"typescript": "^5.1.6"
|
|
186
|
-
},
|
|
187
|
-
"peerDependencies": {
|
|
188
|
-
"@noyrax/documentation-system-plugin": "*"
|
|
189
|
-
},
|
|
190
|
-
"peerDependenciesMeta": {
|
|
191
|
-
"@noyrax/documentation-system-plugin": {
|
|
192
|
-
"optional": true,
|
|
193
|
-
"description": "Documentation System Plugin (Noyrax) must be installed and docs/ must be generated before using 5D Database Plugin"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@noyrax/5d-database-plugin",
|
|
3
|
+
"displayName": "5D Database Plugin",
|
|
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.14-beta.8",
|
|
6
|
+
"publisher": "noyrax",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/noyrax/noyrax.git",
|
|
11
|
+
"directory": "5d-database-plugin"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"documentation",
|
|
18
|
+
"database",
|
|
19
|
+
"semantic-search",
|
|
20
|
+
"mcp",
|
|
21
|
+
"llm",
|
|
22
|
+
"ai",
|
|
23
|
+
"code-analysis",
|
|
24
|
+
"architecture",
|
|
25
|
+
"5d-database",
|
|
26
|
+
"noyrax"
|
|
27
|
+
],
|
|
28
|
+
"files": [
|
|
29
|
+
"out/",
|
|
30
|
+
"schemas/",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"package.json",
|
|
34
|
+
"MCP_SERVER_SETUP.md",
|
|
35
|
+
"SETUP_NEW_PROJECT.md",
|
|
36
|
+
"CHROMADB_SETUP.md",
|
|
37
|
+
"QUICK_START.md",
|
|
38
|
+
"ADR_VORSCHLAEGE.md",
|
|
39
|
+
"SYSTEM_ANALYSIS_REPORT.md",
|
|
40
|
+
"INSTALLATION_READINESS.md",
|
|
41
|
+
"MCP_SERVER_TEST_REPORT.md",
|
|
42
|
+
"KNOWN_ISSUES.md",
|
|
43
|
+
"IMPROVEMENT_ROADMAP.md",
|
|
44
|
+
"NOYRAX_INTEGRATION.md",
|
|
45
|
+
"NOYRAX_WORKSPACE_INTEGRATION.md"
|
|
46
|
+
],
|
|
47
|
+
"engines": {
|
|
48
|
+
"vscode": "^1.74.0"
|
|
49
|
+
},
|
|
50
|
+
"categories": [
|
|
51
|
+
"Other"
|
|
52
|
+
],
|
|
53
|
+
"activationEvents": [
|
|
54
|
+
"onStartupFinished"
|
|
55
|
+
],
|
|
56
|
+
"main": "./out/extension.js",
|
|
57
|
+
"exports": {
|
|
58
|
+
".": "./out/extension.js",
|
|
59
|
+
"./api": "./out/api/index.js"
|
|
60
|
+
},
|
|
61
|
+
"bin": {
|
|
62
|
+
"noyrax-5d-database": "./out/cli/ingest-cli.js",
|
|
63
|
+
"noyrax-5d-database-query": "./out/cli/query-cli.js",
|
|
64
|
+
"noyrax-5d-database-tool": "./out/cli/tool-cli.js",
|
|
65
|
+
"noyrax-5d-database-search": "./out/cli/semantic-search-cli.js",
|
|
66
|
+
"noyrax-5d-database-embedding": "./out/cli/embedding-cli.js",
|
|
67
|
+
"noyrax-5d-database-debug-plugin-id": "./out/cli/debug-plugin-id.js"
|
|
68
|
+
},
|
|
69
|
+
"contributes": {
|
|
70
|
+
"commands": [
|
|
71
|
+
{
|
|
72
|
+
"command": "5d-database.ingest",
|
|
73
|
+
"title": "Ingest Documentation"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"command": "5d-database.search",
|
|
77
|
+
"title": "Semantic Search"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"command": "5d-database.showModuleDetail",
|
|
81
|
+
"title": "Show Module Detail"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"command": "5d-database.showSymbolDetail",
|
|
85
|
+
"title": "Show Symbol Detail"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"command": "5d-database.showAdrDetail",
|
|
89
|
+
"title": "Show ADR Detail"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"command": "5d-database.showDependencyDetail",
|
|
93
|
+
"title": "Show Dependency Detail"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"command": "5d-database.showChangeDetail",
|
|
97
|
+
"title": "Show Change Report Detail"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"command": "5d-database.openSourceFile",
|
|
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)"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"menus": {
|
|
117
|
+
"view/item/context": [
|
|
118
|
+
{
|
|
119
|
+
"command": "5d-database.openSourceFile",
|
|
120
|
+
"when": "view == 5d-database-explorer && viewItem == module",
|
|
121
|
+
"group": "navigation"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"command": "5d-database.openSourceFile",
|
|
125
|
+
"when": "view == 5d-database-explorer && viewItem == symbol",
|
|
126
|
+
"group": "navigation"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"command": "5d-database.openSourceFile",
|
|
130
|
+
"when": "view == 5d-database-explorer && viewItem == dependency",
|
|
131
|
+
"group": "navigation"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"views": {
|
|
136
|
+
"explorer": [
|
|
137
|
+
{
|
|
138
|
+
"id": "5d-database-explorer",
|
|
139
|
+
"name": "5D Database Explorer"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"scripts": {
|
|
145
|
+
"compile": "tsc -p ./",
|
|
146
|
+
"postcompile": "npm run scan && npm run validate && npm run verify:adrs",
|
|
147
|
+
"scan": "cd .. && noyrax-scan",
|
|
148
|
+
"validate": "cd .. && noyrax-validate",
|
|
149
|
+
"verify:adrs": "cd .. && noyrax-verify-adrs",
|
|
150
|
+
"verify:architecture": "cd .. && noyrax-verify-architecture",
|
|
151
|
+
"verify:imports": "cd .. && noyrax-verify-imports",
|
|
152
|
+
"verify:all": "npm run compile && npm run verify:architecture && npm run verify:imports",
|
|
153
|
+
"watch": "tsc -watch -p ./",
|
|
154
|
+
"package": "vsce package --allow-missing-repository",
|
|
155
|
+
"prepublishOnly": "npm run compile",
|
|
156
|
+
"test": "jest",
|
|
157
|
+
"test:coverage": "jest --coverage",
|
|
158
|
+
"test:v-dimension": "node out/cli/test-v-dimension.js",
|
|
159
|
+
"test:chromadb": "node out/cli/test-chromadb.js",
|
|
160
|
+
"verify:openai-key": "node out/cli/verify-openai-key.js",
|
|
161
|
+
"verify:vss-status": "node out/cli/verify-vss-status.js",
|
|
162
|
+
"merge:workspaces": "node out/cli/merge-workspaces-cli.js"
|
|
163
|
+
},
|
|
164
|
+
"dependencies": {
|
|
165
|
+
"@chroma-core/default-embed": "^0.1.9",
|
|
166
|
+
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
167
|
+
"@noyrax/5d-database-plugin": "file:5d-database-plugin/5d-database-plugin/5d-database-plugin/5d-database-plugin/noyrax-5d-database-plugin-0.1.14-beta.7.tgz",
|
|
168
|
+
"chromadb": "^3.2.0",
|
|
169
|
+
"dotenv": "^16.4.5",
|
|
170
|
+
"openai": "^6.15.0",
|
|
171
|
+
"sqlite-vss": "^0.1.2",
|
|
172
|
+
"sqlite3": "^5.1.6",
|
|
173
|
+
"uuid": "^9.0.1",
|
|
174
|
+
"zod": "^4.2.1"
|
|
175
|
+
},
|
|
176
|
+
"devDependencies": {
|
|
177
|
+
"@types/dotenv": "^6.1.1",
|
|
178
|
+
"@types/jest": "^30.0.0",
|
|
179
|
+
"@types/node": "16.x",
|
|
180
|
+
"@types/uuid": "^10.0.0",
|
|
181
|
+
"@types/vscode": "^1.74.0",
|
|
182
|
+
"@vscode/vsce": "^2.22.0",
|
|
183
|
+
"jest": "^29.7.0",
|
|
184
|
+
"ts-jest": "^29.4.6",
|
|
185
|
+
"typescript": "^5.1.6"
|
|
186
|
+
},
|
|
187
|
+
"peerDependencies": {
|
|
188
|
+
"@noyrax/documentation-system-plugin": "*"
|
|
189
|
+
},
|
|
190
|
+
"peerDependenciesMeta": {
|
|
191
|
+
"@noyrax/documentation-system-plugin": {
|
|
192
|
+
"optional": true,
|
|
193
|
+
"description": "Documentation System Plugin (Noyrax) must be installed and docs/ must be generated before using 5D Database Plugin"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
-- Migration 001: Add source code span tracking to modules table (X-Dimension)
|
|
2
|
+
-- Adds file size metadata to modules table
|
|
3
|
+
|
|
4
|
+
-- Add file size metadata to modules table
|
|
5
|
+
ALTER TABLE modules ADD COLUMN line_count INTEGER;
|
|
6
|
+
ALTER TABLE modules ADD COLUMN byte_size INTEGER;
|
|
7
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- Migration 001: Add source code span tracking to modules table (X-Dimension)
|
|
2
|
+
-- Adds file size metadata to modules table
|
|
3
|
+
|
|
4
|
+
-- Add file size metadata to modules table (only if columns don't exist)
|
|
5
|
+
-- SQLite doesn't support IF NOT EXISTS for ALTER TABLE ADD COLUMN,
|
|
6
|
+
-- so we check if the column exists first using a pragma query
|
|
7
|
+
-- This migration is idempotent - it can be run multiple times safely
|
|
8
|
+
|
|
9
|
+
-- Note: This migration may fail if columns already exist (from migration 007).
|
|
10
|
+
-- That's OK - the migration manager will handle it gracefully.
|
|
11
|
+
ALTER TABLE modules ADD COLUMN line_count INTEGER;
|
|
12
|
+
ALTER TABLE modules ADD COLUMN byte_size INTEGER;
|
|
13
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
-- Migration 002: Add source code span tracking to symbols table (Y-Dimension)
|
|
2
|
+
-- Adds line/column/byte offset tracking for source code location
|
|
3
|
+
|
|
4
|
+
-- Add span tracking columns to symbols table
|
|
5
|
+
ALTER TABLE symbols ADD COLUMN start_line INTEGER;
|
|
6
|
+
ALTER TABLE symbols ADD COLUMN end_line INTEGER;
|
|
7
|
+
ALTER TABLE symbols ADD COLUMN start_col INTEGER;
|
|
8
|
+
ALTER TABLE symbols ADD COLUMN end_col INTEGER;
|
|
9
|
+
ALTER TABLE symbols ADD COLUMN byte_offset_start INTEGER;
|
|
10
|
+
ALTER TABLE symbols ADD COLUMN byte_offset_end INTEGER;
|
|
11
|
+
|
|
12
|
+
-- Add index for span lookups
|
|
13
|
+
CREATE INDEX IF NOT EXISTS idx_symbols_span
|
|
14
|
+
ON symbols(path, start_line, end_line);
|
|
15
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
-- Migration 002: Add source code span tracking to symbols table (Y-Dimension)
|
|
2
|
+
-- Adds line/column/byte offset tracking for source code location
|
|
3
|
+
|
|
4
|
+
-- Add span tracking columns to symbols table (only if columns don't exist)
|
|
5
|
+
-- SQLite doesn't support IF NOT EXISTS for ALTER TABLE ADD COLUMN,
|
|
6
|
+
-- so we check if the column exists first using a pragma query
|
|
7
|
+
-- This migration is idempotent - it can be run multiple times safely
|
|
8
|
+
|
|
9
|
+
-- Note: This migration may fail if columns already exist (from migration 007).
|
|
10
|
+
-- That's OK - the migration manager will handle it gracefully.
|
|
11
|
+
ALTER TABLE symbols ADD COLUMN start_line INTEGER;
|
|
12
|
+
ALTER TABLE symbols ADD COLUMN end_line INTEGER;
|
|
13
|
+
ALTER TABLE symbols ADD COLUMN start_col INTEGER;
|
|
14
|
+
ALTER TABLE symbols ADD COLUMN end_col INTEGER;
|
|
15
|
+
ALTER TABLE symbols ADD COLUMN byte_offset_start INTEGER;
|
|
16
|
+
ALTER TABLE symbols ADD COLUMN byte_offset_end INTEGER;
|
|
17
|
+
|
|
18
|
+
-- Add index for span lookups
|
|
19
|
+
CREATE INDEX IF NOT EXISTS idx_symbols_span
|
|
20
|
+
ON symbols(path, start_line, end_line);
|
|
21
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
-- Migration 006: Add source access config table to V-Dimension
|
|
2
|
+
-- Stores runtime contract for source code access (AVAILABLE/UNAVAILABLE/PARTIAL)
|
|
3
|
+
|
|
4
|
+
CREATE TABLE IF NOT EXISTS source_access_config (
|
|
5
|
+
id TEXT PRIMARY KEY DEFAULT 'singleton',
|
|
6
|
+
status TEXT NOT NULL CHECK(status IN ('AVAILABLE', 'UNAVAILABLE', 'PARTIAL')),
|
|
7
|
+
resolver_type TEXT CHECK(resolver_type IN ('FILESYSTEM', 'GIT', 'REMOTE', 'SNAPSHOT')),
|
|
8
|
+
workspace_root TEXT,
|
|
9
|
+
|
|
10
|
+
-- Constraints
|
|
11
|
+
max_bytes_per_request INTEGER DEFAULT 51200, -- 50KB
|
|
12
|
+
max_lines_per_request INTEGER DEFAULT 500,
|
|
13
|
+
max_concurrent_requests INTEGER DEFAULT 5,
|
|
14
|
+
redactions_json TEXT, -- JSON array of patterns
|
|
15
|
+
|
|
16
|
+
-- Reason codes (when UNAVAILABLE/PARTIAL)
|
|
17
|
+
reason_codes_json TEXT, -- JSON array of codes
|
|
18
|
+
|
|
19
|
+
-- Provenance
|
|
20
|
+
verified_at TEXT NOT NULL, -- ISO timestamp
|
|
21
|
+
evidence_grade TEXT NOT NULL CHECK(evidence_grade IN ('DETERMINISTIC', 'INFERRED')),
|
|
22
|
+
|
|
23
|
+
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
24
|
+
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
25
|
+
|
|
26
|
+
-- Ensure only one row exists
|
|
27
|
+
CHECK(id = 'singleton')
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
-- Initialize with default UNAVAILABLE state
|
|
31
|
+
INSERT OR IGNORE INTO source_access_config (id, status, verified_at, evidence_grade)
|
|
32
|
+
VALUES ('singleton', 'UNAVAILABLE', datetime('now'), 'DETERMINISTIC');
|
|
33
|
+
|