@theokit/sdk 4.63.1 → 4.63.2
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 +25 -0
- package/dist/{agent-YWMBM7LX.js → agent-2COLCVOJ.js} +3 -3
- package/dist/{agent-YWMBM7LX.js.map → agent-2COLCVOJ.js.map} +1 -1
- package/dist/{agent-WK7MKIMH.cjs → agent-EXAN5EYJ.cjs} +4 -4
- package/dist/{agent-WK7MKIMH.cjs.map → agent-EXAN5EYJ.cjs.map} +1 -1
- package/dist/{chunk-ZMRD5DZQ.cjs → chunk-DKK5QY4C.cjs} +24 -7
- package/dist/chunk-DKK5QY4C.cjs.map +1 -0
- package/dist/{chunk-BVJJ3DRV.js → chunk-RMIWHYC7.js} +3 -3
- package/dist/{chunk-BVJJ3DRV.js.map → chunk-RMIWHYC7.js.map} +1 -1
- package/dist/{chunk-Q7LPTOD6.cjs → chunk-VX4SQ2LY.cjs} +4 -4
- package/dist/{chunk-Q7LPTOD6.cjs.map → chunk-VX4SQ2LY.cjs.map} +1 -1
- package/dist/{chunk-KIH6IZ43.js → chunk-WHFUZMIC.js} +22 -5
- package/dist/chunk-WHFUZMIC.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-KIH6IZ43.js.map +0 -1
- package/dist/chunk-ZMRD5DZQ.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 chunkVX4SQ2LY_cjs = require('./chunk-VX4SQ2LY.cjs');
|
|
4
|
+
require('./chunk-DKK5QY4C.cjs');
|
|
5
5
|
require('./chunk-3FFAEAUJ.cjs');
|
|
6
6
|
require('./chunk-RMWTPV3M.cjs');
|
|
7
7
|
require('./chunk-BUUUWQMB.cjs');
|
|
@@ -61,7 +61,7 @@ require('./chunk-EG4QM7ZJ.cjs');
|
|
|
61
61
|
|
|
62
62
|
Object.defineProperty(exports, "Cron", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkVX4SQ2LY_cjs.Cron; }
|
|
65
65
|
});
|
|
66
66
|
//# sourceMappingURL=cron.cjs.map
|
|
67
67
|
//# 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 chunkDKK5QY4C_cjs = require('./chunk-DKK5QY4C.cjs');
|
|
5
5
|
require('./chunk-3FFAEAUJ.cjs');
|
|
6
6
|
require('./chunk-RMWTPV3M.cjs');
|
|
7
7
|
var chunkBUUUWQMB_cjs = require('./chunk-BUUUWQMB.cjs');
|
|
@@ -784,7 +784,7 @@ function makeDefaultEmbedder(opts) {
|
|
|
784
784
|
let runtime;
|
|
785
785
|
return (texts) => {
|
|
786
786
|
if (runtime === void 0) {
|
|
787
|
-
runtime =
|
|
787
|
+
runtime = chunkDKK5QY4C_cjs.openRouterMemoryEmbeddingProviderAdapter.create(embedderCreateOptions(opts));
|
|
788
788
|
}
|
|
789
789
|
return runtime.then((rt) => rt.embed(texts));
|
|
790
790
|
};
|
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-WHFUZMIC.js';
|
|
3
3
|
import './chunk-A46SWMIF.js';
|
|
4
4
|
import './chunk-4FFBAUFS.js';
|
|
5
5
|
import { getTracer } from './chunk-K2BQQ445.js';
|
package/dist/index.cjs
CHANGED
|
@@ -9,8 +9,8 @@ require('./chunk-B4EOJWOY.cjs');
|
|
|
9
9
|
var chunkYML4ME27_cjs = require('./chunk-YML4ME27.cjs');
|
|
10
10
|
require('./chunk-WNO3C3N2.cjs');
|
|
11
11
|
require('./chunk-VTYY7XL5.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var chunkVX4SQ2LY_cjs = require('./chunk-VX4SQ2LY.cjs');
|
|
13
|
+
var chunkDKK5QY4C_cjs = require('./chunk-DKK5QY4C.cjs');
|
|
14
14
|
var chunk3FFAEAUJ_cjs = require('./chunk-3FFAEAUJ.cjs');
|
|
15
15
|
require('./chunk-RMWTPV3M.cjs');
|
|
16
16
|
require('./chunk-BUUUWQMB.cjs');
|
|
@@ -73,8 +73,8 @@ var path = require('path');
|
|
|
73
73
|
// src/agent-factory.ts
|
|
74
74
|
function createAgentFactory(common) {
|
|
75
75
|
return {
|
|
76
|
-
forSession: (agentId, overrides) =>
|
|
77
|
-
getOrCreate: (agentId, overrides) =>
|
|
76
|
+
forSession: (agentId, overrides) => chunkDKK5QY4C_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
77
|
+
getOrCreate: (agentId, overrides) => chunkDKK5QY4C_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -1266,7 +1266,7 @@ var Memory = {
|
|
|
1266
1266
|
return await peer.IndexManager.open(openArgs);
|
|
1267
1267
|
}
|
|
1268
1268
|
const { IndexManager } = await import('./index-manager-UZBF22BJ.cjs');
|
|
1269
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1269
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkDKK5QY4C_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1270
1270
|
return await IndexManager.open(openArgs);
|
|
1271
1271
|
},
|
|
1272
1272
|
/**
|
|
@@ -1277,7 +1277,7 @@ var Memory = {
|
|
|
1277
1277
|
*/
|
|
1278
1278
|
async runDreamingSweep(opts) {
|
|
1279
1279
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1280
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1280
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkDKK5QY4C_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1281
1281
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1282
1282
|
const result = peer !== null ? (
|
|
1283
1283
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1701,7 +1701,7 @@ function isBuiltAgent(m) {
|
|
|
1701
1701
|
return typeof m.send === "function";
|
|
1702
1702
|
}
|
|
1703
1703
|
async function materialize(def, index) {
|
|
1704
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1704
|
+
const { Agent: Agent2 } = await import('./agent-EXAN5EYJ.cjs');
|
|
1705
1705
|
return Agent2.create({
|
|
1706
1706
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1707
1707
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
@@ -1843,7 +1843,7 @@ var FIXTURE_USER = {
|
|
|
1843
1843
|
};
|
|
1844
1844
|
var FIXTURE_MODELS = [
|
|
1845
1845
|
{
|
|
1846
|
-
id:
|
|
1846
|
+
id: chunkDKK5QY4C_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1847
1847
|
name: "Gemini 2.0 Flash",
|
|
1848
1848
|
displayName: "Gemini 2.0 Flash",
|
|
1849
1849
|
parameters: [
|
|
@@ -2046,7 +2046,7 @@ var Theokit = class {
|
|
|
2046
2046
|
envVars: p.envVars
|
|
2047
2047
|
}));
|
|
2048
2048
|
},
|
|
2049
|
-
embeddingAdapters: () => Object.entries(
|
|
2049
|
+
embeddingAdapters: () => Object.entries(chunkDKK5QY4C_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
2050
2050
|
id,
|
|
2051
2051
|
transport: adapter.transport,
|
|
2052
2052
|
defaultModel: adapter.defaultModel
|
|
@@ -2265,35 +2265,35 @@ Object.defineProperty(exports, "fn", {
|
|
|
2265
2265
|
});
|
|
2266
2266
|
Object.defineProperty(exports, "Cron", {
|
|
2267
2267
|
enumerable: true,
|
|
2268
|
-
get: function () { return
|
|
2268
|
+
get: function () { return chunkVX4SQ2LY_cjs.Cron; }
|
|
2269
2269
|
});
|
|
2270
2270
|
Object.defineProperty(exports, "Agent", {
|
|
2271
2271
|
enumerable: true,
|
|
2272
|
-
get: function () { return
|
|
2272
|
+
get: function () { return chunkDKK5QY4C_cjs.Agent; }
|
|
2273
2273
|
});
|
|
2274
2274
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2275
2275
|
enumerable: true,
|
|
2276
|
-
get: function () { return
|
|
2276
|
+
get: function () { return chunkDKK5QY4C_cjs.AgentBuilder; }
|
|
2277
2277
|
});
|
|
2278
2278
|
Object.defineProperty(exports, "Tool", {
|
|
2279
2279
|
enumerable: true,
|
|
2280
|
-
get: function () { return
|
|
2280
|
+
get: function () { return chunkDKK5QY4C_cjs.Tool; }
|
|
2281
2281
|
});
|
|
2282
2282
|
Object.defineProperty(exports, "ToolError", {
|
|
2283
2283
|
enumerable: true,
|
|
2284
|
-
get: function () { return
|
|
2284
|
+
get: function () { return chunkDKK5QY4C_cjs.ToolError; }
|
|
2285
2285
|
});
|
|
2286
2286
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2287
2287
|
enumerable: true,
|
|
2288
|
-
get: function () { return
|
|
2288
|
+
get: function () { return chunkDKK5QY4C_cjs.UsageAccumulator; }
|
|
2289
2289
|
});
|
|
2290
2290
|
Object.defineProperty(exports, "computeCost", {
|
|
2291
2291
|
enumerable: true,
|
|
2292
|
-
get: function () { return
|
|
2292
|
+
get: function () { return chunkDKK5QY4C_cjs.computeCost; }
|
|
2293
2293
|
});
|
|
2294
2294
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2295
2295
|
enumerable: true,
|
|
2296
|
-
get: function () { return
|
|
2296
|
+
get: function () { return chunkDKK5QY4C_cjs.getPricingEntry; }
|
|
2297
2297
|
});
|
|
2298
2298
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2299
2299
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import { Workflow, agentStep } from './chunk-OSEG74VJ.js';
|
|
|
8
8
|
export { Workflow, agentStep, fn } from './chunk-OSEG74VJ.js';
|
|
9
9
|
import './chunk-BZRFXJHA.js';
|
|
10
10
|
import './chunk-HY66GLM6.js';
|
|
11
|
-
export { Cron } from './chunk-
|
|
12
|
-
import { MEMORY_EMBEDDING_ADAPTERS, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-
|
|
13
|
-
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-
|
|
11
|
+
export { Cron } from './chunk-RMIWHYC7.js';
|
|
12
|
+
import { MEMORY_EMBEDDING_ADAPTERS, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-WHFUZMIC.js';
|
|
13
|
+
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-WHFUZMIC.js';
|
|
14
14
|
import { configure, submit, list, get, cancel, subscribe } from './chunk-A46SWMIF.js';
|
|
15
15
|
export { emitRunEvent } from './chunk-A46SWMIF.js';
|
|
16
16
|
import './chunk-4FFBAUFS.js';
|
|
@@ -1705,7 +1705,7 @@ function isBuiltAgent(m) {
|
|
|
1705
1705
|
return typeof m.send === "function";
|
|
1706
1706
|
}
|
|
1707
1707
|
async function materialize(def, index) {
|
|
1708
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1708
|
+
const { Agent: Agent2 } = await import('./agent-2COLCVOJ.js');
|
|
1709
1709
|
return Agent2.create({
|
|
1710
1710
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1711
1711
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
package/package.json
CHANGED