@theokit/sdk 4.61.0 → 4.62.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 +73 -0
- package/dist/{agent-P42GA6RM.js → agent-NVBFTY5H.js} +3 -3
- package/dist/{agent-P42GA6RM.js.map → agent-NVBFTY5H.js.map} +1 -1
- package/dist/{agent-M53C3PAA.cjs → agent-VYPUO4UB.cjs} +4 -4
- package/dist/{agent-M53C3PAA.cjs.map → agent-VYPUO4UB.cjs.map} +1 -1
- package/dist/{chunk-R7YIVL3K.cjs → chunk-AH6WD7JR.cjs} +57 -24
- package/dist/chunk-AH6WD7JR.cjs.map +1 -0
- package/dist/{chunk-5IT6DUOO.cjs → chunk-CWHTMNNK.cjs} +4 -4
- package/dist/{chunk-5IT6DUOO.cjs.map → chunk-CWHTMNNK.cjs.map} +1 -1
- package/dist/{chunk-532CSLYU.js → chunk-IBYRA5PM.js} +3 -3
- package/dist/{chunk-532CSLYU.js.map → chunk-IBYRA5PM.js.map} +1 -1
- package/dist/{chunk-GQZKDGZM.js → chunk-SKOCYA55.js} +55 -22
- package/dist/chunk-SKOCYA55.js.map +1 -0
- package/dist/cron.cjs +3 -3
- package/dist/cron.js +2 -2
- package/dist/eval.cjs +2 -2
- package/dist/eval.js +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-GQZKDGZM.js.map +0 -1
- package/dist/chunk-R7YIVL3K.cjs.map +0 -1
package/dist/cron.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkCWHTMNNK_cjs = require('./chunk-CWHTMNNK.cjs');
|
|
4
|
+
require('./chunk-AH6WD7JR.cjs');
|
|
5
5
|
require('./chunk-NGESVVJN.cjs');
|
|
6
6
|
require('./chunk-2DG7KW4L.cjs');
|
|
7
7
|
require('./chunk-BUUUWQMB.cjs');
|
|
@@ -59,7 +59,7 @@ require('./chunk-NUKRL3I6.cjs');
|
|
|
59
59
|
|
|
60
60
|
Object.defineProperty(exports, "Cron", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkCWHTMNNK_cjs.Cron; }
|
|
63
63
|
});
|
|
64
64
|
//# sourceMappingURL=cron.cjs.map
|
|
65
65
|
//# sourceMappingURL=cron.cjs.map
|
package/dist/cron.js
CHANGED
package/dist/eval.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkJ24VJOH3_cjs = require('./chunk-J24VJOH3.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkAH6WD7JR_cjs = require('./chunk-AH6WD7JR.cjs');
|
|
5
5
|
require('./chunk-NGESVVJN.cjs');
|
|
6
6
|
require('./chunk-2DG7KW4L.cjs');
|
|
7
7
|
var chunkBUUUWQMB_cjs = require('./chunk-BUUUWQMB.cjs');
|
|
@@ -782,7 +782,7 @@ function makeDefaultEmbedder(opts) {
|
|
|
782
782
|
let runtime;
|
|
783
783
|
return (texts) => {
|
|
784
784
|
if (runtime === void 0) {
|
|
785
|
-
runtime =
|
|
785
|
+
runtime = chunkAH6WD7JR_cjs.openRouterMemoryEmbeddingProviderAdapter.create(embedderCreateOptions(opts));
|
|
786
786
|
}
|
|
787
787
|
return runtime.then((rt) => rt.embed(texts));
|
|
788
788
|
};
|
package/dist/eval.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shellEscapePosix, LocalSandbox } from './chunk-2D34UTDC.js';
|
|
2
|
-
import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-
|
|
2
|
+
import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-SKOCYA55.js';
|
|
3
3
|
import './chunk-SUKXXLWD.js';
|
|
4
4
|
import './chunk-YEXA3PGR.js';
|
|
5
5
|
import { getTracer } from './chunk-K2BQQ445.js';
|
package/dist/index.cjs
CHANGED
|
@@ -8,8 +8,8 @@ require('./chunk-QDED6YO6.cjs');
|
|
|
8
8
|
var chunk6SBW4QR2_cjs = require('./chunk-6SBW4QR2.cjs');
|
|
9
9
|
require('./chunk-XWL6O3SW.cjs');
|
|
10
10
|
require('./chunk-VTYY7XL5.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkCWHTMNNK_cjs = require('./chunk-CWHTMNNK.cjs');
|
|
12
|
+
var chunkAH6WD7JR_cjs = require('./chunk-AH6WD7JR.cjs');
|
|
13
13
|
var chunkNGESVVJN_cjs = require('./chunk-NGESVVJN.cjs');
|
|
14
14
|
require('./chunk-2DG7KW4L.cjs');
|
|
15
15
|
require('./chunk-BUUUWQMB.cjs');
|
|
@@ -71,8 +71,8 @@ var fs = require('fs');
|
|
|
71
71
|
// src/agent-factory.ts
|
|
72
72
|
function createAgentFactory(common) {
|
|
73
73
|
return {
|
|
74
|
-
forSession: (agentId, overrides) =>
|
|
75
|
-
getOrCreate: (agentId, overrides) =>
|
|
74
|
+
forSession: (agentId, overrides) => chunkAH6WD7JR_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
75
|
+
getOrCreate: (agentId, overrides) => chunkAH6WD7JR_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -1301,7 +1301,7 @@ var Memory = {
|
|
|
1301
1301
|
return await peer.IndexManager.open(openArgs);
|
|
1302
1302
|
}
|
|
1303
1303
|
const { IndexManager } = await import('./index-manager-RHPFVFSC.cjs');
|
|
1304
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1304
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkAH6WD7JR_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1305
1305
|
return await IndexManager.open(openArgs);
|
|
1306
1306
|
},
|
|
1307
1307
|
/**
|
|
@@ -1312,7 +1312,7 @@ var Memory = {
|
|
|
1312
1312
|
*/
|
|
1313
1313
|
async runDreamingSweep(opts) {
|
|
1314
1314
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1315
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1315
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkAH6WD7JR_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1316
1316
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1317
1317
|
const result = peer !== null ? (
|
|
1318
1318
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1874,7 +1874,7 @@ function isBuiltAgent(m) {
|
|
|
1874
1874
|
return typeof m.send === "function";
|
|
1875
1875
|
}
|
|
1876
1876
|
async function materialize(def, index) {
|
|
1877
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1877
|
+
const { Agent: Agent2 } = await import('./agent-VYPUO4UB.cjs');
|
|
1878
1878
|
return Agent2.create({
|
|
1879
1879
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1880
1880
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
@@ -2016,7 +2016,7 @@ var FIXTURE_USER = {
|
|
|
2016
2016
|
};
|
|
2017
2017
|
var FIXTURE_MODELS = [
|
|
2018
2018
|
{
|
|
2019
|
-
id:
|
|
2019
|
+
id: chunkAH6WD7JR_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
2020
2020
|
name: "Gemini 2.0 Flash",
|
|
2021
2021
|
displayName: "Gemini 2.0 Flash",
|
|
2022
2022
|
parameters: [
|
|
@@ -2219,7 +2219,7 @@ var Theokit = class {
|
|
|
2219
2219
|
envVars: p.envVars
|
|
2220
2220
|
}));
|
|
2221
2221
|
},
|
|
2222
|
-
embeddingAdapters: () => Object.entries(
|
|
2222
|
+
embeddingAdapters: () => Object.entries(chunkAH6WD7JR_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
2223
2223
|
id,
|
|
2224
2224
|
transport: adapter.transport,
|
|
2225
2225
|
defaultModel: adapter.defaultModel
|
|
@@ -2438,35 +2438,35 @@ Object.defineProperty(exports, "fn", {
|
|
|
2438
2438
|
});
|
|
2439
2439
|
Object.defineProperty(exports, "Cron", {
|
|
2440
2440
|
enumerable: true,
|
|
2441
|
-
get: function () { return
|
|
2441
|
+
get: function () { return chunkCWHTMNNK_cjs.Cron; }
|
|
2442
2442
|
});
|
|
2443
2443
|
Object.defineProperty(exports, "Agent", {
|
|
2444
2444
|
enumerable: true,
|
|
2445
|
-
get: function () { return
|
|
2445
|
+
get: function () { return chunkAH6WD7JR_cjs.Agent; }
|
|
2446
2446
|
});
|
|
2447
2447
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2448
2448
|
enumerable: true,
|
|
2449
|
-
get: function () { return
|
|
2449
|
+
get: function () { return chunkAH6WD7JR_cjs.AgentBuilder; }
|
|
2450
2450
|
});
|
|
2451
2451
|
Object.defineProperty(exports, "Tool", {
|
|
2452
2452
|
enumerable: true,
|
|
2453
|
-
get: function () { return
|
|
2453
|
+
get: function () { return chunkAH6WD7JR_cjs.Tool; }
|
|
2454
2454
|
});
|
|
2455
2455
|
Object.defineProperty(exports, "ToolError", {
|
|
2456
2456
|
enumerable: true,
|
|
2457
|
-
get: function () { return
|
|
2457
|
+
get: function () { return chunkAH6WD7JR_cjs.ToolError; }
|
|
2458
2458
|
});
|
|
2459
2459
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2460
2460
|
enumerable: true,
|
|
2461
|
-
get: function () { return
|
|
2461
|
+
get: function () { return chunkAH6WD7JR_cjs.UsageAccumulator; }
|
|
2462
2462
|
});
|
|
2463
2463
|
Object.defineProperty(exports, "computeCost", {
|
|
2464
2464
|
enumerable: true,
|
|
2465
|
-
get: function () { return
|
|
2465
|
+
get: function () { return chunkAH6WD7JR_cjs.computeCost; }
|
|
2466
2466
|
});
|
|
2467
2467
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2468
2468
|
enumerable: true,
|
|
2469
|
-
get: function () { return
|
|
2469
|
+
get: function () { return chunkAH6WD7JR_cjs.getPricingEntry; }
|
|
2470
2470
|
});
|
|
2471
2471
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2472
2472
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,9 @@ import { Workflow, agentStep } from './chunk-FUL2I7G5.js';
|
|
|
7
7
|
export { Workflow, agentStep, fn } from './chunk-FUL2I7G5.js';
|
|
8
8
|
import './chunk-AQLGBKNT.js';
|
|
9
9
|
import './chunk-HY66GLM6.js';
|
|
10
|
-
export { Cron } from './chunk-
|
|
11
|
-
import { MEMORY_EMBEDDING_ADAPTERS, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-
|
|
12
|
-
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-
|
|
10
|
+
export { Cron } from './chunk-IBYRA5PM.js';
|
|
11
|
+
import { MEMORY_EMBEDDING_ADAPTERS, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-SKOCYA55.js';
|
|
12
|
+
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-SKOCYA55.js';
|
|
13
13
|
import { configure, submit, list, get, cancel, subscribe } from './chunk-SUKXXLWD.js';
|
|
14
14
|
export { emitRunEvent } from './chunk-SUKXXLWD.js';
|
|
15
15
|
import './chunk-YEXA3PGR.js';
|
|
@@ -1878,7 +1878,7 @@ function isBuiltAgent(m) {
|
|
|
1878
1878
|
return typeof m.send === "function";
|
|
1879
1879
|
}
|
|
1880
1880
|
async function materialize(def, index) {
|
|
1881
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1881
|
+
const { Agent: Agent2 } = await import('./agent-NVBFTY5H.js');
|
|
1882
1882
|
return Agent2.create({
|
|
1883
1883
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1884
1884
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
package/package.json
CHANGED