@ai-setting/roy-agent-core 1.7.91 → 1.7.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/config/index.js +11 -11
  2. package/dist/env/agent/agent-component.js +18 -18
  3. package/dist/env/agent/index.js +18 -18
  4. package/dist/env/commands/index.js +10 -10
  5. package/dist/env/context/index.js +6 -6
  6. package/dist/env/debug/formatters/index.js +1 -1
  7. package/dist/env/debug/index.js +10 -10
  8. package/dist/env/error-reply.js +4 -4
  9. package/dist/env/event-source/cli-command-handler.js +4 -4
  10. package/dist/env/event-source/event-source-handlers.js +28 -28
  11. package/dist/env/event-source/event-store.js +5 -5
  12. package/dist/env/event-source/idempotency-key.js +1 -1
  13. package/dist/env/event-source/index.js +29 -29
  14. package/dist/env/event-source/wecom-respond-registry.js +6 -6
  15. package/dist/env/event-source/wecom-session-card-sender.js +6 -6
  16. package/dist/env/hook/index.js +8 -8
  17. package/dist/env/index.js +64 -64
  18. package/dist/env/lark-mention-utils.js +1 -1
  19. package/dist/env/llm/index.js +11 -11
  20. package/dist/env/log-trace/index.js +10 -10
  21. package/dist/env/log-trace/logger.js +3 -3
  22. package/dist/env/mcp/index.js +11 -11
  23. package/dist/env/mcp/npm-prefix/index.js +1 -1
  24. package/dist/env/mcp/tool/index.js +4 -4
  25. package/dist/env/memory/built-in/index.js +1 -1
  26. package/dist/env/memory/index.js +11 -11
  27. package/dist/env/memory/plugin/index.js +4 -4
  28. package/dist/env/plugin/index.js +10 -10
  29. package/dist/env/prompt/index.js +11 -11
  30. package/dist/env/session/index.js +14 -14
  31. package/dist/env/session/storage/index.js +7 -7
  32. package/dist/env/skill/index.js +10 -10
  33. package/dist/env/skill/tool/index.js +1 -1
  34. package/dist/env/task/backend/index.js +6 -6
  35. package/dist/env/task/delegate/delegate-tool.js +12 -12
  36. package/dist/env/task/delegate/index.js +12 -12
  37. package/dist/env/task/events/index.js +1 -1
  38. package/dist/env/task/hooks/index.js +1 -1
  39. package/dist/env/task/index.js +21 -21
  40. package/dist/env/task/mcp/index.js +7 -7
  41. package/dist/env/task/plugins/index.js +17 -17
  42. package/dist/env/task/plugins/lark-card-patch-notifier.js +6 -6
  43. package/dist/env/task/plugins/wecom-session-card-store.js +6 -6
  44. package/dist/env/task/prompt/index.js +1 -1
  45. package/dist/env/task/storage/index.js +7 -7
  46. package/dist/env/task/tools/index.js +7 -7
  47. package/dist/env/task/tools/operation/index.js +1 -1
  48. package/dist/env/tool/built-in/index.js +9 -9
  49. package/dist/env/tool/index.js +16 -16
  50. package/dist/env/workflow/decorators/index.js +3 -3
  51. package/dist/env/workflow/engine/index.js +20 -20
  52. package/dist/env/workflow/hooks/index.js +10 -10
  53. package/dist/env/workflow/index.js +34 -34
  54. package/dist/env/workflow/nodes/index.js +5 -5
  55. package/dist/env/workflow/plugins/index.js +12 -12
  56. package/dist/env/workflow/service/index.js +5 -5
  57. package/dist/env/workflow/storage/index.js +7 -7
  58. package/dist/env/workflow/tools/index.js +22 -22
  59. package/dist/env/workflow/types/index.js +3 -3
  60. package/dist/env/workflow/utils/index.js +10 -10
  61. package/dist/index.js +75 -75
  62. package/dist/shared/@ai-setting/{roy-agent-core-yet36q5k.js → roy-agent-core-0b4gyx3x.js} +3 -3
  63. package/dist/shared/@ai-setting/{roy-agent-core-1ce3fqrk.js → roy-agent-core-0k9spnmd.js} +1 -1
  64. package/dist/shared/@ai-setting/{roy-agent-core-mx855td4.js → roy-agent-core-0qsfkvkn.js} +8 -8
  65. package/dist/shared/@ai-setting/roy-agent-core-0wmswkj6.js +1005 -0
  66. package/dist/shared/@ai-setting/{roy-agent-core-0n1wwndq.js → roy-agent-core-0yzxapfa.js} +4 -4
  67. package/dist/shared/@ai-setting/{roy-agent-core-azyz78ky.js → roy-agent-core-1gx70hsn.js} +10 -10
  68. package/dist/shared/@ai-setting/{roy-agent-core-6atd905e.js → roy-agent-core-1zat1mft.js} +1 -1
  69. package/dist/shared/@ai-setting/{roy-agent-core-hw317z6f.js → roy-agent-core-33n84tf9.js} +15 -15
  70. package/dist/shared/@ai-setting/{roy-agent-core-7f7t9wwp.js → roy-agent-core-3c0zpmnq.js} +2 -2
  71. package/dist/shared/@ai-setting/{roy-agent-core-6gj1hc5z.js → roy-agent-core-46z6m682.js} +17 -17
  72. package/dist/shared/@ai-setting/{roy-agent-core-1vv4fx15.js → roy-agent-core-4bc28g7r.js} +6 -6
  73. package/dist/shared/@ai-setting/{roy-agent-core-nm4xbs1d.js → roy-agent-core-4g9f3han.js} +2 -2
  74. package/dist/shared/@ai-setting/{roy-agent-core-1db4vpc6.js → roy-agent-core-4y96ae48.js} +1 -1
  75. package/dist/shared/@ai-setting/{roy-agent-core-h83zdsrq.js → roy-agent-core-5e9vmj5e.js} +3 -3
  76. package/dist/shared/@ai-setting/{roy-agent-core-05z35shp.js → roy-agent-core-5p3arx77.js} +1 -1
  77. package/dist/shared/@ai-setting/{roy-agent-core-tjnabyvq.js → roy-agent-core-636w46em.js} +4 -4
  78. package/dist/shared/@ai-setting/{roy-agent-core-e69qxdyy.js → roy-agent-core-64ke8s3t.js} +3 -3
  79. package/dist/shared/@ai-setting/{roy-agent-core-v0hf14bj.js → roy-agent-core-64py47c3.js} +1 -1
  80. package/dist/shared/@ai-setting/{roy-agent-core-smf94h73.js → roy-agent-core-6bvn0kpf.js} +2 -2
  81. package/dist/shared/@ai-setting/{roy-agent-core-qxnbvgwe.js → roy-agent-core-6qfz57w5.js} +1 -1
  82. package/dist/shared/@ai-setting/{roy-agent-core-zhwcje5a.js → roy-agent-core-7sfz2n7t.js} +1 -1
  83. package/dist/shared/@ai-setting/{roy-agent-core-1mhyh4c5.js → roy-agent-core-94wyp5sh.js} +6 -6
  84. package/dist/shared/@ai-setting/roy-agent-core-9kp88brd.js +18 -0
  85. package/dist/shared/@ai-setting/{roy-agent-core-3wrveh5p.js → roy-agent-core-a0tck2z9.js} +3 -3
  86. package/dist/shared/@ai-setting/{roy-agent-core-wqs6yypq.js → roy-agent-core-acbg6fg9.js} +5 -5
  87. package/dist/shared/@ai-setting/{roy-agent-core-49qcpqwg.js → roy-agent-core-aeh7qg1r.js} +11 -11
  88. package/dist/shared/@ai-setting/{roy-agent-core-fzw9xzm1.js → roy-agent-core-b122g2me.js} +2 -2
  89. package/dist/shared/@ai-setting/{roy-agent-core-tpm1dd1g.js → roy-agent-core-bakbb15m.js} +14 -14
  90. package/dist/shared/@ai-setting/{roy-agent-core-9cen1jvg.js → roy-agent-core-bcv09vrt.js} +3 -3
  91. package/dist/shared/@ai-setting/{roy-agent-core-fs0mn2jk.js → roy-agent-core-bn8rs93c.js} +2 -1
  92. package/dist/shared/@ai-setting/{roy-agent-core-4t3yskp8.js → roy-agent-core-brw8wp2q.js} +12 -4
  93. package/dist/shared/@ai-setting/{roy-agent-core-9c565frx.js → roy-agent-core-bwyc2j0n.js} +2 -2
  94. package/dist/shared/@ai-setting/roy-agent-core-bz03g3n4.js +19 -0
  95. package/dist/shared/@ai-setting/{roy-agent-core-mkc3zshb.js → roy-agent-core-c57pkcx8.js} +1 -1
  96. package/dist/shared/@ai-setting/{roy-agent-core-tkpp1ba0.js → roy-agent-core-cf3nysh5.js} +2 -2
  97. package/dist/shared/@ai-setting/{roy-agent-core-ddwa0n6h.js → roy-agent-core-crcfqzcb.js} +1 -1
  98. package/dist/shared/@ai-setting/{roy-agent-core-arx535cs.js → roy-agent-core-dc2bc221.js} +2 -2
  99. package/dist/shared/@ai-setting/{roy-agent-core-rm7seqwb.js → roy-agent-core-ecap4nws.js} +1 -1
  100. package/dist/shared/@ai-setting/{roy-agent-core-vx8zc847.js → roy-agent-core-ev110pkx.js} +1 -1
  101. package/dist/shared/@ai-setting/{roy-agent-core-y6shd91r.js → roy-agent-core-ev1kvffn.js} +1 -1
  102. package/dist/shared/@ai-setting/{roy-agent-core-ds6qzmf8.js → roy-agent-core-f18s4qgp.js} +14 -6
  103. package/dist/shared/@ai-setting/{roy-agent-core-krapd8x2.js → roy-agent-core-fkhdw7t8.js} +1 -1
  104. package/dist/shared/@ai-setting/{roy-agent-core-cre2y2ct.js → roy-agent-core-h5v1xe9h.js} +6 -6
  105. package/dist/shared/@ai-setting/{roy-agent-core-4fkxy2gv.js → roy-agent-core-h89whnxz.js} +14 -6
  106. package/dist/shared/@ai-setting/{roy-agent-core-5kzhaap1.js → roy-agent-core-ha53k1f8.js} +2 -2
  107. package/dist/shared/@ai-setting/{roy-agent-core-bjtc9d35.js → roy-agent-core-jm6bf1qq.js} +6 -6
  108. package/dist/shared/@ai-setting/{roy-agent-core-v6yshv0z.js → roy-agent-core-jmyv8v71.js} +3 -3
  109. package/dist/shared/@ai-setting/{roy-agent-core-2akfd64z.js → roy-agent-core-jzmk4kdh.js} +1 -1
  110. package/dist/shared/@ai-setting/{roy-agent-core-mf5p38yf.js → roy-agent-core-kfspjx59.js} +5 -5
  111. package/dist/shared/@ai-setting/{roy-agent-core-jvv2h3d6.js → roy-agent-core-ksrq6paw.js} +1 -1
  112. package/dist/shared/@ai-setting/{roy-agent-core-rvxg1wps.js → roy-agent-core-m3vmmvbc.js} +1 -1
  113. package/dist/shared/@ai-setting/{roy-agent-core-0sbmdz8d.js → roy-agent-core-m4x47ne9.js} +9 -9
  114. package/dist/shared/@ai-setting/{roy-agent-core-age3qseb.js → roy-agent-core-mgmp2gfm.js} +2 -2
  115. package/dist/shared/@ai-setting/{roy-agent-core-br9cdm8d.js → roy-agent-core-mj4szr1e.js} +2 -2
  116. package/dist/shared/@ai-setting/{roy-agent-core-vsdar7tn.js → roy-agent-core-mp7sqfb5.js} +6 -6
  117. package/dist/shared/@ai-setting/{roy-agent-core-d6zdbgtc.js → roy-agent-core-msktt7y7.js} +1 -1
  118. package/dist/shared/@ai-setting/{roy-agent-core-9710zwwz.js → roy-agent-core-nhr8pp3a.js} +2 -2
  119. package/dist/shared/@ai-setting/roy-agent-core-nn7a0kex.js +10 -0
  120. package/dist/shared/@ai-setting/{roy-agent-core-m39v7qpx.js → roy-agent-core-nrm2ejyt.js} +2 -2
  121. package/dist/shared/@ai-setting/{roy-agent-core-h0x19xgn.js → roy-agent-core-p13a4x6r.js} +1 -1
  122. package/dist/shared/@ai-setting/{roy-agent-core-fttgm52a.js → roy-agent-core-pd2hd3q9.js} +2 -2
  123. package/dist/shared/@ai-setting/{roy-agent-core-6r970asj.js → roy-agent-core-px73ewzd.js} +14 -14
  124. package/dist/shared/@ai-setting/{roy-agent-core-m66ysky0.js → roy-agent-core-pxqz1d1m.js} +7 -4
  125. package/dist/shared/@ai-setting/{roy-agent-core-7yh5wps0.js → roy-agent-core-qt3j44j7.js} +2 -2
  126. package/dist/shared/@ai-setting/{roy-agent-core-n197medr.js → roy-agent-core-qtb41z61.js} +15 -15
  127. package/dist/shared/@ai-setting/{roy-agent-core-q96qynhb.js → roy-agent-core-qwfdbepg.js} +1 -1
  128. package/dist/shared/@ai-setting/roy-agent-core-qxnfdjqj.js +16 -0
  129. package/dist/shared/@ai-setting/{roy-agent-core-nqkfkpf4.js → roy-agent-core-r84dcepd.js} +5 -5
  130. package/dist/shared/@ai-setting/{roy-agent-core-aa8kv18f.js → roy-agent-core-s69x33zx.js} +3 -3
  131. package/dist/shared/@ai-setting/{roy-agent-core-7f10p7m2.js → roy-agent-core-ss6mghdr.js} +2 -2
  132. package/dist/shared/@ai-setting/{roy-agent-core-h1e1fm9b.js → roy-agent-core-th8fq714.js} +1 -1
  133. package/dist/shared/@ai-setting/{roy-agent-core-k3gcvybs.js → roy-agent-core-trgqgwab.js} +6 -6
  134. package/dist/shared/@ai-setting/{roy-agent-core-5dhvfgaw.js → roy-agent-core-v3wm8gyj.js} +7 -7
  135. package/dist/shared/@ai-setting/{roy-agent-core-3e040tc5.js → roy-agent-core-v7qsnh2g.js} +2 -2
  136. package/dist/shared/@ai-setting/roy-agent-core-vhgwfmp7.js +22 -0
  137. package/dist/shared/@ai-setting/{roy-agent-core-g8yr733d.js → roy-agent-core-vmbyaqqr.js} +2 -2
  138. package/dist/shared/@ai-setting/{roy-agent-core-xwyq7ffz.js → roy-agent-core-vz886vr8.js} +8 -8
  139. package/dist/shared/@ai-setting/{roy-agent-core-b7h39vrc.js → roy-agent-core-y37f7fw2.js} +6 -6
  140. package/dist/shared/@ai-setting/{roy-agent-core-er070zjq.js → roy-agent-core-y7bqmfe2.js} +2 -2
  141. package/dist/shared/@ai-setting/{roy-agent-core-e08bvpaq.js → roy-agent-core-ydgx8vyj.js} +3 -3
  142. package/dist/shared/@ai-setting/{roy-agent-core-p31ftgq9.js → roy-agent-core-yj9w6a39.js} +3 -3
  143. package/dist/shared/@ai-setting/{roy-agent-core-v1n0106v.js → roy-agent-core-ynry88mx.js} +4 -4
  144. package/dist/shared/@ai-setting/{roy-agent-core-vf9sp6s3.js → roy-agent-core-yqwwebhr.js} +2 -2
  145. package/dist/shared/@ai-setting/{roy-agent-core-5s2t8z00.js → roy-agent-core-yshw2fvj.js} +2 -2
  146. package/dist/shared/@ai-setting/{roy-agent-core-fhg03v43.js → roy-agent-core-zwckbxtq.js} +3 -3
  147. package/dist/test-utils/child-process-mock.js +1 -1
  148. package/dist/utils/temp-file-manager/index.js +4 -4
  149. package/package.json +4 -2
  150. package/dist/shared/@ai-setting/roy-agent-core-0crmsc12.js +0 -22
  151. package/dist/shared/@ai-setting/roy-agent-core-85xyctnb.js +0 -239
  152. package/dist/shared/@ai-setting/roy-agent-core-fepm835e.js +0 -19
  153. package/dist/shared/@ai-setting/roy-agent-core-mvh0td7p.js +0 -10
  154. package/dist/shared/@ai-setting/roy-agent-core-w9ryeg2p.js +0 -16
  155. package/dist/shared/@ai-setting/roy-agent-core-yfpnkc4z.js +0 -18
