@synergenius/flow-weaver 0.22.9 → 0.22.10

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/dist/cli/index.js CHANGED
@@ -667,6 +667,72 @@ if (!process.env['VITEST']) {
667
667
  (async () => {
668
668
  const { registerPackCommands } = await import('./pack-commands.js');
669
669
  await registerPackCommands(program);
670
+ // Auth commands (login, logout, status)
671
+ program
672
+ .command('login')
673
+ .description('Log in to Flow Weaver platform')
674
+ .option('-e, --email <email>', 'Email address')
675
+ .option('-k, --api-key <key>', 'Use API key instead of email/password')
676
+ .option('--platform-url <url>', 'Platform URL')
677
+ .action(async (options) => {
678
+ const { loginCommand } = await import('./commands/auth.js');
679
+ await loginCommand(options);
680
+ });
681
+ program
682
+ .command('logout')
683
+ .description('Log out from Flow Weaver platform')
684
+ .action(async () => {
685
+ const { logoutCommand } = await import('./commands/auth.js');
686
+ await logoutCommand();
687
+ });
688
+ program
689
+ .command('auth')
690
+ .description('Show authentication status')
691
+ .action(async () => {
692
+ const { authStatusCommand } = await import('./commands/auth.js');
693
+ await authStatusCommand();
694
+ });
695
+ // Deploy commands (push + deploy to cloud)
696
+ program
697
+ .command('deploy <file>')
698
+ .description('Deploy a workflow to the platform')
699
+ .option('-n, --name <name>', 'Workflow name (defaults to filename)')
700
+ .action(async (file, options) => {
701
+ const { deployCommand } = await import('./commands/deploy.js');
702
+ await deployCommand(file, options);
703
+ });
704
+ program
705
+ .command('undeploy <slug>')
706
+ .description('Remove a deployed workflow')
707
+ .action(async (slug) => {
708
+ const { undeployCommand } = await import('./commands/deploy.js');
709
+ await undeployCommand(slug);
710
+ });
711
+ program
712
+ .command('cloud-status')
713
+ .description('Show cloud deployments and usage')
714
+ .action(async () => {
715
+ const { cloudStatusCommand } = await import('./commands/deploy.js');
716
+ await cloudStatusCommand();
717
+ });
718
+ // Fallback weaver shim if pack not installed
719
+ if (!program.commands.some(c => c.name() === 'weaver')) {
720
+ program
721
+ .command('weaver')
722
+ .description('AI assistant for Flow Weaver workflows')
723
+ .allowUnknownOption(true)
724
+ .action(async () => {
725
+ console.log('');
726
+ console.log(' Weaver is not installed.');
727
+ console.log('');
728
+ console.log(' Install it:');
729
+ console.log(' npm install @synergenius/flow-weaver-pack-weaver');
730
+ console.log('');
731
+ console.log(' Or during project init:');
732
+ console.log(' flow-weaver init (select "Yes" when asked about Weaver)');
733
+ console.log('');
734
+ });
735
+ }
670
736
  program.parse(process.argv);
671
737
  })();
672
738
  }
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.22.9";
1
+ export declare const VERSION = "0.22.10";
2
2
  //# sourceMappingURL=generated-version.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by scripts/generate-version.ts — do not edit manually
2
- export const VERSION = '0.22.9';
2
+ export const VERSION = '0.22.10';
3
3
  //# sourceMappingURL=generated-version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergenius/flow-weaver",
3
- "version": "0.22.9",
3
+ "version": "0.22.10",
4
4
  "description": "Deterministic workflow compiler for AI agents. Compiles to standalone TypeScript, no runtime dependencies.",
5
5
  "private": false,
6
6
  "type": "module",