@ai-setting/roy-agent-core 1.5.89 → 1.5.91
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/config/index.js +8 -8
- package/dist/env/agent/index.js +14 -14
- package/dist/env/commands/index.js +8 -8
- package/dist/env/context/index.js +4 -4
- package/dist/env/debug/index.js +8 -8
- package/dist/env/event-source/index.js +18 -14
- package/dist/env/hook/index.js +6 -6
- package/dist/env/index.js +35 -35
- package/dist/env/llm/index.js +12 -10
- package/dist/env/log-trace/index.js +8 -8
- package/dist/env/mcp/index.js +9 -9
- package/dist/env/mcp/tool/index.js +2 -2
- package/dist/env/memory/index.js +9 -9
- package/dist/env/memory/plugin/index.js +2 -2
- package/dist/env/plugin/index.js +8 -8
- package/dist/env/prompt/index.js +9 -9
- package/dist/env/session/index.js +11 -11
- package/dist/env/session/storage/index.js +4 -4
- package/dist/env/skill/index.js +8 -8
- package/dist/env/task/delegate/index.js +7 -7
- package/dist/env/task/index.js +12 -12
- package/dist/env/task/plugins/index.js +7 -7
- package/dist/env/task/storage/index.js +2 -2
- package/dist/env/task/tools/index.js +4 -4
- package/dist/env/tool/built-in/index.js +3 -3
- package/dist/env/tool/index.js +10 -10
- package/dist/env/workflow/engine/index.js +9 -9
- package/dist/env/workflow/index.js +15 -15
- package/dist/env/workflow/nodes/index.js +3 -3
- package/dist/env/workflow/service/index.js +3 -3
- package/dist/env/workflow/storage/index.js +4 -4
- package/dist/env/workflow/tools/index.js +4 -4
- package/dist/env/workflow/utils/index.js +3 -3
- package/dist/index.js +155 -50
- package/dist/shared/@ai-setting/{roy-agent-core-fvfc7f6v.js → roy-agent-core-0ger6zdn.js} +65 -11
- package/dist/shared/@ai-setting/{roy-agent-core-bwjpte58.js → roy-agent-core-0vsnecwa.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-h5867smx.js → roy-agent-core-0ye4q2jj.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-prdngx28.js → roy-agent-core-33rhv946.js} +43 -7
- package/dist/shared/@ai-setting/{roy-agent-core-djtkntar.js → roy-agent-core-4w6rgxs4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fgpnv7dt.js → roy-agent-core-55br4t6v.js} +80 -37
- package/dist/shared/@ai-setting/{roy-agent-core-3952rkj0.js → roy-agent-core-578qk38y.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-2q7cshpm.js → roy-agent-core-5j649pb1.js} +289 -21
- package/dist/shared/@ai-setting/{roy-agent-core-2h38rvyj.js → roy-agent-core-634ee5jb.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-w6bmrgap.js → roy-agent-core-7svhckhz.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-ce10b0ez.js → roy-agent-core-8x4ngxcy.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-83d035pp.js → roy-agent-core-97tjdb2r.js} +70 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qbq3jgrn.js → roy-agent-core-9amq4epa.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-pcdzfwdv.js → roy-agent-core-9xby523m.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mw4ty0ba.js → roy-agent-core-at05dk0z.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-ewr1nw7t.js → roy-agent-core-b1vkkcbr.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-n19rm7tw.js → roy-agent-core-b2thb9xj.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-3sv590cv.js → roy-agent-core-b77yz0wt.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-yanpq5gb.js → roy-agent-core-bdajt9cs.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-3czy06aq.js → roy-agent-core-bqwj1dq0.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-k05v31rc.js → roy-agent-core-cg146hmg.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-07290s9n.js → roy-agent-core-cx67bv9d.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-taxvytzz.js → roy-agent-core-cx9p8b2t.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-d6597yp0.js → roy-agent-core-ddghwfmk.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-vneyghpg.js → roy-agent-core-ddq5hcp5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qhhxx2x2.js → roy-agent-core-ds5f75pg.js} +2 -1
- package/dist/shared/@ai-setting/{roy-agent-core-tq9528d3.js → roy-agent-core-e7t3rj0e.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-h2d1s8yd.js → roy-agent-core-fg5eaht3.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-q7sqeax6.js → roy-agent-core-fx1fdzbz.js} +163 -3
- package/dist/shared/@ai-setting/{roy-agent-core-hc20420t.js → roy-agent-core-g2mth323.js} +28 -4
- package/dist/shared/@ai-setting/{roy-agent-core-7tp56w6n.js → roy-agent-core-gp872e7m.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-c67wr8sp.js → roy-agent-core-hf8pqrvy.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-32m0nb9j.js → roy-agent-core-j3qb695p.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-r0m0at3x.js → roy-agent-core-j7jeqxhd.js} +121 -9
- package/dist/shared/@ai-setting/{roy-agent-core-h4h55x4h.js → roy-agent-core-jexyz11d.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-hxsbegfc.js → roy-agent-core-jf865m5b.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-b8r4tfqq.js → roy-agent-core-ksx9a556.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-rgckng3p.js → roy-agent-core-pf1c360e.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-xckhrs2p.js → roy-agent-core-q7ffkt1e.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-gb9gbkc3.js → roy-agent-core-q88vxmx5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-y5d04fm3.js → roy-agent-core-scp0afxg.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-3f6k060j.js → roy-agent-core-snvsn60t.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-xnxyzaw4.js → roy-agent-core-spzb03na.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-86d4exyf.js → roy-agent-core-sssn8kt9.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-m3dkyprg.js → roy-agent-core-svcr4gjw.js} +14 -9
- package/dist/shared/@ai-setting/{roy-agent-core-nqzt9ne4.js → roy-agent-core-vady4w02.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-shme7set.js → roy-agent-core-vyygk314.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-5kdw0p98.js → roy-agent-core-w1s8yrm5.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-v8xa6vs8.js → roy-agent-core-wmkx79b1.js} +14 -12
- package/dist/shared/@ai-setting/{roy-agent-core-t1ef8hf2.js → roy-agent-core-ws76avbn.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-xhcgg11h.js → roy-agent-core-wtbyj0q1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fjexv5nm.js → roy-agent-core-xgnpr28w.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-c1j7ev4e.js → roy-agent-core-yfhgxh5a.js} +71 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qg4rma4c.js → roy-agent-core-zttjq1h3.js} +1 -1
- package/package.json +1 -1
- /package/dist/shared/@ai-setting/{roy-agent-core-4f3976cd.js → roy-agent-core-k5hxvaf0.js} +0 -0
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseComponent
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-pf1c360e.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
14
14
|
|
|
15
15
|
// src/env/memory/types.ts
|
|
16
16
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
builtInPrompts
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-97tjdb2r.js";
|
|
4
4
|
import {
|
|
5
5
|
getXDGPath
|
|
6
6
|
} from "./roy-agent-core-qxnbvgwe.js";
|
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseComponent
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-pf1c360e.js";
|
|
14
14
|
import {
|
|
15
15
|
createHook
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-ksx9a556.js";
|
|
17
17
|
import {
|
|
18
18
|
globalHookManager,
|
|
19
19
|
init_global_hook_manager
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-gp872e7m.js";
|
|
21
21
|
import {
|
|
22
22
|
createLogger,
|
|
23
23
|
init_logger
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
25
25
|
|
|
26
26
|
// src/env/prompt/types.ts
|
|
27
27
|
import { z } from "zod";
|
|
@@ -253,6 +253,25 @@ Workflow 是预定义的自动化流程,可以高效解决常见类型的任
|
|
|
253
253
|
- **不要为了用 workflow 而用**,强行创建一个不合适的 workflow 来套用任务不如直接用传统方式解决
|
|
254
254
|
- **委托子智能体时**:如果认为有 workflow 可能帮助子智能体,可以在 prompt 中提示子智能体先查询 tag 池搜索可用 workflow
|
|
255
255
|
|
|
256
|
+
### ⚡ Session 恢复(重要,耗时 workflow 必备)
|
|
257
|
+
|
|
258
|
+
对于耗时较长、易超时的 workflow(如 \`strict-task-agent\`),如遇超时/中断,可使用 \`-s\` 选项从断点继续运行,**避免重头开始**:
|
|
259
|
+
|
|
260
|
+
# 初次运行(可能超时)
|
|
261
|
+
roy-agent workflow run <workflow-name> --input '{"query":"..."}'
|
|
262
|
+
|
|
263
|
+
# 拿到 Run ID 后(如 workflow_run_1783407282099_1_ah8pho),从中断处继续:
|
|
264
|
+
roy-agent workflow run <workflow-name> -s workflow_run_1783407282099_1_ah8pho
|
|
265
|
+
|
|
266
|
+
# 长选项亦可:
|
|
267
|
+
roy-agent workflow run <workflow-name> --session workflow_run_1783407282099_1_ah8pho
|
|
268
|
+
|
|
269
|
+
> **重要规则**:
|
|
270
|
+
> - Session ID 必须以 \`workflow_\` 开头,否则 CLI 会立即报错
|
|
271
|
+
> - 引擎会从 last message 推断恢复点(\`workflow.node.start\` → 节点级 resume;\`workflow.node.end\` → 下一节点;\`workflow.node.interrupt\` → ask_user)
|
|
272
|
+
> - agentNode 恢复时会自动 attach \`agentSessionId\`,agent 从中断的 sub-session 继续
|
|
273
|
+
> - 适合长时间 workflow(strict-task-agent / bench-agent-host 等)的超时重试
|
|
274
|
+
|
|
256
275
|
### {{memory}}`,
|
|
257
276
|
roy: `You are Roy, a versatile AI assistant inspired by Jarvis - intelligent, proactive, and capable.
|
|
258
277
|
|
|
@@ -443,6 +462,24 @@ Workflows are pre-built automation pipelines. When tackling a complex task, **co
|
|
|
443
462
|
|
|
444
463
|
**Key principle**: Workflows are here to help, not restrict. If no workflow fits, **do NOT force it** — just solve the task directly. This is the correct approach.
|
|
445
464
|
|
|
465
|
+
#### ⚡ Session 恢复(重要)
|
|
466
|
+
|
|
467
|
+
For long-running workflows (e.g., \`strict-task-agent\`, \`bench-agent-host\`) that may time out, use the \`-s\` / \`--session\` option to **resume from the interrupt point** instead of restarting from scratch:
|
|
468
|
+
|
|
469
|
+
# Initial run (may time out)
|
|
470
|
+
roy-agent workflow run <workflow-name> --input '{"query":"..."}'
|
|
471
|
+
|
|
472
|
+
# After timeout/interrupt, resume from where it stopped (using the Run ID):
|
|
473
|
+
roy-agent workflow run <workflow-name> -s workflow_run_1783407282099_1_ah8pho
|
|
474
|
+
# or
|
|
475
|
+
roy-agent workflow run <workflow-name> --session workflow_run_1783407282099_1_ah8pho
|
|
476
|
+
|
|
477
|
+
> **Key rules**:
|
|
478
|
+
> - Session ID must start with \`workflow_\` prefix (CLI validates and rejects otherwise)
|
|
479
|
+
> - The engine infers the resume point from the last session message: \`workflow.node.start\` → node-level resume, \`workflow.node.end\` → next node, \`workflow.node.interrupt\` → ask_user
|
|
480
|
+
> - For agentNode, \`agentSessionId\` is auto-attached so the agent continues from its sub-session
|
|
481
|
+
> - **Highly recommended for strict-task-agent** — its 3-stage (plan/execute/verify) flow often hits timeouts on complex tasks
|
|
482
|
+
|
|
446
483
|
#### EventSource Command
|
|
447
484
|
|
|
448
485
|
\`\`\`bash
|
|
@@ -930,7 +967,39 @@ workflow_run(workflow_name="strict-task-agent", input={"task_description": "修
|
|
|
930
967
|
# → 返回 run_id, status, output
|
|
931
968
|
\`\`\`
|
|
932
969
|
|
|
933
|
-
##
|
|
970
|
+
## ⚡ Session 恢复(核心能力)
|
|
971
|
+
|
|
972
|
+
\`workflow_run\` 支持通过 \`-s\` / \`--session\` 选项从中断处继续运行。这是处理**长时间 workflow 超时**(特别是 \`strict-task-agent\` 的 plan→execute→verify 三阶段)时的关键能力。
|
|
973
|
+
|
|
974
|
+
### 使用场景
|
|
975
|
+
- **用户请求"继续之前的 workflow"** — 用户给的 prompt 包含 "继续" / "resume" / "接着" / "从断点" + session ID
|
|
976
|
+
- **session ID 出现在用户消息** — 形如 \`workflow_run_1783407282099_1_ah8pho\`
|
|
977
|
+
- **workflow 超时被报告** — 子智能体或上游报告"workflow 超时"+"session ID"
|
|
978
|
+
|
|
979
|
+
### 触发条件识别
|
|
980
|
+
如果满足以下任一条件,**优先使用 \`workflow_run\` 工具的 \`session\` 参数**而不是新建一个 workflow run:
|
|
981
|
+
1. 用户消息中出现 \`workflow_run_xxx\` 格式的 ID
|
|
982
|
+
2. 用户消息包含 resume/继续/接着/断点/从中断处 等关键词
|
|
983
|
+
3. 上游任务报告某个 workflow 超时并提供了 session ID
|
|
984
|
+
|
|
985
|
+
### 调用方式
|
|
986
|
+
|
|
987
|
+
# 不要走 workflow_get → workflow_run 这条 fresh-run 路径
|
|
988
|
+
# 直接走 session resume 路径:
|
|
989
|
+
workflow_run(
|
|
990
|
+
workflow_name="strict-task-agent",
|
|
991
|
+
session="workflow_run_1783407282099_1_ah8pho"
|
|
992
|
+
# 可选:如果用户提供了新的 query,可以加 input 字段
|
|
993
|
+
)
|
|
994
|
+
|
|
995
|
+
### 关键约束
|
|
996
|
+
- ✅ Session ID 必须以 \`workflow_\` 开头(CLI 校验,不合法会立即报错)
|
|
997
|
+
- ✅ Resume 会从 last message 推断恢复点:start → 节点级 resume,end → 下一节点,interrupt → ask_user
|
|
998
|
+
- ✅ agentNode 恢复时自动 attach \`agentSessionId\`,agent 从 sub-session 继续
|
|
999
|
+
- ❌ 不要在 resume 时传 \`input\` 覆盖 query(除非用户明确说要修改任务)
|
|
1000
|
+
- ❌ 不要把 \`workflow_xxx\` 当作 workflow name 调 \`workflow_get\`(那是 session ID 不是 workflow name)
|
|
1001
|
+
|
|
1002
|
+
### 严格约束
|
|
934
1003
|
|
|
935
1004
|
- ✅ **只**通过 \`workflow_run\` 工具执行 workflow
|
|
936
1005
|
- ✅ 先调用 \`workflow_get\` 获取 schema,再调用 \`workflow_run\`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_node_registry_helper,
|
|
3
3
|
init_node_registry_helper
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-xgnpr28w.js";
|
|
5
5
|
import {
|
|
6
6
|
WorkflowEngine,
|
|
7
7
|
exports_engine,
|
|
8
8
|
init_engine
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-snvsn60t.js";
|
|
10
10
|
import {
|
|
11
11
|
askUserTool,
|
|
12
12
|
createRunWorkflowTool,
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
createWorkflowSearchTool,
|
|
19
19
|
createWorkflowTagListTool,
|
|
20
20
|
createWorkflowValidateTool
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-j3qb695p.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkflowService
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-e7t3rj0e.js";
|
|
25
25
|
import {
|
|
26
26
|
BaseComponent
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-pf1c360e.js";
|
|
28
28
|
import {
|
|
29
29
|
createLogger,
|
|
30
30
|
init_logger
|
|
31
|
-
} from "./roy-agent-core-
|
|
31
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
32
32
|
import {
|
|
33
33
|
__require,
|
|
34
34
|
__toCommonJS
|
|
@@ -104,7 +104,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
104
104
|
return;
|
|
105
105
|
try {
|
|
106
106
|
const { NodeRegistry } = await import("../../env/workflow/engine/index.js");
|
|
107
|
-
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-
|
|
107
|
+
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-ddghwfmk.js");
|
|
108
108
|
this.nodeRegistry = new NodeRegistry;
|
|
109
109
|
registerDecoratorNodeType2(this.nodeRegistry);
|
|
110
110
|
this.decoratorsRegistered = true;
|
|
@@ -134,14 +134,14 @@ class WorkflowComponent extends BaseComponent {
|
|
|
134
134
|
}
|
|
135
135
|
async runWorkflow(definition, input, options) {
|
|
136
136
|
const { NodeRegistry } = await import("../../env/workflow/engine/index.js");
|
|
137
|
-
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-
|
|
137
|
+
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-ddghwfmk.js");
|
|
138
138
|
const toolComponent = this.toolComponent || this._workflowEnv?.getComponent("tool");
|
|
139
139
|
const skillComponent = this._workflowEnv?.getComponent("skill");
|
|
140
140
|
let agentRunner = this.agentRunner;
|
|
141
141
|
if (!agentRunner && this._workflowEnv) {
|
|
142
142
|
const agentComponent = this._workflowEnv.getComponent("agent");
|
|
143
143
|
if (agentComponent) {
|
|
144
|
-
const { AgentComponentAdapter } = await import("./roy-agent-core-
|
|
144
|
+
const { AgentComponentAdapter } = await import("./roy-agent-core-q7ffkt1e.js");
|
|
145
145
|
agentRunner = new AgentComponentAdapter(agentComponent, {}, this.sessionComponent);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -163,7 +163,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
163
163
|
if (this.workflowService) {
|
|
164
164
|
this.workflowService = null;
|
|
165
165
|
try {
|
|
166
|
-
const { closeDatabase } = await import("./roy-agent-core-
|
|
166
|
+
const { closeDatabase } = await import("./roy-agent-core-cx9p8b2t.js");
|
|
167
167
|
closeDatabase();
|
|
168
168
|
componentLogger.info("[WorkflowComponent] SQLite database closed");
|
|
169
169
|
} catch (error) {
|
|
@@ -231,9 +231,9 @@ class WorkflowComponent extends BaseComponent {
|
|
|
231
231
|
}
|
|
232
232
|
async initSqliteService() {
|
|
233
233
|
try {
|
|
234
|
-
const { getDatabase, initializeTables } = await import("./roy-agent-core-
|
|
235
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
236
|
-
const { TagRepository } = await import("./roy-agent-core-
|
|
234
|
+
const { getDatabase, initializeTables } = await import("./roy-agent-core-cx9p8b2t.js");
|
|
235
|
+
const { WorkflowRepository } = await import("./roy-agent-core-sssn8kt9.js");
|
|
236
|
+
const { TagRepository } = await import("./roy-agent-core-hf8pqrvy.js");
|
|
237
237
|
const db = getDatabase();
|
|
238
238
|
initializeTables();
|
|
239
239
|
const workflowRepository = new WorkflowRepository(db);
|
|
@@ -299,7 +299,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
299
299
|
this.workflowService = null;
|
|
300
300
|
this.nodeRegistry = null;
|
|
301
301
|
try {
|
|
302
|
-
const { closeDatabase } = await import("./roy-agent-core-
|
|
302
|
+
const { closeDatabase } = await import("./roy-agent-core-cx9p8b2t.js");
|
|
303
303
|
closeDatabase();
|
|
304
304
|
} catch {}
|
|
305
305
|
this._status = "stopped";
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
} from "./roy-agent-core-hvdfgvfz.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_SUBAGENT_PROMPT
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-vady4w02.js";
|
|
8
8
|
import {
|
|
9
9
|
TaskHookPoints
|
|
10
10
|
} from "./roy-agent-core-92z6t4he.js";
|
|
11
11
|
import {
|
|
12
12
|
globalHookManager,
|
|
13
13
|
init_global_hook_manager
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-gp872e7m.js";
|
|
15
15
|
import {
|
|
16
16
|
init_context
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-zttjq1h3.js";
|
|
18
18
|
import {
|
|
19
19
|
getCurrentTaskId
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-scp0afxg.js";
|
|
21
21
|
import {
|
|
22
22
|
TracedAs,
|
|
23
23
|
init_decorator
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-cg146hmg.js";
|
|
25
25
|
import {
|
|
26
26
|
createLogger,
|
|
27
27
|
init_logger
|
|
28
|
-
} from "./roy-agent-core-
|
|
28
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
29
29
|
import {
|
|
30
30
|
__legacyDecorateClassTS
|
|
31
31
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
BackgroundTaskManager,
|
|
6
6
|
createDelegateTool,
|
|
7
7
|
createStopTool
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-at05dk0z.js";
|
|
9
9
|
import {
|
|
10
10
|
SQLiteTaskStore,
|
|
11
11
|
getDefaultTaskDbPath
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-9xby523m.js";
|
|
13
13
|
import {
|
|
14
14
|
batchArchiveTaskTool,
|
|
15
15
|
batchDeleteTaskTool,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
listTasksTool,
|
|
21
21
|
searchTasksTool,
|
|
22
22
|
updateTaskTool
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-0ye4q2jj.js";
|
|
24
24
|
import {
|
|
25
25
|
createOperationTool,
|
|
26
26
|
deleteOperationTool,
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
37
37
|
import {
|
|
38
38
|
BaseComponent
|
|
39
|
-
} from "./roy-agent-core-
|
|
39
|
+
} from "./roy-agent-core-pf1c360e.js";
|
|
40
40
|
import {
|
|
41
41
|
globalHookManager,
|
|
42
42
|
init_global_hook_manager
|
|
43
|
-
} from "./roy-agent-core-
|
|
43
|
+
} from "./roy-agent-core-gp872e7m.js";
|
|
44
44
|
import {
|
|
45
45
|
TracedAs,
|
|
46
46
|
init_decorator
|
|
47
|
-
} from "./roy-agent-core-
|
|
47
|
+
} from "./roy-agent-core-cg146hmg.js";
|
|
48
48
|
import {
|
|
49
49
|
createLogger,
|
|
50
50
|
init_logger
|
|
51
|
-
} from "./roy-agent-core-
|
|
51
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
52
52
|
import {
|
|
53
53
|
__legacyDecorateClassTS
|
|
54
54
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_decorator,
|
|
3
3
|
wrapFunction
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-cg146hmg.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogger,
|
|
7
7
|
init_logger
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
9
9
|
|
|
10
10
|
// src/env/task/plugins/auto-task-plugin.ts
|
|
11
11
|
init_logger();
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
} from "./roy-agent-core-fnv3ev18.js";
|
|
9
9
|
import {
|
|
10
10
|
adaptMcpTool
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-4w6rgxs4.js";
|
|
12
12
|
import {
|
|
13
13
|
toEnvKey
|
|
14
14
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
15
15
|
import {
|
|
16
16
|
BaseComponent
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-pf1c360e.js";
|
|
18
18
|
import {
|
|
19
19
|
createLogger,
|
|
20
20
|
init_logger
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
22
22
|
|
|
23
23
|
// src/env/mcp/types.ts
|
|
24
24
|
import { z } from "zod";
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseComponent
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-pf1c360e.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
14
14
|
|
|
15
15
|
// src/env/skill/skill-component.ts
|
|
16
16
|
init_logger();
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
initDatabase,
|
|
6
6
|
initializeTables,
|
|
7
7
|
resetDatabase
|
|
8
|
-
} from "./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-jexyz11d.js";
|
|
9
|
+
import"./roy-agent-core-b77yz0wt.js";
|
|
10
10
|
import"./roy-agent-core-rvxg1wps.js";
|
|
11
|
-
import"./roy-agent-core-
|
|
12
|
-
import"./roy-agent-core-
|
|
11
|
+
import"./roy-agent-core-cg146hmg.js";
|
|
12
|
+
import"./roy-agent-core-vyygk314.js";
|
|
13
13
|
import"./roy-agent-core-7z9b1fm8.js";
|
|
14
14
|
import"./roy-agent-core-c6592r3c.js";
|
|
15
15
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
hasDecoratorNodes,
|
|
4
4
|
init_node_registry_helper,
|
|
5
5
|
registerDecoratorNodeType
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-xgnpr28w.js";
|
|
7
7
|
import"./roy-agent-core-ddwa0n6h.js";
|
|
8
8
|
import"./roy-agent-core-1ce3fqrk.js";
|
|
9
|
-
import"./roy-agent-core-
|
|
10
|
-
import"./roy-agent-core-
|
|
9
|
+
import"./roy-agent-core-cg146hmg.js";
|
|
10
|
+
import"./roy-agent-core-vyygk314.js";
|
|
11
11
|
import"./roy-agent-core-7z9b1fm8.js";
|
|
12
12
|
import"./roy-agent-core-c6592r3c.js";
|
|
13
13
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
invoke
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-j7jeqxhd.js";
|
|
4
4
|
import {
|
|
5
5
|
ContextError,
|
|
6
6
|
ErrorCodes
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
12
12
|
import {
|
|
13
13
|
BaseComponent
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-pf1c360e.js";
|
|
15
15
|
import {
|
|
16
16
|
LLMHookPoints,
|
|
17
17
|
globalHookManager,
|
|
18
18
|
init_global_hook_manager
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-gp872e7m.js";
|
|
20
20
|
import {
|
|
21
21
|
TracedAs,
|
|
22
22
|
init_decorator
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-cg146hmg.js";
|
|
24
24
|
import {
|
|
25
25
|
createLogger,
|
|
26
26
|
init_logger
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-vyygk314.js";
|
|
28
28
|
import {
|
|
29
29
|
__legacyDecorateClassTS
|
|
30
30
|
} from "./roy-agent-core-fs0mn2jk.js";
|