@ai-setting/roy-agent-core 1.7.53 → 1.7.56
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 +7 -7
- package/dist/env/agent/agent-component.d.ts +30 -0
- package/dist/env/agent/index.js +13 -12
- package/dist/env/commands/index.js +7 -7
- package/dist/env/context/index.js +3 -3
- package/dist/env/debug/index.js +7 -7
- package/dist/env/environment.d.ts +7 -0
- package/dist/env/error-reply.d.ts +184 -0
- package/dist/env/event-source/event-source-handlers.d.ts +9 -23
- package/dist/env/event-source/index.js +17 -17
- package/dist/env/hook/index.js +5 -5
- package/dist/env/index.js +41 -40
- package/dist/env/llm/adapter-ai-sdk.d.ts +6 -0
- package/dist/env/llm/adapter-pi-ai.d.ts +152 -2
- package/dist/env/llm/adapter.d.ts +21 -1
- package/dist/env/llm/index.js +10 -10
- package/dist/env/llm/invoke.d.ts +74 -2
- package/dist/env/llm/llm.d.ts +38 -0
- package/dist/env/llm/outbound-defense.d.ts +140 -0
- package/dist/env/llm/reasoning-defense.d.ts +104 -0
- package/dist/env/llm/types.d.ts +26 -0
- package/dist/env/log-trace/decorator.d.ts +46 -3
- package/dist/env/log-trace/index.d.ts +1 -0
- package/dist/env/log-trace/index.js +33 -7
- package/dist/env/log-trace/trace-filters.d.ts +127 -0
- package/dist/env/mcp/index.js +7 -7
- package/dist/env/memory/index.js +7 -7
- package/dist/env/plugin/index.js +7 -7
- package/dist/env/prompt/index.js +8 -8
- package/dist/env/prompt/prompts-index.d.ts +1 -1
- package/dist/env/session/index.js +11 -10
- package/dist/env/session/session-component.d.ts +4 -0
- package/dist/env/session/storage/index.js +5 -3
- package/dist/env/skill/index.js +7 -7
- package/dist/env/task/backend/index.js +0 -2
- package/dist/env/task/backend/types.d.ts +0 -11
- package/dist/env/task/delegate/index.js +8 -8
- package/dist/env/task/index.js +13 -13
- package/dist/env/task/plugins/card-chat-routing.d.ts +42 -89
- package/dist/env/task/plugins/index.js +10 -10
- package/dist/env/task/plugins/lark-card-patch-notifier.d.ts +0 -51
- package/dist/env/task/plugins/lark-cli-task-notify-plugin.d.ts +14 -31
- package/dist/env/task/plugins/per-task-group-chat-plugin.d.ts +4 -4
- package/dist/env/task/storage/index.js +2 -2
- package/dist/env/task/tools/index.js +3 -3
- package/dist/env/tool/built-in/index.js +3 -3
- package/dist/env/tool/index.js +9 -9
- package/dist/env/workflow/engine/engine.d.ts +65 -0
- package/dist/env/workflow/engine/index.js +12 -12
- package/dist/env/workflow/hooks/index.js +7 -7
- package/dist/env/workflow/index.js +23 -22
- package/dist/env/workflow/nodes/index.js +2 -2
- package/dist/env/workflow/nodes/tool-node.d.ts +6 -0
- package/dist/env/workflow/plugins/index.js +8 -8
- package/dist/env/workflow/service/index.js +2 -2
- package/dist/env/workflow/storage/index.js +3 -3
- package/dist/env/workflow/tools/index.js +15 -14
- package/dist/env/workflow/tools/workflow-validate-tool.d.ts +11 -2
- package/dist/env/workflow/types/run.d.ts +19 -0
- package/dist/env/workflow/utils/agent-session-metadata.d.ts +13 -0
- package/dist/env/workflow/utils/index.js +5 -5
- package/dist/env/workflow/utils/redact-command-secrets.d.ts +70 -0
- package/dist/env/workflow/utils/shell-dialect-lint.d.ts +75 -0
- package/dist/env/workflow/utils/validate-workflow-definition.d.ts +22 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +82 -56
- package/dist/shared/@ai-setting/{roy-agent-core-k25gv86p.js → roy-agent-core-0b3fdnn3.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-vvxb9522.js → roy-agent-core-0bmk44ye.js} +71 -10
- package/dist/shared/@ai-setting/{roy-agent-core-k8b440n3.js → roy-agent-core-16t0zfbk.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4z3rq5gw.js → roy-agent-core-1pnfkspm.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-na73mym1.js → roy-agent-core-202v00x4.js} +213 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ph5qbqcx.js → roy-agent-core-2044fbsd.js} +471 -134
- package/dist/shared/@ai-setting/{roy-agent-core-fs36xgcs.js → roy-agent-core-3dkzqqsd.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qm9jda8p.js → roy-agent-core-3kz6934b.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-tjg71zqp.js → roy-agent-core-3mc6vmvj.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-tdbv7ff4.js → roy-agent-core-40xzbjtm.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-athdr2m0.js → roy-agent-core-4zy2v3br.js} +10 -2
- package/dist/shared/@ai-setting/{roy-agent-core-t37wbysj.js → roy-agent-core-5gw6w424.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-978b6wfx.js → roy-agent-core-5psjwd08.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7evvpfwc.js → roy-agent-core-5rxs0ra3.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-gdsqp6j8.js → roy-agent-core-6masakz4.js} +45 -0
- package/dist/shared/@ai-setting/{roy-agent-core-stnddvx9.js → roy-agent-core-6qgq7h1g.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-6167phd4.js → roy-agent-core-833t16n1.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-2k4xffaa.js → roy-agent-core-8cgtwytv.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-rx16h2m1.js → roy-agent-core-97eyghsp.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fvs48d38.js → roy-agent-core-98aa9r0x.js} +12 -7
- package/dist/shared/@ai-setting/{roy-agent-core-3tv1q6f2.js → roy-agent-core-9nv586rw.js} +57 -19
- package/dist/shared/@ai-setting/roy-agent-core-b599jgyd.js +578 -0
- package/dist/shared/@ai-setting/{roy-agent-core-yd21n6c7.js → roy-agent-core-bwzy00t2.js} +12 -5
- package/dist/shared/@ai-setting/{roy-agent-core-dwx9hjwx.js → roy-agent-core-c6at31ra.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-1cv9j4dg.js → roy-agent-core-d14h726p.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-4sx6sdb2.js → roy-agent-core-d4jpn06f.js} +22 -9
- package/dist/shared/@ai-setting/{roy-agent-core-39xejr39.js → roy-agent-core-e0wbq0qq.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-vrsxhw9e.js → roy-agent-core-e677am8e.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-hch2geta.js → roy-agent-core-ezsyyjxw.js} +21 -190
- package/dist/shared/@ai-setting/{roy-agent-core-ne2t1pay.js → roy-agent-core-f8sp1txg.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ak4dc3kg.js → roy-agent-core-gn8f4rhs.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qcspfszy.js → roy-agent-core-gngjkw3b.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9jzysq50.js → roy-agent-core-heft3j4c.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-5apmk4qw.js → roy-agent-core-jszgaevt.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-nde5gzta.js → roy-agent-core-m8n0dffe.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-x8n1r7h4.js → roy-agent-core-n3b7ztms.js} +189 -8
- package/dist/shared/@ai-setting/{roy-agent-core-4vpk40ss.js → roy-agent-core-nhk0dsxr.js} +13 -13
- package/dist/shared/@ai-setting/{roy-agent-core-j8e92gj8.js → roy-agent-core-nntphgww.js} +1 -60
- package/dist/shared/@ai-setting/{roy-agent-core-8s9jd2qy.js → roy-agent-core-nra8vfrs.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-pk1b3kvf.js → roy-agent-core-ns3pbyz4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7g03zkkb.js → roy-agent-core-pemxr5n4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-skzjs973.js → roy-agent-core-pjxa78mp.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-p8ak03s0.js → roy-agent-core-q7zksbw0.js} +117 -315
- package/dist/shared/@ai-setting/{roy-agent-core-zd3ddm4k.js → roy-agent-core-qjjf4tjb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qamktze3.js → roy-agent-core-qyqnmz8c.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9csa89jx.js → roy-agent-core-r9qe0ghe.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-h93v6p6y.js → roy-agent-core-tc7gw38m.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-35s1w7tc.js → roy-agent-core-v2188rnk.js} +157 -85
- package/dist/shared/@ai-setting/{roy-agent-core-p2r27era.js → roy-agent-core-vmg30n5x.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-rnwr39b0.js → roy-agent-core-w7hnjhvx.js} +5 -3
- package/dist/shared/@ai-setting/{roy-agent-core-dv714bqh.js → roy-agent-core-wafk25ff.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-brwzs8wf.js → roy-agent-core-xcq04fq0.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-2gay3sjt.js → roy-agent-core-yg247mk4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-zy3hqfwg.js → roy-agent-core-yv9x4wmg.js} +631 -35
- package/dist/shared/@ai-setting/{roy-agent-core-yhsssn86.js → roy-agent-core-zmeka63k.js} +1 -1
- package/dist/test-utils/child-process-mock.d.ts +73 -0
- package/package.json +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-dsevjbck.js +0 -245
package/dist/config/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ConfigSourceNotFoundError,
|
|
5
5
|
FileSource,
|
|
6
6
|
MemorySource
|
|
7
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "../shared/@ai-setting/roy-agent-core-qyqnmz8c.js";
|
|
8
8
|
import {
|
|
9
9
|
EnvSource,
|
|
10
10
|
parseJSONC,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
} from "../shared/@ai-setting/roy-agent-core-adg9ghbt.js";
|
|
16
16
|
import"../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
17
17
|
import"../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
18
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
19
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
20
|
-
import"../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-
|
|
18
|
+
import"../shared/@ai-setting/roy-agent-core-40xzbjtm.js";
|
|
19
|
+
import"../shared/@ai-setting/roy-agent-core-gngjkw3b.js";
|
|
20
|
+
import"../shared/@ai-setting/roy-agent-core-1pnfkspm.js";
|
|
21
|
+
import"../shared/@ai-setting/roy-agent-core-16t0zfbk.js";
|
|
22
|
+
import"../shared/@ai-setting/roy-agent-core-jszgaevt.js";
|
|
23
|
+
import"../shared/@ai-setting/roy-agent-core-b599jgyd.js";
|
|
24
24
|
import"../shared/@ai-setting/roy-agent-core-8seq65bp.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-jnszp0jq.js";
|
|
26
26
|
import"../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
@@ -411,6 +411,13 @@ export declare class AgentComponent extends BaseComponent {
|
|
|
411
411
|
/**
|
|
412
412
|
* 执行 Agent(核心方法,内部实现)
|
|
413
413
|
*/
|
|
414
|
+
/**
|
|
415
|
+
* ★ 2026-10-22:**只存摘要**(Task #4479,CV 发现的漏网之鱼)。
|
|
416
|
+
*
|
|
417
|
+
* 实测:`agent.component.run` 单 span attributes 达 **70 KB**,
|
|
418
|
+
* `query` 多模态时(base64 图片)可达 MB 级 ——
|
|
419
|
+
* 等于把上一级 `env.handle_query` 省下来的体积**又吐回去一层**。
|
|
420
|
+
*/
|
|
414
421
|
private _run;
|
|
415
422
|
/**
|
|
416
423
|
* 中止 Agent
|
|
@@ -493,6 +500,10 @@ export declare class AgentComponent extends BaseComponent {
|
|
|
493
500
|
* 否则降级到当前行为:从 ctx.context.additionInfo 读取(每次 buildMessages 都
|
|
494
501
|
* 重读,可能因 caller 传入不同值而变化 → cache miss)。
|
|
495
502
|
*/
|
|
503
|
+
/**
|
|
504
|
+
* ★ 2026-10-22:**只存摘要**(Task #4479)。改造前平均 158KB
|
|
505
|
+
* —— 入参 `ctx` 挂着完整对话历史,返回值是完整 additionInfo 文本。
|
|
506
|
+
*/
|
|
496
507
|
private _buildAdditionInfo;
|
|
497
508
|
private buildMessages;
|
|
498
509
|
/**
|
|
@@ -515,6 +526,10 @@ export declare class AgentComponent extends BaseComponent {
|
|
|
515
526
|
*
|
|
516
527
|
* 流式事件由 LLMComponent 通过 env.pushEnvEvent() 发布
|
|
517
528
|
*/
|
|
529
|
+
/**
|
|
530
|
+
* ★ 2026-10-22:**只存摘要**(Task #4479)。改造前平均 149KB
|
|
531
|
+
* —— 入参 ctx 带全量消息,返回值是完整模型输出。
|
|
532
|
+
*/
|
|
518
533
|
private invokeLLM;
|
|
519
534
|
/**
|
|
520
535
|
* Task #2723: 归一化上游 tool-call shape → 内部 `Record<string, unknown>`。
|
|
@@ -547,6 +562,11 @@ export declare class AgentComponent extends BaseComponent {
|
|
|
547
562
|
* 刻意不覆盖「工具执行失败」(`success:false` 且有真实 error,如 bash exit!=0):
|
|
548
563
|
* 那是正常运行时结果,全标 ERROR 会让 trace 里遍布红色噪音、反而掩盖真问题。
|
|
549
564
|
*/
|
|
565
|
+
/**
|
|
566
|
+
* ★ 2026-10-22:**只存摘要**(Task #4479)。改造前平均 259KB
|
|
567
|
+
* —— `ctx` 里挂着完整对话历史 + 工具参数 + 工具返回值。
|
|
568
|
+
* 现在只留工具名 / toolCallId / 参数键名列表。
|
|
569
|
+
*/
|
|
550
570
|
private executeTool;
|
|
551
571
|
/**
|
|
552
572
|
* 执行 Plugin Hooks (Agent 特有的 Hook 执行机制)
|
|
@@ -584,6 +604,12 @@ export declare class AgentComponent extends BaseComponent {
|
|
|
584
604
|
* amplification that turned short contentions into full SQLITE_BUSY
|
|
585
605
|
* storms (the root cause of the 2026-07-07 incident).
|
|
586
606
|
*/
|
|
607
|
+
/**
|
|
608
|
+
* ★ 2026-10-22:**只存摘要**(Task #4479,CV 发现的**最大漏网之鱼**)。
|
|
609
|
+
*
|
|
610
|
+
* 实测:`allMessages` 是**每一轮 ReAct 迭代的全部消息**(含工具输出),
|
|
611
|
+
* 单 span attributes 达 **200 KB / 迭代** —— 这是剩余的体积大头。
|
|
612
|
+
*/
|
|
587
613
|
private recordSessionMessages;
|
|
588
614
|
/**
|
|
589
615
|
* 检查消息内容是否为空
|
|
@@ -620,6 +646,10 @@ export declare class AgentComponent extends BaseComponent {
|
|
|
620
646
|
* @param options.filterHistory - 是否过滤 tool 消息(默认 true)
|
|
621
647
|
* @returns 过滤后的会话消息列表
|
|
622
648
|
*/
|
|
649
|
+
/**
|
|
650
|
+
* ★ 2026-10-22:**只存摘要**(Task #4479)。改造前平均 45KB
|
|
651
|
+
* —— 返回值是完整会话历史数组(每条 message 的完整 content)。
|
|
652
|
+
*/
|
|
623
653
|
private getConversationHistory;
|
|
624
654
|
}
|
|
625
655
|
/**
|
package/dist/env/agent/index.js
CHANGED
|
@@ -2,24 +2,25 @@ import {
|
|
|
2
2
|
AgentComponent,
|
|
3
3
|
AgentComponentConfigSchema,
|
|
4
4
|
SummaryAgent
|
|
5
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
6
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../shared/@ai-setting/roy-agent-core-9nv586rw.js";
|
|
6
|
+
import"../../shared/@ai-setting/roy-agent-core-98aa9r0x.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-kzg1jwt8.js";
|
|
8
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
import"../../shared/@ai-setting/roy-agent-core-97eyghsp.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
10
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
11
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
12
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
10
|
+
import"../../shared/@ai-setting/roy-agent-core-wafk25ff.js";
|
|
11
|
+
import"../../shared/@ai-setting/roy-agent-core-ns3pbyz4.js";
|
|
12
|
+
import"../../shared/@ai-setting/roy-agent-core-yv9x4wmg.js";
|
|
13
|
+
import"../../shared/@ai-setting/roy-agent-core-zjdzk1gg.js";
|
|
13
14
|
import"../../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
14
15
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
15
16
|
import"../../shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
16
17
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
17
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
20
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
21
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
22
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-40xzbjtm.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-gngjkw3b.js";
|
|
20
|
+
import"../../shared/@ai-setting/roy-agent-core-1pnfkspm.js";
|
|
21
|
+
import"../../shared/@ai-setting/roy-agent-core-16t0zfbk.js";
|
|
22
|
+
import"../../shared/@ai-setting/roy-agent-core-jszgaevt.js";
|
|
23
|
+
import"../../shared/@ai-setting/roy-agent-core-b599jgyd.js";
|
|
23
24
|
import"../../shared/@ai-setting/roy-agent-core-8seq65bp.js";
|
|
24
25
|
import"../../shared/@ai-setting/roy-agent-core-jnszp0jq.js";
|
|
25
26
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandsComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-qjjf4tjb.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
5
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
6
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
8
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
9
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
10
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-40xzbjtm.js";
|
|
6
|
+
import"../../shared/@ai-setting/roy-agent-core-gngjkw3b.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-1pnfkspm.js";
|
|
8
|
+
import"../../shared/@ai-setting/roy-agent-core-16t0zfbk.js";
|
|
9
|
+
import"../../shared/@ai-setting/roy-agent-core-jszgaevt.js";
|
|
10
|
+
import"../../shared/@ai-setting/roy-agent-core-b599jgyd.js";
|
|
11
11
|
import"../../shared/@ai-setting/roy-agent-core-8seq65bp.js";
|
|
12
12
|
import"../../shared/@ai-setting/roy-agent-core-jnszp0jq.js";
|
|
13
13
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_context
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-16t0zfbk.js";
|
|
4
4
|
import {
|
|
5
5
|
EVENT_ENV_PREFIX,
|
|
6
6
|
createEnvContext,
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
runWithEnvContextAsync,
|
|
25
25
|
serializeEventToEnv,
|
|
26
26
|
setCurrentTaskId
|
|
27
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
28
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
27
|
+
} from "../../shared/@ai-setting/roy-agent-core-jszgaevt.js";
|
|
28
|
+
import"../../shared/@ai-setting/roy-agent-core-b599jgyd.js";
|
|
29
29
|
import"../../shared/@ai-setting/roy-agent-core-8seq65bp.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-jnszp0jq.js";
|
|
31
31
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
package/dist/env/debug/index.js
CHANGED
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
RegexParser,
|
|
5
5
|
SpanBuilder,
|
|
6
6
|
SpanDbReader
|
|
7
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "../../shared/@ai-setting/roy-agent-core-0b3fdnn3.js";
|
|
8
8
|
import {
|
|
9
9
|
ReplFormatter,
|
|
10
10
|
TraceFormatter,
|
|
11
11
|
TreeFormatter
|
|
12
12
|
} from "../../shared/@ai-setting/roy-agent-core-rvv6ydff.js";
|
|
13
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
14
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
15
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
16
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
17
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
import"../../shared/@ai-setting/roy-agent-core-40xzbjtm.js";
|
|
14
|
+
import"../../shared/@ai-setting/roy-agent-core-gngjkw3b.js";
|
|
15
|
+
import"../../shared/@ai-setting/roy-agent-core-1pnfkspm.js";
|
|
16
|
+
import"../../shared/@ai-setting/roy-agent-core-16t0zfbk.js";
|
|
17
|
+
import"../../shared/@ai-setting/roy-agent-core-jszgaevt.js";
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-b599jgyd.js";
|
|
19
19
|
import"../../shared/@ai-setting/roy-agent-core-8seq65bp.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-jnszp0jq.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
@@ -82,6 +82,12 @@ export declare class BaseEnvironment extends BaseComponent implements Environmen
|
|
|
82
82
|
*
|
|
83
83
|
* 委托给 AgentComponent.run() 处理
|
|
84
84
|
*/
|
|
85
|
+
/**
|
|
86
|
+
* ★ 2026-10-22:**入参只存摘要**(Task #4479)。
|
|
87
|
+
*
|
|
88
|
+
* `query` 是 `string | ContentPart[]` —— 多模态时是图片/文件数组,可能很大;
|
|
89
|
+
* 返回值是完整的 agent 响应文本。把两者都换成摘要(长度/条数/类型)。
|
|
90
|
+
*/
|
|
85
91
|
handle_query(query: string | ContentPart[], context?: AgentContext): Promise<string>;
|
|
86
92
|
/**
|
|
87
93
|
* ★ Workflow 类型 agent 查询处理
|
|
@@ -89,6 +95,7 @@ export declare class BaseEnvironment extends BaseComponent implements Environmen
|
|
|
89
95
|
* 检查 agentDef.type 是否为 "workflow",是则通过 WorkflowComponent 执行 workflow。
|
|
90
96
|
* 非 workflow 类型返回 null,让 handle_query 走原有 ReAct 路径。
|
|
91
97
|
*/
|
|
98
|
+
/** ★ 2026-10-22:同 `env.handle_query`,只存摘要(Task #4479)。 */
|
|
92
99
|
private handleWorkflowAgentQuery;
|
|
93
100
|
/**
|
|
94
101
|
* 处理动作
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Task #4418: React 循环异常中断 → 给飞书发 reply
|
|
3
|
+
*
|
|
4
|
+
* ## 问题(用户飞书 p2p 2026-10-21)
|
|
5
|
+
*
|
|
6
|
+
* ```
|
|
7
|
+
* RetryError [AI_RetryError]: Failed after 4 attempts.
|
|
8
|
+
* Last error: Upstream request failed: Endpoint is unavailable.
|
|
9
|
+
* statusCode: 429 / isRetryable: true
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* 上游 429 不是 roy-agent 的 bug;但**异常中断后飞书侧完全静默**是。
|
|
13
|
+
* 用户原话:「这个失败导致的 react 中断,也需要找到对应的 triggerEvent
|
|
14
|
+
* 构建 response 让飞书方知道(送一个 reply 哈)」。
|
|
15
|
+
*
|
|
16
|
+
* ## 为什么必须由框架直接发(不能靠 prompt 引导 agent)
|
|
17
|
+
*
|
|
18
|
+
* 正常路径的 reply 是 **LLM 自己调 lark-cli**(prompt 由
|
|
19
|
+
* `buildNotifyHandlePrompt` / event-source-handlers 生成,告诉 agent
|
|
20
|
+
* 用 `recommendedAction.replyTo` 回消息)。
|
|
21
|
+
*
|
|
22
|
+
* 但异常路径的根本问题是:**LLM 调用本身失败了**,React 循环从未拿到
|
|
23
|
+
* 一个可用的 assistant turn,自然也不可能再调工具发消息。所以框架必须
|
|
24
|
+
* 自己 spawn `lark-cli`,这是与正常路径的本质区别。
|
|
25
|
+
*
|
|
26
|
+
* ## 断点(为什么曾经没 reply)
|
|
27
|
+
*
|
|
28
|
+
* 1. `agent-component.ts:2096` 捕获异常 → `result.error` + `result.originalError`
|
|
29
|
+
* 2. `environment.ts:430` 非 ContextError → `throw new Error(result.error)`
|
|
30
|
+
* ⚠️ 类型在这里丢掉,下游只能拿到字符串
|
|
31
|
+
* 3. `context-handler.service.ts:224` 直接 rethrow
|
|
32
|
+
* 4. `query-executor.ts:287` 只处理 ContextError,其余 rethrow
|
|
33
|
+
* 5. `interactive.ts:1301` / `event-handler.ts:620` 的 catch **只 console.error**
|
|
34
|
+
* → 静默丢失
|
|
35
|
+
*
|
|
36
|
+
* ## 现在的接线(四处,去重保证不重复)
|
|
37
|
+
*
|
|
38
|
+
* 1. `QueryExecutor.execute` 的 catch —— 唯一执行入口,覆盖
|
|
39
|
+
* interactive / run / run --es 三种模式,带完整 `agentContext.envEvent`
|
|
40
|
+
* 2. `EventHandler.processQueue` 的 catch —— 兜住「还没走到 QueryExecutor
|
|
41
|
+
* 就失败」的路径(session 解析 / 事件分发),并作为 TUI 层吞异常时的
|
|
42
|
+
* 最后一道防线
|
|
43
|
+
* 3. REPL `executeInternal` 的 catch —— 兜住 agentContext 组装 / plugin
|
|
44
|
+
* 加载 / REPL 包装层(这些异常会被 REPL 自己吞掉,到不了 EventHandler)
|
|
45
|
+
* 4. `LarkCliInstance.handleEvent` 的 catch —— event-source 自身的解析 /
|
|
46
|
+
* 落库 / 分发失败
|
|
47
|
+
*
|
|
48
|
+
* 四处都调用本模块,意味着**任何 React 中断都至少有一个出口到飞书**。
|
|
49
|
+
*
|
|
50
|
+
* ## 设计原则
|
|
51
|
+
*
|
|
52
|
+
* - **规则表驱动(rule base)**:错误分类 + 是否通知 + 用户文案收敛成
|
|
53
|
+
* `FAILURE_RULES` 有序表;表尾 `UNKNOWN_RULE` 是 `notify: true` 的
|
|
54
|
+
* catch-all —— 结构上保证**任何未分类错误也不会沉默**。只有
|
|
55
|
+
* `ask_user`(正常交互)显式 `notify: false`
|
|
56
|
+
* - **best-effort**:任何异常(spawn 失败 / lark-cli 非 0 / 库挂了)
|
|
57
|
+
* 都不得向上抛,绝不污染原始错误传播链
|
|
58
|
+
* - **有硬超时**:兜底 reply 在 5s 内一定 settle(超时 kill 子进程)。
|
|
59
|
+
* 否则 lark-cli 卡住会把 `QueryExecutor` 的 rethrow 拖死 → 事件队列堵死
|
|
60
|
+
* - **复用现有机制**:spawn 参数形态与 `LarkCliNotificationChannel` /
|
|
61
|
+
* `event-source-handlers.sendLarkMessage` 保持一致(`--profile` 前置、
|
|
62
|
+
* messageId → `+messages-reply`、chatId → `+messages-send`)
|
|
63
|
+
* - **去重**:同一 triggerEvent(messageId)只回一次;chat-only 通道走
|
|
64
|
+
* 5 分钟窗口,**不会**把整个群永久封锁;发送失败回滚去重标记
|
|
65
|
+
* - **无 channel 不崩但也不静默**:本地 REPL / `act` 没有飞书上下文 → debug;
|
|
66
|
+
* 有 triggerEvent 却拿不到 replyChannel = 衔接 bug → warn
|
|
67
|
+
* - **用户可读**:给用户看中文原因,技术细节单独放 `technical` 字段(截断)
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* 失败分类。
|
|
71
|
+
*
|
|
72
|
+
* 顺序即优先级:越具体的越先匹配。
|
|
73
|
+
*/
|
|
74
|
+
export type ReactFailureKind = "ask_user" | "upstream_retry" | "timeout" | "upstream_aborted" | "aborted" | "context_overflow" | "unknown";
|
|
75
|
+
export interface ReactFailureInfo {
|
|
76
|
+
kind: ReactFailureKind;
|
|
77
|
+
/** 命中的规则 id(可观测性 / 测试锚点) */
|
|
78
|
+
ruleId: string;
|
|
79
|
+
/** 一行标题(中文,给用户看) */
|
|
80
|
+
title: string;
|
|
81
|
+
/** 可读原因(中文,不含 stack trace) */
|
|
82
|
+
reason: string;
|
|
83
|
+
/** 是否值得用户稍后重试 */
|
|
84
|
+
retryable: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* 是否应该把这条失败反馈到飞书。
|
|
87
|
+
*
|
|
88
|
+
* 只有 `ask_user`(正常交互)为 false —— **所有真正的失败/中断都必须通知**,
|
|
89
|
+
* 这是 #4418 的硬契约:不允许静默。
|
|
90
|
+
*/
|
|
91
|
+
notify: boolean;
|
|
92
|
+
/** 技术细节(截断,供定位;不直接展示给用户) */
|
|
93
|
+
technical?: string;
|
|
94
|
+
}
|
|
95
|
+
/** replyChannel 的最小形态(同时兼容 EnvReplyChannel / event-source ReplyChannel) */
|
|
96
|
+
export interface FailureReplyChannelLike {
|
|
97
|
+
type?: string;
|
|
98
|
+
chatId?: string;
|
|
99
|
+
messageId?: string;
|
|
100
|
+
profile?: string;
|
|
101
|
+
appId?: string;
|
|
102
|
+
userId?: string;
|
|
103
|
+
}
|
|
104
|
+
export interface NotifyReactFailureOptions {
|
|
105
|
+
/** 触发 React 中断的错误(任意类型,内部会做类型安全处理) */
|
|
106
|
+
error: unknown;
|
|
107
|
+
/**
|
|
108
|
+
* 触发本次执行的 EnvEvent。
|
|
109
|
+
*
|
|
110
|
+
* 从中提取 replyChannel(优先 `metadata.replyChannel`,
|
|
111
|
+
* 兼容 `payload.replyChannel`),这就是用户说的「找到对应的 triggerEvent」。
|
|
112
|
+
*/
|
|
113
|
+
envEvent?: unknown;
|
|
114
|
+
/** 显式 replyChannel(优先级最高,便于调用方直接指定) */
|
|
115
|
+
replyChannel?: FailureReplyChannelLike;
|
|
116
|
+
/** 原始 query 摘要(会被截断后放进 reply,便于用户对上号) */
|
|
117
|
+
query?: string;
|
|
118
|
+
/** 会话 ID(仅用于日志 / 去重兜底) */
|
|
119
|
+
sessionId?: string;
|
|
120
|
+
/** 去重 key 覆盖(默认从 messageId/chatId 推导) */
|
|
121
|
+
dedupKey?: string;
|
|
122
|
+
/**
|
|
123
|
+
* 兜底 reply 的硬超时(ms)。
|
|
124
|
+
*
|
|
125
|
+
* 生产默认 5s;仅测试注入短值用。超时后 kill 子进程并按失败返回,
|
|
126
|
+
* 保证 `QueryExecutor` 的 catch 不会被 lark-cli 挂住。
|
|
127
|
+
*/
|
|
128
|
+
replyTimeoutMs?: number;
|
|
129
|
+
}
|
|
130
|
+
export interface NotifyReactFailureResult {
|
|
131
|
+
/** 是否成功投递到飞书 */
|
|
132
|
+
sent: boolean;
|
|
133
|
+
/** 失败分类(即使没发送也会返回,调用方可记日志) */
|
|
134
|
+
kind: ReactFailureKind;
|
|
135
|
+
/** 结构化失败信息 */
|
|
136
|
+
info: ReactFailureInfo;
|
|
137
|
+
/** 跳过原因(sent=false 时有值) */
|
|
138
|
+
skipped?: "no_channel" | "duplicate" | "not_a_failure";
|
|
139
|
+
/** 投递错误(sent=false 且确实尝试过时有值) */
|
|
140
|
+
error?: string;
|
|
141
|
+
}
|
|
142
|
+
/** 当前生效的规则 id 列表(供可观测性 / 文档 / 测试锚定顺序)。 */
|
|
143
|
+
export declare function getFailureRuleIds(): string[];
|
|
144
|
+
/**
|
|
145
|
+
* 把任意错误分类成结构化、用户可读的失败信息。
|
|
146
|
+
*
|
|
147
|
+
* ⚠️ 关键:必须能处理**类型已丢失**的场景 —— 真实调用链上
|
|
148
|
+
* `environment.ts` 会把 RetryError 字符串化成普通 `Error`,所以只能靠
|
|
149
|
+
* message 文本特征识别,不能依赖 `instanceof RetryError`。
|
|
150
|
+
*/
|
|
151
|
+
export declare function classifyReactFailure(error: unknown): ReactFailureInfo;
|
|
152
|
+
/**
|
|
153
|
+
* 生成发给用户的 reply 正文(Markdown)。
|
|
154
|
+
*
|
|
155
|
+
* 契约:
|
|
156
|
+
* - 不含裸 stack trace(` at `)
|
|
157
|
+
* - 含「怎么办」的可操作建议
|
|
158
|
+
* - 总长度远小于飞书 4096 单条上限
|
|
159
|
+
*/
|
|
160
|
+
export declare function buildFailureReplyMarkdown(info: ReactFailureInfo, opts?: {
|
|
161
|
+
query?: string;
|
|
162
|
+
sessionId?: string;
|
|
163
|
+
}): string;
|
|
164
|
+
/** 测试用:清空去重状态 */
|
|
165
|
+
export declare function __resetFailureReplyDedupForTest(): void;
|
|
166
|
+
/**
|
|
167
|
+
* React 循环异常中断时,尽最大努力给飞书发一条失败说明。
|
|
168
|
+
*
|
|
169
|
+
* **绝不抛异常** —— 所有错误都被吞掉并记日志,保证不污染原始错误传播。
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```ts
|
|
173
|
+
* // interactive.ts executeInternal 的 catch 分支
|
|
174
|
+
* } catch (error) {
|
|
175
|
+
* await notifyReactFailure({
|
|
176
|
+
* error,
|
|
177
|
+
* envEvent: this.currentAgentContext?.envEvent,
|
|
178
|
+
* sessionId: agentContext?.eventSessionId,
|
|
179
|
+
* });
|
|
180
|
+
* // …原有错误处理继续
|
|
181
|
+
* }
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
export declare function notifyReactFailure(options: NotifyReactFailureOptions): Promise<NotifyReactFailureResult>;
|
|
@@ -106,11 +106,9 @@ export declare class LarkCliInstance implements EventSourceInstance {
|
|
|
106
106
|
/**
|
|
107
107
|
* ★ Task #4230 follow-up:卡片路由端口(lookup/getTask 侧)
|
|
108
108
|
*
|
|
109
|
-
*
|
|
109
|
+
* ★ Task #4394:只剩 `getTask`(无触发群时 lineage 上溯兜底用)。
|
|
110
110
|
*/
|
|
111
111
|
private cardRoutingPorts?;
|
|
112
|
-
/** ★ Task #4230 follow-up:群名缓存(判定"触发群是不是别 task 的专属群") */
|
|
113
|
-
private chatNameCache;
|
|
114
112
|
/** ★ Task #4230 follow-up:已加载插件实例(收尾 cross-wire 用) */
|
|
115
113
|
private pluginInstances;
|
|
116
114
|
/**
|
|
@@ -269,13 +267,6 @@ export declare class LarkCliInstance implements EventSourceInstance {
|
|
|
269
267
|
* 任意一环缺失(如没配 task component)→ 不注入,行为与之前一致(warn + skip)。
|
|
270
268
|
*/
|
|
271
269
|
private wireCardActionPorts;
|
|
272
|
-
/**
|
|
273
|
-
* Task #4230 follow-up:把「按需建专属群」能力接到卡片路由端口上
|
|
274
|
-
*
|
|
275
|
-
* 顺序问题:两个插件是分别 import + registerPluginHooks 的,NotifyHook 在
|
|
276
|
-
* PerTaskGroupChatPlugin 之前加载,所以只能在 loadPlugins 收尾时补一次。
|
|
277
|
-
*/
|
|
278
|
-
private wireCardRoutingGroupProvider;
|
|
279
270
|
/**
|
|
280
271
|
* 获取插件的 hook 点列表
|
|
281
272
|
*/
|
|
@@ -330,22 +321,17 @@ export declare class LarkCliInstance implements EventSourceInstance {
|
|
|
330
321
|
*/
|
|
331
322
|
private injectTaskGetter;
|
|
332
323
|
/**
|
|
333
|
-
* ★ Task #4230 follow-up
|
|
324
|
+
* ★ Task #4230 follow-up / ★ Task #4394 精简:注入「卡片路由端口」
|
|
334
325
|
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* 在 loadPlugins 收尾时 cross-wire)
|
|
340
|
-
*/
|
|
341
|
-
private injectCardRoutingPorts;
|
|
342
|
-
/**
|
|
343
|
-
* 取群名(带进程内缓存)
|
|
326
|
+
* ★ Task #4394 删除:`lookupChatOwnership` + `lookupChatName` + `chatNameCache`
|
|
327
|
+
* —— 卡片不再判定"触发群是不是别 task 的专属群",因此整套群归属反查
|
|
328
|
+
* (session chat↔task 绑定 + `findTasksByContextValue` DB LIKE + lark-cli
|
|
329
|
+
* 查群名)都不再需要。这同时省掉了每张卡一次 DB 查询 + 一次 lark-cli 调用。
|
|
344
330
|
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
331
|
+
* 保留 `getTask(id)`:无触发群时,仍需要沿 lineage 上溯找本 task / 祖先
|
|
332
|
+
* 已有的专属群兜底(卡片不能丢)。
|
|
347
333
|
*/
|
|
348
|
-
private
|
|
334
|
+
private injectCardRoutingPorts;
|
|
349
335
|
/**
|
|
350
336
|
* ★ Task #4023:如果 plugin 支持 setSessionComponent,自动注入 SessionComponent 引用
|
|
351
337
|
*
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
larkCliHandler,
|
|
12
12
|
resolveBountyIMSystemPrompt,
|
|
13
13
|
timerHandler
|
|
14
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
14
|
+
} from "../../shared/@ai-setting/roy-agent-core-2044fbsd.js";
|
|
15
15
|
import {
|
|
16
16
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
17
17
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -21,33 +21,33 @@ import {
|
|
|
21
21
|
isValidEventSourceType,
|
|
22
22
|
validateEventSourceConfig
|
|
23
23
|
} from "../../shared/@ai-setting/roy-agent-core-ck60j1q9.js";
|
|
24
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
25
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-w7hnjhvx.js";
|
|
25
|
+
import"../../shared/@ai-setting/roy-agent-core-ezsyyjxw.js";
|
|
26
26
|
import {
|
|
27
27
|
EventStoreImpl,
|
|
28
28
|
getSharedEventStore,
|
|
29
29
|
resetSharedEventStore,
|
|
30
30
|
setSharedEventStore
|
|
31
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
31
|
+
} from "../../shared/@ai-setting/roy-agent-core-zmeka63k.js";
|
|
32
32
|
import"../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
33
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
34
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
35
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
36
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
37
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
38
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
33
|
+
import"../../shared/@ai-setting/roy-agent-core-6masakz4.js";
|
|
34
|
+
import"../../shared/@ai-setting/roy-agent-core-xcq04fq0.js";
|
|
35
|
+
import"../../shared/@ai-setting/roy-agent-core-nntphgww.js";
|
|
36
|
+
import"../../shared/@ai-setting/roy-agent-core-r9qe0ghe.js";
|
|
37
|
+
import"../../shared/@ai-setting/roy-agent-core-202v00x4.js";
|
|
38
|
+
import"../../shared/@ai-setting/roy-agent-core-nra8vfrs.js";
|
|
39
39
|
import"../../shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
40
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
40
|
+
import"../../shared/@ai-setting/roy-agent-core-wafk25ff.js";
|
|
41
41
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
42
42
|
import"../../shared/@ai-setting/roy-agent-core-64f22h1g.js";
|
|
43
43
|
import"../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
44
44
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
45
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
46
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
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-
|
|
45
|
+
import"../../shared/@ai-setting/roy-agent-core-40xzbjtm.js";
|
|
46
|
+
import"../../shared/@ai-setting/roy-agent-core-gngjkw3b.js";
|
|
47
|
+
import"../../shared/@ai-setting/roy-agent-core-1pnfkspm.js";
|
|
48
|
+
import"../../shared/@ai-setting/roy-agent-core-16t0zfbk.js";
|
|
49
|
+
import"../../shared/@ai-setting/roy-agent-core-jszgaevt.js";
|
|
50
|
+
import"../../shared/@ai-setting/roy-agent-core-b599jgyd.js";
|
|
51
51
|
import"../../shared/@ai-setting/roy-agent-core-8seq65bp.js";
|
|
52
52
|
import"../../shared/@ai-setting/roy-agent-core-jnszp0jq.js";
|
|
53
53
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
package/dist/env/hook/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createHook,
|
|
3
3
|
createPriorityHook,
|
|
4
4
|
init_hook
|
|
5
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../shared/@ai-setting/roy-agent-core-gngjkw3b.js";
|
|
6
6
|
import {
|
|
7
7
|
AgentHookPoints,
|
|
8
8
|
HookManager,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
executeLLMHook,
|
|
14
14
|
executeToolHook,
|
|
15
15
|
globalHookManager
|
|
16
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
17
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
16
|
+
} from "../../shared/@ai-setting/roy-agent-core-1pnfkspm.js";
|
|
17
|
+
import"../../shared/@ai-setting/roy-agent-core-16t0zfbk.js";
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-jszgaevt.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-b599jgyd.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-8seq65bp.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-jnszp0jq.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|