@ai-setting/roy-agent-core 1.7.91 → 1.7.93
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-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-azyz78ky.js → roy-agent-core-1gx70hsn.js} +10 -10
- 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-hw317z6f.js → roy-agent-core-33n84tf9.js} +15 -15
- 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-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-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-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-49qcpqwg.js → roy-agent-core-aeh7qg1r.js} +11 -11
- 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-4t3yskp8.js → roy-agent-core-brw8wp2q.js} +12 -4
- 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-ds6qzmf8.js → roy-agent-core-f18s4qgp.js} +14 -6
- 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-cre2y2ct.js → roy-agent-core-h5v1xe9h.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-4fkxy2gv.js → roy-agent-core-h89whnxz.js} +14 -6
- 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-jvv2h3d6.js → roy-agent-core-ksrq6paw.js} +1 -1
- 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-0sbmdz8d.js → roy-agent-core-m4x47ne9.js} +9 -9
- 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-vsdar7tn.js → roy-agent-core-mp7sqfb5.js} +6 -6
- 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-6r970asj.js → roy-agent-core-px73ewzd.js} +14 -14
- 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-n197medr.js → roy-agent-core-qtb41z61.js} +15 -15
- 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-qxnfdjqj.js +16 -0
- 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-vhgwfmp7.js +22 -0
- 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-xwyq7ffz.js → roy-agent-core-vz886vr8.js} +8 -8
- 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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
builtInHandlers
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-33n84tf9.js";
|
|
4
4
|
import {
|
|
5
5
|
appendAuditLog,
|
|
6
6
|
checkSourceCountDrop,
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
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
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
20
20
|
import {
|
|
21
21
|
createLogger,
|
|
22
22
|
init_logger
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
24
24
|
import {
|
|
25
25
|
__legacyDecorateClassTS,
|
|
26
26
|
__require
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
28
28
|
|
|
29
29
|
// src/env/event-source/event-source-component.ts
|
|
30
30
|
import { join } from "path";
|
|
@@ -140,7 +140,7 @@ class EventSourceComponent extends BaseComponent {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
async executeInitHooks() {
|
|
143
|
-
const { EventSourceInitHooks } = await import("./roy-agent-core-
|
|
143
|
+
const { EventSourceInitHooks } = await import("./roy-agent-core-b122g2me.js");
|
|
144
144
|
await EventSourceInitHooks.execute(this);
|
|
145
145
|
}
|
|
146
146
|
registerHandler(handler) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TracedAs,
|
|
3
3
|
init_decorator
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
5
5
|
import {
|
|
6
6
|
__esm,
|
|
7
7
|
__legacyDecorateClassTS
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
9
9
|
|
|
10
10
|
// src/env/workflow/utils/redact-command-secrets.ts
|
|
11
11
|
function replaceTrailing(match, raw) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHook,
|
|
3
3
|
init_hook
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-6bvn0kpf.js";
|
|
5
5
|
import {
|
|
6
6
|
HookManager
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-0b4gyx3x.js";
|
|
8
8
|
|
|
9
9
|
// src/env/component.ts
|
|
10
10
|
init_hook();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger,
|
|
3
3
|
init_logger
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
8
8
|
|
|
9
9
|
// src/env/task/delegate/process-registry.ts
|
|
10
10
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sendWecomReply,
|
|
3
3
|
sendWecomTemplateCard
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-th8fq714.js";
|
|
5
5
|
import {
|
|
6
6
|
WecomCardActionKey,
|
|
7
7
|
buildWecomButtonInteractionCard,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./roy-agent-core-c4ec7k0p.js";
|
|
10
10
|
import {
|
|
11
11
|
getSharedEventStore
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-brw8wp2q.js";
|
|
13
13
|
import {
|
|
14
14
|
WORKFLOW_EXTRACT_PROMPT
|
|
15
15
|
} from "./roy-agent-core-y7fqtzk2.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
renderCandidateKey,
|
|
26
26
|
renderCandidateValue,
|
|
27
27
|
writeDecisionHint
|
|
28
|
-
} from "./roy-agent-core-
|
|
28
|
+
} from "./roy-agent-core-msktt7y7.js";
|
|
29
29
|
import {
|
|
30
30
|
LarkCardPatchNotifier,
|
|
31
31
|
buildSessionCard,
|
|
@@ -33,43 +33,43 @@ import {
|
|
|
33
33
|
createLarkCardStateStore,
|
|
34
34
|
getSharedLarkCardNotifier,
|
|
35
35
|
humanizeValue
|
|
36
|
-
} from "./roy-agent-core-
|
|
36
|
+
} from "./roy-agent-core-0yzxapfa.js";
|
|
37
37
|
import {
|
|
38
38
|
RECENT_MESSAGE_LIMIT
|
|
39
39
|
} from "./roy-agent-core-418zc9ha.js";
|
|
40
40
|
import {
|
|
41
41
|
createCompatibleDatabase,
|
|
42
42
|
init_sqlite_task_store
|
|
43
|
-
} from "./roy-agent-core-
|
|
43
|
+
} from "./roy-agent-core-pxqz1d1m.js";
|
|
44
44
|
import {
|
|
45
45
|
validateWorkflowDefinition
|
|
46
|
-
} from "./roy-agent-core-
|
|
46
|
+
} from "./roy-agent-core-ecap4nws.js";
|
|
47
47
|
import {
|
|
48
48
|
enqueueToAddFakeUserMessage
|
|
49
|
-
} from "./roy-agent-core-
|
|
49
|
+
} from "./roy-agent-core-qt3j44j7.js";
|
|
50
50
|
import {
|
|
51
51
|
BasePlugin
|
|
52
52
|
} from "./roy-agent-core-az13yzmc.js";
|
|
53
53
|
import {
|
|
54
54
|
init_context
|
|
55
|
-
} from "./roy-agent-core-
|
|
55
|
+
} from "./roy-agent-core-cf3nysh5.js";
|
|
56
56
|
import {
|
|
57
57
|
getEnvContextOrEmpty,
|
|
58
58
|
init_env_context
|
|
59
|
-
} from "./roy-agent-core-
|
|
59
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
60
60
|
import {
|
|
61
61
|
TracedAs,
|
|
62
62
|
init_decorator,
|
|
63
63
|
wrapFunction
|
|
64
|
-
} from "./roy-agent-core-
|
|
64
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
65
65
|
import {
|
|
66
66
|
createLogger,
|
|
67
67
|
init_logger
|
|
68
|
-
} from "./roy-agent-core-
|
|
68
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
69
69
|
import {
|
|
70
70
|
__legacyDecorateClassTS,
|
|
71
71
|
__require
|
|
72
|
-
} from "./roy-agent-core-
|
|
72
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
73
73
|
|
|
74
74
|
// src/env/task/plugins/task-tag-plugin.ts
|
|
75
75
|
init_logger();
|
|
@@ -331,11 +331,11 @@ ${prompt}`;
|
|
|
331
331
|
}
|
|
332
332
|
if (!this._workflowRepo) {
|
|
333
333
|
try {
|
|
334
|
-
const sqlite = await import("./roy-agent-core-
|
|
334
|
+
const sqlite = await import("./roy-agent-core-vhgwfmp7.js");
|
|
335
335
|
this.ensureDataDir();
|
|
336
336
|
const db = sqlite.getDatabase();
|
|
337
337
|
sqlite.initializeTables();
|
|
338
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
338
|
+
const { WorkflowRepository } = await import("./roy-agent-core-qxnfdjqj.js");
|
|
339
339
|
this._workflowRepo = new WorkflowRepository(db);
|
|
340
340
|
return this._workflowRepo;
|
|
341
341
|
} catch {
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TracedAs,
|
|
3
3
|
init_decorator
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogger,
|
|
7
7
|
init_logger
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
9
|
+
import {
|
|
10
|
+
require_lib
|
|
11
|
+
} from "./roy-agent-core-0wmswkj6.js";
|
|
9
12
|
import {
|
|
10
13
|
__esm,
|
|
11
14
|
__export,
|
|
12
15
|
__legacyDecorateClassTS,
|
|
13
16
|
__require,
|
|
14
17
|
__toCommonJS
|
|
15
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
16
19
|
|
|
17
20
|
// src/env/task/storage/migrations/log-migration.ts
|
|
18
21
|
function logMigration(message) {
|
|
@@ -252,7 +255,7 @@ function getDatabaseClass() {
|
|
|
252
255
|
return DatabaseSync;
|
|
253
256
|
}
|
|
254
257
|
} catch {}
|
|
255
|
-
return
|
|
258
|
+
return require_lib();
|
|
256
259
|
}
|
|
257
260
|
function createCompatibleDatabase(path) {
|
|
258
261
|
const Database = getDatabaseClass();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_decorator,
|
|
3
3
|
wrapFunction
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogger,
|
|
7
7
|
init_logger
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
9
9
|
|
|
10
10
|
// src/env/task/plugins/task-op-watermark-plugin.ts
|
|
11
11
|
init_logger();
|
|
@@ -1,7 +1,7 @@
|
|
|
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-acbg6fg9.js";
|
|
5
5
|
import {
|
|
6
6
|
askUserTool,
|
|
7
7
|
createRunWorkflowTool,
|
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
createWorkflowSearchTool,
|
|
14
14
|
createWorkflowTagListTool,
|
|
15
15
|
createWorkflowValidateTool
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-1gx70hsn.js";
|
|
17
17
|
import {
|
|
18
18
|
WorkflowService
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-64ke8s3t.js";
|
|
20
20
|
import {
|
|
21
21
|
WorkflowEngine,
|
|
22
22
|
exports_engine,
|
|
23
23
|
init_engine
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-46z6m682.js";
|
|
25
25
|
import {
|
|
26
26
|
BaseComponent
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
28
28
|
import {
|
|
29
29
|
createLogger,
|
|
30
30
|
init_logger
|
|
31
|
-
} from "./roy-agent-core-
|
|
31
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
32
32
|
import {
|
|
33
33
|
__require,
|
|
34
34
|
__toCommonJS
|
|
35
|
-
} from "./roy-agent-core-
|
|
35
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
36
36
|
|
|
37
37
|
// src/env/workflow/workflow-component.ts
|
|
38
38
|
import"reflect-metadata";
|
|
@@ -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-bz03g3n4.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-bz03g3n4.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-9kp88brd.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-vhgwfmp7.js");
|
|
167
167
|
closeDatabase();
|
|
168
168
|
componentLogger.info("[WorkflowComponent] SQLite database closed");
|
|
169
169
|
} catch (error) {
|
|
@@ -241,9 +241,9 @@ class WorkflowComponent extends BaseComponent {
|
|
|
241
241
|
}
|
|
242
242
|
async initSqliteService() {
|
|
243
243
|
try {
|
|
244
|
-
const { getDatabase, initializeTables } = await import("./roy-agent-core-
|
|
245
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
246
|
-
const { TagRepository } = await import("./roy-agent-core-
|
|
244
|
+
const { getDatabase, initializeTables } = await import("./roy-agent-core-vhgwfmp7.js");
|
|
245
|
+
const { WorkflowRepository } = await import("./roy-agent-core-qxnfdjqj.js");
|
|
246
|
+
const { TagRepository } = await import("./roy-agent-core-nn7a0kex.js");
|
|
247
247
|
const db = getDatabase();
|
|
248
248
|
initializeTables();
|
|
249
249
|
const workflowRepository = new WorkflowRepository(db);
|
|
@@ -309,7 +309,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
309
309
|
this.workflowService = null;
|
|
310
310
|
this.nodeRegistry = null;
|
|
311
311
|
try {
|
|
312
|
-
const { closeDatabase } = await import("./roy-agent-core-
|
|
312
|
+
const { closeDatabase } = await import("./roy-agent-core-vhgwfmp7.js");
|
|
313
313
|
closeDatabase();
|
|
314
314
|
} catch {}
|
|
315
315
|
this._status = "stopped";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WorkflowRepository,
|
|
3
|
+
migrateEmptyTagsToDefault,
|
|
4
|
+
rowToWorkflow
|
|
5
|
+
} from "./roy-agent-core-h89whnxz.js";
|
|
6
|
+
import"./roy-agent-core-yqwwebhr.js";
|
|
7
|
+
import"./roy-agent-core-m3vmmvbc.js";
|
|
8
|
+
import"./roy-agent-core-yshw2fvj.js";
|
|
9
|
+
import"./roy-agent-core-3c0zpmnq.js";
|
|
10
|
+
import"./roy-agent-core-0wmswkj6.js";
|
|
11
|
+
import"./roy-agent-core-bn8rs93c.js";
|
|
12
|
+
export {
|
|
13
|
+
rowToWorkflow,
|
|
14
|
+
migrateEmptyTagsToDefault,
|
|
15
|
+
WorkflowRepository
|
|
16
|
+
};
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
} from "./roy-agent-core-y7fqtzk2.js";
|
|
4
4
|
import {
|
|
5
5
|
getXDGPath
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-6qfz57w5.js";
|
|
7
7
|
import {
|
|
8
8
|
envKeyToConfigKey,
|
|
9
9
|
toEnvKey
|
|
10
10
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseComponent
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
14
14
|
import {
|
|
15
15
|
createHook
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-6bvn0kpf.js";
|
|
17
17
|
import {
|
|
18
18
|
globalHookManager,
|
|
19
19
|
init_global_hook_manager
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-0b4gyx3x.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/prompt/types.ts
|
|
27
27
|
import { z } from "zod";
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
embedResultFilter,
|
|
15
15
|
init_decorator,
|
|
16
16
|
init_trace_filters
|
|
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
|
__legacyDecorateClassTS,
|
|
24
24
|
__require
|
|
25
|
-
} from "./roy-agent-core-
|
|
25
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
26
26
|
|
|
27
27
|
// src/env/llm/tool-args-parser.ts
|
|
28
28
|
init_logger();
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseComponent
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
12
12
|
|
|
13
13
|
// src/env/commands/commands-component.ts
|
|
14
14
|
import path2 from "path";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
compactSessionTool,
|
|
6
6
|
queryBackgroundProcessTool
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-jzmk4kdh.js";
|
|
8
8
|
import {
|
|
9
9
|
getCurrentProcessRegistry,
|
|
10
10
|
killProcessTree
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-pd2hd3q9.js";
|
|
12
12
|
import {
|
|
13
13
|
wecomRespondTool
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-th8fq714.js";
|
|
15
15
|
import {
|
|
16
16
|
init_decorator,
|
|
17
17
|
init_trace_filters,
|
|
18
18
|
toolExecResultFilter,
|
|
19
19
|
toolInvokeParamFilter,
|
|
20
20
|
wrapFunction
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
22
22
|
import {
|
|
23
23
|
createLogger,
|
|
24
24
|
exports_tracer_provider,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
init_propagation,
|
|
27
27
|
init_tracer_provider,
|
|
28
28
|
propagation
|
|
29
|
-
} from "./roy-agent-core-
|
|
29
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
30
30
|
import {
|
|
31
31
|
__toCommonJS
|
|
32
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
33
33
|
|
|
34
34
|
// src/env/tool/built-in/bash.ts
|
|
35
35
|
init_propagation();
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LarkCardPatchNotifier,
|
|
3
3
|
formatDurationMs
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-0yzxapfa.js";
|
|
5
5
|
import {
|
|
6
6
|
WorkflowHookPoints,
|
|
7
7
|
init_workflow_hook_points
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-5e9vmj5e.js";
|
|
9
9
|
import {
|
|
10
10
|
init_context
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-cf3nysh5.js";
|
|
12
12
|
import {
|
|
13
13
|
getEnvContextOrEmpty
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
15
15
|
import {
|
|
16
16
|
TracedAs,
|
|
17
17
|
init_decorator
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
19
19
|
import {
|
|
20
20
|
createLogger,
|
|
21
21
|
init_logger
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
23
23
|
import {
|
|
24
24
|
__legacyDecorateClassTS
|
|
25
|
-
} from "./roy-agent-core-
|
|
25
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
26
26
|
|
|
27
27
|
// src/env/workflow/plugins/lark-cli-workflow-notify-plugin.ts
|
|
28
28
|
init_decorator();
|
|
@@ -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/memory/types.ts
|
|
16
16
|
import { z } from "zod";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
closeDatabase,
|
|
3
|
+
getDatabase,
|
|
4
|
+
getDatabasePath,
|
|
5
|
+
initDatabase,
|
|
6
|
+
initializeTables,
|
|
7
|
+
resetDatabase
|
|
8
|
+
} from "./roy-agent-core-h89whnxz.js";
|
|
9
|
+
import"./roy-agent-core-yqwwebhr.js";
|
|
10
|
+
import"./roy-agent-core-m3vmmvbc.js";
|
|
11
|
+
import"./roy-agent-core-yshw2fvj.js";
|
|
12
|
+
import"./roy-agent-core-3c0zpmnq.js";
|
|
13
|
+
import"./roy-agent-core-0wmswkj6.js";
|
|
14
|
+
import"./roy-agent-core-bn8rs93c.js";
|
|
15
|
+
export {
|
|
16
|
+
resetDatabase,
|
|
17
|
+
initializeTables,
|
|
18
|
+
initDatabase,
|
|
19
|
+
getDatabasePath,
|
|
20
|
+
getDatabase,
|
|
21
|
+
closeDatabase
|
|
22
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_workflow_hook_points
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-5e9vmj5e.js";
|
|
4
4
|
import {
|
|
5
5
|
__esm
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
7
7
|
|
|
8
8
|
// src/env/workflow/hooks/index.ts
|
|
9
9
|
var init_hooks = __esm(() => {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createAutoTaskPlugin,
|
|
3
3
|
createLayaDecisionPlugin,
|
|
4
4
|
registerLayaCompletionTaskHook
|
|
5
|
-
} from "./roy-agent-core-
|
|
5
|
+
} from "./roy-agent-core-px73ewzd.js";
|
|
6
6
|
import {
|
|
7
7
|
TaskHookPoints
|
|
8
8
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
@@ -12,31 +12,31 @@ import {
|
|
|
12
12
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
13
13
|
import {
|
|
14
14
|
BaseComponent
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-nrm2ejyt.js";
|
|
16
16
|
import {
|
|
17
17
|
init_hook
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-6bvn0kpf.js";
|
|
19
19
|
import {
|
|
20
20
|
init_context
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-cf3nysh5.js";
|
|
22
22
|
import {
|
|
23
23
|
getEnvContext,
|
|
24
24
|
init_env_context,
|
|
25
25
|
runWithEnvContextAsync
|
|
26
|
-
} from "./roy-agent-core-
|
|
26
|
+
} from "./roy-agent-core-yj9w6a39.js";
|
|
27
27
|
import {
|
|
28
28
|
TracedAs,
|
|
29
29
|
envQueryParamFilter,
|
|
30
30
|
init_decorator,
|
|
31
31
|
init_trace_filters
|
|
32
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-yshw2fvj.js";
|
|
33
33
|
import {
|
|
34
34
|
createLogger,
|
|
35
35
|
init_logger
|
|
36
|
-
} from "./roy-agent-core-
|
|
36
|
+
} from "./roy-agent-core-3c0zpmnq.js";
|
|
37
37
|
import {
|
|
38
38
|
__legacyDecorateClassTS
|
|
39
|
-
} from "./roy-agent-core-
|
|
39
|
+
} from "./roy-agent-core-bn8rs93c.js";
|
|
40
40
|
|
|
41
41
|
// src/env/environment.ts
|
|
42
42
|
init_logger();
|