@theokit/sdk 2.22.0 → 2.24.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 +52 -0
- package/dist/a2a/index.cjs +43 -15
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +43 -15
- package/dist/a2a/index.js.map +1 -1
- package/dist/a2a/subagent.d.cts +27 -2
- package/dist/a2a/subagent.d.ts +27 -2
- package/dist/{cron-Bpt_1khA.d.cts → cron-Bd2oRD7A.d.cts} +1 -1
- package/dist/{cron-7CruUd_0.d.ts → cron-vjod0qVQ.d.ts} +1 -1
- package/dist/cron.cjs +3 -1
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.d.cts +2 -2
- package/dist/cron.d.ts +2 -2
- package/dist/cron.js +3 -1
- package/dist/cron.js.map +1 -1
- package/dist/define-tool.d.ts +33 -20
- package/dist/{errors-CkCaIqVP.d.cts → errors-DIKBXffg.d.cts} +1 -1
- package/dist/{errors-BuwwkrAk.d.ts → errors-DRS-kqOK.d.ts} +1 -1
- package/dist/errors.d.cts +2 -2
- package/dist/eval.cjs +3 -1
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +3 -1
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -26
- package/dist/index.d.ts +37 -26
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/{run-CrIulPF7.d.cts → run-Cr0C6cOM.d.cts} +17 -0
- package/dist/{run-CrIulPF7.d.ts → run-Cr0C6cOM.d.ts} +17 -0
- package/dist/types/run.d.ts +17 -0
- package/dist/workflow.cjs +37 -0
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +47 -1
- package/dist/workflow.d.ts +47 -1
- package/dist/workflow.js +37 -2
- package/dist/workflow.js.map +1 -1
- package/package.json +3 -3
package/dist/cron.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './run-
|
|
2
|
-
export { Q as Cron } from './cron-
|
|
1
|
+
import './run-Cr0C6cOM.cjs';
|
|
2
|
+
export { Q as Cron } from './cron-Bd2oRD7A.cjs';
|
|
3
3
|
import 'zod';
|
package/dist/cron.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './run-
|
|
2
|
-
export { Q as Cron } from './cron-
|
|
1
|
+
import './run-Cr0C6cOM.js';
|
|
2
|
+
export { Q as Cron } from './cron-vjod0qVQ.js';
|
|
3
3
|
import 'zod';
|
package/dist/cron.js
CHANGED
|
@@ -13304,6 +13304,7 @@ function levenshtein(a, b) {
|
|
|
13304
13304
|
}
|
|
13305
13305
|
|
|
13306
13306
|
// src/internal/runtime/local-agent/real-local-run.ts
|
|
13307
|
+
init_async_local_storage();
|
|
13307
13308
|
function createRealLocalRun(options) {
|
|
13308
13309
|
const { userText, id, startTime } = prepareRunContext(options.message);
|
|
13309
13310
|
const supported = /* @__PURE__ */ new Set(["stream", "wait", "cancel", "conversation"]);
|
|
@@ -13415,6 +13416,7 @@ function buildLoopInputs(options, runId, userText) {
|
|
|
13415
13416
|
...options.onStep !== void 0 ? { onStep: options.onStep } : {},
|
|
13416
13417
|
...options.onDelta !== void 0 ? { onDelta: options.onDelta } : {},
|
|
13417
13418
|
...options.sendOptions.toolChoice !== void 0 ? { toolChoice: options.sendOptions.toolChoice } : {},
|
|
13419
|
+
...options.sendOptions.activeTools !== void 0 ? { activeTools: options.sendOptions.activeTools } : {},
|
|
13418
13420
|
...options.priorMessages !== void 0 ? { priorMessages: options.priorMessages } : {},
|
|
13419
13421
|
...options.memoryTools !== void 0 && options.memoryTools.length > 0 ? { memoryTools: options.memoryTools } : {},
|
|
13420
13422
|
...buildCustomToolsInput(
|
|
@@ -13545,7 +13547,7 @@ var RealLocalRun = class extends FixtureRunBase {
|
|
|
13545
13547
|
}
|
|
13546
13548
|
async executeAgentLoop(inputs) {
|
|
13547
13549
|
try {
|
|
13548
|
-
const output = await runAgentLoop(inputs);
|
|
13550
|
+
const output = inputs.activeTools !== void 0 ? await withToolWhitelist(new Set(inputs.activeTools), () => runAgentLoop(inputs)) : await runAgentLoop(inputs);
|
|
13549
13551
|
this.applyAgentLoopOutput(output);
|
|
13550
13552
|
this.transitionTo(output.finalStatus);
|
|
13551
13553
|
} catch (cause) {
|