@ai-setting/roy-agent-core 1.5.14-test → 1.5.15-test

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 (141) hide show
  1. package/package.json +1 -1
  2. package/dist/config/index.d.ts +0 -1250
  3. package/dist/config/index.js +0 -32
  4. package/dist/env/agent/index.d.ts +0 -2279
  5. package/dist/env/agent/index.js +0 -24
  6. package/dist/env/commands/index.d.ts +0 -1131
  7. package/dist/env/commands/index.js +0 -14
  8. package/dist/env/debug/formatters/index.d.ts +0 -236
  9. package/dist/env/debug/formatters/index.js +0 -11
  10. package/dist/env/debug/index.d.ts +0 -1652
  11. package/dist/env/debug/index.js +0 -26
  12. package/dist/env/hook/index.d.ts +0 -279
  13. package/dist/env/hook/index.js +0 -29
  14. package/dist/env/index.d.ts +0 -3481
  15. package/dist/env/index.js +0 -82
  16. package/dist/env/llm/index.d.ts +0 -1760
  17. package/dist/env/llm/index.js +0 -40
  18. package/dist/env/log-trace/index.d.ts +0 -1574
  19. package/dist/env/log-trace/index.js +0 -83
  20. package/dist/env/mcp/index.d.ts +0 -1331
  21. package/dist/env/mcp/index.js +0 -39
  22. package/dist/env/mcp/tool/index.d.ts +0 -183
  23. package/dist/env/mcp/tool/index.js +0 -14
  24. package/dist/env/memory/built-in/index.d.ts +0 -232
  25. package/dist/env/memory/built-in/index.js +0 -11
  26. package/dist/env/memory/index.d.ts +0 -1799
  27. package/dist/env/memory/index.js +0 -56
  28. package/dist/env/memory/plugin/index.d.ts +0 -747
  29. package/dist/env/memory/plugin/index.js +0 -36
  30. package/dist/env/prompt/index.d.ts +0 -1164
  31. package/dist/env/prompt/index.js +0 -20
  32. package/dist/env/session/index.d.ts +0 -1908
  33. package/dist/env/session/index.js +0 -25
  34. package/dist/env/session/storage/index.d.ts +0 -564
  35. package/dist/env/session/storage/index.js +0 -18
  36. package/dist/env/skill/index.d.ts +0 -1266
  37. package/dist/env/skill/index.js +0 -34
  38. package/dist/env/skill/tool/index.d.ts +0 -193
  39. package/dist/env/skill/tool/index.js +0 -9
  40. package/dist/env/task/delegate/index.d.ts +0 -1612
  41. package/dist/env/task/delegate/index.js +0 -18
  42. package/dist/env/task/events/index.d.ts +0 -171
  43. package/dist/env/task/events/index.js +0 -7
  44. package/dist/env/task/hooks/index.d.ts +0 -624
  45. package/dist/env/task/hooks/index.js +0 -7
  46. package/dist/env/task/index.d.ts +0 -1553
  47. package/dist/env/task/index.js +0 -34
  48. package/dist/env/task/plugins/index.d.ts +0 -466
  49. package/dist/env/task/plugins/index.js +0 -23
  50. package/dist/env/task/storage/index.d.ts +0 -241
  51. package/dist/env/task/storage/index.js +0 -14
  52. package/dist/env/task/tools/index.d.ts +0 -1485
  53. package/dist/env/task/tools/index.js +0 -17
  54. package/dist/env/task/tools/operation/index.d.ts +0 -1484
  55. package/dist/env/task/tools/operation/index.js +0 -15
  56. package/dist/env/tool/built-in/index.d.ts +0 -218
  57. package/dist/env/tool/built-in/index.js +0 -25
  58. package/dist/env/tool/index.d.ts +0 -1396
  59. package/dist/env/tool/index.js +0 -39
  60. package/dist/env/workflow/decorators/index.d.ts +0 -2161
  61. package/dist/env/workflow/decorators/index.js +0 -27
  62. package/dist/env/workflow/engine/index.d.ts +0 -3453
  63. package/dist/env/workflow/engine/index.js +0 -28
  64. package/dist/env/workflow/index.d.ts +0 -3546
  65. package/dist/env/workflow/index.js +0 -136
  66. package/dist/env/workflow/nodes/index.d.ts +0 -2092
  67. package/dist/env/workflow/nodes/index.js +0 -19
  68. package/dist/env/workflow/service/index.d.ts +0 -227
  69. package/dist/env/workflow/service/index.js +0 -13
  70. package/dist/env/workflow/storage/index.d.ts +0 -165
  71. package/dist/env/workflow/storage/index.js +0 -27
  72. package/dist/env/workflow/tools/index.d.ts +0 -416
  73. package/dist/env/workflow/tools/index.js +0 -159
  74. package/dist/env/workflow/types/index.d.ts +0 -2255
  75. package/dist/env/workflow/types/index.js +0 -98
  76. package/dist/env/workflow/utils/index.d.ts +0 -2031
  77. package/dist/env/workflow/utils/index.js +0 -637
  78. package/dist/index.d.ts +0 -7858
  79. package/dist/index.js +0 -399
  80. package/dist/shared/@ai-setting/roy-agent-core-0rtxwr28.js +0 -258
  81. package/dist/shared/@ai-setting/roy-agent-core-0vbdz0x7.js +0 -36
  82. package/dist/shared/@ai-setting/roy-agent-core-1akcqxj9.js +0 -349
  83. package/dist/shared/@ai-setting/roy-agent-core-1ce3fqrk.js +0 -117
  84. package/dist/shared/@ai-setting/roy-agent-core-2dhd60aw.js +0 -11
  85. package/dist/shared/@ai-setting/roy-agent-core-3jywqmdd.js +0 -393
  86. package/dist/shared/@ai-setting/roy-agent-core-3rr5k71j.js +0 -200
  87. package/dist/shared/@ai-setting/roy-agent-core-44hnfb02.js +0 -299
  88. package/dist/shared/@ai-setting/roy-agent-core-4t40mkpv.js +0 -206
  89. package/dist/shared/@ai-setting/roy-agent-core-4txzpsbt.js +0 -393
  90. package/dist/shared/@ai-setting/roy-agent-core-5x94xmt6.js +0 -350
  91. package/dist/shared/@ai-setting/roy-agent-core-69jskqjg.js +0 -180
  92. package/dist/shared/@ai-setting/roy-agent-core-6kvtahqv.js +0 -408
  93. package/dist/shared/@ai-setting/roy-agent-core-7fgf85wc.js +0 -284
  94. package/dist/shared/@ai-setting/roy-agent-core-81w1963m.js +0 -762
  95. package/dist/shared/@ai-setting/roy-agent-core-8gxth0eh.js +0 -10
  96. package/dist/shared/@ai-setting/roy-agent-core-92z6t4he.js +0 -14
  97. package/dist/shared/@ai-setting/roy-agent-core-93zfb3r1.js +0 -922
  98. package/dist/shared/@ai-setting/roy-agent-core-9yxb3ty9.js +0 -15
  99. package/dist/shared/@ai-setting/roy-agent-core-b0x5dda6.js +0 -1130
  100. package/dist/shared/@ai-setting/roy-agent-core-bcbqy27c.js +0 -14
  101. package/dist/shared/@ai-setting/roy-agent-core-bvr1761x.js +0 -653
  102. package/dist/shared/@ai-setting/roy-agent-core-ctdhjv68.js +0 -93
  103. package/dist/shared/@ai-setting/roy-agent-core-d7cyjkf7.js +0 -872
  104. package/dist/shared/@ai-setting/roy-agent-core-dh9d7a3m.js +0 -11
  105. package/dist/shared/@ai-setting/roy-agent-core-e25xkv53.js +0 -64
  106. package/dist/shared/@ai-setting/roy-agent-core-eajcvp4e.js +0 -378
  107. package/dist/shared/@ai-setting/roy-agent-core-f7q2x5z6.js +0 -492
  108. package/dist/shared/@ai-setting/roy-agent-core-fs0mn2jk.js +0 -52
  109. package/dist/shared/@ai-setting/roy-agent-core-g1s2h0e5.js +0 -171
  110. package/dist/shared/@ai-setting/roy-agent-core-g99pxzn5.js +0 -862
  111. package/dist/shared/@ai-setting/roy-agent-core-gbqcyegm.js +0 -1387
  112. package/dist/shared/@ai-setting/roy-agent-core-gjq1yk68.js +0 -208
  113. package/dist/shared/@ai-setting/roy-agent-core-gq20wsgv.js +0 -139
  114. package/dist/shared/@ai-setting/roy-agent-core-gwc4h96n.js +0 -534
  115. package/dist/shared/@ai-setting/roy-agent-core-jfh9q2qh.js +0 -204
  116. package/dist/shared/@ai-setting/roy-agent-core-jvatggbb.js +0 -603
  117. package/dist/shared/@ai-setting/roy-agent-core-kkbwepqb.js +0 -97
  118. package/dist/shared/@ai-setting/roy-agent-core-pjr12nnd.js +0 -587
  119. package/dist/shared/@ai-setting/roy-agent-core-psv4v63c.js +0 -176
  120. package/dist/shared/@ai-setting/roy-agent-core-psvxt4c9.js +0 -60
  121. package/dist/shared/@ai-setting/roy-agent-core-qqceba6k.js +0 -442
  122. package/dist/shared/@ai-setting/roy-agent-core-qxhq8ven.js +0 -57
  123. package/dist/shared/@ai-setting/roy-agent-core-qxnbvgwe.js +0 -66
  124. package/dist/shared/@ai-setting/roy-agent-core-r9ezzemr.js +0 -10
  125. package/dist/shared/@ai-setting/roy-agent-core-rhmtwnw1.js +0 -267
  126. package/dist/shared/@ai-setting/roy-agent-core-rvv6ydff.js +0 -584
  127. package/dist/shared/@ai-setting/roy-agent-core-rvxg1wps.js +0 -102
  128. package/dist/shared/@ai-setting/roy-agent-core-satmq6sh.js +0 -549
  129. package/dist/shared/@ai-setting/roy-agent-core-sx7wsvnn.js +0 -15
  130. package/dist/shared/@ai-setting/roy-agent-core-t94ktchq.js +0 -213
  131. package/dist/shared/@ai-setting/roy-agent-core-vf215qfv.js +0 -812
  132. package/dist/shared/@ai-setting/roy-agent-core-vkz81f7v.js +0 -1316
  133. package/dist/shared/@ai-setting/roy-agent-core-vn2bc59q.js +0 -1205
  134. package/dist/shared/@ai-setting/roy-agent-core-wa1kzqky.js +0 -328
  135. package/dist/shared/@ai-setting/roy-agent-core-wft9ra24.js +0 -20
  136. package/dist/shared/@ai-setting/roy-agent-core-wrcy0h6z.js +0 -2098
  137. package/dist/shared/@ai-setting/roy-agent-core-xq8hhqb8.js +0 -419
  138. package/dist/shared/@ai-setting/roy-agent-core-xs5rsgat.js +0 -368
  139. package/dist/shared/@ai-setting/roy-agent-core-zbkpc41z.js +0 -377
  140. package/dist/shared/@ai-setting/roy-agent-core-zgypchmt.js +0 -172
  141. package/dist/shared/@ai-setting/roy-agent-core-zpn0bqa8.js +0 -103
