@ai-setting/roy-agent-core 1.4.14 → 1.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/{packages/core/src/config → config}/index.js +7 -7
  2. package/dist/env/agent/index.js +24 -0
  3. package/dist/env/commands/index.js +14 -0
  4. package/dist/env/debug/formatters/index.js +11 -0
  5. package/dist/env/debug/index.js +26 -0
  6. package/dist/{packages/core/src/env → env}/hook/index.js +3 -3
  7. package/dist/env/index.js +81 -0
  8. package/dist/env/llm/index.js +40 -0
  9. package/dist/{packages/core/src/env → env}/log-trace/index.js +10 -10
  10. package/dist/env/mcp/index.js +39 -0
  11. package/dist/env/mcp/tool/index.js +14 -0
  12. package/dist/{packages/core/src/env → env}/memory/built-in/index.js +2 -2
  13. package/dist/{packages/core/src/env → env}/memory/index.js +11 -11
  14. package/dist/{packages/core/src/env → env}/memory/plugin/index.js +5 -5
  15. package/dist/env/prompt/index.js +20 -0
  16. package/dist/env/session/index.js +25 -0
  17. package/dist/env/session/storage/index.js +18 -0
  18. package/dist/env/skill/index.js +34 -0
  19. package/dist/env/skill/tool/index.js +9 -0
  20. package/dist/env/task/delegate/index.js +18 -0
  21. package/dist/env/task/hooks/index.js +7 -0
  22. package/dist/env/task/index.js +30 -0
  23. package/dist/env/task/plugins/index.js +23 -0
  24. package/dist/env/task/storage/index.js +14 -0
  25. package/dist/{packages/core/src/env → env}/task/tools/index.js +2 -2
  26. package/dist/{packages/core/src/env → env}/task/tools/operation/index.js +2 -2
  27. package/dist/{packages/core/src/env → env}/tool/built-in/index.js +4 -4
  28. package/dist/env/tool/index.js +39 -0
  29. package/dist/{packages/core/src/env → env}/workflow/decorators/index.js +3 -3
  30. package/dist/env/workflow/engine/index.js +28 -0
  31. package/dist/{packages/core/src/env → env}/workflow/index.js +30 -30
  32. package/dist/{packages/core/src/env → env}/workflow/nodes/index.js +3 -3
  33. package/dist/{packages/core/src/env → env}/workflow/service/index.js +2 -2
  34. package/dist/env/workflow/storage/index.js +27 -0
  35. package/dist/{packages/core/src/env → env}/workflow/tools/index.js +7 -7
  36. package/dist/{packages/core/src/env → env}/workflow/types/index.js +3 -3
  37. package/dist/{packages/core/src/env → env}/workflow/utils/index.js +10 -10
  38. package/dist/{packages/core/src/index.js → index.js} +102 -102
  39. package/dist/shared/@ai-setting/{roy-agent-core-1z1zv5g8.js → roy-agent-core-0rtxwr28.js} +4 -4
  40. package/dist/shared/@ai-setting/{roy-agent-core-nfj6knp5.js → roy-agent-core-0vbdz0x7.js} +2 -2
  41. package/dist/shared/@ai-setting/{roy-agent-core-04fm8177.js → roy-agent-core-12zkpda2.js} +8 -8
  42. package/dist/shared/@ai-setting/{roy-agent-core-3tnb2005.js → roy-agent-core-1ce3fqrk.js} +1 -1
  43. package/dist/shared/@ai-setting/{roy-agent-core-084qqd7t.js → roy-agent-core-2dhd60aw.js} +1 -1
  44. package/dist/shared/@ai-setting/{roy-agent-core-8wzz66qe.js → roy-agent-core-2kg2wma8.js} +2 -2
  45. package/dist/shared/@ai-setting/{roy-agent-core-2hqxnaf3.js → roy-agent-core-2x0m2p66.js} +3 -3
  46. package/dist/shared/@ai-setting/{roy-agent-core-04qgbjbe.js → roy-agent-core-35x0wrtt.js} +3 -3
  47. package/dist/shared/@ai-setting/{roy-agent-core-qxybm159.js → roy-agent-core-37e4tep3.js} +2 -2
  48. package/dist/shared/@ai-setting/{roy-agent-core-5fbp24se.js → roy-agent-core-3agad0d9.js} +3 -3
  49. package/dist/shared/@ai-setting/{roy-agent-core-0hdry23r.js → roy-agent-core-4arba14a.js} +16 -16
  50. package/dist/shared/@ai-setting/{roy-agent-core-6w4pmxc7.js → roy-agent-core-4rqmfr7t.js} +17 -17
  51. package/dist/shared/@ai-setting/{roy-agent-core-yt8wdh2w.js → roy-agent-core-4t40mkpv.js} +2 -2
  52. package/dist/shared/@ai-setting/{roy-agent-core-m6y668cc.js → roy-agent-core-561b1c4p.js} +11 -11
  53. package/dist/shared/@ai-setting/{roy-agent-core-dde19zke.js → roy-agent-core-5xf65pz6.js} +15 -15
  54. package/dist/shared/@ai-setting/{roy-agent-core-v4aabsf0.js → roy-agent-core-6a72jfdy.js} +2 -2
  55. package/dist/shared/@ai-setting/{roy-agent-core-nczzf0ms.js → roy-agent-core-7f303ffd.js} +2 -2
  56. package/dist/shared/@ai-setting/{roy-agent-core-sbzvpfn7.js → roy-agent-core-7fgf85wc.js} +9 -9
  57. package/dist/shared/@ai-setting/{roy-agent-core-tkr5ynkh.js → roy-agent-core-7n436rb4.js} +3 -3
  58. package/dist/shared/@ai-setting/{roy-agent-core-yrzmn4m1.js → roy-agent-core-7r85t0qn.js} +7 -7
  59. package/dist/shared/@ai-setting/{roy-agent-core-q50tg9m2.js → roy-agent-core-7rewcey6.js} +11 -11
  60. package/dist/shared/@ai-setting/{roy-agent-core-pzk1syce.js → roy-agent-core-92z6t4he.js} +1 -1
  61. package/dist/shared/@ai-setting/{roy-agent-core-pd7g8z5v.js → roy-agent-core-9qwp5qkz.js} +16 -16
  62. package/dist/shared/@ai-setting/{roy-agent-core-hyza1gm7.js → roy-agent-core-9yxb3ty9.js} +2 -2
  63. package/dist/shared/@ai-setting/{roy-agent-core-fvd9g6k8.js → roy-agent-core-anwsxdds.js} +8 -8
  64. package/dist/shared/@ai-setting/{roy-agent-core-j8zx62zr.js → roy-agent-core-bncgx3gb.js} +1 -1
  65. package/dist/shared/@ai-setting/{roy-agent-core-9ykq91jc.js → roy-agent-core-cd00w5mb.js} +16 -16
  66. package/dist/shared/@ai-setting/{roy-agent-core-jb2exr0d.js → roy-agent-core-cgs0j60t.js} +12 -12
  67. package/dist/shared/@ai-setting/{roy-agent-core-3takar0s.js → roy-agent-core-ctdhjv68.js} +1 -1
  68. package/dist/shared/@ai-setting/{roy-agent-core-12x57kf1.js → roy-agent-core-dbsk841j.js} +7 -7
  69. package/dist/shared/@ai-setting/{roy-agent-core-8dvbn7tw.js → roy-agent-core-e25xkv53.js} +1 -1
  70. package/dist/shared/@ai-setting/{roy-agent-core-7vrk3add.js → roy-agent-core-e5jcp24a.js} +1 -1
  71. package/dist/shared/@ai-setting/{roy-agent-core-ntrp979d.js → roy-agent-core-e62e2a5a.js} +2 -2
  72. package/dist/shared/@ai-setting/{roy-agent-core-rh9dpkpw.js → roy-agent-core-ewrj1c4k.js} +9 -9
  73. package/dist/shared/@ai-setting/{roy-agent-core-6j0zcmwk.js → roy-agent-core-fdb6m4e4.js} +16 -16
  74. package/dist/shared/@ai-setting/{roy-agent-core-1k28kg7h.js → roy-agent-core-fv32jaa8.js} +4 -4
  75. package/dist/shared/@ai-setting/{roy-agent-core-8mbmrwzs.js → roy-agent-core-g1s2h0e5.js} +3 -3
  76. package/dist/shared/@ai-setting/{roy-agent-core-w75rafhy.js → roy-agent-core-gmnkza34.js} +2 -2
  77. package/dist/shared/@ai-setting/{roy-agent-core-k1rxf9ya.js → roy-agent-core-hz7rr4yx.js} +14 -14
  78. package/dist/shared/@ai-setting/{roy-agent-core-gv1hrn3x.js → roy-agent-core-j3bbr2n0.js} +3 -3
  79. package/dist/shared/@ai-setting/{roy-agent-core-yn761yve.js → roy-agent-core-j3wc4465.js} +2 -2
  80. package/dist/shared/@ai-setting/{roy-agent-core-0gekht4e.js → roy-agent-core-jj79gszx.js} +16 -16
  81. package/dist/shared/@ai-setting/{roy-agent-core-f7g67gce.js → roy-agent-core-mwwk6req.js} +9 -9
  82. package/dist/shared/@ai-setting/{roy-agent-core-rr9p1g43.js → roy-agent-core-pc9g3962.js} +2 -2
  83. package/dist/shared/@ai-setting/{roy-agent-core-kydc9nwb.js → roy-agent-core-psvxt4c9.js} +2 -2
  84. package/dist/shared/@ai-setting/{roy-agent-core-1f3xrrm6.js → roy-agent-core-pzsg9pvf.js} +11 -11
  85. package/dist/shared/@ai-setting/{roy-agent-core-qhyerewk.js → roy-agent-core-q779wnwm.js} +4 -4
  86. package/dist/shared/@ai-setting/{roy-agent-core-4ws8atva.js → roy-agent-core-qw0ebh1d.js} +1 -1
  87. package/dist/shared/@ai-setting/{roy-agent-core-jv3b7v9w.js → roy-agent-core-qxhq8ven.js} +1 -1
  88. package/dist/shared/@ai-setting/{roy-agent-core-5my94ywp.js → roy-agent-core-qxnbvgwe.js} +1 -1
  89. package/dist/shared/@ai-setting/{roy-agent-core-yfbgwes2.js → roy-agent-core-qya7seh6.js} +6 -6
  90. package/dist/shared/@ai-setting/{roy-agent-core-m2x48hw6.js → roy-agent-core-rbetrphj.js} +3 -3
  91. package/dist/shared/@ai-setting/{roy-agent-core-3dfq8awb.js → roy-agent-core-re1wjfw7.js} +14 -14
  92. package/dist/shared/@ai-setting/roy-agent-core-rft3fmp0.js +14 -0
  93. package/dist/shared/@ai-setting/{roy-agent-core-w76hqkmg.js → roy-agent-core-rvv6ydff.js} +3 -3
  94. package/dist/shared/@ai-setting/{roy-agent-core-0sgn3de4.js → roy-agent-core-rvxg1wps.js} +1 -1
  95. package/dist/shared/@ai-setting/{roy-agent-core-fq5mtxsy.js → roy-agent-core-rzp9kxne.js} +8 -8
  96. package/dist/shared/@ai-setting/{roy-agent-core-gy0wp5h7.js → roy-agent-core-t94ktchq.js} +6 -6
  97. package/dist/shared/@ai-setting/{roy-agent-core-t22nqt4d.js → roy-agent-core-w78syn7w.js} +7 -7
  98. package/dist/shared/@ai-setting/{roy-agent-core-qg9tcaph.js → roy-agent-core-z2t8hse8.js} +2 -2
  99. package/package.json +3 -3
  100. package/dist/packages/core/src/env/agent/index.js +0 -24
  101. package/dist/packages/core/src/env/commands/index.js +0 -14
  102. package/dist/packages/core/src/env/debug/formatters/index.js +0 -11
  103. package/dist/packages/core/src/env/debug/index.js +0 -26
  104. package/dist/packages/core/src/env/index.js +0 -81
  105. package/dist/packages/core/src/env/llm/index.js +0 -40
  106. package/dist/packages/core/src/env/mcp/index.js +0 -39
  107. package/dist/packages/core/src/env/mcp/tool/index.js +0 -14
  108. package/dist/packages/core/src/env/prompt/index.js +0 -20
  109. package/dist/packages/core/src/env/session/index.js +0 -25
  110. package/dist/packages/core/src/env/session/storage/index.js +0 -18
  111. package/dist/packages/core/src/env/skill/index.js +0 -34
  112. package/dist/packages/core/src/env/skill/tool/index.js +0 -9
  113. package/dist/packages/core/src/env/task/delegate/index.js +0 -18
  114. package/dist/packages/core/src/env/task/hooks/index.js +0 -7
  115. package/dist/packages/core/src/env/task/index.js +0 -30
  116. package/dist/packages/core/src/env/task/plugins/index.js +0 -23
  117. package/dist/packages/core/src/env/task/storage/index.js +0 -14
  118. package/dist/packages/core/src/env/tool/index.js +0 -39
  119. package/dist/packages/core/src/env/workflow/engine/index.js +0 -28
  120. package/dist/packages/core/src/env/workflow/storage/index.js +0 -27
  121. package/dist/shared/@ai-setting/roy-agent-core-4vmcvkav.js +0 -14
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getDatabase
3
- } from "./roy-agent-core-qxybm159.js";
3
+ } from "./roy-agent-core-37e4tep3.js";
4
4
  import {
5
5
  exports_search_query_parser,
6
6
  init_search_query_parser
7
- } from "./roy-agent-core-0sgn3de4.js";
7
+ } from "./roy-agent-core-rvxg1wps.js";
8
8
  import {
9
9
  __toCommonJS
10
10
  } from "./roy-agent-core-fs0mn2jk.js";
