@theokit/sdk 4.54.0 → 4.56.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/CHANGELOG.md +159 -0
- package/dist/a2a/index.cjs +13 -4
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.d.cts +1 -1
- package/dist/a2a/index.d.ts +1 -1
- package/dist/a2a/index.js +13 -5
- package/dist/a2a/index.js.map +1 -1
- package/dist/a2a/message-bus.d.cts +33 -4
- package/dist/a2a/message-bus.d.ts +33 -4
- package/dist/{agent-CIUgz7cN.d.cts → agent-D3Xr_-6Z.d.cts} +61 -6
- package/dist/{agent-DSec-E0c.d.ts → agent-DIu6FooJ.d.ts} +61 -6
- package/dist/{agent-VGD5WL4N.js → agent-K3PQBS7D.js} +10 -9
- package/dist/{agent-VGD5WL4N.js.map → agent-K3PQBS7D.js.map} +1 -1
- package/dist/{agent-NOEGF4GI.cjs → agent-PJMBK7HQ.cjs} +11 -10
- package/dist/{agent-NOEGF4GI.cjs.map → agent-PJMBK7HQ.cjs.map} +1 -1
- package/dist/{chunk-SSQZA3DZ.js → chunk-2BDH744Z.js} +3 -3
- package/dist/{chunk-SSQZA3DZ.js.map → chunk-2BDH744Z.js.map} +1 -1
- package/dist/chunk-6HTXPPHK.cjs +18 -0
- package/dist/{chunk-3KGLRRFC.cjs.map → chunk-6HTXPPHK.cjs.map} +1 -1
- package/dist/{chunk-5UOVYM3P.cjs → chunk-6VLKVX7O.cjs} +131 -54
- package/dist/chunk-6VLKVX7O.cjs.map +1 -0
- package/dist/{chunk-5PHVENFV.js → chunk-7FHZ4VQX.js} +3 -55
- package/dist/chunk-7FHZ4VQX.js.map +1 -0
- package/dist/{chunk-Q47R5E2X.cjs → chunk-E3WZ6Y4H.cjs} +7 -59
- package/dist/chunk-E3WZ6Y4H.cjs.map +1 -0
- package/dist/{chunk-TTHBHAJI.cjs → chunk-H5GOSXSC.cjs} +4 -4
- package/dist/{chunk-TTHBHAJI.cjs.map → chunk-H5GOSXSC.cjs.map} +1 -1
- package/dist/{chunk-UNDROG5N.cjs → chunk-HLPSLDGL.cjs} +94 -26
- package/dist/chunk-HLPSLDGL.cjs.map +1 -0
- package/dist/{chunk-TPTZA6NI.js → chunk-KBXWEWKS.js} +70 -29
- package/dist/chunk-KBXWEWKS.js.map +1 -0
- package/dist/chunk-KRD3GQAA.cjs +71 -0
- package/dist/chunk-KRD3GQAA.cjs.map +1 -0
- package/dist/chunk-KVNWIAO4.js +68 -0
- package/dist/chunk-KVNWIAO4.js.map +1 -0
- package/dist/{chunk-UFAO4T7Z.cjs → chunk-LQYQHXIW.cjs} +129 -88
- package/dist/chunk-LQYQHXIW.cjs.map +1 -0
- package/dist/{chunk-AGSBJD2L.js → chunk-M7UHYBEY.js} +3 -3
- package/dist/{chunk-AGSBJD2L.js.map → chunk-M7UHYBEY.js.map} +1 -1
- package/dist/{chunk-VDEWG5TV.js → chunk-MVAPK2BX.js} +77 -9
- package/dist/chunk-MVAPK2BX.js.map +1 -0
- package/dist/{chunk-RM7Y65IG.cjs → chunk-NIRE5CNO.cjs} +10 -3
- package/dist/{chunk-FXEUP75G.js.map → chunk-NIRE5CNO.cjs.map} +1 -1
- package/dist/{chunk-DAPSQZT4.js → chunk-ODTZ7HX3.js} +131 -54
- package/dist/chunk-ODTZ7HX3.js.map +1 -0
- package/dist/{chunk-DUIF54UP.js → chunk-OHBIUXKM.js} +3 -3
- package/dist/{chunk-DUIF54UP.js.map → chunk-OHBIUXKM.js.map} +1 -1
- package/dist/{chunk-FXEUP75G.js → chunk-Q4CMI2LP.js} +9 -2
- package/dist/chunk-Q4CMI2LP.js.map +1 -0
- package/dist/{chunk-5BJV5UPY.cjs → chunk-V2UUGUY4.cjs} +3 -3
- package/dist/{chunk-5BJV5UPY.cjs.map → chunk-V2UUGUY4.cjs.map} +1 -1
- package/dist/{compact-session-K5LXTBPJ.js → compact-session-FUJDVF7B.js} +4 -4
- package/dist/{compact-session-K5LXTBPJ.js.map → compact-session-FUJDVF7B.js.map} +1 -1
- package/dist/{compact-session-YCT6JMBX.cjs → compact-session-LEWF554G.cjs} +12 -12
- package/dist/{compact-session-YCT6JMBX.cjs.map → compact-session-LEWF554G.cjs.map} +1 -1
- package/dist/context/index.cjs +6 -5
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.js +3 -2
- package/dist/context/index.js.map +1 -1
- package/dist/{cron-DxxeQ-sK.d.cts → cron-BcWmzWzT.d.cts} +1 -1
- package/dist/{cron-CRwy2JBF.d.ts → cron-De6hzWCF.d.ts} +1 -1
- package/dist/cron.cjs +10 -9
- package/dist/cron.d.cts +2 -2
- package/dist/cron.d.ts +2 -2
- package/dist/cron.js +9 -8
- package/dist/eval.cjs +9 -8
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +8 -7
- package/dist/eval.js.map +1 -1
- package/dist/{index-manager-ZMRJ6ZII.js → index-manager-WBIMDVQT.js} +4 -3
- package/dist/{index-manager-ZMRJ6ZII.js.map → index-manager-WBIMDVQT.js.map} +1 -1
- package/dist/{index-manager-NG5YENWO.cjs → index-manager-WC5ZVJWO.cjs} +5 -4
- package/dist/{index-manager-NG5YENWO.cjs.map → index-manager-WC5ZVJWO.cjs.map} +1 -1
- package/dist/index.cjs +47 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-DDR6X6PC.js → inject-session-BJMJH5BX.js} +3 -3
- package/dist/{inject-session-DDR6X6PC.js.map → inject-session-BJMJH5BX.js.map} +1 -1
- package/dist/{inject-session-XLO3KTBM.cjs → inject-session-WQGGMCQY.cjs} +4 -4
- package/dist/{inject-session-XLO3KTBM.cjs.map → inject-session-WQGGMCQY.cjs.map} +1 -1
- package/dist/internal/llm/prompt-cache-key.d.ts +1 -0
- package/dist/internal/llm/responses.d.ts +67 -1
- package/dist/internal/llm/types.d.ts +15 -0
- package/dist/internal/local-agent/real-local-run-tools.d.ts +17 -6
- package/dist/internal/memory/storage/markdown-store.d.ts +14 -2
- package/dist/internal/memory/storage/memory-file.d.ts +54 -0
- package/dist/internal/memory/types.d.ts +28 -0
- package/dist/models.cjs +9 -9
- package/dist/models.js +1 -1
- package/dist/providers.cjs +4 -4
- package/dist/providers.js +2 -2
- package/dist/sandbox/index.cjs +1 -1
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.js +1 -1
- package/dist/sandbox/index.js.map +1 -1
- package/dist/subagents-loader.d.cts +1 -1
- package/dist/subagents-loader.d.ts +1 -1
- package/dist/types/agent.d.ts +47 -5
- package/dist/types/provider-profile.d.ts +13 -0
- package/docs/error-codes.md +22 -20
- package/docs/harness-capability-map.md +3 -1
- package/package.json +1 -1
- package/dist/chunk-3KGLRRFC.cjs +0 -18
- package/dist/chunk-5PHVENFV.js.map +0 -1
- package/dist/chunk-5UOVYM3P.cjs.map +0 -1
- package/dist/chunk-DAPSQZT4.js.map +0 -1
- package/dist/chunk-Q47R5E2X.cjs.map +0 -1
- package/dist/chunk-RM7Y65IG.cjs.map +0 -1
- package/dist/chunk-TPTZA6NI.js.map +0 -1
- package/dist/chunk-UFAO4T7Z.cjs.map +0 -1
- package/dist/chunk-UNDROG5N.cjs.map +0 -1
- package/dist/chunk-VDEWG5TV.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -8,10 +8,10 @@ require('./chunk-QDED6YO6.cjs');
|
|
|
8
8
|
var chunkGNT35C5U_cjs = require('./chunk-GNT35C5U.cjs');
|
|
9
9
|
require('./chunk-XWL6O3SW.cjs');
|
|
10
10
|
require('./chunk-VTYY7XL5.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
var
|
|
11
|
+
var chunkH5GOSXSC_cjs = require('./chunk-H5GOSXSC.cjs');
|
|
12
|
+
var chunkLQYQHXIW_cjs = require('./chunk-LQYQHXIW.cjs');
|
|
13
|
+
require('./chunk-V2UUGUY4.cjs');
|
|
14
|
+
var chunk6VLKVX7O_cjs = require('./chunk-6VLKVX7O.cjs');
|
|
15
15
|
require('./chunk-53CBTBWO.cjs');
|
|
16
16
|
require('./chunk-BV2MWEMV.cjs');
|
|
17
17
|
var chunkNGESVVJN_cjs = require('./chunk-NGESVVJN.cjs');
|
|
@@ -19,13 +19,14 @@ require('./chunk-BUUUWQMB.cjs');
|
|
|
19
19
|
require('./chunk-EI2Q7SJ5.cjs');
|
|
20
20
|
require('./chunk-GHX4P3V2.cjs');
|
|
21
21
|
require('./chunk-YPJ5NH5N.cjs');
|
|
22
|
-
var
|
|
22
|
+
var chunkHLPSLDGL_cjs = require('./chunk-HLPSLDGL.cjs');
|
|
23
23
|
require('./chunk-F3YZMOAU.cjs');
|
|
24
24
|
require('./chunk-4OTIXDMU.cjs');
|
|
25
25
|
require('./chunk-DQKERTND.cjs');
|
|
26
26
|
require('./chunk-CTCGWIUD.cjs');
|
|
27
27
|
require('./chunk-2ZPEDVLM.cjs');
|
|
28
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-E3WZ6Y4H.cjs');
|
|
29
|
+
require('./chunk-KRD3GQAA.cjs');
|
|
29
30
|
require('./chunk-U2AC6JUP.cjs');
|
|
30
31
|
require('./chunk-MUUQ2WFJ.cjs');
|
|
31
32
|
var chunkWJVHMTKB_cjs = require('./chunk-WJVHMTKB.cjs');
|
|
@@ -51,8 +52,8 @@ require('./chunk-HJBMA5MB.cjs');
|
|
|
51
52
|
require('./chunk-IWBGCBR6.cjs');
|
|
52
53
|
require('./chunk-XSX2UU6Y.cjs');
|
|
53
54
|
var chunk3EE6LVWT_cjs = require('./chunk-3EE6LVWT.cjs');
|
|
54
|
-
require('./chunk-
|
|
55
|
-
var
|
|
55
|
+
require('./chunk-6HTXPPHK.cjs');
|
|
56
|
+
var chunkNIRE5CNO_cjs = require('./chunk-NIRE5CNO.cjs');
|
|
56
57
|
require('./chunk-5USCYPPI.cjs');
|
|
57
58
|
require('./chunk-BVZW2B5V.cjs');
|
|
58
59
|
require('./chunk-52NKC5HT.cjs');
|
|
@@ -68,8 +69,8 @@ var fs = require('fs');
|
|
|
68
69
|
// src/agent-factory.ts
|
|
69
70
|
function createAgentFactory(common) {
|
|
70
71
|
return {
|
|
71
|
-
forSession: (agentId, overrides) =>
|
|
72
|
-
getOrCreate: (agentId, overrides) =>
|
|
72
|
+
forSession: (agentId, overrides) => chunkLQYQHXIW_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
73
|
+
getOrCreate: (agentId, overrides) => chunkLQYQHXIW_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
76
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -643,8 +644,8 @@ var Provider = class _Provider {
|
|
|
643
644
|
* `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
|
|
644
645
|
*/
|
|
645
646
|
static builtins() {
|
|
646
|
-
|
|
647
|
-
return
|
|
647
|
+
chunkNIRE5CNO_cjs.registerBuiltins();
|
|
648
|
+
return chunkNIRE5CNO_cjs.listProviders().map((profile) => defineProvider(profile));
|
|
648
649
|
}
|
|
649
650
|
/**
|
|
650
651
|
* The builtin serving `modelId`, or `undefined` when none does.
|
|
@@ -1017,7 +1018,7 @@ function foldLayers(entries, accumulatingKeys = []) {
|
|
|
1017
1018
|
return combined;
|
|
1018
1019
|
}
|
|
1019
1020
|
function diaryPath(cwd) {
|
|
1020
|
-
return path.join(
|
|
1021
|
+
return path.join(chunk6VLKVX7O_cjs.memoryDir(cwd), "dream-diary.md");
|
|
1021
1022
|
}
|
|
1022
1023
|
function renderDiaryEntry(entry) {
|
|
1023
1024
|
const stamp = new Date(entry.timestampMs).toISOString();
|
|
@@ -1164,7 +1165,7 @@ async function runInner(options) {
|
|
|
1164
1165
|
const now = options.now ?? Date.now;
|
|
1165
1166
|
const timestampMs = now();
|
|
1166
1167
|
try {
|
|
1167
|
-
const facts = await
|
|
1168
|
+
const facts = await chunk6VLKVX7O_cjs.readFactsFromMarkdown(options.cwd);
|
|
1168
1169
|
if (facts.length === 0) {
|
|
1169
1170
|
return emptyResult("skipped");
|
|
1170
1171
|
}
|
|
@@ -1198,7 +1199,7 @@ async function runInner(options) {
|
|
|
1198
1199
|
}
|
|
1199
1200
|
async function writeConsolidatedNotes(cwd, clusters, timestampMs) {
|
|
1200
1201
|
if (clusters.length === 0) return 0;
|
|
1201
|
-
const notesDir = path.join(
|
|
1202
|
+
const notesDir = path.join(chunk6VLKVX7O_cjs.memoryDir(cwd), "notes");
|
|
1202
1203
|
await promises.mkdir(notesDir, { recursive: true });
|
|
1203
1204
|
const isoSlug = new Date(timestampMs).toISOString().replace(/[^\dT]/g, "-");
|
|
1204
1205
|
const file = path.join(notesDir, `dreamed-${isoSlug}.md`);
|
|
@@ -1264,8 +1265,8 @@ var Memory = {
|
|
|
1264
1265
|
openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
|
|
1265
1266
|
return await peer.IndexManager.open(openArgs);
|
|
1266
1267
|
}
|
|
1267
|
-
const { IndexManager } = await import('./index-manager-
|
|
1268
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1268
|
+
const { IndexManager } = await import('./index-manager-WC5ZVJWO.cjs');
|
|
1269
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkLQYQHXIW_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1269
1270
|
return await IndexManager.open(openArgs);
|
|
1270
1271
|
},
|
|
1271
1272
|
/**
|
|
@@ -1276,7 +1277,7 @@ var Memory = {
|
|
|
1276
1277
|
*/
|
|
1277
1278
|
async runDreamingSweep(opts) {
|
|
1278
1279
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1279
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1280
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkLQYQHXIW_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1280
1281
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1281
1282
|
const result = peer !== null ? (
|
|
1282
1283
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1342,9 +1343,9 @@ function extractRawId(id, expectedAdapterId) {
|
|
|
1342
1343
|
return id.slice(prefix.length);
|
|
1343
1344
|
}
|
|
1344
1345
|
async function readAllSqliteFacts(cwd) {
|
|
1345
|
-
const dbPath =
|
|
1346
|
+
const dbPath = chunk6VLKVX7O_cjs.defaultIndexPath(cwd);
|
|
1346
1347
|
if (!fs.existsSync(dbPath)) return [];
|
|
1347
|
-
const db = await
|
|
1348
|
+
const db = await chunk6VLKVX7O_cjs.openMemoryDb({ filePath: dbPath });
|
|
1348
1349
|
try {
|
|
1349
1350
|
const stmt = db.prepare("SELECT id, path, source, start_line, end_line, text FROM chunks");
|
|
1350
1351
|
const rows = stmt.all();
|
|
@@ -1363,7 +1364,7 @@ function nfcEqual(a, b) {
|
|
|
1363
1364
|
}
|
|
1364
1365
|
async function migrateSqliteToLance(opts) {
|
|
1365
1366
|
const cwd = opts.cwd;
|
|
1366
|
-
const finalPath =
|
|
1367
|
+
const finalPath = chunk6VLKVX7O_cjs.lanceStoragePath(cwd);
|
|
1367
1368
|
const newPath = path.join(cwd, ".theokit", "memory", "lance-new");
|
|
1368
1369
|
const rawLog = opts.logger ?? ((m) => console.log(m));
|
|
1369
1370
|
const log = (m) => rawLog(chunkJTB5Q42C_cjs.redactSecrets(m));
|
|
@@ -1407,7 +1408,7 @@ async function migrateSqliteToLance(opts) {
|
|
|
1407
1408
|
};
|
|
1408
1409
|
fs.mkdirSync(newPath, { recursive: true });
|
|
1409
1410
|
log(`Writing Lance index to ${newPath} ...`);
|
|
1410
|
-
const lance = await
|
|
1411
|
+
const lance = await chunk6VLKVX7O_cjs.LanceIndex.open({
|
|
1411
1412
|
cwd,
|
|
1412
1413
|
embedding: placeholderEmbedding,
|
|
1413
1414
|
storagePath: newPath
|
|
@@ -1840,7 +1841,7 @@ function isBuiltAgent(m) {
|
|
|
1840
1841
|
return typeof m.send === "function";
|
|
1841
1842
|
}
|
|
1842
1843
|
async function materialize(def, index) {
|
|
1843
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1844
|
+
const { Agent: Agent2 } = await import('./agent-PJMBK7HQ.cjs');
|
|
1844
1845
|
return Agent2.create({
|
|
1845
1846
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1846
1847
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
@@ -1982,7 +1983,7 @@ var FIXTURE_USER = {
|
|
|
1982
1983
|
};
|
|
1983
1984
|
var FIXTURE_MODELS = [
|
|
1984
1985
|
{
|
|
1985
|
-
id:
|
|
1986
|
+
id: chunkLQYQHXIW_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1986
1987
|
name: "Gemini 2.0 Flash",
|
|
1987
1988
|
displayName: "Gemini 2.0 Flash",
|
|
1988
1989
|
parameters: [
|
|
@@ -2058,7 +2059,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
2058
2059
|
try {
|
|
2059
2060
|
response = await fetch(url, { method: "GET" });
|
|
2060
2061
|
} catch (fetchErr) {
|
|
2061
|
-
const mapped =
|
|
2062
|
+
const mapped = chunkHLPSLDGL_cjs.mapOllamaTransportError({
|
|
2062
2063
|
providerId: "ollama",
|
|
2063
2064
|
cause: fetchErr,
|
|
2064
2065
|
endpoint: "/v1/models"
|
|
@@ -2070,8 +2071,8 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
2070
2071
|
);
|
|
2071
2072
|
}
|
|
2072
2073
|
if (!response.ok) {
|
|
2073
|
-
const body = await
|
|
2074
|
-
const mapped =
|
|
2074
|
+
const body = await chunkHLPSLDGL_cjs.readErrorResponseBody(response);
|
|
2075
|
+
const mapped = chunkHLPSLDGL_cjs.mapOllamaHttpError({
|
|
2075
2076
|
providerId: "ollama",
|
|
2076
2077
|
status: response.status,
|
|
2077
2078
|
body,
|
|
@@ -2134,9 +2135,9 @@ var Theokit = class {
|
|
|
2134
2135
|
});
|
|
2135
2136
|
},
|
|
2136
2137
|
capabilities: (providerOrModelId) => {
|
|
2137
|
-
|
|
2138
|
+
chunkNIRE5CNO_cjs.registerBuiltins();
|
|
2138
2139
|
const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
|
|
2139
|
-
return
|
|
2140
|
+
return chunkNIRE5CNO_cjs.getCatalogCapabilities(providerId);
|
|
2140
2141
|
}
|
|
2141
2142
|
};
|
|
2142
2143
|
/**
|
|
@@ -2175,8 +2176,8 @@ var Theokit = class {
|
|
|
2175
2176
|
*/
|
|
2176
2177
|
static inspect = {
|
|
2177
2178
|
builtinProviders: () => {
|
|
2178
|
-
|
|
2179
|
-
return
|
|
2179
|
+
chunkNIRE5CNO_cjs.registerBuiltins();
|
|
2180
|
+
return chunkNIRE5CNO_cjs.listProviders().map((p) => ({
|
|
2180
2181
|
name: p.name,
|
|
2181
2182
|
apiMode: p.apiMode,
|
|
2182
2183
|
authType: p.authType,
|
|
@@ -2185,7 +2186,7 @@ var Theokit = class {
|
|
|
2185
2186
|
envVars: p.envVars
|
|
2186
2187
|
}));
|
|
2187
2188
|
},
|
|
2188
|
-
embeddingAdapters: () => Object.entries(
|
|
2189
|
+
embeddingAdapters: () => Object.entries(chunkLQYQHXIW_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
2189
2190
|
id,
|
|
2190
2191
|
transport: adapter.transport,
|
|
2191
2192
|
defaultModel: adapter.defaultModel
|
|
@@ -2202,9 +2203,9 @@ var Theokit = class {
|
|
|
2202
2203
|
// and may be promoted onto Theokit once the agent.ts cycle is broken.
|
|
2203
2204
|
};
|
|
2204
2205
|
async function maybeListLocalModels(providerName) {
|
|
2205
|
-
|
|
2206
|
-
await
|
|
2207
|
-
const profile =
|
|
2206
|
+
chunkNIRE5CNO_cjs.registerBuiltins();
|
|
2207
|
+
await chunkHLPSLDGL_cjs.discoverProviderPlugins();
|
|
2208
|
+
const profile = chunkNIRE5CNO_cjs.getProviderProfile(providerName);
|
|
2208
2209
|
if (profile === void 0) return void 0;
|
|
2209
2210
|
if (profile.authType !== "none") return void 0;
|
|
2210
2211
|
const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
|
|
@@ -2221,13 +2222,13 @@ async function executeCatalogRequest(request) {
|
|
|
2221
2222
|
if (apiKey === void 0) {
|
|
2222
2223
|
throw new chunkK3FW2XZD_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
|
|
2223
2224
|
}
|
|
2224
|
-
if (
|
|
2225
|
+
if (chunkHLPSLDGL_cjs.shouldUseFixtureMode(apiKey)) {
|
|
2225
2226
|
return request.fixture;
|
|
2226
2227
|
}
|
|
2227
|
-
if (!
|
|
2228
|
+
if (!chunkHLPSLDGL_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
|
|
2228
2229
|
throw new chunkK3FW2XZD_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
|
|
2229
2230
|
}
|
|
2230
|
-
return
|
|
2231
|
+
return chunkHLPSLDGL_cjs.httpRequest(request.path, { apiKey });
|
|
2231
2232
|
}
|
|
2232
2233
|
|
|
2233
2234
|
// src/tool-blast-radius.ts
|
|
@@ -2404,35 +2405,35 @@ Object.defineProperty(exports, "fn", {
|
|
|
2404
2405
|
});
|
|
2405
2406
|
Object.defineProperty(exports, "Cron", {
|
|
2406
2407
|
enumerable: true,
|
|
2407
|
-
get: function () { return
|
|
2408
|
+
get: function () { return chunkH5GOSXSC_cjs.Cron; }
|
|
2408
2409
|
});
|
|
2409
2410
|
Object.defineProperty(exports, "Agent", {
|
|
2410
2411
|
enumerable: true,
|
|
2411
|
-
get: function () { return
|
|
2412
|
+
get: function () { return chunkLQYQHXIW_cjs.Agent; }
|
|
2412
2413
|
});
|
|
2413
2414
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2414
2415
|
enumerable: true,
|
|
2415
|
-
get: function () { return
|
|
2416
|
+
get: function () { return chunkLQYQHXIW_cjs.AgentBuilder; }
|
|
2416
2417
|
});
|
|
2417
2418
|
Object.defineProperty(exports, "Tool", {
|
|
2418
2419
|
enumerable: true,
|
|
2419
|
-
get: function () { return
|
|
2420
|
+
get: function () { return chunkLQYQHXIW_cjs.Tool; }
|
|
2420
2421
|
});
|
|
2421
2422
|
Object.defineProperty(exports, "ToolError", {
|
|
2422
2423
|
enumerable: true,
|
|
2423
|
-
get: function () { return
|
|
2424
|
+
get: function () { return chunkLQYQHXIW_cjs.ToolError; }
|
|
2424
2425
|
});
|
|
2425
2426
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2426
2427
|
enumerable: true,
|
|
2427
|
-
get: function () { return
|
|
2428
|
+
get: function () { return chunkLQYQHXIW_cjs.UsageAccumulator; }
|
|
2428
2429
|
});
|
|
2429
2430
|
Object.defineProperty(exports, "computeCost", {
|
|
2430
2431
|
enumerable: true,
|
|
2431
|
-
get: function () { return
|
|
2432
|
+
get: function () { return chunkLQYQHXIW_cjs.computeCost; }
|
|
2432
2433
|
});
|
|
2433
2434
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2434
2435
|
enumerable: true,
|
|
2435
|
-
get: function () { return
|
|
2436
|
+
get: function () { return chunkLQYQHXIW_cjs.getPricingEntry; }
|
|
2436
2437
|
});
|
|
2437
2438
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2438
2439
|
enumerable: true,
|