@@ -1,213 +0,0 @@
1
- // src/env/task/tools/operation/operation-types.ts
2
- import { z } from "zod";
3
- var ActionTypeEnum = z.enum([
4
- "create",
5
- "progress",
6
- "milestone",
7
- "problem",
8
- "solution",
9
- "decision",
10
- "review",
11
- "completed"
12
- ]);
13
- var CreateOperationToolSchema = z.object({
14
- task_id: z.number().describe("Task ID"),
15
- action_type: ActionTypeEnum.describe("Type of action"),
16
- action_title: z.string().describe("Title of the action"),
17
- action_description: z.string().optional().describe("Detailed description"),
18
- md_path: z.string().optional().describe("Path to detailed markdown documentation")
19
- });
20
- var GetOperationToolSchema = z.object({
21
- operation_id: z.number().describe("Operation ID")
22
- });
23
- var ListOperationsToolSchema = z.object({
24
- task_id: z.number().describe("Task ID"),
25
- action_type: ActionTypeEnum.optional(),
26
- limit: z.number().optional().default(20),
27
- offset: z.number().optional().default(0)
28
- });
29
- var UpdateOperationToolSchema = z.object({
30
- operation_id: z.number().describe("Operation ID"),
31
- action_title: z.string().optional(),
32
- action_description: z.string().optional()
33
- });
34
- var DeleteOperationToolSchema = z.object({
35
- operation_id: z.number().describe("Operation ID")
36
- });
37
-
38
- // src/env/task/tools/operation/create-tool.ts
39
- function createOperationTool(taskComponent) {
40
- return {
41
- name: "task_operation_create",
42
- description: "Create an operation record for a task. Tracks progress, milestones, problems, etc.",
43
- parameters: CreateOperationToolSchema,
44
- execute: async (args, ctx) => {
45
- const params = CreateOperationToolSchema.parse(args);
46
- const sessionId = ctx.session_id || "unknown";
47
- try {
48
- const operation = await taskComponent.createOperation({
49
- taskId: params.task_id,
50
- sessionId,
51
- actionType: params.action_type,
52
- actionTitle: params.action_title,
53
- actionDescription: params.action_description,
54
- mdPath: params.md_path
55
- });
56
- return {
57
- success: true,
58
- output: `Operation created: #${operation.id} for task #${operation.taskId}`,
59
- metadata: {
60
- execution_time_ms: 0,
61
- operation_id: operation.id,
62
- task_id: operation.taskId,
63
- session_id: operation.sessionId
64
- }
65
- };
66
- } catch (error) {
67
- return {
68
- success: false,
69
- output: "",
70
- error: error instanceof Error ? error.message : String(error),
71
- metadata: { execution_time_ms: 0 }
72
- };
73
- }
74
- }
75
- };
76
- }
77
- // src/env/task/tools/operation/get-tool.ts
78
- function getOperationTool(taskComponent) {
79
- return {
80
- name: "task_operation_get",
81
- description: "Get a single operation record by ID.",
82
- parameters: GetOperationToolSchema,
83
- execute: async (args, ctx) => {
84
- const params = GetOperationToolSchema.parse(args);
85
- try {
86
- const operation = await taskComponent.getOperation(params.operation_id);
87
- if (!operation) {
88
- return {
89
- success: false,
90
- output: "",
91
- error: `Operation not found: ${params.operation_id}`,
92
- metadata: { execution_time_ms: 0 }
93
- };
94
- }
95
- return {
96
- success: true,
97
- output: JSON.stringify(operation, null, 2),
98
- metadata: { execution_time_ms: 0 }
99
- };
100
- } catch (error) {
101
- return {
102
- success: false,
103
- output: "",
104
- error: error instanceof Error ? error.message : String(error),
105
- metadata: { execution_time_ms: 0 }
106
- };
107
- }
108
- }
109
- };
110
- }
111
- // src/env/task/tools/operation/list-tool.ts
112
- function listOperationsTool(taskComponent) {
113
- return {
114
- name: "task_operation_list",
115
- description: "List operation records for a task with optional filters.",
116
- parameters: ListOperationsToolSchema,
117
- execute: async (args, ctx) => {
118
- const params = ListOperationsToolSchema.parse(args);
119
- try {
120
- const operations = await taskComponent.listOperations({
121
- taskId: params.task_id,
122
- actionType: params.action_type,
123
- limit: params.limit,
124
- offset: params.offset
125
- });
126
- return {
127
- success: true,
128
- output: JSON.stringify({ operations, count: operations.length }),
129
- metadata: { execution_time_ms: 0 }
130
- };
131
- } catch (error) {
132
- return {
133
- success: false,
134
- output: "",
135
- error: error instanceof Error ? error.message : String(error),
136
- metadata: { execution_time_ms: 0 }
137
- };
138
- }
139
- }
140
- };
141
- }
142
- // src/env/task/tools/operation/update-tool.ts
143
- function updateOperationTool(taskComponent) {
144
- return {
145
- name: "task_operation_update",
146
- description: "Update an operation record's title or description.",
147
- parameters: UpdateOperationToolSchema,
148
- execute: async (args, ctx) => {
149
- const params = UpdateOperationToolSchema.parse(args);
150
- try {
151
- const operation = await taskComponent.updateOperation(params.operation_id, {
152
- actionTitle: params.action_title,
153
- actionDescription: params.action_description
154
- });
155
- if (!operation) {
156
- return {
157
- success: false,
158
- output: "",
159
- error: `Operation not found: ${params.operation_id}`,
160
- metadata: { execution_time_ms: 0 }
161
- };
162
- }
163
- return {
164
- success: true,
165
- output: `Operation updated: #${operation.id}`,
166
- metadata: { execution_time_ms: 0, operation }
167
- };
168
- } catch (error) {
169
- return {
170
- success: false,
171
- output: "",
172
- error: error instanceof Error ? error.message : String(error),
173
- metadata: { execution_time_ms: 0 }
174
- };
175
- }
176
- }
177
- };
178
- }
179
- // src/env/task/tools/operation/delete-tool.ts
180
- function deleteOperationTool(taskComponent) {
181
- return {
182
- name: "task_operation_delete",
183
- description: "Delete an operation record.",
184
- parameters: DeleteOperationToolSchema,
185
- execute: async (args, ctx) => {
186
- const params = DeleteOperationToolSchema.parse(args);
187
- try {
188
- const deleted = await taskComponent.deleteOperation(params.operation_id);
189
- if (!deleted) {
190
- return {
191
- success: false,
192
- output: "",
193
- error: `Operation not found: ${params.operation_id}`,
194
- metadata: { execution_time_ms: 0 }
195
- };
196
- }
197
- return {
198
- success: true,
199
- output: `Operation deleted: #${params.operation_id}`,
200
- metadata: { execution_time_ms: 0 }
201
- };
202
- } catch (error) {
203
- return {
204
- success: false,
205
- output: "",
206
- error: error instanceof Error ? error.message : String(error),
207
- metadata: { execution_time_ms: 0 }
208
- };
209
- }
210
- }
211
- };
212
- }
213
- export { createOperationTool, getOperationTool, listOperationsTool, updateOperationTool, deleteOperationTool };