11
11
 
12
- // packages/core/src/env/workflow/storage/workflow-repo.ts
12
+ // src/env/workflow/storage/workflow-repo.ts
13
13
  import { randomUUID } from "crypto";
14
14
  function rowToWorkflow(row) {
15
15
  const metadata = JSON.parse(row.metadata);
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  envKeyToConfigKey,
3
3
  toEnvKey
4
- } from "./roy-agent-core-jv3b7v9w.js";
4
+ } from "./roy-agent-core-qxhq8ven.js";
5
5
  import {
6
6
  BaseComponent
7
- } from "./roy-agent-core-m2x48hw6.js";
7
+ } from "./roy-agent-core-rbetrphj.js";
8
8
  import {
9
9
  createLogger,
10
10
  init_logger
11
- } from "./roy-agent-core-yn761yve.js";
11
+ } from "./roy-agent-core-j3wc4465.js";
12
12
 
13
- // packages/core/src/env/commands/commands-component.ts
13
+ // src/env/commands/commands-component.ts
14
14
  import path2 from "path";
15
15
  import os from "os";
16
16
  init_logger();
@@ -18,7 +18,7 @@ import * as fs2 from "fs/promises";
18
18
  import { exec } from "child_process";
19
19
  import { promisify } from "util";
20
20
 
