@theokit/sdk 4.37.1 → 4.37.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 +6 -0
- package/dist/{agent-GV36S2CF.js → agent-DW2J37IH.js} +3 -3
- package/dist/{agent-GV36S2CF.js.map → agent-DW2J37IH.js.map} +1 -1
- package/dist/{agent-4MHQUGO5.cjs → agent-IE6IE4NW.cjs} +4 -4
- package/dist/{agent-4MHQUGO5.cjs.map → agent-IE6IE4NW.cjs.map} +1 -1
- package/dist/{chunk-KDDL5HKQ.cjs → chunk-G6AASL5T.cjs} +5 -5
- package/dist/{chunk-KDDL5HKQ.cjs.map → chunk-G6AASL5T.cjs.map} +1 -1
- package/dist/{chunk-SSH2ZAZF.js → chunk-T4QWDOG6.js} +3 -3
- package/dist/{chunk-SSH2ZAZF.js.map → chunk-T4QWDOG6.js.map} +1 -1
- package/dist/{chunk-XJLGRJ7K.js → chunk-VYJSHGAY.js} +28 -3
- package/dist/chunk-VYJSHGAY.js.map +1 -0
- package/dist/{chunk-S3WZ7NHF.cjs → chunk-W52DKZBR.cjs} +30 -5
- package/dist/chunk-W52DKZBR.cjs.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 +18 -18
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-S3WZ7NHF.cjs.map +0 -1
- package/dist/chunk-XJLGRJ7K.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 chunkG6AASL5T_cjs = require('./chunk-G6AASL5T.cjs');
|
|
4
|
+
require('./chunk-W52DKZBR.cjs');
|
|
5
5
|
require('./chunk-BV2MWEMV.cjs');
|
|
6
6
|
require('./chunk-6EDQBX7U.cjs');
|
|
7
7
|
require('./chunk-H5YVJB4K.cjs');
|
|
@@ -46,7 +46,7 @@ require('./chunk-LTCOPATU.cjs');
|
|
|
46
46
|
|
|
47
47
|
Object.defineProperty(exports, "Cron", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkG6AASL5T_cjs.Cron; }
|
|
50
50
|
});
|
|
51
51
|
//# sourceMappingURL=cron.cjs.map
|
|
52
52
|
//# 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 chunkS7OEXQMI_cjs = require('./chunk-S7OEXQMI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkW52DKZBR_cjs = require('./chunk-W52DKZBR.cjs');
|
|
5
5
|
require('./chunk-BV2MWEMV.cjs');
|
|
6
6
|
require('./chunk-6EDQBX7U.cjs');
|
|
7
7
|
require('./chunk-H5YVJB4K.cjs');
|
|
@@ -768,7 +768,7 @@ function makeDefaultEmbedder(opts) {
|
|
|
768
768
|
let runtime;
|
|
769
769
|
return (texts) => {
|
|
770
770
|
if (runtime === void 0) {
|
|
771
|
-
runtime =
|
|
771
|
+
runtime = chunkW52DKZBR_cjs.openRouterMemoryEmbeddingProviderAdapter.create(embedderCreateOptions(opts));
|
|
772
772
|
}
|
|
773
773
|
return runtime.then((rt) => rt.embed(texts));
|
|
774
774
|
};
|
package/dist/eval.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shellEscapePosix, LocalSandbox } from './chunk-SKWVAQAY.js';
|
|
2
|
-
import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-
|
|
2
|
+
import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-VYJSHGAY.js';
|
|
3
3
|
import './chunk-2SFBB54R.js';
|
|
4
4
|
import './chunk-HEN5WXXI.js';
|
|
5
5
|
import './chunk-5SB4V74H.js';
|
package/dist/index.cjs
CHANGED
|
@@ -8,8 +8,8 @@ require('./chunk-3ILFUXNE.cjs');
|
|
|
8
8
|
var chunkBJMKQOY2_cjs = require('./chunk-BJMKQOY2.cjs');
|
|
9
9
|
require('./chunk-XAYVHS2B.cjs');
|
|
10
10
|
require('./chunk-PNVDQL5Y.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkG6AASL5T_cjs = require('./chunk-G6AASL5T.cjs');
|
|
12
|
+
var chunkW52DKZBR_cjs = require('./chunk-W52DKZBR.cjs');
|
|
13
13
|
require('./chunk-BV2MWEMV.cjs');
|
|
14
14
|
var chunk6EDQBX7U_cjs = require('./chunk-6EDQBX7U.cjs');
|
|
15
15
|
require('./chunk-H5YVJB4K.cjs');
|
|
@@ -58,8 +58,8 @@ var fs = require('fs');
|
|
|
58
58
|
// src/agent-factory.ts
|
|
59
59
|
function createAgentFactory(common) {
|
|
60
60
|
return {
|
|
61
|
-
forSession: (agentId, overrides) =>
|
|
62
|
-
getOrCreate: (agentId, overrides) =>
|
|
61
|
+
forSession: (agentId, overrides) => chunkW52DKZBR_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
62
|
+
getOrCreate: (agentId, overrides) => chunkW52DKZBR_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -1165,7 +1165,7 @@ var Memory = {
|
|
|
1165
1165
|
return await peer.IndexManager.open(openArgs);
|
|
1166
1166
|
}
|
|
1167
1167
|
const { IndexManager } = await import('./index-manager-R6ZJFEZF.cjs');
|
|
1168
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1168
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkW52DKZBR_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1169
1169
|
return await IndexManager.open(openArgs);
|
|
1170
1170
|
},
|
|
1171
1171
|
/**
|
|
@@ -1176,7 +1176,7 @@ var Memory = {
|
|
|
1176
1176
|
*/
|
|
1177
1177
|
async runDreamingSweep(opts) {
|
|
1178
1178
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1179
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1179
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkW52DKZBR_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1180
1180
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1181
1181
|
const result = peer !== null ? (
|
|
1182
1182
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1598,7 +1598,7 @@ function ehAgenteConstruido(m) {
|
|
|
1598
1598
|
return typeof m.send === "function";
|
|
1599
1599
|
}
|
|
1600
1600
|
async function materializar(def, indice) {
|
|
1601
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1601
|
+
const { Agent: Agent2 } = await import('./agent-IE6IE4NW.cjs');
|
|
1602
1602
|
return Agent2.create({
|
|
1603
1603
|
// `AgentDefinition.model` admite o sentinel `'inherit'`, que não é um id de modelo. Herdar
|
|
1604
1604
|
// aqui significa "não declare nada e deixe o default valer" — passar o literal adiante criaria
|
|
@@ -1740,7 +1740,7 @@ var FIXTURE_USER = {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
var FIXTURE_MODELS = [
|
|
1742
1742
|
{
|
|
1743
|
-
id:
|
|
1743
|
+
id: chunkW52DKZBR_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1744
1744
|
name: "Gemini 2.0 Flash",
|
|
1745
1745
|
displayName: "Gemini 2.0 Flash",
|
|
1746
1746
|
parameters: [
|
|
@@ -1943,7 +1943,7 @@ var Theokit = class {
|
|
|
1943
1943
|
envVars: p.envVars
|
|
1944
1944
|
}));
|
|
1945
1945
|
},
|
|
1946
|
-
embeddingAdapters: () => Object.entries(
|
|
1946
|
+
embeddingAdapters: () => Object.entries(chunkW52DKZBR_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
1947
1947
|
id,
|
|
1948
1948
|
transport: adapter.transport,
|
|
1949
1949
|
defaultModel: adapter.defaultModel
|
|
@@ -1975,7 +1975,7 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
|
|
|
1975
1975
|
return fallback;
|
|
1976
1976
|
}
|
|
1977
1977
|
async function executeCatalogRequest(request) {
|
|
1978
|
-
const apiKey =
|
|
1978
|
+
const apiKey = chunkW52DKZBR_cjs.resolveApiKey(request.apiKey);
|
|
1979
1979
|
if (apiKey === void 0) {
|
|
1980
1980
|
throw new chunkMHCKWQR3_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
|
|
1981
1981
|
}
|
|
@@ -2101,35 +2101,35 @@ Object.defineProperty(exports, "GenerateObjectError", {
|
|
|
2101
2101
|
});
|
|
2102
2102
|
Object.defineProperty(exports, "Cron", {
|
|
2103
2103
|
enumerable: true,
|
|
2104
|
-
get: function () { return
|
|
2104
|
+
get: function () { return chunkG6AASL5T_cjs.Cron; }
|
|
2105
2105
|
});
|
|
2106
2106
|
Object.defineProperty(exports, "Agent", {
|
|
2107
2107
|
enumerable: true,
|
|
2108
|
-
get: function () { return
|
|
2108
|
+
get: function () { return chunkW52DKZBR_cjs.Agent; }
|
|
2109
2109
|
});
|
|
2110
2110
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2111
2111
|
enumerable: true,
|
|
2112
|
-
get: function () { return
|
|
2112
|
+
get: function () { return chunkW52DKZBR_cjs.AgentBuilder; }
|
|
2113
2113
|
});
|
|
2114
2114
|
Object.defineProperty(exports, "Tool", {
|
|
2115
2115
|
enumerable: true,
|
|
2116
|
-
get: function () { return
|
|
2116
|
+
get: function () { return chunkW52DKZBR_cjs.Tool; }
|
|
2117
2117
|
});
|
|
2118
2118
|
Object.defineProperty(exports, "ToolError", {
|
|
2119
2119
|
enumerable: true,
|
|
2120
|
-
get: function () { return
|
|
2120
|
+
get: function () { return chunkW52DKZBR_cjs.ToolError; }
|
|
2121
2121
|
});
|
|
2122
2122
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2123
2123
|
enumerable: true,
|
|
2124
|
-
get: function () { return
|
|
2124
|
+
get: function () { return chunkW52DKZBR_cjs.UsageAccumulator; }
|
|
2125
2125
|
});
|
|
2126
2126
|
Object.defineProperty(exports, "computeCost", {
|
|
2127
2127
|
enumerable: true,
|
|
2128
|
-
get: function () { return
|
|
2128
|
+
get: function () { return chunkW52DKZBR_cjs.computeCost; }
|
|
2129
2129
|
});
|
|
2130
2130
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2131
2131
|
enumerable: true,
|
|
2132
|
-
get: function () { return
|
|
2132
|
+
get: function () { return chunkW52DKZBR_cjs.getPricingEntry; }
|
|
2133
2133
|
});
|
|
2134
2134
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2135
2135
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import './chunk-ZJN6NTHE.js';
|
|
|
6
6
|
import { Workflow, agentStep } from './chunk-SDIBMLL5.js';
|
|
7
7
|
import './chunk-YDLNI7J6.js';
|
|
8
8
|
import './chunk-CAH3G4IS.js';
|
|
9
|
-
export { Cron } from './chunk-
|
|
10
|
-
import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-
|
|
11
|
-
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-
|
|
9
|
+
export { Cron } from './chunk-T4QWDOG6.js';
|
|
10
|
+
import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-VYJSHGAY.js';
|
|
11
|
+
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-VYJSHGAY.js';
|
|
12
12
|
import './chunk-2SFBB54R.js';
|
|
13
13
|
import { configure, submit, list, get, cancel, subscribe } from './chunk-HEN5WXXI.js';
|
|
14
14
|
export { emitRunEvent } from './chunk-HEN5WXXI.js';
|
|
@@ -1600,7 +1600,7 @@ function ehAgenteConstruido(m) {
|
|
|
1600
1600
|
return typeof m.send === "function";
|
|
1601
1601
|
}
|
|
1602
1602
|
async function materializar(def, indice) {
|
|
1603
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1603
|
+
const { Agent: Agent2 } = await import('./agent-DW2J37IH.js');
|
|
1604
1604
|
return Agent2.create({
|
|
1605
1605
|
// `AgentDefinition.model` admite o sentinel `'inherit'`, que não é um id de modelo. Herdar
|
|
1606
1606
|
// aqui significa "não declare nada e deixe o default valer" — passar o literal adiante criaria
|
package/package.json
CHANGED