@@ -7,8 +7,8 @@ import {
7
7
  isBuiltInEventSourceType,
8
8
  isValidEventSourceType,
9
9
  validateEventSourceConfig
10
- } from "./roy-agent-core-vx8zc847.js";
11
- import"./roy-agent-core-fs0mn2jk.js";
10
+ } from "./roy-agent-core-ev110pkx.js";
11
+ import"./roy-agent-core-bn8rs93c.js";
12
12
  export {
13
13
  validateEventSourceConfig,
14
14
  isValidEventSourceType,
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  isToolUnavailableError,
3
3
  truncateOutputInline
4
- } from "./roy-agent-core-mx855td4.js";
4
+ } from "./roy-agent-core-0qsfkvkn.js";
5
5
  import {
6
6
  AgentRegistry
7
- } from "./roy-agent-core-v1n0106v.js";
7
+ } from "./roy-agent-core-ynry88mx.js";
8
8
  import {
9
9
  createTaskOpWatermarkPlugin,
10
10
  enqueueToAddFakeUserMessage
11
- } from "./roy-agent-core-7yh5wps0.js";
11
+ } from "./roy-agent-core-qt3j44j7.js";
12
12
  import {
13
13
  SessionMessageConverter
14
- } from "./roy-agent-core-y6shd91r.js";
14
+ } from "./roy-agent-core-ev1kvffn.js";
15
15
  import {
16
16
  parseToolArgsStrict,
17
17
  safeParseToolArgs,
18
18
  withTimeout
19
- } from "./roy-agent-core-aa8kv18f.js";
19
+ } from "./roy-agent-core-s69x33zx.js";
20
20
  import {
21
21
  getCurrentBgTaskId
22
22
  } from "./roy-agent-core-c1v263jn.js";
