@funnelsgrove/cli 0.1.143 → 0.1.147
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 +17 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +67 -0
- package/dist/contractCompatibility.js +1 -1
- package/dist/emailCommands.js +2 -2
- package/dist/selfUpdate.d.ts +24 -0
- package/dist/selfUpdate.js +82 -0
- package/funnel-contract-compatibility.json +35 -35
- package/package.json +3 -3
- package/template_docs/.funnelsgrove-docs.json +4 -4
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_docs/docs/funnelsgrove/qa/publish.md +1 -0
- package/template_docs/funnel-docs.config.json +1 -1
- package/template_scaffold/.funnelsgrove-docs.json +4 -4
- package/template_scaffold/.funnelsgrove-scaffold.json +9 -9
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/docs/funnelsgrove/qa/publish.md +1 -0
- package/template_scaffold/funnel-docs.config.json +1 -1
- package/template_scaffold/package-lock.json +9 -9
- package/template_scaffold/package.json +2 -2
- package/template_scaffold/src/steps/step-32-paywall.tsx +27 -24
package/README.md
CHANGED
|
@@ -7,6 +7,17 @@ npm install -g @funnelsgrove/cli
|
|
|
7
7
|
fgrove login
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
Update every global installation visible on `PATH` (including separate NVM and
|
|
11
|
+
Homebrew prefixes) with one command:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
fgrove update
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Use `fgrove update --dry-run` to inspect the installations first. The updater
|
|
18
|
+
runs each installation's sibling `npm`, so duplicate global installs cannot
|
|
19
|
+
silently remain on different CLI versions.
|
|
20
|
+
|
|
10
21
|
Sync a funnel into its own local folder:
|
|
11
22
|
|
|
12
23
|
```bash
|
|
@@ -29,6 +40,10 @@ fgrove publish --env preview
|
|
|
29
40
|
|
|
30
41
|
Inside a synced folder, `fgrove` reads `.funnelsgrove-sync.json` first, so you do not need to run `fgrove use` when switching between local funnel directories. Use `fgrove use` only when you want a global fallback context for commands outside a synced folder.
|
|
31
42
|
|
|
43
|
+
`fgrove funnels clone` copies the draft and the funnel's offer-set mapping. The
|
|
44
|
+
clone reuses the same project-level offer sets and payment profiles; custom-domain
|
|
45
|
+
configuration is not copied into the new preview.
|
|
46
|
+
|
|
32
47
|
`fgrove sync down` refuses to overwrite local changes in an existing synced
|
|
33
48
|
folder. `fgrove sync up` sends only changed and deleted paths in one atomic
|
|
34
49
|
draft patch. Disjoint concurrent edits are rebased automatically; if the same
|
|
@@ -87,6 +102,8 @@ fgrove publish --funnel claimbee-general --env preview
|
|
|
87
102
|
The GitHub commands use the FunnelsGrove API only. `fgrove github pull` pulls
|
|
88
103
|
the repository into the hosted draft after you push normal git commits.
|
|
89
104
|
`fgrove publish` waits for the current draft to reach GitHub before publishing.
|
|
105
|
+
It writes validation, GitHub sync, queue, build, image optimization, and upload
|
|
106
|
+
progress to stderr while keeping the final URL/version row alone on stdout.
|
|
90
107
|
If the exact job is still pending or running when that wait times out, publish
|
|
91
108
|
continues with a warning on stderr and asks you to check the eventual result
|
|
92
109
|
with `fgrove github status`. Terminal job failures, missing jobs, and API
|
package/dist/cli.d.ts
CHANGED
|
@@ -239,6 +239,8 @@ type PublishCommandBackend = {
|
|
|
239
239
|
funnelId: string;
|
|
240
240
|
}) => Promise<FunnelDetailResponse>;
|
|
241
241
|
};
|
|
242
|
+
export type PublishProgressReporter = (message: string) => void;
|
|
243
|
+
export declare const formatPublishProgress: (deployment: PublishDeploymentStatus) => string;
|
|
242
244
|
export declare const executePublishAndWait: (input: {
|
|
243
245
|
token: string;
|
|
244
246
|
workspaceId: string;
|
|
@@ -246,6 +248,7 @@ export declare const executePublishAndWait: (input: {
|
|
|
246
248
|
message?: string;
|
|
247
249
|
domains?: string[];
|
|
248
250
|
backend?: PublishCommandBackend;
|
|
251
|
+
onProgress?: PublishProgressReporter;
|
|
249
252
|
}) => Promise<string>;
|
|
250
253
|
export declare const buildCloneFunnelMutationInput: (input: {
|
|
251
254
|
workspaceId: string;
|
package/dist/cli.js
CHANGED
|
@@ -16,6 +16,7 @@ import { mergeTextSourceWithGit } from './sourceRebase.js';
|
|
|
16
16
|
import { executeExperimentCreate, formatExperimentCreateSuccess, recoverExperimentCreateTransaction, } from './experimentCreate.js';
|
|
17
17
|
import { pullEnvFile } from './envSync.js';
|
|
18
18
|
import { executeFastDraftPatchSync, uploadDirectAssetWithFetch } from './draftPatchSync.js';
|
|
19
|
+
import { updateCliInstallations } from './selfUpdate.js';
|
|
19
20
|
import { executeExpensePublish, executeExpensePull } from './expenseCommands.js';
|
|
20
21
|
import { executeEmailPull, executeEmailPush, executeEmailSend, executeEmailUpdateVariables, executeEmailSequenceAddStep, executeEmailSequenceCancel, executeEmailSequenceCreate, executeEmailSequencePublish, executeEmailSequenceSetActive, executeEmailTemplatePublish, executeEmailValidate, parseEmailVariablesJson, } from './emailCommands.js';
|
|
21
22
|
import { formatGitHubConnectRows, formatGitHubJobRows, formatGitHubStatusRows, } from './githubOutput.js';
|
|
@@ -1201,6 +1202,39 @@ export const formatPublishTerminalSuccess = (input) => {
|
|
|
1201
1202
|
|| input.acknowledgement.deploymentUrl;
|
|
1202
1203
|
return `${deploymentUrl}\tv${publishedVersionSeq}\t${versionId}`;
|
|
1203
1204
|
};
|
|
1205
|
+
const PUBLISH_BUILD_STAGE_LABELS = {
|
|
1206
|
+
sandboxCreate: 'starting build environment',
|
|
1207
|
+
writeFiles: 'writing source files',
|
|
1208
|
+
install: 'installing dependencies',
|
|
1209
|
+
nextBuild: 'building funnel',
|
|
1210
|
+
readExport: 'reading build output',
|
|
1211
|
+
imageVariants: 'optimizing images',
|
|
1212
|
+
r2Upload: 'uploading publish artifact',
|
|
1213
|
+
};
|
|
1214
|
+
export const formatPublishProgress = (deployment) => {
|
|
1215
|
+
const state = deployment.state.trim().toLowerCase();
|
|
1216
|
+
const metadata = isRecord(deployment.metadata) ? deployment.metadata : {};
|
|
1217
|
+
const publishBuild = isRecord(metadata.publishBuild) ? metadata.publishBuild : null;
|
|
1218
|
+
const stageName = publishBuild ? nonEmptyString(publishBuild.stageName) : null;
|
|
1219
|
+
const stageStatus = publishBuild ? nonEmptyString(publishBuild.status) : null;
|
|
1220
|
+
if (stageName) {
|
|
1221
|
+
const label = PUBLISH_BUILD_STAGE_LABELS[stageName] || stageName;
|
|
1222
|
+
if (stageStatus === 'completed')
|
|
1223
|
+
return `Publish: ${label} completed.`;
|
|
1224
|
+
if (stageStatus === 'failed')
|
|
1225
|
+
return `Publish: ${label} failed.`;
|
|
1226
|
+
return `Publish: ${label}...`;
|
|
1227
|
+
}
|
|
1228
|
+
if (state === 'queued')
|
|
1229
|
+
return 'Publish: queued...';
|
|
1230
|
+
if (state === 'building')
|
|
1231
|
+
return 'Publish: preparing build...';
|
|
1232
|
+
if (state === 'syncing')
|
|
1233
|
+
return 'Publish: uploading publish artifact...';
|
|
1234
|
+
if (state === 'ready')
|
|
1235
|
+
return 'Publish: ready.';
|
|
1236
|
+
return `Publish: ${state}...`;
|
|
1237
|
+
};
|
|
1204
1238
|
const getApiUrl = () => {
|
|
1205
1239
|
const options = program.opts();
|
|
1206
1240
|
return options.apiUrl || process.env.FUNNELSGROVE_API_URL || DEFAULT_API_URL;
|
|
@@ -1235,6 +1269,7 @@ const isTerminalDeploymentState = (state) => {
|
|
|
1235
1269
|
};
|
|
1236
1270
|
const waitForPublishDeployment = async (input) => {
|
|
1237
1271
|
const deadline = Date.now() + PUBLISH_WAIT_TIMEOUT_MS;
|
|
1272
|
+
let lastProgressMessage = null;
|
|
1238
1273
|
while (Date.now() <= deadline) {
|
|
1239
1274
|
const detail = input.detail
|
|
1240
1275
|
? await input.detail(input)
|
|
@@ -1248,6 +1283,13 @@ const waitForPublishDeployment = async (input) => {
|
|
|
1248
1283
|
},
|
|
1249
1284
|
});
|
|
1250
1285
|
const deployment = detail.deployments.find((item) => item.id === input.deploymentId);
|
|
1286
|
+
if (deployment && input.onProgress) {
|
|
1287
|
+
const progressMessage = formatPublishProgress(deployment);
|
|
1288
|
+
if (progressMessage !== lastProgressMessage) {
|
|
1289
|
+
input.onProgress(progressMessage);
|
|
1290
|
+
lastProgressMessage = progressMessage;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1251
1293
|
if (deployment && isTerminalDeploymentState(deployment.state)) {
|
|
1252
1294
|
if (deployment.state === 'failed') {
|
|
1253
1295
|
throw new Error(formatPublishTerminalFailure(deployment));
|
|
@@ -1284,6 +1326,7 @@ export const executePublishAndWait = async (input) => {
|
|
|
1284
1326
|
},
|
|
1285
1327
|
}),
|
|
1286
1328
|
};
|
|
1329
|
+
input.onProgress?.('Publish: requesting deployment...');
|
|
1287
1330
|
const acknowledgement = await backend.publish({
|
|
1288
1331
|
token: input.token,
|
|
1289
1332
|
workspaceId: input.workspaceId,
|
|
@@ -1291,12 +1334,14 @@ export const executePublishAndWait = async (input) => {
|
|
|
1291
1334
|
message: input.message,
|
|
1292
1335
|
domains: input.domains,
|
|
1293
1336
|
});
|
|
1337
|
+
input.onProgress?.(`Publish: deployment ${acknowledgement.deploymentId} accepted.`);
|
|
1294
1338
|
const deployment = await waitForPublishDeployment({
|
|
1295
1339
|
token: input.token,
|
|
1296
1340
|
workspaceId: input.workspaceId,
|
|
1297
1341
|
funnelId: input.funnelId,
|
|
1298
1342
|
deploymentId: acknowledgement.deploymentId,
|
|
1299
1343
|
detail: backend.detail,
|
|
1344
|
+
onProgress: input.onProgress,
|
|
1300
1345
|
});
|
|
1301
1346
|
return formatPublishTerminalSuccess({ acknowledgement, deployment });
|
|
1302
1347
|
};
|
|
@@ -1619,10 +1664,28 @@ program
|
|
|
1619
1664
|
.option('--config <path>', 'Auth config path', process.env.FUNNELSGROVE_CONFIG || getDefaultAuthConfigPath());
|
|
1620
1665
|
addExamples(program, [
|
|
1621
1666
|
'fgrove login',
|
|
1667
|
+
'fgrove update',
|
|
1622
1668
|
'fgrove sync down --funnel claimbee-ios --dir ./claimbee-ios',
|
|
1623
1669
|
'cd ./claimbee-ios && fgrove status',
|
|
1624
1670
|
'fgrove publish --env preview',
|
|
1625
1671
|
]);
|
|
1672
|
+
addExamples(program
|
|
1673
|
+
.command('update')
|
|
1674
|
+
.description('Update every global fgrove installation found on PATH')
|
|
1675
|
+
.option('--dry-run', 'List installations without changing them'), [
|
|
1676
|
+
'fgrove update',
|
|
1677
|
+
'fgrove update --dry-run',
|
|
1678
|
+
])
|
|
1679
|
+
.action(async (options) => {
|
|
1680
|
+
const installations = await updateCliInstallations({
|
|
1681
|
+
dryRun: options.dryRun,
|
|
1682
|
+
entrypointPath: process.argv[1],
|
|
1683
|
+
report: (message) => console.error(message),
|
|
1684
|
+
});
|
|
1685
|
+
console.log(options.dryRun
|
|
1686
|
+
? `Found ${installations.length} global fgrove installation${installations.length === 1 ? '' : 's'}.`
|
|
1687
|
+
: `Updated ${installations.length} global fgrove installation${installations.length === 1 ? '' : 's'} to the latest release.`);
|
|
1688
|
+
});
|
|
1626
1689
|
addExamples(program
|
|
1627
1690
|
.command('login')
|
|
1628
1691
|
.description('Authorize this CLI with your FunnelsGrove account')
|
|
@@ -2846,8 +2909,10 @@ addExamples(program
|
|
|
2846
2909
|
throw new Error('--domain is required when publishing production');
|
|
2847
2910
|
}
|
|
2848
2911
|
const sourceDir = path.resolve(process.cwd(), options.dir);
|
|
2912
|
+
console.error('Publish: validating local funnel...');
|
|
2849
2913
|
await assertFunnelValidForMutation(sourceDir);
|
|
2850
2914
|
const token = await readAuthToken();
|
|
2915
|
+
console.error('Publish: resolving funnel target...');
|
|
2851
2916
|
const target = await resolveSyncTarget({
|
|
2852
2917
|
token,
|
|
2853
2918
|
workspace: options.workspace,
|
|
@@ -2855,6 +2920,7 @@ addExamples(program
|
|
|
2855
2920
|
dir: options.dir,
|
|
2856
2921
|
});
|
|
2857
2922
|
if (shouldSyncGitHubDraft(options)) {
|
|
2923
|
+
console.error('Publish: checking GitHub draft sync...');
|
|
2858
2924
|
await syncGitHubDraftForCli({
|
|
2859
2925
|
token,
|
|
2860
2926
|
workspaceId: target.workspaceId,
|
|
@@ -2868,6 +2934,7 @@ addExamples(program
|
|
|
2868
2934
|
funnelId: target.funnelId,
|
|
2869
2935
|
message: options.message,
|
|
2870
2936
|
domains: publishEnv === 'production' && options.domain ? [options.domain] : undefined,
|
|
2937
|
+
onProgress: (message) => console.error(message),
|
|
2871
2938
|
}));
|
|
2872
2939
|
});
|
|
2873
2940
|
const githubCommand = addExamples(program.command('github').description('Manage GitHub funnel sync'), [
|
|
@@ -13,7 +13,7 @@ export class ContractCompatibilityError extends Error {
|
|
|
13
13
|
}
|
|
14
14
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
15
15
|
const SEMVER = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/;
|
|
16
|
-
const UPDATE_COMMAND = '
|
|
16
|
+
const UPDATE_COMMAND = 'fgrove update';
|
|
17
17
|
const DEFAULT_TIMEOUT_MS = 3_000;
|
|
18
18
|
const MAX_TIMEOUT_MS = 10_000;
|
|
19
19
|
const MAX_HEALTH_RESPONSE_BYTES = 64 * 1_024;
|
package/dist/emailCommands.js
CHANGED
|
@@ -113,7 +113,7 @@ export async function executeEmailSequenceCancel(input, dependencies = {}) {
|
|
|
113
113
|
const remote = await emailApiRequest({
|
|
114
114
|
apiUrl: input.apiUrl,
|
|
115
115
|
privateToken: input.privateToken,
|
|
116
|
-
path: `/
|
|
116
|
+
path: `/integration/v1/email/sequences/${encodeURIComponent(sequence.id)}`,
|
|
117
117
|
fetchImpl: dependencies.fetchImpl || fetch,
|
|
118
118
|
});
|
|
119
119
|
if (!isRecord(remote.sequence)
|
|
@@ -124,7 +124,7 @@ export async function executeEmailSequenceCancel(input, dependencies = {}) {
|
|
|
124
124
|
const response = await emailApiRequest({
|
|
125
125
|
apiUrl: input.apiUrl,
|
|
126
126
|
privateToken: input.privateToken,
|
|
127
|
-
path: `/
|
|
127
|
+
path: `/integration/v1/email/sequences/${encodeURIComponent(sequence.id)}/enrollments/${encodeURIComponent(input.funnelEndUserId)}/cancel`,
|
|
128
128
|
method: 'POST',
|
|
129
129
|
body: { reason: input.reason },
|
|
130
130
|
fetchImpl: dependencies.fetchImpl || fetch,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { access, realpath } from 'node:fs/promises';
|
|
2
|
+
export type CliInstallation = {
|
|
3
|
+
prefix: string;
|
|
4
|
+
executablePath: string;
|
|
5
|
+
npmExecutablePath: string;
|
|
6
|
+
};
|
|
7
|
+
type RunCommand = (command: string, args: string[]) => Promise<void>;
|
|
8
|
+
export declare const deriveGlobalCliPrefix: (realExecutablePath: string) => string | null;
|
|
9
|
+
export declare const discoverCliInstallations: (input?: {
|
|
10
|
+
pathValue?: string;
|
|
11
|
+
entrypointPath?: string;
|
|
12
|
+
platform?: NodeJS.Platform;
|
|
13
|
+
realpathFn?: typeof realpath;
|
|
14
|
+
accessFn?: typeof access;
|
|
15
|
+
}) => Promise<CliInstallation[]>;
|
|
16
|
+
export declare const updateCliInstallations: (input?: {
|
|
17
|
+
dryRun?: boolean;
|
|
18
|
+
pathValue?: string;
|
|
19
|
+
entrypointPath?: string;
|
|
20
|
+
installations?: CliInstallation[];
|
|
21
|
+
runCommand?: RunCommand;
|
|
22
|
+
report?: (message: string) => void;
|
|
23
|
+
}) => Promise<CliInstallation[]>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { constants as fsConstants } from 'node:fs';
|
|
2
|
+
import { access, realpath } from 'node:fs/promises';
|
|
3
|
+
import { spawn } from 'node:child_process';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
const CLI_PACKAGE = '@funnelsgrove/cli@latest';
|
|
6
|
+
const runCommandWithInheritedIo = async (command, args) => {
|
|
7
|
+
await new Promise((resolve, reject) => {
|
|
8
|
+
const child = spawn(command, args, { stdio: 'inherit' });
|
|
9
|
+
child.once('error', reject);
|
|
10
|
+
child.once('exit', (code, signal) => {
|
|
11
|
+
if (code === 0) {
|
|
12
|
+
resolve();
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
reject(new Error(signal
|
|
16
|
+
? `${command} was terminated by ${signal}.`
|
|
17
|
+
: `${command} exited with code ${code ?? 'unknown'}.`));
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export const deriveGlobalCliPrefix = (realExecutablePath) => {
|
|
22
|
+
const normalized = path.resolve(realExecutablePath);
|
|
23
|
+
const marker = `${path.sep}lib${path.sep}node_modules${path.sep}@funnelsgrove${path.sep}cli${path.sep}`;
|
|
24
|
+
const markerIndex = normalized.indexOf(marker);
|
|
25
|
+
if (markerIndex < 1)
|
|
26
|
+
return null;
|
|
27
|
+
return normalized.slice(0, markerIndex);
|
|
28
|
+
};
|
|
29
|
+
export const discoverCliInstallations = async (input = {}) => {
|
|
30
|
+
const platform = input.platform || process.platform;
|
|
31
|
+
const realpathFn = input.realpathFn || realpath;
|
|
32
|
+
const accessFn = input.accessFn || access;
|
|
33
|
+
const executableName = platform === 'win32' ? 'fgrove.cmd' : 'fgrove';
|
|
34
|
+
const npmName = platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
35
|
+
const candidates = (input.pathValue ?? process.env.PATH ?? '')
|
|
36
|
+
.split(path.delimiter)
|
|
37
|
+
.filter(Boolean)
|
|
38
|
+
.map((directory) => path.join(directory, executableName));
|
|
39
|
+
if (input.entrypointPath)
|
|
40
|
+
candidates.push(input.entrypointPath);
|
|
41
|
+
const installations = new Map();
|
|
42
|
+
for (const candidate of candidates) {
|
|
43
|
+
try {
|
|
44
|
+
await accessFn(candidate, fsConstants.X_OK);
|
|
45
|
+
const realExecutablePath = await realpathFn(candidate);
|
|
46
|
+
const prefix = deriveGlobalCliPrefix(realExecutablePath);
|
|
47
|
+
if (!prefix || installations.has(prefix))
|
|
48
|
+
continue;
|
|
49
|
+
const executablePath = path.join(prefix, 'bin', executableName);
|
|
50
|
+
const npmExecutablePath = path.join(prefix, 'bin', npmName);
|
|
51
|
+
await accessFn(npmExecutablePath, fsConstants.X_OK);
|
|
52
|
+
installations.set(prefix, { prefix, executablePath, npmExecutablePath });
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
// PATH commonly contains directories without fgrove; those are not installations.
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return [...installations.values()].sort((left, right) => left.prefix.localeCompare(right.prefix));
|
|
59
|
+
};
|
|
60
|
+
export const updateCliInstallations = async (input = {}) => {
|
|
61
|
+
const installations = input.installations || await discoverCliInstallations({
|
|
62
|
+
pathValue: input.pathValue,
|
|
63
|
+
entrypointPath: input.entrypointPath,
|
|
64
|
+
});
|
|
65
|
+
if (installations.length === 0) {
|
|
66
|
+
throw new Error('No global fgrove installation was found on PATH. Install it with npm install -g @funnelsgrove/cli@latest.');
|
|
67
|
+
}
|
|
68
|
+
const runCommand = input.runCommand || runCommandWithInheritedIo;
|
|
69
|
+
for (const installation of installations) {
|
|
70
|
+
input.report?.(`${input.dryRun ? 'Found' : 'Updating'} fgrove at ${installation.executablePath}`);
|
|
71
|
+
if (input.dryRun)
|
|
72
|
+
continue;
|
|
73
|
+
await runCommand(installation.npmExecutablePath, [
|
|
74
|
+
'install',
|
|
75
|
+
'--global',
|
|
76
|
+
'--prefix',
|
|
77
|
+
installation.prefix,
|
|
78
|
+
CLI_PACKAGE,
|
|
79
|
+
]);
|
|
80
|
+
}
|
|
81
|
+
return installations;
|
|
82
|
+
};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.147",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.137",
|
|
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": "d540fec73ced6fdcc2d118aac9a2f1f1131dfbd7d4fa6df80d988733725ffcbb"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"path": "docs/funnelsgrove/qa/publish.md",
|
|
64
|
-
"sha256": "
|
|
64
|
+
"sha256": "67391a8bf5e1ddeab2e7430f48a589c28ce5fb986f06fee74f78f09649086603"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
@@ -145,22 +145,22 @@
|
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"path": "funnel-docs.config.json",
|
|
148
|
-
"sha256": "
|
|
148
|
+
"sha256": "66145b48217b80e9e5eb0b21d2d4d8de7186ed980a54b01b56b2a23202822503"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.146",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.136",
|
|
158
158
|
"stepContractVersion": 3,
|
|
159
159
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
160
160
|
"managedFiles": [
|
|
161
161
|
{
|
|
162
162
|
"path": "AGENTS.md",
|
|
163
|
-
"sha256": "
|
|
163
|
+
"sha256": "22118f0f909a747f8a27f4eed16ceb5ec2a9283fd9645114fda961c0405a2a6b"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"path": "CLAUDE.md",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
195
|
-
"sha256": "
|
|
195
|
+
"sha256": "f0960bc044d9c4e5a550e5bc968fefd0840c03829ecb94348736798fc8fa9d1b"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"path": "docs/funnelsgrove/qa/publish.md",
|
|
211
|
-
"sha256": "
|
|
211
|
+
"sha256": "67391a8bf5e1ddeab2e7430f48a589c28ce5fb986f06fee74f78f09649086603"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
@@ -292,22 +292,22 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "funnel-docs.config.json",
|
|
295
|
-
"sha256": "
|
|
295
|
+
"sha256": "57bb326172c83897a6656615a8ddc1b19bc9eeee808cd07f33ec2fb708102942"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.145",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.135",
|
|
305
305
|
"stepContractVersion": 3,
|
|
306
306
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
307
307
|
"managedFiles": [
|
|
308
308
|
{
|
|
309
309
|
"path": "AGENTS.md",
|
|
310
|
-
"sha256": "
|
|
310
|
+
"sha256": "22118f0f909a747f8a27f4eed16ceb5ec2a9283fd9645114fda961c0405a2a6b"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
"path": "CLAUDE.md",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
342
|
-
"sha256": "
|
|
342
|
+
"sha256": "0b3708beaa8d63e1c1fe5ab38e39fdf7a3e12fec39166261a1bad7619d872179"
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"path": "docs/funnelsgrove/qa/publish.md",
|
|
358
|
-
"sha256": "
|
|
358
|
+
"sha256": "67391a8bf5e1ddeab2e7430f48a589c28ce5fb986f06fee74f78f09649086603"
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
361
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
@@ -439,22 +439,22 @@
|
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
"path": "funnel-docs.config.json",
|
|
442
|
-
"sha256": "
|
|
442
|
+
"sha256": "7fa793bde89dc1106b24eb408f225d156865bffe37f4feb7aeadb553844643c8"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.144",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.134",
|
|
452
452
|
"stepContractVersion": 3,
|
|
453
453
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
454
454
|
"managedFiles": [
|
|
455
455
|
{
|
|
456
456
|
"path": "AGENTS.md",
|
|
457
|
-
"sha256": "
|
|
457
|
+
"sha256": "22118f0f909a747f8a27f4eed16ceb5ec2a9283fd9645114fda961c0405a2a6b"
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
"path": "CLAUDE.md",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
489
|
-
"sha256": "
|
|
489
|
+
"sha256": "fec5ced4b8e8e6c8081f5446b3b4174caefa89ac6d441f03e576fb10e961bc98"
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -586,22 +586,22 @@
|
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
"path": "funnel-docs.config.json",
|
|
589
|
-
"sha256": "
|
|
589
|
+
"sha256": "efdede3e20f75d3b6f5dc00daa3e8ee1c3c03d56978fa087161b643424add0cc"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.143",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.133",
|
|
599
599
|
"stepContractVersion": 3,
|
|
600
600
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
601
601
|
"managedFiles": [
|
|
602
602
|
{
|
|
603
603
|
"path": "AGENTS.md",
|
|
604
|
-
"sha256": "
|
|
604
|
+
"sha256": "22118f0f909a747f8a27f4eed16ceb5ec2a9283fd9645114fda961c0405a2a6b"
|
|
605
605
|
},
|
|
606
606
|
{
|
|
607
607
|
"path": "CLAUDE.md",
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
636
|
-
"sha256": "
|
|
636
|
+
"sha256": "bb6f567146d9c70b209eff612ffcfb5e7c20b7ccb357beec47a187ead887a829"
|
|
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": "7a7f556fc144e82469dbc56da7d4ce588c3bcc627ebf4b9aec9961f93d672f1f"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.142",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.132",
|
|
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": "33d225bcc4f6f7aaa473f3bebe81799b3ec4751c374a4c2d9159afc56415ba74"
|
|
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": "ea5b05c7f28303245e358598f125a3a31c15175c2ef15ae8873b25be2ded133e"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.141",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.131",
|
|
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": "015d013594cabb94c288bb39d7c717f531b68a1fe4754e6baefc0e08bbc5b872"
|
|
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": "7af952690a2b3c592ce6688b8524aa4c5fe111a0c798dc25106eb0d594c2452b"
|
|
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.147",
|
|
4
4
|
"description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"test": "vitest run"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@funnelsgrove/runtime": "0.7.
|
|
37
|
+
"@funnelsgrove/runtime": "0.7.28",
|
|
38
38
|
"commander": "^12.0.0",
|
|
39
39
|
"typescript": "^5.8.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@funnelsgrove/analytics": "0.1.
|
|
42
|
+
"@funnelsgrove/analytics": "0.1.77",
|
|
43
43
|
"@funnelsgrove/payments": "0.7.19",
|
|
44
44
|
"vitest": "^3.0.0"
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.137",
|
|
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": "d540fec73ced6fdcc2d118aac9a2f1f1131dfbd7d4fa6df80d988733725ffcbb"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"path": "docs/funnelsgrove/qa/publish.md",
|
|
57
|
-
"sha256": "
|
|
57
|
+
"sha256": "67391a8bf5e1ddeab2e7430f48a589c28ce5fb986f06fee74f78f09649086603"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "66145b48217b80e9e5eb0b21d2d4d8de7186ed980a54b01b56b2a23202822503"
|
|
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/runtime` `0.7.
|
|
20
|
+
Release `@funnelsgrove/runtime` `0.7.28` first, then `@funnelsgrove/analytics` `0.1.77`, then `@funnelsgrove/payments` `0.7.19`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.147`, 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
|
|
@@ -22,6 +22,7 @@ Contract hash: `d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf
|
|
|
22
22
|
1. Run `fgrove status`, `git status --short`, tests, lint, `fgrove validate`, and relevant local/analytics/payment QA.
|
|
23
23
|
2. Choose exactly one source path. GitHub-connected funnels use git push, `fgrove github pull`, terminal status, then publish; never use `fgrove sync up` for the same diff. Non-GitHub funnels use `fgrove sync up`.
|
|
24
24
|
3. Publish preview with a clear message.
|
|
25
|
+
`fgrove publish` reports validation, GitHub sync, queue, build, image optimization, and upload progress on stderr; its final URL/version row remains the only stdout output. If compatibility guidance requests a newer CLI, run `fgrove update` so every NVM/Homebrew installation visible on `PATH` is updated together.
|
|
25
26
|
4. Test the preview URL across supported breakpoints and real navigation entry points.
|
|
26
27
|
5. Confirm preview-mode suppression and production configuration separation.
|
|
27
28
|
6. Review route, analytics, answer, experiment, and payment evidence.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.137",
|
|
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": "d540fec73ced6fdcc2d118aac9a2f1f1131dfbd7d4fa6df80d988733725ffcbb"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"path": "docs/funnelsgrove/qa/publish.md",
|
|
57
|
-
"sha256": "
|
|
57
|
+
"sha256": "67391a8bf5e1ddeab2e7430f48a589c28ce5fb986f06fee74f78f09649086603"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "66145b48217b80e9e5eb0b21d2d4d8de7186ed980a54b01b56b2a23202822503"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "8da6658b5eeea395b12f5c678e5a2da0b8b091bc15e1697f5d3e15fa5d9bc8a2",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.137",
|
|
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": "82a866e08ec6245d26cc6f754960f78e39f8c9086c44eb3eea141c09add16090",
|
|
20
20
|
"mode": "100644"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
104
|
-
"sha256": "
|
|
104
|
+
"sha256": "d540fec73ced6fdcc2d118aac9a2f1f1131dfbd7d4fa6df80d988733725ffcbb",
|
|
105
105
|
"mode": "100644"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"path": "docs/funnelsgrove/qa/publish.md",
|
|
124
|
-
"sha256": "
|
|
124
|
+
"sha256": "67391a8bf5e1ddeab2e7430f48a589c28ce5fb986f06fee74f78f09649086603",
|
|
125
125
|
"mode": "100644"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"path": "funnel-docs.config.json",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "66145b48217b80e9e5eb0b21d2d4d8de7186ed980a54b01b56b2a23202822503",
|
|
240
240
|
"mode": "100644"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
@@ -261,12 +261,12 @@
|
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"path": "package-lock.json",
|
|
264
|
-
"sha256": "
|
|
264
|
+
"sha256": "868bf077f8518811654f8121fb1490a4c8d5817d572bc6d37f672e1a2e68f076",
|
|
265
265
|
"mode": "100644"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"path": "package.json",
|
|
269
|
-
"sha256": "
|
|
269
|
+
"sha256": "64fd73809a410d0310f6763b4c2d3a9b688c5cd8fd3423686cf23197a04eaadc",
|
|
270
270
|
"mode": "100644"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
553
|
"path": "src/steps/step-32-paywall.tsx",
|
|
554
|
-
"sha256": "
|
|
554
|
+
"sha256": "0d1439a122117ad07b460be3d17490bcd3323d88ea3513b1c182846e4d468ce2",
|
|
555
555
|
"mode": "100644"
|
|
556
556
|
},
|
|
557
557
|
{
|
|
@@ -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/runtime` `0.7.
|
|
20
|
+
Release `@funnelsgrove/runtime` `0.7.28` first, then `@funnelsgrove/analytics` `0.1.77`, then `@funnelsgrove/payments` `0.7.19`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.147`, 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
|
|
@@ -22,6 +22,7 @@ Contract hash: `d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf
|
|
|
22
22
|
1. Run `fgrove status`, `git status --short`, tests, lint, `fgrove validate`, and relevant local/analytics/payment QA.
|
|
23
23
|
2. Choose exactly one source path. GitHub-connected funnels use git push, `fgrove github pull`, terminal status, then publish; never use `fgrove sync up` for the same diff. Non-GitHub funnels use `fgrove sync up`.
|
|
24
24
|
3. Publish preview with a clear message.
|
|
25
|
+
`fgrove publish` reports validation, GitHub sync, queue, build, image optimization, and upload progress on stderr; its final URL/version row remains the only stdout output. If compatibility guidance requests a newer CLI, run `fgrove update` so every NVM/Homebrew installation visible on `PATH` is updated together.
|
|
25
26
|
4. Test the preview URL across supported breakpoints and real navigation entry points.
|
|
26
27
|
5. Confirm preview-mode suppression and production configuration separation.
|
|
27
28
|
6. Review route, analytics, answer, experiment, and payment evidence.
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"name": "funnel-template",
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@funnelsgrove/analytics": "^0.1.
|
|
11
|
+
"@funnelsgrove/analytics": "^0.1.77",
|
|
12
12
|
"@funnelsgrove/payments": "^0.7.19",
|
|
13
|
-
"@funnelsgrove/runtime": "^0.7.
|
|
13
|
+
"@funnelsgrove/runtime": "^0.7.28",
|
|
14
14
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
15
15
|
"@stripe/stripe-js": "^8.7.0",
|
|
16
16
|
"lucide-react": "^0.553.0",
|
|
@@ -938,11 +938,11 @@
|
|
|
938
938
|
}
|
|
939
939
|
},
|
|
940
940
|
"node_modules/@funnelsgrove/analytics": {
|
|
941
|
-
"version": "0.1.
|
|
942
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.
|
|
943
|
-
"integrity": "sha512-
|
|
941
|
+
"version": "0.1.77",
|
|
942
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.77.tgz",
|
|
943
|
+
"integrity": "sha512-vzE3DSBWplM0SS0xx2sDIdsBFNF+Rz8JWsDVFrztqPpN0llRzx4BpEXoA8zvo/x0hERQ5XXPHmT0AYVTG3FDsw==",
|
|
944
944
|
"dependencies": {
|
|
945
|
-
"@funnelsgrove/runtime": "0.7.
|
|
945
|
+
"@funnelsgrove/runtime": "0.7.28"
|
|
946
946
|
}
|
|
947
947
|
},
|
|
948
948
|
"node_modules/@funnelsgrove/payments": {
|
|
@@ -961,9 +961,9 @@
|
|
|
961
961
|
}
|
|
962
962
|
},
|
|
963
963
|
"node_modules/@funnelsgrove/runtime": {
|
|
964
|
-
"version": "0.7.
|
|
965
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.
|
|
966
|
-
"integrity": "sha512-
|
|
964
|
+
"version": "0.7.28",
|
|
965
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.28.tgz",
|
|
966
|
+
"integrity": "sha512-pHN8nCWDMj7WSwKiTsLwyhEm0uEo/Q1w05ODz6R4qW8E8BzidRDtR2hPDJKy90PQEuMVqViNMuOVAOh85PsDsw==",
|
|
967
967
|
"dependencies": {
|
|
968
968
|
"posthog-js": "^1.369.2",
|
|
969
969
|
"react": "19.2.3",
|
|
@@ -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.1.
|
|
15
|
+
"@funnelsgrove/analytics": "^0.1.77",
|
|
16
16
|
"@funnelsgrove/payments": "^0.7.19",
|
|
17
|
-
"@funnelsgrove/runtime": "^0.7.
|
|
17
|
+
"@funnelsgrove/runtime": "^0.7.28",
|
|
18
18
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
19
19
|
"@stripe/stripe-js": "^8.7.0",
|
|
20
20
|
"lucide-react": "^0.553.0",
|
|
@@ -362,6 +362,9 @@ function StepPaywallRuntime({
|
|
|
362
362
|
runtimeConfig: checkoutRuntimeConfig,
|
|
363
363
|
userId: user.id,
|
|
364
364
|
});
|
|
365
|
+
const checkoutCardClientSecret = checkoutSession.activeClientSecret;
|
|
366
|
+
const checkoutCardLoading = checkoutSession.loading.card;
|
|
367
|
+
const prepareCardCheckout = checkoutSession.prepareCardCheckout;
|
|
365
368
|
const walletCheckoutInput = useMemo<StripeSubscriptionWalletSurfaceCheckoutInput>(
|
|
366
369
|
() => ({
|
|
367
370
|
analyticsMetadata: checkoutAnalyticsMetadata,
|
|
@@ -454,6 +457,27 @@ function StepPaywallRuntime({
|
|
|
454
457
|
setError(null);
|
|
455
458
|
}, [selectedPlanId]);
|
|
456
459
|
|
|
460
|
+
useEffect(() => {
|
|
461
|
+
if (
|
|
462
|
+
!discountStateReady ||
|
|
463
|
+
checkoutProvider !== 'stripe' ||
|
|
464
|
+
checkoutDisabled ||
|
|
465
|
+
checkoutCardClientSecret ||
|
|
466
|
+
checkoutCardLoading
|
|
467
|
+
) {
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
void prepareCardCheckout({ checkoutStartSource: 'checkout_render' });
|
|
472
|
+
}, [
|
|
473
|
+
checkoutDisabled,
|
|
474
|
+
checkoutProvider,
|
|
475
|
+
checkoutCardClientSecret,
|
|
476
|
+
checkoutCardLoading,
|
|
477
|
+
discountStateReady,
|
|
478
|
+
prepareCardCheckout,
|
|
479
|
+
]);
|
|
480
|
+
|
|
457
481
|
useEffect(() => {
|
|
458
482
|
if (!discountStateReady) {
|
|
459
483
|
return;
|
|
@@ -520,7 +544,7 @@ function StepPaywallRuntime({
|
|
|
520
544
|
paywallWalletMethodWrapperClassNames[method];
|
|
521
545
|
|
|
522
546
|
const startCheckout = async () => {
|
|
523
|
-
if (checkoutDisabled
|
|
547
|
+
if (checkoutDisabled) {
|
|
524
548
|
return;
|
|
525
549
|
}
|
|
526
550
|
|
|
@@ -561,7 +585,7 @@ function StepPaywallRuntime({
|
|
|
561
585
|
};
|
|
562
586
|
|
|
563
587
|
const openCardCheckoutFromUnavailableWallet = async () => {
|
|
564
|
-
if (checkoutDisabled
|
|
588
|
+
if (checkoutDisabled) {
|
|
565
589
|
return;
|
|
566
590
|
}
|
|
567
591
|
|
|
@@ -645,24 +669,6 @@ function StepPaywallRuntime({
|
|
|
645
669
|
);
|
|
646
670
|
}
|
|
647
671
|
|
|
648
|
-
if (checkoutProvider === 'stripe' && checkoutSession.loading.card) {
|
|
649
|
-
return (
|
|
650
|
-
<>
|
|
651
|
-
<div
|
|
652
|
-
className='paywall-v2-loading-screen'
|
|
653
|
-
aria-label='Loading checkout'
|
|
654
|
-
aria-live='polite'
|
|
655
|
-
>
|
|
656
|
-
<div className='paywall-v2-loading-content'>
|
|
657
|
-
<div className='paywall-v2-loading-spinner' aria-hidden='true' />
|
|
658
|
-
</div>
|
|
659
|
-
</div>
|
|
660
|
-
|
|
661
|
-
<style>{stepPaywallStyles}</style>
|
|
662
|
-
</>
|
|
663
|
-
);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
672
|
return (
|
|
667
673
|
<>
|
|
668
674
|
{checkoutProvider === 'solidgate' &&
|
|
@@ -987,10 +993,7 @@ function StepPaywallRuntime({
|
|
|
987
993
|
type='button'
|
|
988
994
|
className='paywall-v2-card-button paywall-v2-vibe-cta'
|
|
989
995
|
onClick={() => void startCheckout()}
|
|
990
|
-
disabled={
|
|
991
|
-
checkoutDisabled ||
|
|
992
|
-
(checkoutProvider === 'stripe' && checkoutSession.loading.card)
|
|
993
|
-
}
|
|
996
|
+
disabled={checkoutDisabled}
|
|
994
997
|
>
|
|
995
998
|
{content.plans.cardButtonLabel}
|
|
996
999
|
</button>
|