21
- // packages/core/src/env/commands/parser.ts
21
+ // src/env/commands/parser.ts
22
22
  init_logger();
23
23
  import fs from "fs/promises";
24
24
  import path from "path";
@@ -72,7 +72,7 @@ async function parseMetaFile(filePath, source) {
72
72
  }
73
73
  }
74
74
 
75
- // packages/core/src/env/commands/commands-config-registration.ts
75
+ // src/env/commands/commands-config-registration.ts
76
76
  var COMMANDS_CONFIG_REGISTRATION = {
77
77
  name: "command",
78
78
  sources: [
@@ -85,7 +85,7 @@ var COMMANDS_CONFIG_REGISTRATION = {
85
85
  ]
86
86
  };
87
87
 
88
- // packages/core/src/env/commands/commands-component.ts
88
+ // src/env/commands/commands-component.ts
89
89
  var execAsync = promisify(exec);
90
90
  var logger2 = createLogger("commands");
91
91
  var DEFAULT_USER_DIR = ".roy-agent/commands";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  TraceFormatter,
3
3
  TreeFormatter
4
- } from "./roy-agent-core-w76hqkmg.js";
4
+ } from "./roy-agent-core-rvv6ydff.js";
5
5
  import {
6
6
  BaseComponent
7
- } from "./roy-agent-core-m2x48hw6.js";
7
+ } from "./roy-agent-core-rbetrphj.js";
8
8
  import {
9
9
  __require
10
10
  } from "./roy-agent-core-fs0mn2jk.js";