23
23
  import {
24
24
  AskUserError,
25
25
  init_workflow_hil
26
- } from "./roy-agent-core-mkc3zshb.js";
26
+ } from "./roy-agent-core-c57pkcx8.js";
27
27
  import {
28
28
  ContextError
29
29
  } from "./roy-agent-core-ctdhjv68.js";
@@ -32,20 +32,20 @@ import {
32
32
  } from "./roy-agent-core-7hh0brvs.js";
33
33
  import {
34
34
  BaseComponent
35
- } from "./roy-agent-core-m39v7qpx.js";
35
+ } from "./roy-agent-core-nrm2ejyt.js";
36
36
  import {
37
37
  globalHookManager,
38
38
  init_global_hook_manager
39
- } from "./roy-agent-core-yet36q5k.js";
39
+ } from "./roy-agent-core-0b4gyx3x.js";
40
40
  import {
41
41
  init_context
42
- } from "./roy-agent-core-tkpp1ba0.js";
42
+ } from "./roy-agent-core-cf3nysh5.js";
43
43
  import {
44
44
  getCurrentTaskId,
45
45
  getEnvContext,
46
46
  resolveEnvParentTaskId,
47
47
  runWithEnvContextAsync
48
- } from "./roy-agent-core-p31ftgq9.js";
48
+ } from "./roy-agent-core-yj9w6a39.js";
49
49
  import {
50
50
  TracedAs,
51
51
  agentRunParamFilter,
@@ -57,15 +57,15 @@ import {
57
57
  recordSessionMessagesParamFilter,
58
58
  toolExecParamFilter,
59
59
  toolExecResultFilter
60
- } from "./roy-agent-core-5s2t8z00.js";
60
+ } from "./roy-agent-core-yshw2fvj.js";
61
61
  import {
62
62
  createLogger,
63
63
  init_logger
64
- } from "./roy-agent-core-7f7t9wwp.js";
64
+ } from "./roy-agent-core-3c0zpmnq.js";
65
65
  import {
66
66
  __legacyDecorateClassTS,
67
67
  __require
68
- } from "./roy-agent-core-fs0mn2jk.js";
68
+ } from "./roy-agent-core-bn8rs93c.js";
69
69
 
