@funnelsgrove/cli 0.1.15 → 0.1.18
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/contracts/step-contract-v2.json +733 -0
- package/dist/analyticsOutput.d.ts +30 -15
- package/dist/analyticsOutput.js +45 -28
- package/dist/apiClient.d.ts +85 -0
- package/dist/apiClient.js +225 -8
- package/dist/cli.d.ts +149 -1
- package/dist/cli.js +1232 -71
- package/dist/diagnosticOutput.d.ts +42 -0
- package/dist/diagnosticOutput.js +83 -0
- package/dist/docsOutput.d.ts +19 -0
- package/dist/docsOutput.js +73 -0
- package/dist/docsTransaction.d.ts +81 -0
- package/dist/docsTransaction.js +1755 -0
- package/dist/funnelValidation.d.ts +14 -0
- package/dist/funnelValidation.js +297 -0
- package/dist/localSync.d.ts +79 -0
- package/dist/localSync.js +400 -29
- package/dist/projectValidator.d.ts +27 -0
- package/dist/projectValidator.js +208 -0
- package/dist/reskin.js +27 -1
- package/dist/stepContractMigration.d.ts +71 -0
- package/dist/stepContractMigration.js +1323 -0
- package/dist/templateDocs.js +8 -25
- package/docs-release-history.json +66 -0
- package/legacy-docs-catalog.json +1012 -0
- package/package.json +13 -4
- package/template_docs/.funnelsgrove-docs.json +144 -0
- package/template_docs/AGENTS.md +30 -58
- package/template_docs/CLAUDE.md +0 -2
- package/template_docs/docs/funnelsgrove/START-HERE.md +73 -0
- package/template_docs/docs/funnelsgrove/contracts/analytics-events.md +59 -0
- package/template_docs/docs/funnelsgrove/contracts/content-answers.md +44 -0
- package/template_docs/docs/funnelsgrove/contracts/flow-routing.md +41 -0
- package/template_docs/docs/funnelsgrove/contracts/payments.md +42 -0
- package/template_docs/docs/funnelsgrove/contracts/step-metadata.md +57 -0
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +39 -0
- package/template_docs/docs/funnelsgrove/qa/analytics.md +43 -0
- package/template_docs/docs/funnelsgrove/qa/local.md +42 -0
- package/template_docs/docs/funnelsgrove/qa/paywall-checkout.md +55 -0
- package/template_docs/docs/funnelsgrove/qa/publish.md +32 -0
- package/template_docs/docs/funnelsgrove/recipes/add-experiment.md +34 -0
- package/template_docs/docs/funnelsgrove/recipes/add-step.md +33 -0
- package/template_docs/docs/funnelsgrove/recipes/edit-step.md +31 -0
- package/template_docs/docs/funnelsgrove/steps/INDEX.md +26 -0
- package/template_docs/docs/funnelsgrove/steps/cancellation_offer.md +112 -0
- package/template_docs/docs/funnelsgrove/steps/checkout.md +120 -0
- package/template_docs/docs/funnelsgrove/steps/form_input.md +115 -0
- package/template_docs/docs/funnelsgrove/steps/intro_hero.md +110 -0
- package/template_docs/docs/funnelsgrove/steps/multi_select_choice.md +123 -0
- package/template_docs/docs/funnelsgrove/steps/paywall_offer.md +115 -0
- package/template_docs/docs/funnelsgrove/steps/progress_interstitial.md +111 -0
- package/template_docs/docs/funnelsgrove/steps/purchase_completed.md +117 -0
- package/template_docs/docs/funnelsgrove/steps/single_step_choice.md +122 -0
- package/template_docs/docs/funnelsgrove/steps/single_step_choice_emoji.md +122 -0
- package/template_docs/docs/funnelsgrove/steps/social_proof.md +110 -0
- package/template_docs/docs/funnelsgrove/steps/subscription_handoff.md +113 -0
- package/template_docs/docs/funnelsgrove/steps/subscription_management.md +112 -0
- package/template_docs/docs/funnelsgrove/steps/summary_confirmation.md +110 -0
- package/template_docs/docs/funnelsgrove/steps/upsell_offer.md +112 -0
- package/template_docs/docs/funnelsgrove/steps/value_prop_story.md +110 -0
- package/template_docs/funnel-docs.config.json +43 -0
- package/template_scaffold/.env.example +41 -0
- package/template_scaffold/.funnelsgrove-contract-tools.json +19 -0
- package/template_scaffold/.funnelsgrove-docs.json +144 -0
- package/template_scaffold/.funnelsgrove-scaffold.json +1078 -0
- package/template_scaffold/AGENTS.md +42 -0
- package/template_scaffold/CLAUDE.md +1 -0
- package/template_scaffold/PLAN.md +81 -0
- package/template_scaffold/PRODUCT_SENSE.md +28 -0
- package/template_scaffold/context/build-context.md +34 -0
- package/template_scaffold/docs/AGENT_FUNNEL_IMPLEMENTATION_SPEC.md +5 -0
- package/template_scaffold/docs/ARCHITECTURE.md +5 -0
- package/template_scaffold/docs/FLOW_CONFIG_AND_ROUTING.md +5 -0
- package/template_scaffold/docs/PAYWALL_AND_PAYMENTS.md +5 -0
- package/template_scaffold/docs/README.md +5 -0
- package/template_scaffold/docs/funnelsgrove/START-HERE.md +73 -0
- package/template_scaffold/docs/funnelsgrove/contracts/analytics-events.md +59 -0
- package/template_scaffold/docs/funnelsgrove/contracts/content-answers.md +44 -0
- package/template_scaffold/docs/funnelsgrove/contracts/flow-routing.md +41 -0
- package/template_scaffold/docs/funnelsgrove/contracts/payments.md +42 -0
- package/template_scaffold/docs/funnelsgrove/contracts/step-metadata.md +57 -0
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +39 -0
- package/template_scaffold/docs/funnelsgrove/qa/analytics.md +43 -0
- package/template_scaffold/docs/funnelsgrove/qa/local.md +42 -0
- package/template_scaffold/docs/funnelsgrove/qa/paywall-checkout.md +55 -0
- package/template_scaffold/docs/funnelsgrove/qa/publish.md +32 -0
- package/template_scaffold/docs/funnelsgrove/recipes/add-experiment.md +34 -0
- package/template_scaffold/docs/funnelsgrove/recipes/add-step.md +33 -0
- package/template_scaffold/docs/funnelsgrove/recipes/edit-step.md +31 -0
- package/template_scaffold/docs/funnelsgrove/steps/INDEX.md +26 -0
- package/template_scaffold/docs/funnelsgrove/steps/cancellation_offer.md +112 -0
- package/template_scaffold/docs/funnelsgrove/steps/checkout.md +120 -0
- package/template_scaffold/docs/funnelsgrove/steps/form_input.md +115 -0
- package/template_scaffold/docs/funnelsgrove/steps/intro_hero.md +110 -0
- package/template_scaffold/docs/funnelsgrove/steps/multi_select_choice.md +123 -0
- package/template_scaffold/docs/funnelsgrove/steps/paywall_offer.md +115 -0
- package/template_scaffold/docs/funnelsgrove/steps/progress_interstitial.md +111 -0
- package/template_scaffold/docs/funnelsgrove/steps/purchase_completed.md +117 -0
- package/template_scaffold/docs/funnelsgrove/steps/single_step_choice.md +122 -0
- package/template_scaffold/docs/funnelsgrove/steps/single_step_choice_emoji.md +122 -0
- package/template_scaffold/docs/funnelsgrove/steps/social_proof.md +110 -0
- package/template_scaffold/docs/funnelsgrove/steps/subscription_handoff.md +113 -0
- package/template_scaffold/docs/funnelsgrove/steps/subscription_management.md +112 -0
- package/template_scaffold/docs/funnelsgrove/steps/summary_confirmation.md +110 -0
- package/template_scaffold/docs/funnelsgrove/steps/upsell_offer.md +112 -0
- package/template_scaffold/docs/funnelsgrove/steps/value_prop_story.md +110 -0
- package/template_scaffold/docs/references/funnel-sdk-user-answers.md +5 -0
- package/template_scaffold/eslint.config.mjs +16 -0
- package/template_scaffold/funnel-agent-docs.test.ts +699 -0
- package/template_scaffold/funnel-docs.config.json +43 -0
- package/template_scaffold/funnel.config.json +5 -0
- package/template_scaffold/gitignore.template +5 -0
- package/template_scaffold/next-env.d.ts +6 -0
- package/template_scaffold/next.config.ts +53 -0
- package/template_scaffold/package-lock.json +7737 -0
- package/template_scaffold/package.json +37 -0
- package/template_scaffold/package.test.ts +23 -0
- package/template_scaffold/public/claimbee/bee.png +0 -0
- package/template_scaffold/public/claimbee/device-iphone.png +0 -0
- package/template_scaffold/public/claimbee/device-macbook.png +0 -0
- package/template_scaffold/public/claimbee/device-none.png +0 -0
- package/template_scaffold/public/claimbee/device-watch.png +0 -0
- package/template_scaffold/public/claimbee/glow.svg +3 -0
- package/template_scaffold/public/claimbee/steps-sprite-alt.png +0 -0
- package/template_scaffold/public/claimbee/steps-sprite-default.png +0 -0
- package/template_scaffold/public/claimbee/testimonial-avatar.png +0 -0
- package/template_scaffold/public/claimbee/testimonial-star.svg +3 -0
- package/template_scaffold/public/paywall/ai-claim-assistant.png +0 -0
- package/template_scaffold/public/paywall/claim-history.png +0 -0
- package/template_scaffold/public/paywall/clear-progress.png +0 -0
- package/template_scaffold/public/paywall/hero.png +0 -0
- package/template_scaffold/public/paywall/money-alerts.png +0 -0
- package/template_scaffold/public/paywall/money-back-badge.png +0 -0
- package/template_scaffold/public/paywall/paywall-image.png +0 -0
- package/template_scaffold/public/paywall/r1.png +0 -0
- package/template_scaffold/public/paywall/r2.png +0 -0
- package/template_scaffold/public/paywall/r3.png +0 -0
- package/template_scaffold/public/paywall/r4.png +0 -0
- package/template_scaffold/public/paywall/r5.png +0 -0
- package/template_scaffold/public/paywall/r6.png +0 -0
- package/template_scaffold/public/paywall/special-offer-gift.png +0 -0
- package/template_scaffold/public/please/bee.png +0 -0
- package/template_scaffold/public/please/device-iphone.png +0 -0
- package/template_scaffold/public/please/device-macbook.png +0 -0
- package/template_scaffold/public/please/device-none.png +0 -0
- package/template_scaffold/public/please/device-watch.png +0 -0
- package/template_scaffold/public/please/glow.svg +3 -0
- package/template_scaffold/public/please/steps-sprite-alt.png +0 -0
- package/template_scaffold/public/please/steps-sprite-default.png +0 -0
- package/template_scaffold/public/please/testimonial-avatar.png +0 -0
- package/template_scaffold/public/please/testimonial-star.svg +3 -0
- package/template_scaffold/public/upsell/upgrade-hero.png +0 -0
- package/template_scaffold/src/app/[stepId]/page.test.tsx +59 -0
- package/template_scaffold/src/app/[stepId]/page.tsx +62 -0
- package/template_scaffold/src/app/globals.css +49 -0
- package/template_scaffold/src/app/layout.test.ts +26 -0
- package/template_scaffold/src/app/layout.tsx +61 -0
- package/template_scaffold/src/app/page.tsx +8 -0
- package/template_scaffold/src/app/sdk/page.tsx +673 -0
- package/template_scaffold/src/app/subscription-dashboard/page.tsx +274 -0
- package/template_scaffold/src/assets/claimbee/bee.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-iphone.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-macbook.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-none.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-watch.png +0 -0
- package/template_scaffold/src/assets/claimbee/glow.svg +3 -0
- package/template_scaffold/src/assets/claimbee/steps-sprite-alt.png +0 -0
- package/template_scaffold/src/assets/claimbee/steps-sprite-default.png +0 -0
- package/template_scaffold/src/assets/claimbee/testimonial-avatar.png +0 -0
- package/template_scaffold/src/assets/claimbee/testimonial-star.svg +3 -0
- package/template_scaffold/src/components/FunnelEditorPanel.tsx +194 -0
- package/template_scaffold/src/components/FunnelFlow.test.tsx +17 -0
- package/template_scaffold/src/components/FunnelFlow.tsx +114 -0
- package/template_scaffold/src/components/FunnelStepImage.test.ts +15 -0
- package/template_scaffold/src/components/FunnelStepImage.tsx +28 -0
- package/template_scaffold/src/components/step/FunnelStepHeader.tsx +35 -0
- package/template_scaffold/src/config/billing.plans.test.ts +143 -0
- package/template_scaffold/src/config/billing.plans.ts +69 -0
- package/template_scaffold/src/config/billing.test.plans.ts +32 -0
- package/template_scaffold/src/config/experiments.generated.ts +4 -0
- package/template_scaffold/src/config/experiments.test.ts +12 -0
- package/template_scaffold/src/config/experiments.ts +9 -0
- package/template_scaffold/src/config/funnel.config.ts +12 -0
- package/template_scaffold/src/config/funnel.manifest.test.ts +166 -0
- package/template_scaffold/src/config/funnel.manifest.ts +139 -0
- package/template_scaffold/src/config/offer-sets.generated.ts +4 -0
- package/template_scaffold/src/contract/funnel-project.validation.test.ts +80 -0
- package/template_scaffold/src/contract/funnel-project.validation.ts +44 -0
- package/template_scaffold/src/contract/funnel-validator.vite.config.ts +11 -0
- package/template_scaffold/src/contract/golden/cancellation_offer.fixture.ts +29 -0
- package/template_scaffold/src/contract/golden/checkout.fixture.ts +37 -0
- package/template_scaffold/src/contract/golden/form_input.fixture.ts +28 -0
- package/template_scaffold/src/contract/golden/golden-fixtures.test.ts +190 -0
- package/template_scaffold/src/contract/golden/intro_hero.fixture.ts +27 -0
- package/template_scaffold/src/contract/golden/multi_select_choice.fixture.ts +37 -0
- package/template_scaffold/src/contract/golden/paywall_offer.fixture.ts +30 -0
- package/template_scaffold/src/contract/golden/progress_interstitial.fixture.ts +28 -0
- package/template_scaffold/src/contract/golden/purchase_completed.fixture.ts +33 -0
- package/template_scaffold/src/contract/golden/single_step_choice.fixture.ts +36 -0
- package/template_scaffold/src/contract/golden/single_step_choice_emoji.fixture.ts +36 -0
- package/template_scaffold/src/contract/golden/social_proof.fixture.ts +27 -0
- package/template_scaffold/src/contract/golden/subscription_handoff.fixture.ts +30 -0
- package/template_scaffold/src/contract/golden/subscription_management.fixture.ts +29 -0
- package/template_scaffold/src/contract/golden/summary_confirmation.fixture.ts +27 -0
- package/template_scaffold/src/contract/golden/upsell_offer.fixture.ts +29 -0
- package/template_scaffold/src/contract/golden/value_prop_story.fixture.ts +27 -0
- package/template_scaffold/src/contract/validate-funnel.cli.test.ts +180 -0
- package/template_scaffold/src/contract/validate-funnel.cli.ts +199 -0
- package/template_scaffold/src/runtime/checkout-runtime-config.test.ts +60 -0
- package/template_scaffold/src/runtime/checkout-runtime-config.ts +26 -0
- package/template_scaffold/src/runtime/funnel-runtime.test.ts +25 -0
- package/template_scaffold/src/runtime/funnel-runtime.ts +118 -0
- package/template_scaffold/src/runtime/step-content-context.test.ts +38 -0
- package/template_scaffold/src/runtime/step-content-context.ts +65 -0
- package/template_scaffold/src/runtime/step-registry.ts +66 -0
- package/template_scaffold/src/runtime/step-variable-values.ts +31 -0
- package/template_scaffold/src/runtime/use-funnel-flow-controller.integration.test.ts +203 -0
- package/template_scaffold/src/runtime/use-funnel-flow-controller.test.ts +76 -0
- package/template_scaffold/src/runtime/use-funnel-flow-controller.ts +53 -0
- package/template_scaffold/src/steps/content/email-capture.content.ts +29 -0
- package/template_scaffold/src/steps/content/manage-subscription.content.ts +62 -0
- package/template_scaffold/src/steps/content/paywall.content.ts +191 -0
- package/template_scaffold/src/steps/content/step-01.content.ts +23 -0
- package/template_scaffold/src/steps/content/step-02.content.ts +77 -0
- package/template_scaffold/src/steps/content/step-03.content.ts +40 -0
- package/template_scaffold/src/steps/content/step-04.content.ts +49 -0
- package/template_scaffold/src/steps/content/step-32-paywall.content.ts +352 -0
- package/template_scaffold/src/steps/content/subscription-started.content.ts +68 -0
- package/template_scaffold/src/steps/editor/email-capture.editor.ts +58 -0
- package/template_scaffold/src/steps/editor/manage-subscription.editor.ts +179 -0
- package/template_scaffold/src/steps/editor/paywall.editor.ts +232 -0
- package/template_scaffold/src/steps/editor/step-01.editor.ts +22 -0
- package/template_scaffold/src/steps/editor/step-02.editor.ts +41 -0
- package/template_scaffold/src/steps/editor/step-03.editor.ts +58 -0
- package/template_scaffold/src/steps/editor/step-04.editor.ts +98 -0
- package/template_scaffold/src/steps/editor/step-32-paywall.editor.ts +478 -0
- package/template_scaffold/src/steps/editor/subscription-started.editor.ts +131 -0
- package/template_scaffold/src/steps/index.ts +25 -0
- package/template_scaffold/src/steps/paywall-checkout-options.test.ts +104 -0
- package/template_scaffold/src/steps/paywall-checkout-options.ts +130 -0
- package/template_scaffold/src/steps/pricing/paywall-b.pricing.ts +12 -0
- package/template_scaffold/src/steps/pricing/paywall.pricing.ts +12 -0
- package/template_scaffold/src/steps/pricing/shared-plan-order.ts +17 -0
- package/template_scaffold/src/steps/pricing/upsell-form.pricing.ts +16 -0
- package/template_scaffold/src/steps/shared-header-contract.test.ts +27 -0
- package/template_scaffold/src/steps/step-01.test.ts +38 -0
- package/template_scaffold/src/steps/step-01.tsx +108 -0
- package/template_scaffold/src/steps/step-02.test.ts +43 -0
- package/template_scaffold/src/steps/step-02.tsx +140 -0
- package/template_scaffold/src/steps/step-03.test.ts +15 -0
- package/template_scaffold/src/steps/step-03.tsx +262 -0
- package/template_scaffold/src/steps/step-04.test.ts +32 -0
- package/template_scaffold/src/steps/step-04.tsx +673 -0
- package/template_scaffold/src/steps/step-31-email-capture.test.ts +22 -0
- package/template_scaffold/src/steps/step-31-email-capture.tsx +195 -0
- package/template_scaffold/src/steps/step-32-paywall.test.ts +770 -0
- package/template_scaffold/src/steps/step-32-paywall.tsx +2253 -0
- package/template_scaffold/src/steps/step-32b-paywall-b.tsx +35 -0
- package/template_scaffold/src/steps/step-33-subscription-started.test.ts +26 -0
- package/template_scaffold/src/steps/step-33-subscription-started.tsx +86 -0
- package/template_scaffold/src/steps/step-34-upsell-form.test.ts +27 -0
- package/template_scaffold/src/steps/step-35-manage-subscription.tsx +46 -0
- package/template_scaffold/src/steps/step-content.registry.ts +45 -0
- package/template_scaffold/src/steps/step-image-migration.test.ts +20 -0
- package/template_scaffold/src/steps/styles/index.css +2 -0
- package/template_scaffold/src/steps/styles/shared/final-flow-shared.css +55 -0
- package/template_scaffold/src/steps/styles/shared/funnel-base.css +543 -0
- package/template_scaffold/src/steps/styles/shared/info-shared.css +139 -0
- package/template_scaffold/src/steps/styles/shared/progress-shared.css +117 -0
- package/template_scaffold/src/steps/styles/shared/question-shared.css +76 -0
- package/template_scaffold/src/steps/styles/shared/responsive-container.css +176 -0
- package/template_scaffold/src/steps/types.ts +7 -0
- package/template_scaffold/src/steps/use-claimbee-step-content.ts +15 -0
- package/template_scaffold/src/theme/theme.ts +81 -0
- package/template_scaffold/tsconfig.json +38 -0
- package/template_scaffold/vitest.config.ts +32 -0
- package/template_validation/.funnelsgrove-contract-tools.json +19 -0
- package/template_validation/src/contract/funnel-project.validation.ts +44 -0
- package/template_validation/src/contract/funnel-validator.vite.config.ts +11 -0
- package/template_validation/src/contract/validate-funnel.cli.ts +199 -0
- package/template_docs/docs/ab-experiments.md +0 -111
- package/template_docs/docs/analytics.md +0 -65
- package/template_docs/docs/editing-flow.md +0 -136
- package/template_docs/docs/editing-step.md +0 -125
- package/template_docs/docs/editor-and-content.md +0 -58
- package/template_docs/docs/funnel-runtime-architecture.md +0 -125
- package/template_docs/docs/meta-pixel-conversions-api.md +0 -50
- package/template_docs/docs/payment-plans-and-discounts.md +0 -106
- package/template_docs/docs/publishing-and-versioning.md +0 -117
- package/template_docs/docs/qa-checklist.md +0 -80
- package/template_docs/docs/sdk-api-endpoints.md +0 -78
- package/template_docs/docs/step-ui-guidelines.md +0 -110
- package/template_docs/docs/theme.md +0 -35
package/dist/cli.d.ts
CHANGED
|
@@ -1,8 +1,133 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { Command } from 'commander';
|
|
2
3
|
import { type ActiveContext } from './authStore.js';
|
|
3
4
|
import { type SourceFile, type SyncManifest } from './localSync.js';
|
|
4
5
|
import { type GitHubStatusResponse } from './githubOutput.js';
|
|
5
|
-
import { type
|
|
6
|
+
import { type DocsExitCode } from './docsOutput.js';
|
|
7
|
+
import { type DocsDiagnostic, type DocsStatus } from './docsTransaction.js';
|
|
8
|
+
import { type FunnelValidationExitCode, type FunnelValidationResult } from './diagnosticOutput.js';
|
|
9
|
+
import { type StepContractMigrationApplyResult, type StepContractMigrationCheckResult, type StepContractMigrationTargetVersion, type StepContractMigrationValidationResult } from './stepContractMigration.js';
|
|
10
|
+
import { type AnalyticsOutputFormat, type AnalyticsStepDropoffResponse, type PublishedFunnelFlowResponse } from './analyticsOutput.js';
|
|
11
|
+
export declare const CANONICAL_CREATE_TEMPLATE_SLUG = "template";
|
|
12
|
+
export declare const SCAFFOLD_TRANSIENT_PATHS: readonly ["node_modules", ".next", "out", "tsconfig.tsbuildinfo", ".funnelsgrove-scaffold.json"];
|
|
13
|
+
export declare class CliContractError extends Error {
|
|
14
|
+
readonly code: string;
|
|
15
|
+
constructor(code: string, message: string);
|
|
16
|
+
}
|
|
17
|
+
export declare const assertCanonicalCreateTemplateSlug: (slug: string) => void;
|
|
18
|
+
export declare const resolveCreateTemplatePath: (slug?: string) => string;
|
|
19
|
+
export type DocsCommandOptions = {
|
|
20
|
+
check?: boolean;
|
|
21
|
+
diff?: boolean;
|
|
22
|
+
json?: boolean;
|
|
23
|
+
replaceManaged?: boolean;
|
|
24
|
+
resolve?: string;
|
|
25
|
+
};
|
|
26
|
+
export type DocsCommandMode = {
|
|
27
|
+
mode: 'apply';
|
|
28
|
+
json: boolean;
|
|
29
|
+
} | {
|
|
30
|
+
mode: 'check';
|
|
31
|
+
json: boolean;
|
|
32
|
+
} | {
|
|
33
|
+
mode: 'diff';
|
|
34
|
+
json: boolean;
|
|
35
|
+
} | {
|
|
36
|
+
mode: 'resolve';
|
|
37
|
+
json: boolean;
|
|
38
|
+
path: string;
|
|
39
|
+
};
|
|
40
|
+
export declare function resolveDocsCommandMode(options: DocsCommandOptions): DocsCommandMode;
|
|
41
|
+
export type DocsCommandBackend = {
|
|
42
|
+
recover: (targetDir: string) => Promise<void>;
|
|
43
|
+
inspect: (targetDir: string) => Promise<DocsStatus>;
|
|
44
|
+
apply: (targetDir: string, status: DocsStatus) => Promise<void>;
|
|
45
|
+
resolve: (targetDir: string, relativePath: string) => Promise<void>;
|
|
46
|
+
};
|
|
47
|
+
export type DocsCommandResult = {
|
|
48
|
+
exitCode: DocsExitCode;
|
|
49
|
+
output: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const docsResolveConfirmation: (relativePath: string) => string;
|
|
52
|
+
export declare function executeDocsCommand(input: {
|
|
53
|
+
targetDir: string;
|
|
54
|
+
options: DocsCommandOptions;
|
|
55
|
+
backend?: DocsCommandBackend;
|
|
56
|
+
auditLegacy?: (targetDir: string) => Promise<DocsDiagnostic | null>;
|
|
57
|
+
isTTY?: boolean;
|
|
58
|
+
prompt?: (question: string) => Promise<string>;
|
|
59
|
+
}): Promise<DocsCommandResult>;
|
|
60
|
+
type FunnelValidator = (targetDir: string) => Promise<FunnelValidationResult>;
|
|
61
|
+
export type ValidateCommandResult = {
|
|
62
|
+
exitCode: FunnelValidationExitCode;
|
|
63
|
+
output: string;
|
|
64
|
+
};
|
|
65
|
+
export declare function executeValidateCommand(input: {
|
|
66
|
+
targetDir: string;
|
|
67
|
+
json?: boolean;
|
|
68
|
+
validate?: FunnelValidator;
|
|
69
|
+
}): Promise<ValidateCommandResult>;
|
|
70
|
+
export declare function auditLegacyFunnel(targetDir: string, validate?: FunnelValidator): Promise<DocsDiagnostic | null>;
|
|
71
|
+
export declare class FunnelValidationError extends CliContractError {
|
|
72
|
+
readonly result: FunnelValidationResult;
|
|
73
|
+
constructor(result: FunnelValidationResult);
|
|
74
|
+
}
|
|
75
|
+
export declare function runValidatedFunnelMutation<T>(input: {
|
|
76
|
+
targetDir: string;
|
|
77
|
+
validate?: FunnelValidator;
|
|
78
|
+
mutate: () => Promise<T>;
|
|
79
|
+
}): Promise<T>;
|
|
80
|
+
export declare const toMigrationValidationResult: (result: FunnelValidationResult) => StepContractMigrationValidationResult;
|
|
81
|
+
export type StepContractMigrationCommandOptions = {
|
|
82
|
+
check?: boolean;
|
|
83
|
+
apply?: boolean;
|
|
84
|
+
json?: boolean;
|
|
85
|
+
};
|
|
86
|
+
export type StepContractMigrationBackend = {
|
|
87
|
+
recoverMigration: (targetDir: string, targetVersion: StepContractMigrationTargetVersion) => Promise<unknown>;
|
|
88
|
+
recoverDocs: (targetDir: string) => Promise<unknown>;
|
|
89
|
+
check: (targetDir: string, targetVersion: StepContractMigrationTargetVersion) => Promise<StepContractMigrationCheckResult>;
|
|
90
|
+
apply: (targetDir: string, targetVersion: StepContractMigrationTargetVersion) => Promise<StepContractMigrationApplyResult>;
|
|
91
|
+
};
|
|
92
|
+
export type StepContractMigrationCommandResult = {
|
|
93
|
+
exitCode: 0 | 1 | 2;
|
|
94
|
+
output: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const copyManagedValidationFiles: (targetDir: string, sourceDir?: string) => Promise<void>;
|
|
97
|
+
export type BoundedNpmCommandOptions = {
|
|
98
|
+
timeoutMs?: number;
|
|
99
|
+
terminationGraceMs?: number;
|
|
100
|
+
finalizationGraceMs?: number;
|
|
101
|
+
};
|
|
102
|
+
export declare const runBoundedNpmCommand: (targetDir: string, args: readonly string[], options?: BoundedNpmCommandOptions) => Promise<void>;
|
|
103
|
+
export declare function executeStepContractMigrationCommand(input: {
|
|
104
|
+
targetDir: string;
|
|
105
|
+
to: string | number;
|
|
106
|
+
options: StepContractMigrationCommandOptions;
|
|
107
|
+
backend?: StepContractMigrationBackend;
|
|
108
|
+
}): Promise<StepContractMigrationCommandResult>;
|
|
109
|
+
export type CreateFunnelHooks = {
|
|
110
|
+
verifyScaffold: (templatePath: string) => Promise<void>;
|
|
111
|
+
materializeAliases: (stageDir: string) => Promise<void>;
|
|
112
|
+
reskin: (stageDir: string, appName: string) => Promise<string[]>;
|
|
113
|
+
installManagedFiles: (stageDir: string) => Promise<void>;
|
|
114
|
+
installDependencies: (stageDir: string) => Promise<void>;
|
|
115
|
+
validate: FunnelValidator;
|
|
116
|
+
beforeCommit?: (outputPath: string) => Promise<void>;
|
|
117
|
+
};
|
|
118
|
+
export type CreateFunnelResult = {
|
|
119
|
+
outputPath: string;
|
|
120
|
+
updatedFiles: string[];
|
|
121
|
+
};
|
|
122
|
+
export declare const verifyPackagedScaffold: (templatePath: string) => Promise<void>;
|
|
123
|
+
export declare const materializePackagedScaffoldAliases: (stageDir: string) => Promise<void>;
|
|
124
|
+
export declare function executeCreateFunnel(input: {
|
|
125
|
+
templateSlug: string;
|
|
126
|
+
templatePath?: string;
|
|
127
|
+
outputPath: string;
|
|
128
|
+
appName: string;
|
|
129
|
+
hooks?: CreateFunnelHooks;
|
|
130
|
+
}): Promise<CreateFunnelResult>;
|
|
6
131
|
type AnalyticsCommandInput = {
|
|
7
132
|
date: string;
|
|
8
133
|
from: string;
|
|
@@ -44,6 +169,11 @@ export declare function buildPatchSourceInput(input: {
|
|
|
44
169
|
files: SourceFile[];
|
|
45
170
|
deletedPaths: string[];
|
|
46
171
|
};
|
|
172
|
+
export declare function formatSourceCandidateSyncSuccess(input: {
|
|
173
|
+
syncedFileCount: number;
|
|
174
|
+
deletedFileCount: number;
|
|
175
|
+
versionId: string;
|
|
176
|
+
}): string;
|
|
47
177
|
export declare function buildSyncOfferSetPlansInput(input: {
|
|
48
178
|
workspaceId: string;
|
|
49
179
|
funnelId: string;
|
|
@@ -65,4 +195,22 @@ export declare function buildGeneratedConfigSyncInput(input: {
|
|
|
65
195
|
};
|
|
66
196
|
export declare function selectGeneratedConfigFiles(files: SourceFile[], kinds: GeneratedConfigKind[]): SourceFile[];
|
|
67
197
|
export declare function assertCanDraftSyncSource(status: GitHubStatusResponse): void;
|
|
198
|
+
export declare const program: Command;
|
|
199
|
+
type AnalyticsApiCall = (input: {
|
|
200
|
+
path: string;
|
|
201
|
+
type: 'query' | 'mutation';
|
|
202
|
+
data?: unknown;
|
|
203
|
+
token?: string | null;
|
|
204
|
+
}) => Promise<unknown>;
|
|
205
|
+
type FunnelPathAnalyticsInput = {
|
|
206
|
+
token: string;
|
|
207
|
+
workspaceId: string;
|
|
208
|
+
projectId: string;
|
|
209
|
+
funnelId: string;
|
|
210
|
+
commandInput: AnalyticsCommandInput;
|
|
211
|
+
};
|
|
212
|
+
export declare const fetchFunnelPathAnalytics: (input: FunnelPathAnalyticsInput, apiCall?: AnalyticsApiCall) => Promise<{
|
|
213
|
+
stepDropoff: AnalyticsStepDropoffResponse;
|
|
214
|
+
publishedFunnelFlow: PublishedFunnelFlowResponse;
|
|
215
|
+
}>;
|
|
68
216
|
export {};
|