@synergenius/flow-weaver 0.26.3 → 0.26.4
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.
|
@@ -173,15 +173,16 @@ export class CliSession {
|
|
|
173
173
|
}) + '\n';
|
|
174
174
|
// Track whether this turn saw a 'result' event (definitive turn end)
|
|
175
175
|
let sawResult = false;
|
|
176
|
-
// Wrap pushEvent to
|
|
176
|
+
// Wrap pushEvent to suppress intermediate message_stop events.
|
|
177
|
+
// The CLI emits message_stop for each API turn, but the session's turn
|
|
178
|
+
// boundary is the `result` event. Intermediate message_stop events would
|
|
179
|
+
// cause runAgentLoop to exit early (thinking the model stopped), missing
|
|
180
|
+
// later events including the result's usage with total_cost_usd.
|
|
177
181
|
const originalPush = this.pushEvent.bind(this);
|
|
178
182
|
this.parser = new StreamJsonParser((event) => {
|
|
179
|
-
// The result event emits message_stop — but in session mode,
|
|
180
|
-
// we need to detect it as the turn boundary
|
|
181
183
|
if (event.type === 'message_stop' && !sawResult) {
|
|
182
|
-
//
|
|
183
|
-
//
|
|
184
|
-
originalPush(event);
|
|
184
|
+
// Suppress — not the real turn end. The result event will emit
|
|
185
|
+
// the final message_stop after all usage data is captured.
|
|
185
186
|
return;
|
|
186
187
|
}
|
|
187
188
|
originalPush(event);
|
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.26.
|
|
9889
|
+
VERSION = "0.26.4";
|
|
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.26.
|
|
95976
|
+
var version2 = true ? "0.26.4" : "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.26.
|
|
1
|
+
export declare const VERSION = "0.26.4";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
package/package.json
CHANGED