70
70
  // src/env/agent/agent-component.ts
71
71
  init_logger();
@@ -834,7 +834,7 @@ class AgentComponent extends BaseComponent {
834
834
  this.toolComponent = tool ? tool : null;
835
835
  if (this.llmComponent) {
836
836
  try {
837
- const mod = await import("./roy-agent-core-krapd8x2.js");
837
+ const mod = await import("./roy-agent-core-fkhdw7t8.js");
838
838
  mod.setUnderstandImageLLMProvider(async (messages) => {
839
839
  const result = await this.llmComponent.invoke({
840
840
  messages,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NEW_TASK_ID_HASH_PLACEHOLDER,
3
3
  NEW_TASK_ID_PLACEHOLDER
4
- } from "./roy-agent-core-d6zdbgtc.js";
4
+ } from "./roy-agent-core-msktt7y7.js";
5
5
  import {
6
6
  TASK_DISCIPLINE_GOALS
7
7
  } from "./roy-agent-core-m46fe3x4.js";
@@ -17,11 +17,11 @@ import {
17
17
  getEnvContextOrEmpty,
18
18
  init_env_context,
19
19
  setCurrentTaskId
20
- } from "./roy-agent-core-p31ftgq9.js";
20
+ } from "./roy-agent-core-yj9w6a39.js";
21
21
  import {
22
22
  createLogger,
23
23
  init_logger
24
- } from "./roy-agent-core-7f7t9wwp.js";
24
+ } from "./roy-agent-core-3c0zpmnq.js";
25
25
 
26
26
  // src/env/task/tools/task-types.ts
27
27
  import { z } from "zod";
@@ -23,6 +23,7 @@ var __toCommonJS = (from) => {
23
23
  return entry;
24
24
  };
25
25
  var __moduleCache;
26
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
26
27
  var __returnValue = (v) => v;
27
28
  function __exportSetter(name, newValue) {
28
29
  this[name] = __returnValue.bind(null, newValue);
@@ -49,4 +50,4 @@ var __legacyDecorateClassTS = function(decorators, target, key, desc) {
49
50
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
50
51
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
51
52
 
52
- export { __toCommonJS, __export, __legacyDecorateClassTS, __esm, __require };
53
+ export { __toCommonJS, __commonJS, __export, __legacyDecorateClassTS, __esm, __require };
@@ -1,11 +1,14 @@
1
1
  import {
2
2
  TracedAs,
3
3
  init_decorator
4
- } from "./roy-agent-core-5s2t8z00.js";
4
+ } from "./roy-agent-core-yshw2fvj.js";
5
+ import {
6
+ require_lib
7
+ } from "./roy-agent-core-0wmswkj6.js";
5
8
  import {
6
9
  __legacyDecorateClassTS,
7
10
  __require
8
- } from "./roy-agent-core-fs0mn2jk.js";
11
+ } from "./roy-agent-core-bn8rs93c.js";
9
12
 
10
13
  // src/env/event-source/event-store.ts
11
14
  init_decorator();
@@ -14,9 +17,14 @@ function getDatabaseClass() {
14
17
  if (typeof Bun !== "undefined") {
15
18
  const { Database } = __require("bun:sqlite");
16
19
  return Database;
17
- } else {
18
- return __require("better-sqlite3");
19
20
  }
21
+ try {
22
+ const { DatabaseSync } = __require("node:sqlite");
23
+ if (typeof DatabaseSync === "function") {
24
+ return DatabaseSync;
25
+ }
26
+ } catch {}
27
+ return require_lib();
20
28
  }
21
29
  function createCompatibleDatabase(path) {
22
30
  const Database = getDatabaseClass();
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  createLogger,
9
9
  init_logger
10
- } from "./roy-agent-core-7f7t9wwp.js";
10
+ } from "./roy-agent-core-3c0zpmnq.js";
11
11
  import {
12
12
  __require
13
- } from "./roy-agent-core-fs0mn2jk.js";
13
+ } from "./roy-agent-core-bn8rs93c.js";
14
14
 
15
15
  // src/env/error-reply.ts
16
16
  init_logger();
@@ -0,0 +1,19 @@
1
+ import {
2
+ getDecoratorNodes,
3
+ hasDecoratorNodes,
4
+ init_node_registry_helper,
5
+ registerDecoratorNodeType
6
+ } from "./roy-agent-core-acbg6fg9.js";
7
+ import"./roy-agent-core-0k9spnmd.js";
8
+ import"./roy-agent-core-crcfqzcb.js";
9
+ import"./roy-agent-core-yshw2fvj.js";
10
+ import"./roy-agent-core-3c0zpmnq.js";
11
+ import"./roy-agent-core-0wmswkj6.js";
12
+ import"./roy-agent-core-bn8rs93c.js";
13
+ init_node_registry_helper();
14
+
15
+ export {
16
+ registerDecoratorNodeType,
17
+ hasDecoratorNodes,
18
+ getDecoratorNodes
19
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __esm
3
- } from "./roy-agent-core-fs0mn2jk.js";
3
+ } from "./roy-agent-core-bn8rs93c.js";
4
4
 
