@comfanion/usethis_search 3.0.0-dev.7 → 3.0.0-dev.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.
Files changed (3) hide show
  1. package/api.ts +2 -6
  2. package/index.ts +3 -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 the plugin)
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 the API with GraphDB instance
14
+ * Initialize API with GraphDB instance
19
15
  */
20
16
  export function initGraphAPI(db: GraphDB): void {
21
17
  graphDBInstance = db
package/index.ts CHANGED
@@ -7,6 +7,9 @@ import FileIndexerPlugin from "./file-indexer"
7
7
  // Export API for plugin-to-plugin communication
8
8
  export * from "./api"
9
9
 
10
+ // Export CodebaseIndexer for other plugins (e.g., mind)
11
+ export { CodebaseIndexer } from "./vectorizer/index.js"
12
+
10
13
  const UsethisSearchPlugin: Plugin = async ({ directory, client }) => {
11
14
  // Start file indexer (background indexing + event handling)
12
15
  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.7",
3
+ "version": "3.0.0-dev.8",
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",