@funnelsgrove/cli 0.1.65 → 0.1.67

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.d.ts CHANGED
@@ -94,7 +94,13 @@ export type StepContractMigrationCommandResult = {
94
94
  exitCode: 0 | 1 | 2;
95
95
  output: string;
96
96
  };
97
- export declare const copyManagedValidationFiles: (targetDir: string, sourceDir?: string) => Promise<void>;
97
+ export declare const copyManagedValidationFiles: (targetDir: string, sourceDir?: string, options?: {
98
+ replaceConflicts?: boolean;
99
+ }) => Promise<void>;
100
+ export declare const repairDownloadedManagedFiles: (targetDir: string, options?: {
101
+ docsSourceDir?: string;
102
+ validationSourceDir?: string;
103
+ }) => Promise<void>;
98
104
  export type BoundedNpmCommandOptions = {
99
105
  timeoutMs?: number;
100
106
  terminationGraceMs?: number;
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import { CURRENT_STEP_CONTRACT_VERSION, FUNNEL_CONTRACT_DIAGNOSTIC_CODES, PREVIO
11
11
  import { abortFunnelSourceCandidate, beginFunnelSourceCandidate, callTrpcProcedure, createFunnelExperimentFromSpec, finalizeFunnelSourceCandidate, stageFunnelSourceCandidate, } from './apiClient.js';
12
12
  import { cliReleaseIdentity } from './cliIdentity.js';
13
13
  import { clearActiveContext, getDefaultAuthConfigPath, loadActiveContext, loadAuthToken, saveActiveContext, saveAuthToken, } from './authStore.js';
14
- import { buildSyncManifest, buildCommittedSyncManifest, buildSourceCandidateOperations, collectChangedSourceFiles, collectSourceSnapshot, ensureGitignore, formatSyncUploadSummary, hasLocalSourceChanges, readSyncManifest, runSyncDownLocalLifecycle, runSourceCandidateSync, writeLocalEnvFile, writeSourceFiles, writeSyncManifest, } from './localSync.js';
14
+ import { buildCommittedSyncManifest, buildDownloadedSyncManifest, buildSourceCandidateOperations, collectChangedSourceFiles, collectSourceSnapshot, ensureGitignore, formatSyncUploadSummary, hasLocalSourceChanges, readSyncManifest, runSyncDownLocalLifecycle, runSourceCandidateSync, writeLocalEnvFile, writeSourceFiles, writeSyncManifest, } from './localSync.js';
15
15
  import { executeExperimentCreate, formatExperimentCreateSuccess, recoverExperimentCreateTransaction, } from './experimentCreate.js';
16
16
  import { pullEnvFile } from './envSync.js';
17
17
  import { formatGitHubConnectRows, formatGitHubJobRows, formatGitHubStatusRows, } from './githubOutput.js';
@@ -481,7 +481,7 @@ const readTargetRegularFile = async (rootDir, relativePath) => {
481
481
  }
482
482
  return readFile(path.join(rootDir, relativePath));
483
483
  };
484
- export const copyManagedValidationFiles = async (targetDir, sourceDir = resolveTemplateValidationPath()) => {
484
+ export const copyManagedValidationFiles = async (targetDir, sourceDir = resolveTemplateValidationPath(), options = {}) => {
485
485
  const sourcePaths = await listManagedValidatorSourceFiles(sourceDir);
486
486
  const sourceManifestBytes = await readFile(path.join(sourceDir, CONTRACT_TOOLS_MANIFEST_PATH));
487
487
  const sourceManifest = parseContractToolsManifest(sourceManifestBytes, 'FG-DOC-001');
@@ -502,7 +502,7 @@ export const copyManagedValidationFiles = async (targetDir, sourceDir = resolveT
502
502
  sourceFiles.set(entry.path, bytes);
503
503
  }
504
504
  const priorManifestBytes = await readTargetRegularFile(targetDir, CONTRACT_TOOLS_MANIFEST_PATH);
505
- const priorManifest = priorManifestBytes === null
505
+ const priorManifest = priorManifestBytes === null || options.replaceConflicts === true
506
506
  ? null
507
507
  : parseContractToolsManifest(priorManifestBytes, 'FG-DOC-002');
508
508
  const priorHashes = new Map(priorManifest?.managedFiles.map((entry) => [entry.path, entry.sha256]) ?? []);
@@ -512,7 +512,7 @@ export const copyManagedValidationFiles = async (targetDir, sourceDir = resolveT
512
512
  continue;
513
513
  }
514
514
  const currentHash = createHash('sha256').update(currentBytes).digest('hex');
515
- if (priorHashes.get(relativePath) !== currentHash) {
515
+ if (options.replaceConflicts !== true && priorHashes.get(relativePath) !== currentHash) {
516
516
  throw new CliContractError('FG-DOC-002', `Managed validator conflicts with local changes: ${relativePath}`);
517
517
  }
518
518
  }
@@ -523,6 +523,15 @@ export const copyManagedValidationFiles = async (targetDir, sourceDir = resolveT
523
523
  }
524
524
  await writeFile(path.join(targetDir, CONTRACT_TOOLS_MANIFEST_PATH), sourceManifestBytes);
525
525
  };
526
+ export const repairDownloadedManagedFiles = async (targetDir, options = {}) => {
527
+ await copyManagedValidationFiles(targetDir, options.validationSourceDir ?? resolveTemplateValidationPath(), { replaceConflicts: true });
528
+ await recoverTemplateDocs(targetDir);
529
+ const bundle = await loadBundledDocs(options.docsSourceDir ?? resolveTemplateDocsPath());
530
+ const status = planTemplateDocsUpdate(await inspectTemplateDocs(bundle, targetDir));
531
+ for (const conflict of status.files.filter((file) => (file.action === 'conflict' && bundle.files.has(file.path)))) {
532
+ await resolveTemplateDocsConflict(bundle, targetDir, conflict.path);
533
+ }
534
+ };
526
535
  const MANAGED_VALIDATOR_SCRIPT = 'vite-node --config src/contract/funnel-validator.vite.config.ts src/contract/validate-funnel.cli.ts';
527
536
  const ensureManagedValidatorPackage = async (targetDir) => {
528
537
  const packagePath = path.join(targetDir, 'package.json');
@@ -2146,6 +2155,12 @@ addExamples(syncCommand
2146
2155
  funnelId: target.funnelId,
2147
2156
  },
2148
2157
  });
2158
+ const downloadedSyncManifest = buildDownloadedSyncManifest({
2159
+ workspaceId: target.workspaceId,
2160
+ funnelId: target.funnelId,
2161
+ draftVersionId: result.draftVersionId,
2162
+ files: result.files,
2163
+ });
2149
2164
  await mkdir(target.sourceDir, { recursive: true });
2150
2165
  await writeSourceFiles(target.sourceDir, result.files);
2151
2166
  const generatedFiles = await syncGeneratedConfigFilesForCli({
@@ -2157,7 +2172,7 @@ addExamples(syncCommand
2157
2172
  await ensureGitignore(target.sourceDir);
2158
2173
  await runSyncDownLocalLifecycle({
2159
2174
  recoverMigration: async () => recoverStepContractV2Migration(target.sourceDir),
2160
- recoverDocs: async () => recoverTemplateDocs(target.sourceDir),
2175
+ recoverDocs: async () => repairDownloadedManagedFiles(target.sourceDir),
2161
2176
  refreshDocs: async () => {
2162
2177
  const docs = await executeDocsCommand({
2163
2178
  targetDir: target.sourceDir,
@@ -2169,11 +2184,7 @@ addExamples(syncCommand
2169
2184
  throw new CliContractError(diagnostic?.code ?? 'FG-DOC-001', diagnostic?.message ?? 'Managed documentation refresh failed after sync down.');
2170
2185
  }
2171
2186
  },
2172
- writeSyncState: async () => writeSyncManifest(target.sourceDir, await buildSyncManifest(target.sourceDir, {
2173
- workspaceId: target.workspaceId,
2174
- funnelId: target.funnelId,
2175
- draftVersionId: result.draftVersionId,
2176
- })),
2187
+ writeSyncState: async () => writeSyncManifest(target.sourceDir, downloadedSyncManifest),
2177
2188
  });
2178
2189
  console.log(`Synced ${result.files.length} files to ${target.sourceDir}`);
2179
2190
  console.log(`Wrote ${formatGeneratedFileCount(generatedFiles.length)}`);
@@ -2526,13 +2537,25 @@ addExamples(program
2526
2537
  .command('validate')
2527
2538
  .description('Validate a local funnel against the current authoring contract')
2528
2539
  .option('--dir <path>', 'Local funnel directory', '.')
2540
+ .option('--repair-managed', 'Restore CLI-owned docs and validator files before validation')
2529
2541
  .option('--json', 'Emit one machine-readable validation object'), [
2530
2542
  'fgrove validate',
2543
+ 'fgrove validate --repair-managed',
2531
2544
  'fgrove validate --dir ./claimbee-ios --json',
2532
2545
  ])
2533
2546
  .action(async (options) => {
2547
+ const targetDir = path.resolve(process.cwd(), options.dir);
2548
+ if (options.repairManaged === true) {
2549
+ await repairDownloadedManagedFiles(targetDir);
2550
+ const docs = await executeDocsCommand({ targetDir, options: { json: true } });
2551
+ if (docs.exitCode !== 0) {
2552
+ const output = JSON.parse(docs.output);
2553
+ const diagnostic = output.diagnostics?.[0];
2554
+ throw new CliContractError(diagnostic?.code ?? 'FG-DOC-001', diagnostic?.message ?? 'Managed files could not be repaired.');
2555
+ }
2556
+ }
2534
2557
  const result = await executeValidateCommand({
2535
- targetDir: path.resolve(process.cwd(), options.dir),
2558
+ targetDir,
2536
2559
  json: options.json,
2537
2560
  });
2538
2561
  process.stdout.write(result.output);
@@ -97,6 +97,9 @@ export declare function buildCommittedSyncManifest(input: {
97
97
  draftVersionId: string;
98
98
  files: readonly SyncManifestFile[];
99
99
  }): SyncManifest;
100
+ export declare function buildDownloadedSyncManifest(input: SyncManifestInput & {
101
+ files: readonly SourceFile[];
102
+ }): SyncManifest;
100
103
  export declare function writeSyncManifest(rootDir: string, manifest: SyncManifest): Promise<void>;
101
104
  export declare function ensureGitignore(rootDir: string): Promise<void>;
102
105
  export declare function writeLocalEnvFile(rootDir: string, envFile: string | null | undefined): Promise<boolean>;
package/dist/localSync.js CHANGED
@@ -272,6 +272,29 @@ export function buildCommittedSyncManifest(input) {
272
272
  files: input.files.map((file) => ({ ...file })),
273
273
  };
274
274
  }
275
+ export function buildDownloadedSyncManifest(input) {
276
+ const paths = new Set();
277
+ const files = input.files.map((file) => {
278
+ const filePath = assertSafeSyncTargetPath(file.path);
279
+ const foldedPath = filePath.toLocaleLowerCase('en-US');
280
+ if (paths.has(foldedPath)) {
281
+ throw sourceCandidateInvariantError(`Downloaded source repeats or case-collides at: ${filePath}`);
282
+ }
283
+ paths.add(foldedPath);
284
+ const decodedContent = decodeBinarySourceContent(file);
285
+ return {
286
+ path: filePath,
287
+ hash: createHash('sha256').update(decodedContent ?? file.content).digest('hex'),
288
+ };
289
+ }).sort((left, right) => left.path.localeCompare(right.path));
290
+ return {
291
+ version: 1,
292
+ workspaceId: input.workspaceId,
293
+ funnelId: input.funnelId,
294
+ draftVersionId: input.draftVersionId,
295
+ files,
296
+ };
297
+ }
275
298
  export async function writeSyncManifest(rootDir, manifest) {
276
299
  await writeSafeRootFile(rootDir, SYNC_MANIFEST_FILE, `${JSON.stringify(manifest, null, 2)}\n`);
277
300
  }
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.65",
7
+ "repositoryCliVersion": "0.1.67",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.54",
10
+ "bundleVersion": "2.0.56",
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": "1efb49d4c6adf05d1d64524110d4a651ad63b32c1862899d10cf4a9a56d50a41"
48
+ "sha256": "3f89ff9d4d5501c6d3562f4d60d5d2fbc46d0069866353d0fe9a899e4690ac24"
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": "f52545efb1bc7fdf11ae4a792feb3b0eb50c45a01a08036136242bbd483162f2"
148
+ "sha256": "44a40a7630f8ffd287390886d48461cbfb982160daaa9c77a816fbdf446df683"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.64",
154
+ "repositoryCliVersion": "0.1.66",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.53",
157
+ "bundleVersion": "2.0.55",
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": "7488bcd0e73a7070aea003f5f5cbb2be59e63fad1e48c32e136c5a2e9f7f5360"
195
+ "sha256": "c27e6c1a0fcf279e9fb36e53249021f46bb99117e7ae1f5cee3d0861b705395f"
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": "cf2e7c92984818a28baa7ee330f5979225dc0b5a66aed8a25ffec89a11137e4b"
295
+ "sha256": "c4c7bf1252585ecc3eaa0d8f93fdb056a50e0d3ded134c2e32a051dabd247959"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.64",
301
+ "repositoryCliVersion": "0.1.65",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.52",
304
+ "bundleVersion": "2.0.54",
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": "7488bcd0e73a7070aea003f5f5cbb2be59e63fad1e48c32e136c5a2e9f7f5360"
342
+ "sha256": "1efb49d4c6adf05d1d64524110d4a651ad63b32c1862899d10cf4a9a56d50a41"
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": "63df77a196cbbf761f46bd5256dcca81fa933d49f3faf9f00619b33ec3cbf96a"
442
+ "sha256": "f52545efb1bc7fdf11ae4a792feb3b0eb50c45a01a08036136242bbd483162f2"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.62",
448
+ "repositoryCliVersion": "0.1.64",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.51",
451
+ "bundleVersion": "2.0.53",
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": "10cd5853ffbe09a300fe222b18d1f7d7c1dd0f61a02693dd8e6d586b283f2121"
489
+ "sha256": "7488bcd0e73a7070aea003f5f5cbb2be59e63fad1e48c32e136c5a2e9f7f5360"
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": "06c7a3e1b2885129c83e8dd405a9d37ef6f87a14702d92c420772e5bf733f9cc"
589
+ "sha256": "cf2e7c92984818a28baa7ee330f5979225dc0b5a66aed8a25ffec89a11137e4b"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.61",
595
+ "repositoryCliVersion": "0.1.64",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.50",
598
+ "bundleVersion": "2.0.52",
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": "88942be6d27cf6f8526d01dfbf143948dd7f82f4b9a17469e18243900a736139"
636
+ "sha256": "7488bcd0e73a7070aea003f5f5cbb2be59e63fad1e48c32e136c5a2e9f7f5360"
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": "a39599a33bdbed2eaa5660371d25912dae392a5cefda40798014bd8b933db50e"
736
+ "sha256": "63df77a196cbbf761f46bd5256dcca81fa933d49f3faf9f00619b33ec3cbf96a"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.60",
742
+ "repositoryCliVersion": "0.1.62",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.49",
745
+ "bundleVersion": "2.0.51",
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": "f0294b0f21fc24ab69d2f41917869a885a5901d6138d25df11140174e4fb4e72"
783
+ "sha256": "10cd5853ffbe09a300fe222b18d1f7d7c1dd0f61a02693dd8e6d586b283f2121"
784
784
  },
785
785
  {
786
786
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -800,7 +800,7 @@
800
800
  },
801
801
  {
802
802
  "path": "docs/funnelsgrove/recipes/add-experiment.md",
803
- "sha256": "dda3f6d812a18ec6be690f76ba82a520ba9e07b4a23f2278e14a0eecb801c729"
803
+ "sha256": "c63a0f15884b2bf5d65f28d127345bd97641a7b38d047907d6d66f091e15a44a"
804
804
  },
805
805
  {
806
806
  "path": "docs/funnelsgrove/recipes/add-step.md",
@@ -880,16 +880,16 @@
880
880
  },
881
881
  {
882
882
  "path": "funnel-docs.config.json",
883
- "sha256": "70200599749b518b879b32539ea67ada93bd138237c1a5fab57d64203c06cda1"
883
+ "sha256": "06c7a3e1b2885129c83e8dd405a9d37ef6f87a14702d92c420772e5bf733f9cc"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.59",
889
+ "repositoryCliVersion": "0.1.61",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.48",
892
+ "bundleVersion": "2.0.50",
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": "ad72376d6e98c3908bc57e6853387008dca3367f9dba2d7b43cdc4b90148ef4e"
930
+ "sha256": "88942be6d27cf6f8526d01dfbf143948dd7f82f4b9a17469e18243900a736139"
931
931
  },
932
932
  {
933
933
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -947,7 +947,7 @@
947
947
  },
948
948
  {
949
949
  "path": "docs/funnelsgrove/recipes/add-experiment.md",
950
- "sha256": "ccc216612e0d532790a81d556111417876b0408944cae0eb8cd13e758a196bb8"
950
+ "sha256": "c63a0f15884b2bf5d65f28d127345bd97641a7b38d047907d6d66f091e15a44a"
951
951
  },
952
952
  {
953
953
  "path": "docs/funnelsgrove/recipes/add-step.md",
@@ -1027,7 +1027,7 @@
1027
1027
  },
1028
1028
  {
1029
1029
  "path": "funnel-docs.config.json",
1030
- "sha256": "9d1cb3d86bb1eaa518d04151829b71bb72c21a13c175fcec5ad798393b2f4340"
1030
+ "sha256": "a39599a33bdbed2eaa5660371d25912dae392a5cefda40798014bd8b933db50e"
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.65",
3
+ "version": "0.1.67",
4
4
  "description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.54",
3
+ "bundleVersion": "2.0.56",
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": "1efb49d4c6adf05d1d64524110d4a651ad63b32c1862899d10cf4a9a56d50a41"
41
+ "sha256": "3f89ff9d4d5501c6d3562f4d60d5d2fbc46d0069866353d0fe9a899e4690ac24"
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": "f52545efb1bc7fdf11ae4a792feb3b0eb50c45a01a08036136242bbd483162f2"
141
+ "sha256": "44a40a7630f8ffd287390886d48461cbfb982160daaa9c77a816fbdf446df683"
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.2` first, then `@funnelsgrove/analytics` `0.1.51`, then `@funnelsgrove/payments` `0.7.1`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.65`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.7.2` first, then `@funnelsgrove/analytics` `0.1.51`, then `@funnelsgrove/payments` `0.7.1`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.67`. 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.54",
3
+ "bundleVersion": "2.0.56",
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.54",
3
+ "bundleVersion": "2.0.56",
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": "1efb49d4c6adf05d1d64524110d4a651ad63b32c1862899d10cf4a9a56d50a41"
41
+ "sha256": "3f89ff9d4d5501c6d3562f4d60d5d2fbc46d0069866353d0fe9a899e4690ac24"
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": "f52545efb1bc7fdf11ae4a792feb3b0eb50c45a01a08036136242bbd483162f2"
141
+ "sha256": "44a40a7630f8ffd287390886d48461cbfb982160daaa9c77a816fbdf446df683"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "066cc1d3748275fab6269d8ef4a6a6123fc1337ec17a2e51404f87f37b23c889",
3
+ "sourceTreeHash": "da47d4b45148058b3485786ebf529164773f845391a1ca1ce896b38606651bb5",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.54",
5
+ "docsBundleVersion": "2.0.56",
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": "07a876ec464785765263f313cc98d50478d6cc329f8c7f2542b8ff6340a7dc92",
19
+ "sha256": "8a7f62f1471af7a5a37e5e1e8123c4f9c64b09a2570ec12f5b8812eeddc145f3",
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": "1efb49d4c6adf05d1d64524110d4a651ad63b32c1862899d10cf4a9a56d50a41",
104
+ "sha256": "3f89ff9d4d5501c6d3562f4d60d5d2fbc46d0069866353d0fe9a899e4690ac24",
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": "f52545efb1bc7fdf11ae4a792feb3b0eb50c45a01a08036136242bbd483162f2",
239
+ "sha256": "44a40a7630f8ffd287390886d48461cbfb982160daaa9c77a816fbdf446df683",
240
240
  "mode": "100644"
241
241
  },
242
242
  {
@@ -261,7 +261,7 @@
261
261
  },
262
262
  {
263
263
  "path": "package-lock.json",
264
- "sha256": "381a5c7bfa3841f8f1e96b45311f5f09a4029d27258daa862c248994575050e5",
264
+ "sha256": "7b9cd26b58befd01f21ca16928bb3544be09bd7647155ab147f8a8c5764647a3",
265
265
  "mode": "100644"
266
266
  },
267
267
  {
@@ -916,7 +916,7 @@
916
916
  },
917
917
  {
918
918
  "path": "tests/funnel-agent-docs.test.ts",
919
- "sha256": "2a2da907b70ceccf67430aab0ed70eac898439c0a1690073c704e7db9cd1d60b",
919
+ "sha256": "4245b5e7c07fdc15a099e1c2c758b4960e7d43e90abdfb1ac52b5d423b816317",
920
920
  "mode": "100644"
921
921
  },
922
922
  {
@@ -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.2` first, then `@funnelsgrove/analytics` `0.1.51`, then `@funnelsgrove/payments` `0.7.1`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.65`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.7.2` first, then `@funnelsgrove/analytics` `0.1.51`, then `@funnelsgrove/payments` `0.7.1`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.67`. 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.54",
3
+ "bundleVersion": "2.0.56",
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.50",
11
+ "@funnelsgrove/analytics": "^0.1.51",
12
12
  "@funnelsgrove/payments": "^0.7.1",
13
- "@funnelsgrove/runtime": "^0.7.1",
13
+ "@funnelsgrove/runtime": "^0.7.2",
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,11 +891,11 @@
891
891
  }
892
892
  },
893
893
  "node_modules/@funnelsgrove/analytics": {
894
- "version": "0.1.50",
895
- "resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.50.tgz",
896
- "integrity": "sha512-y+nkzHwN6JtD4SmsLguwCRh/klhidTr+QRTIKYGTAQnW6Mf/W2LKhFKGQKEQFjOKQe5XjNOsbfei8GFXCJ/4KA==",
894
+ "version": "0.1.51",
895
+ "resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.51.tgz",
896
+ "integrity": "sha512-tDY3p8pit/cqBwKXqbzh4o13Nzuk+nQ8SpqGddvV1kFteF9I/zqXCdrc01Qw00WdDdavTaMiFw6rqcbZT3pQfQ==",
897
897
  "dependencies": {
898
- "@funnelsgrove/runtime": "0.7.1"
898
+ "@funnelsgrove/runtime": "0.7.2"
899
899
  }
900
900
  },
901
901
  "node_modules/@funnelsgrove/payments": {
@@ -913,9 +913,9 @@
913
913
  }
914
914
  },
915
915
  "node_modules/@funnelsgrove/runtime": {
916
- "version": "0.7.1",
917
- "resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.1.tgz",
918
- "integrity": "sha512-BbhJvCA44faAGEJZSXMu6hHsZ5LyIB9k5XFO51VeOjSG64XFg1XfsXgOIGhSpQkbGaVsVcYfDatROg1SRtjNig==",
916
+ "version": "0.7.2",
917
+ "resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.2.tgz",
918
+ "integrity": "sha512-NODUpe+2tjP83isXOmGHMCHDrKW/BpsiprkB9p3P4OyQJdCuDbKFoAsPGvoN3Q7nWB/I8ybfTm2FSCizXZCD4g==",
919
919
  "dependencies": {
920
920
  "posthog-js": "^1.369.2",
921
921
  "react": "19.2.3",
@@ -363,7 +363,7 @@ describe('funnel agent documentation supply', () => {
363
363
 
364
364
  expect(manifest).toMatchObject({
365
365
  schemaVersion: 1,
366
- bundleVersion: '2.0.54',
366
+ bundleVersion: '2.0.56',
367
367
  stepContractVersion: contract.stepContractVersion,
368
368
  contractHash: contract.contractHash,
369
369
  });