@ai-setting/roy-agent-core 1.5.17-beta.1 → 1.5.23

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 (58) hide show
  1. package/dist/env/event-source/index.js +41 -0
  2. package/dist/env/index.js +24 -10
  3. package/dist/env/log-trace/index.js +1 -1
  4. package/dist/env/prompt/index.js +1 -1
  5. package/dist/env/workflow/engine/index.js +1 -1
  6. package/dist/env/workflow/index.js +2 -2
  7. package/dist/index.js +35 -8
  8. package/dist/shared/@ai-setting/roy-agent-core-2grcjaad.js +0 -0
  9. package/dist/shared/@ai-setting/{roy-agent-core-xq8hhqb8.js → roy-agent-core-4wjywp3c.js} +4 -2
  10. package/dist/shared/@ai-setting/roy-agent-core-5ex3za0m.js +817 -0
  11. package/dist/shared/@ai-setting/roy-agent-core-8jxva565.js +19 -0
  12. package/dist/shared/@ai-setting/roy-agent-core-avq1x4t7.js +84 -0
  13. package/dist/shared/@ai-setting/{roy-agent-core-gq20wsgv.js → roy-agent-core-ffb9fq4v.js} +23 -2
  14. package/dist/shared/@ai-setting/roy-agent-core-j1sr5pk9.js +424 -0
  15. package/dist/shared/@ai-setting/{roy-agent-core-93zfb3r1.js → roy-agent-core-mrcxzpbg.js} +1 -1
  16. package/dist/shared/@ai-setting/{roy-agent-core-rhmtwnw1.js → roy-agent-core-pw7cv1px.js} +1 -1
  17. package/dist/shared/@ai-setting/{roy-agent-core-wrcy0h6z.js → roy-agent-core-ty94k28r.js} +1 -1
  18. package/package.json +8 -29
  19. package/dist/config/index.d.ts +0 -1250
  20. package/dist/env/agent/index.d.ts +0 -2279
  21. package/dist/env/commands/index.d.ts +0 -1131
  22. package/dist/env/debug/formatters/index.d.ts +0 -236
  23. package/dist/env/debug/index.d.ts +0 -1652
  24. package/dist/env/hook/index.d.ts +0 -279
  25. package/dist/env/index.d.ts +0 -3481
  26. package/dist/env/llm/index.d.ts +0 -1760
  27. package/dist/env/log-trace/index.d.ts +0 -1574
  28. package/dist/env/mcp/index.d.ts +0 -1331
  29. package/dist/env/mcp/tool/index.d.ts +0 -183
  30. package/dist/env/memory/built-in/index.d.ts +0 -232
  31. package/dist/env/memory/index.d.ts +0 -1799
  32. package/dist/env/memory/plugin/index.d.ts +0 -747
  33. package/dist/env/prompt/index.d.ts +0 -1164
  34. package/dist/env/session/index.d.ts +0 -1908
  35. package/dist/env/session/storage/index.d.ts +0 -564
  36. package/dist/env/skill/index.d.ts +0 -1266
  37. package/dist/env/skill/tool/index.d.ts +0 -193
  38. package/dist/env/task/delegate/index.d.ts +0 -1612
  39. package/dist/env/task/events/index.d.ts +0 -171
  40. package/dist/env/task/hooks/index.d.ts +0 -624
  41. package/dist/env/task/index.d.ts +0 -1553
  42. package/dist/env/task/plugins/index.d.ts +0 -466
  43. package/dist/env/task/storage/index.d.ts +0 -241
  44. package/dist/env/task/tools/index.d.ts +0 -1485
  45. package/dist/env/task/tools/operation/index.d.ts +0 -1484
  46. package/dist/env/tool/built-in/index.d.ts +0 -218
  47. package/dist/env/tool/index.d.ts +0 -1396
  48. package/dist/env/workflow/decorators/index.d.ts +0 -2161
  49. package/dist/env/workflow/engine/index.d.ts +0 -3453
  50. package/dist/env/workflow/index.d.ts +0 -3546
  51. package/dist/env/workflow/nodes/index.d.ts +0 -2092
  52. package/dist/env/workflow/service/index.d.ts +0 -227
  53. package/dist/env/workflow/storage/index.d.ts +0 -165
  54. package/dist/env/workflow/tools/index.d.ts +0 -416
  55. package/dist/env/workflow/types/index.d.ts +0 -2255
  56. package/dist/env/workflow/utils/index.d.ts +0 -2031
  57. package/dist/index.d.ts +0 -7858
  58. package/dist/shared/@ai-setting/roy-agent-core-gbqcyegm.js +0 -1387
