@sumrco/cli 0.3.9 → 0.4.2
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 +18 -0
- package/README.md +12 -0
- package/THIRD_PARTY_NOTICES.md +1119 -0
- package/ai/modules/kontract/resources/api-generation-standards.rf.md +18 -5
- package/ai/modules/kontract/resources/authoring/configuration.rf.md +568 -12
- package/ai/modules/kontract/resources/authoring/schema-reuse.rf.md +25 -4
- package/ai/modules/kontract/resources/authoring/scope-and-splitting.rf.md +8 -6
- package/ai/modules/kontract/resources/authoring/spec-layout.rf.md +4 -0
- package/ai/modules/kontract/resources/generated-output.rf.md +712 -44
- package/ai/modules/kontract/resources/nestjs-eslint.rf.md +153 -0
- package/ai/modules/kontract/resources/openapi-sdk-generator-research.rf.md +177 -0
- package/ai/modules/kontract/resources/overview.md +70 -8
- package/ai/modules/kontract/resources/performance.rf.md +11 -2
- package/ai/modules/kontract/sumr.module.yaml +15 -14
- package/ai/modules/mission/resources/flow-config.rf.md +2 -2
- package/ai/modules/mission/resources/overview.md +42 -35
- package/ai/modules/mission/resources/stage-closeout.rf.md +5 -5
- package/ai/modules/mission/resources/stage-delivery.rf.md +5 -5
- package/ai/modules/mission/resources/stage-intake.rf.md +2 -2
- package/ai/modules/mission/resources/stage-planning.rf.md +43 -4
- package/ai/modules/mission/resources/stage-pull-request.rf.md +2 -2
- package/ai/modules/mission/resources/stage-quality.rf.md +8 -8
- package/ai/modules/mission/resources/team-members/planner.tm.md +17 -5
- package/ai/modules/mission/resources/workflows/daily-triage.cmd.md +5 -1
- package/ai/modules/mission/resources/workflows/mission-cycle.cmd.md +7 -5
- package/ai/modules/mission/resources/workflows/planning-only.cmd.md +8 -3
- package/ai/modules/mission/sumr.module.yaml +20 -16
- package/ai/modules/playbook/resources/authoring/extraction.rf.md +28 -1
- package/ai/modules/playbook/resources/authoring/frontmatter.rf.md +7 -0
- package/ai/modules/playbook/resources/authoring/overview.md +33 -2
- package/ai/modules/playbook/resources/authoring/patterns.rf.md +21 -0
- package/ai/modules/playbook/resources/team-members/technical-writer.tm.md +5 -1
- package/ai/modules/playbook/sumr.module.yaml +13 -12
- package/ai/registry.json +3 -3
- package/bin/sumr +18 -3
- package/eslint/index.mjs +2 -0
- package/eslint/kontract/index.mjs +22 -0
- package/eslint/kontract/rules/typescript-nestjs/operation-contract.mjs +656 -0
- package/index.js +3060 -462
- package/package.json +26 -23
- package/sbom.cdx.json +5111 -0
|
@@ -27,8 +27,9 @@ the source contract.
|
|
|
27
27
|
bodies should reference `components.schemas` so generated DTO/model/SDK symbols
|
|
28
28
|
are stable and reviewable.
|
|
29
29
|
- **Generate map-shaped schemas deliberately.** `additionalProperties` schemas
|
|
30
|
-
must
|
|
31
|
-
across Zod, DTO, model, and SDK
|
|
30
|
+
must distinguish omitted, explicitly closed, and explicitly open objects.
|
|
31
|
+
Emit typed catch-all/index-signature behavior across Zod, DTO, model, and SDK
|
|
32
|
+
output only for explicit open declarations.
|
|
32
33
|
- **Fail clearly for unsupported schema features.** Unsupported `oneOf`,
|
|
33
34
|
`anyOf`, `not`, and discriminator shapes should stop generation before a
|
|
34
35
|
consumer repo is left with partial or missing symbols.
|
|
@@ -48,8 +49,14 @@ the source contract.
|
|
|
48
49
|
- Encode validation constraints in API schema (`minLength`, `maxLength`, `minimum`,
|
|
49
50
|
`maximum`, `pattern`, `format`) so DTO and Zod output can enforce the same
|
|
50
51
|
contract.
|
|
51
|
-
-
|
|
52
|
-
|
|
52
|
+
- OpenAPI permits undeclared keys when `additionalProperties` is omitted.
|
|
53
|
+
Kontract keeps named TypeScript models free of an implicit index signature and
|
|
54
|
+
its Zod output accepts then strips those undeclared keys. Use
|
|
55
|
+
`additionalProperties: false` when the application boundary must reject them,
|
|
56
|
+
especially when Nest uses
|
|
57
|
+
`ValidationPipe({ whitelist: true, forbidNonWhitelisted: true })`. Use
|
|
58
|
+
`additionalProperties: true` or a typed schema when undeclared keys are an
|
|
59
|
+
intentional, preserved part of the wire contract.
|
|
53
60
|
- For repeated query values, use `type: array` with scalar `items` and an
|
|
54
61
|
explicit API schema serialization shape when the default is not correct for the
|
|
55
62
|
API.
|
|
@@ -77,7 +84,13 @@ the source contract.
|
|
|
77
84
|
the spec.
|
|
78
85
|
- Operation payload schemas reference named components instead of anonymous
|
|
79
86
|
inline request/response objects.
|
|
80
|
-
-
|
|
87
|
+
- Omitted `additionalProperties` preserves named property types through
|
|
88
|
+
`Pick`, `Omit`, and `Partial`; explicit map-shaped schemas preserve named
|
|
89
|
+
properties and catch-all value types.
|
|
90
|
+
- Class-validator DTOs remain structurally assignable to their generated models
|
|
91
|
+
for top-level and nested explicitly open objects. Their index signatures are
|
|
92
|
+
compile-time declarations; they do not make arbitrary keys pass a strict Nest
|
|
93
|
+
whitelist.
|
|
81
94
|
- Generated files avoid unsafe symbols such as `any`, anonymous `InlineObject`
|
|
82
95
|
models, missing enum aliases, stale `basePath` globals, deprecated client
|
|
83
96
|
imports, and unsafe `apiKeys` access.
|