@funnelsgrove/cli 0.1.44 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1499,6 +1499,10 @@ export const formatOfferSetSyncSuccess = (input) => [
1499
1499
  `Synced offer set ${input.offerSetLabel} to funnel draft`,
1500
1500
  `Wrote ${formatGeneratedFileCount(input.generatedFileCount)}`,
1501
1501
  ];
1502
+ /**
1503
+ * @deprecated Compatibility path for fgrove generated-config sync only.
1504
+ * Dashboard and analytics step discovery must use projects.funnelSteps/version stepMetadata.
1505
+ */
1502
1506
  const syncGeneratedConfigFilesForCli = async (input) => {
1503
1507
  const result = await callApi({
1504
1508
  path: 'funnels.generatedConfigFiles',
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.44",
7
+ "repositoryCliVersion": "0.1.50",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.32",
10
+ "bundleVersion": "2.0.38",
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": "31b593f08e1aa61c5c0591278696bde421777f1cc0e43c62372bf1073afdaf86"
48
+ "sha256": "056fccc3085ebde480cf0725fab45410bc369fc1434754cd25187e44d3615e28"
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": "246d66da4931f5426828b1617f5a87b5e352d8691df7f556645cc221c8e3a1e8"
148
+ "sha256": "d3643ea1a8b9c63b28a18465e4afae1771aab6972559828ebf4802c7ad1df8cb"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.43",
154
+ "repositoryCliVersion": "0.1.49",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.31",
157
+ "bundleVersion": "2.0.37",
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": "ba0ca2563f34ffb8ab23da1600ffbbaa225e9aa1fb2e87b5404a356edd2ae0fc"
195
+ "sha256": "6268f1d754bc29586cc134032f199bcb7d449a096eafe90cf917e501b9768fe6"
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": "b5ff393f6429e787a599fe1b3a1a9e3e06346de5654acb9094741ee0089206f8"
295
+ "sha256": "99bc93eab4e586a84507821d8ad859f20e87d839a6d9eee2cdf83f72de4a51ae"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.42",
301
+ "repositoryCliVersion": "0.1.48",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.30",
304
+ "bundleVersion": "2.0.36",
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": "1f2981c692dd0454fa69aa5381478adfbfe7951e032309344e0e1edb99cb60ea"
342
+ "sha256": "196f56b9138501b1cec0678422c1434d462a01ca5578ebfec607d323b1801234"
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": "85762fb469f1bcd929536f2c5fbe2418a489bae327f100ac9fba49d95eda58fa"
442
+ "sha256": "3f95a918c742c06e3130b20e2edc0820aee8ed213cd6bcdeb09cacb8c428143b"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.41",
448
+ "repositoryCliVersion": "0.1.47",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.29",
451
+ "bundleVersion": "2.0.35",
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": "4ba56674e8297aec8977e6fe0e3bb472513603accfe7b6361f78a2d6ac96c8ee"
489
+ "sha256": "164ce4a6860a5d44cf6fad9a9df4c711cc246f1b3982501679645c9971173c70"
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": "38801a3066a005dd3151e4c77fbb1dabc0cff901a6db02ae98dd3f890adb1e66"
589
+ "sha256": "d4195ce4a134209e1dd5afb93744d5fbf3ff27f0e64f1c19ff210d09487368b1"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.40",
595
+ "repositoryCliVersion": "0.1.46",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.28",
598
+ "bundleVersion": "2.0.34",
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": "3c7f166a28b5b66498630c41e2930f4592a836d0d2c90847fedf0ee5656cc612"
636
+ "sha256": "9f52af57ef30e30f477c2fc898940032a8233fc42cb885d2fd7e2f258b6e6b90"
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": "a7d4ddf4971f4d7e9ae4f0751c0e208cc41d5bdb6ebee292f42727482fcb9a6b"
736
+ "sha256": "7060891cfa234dedd6da01a3615ca22147509af8222a8e1ff86cdcffcdf2423a"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.39",
742
+ "repositoryCliVersion": "0.1.45",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.27",
745
+ "bundleVersion": "2.0.33",
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": "ff280739dacf549dca60ca7ca6ce6188081dada4ad8f3ae6dd80865e574d6863"
783
+ "sha256": "d9d05a001bce39b97dd6dc3f3c1af132675fcf25513ffe055e89b25f715925ab"
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": "205aa6a5afbf15e411e8d9916f44ed0792957f916640afa9e9a1a92c55b89971"
883
+ "sha256": "ba10520da19cd1dfd3474665d80278feda32b28b0be35e16336c8883f0b5dab7"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.38",
889
+ "repositoryCliVersion": "0.1.44",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.26",
892
+ "bundleVersion": "2.0.32",
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": "287760126630942ff35929b6ede25f5601a21f3cfce8a170de280934c51f5572"
930
+ "sha256": "31b593f08e1aa61c5c0591278696bde421777f1cc0e43c62372bf1073afdaf86"
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": "45b8fc9ae7c6174dff17344a36fa11fa9496bb091249bd4ef4945ae96e203e87"
1030
+ "sha256": "246d66da4931f5426828b1617f5a87b5e352d8691df7f556645cc221c8e3a1e8"
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.44",
3
+ "version": "0.1.50",
4
4
  "description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,13 +34,13 @@
34
34
  "test": "vitest run"
35
35
  },
36
36
  "dependencies": {
37
- "@funnelsgrove/runtime": "0.1.63",
37
+ "@funnelsgrove/runtime": "0.2.0",
38
38
  "commander": "^12.0.0",
39
39
  "typescript": "^5.8.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@funnelsgrove/analytics": "0.1.42",
43
- "@funnelsgrove/payments": "0.1.58",
42
+ "@funnelsgrove/analytics": "0.1.43",
43
+ "@funnelsgrove/payments": "0.2.0",
44
44
  "vitest": "^3.0.0"
45
45
  }
46
46
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.32",
3
+ "bundleVersion": "2.0.38",
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": "31b593f08e1aa61c5c0591278696bde421777f1cc0e43c62372bf1073afdaf86"
41
+ "sha256": "056fccc3085ebde480cf0725fab45410bc369fc1434754cd25187e44d3615e28"
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": "246d66da4931f5426828b1617f5a87b5e352d8691df7f556645cc221c8e3a1e8"
141
+ "sha256": "d3643ea1a8b9c63b28a18465e4afae1771aab6972559828ebf4802c7ad1df8cb"
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.1.63` first, then `@funnelsgrove/analytics` `0.1.42`, then `@funnelsgrove/payments` `0.1.58`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.44`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.2.0` first, then `@funnelsgrove/analytics` `0.1.43`, then `@funnelsgrove/payments` `0.2.0`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.50`. 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.32",
3
+ "bundleVersion": "2.0.38",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.32",
3
+ "bundleVersion": "2.0.38",
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": "31b593f08e1aa61c5c0591278696bde421777f1cc0e43c62372bf1073afdaf86"
41
+ "sha256": "056fccc3085ebde480cf0725fab45410bc369fc1434754cd25187e44d3615e28"
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": "246d66da4931f5426828b1617f5a87b5e352d8691df7f556645cc221c8e3a1e8"
141
+ "sha256": "d3643ea1a8b9c63b28a18465e4afae1771aab6972559828ebf4802c7ad1df8cb"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "def21988d73d4a1cf2b5167800852b3e38891461d84437dedd5c8cd28200b47f",
3
+ "sourceTreeHash": "d76d1033af84ec94dea8ebc9718c44b8d23c960c469cc92f238be550288fc74b",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.32",
5
+ "docsBundleVersion": "2.0.38",
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": "45fe694dc56364bbd4b56c35bf985279c5f833cb79489bdd2d00889ce3a8fa16",
19
+ "sha256": "b4d1d8b5092c3de8eebefcd5706d897395bc01e4f9085264a941d75ad9191a68",
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": "31b593f08e1aa61c5c0591278696bde421777f1cc0e43c62372bf1073afdaf86",
104
+ "sha256": "056fccc3085ebde480cf0725fab45410bc369fc1434754cd25187e44d3615e28",
105
105
  "mode": "100644"
106
106
  },
107
107
  {
@@ -236,7 +236,7 @@
236
236
  },
237
237
  {
238
238
  "path": "funnel-docs.config.json",
239
- "sha256": "246d66da4931f5426828b1617f5a87b5e352d8691df7f556645cc221c8e3a1e8",
239
+ "sha256": "d3643ea1a8b9c63b28a18465e4afae1771aab6972559828ebf4802c7ad1df8cb",
240
240
  "mode": "100644"
241
241
  },
242
242
  {
@@ -261,12 +261,12 @@
261
261
  },
262
262
  {
263
263
  "path": "package-lock.json",
264
- "sha256": "05cdb8ebd4d3371ea24d1a044a13d90563fc7fc79585729cfb2332d1ce3e8493",
264
+ "sha256": "0b2debf3c0cb9d605b44ee168f5dec472b4490e11b7399c40c9e5c74654b3c79",
265
265
  "mode": "100644"
266
266
  },
267
267
  {
268
268
  "path": "package.json",
269
- "sha256": "09eca1f7b91dcba8522ba64f90ed605db79a7a8b06f1a35df07b880356c62128",
269
+ "sha256": "f236e5fb6c4c6d1f1b2e25d731caf96be2546d23b189b99e86c9e460172911e0",
270
270
  "mode": "100644"
271
271
  },
272
272
  {
@@ -526,12 +526,12 @@
526
526
  },
527
527
  {
528
528
  "path": "src/components/FunnelEditorPanel.tsx",
529
- "sha256": "36dc049600c2dd220c86d4e5ec684e4a3e2527121565efdf0bcf900b61636aa3",
529
+ "sha256": "8c8fa2ae8f324b12f2101a457e0d464692eef930c55eeaf9b103aca32452d6a5",
530
530
  "mode": "100644"
531
531
  },
532
532
  {
533
533
  "path": "src/components/FunnelFlow.tsx",
534
- "sha256": "c3446a33f3c3763b7269ed8eb9281e7a20d82954193d5a7a877e10a3179bb3ac",
534
+ "sha256": "d25ac7c64cdce0758f362fcac768116d766a6841b727336c47f30b6af6c674d0",
535
535
  "mode": "100644"
536
536
  },
537
537
  {
@@ -851,7 +851,7 @@
851
851
  },
852
852
  {
853
853
  "path": "src/steps/step-32-paywall.tsx",
854
- "sha256": "f64fb4dd724be41e8068f473883d9bdb4188272ef289aadd08f27a2c01ebf044",
854
+ "sha256": "da794a1d64dba9c5b56e1967de5435d67ef490d98f807d555a9def6b09223eef",
855
855
  "mode": "100644"
856
856
  },
857
857
  {
@@ -926,12 +926,12 @@
926
926
  },
927
927
  {
928
928
  "path": "tests/funnel-agent-docs.test.ts",
929
- "sha256": "91cddb8c2bf40b29b831bf21696dbe0818f7e5cc5d93ba0cb798e87521df82c5",
929
+ "sha256": "53668d24f8f2982900a3ff47ce29646325b57b4e226973b72bd13b9faad086f2",
930
930
  "mode": "100644"
931
931
  },
932
932
  {
933
933
  "path": "tests/package.test.ts",
934
- "sha256": "d49df405d41d3183066d2ac9398bf39f9daf56c4d15e871c276a3a6a48117b48",
934
+ "sha256": "7f77828df3d16797985b70664696adc32b31cd69d441681a94653f1f4d01767b",
935
935
  "mode": "100644"
936
936
  },
937
937
  {
@@ -946,7 +946,7 @@
946
946
  },
947
947
  {
948
948
  "path": "tests/src/components/FunnelFlow.test.tsx",
949
- "sha256": "4103e9c0f12a744f37edd0aa3d86b3222a13d9fdc9894dfa4f1cb14e8f87ea33",
949
+ "sha256": "bee08eb11b30b10add7bef075e9f3af1c8ecc7e0b671407223bda134f533df8e",
950
950
  "mode": "100644"
951
951
  },
952
952
  {
@@ -981,7 +981,7 @@
981
981
  },
982
982
  {
983
983
  "path": "tests/src/contract/validate-funnel.cli.test.ts",
984
- "sha256": "062c9f41ecfcb9987393b808a82ca79bba64cd60fa37f2b688b5920ee811d12b",
984
+ "sha256": "0e2835b736340fe5eaf1b212db278dbe8ab62e4a05ab2b8f0c1711da48230169",
985
985
  "mode": "100644"
986
986
  },
987
987
  {
@@ -1046,7 +1046,7 @@
1046
1046
  },
1047
1047
  {
1048
1048
  "path": "tests/src/steps/step-32-paywall.test.ts",
1049
- "sha256": "fbef52dcd2af543631e2c9dbe328a5421411fd14d72864726ecd3a7fdd0bae3d",
1049
+ "sha256": "8cada5658a5310d1be215cf65d63a42fe489eb491c2566b13824af5b259f26f8",
1050
1050
  "mode": "100644"
1051
1051
  },
1052
1052
  {
@@ -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.1.63` first, then `@funnelsgrove/analytics` `0.1.42`, then `@funnelsgrove/payments` `0.1.58`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.44`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.2.0` first, then `@funnelsgrove/analytics` `0.1.43`, then `@funnelsgrove/payments` `0.2.0`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.50`. 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.32",
3
+ "bundleVersion": "2.0.38",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",
@@ -8,9 +8,9 @@
8
8
  "name": "funnel-template",
9
9
  "version": "0.1.0",
10
10
  "dependencies": {
11
- "@funnelsgrove/analytics": "^0.1.42",
12
- "@funnelsgrove/payments": "^0.1.58",
13
- "@funnelsgrove/runtime": "^0.1.63",
11
+ "@funnelsgrove/analytics": "^0.1.43",
12
+ "@funnelsgrove/payments": "^0.2.0",
13
+ "@funnelsgrove/runtime": "^0.2.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",
@@ -891,20 +891,20 @@
891
891
  }
892
892
  },
893
893
  "node_modules/@funnelsgrove/analytics": {
894
- "version": "0.1.42",
895
- "resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.42.tgz",
896
- "integrity": "sha512-LhMudv074Fn5Er5an5uSaUgBP5V1nyE8FnGXDBLnNQqkzG1MRx3hxEp2E52JmFCG6AsJo9a5Fq2ZQOGVXuNXOQ==",
894
+ "version": "0.1.43",
895
+ "resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.43.tgz",
896
+ "integrity": "sha512-PJp35ncXSR6OPeX5LmKKyTzs1I9CELX5jN6X5DN+7qSf7q5V/OL0dQHj5U1GOzqHpLLkbjL+293Sk/7z/I3Heg==",
897
897
  "dependencies": {
898
- "@funnelsgrove/runtime": "0.1.63"
898
+ "@funnelsgrove/runtime": "0.2.0"
899
899
  }
900
900
  },
901
901
  "node_modules/@funnelsgrove/payments": {
902
- "version": "0.1.58",
903
- "resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.1.58.tgz",
904
- "integrity": "sha512-y1caUil8SFNiuYf/TxptheEf/cnK2urafy2eF2gFdfugfaybFiqUiyTzEVen+K+uKtX8tDCk2UtNeyWMO8inAA==",
902
+ "version": "0.2.0",
903
+ "resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.2.0.tgz",
904
+ "integrity": "sha512-BVSYPbgyGwDBtg+kBduRTcc8sGZmB70Re4cTF3rwRmgJ9FE/axQmkPC6p3rCwJerlcXnkaHL7DQE1Ck/VKMVOw==",
905
905
  "dependencies": {
906
906
  "@funnelsgrove/analytics": "^0.1.28",
907
- "@funnelsgrove/runtime": "^0.1.54",
907
+ "@funnelsgrove/runtime": "^0.2.0",
908
908
  "@stripe/react-stripe-js": "^5.6.0",
909
909
  "@stripe/stripe-js": "^8.7.0",
910
910
  "react": "19.2.3",
@@ -913,9 +913,9 @@
913
913
  }
914
914
  },
915
915
  "node_modules/@funnelsgrove/runtime": {
916
- "version": "0.1.63",
917
- "resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.1.63.tgz",
918
- "integrity": "sha512-D0y7l/GwVc519CBr3TCxsXvr3H+B9RmcvebBUKks+FqdDx5j2AO5qdUbB838bqkBNCCjHOtcbs3u2Gsm4Qhk4w==",
916
+ "version": "0.2.0",
917
+ "resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.2.0.tgz",
918
+ "integrity": "sha512-zTaJWAxjklNyFMiTo+BOZ8j8Zx9wCam665Ebm9ra3qVcqV4rb+Ia+vCRH4M2ExZe1972CN7ss3lt0IfIXxfS+w==",
919
919
  "dependencies": {
920
920
  "posthog-js": "^1.369.2",
921
921
  "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.42",
16
- "@funnelsgrove/payments": "^0.1.58",
17
- "@funnelsgrove/runtime": "^0.1.63",
15
+ "@funnelsgrove/analytics": "^0.1.43",
16
+ "@funnelsgrove/payments": "^0.2.0",
17
+ "@funnelsgrove/runtime": "^0.2.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",
@@ -1,17 +1,14 @@
1
1
  'use client';
2
2
 
3
3
  import type { FunnelExperimentConfig } from '@/runtime/funnel-runtime';
4
- import type { RuntimeMode } from '@funnelsgrove/runtime';
5
4
 
6
5
  type FunnelEditorPanelProps = {
7
6
  editorModeEnabled: boolean;
8
7
  editorPanelExpanded: boolean;
9
8
  experimentAssignmentForEditor: (experiment: FunnelExperimentConfig) => string;
10
9
  funnelExperiments: readonly FunnelExperimentConfig[];
11
- onRuntimeModeChange: (mode: RuntimeMode) => void;
12
10
  onSelectVariant: (experiment: FunnelExperimentConfig, variantKey: string) => void;
13
11
  onToggleExpanded: () => void;
14
- runtimeMode: RuntimeMode;
15
12
  };
16
13
 
17
14
  export function FunnelEditorPanel({
@@ -19,10 +16,8 @@ export function FunnelEditorPanel({
19
16
  editorPanelExpanded,
20
17
  experimentAssignmentForEditor,
21
18
  funnelExperiments,
22
- onRuntimeModeChange,
23
19
  onSelectVariant,
24
20
  onToggleExpanded,
25
- runtimeMode,
26
21
  }: FunnelEditorPanelProps) {
27
22
  if (!editorModeEnabled) {
28
23
  return null;
@@ -36,24 +31,6 @@ export function FunnelEditorPanel({
36
31
 
37
32
  {editorPanelExpanded ? (
38
33
  <div className="funnel-editor-panel-content">
39
- <p className="funnel-editor-panel-label">MODE</p>
40
- <div className="funnel-editor-panel-options">
41
- <button
42
- type="button"
43
- className={runtimeMode === 'test' ? 'is-active' : ''}
44
- onClick={() => onRuntimeModeChange('test')}
45
- >
46
- Test
47
- </button>
48
- <button
49
- type="button"
50
- className={runtimeMode === 'live' ? 'is-active' : ''}
51
- onClick={() => onRuntimeModeChange('live')}
52
- >
53
- Live
54
- </button>
55
- </div>
56
-
57
34
  <div className="funnel-editor-panel-tests">
58
35
  <p className="funnel-editor-panel-label">A/B TESTS</p>
59
36
  {funnelExperiments.length === 0 ? (
@@ -136,32 +113,8 @@ export const FunnelEditorPanelStyles = `
136
113
  color: #53608a;
137
114
  }
138
115
 
139
- .funnel-editor-panel-options {
140
- display: grid;
141
- grid-template-columns: repeat(2, minmax(0, 1fr));
142
- gap: 8px;
143
- }
144
-
145
- .funnel-editor-panel-options button {
146
- border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
147
- border-radius: 8px;
148
- background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface) 90%);
149
- color: var(--color-primary);
150
- font-size: 12px;
151
- font-weight: 700;
152
- line-height: 1;
153
- padding: 10px 0;
154
- cursor: pointer;
155
- }
156
-
157
- .funnel-editor-panel-options button.is-active {
158
- border-color: var(--color-primary);
159
- background: var(--color-primary);
160
- color: var(--color-primary-text);
161
- }
162
-
163
116
  .funnel-editor-panel-tests {
164
- margin-top: 10px;
117
+ margin-top: 0;
165
118
  }
166
119
 
167
120
  .funnel-editor-panel-helper {
@@ -99,12 +99,10 @@ export function FunnelFlow({
99
99
  editorPanelExpanded={controller.editorPanelExpanded}
100
100
  experimentAssignmentForEditor={controller.experimentAssignmentForEditor}
101
101
  funnelExperiments={controller.funnelExperiments}
102
- onRuntimeModeChange={controller.setRuntimeMode}
103
102
  onSelectVariant={controller.setEditorVariantSelection}
104
103
  onToggleExpanded={() => {
105
104
  controller.setEditorPanelExpanded((currentValue) => !currentValue);
106
105
  }}
107
- runtimeMode={controller.runtimeMode}
108
106
  />
109
107
  </section>
110
108
 
@@ -16,6 +16,7 @@ import { stepPaywallContent } from '@/steps/content/step-32-paywall.content';
16
16
  import { useClaimbeeStepContent } from '@/steps/use-claimbee-step-content';
17
17
  import { publicAnalyticsSdk } from '@funnelsgrove/analytics';
18
18
  import {
19
+ PaymentRuntimeBoundary,
19
20
  apiService,
20
21
  collectCurrentFunnelAttribution,
21
22
  readPaywallStateValue,
@@ -114,7 +115,15 @@ type StepPaywallProps = {
114
115
  analyticsStepName?: string;
115
116
  };
116
117
 
117
- export function StepPaywall({
118
+ export function StepPaywall(props: StepPaywallProps = {}) {
119
+ return (
120
+ <PaymentRuntimeBoundary>
121
+ <StepPaywallRuntime {...props} />
122
+ </PaymentRuntimeBoundary>
123
+ );
124
+ }
125
+
126
+ function StepPaywallRuntime({
118
127
  analyticsStepId = stepPaywallId,
119
128
  analyticsStepName = stepPaywall.name || stepPaywall.title,
120
129
  }: StepPaywallProps = {}) {
@@ -1,17 +1,29 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import { execFile as execFileCallback } from 'node:child_process';
3
+ import { existsSync } from 'node:fs';
3
4
  import { mkdir, mkdtemp, readFile, rm, stat, symlink, writeFile } from 'node:fs/promises';
4
5
  import { tmpdir } from 'node:os';
5
- import { dirname, join, relative, resolve } from 'node:path';
6
+ import { dirname, join, relative } from 'node:path';
6
7
  import { promisify } from 'node:util';
7
- import { fileURLToPath } from 'node:url';
8
+ import { fileURLToPath, pathToFileURL } from 'node:url';
8
9
  import { describe, expect, it } from 'vitest';
9
10
 
10
- import contract from '../../funnel-runtime/contracts/step-contract-v2.json';
11
-
12
11
  const templateRoot = dirname(dirname(fileURLToPath(import.meta.url)));
13
- const repoRoot = resolve(templateRoot, '../..');
12
+ const findRepositoryRoot = (): string => {
13
+ let current = templateRoot;
14
+ while (dirname(current) !== current) {
15
+ if (existsSync(join(current, 'apps/funnel-runtime/package.json'))) {
16
+ return current;
17
+ }
18
+ current = dirname(current);
19
+ }
20
+ throw new Error('FunnelsGrove repository root not found');
21
+ };
22
+ const repoRoot = findRepositoryRoot();
14
23
  const cliDocsRoot = join(repoRoot, 'apps/cli/template_docs');
24
+ const contract = JSON.parse(
25
+ await readFile(join(repoRoot, 'apps/funnel-runtime/contracts/step-contract-v2.json'), 'utf8'),
26
+ );
15
27
 
16
28
  const requiredOutline = [
17
29
  '## Use when / do not use when',
@@ -34,7 +46,7 @@ const renderCodes = (values: readonly unknown[]): string => (
34
46
  );
35
47
 
36
48
  async function loadGenerator() {
37
- return import('../../../scripts/generate-funnel-agent-docs.mjs');
49
+ return import(pathToFileURL(join(repoRoot, 'scripts/generate-funnel-agent-docs.mjs')).href);
38
50
  }
39
51
 
40
52
  describe('funnel agent documentation supply', () => {
@@ -350,7 +362,7 @@ describe('funnel agent documentation supply', () => {
350
362
 
351
363
  expect(manifest).toMatchObject({
352
364
  schemaVersion: 1,
353
- bundleVersion: '2.0.32',
365
+ bundleVersion: '2.0.38',
354
366
  stepContractVersion: contract.stepContractVersion,
355
367
  contractHash: contract.contractHash,
356
368
  });
@@ -1,4 +1,6 @@
1
- import { readFileSync } from 'node:fs';
1
+ import { existsSync, readFileSync } from 'node:fs';
2
+ import { dirname, join } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
2
4
  import { describe, expect, it } from 'vitest';
3
5
 
4
6
  type PackageJson = {
@@ -6,15 +8,27 @@ type PackageJson = {
6
8
  version?: string;
7
9
  };
8
10
 
9
- const readPackageJson = (url: URL): PackageJson =>
10
- JSON.parse(readFileSync(url, 'utf8')) as PackageJson;
11
+ const readPackageJson = (path: URL | string): PackageJson =>
12
+ JSON.parse(readFileSync(path, 'utf8')) as PackageJson;
13
+
14
+ const findRepositoryRoot = (): string => {
15
+ let current = dirname(fileURLToPath(import.meta.url));
16
+ while (dirname(current) !== current) {
17
+ if (existsSync(join(current, 'apps/funnel-runtime/package.json'))) {
18
+ return current;
19
+ }
20
+ current = dirname(current);
21
+ }
22
+ throw new Error('FunnelsGrove repository root not found');
23
+ };
11
24
 
12
25
  describe('funnel-template shared package dependencies', () => {
13
26
  it('tracks the current shared runtime, analytics, and payments package versions', () => {
14
27
  const templatePackage = readPackageJson(new URL('../package.json', import.meta.url));
15
- const runtimePackage = readPackageJson(new URL('../../funnel-runtime/package.json', import.meta.url));
16
- const analyticsPackage = readPackageJson(new URL('../../funnel-analytics/package.json', import.meta.url));
17
- const paymentsPackage = readPackageJson(new URL('../../funnel-payments/package.json', import.meta.url));
28
+ const repositoryRoot = findRepositoryRoot();
29
+ const runtimePackage = readPackageJson(join(repositoryRoot, 'apps/funnel-runtime/package.json'));
30
+ const analyticsPackage = readPackageJson(join(repositoryRoot, 'apps/funnel-analytics/package.json'));
31
+ const paymentsPackage = readPackageJson(join(repositoryRoot, 'apps/funnel-payments/package.json'));
18
32
 
19
33
  expect(templatePackage.dependencies?.['@funnelsgrove/runtime']).toBe(`^${runtimePackage.version}`);
20
34
  expect(templatePackage.dependencies?.['@funnelsgrove/analytics']).toBe(`^${analyticsPackage.version}`);
@@ -14,4 +14,21 @@ describe('FunnelFlow lifecycle wiring', () => {
14
14
  expect(adapterSource.match(/analytics: publicAnalyticsSdk/g)).toHaveLength(1);
15
15
  expect(adapterSource.match(/stepContractVersion: funnelManifest\.stepContractVersion/g)).toHaveLength(1);
16
16
  });
17
+
18
+ it('keeps A/B editor controls without wiring a manual payment mode switch', () => {
19
+ const flowSource = readFileSync(new URL('../../../src/components/FunnelFlow.tsx', import.meta.url), 'utf8');
20
+ const panelSource = readFileSync(
21
+ new URL('../../../src/components/FunnelEditorPanel.tsx', import.meta.url),
22
+ 'utf8',
23
+ );
24
+
25
+ expect(flowSource).not.toContain('onRuntimeModeChange');
26
+ expect(flowSource).not.toContain('runtimeMode={controller.runtimeMode}');
27
+ expect(panelSource).toContain('A/B TESTS');
28
+ expect(panelSource).not.toContain('RuntimeMode');
29
+ expect(panelSource).not.toContain('funnel-editor-panel-options');
30
+ expect(panelSource).not.toContain('>MODE<');
31
+ expect(panelSource).not.toContain('>Test<');
32
+ expect(panelSource).not.toContain('>Live<');
33
+ });
17
34
  });
@@ -1,4 +1,5 @@
1
1
  import { execFile } from 'node:child_process';
2
+ import { existsSync } from 'node:fs';
2
3
  import path from 'node:path';
3
4
  import { promisify } from 'node:util';
4
5
  import { fileURLToPath } from 'node:url';
@@ -11,6 +12,16 @@ import {
11
12
 
12
13
  const execFileAsync = promisify(execFile);
13
14
 
15
+ const findExecutableOnPath = (name: string): string => {
16
+ for (const directory of (process.env.PATH || '').split(path.delimiter)) {
17
+ const candidate = path.join(directory, name);
18
+ if (existsSync(candidate)) {
19
+ return candidate;
20
+ }
21
+ }
22
+ throw new Error(`${name} executable not found on PATH`);
23
+ };
24
+
14
25
  const loadCli = async () => {
15
26
  return import('../../../src/contract/validate-funnel.cli');
16
27
  };
@@ -151,7 +162,7 @@ describe('validate funnel CLI protocol', () => {
151
162
 
152
163
  it('runs through vite-node with one clean stdout protocol object', async () => {
153
164
  const templateRoot = path.resolve(fileURLToPath(new URL('../../..', import.meta.url)));
154
- const viteNode = path.resolve(templateRoot, '../../node_modules/.bin/vite-node');
165
+ const viteNode = findExecutableOnPath('vite-node');
155
166
  const script = path.resolve(templateRoot, 'src/contract/validate-funnel.cli.ts');
156
167
 
157
168
  const result = await execFileAsync(viteNode, [
@@ -3,6 +3,20 @@ import path from 'node:path';
3
3
  import { describe, expect, it } from 'vitest';
4
4
 
5
5
  describe('ClaimBee paywall source', () => {
6
+ it('mounts environment-dependent payment hooks only inside the runtime boundary', () => {
7
+ const stepSource = readFileSync(
8
+ path.resolve(__dirname, '../../../src/steps/step-32-paywall.tsx'),
9
+ 'utf8',
10
+ );
11
+
12
+ expect(stepSource).toContain('PaymentRuntimeBoundary');
13
+ expect(stepSource).toContain('<PaymentRuntimeBoundary');
14
+ expect(stepSource).toContain('<StepPaywallRuntime');
15
+ expect(stepSource.indexOf('function StepPaywallRuntime')).toBeLessThan(
16
+ stepSource.indexOf('useRuntimeMode()'),
17
+ );
18
+ });
19
+
6
20
  it('uses the local checkout runtime config when creating subscription-backed custom checkout intents', () => {
7
21
  const stepSource = readFileSync(
8
22
  path.resolve(__dirname, '../../../src/steps/step-32-paywall.tsx'),