@@ -1,236 +0,0 @@
1
- /**
2
- * @fileoverview Debug Component Types
3
- *
4
- * Type definitions for trace parsing, formatting, and debugging utilities.
5
- */
6
- /**
7
- * Trace action type
8
- */
9
- type TraceAction = "enter" | "quit" | "error";
10
- /**
11
- * Trace entry representing a single log line with trace info
12
- */
13
- interface TraceEntry {
14
- /** Unique request/trace identifier */
15
- traceId: string;
16
- /** Timestamp of the entry (ISO format) */
17
- timestamp: string;
18
- /** Function/method name */
19
- function: string;
20
- /** Action type: enter, quit, or error */
21
- action: TraceAction;
22
- /** Parameters (for enter action) */
23
- params?: unknown[];
24
- /** Result (for quit action) */
25
- result?: unknown;
26
- /** Error message (for error action) */
27
- error?: string;
28
- /** Calculated duration in milliseconds (for quit action) */
29
- durationMs?: number;
30
- /** Span ID (for SQLite spans) */
31
- spanId?: string;
32
- /** Parent span ID (for SQLite spans) */
33
- parentSpanId?: string;
34
- }
35
- /**
36
- * Call tree node for hierarchical trace visualization
37
- */
38
- interface TraceTreeNode {
39
- /** Unique request/trace identifier */
40
- traceId: string;
41
- /** Function/method name */
42
- function: string;
43
- /** Start timestamp */
44
- startTime: string;
45
- /** End timestamp (for completed nodes) */
46
- endTime?: string;
47
- /** Duration in milliseconds */
48
- durationMs?: number;
49
- /** Child nodes */
50
- children: TraceTreeNode[];
51
- /** Original trace entry (optional for programmatically created nodes) */
52
- entry?: TraceEntry;
53
- /** Span ID (for SQLite spans) */
54
- spanId?: string;
55
- /** Parent span ID (for SQLite spans) */
56
- parentSpanId?: string;
57
- }
58
- /**
59
- * Output format options
60
- */
61
- interface FormatOptions {
62
- /** Use pretty printing */
63
- pretty?: boolean;
64
- /** Maximum depth for recursive objects */
65
- maxDepth?: number;
66
- /** Include raw data */
67
- includeRaw?: boolean;
68
- }
69
- /**
70
- * Formats trace entries for human-readable output
71
- */
72
- declare class TraceFormatter {
73
- /**
74
- * Format a single trace entry
75
- */
76
- formatEntry(entry: TraceEntry, options?: FormatOptions): string;
77
- /**
78
- * Indent all lines after the first one
79
- */
80
- private indentMultilineContent;
81
- /**
82
- * Format multiple trace entries
83
- */
84
- formatEntries(entries: TraceEntry[], options?: FormatOptions): string;
85
- /**
86
- * Format data with proper indentation for multi-line content
87
- */
88
- private formatData;
89
- /**
90
- * Format data with pretty printing and indentation
91
- */
92
- private formatPretty;
93
- /**
94
- * Output as JSON
95
- */
96
- toJSON(entries: TraceEntry[]): string;
97
- /**
98
- * Generate a summary of trace entries
99
- */
100
- toSummary(entries: TraceEntry[]): string;
101
- }
102
- /**
103
- * Options for tree formatting
104
- */
105
- interface TreeFormatOptions {
106
- /** Show duration percentage (default: true) */
107
- showPercent?: boolean;
108
- /** Show time bar (default: false) */
109
- showTimeBar?: boolean;
110
- /** Width of time bar (default: 10) */
111
- barWidth?: number;
112
- }
113
- /**
114
- * Formats trace call trees for human-readable output
115
- */
116
- declare class TreeFormatter {
117
- private options;
118
- constructor(options?: TreeFormatOptions);
119
- /**
120
- * Color function based on percentage
121
- */
122
- private colorByPercent;
123
- /**
124
- * Format a single trace tree
125
- */
126
- formatTree(node: TraceTreeNode): string;
127
- /**
128
- * Format a single node
129
- */
130
- private formatNode;
131
- /**
132
- * Recursively format children
133
- */
134
- private formatChildren;
135
- /**
136
- * Render a time bar showing relative duration
137
- */
138
- private renderTimeBar;
139
- /**
140
- * Format duration in human-readable form
141
- */
142
- private formatDuration;
143
- /**
144
- * Format multiple trace trees
145
- */
146
- formatTrees(trees: TraceTreeNode[]): string;
147
- /**
148
- * Output as JSON
149
- */
150
- toJSON(trees: TraceTreeNode[]): string;
151
- /**
152
- * Generate a summary table of all spans sorted by duration
153
- */
154
- formatSummary(node: TraceTreeNode): string;
155
- /**
156
- * Format tree with timeline visualization
157
- */
158
- formatTimeline(node: TraceTreeNode): string;
159
- /**
160
- * Build timeline visualization with absolute positioning
161
- */
162
- private buildTimeline;
163
- }
164
- interface ReplContext {
165
- traceId?: string;
166
- function?: string;
167
- limit?: number;
168
- }
169
- interface ParsedCommand {
170
- command: string;
171
- args: Record<string, string>;
172
- }
173
- /**
174
- * Formats output for REPL interface and provides command parsing
175
- */
176
- declare class ReplFormatter {
177
- private context;
178
- private history;
179
- /**
180
- * Get welcome message for REPL
181
- */
182
- getWelcomeMessage(): string;
183
- /**
184
- * Format prompt with current context
185
- */
186
- formatPrompt(context?: Partial<ReplContext>): string;
187
- /**
188
- * Get help text
189
- */
190
- getHelpText(): string;
191
- /**
192
- * Format command result
193
- */
194
- formatCommandResult(command: string, data: unknown): string;
195
- /**
196
- * Format list command result
197
- */
198
- private formatListResult;
199
- /**
200
- * Format trace command result
201
- */
202
- private formatTraceResult;
203
- /**
204
- * Format tree command result
205
- */
206
- private formatTreeResult;
207
- /**
208
- * Format a single tree node recursively
209
- */
210
- private formatTreeNode;
211
- /**
212
- * Format JSON in compact form
213
- */
214
- private formatJsonCompact;
215
- /**
216
- * Parse command string
217
- */
218
- parseCommand(input: string): ParsedCommand;
219
- /**
220
- * Update context
221
- */
222
- setContext(context: Partial<ReplContext>): void;
223
- /**
224
- * Get current context
225
- */
226
- getContext(): ReplContext;
227
- /**
228
- * Add to history
229
- */
230
- addToHistory(command: string): void;
231
- /**
232
- * Get history
233
- */
234
- getHistory(): string[];
235
- }
236
- export { TreeFormatter, TraceFormatter, ReplFormatter };