@olane/o-lane 0.7.12-alpha.76 → 0.7.12
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/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -2
- package/dist/src/prompts/agent.prompt.d.ts +11 -0
- package/dist/src/prompts/agent.prompt.d.ts.map +1 -1
- package/dist/src/prompts/agent.prompt.js +14 -3
- package/dist/src/prompts/configure.prompt.d.ts +7 -0
- package/dist/src/prompts/configure.prompt.d.ts.map +1 -1
- package/dist/src/prompts/configure.prompt.js +8 -1
- package/dist/src/prompts/custom.prompt.d.ts +7 -0
- package/dist/src/prompts/custom.prompt.d.ts.map +1 -1
- package/dist/src/prompts/custom.prompt.js +77 -0
- package/dist/src/storage/index.d.ts +8 -0
- package/dist/src/storage/index.d.ts.map +1 -0
- package/dist/src/storage/index.js +12 -0
- package/dist/src/storage/interfaces/prompt-storage.interface.d.ts +102 -0
- package/dist/src/storage/interfaces/prompt-storage.interface.d.ts.map +1 -0
- package/dist/src/storage/methods/prompt-storage.methods.d.ts +9 -0
- package/dist/src/storage/methods/prompt-storage.methods.d.ts.map +1 -0
- package/dist/src/storage/methods/prompt-storage.methods.js +338 -0
- package/dist/src/storage/prompt-loader.d.ts +40 -0
- package/dist/src/storage/prompt-loader.d.ts.map +1 -0
- package/dist/src/storage/prompt-loader.js +126 -0
- package/dist/src/storage/prompt-schema.d.ts +42 -0
- package/dist/src/storage/prompt-schema.d.ts.map +1 -0
- package/dist/src/storage/prompt-schema.js +29 -0
- package/dist/src/storage/prompt-seeder.d.ts +42 -0
- package/dist/src/storage/prompt-seeder.d.ts.map +1 -0
- package/dist/src/storage/prompt-seeder.js +141 -0
- package/dist/src/storage/prompt-storage-provider.tool.d.ts +99 -0
- package/dist/src/storage/prompt-storage-provider.tool.d.ts.map +1 -0
- package/dist/src/storage/prompt-storage-provider.tool.js +320 -0
- package/dist/test/prompt-seeder.spec.d.ts +2 -0
- package/dist/test/prompt-seeder.spec.d.ts.map +1 -0
- package/dist/test/prompt-seeder.spec.js +254 -0
- package/dist/test/prompt-storage-provider.spec.d.ts +2 -0
- package/dist/test/prompt-storage-provider.spec.d.ts.map +1 -0
- package/dist/test/prompt-storage-provider.spec.js +456 -0
- package/package.json +10 -7
- package/dist/src/ag-ui/ag-ui-constants.d.ts +0 -90
- package/dist/src/ag-ui/ag-ui-constants.d.ts.map +0 -1
- package/dist/src/ag-ui/ag-ui-constants.js +0 -113
- package/dist/src/ag-ui/ag-ui-event-mapper.d.ts +0 -88
- package/dist/src/ag-ui/ag-ui-event-mapper.d.ts.map +0 -1
- package/dist/src/ag-ui/ag-ui-event-mapper.js +0 -487
- package/dist/src/ag-ui/ag-ui-olane.tool.d.ts +0 -45
- package/dist/src/ag-ui/ag-ui-olane.tool.d.ts.map +0 -1
- package/dist/src/ag-ui/ag-ui-olane.tool.js +0 -257
- package/dist/src/ag-ui/ag-ui-stream-manager.d.ts +0 -99
- package/dist/src/ag-ui/ag-ui-stream-manager.d.ts.map +0 -1
- package/dist/src/ag-ui/ag-ui-stream-manager.js +0 -160
- package/dist/src/ag-ui/ag-ui-utils.d.ts +0 -50
- package/dist/src/ag-ui/ag-ui-utils.d.ts.map +0 -1
- package/dist/src/ag-ui/ag-ui-utils.js +0 -287
- package/dist/src/ag-ui/index.d.ts +0 -17
- package/dist/src/ag-ui/index.d.ts.map +0 -1
- package/dist/src/ag-ui/index.js +0 -21
- package/dist/src/ag-ui/transports/ag-ui-transport.interface.d.ts +0 -44
- package/dist/src/ag-ui/transports/ag-ui-transport.interface.d.ts.map +0 -1
- package/dist/src/ag-ui/transports/ag-ui-transport.interface.js +0 -26
- package/dist/src/ag-ui/transports/callback-transport.d.ts +0 -13
- package/dist/src/ag-ui/transports/callback-transport.d.ts.map +0 -1
- package/dist/src/ag-ui/transports/callback-transport.js +0 -26
- package/dist/src/ag-ui/transports/console-transport.d.ts +0 -14
- package/dist/src/ag-ui/transports/console-transport.d.ts.map +0 -1
- package/dist/src/ag-ui/transports/console-transport.js +0 -63
- package/dist/src/ag-ui/transports/index.d.ts +0 -5
- package/dist/src/ag-ui/transports/index.d.ts.map +0 -1
- package/dist/src/ag-ui/transports/index.js +0 -4
- package/dist/src/ag-ui/transports/onode-transport.d.ts +0 -34
- package/dist/src/ag-ui/transports/onode-transport.d.ts.map +0 -1
- package/dist/src/ag-ui/transports/onode-transport.js +0 -83
- package/dist/src/ag-ui/types/ag-ui-config.interface.d.ts +0 -105
- package/dist/src/ag-ui/types/ag-ui-config.interface.d.ts.map +0 -1
- package/dist/src/ag-ui/types/ag-ui-event.types.d.ts +0 -266
- package/dist/src/ag-ui/types/ag-ui-event.types.d.ts.map +0 -1
- package/dist/src/ag-ui/types/ag-ui-event.types.js +0 -6
- package/dist/src/ag-ui/types/index.d.ts +0 -3
- package/dist/src/ag-ui/types/index.d.ts.map +0 -1
- package/dist/src/ag-ui/types/index.js +0 -2
- package/dist/test/ai.spec.d.ts +0 -2
- package/dist/test/ai.spec.d.ts.map +0 -1
- package/dist/test/ai.spec.js +0 -19
- /package/dist/src/{ag-ui/types/ag-ui-config.interface.js → storage/interfaces/prompt-storage.interface.js} +0 -0
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { oNodeConfig } from '@olane/o-node';
|
|
2
|
-
import { AGUITransport } from '../transports/ag-ui-transport.interface.js';
|
|
3
|
-
/**
|
|
4
|
-
* Configuration for AG-UI oLane Tool
|
|
5
|
-
*/
|
|
6
|
-
export interface AGUIoLaneConfig extends oNodeConfig {
|
|
7
|
-
/**
|
|
8
|
-
* AG-UI event transport mechanism
|
|
9
|
-
* Determines how events are delivered to the frontend
|
|
10
|
-
*/
|
|
11
|
-
agUITransport?: AGUITransport;
|
|
12
|
-
/**
|
|
13
|
-
* Enable AG-UI event streaming
|
|
14
|
-
* @default true
|
|
15
|
-
*/
|
|
16
|
-
enableAGUI?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Filter events to emit (if undefined, all events are emitted)
|
|
19
|
-
* Useful for reducing event volume or focusing on specific event types
|
|
20
|
-
*/
|
|
21
|
-
eventFilter?: string[];
|
|
22
|
-
/**
|
|
23
|
-
* Enable debug logging for AG-UI events
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
debugAGUI?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Emit state snapshots every N cycles (0 = only deltas, undefined = snapshots + deltas)
|
|
29
|
-
* @default 5
|
|
30
|
-
*/
|
|
31
|
-
stateSnapshotInterval?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Maximum delta history to keep for state reconstruction
|
|
34
|
-
* @default 100
|
|
35
|
-
*/
|
|
36
|
-
maxDeltaHistory?: number;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Configuration for event mapping behavior
|
|
40
|
-
*/
|
|
41
|
-
export interface AGUIEventMappingConfig {
|
|
42
|
-
/**
|
|
43
|
-
* Include raw oLane events in AG-UI Raw events
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
includeRawEvents?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Emit activity events for capability execution progress
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
emitActivityEvents?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Emit reasoning events for EVALUATE capability
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
emitReasoningEvents?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Chunk size for streaming large text content
|
|
59
|
-
* @default 100
|
|
60
|
-
*/
|
|
61
|
-
textChunkSize?: number;
|
|
62
|
-
/**
|
|
63
|
-
* Generate thread ID from lane context if not provided
|
|
64
|
-
* @default true
|
|
65
|
-
*/
|
|
66
|
-
autoGenerateThreadId?: boolean;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Context for event emission during lane execution
|
|
70
|
-
*/
|
|
71
|
-
export interface AGUIEventContext {
|
|
72
|
-
/**
|
|
73
|
-
* Unique identifier for the thread (conversation)
|
|
74
|
-
*/
|
|
75
|
-
threadId: string;
|
|
76
|
-
/**
|
|
77
|
-
* Unique identifier for this run (lane execution)
|
|
78
|
-
*/
|
|
79
|
-
runId: string;
|
|
80
|
-
/**
|
|
81
|
-
* Parent run ID for sub-lanes
|
|
82
|
-
*/
|
|
83
|
-
parentRunId?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Current message ID for text message events
|
|
86
|
-
*/
|
|
87
|
-
currentMessageId?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Current tool call ID for tool call events
|
|
90
|
-
*/
|
|
91
|
-
currentToolCallId?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Previous state snapshot for delta generation
|
|
94
|
-
*/
|
|
95
|
-
previousState?: unknown;
|
|
96
|
-
/**
|
|
97
|
-
* Mapping of capability cycles to message IDs
|
|
98
|
-
*/
|
|
99
|
-
cycleToMessageId?: Map<number, string>;
|
|
100
|
-
/**
|
|
101
|
-
* Mapping of task capabilities to tool call IDs
|
|
102
|
-
*/
|
|
103
|
-
taskToToolCallId?: Map<string, string>;
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=ag-ui-config.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ag-ui-config.interface.d.ts","sourceRoot":"","sources":["../../../../src/ag-ui/types/ag-ui-config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvC;;OAEG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC"}
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AG-UI Protocol Event Types
|
|
3
|
-
* Based on AG-UI Protocol specification
|
|
4
|
-
* https://docs.ag-ui.com/concepts/events
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Base event structure that all AG-UI events extend
|
|
8
|
-
*/
|
|
9
|
-
export interface BaseEvent {
|
|
10
|
-
type: string;
|
|
11
|
-
timestamp?: string;
|
|
12
|
-
rawEvent?: unknown;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Role types for messages
|
|
16
|
-
*/
|
|
17
|
-
export type MessageRole = 'developer' | 'system' | 'assistant' | 'user' | 'tool';
|
|
18
|
-
/**
|
|
19
|
-
* Run outcome types
|
|
20
|
-
*/
|
|
21
|
-
export type RunOutcome = 'success' | 'interrupt';
|
|
22
|
-
/**
|
|
23
|
-
* JSON Patch operation for state deltas
|
|
24
|
-
*/
|
|
25
|
-
export interface JSONPatchOperation {
|
|
26
|
-
op: string;
|
|
27
|
-
path: string;
|
|
28
|
-
value?: unknown;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* RunStarted - First event emitted when an agent begins processing
|
|
32
|
-
*/
|
|
33
|
-
export interface RunStarted extends BaseEvent {
|
|
34
|
-
type: 'RunStarted';
|
|
35
|
-
threadId: string;
|
|
36
|
-
runId: string;
|
|
37
|
-
parentRunId?: string;
|
|
38
|
-
input?: unknown;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* RunFinished - Indicates agent has successfully completed all work
|
|
42
|
-
*/
|
|
43
|
-
export interface RunFinished extends BaseEvent {
|
|
44
|
-
type: 'RunFinished';
|
|
45
|
-
threadId: string;
|
|
46
|
-
runId: string;
|
|
47
|
-
result?: unknown;
|
|
48
|
-
outcome?: RunOutcome;
|
|
49
|
-
interrupt?: unknown;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* RunError - Indicates an error occurred during execution
|
|
53
|
-
*/
|
|
54
|
-
export interface RunError extends BaseEvent {
|
|
55
|
-
type: 'RunError';
|
|
56
|
-
message: string;
|
|
57
|
-
code?: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* StepStarted - Indicates agent is beginning a specific subtask
|
|
61
|
-
*/
|
|
62
|
-
export interface StepStarted extends BaseEvent {
|
|
63
|
-
type: 'StepStarted';
|
|
64
|
-
stepName: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* StepFinished - Indicates agent has completed a specific subtask
|
|
68
|
-
*/
|
|
69
|
-
export interface StepFinished extends BaseEvent {
|
|
70
|
-
type: 'StepFinished';
|
|
71
|
-
stepName: string;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* TextMessageStart - Initiates a new text message stream
|
|
75
|
-
*/
|
|
76
|
-
export interface TextMessageStart extends BaseEvent {
|
|
77
|
-
type: 'TextMessageStart';
|
|
78
|
-
messageId: string;
|
|
79
|
-
role: MessageRole;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* TextMessageContent - Delivers incremental message content
|
|
83
|
-
*/
|
|
84
|
-
export interface TextMessageContent extends BaseEvent {
|
|
85
|
-
type: 'TextMessageContent';
|
|
86
|
-
messageId: string;
|
|
87
|
-
delta: string;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* TextMessageEnd - Marks completion of a text message
|
|
91
|
-
*/
|
|
92
|
-
export interface TextMessageEnd extends BaseEvent {
|
|
93
|
-
type: 'TextMessageEnd';
|
|
94
|
-
messageId: string;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* TextMessageChunk - Convenience event for chunked message delivery
|
|
98
|
-
*/
|
|
99
|
-
export interface TextMessageChunk extends BaseEvent {
|
|
100
|
-
type: 'TextMessageChunk';
|
|
101
|
-
messageId?: string;
|
|
102
|
-
role?: MessageRole;
|
|
103
|
-
delta?: string;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* ToolCallStart - Signals the start of a tool call
|
|
107
|
-
*/
|
|
108
|
-
export interface ToolCallStart extends BaseEvent {
|
|
109
|
-
type: 'ToolCallStart';
|
|
110
|
-
toolCallId: string;
|
|
111
|
-
toolCallName: string;
|
|
112
|
-
parentMessageId?: string;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* ToolCallArgs - Delivers incremental parts of tool arguments
|
|
116
|
-
*/
|
|
117
|
-
export interface ToolCallArgs extends BaseEvent {
|
|
118
|
-
type: 'ToolCallArgs';
|
|
119
|
-
toolCallId: string;
|
|
120
|
-
delta: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* ToolCallEnd - Marks completion of a tool call
|
|
124
|
-
*/
|
|
125
|
-
export interface ToolCallEnd extends BaseEvent {
|
|
126
|
-
type: 'ToolCallEnd';
|
|
127
|
-
toolCallId: string;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* ToolCallResult - Delivers the output from a tool invocation
|
|
131
|
-
*/
|
|
132
|
-
export interface ToolCallResult extends BaseEvent {
|
|
133
|
-
type: 'ToolCallResult';
|
|
134
|
-
messageId: string;
|
|
135
|
-
toolCallId: string;
|
|
136
|
-
content: unknown;
|
|
137
|
-
role?: 'tool';
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* ToolCallChunk - Convenience event for chunked tool call delivery
|
|
141
|
-
*/
|
|
142
|
-
export interface ToolCallChunk extends BaseEvent {
|
|
143
|
-
type: 'ToolCallChunk';
|
|
144
|
-
toolCallId?: string;
|
|
145
|
-
toolCallName?: string;
|
|
146
|
-
parentMessageId?: string;
|
|
147
|
-
delta?: string;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* StateSnapshot - Full state initialization/resync
|
|
151
|
-
*/
|
|
152
|
-
export interface StateSnapshot extends BaseEvent {
|
|
153
|
-
type: 'StateSnapshot';
|
|
154
|
-
snapshot: unknown;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* StateDelta - Incremental state updates using JSON Patch
|
|
158
|
-
*/
|
|
159
|
-
export interface StateDelta extends BaseEvent {
|
|
160
|
-
type: 'StateDelta';
|
|
161
|
-
delta: JSONPatchOperation[];
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* MessagesSnapshot - Snapshot of message history
|
|
165
|
-
*/
|
|
166
|
-
export interface MessagesSnapshot extends BaseEvent {
|
|
167
|
-
type: 'MessagesSnapshot';
|
|
168
|
-
messages: unknown[];
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* ActivitySnapshot - Shows current agent activity
|
|
172
|
-
*/
|
|
173
|
-
export interface ActivitySnapshot extends BaseEvent {
|
|
174
|
-
type: 'ActivitySnapshot';
|
|
175
|
-
messageId: string;
|
|
176
|
-
activityType: string;
|
|
177
|
-
content: unknown;
|
|
178
|
-
replace?: boolean;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* ActivityDelta - Incremental activity updates
|
|
182
|
-
*/
|
|
183
|
-
export interface ActivityDelta extends BaseEvent {
|
|
184
|
-
type: 'ActivityDelta';
|
|
185
|
-
messageId: string;
|
|
186
|
-
activityType: string;
|
|
187
|
-
patch: JSONPatchOperation[];
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Raw - Pass-through for external system events
|
|
191
|
-
*/
|
|
192
|
-
export interface Raw extends BaseEvent {
|
|
193
|
-
type: 'Raw';
|
|
194
|
-
event: unknown;
|
|
195
|
-
source?: string;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Custom - Application-specific custom events
|
|
199
|
-
*/
|
|
200
|
-
export interface Custom extends BaseEvent {
|
|
201
|
-
type: 'Custom';
|
|
202
|
-
name: string;
|
|
203
|
-
value: unknown;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* ReasoningStart - Start of reasoning process (draft feature)
|
|
207
|
-
*/
|
|
208
|
-
export interface ReasoningStart extends BaseEvent {
|
|
209
|
-
type: 'ReasoningStart';
|
|
210
|
-
messageId: string;
|
|
211
|
-
encryptedContent?: string;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* ReasoningEnd - End of reasoning process (draft feature)
|
|
215
|
-
*/
|
|
216
|
-
export interface ReasoningEnd extends BaseEvent {
|
|
217
|
-
type: 'ReasoningEnd';
|
|
218
|
-
messageId: string;
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* ReasoningMessageStart - Start of reasoning message (draft feature)
|
|
222
|
-
*/
|
|
223
|
-
export interface ReasoningMessageStart extends BaseEvent {
|
|
224
|
-
type: 'ReasoningMessageStart';
|
|
225
|
-
messageId: string;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* ReasoningMessageContent - Reasoning message content (draft feature)
|
|
229
|
-
*/
|
|
230
|
-
export interface ReasoningMessageContent extends BaseEvent {
|
|
231
|
-
type: 'ReasoningMessageContent';
|
|
232
|
-
messageId: string;
|
|
233
|
-
delta: string;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* ReasoningMessageEnd - End of reasoning message (draft feature)
|
|
237
|
-
*/
|
|
238
|
-
export interface ReasoningMessageEnd extends BaseEvent {
|
|
239
|
-
type: 'ReasoningMessageEnd';
|
|
240
|
-
messageId: string;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* ReasoningMessageChunk - Reasoning message chunk (draft feature)
|
|
244
|
-
*/
|
|
245
|
-
export interface ReasoningMessageChunk extends BaseEvent {
|
|
246
|
-
type: 'ReasoningMessageChunk';
|
|
247
|
-
messageId?: string;
|
|
248
|
-
delta?: string;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* MetaEvent - Meta-level event information (draft feature)
|
|
252
|
-
*/
|
|
253
|
-
export interface MetaEvent extends BaseEvent {
|
|
254
|
-
type: 'MetaEvent';
|
|
255
|
-
metaType: string;
|
|
256
|
-
payload: unknown;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Union of all AG-UI event types
|
|
260
|
-
*/
|
|
261
|
-
export type AGUIEvent = RunStarted | RunFinished | RunError | StepStarted | StepFinished | TextMessageStart | TextMessageContent | TextMessageEnd | TextMessageChunk | ToolCallStart | ToolCallArgs | ToolCallEnd | ToolCallResult | ToolCallChunk | StateSnapshot | StateDelta | MessagesSnapshot | ActivitySnapshot | ActivityDelta | Raw | Custom | ReasoningStart | ReasoningEnd | ReasoningMessageStart | ReasoningMessageContent | ReasoningMessageEnd | ReasoningMessageChunk | MetaEvent;
|
|
262
|
-
/**
|
|
263
|
-
* Event type string literal union
|
|
264
|
-
*/
|
|
265
|
-
export type EventType = 'RunStarted' | 'RunFinished' | 'RunError' | 'StepStarted' | 'StepFinished' | 'TextMessageStart' | 'TextMessageContent' | 'TextMessageEnd' | 'TextMessageChunk' | 'ToolCallStart' | 'ToolCallArgs' | 'ToolCallEnd' | 'ToolCallResult' | 'ToolCallChunk' | 'StateSnapshot' | 'StateDelta' | 'MessagesSnapshot' | 'ActivitySnapshot' | 'ActivityDelta' | 'Raw' | 'Custom' | 'ReasoningStart' | 'ReasoningEnd' | 'ReasoningMessageStart' | 'ReasoningMessageContent' | 'ReasoningMessageEnd' | 'ReasoningMessageChunk' | 'MetaEvent';
|
|
266
|
-
//# sourceMappingURL=ag-ui-event.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ag-ui-event.types.d.ts","sourceRoot":"","sources":["../../../../src/ag-ui/types/ag-ui-event.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAID;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,C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AAe,GACf,KAAK,GACL,QAAQ,GACR,gBAAgB,GAChB,cAAc,GACd,uBAAuB,GACvB,yBAAyB,GACzB,qBAAqB,GACrB,uBAAuB,GACvB,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ag-ui/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
|
package/dist/test/ai.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai.spec.d.ts","sourceRoot":"","sources":["../../test/ai.spec.ts"],"names":[],"mappings":""}
|
package/dist/test/ai.spec.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { NodeState, oAddress } from '@olane/o-core';
|
|
2
|
-
import { expect } from 'chai';
|
|
3
|
-
import { oLaneTool } from '../src/o-lane.tool.js';
|
|
4
|
-
describe('in-process @memory', () => {
|
|
5
|
-
it('should be able to start a single node with no leader', async () => {
|
|
6
|
-
const node = new oLaneTool({
|
|
7
|
-
address: new oAddress('o://test'),
|
|
8
|
-
leader: null,
|
|
9
|
-
parent: null,
|
|
10
|
-
});
|
|
11
|
-
await node.start();
|
|
12
|
-
expect(node.state).to.equal(NodeState.RUNNING);
|
|
13
|
-
const transports = node.transports;
|
|
14
|
-
// expect(transports.length).to.equal(1);
|
|
15
|
-
// expect(transports[0].toString()).to.contain('/memory');
|
|
16
|
-
await node.stop();
|
|
17
|
-
expect(node.state).to.equal(NodeState.STOPPED);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
File without changes
|