@codapult/cli 0.8.4 → 0.9.0

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.
@@ -54,6 +54,7 @@ const BUILT_IN_PRESETS = {
54
54
  enableBlog: true,
55
55
  enableWaitlist: false,
56
56
  enableFeatureRequests: false,
57
+ enableCompare: true,
57
58
  enableWebhooks: false,
58
59
  enableAuditLog: false,
59
60
  enableReports: false,
@@ -84,6 +85,7 @@ const DEFAULT_CONFIG = {
84
85
  enableHelpCenter: true,
85
86
  enableExperiments: true,
86
87
  enableFeatureRequests: true,
88
+ enableCompare: false,
87
89
  enableConnect: true,
88
90
  enableEventStore: true,
89
91
  enableOtel: true,
@@ -288,6 +290,16 @@ const MODULE_REMOVALS = [
288
290
  ],
289
291
  label: 'Feature Requests',
290
292
  },
293
+ {
294
+ key: 'enableCompare',
295
+ paths: [
296
+ `${APP}/(marketing)/compare`,
297
+ `${APP}/(marketing)/vs`,
298
+ 'src/config/competitor-comparison.ts',
299
+ 'src/components/marketing/ComparisonTable.tsx',
300
+ ],
301
+ label: 'Feature Requests',
302
+ },
291
303
  {
292
304
  key: 'enableConnect',
293
305
  paths: [
@@ -448,6 +460,7 @@ const FEATURE_ENV_VARS = {
448
460
  enableBlog: 'ENABLE_BLOG',
449
461
  enableWaitlist: 'ENABLE_WAITLIST',
450
462
  enableFeatureRequests: 'ENABLE_FEATURE_REQUESTS',
463
+ enableCompare: 'ENABLE_COMPARE',
451
464
  enableAI: 'ENABLE_AI_CHAT',
452
465
  enableTeams: 'ENABLE_TEAMS',
453
466
  enableReferrals: 'ENABLE_REFERRALS',
@@ -596,6 +609,7 @@ async function interactiveSetup() {
596
609
  'kinde',
597
610
  'none',
598
611
  ]));
612
+ const authEnabled = authProvider !== 'none';
599
613
  const config = {
600
614
  appName: await ask(iface, 'App name', 'Codapult'),
601
615
  appUrl: await ask(iface, 'App URL', 'http://localhost:3000'),
@@ -612,35 +626,33 @@ async function interactiveSetup() {
612
626
  'memory',
613
627
  'bullmq',
614
628
  ])),
615
- enableAuth: authProvider !== 'none',
629
+ enableAuth: authEnabled,
616
630
  enableAI: await confirmPrompt(iface, 'Enable AI Chat module?'),
617
631
  enableBlog: await confirmPrompt(iface, 'Enable Blog module?'),
618
- enableTeams: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable Teams/Organizations?')),
632
+ enableTeams: authEnabled && (await confirmPrompt(iface, 'Enable Teams/Organizations?')),
619
633
  enableWaitlist: await confirmPrompt(iface, 'Enable Waitlist page?'),
620
634
  enableGraphQL: await confirmPrompt(iface, 'Enable GraphQL API layer?'),
621
- enableSSO: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable Enterprise SSO (SAML)?')),
635
+ enableSSO: authEnabled && (await confirmPrompt(iface, 'Enable Enterprise SSO (SAML)?')),
622
636
  enableApiDocs: await confirmPrompt(iface, 'Enable interactive API docs?'),
623
637
  enableHelpCenter: await confirmPrompt(iface, 'Enable Documentation module?'),
624
638
  enableExperiments: await confirmPrompt(iface, 'Enable A/B Testing?'),
625
639
  enableFeatureRequests: await confirmPrompt(iface, 'Enable Feature Request board?'),
626
- enableConnect: authProvider !== 'none' &&
627
- (await confirmPrompt(iface, 'Enable Stripe Connect (marketplace)?')),
640
+ enableCompare: false,
641
+ enableConnect: authEnabled && (await confirmPrompt(iface, 'Enable Stripe Connect (marketplace)?')),
628
642
  enableEventStore: await confirmPrompt(iface, 'Enable Event Store (event sourcing)?'),
629
643
  enableOtel: await confirmPrompt(iface, 'Enable OpenTelemetry tracing?'),
630
644
  enableDripCampaigns: await confirmPrompt(iface, 'Enable email drip campaigns?'),
631
- enableOnboarding: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable in-app onboarding tours?')),
632
- enableWorkflows: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable workflow automation?')),
633
- enableReferrals: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable referral program?')),
645
+ enableOnboarding: authEnabled && (await confirmPrompt(iface, 'Enable in-app onboarding tours?')),
646
+ enableWorkflows: authEnabled && (await confirmPrompt(iface, 'Enable workflow automation?')),
647
+ enableReferrals: authEnabled && (await confirmPrompt(iface, 'Enable referral program?')),
634
648
  enableAnalytics: await confirmPrompt(iface, 'Enable built-in analytics?'),
635
649
  enableChangelog: await confirmPrompt(iface, 'Enable Changelog page?'),
636
650
  enableRAG: await confirmPrompt(iface, 'Enable RAG pipeline (vector search)?'),
637
- enableWebhooks: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable outgoing webhooks?')),
638
- enableAuditLog: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable audit log / activity feed?')),
639
- enableReports: authProvider !== 'none' && (await confirmPrompt(iface, 'Enable scheduled email reports?')),
640
- enableBranding: authProvider !== 'none' &&
641
- (await confirmPrompt(iface, 'Enable per-org branding (white-label)?')),
642
- enableTwoFactor: authProvider !== 'none' &&
643
- (await confirmPrompt(iface, 'Enable two-factor authentication (TOTP)?')),
651
+ enableWebhooks: authEnabled && (await confirmPrompt(iface, 'Enable outgoing webhooks?')),
652
+ enableAuditLog: authEnabled && (await confirmPrompt(iface, 'Enable audit log / activity feed?')),
653
+ enableReports: authEnabled && (await confirmPrompt(iface, 'Enable scheduled email reports?')),
654
+ enableBranding: authEnabled && (await confirmPrompt(iface, 'Enable per-org branding (white-label)?')),
655
+ enableTwoFactor: authEnabled && (await confirmPrompt(iface, 'Enable two-factor authentication (TOTP)?')),
644
656
  enablePlugins: await confirmPrompt(iface, 'Enable plugin marketplace (/plugins)?'),
645
657
  };
646
658
  if (await confirmPrompt(iface, 'Remove unused module code?', false)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codapult/cli",
3
- "version": "0.8.4",
3
+ "version": "0.9.0",
4
4
  "description": "Codapult CLI — manage, update, and diagnose your Codapult SaaS project",
5
5
  "license": "MIT",
6
6
  "packageManager": "pnpm@10.33.2",