5
5
  // src/env/workflow/types/workflow-hil.ts
6
6
  function createNodeInterruptEvent(runId, nodeId, nodeType, query, agentSessionId) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_env_context,
3
3
  init_env_event
4
- } from "./roy-agent-core-p31ftgq9.js";
4
+ } from "./roy-agent-core-yj9w6a39.js";
5
5
  import {
6
6
  __esm
7
- } from "./roy-agent-core-fs0mn2jk.js";
7
+ } from "./roy-agent-core-bn8rs93c.js";
8
8
 
9
9
  // src/env/context/index.ts
10
10
  var init_context = __esm(() => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __esm
3
- } from "./roy-agent-core-fs0mn2jk.js";
3
+ } from "./roy-agent-core-bn8rs93c.js";
4
4
 
5
5
  // src/env/workflow/utils/node-id-utils.ts
6
6
  function getFromMapWithNormalization(map, key) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getWorkflowNodeIdFromMetadata,
3
3
  init_workflow_message_metadata
4
- } from "./roy-agent-core-6atd905e.js";
4
+ } from "./roy-agent-core-1zat1mft.js";
5
5
  import {
6
6
  __esm
7
- } from "./roy-agent-core-fs0mn2jk.js";
7
+ } from "./roy-agent-core-bn8rs93c.js";
8
8
 