11
11
 
12
- // packages/core/src/env/debug/reader/log-reader.ts
12
+ // src/env/debug/reader/log-reader.ts
13
13
  import * as fs from "fs";
14
14
  import * as readline from "readline";
15
15
  import * as path from "path";
@@ -120,7 +120,7 @@ class LogReader {
120
120
  }
121
121
  }
122
122
 
123
- // packages/core/src/env/debug/reader/span-db-reader.ts
123
+ // src/env/debug/reader/span-db-reader.ts
124
124
  class SpanDbReader {
125
125
  storage = null;
126
126
  dbPath = null;
@@ -141,7 +141,7 @@ class SpanDbReader {
141
141
  }
142
142
  async initSqliteStorage() {
143
143
  try {
144
- const { SQLiteSpanStorage } = await import("./roy-agent-core-7vrk3add.js");
144
+ const { SQLiteSpanStorage } = await import("./roy-agent-core-e5jcp24a.js");
145
145
  this.storage = new SQLiteSpanStorage(this.dbPath);
146
146
  await this.storage.initialize();
147
147
  } catch (error) {
@@ -226,7 +226,7 @@ class SpanDbReader {
226
226
  }
227
227
  }
228
228
 
229
- // packages/core/src/env/debug/parser/regex-parser.ts
229
+ // src/env/debug/parser/regex-parser.ts
230
230
  var TRACE_LINE_REGEX = /^(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\.\d{3})\s+\[(\w+)\]\s+\[([^\]]*)\]\[([^\]]*)\]\s+\[TRACE\]\s+(>>>|<<<|!!!)\s+(.+?)(?:\s+\[requestId=([^\]]+)\])?\s+(enter|quit|error):\s+(.*)$/;
231
231
  var REQUEST_ID_IN_CATEGORY_REGEX = /\[requestId=([^\]]+)\]/;
232
232
 
@@ -330,7 +330,7 @@ class RegexParser {
330
330
  }
331
331
  }
332
332
 
