@ztothez/design-engineering 2.0.0
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/LICENSE +15 -0
- package/README.md +448 -0
- package/ROADMAP.md +127 -0
- package/SKILL.md +698 -0
- package/V2-ROADMAP.md +431 -0
- package/V3-ROADMAP.md +605 -0
- package/V4-ROADMAP.md +283 -0
- package/clean-room-ux-design-spec.md +1431 -0
- package/dist/cli/aggregate-gates.d.ts +2 -0
- package/dist/cli/aggregate-gates.js +86 -0
- package/dist/cli/aggregate-gates.js.map +1 -0
- package/dist/cli/assess-maintainer-review.d.ts +2 -0
- package/dist/cli/assess-maintainer-review.js +72 -0
- package/dist/cli/assess-maintainer-review.js.map +1 -0
- package/dist/cli/audit.d.ts +2 -0
- package/dist/cli/audit.js +71 -0
- package/dist/cli/audit.js.map +1 -0
- package/dist/cli/compile-comparison-review.d.ts +2 -0
- package/dist/cli/compile-comparison-review.js +154 -0
- package/dist/cli/compile-comparison-review.js.map +1 -0
- package/dist/cli/compile-plan.d.ts +2 -0
- package/dist/cli/compile-plan.js +66 -0
- package/dist/cli/compile-plan.js.map +1 -0
- package/dist/cli/evaluate-corpus.d.ts +2 -0
- package/dist/cli/evaluate-corpus.js +65 -0
- package/dist/cli/evaluate-corpus.js.map +1 -0
- package/dist/cli/generate-react.d.ts +2 -0
- package/dist/cli/generate-react.js +83 -0
- package/dist/cli/generate-react.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +58 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/portfolio.d.ts +2 -0
- package/dist/cli/portfolio.js +316 -0
- package/dist/cli/portfolio.js.map +1 -0
- package/dist/cli/quality-gate.d.ts +2 -0
- package/dist/cli/quality-gate.js +131 -0
- package/dist/cli/quality-gate.js.map +1 -0
- package/dist/cli/repair-react.d.ts +2 -0
- package/dist/cli/repair-react.js +163 -0
- package/dist/cli/repair-react.js.map +1 -0
- package/dist/cli/review-heuristics.d.ts +2 -0
- package/dist/cli/review-heuristics.js +68 -0
- package/dist/cli/review-heuristics.js.map +1 -0
- package/dist/cli/validate-brief.d.ts +2 -0
- package/dist/cli/validate-brief.js +58 -0
- package/dist/cli/validate-brief.js.map +1 -0
- package/dist/cli/validate-comparison.d.ts +2 -0
- package/dist/cli/validate-comparison.js +68 -0
- package/dist/cli/validate-comparison.js.map +1 -0
- package/dist/cli/validate-contract.d.ts +2 -0
- package/dist/cli/validate-contract.js +54 -0
- package/dist/cli/validate-contract.js.map +1 -0
- package/dist/cli/validate-design.d.ts +2 -0
- package/dist/cli/validate-design.js +53 -0
- package/dist/cli/validate-design.js.map +1 -0
- package/dist/cli/validate-information.d.ts +2 -0
- package/dist/cli/validate-information.js +53 -0
- package/dist/cli/validate-information.js.map +1 -0
- package/dist/cli/validate-trust.d.ts +2 -0
- package/dist/cli/validate-trust.js +53 -0
- package/dist/cli/validate-trust.js.map +1 -0
- package/dist/cli/verify-ui.d.ts +2 -0
- package/dist/cli/verify-ui.js +181 -0
- package/dist/cli/verify-ui.js.map +1 -0
- package/dist/src/acceptance/evaluator.d.ts +13 -0
- package/dist/src/acceptance/evaluator.js +201 -0
- package/dist/src/acceptance/evaluator.js.map +1 -0
- package/dist/src/acceptance/loader.d.ts +2 -0
- package/dist/src/acceptance/loader.js +18 -0
- package/dist/src/acceptance/loader.js.map +1 -0
- package/dist/src/acceptance/report.d.ts +2 -0
- package/dist/src/acceptance/report.js +18 -0
- package/dist/src/acceptance/report.js.map +1 -0
- package/dist/src/acceptance/schema.d.ts +64 -0
- package/dist/src/acceptance/schema.js +57 -0
- package/dist/src/acceptance/schema.js.map +1 -0
- package/dist/src/acceptance/types.d.ts +47 -0
- package/dist/src/acceptance/types.js +2 -0
- package/dist/src/acceptance/types.js.map +1 -0
- package/dist/src/aggregate/report.d.ts +2 -0
- package/dist/src/aggregate/report.js +33 -0
- package/dist/src/aggregate/report.js.map +1 -0
- package/dist/src/aggregate/runner.d.ts +2 -0
- package/dist/src/aggregate/runner.js +165 -0
- package/dist/src/aggregate/runner.js.map +1 -0
- package/dist/src/aggregate/schema.d.ts +182 -0
- package/dist/src/aggregate/schema.js +54 -0
- package/dist/src/aggregate/schema.js.map +1 -0
- package/dist/src/aggregate/types.d.ts +57 -0
- package/dist/src/aggregate/types.js +2 -0
- package/dist/src/aggregate/types.js.map +1 -0
- package/dist/src/audit/policy.d.ts +3 -0
- package/dist/src/audit/policy.js +45 -0
- package/dist/src/audit/policy.js.map +1 -0
- package/dist/src/audit/report.d.ts +2 -0
- package/dist/src/audit/report.js +32 -0
- package/dist/src/audit/report.js.map +1 -0
- package/dist/src/audit/rules/accessibility-name.d.ts +2 -0
- package/dist/src/audit/rules/accessibility-name.js +64 -0
- package/dist/src/audit/rules/accessibility-name.js.map +1 -0
- package/dist/src/audit/rules/component-size.d.ts +2 -0
- package/dist/src/audit/rules/component-size.js +27 -0
- package/dist/src/audit/rules/component-size.js.map +1 -0
- package/dist/src/audit/rules/credential-placeholder.d.ts +2 -0
- package/dist/src/audit/rules/credential-placeholder.js +83 -0
- package/dist/src/audit/rules/credential-placeholder.js.map +1 -0
- package/dist/src/audit/rules/helpers.d.ts +16 -0
- package/dist/src/audit/rules/helpers.js +64 -0
- package/dist/src/audit/rules/helpers.js.map +1 -0
- package/dist/src/audit/rules/index.d.ts +2 -0
- package/dist/src/audit/rules/index.js +23 -0
- package/dist/src/audit/rules/index.js.map +1 -0
- package/dist/src/audit/rules/interactive-integrity.d.ts +2 -0
- package/dist/src/audit/rules/interactive-integrity.js +111 -0
- package/dist/src/audit/rules/interactive-integrity.js.map +1 -0
- package/dist/src/audit/rules/mixed-responsibilities.d.ts +2 -0
- package/dist/src/audit/rules/mixed-responsibilities.js +39 -0
- package/dist/src/audit/rules/mixed-responsibilities.js.map +1 -0
- package/dist/src/audit/rules/mock-production-path.d.ts +2 -0
- package/dist/src/audit/rules/mock-production-path.js +39 -0
- package/dist/src/audit/rules/mock-production-path.js.map +1 -0
- package/dist/src/audit/rules/network-state.d.ts +2 -0
- package/dist/src/audit/rules/network-state.js +39 -0
- package/dist/src/audit/rules/network-state.js.map +1 -0
- package/dist/src/audit/rules/operational-claim.d.ts +2 -0
- package/dist/src/audit/rules/operational-claim.js +94 -0
- package/dist/src/audit/rules/operational-claim.js.map +1 -0
- package/dist/src/audit/rules/placeholder-interaction.d.ts +2 -0
- package/dist/src/audit/rules/placeholder-interaction.js +46 -0
- package/dist/src/audit/rules/placeholder-interaction.js.map +1 -0
- package/dist/src/audit/rules/raw-design-values.d.ts +2 -0
- package/dist/src/audit/rules/raw-design-values.js +97 -0
- package/dist/src/audit/rules/raw-design-values.js.map +1 -0
- package/dist/src/audit/scanner.d.ts +2 -0
- package/dist/src/audit/scanner.js +215 -0
- package/dist/src/audit/scanner.js.map +1 -0
- package/dist/src/audit/types.d.ts +62 -0
- package/dist/src/audit/types.js +2 -0
- package/dist/src/audit/types.js.map +1 -0
- package/dist/src/comparison/evaluator.d.ts +2 -0
- package/dist/src/comparison/evaluator.js +478 -0
- package/dist/src/comparison/evaluator.js.map +1 -0
- package/dist/src/comparison/loader.d.ts +3 -0
- package/dist/src/comparison/loader.js +26 -0
- package/dist/src/comparison/loader.js.map +1 -0
- package/dist/src/comparison/maintainer.d.ts +47 -0
- package/dist/src/comparison/maintainer.js +218 -0
- package/dist/src/comparison/maintainer.js.map +1 -0
- package/dist/src/comparison/report.d.ts +2 -0
- package/dist/src/comparison/report.js +48 -0
- package/dist/src/comparison/report.js.map +1 -0
- package/dist/src/comparison/schema.d.ts +464 -0
- package/dist/src/comparison/schema.js +502 -0
- package/dist/src/comparison/schema.js.map +1 -0
- package/dist/src/contracts/archetypes.d.ts +21 -0
- package/dist/src/contracts/archetypes.js +102 -0
- package/dist/src/contracts/archetypes.js.map +1 -0
- package/dist/src/contracts/journeys.d.ts +7 -0
- package/dist/src/contracts/journeys.js +32 -0
- package/dist/src/contracts/journeys.js.map +1 -0
- package/dist/src/contracts/report.d.ts +2 -0
- package/dist/src/contracts/report.js +33 -0
- package/dist/src/contracts/report.js.map +1 -0
- package/dist/src/contracts/schema.d.ts +1038 -0
- package/dist/src/contracts/schema.js +385 -0
- package/dist/src/contracts/schema.js.map +1 -0
- package/dist/src/contracts/validator.d.ts +12 -0
- package/dist/src/contracts/validator.js +303 -0
- package/dist/src/contracts/validator.js.map +1 -0
- package/dist/src/corpus/evaluator.d.ts +2 -0
- package/dist/src/corpus/evaluator.js +203 -0
- package/dist/src/corpus/evaluator.js.map +1 -0
- package/dist/src/corpus/loader.d.ts +2 -0
- package/dist/src/corpus/loader.js +20 -0
- package/dist/src/corpus/loader.js.map +1 -0
- package/dist/src/corpus/report.d.ts +2 -0
- package/dist/src/corpus/report.js +33 -0
- package/dist/src/corpus/report.js.map +1 -0
- package/dist/src/corpus/schema.d.ts +316 -0
- package/dist/src/corpus/schema.js +269 -0
- package/dist/src/corpus/schema.js.map +1 -0
- package/dist/src/design-intelligence/loader.d.ts +2 -0
- package/dist/src/design-intelligence/loader.js +21 -0
- package/dist/src/design-intelligence/loader.js.map +1 -0
- package/dist/src/design-intelligence/report.d.ts +2 -0
- package/dist/src/design-intelligence/report.js +36 -0
- package/dist/src/design-intelligence/report.js.map +1 -0
- package/dist/src/design-intelligence/schema.d.ts +838 -0
- package/dist/src/design-intelligence/schema.js +854 -0
- package/dist/src/design-intelligence/schema.js.map +1 -0
- package/dist/src/design-intelligence/validator.d.ts +2 -0
- package/dist/src/design-intelligence/validator.js +1371 -0
- package/dist/src/design-intelligence/validator.js.map +1 -0
- package/dist/src/design-plan/compiler.d.ts +8 -0
- package/dist/src/design-plan/compiler.js +288 -0
- package/dist/src/design-plan/compiler.js.map +1 -0
- package/dist/src/design-plan/report.d.ts +2 -0
- package/dist/src/design-plan/report.js +28 -0
- package/dist/src/design-plan/report.js.map +1 -0
- package/dist/src/design-plan/schema.d.ts +202 -0
- package/dist/src/design-plan/schema.js +76 -0
- package/dist/src/design-plan/schema.js.map +1 -0
- package/dist/src/generation/loader.d.ts +2 -0
- package/dist/src/generation/loader.js +21 -0
- package/dist/src/generation/loader.js.map +1 -0
- package/dist/src/generation/policy.d.ts +12 -0
- package/dist/src/generation/policy.js +62 -0
- package/dist/src/generation/policy.js.map +1 -0
- package/dist/src/generation/react-typescript.d.ts +6 -0
- package/dist/src/generation/react-typescript.js +538 -0
- package/dist/src/generation/react-typescript.js.map +1 -0
- package/dist/src/generation/report.d.ts +2 -0
- package/dist/src/generation/report.js +21 -0
- package/dist/src/generation/report.js.map +1 -0
- package/dist/src/generation/schema.d.ts +44 -0
- package/dist/src/generation/schema.js +50 -0
- package/dist/src/generation/schema.js.map +1 -0
- package/dist/src/generation/templates/tokens.d.ts +1 -0
- package/dist/src/generation/templates/tokens.js +59 -0
- package/dist/src/generation/templates/tokens.js.map +1 -0
- package/dist/src/heuristics/evaluator.d.ts +2 -0
- package/dist/src/heuristics/evaluator.js +65 -0
- package/dist/src/heuristics/evaluator.js.map +1 -0
- package/dist/src/heuristics/loader.d.ts +2 -0
- package/dist/src/heuristics/loader.js +21 -0
- package/dist/src/heuristics/loader.js.map +1 -0
- package/dist/src/heuristics/report.d.ts +3 -0
- package/dist/src/heuristics/report.js +31 -0
- package/dist/src/heuristics/report.js.map +1 -0
- package/dist/src/heuristics/schema.d.ts +198 -0
- package/dist/src/heuristics/schema.js +197 -0
- package/dist/src/heuristics/schema.js.map +1 -0
- package/dist/src/information-design/loader.d.ts +2 -0
- package/dist/src/information-design/loader.js +21 -0
- package/dist/src/information-design/loader.js.map +1 -0
- package/dist/src/information-design/report.d.ts +2 -0
- package/dist/src/information-design/report.js +27 -0
- package/dist/src/information-design/report.js.map +1 -0
- package/dist/src/information-design/schema.d.ts +370 -0
- package/dist/src/information-design/schema.js +329 -0
- package/dist/src/information-design/schema.js.map +1 -0
- package/dist/src/information-design/validator.d.ts +2 -0
- package/dist/src/information-design/validator.js +242 -0
- package/dist/src/information-design/validator.js.map +1 -0
- package/dist/src/interface-trust/loader.d.ts +2 -0
- package/dist/src/interface-trust/loader.js +21 -0
- package/dist/src/interface-trust/loader.js.map +1 -0
- package/dist/src/interface-trust/report.d.ts +2 -0
- package/dist/src/interface-trust/report.js +26 -0
- package/dist/src/interface-trust/report.js.map +1 -0
- package/dist/src/interface-trust/schema.d.ts +299 -0
- package/dist/src/interface-trust/schema.js +238 -0
- package/dist/src/interface-trust/schema.js.map +1 -0
- package/dist/src/interface-trust/validator.d.ts +2 -0
- package/dist/src/interface-trust/validator.js +283 -0
- package/dist/src/interface-trust/validator.js.map +1 -0
- package/dist/src/portfolio/adapter-report.d.ts +3 -0
- package/dist/src/portfolio/adapter-report.js +38 -0
- package/dist/src/portfolio/adapter-report.js.map +1 -0
- package/dist/src/portfolio/adapters.d.ts +37 -0
- package/dist/src/portfolio/adapters.js +325 -0
- package/dist/src/portfolio/adapters.js.map +1 -0
- package/dist/src/portfolio/evidence.d.ts +9 -0
- package/dist/src/portfolio/evidence.js +233 -0
- package/dist/src/portfolio/evidence.js.map +1 -0
- package/dist/src/portfolio/files.d.ts +8 -0
- package/dist/src/portfolio/files.js +77 -0
- package/dist/src/portfolio/files.js.map +1 -0
- package/dist/src/portfolio/fixture-server.d.ts +11 -0
- package/dist/src/portfolio/fixture-server.js +131 -0
- package/dist/src/portfolio/fixture-server.js.map +1 -0
- package/dist/src/portfolio/loader.d.ts +2 -0
- package/dist/src/portfolio/loader.js +21 -0
- package/dist/src/portfolio/loader.js.map +1 -0
- package/dist/src/portfolio/mcp.d.ts +186 -0
- package/dist/src/portfolio/mcp.js +117 -0
- package/dist/src/portfolio/mcp.js.map +1 -0
- package/dist/src/portfolio/promotion-schema.d.ts +220 -0
- package/dist/src/portfolio/promotion-schema.js +148 -0
- package/dist/src/portfolio/promotion-schema.js.map +1 -0
- package/dist/src/portfolio/promotion.d.ts +4 -0
- package/dist/src/portfolio/promotion.js +160 -0
- package/dist/src/portfolio/promotion.js.map +1 -0
- package/dist/src/portfolio/qualification-schema.d.ts +268 -0
- package/dist/src/portfolio/qualification-schema.js +112 -0
- package/dist/src/portfolio/qualification-schema.js.map +1 -0
- package/dist/src/portfolio/qualification.d.ts +4 -0
- package/dist/src/portfolio/qualification.js +157 -0
- package/dist/src/portfolio/qualification.js.map +1 -0
- package/dist/src/portfolio/registry.d.ts +34 -0
- package/dist/src/portfolio/registry.js +240 -0
- package/dist/src/portfolio/registry.js.map +1 -0
- package/dist/src/portfolio/report.d.ts +4 -0
- package/dist/src/portfolio/report.js +47 -0
- package/dist/src/portfolio/report.js.map +1 -0
- package/dist/src/portfolio/run-schema.d.ts +135 -0
- package/dist/src/portfolio/run-schema.js +81 -0
- package/dist/src/portfolio/run-schema.js.map +1 -0
- package/dist/src/portfolio/runner.d.ts +118 -0
- package/dist/src/portfolio/runner.js +423 -0
- package/dist/src/portfolio/runner.js.map +1 -0
- package/dist/src/portfolio/schema.d.ts +251 -0
- package/dist/src/portfolio/schema.js +317 -0
- package/dist/src/portfolio/schema.js.map +1 -0
- package/dist/src/portfolio/snapshot.d.ts +89 -0
- package/dist/src/portfolio/snapshot.js +548 -0
- package/dist/src/portfolio/snapshot.js.map +1 -0
- package/dist/src/portfolio/taxonomy-schema.d.ts +215 -0
- package/dist/src/portfolio/taxonomy-schema.js +74 -0
- package/dist/src/portfolio/taxonomy-schema.js.map +1 -0
- package/dist/src/portfolio/taxonomy.d.ts +5 -0
- package/dist/src/portfolio/taxonomy.js +236 -0
- package/dist/src/portfolio/taxonomy.js.map +1 -0
- package/dist/src/portfolio/vault.d.ts +53 -0
- package/dist/src/portfolio/vault.js +176 -0
- package/dist/src/portfolio/vault.js.map +1 -0
- package/dist/src/product-brief/loader.d.ts +2 -0
- package/dist/src/product-brief/loader.js +21 -0
- package/dist/src/product-brief/loader.js.map +1 -0
- package/dist/src/product-brief/report.d.ts +2 -0
- package/dist/src/product-brief/report.js +22 -0
- package/dist/src/product-brief/report.js.map +1 -0
- package/dist/src/product-brief/schema.d.ts +367 -0
- package/dist/src/product-brief/schema.js +272 -0
- package/dist/src/product-brief/schema.js.map +1 -0
- package/dist/src/product-brief/validator.d.ts +2 -0
- package/dist/src/product-brief/validator.js +251 -0
- package/dist/src/product-brief/validator.js.map +1 -0
- package/dist/src/product.d.ts +7 -0
- package/dist/src/product.js +28 -0
- package/dist/src/product.js.map +1 -0
- package/dist/src/quality-gate/report.d.ts +2 -0
- package/dist/src/quality-gate/report.js +46 -0
- package/dist/src/quality-gate/report.js.map +1 -0
- package/dist/src/quality-gate/runner.d.ts +2 -0
- package/dist/src/quality-gate/runner.js +175 -0
- package/dist/src/quality-gate/runner.js.map +1 -0
- package/dist/src/quality-gate/schema.d.ts +75 -0
- package/dist/src/quality-gate/schema.js +37 -0
- package/dist/src/quality-gate/schema.js.map +1 -0
- package/dist/src/quality-gate/types.d.ts +49 -0
- package/dist/src/quality-gate/types.js +2 -0
- package/dist/src/quality-gate/types.js.map +1 -0
- package/dist/src/repair/loader.d.ts +2 -0
- package/dist/src/repair/loader.js +11 -0
- package/dist/src/repair/loader.js.map +1 -0
- package/dist/src/repair/policy.d.ts +16 -0
- package/dist/src/repair/policy.js +65 -0
- package/dist/src/repair/policy.js.map +1 -0
- package/dist/src/repair/report.d.ts +2 -0
- package/dist/src/repair/report.js +32 -0
- package/dist/src/repair/report.js.map +1 -0
- package/dist/src/repair/runner.d.ts +17 -0
- package/dist/src/repair/runner.js +511 -0
- package/dist/src/repair/runner.js.map +1 -0
- package/dist/src/repair/schema.d.ts +264 -0
- package/dist/src/repair/schema.js +202 -0
- package/dist/src/repair/schema.js.map +1 -0
- package/dist/src/retrieval/report.d.ts +2 -0
- package/dist/src/retrieval/report.js +21 -0
- package/dist/src/retrieval/report.js.map +1 -0
- package/dist/src/retrieval/schema.d.ts +123 -0
- package/dist/src/retrieval/schema.js +77 -0
- package/dist/src/retrieval/schema.js.map +1 -0
- package/dist/src/retrieval/search.d.ts +26 -0
- package/dist/src/retrieval/search.js +415 -0
- package/dist/src/retrieval/search.js.map +1 -0
- package/dist/src/runtime/advanced-checks.d.ts +6 -0
- package/dist/src/runtime/advanced-checks.js +487 -0
- package/dist/src/runtime/advanced-checks.js.map +1 -0
- package/dist/src/runtime/composition-checks.d.ts +5 -0
- package/dist/src/runtime/composition-checks.js +307 -0
- package/dist/src/runtime/composition-checks.js.map +1 -0
- package/dist/src/runtime/interface-checks.d.ts +12 -0
- package/dist/src/runtime/interface-checks.js +224 -0
- package/dist/src/runtime/interface-checks.js.map +1 -0
- package/dist/src/runtime/policy.d.ts +13 -0
- package/dist/src/runtime/policy.js +97 -0
- package/dist/src/runtime/policy.js.map +1 -0
- package/dist/src/runtime/report.d.ts +2 -0
- package/dist/src/runtime/report.js +48 -0
- package/dist/src/runtime/report.js.map +1 -0
- package/dist/src/runtime/schema.d.ts +406 -0
- package/dist/src/runtime/schema.js +308 -0
- package/dist/src/runtime/schema.js.map +1 -0
- package/dist/src/runtime/types.d.ts +177 -0
- package/dist/src/runtime/types.js +2 -0
- package/dist/src/runtime/types.js.map +1 -0
- package/dist/src/runtime/verifier.d.ts +2 -0
- package/dist/src/runtime/verifier.js +1201 -0
- package/dist/src/runtime/verifier.js.map +1 -0
- package/dist/src/server.d.ts +2 -0
- package/dist/src/server.js +1352 -0
- package/dist/src/server.js.map +1 -0
- package/docs/installation.md +337 -0
- package/knowledge-base/INDEX.md +285 -0
- package/knowledge-base/benchmarks/aegisops/CALIBRATION.md +52 -0
- package/knowledge-base/benchmarks/aegisops/MANIFEST.md +56 -0
- package/knowledge-base/benchmarks/aegisops/SOURCE-EVIDENCE.md +45 -0
- package/knowledge-base/benchmarks/aegisops/acceptance-criteria.md +42 -0
- package/knowledge-base/benchmarks/aegisops/anti-patterns.md +19 -0
- package/knowledge-base/benchmarks/aegisops/attestations.template.yaml +3 -0
- package/knowledge-base/benchmarks/aegisops/attestations.yaml +115 -0
- package/knowledge-base/benchmarks/aegisops/journeys.json +91 -0
- package/knowledge-base/benchmarks/aegisops/product-contract.yaml +328 -0
- package/knowledge-base/benchmarks/azure-optimizer/SOURCE-EVIDENCE.md +26 -0
- package/knowledge-base/benchmarks/azure-optimizer/V2-IMPLEMENTATION.md +39 -0
- package/knowledge-base/benchmarks/azure-optimizer/acceptance-criteria.md +23 -0
- package/knowledge-base/benchmarks/azure-optimizer/anti-patterns.md +13 -0
- package/knowledge-base/benchmarks/azure-optimizer/journeys.json +88 -0
- package/knowledge-base/benchmarks/azure-optimizer/product-contract.yaml +216 -0
- package/knowledge-base/benchmarks/azure-optimizer/v2-human-review-methodology.yaml +171 -0
- package/knowledge-base/benchmarks/azure-optimizer/v2-journeys.json +139 -0
- package/knowledge-base/benchmarks/corpus/PROVENANCE.md +21 -0
- package/knowledge-base/benchmarks/corpus/README.md +30 -0
- package/knowledge-base/benchmarks/corpus/cases/anti-slop-negative/package.json +9 -0
- package/knowledge-base/benchmarks/corpus/cases/anti-slop-negative/src/FakeDashboard.tsx +10 -0
- package/knowledge-base/benchmarks/corpus/cases/anti-slop-positive/package.json +9 -0
- package/knowledge-base/benchmarks/corpus/cases/anti-slop-positive/src/Progress.tsx +15 -0
- package/knowledge-base/benchmarks/corpus/cases/architecture-negative/package.json +9 -0
- package/knowledge-base/benchmarks/corpus/cases/architecture-negative/src/OperationsPanel.tsx +40 -0
- package/knowledge-base/benchmarks/corpus/cases/architecture-positive/package.json +9 -0
- package/knowledge-base/benchmarks/corpus/cases/architecture-positive/src/Dashboard.tsx +17 -0
- package/knowledge-base/benchmarks/corpus/cases/architecture-positive/src/theme.css +15 -0
- package/knowledge-base/benchmarks/corpus/cases/task-incomplete/SOURCE-EVIDENCE.md +3 -0
- package/knowledge-base/benchmarks/corpus/cases/task-incomplete/journeys.json +20 -0
- package/knowledge-base/benchmarks/corpus/cases/task-incomplete/product-contract.yaml +78 -0
- package/knowledge-base/benchmarks/corpus/corpus.schema.yaml +159 -0
- package/knowledge-base/benchmarks/corpus/corpus.yaml +209 -0
- package/knowledge-base/benchmarks/interface-quality/README.md +26 -0
- package/knowledge-base/benchmarks/interface-quality/SOLO-MAINTAINER-TRACK.md +35 -0
- package/knowledge-base/benchmarks/interface-quality/comparison-methodology-v1.1.schema.yaml +288 -0
- package/knowledge-base/benchmarks/interface-quality/comparison-methodology.schema.yaml +235 -0
- package/knowledge-base/benchmarks/interface-quality/comparison-methodology.template.yaml +181 -0
- package/knowledge-base/benchmarks/interface-quality/evidence/example-runtime-report.json +11 -0
- package/knowledge-base/benchmarks/interface-quality/review-session.schema.yaml +14 -0
- package/knowledge-base/benchmarks/interface-quality/review.schema.yaml +296 -0
- package/knowledge-base/benchmarks/interface-quality/review.template.yaml +43 -0
- package/knowledge-base/benchmarks/portfolio-corpus/ADAPTERS.md +68 -0
- package/knowledge-base/benchmarks/portfolio-corpus/PORTFOLIO-RUNNER.md +131 -0
- package/knowledge-base/benchmarks/portfolio-corpus/PRODUCT-TASK-CONTRACTS.md +29 -0
- package/knowledge-base/benchmarks/portfolio-corpus/PROMOTED-RULES.md +31 -0
- package/knowledge-base/benchmarks/portfolio-corpus/archetype-profiles.yaml +26 -0
- package/knowledge-base/benchmarks/portfolio-corpus/product-task-profile.schema.yaml +105 -0
- package/knowledge-base/benchmarks/portfolio-corpus/registry.schema.yaml +188 -0
- package/knowledge-base/benchmarks/portfolio-corpus/registry.template.yaml +63 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/component-size-abstention.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/component-size-negative.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/component-size-positive.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/interactive-integrity-abstention.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/interactive-integrity-negative.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/interactive-integrity-positive.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/raw-design-values-abstention.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/raw-design-values-negative.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-fixtures/raw-design-values-positive.json +10 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-holdout-evaluation.template.json +14 -0
- package/knowledge-base/benchmarks/portfolio-corpus/rule-promotion-evidence.template.json +24 -0
- package/knowledge-base/benchmarks/portfolio-corpus/v3-command-evidence.template.json +17 -0
- package/knowledge-base/benchmarks/portfolio-corpus/v3-qualification-evidence.template.json +29 -0
- package/knowledge-base/benchmarks/scenestart/CALIBRATION.md +95 -0
- package/knowledge-base/benchmarks/scenestart/MANIFEST.md +53 -0
- package/knowledge-base/benchmarks/scenestart/SOURCE-EVIDENCE.md +43 -0
- package/knowledge-base/benchmarks/scenestart/acceptance-criteria.md +59 -0
- package/knowledge-base/benchmarks/scenestart/anti-patterns.md +26 -0
- package/knowledge-base/benchmarks/scenestart/attestations.template.yaml +3 -0
- package/knowledge-base/benchmarks/scenestart/attestations.yaml +21 -0
- package/knowledge-base/benchmarks/scenestart/human-review.md +99 -0
- package/knowledge-base/benchmarks/scenestart/human-review.template.md +105 -0
- package/knowledge-base/benchmarks/scenestart/journeys.json +141 -0
- package/knowledge-base/benchmarks/scenestart/product-contract.yaml +427 -0
- package/knowledge-base/dependencies.yaml +69 -0
- package/knowledge-base/design-intelligence/MASTER.md +87 -0
- package/knowledge-base/design-intelligence/asset-generation.md +66 -0
- package/knowledge-base/design-intelligence/brand-systems.md +69 -0
- package/knowledge-base/design-intelligence/closed-loop-repair.md +95 -0
- package/knowledge-base/design-intelligence/design-deliverable.schema.yaml +1194 -0
- package/knowledge-base/design-intelligence/design-deliverable.template.yaml +591 -0
- package/knowledge-base/design-intelligence/design-plan.md +78 -0
- package/knowledge-base/design-intelligence/design-plan.schema.yaml +621 -0
- package/knowledge-base/design-intelligence/figma-production.md +63 -0
- package/knowledge-base/design-intelligence/generation-adapter.md +72 -0
- package/knowledge-base/design-intelligence/generation-adapter.schema.yaml +47 -0
- package/knowledge-base/design-intelligence/iconography.md +46 -0
- package/knowledge-base/design-intelligence/information-design.md +104 -0
- package/knowledge-base/design-intelligence/information-design.schema.yaml +390 -0
- package/knowledge-base/design-intelligence/information-design.template.yaml +281 -0
- package/knowledge-base/design-intelligence/interaction-recovery-verification.md +72 -0
- package/knowledge-base/design-intelligence/interface-trust.md +103 -0
- package/knowledge-base/design-intelligence/interface-trust.schema.yaml +263 -0
- package/knowledge-base/design-intelligence/interface-trust.template.yaml +173 -0
- package/knowledge-base/design-intelligence/licensing-and-provenance.md +59 -0
- package/knowledge-base/design-intelligence/presentation-design.md +56 -0
- package/knowledge-base/design-intelligence/product-design-brief.md +67 -0
- package/knowledge-base/design-intelligence/product-design-brief.schema.yaml +279 -0
- package/knowledge-base/design-intelligence/product-design-brief.template.yaml +225 -0
- package/knowledge-base/design-intelligence/repair-request.schema.yaml +95 -0
- package/knowledge-base/design-intelligence/repair-request.template.yaml +39 -0
- package/knowledge-base/design-intelligence/visual-accessibility.md +56 -0
- package/knowledge-base/design-intelligence/visual-polish.md +172 -0
- package/knowledge-base/maintained/architecture/MASTER.md +22 -0
- package/knowledge-base/maintained/architecture/component-boundaries.md +30 -0
- package/knowledge-base/maintained/architecture/product-platforms.md +25 -0
- package/knowledge-base/maintained/architecture/quality-attributes-and-evaluation.md +35 -0
- package/knowledge-base/maintained/product-patterns/MASTER.md +10 -0
- package/knowledge-base/maintained/product-patterns/ai-workspaces.md +26 -0
- package/knowledge-base/maintained/product-patterns/operational-dashboards.md +22 -0
- package/knowledge-base/provenance.yaml +196 -0
- package/knowledge-base/retrieval-scope.yaml +43 -0
- package/knowledge-base/usability-evaluation/HEURISTIC_EVALUATION.md +115 -0
- package/knowledge-base/usability-evaluation/heuristic-review.schema.yaml +210 -0
- package/knowledge-base/usability-evaluation/heuristic-review.template.yaml +37 -0
- package/package.json +133 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
export const DEFAULT_RUNTIME_VIEWPORTS = [
|
|
3
|
+
{ name: "mobile-375", width: 375, height: 812 },
|
|
4
|
+
{ name: "tablet-768", width: 768, height: 1024 },
|
|
5
|
+
{ name: "desktop-1024", width: 1024, height: 768 },
|
|
6
|
+
{ name: "wide-1440", width: 1440, height: 900 },
|
|
7
|
+
];
|
|
8
|
+
export const DEFAULT_RUNTIME_COLOR_SCHEMES = ["light"];
|
|
9
|
+
export const DEFAULT_NAVIGATION_TIMEOUT_MS = 30_000;
|
|
10
|
+
export const DEFAULT_SETTLE_MS = 500;
|
|
11
|
+
export const MAX_RUNTIME_VIEWPORTS = 8;
|
|
12
|
+
export const MAX_RUNTIME_JOURNEYS = 10;
|
|
13
|
+
export const MAX_JOURNEY_STEPS = 50;
|
|
14
|
+
const chromiumCandidates = [
|
|
15
|
+
"/usr/bin/chromium",
|
|
16
|
+
"/usr/bin/chromium-browser",
|
|
17
|
+
"/usr/bin/google-chrome",
|
|
18
|
+
"/usr/bin/google-chrome-stable",
|
|
19
|
+
];
|
|
20
|
+
export function resolveChromiumPath(configuredPath) {
|
|
21
|
+
const explicitPath = configuredPath ?? process.env.ZTOTHEZ_DESIGN_CHROMIUM_PATH;
|
|
22
|
+
if (explicitPath) {
|
|
23
|
+
if (!existsSync(explicitPath)) {
|
|
24
|
+
throw new Error(`Configured Chromium executable does not exist: ${explicitPath}`);
|
|
25
|
+
}
|
|
26
|
+
return explicitPath;
|
|
27
|
+
}
|
|
28
|
+
return chromiumCandidates.find((candidate) => existsSync(candidate));
|
|
29
|
+
}
|
|
30
|
+
export function resolveChromiumCdpUrl(configuredUrl) {
|
|
31
|
+
const explicitUrl = configuredUrl ?? process.env.ZTOTHEZ_DESIGN_CHROMIUM_CDP_URL;
|
|
32
|
+
if (!explicitUrl)
|
|
33
|
+
return undefined;
|
|
34
|
+
let url;
|
|
35
|
+
try {
|
|
36
|
+
url = new URL(explicitUrl);
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
throw new Error("Configured Chromium CDP URL must be a valid absolute URL");
|
|
40
|
+
}
|
|
41
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
42
|
+
throw new Error("Configured Chromium CDP URL must use http or https");
|
|
43
|
+
}
|
|
44
|
+
if (!["127.0.0.1", "localhost", "::1"].includes(url.hostname)) {
|
|
45
|
+
throw new Error("Configured Chromium CDP URL must use a loopback host");
|
|
46
|
+
}
|
|
47
|
+
if (url.username || url.password || url.pathname !== "/" || url.search || url.hash) {
|
|
48
|
+
throw new Error("Configured Chromium CDP URL must contain only a loopback origin");
|
|
49
|
+
}
|
|
50
|
+
return url.toString();
|
|
51
|
+
}
|
|
52
|
+
export function validateRuntimeUrl(value) {
|
|
53
|
+
let url;
|
|
54
|
+
try {
|
|
55
|
+
url = new URL(value);
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
throw new Error("Runtime target must be a valid absolute URL");
|
|
59
|
+
}
|
|
60
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
61
|
+
throw new Error("Runtime target must use http or https");
|
|
62
|
+
}
|
|
63
|
+
if (url.username || url.password) {
|
|
64
|
+
throw new Error("Runtime target URL must not contain credentials");
|
|
65
|
+
}
|
|
66
|
+
return url;
|
|
67
|
+
}
|
|
68
|
+
export function validateViewports(viewports) {
|
|
69
|
+
if (viewports.length === 0 || viewports.length > MAX_RUNTIME_VIEWPORTS) {
|
|
70
|
+
throw new Error(`Provide between 1 and ${MAX_RUNTIME_VIEWPORTS} viewports`);
|
|
71
|
+
}
|
|
72
|
+
const names = new Set();
|
|
73
|
+
for (const viewport of viewports) {
|
|
74
|
+
if (!/^[a-z0-9][a-z0-9-]{0,63}$/i.test(viewport.name)) {
|
|
75
|
+
throw new Error(`Invalid viewport name: ${viewport.name}`);
|
|
76
|
+
}
|
|
77
|
+
if (names.has(viewport.name)) {
|
|
78
|
+
throw new Error(`Duplicate viewport name: ${viewport.name}`);
|
|
79
|
+
}
|
|
80
|
+
names.add(viewport.name);
|
|
81
|
+
if (viewport.width < 240 || viewport.width > 3_840) {
|
|
82
|
+
throw new Error(`Viewport width is outside 240-3840: ${viewport.width}`);
|
|
83
|
+
}
|
|
84
|
+
if (viewport.height < 240 || viewport.height > 2_160) {
|
|
85
|
+
throw new Error(`Viewport height is outside 240-2160: ${viewport.height}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export function validateColorSchemes(colorSchemes) {
|
|
90
|
+
if (colorSchemes.length === 0 || colorSchemes.length > 2) {
|
|
91
|
+
throw new Error("Provide one or both supported color schemes: light and dark");
|
|
92
|
+
}
|
|
93
|
+
if (new Set(colorSchemes).size !== colorSchemes.length) {
|
|
94
|
+
throw new Error("Color schemes must be unique");
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../../../src/runtime/policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,MAAM,CAAC,MAAM,yBAAyB,GAA+B;IACnE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;IAC/C,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;IAChD,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE;IAClD,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE;CAChD,CAAC;AACF,MAAM,CAAC,MAAM,6BAA6B,GAAkC,CAAC,OAAO,CAAC,CAAC;AAEtF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AACrC,MAAM,CAAC,MAAM,qBAAqB,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);
|
|
3
|
+
return context.length > 0 ? ` (${context.join(", ")})` : "";
|
|
4
|
+
}
|
|
5
|
+
export function formatRuntimeReport(report) {
|
|
6
|
+
const lines = [
|
|
7
|
+
"# ZtotheZ Design Engineering Runtime Verification",
|
|
8
|
+
"",
|
|
9
|
+
`- URL: \`${report.url}\``,
|
|
10
|
+
`- Browser: ${report.browser}`,
|
|
11
|
+
`- Result: ${report.passed ? "PASS" : "FAIL"}`,
|
|
12
|
+
`- Findings: ${report.summary.errors} errors, ${report.summary.warnings} warnings, ${report.summary.info} info`,
|
|
13
|
+
`- Screenshots: ${report.screenshots.length}`,
|
|
14
|
+
`- Color schemes: ${(report.colorSchemes ?? ["light"]).join(", ")}`,
|
|
15
|
+
`- Screenshot regression: ${report.screenshotRegression.status}`,
|
|
16
|
+
`- Journeys: ${report.journeys.filter((journey) => journey.passed).length}/${report.journeys.length} passed`,
|
|
17
|
+
`- Expected network policies: ${report.expectedNetwork.filter((policy) => policy.satisfied).length}/${report.expectedNetwork.length} satisfied`,
|
|
18
|
+
`- Evidence directory: \`${report.outputDirectory}\``,
|
|
19
|
+
];
|
|
20
|
+
lines.push("", "## Evidence Boundary", "", "### Verifier Limitations", "", ...report.evidenceBoundary.verifierLimitations.map((entry) => `- ${entry}`), "", "### Human Review Required", "", ...report.evidenceBoundary.humanReviewRequired.map((entry) => `- ${entry}`));
|
|
21
|
+
if (report.screenshotRegression.baselinePath) {
|
|
22
|
+
lines.push("", "## Screenshot Regression", "", `- Baseline: \`${report.screenshotRegression.baselinePath}\``, `- Compared: ${report.screenshotRegression.compared}`, `- Mismatches: ${report.screenshotRegression.mismatches.length}`, ...report.screenshotRegression.mismatches.map((entry) => `- ${entry}`));
|
|
23
|
+
}
|
|
24
|
+
if (report.expectedNetwork.length > 0) {
|
|
25
|
+
lines.push("", "## Expected Network Evidence");
|
|
26
|
+
for (const policy of report.expectedNetwork) {
|
|
27
|
+
lines.push("", `### ${policy.satisfied ? "PASS" : "FAIL"} ${policy.id}`, "", `${policy.method} URL containing \`${policy.urlIncludes}\`${policy.status ? ` with status ${policy.status}` : " with a request failure"}: ${policy.occurrences} occurrence(s).`, ...policy.evidence.map((entry) => `- ${entry}`));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (report.journeys.some((journey) => (journey.checkpoints?.length ?? 0) > 0)) {
|
|
31
|
+
lines.push("", "## Interaction Checkpoints");
|
|
32
|
+
for (const journey of report.journeys) {
|
|
33
|
+
for (const checkpoint of journey.checkpoints ?? []) {
|
|
34
|
+
lines.push("", `- ${journey.name}: ${checkpoint.checkpoint} at step ${checkpoint.step} (evidence step ${checkpoint.evidenceStep}) — ${checkpoint.description}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (report.findings.length === 0) {
|
|
39
|
+
lines.push("", "No runtime findings were detected by the configured checks.");
|
|
40
|
+
return lines.join("\n");
|
|
41
|
+
}
|
|
42
|
+
lines.push("", "## Findings");
|
|
43
|
+
for (const finding of report.findings) {
|
|
44
|
+
lines.push("", `### ${finding.severity.toUpperCase()} ${finding.checkId}${findingContext(finding)}`, "", finding.message, ...(finding.selector ? ["", `Selector: \`${finding.selector}\``] : []), "", ...finding.evidence.map((evidence) => `- ${evidence}`));
|
|
45
|
+
}
|
|
46
|
+
return lines.join("\n");
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/runtime/report.ts"],"names":[],"mappings":"AAEA,SAAS,cAAc,CAAC,OAAuB;IAC7C,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,IAAI,WAAW,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,CACxF,OAAO,CACR,CAAC;IACF,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,C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EAAE,CAAC,EACtE,EAAE,EACF,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,QAAQ,EAAE,CAAC,CACvD,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const runtimeViewportSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
width: z.ZodNumber;
|
|
5
|
+
height: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const runtimeColorSchemeSchema: z.ZodEnum<{
|
|
8
|
+
light: "light";
|
|
9
|
+
dark: "dark";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const interactionCheckpointSchema: z.ZodEnum<{
|
|
12
|
+
error: "error";
|
|
13
|
+
start: "start";
|
|
14
|
+
success: "success";
|
|
15
|
+
failure: "failure";
|
|
16
|
+
"preserved-state": "preserved-state";
|
|
17
|
+
keyboard: "keyboard";
|
|
18
|
+
export: "export";
|
|
19
|
+
offline: "offline";
|
|
20
|
+
disconnected: "disconnected";
|
|
21
|
+
loading: "loading";
|
|
22
|
+
empty: "empty";
|
|
23
|
+
partial: "partial";
|
|
24
|
+
stale: "stale";
|
|
25
|
+
unauthorized: "unauthorized";
|
|
26
|
+
}>;
|
|
27
|
+
export declare const journeyStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
|
+
action: z.ZodLiteral<"navigate">;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
action: z.ZodLiteral<"setNetwork">;
|
|
32
|
+
state: z.ZodEnum<{
|
|
33
|
+
offline: "offline";
|
|
34
|
+
online: "online";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
action: z.ZodLiteral<"click">;
|
|
38
|
+
selector: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
action: z.ZodLiteral<"fill">;
|
|
41
|
+
selector: z.ZodString;
|
|
42
|
+
value: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
action: z.ZodLiteral<"press">;
|
|
45
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
46
|
+
value: z.ZodString;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
action: z.ZodLiteral<"waitFor">;
|
|
49
|
+
selector: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
action: z.ZodLiteral<"expectVisible">;
|
|
52
|
+
selector: z.ZodString;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
action: z.ZodLiteral<"expectValue">;
|
|
55
|
+
selector: z.ZodString;
|
|
56
|
+
value: z.ZodString;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
action: z.ZodLiteral<"expectAttribute">;
|
|
59
|
+
selector: z.ZodString;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
value: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
action: z.ZodLiteral<"expectJson">;
|
|
64
|
+
selector: z.ZodString;
|
|
65
|
+
path: z.ZodString;
|
|
66
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
action: z.ZodLiteral<"expectDownload">;
|
|
69
|
+
selector: z.ZodString;
|
|
70
|
+
filenameIncludes: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
action: z.ZodLiteral<"expectResponse">;
|
|
73
|
+
selector: z.ZodString;
|
|
74
|
+
urlIncludes: z.ZodString;
|
|
75
|
+
status: z.ZodNumber;
|
|
76
|
+
method: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
action: z.ZodLiteral<"expectText">;
|
|
79
|
+
selector: z.ZodString;
|
|
80
|
+
value: z.ZodString;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
action: z.ZodLiteral<"checkpoint">;
|
|
83
|
+
checkpoint: z.ZodEnum<{
|
|
84
|
+
error: "error";
|
|
85
|
+
start: "start";
|
|
86
|
+
success: "success";
|
|
87
|
+
failure: "failure";
|
|
88
|
+
"preserved-state": "preserved-state";
|
|
89
|
+
keyboard: "keyboard";
|
|
90
|
+
export: "export";
|
|
91
|
+
offline: "offline";
|
|
92
|
+
disconnected: "disconnected";
|
|
93
|
+
loading: "loading";
|
|
94
|
+
empty: "empty";
|
|
95
|
+
partial: "partial";
|
|
96
|
+
stale: "stale";
|
|
97
|
+
unauthorized: "unauthorized";
|
|
98
|
+
}>;
|
|
99
|
+
}, z.core.$strip>], "action">;
|
|
100
|
+
export declare const runtimeJourneyInteractionSchema: z.ZodObject<{
|
|
101
|
+
task: z.ZodString;
|
|
102
|
+
phases: z.ZodArray<z.ZodEnum<{
|
|
103
|
+
primary: "primary";
|
|
104
|
+
recovery: "recovery";
|
|
105
|
+
}>>;
|
|
106
|
+
applicableStates: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
107
|
+
error: "error";
|
|
108
|
+
disconnected: "disconnected";
|
|
109
|
+
loading: "loading";
|
|
110
|
+
empty: "empty";
|
|
111
|
+
partial: "partial";
|
|
112
|
+
stale: "stale";
|
|
113
|
+
unauthorized: "unauthorized";
|
|
114
|
+
}>>>;
|
|
115
|
+
keyboard: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
export: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
offline: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
export declare const runtimeJourneySchema: z.ZodObject<{
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
task: z.ZodString;
|
|
123
|
+
phases: z.ZodArray<z.ZodEnum<{
|
|
124
|
+
primary: "primary";
|
|
125
|
+
recovery: "recovery";
|
|
126
|
+
}>>;
|
|
127
|
+
applicableStates: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
128
|
+
error: "error";
|
|
129
|
+
disconnected: "disconnected";
|
|
130
|
+
loading: "loading";
|
|
131
|
+
empty: "empty";
|
|
132
|
+
partial: "partial";
|
|
133
|
+
stale: "stale";
|
|
134
|
+
unauthorized: "unauthorized";
|
|
135
|
+
}>>>;
|
|
136
|
+
keyboard: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
export: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
offline: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
141
|
+
action: z.ZodLiteral<"navigate">;
|
|
142
|
+
value: z.ZodString;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
action: z.ZodLiteral<"setNetwork">;
|
|
145
|
+
state: z.ZodEnum<{
|
|
146
|
+
offline: "offline";
|
|
147
|
+
online: "online";
|
|
148
|
+
}>;
|
|
149
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
150
|
+
action: z.ZodLiteral<"click">;
|
|
151
|
+
selector: z.ZodString;
|
|
152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
+
action: z.ZodLiteral<"fill">;
|
|
154
|
+
selector: z.ZodString;
|
|
155
|
+
value: z.ZodString;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
action: z.ZodLiteral<"press">;
|
|
158
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
159
|
+
value: z.ZodString;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
action: z.ZodLiteral<"waitFor">;
|
|
162
|
+
selector: z.ZodString;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
action: z.ZodLiteral<"expectVisible">;
|
|
165
|
+
selector: z.ZodString;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
action: z.ZodLiteral<"expectValue">;
|
|
168
|
+
selector: z.ZodString;
|
|
169
|
+
value: z.ZodString;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
action: z.ZodLiteral<"expectAttribute">;
|
|
172
|
+
selector: z.ZodString;
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
value: z.ZodString;
|
|
175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
+
action: z.ZodLiteral<"expectJson">;
|
|
177
|
+
selector: z.ZodString;
|
|
178
|
+
path: z.ZodString;
|
|
179
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
181
|
+
action: z.ZodLiteral<"expectDownload">;
|
|
182
|
+
selector: z.ZodString;
|
|
183
|
+
filenameIncludes: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
action: z.ZodLiteral<"expectResponse">;
|
|
186
|
+
selector: z.ZodString;
|
|
187
|
+
urlIncludes: z.ZodString;
|
|
188
|
+
status: z.ZodNumber;
|
|
189
|
+
method: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
action: z.ZodLiteral<"expectText">;
|
|
192
|
+
selector: z.ZodString;
|
|
193
|
+
value: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
action: z.ZodLiteral<"checkpoint">;
|
|
196
|
+
checkpoint: z.ZodEnum<{
|
|
197
|
+
error: "error";
|
|
198
|
+
start: "start";
|
|
199
|
+
success: "success";
|
|
200
|
+
failure: "failure";
|
|
201
|
+
"preserved-state": "preserved-state";
|
|
202
|
+
keyboard: "keyboard";
|
|
203
|
+
export: "export";
|
|
204
|
+
offline: "offline";
|
|
205
|
+
disconnected: "disconnected";
|
|
206
|
+
loading: "loading";
|
|
207
|
+
empty: "empty";
|
|
208
|
+
partial: "partial";
|
|
209
|
+
stale: "stale";
|
|
210
|
+
unauthorized: "unauthorized";
|
|
211
|
+
}>;
|
|
212
|
+
}, z.core.$strip>], "action">>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
export declare const runtimeExpectedNetworkSchema: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
method: z.ZodString;
|
|
217
|
+
urlIncludes: z.ZodString;
|
|
218
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
allowRequestFailure: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
+
minOccurrences: z.ZodNumber;
|
|
221
|
+
maxOccurrences: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
export declare const runtimeFindingSchema: z.ZodObject<{
|
|
224
|
+
checkId: z.ZodString;
|
|
225
|
+
severity: z.ZodEnum<{
|
|
226
|
+
error: "error";
|
|
227
|
+
warning: "warning";
|
|
228
|
+
info: "info";
|
|
229
|
+
}>;
|
|
230
|
+
message: z.ZodString;
|
|
231
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
232
|
+
viewport: z.ZodOptional<z.ZodString>;
|
|
233
|
+
journey: z.ZodOptional<z.ZodString>;
|
|
234
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export declare const runtimeScreenshotSchema: z.ZodObject<{
|
|
237
|
+
name: z.ZodString;
|
|
238
|
+
path: z.ZodString;
|
|
239
|
+
width: z.ZodNumber;
|
|
240
|
+
height: z.ZodNumber;
|
|
241
|
+
fullPage: z.ZodBoolean;
|
|
242
|
+
sha256: z.ZodString;
|
|
243
|
+
dynamicSelectors: z.ZodArray<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
export declare const runtimeScreenshotBaselineSchema: z.ZodObject<{
|
|
246
|
+
version: z.ZodLiteral<"1.0">;
|
|
247
|
+
screenshots: z.ZodArray<z.ZodObject<{
|
|
248
|
+
name: z.ZodString;
|
|
249
|
+
width: z.ZodNumber;
|
|
250
|
+
height: z.ZodNumber;
|
|
251
|
+
sha256: z.ZodString;
|
|
252
|
+
dynamicSelectors: z.ZodArray<z.ZodString>;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
export declare const runtimeJourneyResultSchema: z.ZodObject<{
|
|
256
|
+
name: z.ZodString;
|
|
257
|
+
passed: z.ZodBoolean;
|
|
258
|
+
stepsCompleted: z.ZodNumber;
|
|
259
|
+
totalSteps: z.ZodNumber;
|
|
260
|
+
screenshot: z.ZodOptional<z.ZodString>;
|
|
261
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
262
|
+
kind: z.ZodEnum<{
|
|
263
|
+
checkpoint: "checkpoint";
|
|
264
|
+
download: "download";
|
|
265
|
+
response: "response";
|
|
266
|
+
json: "json";
|
|
267
|
+
attribute: "attribute";
|
|
268
|
+
}>;
|
|
269
|
+
step: z.ZodNumber;
|
|
270
|
+
description: z.ZodString;
|
|
271
|
+
path: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strip>>>;
|
|
273
|
+
checkpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
274
|
+
checkpoint: z.ZodEnum<{
|
|
275
|
+
error: "error";
|
|
276
|
+
start: "start";
|
|
277
|
+
success: "success";
|
|
278
|
+
failure: "failure";
|
|
279
|
+
"preserved-state": "preserved-state";
|
|
280
|
+
keyboard: "keyboard";
|
|
281
|
+
export: "export";
|
|
282
|
+
offline: "offline";
|
|
283
|
+
disconnected: "disconnected";
|
|
284
|
+
loading: "loading";
|
|
285
|
+
empty: "empty";
|
|
286
|
+
partial: "partial";
|
|
287
|
+
stale: "stale";
|
|
288
|
+
unauthorized: "unauthorized";
|
|
289
|
+
}>;
|
|
290
|
+
step: z.ZodNumber;
|
|
291
|
+
evidenceStep: z.ZodNumber;
|
|
292
|
+
description: z.ZodString;
|
|
293
|
+
}, z.core.$strip>>>;
|
|
294
|
+
}, z.core.$strip>;
|
|
295
|
+
export declare const runtimeReportSchema: {
|
|
296
|
+
version: z.ZodString;
|
|
297
|
+
url: z.ZodString;
|
|
298
|
+
generatedAt: z.ZodString;
|
|
299
|
+
browser: z.ZodString;
|
|
300
|
+
outputDirectory: z.ZodString;
|
|
301
|
+
viewports: z.ZodArray<z.ZodObject<{
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
width: z.ZodNumber;
|
|
304
|
+
height: z.ZodNumber;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
colorSchemes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
307
|
+
light: "light";
|
|
308
|
+
dark: "dark";
|
|
309
|
+
}>>>;
|
|
310
|
+
screenshots: z.ZodArray<z.ZodObject<{
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
path: z.ZodString;
|
|
313
|
+
width: z.ZodNumber;
|
|
314
|
+
height: z.ZodNumber;
|
|
315
|
+
fullPage: z.ZodBoolean;
|
|
316
|
+
sha256: z.ZodString;
|
|
317
|
+
dynamicSelectors: z.ZodArray<z.ZodString>;
|
|
318
|
+
}, z.core.$strip>>;
|
|
319
|
+
screenshotRegression: z.ZodObject<{
|
|
320
|
+
status: z.ZodEnum<{
|
|
321
|
+
"not-configured": "not-configured";
|
|
322
|
+
created: "created";
|
|
323
|
+
matched: "matched";
|
|
324
|
+
mismatched: "mismatched";
|
|
325
|
+
}>;
|
|
326
|
+
baselinePath: z.ZodOptional<z.ZodString>;
|
|
327
|
+
compared: z.ZodNumber;
|
|
328
|
+
mismatches: z.ZodArray<z.ZodString>;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
journeys: z.ZodArray<z.ZodObject<{
|
|
331
|
+
name: z.ZodString;
|
|
332
|
+
passed: z.ZodBoolean;
|
|
333
|
+
stepsCompleted: z.ZodNumber;
|
|
334
|
+
totalSteps: z.ZodNumber;
|
|
335
|
+
screenshot: z.ZodOptional<z.ZodString>;
|
|
336
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
337
|
+
kind: z.ZodEnum<{
|
|
338
|
+
checkpoint: "checkpoint";
|
|
339
|
+
download: "download";
|
|
340
|
+
response: "response";
|
|
341
|
+
json: "json";
|
|
342
|
+
attribute: "attribute";
|
|
343
|
+
}>;
|
|
344
|
+
step: z.ZodNumber;
|
|
345
|
+
description: z.ZodString;
|
|
346
|
+
path: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, z.core.$strip>>>;
|
|
348
|
+
checkpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
+
checkpoint: z.ZodEnum<{
|
|
350
|
+
error: "error";
|
|
351
|
+
start: "start";
|
|
352
|
+
success: "success";
|
|
353
|
+
failure: "failure";
|
|
354
|
+
"preserved-state": "preserved-state";
|
|
355
|
+
keyboard: "keyboard";
|
|
356
|
+
export: "export";
|
|
357
|
+
offline: "offline";
|
|
358
|
+
disconnected: "disconnected";
|
|
359
|
+
loading: "loading";
|
|
360
|
+
empty: "empty";
|
|
361
|
+
partial: "partial";
|
|
362
|
+
stale: "stale";
|
|
363
|
+
unauthorized: "unauthorized";
|
|
364
|
+
}>;
|
|
365
|
+
step: z.ZodNumber;
|
|
366
|
+
evidenceStep: z.ZodNumber;
|
|
367
|
+
description: z.ZodString;
|
|
368
|
+
}, z.core.$strip>>>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
expectedNetwork: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
371
|
+
id: z.ZodString;
|
|
372
|
+
method: z.ZodString;
|
|
373
|
+
urlIncludes: z.ZodString;
|
|
374
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
allowRequestFailure: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
+
minOccurrences: z.ZodNumber;
|
|
377
|
+
maxOccurrences: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
379
|
+
occurrences: z.ZodNumber;
|
|
380
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
381
|
+
satisfied: z.ZodBoolean;
|
|
382
|
+
}, z.core.$strip>>>;
|
|
383
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
384
|
+
checkId: z.ZodString;
|
|
385
|
+
severity: z.ZodEnum<{
|
|
386
|
+
error: "error";
|
|
387
|
+
warning: "warning";
|
|
388
|
+
info: "info";
|
|
389
|
+
}>;
|
|
390
|
+
message: z.ZodString;
|
|
391
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
392
|
+
viewport: z.ZodOptional<z.ZodString>;
|
|
393
|
+
journey: z.ZodOptional<z.ZodString>;
|
|
394
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
395
|
+
}, z.core.$strip>>;
|
|
396
|
+
summary: z.ZodObject<{
|
|
397
|
+
errors: z.ZodNumber;
|
|
398
|
+
warnings: z.ZodNumber;
|
|
399
|
+
info: z.ZodNumber;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
passed: z.ZodBoolean;
|
|
402
|
+
evidenceBoundary: z.ZodObject<{
|
|
403
|
+
verifierLimitations: z.ZodArray<z.ZodString>;
|
|
404
|
+
humanReviewRequired: z.ZodArray<z.ZodString>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
};
|