@funnelsgrove/cli 0.1.89 → 0.1.91

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
@@ -1831,17 +1831,25 @@ addEmailScopeOptions(emailSequenceCommand
1831
1831
  });
1832
1832
  addEmailScopeOptions(emailSequenceCommand
1833
1833
  .command('add-step <slug>')
1834
- .description('Add a published-template step to a local email sequence')
1834
+ .description('Add a template or direct-copy step to a local email sequence')
1835
1835
  .requiredOption('--key <key>', 'Unique step key')
1836
- .requiredOption('--template <slug>', 'Published email template slug')
1836
+ .option('--template <slug>', 'Published email template slug')
1837
+ .option('--subject <subject>', 'Direct-copy subject')
1838
+ .option('--body <body>', 'Direct-copy plain-text body')
1837
1839
  .option('--delay-hours <hours>', 'Delay after the previous step in hours')
1838
1840
  .option('--delay-days <days>', 'Delay after the previous step in days'))
1839
1841
  .action(async (slug, options) => {
1842
+ const direct = options.subject !== undefined || options.body !== undefined;
1843
+ if (Boolean(options.template) === direct || (direct && (!options.subject || !options.body))) {
1844
+ throw new Error('Provide either --template or both --subject and --body.');
1845
+ }
1840
1846
  await executeEmailSequenceAddStep({
1841
1847
  ...await resolveEmailCommandScope(options),
1842
1848
  slug,
1843
1849
  key: options.key,
1844
1850
  templateSlug: options.template,
1851
+ subject: options.subject,
1852
+ body: options.body,
1845
1853
  delaySeconds: parseEmailSequenceDelay(options),
1846
1854
  });
1847
1855
  console.log(`Added email sequence step ${options.key} to ${slug}.`);
@@ -52,7 +52,9 @@ export declare function executeEmailPush(scope: EmailCommandScope): Promise<{
52
52
  export declare function executeEmailSequenceAddStep(input: EmailCommandScope & {
53
53
  slug: string;
54
54
  key: string;
55
- templateSlug: string;
55
+ templateSlug?: string;
56
+ subject?: string;
57
+ body?: string;
56
58
  delaySeconds: number;
57
59
  }): Promise<void>;
58
60
  export declare function executeEmailSequenceCreate(input: EmailCommandScope & {
@@ -160,11 +160,17 @@ const canonicalResource = (kind, value) => {
160
160
  name: value.name,
161
161
  triggerEventType: value.draft.triggerEventType,
162
162
  funnelIds: Array.isArray(value.draft.funnelIds) ? [...new Set(value.draft.funnelIds)].sort() : [],
163
- steps: steps.map((step) => isRecord(step) ? {
164
- key: step.key,
165
- delaySeconds: step.delaySeconds,
166
- templateVersionId: step.templateVersionId,
167
- } : step),
163
+ steps: steps.map((step) => isRecord(step)
164
+ ? step.mode === 'direct'
165
+ ? { key: step.key, delaySeconds: step.delaySeconds, mode: 'direct', subject: step.subject, body: step.body }
166
+ : {
167
+ key: step.key,
168
+ delaySeconds: step.delaySeconds,
169
+ mode: 'template',
170
+ templateVersionId: step.templateVersionId,
171
+ variables: isRecord(step.variables) ? step.variables : {},
172
+ }
173
+ : step),
168
174
  exitEventTypes: Array.isArray(value.draft.exitEventTypes)
169
175
  ? [...new Set(value.draft.exitEventTypes)].sort()
170
176
  : [],
@@ -303,12 +309,32 @@ export async function executeEmailSequenceAddStep(input) {
303
309
  if (sequence.draft.steps.some((step) => step.key === input.key)) {
304
310
  throw new Error(`Email sequence step "${input.key}" already exists.`);
305
311
  }
306
- const templateVersionId = await resolvePublishedTemplateVersionId(input, input.templateSlug);
307
- sequence.draft.steps.push({
308
- key: input.key,
309
- delaySeconds: input.delaySeconds,
310
- templateVersionId,
311
- });
312
+ const direct = input.subject !== undefined || input.body !== undefined;
313
+ if (Boolean(input.templateSlug) === direct) {
314
+ throw new Error('Provide either a template slug or both direct subject and body.');
315
+ }
316
+ if (direct) {
317
+ const subject = input.subject?.trim() || '';
318
+ const body = input.body?.trim() || '';
319
+ if (!subject
320
+ || subject.length > 998
321
+ || /[\u0000-\u001f\u007f-\u009f]/u.test(subject)
322
+ || !body
323
+ || body.length > 200_000) {
324
+ throw new Error('Direct sequence steps require a subject and body within size limits.');
325
+ }
326
+ sequence.draft.steps.push({ key: input.key, delaySeconds: input.delaySeconds, mode: 'direct', subject, body });
327
+ }
328
+ else {
329
+ const templateVersionId = await resolvePublishedTemplateVersionId(input, input.templateSlug);
330
+ sequence.draft.steps.push({
331
+ key: input.key,
332
+ delaySeconds: input.delaySeconds,
333
+ mode: 'template',
334
+ templateVersionId,
335
+ variables: {},
336
+ });
337
+ }
312
338
  await writeEmailSequenceFile(input.sourceDir, sequence);
313
339
  }
314
340
  const resolvePublishedTemplateVersionId = async (scope, templateSlug) => {
@@ -353,7 +379,9 @@ export async function executeEmailSequenceCreate(input) {
353
379
  steps: [{
354
380
  key: input.firstStepKey,
355
381
  delaySeconds: input.delaySeconds,
382
+ mode: 'template',
356
383
  templateVersionId,
384
+ variables: {},
357
385
  }],
358
386
  exitEventTypes: input.triggerEventType === 'purchase_completed'
359
387
  ? []
@@ -14,11 +14,21 @@ export type EmailTemplateFile = {
14
14
  name: string;
15
15
  draft: EmailTemplateDraft;
16
16
  };
17
- export type EmailSequenceStep = {
17
+ export type EmailSequenceTemplateStep = {
18
18
  key: string;
19
19
  delaySeconds: number;
20
+ mode: 'template';
20
21
  templateVersionId: string;
22
+ variables: Record<string, string | number | boolean>;
21
23
  };
24
+ export type EmailSequenceDirectStep = {
25
+ key: string;
26
+ delaySeconds: number;
27
+ mode: 'direct';
28
+ subject: string;
29
+ body: string;
30
+ };
31
+ export type EmailSequenceStep = EmailSequenceTemplateStep | EmailSequenceDirectStep;
22
32
  export type EmailSequenceDraft = {
23
33
  triggerEventType: EmailEventType;
24
34
  funnelIds: string[];
@@ -30,7 +30,9 @@ const SEQUENCE_KEYS = new Set([
30
30
  'steps',
31
31
  'exitEventTypes',
32
32
  ]);
33
- const SEQUENCE_STEP_KEYS = new Set(['key', 'delaySeconds', 'templateVersionId']);
33
+ const LEGACY_SEQUENCE_STEP_KEYS = new Set(['key', 'delaySeconds', 'templateVersionId']);
34
+ const TEMPLATE_SEQUENCE_STEP_KEYS = new Set(['key', 'delaySeconds', 'mode', 'templateVersionId', 'variables']);
35
+ const DIRECT_SEQUENCE_STEP_KEYS = new Set(['key', 'delaySeconds', 'mode', 'subject', 'body']);
34
36
  const isRecord = (value) => (typeof value === 'object' && value !== null && !Array.isArray(value));
35
37
  const assertNoSymlinkPath = async (root, relativePath = '') => {
36
38
  const parts = relativePath ? relativePath.split('/') : [];
@@ -246,7 +248,12 @@ const validateSequence = (value, pathSlug, file, diagnostics) => {
246
248
  diagnostics.push(schemaDiagnostic(file, `steps[${index}]`, 'object', step));
247
249
  return;
248
250
  }
249
- validateExactKeys(step, SEQUENCE_STEP_KEYS, file, diagnostics);
251
+ const stepMode = step.mode === undefined ? 'legacy-template' : step.mode;
252
+ validateExactKeys(step, stepMode === 'direct'
253
+ ? DIRECT_SEQUENCE_STEP_KEYS
254
+ : stepMode === 'template'
255
+ ? TEMPLATE_SEQUENCE_STEP_KEYS
256
+ : LEGACY_SEQUENCE_STEP_KEYS, file, diagnostics);
250
257
  if (typeof step.key !== 'string' || !STEP_KEY.test(step.key) || step.key.length > 64) {
251
258
  diagnostics.push(schemaDiagnostic(file, `steps[${index}].key`, 'lowercase kebab-case key', step.key));
252
259
  }
@@ -259,8 +266,39 @@ const validateSequence = (value, pathSlug, file, diagnostics) => {
259
266
  if (!Number.isInteger(step.delaySeconds) || Number(step.delaySeconds) < 0 || Number(step.delaySeconds) > 7_776_000) {
260
267
  diagnostics.push(schemaDiagnostic(file, `steps[${index}].delaySeconds`, 'integer from 0 to 7776000', step.delaySeconds));
261
268
  }
262
- if (typeof step.templateVersionId !== 'string' || !UUID.test(step.templateVersionId)) {
263
- diagnostics.push(schemaDiagnostic(file, `steps[${index}].templateVersionId`, 'UUID', step.templateVersionId));
269
+ if (stepMode === 'direct') {
270
+ if (typeof step.subject !== 'string'
271
+ || !step.subject.trim()
272
+ || step.subject.trim().length > 998
273
+ || /[\u0000-\u001f\u007f-\u009f]/u.test(step.subject)) {
274
+ diagnostics.push(schemaDiagnostic(file, `steps[${index}].subject`, '1 to 998 characters', step.subject));
275
+ }
276
+ if (typeof step.body !== 'string' || !step.body.trim() || step.body.trim().length > 200_000) {
277
+ diagnostics.push(schemaDiagnostic(file, `steps[${index}].body`, '1 to 200000 characters', step.body));
278
+ }
279
+ }
280
+ else {
281
+ if (stepMode !== 'template' && stepMode !== 'legacy-template') {
282
+ diagnostics.push(schemaDiagnostic(file, `steps[${index}].mode`, ['template', 'direct'], step.mode));
283
+ }
284
+ if (typeof step.templateVersionId !== 'string' || !UUID.test(step.templateVersionId)) {
285
+ diagnostics.push(schemaDiagnostic(file, `steps[${index}].templateVersionId`, 'UUID', step.templateVersionId));
286
+ }
287
+ if (stepMode === 'template') {
288
+ if (!isRecord(step.variables)) {
289
+ diagnostics.push(schemaDiagnostic(file, `steps[${index}].variables`, 'object', step.variables));
290
+ }
291
+ else {
292
+ Object.entries(step.variables).forEach(([key, variable]) => {
293
+ if (!VARIABLE_NAME.test(key) || RESERVED_VARIABLE_NAMES.has(key)) {
294
+ diagnostics.push(schemaDiagnostic(file, `steps[${index}].variables.${key}`, 'safe variable name', key));
295
+ }
296
+ if (!['string', 'number', 'boolean'].includes(typeof variable)) {
297
+ diagnostics.push(schemaDiagnostic(file, `steps[${index}].variables.${key}`, 'string, number, or boolean', variable));
298
+ }
299
+ });
300
+ }
301
+ }
264
302
  }
265
303
  });
266
304
  }
@@ -286,7 +324,21 @@ const validateSequence = (value, pathSlug, file, diagnostics) => {
286
324
  draft: {
287
325
  triggerEventType: value.triggerEventType,
288
326
  funnelIds: value.funnelIds,
289
- steps: value.steps,
327
+ steps: value.steps.map((step) => step.mode === 'direct'
328
+ ? {
329
+ key: step.key,
330
+ delaySeconds: step.delaySeconds,
331
+ mode: 'direct',
332
+ subject: step.subject.trim(),
333
+ body: step.body.trim(),
334
+ }
335
+ : {
336
+ key: step.key,
337
+ delaySeconds: step.delaySeconds,
338
+ mode: 'template',
339
+ templateVersionId: step.templateVersionId,
340
+ variables: (step.variables || {}),
341
+ }),
290
342
  exitEventTypes: value.exitEventTypes,
291
343
  },
292
344
  };
@@ -441,11 +493,21 @@ export async function writeEmailSequenceFile(sourceDir, sequence) {
441
493
  name: sequence.name,
442
494
  triggerEventType: sequence.draft.triggerEventType,
443
495
  funnelIds: sortedUnique(sequence.draft.funnelIds),
444
- steps: sequence.draft.steps.map((step) => ({
445
- key: step.key,
446
- delaySeconds: step.delaySeconds,
447
- templateVersionId: step.templateVersionId,
448
- })),
496
+ steps: sequence.draft.steps.map((step) => step.mode === 'direct'
497
+ ? {
498
+ key: step.key,
499
+ delaySeconds: step.delaySeconds,
500
+ mode: 'direct',
501
+ subject: step.subject,
502
+ body: step.body,
503
+ }
504
+ : {
505
+ key: step.key,
506
+ delaySeconds: step.delaySeconds,
507
+ mode: 'template',
508
+ templateVersionId: step.templateVersionId,
509
+ variables: step.variables || {},
510
+ }),
449
511
  exitEventTypes: sortedUnique(sequence.draft.exitEventTypes),
450
512
  };
451
513
  await writeAtomic(path.join(sequenceRoot, `${sequence.slug}.json`), `${JSON.stringify(serialized, null, 2)}\n`);
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.89",
7
+ "repositoryCliVersion": "0.1.91",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.78",
10
+ "bundleVersion": "2.0.80",
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": "b99cbb6911d62d0bcc2da3a293381088dc22442516a557cc6af546df57e4772f"
48
+ "sha256": "4f7ee09583c85958a870814635f4ee4c6d916ccd5b7cc42968988520c17b852a"
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": "1ef47578f359fcefabf23abb246f5e709847c03dca3bbb23b354512d586568ed"
148
+ "sha256": "e6fce188252d2ad6063a1c854e14380bd08d25795d13794431bafdf2993e33b4"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.88",
154
+ "repositoryCliVersion": "0.1.90",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.77",
157
+ "bundleVersion": "2.0.79",
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": "5aaf06fd56f3a5c1d2988103f5ffbb2bf62d79af574f7ee876147852d3c5b51c"
195
+ "sha256": "396ab94a2577461d4fdb8d7973bf276c7260ae223238935401c4a06255818a13"
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": "df5dbd07655d33816088d0262af5630b5fdb66ba15bc314c0ee600d81bc84322"
295
+ "sha256": "35d29e8317be6bbe258e7945ac7966504d9b25bc343fa2502d0d4f52990c2eb9"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.87",
301
+ "repositoryCliVersion": "0.1.89",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.76",
304
+ "bundleVersion": "2.0.78",
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": "62d2ac1276e187a648d4469596e82e8babf46f914d3e5bb23d2409312a61d661"
342
+ "sha256": "b99cbb6911d62d0bcc2da3a293381088dc22442516a557cc6af546df57e4772f"
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": "a46bf14afcce1c00ae4edbaf88780e06626302484ba6b1ed87d845604d2bea84"
442
+ "sha256": "1ef47578f359fcefabf23abb246f5e709847c03dca3bbb23b354512d586568ed"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.86",
448
+ "repositoryCliVersion": "0.1.88",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.75",
451
+ "bundleVersion": "2.0.77",
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": "a50e601c2ed9351b5322fc71cdb5a8e58dc2826d0a17cf0a5763c6c80ccfb28b"
489
+ "sha256": "5aaf06fd56f3a5c1d2988103f5ffbb2bf62d79af574f7ee876147852d3c5b51c"
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": "2979bb06b0823bf925e99fc2ec5f4bb52ec5dfca103c57d391e4e82521d64feb"
589
+ "sha256": "df5dbd07655d33816088d0262af5630b5fdb66ba15bc314c0ee600d81bc84322"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.85",
595
+ "repositoryCliVersion": "0.1.87",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.74",
598
+ "bundleVersion": "2.0.76",
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": "5bc3de862b0824a2bbeb324d5aa0a097f2b93c9d8a250b292e1002e1f10f127a"
636
+ "sha256": "62d2ac1276e187a648d4469596e82e8babf46f914d3e5bb23d2409312a61d661"
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": "7d9ebfea22bb7e47c3233f1229c8924da048c27253755ec4ce2cdc280f576400"
736
+ "sha256": "a46bf14afcce1c00ae4edbaf88780e06626302484ba6b1ed87d845604d2bea84"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.84",
742
+ "repositoryCliVersion": "0.1.86",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.73",
745
+ "bundleVersion": "2.0.75",
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": "0dfaf22828481cb206164304c15d06f5900ca47cf37d38a4e650facd0ad84ec8"
783
+ "sha256": "a50e601c2ed9351b5322fc71cdb5a8e58dc2826d0a17cf0a5763c6c80ccfb28b"
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": "79d08c93ffa111b31c8b5ed95b022ea5ce800d1e31b1ee1b7c957bffc18dc336"
883
+ "sha256": "2979bb06b0823bf925e99fc2ec5f4bb52ec5dfca103c57d391e4e82521d64feb"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.83",
889
+ "repositoryCliVersion": "0.1.85",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.72",
892
+ "bundleVersion": "2.0.74",
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": "ff879b9479fa097459e9527a99b1d267e0a35b6cc056dace34a3b1ed640bdc5e"
930
+ "sha256": "5bc3de862b0824a2bbeb324d5aa0a097f2b93c9d8a250b292e1002e1f10f127a"
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": "1011fadb554a1bbc28110119ee43417c5e75d8b6c71482e21ca6014a9a66716a"
1030
+ "sha256": "7d9ebfea22bb7e47c3233f1229c8924da048c27253755ec4ce2cdc280f576400"
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.89",
3
+ "version": "0.1.91",
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.10",
37
+ "@funnelsgrove/runtime": "0.7.11",
38
38
  "commander": "^12.0.0",
39
39
  "typescript": "^5.8.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@funnelsgrove/analytics": "0.1.59",
42
+ "@funnelsgrove/analytics": "0.1.60",
43
43
  "@funnelsgrove/payments": "0.7.3",
44
44
  "vitest": "^3.0.0"
45
45
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.78",
3
+ "bundleVersion": "2.0.80",
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": "b99cbb6911d62d0bcc2da3a293381088dc22442516a557cc6af546df57e4772f"
41
+ "sha256": "4f7ee09583c85958a870814635f4ee4c6d916ccd5b7cc42968988520c17b852a"
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": "1ef47578f359fcefabf23abb246f5e709847c03dca3bbb23b354512d586568ed"
141
+ "sha256": "e6fce188252d2ad6063a1c854e14380bd08d25795d13794431bafdf2993e33b4"
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.10` first, then `@funnelsgrove/analytics` `0.1.59`, then `@funnelsgrove/payments` `0.7.3`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.89`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.7.11` first, then `@funnelsgrove/analytics` `0.1.60`, then `@funnelsgrove/payments` `0.7.3`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.91`. 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.78",
3
+ "bundleVersion": "2.0.80",
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.78",
3
+ "bundleVersion": "2.0.80",
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": "b99cbb6911d62d0bcc2da3a293381088dc22442516a557cc6af546df57e4772f"
41
+ "sha256": "4f7ee09583c85958a870814635f4ee4c6d916ccd5b7cc42968988520c17b852a"
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": "1ef47578f359fcefabf23abb246f5e709847c03dca3bbb23b354512d586568ed"
141
+ "sha256": "e6fce188252d2ad6063a1c854e14380bd08d25795d13794431bafdf2993e33b4"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "99e319e93ed51df072b5ee63087e8dba8497c4d54d0fb9d2d65c801589132143",
3
+ "sourceTreeHash": "dd34090667b885b52d3b08bd8d4a3592c57cb88e124a52f8a5301212ff1a79e6",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.78",
5
+ "docsBundleVersion": "2.0.80",
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": "814d11bc2b808f89de2bdb68631dd2a74127e5c894645b1a8934e6a72fcdb182",
19
+ "sha256": "160ac3a6dff90559174400a168c803adcf5e489859f4b7a125eaf97e029047d3",
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": "b99cbb6911d62d0bcc2da3a293381088dc22442516a557cc6af546df57e4772f",
104
+ "sha256": "4f7ee09583c85958a870814635f4ee4c6d916ccd5b7cc42968988520c17b852a",
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": "1ef47578f359fcefabf23abb246f5e709847c03dca3bbb23b354512d586568ed",
239
+ "sha256": "e6fce188252d2ad6063a1c854e14380bd08d25795d13794431bafdf2993e33b4",
240
240
  "mode": "100644"
241
241
  },
242
242
  {
@@ -261,12 +261,12 @@
261
261
  },
262
262
  {
263
263
  "path": "package-lock.json",
264
- "sha256": "88a1dbc78106dcd03f4d5d919d629721b96b4f9401473cc503b709081428db0e",
264
+ "sha256": "fe51813649fe9ca709c7f6d53330a25345fb5768a4b8f4e491f2311245103f8b",
265
265
  "mode": "100644"
266
266
  },
267
267
  {
268
268
  "path": "package.json",
269
- "sha256": "0e48290977e174a9d5ed1398187c30e9a8856f11875fc5e56918666e6d5fdd1d",
269
+ "sha256": "4dac0a9cea985dd3522da458114d13fdfad3b8f5fbe55561556602c0d397dd7c",
270
270
  "mode": "100644"
271
271
  },
272
272
  {
@@ -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.10` first, then `@funnelsgrove/analytics` `0.1.59`, then `@funnelsgrove/payments` `0.7.3`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.89`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.7.11` first, then `@funnelsgrove/analytics` `0.1.60`, then `@funnelsgrove/payments` `0.7.3`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.91`. 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.78",
3
+ "bundleVersion": "2.0.80",
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.59",
11
+ "@funnelsgrove/analytics": "^0.1.60",
12
12
  "@funnelsgrove/payments": "^0.7.3",
13
- "@funnelsgrove/runtime": "^0.7.10",
13
+ "@funnelsgrove/runtime": "^0.7.11",
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.59",
895
- "resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.59.tgz",
896
- "integrity": "sha512-VA85CXnWZGmMrDTcSgr6sRjL6NGLGWX14z12br9J1Z3ABZrDUFdCp17xAhv2AFHPpSyK/laOQ8udA3oENWZ2yQ==",
894
+ "version": "0.1.60",
895
+ "resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.60.tgz",
896
+ "integrity": "sha512-Her20yj5J849KpFUuFre4CszGQmbeyO40q9Q1i7ephFay3TaC3q+zgGlCAGprKhylcmNrAGISpmNmzoEZCQR+A==",
897
897
  "dependencies": {
898
- "@funnelsgrove/runtime": "0.7.10"
898
+ "@funnelsgrove/runtime": "0.7.11"
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.10",
917
- "resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.10.tgz",
918
- "integrity": "sha512-V1S7kVu1lBLAi49f4ZP+n8Z9ZcINh/g9mQyplE+jG0ic+ct2kdZaB2x9FZ3frvWgg+GEBTiDF4aIAJcc0Z9kzQ==",
916
+ "version": "0.7.11",
917
+ "resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.11.tgz",
918
+ "integrity": "sha512-Pkc0pk0/xdkirfsisj2208eh/18STnXDJOb+ceQlz78CCB3kF0VIWQGNKZi6FWqKWEoJQZIS7z1fmyAbT4LOmg==",
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.59",
15
+ "@funnelsgrove/analytics": "^0.1.60",
16
16
  "@funnelsgrove/payments": "^0.7.3",
17
- "@funnelsgrove/runtime": "^0.7.10",
17
+ "@funnelsgrove/runtime": "^0.7.11",
18
18
  "@stripe/react-stripe-js": "^5.6.0",
19
19
  "@stripe/stripe-js": "^8.7.0",
20
20
  "lucide-react": "^0.553.0",