@funnelsgrove/cli 0.1.354 → 0.1.355

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.
@@ -395,7 +395,7 @@ const registerGenerationRunCommands = (root, input) => {
395
395
  const detail = options.wait ? await waitForGeneration(scope, id) : await api(scope, 'generation', 'query', { generationId: id });
396
396
  return options.full ? detail : summarizeGeneration(detail);
397
397
  }));
398
- scoped(generations.command('approve <id>').description('Approve every keyframe of a video Generation; reserves the clips'))
398
+ scoped(generations.command('approve-keyframes <id>').description('Approve every keyframe of a video Generation; reserves the clips'))
399
399
  .action(run(async (scope, _options, id) => summarizeGeneration(await api(scope, 'approveKeyframes', 'mutation', { generationId: id }))));
400
400
  scoped(generations.command('regenerate-keyframe <id>').description('Make one keyframe again before approval')
401
401
  .requiredOption('--scene <index>', '0-based scene index'))
@@ -409,12 +409,21 @@ const registerGenerationRunCommands = (root, input) => {
409
409
  }))));
410
410
  scoped(generations.command('cancel <id>').description('Cancel a Generation; unfinished outputs release their credits'))
411
411
  .action(run(async (scope, _options, id) => summarizeGeneration(await api(scope, 'cancelGeneration', 'mutation', { generationId: id }))));
412
- scoped(generations.command('keep <outputId>').description('Keep an image or video output as a new Variation (free; once per output)')
413
- .option('--creative <creative>', 'Add it to this existing Creative, such as st003 (otherwise a new Creative)'))
412
+ scoped(generations.command('keep <outputId>').description('Approve one output as a Variation of its pack (alias of approve; free; once per output)')
413
+ .option('--creative <creative>', 'Add it to this existing Creative, such as st003 (otherwise the pack chosen at start)'))
414
414
  .action(run(async (scope, options, outputId) => api(scope, 'keepOutput', 'mutation', {
415
415
  outputId,
416
416
  ...(options.creative ? { creativeId: findCreative(await input.creatives(scope), options.creative).id } : {}),
417
417
  })));
418
+ scoped(generations.command('approve <outputIds...>').description('Approve outputs as Variations of their pack: the Creative chosen at start, or one new Creative per batch (free; once per output)')
419
+ .option('--creative <creative>', 'Approve into this existing Creative instead, such as st003'))
420
+ // Commander hands a variadic argument over as one array.
421
+ .action(run(async (scope, options, ...positional) => api(scope, 'approveOutputs', 'mutation', {
422
+ outputIds: positional.flat(),
423
+ ...(options.creative ? { creativeId: findCreative(await input.creatives(scope), options.creative).id } : {}),
424
+ })));
425
+ scoped(generations.command('reject <outputIds...>').description('Reject delivered outputs; they leave the gallery and stay charged (an approved output cannot be rejected)'))
426
+ .action(run(async (scope, _options, ...positional) => api(scope, 'rejectOutputs', 'mutation', { outputIds: positional.flat() })));
418
427
  };
419
428
  /** `fgrove creatives brand-kits|briefs|render`. */
420
429
  const registerGenerationCommands = (root, input) => {
@@ -552,7 +561,9 @@ Examples:
552
561
  fgrove creatives generate --brief <brief id> --count 4 --sizes 1080x1350,1080x1920 --estimate --project claimbee
553
562
  fgrove creatives generate --angle C004 --brand Amazon --prompt "A receipt on a kitchen table" --headline "Your refund is waiting" --cta "Check now" --wait --project claimbee
554
563
  fgrove creatives generate --brief <video brief id> --auto-approve --wait --project claimbee
555
- fgrove creatives generations keep <output id> --creative st003 --project claimbee`);
564
+ fgrove creatives generations approve <output id> <output id> --project claimbee
565
+ fgrove creatives generations approve <output id> --creative st003 --project claimbee
566
+ fgrove creatives generations reject <output id> --project claimbee`);
556
567
  const settings = root.command('settings').description('Project creative settings');
557
568
  scoped(settings.command('show').description('Show the name prefix and dictionaries'))
