@ai-setting/roy-agent-core 1.7.55 → 1.7.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/index.js +8 -8
- package/dist/env/agent/agent-component.d.ts +41 -0
- package/dist/env/agent/index.js +15 -14
- package/dist/env/commands/index.js +8 -8
- package/dist/env/context/index.js +4 -4
- package/dist/env/debug/index.js +8 -8
- package/dist/env/environment.d.ts +7 -0
- package/dist/env/event-source/event-source-handlers.d.ts +28 -0
- package/dist/env/event-source/index.js +18 -17
- package/dist/env/hook/index.js +6 -6
- package/dist/env/index.js +45 -43
- package/dist/env/llm/adapter-ai-sdk.d.ts +6 -0
- package/dist/env/llm/adapter-pi-ai.d.ts +5 -0
- package/dist/env/llm/index.js +11 -11
- package/dist/env/llm/invoke.d.ts +33 -1
- package/dist/env/llm/llm.d.ts +13 -0
- package/dist/env/llm/outbound-defense.d.ts +140 -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 +34 -8
- package/dist/env/log-trace/opentelemetry/tracer-provider.d.ts +86 -1
- package/dist/env/log-trace/trace-filters.d.ts +127 -0
- package/dist/env/mcp/index.js +9 -9
- package/dist/env/mcp/tool/index.js +2 -2
- package/dist/env/memory/index.js +9 -9
- package/dist/env/memory/plugin/index.js +2 -2
- package/dist/env/plugin/index.js +8 -8
- package/dist/env/prompt/index.js +8 -8
- package/dist/env/session/index.js +12 -11
- package/dist/env/session/session-component.d.ts +4 -0
- package/dist/env/session/storage/index.js +6 -4
- package/dist/env/skill/index.js +8 -8
- package/dist/env/task/delegate/index.js +9 -9
- package/dist/env/task/index.js +18 -17
- package/dist/env/task/plugins/index.js +11 -10
- package/dist/env/task/plugins/lark-card-patch-notifier.d.ts +109 -2
- package/dist/env/task/plugins/lark-card-state-store.d.ts +137 -0
- package/dist/env/task/plugins/lark-cli-task-notify-plugin.d.ts +154 -2
- package/dist/env/task/storage/index.js +4 -3
- package/dist/env/task/tools/index.js +4 -4
- package/dist/env/tool/built-in/index.js +5 -5
- package/dist/env/tool/index.js +12 -12
- package/dist/env/workflow/engine/index.js +13 -13
- package/dist/env/workflow/hooks/index.js +8 -8
- package/dist/env/workflow/index.js +24 -23
- package/dist/env/workflow/nodes/index.js +3 -3
- package/dist/env/workflow/plugins/index.js +9 -9
- package/dist/env/workflow/service/index.js +3 -3
- package/dist/env/workflow/storage/index.js +4 -4
- package/dist/env/workflow/tools/index.js +16 -15
- package/dist/env/workflow/utils/index.js +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +90 -63
- package/dist/shared/@ai-setting/{roy-agent-core-k25gv86p.js → roy-agent-core-029r8kdw.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-8s9jd2qy.js → roy-agent-core-08njdcpj.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-tdbv7ff4.js → roy-agent-core-0kn3zt1t.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-8eqngasy.js → roy-agent-core-0yn7a78e.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-tbrn9wdm.js → roy-agent-core-14bq77wr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mxdc756a.js → roy-agent-core-1sfbs57v.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-qamktze3.js → roy-agent-core-20m8je6e.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-yhsssn86.js → roy-agent-core-2ctyjy62.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9jzysq50.js → roy-agent-core-2fk8c9ax.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-2k4xffaa.js → roy-agent-core-4096f575.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-2gay3sjt.js → roy-agent-core-47s81t6g.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-w527pcpe.js → roy-agent-core-5f7myqnb.js} +45 -494
- package/dist/shared/@ai-setting/{roy-agent-core-zjttt2y4.js → roy-agent-core-7nb23tdd.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-7q4wdze2.js +7 -0
- package/dist/shared/@ai-setting/{roy-agent-core-cd62e9p1.js → roy-agent-core-84rs0c8d.js} +23 -10
- package/dist/shared/@ai-setting/{roy-agent-core-dwx9hjwx.js → roy-agent-core-84xtww7d.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-a4vzsn0g.js → roy-agent-core-89sxsrc7.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-g36jevrk.js → roy-agent-core-8bngppw0.js} +580 -83
- package/dist/shared/@ai-setting/roy-agent-core-8p63s836.js +578 -0
- package/dist/shared/@ai-setting/{roy-agent-core-7evvpfwc.js → roy-agent-core-9zhkdg6w.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ak4dc3kg.js → roy-agent-core-baaa4wtp.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-b5ew8t0k.js → roy-agent-core-c36335nw.js} +146 -8
- package/dist/shared/@ai-setting/{roy-agent-core-7qy3nffr.js → roy-agent-core-c7w2h47a.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-j5c3chtn.js → roy-agent-core-cyefe8z5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-2bscfrr1.js → roy-agent-core-d75t8gea.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-0hq21px2.js → roy-agent-core-e1w17tht.js} +632 -36
- package/dist/shared/@ai-setting/{roy-agent-core-ne2t1pay.js → roy-agent-core-e250355z.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-ytr2w0vb.js → roy-agent-core-eanq305k.js} +69 -25
- package/dist/shared/@ai-setting/{roy-agent-core-12d2xap8.js → roy-agent-core-em4hks9t.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-6qxh4xrm.js → roy-agent-core-en2xqxs9.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-e2z1etk4.js → roy-agent-core-ewcc5qdt.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-qm9jda8p.js → roy-agent-core-fbjd7bt6.js} +3 -7
- package/dist/shared/@ai-setting/{roy-agent-core-fvs48d38.js → roy-agent-core-fw6k4w1h.js} +14 -9
- package/dist/shared/@ai-setting/{roy-agent-core-2b8jtv7m.js → roy-agent-core-ge87xbas.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9csa89jx.js → roy-agent-core-geh6j7bw.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-dv714bqh.js → roy-agent-core-gksw1gjb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fs36xgcs.js → roy-agent-core-hefarcp0.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-t37wbysj.js → roy-agent-core-hs41gx9w.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-1cv9j4dg.js → roy-agent-core-jjhw9am6.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-978b6wfx.js → roy-agent-core-jjxdmedn.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-j2nvedt6.js → roy-agent-core-jw5ar4p0.js} +33 -38
- package/dist/shared/@ai-setting/{roy-agent-core-zvemdfx5.js → roy-agent-core-kq9pz2a7.js} +13 -6
- package/dist/shared/@ai-setting/{roy-agent-core-8t7wny6v.js → roy-agent-core-m68z3pw1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-k8b440n3.js → roy-agent-core-m97jn2ra.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-kzg1jwt8.js → roy-agent-core-n0p0hwgd.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9h72sk1n.js → roy-agent-core-psg6f1v6.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-athdr2m0.js → roy-agent-core-q4gdfypk.js} +12 -4
- package/dist/shared/@ai-setting/{roy-agent-core-nde5gzta.js → roy-agent-core-rcgvmtms.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-8seq65bp.js → roy-agent-core-rt115qfc.js} +44 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5apmk4qw.js → roy-agent-core-syyw58p9.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-tjg71zqp.js → roy-agent-core-t4x089js.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-zd3ddm4k.js → roy-agent-core-t64nmayv.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-6167phd4.js → roy-agent-core-txwptxk1.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-rnwr39b0.js → roy-agent-core-tze5596n.js} +6 -4
- package/dist/shared/@ai-setting/{roy-agent-core-skzjs973.js → roy-agent-core-vath15kt.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-vrsxhw9e.js → roy-agent-core-vgdhxbx3.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-7g03zkkb.js → roy-agent-core-vh0qzb24.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-aer5kw1j.js → roy-agent-core-w93z6a42.js} +17 -17
- package/dist/shared/@ai-setting/{roy-agent-core-rx16h2m1.js → roy-agent-core-ygn5tzt1.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-4z3rq5gw.js → roy-agent-core-yphwdm9x.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-qcspfszy.js → roy-agent-core-ytd5eztz.js} +1 -1
- package/dist/utils/temp-file-manager/index.js +2 -2
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-dsevjbck.js +0 -245
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagRepository
|
|
3
|
-
} from "./roy-agent-core-
|
|
4
|
-
import"./roy-agent-core-
|
|
5
|
-
import"./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-rcgvmtms.js";
|
|
4
|
+
import"./roy-agent-core-8p63s836.js";
|
|
5
|
+
import"./roy-agent-core-rt115qfc.js";
|
|
6
6
|
import"./roy-agent-core-jnszp0jq.js";
|
|
7
7
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
8
8
|
export {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isToolUnavailableError,
|
|
3
3
|
truncateOutputInline
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-fw6k4w1h.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRegistry
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-ygn5tzt1.js";
|
|
8
8
|
import {
|
|
9
9
|
enqueueToAddFakeUserMessage
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-gksw1gjb.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionMessageConverter
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-ge87xbas.js";
|
|
14
14
|
import {
|
|
15
15
|
parseToolArgsStrict,
|
|
16
16
|
safeParseToolArgs,
|
|
17
17
|
withTimeout
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-e1w17tht.js";
|
|
19
19
|
import {
|
|
20
20
|
getCurrentBgTaskId
|
|
21
21
|
} from "./roy-agent-core-c1v263jn.js";
|
|
@@ -31,28 +31,36 @@ import {
|
|
|
31
31
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
32
32
|
import {
|
|
33
33
|
BaseComponent
|
|
34
|
-
} from "./roy-agent-core-
|
|
34
|
+
} from "./roy-agent-core-0kn3zt1t.js";
|
|
35
35
|
import {
|
|
36
36
|
globalHookManager,
|
|
37
37
|
init_global_hook_manager
|
|
38
|
-
} from "./roy-agent-core-
|
|
38
|
+
} from "./roy-agent-core-yphwdm9x.js";
|
|
39
39
|
import {
|
|
40
40
|
init_context
|
|
41
|
-
} from "./roy-agent-core-
|
|
41
|
+
} from "./roy-agent-core-m97jn2ra.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentTaskId,
|
|
44
44
|
getEnvContext,
|
|
45
45
|
resolveEnvParentTaskId,
|
|
46
46
|
runWithEnvContextAsync
|
|
47
|
-
} from "./roy-agent-core-
|
|
47
|
+
} from "./roy-agent-core-syyw58p9.js";
|
|
48
48
|
import {
|
|
49
49
|
TracedAs,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
agentRunParamFilter,
|
|
51
|
+
init_decorator,
|
|
52
|
+
init_trace_filters,
|
|
53
|
+
llmInvokeParamFilter,
|
|
54
|
+
llmInvokeResultFilter,
|
|
55
|
+
messagesParamFilter,
|
|
56
|
+
recordSessionMessagesParamFilter,
|
|
57
|
+
toolExecParamFilter,
|
|
58
|
+
toolExecResultFilter
|
|
59
|
+
} from "./roy-agent-core-8p63s836.js";
|
|
52
60
|
import {
|
|
53
61
|
createLogger,
|
|
54
62
|
init_logger
|
|
55
|
-
} from "./roy-agent-core-
|
|
63
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
56
64
|
import {
|
|
57
65
|
__legacyDecorateClassTS,
|
|
58
66
|
__require
|
|
@@ -188,6 +196,7 @@ var AGENT_CONFIG_REGISTRATION = {
|
|
|
188
196
|
|
|
189
197
|
// src/env/agent/agent-component.ts
|
|
190
198
|
init_decorator();
|
|
199
|
+
init_trace_filters();
|
|
191
200
|
init_global_hook_manager();
|
|
192
201
|
init_context();
|
|
193
202
|
init_workflow_hil();
|
|
@@ -1532,6 +1541,7 @@ class AgentComponent extends BaseComponent {
|
|
|
1532
1541
|
}
|
|
1533
1542
|
async executeTool(ctx) {
|
|
1534
1543
|
const toolCall = ctx.currentToolCall;
|
|
1544
|
+
const toolEventSessionId = ctx.context?.sessionId;
|
|
1535
1545
|
const toolName = toolCall.function?.name || toolCall.name || "unknown";
|
|
1536
1546
|
logger2.debug(`[executeTool] Looking for tool: "${toolName}"`);
|
|
1537
1547
|
logger2.debug(`[executeTool] Available tools: [${ctx.tools.map((t) => t.name).join(", ")}]`);
|
|
@@ -1545,7 +1555,8 @@ class AgentComponent extends BaseComponent {
|
|
|
1545
1555
|
toolName,
|
|
1546
1556
|
availableTools: ctx.tools.map((t) => t.name),
|
|
1547
1557
|
agentName: ctx.agent?.name
|
|
1548
|
-
}
|
|
1558
|
+
},
|
|
1559
|
+
sessionId: toolEventSessionId
|
|
1549
1560
|
});
|
|
1550
1561
|
return {
|
|
1551
1562
|
id: toolCall.id,
|
|
@@ -1565,7 +1576,8 @@ class AgentComponent extends BaseComponent {
|
|
|
1565
1576
|
id: toolCall.id,
|
|
1566
1577
|
name: toolName,
|
|
1567
1578
|
arguments: toolCall.arguments
|
|
1568
|
-
}
|
|
1579
|
+
},
|
|
1580
|
+
sessionId: toolEventSessionId
|
|
1569
1581
|
});
|
|
1570
1582
|
const toolContext = {
|
|
1571
1583
|
session_id: ctx.context.sessionId,
|
|
@@ -1615,7 +1627,8 @@ class AgentComponent extends BaseComponent {
|
|
|
1615
1627
|
name: toolName,
|
|
1616
1628
|
result,
|
|
1617
1629
|
success: result.success
|
|
1618
|
-
}
|
|
1630
|
+
},
|
|
1631
|
+
sessionId: toolEventSessionId
|
|
1619
1632
|
});
|
|
1620
1633
|
return {
|
|
1621
1634
|
id: toolCall.id,
|
|
@@ -1632,7 +1645,8 @@ class AgentComponent extends BaseComponent {
|
|
|
1632
1645
|
payload: {
|
|
1633
1646
|
error: error instanceof Error ? error.message : String(error),
|
|
1634
1647
|
toolName
|
|
1635
|
-
}
|
|
1648
|
+
},
|
|
1649
|
+
sessionId: toolEventSessionId
|
|
1636
1650
|
});
|
|
1637
1651
|
return {
|
|
1638
1652
|
id: toolCall.id,
|
|
@@ -1774,7 +1788,8 @@ class AgentComponent extends BaseComponent {
|
|
|
1774
1788
|
timestamp: Date.now(),
|
|
1775
1789
|
metadata: {
|
|
1776
1790
|
source: "agent",
|
|
1777
|
-
agent_name: this.name
|
|
1791
|
+
agent_name: this.name,
|
|
1792
|
+
...event.sessionId ? { sessionId: event.sessionId } : {}
|
|
1778
1793
|
},
|
|
1779
1794
|
payload: event.payload
|
|
1780
1795
|
};
|
|
@@ -1819,16 +1834,31 @@ __legacyDecorateClassTS([
|
|
|
1819
1834
|
TracedAs("agent.meta-protocol.flushPendingUserMessage", { recordParams: false, recordResult: false, log: true })
|
|
1820
1835
|
], AgentComponent.prototype, "flushPendingFakeUserMessage", null);
|
|
1821
1836
|
__legacyDecorateClassTS([
|
|
1822
|
-
TracedAs("agent.component.run", {
|
|
1837
|
+
TracedAs("agent.component.run", {
|
|
1838
|
+
paramFilter: agentRunParamFilter,
|
|
1839
|
+
recordResult: false,
|
|
1840
|
+
logResult: true,
|
|
1841
|
+
log: true
|
|
1842
|
+
})
|
|
1823
1843
|
], AgentComponent.prototype, "_run", null);
|
|
1824
1844
|
__legacyDecorateClassTS([
|
|
1825
|
-
TracedAs("agent.component.loadOrCreateCacheSnapshot", { recordParams: true, recordResult:
|
|
1845
|
+
TracedAs("agent.component.loadOrCreateCacheSnapshot", { recordParams: true, recordResult: false, log: true })
|
|
1826
1846
|
], AgentComponent.prototype, "_loadOrCreateCacheSnapshot", null);
|
|
1827
1847
|
__legacyDecorateClassTS([
|
|
1828
|
-
TracedAs("agent.component.buildAdditionInfo", {
|
|
1848
|
+
TracedAs("agent.component.buildAdditionInfo", {
|
|
1849
|
+
paramFilter: messagesParamFilter,
|
|
1850
|
+
recordResult: false,
|
|
1851
|
+
logResult: true,
|
|
1852
|
+
log: true
|
|
1853
|
+
})
|
|
1829
1854
|
], AgentComponent.prototype, "_buildAdditionInfo", null);
|
|
1830
1855
|
__legacyDecorateClassTS([
|
|
1831
|
-
TracedAs("agent.component.invokeLLM", {
|
|
1856
|
+
TracedAs("agent.component.invokeLLM", {
|
|
1857
|
+
paramFilter: llmInvokeParamFilter,
|
|
1858
|
+
resultFilter: llmInvokeResultFilter,
|
|
1859
|
+
logResult: true,
|
|
1860
|
+
log: true
|
|
1861
|
+
})
|
|
1832
1862
|
], AgentComponent.prototype, "invokeLLM", null);
|
|
1833
1863
|
__legacyDecorateClassTS([
|
|
1834
1864
|
TracedAs("agent.tool_call.parse", {
|
|
@@ -1854,8 +1884,9 @@ __legacyDecorateClassTS([
|
|
|
1854
1884
|
], AgentComponent.prototype, "parseToolCallArguments", null);
|
|
1855
1885
|
__legacyDecorateClassTS([
|
|
1856
1886
|
TracedAs("agent.component.executeTool", {
|
|
1857
|
-
|
|
1858
|
-
|
|
1887
|
+
paramFilter: toolExecParamFilter,
|
|
1888
|
+
resultFilter: toolExecResultFilter,
|
|
1889
|
+
logResult: true,
|
|
1859
1890
|
log: true,
|
|
1860
1891
|
errorIf: (result) => {
|
|
1861
1892
|
const err = result?.result?.error;
|
|
@@ -1867,10 +1898,23 @@ __legacyDecorateClassTS([
|
|
|
1867
1898
|
})
|
|
1868
1899
|
], AgentComponent.prototype, "executeTool", null);
|
|
1869
1900
|
__legacyDecorateClassTS([
|
|
1870
|
-
TracedAs("agent.component.recordSessionMessages", {
|
|
1901
|
+
TracedAs("agent.component.recordSessionMessages", {
|
|
1902
|
+
paramFilter: recordSessionMessagesParamFilter,
|
|
1903
|
+
logResult: true,
|
|
1904
|
+
log: true
|
|
1905
|
+
})
|
|
1871
1906
|
], AgentComponent.prototype, "recordSessionMessages", null);
|
|
1872
1907
|
__legacyDecorateClassTS([
|
|
1873
|
-
TracedAs("agent.component.getConversationHistory", {
|
|
1908
|
+
TracedAs("agent.component.getConversationHistory", {
|
|
1909
|
+
paramFilter: (args) => ({
|
|
1910
|
+
sessionId: args?.[1] ?? null,
|
|
1911
|
+
minUserMessages: args?.[2]?.minUserMessages ?? null,
|
|
1912
|
+
filterHistory: args?.[2]?.filterHistory ?? null
|
|
1913
|
+
}),
|
|
1914
|
+
recordResult: false,
|
|
1915
|
+
logResult: true,
|
|
1916
|
+
log: true
|
|
1917
|
+
})
|
|
1874
1918
|
], AgentComponent.prototype, "getConversationHistory", null);
|
|
1875
1919
|
function buildMultiBlockSystem(ctx) {
|
|
1876
1920
|
const ANTHROPIC_CACHE_CONTROL = {
|
|
@@ -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-0kn3zt1t.js";
|
|
14
14
|
import {
|
|
15
15
|
createHook
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-ytd5eztz.js";
|
|
17
17
|
import {
|
|
18
18
|
globalHookManager,
|
|
19
19
|
init_global_hook_manager
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-yphwdm9x.js";
|
|
21
21
|
import {
|
|
22
22
|
createLogger,
|
|
23
23
|
init_logger
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
25
25
|
|
|
26
26
|
// src/env/prompt/types.ts
|
|
27
27
|
import { z } from "zod";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isValidSessionId
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-kq9pz2a7.js";
|
|
4
4
|
import {
|
|
5
5
|
TAG_MAX_COUNT,
|
|
6
6
|
TAG_MIN_COUNT
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-9zhkdg6w.js";
|
|
8
8
|
import {
|
|
9
9
|
validateWorkflowDefinition
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-89sxsrc7.js";
|
|
11
11
|
import {
|
|
12
12
|
getCurrentBgTaskId
|
|
13
13
|
} from "./roy-agent-core-c1v263jn.js";
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
TracedAs,
|
|
20
20
|
init_decorator
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-8p63s836.js";
|
|
22
22
|
import {
|
|
23
23
|
createLogger,
|
|
24
24
|
init_logger
|
|
25
|
-
} from "./roy-agent-core-
|
|
25
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
26
26
|
import {
|
|
27
27
|
__legacyDecorateClassTS,
|
|
28
28
|
__require
|
|
@@ -864,7 +864,7 @@ class RunWorkflowToolRunner {
|
|
|
864
864
|
__legacyDecorateClassTS([
|
|
865
865
|
TracedAs("workflow.run-workflow-tool.execute", {
|
|
866
866
|
recordParams: true,
|
|
867
|
-
recordResult:
|
|
867
|
+
recordResult: false
|
|
868
868
|
})
|
|
869
869
|
], RunWorkflowToolRunner.prototype, "execute", null);
|
|
870
870
|
|
|
@@ -906,7 +906,7 @@ class RunWorkflowLifecycleTracer {
|
|
|
906
906
|
__legacyDecorateClassTS([
|
|
907
907
|
TracedAs("workflow.run-tool.pre-attach", {
|
|
908
908
|
recordParams: true,
|
|
909
|
-
recordResult:
|
|
909
|
+
recordResult: false
|
|
910
910
|
})
|
|
911
911
|
], RunWorkflowLifecycleTracer.prototype, "execute", null);
|
|
912
912
|
function createRunWorkflowTool(workflowService, hooks) {
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createQueryBackgroundProcessTool
|
|
3
3
|
} from "./roy-agent-core-amkqnyzy.js";
|
|
4
|
-
import {
|
|
5
|
-
SQLiteTaskStore,
|
|
6
|
-
getDefaultTaskDbPath
|
|
7
|
-
} from "./roy-agent-core-qm9jda8p.js";
|
|
8
4
|
import {
|
|
9
5
|
batchArchiveTaskTool,
|
|
10
6
|
batchDeleteTaskTool,
|
|
@@ -16,7 +12,7 @@ import {
|
|
|
16
12
|
searchTasksTool,
|
|
17
13
|
treeTasksTool,
|
|
18
14
|
updateTaskTool
|
|
19
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-vh0qzb24.js";
|
|
20
16
|
import {
|
|
21
17
|
createOperationTool,
|
|
22
18
|
deleteOperationTool,
|
|
@@ -31,7 +27,11 @@ import {
|
|
|
31
27
|
BackgroundTaskManager,
|
|
32
28
|
createDelegateTool,
|
|
33
29
|
createStopTool
|
|
34
|
-
} from "./roy-agent-core-
|
|
30
|
+
} from "./roy-agent-core-1sfbs57v.js";
|
|
31
|
+
import {
|
|
32
|
+
SQLiteTaskStore,
|
|
33
|
+
getDefaultTaskDbPath
|
|
34
|
+
} from "./roy-agent-core-fbjd7bt6.js";
|
|
35
35
|
import {
|
|
36
36
|
TaskHookPoints
|
|
37
37
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
@@ -40,23 +40,23 @@ import {
|
|
|
40
40
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
41
41
|
import {
|
|
42
42
|
BaseComponent
|
|
43
|
-
} from "./roy-agent-core-
|
|
43
|
+
} from "./roy-agent-core-0kn3zt1t.js";
|
|
44
44
|
import {
|
|
45
45
|
globalHookManager,
|
|
46
46
|
init_global_hook_manager
|
|
47
|
-
} from "./roy-agent-core-
|
|
47
|
+
} from "./roy-agent-core-yphwdm9x.js";
|
|
48
48
|
import {
|
|
49
49
|
getEnvContextOrEmpty,
|
|
50
50
|
init_env_context
|
|
51
|
-
} from "./roy-agent-core-
|
|
51
|
+
} from "./roy-agent-core-syyw58p9.js";
|
|
52
52
|
import {
|
|
53
53
|
TracedAs,
|
|
54
54
|
init_decorator
|
|
55
|
-
} from "./roy-agent-core-
|
|
55
|
+
} from "./roy-agent-core-8p63s836.js";
|
|
56
56
|
import {
|
|
57
57
|
createLogger,
|
|
58
58
|
init_logger
|
|
59
|
-
} from "./roy-agent-core-
|
|
59
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
60
60
|
import {
|
|
61
61
|
__legacyDecorateClassTS
|
|
62
62
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TracedAs,
|
|
3
3
|
init_decorator
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-8p63s836.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogger,
|
|
7
7
|
init_logger
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
9
9
|
import {
|
|
10
10
|
__esm,
|
|
11
11
|
__export,
|
|
@@ -1153,8 +1153,4 @@ var init_sqlite_task_store = __esm(() => {
|
|
|
1153
1153
|
], SQLiteTaskStore.prototype, "searchTasksByKeywords", null);
|
|
1154
1154
|
});
|
|
1155
1155
|
|
|
1156
|
-
|
|
1157
|
-
init_sqlite_task_store();
|
|
1158
|
-
init_sqlite_task_store();
|
|
1159
|
-
|
|
1160
|
-
export { getDefaultDataDir, getDefaultTaskDbPath, SQLiteTaskStore };
|
|
1156
|
+
export { createCompatibleDatabase, getDefaultDataDir, getDefaultTaskDbPath, SQLiteTaskStore, init_sqlite_task_store };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TempFileManager
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-n0p0hwgd.js";
|
|
4
4
|
import {
|
|
5
5
|
AskUserError,
|
|
6
6
|
init_workflow_hil
|
|
@@ -11,24 +11,27 @@ import {
|
|
|
11
11
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
12
12
|
import {
|
|
13
13
|
BaseComponent
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-0kn3zt1t.js";
|
|
15
15
|
import {
|
|
16
16
|
ToolHookPoints,
|
|
17
17
|
globalHookManager,
|
|
18
18
|
init_global_hook_manager
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-yphwdm9x.js";
|
|
20
20
|
import {
|
|
21
21
|
getCurrentTaskId,
|
|
22
22
|
init_env_context
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-syyw58p9.js";
|
|
24
24
|
import {
|
|
25
25
|
TracedAs,
|
|
26
|
-
init_decorator
|
|
27
|
-
|
|
26
|
+
init_decorator,
|
|
27
|
+
init_trace_filters,
|
|
28
|
+
toolExecResultFilter,
|
|
29
|
+
toolInvokeParamFilter
|
|
30
|
+
} from "./roy-agent-core-8p63s836.js";
|
|
28
31
|
import {
|
|
29
32
|
createLogger,
|
|
30
33
|
init_logger
|
|
31
|
-
} from "./roy-agent-core-
|
|
34
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
32
35
|
import {
|
|
33
36
|
__legacyDecorateClassTS,
|
|
34
37
|
__require
|
|
@@ -162,6 +165,7 @@ class ToolValidator {
|
|
|
162
165
|
import { z } from "zod";
|
|
163
166
|
init_logger();
|
|
164
167
|
init_decorator();
|
|
168
|
+
init_trace_filters();
|
|
165
169
|
init_global_hook_manager();
|
|
166
170
|
|
|
167
171
|
// src/env/tool/tool-config-registration.ts
|
|
@@ -581,8 +585,9 @@ class ToolComponent extends BaseComponent {
|
|
|
581
585
|
}
|
|
582
586
|
__legacyDecorateClassTS([
|
|
583
587
|
TracedAs("tool.component.execute", {
|
|
584
|
-
|
|
585
|
-
|
|
588
|
+
paramFilter: toolInvokeParamFilter,
|
|
589
|
+
resultFilter: toolExecResultFilter,
|
|
590
|
+
logResult: true,
|
|
586
591
|
log: true,
|
|
587
592
|
errorIf: (result) => {
|
|
588
593
|
const err = result?.error;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_hook
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-ytd5eztz.js";
|
|
4
4
|
import {
|
|
5
5
|
globalHookManager
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-yphwdm9x.js";
|
|
7
7
|
import {
|
|
8
8
|
__esm
|
|
9
9
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from "./roy-agent-core-az13yzmc.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseComponent
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-0kn3zt1t.js";
|
|
7
7
|
import {
|
|
8
8
|
globalHookManager,
|
|
9
9
|
init_global_hook_manager
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-yphwdm9x.js";
|
|
11
11
|
import {
|
|
12
12
|
init_context
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-m97jn2ra.js";
|
|
14
14
|
import {
|
|
15
15
|
getEnvContextOrEmpty
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-syyw58p9.js";
|
|
17
17
|
import {
|
|
18
18
|
createLogger,
|
|
19
19
|
init_logger
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
21
21
|
import {
|
|
22
22
|
__require
|
|
23
23
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
WorkflowRepository,
|
|
3
3
|
migrateEmptyTagsToDefault,
|
|
4
4
|
rowToWorkflow
|
|
5
|
-
} from "./roy-agent-core-
|
|
6
|
-
import"./roy-agent-core-
|
|
5
|
+
} from "./roy-agent-core-jjxdmedn.js";
|
|
6
|
+
import"./roy-agent-core-rcgvmtms.js";
|
|
7
7
|
import"./roy-agent-core-rvxg1wps.js";
|
|
8
|
-
import"./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
8
|
+
import"./roy-agent-core-8p63s836.js";
|
|
9
|
+
import"./roy-agent-core-rt115qfc.js";
|
|
10
10
|
import"./roy-agent-core-jnszp0jq.js";
|
|
11
11
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
12
12
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagRepository
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-rcgvmtms.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_search_query_parser,
|
|
6
6
|
init_search_query_parser
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-rt115qfc.js";
|
|
12
12
|
import {
|
|
13
13
|
__require,
|
|
14
14
|
__toCommonJS
|