@ekairos/events 1.22.42-beta.development.0 → 1.22.43-beta.development.0
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.
|
@@ -21,11 +21,11 @@ export type TraceEventKind = (typeof TRACE_EVENT_KINDS)[number];
|
|
|
21
21
|
export declare const STREAM_LIFECYCLE_CHUNK_TYPES: readonly ["chunk.start", "chunk.start_step", "chunk.finish_step", "chunk.finish"];
|
|
22
22
|
export declare const STREAM_TEXT_CHUNK_TYPES: readonly ["chunk.text_start", "chunk.text_delta", "chunk.text_end"];
|
|
23
23
|
export declare const STREAM_REASONING_CHUNK_TYPES: readonly ["chunk.reasoning_start", "chunk.reasoning_delta", "chunk.reasoning_end"];
|
|
24
|
-
export declare const STREAM_ACTION_CHUNK_TYPES: readonly ["chunk.
|
|
24
|
+
export declare const STREAM_ACTION_CHUNK_TYPES: readonly ["chunk.action_started", "chunk.action_input_delta", "chunk.action_completed", "chunk.action_failed"];
|
|
25
25
|
export declare const STREAM_SOURCE_CHUNK_TYPES: readonly ["chunk.source_url", "chunk.source_document", "chunk.file"];
|
|
26
26
|
export declare const STREAM_METADATA_CHUNK_TYPES: readonly ["chunk.message_metadata", "chunk.response_metadata"];
|
|
27
27
|
export declare const STREAM_ERROR_CHUNK_TYPES: readonly ["chunk.error", "chunk.unknown"];
|
|
28
|
-
export declare const CONTEXT_STREAM_CHUNK_TYPES: readonly ["chunk.start", "chunk.start_step", "chunk.finish_step", "chunk.finish", "chunk.text_start", "chunk.text_delta", "chunk.text_end", "chunk.reasoning_start", "chunk.reasoning_delta", "chunk.reasoning_end", "chunk.
|
|
28
|
+
export declare const CONTEXT_STREAM_CHUNK_TYPES: readonly ["chunk.start", "chunk.start_step", "chunk.finish_step", "chunk.finish", "chunk.text_start", "chunk.text_delta", "chunk.text_end", "chunk.reasoning_start", "chunk.reasoning_delta", "chunk.reasoning_end", "chunk.action_started", "chunk.action_input_delta", "chunk.action_completed", "chunk.action_failed", "chunk.source_url", "chunk.source_document", "chunk.file", "chunk.message_metadata", "chunk.response_metadata", "chunk.error", "chunk.unknown"];
|
|
29
29
|
export type ContextStreamChunkType = (typeof CONTEXT_STREAM_CHUNK_TYPES)[number];
|
|
30
30
|
export declare function isContextStreamChunkType(value: string): value is ContextStreamChunkType;
|
|
31
31
|
export type ContextTransition = Transition<"open_idle" | "open_streaming" | "closed", "open_idle" | "open_streaming" | "closed">;
|
package/dist/context.contract.js
CHANGED
|
@@ -41,11 +41,10 @@ export const STREAM_REASONING_CHUNK_TYPES = [
|
|
|
41
41
|
"chunk.reasoning_end",
|
|
42
42
|
];
|
|
43
43
|
export const STREAM_ACTION_CHUNK_TYPES = [
|
|
44
|
-
"chunk.
|
|
44
|
+
"chunk.action_started",
|
|
45
45
|
"chunk.action_input_delta",
|
|
46
|
-
"chunk.
|
|
47
|
-
"chunk.
|
|
48
|
-
"chunk.action_output_error",
|
|
46
|
+
"chunk.action_completed",
|
|
47
|
+
"chunk.action_failed",
|
|
49
48
|
];
|
|
50
49
|
export const STREAM_SOURCE_CHUNK_TYPES = [
|
|
51
50
|
"chunk.source_url",
|
package/dist/context.engine.js
CHANGED
|
@@ -115,8 +115,8 @@ async function writeActionResultPartChunks(params) {
|
|
|
115
115
|
if (!actionRef || !actionName)
|
|
116
116
|
continue;
|
|
117
117
|
const chunkType = result.success
|
|
118
|
-
? "chunk.
|
|
119
|
-
: "chunk.
|
|
118
|
+
? "chunk.action_completed"
|
|
119
|
+
: "chunk.action_failed";
|
|
120
120
|
const identity = resolveContextPartChunkIdentity({
|
|
121
121
|
stepId: params.session.stepId,
|
|
122
122
|
provider: "ekairos",
|
|
@@ -151,8 +151,8 @@ async function writeActionResultPartChunks(params) {
|
|
|
151
151
|
partSlot: identity.partSlot,
|
|
152
152
|
provider: "ekairos",
|
|
153
153
|
providerChunkType: result.success
|
|
154
|
-
? "
|
|
155
|
-
: "
|
|
154
|
+
? "action_completed"
|
|
155
|
+
: "action_failed",
|
|
156
156
|
actionRef,
|
|
157
157
|
data,
|
|
158
158
|
});
|
|
@@ -170,8 +170,8 @@ async function writeActionResultPartChunks(params) {
|
|
|
170
170
|
sequence,
|
|
171
171
|
provider: "ekairos",
|
|
172
172
|
providerChunkType: result.success
|
|
173
|
-
? "
|
|
174
|
-
: "
|
|
173
|
+
? "action_completed"
|
|
174
|
+
: "action_failed",
|
|
175
175
|
actionRef,
|
|
176
176
|
partId: identity.partId,
|
|
177
177
|
providerPartId: identity.providerPartId,
|
|
@@ -146,11 +146,10 @@ export function resolveContextStreamPartType(chunkType) {
|
|
|
146
146
|
if (chunkType === "chunk.source_url" || chunkType === "chunk.source_document") {
|
|
147
147
|
return "source";
|
|
148
148
|
}
|
|
149
|
-
if (chunkType === "chunk.
|
|
149
|
+
if (chunkType === "chunk.action_started" ||
|
|
150
150
|
chunkType === "chunk.action_input_delta" ||
|
|
151
|
-
chunkType === "chunk.
|
|
152
|
-
chunkType === "chunk.
|
|
153
|
-
chunkType === "chunk.action_output_error") {
|
|
151
|
+
chunkType === "chunk.action_completed" ||
|
|
152
|
+
chunkType === "chunk.action_failed") {
|
|
154
153
|
return "action";
|
|
155
154
|
}
|
|
156
155
|
return undefined;
|
|
@@ -163,9 +162,9 @@ export function resolveContextStreamPartSlot(chunkType, partType = resolveContex
|
|
|
163
162
|
if (partType === "source")
|
|
164
163
|
return "source";
|
|
165
164
|
if (partType === "action") {
|
|
166
|
-
if (chunkType === "chunk.
|
|
165
|
+
if (chunkType === "chunk.action_failed")
|
|
167
166
|
return "action:failed";
|
|
168
|
-
if (chunkType === "chunk.
|
|
167
|
+
if (chunkType === "chunk.action_completed")
|
|
169
168
|
return "action:completed";
|
|
170
169
|
return "action:started";
|
|
171
170
|
}
|
|
@@ -65,7 +65,7 @@ function mapAiSdkChunkType(providerChunkType) {
|
|
|
65
65
|
return "chunk.reasoning_end";
|
|
66
66
|
case "tool-input-start":
|
|
67
67
|
case "tool-call-start":
|
|
68
|
-
return "chunk.
|
|
68
|
+
return "chunk.action_started";
|
|
69
69
|
case "tool-input-delta":
|
|
70
70
|
case "tool-call-delta":
|
|
71
71
|
return "chunk.action_input_delta";
|
|
@@ -73,11 +73,11 @@ function mapAiSdkChunkType(providerChunkType) {
|
|
|
73
73
|
case "tool-input-end":
|
|
74
74
|
case "tool-call":
|
|
75
75
|
case "tool-call-end":
|
|
76
|
-
return "chunk.
|
|
76
|
+
return "chunk.action_started";
|
|
77
77
|
case "tool-output-available":
|
|
78
|
-
return "chunk.
|
|
78
|
+
return "chunk.action_completed";
|
|
79
79
|
case "tool-output-error":
|
|
80
|
-
return "chunk.
|
|
80
|
+
return "chunk.action_failed";
|
|
81
81
|
case "source-url":
|
|
82
82
|
return "chunk.source_url";
|
|
83
83
|
case "source-document":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekairos/events",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.43-beta.development.0",
|
|
4
4
|
"description": "Ekairos Events - Context-first workflow runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@ai-sdk/openai": "^2.0.52",
|
|
130
|
-
"@ekairos/domain": "^1.22.
|
|
130
|
+
"@ekairos/domain": "^1.22.43-beta.development.0",
|
|
131
131
|
"@instantdb/admin": "0.22.158",
|
|
132
132
|
"@instantdb/core": "0.22.142",
|
|
133
133
|
"@vercel/mcp-adapter": "^1.0.0",
|