@synergenius/flow-weaver 0.25.0 → 0.25.2
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.
|
@@ -96,7 +96,10 @@ export class CliSession {
|
|
|
96
96
|
model,
|
|
97
97
|
];
|
|
98
98
|
if (mcpConfigPath) {
|
|
99
|
-
args.push('--mcp-config', mcpConfigPath
|
|
99
|
+
args.push('--mcp-config', mcpConfigPath);
|
|
100
|
+
}
|
|
101
|
+
if (this.opts.strictMcpConfig || mcpConfigPath) {
|
|
102
|
+
args.push('--strict-mcp-config');
|
|
100
103
|
}
|
|
101
104
|
const { disallowedTools, tools, systemPrompt, appendSystemPrompt } = this.opts;
|
|
102
105
|
if (disallowedTools && disallowedTools.length > 0) {
|
|
@@ -184,22 +187,28 @@ export class CliSession {
|
|
|
184
187
|
originalPush(event);
|
|
185
188
|
});
|
|
186
189
|
// Override parser feed to detect result events for turn completion
|
|
190
|
+
let sawTerminal = false;
|
|
187
191
|
const baseFeed = this.parser.feed.bind(this.parser);
|
|
188
192
|
this.parser.feed = (line) => {
|
|
189
|
-
// Check if this line is a
|
|
193
|
+
// Check if this line is a turn-ending event before parsing
|
|
190
194
|
try {
|
|
191
195
|
let parsed = JSON.parse(line);
|
|
192
196
|
if (parsed.type === 'stream_event' && parsed.event)
|
|
193
197
|
parsed = parsed.event;
|
|
194
198
|
if (parsed.type === 'result') {
|
|
195
199
|
sawResult = true;
|
|
200
|
+
sawTerminal = true;
|
|
201
|
+
}
|
|
202
|
+
// authentication_failed is also a terminal event
|
|
203
|
+
if (parsed.type === 'assistant' && parsed.error === 'authentication_failed') {
|
|
204
|
+
sawTerminal = true;
|
|
196
205
|
}
|
|
197
206
|
}
|
|
198
207
|
catch {
|
|
199
208
|
// Not JSON, let parser handle it
|
|
200
209
|
}
|
|
201
210
|
baseFeed(line);
|
|
202
|
-
if (
|
|
211
|
+
if (sawTerminal) {
|
|
203
212
|
this.completeTurn();
|
|
204
213
|
}
|
|
205
214
|
};
|
|
@@ -270,6 +279,7 @@ export class CliSession {
|
|
|
270
279
|
return JSON.stringify({
|
|
271
280
|
model: options.model,
|
|
272
281
|
mcpConfigPath: options.mcpConfigPath,
|
|
282
|
+
strictMcpConfig: options.strictMcpConfig,
|
|
273
283
|
disallowedTools: options.disallowedTools,
|
|
274
284
|
tools: options.tools,
|
|
275
285
|
systemPrompt: options.systemPrompt,
|
package/dist/agent/types.d.ts
CHANGED
|
@@ -189,6 +189,8 @@ export interface CliSessionOptions {
|
|
|
189
189
|
model: string;
|
|
190
190
|
/** Pre-configured MCP config path. */
|
|
191
191
|
mcpConfigPath?: string;
|
|
192
|
+
/** When true, ignore user/project MCP servers — only use --mcp-config if provided. */
|
|
193
|
+
strictMcpConfig?: boolean;
|
|
192
194
|
/** Disable specific built-in tools (e.g. ['Read', 'Edit', 'Write', 'Bash'] to force MCP tools). */
|
|
193
195
|
disallowedTools?: string[];
|
|
194
196
|
/**
|
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.2";
|
|
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.2" : "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.2";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
package/package.json
CHANGED