9
9
  // src/env/workflow/utils/session-recovery.ts
10
10
  function inferNextNode(messages, definition) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DAGManager,
3
3
  init_dag_manager
4
- } from "./roy-agent-core-e08bvpaq.js";
4
+ } from "./roy-agent-core-ydgx8vyj.js";
5
5
 
6
6
  // src/env/workflow/utils/node-output-contracts.ts
7
7
  var VIRTUAL_OUTPUT_FIELD = "output";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __require
3
- } from "./roy-agent-core-fs0mn2jk.js";
3
+ } from "./roy-agent-core-bn8rs93c.js";
4
4
 
5
5
  // src/env/event-source/types.ts
6
6
  var BUILT_IN_EVENT_SOURCE_TYPES = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  safeParseToolArgs
3
- } from "./roy-agent-core-aa8kv18f.js";
3
+ } from "./roy-agent-core-s69x33zx.js";
4
4
 
5
5
  // src/env/session/session-message-converter.ts
6
6
  import { randomUUID } from "crypto";
@@ -1,16 +1,19 @@
1
1
  import {
2
2
  SessionMessageConverter
3
- } from "./roy-agent-core-y6shd91r.js";
3
+ } from "./roy-agent-core-ev1kvffn.js";
4
4
  import {
5
5
  canonicalizeParts
6
- } from "./roy-agent-core-aa8kv18f.js";
6
+ } from "./roy-agent-core-s69x33zx.js";
7
7
  import {
8
8
  createLogger,
9
9
  init_logger
10
- } from "./roy-agent-core-7f7t9wwp.js";
10
+ } from "./roy-agent-core-3c0zpmnq.js";
11
+ import {
12
+ require_lib
13
+ } from "./roy-agent-core-0wmswkj6.js";
11
14
  import {
12
15
  __require
13
- } from "./roy-agent-core-fs0mn2jk.js";
16
+ } from "./roy-agent-core-bn8rs93c.js";
14
17
 
15
18
  // src/env/session/session-store.ts
16
19
  class BaseSessionStore {
@@ -561,9 +564,14 @@ function getDatabaseClass() {
561
564
  if (typeof Bun !== "undefined") {
562
565
  const { Database } = __require("bun:sqlite");
563
566
  return Database;
564
- } else {
565
- return __require("better-sqlite3");
566
567
  }
568
+ try {
569
+ const { DatabaseSync } = __require("node:sqlite");
570
+ if (typeof DatabaseSync === "function") {
571
+ return DatabaseSync;
572
+ }
573
+ } catch {}
574
+ return require_lib();
567
575
  }
568
576
  function isSqliteBusyError(err) {
569
577
  if (err == null)
@@ -5,7 +5,7 @@ import {
5
5
  understandImageTool
6
6
  } from "./roy-agent-core-xwm8zavb.js";
7
7
  import"./roy-agent-core-zjdzk1gg.js";
8
- import"./roy-agent-core-fs0mn2jk.js";
8
+ import"./roy-agent-core-bn8rs93c.js";
9
9
  export {
10
10
  understandImageTool,
11
11
  setUnderstandImageLLMProvider,
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  MemorySessionStore,
3
3
  SQLiteSessionStore
4
- } from "./roy-agent-core-ds6qzmf8.js";
4
+ } from "./roy-agent-core-f18s4qgp.js";
5
5
  import {
6
6
  init_search_query_parser,
7
7
  matchesQuery,
8
8
  parseSearchQuery
9
- } from "./roy-agent-core-rvxg1wps.js";
9
+ } from "./roy-agent-core-m3vmmvbc.js";
10
10
  import {
11
11
  envKeyToConfigKey
12
12
  } from "./roy-agent-core-7hh0brvs.js";
13
13
  import {
14
14
  BaseComponent
15
- } from "./roy-agent-core-m39v7qpx.js";
15
+ } from "./roy-agent-core-nrm2ejyt.js";
16
16
  import {
17
17
  TracedAs,
18
18
  init_decorator,
19
19
  init_trace_filters,
20
20
  messagesParamFilter
21
- } from "./roy-agent-core-5s2t8z00.js";
21
+ } from "./roy-agent-core-yshw2fvj.js";
22
22
  import {
23
23
  createLogger,
24
24
  init_logger
25
- } from "./roy-agent-core-7f7t9wwp.js";
25
+ } from "./roy-agent-core-3c0zpmnq.js";
26
26
  import {
27
27
  __legacyDecorateClassTS
28
- } from "./roy-agent-core-fs0mn2jk.js";
28
+ } from "./roy-agent-core-bn8rs93c.js";
29
29
 
