@comfanion/usethis_search 3.0.0-dev.7 → 3.0.0-dev.9
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/api.ts +2 -6
- package/index.ts +0 -3
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -6,16 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { GraphDB } from "./vectorizer/graph-db"
|
|
9
|
-
import { CodebaseIndexer } from "./vectorizer/index.js"
|
|
10
9
|
|
|
11
|
-
// Global GraphDB instance (shared across
|
|
10
|
+
// Global GraphDB instance (shared across plugins)
|
|
12
11
|
let graphDBInstance: GraphDB | null = null
|
|
13
12
|
|
|
14
|
-
// Export CodebaseIndexer for read-interceptor
|
|
15
|
-
export { CodebaseIndexer }
|
|
16
|
-
|
|
17
13
|
/**
|
|
18
|
-
* Initialize
|
|
14
|
+
* Initialize API with GraphDB instance
|
|
19
15
|
*/
|
|
20
16
|
export function initGraphAPI(db: GraphDB): void {
|
|
21
17
|
graphDBInstance = db
|
package/index.ts
CHANGED
|
@@ -4,9 +4,6 @@ import search from "./tools/search"
|
|
|
4
4
|
import codeindex from "./tools/codeindex"
|
|
5
5
|
import FileIndexerPlugin from "./file-indexer"
|
|
6
6
|
|
|
7
|
-
// Export API for plugin-to-plugin communication
|
|
8
|
-
export * from "./api"
|
|
9
|
-
|
|
10
7
|
const UsethisSearchPlugin: Plugin = async ({ directory, client }) => {
|
|
11
8
|
// Start file indexer (background indexing + event handling)
|
|
12
9
|
let fileIndexerEvent: ((args: any) => Promise<void>) | null = null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comfanion/usethis_search",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.9",
|
|
4
4
|
"description": "OpenCode plugin: semantic search with graph-based context (v3: graph relations, 1-hop context, LSP + regex analyzers)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|