333
- // packages/core/src/env/debug/parser/span-builder.ts
333
+ // src/env/debug/parser/span-builder.ts
334
334
  class SpanBuilder {
335
335
  parser;
336
336
  constructor() {
@@ -559,7 +559,7 @@ class SpanBuilder {
559
559
  }
560
560
  }
561
561
 
562
- // packages/core/src/env/debug/debug-component.ts
562
+ // src/env/debug/debug-component.ts
563
563
  class DebugComponent extends BaseComponent {
564
564
  name = "debug";
565
565
  version = "1.0.0";
@@ -590,7 +590,7 @@ class DebugComponent extends BaseComponent {
590
590
  }
591
591
  async getLiveTrace(traceId) {
592
592
  try {
593
- const { getTracerProvider } = await import("./roy-agent-core-nczzf0ms.js");
593
+ const { getTracerProvider } = await import("./roy-agent-core-7f303ffd.js");
594
594
  const provider = getTracerProvider();
595
595
  if (!provider.isInitialized()) {
596
596
  await provider.initialize();
@@ -635,7 +635,7 @@ class DebugComponent extends BaseComponent {
635
635
  }
636
636
  async listLiveTraces(limit = 20) {
637
637
  try {
638
- const { getTracerProvider } = await import("./roy-agent-core-nczzf0ms.js");
638
+ const { getTracerProvider } = await import("./roy-agent-core-7f303ffd.js");
639
639
  const provider = getTracerProvider();
640
640
  if (!provider.isInitialized()) {
641
641
  await provider.initialize();
@@ -653,7 +653,7 @@ class DebugComponent extends BaseComponent {
653
653
  }
654
654
  async formatLiveTrace(traceId) {
655
655
  try {
656
- const { getTracerProvider } = await import("./roy-agent-core-nczzf0ms.js");
656
+ const { getTracerProvider } = await import("./roy-agent-core-7f303ffd.js");
657
657
  const provider = getTracerProvider();
658
658
  if (!provider.isInitialized()) {
659
659
  await provider.initialize();
@@ -1,4 +1,4 @@
1
- // packages/core/src/env/task/hooks/task-hook-points.ts
1
+ // src/env/task/hooks/task-hook-points.ts
2
2
  var TaskHookPoints = {
3
3
  BEFORE_CREATE: "task:before.create",
4
4
  AFTER_CREATE: "task:after.create",
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  ContextError,
3
3
  ErrorCodes
4
- } from "./roy-agent-core-3takar0s.js";
5
- import {
6
- TracedAs,
7
- init_decorator
8
- } from "./roy-agent-core-04qgbjbe.js";
4
+ } from "./roy-agent-core-ctdhjv68.js";
9
5
  import {
10
6
  envKeyToConfigKey
11
- } from "./roy-agent-core-jv3b7v9w.js";
7
+ } from "./roy-agent-core-qxhq8ven.js";
12
8
  import {
13
9
  BaseComponent
14
- } from "./roy-agent-core-m2x48hw6.js";
10
+ } from "./roy-agent-core-rbetrphj.js";
11
+ import {
12
+ TracedAs,
13
+ init_decorator
14
+ } from "./roy-agent-core-35x0wrtt.js";
15
15
  import {
16
16
  createLogger,
17
17
  init_logger
18
- } from "./roy-agent-core-yn761yve.js";
18
+ } from "./roy-agent-core-j3wc4465.js";
19
19
  import {
20
20
  __legacyDecorateClassTS,
21
21
  __require
22
22
  } from "./roy-agent-core-fs0mn2jk.js";
23
23
 
24
- // packages/core/src/env/environment.ts
24
+ // src/env/environment.ts
25
25
  init_logger();
26
26
 
27
- // packages/core/src/utils/id.ts
27
+ // src/utils/id.ts
28
28
  function generateId(prefix = "id") {
29
29
  const timestamp = Date.now().toString(36);
30
30
  const random = Math.random().toString(36).substring(2, 11);
@@ -36,7 +36,7 @@ function generateDescendingId(prefix = "id") {
36
36
  return `${prefix}_${timestamp}_${random}`;
37
37
  }
38
38
 
39
- // packages/core/src/env/environment.ts
39
+ // src/env/environment.ts
40
40
  init_decorator();
41
41
  import * as fsSync from "fs";
42
42
  import * as path from "path";
@@ -425,14 +425,14 @@ class BaseEnvironment extends BaseComponent {
425
425
  __legacyDecorateClassTS([
426
426
  TracedAs("env.handle_query", { recordParams: true, recordResult: true, log: true })
427
427
  ], BaseEnvironment.prototype, "handle_query", null);
428
- // packages/core/src/env/event-source/event-source-component.ts
428
+ // src/env/event-source/event-source-component.ts
429
429
  import { spawn, exec } from "child_process";
430
430
  import { promisify } from "util";
431
431
  import { join } from "path";
432
432
  import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2, writeFileSync } from "fs";
433
433
  init_logger();
434
434
 
435
- // packages/core/src/env/event-source/event-source-config-registration.ts
435
+ // src/env/event-source/event-source-config-registration.ts
436
436
  var EVENT_SOURCE_DEFAULTS = {
437
437
  "event-source.enabled": true,
438
438
  "event-source.persistenceEnabled": true
@@ -449,7 +449,7 @@ var EVENT_SOURCE_CONFIG_REGISTRATION = {
449
449
  ]
450
450
  };
451
451
 
452
- // packages/core/src/env/event-source/event-source-component.ts
452
+ // src/env/event-source/event-source-component.ts
453
453
  var execAsyncImpl = promisify(exec);
454
454
  function getExecAsync() {
455
455
  return execAsyncImpl;
@@ -1294,7 +1294,7 @@ class EventSourceComponent extends BaseComponent {
1294
1294
  }
1295
1295
  }
1296
1296
  }
1297
- // packages/core/src/env/event-source/event-source-agent-handler.ts
1297
+ // src/env/event-source/event-source-agent-handler.ts
1298
1298
  init_logger();
1299
1299
  var logger3 = createLogger("event-source-agent-handler");
1300
1300
 
@@ -1344,7 +1344,7 @@ class EventSourceAgentHandler {
1344
1344
  return { ...this.config };
1345
1345
  }
1346
1346
  }
1347
- // packages/core/src/env/event-source/types.ts
1347
+ // src/env/event-source/types.ts
1348
1348
  function isValidEventSourceType(type) {
1349
1349
  return ["lark-cli", "websocket", "timer", "http-webhook", "file-watcher"].includes(type);
1350
1350
  }
@@ -3,8 +3,8 @@ import {
3
3
  hasDecoratorNodes,
4
4
  init_node_registry_helper,
5
5
  registerDecoratorNodeType
6
- } from "./roy-agent-core-1z1zv5g8.js";
7
- import"./roy-agent-core-3tnb2005.js";
6
+ } from "./roy-agent-core-0rtxwr28.js";
7
+ import"./roy-agent-core-1ce3fqrk.js";
8
8
  import"./roy-agent-core-fs0mn2jk.js";
9
9
  init_node_registry_helper();
10
10
 
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  XDG_PATHS
3
- } from "./roy-agent-core-5my94ywp.js";
3
+ } from "./roy-agent-core-qxnbvgwe.js";
4
4
  import {
5
5
  fromEnvKey,
6
6
  toEnvKey
7
- } from "./roy-agent-core-jv3b7v9w.js";
7
+ } from "./roy-agent-core-qxhq8ven.js";
8
8
  import {
9
9
  BaseComponent
10
- } from "./roy-agent-core-m2x48hw6.js";
10
+ } from "./roy-agent-core-rbetrphj.js";
11
11
  import {
12
12
  __require
13
13
  } from "./roy-agent-core-fs0mn2jk.js";
14
14
 
15
- // packages/core/src/config/config-parser.ts
15
+ // src/config/config-parser.ts
16
16
  import { parse as parseJSONCInternal, ParseErrorCode } from "jsonc-parser";
17
17
  function parseJSONC(content) {
18
18
  const errors = [];
@@ -120,7 +120,7 @@ function parseJSONCWithProtocols(content, resolver) {
120
120
  return substituteEnvVars(withProtocols);
121
121
  }
122
122
 
123
- // packages/core/src/config/file-source.ts
123
+ // src/config/file-source.ts
124
124
  import * as fsSync from "fs";
125
125
  import * as fsPromises from "fs/promises";
126
126
  import path from "path";
@@ -422,7 +422,7 @@ class FileSource {
422
422
  }
423
423
  }
424
424
 
425
- // packages/core/src/config/env-source.ts
425
+ // src/config/env-source.ts
426
426
  class EnvSource {
427
427
  name = "env";
428
428
  priority = 20;
@@ -613,7 +613,7 @@ class EnvSource {
613
613
  }
614
614
  }
615
615
 
616
- // packages/core/src/config/protocol-resolver.ts
616
+ // src/config/protocol-resolver.ts
617
617
  var PROTOCOL_PATTERN = /^\$\{([^:]+):\/\/([^:#]+)(?:#([^:-]+))?(?::-(.*))?\}$/;
618
618
 
619
619
  class ProtocolResolver {
@@ -724,7 +724,7 @@ class ProtocolResolver {
724
724
  }
725
725
  }
726
726
 
727
- // packages/core/src/config/config-component.ts
727
+ // src/config/config-component.ts
728
728
  import * as os from "os";
729
729
  import * as path2 from "path";
730
730
 
@@ -3,7 +3,7 @@ import {
3
3
  __require
4
4
  } from "./roy-agent-core-fs0mn2jk.js";
5
5
 
6
- // packages/core/src/env/log-trace/span-storage.ts
6
+ // src/env/log-trace/span-storage.ts
7
7
  class SQLiteSpanStorage {
8
8
  db = null;
9
9
  dbPath;
@@ -2,37 +2,37 @@ import {
2
2
  init_search_query_parser,
3
3
  matchesQuery,
4
4
  parseSearchQuery
5
- } from "./roy-agent-core-0sgn3de4.js";
6
- import {
7
- MemorySessionStore,
8
- SQLiteSessionStore
9
- } from "./roy-agent-core-2hqxnaf3.js";
5
+ } from "./roy-agent-core-rvxg1wps.js";
10
6
  import {
11
7
  SummaryAgent
12
- } from "./roy-agent-core-gv1hrn3x.js";
13
- import {
14
- TracedAs,
15
- init_decorator
16
- } from "./roy-agent-core-04qgbjbe.js";
8
+ } from "./roy-agent-core-j3bbr2n0.js";
17
9
  import {
18
10
  envKeyToConfigKey
19
- } from "./roy-agent-core-jv3b7v9w.js";
11
+ } from "./roy-agent-core-qxhq8ven.js";
20
12
  import {
21
13
  BaseComponent
22
- } from "./roy-agent-core-m2x48hw6.js";
14
+ } from "./roy-agent-core-rbetrphj.js";
15
+ import {
16
+ MemorySessionStore,
17
+ SQLiteSessionStore
18
+ } from "./roy-agent-core-2x0m2p66.js";
19
+ import {
20
+ TracedAs,
21
+ init_decorator
22
+ } from "./roy-agent-core-35x0wrtt.js";
23
23
  import {
24
24
  createLogger,
25
25
  init_logger
26
- } from "./roy-agent-core-yn761yve.js";
26
+ } from "./roy-agent-core-j3wc4465.js";
27
27
  import {
28
28
  __legacyDecorateClassTS
29
29
  } from "./roy-agent-core-fs0mn2jk.js";
