@ulpi/codemap 0.1.0 → 0.3.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/dist/{chunk-SNG7R3UC.js → chunk-2OBAJYRP.js} +7 -6
- package/dist/{chunk-5ISZDDN7.js → chunk-5ZY5AWD2.js} +2 -2
- package/dist/{chunk-7SDODQZD.js → chunk-WR342MP3.js} +2 -2
- package/dist/grammars/tree-sitter-c.wasm +0 -0
- package/dist/grammars/tree-sitter-cpp.wasm +0 -0
- package/dist/grammars/tree-sitter-css.wasm +0 -0
- package/dist/grammars/tree-sitter-dart.wasm +0 -0
- package/dist/grammars/tree-sitter-elixir.wasm +0 -0
- package/dist/grammars/tree-sitter-go.wasm +0 -0
- package/dist/grammars/tree-sitter-html.wasm +0 -0
- package/dist/grammars/tree-sitter-java.wasm +0 -0
- package/dist/grammars/tree-sitter-javascript.wasm +0 -0
- package/dist/grammars/tree-sitter-kotlin.wasm +0 -0
- package/dist/grammars/tree-sitter-lua.wasm +0 -0
- package/dist/grammars/tree-sitter-php.wasm +0 -0
- package/dist/grammars/tree-sitter-python.wasm +0 -0
- package/dist/grammars/tree-sitter-ruby.wasm +0 -0
- package/dist/grammars/tree-sitter-rust.wasm +0 -0
- package/dist/grammars/tree-sitter-scala.wasm +0 -0
- package/dist/grammars/tree-sitter-swift.wasm +0 -0
- package/dist/grammars/tree-sitter-tsx.wasm +0 -0
- package/dist/grammars/tree-sitter-typescript.wasm +0 -0
- package/dist/grammars/web-tree-sitter.wasm +0 -0
- package/dist/index.js +3637 -1446
- package/dist/{openai-RC75RP4O-NSFZC5O6.js → openai-MC25ARQ6-A4GDBAVK.js} +2 -2
- package/dist/{ulpi-KLKEAQC3-5ATUONU7.js → ulpi-6CO2IWHH-D3ARDCAY.js} +2 -2
- package/package.json +24 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// ../../packages/intelligence/embed-engine/dist/chunk-
|
|
3
|
+
// ../../packages/intelligence/embed-engine/dist/chunk-TCXPZAEJ.js
|
|
4
4
|
import { readFileSync } from "fs";
|
|
5
5
|
import { homedir } from "os";
|
|
6
6
|
import { join } from "path";
|
|
@@ -17,19 +17,20 @@ function loadSettings() {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
function resolveApiKey(provider) {
|
|
20
|
-
const settings = loadSettings();
|
|
21
|
-
const fromSettings = settings.apiKeys?.[provider];
|
|
22
|
-
if (fromSettings) return fromSettings;
|
|
23
20
|
const envMap = {
|
|
24
21
|
openai: "OPENAI_API_KEY",
|
|
25
22
|
anthropic: "ANTHROPIC_API_KEY",
|
|
26
23
|
ulpi: "ULPI_API_KEY"
|
|
27
24
|
};
|
|
28
|
-
|
|
25
|
+
const fromEnv = process.env[envMap[provider]];
|
|
26
|
+
if (fromEnv) return fromEnv;
|
|
27
|
+
const settings = loadSettings();
|
|
28
|
+
return settings.apiKeys?.[provider];
|
|
29
29
|
}
|
|
30
30
|
function resolveUlpiUrl() {
|
|
31
|
+
if (process.env.ULPI_EMBED_URL) return process.env.ULPI_EMBED_URL;
|
|
31
32
|
const settings = loadSettings();
|
|
32
|
-
return settings.ulpiUrl ??
|
|
33
|
+
return settings.ulpiUrl ?? "http://localhost:10271";
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveApiKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2OBAJYRP.js";
|
|
5
5
|
|
|
6
|
-
// ../../packages/intelligence/embed-engine/dist/chunk-
|
|
6
|
+
// ../../packages/intelligence/embed-engine/dist/chunk-QWIKSSAV.js
|
|
7
7
|
var OPENAI_EMBEDDINGS_URL = "https://api.openai.com/v1/embeddings";
|
|
8
8
|
var MAX_RETRIES = 3;
|
|
9
9
|
var RETRY_BASE_MS = 1e3;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
resolveApiKey,
|
|
4
4
|
resolveUlpiUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2OBAJYRP.js";
|
|
6
6
|
|
|
7
|
-
// ../../packages/intelligence/embed-engine/dist/chunk-
|
|
7
|
+
// ../../packages/intelligence/embed-engine/dist/chunk-ZOECLV2E.js
|
|
8
8
|
var MAX_RETRIES = 3;
|
|
9
9
|
var RETRY_BASE_MS = 1e3;
|
|
10
10
|
var BATCH_POLL_INTERVAL_MS = 2e3;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|