@synergenius/flow-weaver 0.25.0 → 0.25.1
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.
|
@@ -184,22 +184,28 @@ export class CliSession {
|
|
|
184
184
|
originalPush(event);
|
|
185
185
|
});
|
|
186
186
|
// Override parser feed to detect result events for turn completion
|
|
187
|
+
let sawTerminal = false;
|
|
187
188
|
const baseFeed = this.parser.feed.bind(this.parser);
|
|
188
189
|
this.parser.feed = (line) => {
|
|
189
|
-
// Check if this line is a
|
|
190
|
+
// Check if this line is a turn-ending event before parsing
|
|
190
191
|
try {
|
|
191
192
|
let parsed = JSON.parse(line);
|
|
192
193
|
if (parsed.type === 'stream_event' && parsed.event)
|
|
193
194
|
parsed = parsed.event;
|
|
194
195
|
if (parsed.type === 'result') {
|
|
195
196
|
sawResult = true;
|
|
197
|
+
sawTerminal = true;
|
|
198
|
+
}
|
|
199
|
+
// authentication_failed is also a terminal event
|
|
200
|
+
if (parsed.type === 'assistant' && parsed.error === 'authentication_failed') {
|
|
201
|
+
sawTerminal = true;
|
|
196
202
|
}
|
|
197
203
|
}
|
|
198
204
|
catch {
|
|
199
205
|
// Not JSON, let parser handle it
|
|
200
206
|
}
|
|
201
207
|
baseFeed(line);
|
|
202
|
-
if (
|
|
208
|
+
if (sawTerminal) {
|
|
203
209
|
this.completeTurn();
|
|
204
210
|
}
|
|
205
211
|
};
|
package/dist/cli/flow-weaver.mjs
CHANGED
|
@@ -9886,7 +9886,7 @@ var VERSION;
|
|
|
9886
9886
|
var init_generated_version = __esm({
|
|
9887
9887
|
"src/generated-version.ts"() {
|
|
9888
9888
|
"use strict";
|
|
9889
|
-
VERSION = "0.25.
|
|
9889
|
+
VERSION = "0.25.1";
|
|
9890
9890
|
}
|
|
9891
9891
|
});
|
|
9892
9892
|
|
|
@@ -95973,7 +95973,7 @@ function parseIntStrict(value) {
|
|
|
95973
95973
|
// src/cli/index.ts
|
|
95974
95974
|
init_logger();
|
|
95975
95975
|
init_error_utils();
|
|
95976
|
-
var version2 = true ? "0.25.
|
|
95976
|
+
var version2 = true ? "0.25.1" : "0.0.0-dev";
|
|
95977
95977
|
var program2 = new Command();
|
|
95978
95978
|
program2.name("fw").description("Flow Weaver Annotations - Compile and validate workflow files").option("-v, --version", "Output the current version").option("--no-color", "Disable colors").option("--color", "Force colors").on("option:version", () => {
|
|
95979
95979
|
logger.banner(version2);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.25.
|
|
1
|
+
export declare const VERSION = "0.25.1";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
package/package.json
CHANGED