@funnelsgrove/cli 0.1.329 → 0.1.332
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/README.md +28 -0
- package/dist/cli.js +91 -0
- package/dist/funnelTemplates.js +5 -0
- package/dist/setupCommands.d.ts +115 -0
- package/dist/setupCommands.js +167 -0
- package/funnel-contract-compatibility.json +28 -28
- package/package.json +4 -4
- package/template_docs/.funnelsgrove-docs.json +3 -3
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_docs/funnel-docs.config.json +1 -1
- package/template_scaffold/.funnelsgrove-docs.json +3 -3
- package/template_scaffold/.funnelsgrove-scaffold.json +7 -7
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/funnel-docs.config.json +1 -1
- package/template_scaffold/package-lock.json +15 -15
- package/template_scaffold/package.json +3 -3
package/README.md
CHANGED
|
@@ -193,6 +193,34 @@ fgrove analytics transitions --project claimbee --funnel claimbee-ios --from 202
|
|
|
193
193
|
|
|
194
194
|
The package also keeps the longer `funnelsgrove` command as a compatibility alias.
|
|
195
195
|
|
|
196
|
+
Follow the project setup guide from the terminal. The steps, instructions and
|
|
197
|
+
checks are the same as the console guide, so a coding agent can work through it:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
fgrove use --project claimbee
|
|
201
|
+
fgrove setup # every step, its readiness, what is missing, next step
|
|
202
|
+
fgrove setup --json # the same for agents
|
|
203
|
+
fgrove setup docs stripe_setup # full instructions for one step
|
|
204
|
+
fgrove setup check stripe_setup # confirm the live webhook with Stripe
|
|
205
|
+
fgrove setup check meta_pixel --test-event-code TEST12345
|
|
206
|
+
fgrove setup complete legal_support
|
|
207
|
+
fgrove setup meta-traffic off # the project does not buy Meta traffic
|
|
208
|
+
fgrove setup secrets stripe-test # single-use link to a FunnelsGrove form for Stripe keys
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Agents never take Stripe keys or the Meta access token. `fgrove setup secrets
|
|
212
|
+
<stripe-test|stripe-live|meta>` prints a link that works once for 30 minutes; the
|
|
213
|
+
person who opens it enters the values in a FunnelsGrove form.
|
|
214
|
+
|
|
215
|
+
Stripe, Offer Sets, the domain, Meta and the app-access claim are Readiness
|
|
216
|
+
Checks: only observed evidence completes them, and `setup complete` does not.
|
|
217
|
+
The last step, customizing the funnel, can be skipped with `setup complete
|
|
218
|
+
customize_funnel`.
|
|
219
|
+
|
|
220
|
+
Running `fgrove setup` for a project marks its Connect the CLI step ready.
|
|
221
|
+
`check`, `meta-traffic` and `secrets` need the workspace Admin role, like the
|
|
222
|
+
matching console buttons; status, docs and completion marks need a member.
|
|
223
|
+
|
|
196
224
|
Edit profitability expenses through a local JSON file:
|
|
197
225
|
|
|
198
226
|
```bash
|
package/dist/cli.js
CHANGED
|
@@ -20,6 +20,7 @@ import { exportFunnelSource } from './sourceExport.js';
|
|
|
20
20
|
import { executeFastDraftPatchSync, uploadDirectAssetWithFetch } from './draftPatchSync.js';
|
|
21
21
|
import { updateCliInstallations } from './selfUpdate.js';
|
|
22
22
|
import { executeExpensePublish, executeExpensePull } from './expenseCommands.js';
|
|
23
|
+
import { createSetupSecretLink, formatSetupStatus, formatStepDocs, readSetupGuide, readSetupStatus, runSetupCheck, setSetupMetaTraffic, setSetupStepCompleted, } from './setupCommands.js';
|
|
23
24
|
import { buildAlertStatisticsReport, fetchAlertStatistics, fetchPreventSummary, formatAlertRows, formatAlertStatistics, formatPreventRows, formatPreventSummary, listAlerts, listPreventSearches, parseAlertMonth, toAlertJsonRow, } from './alertCommands.js';
|
|
24
25
|
import { cancelUserSubscription, findUser, formatUserCancellation, formatUserFind, formatUserLookup, formatUserRefunds, formatRefundPreview, lookupUser, parseUserSelector, previewRefund, refundUserPayments, } from './userCommands.js';
|
|
25
26
|
import { buildBugReport, formatBugReportPreview, resolveBugReportContext, submitBugReport, } from './bugReportCommands.js';
|
|
@@ -2107,6 +2108,96 @@ addExpenseScopeOptions(expensesCommand
|
|
|
2107
2108
|
const result = await executeExpensePublish(scope);
|
|
2108
2109
|
console.log(`Published expenses: ${result.created} created, ${result.updated} updated.`);
|
|
2109
2110
|
});
|
|
2111
|
+
const addSetupScopeOptions = (command) => command
|
|
2112
|
+
.option('--workspace <id-or-slug-or-name>', 'Workspace id, slug, or name')
|
|
2113
|
+
.option('--project <id-or-slug-or-name>', 'Project id, slug, or name')
|
|
2114
|
+
.option('--funnel <id-or-slug-or-name>', 'Funnel the instructions are built for (default: the first funnel)')
|
|
2115
|
+
.option('--json', 'Emit one machine-readable response');
|
|
2116
|
+
/** Project scope and selected funnel for the setup guide commands (ONB-BR-028). */
|
|
2117
|
+
const resolveSetupScope = async (options) => {
|
|
2118
|
+
const scope = await resolveProjectCommandScope(options);
|
|
2119
|
+
const funnelId = options.funnel ? (await resolveFunnel(scope.token, scope.workspaceId, options.funnel)).id : undefined;
|
|
2120
|
+
return { scope, funnelId };
|
|
2121
|
+
};
|
|
2122
|
+
const printSetupResult = (options, value, text) => {
|
|
2123
|
+
console.log(options.json ? JSON.stringify(value, null, 2) : text);
|
|
2124
|
+
};
|
|
2125
|
+
const setupCommand = addExamples(program.command('setup').description('Follow the project setup guide: status, instructions, checks and secret links'), [
|
|
2126
|
+
'fgrove setup',
|
|
2127
|
+
'fgrove setup --json',
|
|
2128
|
+
'fgrove setup docs stripe_setup',
|
|
2129
|
+
'fgrove setup check meta_pixel --test-event-code TEST12345',
|
|
2130
|
+
'fgrove setup complete legal_support',
|
|
2131
|
+
'fgrove setup meta-traffic off',
|
|
2132
|
+
'fgrove setup secrets stripe-test',
|
|
2133
|
+
]);
|
|
2134
|
+
addSetupScopeOptions(setupCommand
|
|
2135
|
+
.command('status', { isDefault: true })
|
|
2136
|
+
.description('Show every setup step, its readiness, what is missing and the next step'))
|
|
2137
|
+
.action(async (options) => {
|
|
2138
|
+
const { scope, funnelId } = await resolveSetupScope(options);
|
|
2139
|
+
const status = await readSetupStatus(scope, { funnelId });
|
|
2140
|
+
printSetupResult(options, status, formatSetupStatus(status));
|
|
2141
|
+
});
|
|
2142
|
+
addSetupScopeOptions(setupCommand
|
|
2143
|
+
.command('docs <step>')
|
|
2144
|
+
.description('Print the full instructions for one setup step, the same text as the console guide'))
|
|
2145
|
+
.action(async (step, options) => {
|
|
2146
|
+
const { scope, funnelId } = await resolveSetupScope(options);
|
|
2147
|
+
const guide = await readSetupGuide(scope, funnelId);
|
|
2148
|
+
const text = formatStepDocs(guide, step);
|
|
2149
|
+
printSetupResult(options, {
|
|
2150
|
+
section: guide.content.sections.find(({ key }) => key === step),
|
|
2151
|
+
readiness: guide.readiness[step],
|
|
2152
|
+
internalLinks: guide.internalLinks,
|
|
2153
|
+
}, text);
|
|
2154
|
+
});
|
|
2155
|
+
addSetupScopeOptions(setupCommand
|
|
2156
|
+
.command('check <step>')
|
|
2157
|
+
.description('Run the step check (Stripe live webhook, Meta test event, domain refresh) and show its readiness')
|
|
2158
|
+
.option('--test-event-code <code>', 'Meta Events Manager → Test Events code, used for this test only')
|
|
2159
|
+
.option('--pixel <id>', 'Meta pixel id (default: the project default pixel)'))
|
|
2160
|
+
.action(async (step, options) => {
|
|
2161
|
+
const { scope, funnelId } = await resolveSetupScope(options);
|
|
2162
|
+
const result = await runSetupCheck(scope, step, { funnelId, testEventCode: options.testEventCode, pixelId: options.pixel });
|
|
2163
|
+
printSetupResult(options, result, [
|
|
2164
|
+
...(result.check ? [`check\t${JSON.stringify(result.check)}`] : []),
|
|
2165
|
+
`${result.step.key}\t${result.step.done ? 'done' : result.step.status} ${result.step.readyCount}/${result.step.totalCount}`,
|
|
2166
|
+
...result.step.missing.map((item) => `missing\t${item}`),
|
|
2167
|
+
].join('\n'));
|
|
2168
|
+
});
|
|
2169
|
+
addSetupScopeOptions(setupCommand
|
|
2170
|
+
.command('complete <step>')
|
|
2171
|
+
.description('Mark a manual setup step complete; a mark never passes a readiness check')
|
|
2172
|
+
.option('--undo', 'Clear the completion mark'))
|
|
2173
|
+
.action(async (step, options) => {
|
|
2174
|
+
const { scope } = await resolveSetupScope(options);
|
|
2175
|
+
const result = await setSetupStepCompleted(scope, step, !options.undo);
|
|
2176
|
+
printSetupResult(options, result, `${step}\t${options.undo ? 'not complete' : 'complete'}`);
|
|
2177
|
+
});
|
|
2178
|
+
addSetupScopeOptions(setupCommand
|
|
2179
|
+
.command('meta-traffic <on|off>')
|
|
2180
|
+
.description('Say whether this project buys Meta traffic; off marks the Meta step as not needed'))
|
|
2181
|
+
.action(async (value, options) => {
|
|
2182
|
+
if (value !== 'on' && value !== 'off')
|
|
2183
|
+
throw new Error('Use fgrove setup meta-traffic on or off.');
|
|
2184
|
+
const { scope } = await resolveSetupScope(options);
|
|
2185
|
+
const result = await setSetupMetaTraffic(scope, value === 'on');
|
|
2186
|
+
printSetupResult(options, result, `metaTraffic\t${value}`);
|
|
2187
|
+
});
|
|
2188
|
+
addSetupScopeOptions(setupCommand
|
|
2189
|
+
.command('secrets <stripe-test|stripe-live|meta>')
|
|
2190
|
+
.description('Create a single-use link to a FunnelsGrove form for Stripe keys or the Meta token; values never pass through the CLI'))
|
|
2191
|
+
.action(async (kind, options) => {
|
|
2192
|
+
const { scope } = await resolveSetupScope(options);
|
|
2193
|
+
const link = await createSetupSecretLink(scope, kind);
|
|
2194
|
+
printSetupResult(options, link, [
|
|
2195
|
+
'Send this link to the person who has the values. It works once and expires at '
|
|
2196
|
+
+ `${new Date(link.expiresAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}:`,
|
|
2197
|
+
link.url,
|
|
2198
|
+
'The values go straight to FunnelsGrove; this CLI never sees them. Check the result with fgrove setup.',
|
|
2199
|
+
].join('\n'));
|
|
2200
|
+
});
|
|
2110
2201
|
const addReferenceOptions = (command) => command
|
|
2111
2202
|
.option('--site-url <url>', 'Public Funnel Screens website URL', DEFAULT_REFERENCE_SITE_URL)
|
|
2112
2203
|
.option('--json', 'Emit one machine-readable reference response');
|
package/dist/funnelTemplates.js
CHANGED
|
@@ -14,6 +14,11 @@ const TEMPLATE_DESCRIPTIONS = {
|
|
|
14
14
|
bestFor: 'A visual product story that needs more explanation and proof before checkout.',
|
|
15
15
|
includes: ['Long-form offer', 'Feature carousel', 'FAQ', 'Wallet and card entry', 'Subscription management'],
|
|
16
16
|
},
|
|
17
|
+
danca: {
|
|
18
|
+
description: 'A short-form single-page offer with an image hero, sticky app identity, example showcase, three-step block, feature list, FAQ and wallet/card entry.',
|
|
19
|
+
bestFor: 'A concise product story that sells one clear outcome without a quiz.',
|
|
20
|
+
includes: ['Short-form offer', 'Example showcase', 'Three steps', 'FAQ', 'Wallet and card entry', 'Subscription management'],
|
|
21
|
+
},
|
|
17
22
|
};
|
|
18
23
|
export const describeFunnelTemplate = (template, workspaceId) => ({
|
|
19
24
|
slug: template.key,
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
type CallApi = <T>(input: {
|
|
2
|
+
path: string;
|
|
3
|
+
type: 'query' | 'mutation';
|
|
4
|
+
data?: unknown;
|
|
5
|
+
token?: string | null;
|
|
6
|
+
}) => Promise<T>;
|
|
7
|
+
export type SetupScope = {
|
|
8
|
+
callApi: CallApi;
|
|
9
|
+
token: string;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
};
|
|
13
|
+
type GuideReadiness = {
|
|
14
|
+
status: 'ready' | 'partial' | 'missing';
|
|
15
|
+
readyCount: number;
|
|
16
|
+
totalCount: number;
|
|
17
|
+
missing: string[];
|
|
18
|
+
manual?: true;
|
|
19
|
+
warnings?: string[];
|
|
20
|
+
notApplicable?: true;
|
|
21
|
+
};
|
|
22
|
+
type GuideLink = {
|
|
23
|
+
label: string;
|
|
24
|
+
href?: string;
|
|
25
|
+
internalLinkKey?: string;
|
|
26
|
+
};
|
|
27
|
+
type GuideSection = {
|
|
28
|
+
key: string;
|
|
29
|
+
readinessKey: string;
|
|
30
|
+
title: string;
|
|
31
|
+
summary: string;
|
|
32
|
+
why: string;
|
|
33
|
+
actions: string[];
|
|
34
|
+
links: GuideLink[];
|
|
35
|
+
notices: Array<{
|
|
36
|
+
tone: string;
|
|
37
|
+
title?: string;
|
|
38
|
+
body: string;
|
|
39
|
+
}>;
|
|
40
|
+
codeBlocks: Array<{
|
|
41
|
+
label: string;
|
|
42
|
+
language: string;
|
|
43
|
+
code: string;
|
|
44
|
+
}>;
|
|
45
|
+
manualOnly?: true;
|
|
46
|
+
};
|
|
47
|
+
/** The guide projection the console renders (ONB-BR-028); the CLI prints the same content. */
|
|
48
|
+
export type SetupGuide = {
|
|
49
|
+
project: {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
};
|
|
53
|
+
funnels: Array<{
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
slug: string;
|
|
57
|
+
publicUrl: string | null;
|
|
58
|
+
}>;
|
|
59
|
+
selectedFunnelId: string | null;
|
|
60
|
+
content: {
|
|
61
|
+
title: string;
|
|
62
|
+
sections: GuideSection[];
|
|
63
|
+
};
|
|
64
|
+
readiness: Record<string, GuideReadiness>;
|
|
65
|
+
completedSteps: string[];
|
|
66
|
+
usesMetaTraffic: boolean;
|
|
67
|
+
internalLinks: Record<string, string>;
|
|
68
|
+
};
|
|
69
|
+
export type SetupStep = {
|
|
70
|
+
key: string;
|
|
71
|
+
title: string;
|
|
72
|
+
summary: string;
|
|
73
|
+
status: GuideReadiness['status'];
|
|
74
|
+
readyCount: number;
|
|
75
|
+
totalCount: number;
|
|
76
|
+
missing: string[];
|
|
77
|
+
warnings: string[];
|
|
78
|
+
notApplicable: boolean;
|
|
79
|
+
manual: boolean;
|
|
80
|
+
/** Marked complete in the guide. A mark never satisfies a Readiness Check (ONB-BR-010a). */
|
|
81
|
+
completed: boolean;
|
|
82
|
+
done: boolean;
|
|
83
|
+
};
|
|
84
|
+
export type SetupStatus = {
|
|
85
|
+
title: string;
|
|
86
|
+
project: SetupGuide['project'];
|
|
87
|
+
funnels: SetupGuide['funnels'];
|
|
88
|
+
selectedFunnelId: string | null;
|
|
89
|
+
steps: SetupStep[];
|
|
90
|
+
next: string | null;
|
|
91
|
+
};
|
|
92
|
+
export declare const readSetupGuide: (scope: SetupScope, funnelId?: string) => Promise<SetupGuide>;
|
|
93
|
+
export declare const readSetupStatus: (scope: SetupScope, options: {
|
|
94
|
+
funnelId?: string;
|
|
95
|
+
}) => Promise<SetupStatus>;
|
|
96
|
+
export declare const formatSetupStatus: (status: SetupStatus) => string;
|
|
97
|
+
export declare const formatStepDocs: (guide: SetupGuide, stepKey: string) => string;
|
|
98
|
+
/** Runs the step's own check where it has one (the same procedures as the console buttons), then re-reads readiness. */
|
|
99
|
+
export declare const runSetupCheck: (scope: SetupScope, stepKey: string, options: {
|
|
100
|
+
funnelId?: string;
|
|
101
|
+
testEventCode?: string;
|
|
102
|
+
pixelId?: string;
|
|
103
|
+
}) => Promise<{
|
|
104
|
+
check: unknown;
|
|
105
|
+
step: SetupStep;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const setSetupStepCompleted: (scope: SetupScope, stepKey: string, completed: boolean) => Promise<unknown>;
|
|
108
|
+
export declare const setSetupMetaTraffic: (scope: SetupScope, usesMetaTraffic: boolean) => Promise<unknown>;
|
|
109
|
+
/** ONB-BR-030: a single-use link to a FunnelsGrove form; the agent passes the link on and never sees the values. */
|
|
110
|
+
export declare const createSetupSecretLink: (scope: SetupScope, kind: string) => Promise<{
|
|
111
|
+
url: string;
|
|
112
|
+
kind: string;
|
|
113
|
+
expiresAt: string;
|
|
114
|
+
}>;
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/** Readiness Checks pass only on observed evidence; every other step also counts a manual mark (ONB-BR-010a). */
|
|
2
|
+
const READINESS_CHECK_STEPS = new Set(['stripe_setup', 'offer_sets', 'custom_domain', 'meta_pixel', 'subscription_claim']);
|
|
3
|
+
const projectScope = (scope) => ({ workspaceId: scope.workspaceId, projectId: scope.projectId });
|
|
4
|
+
export const readSetupGuide = (scope, funnelId) => scope.callApi({
|
|
5
|
+
path: 'projects.readIntegrationGuide',
|
|
6
|
+
type: 'query',
|
|
7
|
+
token: scope.token,
|
|
8
|
+
data: { ...projectScope(scope), ...(funnelId ? { funnelId } : {}) },
|
|
9
|
+
});
|
|
10
|
+
const findSection = (guide, stepKey) => {
|
|
11
|
+
const section = guide.content.sections.find(({ key }) => key === stepKey);
|
|
12
|
+
if (!section) {
|
|
13
|
+
throw new Error(`Unknown setup step "${stepKey}". Steps: ${guide.content.sections.map(({ key }) => key).join(', ')}`);
|
|
14
|
+
}
|
|
15
|
+
return section;
|
|
16
|
+
};
|
|
17
|
+
const toStep = (guide, section) => {
|
|
18
|
+
const readiness = guide.readiness[section.readinessKey];
|
|
19
|
+
const completed = guide.completedSteps.includes(section.key);
|
|
20
|
+
const manual = !READINESS_CHECK_STEPS.has(section.key);
|
|
21
|
+
return {
|
|
22
|
+
key: section.key,
|
|
23
|
+
title: section.title,
|
|
24
|
+
summary: section.summary,
|
|
25
|
+
status: readiness.status,
|
|
26
|
+
readyCount: readiness.readyCount,
|
|
27
|
+
totalCount: readiness.totalCount,
|
|
28
|
+
missing: readiness.missing,
|
|
29
|
+
warnings: readiness.warnings || [],
|
|
30
|
+
notApplicable: Boolean(readiness.notApplicable),
|
|
31
|
+
manual,
|
|
32
|
+
completed,
|
|
33
|
+
done: readiness.status === 'ready' || (manual && completed),
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
const toStatus = (guide) => {
|
|
37
|
+
const steps = guide.content.sections.map((section) => toStep(guide, section));
|
|
38
|
+
return {
|
|
39
|
+
title: guide.content.title,
|
|
40
|
+
project: guide.project,
|
|
41
|
+
funnels: guide.funnels,
|
|
42
|
+
selectedFunnelId: guide.selectedFunnelId,
|
|
43
|
+
steps,
|
|
44
|
+
next: steps.find(({ done }) => !done)?.key || null,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export const readSetupStatus = async (scope, options) => (toStatus(await readSetupGuide(scope, options.funnelId)));
|
|
48
|
+
const stepLabel = (step) => {
|
|
49
|
+
if (step.notApplicable)
|
|
50
|
+
return 'not needed';
|
|
51
|
+
const state = step.done ? 'done' : step.status;
|
|
52
|
+
return `${state} ${step.readyCount}/${step.totalCount}${step.completed ? ', marked complete' : ''}${step.manual ? ', manual' : ''}`;
|
|
53
|
+
};
|
|
54
|
+
export const formatSetupStatus = (status) => {
|
|
55
|
+
const funnel = status.funnels.find(({ id }) => id === status.selectedFunnelId);
|
|
56
|
+
const lines = [status.title, `funnel\t${funnel ? `${funnel.name} (${funnel.id})` : 'none'}`, ''];
|
|
57
|
+
status.steps.forEach((step, index) => {
|
|
58
|
+
lines.push(`${String(index + 1).padStart(2, '0')} ${step.done ? '[x]' : '[ ]'} ${step.key}\t${step.title}\t${stepLabel(step)}`);
|
|
59
|
+
if (!step.done) {
|
|
60
|
+
step.missing.forEach((item) => lines.push(` missing: ${item}`));
|
|
61
|
+
}
|
|
62
|
+
step.warnings.forEach((item) => lines.push(` warning: ${item}`));
|
|
63
|
+
});
|
|
64
|
+
lines.push('');
|
|
65
|
+
lines.push(status.next
|
|
66
|
+
? `Next: ${status.next}. Read it with: fgrove setup docs ${status.next}`
|
|
67
|
+
: 'Every step is done.');
|
|
68
|
+
return lines.join('\n');
|
|
69
|
+
};
|
|
70
|
+
export const formatStepDocs = (guide, stepKey) => {
|
|
71
|
+
const section = findSection(guide, stepKey);
|
|
72
|
+
const step = toStep(guide, section);
|
|
73
|
+
const lines = [
|
|
74
|
+
`${section.title} (${section.key}) — ${stepLabel(step)}`,
|
|
75
|
+
section.summary,
|
|
76
|
+
'',
|
|
77
|
+
`Why: ${section.why}`,
|
|
78
|
+
'',
|
|
79
|
+
'Do this:',
|
|
80
|
+
...section.actions.map((action, index) => `${index + 1}. ${action}`),
|
|
81
|
+
];
|
|
82
|
+
if (!step.done && step.missing.length) {
|
|
83
|
+
lines.push('', 'Still missing:', ...step.missing.map((item) => `- ${item}`));
|
|
84
|
+
}
|
|
85
|
+
const links = section.links.flatMap((link) => {
|
|
86
|
+
const href = link.internalLinkKey ? guide.internalLinks[link.internalLinkKey] : link.href;
|
|
87
|
+
return href ? [`- ${link.label}: ${href}`] : [];
|
|
88
|
+
});
|
|
89
|
+
if (links.length)
|
|
90
|
+
lines.push('', 'Links:', ...links);
|
|
91
|
+
section.notices.forEach((notice) => lines.push('', `${notice.title ? `${notice.title}: ` : ''}${notice.body}`));
|
|
92
|
+
section.codeBlocks.forEach((block) => lines.push('', `${block.label}:`, block.code));
|
|
93
|
+
return lines.join('\n');
|
|
94
|
+
};
|
|
95
|
+
const runActiveCheck = async (scope, stepKey, options) => {
|
|
96
|
+
const data = projectScope(scope);
|
|
97
|
+
if (stepKey === 'stripe_setup') {
|
|
98
|
+
// The console's sync catalog, test connection and live webhook check, in that order.
|
|
99
|
+
const profile = (await scope.callApi({
|
|
100
|
+
path: 'projects.listPaymentProfiles', type: 'query', token: scope.token, data,
|
|
101
|
+
})).profiles.find((candidate) => candidate.status === 'active' && candidate.provider === 'stripe');
|
|
102
|
+
if (!profile) {
|
|
103
|
+
throw new Error('Save Stripe keys first: fgrove setup secrets stripe-test');
|
|
104
|
+
}
|
|
105
|
+
const profileData = { ...data, paymentProfileId: profile.id };
|
|
106
|
+
const catalogs = {};
|
|
107
|
+
for (const environment of ['test', 'live']) {
|
|
108
|
+
if (profile[`has_${environment}_secret_key`]) {
|
|
109
|
+
catalogs[environment] = await scope.callApi({
|
|
110
|
+
path: 'projects.syncPaymentProviderCatalog', type: 'mutation', token: scope.token, data: { ...profileData, environment },
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const connection = await scope.callApi({ path: 'projects.validatePaymentProfile', type: 'mutation', token: scope.token, data: profileData });
|
|
115
|
+
const webhooks = await scope.callApi({ path: 'projects.checkIntegrationGuideStripeLiveWebhooks', type: 'mutation', token: scope.token, data });
|
|
116
|
+
return { catalogs, connection, webhooks };
|
|
117
|
+
}
|
|
118
|
+
if (stepKey === 'custom_domain') {
|
|
119
|
+
await scope.callApi({ path: 'projects.refreshDomainStatus', type: 'mutation', token: scope.token, data });
|
|
120
|
+
return { refreshed: true };
|
|
121
|
+
}
|
|
122
|
+
if (stepKey === 'meta_pixel') {
|
|
123
|
+
const testEventCode = options.testEventCode?.trim();
|
|
124
|
+
if (!testEventCode) {
|
|
125
|
+
throw new Error('Pass --test-event-code with the code from Meta Events Manager → Test Events. It is used for this test only.');
|
|
126
|
+
}
|
|
127
|
+
const pixelId = options.pixelId || (await scope.callApi({
|
|
128
|
+
path: 'projects.metaPixels', type: 'query', token: scope.token, data,
|
|
129
|
+
})).defaultPixelId;
|
|
130
|
+
if (!pixelId) {
|
|
131
|
+
throw new Error('This project has no default Meta pixel. Add one first: fgrove setup secrets meta');
|
|
132
|
+
}
|
|
133
|
+
return scope.callApi({ path: 'projects.testMetaPixel', type: 'mutation', token: scope.token, data: { ...data, id: pixelId, testEventCode } });
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
136
|
+
};
|
|
137
|
+
/** Runs the step's own check where it has one (the same procedures as the console buttons), then re-reads readiness. */
|
|
138
|
+
export const runSetupCheck = async (scope, stepKey, options) => {
|
|
139
|
+
const check = await runActiveCheck(scope, stepKey, options);
|
|
140
|
+
const guide = await readSetupGuide(scope, options.funnelId);
|
|
141
|
+
return { check, step: toStep(guide, findSection(guide, stepKey)) };
|
|
142
|
+
};
|
|
143
|
+
export const setSetupStepCompleted = (scope, stepKey, completed) => scope.callApi({
|
|
144
|
+
path: 'projects.setIntegrationGuideStep',
|
|
145
|
+
type: 'mutation',
|
|
146
|
+
token: scope.token,
|
|
147
|
+
data: { ...projectScope(scope), stepKey, completed },
|
|
148
|
+
});
|
|
149
|
+
export const setSetupMetaTraffic = (scope, usesMetaTraffic) => scope.callApi({
|
|
150
|
+
path: 'projects.setIntegrationGuideMetaTraffic',
|
|
151
|
+
type: 'mutation',
|
|
152
|
+
token: scope.token,
|
|
153
|
+
data: { ...projectScope(scope), usesMetaTraffic },
|
|
154
|
+
});
|
|
155
|
+
const SECRET_KINDS = { 'stripe-test': 'stripe_test', 'stripe-live': 'stripe_live', meta: 'meta' };
|
|
156
|
+
/** ONB-BR-030: a single-use link to a FunnelsGrove form; the agent passes the link on and never sees the values. */
|
|
157
|
+
export const createSetupSecretLink = async (scope, kind) => {
|
|
158
|
+
const apiKind = SECRET_KINDS[kind];
|
|
159
|
+
if (!apiKind)
|
|
160
|
+
throw new Error('Use stripe-test, stripe-live or meta.');
|
|
161
|
+
return scope.callApi({
|
|
162
|
+
path: 'projects.createIntegrationGuideSecretRequest',
|
|
163
|
+
type: 'mutation',
|
|
164
|
+
token: scope.token,
|
|
165
|
+
data: { ...projectScope(scope), kind: apiKind },
|
|
166
|
+
});
|
|
167
|
+
};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.332",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.325",
|
|
11
11
|
"stepContractVersion": 3,
|
|
12
12
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
13
13
|
"managedFiles": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
48
|
-
"sha256": "
|
|
48
|
+
"sha256": "25501d23626a603c4311821098d304215259aec8838d63d6da24605457a756e6"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -145,16 +145,16 @@
|
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"path": "funnel-docs.config.json",
|
|
148
|
-
"sha256": "
|
|
148
|
+
"sha256": "c64d15291255c5f574d4874d27dfdf3cf3f635688dff641ea3713106fe37aaf4"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.331",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.324",
|
|
158
158
|
"stepContractVersion": 3,
|
|
159
159
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
160
160
|
"managedFiles": [
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
195
|
-
"sha256": "
|
|
195
|
+
"sha256": "301cf088be042bccf7384efda6ac3e0ded320411116f97870e880968ec3ef1a6"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -292,16 +292,16 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "funnel-docs.config.json",
|
|
295
|
-
"sha256": "
|
|
295
|
+
"sha256": "0181f6714d853b9b524da809435968b18262ae2284718b88c6c3343b95d0fbd6"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.330",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.323",
|
|
305
305
|
"stepContractVersion": 3,
|
|
306
306
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
307
307
|
"managedFiles": [
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
342
|
-
"sha256": "
|
|
342
|
+
"sha256": "2e5d50b19342ff77251e9579f79c75408105ce6ab23d6e9394fa21bf2c1a5b60"
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -439,16 +439,16 @@
|
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
"path": "funnel-docs.config.json",
|
|
442
|
-
"sha256": "
|
|
442
|
+
"sha256": "507aabae6446b0bbce087baf1e506e58d5411336fe3189d60a256f920bec2b9b"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.329",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.322",
|
|
452
452
|
"stepContractVersion": 3,
|
|
453
453
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
454
454
|
"managedFiles": [
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
489
|
-
"sha256": "
|
|
489
|
+
"sha256": "562b86f8b2f0e64523d6961cc7e948de8079fd087f9f81199b8fb8141e4aae20"
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -586,16 +586,16 @@
|
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
"path": "funnel-docs.config.json",
|
|
589
|
-
"sha256": "
|
|
589
|
+
"sha256": "79d1d2f25a13c7328e1e273c1ea4a503545962293a6a5edfd45b8748e7d592f2"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.328",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.321",
|
|
599
599
|
"stepContractVersion": 3,
|
|
600
600
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
601
601
|
"managedFiles": [
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
636
|
-
"sha256": "
|
|
636
|
+
"sha256": "b7f5450a5520349717fa5d601f4d061a11cdb9ac1db2ea0dc10ec6d521689a96"
|
|
637
637
|
},
|
|
638
638
|
{
|
|
639
639
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -733,16 +733,16 @@
|
|
|
733
733
|
},
|
|
734
734
|
{
|
|
735
735
|
"path": "funnel-docs.config.json",
|
|
736
|
-
"sha256": "
|
|
736
|
+
"sha256": "71aa9aaedf4483f7df6df4ad13cde478646710d8da41a6ae0cd85e14885217a6"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.327",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.320",
|
|
746
746
|
"stepContractVersion": 3,
|
|
747
747
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
748
748
|
"managedFiles": [
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
},
|
|
781
781
|
{
|
|
782
782
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
783
|
-
"sha256": "
|
|
783
|
+
"sha256": "64f0e149684f5d4a4cf024b38e5c7c77f4acaa34817bed9bb36745ca6b61b5d1"
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
786
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -880,16 +880,16 @@
|
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
"path": "funnel-docs.config.json",
|
|
883
|
-
"sha256": "
|
|
883
|
+
"sha256": "d47a44ae4d874e59083cee011b0bfcf2dba4713935cece3d7a87b070e6651ba8"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.326",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.319",
|
|
893
893
|
"stepContractVersion": 3,
|
|
894
894
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
895
895
|
"managedFiles": [
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
},
|
|
928
928
|
{
|
|
929
929
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
930
|
-
"sha256": "
|
|
930
|
+
"sha256": "0b7842793fe4ae286fef1fd46f3ed6207ab0ba265607a2f48360a09ffe2ebfa6"
|
|
931
931
|
},
|
|
932
932
|
{
|
|
933
933
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
1029
|
"path": "funnel-docs.config.json",
|
|
1030
|
-
"sha256": "
|
|
1030
|
+
"sha256": "67934bae7d434f963b2432017ea7e6c2ea6de3711741b445588934fd39568054"
|
|
1031
1031
|
}
|
|
1032
1032
|
]
|
|
1033
1033
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnelsgrove/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.332",
|
|
4
4
|
"description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"test": "vitest run"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@funnelsgrove/runtime": "0.
|
|
37
|
+
"@funnelsgrove/runtime": "0.43.0",
|
|
38
38
|
"commander": "^12.0.0",
|
|
39
39
|
"ignore": "^7.0.8",
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@funnelsgrove/analytics": "0.
|
|
44
|
-
"@funnelsgrove/payments": "0.
|
|
43
|
+
"@funnelsgrove/analytics": "0.26.0",
|
|
44
|
+
"@funnelsgrove/payments": "0.66.0",
|
|
45
45
|
"vitest": "^3.0.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.325",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
5
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
6
6
|
"managedFiles": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "25501d23626a603c4311821098d304215259aec8838d63d6da24605457a756e6"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "c64d15291255c5f574d4874d27dfdf3cf3f635688dff641ea3713106fe37aaf4"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
|
|
|
17
17
|
|
|
18
18
|
### Package release order
|
|
19
19
|
|
|
20
|
-
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.43.0`, then `@funnelsgrove/analytics` `0.26.0`, then `@funnelsgrove/payments` `0.66.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.43.0`, then `@funnelsgrove/analytics` `0.26.0`, then `@funnelsgrove/payments` `0.66.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.332`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
|
|
21
21
|
<!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
|
|
22
22
|
|
|
23
23
|
## Version-last policy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.325",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
5
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
6
6
|
"managedFiles": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "25501d23626a603c4311821098d304215259aec8838d63d6da24605457a756e6"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "c64d15291255c5f574d4874d27dfdf3cf3f635688dff641ea3713106fe37aaf4"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "eb91b1cd723e5d76190e0ce239901f203b7bce108d54bac37419ceba256ef45c",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.325",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": ".env.example",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": ".funnelsgrove-docs.json",
|
|
19
|
-
"sha256": "
|
|
19
|
+
"sha256": "680f3b99ef75cc6e6bbc7abf3b37014f093a7aafc86e87ebc5d55161d5cfb81f",
|
|
20
20
|
"mode": "100644"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
79
|
-
"sha256": "
|
|
79
|
+
"sha256": "25501d23626a603c4311821098d304215259aec8838d63d6da24605457a756e6",
|
|
80
80
|
"mode": "100644"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"path": "funnel-docs.config.json",
|
|
209
|
-
"sha256": "
|
|
209
|
+
"sha256": "c64d15291255c5f574d4874d27dfdf3cf3f635688dff641ea3713106fe37aaf4",
|
|
210
210
|
"mode": "100644"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
@@ -236,12 +236,12 @@
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"path": "package-lock.json",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "e863d319ce9331fb7f2482c77aafbd46936536215dc4279e5e8f73c1e6be5e96",
|
|
240
240
|
"mode": "100644"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"path": "package.json",
|
|
244
|
-
"sha256": "
|
|
244
|
+
"sha256": "c70d2829095651d2041ad9cda244eb05c7fc8b9cbcabceb22805bb541a3b051a",
|
|
245
245
|
"mode": "100644"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
|
|
|
17
17
|
|
|
18
18
|
### Package release order
|
|
19
19
|
|
|
20
|
-
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.43.0`, then `@funnelsgrove/analytics` `0.26.0`, then `@funnelsgrove/payments` `0.66.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.43.0`, then `@funnelsgrove/analytics` `0.26.0`, then `@funnelsgrove/payments` `0.66.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.332`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
|
|
21
21
|
<!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
|
|
22
22
|
|
|
23
23
|
## Version-last policy
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"name": "funnel-template",
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@funnelsgrove/analytics": "^0.
|
|
12
|
-
"@funnelsgrove/payments": "^0.
|
|
13
|
-
"@funnelsgrove/runtime": "^0.
|
|
11
|
+
"@funnelsgrove/analytics": "^0.26.0",
|
|
12
|
+
"@funnelsgrove/payments": "^0.66.0",
|
|
13
|
+
"@funnelsgrove/runtime": "^0.43.0",
|
|
14
14
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
15
15
|
"@stripe/stripe-js": "^8.7.0",
|
|
16
16
|
"lucide-react": "^0.553.0",
|
|
@@ -940,17 +940,17 @@
|
|
|
940
940
|
}
|
|
941
941
|
},
|
|
942
942
|
"node_modules/@funnelsgrove/analytics": {
|
|
943
|
-
"version": "0.
|
|
944
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.
|
|
945
|
-
"integrity": "sha512-
|
|
943
|
+
"version": "0.26.0",
|
|
944
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.26.0.tgz",
|
|
945
|
+
"integrity": "sha512-bNBk/LBSOFwTWpyBXwrAlrMI0vYFSFuQP+Cxg9m4FBySsHyOr3eCKukGdlFe576XdhmUSXLEEvCgKIkMfejujg==",
|
|
946
946
|
"peerDependencies": {
|
|
947
|
-
"@funnelsgrove/runtime": "^0.
|
|
947
|
+
"@funnelsgrove/runtime": "^0.43.0"
|
|
948
948
|
}
|
|
949
949
|
},
|
|
950
950
|
"node_modules/@funnelsgrove/payments": {
|
|
951
|
-
"version": "0.
|
|
952
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.
|
|
953
|
-
"integrity": "sha512-
|
|
951
|
+
"version": "0.66.0",
|
|
952
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.66.0.tgz",
|
|
953
|
+
"integrity": "sha512-IlbHPg7mDhsoiYXev0pIxKOcJn8QiYP+RQkzDjnbK9EM+axG5CDz+9cktVNUjwkY1EVa/dtuNzIFjrKmB8h8tw==",
|
|
954
954
|
"dependencies": {
|
|
955
955
|
"@solidgate/react-sdk": "1.34.0",
|
|
956
956
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
@@ -960,14 +960,14 @@
|
|
|
960
960
|
"stripe": "^20.3.1"
|
|
961
961
|
},
|
|
962
962
|
"peerDependencies": {
|
|
963
|
-
"@funnelsgrove/analytics": "^0.
|
|
964
|
-
"@funnelsgrove/runtime": "^0.
|
|
963
|
+
"@funnelsgrove/analytics": "^0.26.0",
|
|
964
|
+
"@funnelsgrove/runtime": "^0.43.0"
|
|
965
965
|
}
|
|
966
966
|
},
|
|
967
967
|
"node_modules/@funnelsgrove/runtime": {
|
|
968
|
-
"version": "0.
|
|
969
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.
|
|
970
|
-
"integrity": "sha512-
|
|
968
|
+
"version": "0.43.0",
|
|
969
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.43.0.tgz",
|
|
970
|
+
"integrity": "sha512-KogKFbsMlslop/6OuwFNN2vpN0MMDs0DAbKSN+aIofw84ztYUHAeZItDB+CtBmtHVpEKW5vRWCUTjZvBXncC3Q==",
|
|
971
971
|
"dependencies": {
|
|
972
972
|
"@funnelsgrove/sdk": "0.4.0",
|
|
973
973
|
"posthog-js": "^1.369.2",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"validate:funnel": "vite-node --config src/contract/funnel-validator.vite.config.ts src/contract/validate-funnel.cli.ts"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@funnelsgrove/analytics": "^0.
|
|
16
|
-
"@funnelsgrove/payments": "^0.
|
|
17
|
-
"@funnelsgrove/runtime": "^0.
|
|
15
|
+
"@funnelsgrove/analytics": "^0.26.0",
|
|
16
|
+
"@funnelsgrove/payments": "^0.66.0",
|
|
17
|
+
"@funnelsgrove/runtime": "^0.43.0",
|
|
18
18
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
19
19
|
"@stripe/stripe-js": "^8.7.0",
|
|
20
20
|
"lucide-react": "^0.553.0",
|