@ai-setting/roy-agent-core 1.6.11 → 1.6.13
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/dist/env/agent/index.js +3 -3
- package/dist/env/event-source/index.js +5 -5
- package/dist/env/index.js +19 -19
- package/dist/env/prompt/index.js +2 -2
- package/dist/env/task/delegate/index.js +4 -4
- package/dist/env/task/index.js +7 -7
- package/dist/env/task/plugins/index.js +4 -4
- package/dist/env/task/storage/index.js +2 -1
- package/dist/env/task/tools/operation/index.js +1 -1
- package/dist/env/tool/built-in/index.js +2 -2
- package/dist/env/tool/index.js +3 -3
- package/dist/env/workflow/engine/index.js +3 -3
- package/dist/env/workflow/index.js +7 -7
- package/dist/env/workflow/service/index.js +1 -1
- package/dist/env/workflow/tools/index.js +4 -4
- package/dist/env/workflow/utils/index.js +2 -2
- package/dist/index.js +132 -21
- package/dist/shared/@ai-setting/{roy-agent-core-0n2a8cbn.js → roy-agent-core-0crh2g0m.js} +594 -237
- package/dist/shared/@ai-setting/{roy-agent-core-0cftbg62.js → roy-agent-core-0pbmweh4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jenchn33.js → roy-agent-core-24rmf17n.js} +8 -0
- package/dist/shared/@ai-setting/{roy-agent-core-2ek596yd.js → roy-agent-core-2b4078kz.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-z7f8hyv7.js → roy-agent-core-6jqpdjr4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-38kbfarg.js → roy-agent-core-6qbyfzsw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mb7b62sm.js → roy-agent-core-8cbsjkkx.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-9abv4ewh.js +1122 -0
- package/dist/shared/@ai-setting/{roy-agent-core-trdpar9f.js → roy-agent-core-apz6v22z.js} +419 -60
- package/dist/shared/@ai-setting/{roy-agent-core-y5ymc4f8.js → roy-agent-core-deqpzcg7.js} +46 -14
- package/dist/shared/@ai-setting/{roy-agent-core-m38q2azm.js → roy-agent-core-fvkyv5j6.js} +4 -2
- package/dist/shared/@ai-setting/{roy-agent-core-3rs38pf7.js → roy-agent-core-fwxqevpf.js} +11 -8
- package/dist/shared/@ai-setting/{roy-agent-core-pzeexnhf.js → roy-agent-core-nv4yfy3m.js} +4 -3
- package/dist/shared/@ai-setting/roy-agent-core-rn57psp0.js +396 -0
- package/dist/shared/@ai-setting/{roy-agent-core-wqe84f84.js → roy-agent-core-v5nknfh0.js} +30 -8
- package/dist/shared/@ai-setting/{roy-agent-core-06574wqa.js → roy-agent-core-v77pp20w.js} +4 -4
- package/dist/shared/@ai-setting/roy-agent-core-vcjq65nz.js +436 -0
- package/dist/shared/@ai-setting/{roy-agent-core-8wd3qwx5.js → roy-agent-core-wjve1qr5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5w9a1eqa.js → roy-agent-core-wpw37qqf.js} +88 -3
- package/dist/shared/@ai-setting/{roy-agent-core-p6x6n3k4.js → roy-agent-core-x7fgze6s.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-p2vpsd1d.js → roy-agent-core-ywtmc0bh.js} +166 -6
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-4yq23m5g.js +0 -421
- package/dist/shared/@ai-setting/roy-agent-core-9xby523m.js +0 -961
- package/dist/shared/@ai-setting/roy-agent-core-t94ktchq.js +0 -213
- /package/dist/shared/@ai-setting/{roy-agent-core-zs31w092.js → roy-agent-core-9nhwdq9r.js} +0 -0
|
@@ -343,6 +343,14 @@ var init_agent_component_adapter = __esm(() => {
|
|
|
343
343
|
} catch {}
|
|
344
344
|
}
|
|
345
345
|
context.additionInfo = additionInfo;
|
|
346
|
+
const ctxScope = config.cancellationScope;
|
|
347
|
+
if (ctxScope && typeof ctxScope.onForce === "function") {
|
|
348
|
+
ctxScope.onForce("agent-component-adapter-force", () => {
|
|
349
|
+
if (deadlineController && !deadlineController.signal.aborted) {
|
|
350
|
+
deadlineController.abort("force");
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
}
|
|
346
354
|
const result = await this.agentComponent.run(config.type || "general", userInput, context);
|
|
347
355
|
if (result.error?.startsWith("__ASK_USER_ERROR__:")) {
|
|
348
356
|
const jsonStr = result.error.substring("__ASK_USER_ERROR__:".length);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentComponentAdapter,
|
|
3
3
|
init_agent_component_adapter
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-24rmf17n.js";
|
|
5
5
|
import"./roy-agent-core-1db4vpc6.js";
|
|
6
6
|
import"./roy-agent-core-e25xkv53.js";
|
|
7
7
|
import"./roy-agent-core-dbkkjmqz.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TAG_MAX_COUNT,
|
|
3
3
|
TAG_MIN_COUNT
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-ywtmc0bh.js";
|
|
5
5
|
import {
|
|
6
6
|
validateWorkflowDefinition
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-wjve1qr5.js";
|
|
8
8
|
import {
|
|
9
9
|
AskUserError,
|
|
10
10
|
init_workflow_hil
|