@theokit/sdk 4.2.9 → 4.2.10
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/a2a/index.cjs +8 -1
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +8 -1
- package/dist/a2a/index.js.map +1 -1
- package/dist/cron.cjs +8 -1
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +8 -1
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +8 -1
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +8 -1
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/eval.cjs
CHANGED
|
@@ -13732,7 +13732,7 @@ function detectPrimaryProvider() {
|
|
|
13732
13732
|
|
|
13733
13733
|
// src/a2a/subagent.ts
|
|
13734
13734
|
init_agent_factory_registry();
|
|
13735
|
-
var INHERIT_CREDENTIALS = /* @__PURE__ */ Symbol("theokit.subagent.inheritCredentials");
|
|
13735
|
+
var INHERIT_CREDENTIALS = /* @__PURE__ */ Symbol.for("theokit.subagent.inheritCredentials");
|
|
13736
13736
|
function inheritSubAgentCredentials(tool, creds) {
|
|
13737
13737
|
const sink = tool[INHERIT_CREDENTIALS];
|
|
13738
13738
|
if (typeof sink === "function") sink(creds);
|
|
@@ -13795,6 +13795,13 @@ async function runChildAgent(spec, input, signal, maxSteps, inherited) {
|
|
|
13795
13795
|
};
|
|
13796
13796
|
const run = await agent.send(input, sendOptions);
|
|
13797
13797
|
const result = await run.wait();
|
|
13798
|
+
if (result.status === "error") {
|
|
13799
|
+
const cause = result.error;
|
|
13800
|
+
throw new Error(
|
|
13801
|
+
`subagent "${spec.name}" run failed: ${cause?.message ?? "unknown error"}`,
|
|
13802
|
+
cause !== void 0 ? { cause } : void 0
|
|
13803
|
+
);
|
|
13804
|
+
}
|
|
13798
13805
|
const text = result.result ?? "(no response)";
|
|
13799
13806
|
return spec.includeToolResults === true ? text + await collectChildToolResults(run) : text;
|
|
13800
13807
|
} finally {
|