@owlmeans/viable-common 0.0.4
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/README.md +68 -0
- package/agent-meta/manifest.json +16 -0
- package/agent-meta/skills/viable-common/SKILL.md +179 -0
- package/build/agent/index.d.ts +4 -0
- package/build/agent/index.d.ts.map +1 -0
- package/build/agent/index.js +3 -0
- package/build/agent/index.js.map +1 -0
- package/build/agent/memory.d.ts +12 -0
- package/build/agent/memory.d.ts.map +1 -0
- package/build/agent/memory.js +11 -0
- package/build/agent/memory.js.map +1 -0
- package/build/agent/spectator/consts.d.ts +9 -0
- package/build/agent/spectator/consts.d.ts.map +1 -0
- package/build/agent/spectator/consts.js +10 -0
- package/build/agent/spectator/consts.js.map +1 -0
- package/build/agent/spectator/index.d.ts +3 -0
- package/build/agent/spectator/index.d.ts.map +1 -0
- package/build/agent/spectator/index.js +2 -0
- package/build/agent/spectator/index.js.map +1 -0
- package/build/agent/spectator/types.d.ts +13 -0
- package/build/agent/spectator/types.d.ts.map +1 -0
- package/build/agent/spectator/types.js +2 -0
- package/build/agent/spectator/types.js.map +1 -0
- package/build/agent/types.d.ts +10 -0
- package/build/agent/types.d.ts.map +1 -0
- package/build/agent/types.js +2 -0
- package/build/agent/types.js.map +1 -0
- package/build/areas/consts.d.ts +88 -0
- package/build/areas/consts.d.ts.map +1 -0
- package/build/areas/consts.js +106 -0
- package/build/areas/consts.js.map +1 -0
- package/build/areas/index.d.ts +3 -0
- package/build/areas/index.d.ts.map +1 -0
- package/build/areas/index.js +2 -0
- package/build/areas/index.js.map +1 -0
- package/build/areas/types.d.ts +28 -0
- package/build/areas/types.d.ts.map +1 -0
- package/build/areas/types.js +2 -0
- package/build/areas/types.js.map +1 -0
- package/build/ba/consts.d.ts +38 -0
- package/build/ba/consts.d.ts.map +1 -0
- package/build/ba/consts.js +41 -0
- package/build/ba/consts.js.map +1 -0
- package/build/ba/helpers.d.ts +41 -0
- package/build/ba/helpers.d.ts.map +1 -0
- package/build/ba/helpers.js +79 -0
- package/build/ba/helpers.js.map +1 -0
- package/build/ba/index.d.ts +5 -0
- package/build/ba/index.d.ts.map +1 -0
- package/build/ba/index.js +4 -0
- package/build/ba/index.js.map +1 -0
- package/build/ba/schemas.d.ts +13 -0
- package/build/ba/schemas.d.ts.map +1 -0
- package/build/ba/schemas.js +181 -0
- package/build/ba/schemas.js.map +1 -0
- package/build/ba/types.d.ts +113 -0
- package/build/ba/types.d.ts.map +1 -0
- package/build/ba/types.js +2 -0
- package/build/ba/types.js.map +1 -0
- package/build/blueprint/case.d.ts +73 -0
- package/build/blueprint/case.d.ts.map +1 -0
- package/build/blueprint/case.js +244 -0
- package/build/blueprint/case.js.map +1 -0
- package/build/blueprint/consts.d.ts +11 -0
- package/build/blueprint/consts.d.ts.map +1 -0
- package/build/blueprint/consts.js +11 -0
- package/build/blueprint/consts.js.map +1 -0
- package/build/blueprint/index.d.ts +6 -0
- package/build/blueprint/index.d.ts.map +1 -0
- package/build/blueprint/index.js +6 -0
- package/build/blueprint/index.js.map +1 -0
- package/build/blueprint/resolve.d.ts +51 -0
- package/build/blueprint/resolve.d.ts.map +1 -0
- package/build/blueprint/resolve.js +108 -0
- package/build/blueprint/resolve.js.map +1 -0
- package/build/blueprint/schemas.d.ts +41 -0
- package/build/blueprint/schemas.d.ts.map +1 -0
- package/build/blueprint/schemas.js +27 -0
- package/build/blueprint/schemas.js.map +1 -0
- package/build/blueprint/types.d.ts +186 -0
- package/build/blueprint/types.d.ts.map +1 -0
- package/build/blueprint/types.js +32 -0
- package/build/blueprint/types.js.map +1 -0
- package/build/branding.d.ts +19 -0
- package/build/branding.d.ts.map +1 -0
- package/build/branding.js +32 -0
- package/build/branding.js.map +1 -0
- package/build/connect/consts.d.ts +378 -0
- package/build/connect/consts.d.ts.map +1 -0
- package/build/connect/consts.js +425 -0
- package/build/connect/consts.js.map +1 -0
- package/build/connect/entrypoints.d.ts +41 -0
- package/build/connect/entrypoints.d.ts.map +1 -0
- package/build/connect/entrypoints.js +141 -0
- package/build/connect/entrypoints.js.map +1 -0
- package/build/connect/errors.d.ts +50 -0
- package/build/connect/errors.d.ts.map +1 -0
- package/build/connect/errors.js +77 -0
- package/build/connect/errors.js.map +1 -0
- package/build/connect/index.d.ts +8 -0
- package/build/connect/index.d.ts.map +1 -0
- package/build/connect/index.js +6 -0
- package/build/connect/index.js.map +1 -0
- package/build/connect/ops.d.ts +192 -0
- package/build/connect/ops.d.ts.map +1 -0
- package/build/connect/ops.js +2 -0
- package/build/connect/ops.js.map +1 -0
- package/build/connect/references.d.ts +194 -0
- package/build/connect/references.d.ts.map +1 -0
- package/build/connect/references.js +62 -0
- package/build/connect/references.js.map +1 -0
- package/build/connect/schemas.d.ts +59 -0
- package/build/connect/schemas.d.ts.map +1 -0
- package/build/connect/schemas.js +346 -0
- package/build/connect/schemas.js.map +1 -0
- package/build/connect/types.d.ts +428 -0
- package/build/connect/types.d.ts.map +1 -0
- package/build/connect/types.js +2 -0
- package/build/connect/types.js.map +1 -0
- package/build/consts.d.ts +9 -0
- package/build/consts.d.ts.map +1 -0
- package/build/consts.js +31 -0
- package/build/consts.js.map +1 -0
- package/build/convert/consts.d.ts +539 -0
- package/build/convert/consts.d.ts.map +1 -0
- package/build/convert/consts.js +630 -0
- package/build/convert/consts.js.map +1 -0
- package/build/convert/helpers.d.ts +91 -0
- package/build/convert/helpers.d.ts.map +1 -0
- package/build/convert/helpers.js +301 -0
- package/build/convert/helpers.js.map +1 -0
- package/build/convert/index.d.ts +11 -0
- package/build/convert/index.d.ts.map +1 -0
- package/build/convert/index.js +4 -0
- package/build/convert/index.js.map +1 -0
- package/build/convert/schemas.d.ts +62 -0
- package/build/convert/schemas.d.ts.map +1 -0
- package/build/convert/schemas.js +626 -0
- package/build/convert/schemas.js.map +1 -0
- package/build/convert/types.d.ts +683 -0
- package/build/convert/types.d.ts.map +1 -0
- package/build/convert/types.js +2 -0
- package/build/convert/types.js.map +1 -0
- package/build/design/consts.d.ts +25 -0
- package/build/design/consts.d.ts.map +1 -0
- package/build/design/consts.js +26 -0
- package/build/design/consts.js.map +1 -0
- package/build/design/helpers.d.ts +60 -0
- package/build/design/helpers.d.ts.map +1 -0
- package/build/design/helpers.js +221 -0
- package/build/design/helpers.js.map +1 -0
- package/build/design/index.d.ts +6 -0
- package/build/design/index.d.ts.map +1 -0
- package/build/design/index.js +5 -0
- package/build/design/index.js.map +1 -0
- package/build/design/runtime.d.ts +126 -0
- package/build/design/runtime.d.ts.map +1 -0
- package/build/design/runtime.js +65 -0
- package/build/design/runtime.js.map +1 -0
- package/build/design/schemas.d.ts +21 -0
- package/build/design/schemas.d.ts.map +1 -0
- package/build/design/schemas.js +369 -0
- package/build/design/schemas.js.map +1 -0
- package/build/design/types.d.ts +199 -0
- package/build/design/types.d.ts.map +1 -0
- package/build/design/types.js +2 -0
- package/build/design/types.js.map +1 -0
- package/build/dev/consts.d.ts +32 -0
- package/build/dev/consts.d.ts.map +1 -0
- package/build/dev/consts.js +33 -0
- package/build/dev/consts.js.map +1 -0
- package/build/dev/index.d.ts +4 -0
- package/build/dev/index.d.ts.map +1 -0
- package/build/dev/index.js +3 -0
- package/build/dev/index.js.map +1 -0
- package/build/dev/schemas.d.ts +15 -0
- package/build/dev/schemas.d.ts.map +1 -0
- package/build/dev/schemas.js +116 -0
- package/build/dev/schemas.js.map +1 -0
- package/build/dev/types.d.ts +42 -0
- package/build/dev/types.d.ts.map +1 -0
- package/build/dev/types.js +2 -0
- package/build/dev/types.js.map +1 -0
- package/build/execution/consts.d.ts +36 -0
- package/build/execution/consts.d.ts.map +1 -0
- package/build/execution/consts.js +37 -0
- package/build/execution/consts.js.map +1 -0
- package/build/execution/index.d.ts +3 -0
- package/build/execution/index.d.ts.map +1 -0
- package/build/execution/index.js +2 -0
- package/build/execution/index.js.map +1 -0
- package/build/execution/types.d.ts +50 -0
- package/build/execution/types.d.ts.map +1 -0
- package/build/execution/types.js +2 -0
- package/build/execution/types.js.map +1 -0
- package/build/index.d.ts +22 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +21 -0
- package/build/index.js.map +1 -0
- package/build/integrity/consts.d.ts +226 -0
- package/build/integrity/consts.d.ts.map +1 -0
- package/build/integrity/consts.js +401 -0
- package/build/integrity/consts.js.map +1 -0
- package/build/integrity/index.d.ts +4 -0
- package/build/integrity/index.d.ts.map +1 -0
- package/build/integrity/index.js +3 -0
- package/build/integrity/index.js.map +1 -0
- package/build/integrity/types.d.ts +35 -0
- package/build/integrity/types.d.ts.map +1 -0
- package/build/integrity/types.js +2 -0
- package/build/integrity/types.js.map +1 -0
- package/build/integrity/verify.d.ts +23 -0
- package/build/integrity/verify.d.ts.map +1 -0
- package/build/integrity/verify.js +198 -0
- package/build/integrity/verify.js.map +1 -0
- package/build/metadata/consts.d.ts +101 -0
- package/build/metadata/consts.d.ts.map +1 -0
- package/build/metadata/consts.js +104 -0
- package/build/metadata/consts.js.map +1 -0
- package/build/metadata/index.d.ts +3 -0
- package/build/metadata/index.d.ts.map +1 -0
- package/build/metadata/index.js +3 -0
- package/build/metadata/index.js.map +1 -0
- package/build/metadata/types.d.ts +286 -0
- package/build/metadata/types.d.ts.map +1 -0
- package/build/metadata/types.js +39 -0
- package/build/metadata/types.js.map +1 -0
- package/build/moderation/consts.d.ts +58 -0
- package/build/moderation/consts.d.ts.map +1 -0
- package/build/moderation/consts.js +60 -0
- package/build/moderation/consts.js.map +1 -0
- package/build/moderation/index.d.ts +5 -0
- package/build/moderation/index.d.ts.map +1 -0
- package/build/moderation/index.js +4 -0
- package/build/moderation/index.js.map +1 -0
- package/build/moderation/schemas.d.ts +19 -0
- package/build/moderation/schemas.d.ts.map +1 -0
- package/build/moderation/schemas.js +26 -0
- package/build/moderation/schemas.js.map +1 -0
- package/build/moderation/types.d.ts +64 -0
- package/build/moderation/types.d.ts.map +1 -0
- package/build/moderation/types.js +2 -0
- package/build/moderation/types.js.map +1 -0
- package/build/moderation/utils.d.ts +21 -0
- package/build/moderation/utils.d.ts.map +1 -0
- package/build/moderation/utils.js +31 -0
- package/build/moderation/utils.js.map +1 -0
- package/build/preview/consts.d.ts +10 -0
- package/build/preview/consts.d.ts.map +1 -0
- package/build/preview/consts.js +11 -0
- package/build/preview/consts.js.map +1 -0
- package/build/preview/index.d.ts +3 -0
- package/build/preview/index.d.ts.map +1 -0
- package/build/preview/index.js +2 -0
- package/build/preview/index.js.map +1 -0
- package/build/preview/types.d.ts +60 -0
- package/build/preview/types.d.ts.map +1 -0
- package/build/preview/types.js +2 -0
- package/build/preview/types.js.map +1 -0
- package/build/scaffold/consts.d.ts +25 -0
- package/build/scaffold/consts.d.ts.map +1 -0
- package/build/scaffold/consts.js +26 -0
- package/build/scaffold/consts.js.map +1 -0
- package/build/scaffold/helpers.d.ts +35 -0
- package/build/scaffold/helpers.d.ts.map +1 -0
- package/build/scaffold/helpers.js +54 -0
- package/build/scaffold/helpers.js.map +1 -0
- package/build/scaffold/index.d.ts +5 -0
- package/build/scaffold/index.d.ts.map +1 -0
- package/build/scaffold/index.js +4 -0
- package/build/scaffold/index.js.map +1 -0
- package/build/scaffold/schemas.d.ts +5 -0
- package/build/scaffold/schemas.d.ts.map +1 -0
- package/build/scaffold/schemas.js +273 -0
- package/build/scaffold/schemas.js.map +1 -0
- package/build/scaffold/types.d.ts +144 -0
- package/build/scaffold/types.d.ts.map +1 -0
- package/build/scaffold/types.js +2 -0
- package/build/scaffold/types.js.map +1 -0
- package/build/skills/catalogue.d.ts +47 -0
- package/build/skills/catalogue.d.ts.map +1 -0
- package/build/skills/catalogue.js +1566 -0
- package/build/skills/catalogue.js.map +1 -0
- package/build/skills/consts.d.ts +104 -0
- package/build/skills/consts.d.ts.map +1 -0
- package/build/skills/consts.js +170 -0
- package/build/skills/consts.js.map +1 -0
- package/build/skills/index.d.ts +4 -0
- package/build/skills/index.d.ts.map +1 -0
- package/build/skills/index.js +4 -0
- package/build/skills/index.js.map +1 -0
- package/build/skills/roles.d.ts +52 -0
- package/build/skills/roles.d.ts.map +1 -0
- package/build/skills/roles.js +256 -0
- package/build/skills/roles.js.map +1 -0
- package/build/slot/consts.d.ts +305 -0
- package/build/slot/consts.d.ts.map +1 -0
- package/build/slot/consts.js +376 -0
- package/build/slot/consts.js.map +1 -0
- package/build/slot/helpers.d.ts +25 -0
- package/build/slot/helpers.d.ts.map +1 -0
- package/build/slot/helpers.js +27 -0
- package/build/slot/helpers.js.map +1 -0
- package/build/slot/index.d.ts +6 -0
- package/build/slot/index.d.ts.map +1 -0
- package/build/slot/index.js +5 -0
- package/build/slot/index.js.map +1 -0
- package/build/slot/layout.d.ts +72 -0
- package/build/slot/layout.d.ts.map +1 -0
- package/build/slot/layout.js +82 -0
- package/build/slot/layout.js.map +1 -0
- package/build/slot/schemas.d.ts +12 -0
- package/build/slot/schemas.d.ts.map +1 -0
- package/build/slot/schemas.js +43 -0
- package/build/slot/schemas.js.map +1 -0
- package/build/slot/types.d.ts +147 -0
- package/build/slot/types.d.ts.map +1 -0
- package/build/slot/types.js +2 -0
- package/build/slot/types.js.map +1 -0
- package/build/topology/card.d.ts +23 -0
- package/build/topology/card.d.ts.map +1 -0
- package/build/topology/card.js +95 -0
- package/build/topology/card.js.map +1 -0
- package/build/topology/consts.d.ts +32 -0
- package/build/topology/consts.d.ts.map +1 -0
- package/build/topology/consts.js +55 -0
- package/build/topology/consts.js.map +1 -0
- package/build/topology/helpers.d.ts +44 -0
- package/build/topology/helpers.d.ts.map +1 -0
- package/build/topology/helpers.js +112 -0
- package/build/topology/helpers.js.map +1 -0
- package/build/topology/index.d.ts +5 -0
- package/build/topology/index.d.ts.map +1 -0
- package/build/topology/index.js +4 -0
- package/build/topology/index.js.map +1 -0
- package/build/topology/types.d.ts +83 -0
- package/build/topology/types.d.ts.map +1 -0
- package/build/topology/types.js +2 -0
- package/build/topology/types.js.map +1 -0
- package/build/types.d.ts +88 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +2 -0
- package/build/types.js.map +1 -0
- package/build/ux/consts.d.ts +5 -0
- package/build/ux/consts.d.ts.map +1 -0
- package/build/ux/consts.js +6 -0
- package/build/ux/consts.js.map +1 -0
- package/build/ux/index.d.ts +4 -0
- package/build/ux/index.d.ts.map +1 -0
- package/build/ux/index.js +3 -0
- package/build/ux/index.js.map +1 -0
- package/build/ux/schemas.d.ts +8 -0
- package/build/ux/schemas.d.ts.map +1 -0
- package/build/ux/schemas.js +91 -0
- package/build/ux/schemas.js.map +1 -0
- package/build/ux/types.d.ts +21 -0
- package/build/ux/types.d.ts.map +1 -0
- package/build/ux/types.js +2 -0
- package/build/ux/types.js.map +1 -0
- package/package.json +71 -0
- package/src/agent/index.ts +4 -0
- package/src/agent/memory.ts +16 -0
- package/src/agent/spectator/consts.ts +10 -0
- package/src/agent/spectator/index.ts +3 -0
- package/src/agent/spectator/types.ts +14 -0
- package/src/agent/types.ts +10 -0
- package/src/areas/consts.ts +112 -0
- package/src/areas/index.ts +3 -0
- package/src/areas/types.ts +29 -0
- package/src/ba/consts.ts +40 -0
- package/src/ba/helpers.ts +93 -0
- package/src/ba/index.ts +5 -0
- package/src/ba/schemas.ts +196 -0
- package/src/ba/types.ts +125 -0
- package/src/blueprint/case.ts +272 -0
- package/src/blueprint/consts.ts +11 -0
- package/src/blueprint/index.ts +6 -0
- package/src/blueprint/resolve.ts +133 -0
- package/src/blueprint/schemas.ts +44 -0
- package/src/blueprint/types.ts +204 -0
- package/src/branding.ts +34 -0
- package/src/connect/consts.ts +441 -0
- package/src/connect/entrypoints.ts +291 -0
- package/src/connect/errors.ts +91 -0
- package/src/connect/index.ts +7 -0
- package/src/connect/ops.ts +208 -0
- package/src/connect/references.ts +89 -0
- package/src/connect/schemas.ts +384 -0
- package/src/connect/types.ts +456 -0
- package/src/consts.ts +34 -0
- package/src/convert/consts.ts +672 -0
- package/src/convert/helpers.ts +340 -0
- package/src/convert/index.ts +10 -0
- package/src/convert/schemas.ts +663 -0
- package/src/convert/types.ts +741 -0
- package/src/design/consts.ts +26 -0
- package/src/design/helpers.ts +255 -0
- package/src/design/index.ts +5 -0
- package/src/design/runtime.ts +142 -0
- package/src/design/schemas.ts +384 -0
- package/src/design/types.ts +191 -0
- package/src/dev/consts.ts +35 -0
- package/src/dev/index.ts +4 -0
- package/src/dev/schemas.ts +124 -0
- package/src/dev/types.ts +47 -0
- package/src/execution/consts.ts +37 -0
- package/src/execution/index.ts +3 -0
- package/src/execution/types.ts +55 -0
- package/src/index.ts +22 -0
- package/src/integrity/consts.ts +477 -0
- package/src/integrity/index.ts +3 -0
- package/src/integrity/types.ts +37 -0
- package/src/integrity/verify.ts +221 -0
- package/src/metadata/consts.ts +118 -0
- package/src/metadata/index.ts +3 -0
- package/src/metadata/types.ts +310 -0
- package/src/moderation/consts.ts +59 -0
- package/src/moderation/index.ts +4 -0
- package/src/moderation/schemas.ts +28 -0
- package/src/moderation/types.ts +68 -0
- package/src/moderation/utils.ts +35 -0
- package/src/preview/consts.ts +9 -0
- package/src/preview/index.ts +3 -0
- package/src/preview/types.ts +79 -0
- package/src/scaffold/consts.ts +26 -0
- package/src/scaffold/helpers.ts +84 -0
- package/src/scaffold/index.ts +4 -0
- package/src/scaffold/schemas.ts +283 -0
- package/src/scaffold/types.ts +118 -0
- package/src/skills/catalogue.ts +1617 -0
- package/src/skills/consts.ts +183 -0
- package/src/skills/index.ts +4 -0
- package/src/skills/roles.ts +299 -0
- package/src/slot/consts.ts +393 -0
- package/src/slot/helpers.ts +34 -0
- package/src/slot/index.ts +5 -0
- package/src/slot/layout.ts +141 -0
- package/src/slot/schemas.ts +46 -0
- package/src/slot/types.ts +164 -0
- package/src/topology/card.ts +106 -0
- package/src/topology/consts.ts +59 -0
- package/src/topology/helpers.ts +138 -0
- package/src/topology/index.ts +5 -0
- package/src/topology/types.ts +86 -0
- package/src/types.ts +104 -0
- package/src/ux/consts.ts +5 -0
- package/src/ux/index.ts +4 -0
- package/src/ux/schemas.ts +97 -0
- package/src/ux/types.ts +25 -0
- package/tests/connect-convert.spec.ts +161 -0
- package/tests/convert.spec.ts +318 -0
- package/tests/design.spec.ts +136 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
import { ProjectArea } from '../areas/consts.js';
|
|
2
|
+
import { ConnectLlm, CONNECT_INQUIRY_MAX_TEXT } from '../connect/consts.js';
|
|
3
|
+
import { ModelRole } from '../execution/consts.js';
|
|
4
|
+
import { ArchitectureCase, ConversionStage, ConvertibilityReason, ConvertibilityVerdict, EstimateSlice, OriginKind, OriginState, PurposeEvidenceSource, StackFamily, StackId, TaxonomyKind, WorkspaceKind } from './consts.js';
|
|
5
|
+
/**
|
|
6
|
+
* Two populations of schema live in this file, and they are written differently on purpose.
|
|
7
|
+
*
|
|
8
|
+
* **Model-answer schemas** are handed to a model as the shape its single JSON object must take.
|
|
9
|
+
* They are annotated `JSONSchemaType<T>` — checked, not cast — because the answer is parsed back
|
|
10
|
+
* into that exact type and a schema that has drifted from it fails at run time with a message
|
|
11
|
+
* about a document rather than about a field. Every optional field is `nullable: true` WITH its
|
|
12
|
+
* `type`: Ajv refuses `nullable` on its own, and a schema that fails to compile takes down
|
|
13
|
+
* whatever compiled it, not the one call that would have carried the value.
|
|
14
|
+
*
|
|
15
|
+
* **A nullable ENUM carries `null` as one of its values.** `nullable` and `enum` are separate
|
|
16
|
+
* keywords and Ajv checks them independently: `nullable: true` widens the TYPE check to admit
|
|
17
|
+
* `null` and the `enum` check then refuses the very same value, so the field can only ever be
|
|
18
|
+
* omitted — never sent empty. Absence and `null` are not interchangeable on either side of this
|
|
19
|
+
* package: a provider's structured output writes an unset optional as `null`, and a wire body
|
|
20
|
+
* where `null` MEANS something (`ConverterProjectLlmBody.llmMode` — "inherit the profile's
|
|
21
|
+
* setting") cannot express it any other way. So every `enum` beside a `nullable: true` is written
|
|
22
|
+
* `[...Object.values(X), null]`, which `JSONSchemaType` types as `readonly (T | null)[]` for an
|
|
23
|
+
* optional member and therefore needs no cast. `tests/convert.spec.ts` walks every exported
|
|
24
|
+
* schema and fails on the pair written apart.
|
|
25
|
+
*
|
|
26
|
+
* **Record-element schemas** describe things the PLATFORM stores and puts on the wire. They are
|
|
27
|
+
* hand-written and cast, because they are re-applied as a Mongo `$jsonSchema` and that reading of
|
|
28
|
+
* a schema is stricter than Ajv's: no `Record<>` maps (an open key space cannot be validated), no
|
|
29
|
+
* `integer` (a stored number is a double), and dates as ISO strings rather than objects.
|
|
30
|
+
*/
|
|
31
|
+
// --- model answers --------------------------------------------------------------------------
|
|
32
|
+
/**
|
|
33
|
+
* A pointer into the origin sources backing one claim.
|
|
34
|
+
*
|
|
35
|
+
* Reused inside every derived answer below, so the wording a model reads about proofs is written
|
|
36
|
+
* exactly once — two copies drift, both keep validating, and the two prompts start citing
|
|
37
|
+
* differently.
|
|
38
|
+
*/
|
|
39
|
+
export const OriginProofSchema = {
|
|
40
|
+
type: 'object',
|
|
41
|
+
title: 'OriginProof',
|
|
42
|
+
description: 'A pointer into the original project sources that backs this claim',
|
|
43
|
+
properties: {
|
|
44
|
+
path: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Path of the original source file, relative to the original project root'
|
|
47
|
+
},
|
|
48
|
+
symbol: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
nullable: true,
|
|
51
|
+
description: 'The function, class, route or constant the claim is about'
|
|
52
|
+
},
|
|
53
|
+
lines: {
|
|
54
|
+
type: 'array',
|
|
55
|
+
nullable: true,
|
|
56
|
+
// ONE item schema, never the draft-04 tuple form: a provider's structured output takes
|
|
57
|
+
// `items` as a schema object and refuses an array of them outright — see `OriginProof`.
|
|
58
|
+
items: { type: 'integer', minimum: 1 },
|
|
59
|
+
minItems: 2,
|
|
60
|
+
maxItems: 2,
|
|
61
|
+
description: 'First and last line of the relevant fragment'
|
|
62
|
+
},
|
|
63
|
+
note: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
description: 'One sentence saying what this fragment proves'
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
required: ['path', 'note'],
|
|
69
|
+
additionalProperties: false,
|
|
70
|
+
};
|
|
71
|
+
export const StackConfirmationSchema = {
|
|
72
|
+
type: 'object',
|
|
73
|
+
title: 'StackConfirmation',
|
|
74
|
+
description: 'The framework the original project is built with, and the shape of the application',
|
|
75
|
+
properties: {
|
|
76
|
+
stack: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
enum: Object.values(StackId),
|
|
79
|
+
description: 'The framework that best describes the project'
|
|
80
|
+
},
|
|
81
|
+
alternative: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
// `null` is a member of the enum, not a redundancy beside `nullable` — see the note above.
|
|
84
|
+
// This is the field that proved it: the intake's ONE stack call is retried three times and
|
|
85
|
+
// then discarded (`llm:retry-exceeded`) whenever a provider answers the absent alternative
|
|
86
|
+
// as `null` rather than by leaving the key out, which OpenAI's structured output always does.
|
|
87
|
+
enum: [...Object.values(StackId), null],
|
|
88
|
+
nullable: true,
|
|
89
|
+
description: 'The next most likely framework, when two fit almost equally well'
|
|
90
|
+
},
|
|
91
|
+
case: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
enum: Object.values(ArchitectureCase),
|
|
94
|
+
description: `
|
|
95
|
+
The shape of the application:
|
|
96
|
+
- spa-api - a browser application talking to a separate HTTP API
|
|
97
|
+
- ssr-monolith - one server rendering pages and serving its own data
|
|
98
|
+
- api-only - an HTTP API with no user interface of its own
|
|
99
|
+
- cli-pipeline - a command line tool, a batch job or an agent pipeline with no user interface
|
|
100
|
+
- viable-repair - the project is already an OwlMeans Viable application
|
|
101
|
+
`
|
|
102
|
+
},
|
|
103
|
+
runtime: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
nullable: true,
|
|
106
|
+
description: 'The runtime and version the project declares, when it declares one'
|
|
107
|
+
},
|
|
108
|
+
confidence: {
|
|
109
|
+
type: 'number',
|
|
110
|
+
minimum: 0,
|
|
111
|
+
maximum: 1,
|
|
112
|
+
description: 'How certain this answer is, from 0 to 1'
|
|
113
|
+
},
|
|
114
|
+
reason: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
maxLength: 240,
|
|
117
|
+
description: 'One sentence naming the evidence this answer rests on'
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
required: ['stack', 'case', 'confidence', 'reason'],
|
|
121
|
+
additionalProperties: false,
|
|
122
|
+
};
|
|
123
|
+
export const ArchitectureVerdictSchema = {
|
|
124
|
+
type: 'object',
|
|
125
|
+
title: 'ArchitectureVerdict',
|
|
126
|
+
description: 'Which of the five application shapes the original project has',
|
|
127
|
+
properties: {
|
|
128
|
+
case: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
enum: Object.values(ArchitectureCase),
|
|
131
|
+
description: 'The shape of the application'
|
|
132
|
+
},
|
|
133
|
+
confidence: { type: 'number', minimum: 0, maximum: 1 },
|
|
134
|
+
reasons: {
|
|
135
|
+
type: 'array',
|
|
136
|
+
items: { type: 'string', maxLength: 240 },
|
|
137
|
+
description: 'The evidence behind the verdict, one sentence each'
|
|
138
|
+
},
|
|
139
|
+
ambiguous: {
|
|
140
|
+
type: 'boolean',
|
|
141
|
+
description: 'True when a second shape fits the evidence about as well as the chosen one'
|
|
142
|
+
},
|
|
143
|
+
uiGap: {
|
|
144
|
+
type: 'boolean',
|
|
145
|
+
description: 'True when the project has no user interface of its own at all'
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
required: ['case', 'confidence', 'reasons', 'ambiguous', 'uiGap'],
|
|
149
|
+
additionalProperties: false,
|
|
150
|
+
};
|
|
151
|
+
export const PurposeInferenceSchema = {
|
|
152
|
+
type: 'object',
|
|
153
|
+
title: 'PurposeInference',
|
|
154
|
+
description: 'What the original application is for, and who uses it',
|
|
155
|
+
properties: {
|
|
156
|
+
purpose: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
description: 'What the application does for the people who use it, in two or three sentences'
|
|
159
|
+
},
|
|
160
|
+
audience: {
|
|
161
|
+
type: 'string',
|
|
162
|
+
description: 'Who those people are'
|
|
163
|
+
},
|
|
164
|
+
source: {
|
|
165
|
+
type: 'string',
|
|
166
|
+
enum: Object.values(PurposeEvidenceSource),
|
|
167
|
+
description: `
|
|
168
|
+
Where this answer mostly came from:
|
|
169
|
+
- harness - the project's own written documentation
|
|
170
|
+
- checks - its tests
|
|
171
|
+
- ui - its screens and their labels
|
|
172
|
+
- jobs - its background work
|
|
173
|
+
- manifest - its package manifests alone
|
|
174
|
+
`
|
|
175
|
+
},
|
|
176
|
+
confidence: { type: 'number', minimum: 0, maximum: 1 },
|
|
177
|
+
evidence: { type: 'array', items: OriginProofSchema },
|
|
178
|
+
},
|
|
179
|
+
required: ['purpose', 'audience', 'source', 'confidence', 'evidence'],
|
|
180
|
+
additionalProperties: false,
|
|
181
|
+
};
|
|
182
|
+
const TaxonomyEntrySchema = {
|
|
183
|
+
type: 'object',
|
|
184
|
+
title: 'TaxonomyEntry',
|
|
185
|
+
description: 'One thing the original project declares at this layer',
|
|
186
|
+
properties: {
|
|
187
|
+
name: { type: 'string', description: 'What it is called in the original code' },
|
|
188
|
+
path: { type: 'string', description: 'The file that declares it' },
|
|
189
|
+
kind: {
|
|
190
|
+
type: 'string',
|
|
191
|
+
enum: Object.values(TaxonomyKind),
|
|
192
|
+
description: 'Which layer it belongs to'
|
|
193
|
+
},
|
|
194
|
+
symbol: { type: 'string', nullable: true, description: 'The exported symbol, when it has one' },
|
|
195
|
+
entity: {
|
|
196
|
+
type: 'string',
|
|
197
|
+
nullable: true,
|
|
198
|
+
description: 'The domain entity it is about, when it is about one'
|
|
199
|
+
},
|
|
200
|
+
refs: {
|
|
201
|
+
type: 'array',
|
|
202
|
+
nullable: true,
|
|
203
|
+
items: { type: 'string' },
|
|
204
|
+
description: 'Names of other entries at earlier layers that this one uses'
|
|
205
|
+
},
|
|
206
|
+
note: { type: 'string', nullable: true, description: 'One sentence about what it does' },
|
|
207
|
+
proofs: { type: 'array', nullable: true, items: OriginProofSchema },
|
|
208
|
+
},
|
|
209
|
+
required: ['name', 'path', 'kind'],
|
|
210
|
+
additionalProperties: false,
|
|
211
|
+
};
|
|
212
|
+
export const TaxonomyEntryListSchema = {
|
|
213
|
+
type: 'object',
|
|
214
|
+
title: 'TaxonomyEntryList',
|
|
215
|
+
description: 'Everything the original project declares at one layer',
|
|
216
|
+
properties: {
|
|
217
|
+
entries: { type: 'array', items: TaxonomyEntrySchema },
|
|
218
|
+
},
|
|
219
|
+
required: ['entries'],
|
|
220
|
+
additionalProperties: false,
|
|
221
|
+
};
|
|
222
|
+
export const TaxonomyRoleListSchema = {
|
|
223
|
+
type: 'object',
|
|
224
|
+
title: 'TaxonomyRoleList',
|
|
225
|
+
description: 'The access model of the original project - who its users are and what they may do',
|
|
226
|
+
properties: {
|
|
227
|
+
roles: {
|
|
228
|
+
type: 'array',
|
|
229
|
+
items: {
|
|
230
|
+
type: 'object',
|
|
231
|
+
properties: {
|
|
232
|
+
name: { type: 'string', description: 'The role as the original code names it' },
|
|
233
|
+
area: {
|
|
234
|
+
type: 'string',
|
|
235
|
+
enum: Object.values(ProjectArea),
|
|
236
|
+
description: `
|
|
237
|
+
Which area of the application this role acts in:
|
|
238
|
+
- guest - not signed in
|
|
239
|
+
- user - a signed-in end user consuming the product's value
|
|
240
|
+
- operator - staff running the business process from the inside
|
|
241
|
+
- admin - the owner configuring the application itself
|
|
242
|
+
`
|
|
243
|
+
},
|
|
244
|
+
evidence: { type: 'array', items: OriginProofSchema },
|
|
245
|
+
},
|
|
246
|
+
required: ['name', 'area', 'evidence'],
|
|
247
|
+
additionalProperties: false,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
permissions: {
|
|
251
|
+
type: 'array',
|
|
252
|
+
items: {
|
|
253
|
+
type: 'object',
|
|
254
|
+
properties: {
|
|
255
|
+
name: { type: 'string' },
|
|
256
|
+
roles: {
|
|
257
|
+
type: 'array',
|
|
258
|
+
items: { type: 'string' },
|
|
259
|
+
description: 'The roles that hold this permission'
|
|
260
|
+
},
|
|
261
|
+
guards: {
|
|
262
|
+
type: 'array',
|
|
263
|
+
items: { type: 'string' },
|
|
264
|
+
description: 'The middlewares, decorators or checks that enforce it'
|
|
265
|
+
},
|
|
266
|
+
evidence: { type: 'array', items: OriginProofSchema },
|
|
267
|
+
},
|
|
268
|
+
required: ['name', 'roles', 'guards', 'evidence'],
|
|
269
|
+
additionalProperties: false,
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
required: ['roles', 'permissions'],
|
|
274
|
+
additionalProperties: false,
|
|
275
|
+
};
|
|
276
|
+
const OriginFlowSchema = {
|
|
277
|
+
type: 'object',
|
|
278
|
+
title: 'OriginFlow',
|
|
279
|
+
description: 'One thing a user or a job accomplishes end to end in the original application',
|
|
280
|
+
properties: {
|
|
281
|
+
id: { type: 'string', description: 'A short stable identifier, lowercase and hyphenated' },
|
|
282
|
+
name: { type: 'string' },
|
|
283
|
+
actor: { type: 'string', description: 'Who or what performs it' },
|
|
284
|
+
area: { type: 'string', enum: Object.values(ProjectArea) },
|
|
285
|
+
steps: {
|
|
286
|
+
type: 'array',
|
|
287
|
+
items: { type: 'string' },
|
|
288
|
+
description: 'The steps in order, one short sentence each'
|
|
289
|
+
},
|
|
290
|
+
covered: {
|
|
291
|
+
type: 'boolean',
|
|
292
|
+
description: 'Whether the user stories already listed cover this flow'
|
|
293
|
+
},
|
|
294
|
+
kind: {
|
|
295
|
+
type: 'string',
|
|
296
|
+
enum: ['ui', 'job', 'cli'],
|
|
297
|
+
description: 'Whether it runs on screen, as background work, or from a command line'
|
|
298
|
+
},
|
|
299
|
+
proofs: { type: 'array', items: OriginProofSchema },
|
|
300
|
+
},
|
|
301
|
+
required: ['id', 'name', 'actor', 'area', 'steps', 'covered', 'kind', 'proofs'],
|
|
302
|
+
additionalProperties: false,
|
|
303
|
+
};
|
|
304
|
+
export const OriginFlowListSchema = {
|
|
305
|
+
type: 'object',
|
|
306
|
+
title: 'OriginFlowList',
|
|
307
|
+
description: 'The flows the original application implements',
|
|
308
|
+
properties: {
|
|
309
|
+
flows: { type: 'array', items: OriginFlowSchema },
|
|
310
|
+
},
|
|
311
|
+
required: ['flows'],
|
|
312
|
+
additionalProperties: false,
|
|
313
|
+
};
|
|
314
|
+
export const StoryProofSchema = {
|
|
315
|
+
type: 'object',
|
|
316
|
+
title: 'StoryProof',
|
|
317
|
+
description: 'One user story restored from the original code, with the code that proves it',
|
|
318
|
+
properties: {
|
|
319
|
+
code: { type: 'string', description: 'The story code this answer is about' },
|
|
320
|
+
narrative: {
|
|
321
|
+
type: 'string',
|
|
322
|
+
description: 'As a [role], I want to [do something] so that [I get the following results]'
|
|
323
|
+
},
|
|
324
|
+
specification: {
|
|
325
|
+
type: 'string',
|
|
326
|
+
description: 'What the original application actually does for this story'
|
|
327
|
+
},
|
|
328
|
+
ux: { type: 'string', description: 'How the user moves through it' },
|
|
329
|
+
ui: { type: 'string', description: 'What it looks like' },
|
|
330
|
+
proofs: { type: 'array', items: OriginProofSchema },
|
|
331
|
+
algorithms: {
|
|
332
|
+
type: 'array',
|
|
333
|
+
items: {
|
|
334
|
+
type: 'object',
|
|
335
|
+
properties: {
|
|
336
|
+
name: { type: 'string' },
|
|
337
|
+
steps: {
|
|
338
|
+
type: 'array',
|
|
339
|
+
items: { type: 'string' },
|
|
340
|
+
description: 'The rule the original code applies, step by step'
|
|
341
|
+
},
|
|
342
|
+
proof: OriginProofSchema,
|
|
343
|
+
},
|
|
344
|
+
required: ['name', 'steps', 'proof'],
|
|
345
|
+
additionalProperties: false,
|
|
346
|
+
},
|
|
347
|
+
description: 'Business rules the original code implements that a rewrite must reproduce'
|
|
348
|
+
},
|
|
349
|
+
complexity: {
|
|
350
|
+
type: 'number',
|
|
351
|
+
minimum: 1,
|
|
352
|
+
maximum: 2,
|
|
353
|
+
description: 'How much work reproducing this story is, from 1 to 2'
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
required: ['code', 'narrative', 'specification', 'ux', 'ui', 'proofs', 'algorithms', 'complexity'],
|
|
357
|
+
additionalProperties: false,
|
|
358
|
+
};
|
|
359
|
+
export const AreaAlignmentSchema = {
|
|
360
|
+
type: 'object',
|
|
361
|
+
title: 'AreaAlignment',
|
|
362
|
+
description: 'Which of the four areas each role, permission and story of the original belongs to',
|
|
363
|
+
properties: {
|
|
364
|
+
areas: {
|
|
365
|
+
type: 'array',
|
|
366
|
+
items: {
|
|
367
|
+
type: 'object',
|
|
368
|
+
properties: {
|
|
369
|
+
area: { type: 'string', enum: Object.values(ProjectArea) },
|
|
370
|
+
roles: { type: 'array', items: { type: 'string' } },
|
|
371
|
+
permissions: { type: 'array', items: { type: 'string' } },
|
|
372
|
+
stories: {
|
|
373
|
+
type: 'array',
|
|
374
|
+
items: { type: 'string' },
|
|
375
|
+
description: 'The codes of the stories that belong to this area'
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
required: ['area', 'roles', 'permissions', 'stories'],
|
|
379
|
+
additionalProperties: false,
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
unmapped: {
|
|
383
|
+
type: 'array',
|
|
384
|
+
items: { type: 'string' },
|
|
385
|
+
description: 'Roles or permissions that fit no area'
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
required: ['areas', 'unmapped'],
|
|
389
|
+
additionalProperties: false,
|
|
390
|
+
};
|
|
391
|
+
export const SeedDetectionSchema = {
|
|
392
|
+
type: 'object',
|
|
393
|
+
title: 'SeedDetection',
|
|
394
|
+
description: 'Which data files the application needs to make sense, and which are exports of it',
|
|
395
|
+
properties: {
|
|
396
|
+
items: {
|
|
397
|
+
type: 'array',
|
|
398
|
+
items: {
|
|
399
|
+
type: 'object',
|
|
400
|
+
properties: {
|
|
401
|
+
path: { type: 'string' },
|
|
402
|
+
name: { type: 'string', description: 'A short name for the data, lowercase and hyphenated' },
|
|
403
|
+
seed: {
|
|
404
|
+
type: 'boolean',
|
|
405
|
+
description: 'True when the application needs this data to make sense'
|
|
406
|
+
},
|
|
407
|
+
carry: {
|
|
408
|
+
type: 'boolean',
|
|
409
|
+
description: 'True when the converted application should be given this data too'
|
|
410
|
+
},
|
|
411
|
+
reason: { type: 'string', maxLength: 240 },
|
|
412
|
+
},
|
|
413
|
+
required: ['path', 'name', 'seed', 'carry', 'reason'],
|
|
414
|
+
additionalProperties: false,
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
required: ['items'],
|
|
419
|
+
additionalProperties: false,
|
|
420
|
+
};
|
|
421
|
+
export const DesignInferenceSchema = {
|
|
422
|
+
type: 'object',
|
|
423
|
+
title: 'DesignInference',
|
|
424
|
+
description: 'The visual design of the original application, described so it can be rebuilt',
|
|
425
|
+
properties: {
|
|
426
|
+
concept: {
|
|
427
|
+
type: 'string',
|
|
428
|
+
description: 'The design concept in prose - mood, density, tone of voice'
|
|
429
|
+
},
|
|
430
|
+
palette: {
|
|
431
|
+
type: 'array',
|
|
432
|
+
items: { type: 'string' },
|
|
433
|
+
description: 'The colours the original uses, as CSS colour values'
|
|
434
|
+
},
|
|
435
|
+
radius: { type: 'string', nullable: true, description: 'The corner radius, as a CSS length' },
|
|
436
|
+
font: { type: 'string', nullable: true, description: 'The primary font family' },
|
|
437
|
+
},
|
|
438
|
+
required: ['concept', 'palette'],
|
|
439
|
+
additionalProperties: false,
|
|
440
|
+
};
|
|
441
|
+
// --- record elements ------------------------------------------------------------------------
|
|
442
|
+
const isoDate = { type: 'string', maxLength: 32 };
|
|
443
|
+
export const ConversionEstimateSchema = {
|
|
444
|
+
type: 'object',
|
|
445
|
+
properties: {
|
|
446
|
+
stage: { type: 'string', enum: Object.values(ConversionStage) },
|
|
447
|
+
version: { type: 'number' },
|
|
448
|
+
roles: {
|
|
449
|
+
type: 'array',
|
|
450
|
+
items: {
|
|
451
|
+
type: 'object',
|
|
452
|
+
properties: {
|
|
453
|
+
role: { type: 'string', enum: Object.values(ModelRole) },
|
|
454
|
+
calls: { type: 'number' },
|
|
455
|
+
inputTokens: { type: 'number' },
|
|
456
|
+
outputTokens: { type: 'number' },
|
|
457
|
+
steps: { type: 'array', items: { type: 'string', maxLength: 128 } },
|
|
458
|
+
},
|
|
459
|
+
required: ['role', 'calls', 'inputTokens', 'outputTokens', 'steps'],
|
|
460
|
+
additionalProperties: false,
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
inputTokens: { type: 'number' },
|
|
464
|
+
outputTokens: { type: 'number' },
|
|
465
|
+
usd: { type: 'number' },
|
|
466
|
+
credits: { type: 'number' },
|
|
467
|
+
// A delegated conversion runs its model calls on the parent agent, so `usd`/`credits` are 0
|
|
468
|
+
// and this is what says the zero is a mode rather than a missing price.
|
|
469
|
+
delegated: { type: 'boolean' },
|
|
470
|
+
basis: {
|
|
471
|
+
type: 'object',
|
|
472
|
+
properties: {
|
|
473
|
+
files: { type: 'number' },
|
|
474
|
+
bytes: { type: 'number' },
|
|
475
|
+
storyCount: { type: 'number', nullable: true },
|
|
476
|
+
sampleRatio: { type: 'number' },
|
|
477
|
+
retryFactor: { type: 'number' },
|
|
478
|
+
},
|
|
479
|
+
required: ['files', 'bytes', 'sampleRatio', 'retryFactor'],
|
|
480
|
+
additionalProperties: false,
|
|
481
|
+
},
|
|
482
|
+
computedAt: isoDate,
|
|
483
|
+
},
|
|
484
|
+
required: [
|
|
485
|
+
'stage', 'version', 'roles', 'inputTokens', 'outputTokens', 'usd', 'credits', 'delegated',
|
|
486
|
+
'basis', 'computedAt'
|
|
487
|
+
],
|
|
488
|
+
additionalProperties: false,
|
|
489
|
+
};
|
|
490
|
+
export const StoryEstimateBandSchema = {
|
|
491
|
+
type: 'object',
|
|
492
|
+
properties: {
|
|
493
|
+
minUsd: { type: 'number' },
|
|
494
|
+
maxUsd: { type: 'number' },
|
|
495
|
+
minCredits: { type: 'number' },
|
|
496
|
+
maxCredits: { type: 'number' },
|
|
497
|
+
perStory: {
|
|
498
|
+
type: 'array',
|
|
499
|
+
items: {
|
|
500
|
+
type: 'object',
|
|
501
|
+
properties: {
|
|
502
|
+
code: { type: 'string', maxLength: 32 },
|
|
503
|
+
complexity: { type: 'number' },
|
|
504
|
+
minUsd: { type: 'number' },
|
|
505
|
+
maxUsd: { type: 'number' },
|
|
506
|
+
},
|
|
507
|
+
required: ['code', 'complexity', 'minUsd', 'maxUsd'],
|
|
508
|
+
additionalProperties: false,
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
},
|
|
512
|
+
required: ['minUsd', 'maxUsd', 'minCredits', 'maxCredits', 'perStory'],
|
|
513
|
+
additionalProperties: false,
|
|
514
|
+
};
|
|
515
|
+
export const ConversionAnswerSchema = {
|
|
516
|
+
type: 'object',
|
|
517
|
+
properties: {
|
|
518
|
+
inquiryId: { type: 'string', minLength: 1, maxLength: 128 },
|
|
519
|
+
value: { type: 'string', maxLength: CONNECT_INQUIRY_MAX_TEXT, nullable: true },
|
|
520
|
+
declined: { type: 'boolean', nullable: true },
|
|
521
|
+
},
|
|
522
|
+
required: ['inquiryId'],
|
|
523
|
+
additionalProperties: false,
|
|
524
|
+
};
|
|
525
|
+
export const ConversionStackRefSchema = {
|
|
526
|
+
type: 'object',
|
|
527
|
+
properties: {
|
|
528
|
+
id: { type: 'string', enum: Object.values(StackId) },
|
|
529
|
+
family: { type: 'string', enum: Object.values(StackFamily) },
|
|
530
|
+
label: { type: 'string', maxLength: 128 },
|
|
531
|
+
language: { type: 'string', maxLength: 64 },
|
|
532
|
+
framework: { type: 'string', maxLength: 128, nullable: true },
|
|
533
|
+
},
|
|
534
|
+
required: ['id', 'family', 'label', 'language'],
|
|
535
|
+
additionalProperties: false,
|
|
536
|
+
};
|
|
537
|
+
export const ConversionInventorySummarySchema = {
|
|
538
|
+
type: 'object',
|
|
539
|
+
properties: {
|
|
540
|
+
files: { type: 'number' },
|
|
541
|
+
bytes: { type: 'number' },
|
|
542
|
+
packages: { type: 'number' },
|
|
543
|
+
workspace: { type: 'string', enum: Object.values(WorkspaceKind) },
|
|
544
|
+
dumps: { type: 'number' },
|
|
545
|
+
seeds: { type: 'number' },
|
|
546
|
+
unlinked: { type: 'array', items: { type: 'string', maxLength: 1024 } },
|
|
547
|
+
truncated: { type: 'boolean' },
|
|
548
|
+
},
|
|
549
|
+
required: [
|
|
550
|
+
'files', 'bytes', 'packages', 'workspace', 'dumps', 'seeds', 'unlinked', 'truncated'
|
|
551
|
+
],
|
|
552
|
+
additionalProperties: false,
|
|
553
|
+
};
|
|
554
|
+
export const ConversionStructureSchema = {
|
|
555
|
+
type: 'object',
|
|
556
|
+
properties: {
|
|
557
|
+
areas: {
|
|
558
|
+
type: 'array',
|
|
559
|
+
items: {
|
|
560
|
+
type: 'object',
|
|
561
|
+
properties: {
|
|
562
|
+
area: { type: 'string', enum: Object.values(ProjectArea) },
|
|
563
|
+
sections: {
|
|
564
|
+
type: 'array',
|
|
565
|
+
items: {
|
|
566
|
+
type: 'object',
|
|
567
|
+
properties: {
|
|
568
|
+
name: { type: 'string', maxLength: 128 },
|
|
569
|
+
stories: {
|
|
570
|
+
type: 'array',
|
|
571
|
+
items: {
|
|
572
|
+
type: 'object',
|
|
573
|
+
properties: {
|
|
574
|
+
code: { type: 'string', maxLength: 32 },
|
|
575
|
+
title: { type: 'string', maxLength: 512 },
|
|
576
|
+
primary: { type: 'boolean', nullable: true },
|
|
577
|
+
},
|
|
578
|
+
required: ['code', 'title'],
|
|
579
|
+
additionalProperties: false,
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
required: ['name', 'stories'],
|
|
584
|
+
additionalProperties: false,
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
required: ['area', 'sections'],
|
|
589
|
+
additionalProperties: false,
|
|
590
|
+
},
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
required: ['areas'],
|
|
594
|
+
additionalProperties: false,
|
|
595
|
+
};
|
|
596
|
+
export const ProjectOriginSchema = {
|
|
597
|
+
type: 'object',
|
|
598
|
+
properties: {
|
|
599
|
+
kind: { type: 'string', enum: Object.values(OriginKind) },
|
|
600
|
+
repoUrl: { type: 'string', maxLength: 2048, nullable: true },
|
|
601
|
+
repoFullName: { type: 'string', maxLength: 256, nullable: true },
|
|
602
|
+
branch: { type: 'string', maxLength: 256, nullable: true },
|
|
603
|
+
state: { type: 'string', enum: [...Object.values(OriginState), null], nullable: true },
|
|
604
|
+
importedAt: { ...isoDate, nullable: true },
|
|
605
|
+
},
|
|
606
|
+
required: ['kind'],
|
|
607
|
+
additionalProperties: false,
|
|
608
|
+
};
|
|
609
|
+
export const ConverterLlmBodySchema = {
|
|
610
|
+
type: 'object',
|
|
611
|
+
properties: { llmMode: { type: 'string', enum: Object.values(ConnectLlm) } },
|
|
612
|
+
required: ['llmMode'],
|
|
613
|
+
additionalProperties: false,
|
|
614
|
+
};
|
|
615
|
+
/** `null` is a value here, not an absence: it means "inherit the profile's setting". */
|
|
616
|
+
export const ConverterProjectLlmBodySchema = {
|
|
617
|
+
type: 'object',
|
|
618
|
+
properties: { llmMode: { type: 'string', enum: [...Object.values(ConnectLlm), null], nullable: true } },
|
|
619
|
+
required: ['llmMode'],
|
|
620
|
+
additionalProperties: false,
|
|
621
|
+
};
|
|
622
|
+
/** The reasons a convertibility verdict can carry, for a consumer building its own enum check. */
|
|
623
|
+
export const ConvertibilityReasonValues = Object.values(ConvertibilityReason);
|
|
624
|
+
export const ConvertibilityVerdictValues = Object.values(ConvertibilityVerdict);
|
|
625
|
+
export const EstimateSliceValues = Object.values(EstimateSlice);
|
|
626
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/convert/schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EACL,gBAAgB,EAAE,e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