opencode-rag-plugin 1.10.5 → 1.11.0
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/ReadMe.md +22 -6
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/api.js.map +1 -1
- package/dist/cli.js +154 -2
- package/dist/cli.js.map +1 -1
- package/dist/core/config.d.ts +2 -0
- package/dist/core/config.js +3 -2
- package/dist/core/config.js.map +1 -1
- package/dist/core/interfaces.d.ts +12 -0
- package/dist/core/runtime-overrides.d.ts +1 -0
- package/dist/core/runtime-overrides.js +3 -1
- package/dist/core/runtime-overrides.js.map +1 -1
- package/dist/eval/index.d.ts +3 -0
- package/dist/eval/index.js +2 -0
- package/dist/eval/index.js.map +1 -1
- package/dist/eval/run-token-test.d.ts +7 -0
- package/dist/eval/run-token-test.js +288 -0
- package/dist/eval/run-token-test.js.map +1 -0
- package/dist/eval/token-analysis.d.ts +111 -0
- package/dist/eval/token-analysis.js +286 -0
- package/dist/eval/token-analysis.js.map +1 -0
- package/dist/eval/token-counter.d.ts +41 -0
- package/dist/eval/token-counter.js +102 -0
- package/dist/eval/token-counter.js.map +1 -0
- package/dist/mcp/cli.js +8 -6
- package/dist/mcp/cli.js.map +1 -1
- package/dist/opencode/tools.js +12 -5
- package/dist/opencode/tools.js.map +1 -1
- package/dist/plugin.js +71 -29
- package/dist/plugin.js.map +1 -1
- package/dist/retriever/keyword-index.d.ts +1 -0
- package/dist/retriever/keyword-index.js +11 -0
- package/dist/retriever/keyword-index.js.map +1 -1
- package/dist/retriever/retriever.d.ts +1 -0
- package/dist/retriever/retriever.js +49 -7
- package/dist/retriever/retriever.js.map +1 -1
- package/dist/tui.js +54 -5
- package/dist/tui.js.map +1 -1
- package/dist/web/server.js +31 -0
- package/dist/web/server.js.map +1 -1
- package/dist/web/ui/app.css +1 -0
- package/dist/web/ui/github-dark.css +118 -0
- package/dist/web/ui/highlight.min.js +1213 -0
- package/dist/web/ui/index.html +3 -29
- package/package.json +8 -2
package/dist/web/ui/index.html
CHANGED
|
@@ -4,35 +4,9 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>OpenCodeRAG - Vector Database Explorer</title>
|
|
7
|
-
<
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<script src="
|
|
10
|
-
<script>
|
|
11
|
-
tailwind.config = {
|
|
12
|
-
darkMode: 'class',
|
|
13
|
-
theme: {
|
|
14
|
-
extend: {
|
|
15
|
-
colors: {
|
|
16
|
-
brand: { 400: '#22d3ee', 500: '#06b6d4', 600: '#0891b2' }
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
</script>
|
|
22
|
-
<style>
|
|
23
|
-
body { background: #0f172a; color: #e2e8f0; }
|
|
24
|
-
.scrollbar-thin::-webkit-scrollbar { width: 6px; }
|
|
25
|
-
.scrollbar-thin::-webkit-scrollbar-track { background: #1e293b; }
|
|
26
|
-
.scrollbar-thin::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
|
|
27
|
-
.chunk-row { border-left: 2px solid transparent; }
|
|
28
|
-
.chunk-row:hover { background: #1e293b; }
|
|
29
|
-
.chunk-row.selected { background: #1e293b; border-left-color: #06b6d4; }
|
|
30
|
-
.file-item:hover { background: #1e293b; }
|
|
31
|
-
.file-item.active { background: #1e293b; border-left: 2px solid #06b6d4; }
|
|
32
|
-
.kpi-card { background: #1e293b; border: 1px solid #334155; border-radius: 0.75rem; }
|
|
33
|
-
.nav-btn.active { background: #06b6d4; color: #0f172a; }
|
|
34
|
-
pre code.hljs { background: transparent; padding: 0; }
|
|
35
|
-
</style>
|
|
7
|
+
<link rel="stylesheet" href="/ui/app.css">
|
|
8
|
+
<link rel="stylesheet" href="/ui/github-dark.css">
|
|
9
|
+
<script src="/ui/highlight.min.js"></script>
|
|
36
10
|
</head>
|
|
37
11
|
<body class="h-screen flex flex-col overflow-hidden">
|
|
38
12
|
<!-- Top Bar -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-rag-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "OpenCode plugin for local-first RAG-based semantic code search",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin-entry.js",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsc -p tsconfig.build.json",
|
|
49
|
-
"
|
|
49
|
+
"build:ui": "node scripts/build-ui-css.js",
|
|
50
|
+
"postbuild": "node -e \"const fs=require('fs'),path=require('path');fs.mkdirSync('dist/types',{recursive:true});fs.copyFileSync('src/types/opencode-plugin.d.ts','dist/types/opencode-plugin.d.ts');const uiDir=path.join('dist','web','ui');fs.mkdirSync(uiDir,{recursive:true});fs.copyFileSync('src/web/ui/index.html',path.join(uiDir,'index.html'));['app.css','github-dark.css','highlight.min.js'].forEach(f=>{const src=path.join('src/web/ui',f);if(fs.existsSync(src))fs.copyFileSync(src,path.join(uiDir,f));});\"",
|
|
50
51
|
"prepublishOnly": "npm run build",
|
|
51
52
|
"typecheck": "tsc --noEmit",
|
|
52
53
|
"test": "node -e \"const {spawnSync}=require('node:child_process');const {globSync}=require('node:fs');const testFiles=globSync('src/**/*.test.ts');if(testFiles.length===0){console.log('No test files found under src; skipping npm test.');process.exit(0);}const result=spawnSync(process.execPath,['--import','tsx','--test','--test-force-exit',...testFiles],{stdio:'inherit'});process.exit(typeof result.status==='number'?result.status:1);\"",
|
|
@@ -89,6 +90,7 @@
|
|
|
89
90
|
"canvas": "^3.2.3",
|
|
90
91
|
"chokidar": "^4.0.3",
|
|
91
92
|
"commander": "^13.1.0",
|
|
93
|
+
"js-tiktoken": "^1.0.21",
|
|
92
94
|
"mammoth": "^1.12.0",
|
|
93
95
|
"p-limit": "^7.3.0",
|
|
94
96
|
"pdfjs-dist": "^5.7.284",
|
|
@@ -112,7 +114,11 @@
|
|
|
112
114
|
"@types/node": "^22.15.0",
|
|
113
115
|
"@types/react": "^19.2.17",
|
|
114
116
|
"@types/word-extractor": "^1.0.6",
|
|
117
|
+
"autoprefixer": "^10.5.0",
|
|
118
|
+
"highlight.js": "^11.9.0",
|
|
119
|
+
"postcss": "^8.5.15",
|
|
115
120
|
"solid-js": "^1.9.12",
|
|
121
|
+
"tailwindcss": "^3.4.19",
|
|
116
122
|
"tree-sitter-cli": "^0.26.9",
|
|
117
123
|
"tree-sitter-containerfile": "^0.8.0",
|
|
118
124
|
"tsx": "^4.19.4",
|