558
569
  .action(run((scope) => api(scope, 'settings', 'query')));
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.354",
7
+ "repositoryCliVersion": "0.1.355",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.347",
10
+ "bundleVersion": "2.0.348",
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": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
48
+ "sha256": "c72e184744cef59f40141bc950e40027c15c00032db03893bf0868c76feb85ee"
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": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
148
+ "sha256": "ed74a5d6792358e6f3475efb1af19506da635b4a7d5723c34bee4187a2f28b99"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.353",
154
+ "repositoryCliVersion": "0.1.354",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.346",
157
+ "bundleVersion": "2.0.347",
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": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15"
195
+ "sha256": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
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": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367"
295
+ "sha256": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.352",
301
+ "repositoryCliVersion": "0.1.353",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.345",
304
+ "bundleVersion": "2.0.346",
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": "a66ccac6a2aa87361d491759c06c87c718755552f04250ca51768679fbade4ac"
342
+ "sha256": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15"
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": "853f573a6667f1ec5ff4da9075ca8df488f82d984723c44bc947e60f020c6b51"
442
+ "sha256": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.351",
448
+ "repositoryCliVersion": "0.1.352",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.344",
451
+ "bundleVersion": "2.0.345",
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": "5db03d9f8f9adf0542dc4bd4008a5cf42073cc3eb99909892efaffe49b751e5c"
489
+ "sha256": "a66ccac6a2aa87361d491759c06c87c718755552f04250ca51768679fbade4ac"
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": "8b3a1d3859156a55c0125093d720aefc84a9eda7153a58211eba2460fc23316b"
589
+ "sha256": "853f573a6667f1ec5ff4da9075ca8df488f82d984723c44bc947e60f020c6b51"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.350",
595
+ "repositoryCliVersion": "0.1.351",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.343",
598
+ "bundleVersion": "2.0.344",
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": "642abb9ad362188cefdc4b756c3fcfeb78c2aba54b552ab606996cae32285a25"
636
+ "sha256": "5db03d9f8f9adf0542dc4bd4008a5cf42073cc3eb99909892efaffe49b751e5c"
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": "b7421e4fbee50ef16e21c4863c256cdf1acbb146356d093d6c234b6bc209eff0"
736
+ "sha256": "8b3a1d3859156a55c0125093d720aefc84a9eda7153a58211eba2460fc23316b"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.349",
742
+ "repositoryCliVersion": "0.1.350",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.342",
745
+ "bundleVersion": "2.0.343",
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": "7feb445afac29d0bdde1c88a9c1a067c9f7b7582030ae9d74f4794a1a9096653"
783
+ "sha256": "642abb9ad362188cefdc4b756c3fcfeb78c2aba54b552ab606996cae32285a25"
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": "0527f742251b4a66cff004a686a5e700ec25f8bafd0e58e61ccd1ede0dcf307f"
883
+ "sha256": "b7421e4fbee50ef16e21c4863c256cdf1acbb146356d093d6c234b6bc209eff0"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.348",
889
+ "repositoryCliVersion": "0.1.349",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.341",
892
+ "bundleVersion": "2.0.342",
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": "3bf19c149e0c203b4958a9476d561e1ebd25deb7f0592b7b3190029c2d307a21"
930
+ "sha256": "7feb445afac29d0bdde1c88a9c1a067c9f7b7582030ae9d74f4794a1a9096653"
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": "d8d48c6b6b11c9ab8031f1d48da083125856a0362571263d53c828399d27d64f"
1030
+ "sha256": "0527f742251b4a66cff004a686a5e700ec25f8bafd0e58e61ccd1ede0dcf307f"
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.354",
3
+ "version": "0.1.355",
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.347",
3
+ "bundleVersion": "2.0.348",
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": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
41
+ "sha256": "c72e184744cef59f40141bc950e40027c15c00032db03893bf0868c76feb85ee"
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": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
141
+ "sha256": "ed74a5d6792358e6f3475efb1af19506da635b4a7d5723c34bee4187a2f28b99"
142
142
  }
143
143
  ]
144
144
  }
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
17
17
 
18
18
  ### Package release order
19
19
 
20
- Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.354`, 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.
20
+ Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.355`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
21
21
  <!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
22
22
 
23
23
  ## Version-last policy
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.347",
3
+ "bundleVersion": "2.0.348",
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.347",
3
+ "bundleVersion": "2.0.348",
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": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
41
+ "sha256": "c72e184744cef59f40141bc950e40027c15c00032db03893bf0868c76feb85ee"
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": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
141
+ "sha256": "ed74a5d6792358e6f3475efb1af19506da635b4a7d5723c34bee4187a2f28b99"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "dc5637cc9cbe5f6cf96a0fa4dc8ad0e8aa1429255f6c713d2d2c004a9c2b78bf",
3
+ "sourceTreeHash": "9c40a3ca4c344278a489bf5d864899af08a21c550d5769a766ab9a4c4f8edf1f",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.347",
5
+ "docsBundleVersion": "2.0.348",
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": "c671cd2de196de45a2828d08d3e665b1fd053057de770971890c37b68343322c",
19
+ "sha256": "732511b8ba2314a4080d53c296d32eb2aa89f3c3fd47f73fb89fb5f4a42f61f7",
20
20
  "mode": "100644"
21
21
  },
22
22
  {
@@ -76,7 +76,7 @@
76
76
  },
77
77
  {
78
78
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
79
- "sha256": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50",
79
+ "sha256": "c72e184744cef59f40141bc950e40027c15c00032db03893bf0868c76feb85ee",
80
80
  "mode": "100644"
81
81
  },
82
82
  {
@@ -206,7 +206,7 @@
206
206
  },
207
207
  {
208
208
  "path": "funnel-docs.config.json",
209
- "sha256": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428",
209
+ "sha256": "ed74a5d6792358e6f3475efb1af19506da635b4a7d5723c34bee4187a2f28b99",
210
210
  "mode": "100644"
211
211
  },
212
212
  {
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
17
17
 
18
18
  ### Package release order
19
19
 
20
- Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.354`, 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.
20
+ Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.355`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
21
21
  <!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
22
22
 
23
23
  ## Version-last policy
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.347",
3
+ "bundleVersion": "2.0.348",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",