30
30
  // src/env/session/group-session-link.ts
31
31
  var GROUP_LINK_READ_HINT_LIMIT = 50;
@@ -1,18 +1,21 @@
1
1
  import {
2
2
  TagRepository
3
- } from "./roy-agent-core-vf9sp6s3.js";
3
+ } from "./roy-agent-core-yqwwebhr.js";
4
4
  import {
5
5
  exports_search_query_parser,
6
6
  init_search_query_parser
7
- } from "./roy-agent-core-rvxg1wps.js";
7
+ } from "./roy-agent-core-m3vmmvbc.js";
8
8
  import {
9
9
  createLogger,
10
10
  init_logger
11
- } from "./roy-agent-core-7f7t9wwp.js";
11
+ } from "./roy-agent-core-3c0zpmnq.js";
12
+ import {
13
+ require_lib
14
+ } from "./roy-agent-core-0wmswkj6.js";
12
15
  import {
13
16
  __require,
14
17
  __toCommonJS
15
- } from "./roy-agent-core-fs0mn2jk.js";
18
+ } from "./roy-agent-core-bn8rs93c.js";
16
19
 
17
20
  // src/env/workflow/storage/workflow-repo.ts
18
21
  import { randomUUID } from "crypto";
@@ -25,9 +28,14 @@ function getDatabaseClass() {
25
28
  if (typeof Bun !== "undefined") {
26
29
  const { Database } = __require("bun:sqlite");
27
30
  return Database;
28
- } else {
29
- return __require("better-sqlite3");
30
31
  }
32
+ try {
33
+ const { DatabaseSync } = __require("node:sqlite");
34
+ if (typeof DatabaseSync === "function") {
35
+ return DatabaseSync;
36
+ }
37
+ } catch {}
38
+ return require_lib();
31
39
  }
32
40
  function createCompatibleDatabase(path) {
33
41
  const Database = getDatabaseClass();
@@ -6,11 +6,11 @@ import {
6
6
  } from "./roy-agent-core-7hh0brvs.js";
7
7
  import {
8
8
  BaseComponent
9
- } from "./roy-agent-core-m39v7qpx.js";
9
+ } from "./roy-agent-core-nrm2ejyt.js";
10
10
  import {
11
11
  createLogger,
12
12
  init_logger
13
- } from "./roy-agent-core-7f7t9wwp.js";
13
+ } from "./roy-agent-core-3c0zpmnq.js";
14
14
 
15
15
  // src/env/skill/skill-component.ts
16
16
  init_logger();
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  createSubmitJsonOutputTool,
3
3
  init_submit_json_output_tool
4
- } from "./roy-agent-core-1db4vpc6.js";
4
+ } from "./roy-agent-core-4y96ae48.js";
5
5
  import {
6
6
  AskUserError,
7
7
  init_workflow_hil
8
- } from "./roy-agent-core-mkc3zshb.js";
8
+ } from "./roy-agent-core-c57pkcx8.js";
9
9
  import {
10
10
  globalHookManager,
11
11
  init_global_hook_manager
12
- } from "./roy-agent-core-yet36q5k.js";
12
+ } from "./roy-agent-core-0b4gyx3x.js";
13
13
  import {
14
14
  TracedAs,
15
15
  init_decorator,
16
16
  wrapFunction
17
- } from "./roy-agent-core-5s2t8z00.js";
17
+ } from "./roy-agent-core-yshw2fvj.js";
18
18
  import {
19
19
  createLogger,
20
20
  init_logger
21
- } from "./roy-agent-core-7f7t9wwp.js";
21
+ } from "./roy-agent-core-3c0zpmnq.js";
22
22
  import {
23
23
  __esm,
24
24
  __legacyDecorateClassTS
25
- } from "./roy-agent-core-fs0mn2jk.js";
25
+ } from "./roy-agent-core-bn8rs93c.js";
26
26
 
27
27
  // src/utils/loose-json.ts
28
28
  var init_loose_json = () => {};
@@ -5,13 +5,13 @@ import {
5
5
  } from "./roy-agent-core-adg9ghbt.js";
6
6
  import {
7
7
  XDG_PATHS
8
- } from "./roy-agent-core-qxnbvgwe.js";
8
+ } from "./roy-agent-core-6qfz57w5.js";
9
9
  import {
10
10
  BaseComponent
11
- } from "./roy-agent-core-m39v7qpx.js";
11
+ } from "./roy-agent-core-nrm2ejyt.js";
12
12
  import {
13
13
  __require
14
- } from "./roy-agent-core-fs0mn2jk.js";
14
+ } from "./roy-agent-core-bn8rs93c.js";
15
15
 
16
16
  // src/config/file-source.ts
17
17
  import * as fsSync from "fs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createLogger,
3
3
  init_logger
4
- } from "./roy-agent-core-7f7t9wwp.js";
4
+ } from "./roy-agent-core-3c0zpmnq.js";
5
5
 
