@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/agent/index.d.ts +2 -0
- package/dist/agent/index.js +1 -0
- package/dist/agent/providers/platform.d.ts +23 -0
- package/dist/agent/providers/platform.js +130 -0
- package/dist/cli/commands/auth.d.ts +8 -0
- package/dist/cli/commands/auth.js +137 -0
- package/dist/cli/commands/deploy.d.ts +6 -0
- package/dist/cli/commands/deploy.js +97 -0
- package/dist/cli/commands/init.d.ts +2 -1
- package/dist/cli/commands/init.js +28 -2
- package/dist/cli/config/credentials.d.ts +15 -0
- package/dist/cli/config/credentials.js +43 -0
- package/dist/cli/config/platform-client.d.ts +36 -0
- package/dist/cli/config/platform-client.js +122 -0
- package/dist/cli/flow-weaver.mjs +806 -343
- package/dist/cli/index.js +66 -0
- package/dist/generated-version.d.ts +1 -1
- package/dist/generated-version.js +1 -1
- package/package.json +1 -1
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.
|
|
1
|
+
export declare const VERSION = "0.22.10";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
package/package.json
CHANGED