@theokit/sdk 4.63.4 → 4.63.5
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 +27 -0
- package/dist/{agent-UX7WFI6B.cjs → agent-HM326RNG.cjs} +4 -4
- package/dist/{agent-UX7WFI6B.cjs.map → agent-HM326RNG.cjs.map} +1 -1
- package/dist/{agent-A5XMIVNP.js → agent-Y25FRHPL.js} +3 -3
- package/dist/{agent-A5XMIVNP.js.map → agent-Y25FRHPL.js.map} +1 -1
- package/dist/agent.d.ts +20 -2
- package/dist/{chunk-32WTYBUH.js → chunk-2OQHBPPV.js} +3 -3
- package/dist/{chunk-32WTYBUH.js.map → chunk-2OQHBPPV.js.map} +1 -1
- package/dist/{chunk-7VT4P3Z4.cjs → chunk-BLTTW3KY.cjs} +25 -6
- package/dist/chunk-BLTTW3KY.cjs.map +1 -0
- package/dist/{chunk-GMLBYDW4.cjs → chunk-EGCKRW36.cjs} +4 -4
- package/dist/{chunk-GMLBYDW4.cjs.map → chunk-EGCKRW36.cjs.map} +1 -1
- package/dist/{chunk-LYTOXSRH.js → chunk-GP7NHU3R.js} +23 -4
- package/dist/chunk-GP7NHU3R.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.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-7VT4P3Z4.cjs.map +0 -1
- package/dist/chunk-LYTOXSRH.js.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 chunkEGCKRW36_cjs = require('./chunk-EGCKRW36.cjs');
|
|
4
|
+
require('./chunk-BLTTW3KY.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 chunkEGCKRW36_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 chunkBLTTW3KY_cjs = require('./chunk-BLTTW3KY.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 = chunkBLTTW3KY_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-GP7NHU3R.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 chunkEGCKRW36_cjs = require('./chunk-EGCKRW36.cjs');
|
|
13
|
+
var chunkBLTTW3KY_cjs = require('./chunk-BLTTW3KY.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) => chunkBLTTW3KY_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
77
|
+
getOrCreate: (agentId, overrides) => chunkBLTTW3KY_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-2SRX45WJ.cjs');
|
|
1269
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1269
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkBLTTW3KY_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 : chunkBLTTW3KY_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-HM326RNG.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: chunkBLTTW3KY_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(chunkBLTTW3KY_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 chunkEGCKRW36_cjs.Cron; }
|
|
2269
2269
|
});
|
|
2270
2270
|
Object.defineProperty(exports, "Agent", {
|
|
2271
2271
|
enumerable: true,
|
|
2272
|
-
get: function () { return
|
|
2272
|
+
get: function () { return chunkBLTTW3KY_cjs.Agent; }
|
|
2273
2273
|
});
|
|
2274
2274
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2275
2275
|
enumerable: true,
|
|
2276
|
-
get: function () { return
|
|
2276
|
+
get: function () { return chunkBLTTW3KY_cjs.AgentBuilder; }
|
|
2277
2277
|
});
|
|
2278
2278
|
Object.defineProperty(exports, "Tool", {
|
|
2279
2279
|
enumerable: true,
|
|
2280
|
-
get: function () { return
|
|
2280
|
+
get: function () { return chunkBLTTW3KY_cjs.Tool; }
|
|
2281
2281
|
});
|
|
2282
2282
|
Object.defineProperty(exports, "ToolError", {
|
|
2283
2283
|
enumerable: true,
|
|
2284
|
-
get: function () { return
|
|
2284
|
+
get: function () { return chunkBLTTW3KY_cjs.ToolError; }
|
|
2285
2285
|
});
|
|
2286
2286
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2287
2287
|
enumerable: true,
|
|
2288
|
-
get: function () { return
|
|
2288
|
+
get: function () { return chunkBLTTW3KY_cjs.UsageAccumulator; }
|
|
2289
2289
|
});
|
|
2290
2290
|
Object.defineProperty(exports, "computeCost", {
|
|
2291
2291
|
enumerable: true,
|
|
2292
|
-
get: function () { return
|
|
2292
|
+
get: function () { return chunkBLTTW3KY_cjs.computeCost; }
|
|
2293
2293
|
});
|
|
2294
2294
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2295
2295
|
enumerable: true,
|
|
2296
|
-
get: function () { return
|
|
2296
|
+
get: function () { return chunkBLTTW3KY_cjs.getPricingEntry; }
|
|
2297
2297
|
});
|
|
2298
2298
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2299
2299
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -858,11 +858,29 @@ declare class Agent {
|
|
|
858
858
|
*/
|
|
859
859
|
static describe(agentId: string): Promise<AgentDescription>;
|
|
860
860
|
/**
|
|
861
|
-
* Permanently delete a
|
|
861
|
+
* Permanently delete a registered agent — local or cloud.
|
|
862
|
+
*
|
|
863
|
+
* Backport of #612 (fixed on the 5.x line in `5.3.1`). This HYDRATES before removing, and until it
|
|
864
|
+
* did the method was a no-op against the persisted registry whenever the agent was not already in
|
|
865
|
+
* this process's memory. Which is every agent in a freshly started process: `removeRegisteredAgent`
|
|
866
|
+
* only schedules a save when the entry was in the Map, so `agents.delete()` returned `false`,
|
|
867
|
+
* nothing was scheduled, and `flushRegistrySaves()` flushed an empty queue. The entry survived and
|
|
868
|
+
* this returned normally, so a caller had no way to notice.
|
|
869
|
+
*
|
|
870
|
+
* Every neighbouring mutator already did this — `rename` and `archive` reach
|
|
871
|
+
* `getRegisteredAgentOrThrow`, which hydrates on a miss. `delete` was the only one that did not.
|
|
872
|
+
*
|
|
873
|
+
* `options.cwd` is read rather than defaulted away: it is declared on `AgentOperationOptions`, and
|
|
874
|
+
* hydrating `process.cwd()` unconditionally is an option that compiles and does nothing, on the one
|
|
875
|
+
* path that is supposed to remove data.
|
|
876
|
+
*
|
|
877
|
+
* Deleting an unknown id still resolves rather than throwing, deliberately — matching 5.x. It is a
|
|
878
|
+
* breaking change for callers that delete idempotently, and an entry and its transcript can
|
|
879
|
+
* legitimately outlive one another in both directions.
|
|
862
880
|
*
|
|
863
881
|
* @public
|
|
864
882
|
*/
|
|
865
|
-
static delete(agentId: string,
|
|
883
|
+
static delete(agentId: string, options?: AgentOperationOptions): Promise<void>;
|
|
866
884
|
}
|
|
867
885
|
|
|
868
886
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -858,11 +858,29 @@ declare class Agent {
|
|
|
858
858
|
*/
|
|
859
859
|
static describe(agentId: string): Promise<AgentDescription>;
|
|
860
860
|
/**
|
|
861
|
-
* Permanently delete a
|
|
861
|
+
* Permanently delete a registered agent — local or cloud.
|
|
862
|
+
*
|
|
863
|
+
* Backport of #612 (fixed on the 5.x line in `5.3.1`). This HYDRATES before removing, and until it
|
|
864
|
+
* did the method was a no-op against the persisted registry whenever the agent was not already in
|
|
865
|
+
* this process's memory. Which is every agent in a freshly started process: `removeRegisteredAgent`
|
|
866
|
+
* only schedules a save when the entry was in the Map, so `agents.delete()` returned `false`,
|
|
867
|
+
* nothing was scheduled, and `flushRegistrySaves()` flushed an empty queue. The entry survived and
|
|
868
|
+
* this returned normally, so a caller had no way to notice.
|
|
869
|
+
*
|
|
870
|
+
* Every neighbouring mutator already did this — `rename` and `archive` reach
|
|
871
|
+
* `getRegisteredAgentOrThrow`, which hydrates on a miss. `delete` was the only one that did not.
|
|
872
|
+
*
|
|
873
|
+
* `options.cwd` is read rather than defaulted away: it is declared on `AgentOperationOptions`, and
|
|
874
|
+
* hydrating `process.cwd()` unconditionally is an option that compiles and does nothing, on the one
|
|
875
|
+
* path that is supposed to remove data.
|
|
876
|
+
*
|
|
877
|
+
* Deleting an unknown id still resolves rather than throwing, deliberately — matching 5.x. It is a
|
|
878
|
+
* breaking change for callers that delete idempotently, and an entry and its transcript can
|
|
879
|
+
* legitimately outlive one another in both directions.
|
|
862
880
|
*
|
|
863
881
|
* @public
|
|
864
882
|
*/
|
|
865
|
-
static delete(agentId: string,
|
|
883
|
+
static delete(agentId: string, options?: AgentOperationOptions): Promise<void>;
|
|
866
884
|
}
|
|
867
885
|
|
|
868
886
|
/**
|
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-2OQHBPPV.js';
|
|
12
|
+
import { MEMORY_EMBEDDING_ADAPTERS, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-GP7NHU3R.js';
|
|
13
|
+
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-GP7NHU3R.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-Y25FRHPL.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