@ai-setting/roy-agent-core 1.7.90 → 1.7.92
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 +11 -11
- package/dist/env/agent/agent-component.js +18 -18
- package/dist/env/agent/index.js +18 -18
- package/dist/env/commands/index.js +10 -10
- package/dist/env/context/index.js +6 -6
- package/dist/env/debug/formatters/index.js +1 -1
- package/dist/env/debug/index.js +10 -10
- package/dist/env/error-reply.js +4 -4
- package/dist/env/event-source/cli-command-handler.js +4 -4
- package/dist/env/event-source/event-source-handlers.js +28 -28
- package/dist/env/event-source/event-store.js +5 -5
- package/dist/env/event-source/idempotency-key.js +1 -1
- package/dist/env/event-source/index.js +29 -29
- package/dist/env/event-source/wecom-respond-registry.js +6 -6
- package/dist/env/event-source/wecom-session-card-sender.js +6 -6
- package/dist/env/hook/index.js +8 -8
- package/dist/env/index.js +64 -64
- package/dist/env/lark-mention-utils.js +1 -1
- package/dist/env/llm/index.js +11 -11
- package/dist/env/log-trace/index.js +10 -10
- package/dist/env/log-trace/logger.js +3 -3
- package/dist/env/mcp/index.js +11 -11
- package/dist/env/mcp/npm-prefix/index.js +1 -1
- package/dist/env/mcp/tool/index.js +4 -4
- package/dist/env/memory/built-in/index.js +1 -1
- package/dist/env/memory/index.js +11 -11
- package/dist/env/memory/plugin/index.js +4 -4
- package/dist/env/plugin/index.js +10 -10
- package/dist/env/prompt/index.js +11 -11
- package/dist/env/session/index.js +14 -14
- package/dist/env/session/storage/index.js +7 -7
- package/dist/env/skill/index.js +10 -10
- package/dist/env/skill/tool/index.js +1 -1
- package/dist/env/task/backend/index.js +6 -6
- package/dist/env/task/delegate/delegate-tool.js +12 -12
- package/dist/env/task/delegate/index.js +12 -12
- package/dist/env/task/events/index.js +1 -1
- package/dist/env/task/hooks/index.js +1 -1
- package/dist/env/task/index.js +21 -21
- package/dist/env/task/mcp/index.js +7 -7
- package/dist/env/task/plugins/index.js +17 -17
- package/dist/env/task/plugins/lark-card-action-handler.d.ts +2 -1
- package/dist/env/task/plugins/lark-card-patch-notifier.js +6 -6
- package/dist/env/task/plugins/wecom-session-card-store.js +6 -6
- package/dist/env/task/prompt/index.js +1 -1
- package/dist/env/task/storage/index.js +7 -7
- package/dist/env/task/tools/index.js +7 -7
- package/dist/env/task/tools/operation/index.js +1 -1
- package/dist/env/tool/built-in/index.js +9 -9
- package/dist/env/tool/index.js +16 -16
- package/dist/env/workflow/decorators/index.js +3 -3
- package/dist/env/workflow/engine/index.js +20 -20
- package/dist/env/workflow/hooks/index.js +10 -10
- package/dist/env/workflow/index.js +34 -34
- package/dist/env/workflow/nodes/index.js +5 -5
- package/dist/env/workflow/plugins/index.js +12 -12
- package/dist/env/workflow/service/index.js +5 -5
- package/dist/env/workflow/storage/index.js +7 -7
- package/dist/env/workflow/tools/index.js +22 -22
- package/dist/env/workflow/types/index.js +3 -3
- package/dist/env/workflow/utils/index.js +10 -10
- package/dist/index.js +75 -75
- package/dist/shared/@ai-setting/{roy-agent-core-yet36q5k.js → roy-agent-core-0b4gyx3x.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-1ce3fqrk.js → roy-agent-core-0k9spnmd.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mx855td4.js → roy-agent-core-0qsfkvkn.js} +8 -8
- package/dist/shared/@ai-setting/roy-agent-core-0wmswkj6.js +1005 -0
- package/dist/shared/@ai-setting/{roy-agent-core-0n1wwndq.js → roy-agent-core-0yzxapfa.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-dvec4nn2.js → roy-agent-core-15wktzhv.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-6atd905e.js → roy-agent-core-1zat1mft.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4t3yskp8.js → roy-agent-core-3bt71phf.js} +6 -3
- package/dist/shared/@ai-setting/{roy-agent-core-7f7t9wwp.js → roy-agent-core-3c0zpmnq.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-k3h8t4q1.js → roy-agent-core-45n2r4my.js} +16 -15
- package/dist/shared/@ai-setting/{roy-agent-core-6gj1hc5z.js → roy-agent-core-46z6m682.js} +17 -17
- package/dist/shared/@ai-setting/{roy-agent-core-1vv4fx15.js → roy-agent-core-4bc28g7r.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-nm4xbs1d.js → roy-agent-core-4g9f3han.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-1db4vpc6.js → roy-agent-core-4y96ae48.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-h83zdsrq.js → roy-agent-core-5e9vmj5e.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-05z35shp.js → roy-agent-core-5p3arx77.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-tjnabyvq.js → roy-agent-core-636w46em.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-e69qxdyy.js → roy-agent-core-64ke8s3t.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-v0hf14bj.js → roy-agent-core-64py47c3.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-smf94h73.js → roy-agent-core-6bvn0kpf.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-qxnbvgwe.js → roy-agent-core-6qfz57w5.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-74z514eh.js +22 -0
- package/dist/shared/@ai-setting/{roy-agent-core-zhwcje5a.js → roy-agent-core-7sfz2n7t.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-1mhyh4c5.js → roy-agent-core-94wyp5sh.js} +6 -6
- package/dist/shared/@ai-setting/roy-agent-core-9avt2y0e.js +16 -0
- package/dist/shared/@ai-setting/roy-agent-core-9kp88brd.js +18 -0
- package/dist/shared/@ai-setting/{roy-agent-core-3wrveh5p.js → roy-agent-core-a0tck2z9.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-wqs6yypq.js → roy-agent-core-acbg6fg9.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-fzw9xzm1.js → roy-agent-core-b122g2me.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-tpm1dd1g.js → roy-agent-core-bakbb15m.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-9cen1jvg.js → roy-agent-core-bcv09vrt.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-fs0mn2jk.js → roy-agent-core-bn8rs93c.js} +2 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ds6qzmf8.js → roy-agent-core-bp1n3z48.js} +8 -5
- package/dist/shared/@ai-setting/{roy-agent-core-9c565frx.js → roy-agent-core-bwyc2j0n.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-bz03g3n4.js +19 -0
- package/dist/shared/@ai-setting/{roy-agent-core-mkc3zshb.js → roy-agent-core-c57pkcx8.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-tkpp1ba0.js → roy-agent-core-cf3nysh5.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ddwa0n6h.js → roy-agent-core-crcfqzcb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-arx535cs.js → roy-agent-core-dc2bc221.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rm7seqwb.js → roy-agent-core-ecap4nws.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-vx8zc847.js → roy-agent-core-ev110pkx.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-y6shd91r.js → roy-agent-core-ev1kvffn.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-cre2y2ct.js → roy-agent-core-ey945nk5.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-49qcpqwg.js → roy-agent-core-f82pd49t.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-krapd8x2.js → roy-agent-core-fkhdw7t8.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5kzhaap1.js → roy-agent-core-ha53k1f8.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-bjtc9d35.js → roy-agent-core-jm6bf1qq.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-v6yshv0z.js → roy-agent-core-jmyv8v71.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-2akfd64z.js → roy-agent-core-jzmk4kdh.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mf5p38yf.js → roy-agent-core-kfspjx59.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-4b38m749.js → roy-agent-core-kk2k20a3.js} +17 -16
- package/dist/shared/@ai-setting/{roy-agent-core-jvv2h3d6.js → roy-agent-core-ksrq6paw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4fkxy2gv.js → roy-agent-core-ktphs7sj.js} +8 -5
- package/dist/shared/@ai-setting/{roy-agent-core-rvxg1wps.js → roy-agent-core-m3vmmvbc.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-age3qseb.js → roy-agent-core-mgmp2gfm.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-br9cdm8d.js → roy-agent-core-mj4szr1e.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-d6zdbgtc.js → roy-agent-core-msktt7y7.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9710zwwz.js → roy-agent-core-nhr8pp3a.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-nn7a0kex.js +10 -0
- package/dist/shared/@ai-setting/{roy-agent-core-m39v7qpx.js → roy-agent-core-nrm2ejyt.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-h0x19xgn.js → roy-agent-core-p13a4x6r.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fttgm52a.js → roy-agent-core-pd2hd3q9.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-m66ysky0.js → roy-agent-core-pxqz1d1m.js} +7 -4
- package/dist/shared/@ai-setting/{roy-agent-core-7yh5wps0.js → roy-agent-core-qt3j44j7.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-q96qynhb.js → roy-agent-core-qwfdbepg.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-nqkfkpf4.js → roy-agent-core-r84dcepd.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-aa8kv18f.js → roy-agent-core-s69x33zx.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-7f10p7m2.js → roy-agent-core-ss6mghdr.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-h1e1fm9b.js → roy-agent-core-th8fq714.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-k3gcvybs.js → roy-agent-core-trgqgwab.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-5dhvfgaw.js → roy-agent-core-v3wm8gyj.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-3e040tc5.js → roy-agent-core-v7qsnh2g.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-n197medr.js → roy-agent-core-vevc6pex.js} +15 -15
- package/dist/shared/@ai-setting/{roy-agent-core-g8yr733d.js → roy-agent-core-vmbyaqqr.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-azyz78ky.js → roy-agent-core-wpc432x7.js} +10 -10
- package/dist/shared/@ai-setting/{roy-agent-core-0sbmdz8d.js → roy-agent-core-x36a0g3x.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-m7d1t3db.js → roy-agent-core-xe03wwy9.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-b7h39vrc.js → roy-agent-core-y37f7fw2.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-er070zjq.js → roy-agent-core-y7bqmfe2.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-e08bvpaq.js → roy-agent-core-ydgx8vyj.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-p31ftgq9.js → roy-agent-core-yj9w6a39.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-v1n0106v.js → roy-agent-core-ynry88mx.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-vf9sp6s3.js → roy-agent-core-yqwwebhr.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-5s2t8z00.js → roy-agent-core-yshw2fvj.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fhg03v43.js → roy-agent-core-zwckbxtq.js} +3 -3
- package/dist/test-utils/child-process-mock.js +1 -1
- package/dist/utils/temp-file-manager/index.js +4 -4
- package/package.json +4 -2
- package/dist/shared/@ai-setting/roy-agent-core-0crmsc12.js +0 -22
- package/dist/shared/@ai-setting/roy-agent-core-85xyctnb.js +0 -239
- package/dist/shared/@ai-setting/roy-agent-core-fepm835e.js +0 -19
- package/dist/shared/@ai-setting/roy-agent-core-mvh0td7p.js +0 -10
- package/dist/shared/@ai-setting/roy-agent-core-w9ryeg2p.js +0 -16
- package/dist/shared/@ai-setting/roy-agent-core-yfpnkc4z.js +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DecoratorNode,
|
|
3
3
|
init_decorator_node
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-0k9spnmd.js";
|
|
5
5
|
import {
|
|
6
6
|
getFromMapWithNormalization,
|
|
7
7
|
init_node_id_utils
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-crcfqzcb.js";
|
|
9
9
|
import {
|
|
10
10
|
TracedAs,
|
|
11
11
|
init_decorator
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
13
13
|
import {
|
|
14
14
|
createLogger,
|
|
15
15
|
init_logger
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
17
17
|
import {
|
|
18
18
|
__esm,
|
|
19
19
|
__export,
|
|
20
20
|
__legacyDecorateClassTS
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
22
22
|
|
|
23
23
|
// src/env/workflow/nodes/condition-node.ts
|
|
24
24
|
var logger, ConditionNode;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
isBuiltInEventSourceType,
|
|
8
8
|
isValidEventSourceType,
|
|
9
9
|
validateEventSourceConfig
|
|
10
|
-
} from "./roy-agent-core-
|
|
11
|
-
import"./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-ev110pkx.js";
|
|
11
|
+
import"./roy-agent-core-bn8rs93c.js";
|
|
12
12
|
export {
|
|
13
13
|
validateEventSourceConfig,
|
|
14
14
|
isValidEventSourceType,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isToolUnavailableError,
|
|
3
3
|
truncateOutputInline
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-0qsfkvkn.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRegistry
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-ynry88mx.js";
|
|
8
8
|
import {
|
|
9
9
|
createTaskOpWatermarkPlugin,
|
|
10
10
|
enqueueToAddFakeUserMessage
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-qt3j44j7.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionMessageConverter
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-ev1kvffn.js";
|
|
15
15
|
import {
|
|
16
16
|
parseToolArgsStrict,
|
|
17
17
|
safeParseToolArgs,
|
|
18
18
|
withTimeout
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-s69x33zx.js";
|
|
20
20
|
import {
|
|
21
21
|
getCurrentBgTaskId
|
|
22
22
|
} from "./roy-agent-core-c1v263jn.js";
|
|
23
23
|
import {
|
|
24
24
|
AskUserError,
|
|
25
25
|
init_workflow_hil
|
|
26
|
-
} from "./roy-agent-core-
|
|
26
|
+
} from "./roy-agent-core-c57pkcx8.js";
|
|
27
27
|
import {
|
|
28
28
|
ContextError
|
|
29
29
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
@@ -32,20 +32,20 @@ import {
|
|
|
32
32
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
33
33
|
import {
|
|
34
34
|
BaseComponent
|
|
35
|
-
} from "./roy-agent-core-
|
|
35
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
36
36
|
import {
|
|
37
37
|
globalHookManager,
|
|
38
38
|
init_global_hook_manager
|
|
39
|
-
} from "./roy-agent-core-
|
|
39
|
+
} from "./roy-agent-core-0b4gyx3x.js";
|
|
40
40
|
import {
|
|
41
41
|
init_context
|
|
42
|
-
} from "./roy-agent-core-
|
|
42
|
+
} from "./roy-agent-core-cf3nysh5.js";
|
|
43
43
|
import {
|
|
44
44
|
getCurrentTaskId,
|
|
45
45
|
getEnvContext,
|
|
46
46
|
resolveEnvParentTaskId,
|
|
47
47
|
runWithEnvContextAsync
|
|
48
|
-
} from "./roy-agent-core-
|
|
48
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
49
49
|
import {
|
|
50
50
|
TracedAs,
|
|
51
51
|
agentRunParamFilter,
|
|
@@ -57,15 +57,15 @@ import {
|
|
|
57
57
|
recordSessionMessagesParamFilter,
|
|
58
58
|
toolExecParamFilter,
|
|
59
59
|
toolExecResultFilter
|
|
60
|
-
} from "./roy-agent-core-
|
|
60
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
61
61
|
import {
|
|
62
62
|
createLogger,
|
|
63
63
|
init_logger
|
|
64
|
-
} from "./roy-agent-core-
|
|
64
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
65
65
|
import {
|
|
66
66
|
__legacyDecorateClassTS,
|
|
67
67
|
__require
|
|
68
|
-
} from "./roy-agent-core-
|
|
68
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
69
69
|
|
|
70
70
|
// src/env/agent/agent-component.ts
|
|
71
71
|
init_logger();
|
|
@@ -834,7 +834,7 @@ class AgentComponent extends BaseComponent {
|
|
|
834
834
|
this.toolComponent = tool ? tool : null;
|
|
835
835
|
if (this.llmComponent) {
|
|
836
836
|
try {
|
|
837
|
-
const mod = await import("./roy-agent-core-
|
|
837
|
+
const mod = await import("./roy-agent-core-fkhdw7t8.js");
|
|
838
838
|
mod.setUnderstandImageLLMProvider(async (messages) => {
|
|
839
839
|
const result = await this.llmComponent.invoke({
|
|
840
840
|
messages,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NEW_TASK_ID_HASH_PLACEHOLDER,
|
|
3
3
|
NEW_TASK_ID_PLACEHOLDER
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-msktt7y7.js";
|
|
5
5
|
import {
|
|
6
6
|
TASK_DISCIPLINE_GOALS
|
|
7
7
|
} from "./roy-agent-core-m46fe3x4.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
getEnvContextOrEmpty,
|
|
18
18
|
init_env_context,
|
|
19
19
|
setCurrentTaskId
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
21
21
|
import {
|
|
22
22
|
createLogger,
|
|
23
23
|
init_logger
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
25
25
|
|
|
26
26
|
// src/env/task/tools/task-types.ts
|
|
27
27
|
import { z } from "zod";
|
|
@@ -23,6 +23,7 @@ var __toCommonJS = (from) => {
|
|
|
23
23
|
return entry;
|
|
24
24
|
};
|
|
25
25
|
var __moduleCache;
|
|
26
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
26
27
|
var __returnValue = (v) => v;
|
|
27
28
|
function __exportSetter(name, newValue) {
|
|
28
29
|
this[name] = __returnValue.bind(null, newValue);
|
|
@@ -49,4 +50,4 @@ var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
|
49
50
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
50
51
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
51
52
|
|
|
52
|
-
export { __toCommonJS, __export, __legacyDecorateClassTS, __esm, __require };
|
|
53
|
+
export { __toCommonJS, __commonJS, __export, __legacyDecorateClassTS, __esm, __require };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessageConverter
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-ev1kvffn.js";
|
|
4
4
|
import {
|
|
5
5
|
canonicalizeParts
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-s69x33zx.js";
|
|
7
7
|
import {
|
|
8
8
|
createLogger,
|
|
9
9
|
init_logger
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
11
|
+
import {
|
|
12
|
+
require_lib
|
|
13
|
+
} from "./roy-agent-core-0wmswkj6.js";
|
|
11
14
|
import {
|
|
12
15
|
__require
|
|
13
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
14
17
|
|
|
15
18
|
// src/env/session/session-store.ts
|
|
16
19
|
class BaseSessionStore {
|
|
@@ -562,7 +565,7 @@ function getDatabaseClass() {
|
|
|
562
565
|
const { Database } = __require("bun:sqlite");
|
|
563
566
|
return Database;
|
|
564
567
|
} else {
|
|
565
|
-
return
|
|
568
|
+
return require_lib();
|
|
566
569
|
}
|
|
567
570
|
}
|
|
568
571
|
function isSqliteBusyError(err) {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
createLogger,
|
|
9
9
|
init_logger
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
11
11
|
import {
|
|
12
12
|
__require
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
14
14
|
|
|
15
15
|
// src/env/error-reply.ts
|
|
16
16
|
init_logger();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getDecoratorNodes,
|
|
3
|
+
hasDecoratorNodes,
|
|
4
|
+
init_node_registry_helper,
|
|
5
|
+
registerDecoratorNodeType
|
|
6
|
+
} from "./roy-agent-core-acbg6fg9.js";
|
|
7
|
+
import"./roy-agent-core-0k9spnmd.js";
|
|
8
|
+
import"./roy-agent-core-crcfqzcb.js";
|
|
9
|
+
import"./roy-agent-core-yshw2fvj.js";
|
|
10
|
+
import"./roy-agent-core-3c0zpmnq.js";
|
|
11
|
+
import"./roy-agent-core-0wmswkj6.js";
|
|
12
|
+
import"./roy-agent-core-bn8rs93c.js";
|
|
13
|
+
init_node_registry_helper();
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
registerDecoratorNodeType,
|
|
17
|
+
hasDecoratorNodes,
|
|
18
|
+
getDecoratorNodes
|
|
19
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_env_context,
|
|
3
3
|
init_env_event
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
5
5
|
import {
|
|
6
6
|
__esm
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
8
8
|
|
|
9
9
|
// src/env/context/index.ts
|
|
10
10
|
var init_context = __esm(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getWorkflowNodeIdFromMetadata,
|
|
3
3
|
init_workflow_message_metadata
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-1zat1mft.js";
|
|
5
5
|
import {
|
|
6
6
|
__esm
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
8
8
|
|
|
9
9
|
// src/env/workflow/utils/session-recovery.ts
|
|
10
10
|
function inferNextNode(messages, definition) {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MemorySessionStore,
|
|
3
3
|
SQLiteSessionStore
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-bp1n3z48.js";
|
|
5
5
|
import {
|
|
6
6
|
init_search_query_parser,
|
|
7
7
|
matchesQuery,
|
|
8
8
|
parseSearchQuery
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-m3vmmvbc.js";
|
|
10
10
|
import {
|
|
11
11
|
envKeyToConfigKey
|
|
12
12
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
13
13
|
import {
|
|
14
14
|
BaseComponent
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
16
16
|
import {
|
|
17
17
|
TracedAs,
|
|
18
18
|
init_decorator,
|
|
19
19
|
init_trace_filters,
|
|
20
20
|
messagesParamFilter
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
22
22
|
import {
|
|
23
23
|
createLogger,
|
|
24
24
|
init_logger
|
|
25
|
-
} from "./roy-agent-core-
|
|
25
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
26
26
|
import {
|
|
27
27
|
__legacyDecorateClassTS
|
|
28
|
-
} from "./roy-agent-core-
|
|
28
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
29
29
|
|
|
30
30
|
// src/env/session/group-session-link.ts
|
|
31
31
|
var GROUP_LINK_READ_HINT_LIMIT = 50;
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
compactSessionTool,
|
|
3
3
|
createCompactSessionTool,
|
|
4
4
|
createQueryBackgroundProcessTool
|
|
5
|
-
} from "./roy-agent-core-
|
|
5
|
+
} from "./roy-agent-core-jzmk4kdh.js";
|
|
6
6
|
import {
|
|
7
7
|
createStopTool
|
|
8
8
|
} from "./roy-agent-core-jm136jzh.js";
|
|
9
9
|
import {
|
|
10
10
|
BackgroundTaskManager,
|
|
11
11
|
createDelegateTool
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-x36a0g3x.js";
|
|
13
13
|
import {
|
|
14
14
|
RemoteTaskStore
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-7sfz2n7t.js";
|
|
16
16
|
import {
|
|
17
17
|
TaskEntityEventTypes
|
|
18
18
|
} from "./roy-agent-core-8gxth0eh.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
searchTasksTool,
|
|
30
30
|
treeTasksTool,
|
|
31
31
|
updateTaskTool
|
|
32
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-bcv09vrt.js";
|
|
33
33
|
import {
|
|
34
34
|
createOperationTool,
|
|
35
35
|
deleteOperationTool,
|
|
@@ -53,32 +53,32 @@ import {
|
|
|
53
53
|
import {
|
|
54
54
|
SQLiteTaskStore,
|
|
55
55
|
getDefaultTaskDbPath
|
|
56
|
-
} from "./roy-agent-core-
|
|
56
|
+
} from "./roy-agent-core-pxqz1d1m.js";
|
|
57
57
|
import {
|
|
58
58
|
envKeyToConfigKey
|
|
59
59
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
60
60
|
import {
|
|
61
61
|
BaseComponent
|
|
62
|
-
} from "./roy-agent-core-
|
|
62
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
63
63
|
import {
|
|
64
64
|
globalHookManager,
|
|
65
65
|
init_global_hook_manager
|
|
66
|
-
} from "./roy-agent-core-
|
|
66
|
+
} from "./roy-agent-core-0b4gyx3x.js";
|
|
67
67
|
import {
|
|
68
68
|
getEnvContextOrEmpty,
|
|
69
69
|
init_env_context
|
|
70
|
-
} from "./roy-agent-core-
|
|
70
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
71
71
|
import {
|
|
72
72
|
TracedAs,
|
|
73
73
|
init_decorator
|
|
74
|
-
} from "./roy-agent-core-
|
|
74
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
75
75
|
import {
|
|
76
76
|
createLogger,
|
|
77
77
|
init_logger
|
|
78
|
-
} from "./roy-agent-core-
|
|
78
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
79
79
|
import {
|
|
80
80
|
__legacyDecorateClassTS
|
|
81
|
-
} from "./roy-agent-core-
|
|
81
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
82
82
|
|
|
83
83
|
// src/env/task/task-component.ts
|
|
84
84
|
init_logger();
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseComponent
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
14
14
|
|
|
15
15
|
// src/env/skill/skill-component.ts
|
|
16
16
|
init_logger();
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSubmitJsonOutputTool,
|
|
3
3
|
init_submit_json_output_tool
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-4y96ae48.js";
|
|
5
5
|
import {
|
|
6
6
|
AskUserError,
|
|
7
7
|
init_workflow_hil
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-c57pkcx8.js";
|
|
9
9
|
import {
|
|
10
10
|
globalHookManager,
|
|
11
11
|
init_global_hook_manager
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-0b4gyx3x.js";
|
|
13
13
|
import {
|
|
14
14
|
TracedAs,
|
|
15
15
|
init_decorator,
|
|
16
16
|
wrapFunction
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
18
18
|
import {
|
|
19
19
|
createLogger,
|
|
20
20
|
init_logger
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
22
22
|
import {
|
|
23
23
|
__esm,
|
|
24
24
|
__legacyDecorateClassTS
|
|
25
|
-
} from "./roy-agent-core-
|
|
25
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
26
26
|
|
|
27
27
|
// src/utils/loose-json.ts
|
|
28
28
|
var init_loose_json = () => {};
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./roy-agent-core-adg9ghbt.js";
|
|
6
6
|
import {
|
|
7
7
|
XDG_PATHS
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-6qfz57w5.js";
|
|
9
9
|
import {
|
|
10
10
|
BaseComponent
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
12
12
|
import {
|
|
13
13
|
__require
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
15
15
|
|
|
16
16
|
// src/config/file-source.ts
|
|
17
17
|
import * as fsSync from "fs";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseComponent
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
7
7
|
import {
|
|
8
8
|
init_decorator,
|
|
9
9
|
init_trace_filters
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
11
11
|
import {
|
|
12
12
|
createLogger,
|
|
13
13
|
getTracerProvider,
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
propagation,
|
|
19
19
|
setConfigComponent,
|
|
20
20
|
setQuietMode
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
22
22
|
import {
|
|
23
23
|
SQLiteSpanStorage,
|
|
24
24
|
init_span_storage
|
|
25
|
-
} from "./roy-agent-core-
|
|
25
|
+
} from "./roy-agent-core-0wmswkj6.js";
|
|
26
26
|
import {
|
|
27
27
|
__require
|
|
28
|
-
} from "./roy-agent-core-
|
|
28
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
29
29
|
|
|
30
30
|
// src/env/log-trace/index.ts
|
|
31
31
|
init_types();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultLarkCliRunner
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-ev110pkx.js";
|
|
4
4
|
import {
|
|
5
5
|
cliCommandHandler
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-64py47c3.js";
|
|
7
7
|
import {
|
|
8
8
|
getSharedWecomSessionCardStore
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-mgmp2gfm.js";
|
|
10
10
|
import {
|
|
11
11
|
guardConfigWrite
|
|
12
12
|
} from "./roy-agent-core-2stt4rp5.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
createWecomTaskNotifyHook,
|
|
20
20
|
deleteGroupChatViaLarkCli,
|
|
21
21
|
handleCardAction
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-45n2r4my.js";
|
|
23
23
|
import {
|
|
24
24
|
registerWecomRespondTarget,
|
|
25
25
|
sendWecomCliMarkdown,
|
|
26
26
|
unregisterWecomRespondTarget
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-th8fq714.js";
|
|
28
28
|
import {
|
|
29
29
|
ROY_SESSION_PREFIX,
|
|
30
30
|
WECOM_SESSION_TASK_SEP,
|
|
@@ -34,15 +34,15 @@ import {
|
|
|
34
34
|
} from "./roy-agent-core-c4ec7k0p.js";
|
|
35
35
|
import {
|
|
36
36
|
getSharedEventStore
|
|
37
|
-
} from "./roy-agent-core-
|
|
37
|
+
} from "./roy-agent-core-3bt71phf.js";
|
|
38
38
|
import {
|
|
39
39
|
createLarkCliWorkflowNotifyHook
|
|
40
|
-
} from "./roy-agent-core-
|
|
40
|
+
} from "./roy-agent-core-v3wm8gyj.js";
|
|
41
41
|
import {
|
|
42
42
|
DEFAULT_APP_LINK_BASE,
|
|
43
43
|
getSharedLarkCardNotifier,
|
|
44
44
|
getSharedLarkCardStateStore
|
|
45
|
-
} from "./roy-agent-core-
|
|
45
|
+
} from "./roy-agent-core-0yzxapfa.js";
|
|
46
46
|
import {
|
|
47
47
|
RECENT_MESSAGE_LIMIT,
|
|
48
48
|
createActivityProbe,
|
|
@@ -53,36 +53,36 @@ import {
|
|
|
53
53
|
} from "./roy-agent-core-418zc9ha.js";
|
|
54
54
|
import {
|
|
55
55
|
notifyReactFailure
|
|
56
|
-
} from "./roy-agent-core-
|
|
56
|
+
} from "./roy-agent-core-bwyc2j0n.js";
|
|
57
57
|
import {
|
|
58
58
|
normalizeLarkAtMentions
|
|
59
59
|
} from "./roy-agent-core-m880qz3y.js";
|
|
60
60
|
import {
|
|
61
61
|
globalHookManager,
|
|
62
62
|
init_global_hook_manager
|
|
63
|
-
} from "./roy-agent-core-
|
|
63
|
+
} from "./roy-agent-core-0b4gyx3x.js";
|
|
64
64
|
import {
|
|
65
65
|
init_context
|
|
66
|
-
} from "./roy-agent-core-
|
|
66
|
+
} from "./roy-agent-core-cf3nysh5.js";
|
|
67
67
|
import {
|
|
68
68
|
createEnvContext,
|
|
69
69
|
normalizeParentTaskId,
|
|
70
70
|
runWithEnvContext
|
|
71
|
-
} from "./roy-agent-core-
|
|
71
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
72
72
|
import {
|
|
73
73
|
TracedAs,
|
|
74
74
|
init_decorator,
|
|
75
75
|
wrapFunction
|
|
76
|
-
} from "./roy-agent-core-
|
|
76
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
77
77
|
import {
|
|
78
78
|
createLogger,
|
|
79
79
|
getTracerProvider,
|
|
80
80
|
init_logger
|
|
81
|
-
} from "./roy-agent-core-
|
|
81
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
82
82
|
import {
|
|
83
83
|
__legacyDecorateClassTS,
|
|
84
84
|
__require
|
|
85
|
-
} from "./roy-agent-core-
|
|
85
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
86
86
|
|
|
87
87
|
// src/env/event-source/event-source-handlers.ts
|
|
88
88
|
import { spawn as spawn3, exec as execSync } from "child_process";
|
|
@@ -4765,7 +4765,8 @@ class LarkCliInstance {
|
|
|
4765
4765
|
project_path: t.project_path,
|
|
4766
4766
|
parent_task_id: t.parent_task_id ?? null,
|
|
4767
4767
|
current_status: t.current_status,
|
|
4768
|
-
context: t.context
|
|
4768
|
+
context: t.context,
|
|
4769
|
+
...typeof t.session_id === "string" && t.session_id ? { session_id: t.session_id } : {}
|
|
4769
4770
|
};
|
|
4770
4771
|
},
|
|
4771
4772
|
updateTaskContext: async (taskId, context) => {
|