mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 21:31:46 +00:00
Fix: bin file in package.json
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/mcp-server.ts",
|
"main": "src/mcp-server.ts",
|
||||||
"bin": {
|
"bin": {
|
||||||
"ask262": "bun run src/mcp-server.ts"
|
"ask262": "src/mcp-server.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit",
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bun
|
||||||
/**
|
/**
|
||||||
* Ask262 MCP Server
|
* Ask262 MCP Server
|
||||||
* Provides MCP-compatible tools for exploring the ECMAScript specification.
|
* Provides MCP-compatible tools for exploring the ECMAScript specification.
|
||||||
@@ -81,7 +82,7 @@ const embeddings = new OllamaEmbeddings({
|
|||||||
baseUrl: process.env.OLLAMA_HOST,
|
baseUrl: process.env.OLLAMA_HOST,
|
||||||
});
|
});
|
||||||
|
|
||||||
async function main() {
|
export async function main() {
|
||||||
// Connect to LanceDB
|
// Connect to LanceDB
|
||||||
const db = await lancedbSdk.connect(STORAGE_DIR);
|
const db = await lancedbSdk.connect(STORAGE_DIR);
|
||||||
const table = await db.openTable("spec_vectors");
|
const table = await db.openTable("spec_vectors");
|
||||||
|
|||||||
Reference in New Issue
Block a user