@sumrco/cli 0.4.5 → 0.4.7
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/ARTIFACT-MANIFEST.json +3 -3
- package/THIRD_PARTY_NOTICES.md +231 -9
- package/ai/modules/kontract/resources/authoring/configuration.rf.md +37 -0
- package/ai/modules/kontract/resources/authoring/contract-copy.rf.md +92 -0
- package/ai/modules/kontract/resources/authoring/design-profile/overview.md +2 -1
- package/ai/modules/kontract/resources/authoring/overview.md +10 -7
- package/ai/modules/kontract/resources/authoring/spec-layout.rf.md +6 -27
- package/ai/modules/kontract/resources/authoring/team-members/spec-author.tm.md +15 -14
- package/ai/modules/kontract/resources/authoring/workflows/spec-change.cmd.md +29 -21
- package/ai/modules/kontract/resources/generated-output.rf.md +60 -0
- package/ai/modules/kontract/resources/overview.md +10 -9
- package/ai/modules/kontract/sumr.module.yaml +1 -1
- package/ai/modules/mission/resources/flow-actions.rf.md +1 -0
- package/ai/modules/mission/resources/flow-config.rf.md +1 -0
- package/ai/modules/mission/resources/flow-safety-boundaries.rf.md +1 -0
- package/ai/modules/mission/resources/overview.md +3 -1
- package/ai/modules/mission/resources/stage-closeout.rf.md +1 -0
- package/ai/modules/mission/resources/stage-delivery.rf.md +1 -0
- package/ai/modules/mission/resources/stage-intake.rf.md +1 -0
- package/ai/modules/mission/resources/stage-planning.rf.md +1 -0
- package/ai/modules/mission/resources/stage-pull-request.rf.md +1 -0
- package/ai/modules/mission/resources/stage-quality.rf.md +1 -0
- package/ai/modules/mission/resources/workflows/pr-assist.cmd.md +2 -1
- package/ai/modules/mission/sumr.module.yaml +1 -1
- package/ai/modules/playbook/resources/authoring/cross-referencing.rf.md +11 -8
- package/ai/modules/playbook/resources/authoring/descriptions.rf.md +3 -3
- package/ai/modules/playbook/resources/authoring/folder-structure.rf.md +2 -2
- package/ai/modules/playbook/resources/authoring/frontmatter.rf.md +73 -33
- package/ai/modules/playbook/resources/authoring/lifecycle-hooks.rf.md +1 -1
- package/ai/modules/playbook/resources/authoring/markdown.rf.md +2 -1
- package/ai/modules/playbook/resources/authoring/overview.md +14 -6
- package/ai/modules/playbook/resources/team-members/technical-writer.tm.md +1 -1
- package/ai/modules/playbook/sumr.module.yaml +1 -4
- package/bin/sumr +6 -1
- package/index.js +2060 -2000
- package/package.json +2 -2
- package/sbom.cdx.json +1156 -123
package/ARTIFACT-MANIFEST.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"files": [
|
|
4
4
|
{
|
|
5
5
|
"file": "index.js",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "107fefc181862166c130ef694f85df691ccf5703d7787930d566033fd675811d"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"file": "THIRD_PARTY_NOTICES.md",
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "6bdc3c641aa3eb79791e25e9d0e80180af63634e151cf2614444602fb428d0cc"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"file": "sbom.cdx.json",
|
|
14
|
-
"sha256": "
|
|
14
|
+
"sha256": "180b1081b0b78dd48edc1201894e1e41f0e20c6cfb45ccb881243c8d4412d219"
|
|
15
15
|
}
|
|
16
16
|
],
|
|
17
17
|
"schemaVersion": 1
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -152,19 +152,19 @@ Evidence: Bun metafile input
|
|
|
152
152
|
License: Apache-2.0
|
|
153
153
|
Source: https://github.com/stoplightio/path
|
|
154
154
|
|
|
155
|
-
## @stoplight/spectral-core 1.
|
|
155
|
+
## @stoplight/spectral-core 1.24.0
|
|
156
156
|
|
|
157
157
|
Evidence: Bun metafile input
|
|
158
158
|
License: Apache-2.0
|
|
159
159
|
Source: https://github.com/stoplightio/spectral
|
|
160
160
|
|
|
161
|
-
## @stoplight/spectral-formats 1.
|
|
161
|
+
## @stoplight/spectral-formats 1.9.0
|
|
162
162
|
|
|
163
163
|
Evidence: Bun metafile input
|
|
164
164
|
License: Apache-2.0
|
|
165
165
|
Source: https://github.com/stoplightio/spectral
|
|
166
166
|
|
|
167
|
-
## @stoplight/spectral-functions 1.
|
|
167
|
+
## @stoplight/spectral-functions 1.11.0
|
|
168
168
|
|
|
169
169
|
Evidence: Bun metafile input
|
|
170
170
|
License: Apache-2.0
|
|
@@ -218,6 +218,12 @@ Evidence: Bun metafile input
|
|
|
218
218
|
License: Apache-2.0
|
|
219
219
|
Source: https://github.com/stoplightio/yaml-ast-parser.git
|
|
220
220
|
|
|
221
|
+
## @types/debug 4.1.13
|
|
222
|
+
|
|
223
|
+
Evidence: Declared required dependency closure
|
|
224
|
+
License: MIT
|
|
225
|
+
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
226
|
+
|
|
221
227
|
## @types/es-aggregate-error 1.0.6
|
|
222
228
|
|
|
223
229
|
Evidence: Declared required dependency closure
|
|
@@ -230,19 +236,37 @@ Evidence: Declared required dependency closure
|
|
|
230
236
|
License: MIT
|
|
231
237
|
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
232
238
|
|
|
239
|
+
## @types/mdast 4.0.4
|
|
240
|
+
|
|
241
|
+
Evidence: Declared required dependency closure
|
|
242
|
+
License: MIT
|
|
243
|
+
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
244
|
+
|
|
245
|
+
## @types/ms 2.1.0
|
|
246
|
+
|
|
247
|
+
Evidence: Declared required dependency closure
|
|
248
|
+
License: MIT
|
|
249
|
+
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
250
|
+
|
|
233
251
|
## @types/node 25.5.0
|
|
234
252
|
|
|
235
253
|
Evidence: Declared required dependency closure
|
|
236
254
|
License: MIT
|
|
237
255
|
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
238
256
|
|
|
257
|
+
## @types/unist 3.0.3
|
|
258
|
+
|
|
259
|
+
Evidence: Declared required dependency closure
|
|
260
|
+
License: MIT
|
|
261
|
+
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
262
|
+
|
|
239
263
|
## @types/urijs 1.19.26
|
|
240
264
|
|
|
241
265
|
Evidence: Declared required dependency closure
|
|
242
266
|
License: MIT
|
|
243
267
|
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
244
268
|
|
|
245
|
-
## @ungap/structured-clone 1.
|
|
269
|
+
## @ungap/structured-clone 1.4.0
|
|
246
270
|
|
|
247
271
|
Evidence: Declared required dependency closure
|
|
248
272
|
License: ISC
|
|
@@ -320,7 +344,7 @@ Evidence: Declared required dependency closure
|
|
|
320
344
|
License: MIT
|
|
321
345
|
Source: git://github.com/juliangruber/balanced-match.git
|
|
322
346
|
|
|
323
|
-
## brace-expansion 5.0.
|
|
347
|
+
## brace-expansion 5.0.12
|
|
324
348
|
|
|
325
349
|
Evidence: Declared required dependency closure
|
|
326
350
|
License: MIT
|
|
@@ -356,6 +380,12 @@ Evidence: Bun metafile input
|
|
|
356
380
|
License: MIT
|
|
357
381
|
Source: git://github.com/blakeembrey/change-case.git
|
|
358
382
|
|
|
383
|
+
## character-entities 2.0.2
|
|
384
|
+
|
|
385
|
+
Evidence: Bun metafile input
|
|
386
|
+
License: MIT
|
|
387
|
+
Source: wooorm/character-entities
|
|
388
|
+
|
|
359
389
|
## colorette 1.4.0
|
|
360
390
|
|
|
361
391
|
Evidence: Bun metafile input
|
|
@@ -380,6 +410,18 @@ Evidence: Declared required dependency closure
|
|
|
380
410
|
License: MIT
|
|
381
411
|
Source: git+https://github.com/inspect-js/data-view-byte-offset.git
|
|
382
412
|
|
|
413
|
+
## debug 4.4.3
|
|
414
|
+
|
|
415
|
+
Evidence: Declared required dependency closure
|
|
416
|
+
License: MIT
|
|
417
|
+
Source: git://github.com/debug-js/debug.git
|
|
418
|
+
|
|
419
|
+
## decode-named-character-reference 1.3.0
|
|
420
|
+
|
|
421
|
+
Evidence: Bun metafile input
|
|
422
|
+
License: MIT
|
|
423
|
+
Source: wooorm/decode-named-character-reference
|
|
424
|
+
|
|
383
425
|
## define-data-property 1.1.4
|
|
384
426
|
|
|
385
427
|
Evidence: Bun metafile input
|
|
@@ -398,12 +440,30 @@ Evidence: Bun metafile input
|
|
|
398
440
|
License: MIT
|
|
399
441
|
Source: git://github.com/jriecken/dependency-graph.git
|
|
400
442
|
|
|
443
|
+
## dequal 2.0.3
|
|
444
|
+
|
|
445
|
+
Evidence: Declared required dependency closure
|
|
446
|
+
License: MIT
|
|
447
|
+
Source: lukeed/dequal
|
|
448
|
+
|
|
449
|
+
## devlop 1.1.0
|
|
450
|
+
|
|
451
|
+
Evidence: Declared required dependency closure
|
|
452
|
+
License: MIT
|
|
453
|
+
Source: wooorm/devlop
|
|
454
|
+
|
|
401
455
|
## dunder-proto 1.0.1
|
|
402
456
|
|
|
403
457
|
Evidence: Bun metafile input
|
|
404
458
|
License: MIT
|
|
405
459
|
Source: git+https://github.com/es-shims/dunder-proto.git
|
|
406
460
|
|
|
461
|
+
## entities 8.1.0
|
|
462
|
+
|
|
463
|
+
Evidence: Bun metafile input
|
|
464
|
+
License: BSD-2-Clause
|
|
465
|
+
Source: https://github.com/fb55/entities.git
|
|
466
|
+
|
|
407
467
|
## es-abstract 1.24.2
|
|
408
468
|
|
|
409
469
|
Evidence: Bun metafile input
|
|
@@ -482,7 +542,7 @@ Evidence: Bun metafile input
|
|
|
482
542
|
License: MIT
|
|
483
543
|
Source: github:fabiospampinato/fast-string-width
|
|
484
544
|
|
|
485
|
-
## fast-uri 3.1.
|
|
545
|
+
## fast-uri 3.1.8
|
|
486
546
|
|
|
487
547
|
Evidence: Bun metafile input
|
|
488
548
|
License: BSD-3-Clause
|
|
@@ -746,7 +806,7 @@ Evidence: Bun metafile input
|
|
|
746
806
|
License: MIT
|
|
747
807
|
Source: gustf/js-levenshtein
|
|
748
808
|
|
|
749
|
-
## js-yaml 4.3.
|
|
809
|
+
## js-yaml 4.3.2
|
|
750
810
|
|
|
751
811
|
Evidence: Bun metafile input
|
|
752
812
|
License: MIT
|
|
@@ -818,12 +878,162 @@ Evidence: Bun metafile input
|
|
|
818
878
|
License: MIT
|
|
819
879
|
Source: git+https://github.com/es-shims/math-intrinsics.git
|
|
820
880
|
|
|
881
|
+
## mdast-util-from-markdown 2.0.3
|
|
882
|
+
|
|
883
|
+
Evidence: Bun metafile input
|
|
884
|
+
License: MIT
|
|
885
|
+
Source: syntax-tree/mdast-util-from-markdown
|
|
886
|
+
|
|
887
|
+
## mdast-util-to-string 4.0.0
|
|
888
|
+
|
|
889
|
+
Evidence: Bun metafile input
|
|
890
|
+
License: MIT
|
|
891
|
+
Source: syntax-tree/mdast-util-to-string
|
|
892
|
+
|
|
893
|
+
## micromark 4.0.2
|
|
894
|
+
|
|
895
|
+
Evidence: Bun metafile input
|
|
896
|
+
License: MIT
|
|
897
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark
|
|
898
|
+
|
|
899
|
+
## micromark-core-commonmark 2.0.4
|
|
900
|
+
|
|
901
|
+
Evidence: Bun metafile input
|
|
902
|
+
License: MIT
|
|
903
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-core-commonmark
|
|
904
|
+
|
|
905
|
+
## micromark-factory-destination 2.0.1
|
|
906
|
+
|
|
907
|
+
Evidence: Bun metafile input
|
|
908
|
+
License: MIT
|
|
909
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-destination
|
|
910
|
+
|
|
911
|
+
## micromark-factory-label 2.0.1
|
|
912
|
+
|
|
913
|
+
Evidence: Bun metafile input
|
|
914
|
+
License: MIT
|
|
915
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-label
|
|
916
|
+
|
|
917
|
+
## micromark-factory-space 2.1.0
|
|
918
|
+
|
|
919
|
+
Evidence: Bun metafile input
|
|
920
|
+
License: MIT
|
|
921
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-space
|
|
922
|
+
|
|
923
|
+
## micromark-factory-title 2.0.1
|
|
924
|
+
|
|
925
|
+
Evidence: Bun metafile input
|
|
926
|
+
License: MIT
|
|
927
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-title
|
|
928
|
+
|
|
929
|
+
## micromark-factory-whitespace 2.0.1
|
|
930
|
+
|
|
931
|
+
Evidence: Bun metafile input
|
|
932
|
+
License: MIT
|
|
933
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-factory-whitespace
|
|
934
|
+
|
|
935
|
+
## micromark-util-character 2.1.1
|
|
936
|
+
|
|
937
|
+
Evidence: Bun metafile input
|
|
938
|
+
License: MIT
|
|
939
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character
|
|
940
|
+
|
|
941
|
+
## micromark-util-chunked 2.0.1
|
|
942
|
+
|
|
943
|
+
Evidence: Bun metafile input
|
|
944
|
+
License: MIT
|
|
945
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-chunked
|
|
946
|
+
|
|
947
|
+
## micromark-util-classify-character 2.0.1
|
|
948
|
+
|
|
949
|
+
Evidence: Bun metafile input
|
|
950
|
+
License: MIT
|
|
951
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-classify-character
|
|
952
|
+
|
|
953
|
+
## micromark-util-combine-extensions 2.0.1
|
|
954
|
+
|
|
955
|
+
Evidence: Bun metafile input
|
|
956
|
+
License: MIT
|
|
957
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-combine-extensions
|
|
958
|
+
|
|
959
|
+
## micromark-util-decode-numeric-character-reference 2.0.2
|
|
960
|
+
|
|
961
|
+
Evidence: Bun metafile input
|
|
962
|
+
License: MIT
|
|
963
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-decode-numeric-character-reference
|
|
964
|
+
|
|
965
|
+
## micromark-util-decode-string 2.0.1
|
|
966
|
+
|
|
967
|
+
Evidence: Bun metafile input
|
|
968
|
+
License: MIT
|
|
969
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-decode-string
|
|
970
|
+
|
|
971
|
+
## micromark-util-edit-map 1.0.0
|
|
972
|
+
|
|
973
|
+
Evidence: Bun metafile input
|
|
974
|
+
License: MIT
|
|
975
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-edit-map
|
|
976
|
+
|
|
977
|
+
## micromark-util-encode 2.0.1
|
|
978
|
+
|
|
979
|
+
Evidence: Declared required dependency closure
|
|
980
|
+
License: MIT
|
|
981
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-encode
|
|
982
|
+
|
|
983
|
+
## micromark-util-html-tag-name 2.0.1
|
|
984
|
+
|
|
985
|
+
Evidence: Bun metafile input
|
|
986
|
+
License: MIT
|
|
987
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-html-tag-name
|
|
988
|
+
|
|
989
|
+
## micromark-util-normalize-identifier 2.0.1
|
|
990
|
+
|
|
991
|
+
Evidence: Bun metafile input
|
|
992
|
+
License: MIT
|
|
993
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-normalize-identifier
|
|
994
|
+
|
|
995
|
+
## micromark-util-resolve-all 2.0.1
|
|
996
|
+
|
|
997
|
+
Evidence: Bun metafile input
|
|
998
|
+
License: MIT
|
|
999
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-resolve-all
|
|
1000
|
+
|
|
1001
|
+
## micromark-util-sanitize-uri 2.0.1
|
|
1002
|
+
|
|
1003
|
+
Evidence: Declared required dependency closure
|
|
1004
|
+
License: MIT
|
|
1005
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-sanitize-uri
|
|
1006
|
+
|
|
1007
|
+
## micromark-util-subtokenize 2.1.0
|
|
1008
|
+
|
|
1009
|
+
Evidence: Bun metafile input
|
|
1010
|
+
License: MIT
|
|
1011
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-subtokenize
|
|
1012
|
+
|
|
1013
|
+
## micromark-util-symbol 2.0.1
|
|
1014
|
+
|
|
1015
|
+
Evidence: Declared required dependency closure
|
|
1016
|
+
License: MIT
|
|
1017
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-symbol
|
|
1018
|
+
|
|
1019
|
+
## micromark-util-types 2.0.3
|
|
1020
|
+
|
|
1021
|
+
Evidence: Declared required dependency closure
|
|
1022
|
+
License: MIT
|
|
1023
|
+
Source: https://github.com/micromark/micromark/tree/main/packages/micromark-util-types
|
|
1024
|
+
|
|
821
1025
|
## minimatch 3.1.5
|
|
822
1026
|
|
|
823
1027
|
Evidence: Bun metafile input
|
|
824
1028
|
License: ISC
|
|
825
1029
|
Source: git://github.com/isaacs/minimatch.git
|
|
826
1030
|
|
|
1031
|
+
## ms 2.1.3
|
|
1032
|
+
|
|
1033
|
+
Evidence: Declared required dependency closure
|
|
1034
|
+
License: MIT
|
|
1035
|
+
Source: vercel/ms
|
|
1036
|
+
|
|
827
1037
|
## nimma 0.2.3
|
|
828
1038
|
|
|
829
1039
|
Evidence: Bun metafile input
|
|
@@ -866,6 +1076,12 @@ Evidence: Declared required dependency closure
|
|
|
866
1076
|
License: MIT
|
|
867
1077
|
Source: git+https://github.com/ljharb/own-keys.git
|
|
868
1078
|
|
|
1079
|
+
## parse5 8.0.1
|
|
1080
|
+
|
|
1081
|
+
Evidence: Bun metafile input
|
|
1082
|
+
License: MIT
|
|
1083
|
+
Source: git://github.com/inikulin/parse5.git
|
|
1084
|
+
|
|
869
1085
|
## picomatch 4.0.4
|
|
870
1086
|
|
|
871
1087
|
Evidence: Bun metafile input
|
|
@@ -1040,7 +1256,7 @@ Evidence: Declared required dependency closure
|
|
|
1040
1256
|
License: MIT
|
|
1041
1257
|
Source: git+https://github.com/inspect-js/typed-array-byte-length.git
|
|
1042
1258
|
|
|
1043
|
-
## typed-array-byte-offset 1.0.
|
|
1259
|
+
## typed-array-byte-offset 1.0.5
|
|
1044
1260
|
|
|
1045
1261
|
Evidence: Declared required dependency closure
|
|
1046
1262
|
License: MIT
|
|
@@ -1064,6 +1280,12 @@ Evidence: Declared required dependency closure
|
|
|
1064
1280
|
License: MIT
|
|
1065
1281
|
Source: git+https://github.com/nodejs/undici.git
|
|
1066
1282
|
|
|
1283
|
+
## unist-util-stringify-position 4.0.0
|
|
1284
|
+
|
|
1285
|
+
Evidence: Bun metafile input
|
|
1286
|
+
License: MIT
|
|
1287
|
+
Source: syntax-tree/unist-util-stringify-position
|
|
1288
|
+
|
|
1067
1289
|
## urijs 1.19.11
|
|
1068
1290
|
|
|
1069
1291
|
Evidence: Bun metafile input
|
|
@@ -1106,7 +1328,7 @@ Evidence: Declared required dependency closure
|
|
|
1106
1328
|
License: MIT
|
|
1107
1329
|
Source: git+https://github.com/inspect-js/which-collection.git
|
|
1108
1330
|
|
|
1109
|
-
## which-typed-array 1.1.
|
|
1331
|
+
## which-typed-array 1.1.24
|
|
1110
1332
|
|
|
1111
1333
|
Evidence: Declared required dependency closure
|
|
1112
1334
|
License: MIT
|
|
@@ -116,6 +116,7 @@ Use `--target <name>` to scope generation to one target.
|
|
|
116
116
|
| Client/SDK | `typescript-axios` | TypeScript axios SDK. |
|
|
117
117
|
| Client/SDK | `typescript-angular` | Angular SDK. |
|
|
118
118
|
| Model | `typescript-models` | Framework-model-only output. |
|
|
119
|
+
| Runtime schema | `typescript-effect` | Directional Effect 3 schemas plus explicit encoded and decoded TypeScript types. |
|
|
119
120
|
| Framework adapter/SDK | `react-query-hooks` | Validated Fetch SDK, deterministic TanStack Query keys/options, and optional direct hooks. |
|
|
120
121
|
|
|
121
122
|
Kontract is structured for more generator targets over time: runtime evidence,
|
|
@@ -152,6 +153,42 @@ Use `asyncapi-nats` when the consumer also needs the NATS subject,
|
|
|
152
153
|
request/reply, client, and server adapter artifacts. `prefix` is NATS-specific
|
|
153
154
|
and is rejected on `asyncapi-models`.
|
|
154
155
|
|
|
156
|
+
## `typescript-effect`
|
|
157
|
+
|
|
158
|
+
Use the Effect target when a consumer needs runtime-authoritative schemas and
|
|
159
|
+
typed parse failures without a generated transport client:
|
|
160
|
+
|
|
161
|
+
```yaml
|
|
162
|
+
generator:
|
|
163
|
+
type: typescript-effect
|
|
164
|
+
effectMajor: 3
|
|
165
|
+
schemaMode: strict
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
`effectMajor` defaults to `3`; this release rejects other majors. The generated
|
|
169
|
+
consumer package must declare a compatible direct `effect` dependency.
|
|
170
|
+
Kontract itself does not depend on Effect, and generated files import
|
|
171
|
+
`effect/Schema`, never the deprecated `@effect/schema` package.
|
|
172
|
+
|
|
173
|
+
Each symmetric component emits `schemas/<name>.schema.ts` with `${Name}Schema`,
|
|
174
|
+
`${Name}`, and `${Name}Encoded`. A component emits the additional input/output
|
|
175
|
+
schema and type names only when `readOnly` or `writeOnly` makes the two
|
|
176
|
+
directions different. Input schemas exclude `readOnly` properties; output
|
|
177
|
+
schemas exclude `writeOnly` properties. Dates, date-times, money strings, and
|
|
178
|
+
other authored wire values stay in their wire representation; the target does
|
|
179
|
+
not add implicit transformations.
|
|
180
|
+
|
|
181
|
+
The target supports `audiences.exclude`, `schemaMode`, fixed tuples, nested
|
|
182
|
+
nullable values, schema defaults, deprecation metadata, and explicit unknown
|
|
183
|
+
catch-alls. It rejects `audiences.marker`, Zod/client options, null-only
|
|
184
|
+
schemas, open-ended tuples, named fields combined with a typed catch-all, and
|
|
185
|
+
constraints it cannot preserve. Those failures occur before generated output
|
|
186
|
+
is written. `schemaMode` defaults to `strict` for this target.
|
|
187
|
+
|
|
188
|
+
No HTTP client is generated. Applications compose the schemas with their own
|
|
189
|
+
Effect transport/application boundary. An Effect-native client is a separate
|
|
190
|
+
future decision, not an alias or wrapper around the Promise SDK targets.
|
|
191
|
+
|
|
155
192
|
## `typescript-nestjs` options
|
|
156
193
|
|
|
157
194
|
| Option | Output |
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: reference
|
|
3
|
+
name: contract-copy
|
|
4
|
+
title: API and Async Contract Copy
|
|
5
|
+
description: "Public and developer-facing OpenAPI and AsyncAPI titles, summaries, descriptions, and implementation-detail boundaries."
|
|
6
|
+
label: Contract Copy
|
|
7
|
+
when: Writing or reviewing operation, parameter, response, schema, channel, message, or API-info copy
|
|
8
|
+
order: 14
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# API and Async Contract Copy
|
|
12
|
+
|
|
13
|
+
Text authored in an API or async schema is part of the contract. It can appear
|
|
14
|
+
in API references, generated SDK documentation, editor tooling, and AI answers,
|
|
15
|
+
so readers must be able to understand the behavior without guessing from an
|
|
16
|
+
identifier, route, or channel.
|
|
17
|
+
|
|
18
|
+
Use the repository's copywriter role to review new or changed public and
|
|
19
|
+
developer-facing contract text before validation and generation. When that
|
|
20
|
+
role is unavailable, the active reviewer applies this reference and the
|
|
21
|
+
repository's general microcopy guidance directly. This reference covers only
|
|
22
|
+
contract-field semantics.
|
|
23
|
+
|
|
24
|
+
## Contract fields
|
|
25
|
+
|
|
26
|
+
Review these fields when they are present:
|
|
27
|
+
|
|
28
|
+
- API `info.title` and `info.description`;
|
|
29
|
+
- API operation `summary` and `description`;
|
|
30
|
+
- API parameter, request-body, and response descriptions, plus schema and
|
|
31
|
+
property titles and descriptions;
|
|
32
|
+
- async schema `info.title` and `info.description`;
|
|
33
|
+
- async schema channel and operation titles, summaries, and descriptions;
|
|
34
|
+
- async schema message titles, summaries, and descriptions;
|
|
35
|
+
- async schema and property titles and descriptions.
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
|
|
39
|
+
- Every API and async schema operation MUST have a concise `summary` that names
|
|
40
|
+
the action, query, command, or event.
|
|
41
|
+
- Add `description` only when it contributes information the summary does not:
|
|
42
|
+
meaning, outcome, audience, permissions, side effects, constraints, caller
|
|
43
|
+
context, or message semantics.
|
|
44
|
+
- Describe schemas and properties in terms of their product meaning and
|
|
45
|
+
caller-visible invariants. Do not restate the schema key or property name.
|
|
46
|
+
- Do not repeat a visible label, tag, route, channel, operation identifier,
|
|
47
|
+
message identifier, or title in sentence form.
|
|
48
|
+
- Keep generator, framework, storage, and transport details out of contract
|
|
49
|
+
copy unless the intended reader needs that detail to use the contract
|
|
50
|
+
correctly.
|
|
51
|
+
- Do not add prose merely to populate an optional field. Omit a description
|
|
52
|
+
when the summary or name already communicates the complete meaning.
|
|
53
|
+
|
|
54
|
+
<!-- extract:examples -->
|
|
55
|
+
## Summary and description examples
|
|
56
|
+
|
|
57
|
+
### ❌ Avoid: the description echoes the summary
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
operationId: listItems
|
|
61
|
+
summary: List items
|
|
62
|
+
description: Lists items.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Why: the description adds no meaning.
|
|
66
|
+
|
|
67
|
+
### ✅ Prefer: the description adds an authorization boundary
|
|
68
|
+
|
|
69
|
+
```yaml
|
|
70
|
+
operationId: listItems
|
|
71
|
+
summary: List items
|
|
72
|
+
description: Returns the items the caller is permitted to view.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Why: the description explains which items the caller receives.
|
|
76
|
+
<!-- /extract:examples -->
|
|
77
|
+
|
|
78
|
+
## Source-to-output discipline
|
|
79
|
+
|
|
80
|
+
Contract copy starts in the source YAML and follows the same lifecycle as every
|
|
81
|
+
other contract change:
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
source YAML -> copy review -> validate -> generate -> review generated diff
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- Change `*.api.yml`, `*.api.yaml`, `*.async.yml`, or `*.async.yaml` first.
|
|
88
|
+
- Run `sumr kontract validate` before generation.
|
|
89
|
+
- Run `sumr kontract generate`, then review every generated metadata and
|
|
90
|
+
documentation change for the intended wording.
|
|
91
|
+
- NEVER patch generated contracts, SDK documentation, metadata, or AI output to
|
|
92
|
+
correct copy. Fix the owning YAML and regenerate.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
category: how-to:concept
|
|
2
3
|
name: design-profile
|
|
3
4
|
title: Contract Design Profile
|
|
4
|
-
description: "How Kontract profile values guide HTTP, async schema, and schema directory examples without changing generation."
|
|
5
|
+
description: "How Kontract profile values guide HTTP, async schema, and schema directory examples without changing generation. Use when configuring or reviewing guidance profiles and schema layout examples."
|
|
5
6
|
tags: [kontract, design-profile, http, asyncapi, schema-layout]
|
|
6
7
|
---
|
|
7
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
category: how-to:concept
|
|
2
3
|
name: authoring
|
|
3
4
|
title: Spec Authoring
|
|
4
|
-
description: "How Kontract spec authors
|
|
5
|
+
description: "How Kontract spec authors configure guidance, organize specs, reuse schemas, and change API or async schema files safely. Use when creating, moving, reviewing, or refactoring Kontract source specs."
|
|
5
6
|
tags: [kontract, authoring, api, async, schema-layout, contracts]
|
|
6
7
|
---
|
|
7
8
|
|
|
@@ -24,11 +25,13 @@ Start here before proposing schema files or folder moves:
|
|
|
24
25
|
3. Use the contract design profile to align API paths, async schema channels, and
|
|
25
26
|
schema folder examples with the selected styles.
|
|
26
27
|
4. Use the spec layout rules before creating or moving API/async roots.
|
|
27
|
-
5. Use
|
|
28
|
+
5. Use contract copy guidance for public or developer-facing titles,
|
|
29
|
+
summaries, descriptions, parameters, responses, schemas, and messages.
|
|
30
|
+
6. Use schema reuse guidance before adding new payloads, envelopes, errors,
|
|
28
31
|
pagination, scalar constraints, schedules, or config objects.
|
|
29
|
-
|
|
32
|
+
7. Use scope and splitting guidance before expanding a large spec or proposing a
|
|
30
33
|
folder migration.
|
|
31
|
-
|
|
34
|
+
8. Run the spec-change workflow when a spec change must be validated,
|
|
32
35
|
generated, and reviewed.
|
|
33
36
|
|
|
34
37
|
## Non-negotiables
|
|
@@ -48,9 +51,9 @@ Start here before proposing schema files or folder moves:
|
|
|
48
51
|
capability-local `shared/` folder only when multiple surfaces in that
|
|
49
52
|
capability reuse the same product concept; promote to `schema/shared/` only
|
|
50
53
|
when multiple capabilities share the same meaning.
|
|
51
|
-
-
|
|
52
|
-
`summary
|
|
53
|
-
|
|
54
|
+
- Follow the Contract Copy reference: every API schema and async schema
|
|
55
|
+
operation must include a concise `summary`, while `description` is used only
|
|
56
|
+
when it adds information.
|
|
54
57
|
- Separate the three protocol scenarios: API-only, async-only, and
|
|
55
58
|
API + async. When both protocols exist, keep protocol-specific layers
|
|
56
59
|
separate and share only components with identical meaning, especially
|
|
@@ -106,10 +106,8 @@ schema/
|
|
|
106
106
|
- The async contract namespace comes from the async schema `info.title`, not the filename —
|
|
107
107
|
set `info.title` deliberately.
|
|
108
108
|
- Multi-file specs are bundled automatically; keep `$ref` paths repo-relative.
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
permissions, side effects, constraints, or message semantics beyond the
|
|
112
|
-
summary.
|
|
109
|
+
- Apply the Contract Copy reference to API and async schema titles, summaries,
|
|
110
|
+
descriptions, parameters, responses, schemas, and messages.
|
|
113
111
|
|
|
114
112
|
## Protocol scenarios
|
|
115
113
|
|
|
@@ -458,15 +456,10 @@ Share only business payload shapes.
|
|
|
458
456
|
- Put reusable HTTP payloads in `components.schemas`.
|
|
459
457
|
- Operation request/response schemas should reference components with `$ref`.
|
|
460
458
|
Inline operation schemas are rejected so generated DTO/model names stay stable.
|
|
461
|
-
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
- Avoid tag echo. If the API docs already show a tag such as `Playbook` or
|
|
466
|
-
`Accounts`, omit that word from the summary unless the operation would become
|
|
467
|
-
ambiguous.
|
|
468
|
-
- Route public or developer-facing `summary`, `description`, parameter, schema,
|
|
469
|
-
and response text through the repo's copywriter standard before validating.
|
|
459
|
+
- Follow Contract Copy for operation and component text. Route public or
|
|
460
|
+
developer-facing copy through the repository's copywriter role before
|
|
461
|
+
validating; when that role is unavailable, apply Contract Copy and the
|
|
462
|
+
repository's general microcopy guidance directly.
|
|
470
463
|
- Prefer explicit object schemas over anonymous nested shapes when a payload is
|
|
471
464
|
shared by multiple operations.
|
|
472
465
|
- If multiple responses repeat the same envelope fields, extract the envelope
|
|
@@ -488,17 +481,3 @@ Share only business payload shapes.
|
|
|
488
481
|
|
|
489
482
|
Run `sumr kontract validate` after any layout change to confirm specs still
|
|
490
483
|
resolve before generating.
|
|
491
|
-
|
|
492
|
-
## async schema copy rules
|
|
493
|
-
|
|
494
|
-
Every async schema operation should include `summary`. Async schema `title`,
|
|
495
|
-
`summary`, and `description` fields can appear in generated docs, SDK docs, and
|
|
496
|
-
AI answers. Review them with the same copywriter standard as API schema:
|
|
497
|
-
|
|
498
|
-
- `title` names the message or operation.
|
|
499
|
-
- `summary` states the job or event in one concise sentence.
|
|
500
|
-
- `description` adds context only when the outcome, constraint, or event
|
|
501
|
-
semantics need more detail.
|
|
502
|
-
- Do not repeat the channel, operation id, schema key, or title in the summary.
|
|
503
|
-
- Keep transport terms such as subject, payload, NATS, command, and query only
|
|
504
|
-
when the reader needs that exact implementation detail.
|
|
@@ -18,23 +18,24 @@ generated contracts.
|
|
|
18
18
|
|
|
19
19
|
Apply the generated **sumr-kontract-usage** skill, then start from the
|
|
20
20
|
`resources/authoring/` overview. Use its configuration, design-profile axis
|
|
21
|
-
references, spec-layout, schema-reuse, scope-and-splitting, and
|
|
22
|
-
workflow before editing source specs. Use the generated-output
|
|
23
|
-
consuming or reviewing generated TypeScript.
|
|
21
|
+
references, spec-layout, contract-copy, schema-reuse, scope-and-splitting, and
|
|
22
|
+
spec-change workflow before editing source specs. Use the generated-output
|
|
23
|
+
reference before consuming or reviewing generated TypeScript.
|
|
24
24
|
|
|
25
25
|
## Responsibilities
|
|
26
26
|
|
|
27
|
-
- Translate API requirements into API
|
|
28
|
-
|
|
29
|
-
- After writing or updating any `*.api.yml`, `*.async.yml`, or
|
|
30
|
-
`*.
|
|
27
|
+
- Translate API and messaging requirements into API or async schema source
|
|
28
|
+
files under the selected source's configured `kontract.sources[].input`.
|
|
29
|
+
- After writing or updating any `*.api.yml`, `*.api.yaml`, `*.async.yml`, or
|
|
30
|
+
`*.async.yaml` file, review it against Kontract reuse, layout, and generation
|
|
31
31
|
rules before validating.
|
|
32
|
-
-
|
|
33
|
-
descriptions,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
- Apply Contract Copy to changed public or developer-facing titles, summaries,
|
|
33
|
+
descriptions, parameters, responses, schemas, and messages. Route them
|
|
34
|
+
through the repository's copywriter role before generation; when that role is
|
|
35
|
+
unavailable, apply Contract Copy and the repository's general microcopy
|
|
36
|
+
guidance directly.
|
|
37
|
+
- Ensure every API schema and async schema operation has a concise `summary`;
|
|
38
|
+
keep `description` only when it adds information.
|
|
38
39
|
- Read `kontract.guidance.profile` before writing examples so HTTP paths,
|
|
39
40
|
async schema channels, and schema layouts match the selected styles.
|
|
40
41
|
- Inspect the actual specs before writing examples. If the repo only has
|
|
@@ -71,7 +72,7 @@ consuming or reviewing generated TypeScript.
|
|
|
71
72
|
|
|
72
73
|
## Boundaries
|
|
73
74
|
|
|
74
|
-
- Never edit files under
|
|
75
|
+
- Never edit files under a configured target's generated output.
|
|
75
76
|
- Never hand-write Zod schemas, DTOs, NATS subjects, or clients that Kontract owns.
|
|
76
77
|
- Do not introduce a second source of truth; the spec is authoritative.
|
|
77
78
|
- Do not over-share unrelated concepts only because their current fields look
|