Skip to content

Commit de7397f

Browse files
fix: extensionless imports in synapse scripts for the release typecheck
Co-authored-by: Alfonso <alfonso-magic-context@users.noreply.github.com>
1 parent f2b07e3 commit de7397f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/plugin/scripts/bench-synapse-vs-local.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
import { homedir } from "node:os";
1010
import { join } from "node:path";
11-
import { SynapseEmbeddingProvider } from "../src/features/magic-context/memory/embedding-synapse.ts";
12-
import { LocalEmbeddingProvider } from "../src/features/magic-context/memory/embedding-local.ts";
11+
import { SynapseEmbeddingProvider } from "../src/features/magic-context/memory/embedding-synapse";
12+
import { LocalEmbeddingProvider } from "../src/features/magic-context/memory/embedding-local";
1313

1414
const nIdx = process.argv.indexOf("--n");
1515
const N = nIdx >= 0 ? Number(process.argv[nIdx + 1]) : 100;

packages/plugin/scripts/test-synapse-embed.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { existsSync } from "node:fs";
2121
import {
2222
SYNAPSE_DEFAULT_MODEL,
2323
SynapseEmbeddingProvider,
24-
} from "../src/features/magic-context/memory/embedding-synapse.ts";
24+
} from "../src/features/magic-context/memory/embedding-synapse";
2525

2626
const args = process.argv.slice(2);
2727
const compare = args.includes("--compare");
@@ -93,7 +93,7 @@ console.log(
9393
if (compare) {
9494
// 4. Rank comparison against the primary lane vectors already in context.db.
9595
step("rank-compare against primary lane (read-only context.db)...");
96-
const { openDatabase } = await import("../src/features/magic-context/storage.ts");
96+
const { openDatabase } = await import("../src/features/magic-context/storage");
9797
const db = openDatabase();
9898
if (!db) throw new Error("context.db unavailable");
9999
const rows = db
@@ -151,7 +151,7 @@ if (compare) {
151151
// Build the primary-lane provider directly from the user config so query
152152
// embeds hit the same lane the stored vectors came from.
153153
const { OpenAICompatibleEmbeddingProvider } = await import(
154-
"../src/features/magic-context/memory/embedding-openai.ts"
154+
"../src/features/magic-context/memory/embedding-openai"
155155
);
156156
const { readFileSync } = await import("node:fs");
157157
const apiKey = readFileSync(join(homedir(), ".config", "openrouter.key"), "utf8").trim();

0 commit comments

Comments
 (0)