@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,33 @@
|
|
|
1
|
+
export var AccessLevel;
|
|
2
|
+
(function (AccessLevel) {
|
|
3
|
+
AccessLevel["Guest"] = "guest";
|
|
4
|
+
AccessLevel["User"] = "user";
|
|
5
|
+
AccessLevel["Permissioned"] = "permissioned";
|
|
6
|
+
/**
|
|
7
|
+
* The project owner. Authenticated and holding the admin marker, which passes every gate —
|
|
8
|
+
* so this level names a marker, never a list of the project's own permissions.
|
|
9
|
+
*/
|
|
10
|
+
AccessLevel["Admin"] = "admin";
|
|
11
|
+
})(AccessLevel || (AccessLevel = {}));
|
|
12
|
+
/**
|
|
13
|
+
* Alias prefixes of the entrypoints a generated project declares.
|
|
14
|
+
*
|
|
15
|
+
* Everything a target app addresses — a screen or an endpoint — is an entrypoint referenced by
|
|
16
|
+
* alias, and the prefix says which side owns it. The pipeline splits access rules by this prefix
|
|
17
|
+
* alone, so it is load-bearing, not decorative.
|
|
18
|
+
*
|
|
19
|
+
* The split is one-sided on purpose: an alias starting with {@link ALIAS_PREFIX_API} is an API
|
|
20
|
+
* entrypoint, and ANYTHING ELSE is a screen. The framework contributes screen aliases of its own
|
|
21
|
+
* (`base`, `home`, `dispatcher`) that carry no prefix at all, so testing for
|
|
22
|
+
* {@link ALIAS_PREFIX_WEB} would silently drop them.
|
|
23
|
+
*/
|
|
24
|
+
export const ALIAS_PREFIX_API = 'api:';
|
|
25
|
+
/** The prefix every GENERATED screen alias carries — see {@link ALIAS_PREFIX_API} for the split. */
|
|
26
|
+
export const ALIAS_PREFIX_WEB = 'web:';
|
|
27
|
+
/**
|
|
28
|
+
* The prefix of a LAYOUT entrypoint — the parent a screen hangs under so the layout wraps it.
|
|
29
|
+
* A layout is addressed like a screen and rendered by the same router, so it has to be excluded
|
|
30
|
+
* explicitly wherever "the entrypoint of this screen" is being resolved.
|
|
31
|
+
*/
|
|
32
|
+
export const ALIAS_PREFIX_WEB_LAYOUT = 'web:layout:';
|
|
33
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/dev/consts.ts"],"names":[],"mappings":"AACA,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,4CAA6B,CAAA;IAC7B;;;OAGG;IACH,8BAAe,CAAA;AACjB,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAEtC,oGAAoG;AACpG,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dev/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,mBAAmB,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dev/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JSONSchemaType } from "ajv";
|
|
2
|
+
import type { FileBlock, AccessList, AccessBlock, EntrypointRef } from "./types.js";
|
|
3
|
+
export declare const FileBlockSchema: JSONSchemaType<FileBlock>;
|
|
4
|
+
export declare const SourceCodeSchema: JSONSchemaType<{
|
|
5
|
+
source: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const TechNameSchema: JSONSchemaType<{
|
|
8
|
+
name: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const EntrypointRefListSchema: JSONSchemaType<{
|
|
11
|
+
entries: EntrypointRef[];
|
|
12
|
+
}>;
|
|
13
|
+
export declare const AccessBlockSchema: JSONSchemaType<AccessBlock>;
|
|
14
|
+
export declare const AccessListSchema: JSONSchemaType<AccessList>;
|
|
15
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/dev/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAGnF,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,SAAS,CAqBrD,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,CAW7D,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAWzD,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,aAAa,EAAE,CAAA;CAAC,CA2B9E,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,WAAW,CAgCzD,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,UAAU,CAOvD,CAAA"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { AccessLevel } from "./consts.js";
|
|
2
|
+
export const FileBlockSchema = {
|
|
3
|
+
type: "object",
|
|
4
|
+
title: "FileList",
|
|
5
|
+
description: "Object with file list",
|
|
6
|
+
properties: {
|
|
7
|
+
files: {
|
|
8
|
+
type: "array",
|
|
9
|
+
items: {
|
|
10
|
+
type: "string",
|
|
11
|
+
description: "Path to file"
|
|
12
|
+
},
|
|
13
|
+
description: "List of file pathes"
|
|
14
|
+
},
|
|
15
|
+
why: {
|
|
16
|
+
type: "string",
|
|
17
|
+
nullable: true,
|
|
18
|
+
description: "Explain why you have choosen this file or none at all"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
required: ["files"],
|
|
22
|
+
additionalProperties: false
|
|
23
|
+
};
|
|
24
|
+
export const SourceCodeSchema = {
|
|
25
|
+
type: "object",
|
|
26
|
+
description: "Source code container",
|
|
27
|
+
properties: {
|
|
28
|
+
source: {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "Source code content"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
required: ["source"],
|
|
34
|
+
additionalProperties: false,
|
|
35
|
+
};
|
|
36
|
+
export const TechNameSchema = {
|
|
37
|
+
type: "object",
|
|
38
|
+
description: "Object with name",
|
|
39
|
+
properties: {
|
|
40
|
+
name: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Technical name"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
required: ["name"],
|
|
46
|
+
additionalProperties: false,
|
|
47
|
+
};
|
|
48
|
+
export const EntrypointRefListSchema = {
|
|
49
|
+
type: "object",
|
|
50
|
+
title: "PossibleEntrypointList",
|
|
51
|
+
description: "Object with a list of entrypoints",
|
|
52
|
+
properties: {
|
|
53
|
+
entries: {
|
|
54
|
+
type: "array",
|
|
55
|
+
description: "List of entrypoints",
|
|
56
|
+
items: {
|
|
57
|
+
type: "object",
|
|
58
|
+
properties: {
|
|
59
|
+
alias: {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "Entrypoint alias, e.g. \"web:task-list\" for a screen or \"api:task:list\" for an endpoint"
|
|
62
|
+
},
|
|
63
|
+
path: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "URL path the entrypoint is registered at, e.g. \"/tasks/:taskId\""
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
required: ["alias", "path"],
|
|
69
|
+
additionalProperties: false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
required: ["entries"],
|
|
74
|
+
additionalProperties: false
|
|
75
|
+
};
|
|
76
|
+
export const AccessBlockSchema = {
|
|
77
|
+
type: "object",
|
|
78
|
+
title: "AccessBlock",
|
|
79
|
+
description: "Object with permissions array and access level",
|
|
80
|
+
properties: {
|
|
81
|
+
permissions: {
|
|
82
|
+
type: "array",
|
|
83
|
+
items: {
|
|
84
|
+
type: "string",
|
|
85
|
+
description: "A permission requirement, spelled \"<resource>--<action>\" — \"--\" is TWO hyphens, "
|
|
86
|
+
+ "lowercase kebab-case, singular resource. Append \"@<routeParam>\" to bind the check "
|
|
87
|
+
+ "to one resource instance, naming a param that this same entrypoint's own path "
|
|
88
|
+
+ "carries: \"enquiry--view@enquiryId\" for a route \"/enquiries/:enquiryId\". "
|
|
89
|
+
+ "Omit the suffix for project-wide permissions such as list or create."
|
|
90
|
+
},
|
|
91
|
+
description: "List of permissions (to get access any should be satisfied)"
|
|
92
|
+
},
|
|
93
|
+
level: {
|
|
94
|
+
type: "string",
|
|
95
|
+
enum: Object.values(AccessLevel),
|
|
96
|
+
description: `
|
|
97
|
+
Access level:
|
|
98
|
+
- guest - means public access without authentication
|
|
99
|
+
- user - means authenticated user access (no specific permissions required)
|
|
100
|
+
- permissioned - means authenticated access with one of specified permissions
|
|
101
|
+
- admin - means the project owner only: authenticated and holding the admin marker
|
|
102
|
+
`
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
required: ["permissions", "level"],
|
|
106
|
+
additionalProperties: false
|
|
107
|
+
};
|
|
108
|
+
export const AccessListSchema = {
|
|
109
|
+
type: "object",
|
|
110
|
+
title: "AccessList",
|
|
111
|
+
description: "Object mapping entrypoint aliases to access blocks",
|
|
112
|
+
properties: {},
|
|
113
|
+
required: [],
|
|
114
|
+
additionalProperties: AccessBlockSchema,
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/dev/schemas.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AccessLevel } from "./consts.js";
|
|
2
|
+
export interface SourceFile {
|
|
3
|
+
path: string;
|
|
4
|
+
code: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PossibleSourceFile extends Partial<SourceFile> {
|
|
7
|
+
path: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FileBlock {
|
|
10
|
+
files: string[];
|
|
11
|
+
why?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AccessBlock {
|
|
14
|
+
/**
|
|
15
|
+
* The gate parameters this entrypoint requires, written exactly as they appear in
|
|
16
|
+
* `gate(OIDC_GATE, [...])`: `<resource>--<action>`, optionally suffixed `@<routeParam>` to bind
|
|
17
|
+
* the check to one resource instance.
|
|
18
|
+
*
|
|
19
|
+
* The selector lives in the STRING rather than in a sibling field, because that is what the model
|
|
20
|
+
* produces however the field is described to it — and because the array is then the gate's
|
|
21
|
+
* argument verbatim, so what was described and what gets written cannot disagree about scoping.
|
|
22
|
+
*
|
|
23
|
+
* The `@` is the gate's syntax alone. It is stripped before a permission is registered or granted:
|
|
24
|
+
* a definition stored under a name containing one is a key nothing looks up, and every grant made
|
|
25
|
+
* against it is a silent no-op.
|
|
26
|
+
*/
|
|
27
|
+
permissions: string[];
|
|
28
|
+
level: AccessLevel;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Access rules keyed by ENTRYPOINT ALIAS — never by URL or route path. The alias prefix decides
|
|
32
|
+
* which side a rule is applied on (`api:` = endpoint, anything else = screen); see
|
|
33
|
+
* `ALIAS_PREFIX_API`.
|
|
34
|
+
*/
|
|
35
|
+
export interface AccessList extends Record<string, AccessBlock> {
|
|
36
|
+
}
|
|
37
|
+
/** One entrypoint as the pipeline refers to it: the alias to address it by, and where it lands. */
|
|
38
|
+
export interface EntrypointRef {
|
|
39
|
+
alias: string;
|
|
40
|
+
path: string;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dev/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,kBAAmB,SAAQ,OAAO,CAAC,UAAU,CAAC;IAC7D,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,KAAK,EAAE,WAAW,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;CAC9D;AAED,mGAAmG;AACnG,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/dev/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Level and effort tiers are owned by `@owlmeans/llm-common` — re-exported here so a
|
|
3
|
+
* consumer of the viable contracts never needs a second import.
|
|
4
|
+
*/
|
|
5
|
+
export { ExecutionEffort, ExecutionLevel } from '@owlmeans/llm-common';
|
|
6
|
+
/**
|
|
7
|
+
* Serializable role name for model selection. Lives in `common` so the platform,
|
|
8
|
+
* the serialized execution state, and a future queue consumer can all name roles.
|
|
9
|
+
*
|
|
10
|
+
* The generic `ModelRole` in `@owlmeans/llm-common` is an open `string`; this enum is
|
|
11
|
+
* viable's concrete instance of it.
|
|
12
|
+
*
|
|
13
|
+
* IMPORTANT: the string values mirror the library `ChatModelPurpose` enum
|
|
14
|
+
* (`packages/library/src/consts.ts`) **value-for-value**. Keep the two in sync
|
|
15
|
+
* until a later phase collapses `ChatModelPurpose` into an alias of `ModelRole`.
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ModelRole {
|
|
18
|
+
SeniorBA = "senior-ba",
|
|
19
|
+
MiddleBA = "middle-ba",
|
|
20
|
+
SeniorUIDeveloper = "senior-ui-developer",
|
|
21
|
+
ProduceManager = "product-manager",
|
|
22
|
+
MiddleDesigner = "middle-designer",
|
|
23
|
+
SeniorDesigner = "senior-designer",
|
|
24
|
+
StateArchitect = "state-architect",
|
|
25
|
+
MiddleDeveloper = "middle-developer",
|
|
26
|
+
SeniorDeveloper = "senior-developer",
|
|
27
|
+
ViewArchitect = "view-architect",
|
|
28
|
+
DataArchitect = "data-architect",
|
|
29
|
+
ApiArchitect = "api-architect",
|
|
30
|
+
NavigationArchitect = "navigation-architect",
|
|
31
|
+
BackendDomainArchitect = "backend-domain-architect",
|
|
32
|
+
DevOrchestrator = "dev-orchestrator",
|
|
33
|
+
Utility = "utility",
|
|
34
|
+
Picker = "picker"
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/execution/consts.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEtE;;;;;;;;;;GAUG;AACH,oBAAY,SAAS;IACnB,QAAQ,cAAc;IACtB,QAAQ,cAAc;IACtB,iBAAiB,wBAAwB;IACzC,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,cAAc,oBAAoB;IAClC,eAAe,qBAAqB;IACpC,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,aAAa,mBAAmB;IAChC,YAAY,kBAAkB;IAC9B,mBAAmB,yBAAyB;IAC5C,sBAAsB,6BAA6B;IACnD,eAAe,qBAAqB;IACpC,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Level and effort tiers are owned by `@owlmeans/llm-common` — re-exported here so a
|
|
3
|
+
* consumer of the viable contracts never needs a second import.
|
|
4
|
+
*/
|
|
5
|
+
export { ExecutionEffort, ExecutionLevel } from '@owlmeans/llm-common';
|
|
6
|
+
/**
|
|
7
|
+
* Serializable role name for model selection. Lives in `common` so the platform,
|
|
8
|
+
* the serialized execution state, and a future queue consumer can all name roles.
|
|
9
|
+
*
|
|
10
|
+
* The generic `ModelRole` in `@owlmeans/llm-common` is an open `string`; this enum is
|
|
11
|
+
* viable's concrete instance of it.
|
|
12
|
+
*
|
|
13
|
+
* IMPORTANT: the string values mirror the library `ChatModelPurpose` enum
|
|
14
|
+
* (`packages/library/src/consts.ts`) **value-for-value**. Keep the two in sync
|
|
15
|
+
* until a later phase collapses `ChatModelPurpose` into an alias of `ModelRole`.
|
|
16
|
+
*/
|
|
17
|
+
export var ModelRole;
|
|
18
|
+
(function (ModelRole) {
|
|
19
|
+
ModelRole["SeniorBA"] = "senior-ba";
|
|
20
|
+
ModelRole["MiddleBA"] = "middle-ba";
|
|
21
|
+
ModelRole["SeniorUIDeveloper"] = "senior-ui-developer";
|
|
22
|
+
ModelRole["ProduceManager"] = "product-manager";
|
|
23
|
+
ModelRole["MiddleDesigner"] = "middle-designer";
|
|
24
|
+
ModelRole["SeniorDesigner"] = "senior-designer";
|
|
25
|
+
ModelRole["StateArchitect"] = "state-architect";
|
|
26
|
+
ModelRole["MiddleDeveloper"] = "middle-developer";
|
|
27
|
+
ModelRole["SeniorDeveloper"] = "senior-developer";
|
|
28
|
+
ModelRole["ViewArchitect"] = "view-architect";
|
|
29
|
+
ModelRole["DataArchitect"] = "data-architect";
|
|
30
|
+
ModelRole["ApiArchitect"] = "api-architect";
|
|
31
|
+
ModelRole["NavigationArchitect"] = "navigation-architect";
|
|
32
|
+
ModelRole["BackendDomainArchitect"] = "backend-domain-architect";
|
|
33
|
+
ModelRole["DevOrchestrator"] = "dev-orchestrator";
|
|
34
|
+
ModelRole["Utility"] = "utility";
|
|
35
|
+
ModelRole["Picker"] = "picker";
|
|
36
|
+
})(ModelRole || (ModelRole = {}));
|
|
37
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/execution/consts.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEtE;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,SAkBX;AAlBD,WAAY,SAAS;IACnB,mCAAsB,CAAA;IACtB,mCAAsB,CAAA;IACtB,sDAAyC,CAAA;IACzC,+CAAkC,CAAA;IAClC,+CAAkC,CAAA;IAClC,+CAAkC,CAAA;IAClC,+CAAkC,CAAA;IAClC,iDAAoC,CAAA;IACpC,iDAAoC,CAAA;IACpC,6CAAgC,CAAA;IAChC,6CAAgC,CAAA;IAChC,2CAA8B,CAAA;IAC9B,yDAA4C,CAAA;IAC5C,gEAAmD,CAAA;IACnD,iDAAoC,CAAA;IACpC,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;AACnB,CAAC,EAlBW,SAAS,KAAT,SAAS,QAkBpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAA;AAC3B,mBAAmB,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { BlueprintRef } from '../blueprint/types.js';
|
|
2
|
+
import type { ExecutionState as LlmExecutionState, TaskExecutionState as LlmTaskExecutionState } from '@owlmeans/llm-common';
|
|
3
|
+
import type { PurposeMetadata } from '../agent/types.js';
|
|
4
|
+
import type { AgentProject, Entity, UserStory } from '../ba/types.js';
|
|
5
|
+
import type { UXTransition } from '../ux/types.js';
|
|
6
|
+
import type { SeniorityMode } from '../consts.js';
|
|
7
|
+
/**
|
|
8
|
+
* Model-selection contracts are owned by `@owlmeans/llm-common` — the JSON-safe config
|
|
9
|
+
* patch, the alias-or-patch override, and the inheritable policy whose resolution
|
|
10
|
+
* precedence is roleOverride → modelOverride → effort tier → `LlmService.getModel`.
|
|
11
|
+
* Viable adds no fields to them, so they are re-exported rather than redeclared.
|
|
12
|
+
*/
|
|
13
|
+
export type { ModelConfigPatch, ModelConfigOverride, ModelPolicy } from '@owlmeans/llm-common';
|
|
14
|
+
/**
|
|
15
|
+
* Serializable execution state — no functions, no `FileHelper`, no models.
|
|
16
|
+
* The runtime `Execution` (library) = this state + attached collaborators.
|
|
17
|
+
* Extends the generic `@owlmeans/llm-common` state with the viable domain context
|
|
18
|
+
* every performer needs.
|
|
19
|
+
*/
|
|
20
|
+
export interface ExecutionState extends LlmExecutionState {
|
|
21
|
+
purpose: PurposeMetadata;
|
|
22
|
+
slot?: string;
|
|
23
|
+
projectId?: string;
|
|
24
|
+
entityId?: string;
|
|
25
|
+
project?: AgentProject;
|
|
26
|
+
entities?: Entity[];
|
|
27
|
+
/**
|
|
28
|
+
* Which blueprint this run is building against, as an id plus an override patch.
|
|
29
|
+
*
|
|
30
|
+
* A REFERENCE and never the resolved blueprint: an execution state is written into the pipeline
|
|
31
|
+
* run row at every step boundary, and that row holds keys, never artifacts. The resolved value
|
|
32
|
+
* is reconstructed from these two fields whenever a helper asks for it, which also means a
|
|
33
|
+
* blueprint the platform has since corrected reaches a resumed run rather than the copy that was
|
|
34
|
+
* frozen into it.
|
|
35
|
+
*
|
|
36
|
+
* Absent means the platform default — every project created before blueprints existed.
|
|
37
|
+
*/
|
|
38
|
+
blueprint?: BlueprintRef;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Adds viable's task context to the generic resumable fields (`phase` / `completed` /
|
|
42
|
+
* `cursor` / `data`). The base fields come from viable's own {@link ExecutionState},
|
|
43
|
+
* so only the resumable half of the llm state is mixed in.
|
|
44
|
+
*/
|
|
45
|
+
export interface TaskExecutionState extends ExecutionState, Omit<LlmTaskExecutionState, keyof LlmExecutionState> {
|
|
46
|
+
mode?: SeniorityMode;
|
|
47
|
+
story?: UserStory;
|
|
48
|
+
transitions?: UXTransition[];
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/execution/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EACV,cAAc,IAAI,iBAAiB,EAAE,kBAAkB,IAAI,qBAAqB,EACjF,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD;;;;;GAKG;AACH,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAE9F;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,OAAO,EAAE,eAAe,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,YAAY,CAAA;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBACf,SAAQ,cAAc,EAAE,IAAI,CAAC,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;IAC5E,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,WAAW,CAAC,EAAE,YAAY,EAAE,CAAA;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/execution/types.ts"],"names":[],"mappings":""}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type * from './types.js';
|
|
2
|
+
export * from './ba/index.js';
|
|
3
|
+
export * from './dev/index.js';
|
|
4
|
+
export * from './ux/index.js';
|
|
5
|
+
export * from './preview/index.js';
|
|
6
|
+
export * from './agent/index.js';
|
|
7
|
+
export * from './consts.js';
|
|
8
|
+
export * from './metadata/index.js';
|
|
9
|
+
export * from './areas/index.js';
|
|
10
|
+
export * from './execution/index.js';
|
|
11
|
+
export * from './skills/index.js';
|
|
12
|
+
export * from './moderation/index.js';
|
|
13
|
+
export * from './integrity/index.js';
|
|
14
|
+
export * from './topology/index.js';
|
|
15
|
+
export * from './blueprint/index.js';
|
|
16
|
+
export * from './slot/index.js';
|
|
17
|
+
export * from './connect/index.js';
|
|
18
|
+
export * from './convert/index.js';
|
|
19
|
+
export * from './scaffold/index.js';
|
|
20
|
+
export * from './design/index.js';
|
|
21
|
+
export * from './branding.js';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './ba/index.js';
|
|
2
|
+
export * from './dev/index.js';
|
|
3
|
+
export * from './ux/index.js';
|
|
4
|
+
export * from './preview/index.js';
|
|
5
|
+
export * from './agent/index.js';
|
|
6
|
+
export * from './consts.js';
|
|
7
|
+
export * from './metadata/index.js';
|
|
8
|
+
export * from './areas/index.js';
|
|
9
|
+
export * from './execution/index.js';
|
|
10
|
+
export * from './skills/index.js';
|
|
11
|
+
export * from './moderation/index.js';
|
|
12
|
+
export * from './integrity/index.js';
|
|
13
|
+
export * from './topology/index.js';
|
|
14
|
+
export * from './blueprint/index.js';
|
|
15
|
+
export * from './slot/index.js';
|
|
16
|
+
export * from './connect/index.js';
|
|
17
|
+
export * from './convert/index.js';
|
|
18
|
+
export * from './scaffold/index.js';
|
|
19
|
+
export * from './design/index.js';
|
|
20
|
+
export * from './branding.js';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA"}
|