@ai-setting/roy-agent-core 1.6.14 → 1.6.15
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 +10 -10
- package/dist/env/agent/index.js +16 -16
- package/dist/env/commands/index.js +10 -10
- package/dist/env/context/index.js +27 -7
- package/dist/env/debug/index.js +10 -10
- package/dist/env/event-source/index.js +16 -14
- package/dist/env/hook/index.js +8 -8
- package/dist/env/index.js +40 -40
- package/dist/env/llm/index.js +12 -12
- package/dist/env/log-trace/index.js +10 -10
- package/dist/env/mcp/index.js +11 -11
- package/dist/env/mcp/tool/index.js +4 -4
- 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 +10 -10
- package/dist/env/session/index.js +13 -13
- package/dist/env/session/storage/index.js +6 -6
- package/dist/env/skill/index.js +10 -10
- package/dist/env/task/delegate/index.js +10 -10
- package/dist/env/task/index.js +15 -15
- package/dist/env/task/plugins/index.js +9 -9
- package/dist/env/task/storage/index.js +5 -5
- package/dist/env/task/tools/index.js +6 -6
- package/dist/env/tool/built-in/index.js +6 -6
- package/dist/env/tool/index.js +13 -13
- package/dist/env/workflow/engine/index.js +12 -12
- package/dist/env/workflow/index.js +23 -23
- package/dist/env/workflow/nodes/index.js +5 -5
- package/dist/env/workflow/service/index.js +5 -5
- package/dist/env/workflow/storage/index.js +6 -6
- package/dist/env/workflow/tools/index.js +17 -17
- package/dist/env/workflow/utils/index.js +7 -7
- package/dist/index.js +53 -51
- package/dist/shared/@ai-setting/{roy-agent-core-r74v00c7.js → roy-agent-core-02aw62bv.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-6qbyfzsw.js → roy-agent-core-0rwymn7m.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-wpw37qqf.js → roy-agent-core-1380b0re.js} +29 -8
- package/dist/shared/@ai-setting/{roy-agent-core-m0cnmg7b.js → roy-agent-core-1ecgh5ya.js} +81 -13
- package/dist/shared/@ai-setting/{roy-agent-core-80e4a3g5.js → roy-agent-core-1mrc9a1r.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-xxgazz27.js → roy-agent-core-1qjgwjjs.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-rga3f0hm.js → roy-agent-core-2b0mw2h3.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-ck0m8754.js → roy-agent-core-416rpxkp.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-c6592r3c.js → roy-agent-core-4an1p9a1.js} +31 -2
- package/dist/shared/@ai-setting/{roy-agent-core-r53regz9.js → roy-agent-core-4z7dzcgb.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-txsswwhm.js → roy-agent-core-5pzegp1x.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-htjag2nr.js → roy-agent-core-77wfej1h.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-resnbd2j.js → roy-agent-core-7kw06e4b.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-yfhgxh5a.js → roy-agent-core-7r72622v.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-dcd1s7ct.js → roy-agent-core-8n0e62y4.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fdm579b1.js → roy-agent-core-96mj6gvc.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fwxqevpf.js → roy-agent-core-9jsfqc1m.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-1mq9erp8.js → roy-agent-core-ajp566yv.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-j62bjagf.js → roy-agent-core-akb8mb9v.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-5h49ct1a.js → roy-agent-core-ataagh3a.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-606z25nw.js → roy-agent-core-atpchjdz.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9nhwdq9r.js → roy-agent-core-b8wn8yhk.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-mmb9484f.js → roy-agent-core-bq1gskrf.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-nw39k111.js → roy-agent-core-bqe4c9f2.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-1gsnq4p2.js → roy-agent-core-dh9rajdh.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-dtkbj8fk.js +206 -0
- package/dist/shared/@ai-setting/{roy-agent-core-8x4ngxcy.js → roy-agent-core-e0kaxcy1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-nv4yfy3m.js → roy-agent-core-eaj0b1hm.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-3kbf53sh.js → roy-agent-core-ehpnd2be.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-psfkwe4g.js → roy-agent-core-ez91vxas.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jw0hbacv.js → roy-agent-core-fxembepv.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-80bdhnwk.js → roy-agent-core-gc75v3px.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-24rmf17n.js → roy-agent-core-gmnex23m.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-atjd1tpt.js → roy-agent-core-keb51jag.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-7z9b1fm8.js → roy-agent-core-m00kamqp.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4w6rgxs4.js → roy-agent-core-mdp8y7ky.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-v5nknfh0.js → roy-agent-core-mmnac1s6.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-vyygk314.js → roy-agent-core-nna4s0qs.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-f79ee0aw.js → roy-agent-core-p4z6nxgz.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-qbm5zy6s.js → roy-agent-core-pr4jekyy.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-rpq0mcvv.js → roy-agent-core-r0t34bbh.js} +79 -4
- package/dist/shared/@ai-setting/{roy-agent-core-ywtmc0bh.js → roy-agent-core-r15sn7ve.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fvkyv5j6.js → roy-agent-core-rmesvpff.js} +12 -12
- package/dist/shared/@ai-setting/{roy-agent-core-9hqqhye6.js → roy-agent-core-sqt96sam.js} +4 -2
- package/dist/shared/@ai-setting/{roy-agent-core-2yavqjsh.js → roy-agent-core-v20nxrs1.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-dbkkjmqz.js → roy-agent-core-vc7p80sd.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-x7fgze6s.js → roy-agent-core-vkesx61c.js} +4 -4
- package/dist/shared/@ai-setting/roy-agent-core-w6kj6nmj.js +11 -0
- package/dist/shared/@ai-setting/{roy-agent-core-px8ghk4g.js → roy-agent-core-wq98qf5y.js} +28 -13
- package/dist/shared/@ai-setting/{roy-agent-core-wtbyj0q1.js → roy-agent-core-wr3pk3h3.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-wsqnf2za.js +19 -0
- package/dist/shared/@ai-setting/{roy-agent-core-ra4y7e4p.js → roy-agent-core-x36fsm47.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-st9y9z07.js → roy-agent-core-x7sc21ek.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-w6wagmhw.js → roy-agent-core-xzc53mnk.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-nhncpbzz.js → roy-agent-core-yr3fp8tv.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-m0wp34r4.js → roy-agent-core-z1hm09xp.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9abv4ewh.js → roy-agent-core-zdzkzx5g.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-95bbd2jv.js → roy-agent-core-zs4f0tcy.js} +2 -2
- package/dist/utils/temp-file-manager/index.js +4 -4
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-6jqpdjr4.js +0 -19
- package/dist/shared/@ai-setting/roy-agent-core-endah27g.js +0 -81
- package/dist/shared/@ai-setting/roy-agent-core-qfdj8872.js +0 -11
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
getRunWorkflowTool,
|
|
25
25
|
initRunWorkflowTool,
|
|
26
26
|
resetRunWorkflowTool
|
|
27
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
27
|
+
} from "../../../shared/@ai-setting/roy-agent-core-4z7dzcgb.js";
|
|
28
28
|
import {
|
|
29
29
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
30
30
|
WorkflowJsonOutputMarker,
|
|
@@ -32,27 +32,27 @@ import {
|
|
|
32
32
|
init_submit_json_output_tool,
|
|
33
33
|
parseWorkflowJsonOutput
|
|
34
34
|
} from "../../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
35
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
36
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
37
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
35
|
+
import"../../../shared/@ai-setting/roy-agent-core-r15sn7ve.js";
|
|
36
|
+
import"../../../shared/@ai-setting/roy-agent-core-1mrc9a1r.js";
|
|
37
|
+
import"../../../shared/@ai-setting/roy-agent-core-bq1gskrf.js";
|
|
38
38
|
import"../../../shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
39
39
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
40
40
|
import"../../../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
41
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
41
|
+
import"../../../shared/@ai-setting/roy-agent-core-bqe4c9f2.js";
|
|
42
42
|
import"../../../shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
43
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
44
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
45
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
43
|
+
import"../../../shared/@ai-setting/roy-agent-core-zs4f0tcy.js";
|
|
44
|
+
import"../../../shared/@ai-setting/roy-agent-core-7r72622v.js";
|
|
45
|
+
import"../../../shared/@ai-setting/roy-agent-core-e0kaxcy1.js";
|
|
46
46
|
import"../../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
47
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
48
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
49
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
50
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
51
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
52
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
53
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
54
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
55
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
47
|
+
import"../../../shared/@ai-setting/roy-agent-core-akb8mb9v.js";
|
|
48
|
+
import"../../../shared/@ai-setting/roy-agent-core-02aw62bv.js";
|
|
49
|
+
import"../../../shared/@ai-setting/roy-agent-core-vc7p80sd.js";
|
|
50
|
+
import"../../../shared/@ai-setting/roy-agent-core-sqt96sam.js";
|
|
51
|
+
import"../../../shared/@ai-setting/roy-agent-core-dtkbj8fk.js";
|
|
52
|
+
import"../../../shared/@ai-setting/roy-agent-core-96mj6gvc.js";
|
|
53
|
+
import"../../../shared/@ai-setting/roy-agent-core-nna4s0qs.js";
|
|
54
|
+
import"../../../shared/@ai-setting/roy-agent-core-m00kamqp.js";
|
|
55
|
+
import"../../../shared/@ai-setting/roy-agent-core-4an1p9a1.js";
|
|
56
56
|
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
57
57
|
|
|
58
58
|
// src/env/workflow/tools/index.ts
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
init_template_resolver,
|
|
4
4
|
resolveTemplateString,
|
|
5
5
|
resolveTemplates
|
|
6
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../../shared/@ai-setting/roy-agent-core-ez91vxas.js";
|
|
7
7
|
import {
|
|
8
8
|
getFromMapWithNormalization,
|
|
9
9
|
init_node_id_utils
|
|
10
10
|
} from "../../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
11
11
|
import {
|
|
12
12
|
validateWorkflowDefinition
|
|
13
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
14
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
} from "../../../shared/@ai-setting/roy-agent-core-1mrc9a1r.js";
|
|
14
|
+
import"../../../shared/@ai-setting/roy-agent-core-bq1gskrf.js";
|
|
15
15
|
import"../../../shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
16
16
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
17
17
|
import {
|
|
18
18
|
TracedAs,
|
|
19
19
|
init_decorator
|
|
20
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
21
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
22
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
23
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
20
|
+
} from "../../../shared/@ai-setting/roy-agent-core-96mj6gvc.js";
|
|
21
|
+
import"../../../shared/@ai-setting/roy-agent-core-nna4s0qs.js";
|
|
22
|
+
import"../../../shared/@ai-setting/roy-agent-core-m00kamqp.js";
|
|
23
|
+
import"../../../shared/@ai-setting/roy-agent-core-4an1p9a1.js";
|
|
24
24
|
import {
|
|
25
25
|
__legacyDecorateClassTS
|
|
26
26
|
} from "../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PromptComponent,
|
|
3
3
|
PromptStore
|
|
4
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
4
|
+
} from "./shared/@ai-setting/roy-agent-core-0rwymn7m.js";
|
|
5
5
|
import {
|
|
6
6
|
LLMComponent,
|
|
7
7
|
LLMConfigSchema,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
ModelLimitsSchema,
|
|
10
10
|
ProviderCapabilitiesSchema,
|
|
11
11
|
ProviderConfigSchema
|
|
12
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
12
|
+
} from "./shared/@ai-setting/roy-agent-core-416rpxkp.js";
|
|
13
13
|
import {
|
|
14
14
|
ConfigComponent
|
|
15
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
15
|
+
} from "./shared/@ai-setting/roy-agent-core-dh9rajdh.js";
|
|
16
16
|
import"./shared/@ai-setting/roy-agent-core-y3g3ar7a.js";
|
|
17
17
|
import {
|
|
18
18
|
CommandsComponent
|
|
19
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
19
|
+
} from "./shared/@ai-setting/roy-agent-core-ehpnd2be.js";
|
|
20
20
|
import"./shared/@ai-setting/roy-agent-core-wjmwwc4a.js";
|
|
21
21
|
import {
|
|
22
22
|
bashTool,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
grepTool,
|
|
28
28
|
readFileTool,
|
|
29
29
|
writeFileTool
|
|
30
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
30
|
+
} from "./shared/@ai-setting/roy-agent-core-vkesx61c.js";
|
|
31
31
|
import {
|
|
32
32
|
ATTACH_FILE_MAX_BYTES,
|
|
33
33
|
getUnderstandImageLLMProvider,
|
|
@@ -40,20 +40,20 @@ import {
|
|
|
40
40
|
} from "./shared/@ai-setting/roy-agent-core-t7rw68q8.js";
|
|
41
41
|
import {
|
|
42
42
|
closeDatabase
|
|
43
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
44
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
43
|
+
} from "./shared/@ai-setting/roy-agent-core-ajp566yv.js";
|
|
44
|
+
import"./shared/@ai-setting/roy-agent-core-atpchjdz.js";
|
|
45
45
|
import"./shared/@ai-setting/roy-agent-core-k5hxvaf0.js";
|
|
46
46
|
import {
|
|
47
47
|
MemoryComponent
|
|
48
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
48
|
+
} from "./shared/@ai-setting/roy-agent-core-v20nxrs1.js";
|
|
49
49
|
import"./shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
50
50
|
import {
|
|
51
51
|
MemoryPlugin,
|
|
52
52
|
createMemoryPlugin
|
|
53
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
53
|
+
} from "./shared/@ai-setting/roy-agent-core-wr3pk3h3.js";
|
|
54
54
|
import {
|
|
55
55
|
DebugComponent
|
|
56
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
56
|
+
} from "./shared/@ai-setting/roy-agent-core-keb51jag.js";
|
|
57
57
|
import {
|
|
58
58
|
ReplFormatter,
|
|
59
59
|
TraceFormatter,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
BaseEnvironment,
|
|
64
64
|
generateDescendingId,
|
|
65
65
|
generateId
|
|
66
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
66
|
+
} from "./shared/@ai-setting/roy-agent-core-x7sc21ek.js";
|
|
67
67
|
import {
|
|
68
68
|
BountyIMInstance,
|
|
69
69
|
EventSourceComponent,
|
|
@@ -71,11 +71,12 @@ import {
|
|
|
71
71
|
bountyIMHandler,
|
|
72
72
|
buildDefaultBountyIMSystemPrompt,
|
|
73
73
|
builtInHandlers,
|
|
74
|
+
extractMetadata,
|
|
74
75
|
getBuiltInHandler,
|
|
75
76
|
larkCliHandler,
|
|
76
77
|
resolveBountyIMSystemPrompt,
|
|
77
78
|
timerHandler
|
|
78
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
79
|
+
} from "./shared/@ai-setting/roy-agent-core-wq98qf5y.js";
|
|
79
80
|
import {
|
|
80
81
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
81
82
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -88,36 +89,36 @@ import {
|
|
|
88
89
|
import {
|
|
89
90
|
LogTraceComponent,
|
|
90
91
|
LogTraceConfigSchema
|
|
91
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
92
|
+
} from "./shared/@ai-setting/roy-agent-core-1qjgwjjs.js";
|
|
92
93
|
import {
|
|
93
94
|
PluginComponent
|
|
94
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
95
|
+
} from "./shared/@ai-setting/roy-agent-core-gc75v3px.js";
|
|
95
96
|
import {
|
|
96
97
|
TaskTagPlugin,
|
|
97
98
|
createAutoTaskPlugin
|
|
98
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
99
|
+
} from "./shared/@ai-setting/roy-agent-core-1ecgh5ya.js";
|
|
99
100
|
import {
|
|
100
101
|
BasePlugin
|
|
101
102
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
102
103
|
import {
|
|
103
104
|
WorkflowComponent
|
|
104
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
105
|
+
} from "./shared/@ai-setting/roy-agent-core-x36fsm47.js";
|
|
105
106
|
import {
|
|
106
107
|
init_node_registry_helper,
|
|
107
108
|
registerDecoratorNodeType
|
|
108
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
109
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
109
|
+
} from "./shared/@ai-setting/roy-agent-core-77wfej1h.js";
|
|
110
|
+
import"./shared/@ai-setting/roy-agent-core-yr3fp8tv.js";
|
|
110
111
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
111
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
112
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
112
|
+
import"./shared/@ai-setting/roy-agent-core-gmnex23m.js";
|
|
113
|
+
import"./shared/@ai-setting/roy-agent-core-ez91vxas.js";
|
|
113
114
|
import"./shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
114
115
|
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
115
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
116
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
116
|
+
import"./shared/@ai-setting/roy-agent-core-7kw06e4b.js";
|
|
117
|
+
import"./shared/@ai-setting/roy-agent-core-4z7dzcgb.js";
|
|
117
118
|
import"./shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
118
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
119
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
120
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
119
|
+
import"./shared/@ai-setting/roy-agent-core-r15sn7ve.js";
|
|
120
|
+
import"./shared/@ai-setting/roy-agent-core-1mrc9a1r.js";
|
|
121
|
+
import"./shared/@ai-setting/roy-agent-core-bq1gskrf.js";
|
|
121
122
|
import"./shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
122
123
|
import {
|
|
123
124
|
Edge,
|
|
@@ -130,34 +131,34 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
130
131
|
import {
|
|
131
132
|
AgentComponent,
|
|
132
133
|
AgentComponentConfigSchema
|
|
133
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
134
|
+
} from "./shared/@ai-setting/roy-agent-core-rmesvpff.js";
|
|
134
135
|
import {
|
|
135
136
|
createInvokeConfig,
|
|
136
137
|
invoke,
|
|
137
138
|
invokeNonStream,
|
|
138
139
|
parseModelString
|
|
139
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
140
|
+
} from "./shared/@ai-setting/roy-agent-core-8n0e62y4.js";
|
|
140
141
|
import {
|
|
141
142
|
ToolComponent,
|
|
142
143
|
ToolRegistry,
|
|
143
144
|
ToolValidator
|
|
144
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
145
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
145
|
+
} from "./shared/@ai-setting/roy-agent-core-b8wn8yhk.js";
|
|
146
|
+
import"./shared/@ai-setting/roy-agent-core-ataagh3a.js";
|
|
146
147
|
import {
|
|
147
148
|
AskUserError,
|
|
148
149
|
init_workflow_hil
|
|
149
150
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
150
151
|
import {
|
|
151
152
|
TaskComponent
|
|
152
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
153
|
+
} from "./shared/@ai-setting/roy-agent-core-9jsfqc1m.js";
|
|
153
154
|
import"./shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
154
155
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
155
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
156
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
156
|
+
import"./shared/@ai-setting/roy-agent-core-1380b0re.js";
|
|
157
|
+
import"./shared/@ai-setting/roy-agent-core-eaj0b1hm.js";
|
|
157
158
|
import {
|
|
158
159
|
SQLiteTaskStore,
|
|
159
160
|
getDefaultTaskDbPath
|
|
160
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
161
|
+
} from "./shared/@ai-setting/roy-agent-core-zdzkzx5g.js";
|
|
161
162
|
import {
|
|
162
163
|
getBuiltInPrompt,
|
|
163
164
|
getBuiltInPromptNames
|
|
@@ -165,24 +166,24 @@ import {
|
|
|
165
166
|
import"./shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
166
167
|
import {
|
|
167
168
|
AgentRegistry
|
|
168
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
169
|
+
} from "./shared/@ai-setting/roy-agent-core-mmnac1s6.js";
|
|
169
170
|
import {
|
|
170
171
|
XDG_PATHS,
|
|
171
172
|
getXDGPath,
|
|
172
173
|
getXDGPaths
|
|
173
174
|
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
174
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
175
|
+
import"./shared/@ai-setting/roy-agent-core-r0t34bbh.js";
|
|
175
176
|
import"./shared/@ai-setting/roy-agent-core-rn57psp0.js";
|
|
176
177
|
import {
|
|
177
178
|
TaskHookPoints
|
|
178
179
|
} from "./shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
179
180
|
import {
|
|
180
181
|
SkillComponent
|
|
181
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
182
|
+
} from "./shared/@ai-setting/roy-agent-core-5pzegp1x.js";
|
|
182
183
|
import"./shared/@ai-setting/roy-agent-core-psvxt4c9.js";
|
|
183
184
|
import {
|
|
184
185
|
McpComponent
|
|
185
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
186
|
+
} from "./shared/@ai-setting/roy-agent-core-2b0mw2h3.js";
|
|
186
187
|
import {
|
|
187
188
|
AgentError,
|
|
188
189
|
ComponentError,
|
|
@@ -195,37 +196,37 @@ import {
|
|
|
195
196
|
isRoyError
|
|
196
197
|
} from "./shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
197
198
|
import"./shared/@ai-setting/roy-agent-core-fnv3ev18.js";
|
|
198
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
199
|
+
import"./shared/@ai-setting/roy-agent-core-mdp8y7ky.js";
|
|
199
200
|
import {
|
|
200
201
|
SessionComponent
|
|
201
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
202
|
+
} from "./shared/@ai-setting/roy-agent-core-bqe4c9f2.js";
|
|
202
203
|
import"./shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
203
204
|
import {
|
|
204
205
|
MemorySessionStore
|
|
205
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
206
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
207
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
206
|
+
} from "./shared/@ai-setting/roy-agent-core-zs4f0tcy.js";
|
|
207
|
+
import"./shared/@ai-setting/roy-agent-core-7r72622v.js";
|
|
208
|
+
import"./shared/@ai-setting/roy-agent-core-e0kaxcy1.js";
|
|
208
209
|
import"./shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
209
210
|
import {
|
|
210
211
|
BaseComponent
|
|
211
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
212
|
+
} from "./shared/@ai-setting/roy-agent-core-akb8mb9v.js";
|
|
212
213
|
import {
|
|
213
214
|
createHook,
|
|
214
215
|
createPriorityHook
|
|
215
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
216
|
+
} from "./shared/@ai-setting/roy-agent-core-02aw62bv.js";
|
|
216
217
|
import {
|
|
217
218
|
HookManager,
|
|
218
219
|
globalHookManager
|
|
219
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
220
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
221
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
220
|
+
} from "./shared/@ai-setting/roy-agent-core-vc7p80sd.js";
|
|
221
|
+
import"./shared/@ai-setting/roy-agent-core-sqt96sam.js";
|
|
222
|
+
import"./shared/@ai-setting/roy-agent-core-dtkbj8fk.js";
|
|
222
223
|
import {
|
|
223
224
|
Traced,
|
|
224
225
|
TracedAs,
|
|
225
226
|
TracedLightweight,
|
|
226
227
|
init_decorator,
|
|
227
228
|
wrapFunction
|
|
228
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
229
|
+
} from "./shared/@ai-setting/roy-agent-core-96mj6gvc.js";
|
|
229
230
|
import {
|
|
230
231
|
createLogger,
|
|
231
232
|
getLogDir,
|
|
@@ -236,7 +237,7 @@ import {
|
|
|
236
237
|
setConfigComponent,
|
|
237
238
|
setLogDirOverride,
|
|
238
239
|
setQuietMode
|
|
239
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
240
|
+
} from "./shared/@ai-setting/roy-agent-core-nna4s0qs.js";
|
|
240
241
|
import {
|
|
241
242
|
OTelTracerProvider,
|
|
242
243
|
SpanKind,
|
|
@@ -244,10 +245,10 @@ import {
|
|
|
244
245
|
getTracerProvider,
|
|
245
246
|
propagation,
|
|
246
247
|
resetTracerProvider
|
|
247
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
248
|
+
} from "./shared/@ai-setting/roy-agent-core-m00kamqp.js";
|
|
248
249
|
import {
|
|
249
250
|
SQLiteSpanStorage
|
|
250
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
251
|
+
} from "./shared/@ai-setting/roy-agent-core-4an1p9a1.js";
|
|
251
252
|
import"./shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
252
253
|
// src/env/session-tree-stopper.ts
|
|
253
254
|
init_decorator();
|
|
@@ -524,6 +525,7 @@ export {
|
|
|
524
525
|
getAllBuiltInTools,
|
|
525
526
|
generateId,
|
|
526
527
|
generateDescendingId,
|
|
528
|
+
extractMetadata,
|
|
527
529
|
editFileTool,
|
|
528
530
|
createWorkflowFromClass,
|
|
529
531
|
createPriorityHook,
|
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseComponent
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-akb8mb9v.js";
|
|
14
14
|
import {
|
|
15
15
|
createHook
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-02aw62bv.js";
|
|
17
17
|
import {
|
|
18
18
|
globalHookManager,
|
|
19
19
|
init_global_hook_manager
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-vc7p80sd.js";
|
|
21
21
|
import {
|
|
22
22
|
createLogger,
|
|
23
23
|
init_logger
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-nna4s0qs.js";
|
|
25
25
|
|
|
26
26
|
// src/env/prompt/types.ts
|
|
27
27
|
import { z } from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProcessRegistry,
|
|
3
3
|
runWithProcessRegistryAsync
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-eaj0b1hm.js";
|
|
5
5
|
import {
|
|
6
6
|
builtInPrompts
|
|
7
7
|
} from "./roy-agent-core-apz6v22z.js";
|
|
@@ -10,29 +10,30 @@ import {
|
|
|
10
10
|
} from "./roy-agent-core-c1v263jn.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_SUBAGENT_PROMPT
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-mmnac1s6.js";
|
|
14
14
|
import {
|
|
15
15
|
TaskHookPoints
|
|
16
16
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
17
17
|
import {
|
|
18
18
|
globalHookManager,
|
|
19
19
|
init_global_hook_manager
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-vc7p80sd.js";
|
|
21
21
|
import {
|
|
22
22
|
init_context
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-sqt96sam.js";
|
|
24
24
|
import {
|
|
25
|
-
getCurrentTaskId
|
|
26
|
-
|
|
25
|
+
getCurrentTaskId,
|
|
26
|
+
getEnvContext
|
|
27
|
+
} from "./roy-agent-core-dtkbj8fk.js";
|
|
27
28
|
import {
|
|
28
29
|
TracedAs,
|
|
29
30
|
init_decorator,
|
|
30
31
|
wrapFunction
|
|
31
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-96mj6gvc.js";
|
|
32
33
|
import {
|
|
33
34
|
createLogger,
|
|
34
35
|
init_logger
|
|
35
|
-
} from "./roy-agent-core-
|
|
36
|
+
} from "./roy-agent-core-nna4s0qs.js";
|
|
36
37
|
import {
|
|
37
38
|
__legacyDecorateClassTS
|
|
38
39
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -419,6 +420,26 @@ class BackgroundTaskManager {
|
|
|
419
420
|
created_by: "subagent",
|
|
420
421
|
task_description: description
|
|
421
422
|
};
|
|
423
|
+
const parentEnvContext = getEnvContext();
|
|
424
|
+
if (parentEnvContext) {
|
|
425
|
+
if (parentEnvContext.messageId) {
|
|
426
|
+
metadata.messageId = parentEnvContext.messageId;
|
|
427
|
+
}
|
|
428
|
+
const replyChannel = parentEnvContext.replyChannel;
|
|
429
|
+
if (replyChannel?.messageId) {
|
|
430
|
+
metadata.larkMessageId = replyChannel.messageId;
|
|
431
|
+
}
|
|
432
|
+
if (replyChannel?.chatId) {
|
|
433
|
+
metadata.chatId = replyChannel.chatId;
|
|
434
|
+
}
|
|
435
|
+
if (replyChannel?.userId) {
|
|
436
|
+
metadata.larkUserId = replyChannel.userId;
|
|
437
|
+
}
|
|
438
|
+
const profile = replyChannel?.profile;
|
|
439
|
+
if (profile) {
|
|
440
|
+
metadata.larkProfile = profile;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
422
443
|
subSession = await sessionComponent.create({
|
|
423
444
|
title: `${description} (@${subagentType} subagent)`,
|
|
424
445
|
parentSessionId,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./roy-agent-core-az13yzmc.js";
|
|
4
4
|
import {
|
|
5
5
|
validateWorkflowDefinition
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-1mrc9a1r.js";
|
|
7
7
|
import {
|
|
8
8
|
WORKFLOW_EXTRACT_PROMPT
|
|
9
9
|
} from "./roy-agent-core-apz6v22z.js";
|
|
@@ -12,19 +12,22 @@ import {
|
|
|
12
12
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
13
13
|
import {
|
|
14
14
|
init_context
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-sqt96sam.js";
|
|
16
16
|
import {
|
|
17
|
-
getEnvContextOrEmpty
|
|
18
|
-
|
|
17
|
+
getEnvContextOrEmpty,
|
|
18
|
+
getEventFromEnvContext,
|
|
19
|
+
getLarkMessageId,
|
|
20
|
+
isLarkEvent
|
|
21
|
+
} from "./roy-agent-core-dtkbj8fk.js";
|
|
19
22
|
import {
|
|
20
23
|
TracedAs,
|
|
21
24
|
init_decorator,
|
|
22
25
|
wrapFunction
|
|
23
|
-
} from "./roy-agent-core-
|
|
26
|
+
} from "./roy-agent-core-96mj6gvc.js";
|
|
24
27
|
import {
|
|
25
28
|
createLogger,
|
|
26
29
|
init_logger
|
|
27
|
-
} from "./roy-agent-core-
|
|
30
|
+
} from "./roy-agent-core-nna4s0qs.js";
|
|
28
31
|
import {
|
|
29
32
|
__legacyDecorateClassTS,
|
|
30
33
|
__require
|
|
@@ -289,11 +292,11 @@ ${prompt}`;
|
|
|
289
292
|
}
|
|
290
293
|
if (!this._workflowRepo) {
|
|
291
294
|
try {
|
|
292
|
-
const sqlite = await import("./roy-agent-core-
|
|
295
|
+
const sqlite = await import("./roy-agent-core-pr4jekyy.js");
|
|
293
296
|
this.ensureDataDir();
|
|
294
297
|
const db = sqlite.getDatabase();
|
|
295
298
|
sqlite.initializeTables();
|
|
296
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
299
|
+
const { WorkflowRepository } = await import("./roy-agent-core-fxembepv.js");
|
|
297
300
|
this._workflowRepo = new WorkflowRepository(db);
|
|
298
301
|
return this._workflowRepo;
|
|
299
302
|
} catch {
|
|
@@ -378,6 +381,19 @@ var logger3 = createLogger("lark-cli:task-notify");
|
|
|
378
381
|
function isTaskNotifyDebugEnabled() {
|
|
379
382
|
return process.env.ROY_TASK_NOTIFY_DEBUG === "1" || process.env.ROY_TRACE_DEBUG === "1";
|
|
380
383
|
}
|
|
384
|
+
function extractLarkFields(env) {
|
|
385
|
+
const event = getEventFromEnvContext(env);
|
|
386
|
+
if (!isLarkEvent(event)) {
|
|
387
|
+
return { isLark: false };
|
|
388
|
+
}
|
|
389
|
+
return {
|
|
390
|
+
isLark: true,
|
|
391
|
+
source: event.source,
|
|
392
|
+
messageId: getLarkMessageId(event) ?? env.replyChannel?.messageId,
|
|
393
|
+
chatId: env.replyChannel?.chatId,
|
|
394
|
+
userId: env.replyChannel?.userId
|
|
395
|
+
};
|
|
396
|
+
}
|
|
381
397
|
var NotifyType;
|
|
382
398
|
((NotifyType2) => {
|
|
383
399
|
NotifyType2["TASK_CREATED"] = "task_created";
|
|
@@ -510,6 +526,11 @@ class LarkCliTaskNotifyHook {
|
|
|
510
526
|
if (!replyChannel && _hookContext?.metadata?.envContext) {
|
|
511
527
|
replyChannel = _hookContext.metadata.envContext.replyChannel;
|
|
512
528
|
}
|
|
529
|
+
const larkFields = extractLarkFields(env);
|
|
530
|
+
if (!larkFields.isLark && env.event) {
|
|
531
|
+
logger3.debug(`Skipping notification for non-lark event source: ${larkFields.source}`);
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
513
534
|
const chatId = replyChannel?.chatId;
|
|
514
535
|
const messageId = replyChannel?.messageId;
|
|
515
536
|
if (!chatId && !messageId) {
|
|
@@ -593,11 +614,56 @@ ${content}`;
|
|
|
593
614
|
return text;
|
|
594
615
|
return text.substring(0, maxLen) + "...";
|
|
595
616
|
}
|
|
596
|
-
|
|
617
|
+
appendSpatiotemporalContextLines(lines, task, options = {}) {
|
|
597
618
|
if (task?.project_path) {
|
|
598
|
-
lines.push(`-
|
|
619
|
+
lines.push(`- \uD83D\uDCC2 项目路径: \`${task.project_path}\``);
|
|
620
|
+
}
|
|
621
|
+
const ctxStr = task?.context;
|
|
622
|
+
let parsedCtx = null;
|
|
623
|
+
if (typeof ctxStr === "string" && ctxStr.length > 0) {
|
|
624
|
+
try {
|
|
625
|
+
const obj = JSON.parse(ctxStr);
|
|
626
|
+
if (obj && typeof obj === "object" && !Array.isArray(obj)) {
|
|
627
|
+
parsedCtx = obj;
|
|
628
|
+
}
|
|
629
|
+
} catch {}
|
|
630
|
+
}
|
|
631
|
+
if (!parsedCtx) {
|
|
632
|
+
if (options.appendFullContext && typeof ctxStr === "string") {
|
|
633
|
+
lines.push(`- \uD83D\uDCCB 完整 context: \`${this.truncate(ctxStr, 200)}\``);
|
|
634
|
+
}
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
if (parsedCtx.worktree_path && typeof parsedCtx.worktree_path === "string") {
|
|
638
|
+
lines.push(`- \uD83C\uDF3F Worktree: \`${parsedCtx.worktree_path}\``);
|
|
639
|
+
}
|
|
640
|
+
if (parsedCtx.created_at && typeof parsedCtx.created_at === "string") {
|
|
641
|
+
lines.push(`- ⏰ 时间上下文: ${parsedCtx.created_at}`);
|
|
642
|
+
}
|
|
643
|
+
if (parsedCtx.prior_context && typeof parsedCtx.prior_context === "object") {
|
|
644
|
+
const priorStr = this.formatPriorContext(parsedCtx.prior_context);
|
|
645
|
+
if (priorStr) {
|
|
646
|
+
lines.push(`- \uD83D\uDCDC 背景: ${priorStr}`);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
if (options.appendFullContext) {
|
|
650
|
+
lines.push(`- \uD83D\uDCCB 完整 context: \`${this.truncate(JSON.stringify(parsedCtx), 300)}\``);
|
|
599
651
|
}
|
|
600
652
|
}
|
|
653
|
+
formatPriorContext(prior) {
|
|
654
|
+
if (!prior || typeof prior !== "object")
|
|
655
|
+
return "";
|
|
656
|
+
const entries = [];
|
|
657
|
+
for (const [k, v] of Object.entries(prior)) {
|
|
658
|
+
if (v === null || v === undefined)
|
|
659
|
+
continue;
|
|
660
|
+
const s = typeof v === "object" ? JSON.stringify(v) : String(v);
|
|
661
|
+
if (s === "" || s === "undefined")
|
|
662
|
+
continue;
|
|
663
|
+
entries.push(`${k}=${s}`);
|
|
664
|
+
}
|
|
665
|
+
return entries.join(", ");
|
|
666
|
+
}
|
|
601
667
|
shouldNotify(type) {
|
|
602
668
|
const { notifyTypes } = this.config;
|
|
603
669
|
if (notifyTypes && notifyTypes.length === 0)
|
|
@@ -636,7 +702,7 @@ ${content}`;
|
|
|
636
702
|
if (task.priority) {
|
|
637
703
|
lines.push(`- **优先级**: ${task.priority}`);
|
|
638
704
|
}
|
|
639
|
-
this.
|
|
705
|
+
this.appendSpatiotemporalContextLines(lines, task);
|
|
640
706
|
return lines.join(`
|
|
641
707
|
`);
|
|
642
708
|
}
|
|
@@ -655,7 +721,7 @@ ${content}`;
|
|
|
655
721
|
if (changes?.current_status) {
|
|
656
722
|
lines.push(`- **当前状态**: ${changes.current_status}`);
|
|
657
723
|
}
|
|
658
|
-
this.
|
|
724
|
+
this.appendSpatiotemporalContextLines(lines, task);
|
|
659
725
|
const changeKeys = Object.keys(changes || {}).filter((k) => !["status", "progress", "current_status"].includes(k));
|
|
660
726
|
if (changeKeys.length > 0) {
|
|
661
727
|
lines.push(`- **变更**: ${changeKeys.join(", ")}`);
|
|
@@ -699,7 +765,9 @@ ${content}`;
|
|
|
699
765
|
if (operation.processDescription) {
|
|
700
766
|
lines.push(`- **过程概要**: ${this.truncate(String(operation.processDescription), 200)}`);
|
|
701
767
|
}
|
|
702
|
-
this.
|
|
768
|
+
this.appendSpatiotemporalContextLines(lines, resolvedTask, {
|
|
769
|
+
appendFullContext: true
|
|
770
|
+
});
|
|
703
771
|
if (operation.sessionId) {
|
|
704
772
|
lines.push(`- **Session**: \`${operation.sessionId}\``);
|
|
705
773
|
}
|