@theokit/sdk 2.8.0 → 2.10.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 +17 -0
- package/dist/a2a/index.cjs +36 -12
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +36 -12
- package/dist/a2a/index.js.map +1 -1
- package/dist/compaction.cjs +1 -1
- package/dist/compaction.cjs.map +1 -1
- package/dist/compaction.d.cts +6 -0
- package/dist/compaction.d.ts +6 -0
- package/dist/compaction.js +1 -1
- package/dist/compaction.js.map +1 -1
- package/dist/{cron-CRPY-aKq.d.cts → cron-BNI8pyn_.d.cts} +128 -3
- package/dist/{cron-Bhp8rP8i.d.ts → cron-CZlMLA1K.d.ts} +128 -3
- package/dist/cron.cjs +26 -12
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.d.cts +1 -1
- package/dist/cron.d.ts +1 -1
- package/dist/cron.js +26 -12
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +139 -13
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +141 -15
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +26 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -120
- package/dist/index.d.ts +6 -120
- package/dist/index.js +26 -12
- package/dist/index.js.map +1 -1
- package/dist/internal/plugins/enabled-names.d.cts +1 -0
- package/dist/internal/plugins/enabled-names.d.ts +1 -0
- package/dist/sandbox/index.cjs +3 -1
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.js +3 -1
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/provision.d.cts +7 -0
- package/dist/sandbox/provision.d.ts +7 -0
- package/dist/types/agent.d.ts +14 -2
- package/dist/types/eval.d.ts +6 -2
- package/package.json +1 -1
package/dist/cron.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './run-D22b53SU.cjs';
|
|
2
|
-
export {
|
|
2
|
+
export { K as Cron } from './cron-BNI8pyn_.cjs';
|
package/dist/cron.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './run-D22b53SU.js';
|
|
2
|
-
export {
|
|
2
|
+
export { K as Cron } from './cron-CZlMLA1K.js';
|
package/dist/cron.js
CHANGED
|
@@ -3293,6 +3293,18 @@ async function writeVersionedJson(path, data2, currentVersion) {
|
|
|
3293
3293
|
await atomicWriteJson(path, file);
|
|
3294
3294
|
}
|
|
3295
3295
|
|
|
3296
|
+
// src/internal/plugins/enabled-names.ts
|
|
3297
|
+
function isPluginArray(plugins) {
|
|
3298
|
+
return Array.isArray(plugins);
|
|
3299
|
+
}
|
|
3300
|
+
function asPluginsSettings(plugins) {
|
|
3301
|
+
if (plugins === void 0) return void 0;
|
|
3302
|
+
return isPluginArray(plugins) ? void 0 : plugins;
|
|
3303
|
+
}
|
|
3304
|
+
function enabledPluginNames(plugins) {
|
|
3305
|
+
return asPluginsSettings(plugins)?.enabled ?? [];
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3296
3308
|
// src/internal/runtime/registry/agent-registry-store.ts
|
|
3297
3309
|
var SCHEMA_VERSION = 1;
|
|
3298
3310
|
var LEGACY_SCHEMA_VERSION_STRING = "1.0";
|
|
@@ -3306,7 +3318,9 @@ function stripSecretsFromOptions(options) {
|
|
|
3306
3318
|
cloud: serializeCloud(options.cloud),
|
|
3307
3319
|
memory: serializeMemory(options.memory),
|
|
3308
3320
|
skills: serializeEnabledList(options.skills),
|
|
3309
|
-
|
|
3321
|
+
// Code-`Plugin` objects are closures and cannot be persisted (like custom
|
|
3322
|
+
// tools); only the named-enable settings form is serialized.
|
|
3323
|
+
plugins: serializeEnabledList(asPluginsSettings(options.plugins)),
|
|
3310
3324
|
context: serializeContext(options.context),
|
|
3311
3325
|
providers: serializeProviders(options.providers),
|
|
3312
3326
|
agents: serializeAgents(options.agents)
|
|
@@ -3614,8 +3628,9 @@ function serializeSkills(skills) {
|
|
|
3614
3628
|
return { enabled: [...skills.enabled] };
|
|
3615
3629
|
}
|
|
3616
3630
|
function serializePlugins(plugins) {
|
|
3617
|
-
|
|
3618
|
-
|
|
3631
|
+
const enabled = enabledPluginNames(plugins);
|
|
3632
|
+
if (enabled.length === 0) return void 0;
|
|
3633
|
+
return { enabled: [...enabled] };
|
|
3619
3634
|
}
|
|
3620
3635
|
function serializeMcp(mcpServers) {
|
|
3621
3636
|
if (mcpServers === void 0) return void 0;
|
|
@@ -3798,11 +3813,8 @@ function defaultLocalTools(request) {
|
|
|
3798
3813
|
tools.push(`mcp_${sanitizeMcpName(name)}_call`);
|
|
3799
3814
|
}
|
|
3800
3815
|
}
|
|
3801
|
-
const
|
|
3802
|
-
|
|
3803
|
-
for (const _pluginName of plugins.enabled) {
|
|
3804
|
-
tools.push("mcp_search_provider_web_search");
|
|
3805
|
-
}
|
|
3816
|
+
for (const _pluginName of enabledPluginNames(request.agentOptions.plugins)) {
|
|
3817
|
+
tools.push("mcp_search_provider_web_search");
|
|
3806
3818
|
}
|
|
3807
3819
|
return tools;
|
|
3808
3820
|
}
|
|
@@ -7045,7 +7057,7 @@ function resolveRoute(route, modelProvider, plugins) {
|
|
|
7045
7057
|
if (modelName !== void 0) base.model = modelName;
|
|
7046
7058
|
return base;
|
|
7047
7059
|
}
|
|
7048
|
-
if (plugins
|
|
7060
|
+
if (enabledPluginNames(plugins).length > 0) {
|
|
7049
7061
|
return {
|
|
7050
7062
|
capability: route.capability,
|
|
7051
7063
|
provider: route.provider,
|
|
@@ -8048,7 +8060,7 @@ function bootstrapSubmanagers(args) {
|
|
|
8048
8060
|
args.settingSourcesIncludeProject
|
|
8049
8061
|
);
|
|
8050
8062
|
}
|
|
8051
|
-
const providerCount = (args.options.providers?.routes?.length ?? 0) + (args.options.plugins
|
|
8063
|
+
const providerCount = (args.options.providers?.routes?.length ?? 0) + enabledPluginNames(args.options.plugins).length;
|
|
8052
8064
|
if (providerCount > 0 || args.options.providers !== void 0) {
|
|
8053
8065
|
out.providers = new ProvidersManagerImpl(
|
|
8054
8066
|
args.options.model,
|
|
@@ -8068,7 +8080,9 @@ function bootstrapSubmanagers(args) {
|
|
|
8068
8080
|
if (args.options.plugins !== void 0 || args.settingSourcesIncludePlugins) {
|
|
8069
8081
|
out.pluginsManager = new PluginsManager(
|
|
8070
8082
|
args.workspaceCwd,
|
|
8071
|
-
|
|
8083
|
+
// The array (code-`Plugin`) form has no named-enable list; `undefined`
|
|
8084
|
+
// here preserves "no filter / load all file-discovered plugins".
|
|
8085
|
+
asPluginsSettings(args.options.plugins)?.enabled,
|
|
8072
8086
|
args.settingSourcesIncludePlugins,
|
|
8073
8087
|
false,
|
|
8074
8088
|
void 0
|
|
@@ -15360,7 +15374,7 @@ var Agent = class _Agent {
|
|
|
15360
15374
|
const runtime = options.cloud !== void 0 ? "cloud" : "local";
|
|
15361
15375
|
const span = telemetry.startSpan(SPAN_NAMES.AGENT_CREATE, {
|
|
15362
15376
|
runtime,
|
|
15363
|
-
pluginCount: options.plugins
|
|
15377
|
+
pluginCount: enabledPluginNames(options.plugins).length
|
|
15364
15378
|
});
|
|
15365
15379
|
try {
|
|
15366
15380
|
const agent = await runCreateUnderSpan(options, span);
|