30
30
 
31
- // packages/core/src/env/session/session-component.ts
31
+ // src/env/session/session-component.ts
32
32
  init_logger();
33
33
  init_decorator();
34
34
 
35
- // packages/core/src/env/session/session-config-registration.ts
35
+ // src/env/session/session-config-registration.ts
36
36
  var SESSION_DEFAULTS = {
37
37
  "session.defaultDirectory": "/tmp",
38
38
  "session.defaultTitleTemplate": "Session - {date}",
@@ -64,7 +64,7 @@ var SESSION_CONFIG_REGISTRATION = {
64
64
  ]
65
65
  };
66
66
 
67
- // packages/core/src/env/session/session-component.ts
67
+ // src/env/session/session-component.ts
68
68
  init_search_query_parser();
69
69
  import path from "path";
70
70
  var logger = createLogger("session");
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  AskUserError,
3
3
  init_workflow_hil
4
- } from "./roy-agent-core-8dvbn7tw.js";
4
+ } from "./roy-agent-core-e25xkv53.js";
5
5
  import {
6
6
  envKeyToConfigKey,
7
7
  toEnvKey
8
- } from "./roy-agent-core-jv3b7v9w.js";
8
+ } from "./roy-agent-core-qxhq8ven.js";
9
9
  import {
10
10
  BaseComponent
11
- } from "./roy-agent-core-m2x48hw6.js";
11
+ } from "./roy-agent-core-rbetrphj.js";
12
12
  import {
13
13
  ToolHookPoints,
14
14
  globalHookManager
15
- } from "./roy-agent-core-w75rafhy.js";
15
+ } from "./roy-agent-core-gmnkza34.js";
16
16
  import {
17
17
  createLogger,
18
18
  init_logger
19
- } from "./roy-agent-core-yn761yve.js";
19
+ } from "./roy-agent-core-j3wc4465.js";
20
20
  import {
21
21
  __require
22
22
  } from "./roy-agent-core-fs0mn2jk.js";
