@theokit/sdk 4.6.0 → 4.6.1
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 +13 -0
- package/dist/a2a/index.cjs +2 -1
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +2 -1
- package/dist/a2a/index.js.map +1 -1
- package/dist/cron.cjs +13 -6
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +13 -6
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +13 -6
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +13 -6
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/internal/runtime/registry/agent-registry-store.d.ts +4 -3
- package/package.json +1 -1
package/dist/cron.js
CHANGED
|
@@ -3274,7 +3274,9 @@ function serializeAgents(agents2) {
|
|
|
3274
3274
|
out[name] = {
|
|
3275
3275
|
description: def.description,
|
|
3276
3276
|
prompt: def.prompt,
|
|
3277
|
-
...def.model !== void 0 ? { model: def.model } : {}
|
|
3277
|
+
...def.model !== void 0 ? { model: def.model } : {},
|
|
3278
|
+
...def.tools !== void 0 ? { tools: def.tools } : {},
|
|
3279
|
+
...def.sandbox !== void 0 ? { sandbox: def.sandbox } : {}
|
|
3278
3280
|
};
|
|
3279
3281
|
}
|
|
3280
3282
|
return out;
|
|
@@ -6755,9 +6757,9 @@ function rejectMcp(fields, filename) {
|
|
|
6755
6757
|
function resolveModel(fields, filename) {
|
|
6756
6758
|
const modelId = asString(fields.model);
|
|
6757
6759
|
const effort = asString(fields.reasoning_effort);
|
|
6758
|
-
if (effort !== void 0 && modelId === void 0) {
|
|
6760
|
+
if (effort !== void 0 && (modelId === void 0 || modelId === "inherit")) {
|
|
6759
6761
|
throw new ConfigurationError(
|
|
6760
|
-
`Subagent ${filename}: reasoning_effort requires a model (effort is a model parameter)`,
|
|
6762
|
+
`Subagent ${filename}: reasoning_effort requires a concrete model (effort is a model parameter; an absent model or "inherit" cannot carry it)`,
|
|
6761
6763
|
{ code: "subagent_reasoning_effort_without_model" }
|
|
6762
6764
|
);
|
|
6763
6765
|
}
|
|
@@ -6776,7 +6778,9 @@ function resolveSandbox(fields, filename) {
|
|
|
6776
6778
|
return fields.sandbox;
|
|
6777
6779
|
}
|
|
6778
6780
|
function asString(v) {
|
|
6779
|
-
|
|
6781
|
+
if (typeof v !== "string") return void 0;
|
|
6782
|
+
const m = /^(["'])(.*)\1$/.exec(v);
|
|
6783
|
+
return m ? m[2] : v;
|
|
6780
6784
|
}
|
|
6781
6785
|
function toStringList(v) {
|
|
6782
6786
|
if (Array.isArray(v)) return v.map((t) => t.trim()).filter((t) => t.length > 0);
|
|
@@ -13863,10 +13867,11 @@ ${lines.join("\n")}
|
|
|
13863
13867
|
}
|
|
13864
13868
|
function buildChildCreateOptions(spec, inherited) {
|
|
13865
13869
|
const model = spec.model !== void 0 ? typeof spec.model === "string" ? { id: spec.model } : spec.model : inherited?.model;
|
|
13870
|
+
const sandbox = spec.sandbox ?? inherited?.sandbox;
|
|
13866
13871
|
return {
|
|
13867
13872
|
...inherited?.apiKey !== void 0 ? { apiKey: inherited.apiKey } : {},
|
|
13868
13873
|
...model !== void 0 ? { model } : {},
|
|
13869
|
-
...
|
|
13874
|
+
...sandbox !== void 0 ? { local: { sandboxOptions: { enabled: sandbox } } } : {},
|
|
13870
13875
|
...inherited?.plugins !== void 0 ? { plugins: inherited.plugins } : {},
|
|
13871
13876
|
systemPrompt: spec.instructions,
|
|
13872
13877
|
tools: spec.tools ?? []
|
|
@@ -14042,10 +14047,12 @@ function declarativeSubagentTools(agents2, parentTools) {
|
|
|
14042
14047
|
}
|
|
14043
14048
|
function bindParentCredentials(tools, agentOptions) {
|
|
14044
14049
|
const parentPlugins = Array.isArray(agentOptions.plugins) ? agentOptions.plugins : void 0;
|
|
14050
|
+
const parentSandbox = agentOptions.local?.sandboxOptions?.enabled;
|
|
14045
14051
|
const credentials = {
|
|
14046
14052
|
...agentOptions.apiKey !== void 0 ? { apiKey: agentOptions.apiKey } : {},
|
|
14047
14053
|
...typeof agentOptions.model === "object" ? { model: agentOptions.model } : {},
|
|
14048
|
-
...parentPlugins !== void 0 ? { plugins: parentPlugins } : {}
|
|
14054
|
+
...parentPlugins !== void 0 ? { plugins: parentPlugins } : {},
|
|
14055
|
+
...parentSandbox !== void 0 ? { sandbox: parentSandbox } : {}
|
|
14049
14056
|
};
|
|
14050
14057
|
for (const tool of tools) inheritSubAgentCredentials(tool, credentials);
|
|
14051
14058
|
}
|