6
6
  // src/env/tool/built-in/query-background-process-tool.ts
7
7
  import { z } from "zod";
@@ -3,11 +3,11 @@ import {
3
3
  } from "./roy-agent-core-7hh0brvs.js";
4
4
  import {
5
5
  BaseComponent
6
- } from "./roy-agent-core-m39v7qpx.js";
6
+ } from "./roy-agent-core-nrm2ejyt.js";
7
7
  import {
8
8
  init_decorator,
9
9
  init_trace_filters
10
- } from "./roy-agent-core-5s2t8z00.js";
10
+ } from "./roy-agent-core-yshw2fvj.js";
11
11
  import {
12
12
  createLogger,
13
13
  getTracerProvider,
@@ -18,14 +18,14 @@ import {
18
18
  propagation,
19
19
  setConfigComponent,
20
20
  setQuietMode
21
- } from "./roy-agent-core-7f7t9wwp.js";
21
+ } from "./roy-agent-core-3c0zpmnq.js";
22
22
  import {
23
23
  SQLiteSpanStorage,
24
24
  init_span_storage
25
- } from "./roy-agent-core-85xyctnb.js";
25
+ } from "./roy-agent-core-0wmswkj6.js";
26
26
  import {
27
27
  __require
28
- } from "./roy-agent-core-fs0mn2jk.js";
28
+ } from "./roy-agent-core-bn8rs93c.js";
29
29
 
30
30
  // src/env/log-trace/index.ts
31
31
  init_types();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createLogger,
3
3
  init_logger
4
- } from "./roy-agent-core-7f7t9wwp.js";
4
+ } from "./roy-agent-core-3c0zpmnq.js";
5
5
 
6
6
  // src/utils/temp-file-manager/index.ts
7
7
  init_logger();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __esm,
3
3
  __export
4
- } from "./roy-agent-core-fs0mn2jk.js";
4
+ } from "./roy-agent-core-bn8rs93c.js";
5
5
 
6
6
  // src/env/session/search-query-parser.ts
7
7
  var exports_search_query_parser = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ProcessRegistry,
3
3
  runWithProcessRegistryAsync
4
- } from "./roy-agent-core-fttgm52a.js";
4
+ } from "./roy-agent-core-pd2hd3q9.js";
5
5
  import {
6
6
  getSharedEventStore
7
- } from "./roy-agent-core-4t3yskp8.js";
7
+ } from "./roy-agent-core-brw8wp2q.js";
8
8
  import {
9
9
  builtInPrompts
10
10
  } from "./roy-agent-core-y7fqtzk2.js";
@@ -13,33 +13,33 @@ import {
13
13
  } from "./roy-agent-core-1pg0fepg.js";
14
14
  import {
15
15
  DEFAULT_SUBAGENT_PROMPT
16
- } from "./roy-agent-core-v1n0106v.js";
16
+ } from "./roy-agent-core-ynry88mx.js";
17
17
  import {
18
18
  runWithBgTaskIdAsync
19
19
  } from "./roy-agent-core-c1v263jn.js";
20
20
  import {
21
21
  globalHookManager,
22
22
  init_global_hook_manager
23
- } from "./roy-agent-core-yet36q5k.js";
23
+ } from "./roy-agent-core-0b4gyx3x.js";
24
24
  import {
25
25
  init_context
26
- } from "./roy-agent-core-tkpp1ba0.js";
26
+ } from "./roy-agent-core-cf3nysh5.js";
27
27
  import {
28
28
  getCurrentTaskId,
29
29
  getEnvContext
30
- } from "./roy-agent-core-p31ftgq9.js";
30
+ } from "./roy-agent-core-yj9w6a39.js";
31
31
  import {
32
32
  TracedAs,
33
33
  init_decorator,
34
34
  wrapFunction
35
- } from "./roy-agent-core-5s2t8z00.js";
35
+ } from "./roy-agent-core-yshw2fvj.js";
36
36
  import {
37
37
  createLogger,
38
38
  init_logger
39
- } from "./roy-agent-core-7f7t9wwp.js";
39
+ } from "./roy-agent-core-3c0zpmnq.js";
40
40
  import {
41
41
  __legacyDecorateClassTS
42
- } from "./roy-agent-core-fs0mn2jk.js";
42
+ } from "./roy-agent-core-bn8rs93c.js";
43
43
 
44
44
  // src/env/task/delegate/delegate-tool.ts
45
45
  init_logger();
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createCompatibleDatabase,
3
3
  init_sqlite_task_store
4
- } from "./roy-agent-core-m66ysky0.js";
4
+ } from "./roy-agent-core-pxqz1d1m.js";
5
5
  import {
6
6
  createLogger,
7
7
  init_logger
8
- } from "./roy-agent-core-7f7t9wwp.js";
8
+ } from "./roy-agent-core-3c0zpmnq.js";
9
9
 
10
10
  // src/env/task/plugins/wecom-session-card-store.ts
11
11
  init_logger();
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  SQLiteSpanStorage,
3
3
  init_span_storage
4
- } from "./roy-agent-core-85xyctnb.js";
5
- import"./roy-agent-core-fs0mn2jk.js";
4
+ } from "./roy-agent-core-0wmswkj6.js";
5
+ import"./roy-agent-core-bn8rs93c.js";
6
6
  init_span_storage();
7
7
 
8
8
  export {