23
- // packages/core/src/env/tool/tool-component.ts
23
+ // src/env/tool/tool-component.ts
24
24
  import { z } from "zod";
25
25
 
26
- // packages/core/src/env/tool/registry.ts
26
+ // src/env/tool/registry.ts
27
27
  class ToolRegistry {
28
28
  tools = new Map;
29
29
  register(tool, registration) {
@@ -108,7 +108,7 @@ class ToolRegistry {
108
108
  }
109
109
  }
110
110
 
111
- // packages/core/src/env/tool/validator.ts
111
+ // src/env/tool/validator.ts
112
112
  import { ZodError } from "zod";
113
113
 
114
114
  class ToolValidator {
@@ -138,10 +138,10 @@ class ToolValidator {
138
138
  }
139
139
  }
140
140
 
141
- // packages/core/src/env/tool/tool-component.ts
141
+ // src/env/tool/tool-component.ts
142
142
  init_logger();
143
143
 
144
- // packages/core/src/env/tool/tool-config-registration.ts
144
+ // src/env/tool/tool-config-registration.ts
145
145
  var TOOL_DEFAULTS = {
146
146
  "tool.toolsDir": ".roy/tools",
147
147
  "tool.builtInTools.enabled": true,
@@ -167,7 +167,7 @@ var TOOL_CONFIG_REGISTRATION = {
167
167
  ]
168
168
  };
169
169
 
170
- // packages/core/src/env/tool/tool-component.ts
170
+ // src/env/tool/tool-component.ts
171
171
  init_workflow_hil();
172
172
  var logger = createLogger("tool");
173
173
 
@@ -404,7 +404,7 @@ class ToolComponent extends BaseComponent {
404
404
  }
405
405
  async loadBuiltInTools() {
406
406
  try {
407
- const { getAllBuiltInTools } = await import("../../packages/core/src/env/tool/built-in/index.js");
407
+ const { getAllBuiltInTools } = await import("../../env/tool/built-in/index.js");
408
408
  const tools = getAllBuiltInTools();
409
409
  this.registerMany(tools, "built-in");
410
410
  logger.info(`Loaded ${tools.length} built-in tools`);
@@ -1,4 +1,4 @@
1
- // packages/core/src/env/errors.ts
1
+ // src/env/errors.ts
2
2
  var ErrorCodes = {
3
3
  AGENT_NOT_FOUND: "AGENT_001",
4
4
  AGENT_RUN_FAILED: "AGENT_002",
@@ -1,4 +1,4 @@
1
- // packages/core/src/env/task/tools/task-types.ts
1
+ // src/env/task/tools/task-types.ts
2
2
  import { z } from "zod";
3
3
  var CreateTaskToolSchema = z.object({
4
4
  title: z.string().describe("Task title"),
@@ -34,7 +34,7 @@ var DeleteTaskToolSchema = z.object({
34
34
  task_id: z.number().describe("Task ID")
35
35
  });
36
36
 
37
- // packages/core/src/env/task/tools/create-tool.ts
37
+ // src/env/task/tools/create-tool.ts
38
38
  function createTaskTool(taskComponent) {
39
39
  return {
40
40
  name: "task_create",
@@ -74,7 +74,7 @@ function createTaskTool(taskComponent) {
74
74
  }
75
75
  };
76
76
  }
77
- // packages/core/src/env/task/tools/get-tool.ts
77
+ // src/env/task/tools/get-tool.ts
78
78
  function getTaskTool(taskComponent) {
79
79
  return {
80
80
  name: "task_get",
@@ -125,7 +125,7 @@ function getTaskTool(taskComponent) {
125
125
  }
126
126
  };
127
127
  }
128
- // packages/core/src/env/task/tools/list-tool.ts
128
+ // src/env/task/tools/list-tool.ts
129
129
  function listTasksTool(taskComponent) {
130
130
  return {
131
131
  name: "task_list",
@@ -156,7 +156,7 @@ function listTasksTool(taskComponent) {
156
156
  }
157
157
  };
158
158
  }
159
- // packages/core/src/env/task/tools/update-tool.ts
159
+ // src/env/task/tools/update-tool.ts
160
160
  function updateTaskTool(taskComponent) {
161
161
  return {
162
162
  name: "task_update",
@@ -214,7 +214,7 @@ function updateTaskTool(taskComponent) {
214
214
  }
215
215
  };
216
216
  }
217
- // packages/core/src/env/task/tools/delete-tool.ts
217
+ // src/env/task/tools/delete-tool.ts
218
218
  function deleteTaskTool(taskComponent) {
219
219
  return {
220
220
  name: "task_delete",
@@ -248,7 +248,7 @@ function deleteTaskTool(taskComponent) {
248
248
  }
249
249
  };
250
250
  }
251
- // packages/core/src/env/task/tools/complete-tool.ts
251
+ // src/env/task/tools/complete-tool.ts
252
252
  function completeTaskTool(taskComponent) {
253
253
  return {
254
254
  name: "task_complete",
@@ -2,7 +2,7 @@ import {
2
2
  __esm
3
3
  } from "./roy-agent-core-fs0mn2jk.js";
4
4
 
5
- // packages/core/src/env/workflow/types/workflow-hil.ts
5
+ // src/env/workflow/types/workflow-hil.ts
6
6
  function createNodeInterruptEvent(runId, nodeId, nodeType, query, agentSessionId) {
7
7
  return {
8
8
  type: "node.interrupt",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SQLiteSpanStorage,
3
3
  init_span_storage
4
- } from "./roy-agent-core-j8zx62zr.js";
4
+ } from "./roy-agent-core-bncgx3gb.js";
5
5
  import"./roy-agent-core-fs0mn2jk.js";
6
6
  init_span_storage();
7
7
 
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  TracedAs,
3
3
  init_decorator
4
- } from "./roy-agent-core-04qgbjbe.js";
4
+ } from "./roy-agent-core-35x0wrtt.js";
5
5
  import {
6
6
  __legacyDecorateClassTS
7
7
  } from "./roy-agent-core-fs0mn2jk.js";
8
8
 
9
- // packages/core/src/env/session/session-message-converter.ts
9
+ // src/env/session/session-message-converter.ts
10
10
  init_decorator();
11
11
  import { randomUUID } from "crypto";
12
12
  var DEFAULT_REASONING_BUDGET_TOKENS = 1e4;
@@ -3,12 +3,12 @@ import {
3
3
  init_propagation,
4
4
  init_tracer_provider,
5
5
  propagation
6
- } from "./roy-agent-core-1k28kg7h.js";
6
+ } from "./roy-agent-core-fv32jaa8.js";
7
7
  import {
8
8
  __toCommonJS
9
9
  } from "./roy-agent-core-fs0mn2jk.js";
10
10
 
11
- // packages/core/src/env/tool/built-in/bash.ts
11
+ // src/env/tool/built-in/bash.ts
12
12
  init_propagation();
13
13
  import { z } from "zod";
14
14
  import { exec } from "child_process";
@@ -156,7 +156,7 @@ var bashTool = {
156
156
  }
157
157
  };
158
158
 
159
- // packages/core/src/env/tool/built-in/echo.ts
159
+ // src/env/tool/built-in/echo.ts
160
160
  var echoTool = {
161
161
  name: "echo",
162
162
  description: "Echo a message to the console. Useful for logging in workflows.",
@@ -179,7 +179,7 @@ var echoTool = {
179
179
  }
180
180
  };
181
181
 
182
- // packages/core/src/env/tool/built-in/glob.ts
182
+ // src/env/tool/built-in/glob.ts
183
183
  import { z as z2 } from "zod";
184
184
  import { glob as globAsync } from "glob";
185
185
  var globTool = {
@@ -235,7 +235,7 @@ var globTool = {
235
235
  }
236
236
  };
237
237
 
238
- // packages/core/src/env/tool/built-in/read-file.ts
238
+ // src/env/tool/built-in/read-file.ts
239
239
  import { z as z3 } from "zod";
240
240
  import { readFile } from "fs/promises";
241
241
  var readFileTool = {
@@ -303,7 +303,7 @@ var readFileTool = {
303
303
  }
304
304
  };
305
305
 
306
- // packages/core/src/env/tool/built-in/write-file.ts
306
+ // src/env/tool/built-in/write-file.ts
307
307
  import { z as z4 } from "zod";
308
308
  import { writeFile, mkdir } from "fs/promises";
309
309
  import { dirname } from "path";
@@ -364,7 +364,7 @@ var writeFileTool = {
364
364
  }
365
365
  };
366
366
 
367
- // packages/core/src/env/tool/built-in/edit-file.ts
367
+ // src/env/tool/built-in/edit-file.ts
368
368
  import { z as z5 } from "zod";
369
369
  import { readFile as readFile2, writeFile as writeFile2 } from "fs/promises";
370
370
  var editFileTool = {
@@ -435,7 +435,7 @@ function escapeRegExp(string) {
435
435
  return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
436
436
  }
437
437
 
438
- // packages/core/src/env/tool/built-in/grep.ts
438
+ // src/env/tool/built-in/grep.ts
439
439
  import { z as z6 } from "zod";
440
440
  import { readFile as readFile3 } from "fs/promises";
441
441
  import { glob as globAsync2 } from "glob";
@@ -529,7 +529,7 @@ var grepTool = {
529
529
  }
530
530
  };
531
531
 
532
- // packages/core/src/env/tool/built-in/index.ts
532
+ // src/env/tool/built-in/index.ts
533
533
  function getAllBuiltInTools() {
534
534
  return [
535
535
  bashTool,