lumenflow 3.6.6 → 3.6.7

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/bin/lumenflow.mjs CHANGED
@@ -197,14 +197,16 @@ export async function main() {
197
197
 
198
198
  const dispatchTarget = resolveDispatchTarget(process.argv.slice(2), manifest);
199
199
  const entryPath = join(cliPackageRoot, CLI_DIST_DIR, dispatchTarget.entryRelativePath);
200
- const initialArgs = process.argv.slice(2);
201
200
 
202
201
  if (!existsSync(entryPath)) {
203
202
  const initFallbackPath = join(cliPackageRoot, CLI_DIST_DIR, DEFAULT_DISPATCH.initEntry);
203
+ // WU-2230: Use dispatchTarget.forwardedArgs (which has 'init' token stripped)
204
+ // instead of initialArgs (which includes 'init' and causes Commander to reject it
205
+ // as an unexpected positional argument).
204
206
  const fallbackArgs =
205
207
  dispatchTarget.entryRelativePath === DEFAULT_DISPATCH.commandsEntry
206
208
  ? [HELP_FLAG_LONG]
207
- : initialArgs;
209
+ : dispatchTarget.forwardedArgs;
208
210
  execFileSync(process.execPath, [initFallbackPath, ...fallbackArgs], {
209
211
  stdio: 'inherit',
210
212
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumenflow",
3
- "version": "3.6.6",
3
+ "version": "3.6.7",
4
4
  "description": "Give your AI agent a workflow it can't break. Full command router wrapper for @lumenflow/cli.",
5
5
  "keywords": [
6
6
  "lumenflow",
@@ -25,7 +25,7 @@
25
25
  "lumenflow": "./bin/lumenflow.mjs"
26
26
  },
27
27
  "dependencies": {
28
- "@lumenflow/cli": "^3.6.6"
28
+ "@lumenflow/cli": "^3.6.7"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"