ferrflow 5.52.0

Universal semantic versioning for monorepos and classic repos
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://ferrflow.com/schema/ferrflow.json",
  "title": "FerrFlow Configuration",
  "description": "Configuration file for FerrFlow — universal semantic versioning for monorepos and classic repos.",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "description": "JSON Schema reference for editor autocompletion."
    },
    "workspace": {
      "type": "object",
      "description": "Workspace-level settings.",
      "properties": {
        "remote": {
          "type": "string",
          "description": "Git remote name.",
          "default": "origin"
        },
        "branch": {
          "type": "string",
          "description": "Main branch name.",
          "default": "main"
        },
        "anonymous_telemetry": {
          "type": "boolean",
          "description": "Deprecated and ignored: telemetry was removed from FerrFlow in v5.33. The key remains accepted so existing configs stay valid.",
          "default": true,
          "deprecated": true
        },
        "telemetry": {
          "type": "boolean",
          "description": "Deprecated and ignored: telemetry was removed from FerrFlow in v5.33. The key remains accepted so existing configs stay valid.",
          "default": true,
          "deprecated": true
        },
        "versioning": {
          "type": "string",
          "description": "Default versioning strategy for all packages.",
          "enum": [
            "semver",
            "calver",
            "calver-short",
            "calver-seq",
            "sequential",
            "zerover"
          ],
          "default": "semver"
        },
        "tagTemplate": {
          "type": "string",
          "description": "Tag template. Use {name} for package name and {version} for version. Default: 'v{version}' for single repos, '{name}@v{version}' for monorepos.",
          "examples": [
            "v{version}",
            "{name}@v{version}",
            "{name}/v{version}",
            "release-{version}"
          ]
        },
        "recoverMissedReleases": {
          "type": "boolean",
          "description": "Compare files against the last tag instead of just the last commit, recovering missed releases in monorepos.",
          "default": false
        },
        "releaseCommitMode": {
          "type": "string",
          "description": "How to commit version bumps and changelog updates. 'commit' pushes directly to the branch, 'pr' creates a pull request, 'none' skips committing entirely.",
          "enum": [
            "commit",
            "pr",
            "none"
          ],
          "default": "commit"
        },
        "releaseCommitScope": {
          "type": "string",
          "description": "In monorepo mode, whether to create a single grouped commit for all packages or one commit per package. Only affects behavior when multiple packages are bumped.",
          "enum": [
            "grouped",
            "per-package"
          ],
          "default": "grouped"
        },
        "autoMergeReleases": {
          "type": "boolean",
          "description": "Automatically merge release PRs when releaseCommitMode is 'pr'.",
          "default": true
        },
        "skipCi": {
          "type": "boolean",
          "description": "Append [skip ci] to the release commit message. Defaults to true in 'commit' mode, false in 'pr' mode."
        },
        "commitSkipMarkers": {
          "type": "array",
          "description": "Markers in a commit subject line that cause FerrFlow to skip the commit when computing the next version. Matched case-insensitively, subject line only. Defaults to ['[skip ci]', '[ci skip]', '[no ci]', '[skip actions]', '[actions skip]'].",
          "items": {
            "type": "string"
          }
        },
        "floatingTags": {
          "type": "array",
          "description": "Floating tag levels to create/move on each release. Each level produces a tag pointing to the latest matching release (e.g. 'major' creates a v1 tag for v1.2.3).",
          "items": {
            "type": "string",
            "enum": [
              "major",
              "minor"
            ]
          },
          "default": []
        },
        "forge": {
          "type": "string",
          "description": "Git forge type. 'auto' detects from the remote URL. Set 'github', 'gitlab', 'gitea', or 'bitbucket' to override (useful for self-hosted instances with custom domains).",
          "enum": [
            "auto",
            "github",
            "gitlab",
            "gitea",
            "bitbucket"
          ],
          "default": "auto"
        },
        "orphanedTagStrategy": {
          "type": "string",
          "enum": [
            "warn",
            "treeHash",
            "message"
          ],
          "description": "How to handle tags pointing to orphaned commits (after rebase + force-push). 'warn' logs a warning and skips. 'treeHash' attempts recovery by matching the commit's tree hash. 'message' attempts recovery by matching the commit message.",
          "default": "warn"
        },
        "hooks": {
          "$ref": "#/$defs/hooks"
        },
        "deferPublish": {
          "type": "boolean",
          "description": "When true, `ferrflow release` does not run the configured publishers inline — it defers them to a separate `ferrflow publish` invocation (e.g. a CI job that carries the docker/helm/npm build toolchain the release job lacks). `ferrflow publish` always runs the publishers regardless of this flag.",
          "default": false
        },
        "manifest_file": {
          "type": "string",
          "description": "Opt-in single-file source of truth for per-package versions, relative to the repo root (e.g. '.ferrflow.manifest.json'). When set, `ferrflow release` writes a full version snapshot to this file as part of the release commit, validates it against the versioned files at release start (a divergence is a hard error — run `ferrflow sync-manifest` to repair), and `status` / `version` read current versions from it. Omit to leave all behaviour unchanged.",
          "examples": [
            ".ferrflow.manifest.json"
          ]
        },
        "updateDependents": {
          "type": "boolean",
          "description": "When true, after `ferrflow release` bumps a package, every dependent listed via `dependsOn` has its version constraint for that package rewritten to the new version in its own manifest, and the manifest is staged in the release commit. Only `json` (package.json) and `toml` (Cargo.toml) manifests are rewritten, and only plain operator + version constraints (`^1.2.3`, `~1.2.3`, `1.2.3`) — a `workspace:*`, `file:`/`git:` spec or a multi-part range is left untouched for a human to handle.",
          "default": false
        },
        "updateLockfiles": {
          "type": "boolean",
          "description": "When true, after `ferrflow release` bumps a manifest (Cargo.toml, package.json, pyproject.toml, Gemfile, mix.exs) it refreshes the sibling lockfile (Cargo.lock, package-lock.json / pnpm-lock.yaml / yarn.lock, poetry.lock / uv.lock, Gemfile.lock, mix.lock) with the package manager's offline / lockfile-only mode and stages it in the same release commit. A missing package manager or an unresolvable offline update is warned about, never fatal. Set per-package `updateLockfiles: false` to opt a single package out.",
          "default": false
        },
        "registries": {
          "type": "object",
          "description": "Named registry credentials referenced by package.publishers[]. Lets users declare 'the Kellnr token lives in CARGO_REGISTRIES_KELLNR_TOKEN' once and reuse it across every cargo / npm / docker publisher.",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "tokenEnv": {
                "type": "string",
                "description": "Name of the env var holding the registry token. The token value is never read from config."
              },
              "token_env": {
                "type": "string",
                "description": "Snake_case form of `tokenEnv` — both spellings are accepted. Name of the env var holding the registry token. The token value is never read from config."
              }
            },
            "additionalProperties": false
          }
        },
        "branches": {
          "type": "array",
          "description": "Map branches to pre-release channels. When FerrFlow runs on a branch matching a configured name/pattern, it uses the corresponding channel.",
          "items": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Branch name or glob pattern (e.g. 'main', 'release/*')."
              },
              "channel": {
                "oneOf": [
                  {
                    "type": "boolean",
                    "const": false,
                    "description": "Stable release (no pre-release suffix)."
                  },
                  {
                    "type": "string",
                    "description": "Pre-release channel name (e.g. 'beta', 'dev', 'rc')."
                  }
                ],
                "description": "false for stable releases, string for pre-release channel name.",
                "default": false
              },
              "prereleaseIdentifier": {
                "type": "string",
                "description": "Strategy for the pre-release identifier after the channel name.",
                "enum": [
                  "increment",
                  "timestamp",
                  "short-hash",
                  "timestamp-hash"
                ],
                "default": "increment"
              },
              "prerelease_identifier": {
                "type": "string",
                "description": "Snake_case form of `prereleaseIdentifier` — both spellings are accepted. Strategy for the pre-release identifier after the channel name.",
                "enum": [
                  "increment",
                  "timestamp",
                  "short-hash",
                  "timestamp-hash"
                ],
                "default": "increment"
              }
            },
            "additionalProperties": false
          }
        },
        "changelog": {
          "type": "object",
          "description": "Opt-in changelog rendering. When omitted, FerrFlow renders the classic three sections (Breaking Changes, Features, Bug Fixes) with flat bullets and no links.",
          "properties": {
            "sections": {
              "type": "object",
              "description": "Map commit-type prefixes to section labels, or false to hide. Keys: feat, fix, perf, docs, refactor, security. When omitted, defaults to feat -> Features and fix -> Bug Fixes (Breaking Changes always shown). 'security' applies to security: and fix(security): commits.",
              "additionalProperties": {
                "oneOf": [
                  {
                    "type": "string",
                    "description": "Section heading label for this commit type."
                  },
                  {
                    "type": "boolean",
                    "const": false,
                    "description": "Hide this commit type from the changelog."
                  }
                ]
              }
            },
            "groupByScope": {
              "type": "boolean",
              "description": "Group bullets by commit scope using an inline bold prefix (- **api:** add events endpoint). Scopeless commits render first.",
              "default": false
            },
            "includeCommitLinks": {
              "type": "boolean",
              "description": "Append a commit link to each bullet (([abc1234](<forge>/commit/abc1234))) when the forge is known. Silently omitted when the remote forge cannot be resolved.",
              "default": false
            },
            "includeCompareLink": {
              "type": "boolean",
              "description": "Emit a keep-a-changelog compare footer ([1.2.3]: <forge>/compare/v1.2.2...v1.2.3) when the forge is known and a previous tag exists.",
              "default": false
            },
            "group_by_scope": {
              "type": "boolean",
              "description": "Snake_case form of `groupByScope` — both spellings are accepted. Group bullets by commit scope using an inline bold prefix (- **api:** add events endpoint). Scopeless commits render first.",
              "default": false
            },
            "include_commit_links": {
              "type": "boolean",
              "description": "Snake_case form of `includeCommitLinks` — both spellings are accepted. Append a commit link to each bullet (([abc1234](<forge>/commit/abc1234))) when the forge is known. Silently omitted when the remote forge cannot be resolved.",
              "default": false
            },
            "include_compare_link": {
              "type": "boolean",
              "description": "Snake_case form of `includeCompareLink` — both spellings are accepted. Emit a keep-a-changelog compare footer ([1.2.3]: <forge>/compare/v1.2.2...v1.2.3) when the forge is known and a previous tag exists.",
              "default": false
            }
          },
          "additionalProperties": false
        },
        "tag_template": {
          "type": "string",
          "description": "Snake_case form of `tagTemplate` — both spellings are accepted. Tag template. Use {name} for package name and {version} for version. Default: 'v{version}' for single repos, '{name}@v{version}' for monorepos.",
          "examples": [
            "v{version}",
            "{name}@v{version}",
            "{name}/v{version}",
            "release-{version}"
          ]
        },
        "recover_missed_releases": {
          "type": "boolean",
          "description": "Snake_case form of `recoverMissedReleases` — both spellings are accepted. Compare files against the last tag instead of just the last commit, recovering missed releases in monorepos.",
          "default": false
        },
        "release_commit_mode": {
          "type": "string",
          "description": "Snake_case form of `releaseCommitMode` — both spellings are accepted. How to commit version bumps and changelog updates. 'commit' pushes directly to the branch, 'pr' creates a pull request, 'none' skips committing entirely.",
          "enum": [
            "commit",
            "pr",
            "none"
          ],
          "default": "commit"
        },
        "release_commit_scope": {
          "type": "string",
          "description": "Snake_case form of `releaseCommitScope` — both spellings are accepted. In monorepo mode, whether to create a single grouped commit for all packages or one commit per package. Only affects behavior when multiple packages are bumped.",
          "enum": [
            "grouped",
            "per-package"
          ],
          "default": "grouped"
        },
        "auto_merge_releases": {
          "type": "boolean",
          "description": "Snake_case form of `autoMergeReleases` — both spellings are accepted. Automatically merge release PRs when releaseCommitMode is 'pr'.",
          "default": true
        },
        "skip_ci": {
          "type": "boolean",
          "description": "Snake_case form of `skipCi` — both spellings are accepted. Append [skip ci] to the release commit message. Defaults to true in 'commit' mode, false in 'pr' mode."
        },
        "commit_skip_markers": {
          "type": "array",
          "description": "Snake_case form of `commitSkipMarkers` — both spellings are accepted. Markers in a commit subject line that cause FerrFlow to skip the commit when computing the next version. Matched case-insensitively, subject line only. Defaults to ['[skip ci]', '[ci skip]', '[no ci]', '[skip actions]', '[actions skip]'].",
          "items": {
            "type": "string"
          }
        },
        "floating_tags": {
          "type": "array",
          "description": "Snake_case form of `floatingTags` — both spellings are accepted. Floating tag levels to create/move on each release. Each level produces a tag pointing to the latest matching release (e.g. 'major' creates a v1 tag for v1.2.3).",
          "items": {
            "type": "string",
            "enum": [
              "major",
              "minor"
            ]
          },
          "default": []
        },
        "orphaned_tag_strategy": {
          "type": "string",
          "enum": [
            "warn",
            "treeHash",
            "message"
          ],
          "description": "Snake_case form of `orphanedTagStrategy` — both spellings are accepted. How to handle tags pointing to orphaned commits (after rebase + force-push). 'warn' logs a warning and skips. 'treeHash' attempts recovery by matching the commit's tree hash. 'message' attempts recovery by matching the commit message.",
          "default": "warn"
        },
        "defer_publish": {
          "type": "boolean",
          "description": "Snake_case form of `deferPublish` — both spellings are accepted. When true, `ferrflow release` does not run the configured publishers inline — it defers them to a separate `ferrflow publish` invocation (e.g. a CI job that carries the docker/helm/npm build toolchain the release job lacks). `ferrflow publish` always runs the publishers regardless of this flag.",
          "default": false
        },
        "update_dependents": {
          "type": "boolean",
          "description": "Snake_case form of `updateDependents` — both spellings are accepted. When true, after `ferrflow release` bumps a package, every dependent listed via `dependsOn` has its version constraint for that package rewritten to the new version in its own manifest, and the manifest is staged in the release commit. Only `json` (package.json) and `toml` (Cargo.toml) manifests are rewritten, and only plain operator + version constraints (`^1.2.3`, `~1.2.3`, `1.2.3`) — a `workspace:*`, `file:`/`git:` spec or a multi-part range is left untouched for a human to handle.",
          "default": false
        },
        "update_lockfiles": {
          "type": "boolean",
          "description": "Snake_case form of `updateLockfiles` — both spellings are accepted. When true, after `ferrflow release` bumps a manifest (Cargo.toml, package.json, pyproject.toml, Gemfile, mix.exs) it refreshes the sibling lockfile (Cargo.lock, package-lock.json / pnpm-lock.yaml / yarn.lock, poetry.lock / uv.lock, Gemfile.lock, mix.lock) with the package manager's offline / lockfile-only mode and stages it in the same release commit. A missing package manager or an unresolvable offline update is warned about, never fatal. Set per-package `updateLockfiles: false` to opt a single package out.",
          "default": false
        },
        "linked": {
          "type": "array",
          "description": "Groups of packages that share a version line when co-released. When any member of a group has a releasable commit, every member is bumped to the same version (the highest resulting version across the group). Package names stay distinct. Each inner array is one group and must list at least two package names; a package may appear in only one linked/fixed group.",
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "fixed": {
          "type": "array",
          "description": "Groups of packages locked to an identical version forever. Behaves like `linked`, but is intended for packages that must never diverge; `ferrflow validate` warns when a fixed group's versions have drifted apart. Each inner array is one group and must list at least two package names; a package may appear in only one linked/fixed group.",
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "additionalProperties": false
    },
    "package": {
      "type": "array",
      "description": "List of packages to version. Use one entry for single repos, multiple for monorepos.",
      "items": {
        "type": "object",
        "required": [
          "name",
          "path"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Package name, used in tags and changelog headers."
          },
          "path": {
            "type": "string",
            "description": "Path to the package root, relative to the repo root. Use \".\" for single repos."
          },
          "changelog": {
            "type": [
              "string",
              "null"
            ],
            "description": "Path to the changelog file, relative to the repo root."
          },
          "versionedFiles": {
            "type": "array",
            "description": "Files that contain the package version to update on release.",
            "items": {
              "type": "object",
              "required": [
                "path",
                "format"
              ],
              "properties": {
                "path": {
                  "type": "string",
                  "description": "Path to the version file, relative to the repo root."
                },
                "format": {
                  "type": "string",
                  "description": "File format used to locate and update the version field.",
                  "enum": [
                    "csproj",
                    "toml",
                    "json",
                    "xml",
                    "gradle",
                    "gomod",
                    "helm",
                    "chartyaml",
                    "pubspecyaml",
                    "mixexs",
                    "gemspec",
                    "packageswift",
                    "cabal",
                    "cmake",
                    "txt"
                  ]
                },
                "selector": {
                  "type": "string",
                  "description": "Optional selector to disambiguate which version is bumped. xml: a slash-delimited tag path like '/project/version' (or '//tag' for first-anywhere); txt: a regex with one capture group around the version. Without a selector, xml uses a Maven-aware default (first <version> direct child of root)."
                }
              },
              "additionalProperties": false
            }
          },
          "sharedPaths": {
            "type": "array",
            "description": "Paths whose changes should trigger a version bump for this package (monorepo only).",
            "items": {
              "type": "string"
            }
          },
          "dependsOn": {
            "type": "array",
            "description": "Packages this package depends on. When one is bumped, this package is bumped too — by default with the same bump type. Each entry is either a package name or an object with a `propagate` policy.",
            "items": {
              "oneOf": [
                { "type": "string" },
                {
                  "type": "object",
                  "required": ["name"],
                  "properties": {
                    "name": { "type": "string" },
                    "propagate": {
                      "type": "string",
                      "enum": ["same", "major-on-major", "patch", "none"],
                      "default": "same",
                      "description": "How this dependency's bump becomes a bump here. same: identical bump (a breaking upstream makes this package breaking too). major-on-major: major stays major, anything lower becomes a patch. patch: always a patch. none: no cascade from this dependency."
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "versioning": {
            "type": "string",
            "description": "Versioning strategy for this package. Overrides workspace default.",
            "enum": [
              "semver",
              "calver",
              "calver-short",
              "calver-seq",
              "sequential",
              "zerover"
            ]
          },
          "tagTemplate": {
            "type": "string",
            "description": "Tag template for this package. Use {name} for package name and {version} for version. Overrides workspace default.",
            "examples": [
              "v{version}",
              "{name}@v{version}",
              "{name}/v{version}",
              "release-{version}"
            ]
          },
          "floatingTags": {
            "type": "array",
            "description": "Floating tag levels for this package. Overrides workspace default.",
            "items": {
              "type": "string",
              "enum": [
                "major",
                "minor"
              ]
            }
          },
          "hooks": {
            "$ref": "#/$defs/hooks"
          },
          "publishers": {
            "type": "array",
            "description": "Declarative publish targets evaluated after the GitHub Release is created. Each entry is a self-contained intent — see $defs/publisher for the kinds.",
            "items": {
              "$ref": "#/$defs/publisher"
            },
            "default": []
          },
          "updateLockfiles": {
            "type": "boolean",
            "description": "Per-package override for workspace.updateLockfiles. Set false to skip lockfile refresh for this package even when the workspace default is on; set true to refresh only this package when the workspace default is off. Omit to inherit the workspace setting."
          },
          "versioned_files": {
            "type": "array",
            "description": "Snake_case form of `versionedFiles` — both spellings are accepted. Files that contain the package version to update on release.",
            "items": {
              "type": "object",
              "required": [
                "path",
                "format"
              ],
              "properties": {
                "path": {
                  "type": "string",
                  "description": "Path to the version file, relative to the repo root."
                },
                "format": {
                  "type": "string",
                  "description": "File format used to locate and update the version field.",
                  "enum": [
                    "csproj",
                    "toml",
                    "json",
                    "xml",
                    "gradle",
                    "gomod",
                    "helm",
                    "chartyaml",
                    "pubspecyaml",
                    "mixexs",
                    "gemspec",
                    "packageswift",
                    "txt"
                  ]
                },
                "selector": {
                  "type": "string",
                  "description": "Optional selector to disambiguate which version is bumped. xml: a slash-delimited tag path like '/project/version' (or '//tag' for first-anywhere); txt: a regex with one capture group around the version. Without a selector, xml uses a Maven-aware default (first <version> direct child of root)."
                }
              },
              "additionalProperties": false
            }
          },
          "shared_paths": {
            "type": "array",
            "description": "Snake_case form of `sharedPaths` — both spellings are accepted. Paths whose changes should trigger a version bump for this package (monorepo only).",
            "items": {
              "type": "string"
            }
          },
          "depends_on": {
            "type": "array",
            "description": "Snake_case form of `dependsOn` — both spellings are accepted. Packages this package depends on. When one is bumped, this package is bumped too — by default with the same bump type. Each entry is either a package name or an object with a `propagate` policy.",
            "items": {
              "oneOf": [
                { "type": "string" },
                {
                  "type": "object",
                  "required": ["name"],
                  "properties": {
                    "name": { "type": "string" },
                    "propagate": {
                      "type": "string",
                      "enum": ["same", "major-on-major", "patch", "none"],
                      "default": "same",
                      "description": "How this dependency's bump becomes a bump here. same: identical bump (a breaking upstream makes this package breaking too). major-on-major: major stays major, anything lower becomes a patch. patch: always a patch. none: no cascade from this dependency."
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "tag_template": {
            "type": "string",
            "description": "Snake_case form of `tagTemplate` — both spellings are accepted. Tag template for this package. Use {name} for package name and {version} for version. Overrides workspace default.",
            "examples": [
              "v{version}",
              "{name}@v{version}",
              "{name}/v{version}",
              "release-{version}"
            ]
          },
          "floating_tags": {
            "type": "array",
            "description": "Snake_case form of `floatingTags` — both spellings are accepted. Floating tag levels for this package. Overrides workspace default.",
            "items": {
              "type": "string",
              "enum": [
                "major",
                "minor"
              ]
            }
          },
          "update_lockfiles": {
            "type": "boolean",
            "description": "Snake_case form of `updateLockfiles` — both spellings are accepted. Per-package override for workspace.updateLockfiles. Set false to skip lockfile refresh for this package even when the workspace default is on; set true to refresh only this package when the workspace default is off. Omit to inherit the workspace setting."
          }
        },
        "additionalProperties": false
      }
    }
  },
  "$defs": {
    "publisher": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "kind"
          ],
          "properties": {
            "kind": {
              "const": "cargo"
            },
            "registry": {
              "type": "string"
            },
            "allowDirty": {
              "type": "boolean",
              "default": false
            },
            "noVerify": {
              "type": "boolean",
              "default": false,
              "description": "Pass cargo publish --no-verify. Set for multi-crate batch releases so inter-dependent crates don't fail on registry-index propagation timing."
            },
            "args": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Extra flags appended verbatim to the underlying cargo publish invocation. Escape hatch for options FerrFlow doesn't model natively.",
              "default": []
            },
            "allow_dirty": {
              "type": "boolean",
              "default": false,
              "description": "Snake_case form of `allowDirty` — both spellings are accepted."
            },
            "no_verify": {
              "type": "boolean",
              "default": false,
              "description": "Snake_case form of `noVerify` — both spellings are accepted. Pass cargo publish --no-verify. Set for multi-crate batch releases so inter-dependent crates don't fail on registry-index propagation timing."
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "kind"
          ],
          "properties": {
            "kind": {
              "const": "npm"
            },
            "registry": {
              "type": "string"
            },
            "tag": {
              "type": "string"
            },
            "access": {
              "type": "string",
              "enum": [
                "public",
                "restricted"
              ]
            },
            "args": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Extra flags appended verbatim to the underlying npm publish invocation. Escape hatch for options FerrFlow doesn't model natively.",
              "default": []
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "kind",
            "image"
          ],
          "properties": {
            "kind": {
              "const": "docker"
            },
            "image": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [
                "{version}"
              ]
            },
            "platforms": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "context": {
              "type": "string",
              "default": "."
            },
            "dockerfile": {
              "type": "string",
              "default": "Dockerfile"
            },
            "sign": {
              "type": "string",
              "enum": [
                "none",
                "sigstore"
              ],
              "default": "none"
            },
            "args": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Extra flags appended verbatim to the underlying docker buildx build invocation (before the build-context positional). Escape hatch for options FerrFlow doesn't model natively.",
              "default": []
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "kind",
            "registry"
          ],
          "properties": {
            "kind": {
              "const": "helm"
            },
            "chart": {
              "type": "string",
              "default": "."
            },
            "registry": {
              "type": "string"
            },
            "args": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Extra flags appended verbatim to the underlying helm push invocation. Escape hatch for options FerrFlow doesn't model natively.",
              "default": []
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "kind",
            "path"
          ],
          "properties": {
            "kind": {
              "const": "github-release-asset"
            },
            "path": {
              "type": "string"
            },
            "displayName": {
              "type": "string"
            },
            "args": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Extra flags appended verbatim to the underlying gh release upload invocation. Escape hatch for options FerrFlow doesn't model natively.",
              "default": []
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "kind",
            "url"
          ],
          "properties": {
            "kind": {
              "const": "webhook"
            },
            "url": {
              "type": "string"
            },
            "body": {},
            "headers": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "hooks": {
      "type": "object",
      "description": "Shell commands executed at lifecycle points during release.",
      "properties": {
        "preBump": {
          "type": "string",
          "description": "Run after bump calculation, before writing version files."
        },
        "postBump": {
          "type": "string",
          "description": "Run after writing version files, before changelog generation."
        },
        "preCommit": {
          "type": "string",
          "description": "Run after changelog generation, before git commit."
        },
        "postCommit": {
          "type": "string",
          "description": "Run after the release commit is created, before tagging."
        },
        "preTag": {
          "type": "string",
          "description": "Run after the release commit, immediately before git tag."
        },
        "postTag": {
          "type": "string",
          "description": "Run after tags are created, before push."
        },
        "prePublish": {
          "type": "string",
          "description": "Run after commit and tag, before push."
        },
        "postPublish": {
          "type": "string",
          "description": "Run after push and release creation."
        },
        "preRelease": {
          "type": "string",
          "description": "Run after the release pull request is opened (PR mode), before merge."
        },
        "onSuccess": {
          "type": "string",
          "description": "Run once after the release completes successfully."
        },
        "onError": {
          "type": "string",
          "description": "Run once when the release fails; receives FERRFLOW_ERROR_CODE."
        },
        "onFailure": {
          "type": "string",
          "description": "Behavior when a hook exits non-zero.",
          "enum": [
            "abort",
            "continue"
          ],
          "default": "abort"
        },
        "pre_bump": {
          "type": "string",
          "description": "Snake_case form of `preBump` — both spellings are accepted. Run after bump calculation, before writing version files."
        },
        "post_bump": {
          "type": "string",
          "description": "Snake_case form of `postBump` — both spellings are accepted. Run after writing version files, before changelog generation."
        },
        "pre_commit": {
          "type": "string",
          "description": "Snake_case form of `preCommit` — both spellings are accepted. Run after changelog generation, before git commit."
        },
        "post_commit": {
          "type": "string",
          "description": "Snake_case form of `postCommit` — both spellings are accepted. Run after the release commit is created, before tagging."
        },
        "pre_tag": {
          "type": "string",
          "description": "Snake_case form of `preTag` — both spellings are accepted. Run after the release commit, immediately before git tag."
        },
        "post_tag": {
          "type": "string",
          "description": "Snake_case form of `postTag` — both spellings are accepted. Run after tags are created, before push."
        },
        "pre_publish": {
          "type": "string",
          "description": "Snake_case form of `prePublish` — both spellings are accepted. Run after commit and tag, before push."
        },
        "post_publish": {
          "type": "string",
          "description": "Snake_case form of `postPublish` — both spellings are accepted. Run after push and release creation."
        },
        "pre_release": {
          "type": "string",
          "description": "Snake_case form of `preRelease` — both spellings are accepted. Run after the release pull request is opened (PR mode), before merge."
        },
        "on_success": {
          "type": "string",
          "description": "Snake_case form of `onSuccess` — both spellings are accepted. Run once after the release completes successfully."
        },
        "on_error": {
          "type": "string",
          "description": "Snake_case form of `onError` — both spellings are accepted. Run once when the release fails; receives FERRFLOW_ERROR_CODE."
        },
        "on_failure": {
          "type": "string",
          "description": "Snake_case form of `onFailure` — both spellings are accepted. Behavior when a hook exits non-zero.",
          "enum": [
            "abort",
            "continue"
          ],
          "default": "abort"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}