b2c-app-builder 0.221.39
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/ACKNOWLEDGMENTS.md +168 -0
- package/LICENSE +21 -0
- package/README.md +252 -0
- package/SKILL.md +59 -0
- package/THIRD_PARTY_NOTICES.md +1091 -0
- package/adapters/app-review/archive.ts +55 -0
- package/adapters/app-review/asc-boundary.ts +85 -0
- package/adapters/app-review/asc-provider.ts +499 -0
- package/adapters/app-review/auth.ts +75 -0
- package/adapters/app-review/capability.ts +240 -0
- package/adapters/app-review/classify.ts +116 -0
- package/adapters/app-review/consume.ts +108 -0
- package/adapters/app-review/envelope.ts +119 -0
- package/adapters/app-review/events.ts +451 -0
- package/adapters/app-review/hmac.ts +106 -0
- package/adapters/app-review/implement.ts +81 -0
- package/adapters/app-review/index.ts +172 -0
- package/adapters/app-review/ingest.ts +108 -0
- package/adapters/app-review/mandate.ts +102 -0
- package/adapters/app-review/normalize.ts +281 -0
- package/adapters/app-review/packet.ts +365 -0
- package/adapters/app-review/persist.ts +93 -0
- package/adapters/app-review/plan.ts +321 -0
- package/adapters/app-review/plist.ts +219 -0
- package/adapters/app-review/poll.ts +310 -0
- package/adapters/app-review/projection.ts +149 -0
- package/adapters/app-review/queue.ts +138 -0
- package/adapters/app-review/receiver.ts +111 -0
- package/adapters/app-review/registration.ts +95 -0
- package/adapters/app-review/remediate.ts +218 -0
- package/adapters/app-review/render.ts +180 -0
- package/adapters/app-review/resubmit.ts +357 -0
- package/adapters/app-review/types.ts +540 -0
- package/adapters/app-review/uncertain-execution.ts +205 -0
- package/adapters/app-review/verification.ts +42 -0
- package/adapters/appkittie-category-revenue.ts +106 -0
- package/adapters/claude.ts +69 -0
- package/adapters/codex.ts +65 -0
- package/adapters/cursor.ts +66 -0
- package/adapters/device-proof.ts +814 -0
- package/adapters/greenfield/boundary.ts +200 -0
- package/adapters/greenfield/fail-safe.ts +204 -0
- package/adapters/greenfield/index.ts +33 -0
- package/adapters/inline.ts +46 -0
- package/adapters/install-control-permissions.ts +331 -0
- package/adapters/install-entrypoints.ts +422 -0
- package/adapters/install-schedule.ts +700 -0
- package/adapters/ios-app-evidence.ts +136 -0
- package/adapters/mobile-operation-host.ts +209 -0
- package/adapters/mobile-operation.ts +131 -0
- package/adapters/operating.ts +8 -0
- package/adapters/probe.ts +48 -0
- package/adapters/profile.ts +272 -0
- package/adapters/providers/capability-delta.ts +84 -0
- package/adapters/providers/contract.ts +89 -0
- package/adapters/providers/evaluate.ts +125 -0
- package/adapters/providers/expo/argv.ts +228 -0
- package/adapters/providers/expo/decode.ts +702 -0
- package/adapters/providers/expo/discovery.ts +145 -0
- package/adapters/providers/expo/doctor.ts +217 -0
- package/adapters/providers/expo/effects.ts +185 -0
- package/adapters/providers/expo/execute.ts +389 -0
- package/adapters/providers/expo/expo-device-bind.ts +176 -0
- package/adapters/providers/expo/expo-mcp-route.ts +394 -0
- package/adapters/providers/expo/hosting-prepare.ts +195 -0
- package/adapters/providers/expo/identity.ts +117 -0
- package/adapters/providers/expo/index.ts +176 -0
- package/adapters/providers/expo/jobs.ts +490 -0
- package/adapters/providers/expo/preflight.ts +319 -0
- package/adapters/providers/expo/process.ts +156 -0
- package/adapters/providers/expo/project-config.ts +184 -0
- package/adapters/providers/expo/sanitize.ts +51 -0
- package/adapters/providers/expo/signing-readiness.ts +157 -0
- package/adapters/providers/expo/store-handoff.ts +74 -0
- package/adapters/providers/expo/update-identity.ts +121 -0
- package/adapters/providers/expo/update-policy.ts +130 -0
- package/adapters/providers/expo/update-prepare.ts +176 -0
- package/adapters/providers/expo/update-recovery.ts +152 -0
- package/adapters/providers/expo/update-rollout.ts +114 -0
- package/adapters/providers/expo/update-signing.ts +100 -0
- package/adapters/providers/expo/web-api-contract.ts +185 -0
- package/adapters/providers/growth-agent/boundary.ts +178 -0
- package/adapters/providers/growth-agent/fail-safe.ts +306 -0
- package/adapters/providers/growth-agent/index.ts +36 -0
- package/adapters/providers/layers/effects.ts +94 -0
- package/adapters/providers/layers/index.ts +91 -0
- package/adapters/providers/layers/jobs.ts +269 -0
- package/adapters/providers/layers/onboarding.ts +144 -0
- package/adapters/providers/layers/route.ts +308 -0
- package/adapters/providers/layers/transport.ts +251 -0
- package/adapters/providers/load.ts +293 -0
- package/adapters/providers/mobile-ops/boundary.ts +137 -0
- package/adapters/providers/mobile-ops/fail-safe.ts +273 -0
- package/adapters/providers/mobile-ops/index.ts +27 -0
- package/adapters/providers/monetization-validation.ts +80 -0
- package/adapters/providers/revenuecat/cli-catalog-observe.ts +254 -0
- package/adapters/providers/revenuecat/cli-catalog.ts +1146 -0
- package/adapters/providers/revenuecat/cli-command-schema.ts +369 -0
- package/adapters/providers/revenuecat/cli-decode.ts +908 -0
- package/adapters/providers/revenuecat/cli-discovery.ts +248 -0
- package/adapters/providers/revenuecat/cli-doctor.ts +279 -0
- package/adapters/providers/revenuecat/cli-execute.ts +456 -0
- package/adapters/providers/revenuecat/cli-ledger.ts +488 -0
- package/adapters/providers/revenuecat/cli-operations.ts +927 -0
- package/adapters/providers/revenuecat/cli-preflight.ts +245 -0
- package/adapters/providers/revenuecat/cli-process.ts +195 -0
- package/adapters/providers/revenuecat/cli-proof.ts +159 -0
- package/adapters/providers/revenuecat/cli-reconcile-plan.ts +1144 -0
- package/adapters/providers/revenuecat/provisioning.ts +54 -0
- package/adapters/providers/revenuecat/revenue-validation.ts +1224 -0
- package/adapters/providers/runtime-pin.ts +112 -0
- package/adapters/providers/superwall/boundary.ts +107 -0
- package/adapters/providers/superwall/fail-safe.ts +231 -0
- package/adapters/providers/superwall/measurement.ts +62 -0
- package/adapters/providers/typesafe/assess.ts +264 -0
- package/adapters/providers/typesafe/binding.ts +47 -0
- package/adapters/providers/typesafe/connection.ts +89 -0
- package/adapters/providers/typesafe/decode.ts +348 -0
- package/adapters/providers/typesafe/effects.ts +101 -0
- package/adapters/providers/typesafe/encode.ts +97 -0
- package/adapters/providers/typesafe/index.ts +71 -0
- package/adapters/providers/typesafe/support.ts +109 -0
- package/adapters/providers/typesafe/transport.ts +395 -0
- package/adapters/provisioning/capability-gaps.ts +110 -0
- package/adapters/provisioning/capability-readiness.ts +60 -0
- package/adapters/provisioning/cli.ts +274 -0
- package/adapters/provisioning/requirements.ts +525 -0
- package/adapters/provisioning/resolve.ts +356 -0
- package/adapters/registry.ts +225 -0
- package/agents/skills/b2c-app-builder/references/business-lifecycle.md +75 -0
- package/agents/skills/b2c-app-builder/references/composition.md +7 -0
- package/agents/skills/b2c-app-builder/references/mobile-operation.md +5 -0
- package/agents/skills/b2c-app-builder/references/setup.md +18 -0
- package/agents/skills/b2c-define-product/SKILL.md +49 -0
- package/agents/skills/b2c-define-product/references/task.md +42 -0
- package/agents/skills/b2c-design-onboarding/SKILL.md +51 -0
- package/agents/skills/b2c-design-onboarding/references/stages.md +31 -0
- package/agents/skills/b2c-design-onboarding/references/task.md +31 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-conversion.md +43 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-01-current-state-trace.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-02-evidence-plan.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-03-current-guidance.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-04-competitor-reviews.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-05-onbo-hub-atlas.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-06-internal-guidance-audit.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-07-provider-policy-landscape.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-08-motion-research.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-09-evidence-join.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-10-first-value-activation.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-11-effort-question-audit.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-12-state-identity-contract.md +38 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-13-analytics-experiments.md +38 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-14-trust-lifecycle-policy.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-15-architecture-decision.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-16-journey-graph.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-17-screen-control-paywall-contract.md +40 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-18-visual-design-prototype.md +40 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-19-implementation-cutover-contract.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-20-adversarial-qa.md +38 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-21-compound-engineering-plan.md +35 -0
- package/agents/skills/b2c-plan-implementation/SKILL.md +66 -0
- package/agents/skills/b2c-plan-implementation/references/task.md +41 -0
- package/agents/skills/b2c-plan-launch/SKILL.md +50 -0
- package/agents/skills/b2c-plan-launch/references/task.md +37 -0
- package/agents/skills/b2c-research-opportunity/SKILL.md +63 -0
- package/agents/skills/b2c-research-opportunity/references/task.md +42 -0
- package/agents/skills/b2c-review-business-performance/SKILL.md +50 -0
- package/agents/skills/b2c-review-business-performance/references/task.md +37 -0
- package/agents/skills/b2c-review-experience/SKILL.md +48 -0
- package/agents/skills/b2c-review-experience/references/task.md +36 -0
- package/agents/skills/b2c-review-monetization/SKILL.md +50 -0
- package/agents/skills/b2c-review-monetization/references/task.md +40 -0
- package/agents/skills/b2c-verify-release-readiness/SKILL.md +47 -0
- package/agents/skills/b2c-verify-release-readiness/references/task.md +36 -0
- package/catalog/agent-graph/load.ts +110 -0
- package/catalog/agent-graph/types.ts +53 -0
- package/catalog/agent-graph/validate.ts +121 -0
- package/catalog/agent-graph/work.schema.json +65 -0
- package/catalog/agent-graph/work.yaml +173 -0
- package/catalog/areas.ts +95 -0
- package/catalog/artifacts.ts +40 -0
- package/catalog/authoring.ts +46 -0
- package/catalog/bridge.ts +220 -0
- package/catalog/business-primitives.ts +82 -0
- package/catalog/business-units.ts +18 -0
- package/catalog/capabilities/paid-generative-ai/capability.yaml +27 -0
- package/catalog/capabilities/paid-generative-ai/controls.md +37 -0
- package/catalog/capabilities/types.ts +25 -0
- package/catalog/capabilities/web-presence/capability.yaml +37 -0
- package/catalog/capabilities/web-presence/shared.md +5 -0
- package/catalog/context-packs.ts +78 -0
- package/catalog/domain-authority.ts +38 -0
- package/catalog/domains.ts +178 -0
- package/catalog/firstparty-declarations.ts +652 -0
- package/catalog/firstparty-recipes.ts +283 -0
- package/catalog/gates.ts +99 -0
- package/catalog/generated/catalog.json +18892 -0
- package/catalog/generated/contracts.md +1565 -0
- package/catalog/generated/firstparty/catalog/render-routing.ts +410 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/amir-brand-system.txt +395 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/amir-cinematic-scroll.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/appllama-skills.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/eronred-aso-skills.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/evanbacon-serve-sim.txt +202 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/parth-app-store-screenshots.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/posthog-wizard.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/revenuecat-ai-toolkit.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/revenuecat-cli.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/rork-app-store-connect-cli-skills.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/rork-app-store-connect-cli.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/sentry-snapshotpreviews.txt +22 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/sentry-xcodebuildmcp.txt +21 -0
- package/catalog/generated/firstparty/catalog-pack.yaml +12960 -0
- package/catalog/generated/firstparty/checks/validation/business/data/check-analytics-catalog.ts +166 -0
- package/catalog/generated/firstparty/checks/validation/business/data/check-attribution-contract.ts +731 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-audience-identity.ts +260 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-browser-runtime-proof.ts +269 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-component-contracts.ts +365 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-content-assets.ts +600 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-acceptance.ts +6 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-md.ts +19 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-room-contract.ts +200 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-worthiness.ts +710 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-motion-contract.ts +1374 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-scrollytelling-contract.ts +1486 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-token-promotion.ts +75 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-vibecoded-tells.ts +396 -0
- package/catalog/generated/firstparty/checks/validation/business/design/validate-state.ts +15 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-archetype-starter.ts +457 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-backend-data-contract.ts +151 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-compound-engineering-routing.ts +153 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-mobai-proof.ts +486 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-native-android-proof.ts +486 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-native-ios-proof.ts +465 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-readiness-coverage.ts +242 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-roster-headless-safety.ts +70 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-roster-overlap.ts +159 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-source-checkpoint.ts +123 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-technical-docs-ste100.ts +319 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-template-safety.ts +75 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-emotional-design.ts +1246 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-cutover-repository.ts +157 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-evidence-packet.ts +263 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-foundations.ts +16 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-graph.ts +795 -0
- package/catalog/generated/firstparty/checks/validation/business/growth/check-landing-funnel.ts +593 -0
- package/catalog/generated/firstparty/checks/validation/business/growth/check-paid-user-acquisition.ts +601 -0
- package/catalog/generated/firstparty/checks/validation/business/money/check-price-derivation.ts +127 -0
- package/catalog/generated/firstparty/checks/validation/business/money/check-revenue.ts +72 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-agent-operations.ts +709 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-email.ts +356 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-founder-operator-bootstrap.ts +759 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-paid-tool-intake.ts +71 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-portfolio-registry.ts +99 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-post-launch-ops.ts +834 -0
- package/catalog/generated/firstparty/checks/validation/business/orchestration/check-continuity-contract.ts +266 -0
- package/catalog/generated/firstparty/checks/validation/business/orchestration/check-parallel-orchestration.ts +218 -0
- package/catalog/generated/firstparty/checks/validation/business/orchestration/validate-project-state.ts +357 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-artifact-templates.ts +103 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-change-cascade.ts +318 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-generated-pages.ts +153 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-lane-coverage.ts +377 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-live-provider-proof.ts +284 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-repository-profile.ts +43 -0
- package/catalog/generated/firstparty/checks/validation/business/product/check-app-archetype.ts +266 -0
- package/catalog/generated/firstparty/checks/validation/business/product/check-product-md.ts +67 -0
- package/catalog/generated/firstparty/checks/validation/business/research/check-evidence-schema-drift.ts +50 -0
- package/catalog/generated/firstparty/checks/validation/business/research/check-localization-research.ts +144 -0
- package/catalog/generated/firstparty/checks/validation/business/research/check-research-evidence.ts +1324 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-app-review-contract.ts +433 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-app-store-portfolio.ts +279 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-apple-app-store-requirements.ts +735 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-asc-command-contract.ts +175 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-aso-evidence.ts +162 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-store-console-packet.ts +480 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-store-screenshots.ts +1113 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-ai-provider-controls.ts +127 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-privacy-terms.ts +238 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-secret-routing.ts +233 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-security-release.ts +199 -0
- package/catalog/generated/firstparty/checks/validation/business/words/check-app-copy.ts +1019 -0
- package/catalog/generated/firstparty/checks/validation/business/words/check-founder-copy.ts +471 -0
- package/catalog/generated/firstparty/checks/validation/business/words/check-no-slop.ts +148 -0
- package/catalog/generated/firstparty/checks/validation/repository/audit-skill-links.ts +176 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-agent-entrypoints.ts +259 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-architecture.ts +393 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-autopilot-contract.ts +277 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-capability-delta.ts +30 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-catalog.ts +88 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-engine-e2e.ts +609 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-gates-layout.ts +109 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-graph-foundations.ts +158 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-hub-spoke.ts +144 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-learning-grounding.ts +323 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-operating-graph.ts +205 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-pack-composition.ts +94 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-package-parity.ts +632 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-provider-contracts.ts +24 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-reference-size.ts +354 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-repository-boundary.ts +2385 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-skill-supply-chain.ts +290 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-skill-version.ts +363 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-source-freshness.ts +627 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-task-skills.ts +40 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-upstreams.ts +189 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-validator-docs.ts +84 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-version-discipline.ts +314 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-agent-evals.ts +117 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-behavioral-evals.ts +612 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-launchbench.ts +246 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-validator-fixtures.ts +173 -0
- package/catalog/generated/firstparty/examples/workspace/business/analytics/ANALYTICS.md +186 -0
- package/catalog/generated/firstparty/examples/workspace/business/analytics/analytics-plan.html +14 -0
- package/catalog/generated/firstparty/examples/workspace/business/design/motion-catalog/README.md +74 -0
- package/catalog/generated/firstparty/examples/workspace/business/design/system/PremiumCraft.swift +352 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/LAUNCH_NARRATIVE.md +241 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/PAID_UA.md +142 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/VIRAL_GROWTH.md +130 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/content-assets/CONTENT_ASSETS.md +127 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/landing/scrollytelling.portable.example.html +156 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/copy/COPY_BRIEF.md +64 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/copy/COPY_DECK.md +84 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/experience/11-star-experience/11_STAR_EXPERIENCE.md +93 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/experience/emotional-design/EMOTIONAL_DESIGN.md +355 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/experience/ux-patterns/UX_PATTERNS.md +144 -0
- package/catalog/generated/firstparty/examples/workspace/business/state/LAUNCH_TRACE.md +29 -0
- package/catalog/generated/firstparty/examples/workspace/business/store/app-store-listing/APP_STORE_LISTING.md +160 -0
- package/catalog/generated/firstparty/examples/workspace/business/store/app-store-listing/SCREENSHOT_RUBRIC.md +202 -0
- package/catalog/generated/firstparty/extension.yaml +12344 -0
- package/catalog/generated/firstparty/kernel/schema/evidence-schema-version.ts +82 -0
- package/catalog/generated/firstparty/knowledge/data/analytics-attribution.md +317 -0
- package/catalog/generated/firstparty/knowledge/data/posthog-agent-tooling.md +101 -0
- package/catalog/generated/firstparty/knowledge/design/audience-derived-identity.md +55 -0
- package/catalog/generated/firstparty/knowledge/design/consumer-craft-benchmarks.md +72 -0
- package/catalog/generated/firstparty/knowledge/design/design-acceptance.md +199 -0
- package/catalog/generated/firstparty/knowledge/design/design-evidence-stack.md +130 -0
- package/catalog/generated/firstparty/knowledge/design/design-room.md +83 -0
- package/catalog/generated/firstparty/knowledge/design/design-visual-system.md +247 -0
- package/catalog/generated/firstparty/knowledge/design/design-worthiness.md +188 -0
- package/catalog/generated/firstparty/knowledge/design/editorial-scrollytelling.md +239 -0
- package/catalog/generated/firstparty/knowledge/design/landing-motion-craft.md +67 -0
- package/catalog/generated/firstparty/knowledge/design/mobile-flow-craft.md +177 -0
- package/catalog/generated/firstparty/knowledge/design/motion-craft-benchmarks.md +340 -0
- package/catalog/generated/firstparty/knowledge/design/premium-mobile-craft.md +137 -0
- package/catalog/generated/firstparty/knowledge/design/quality-lens.md +100 -0
- package/catalog/generated/firstparty/knowledge/design/refero-ux-patterns.md +131 -0
- package/catalog/generated/firstparty/knowledge/design/remotion-content-assets.md +370 -0
- package/catalog/generated/firstparty/knowledge/design/surfaces-b2c.md +84 -0
- package/catalog/generated/firstparty/knowledge/design/vibecoded-tells.md +129 -0
- package/catalog/generated/firstparty/knowledge/engineering/accessibility-readiness.md +24 -0
- package/catalog/generated/firstparty/knowledge/engineering/app-agent-roster.md +120 -0
- package/catalog/generated/firstparty/knowledge/engineering/app-quality.md +19 -0
- package/catalog/generated/firstparty/knowledge/engineering/backend-data-contract.md +187 -0
- package/catalog/generated/firstparty/knowledge/engineering/engineering-orchestration.md +365 -0
- package/catalog/generated/firstparty/knowledge/engineering/expo-compatibility.md +74 -0
- package/catalog/generated/firstparty/knowledge/engineering/expo-operations-map.md +84 -0
- package/catalog/generated/firstparty/knowledge/engineering/expo-stack-selection.md +75 -0
- package/catalog/generated/firstparty/knowledge/engineering/external-skill-packs.md +47 -0
- package/catalog/generated/firstparty/knowledge/engineering/mobai-toolbelt.md +389 -0
- package/catalog/generated/firstparty/knowledge/engineering/recommended-agent-skills.md +109 -0
- package/catalog/generated/firstparty/knowledge/engineering/technical-documentation-ste100.md +89 -0
- package/catalog/generated/firstparty/knowledge/engineering/xcodebuildmcp-testing.md +502 -0
- package/catalog/generated/firstparty/knowledge/experience/commitment-funnel.md +90 -0
- package/catalog/generated/firstparty/knowledge/experience/consumer-product-design-agency.md +268 -0
- package/catalog/generated/firstparty/knowledge/experience/eleven-star-experience.md +194 -0
- package/catalog/generated/firstparty/knowledge/experience/emotional-design-system.md +412 -0
- package/catalog/generated/firstparty/knowledge/experience/emotional-experience-design.md +359 -0
- package/catalog/generated/firstparty/knowledge/experience/emotional-experience-measurement.md +433 -0
- package/catalog/generated/firstparty/knowledge/experience/ethics-guardrail.md +460 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/commitment-card.md +36 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/endowed-progress-card.md +34 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/fresh-start-card.md +34 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/identity-and-self-expression-card.md +35 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/intent-mirroring-card.md +36 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/mastery-and-status-card.md +43 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/peak-end-card.md +44 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/perceived-effort-delay-card.md +37 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/reciprocity-card.md +38 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/recovery-and-trust-repair-card.md +40 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/streak-and-loss-aversion-card.md +37 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/variable-reward-card.md +42 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards.md +172 -0
- package/catalog/generated/firstparty/knowledge/experience/onboarding-conversion.md +422 -0
- package/catalog/generated/firstparty/knowledge/experience/onboarding-foundations.md +264 -0
- package/catalog/generated/firstparty/knowledge/experience/paywall-goal-headline.md +99 -0
- package/catalog/generated/firstparty/knowledge/experience/push-notification-lifecycle.md +79 -0
- package/catalog/generated/firstparty/knowledge/growth/appsflyer-mmp.md +99 -0
- package/catalog/generated/firstparty/knowledge/growth/cro-landing.md +86 -0
- package/catalog/generated/firstparty/knowledge/growth/fastlane-growth-ops.md +321 -0
- package/catalog/generated/firstparty/knowledge/growth/geo-seo.md +163 -0
- package/catalog/generated/firstparty/knowledge/growth/hdyhau-blended-roas.md +75 -0
- package/catalog/generated/firstparty/knowledge/growth/influencer-sponsorship-engine.md +224 -0
- package/catalog/generated/firstparty/knowledge/growth/ios-consumer-playbook-intake.md +65 -0
- package/catalog/generated/firstparty/knowledge/growth/launch-narrative-cadence.md +340 -0
- package/catalog/generated/firstparty/knowledge/growth/non-competitor-angle-discovery.md +80 -0
- package/catalog/generated/firstparty/knowledge/growth/paid-user-acquisition.md +283 -0
- package/catalog/generated/firstparty/knowledge/growth/ugc-creator-engine.md +259 -0
- package/catalog/generated/firstparty/knowledge/growth/viral-growth-loops.md +174 -0
- package/catalog/generated/firstparty/knowledge/money/billing-health-and-reactivation.md +54 -0
- package/catalog/generated/firstparty/knowledge/money/offer-and-pricing-decisions.md +33 -0
- package/catalog/generated/firstparty/knowledge/money/paywall-pricing-and-experiments.md +97 -0
- package/catalog/generated/firstparty/knowledge/money/revenue-monetization.md +107 -0
- package/catalog/generated/firstparty/knowledge/money/revenuecat-agent-tooling.md +174 -0
- package/catalog/generated/firstparty/knowledge/money/revenuecat-and-store-products.md +115 -0
- package/catalog/generated/firstparty/knowledge/money/stripe-and-web-billing.md +83 -0
- package/catalog/generated/firstparty/knowledge/money/subscription-price-derivation.md +105 -0
- package/catalog/generated/firstparty/knowledge/operations/autonomy-onboarding.md +269 -0
- package/catalog/generated/firstparty/knowledge/operations/doppler-organization.md +73 -0
- package/catalog/generated/firstparty/knowledge/operations/founder-zero-operator.md +184 -0
- package/catalog/generated/firstparty/knowledge/operations/frontier-agent-operations.md +189 -0
- package/catalog/generated/firstparty/knowledge/operations/paid-tool-routing.md +172 -0
- package/catalog/generated/firstparty/knowledge/operations/post-launch-operations.md +261 -0
- package/catalog/generated/firstparty/knowledge/operations/provider-state-recipes.md +80 -0
- package/catalog/generated/firstparty/knowledge/operations/resend-email-ops.md +339 -0
- package/catalog/generated/firstparty/knowledge/operations/secrets-management.md +215 -0
- package/catalog/generated/firstparty/knowledge/orchestration/compound-engineering-routing.md +101 -0
- package/catalog/generated/firstparty/knowledge/orchestration/dynamic-workflows.md +198 -0
- package/catalog/generated/firstparty/knowledge/orchestration/full-launch-program.md +179 -0
- package/catalog/generated/firstparty/knowledge/orchestration/isolated-review.md +144 -0
- package/catalog/generated/firstparty/knowledge/orchestration/parallel-agent-orchestration.md +335 -0
- package/catalog/generated/firstparty/knowledge/orchestration/project-state.md +96 -0
- package/catalog/generated/firstparty/knowledge/process/artifact-contracts.md +1527 -0
- package/catalog/generated/firstparty/knowledge/process/cascade-edges.yaml +217 -0
- package/catalog/generated/firstparty/knowledge/process/change-cascade.md +102 -0
- package/catalog/generated/firstparty/knowledge/process/current-truth.md +45 -0
- package/catalog/generated/firstparty/knowledge/process/failure-cards.md +114 -0
- package/catalog/generated/firstparty/knowledge/process/flow-traceability.md +189 -0
- package/catalog/generated/firstparty/knowledge/process/launch-coverage.md +298 -0
- package/catalog/generated/firstparty/knowledge/process/launch-phases.md +838 -0
- package/catalog/generated/firstparty/knowledge/process/learning-capture.md +77 -0
- package/catalog/generated/firstparty/knowledge/process/learnings/audit-runs-from-repo-root.md +22 -0
- package/catalog/generated/firstparty/knowledge/process/provider-contracts.md +49 -0
- package/catalog/generated/firstparty/knowledge/process/provider-proof.md +37 -0
- package/catalog/generated/firstparty/knowledge/process/repository-profiles.md +60 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/device-capture-and-proof.md +100 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/engineering-and-agent-orchestration.md +89 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/funnel-domain-and-privacy.md +142 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/growth-and-store-routing.md +192 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/research-intelligence.md +258 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/revenue-email-analytics.md +101 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/secrets-and-environment.md +35 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/visual-and-motion-production.md +457 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes.md +67 -0
- package/catalog/generated/firstparty/knowledge/product/ai-chat-companion.md +96 -0
- package/catalog/generated/firstparty/knowledge/product/core-loop-and-complete-scope.md +82 -0
- package/catalog/generated/firstparty/knowledge/product/core-loop-and-v1-scope.md +137 -0
- package/catalog/generated/firstparty/knowledge/product/habit-tracker.md +89 -0
- package/catalog/generated/firstparty/knowledge/product/photo-ai-media.md +96 -0
- package/catalog/generated/firstparty/knowledge/product/product-moat.md +64 -0
- package/catalog/generated/firstparty/knowledge/product/social-network.md +117 -0
- package/catalog/generated/firstparty/knowledge/research/distribution-first-niche.md +70 -0
- package/catalog/generated/firstparty/knowledge/research/distribution-offer-signal.md +190 -0
- package/catalog/generated/firstparty/knowledge/research/go-pivot-or-kill.md +120 -0
- package/catalog/generated/firstparty/knowledge/research/localization-market-research.md +145 -0
- package/catalog/generated/firstparty/knowledge/research/transformation-demo.md +70 -0
- package/catalog/generated/firstparty/knowledge/store/age-rating-questionnaire.md +75 -0
- package/catalog/generated/firstparty/knowledge/store/app-review-observe.md +314 -0
- package/catalog/generated/firstparty/knowledge/store/app-review-remediate.md +125 -0
- package/catalog/generated/firstparty/knowledge/store/app-review-resubmit.md +128 -0
- package/catalog/generated/firstparty/knowledge/store/app-store-connect-cli.md +347 -0
- package/catalog/generated/firstparty/knowledge/store/app-store-listing-prep.md +277 -0
- package/catalog/generated/firstparty/knowledge/store/apple-signing-release.md +551 -0
- package/catalog/generated/firstparty/knowledge/store/aso-apple-keyword-evidence.md +112 -0
- package/catalog/generated/firstparty/knowledge/store/aso-store-ops.md +316 -0
- package/catalog/generated/firstparty/knowledge/store/google-play-release.md +200 -0
- package/catalog/generated/firstparty/knowledge/store/marketplace-regional-compliance.md +21 -0
- package/catalog/generated/firstparty/knowledge/store/screenshot-toolchain.md +130 -0
- package/catalog/generated/firstparty/knowledge/store/store-console-workflow.md +760 -0
- package/catalog/generated/firstparty/knowledge/trust/community-safety.md +18 -0
- package/catalog/generated/firstparty/knowledge/trust/generative-ai-safety.md +27 -0
- package/catalog/generated/firstparty/knowledge/trust/paid-generative-ai-controls.md +85 -0
- package/catalog/generated/firstparty/knowledge/trust/privacy-terms.md +192 -0
- package/catalog/generated/firstparty/knowledge/trust/security-release-hardening.md +169 -0
- package/catalog/generated/firstparty/knowledge/words/consumer-copy-benchmarks.md +111 -0
- package/catalog/generated/firstparty/knowledge/words/conversion-copy.md +181 -0
- package/catalog/generated/firstparty/knowledge/words/no-slop-writing.md +173 -0
- package/catalog/generated/firstparty/package.json +290 -0
- package/catalog/generated/firstparty/schemas/mobile-evidence.json +177 -0
- package/catalog/generated/firstparty/schemas/mobile-input.json +191 -0
- package/catalog/generated/firstparty/schemas/mobile-output.json +228 -0
- package/catalog/generated/firstparty/schemas/monetization-unavailable.json +4 -0
- package/catalog/generated/firstparty/schemas/worker-evidence.json +21 -0
- package/catalog/generated/firstparty/schemas/worker-input.json +29 -0
- package/catalog/generated/firstparty/schemas/worker-output.json +41 -0
- package/catalog/generated/firstparty/snapshot.json +16229 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/README.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/00-positioning-strategy.md +45 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/01-database-schema.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/02-auth-system.md +38 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/03-chat-core-loop.md +42 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/04-model-integration.md +45 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/05-memory-personalization.md +38 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/06-usage-limits-metering.md +36 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/07-stripe-monetization.md +34 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/08-safety-and-moderation.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/variants/companion-character.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/variants/voice-first.md +37 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/.env.example +18 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/README.md +48 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/chat/route.ts +70 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/chat/page.tsx +78 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/analytics/events.ts +32 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/strings.ts +32 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/package-lock.json +1294 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/package.json +29 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/supabase/migrations/0001_init.sql +78 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/README.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/00-positioning-strategy.md +47 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/01-database-schema.md +54 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/02-auth-system.md +42 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/03-habit-core-loop.md +50 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/04-reminders-and-streaks.md +58 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/05-stats-and-insights.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/06-paywall-and-monetization.md +50 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/07-social-accountability.md +49 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/variants/simple-counter-utility.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/variants/wellness-coach.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/.env.example +14 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/README.md +48 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/today/page.tsx +27 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/analytics/events.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/strings.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/package-lock.json +1222 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/package.json +28 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/supabase/migrations/0001_init.sql +84 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/README.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/00-positioning-strategy.md +51 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/01-database-schema.md +55 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/02-auth-system.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/03-capture-and-library.md +42 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/04-ai-generation-pipeline.md +46 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/05-editing-and-presets.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/06-credits-and-monetization.md +47 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/07-sharing-and-virality.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/08-content-safety-and-rights.md +49 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/variants/avatar-headshot-studio.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/variants/photo-restoration.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/.env.example +16 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/README.md +50 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/generate/route.ts +47 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/library/page.tsx +29 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/analytics/events.ts +32 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/strings.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/package-lock.json +1222 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/package.json +28 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/supabase/migrations/0001_init.sql +74 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/supabase/tests/0001_rls.test.sql +72 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/README.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/00-niche-strategy.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/01-database-schema.md +37 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/02-auth-system.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/03-feed-and-posts.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/04-profiles-and-follow.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/05-search-and-discovery.md +36 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/06-direct-messages.md +32 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/07-stripe-monetization.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/08-invite-system.md +37 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/variants/image-first-instagram.md +34 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/variants/video-first-tiktok.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/.env.example +14 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/README.md +47 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/feed/page.tsx +30 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/analytics/events.ts +31 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/strings.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/package-lock.json +1222 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/package.json +28 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/supabase/migrations/0001_init.sql +81 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/supabase/tests/0001_rls.test.sql +70 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/feedback.empty-state.md +22 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/feedback.haptics.md +21 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/feedback.skeleton.md +21 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/input.keyboard-behavior.md +22 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/interaction.press-feedback.md +22 -0
- package/catalog/generated/firstparty/tooling/catalog-scaffold.ts +181 -0
- package/catalog/generated/firstparty/tooling/render-artifact-pages.ts +93 -0
- package/catalog/generated/firstparty/tooling/render-credits.ts +301 -0
- package/catalog/generated/firstparty/tooling/render-design-room.ts +518 -0
- package/catalog/generated/firstparty/tooling/render-hosted-bundle.ts +201 -0
- package/catalog/generated/firstparty/tooling/render-product.ts +103 -0
- package/catalog/generated/firstparty/tooling/render-public-api.ts +91 -0
- package/catalog/generated/firstparty/tooling/render-task-skills.ts +69 -0
- package/catalog/generated/firstparty-pin.json +4 -0
- package/catalog/generated/hosted-knowledge.json +1 -0
- package/catalog/generated/knowledge-freshness.json +5 -0
- package/catalog/generated/packs.json +50 -0
- package/catalog/generated/repository-profiles.md +15 -0
- package/catalog/generated/routing.md +256 -0
- package/catalog/generated/spine.md +58 -0
- package/catalog/ids.ts +27 -0
- package/catalog/index.ts +40 -0
- package/catalog/knowledge/data/data-analytics-attribution.yaml +177 -0
- package/catalog/knowledge/data/data-posthog-agent-tooling.yaml +70 -0
- package/catalog/knowledge/design/design-audience-derived-identity.yaml +119 -0
- package/catalog/knowledge/design/design-consumer-craft-benchmarks.yaml +129 -0
- package/catalog/knowledge/design/design-design-acceptance.yaml +21 -0
- package/catalog/knowledge/design/design-design-evidence-stack.yaml +86 -0
- package/catalog/knowledge/design/design-design-room.yaml +18 -0
- package/catalog/knowledge/design/design-design-visual-system.yaml +215 -0
- package/catalog/knowledge/design/design-design-worthiness.yaml +40 -0
- package/catalog/knowledge/design/design-editorial-scrollytelling.yaml +56 -0
- package/catalog/knowledge/design/design-landing-motion-craft.yaml +34 -0
- package/catalog/knowledge/design/design-mobile-flow-craft.yaml +93 -0
- package/catalog/knowledge/design/design-motion-craft-benchmarks.yaml +84 -0
- package/catalog/knowledge/design/design-premium-mobile-craft.yaml +51 -0
- package/catalog/knowledge/design/design-quality-lens.yaml +29 -0
- package/catalog/knowledge/design/design-refero-ux-patterns.yaml +69 -0
- package/catalog/knowledge/design/design-remotion-content-assets.yaml +81 -0
- package/catalog/knowledge/design/design-surfaces-b2c.yaml +56 -0
- package/catalog/knowledge/design/design-vibecoded-tells.yaml +39 -0
- package/catalog/knowledge/engineering/engineering-accessibility-readiness.yaml +28 -0
- package/catalog/knowledge/engineering/engineering-app-agent-roster.yaml +14 -0
- package/catalog/knowledge/engineering/engineering-app-quality.yaml +20 -0
- package/catalog/knowledge/engineering/engineering-backend-data-contract.yaml +15 -0
- package/catalog/knowledge/engineering/engineering-engineering-orchestration.yaml +79 -0
- package/catalog/knowledge/engineering/engineering-expo-compatibility.yaml +44 -0
- package/catalog/knowledge/engineering/engineering-expo-operations-map.yaml +61 -0
- package/catalog/knowledge/engineering/engineering-expo-stack-selection.yaml +46 -0
- package/catalog/knowledge/engineering/engineering-external-skill-packs.yaml +112 -0
- package/catalog/knowledge/engineering/engineering-mobai-toolbelt.yaml +134 -0
- package/catalog/knowledge/engineering/engineering-recommended-agent-skills.yaml +66 -0
- package/catalog/knowledge/engineering/engineering-technical-documentation-ste100.yaml +16 -0
- package/catalog/knowledge/engineering/engineering-xcodebuildmcp-testing.yaml +344 -0
- package/catalog/knowledge/experience/experience-cards-commitment-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-endowed-progress-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-fresh-start-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-identity-and-self-expression-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-intent-mirroring-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-mastery-and-status-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-peak-end-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-perceived-effort-delay-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-reciprocity-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-recovery-and-trust-repair-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-streak-and-loss-aversion-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-variable-reward-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards.yaml +26 -0
- package/catalog/knowledge/experience/experience-commitment-funnel.yaml +22 -0
- package/catalog/knowledge/experience/experience-consumer-product-design-agency.yaml +14 -0
- package/catalog/knowledge/experience/experience-eleven-star-experience.yaml +26 -0
- package/catalog/knowledge/experience/experience-emotional-design-system.yaml +27 -0
- package/catalog/knowledge/experience/experience-emotional-experience-design.yaml +15 -0
- package/catalog/knowledge/experience/experience-emotional-experience-measurement.yaml +15 -0
- package/catalog/knowledge/experience/experience-ethics-guardrail.yaml +20 -0
- package/catalog/knowledge/experience/experience-onboarding-conversion.yaml +87 -0
- package/catalog/knowledge/experience/experience-onboarding-foundations.yaml +32 -0
- package/catalog/knowledge/experience/experience-paywall-goal-headline.yaml +40 -0
- package/catalog/knowledge/experience/experience-push-notification-lifecycle.yaml +14 -0
- package/catalog/knowledge/growth/growth-appsflyer-mmp.yaml +33 -0
- package/catalog/knowledge/growth/growth-cro-landing.yaml +38 -0
- package/catalog/knowledge/growth/growth-fastlane-growth-ops.yaml +37 -0
- package/catalog/knowledge/growth/growth-geo-seo.yaml +26 -0
- package/catalog/knowledge/growth/growth-hdyhau-blended-roas.yaml +18 -0
- package/catalog/knowledge/growth/growth-influencer-sponsorship-engine.yaml +15 -0
- package/catalog/knowledge/growth/growth-ios-consumer-playbook-intake.yaml +19 -0
- package/catalog/knowledge/growth/growth-launch-narrative-cadence.yaml +77 -0
- package/catalog/knowledge/growth/growth-non-competitor-angle-discovery.yaml +18 -0
- package/catalog/knowledge/growth/growth-paid-user-acquisition.yaml +25 -0
- package/catalog/knowledge/growth/growth-ugc-creator-engine.yaml +17 -0
- package/catalog/knowledge/growth/growth-viral-growth-loops.yaml +17 -0
- package/catalog/knowledge/money/money-billing-health-and-reactivation.yaml +16 -0
- package/catalog/knowledge/money/money-offer-and-pricing-decisions.yaml +15 -0
- package/catalog/knowledge/money/money-paywall-pricing-and-experiments.yaml +27 -0
- package/catalog/knowledge/money/money-revenue-monetization.yaml +148 -0
- package/catalog/knowledge/money/money-revenuecat-agent-tooling.yaml +108 -0
- package/catalog/knowledge/money/money-revenuecat-and-store-products.yaml +16 -0
- package/catalog/knowledge/money/money-stripe-and-web-billing.yaml +15 -0
- package/catalog/knowledge/money/money-subscription-price-derivation.yaml +41 -0
- package/catalog/knowledge/operations/operations-autonomy-onboarding.yaml +16 -0
- package/catalog/knowledge/operations/operations-doppler-organization.yaml +16 -0
- package/catalog/knowledge/operations/operations-founder-zero-operator.yaml +64 -0
- package/catalog/knowledge/operations/operations-frontier-agent-operations.yaml +15 -0
- package/catalog/knowledge/operations/operations-paid-tool-routing.yaml +29 -0
- package/catalog/knowledge/operations/operations-post-launch-operations.yaml +19 -0
- package/catalog/knowledge/operations/operations-provider-state-recipes.yaml +15 -0
- package/catalog/knowledge/operations/operations-resend-email-ops.yaml +205 -0
- package/catalog/knowledge/operations/operations-secrets-management.yaml +70 -0
- package/catalog/knowledge/orchestration/orchestration-compound-engineering-routing.yaml +30 -0
- package/catalog/knowledge/orchestration/orchestration-dynamic-workflows.yaml +89 -0
- package/catalog/knowledge/orchestration/orchestration-full-launch-program.yaml +24 -0
- package/catalog/knowledge/orchestration/orchestration-isolated-review.yaml +54 -0
- package/catalog/knowledge/orchestration/orchestration-parallel-agent-orchestration.yaml +145 -0
- package/catalog/knowledge/orchestration/orchestration-project-state.yaml +25 -0
- package/catalog/knowledge/process/learning-audit-runs-from-repo-root.yaml +16 -0
- package/catalog/knowledge/process/process-artifact-contracts.yaml +33 -0
- package/catalog/knowledge/process/process-cascade-edges.yaml +15 -0
- package/catalog/knowledge/process/process-change-cascade.yaml +17 -0
- package/catalog/knowledge/process/process-current-truth.yaml +15 -0
- package/catalog/knowledge/process/process-failure-cards.yaml +34 -0
- package/catalog/knowledge/process/process-flow-traceability.yaml +18 -0
- package/catalog/knowledge/process/process-launch-coverage.yaml +18 -0
- package/catalog/knowledge/process/process-launch-phases.yaml +21 -0
- package/catalog/knowledge/process/process-learning-capture.yaml +34 -0
- package/catalog/knowledge/process/process-provider-contracts.yaml +16 -0
- package/catalog/knowledge/process/process-provider-proof.yaml +18 -0
- package/catalog/knowledge/process/process-repository-profiles.yaml +15 -0
- package/catalog/knowledge/process/process-tool-recipes-device-capture-and-proof.yaml +155 -0
- package/catalog/knowledge/process/process-tool-recipes-engineering-and-agent-orchestration.yaml +32 -0
- package/catalog/knowledge/process/process-tool-recipes-funnel-domain-and-privacy.yaml +23 -0
- package/catalog/knowledge/process/process-tool-recipes-growth-and-store-routing.yaml +57 -0
- package/catalog/knowledge/process/process-tool-recipes-research-intelligence.yaml +52 -0
- package/catalog/knowledge/process/process-tool-recipes-revenue-email-analytics.yaml +14 -0
- package/catalog/knowledge/process/process-tool-recipes-secrets-and-environment.yaml +30 -0
- package/catalog/knowledge/process/process-tool-recipes-visual-and-motion-production.yaml +15 -0
- package/catalog/knowledge/process/process-tool-recipes.yaml +16 -0
- package/catalog/knowledge/product/product-ai-chat-companion.yaml +22 -0
- package/catalog/knowledge/product/product-core-loop-and-complete-scope.yaml +18 -0
- package/catalog/knowledge/product/product-habit-tracker.yaml +14 -0
- package/catalog/knowledge/product/product-photo-ai-media.yaml +14 -0
- package/catalog/knowledge/product/product-product-moat.yaml +15 -0
- package/catalog/knowledge/product/product-social-network.yaml +14 -0
- package/catalog/knowledge/research/research-distribution-first-niche.yaml +20 -0
- package/catalog/knowledge/research/research-distribution-offer-signal.yaml +31 -0
- package/catalog/knowledge/research/research-go-pivot-or-kill.yaml +16 -0
- package/catalog/knowledge/research/research-localization-market-research.yaml +18 -0
- package/catalog/knowledge/research/research-transformation-demo.yaml +17 -0
- package/catalog/knowledge/store/store-age-rating-questionnaire.yaml +44 -0
- package/catalog/knowledge/store/store-app-review-observe.yaml +87 -0
- package/catalog/knowledge/store/store-app-review-remediate.yaml +59 -0
- package/catalog/knowledge/store/store-app-review-resubmit.yaml +42 -0
- package/catalog/knowledge/store/store-app-store-connect-cli.yaml +90 -0
- package/catalog/knowledge/store/store-app-store-listing-prep.yaml +309 -0
- package/catalog/knowledge/store/store-apple-signing-release.yaml +234 -0
- package/catalog/knowledge/store/store-aso-apple-keyword-evidence.yaml +44 -0
- package/catalog/knowledge/store/store-aso-store-ops.yaml +24 -0
- package/catalog/knowledge/store/store-google-play-release.yaml +45 -0
- package/catalog/knowledge/store/store-marketplace-regional-compliance.yaml +20 -0
- package/catalog/knowledge/store/store-screenshot-toolchain.yaml +100 -0
- package/catalog/knowledge/store/store-store-console-workflow.yaml +431 -0
- package/catalog/knowledge/trust/trust-community-safety.yaml +28 -0
- package/catalog/knowledge/trust/trust-generative-ai-safety.yaml +29 -0
- package/catalog/knowledge/trust/trust-paid-generative-ai-controls.yaml +34 -0
- package/catalog/knowledge/trust/trust-privacy-terms.yaml +26 -0
- package/catalog/knowledge/trust/trust-security-release-hardening.yaml +43 -0
- package/catalog/knowledge/words/words-consumer-copy-benchmarks.yaml +169 -0
- package/catalog/knowledge/words/words-conversion-copy.yaml +95 -0
- package/catalog/knowledge/words/words-no-slop-writing.yaml +35 -0
- package/catalog/knowledge-packages.ts +210 -0
- package/catalog/knowledge-validation.ts +168 -0
- package/catalog/lane-graph.ts +37 -0
- package/catalog/lanes.ts +61 -0
- package/catalog/ontology/design-surface-applicability.ts +447 -0
- package/catalog/ontology/instance-load.ts +96 -0
- package/catalog/ontology/instance-types.ts +66 -0
- package/catalog/ontology/instance-validate.ts +104 -0
- package/catalog/ontology/instance.schema.json +171 -0
- package/catalog/ontology/load.ts +191 -0
- package/catalog/ontology/onboarding-applicability.ts +191 -0
- package/catalog/ontology/product-workspace.ts +58 -0
- package/catalog/ontology/query.ts +64 -0
- package/catalog/ontology/render-product.ts +30 -0
- package/catalog/ontology/types.ts +116 -0
- package/catalog/ontology/validate.ts +205 -0
- package/catalog/ontology/world.schema.json +191 -0
- package/catalog/ontology/world.yaml +458 -0
- package/catalog/operators.ts +276 -0
- package/catalog/overlays.ts +28 -0
- package/catalog/packs/compose.ts +424 -0
- package/catalog/packs/consumer-app/acquisition.md +4 -0
- package/catalog/packs/consumer-app/activation.md +4 -0
- package/catalog/packs/consumer-app/pack.yaml +66 -0
- package/catalog/packs/consumer-app/referral.md +4 -0
- package/catalog/packs/consumer-app/retention.md +4 -0
- package/catalog/packs/consumer-app/revenue.md +4 -0
- package/catalog/packs/firstparty-assets.ts +62 -0
- package/catalog/packs/firstparty-notices.ts +61 -0
- package/catalog/packs/firstparty.ts +146 -0
- package/catalog/packs/food-product-contrast/conversion.md +4 -0
- package/catalog/packs/food-product-contrast/manufacturing.md +4 -0
- package/catalog/packs/food-product-contrast/pack.yaml +108 -0
- package/catalog/packs/food-product-contrast/promise.md +4 -0
- package/catalog/packs/food-product-contrast/regulatory.md +4 -0
- package/catalog/packs/food-product-contrast/retailer.md +4 -0
- package/catalog/packs/food-product-contrast/sku.md +4 -0
- package/catalog/packs/installed-firstparty.ts +17 -0
- package/catalog/packs/isolation.ts +99 -0
- package/catalog/packs/load.ts +547 -0
- package/catalog/packs/paid-generative-ai/pack.yaml +73 -0
- package/catalog/packs/snapshots.ts +115 -0
- package/catalog/packs/types.ts +71 -0
- package/catalog/packs/web-presence/pack.yaml +54 -0
- package/catalog/phases.ts +139 -0
- package/catalog/principles/guards.ts +113 -0
- package/catalog/principles/load.ts +202 -0
- package/catalog/principles/principles.yaml +796 -0
- package/catalog/principles/types.ts +87 -0
- package/catalog/principles/vocabulary.yaml +68 -0
- package/catalog/profiles.ts +47 -0
- package/catalog/providers/agent-runtime-claude.yaml +17 -0
- package/catalog/providers/apple-asc-canonical-map.ts +499 -0
- package/catalog/providers/apple-asc.yaml +30 -0
- package/catalog/providers/capability-delta.yaml +41 -0
- package/catalog/providers/conformance.ts +64 -0
- package/catalog/providers/greenfield-70-applicability-closeout-map.ts +243 -0
- package/catalog/providers/greenfield-71-handoff-closeout-map.ts +376 -0
- package/catalog/providers/greenfield-72-benchmark-closeout-map.ts +502 -0
- package/catalog/providers/greenfield-73-overhead-closeout-map.ts +318 -0
- package/catalog/providers/greenfield-75-retrieval-closeout-map.ts +328 -0
- package/catalog/providers/greenfield-76-change-impact-closeout-map.ts +336 -0
- package/catalog/providers/greenfield-delivery-audit-map.ts +382 -0
- package/catalog/providers/growth-agent-canonical-map.ts +669 -0
- package/catalog/providers/mobile-ops-canonical-map.ts +581 -0
- package/catalog/providers/revenuecat.yaml +25 -0
- package/catalog/providers/semantic-batch-map.ts +70 -0
- package/catalog/providers/semantic-eval-baselines-map.ts +897 -0
- package/catalog/providers/semantic-graph-views-map.ts +74 -0
- package/catalog/providers/semantic-plan-lower-map.ts +62 -0
- package/catalog/providers/semantic-source-projection-map.ts +96 -0
- package/catalog/providers/superwall-canonical-map.ts +379 -0
- package/catalog/providers/typesafe-qualify-map.ts +250 -0
- package/catalog/recipes/default-monetization.ts +9 -0
- package/catalog/render-routing.ts +410 -0
- package/catalog/repository-profiles/compile.ts +435 -0
- package/catalog/repository-profiles/index.ts +19 -0
- package/catalog/repository-profiles/paid-generation-applicability.ts +106 -0
- package/catalog/repository-profiles/registry.ts +83 -0
- package/catalog/repository-profiles/types.ts +98 -0
- package/catalog/repository-profiles/workspace.ts +127 -0
- package/catalog/roles.ts +435 -0
- package/catalog/stacks/expo-agent-privacy.ts +140 -0
- package/catalog/stacks/expo-agent-tools.ts +337 -0
- package/catalog/stacks/expo-capability-matrix.ts +260 -0
- package/catalog/stacks/expo-capability-protocol.ts +775 -0
- package/catalog/stacks/expo-custom-module.ts +465 -0
- package/catalog/stacks/expo-eas-commands.ts +779 -0
- package/catalog/stacks/expo-eas-hosting.ts +224 -0
- package/catalog/stacks/expo-eas-operation-matrix.ts +243 -0
- package/catalog/stacks/expo-local-boot.ts +354 -0
- package/catalog/stacks/expo-local-capabilities.ts +328 -0
- package/catalog/stacks/expo-native-ownership.ts +469 -0
- package/catalog/stacks/expo-observability.ts +142 -0
- package/catalog/stacks/expo-proof-collection.ts +286 -0
- package/catalog/stacks/expo-quality-evidence.ts +212 -0
- package/catalog/stacks/expo-revenuecat-wiring.ts +168 -0
- package/catalog/stacks/expo-router-contract.ts +399 -0
- package/catalog/stacks/expo-sdk-upgrade.ts +186 -0
- package/catalog/stacks/expo-selection.ts +736 -0
- package/catalog/stacks/expo-starter-fixture/README.md +13 -0
- package/catalog/stacks/expo-starter-fixture/app/(tabs)/_layout.tsx +11 -0
- package/catalog/stacks/expo-starter-fixture/app/(tabs)/index.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/(tabs)/settings.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/+not-found.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/README.md +1 -0
- package/catalog/stacks/expo-starter-fixture/app/_layout.tsx +16 -0
- package/catalog/stacks/expo-starter-fixture/app/detail/[id].tsx +7 -0
- package/catalog/stacks/expo-starter-fixture/app/modal.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/sign-in.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app.json +26 -0
- package/catalog/stacks/expo-starter-fixture/babel.config.js +4 -0
- package/catalog/stacks/expo-starter-fixture/gitignore.template +14 -0
- package/catalog/stacks/expo-starter-fixture/metro.config.js +3 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/NOTICE +1 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/README.md +1 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/android/build.gradle +15 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/android/src/main/AndroidManifest.xml +1 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/android/src/main/java/app/example/b2cnativecapability/B2cNativeCapabilityModule.kt +19 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/expo-module.config.json +9 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/ios/B2cNativeCapability.podspec +22 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/ios/B2cNativeCapabilityModule.swift +16 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/package.json +15 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/capability.ts +48 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/index.ts +3 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/index.web.ts +9 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/invoke.ts +13 -0
- package/catalog/stacks/expo-starter-fixture/package.json +38 -0
- package/catalog/stacks/expo-starter-fixture/src/capabilities/reducers.ts +146 -0
- package/catalog/stacks/expo-starter-fixture/src/native/capability-status.tsx +37 -0
- package/catalog/stacks/expo-starter-fixture/src/native/capability-status.web.tsx +13 -0
- package/catalog/stacks/expo-starter-fixture/src/navigation/deep-link.ts +12 -0
- package/catalog/stacks/expo-starter-fixture/src/navigation/journeys.ts +115 -0
- package/catalog/stacks/expo-starter-fixture/src/navigation/route-graph.ts +45 -0
- package/catalog/stacks/expo-starter-fixture/src/notifications/handoff.ts +13 -0
- package/catalog/stacks/expo-starter-fixture/src/offline/local-cache.ts +72 -0
- package/catalog/stacks/expo-starter-fixture/src/permissions/safe-state.ts +11 -0
- package/catalog/stacks/expo-starter-fixture/src/persistence/seam.ts +28 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/detail.tsx +20 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/home.tsx +84 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/modal.tsx +18 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/not-found.tsx +18 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/settings.tsx +40 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/sign-in.tsx +34 -0
- package/catalog/stacks/expo-starter-fixture/src/session/local-session.ts +22 -0
- package/catalog/stacks/expo-starter-fixture/src/states/surface-state.ts +16 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/contract-binding.ts +9 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/empty-state.tsx +22 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/haptics.tsx +33 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/keyboard-behavior.tsx +18 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/press-feedback.tsx +37 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/skeleton.tsx +53 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/tokens.ts +5 -0
- package/catalog/stacks/expo-starter-fixture/tsconfig.json +8 -0
- package/catalog/stacks/expo-starter.ts +400 -0
- package/catalog/stacks/expo-web-api-routes.ts +237 -0
- package/catalog/stacks/expo-web-static.ts +560 -0
- package/catalog/stacks/expo-web-surface-table.ts +228 -0
- package/catalog/task-skills.ts +369 -0
- package/catalog/taxonomy/concept-scheme.schema.json +92 -0
- package/catalog/taxonomy/concept-scheme.yaml +978 -0
- package/catalog/taxonomy/load.ts +115 -0
- package/catalog/taxonomy/types.ts +79 -0
- package/catalog/taxonomy/validate.ts +234 -0
- package/catalog/types.ts +452 -0
- package/catalog/upstreams/README.md +23 -0
- package/catalog/upstreams/amir-brand-system.yaml +78 -0
- package/catalog/upstreams/amir-cinematic-scroll.yaml +84 -0
- package/catalog/upstreams/appllama-skills.yaml +129 -0
- package/catalog/upstreams/eronred-aso-skills.yaml +107 -0
- package/catalog/upstreams/evanbacon-serve-sim.yaml +102 -0
- package/catalog/upstreams/last30days-skill.yaml +128 -0
- package/catalog/upstreams/layers-growth-mcp.yaml +128 -0
- package/catalog/upstreams/notices/amir-brand-system.txt +395 -0
- package/catalog/upstreams/notices/amir-cinematic-scroll.txt +21 -0
- package/catalog/upstreams/notices/appllama-skills.txt +21 -0
- package/catalog/upstreams/notices/eronred-aso-skills.txt +21 -0
- package/catalog/upstreams/notices/evanbacon-serve-sim.txt +202 -0
- package/catalog/upstreams/notices/last30days-skill.txt +21 -0
- package/catalog/upstreams/notices/layers-growth-mcp.txt +21 -0
- package/catalog/upstreams/notices/parth-app-store-screenshots.txt +21 -0
- package/catalog/upstreams/notices/posthog-wizard.txt +21 -0
- package/catalog/upstreams/notices/revenuecat-ai-toolkit.txt +21 -0
- package/catalog/upstreams/notices/revenuecat-cli.txt +21 -0
- package/catalog/upstreams/notices/rork-app-store-connect-cli-skills.txt +21 -0
- package/catalog/upstreams/notices/rork-app-store-connect-cli.txt +21 -0
- package/catalog/upstreams/notices/sentry-snapshotpreviews.txt +22 -0
- package/catalog/upstreams/notices/sentry-xcodebuildmcp.txt +21 -0
- package/catalog/upstreams/notices/typesafe-ai.txt +21 -0
- package/catalog/upstreams/observations/eronred-aso-skills.json +20 -0
- package/catalog/upstreams/observations/evanbacon-serve-sim.json +20 -0
- package/catalog/upstreams/observations/parth-app-store-screenshots.json +20 -0
- package/catalog/upstreams/observations/posthog-context-mill.json +28 -0
- package/catalog/upstreams/observations/posthog-wizard.json +27 -0
- package/catalog/upstreams/observations/revenuecat-ai-toolkit.json +27 -0
- package/catalog/upstreams/observations/revenuecat-cli.json +27 -0
- package/catalog/upstreams/observations/rork-app-store-connect-cli.json +78 -0
- package/catalog/upstreams/observations/sentry-snapshotpreviews.json +23 -0
- package/catalog/upstreams/observations/sentry-xcodebuildmcp.json +23 -0
- package/catalog/upstreams/observations/typesafe-ai.json +30 -0
- package/catalog/upstreams/parth-app-store-screenshots.yaml +105 -0
- package/catalog/upstreams/posthog-context-mill.yaml +62 -0
- package/catalog/upstreams/posthog-wizard.yaml +74 -0
- package/catalog/upstreams/revenuecat-ai-toolkit.yaml +98 -0
- package/catalog/upstreams/revenuecat-cli.yaml +166 -0
- package/catalog/upstreams/rork-app-store-connect-cli-skills.yaml +100 -0
- package/catalog/upstreams/rork-app-store-connect-cli.yaml +211 -0
- package/catalog/upstreams/sentry-snapshotpreviews.yaml +103 -0
- package/catalog/upstreams/sentry-xcodebuildmcp.yaml +101 -0
- package/catalog/upstreams/typesafe-ai.yaml +144 -0
- package/catalog/validate.ts +898 -0
- package/catalog/workflows/build-release.ts +735 -0
- package/catalog/workflows/growth-revenue.ts +338 -0
- package/catalog/workflows/helpers.ts +103 -0
- package/catalog/workflows/index.ts +9 -0
- package/catalog/workflows/maintenance.ts +283 -0
- package/catalog/workflows/operating-system.ts +261 -0
- package/catalog/workflows/operations-trust.ts +425 -0
- package/catalog/workflows/product-experience.ts +1263 -0
- package/checks/validation/README.md +6 -0
- package/checks/validation/business/data/check-analytics-catalog.ts +166 -0
- package/checks/validation/business/data/check-attribution-contract.ts +731 -0
- package/checks/validation/business/design/check-audience-identity.ts +260 -0
- package/checks/validation/business/design/check-browser-runtime-proof.ts +269 -0
- package/checks/validation/business/design/check-component-contracts.ts +365 -0
- package/checks/validation/business/design/check-content-assets.ts +600 -0
- package/checks/validation/business/design/check-design-acceptance.ts +6 -0
- package/checks/validation/business/design/check-design-md.ts +19 -0
- package/checks/validation/business/design/check-design-room-contract.ts +200 -0
- package/checks/validation/business/design/check-design-worthiness.ts +710 -0
- package/checks/validation/business/design/check-motion-contract.ts +1374 -0
- package/checks/validation/business/design/check-scrollytelling-contract.ts +1486 -0
- package/checks/validation/business/design/check-token-promotion.ts +75 -0
- package/checks/validation/business/design/check-vibecoded-tells.ts +396 -0
- package/checks/validation/business/design/color-contrast.ts +45 -0
- package/checks/validation/business/design/design-acceptance.ts +1861 -0
- package/checks/validation/business/design/lib/legal-navigation.ts +1766 -0
- package/checks/validation/business/design/lib/vibecode-tells.ts +112 -0
- package/checks/validation/business/design/lib/worthiness-mechanical.ts +196 -0
- package/checks/validation/business/design/runtime-reviewer-inputs.ts +59 -0
- package/checks/validation/business/design/surface-page-gates.ts +191 -0
- package/checks/validation/business/design/validate-state.ts +15 -0
- package/checks/validation/business/engineering/check-archetype-starter.ts +457 -0
- package/checks/validation/business/engineering/check-backend-data-contract.ts +151 -0
- package/checks/validation/business/engineering/check-compound-engineering-routing.ts +153 -0
- package/checks/validation/business/engineering/check-mobai-proof.ts +486 -0
- package/checks/validation/business/engineering/check-native-android-proof.ts +486 -0
- package/checks/validation/business/engineering/check-native-ios-proof.ts +465 -0
- package/checks/validation/business/engineering/check-readiness-coverage.ts +242 -0
- package/checks/validation/business/engineering/check-roster-headless-safety.ts +70 -0
- package/checks/validation/business/engineering/check-roster-overlap.ts +159 -0
- package/checks/validation/business/engineering/check-source-checkpoint.ts +123 -0
- package/checks/validation/business/engineering/check-technical-docs-ste100.ts +319 -0
- package/checks/validation/business/engineering/check-template-safety.ts +75 -0
- package/checks/validation/business/engineering/native-ios-retained-proof.ts +128 -0
- package/checks/validation/business/engineering/strict-ios-receipt.ts +387 -0
- package/checks/validation/business/experience/check-emotional-design.ts +1246 -0
- package/checks/validation/business/experience/check-onboarding-cutover-repository.ts +157 -0
- package/checks/validation/business/experience/check-onboarding-evidence-packet.ts +263 -0
- package/checks/validation/business/experience/check-onboarding-foundations.ts +16 -0
- package/checks/validation/business/experience/check-onboarding-graph.ts +795 -0
- package/checks/validation/business/experience/onboarding-foundations.ts +372 -0
- package/checks/validation/business/growth/check-landing-funnel.ts +593 -0
- package/checks/validation/business/growth/check-paid-user-acquisition.ts +601 -0
- package/checks/validation/business/money/check-price-derivation.ts +127 -0
- package/checks/validation/business/money/check-revenue.ts +72 -0
- package/checks/validation/business/money/price-evidence.ts +37 -0
- package/checks/validation/business/operations/check-agent-operations.ts +709 -0
- package/checks/validation/business/operations/check-email.ts +356 -0
- package/checks/validation/business/operations/check-founder-operator-bootstrap.ts +759 -0
- package/checks/validation/business/operations/check-metric-contracts.ts +114 -0
- package/checks/validation/business/operations/check-paid-tool-intake.ts +71 -0
- package/checks/validation/business/operations/check-portfolio-registry.ts +99 -0
- package/checks/validation/business/operations/check-post-launch-ops.ts +834 -0
- package/checks/validation/business/orchestration/check-continuity-contract.ts +266 -0
- package/checks/validation/business/orchestration/check-parallel-orchestration.ts +218 -0
- package/checks/validation/business/orchestration/validate-project-state.ts +357 -0
- package/checks/validation/business/process/check-artifact-templates.ts +103 -0
- package/checks/validation/business/process/check-change-cascade.ts +318 -0
- package/checks/validation/business/process/check-generated-pages.ts +153 -0
- package/checks/validation/business/process/check-lane-coverage.ts +377 -0
- package/checks/validation/business/process/check-live-provider-proof.ts +284 -0
- package/checks/validation/business/process/check-repository-profile.ts +43 -0
- package/checks/validation/business/product/check-app-archetype.ts +266 -0
- package/checks/validation/business/product/check-product-md.ts +67 -0
- package/checks/validation/business/research/check-evidence-schema-drift.ts +50 -0
- package/checks/validation/business/research/check-localization-research.ts +144 -0
- package/checks/validation/business/research/check-research-evidence.ts +1324 -0
- package/checks/validation/business/research/offer-evidence.ts +360 -0
- package/checks/validation/business/research/render-evidence-markdown.ts +378 -0
- package/checks/validation/business/research/research-evidence-helpers.ts +21 -0
- package/checks/validation/business/store/check-app-review-contract.ts +433 -0
- package/checks/validation/business/store/check-app-store-portfolio.ts +279 -0
- package/checks/validation/business/store/check-apple-app-store-requirements.ts +735 -0
- package/checks/validation/business/store/check-asc-command-contract.ts +175 -0
- package/checks/validation/business/store/check-aso-evidence.ts +162 -0
- package/checks/validation/business/store/check-store-console-packet.ts +480 -0
- package/checks/validation/business/store/check-store-screenshots.ts +1113 -0
- package/checks/validation/business/trust/check-ai-provider-controls.ts +127 -0
- package/checks/validation/business/trust/check-privacy-terms.ts +238 -0
- package/checks/validation/business/trust/check-secret-routing.ts +233 -0
- package/checks/validation/business/trust/check-security-release.ts +199 -0
- package/checks/validation/business/words/check-app-copy.ts +1019 -0
- package/checks/validation/business/words/check-founder-copy.ts +471 -0
- package/checks/validation/business/words/check-no-slop.ts +148 -0
- package/checks/validation/repository/README.md +31 -0
- package/checks/validation/repository/agent-guidance-contract.ts +283 -0
- package/checks/validation/repository/audit-skill-links.ts +176 -0
- package/checks/validation/repository/check-agent-entrypoints.ts +259 -0
- package/checks/validation/repository/check-architecture.ts +393 -0
- package/checks/validation/repository/check-autopilot-contract.ts +277 -0
- package/checks/validation/repository/check-capability-delta.ts +30 -0
- package/checks/validation/repository/check-catalog.ts +88 -0
- package/checks/validation/repository/check-engine-e2e.ts +609 -0
- package/checks/validation/repository/check-gates-layout.ts +109 -0
- package/checks/validation/repository/check-graph-foundations.ts +158 -0
- package/checks/validation/repository/check-hub-spoke.ts +144 -0
- package/checks/validation/repository/check-learning-grounding.ts +323 -0
- package/checks/validation/repository/check-operating-graph.ts +205 -0
- package/checks/validation/repository/check-pack-composition.ts +94 -0
- package/checks/validation/repository/check-package-parity.ts +632 -0
- package/checks/validation/repository/check-provider-boundary.ts +154 -0
- package/checks/validation/repository/check-provider-contracts.ts +24 -0
- package/checks/validation/repository/check-reference-size.ts +354 -0
- package/checks/validation/repository/check-repository-boundary.ts +2385 -0
- package/checks/validation/repository/check-skill-supply-chain.ts +290 -0
- package/checks/validation/repository/check-skill-version.ts +363 -0
- package/checks/validation/repository/check-source-freshness.ts +627 -0
- package/checks/validation/repository/check-task-skills.ts +40 -0
- package/checks/validation/repository/check-upstreams.ts +189 -0
- package/checks/validation/repository/check-validator-docs.ts +84 -0
- package/checks/validation/repository/check-version-discipline.ts +314 -0
- package/checks/validation/repository/evals/agent-behavior/ai-chat-companion-archetype-prompt-pack.yaml +21 -0
- package/checks/validation/repository/evals/agent-behavior/appllama-provider-boundary.yaml +18 -0
- package/checks/validation/repository/evals/agent-behavior/compound-engineering-core-work.yaml +16 -0
- package/checks/validation/repository/evals/agent-behavior/design-room-state-render.yaml +15 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-asc-command-contract.yaml +22 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-doctor-asc-winner.yaml +27 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-phase0-apple-honesty.yaml +28 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-portfolio-hold.yaml +29 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-tool-intake-fallback.yaml +32 -0
- package/checks/validation/repository/evals/agent-behavior/founder-zero-business-operator.yaml +28 -0
- package/checks/validation/repository/evals/agent-behavior/frontier-agent-operations.yaml +25 -0
- package/checks/validation/repository/evals/agent-behavior/habit-tracker-archetype-prompt-pack.yaml +22 -0
- package/checks/validation/repository/evals/agent-behavior/last30days-research-boundary.yaml +22 -0
- package/checks/validation/repository/evals/agent-behavior/mobile-flow-craft.yaml +23 -0
- package/checks/validation/repository/evals/agent-behavior/onboarding-review-after-engaged-normal-use.yaml +21 -0
- package/checks/validation/repository/evals/agent-behavior/onboarding-system-graph-rebuild.yaml +26 -0
- package/checks/validation/repository/evals/agent-behavior/photo-ai-media-archetype-prompt-pack.yaml +26 -0
- package/checks/validation/repository/evals/agent-behavior/post-launch-ops-live-app.yaml +27 -0
- package/checks/validation/repository/evals/agent-behavior/provider-proof-before-ready.yaml +15 -0
- package/checks/validation/repository/evals/agent-behavior/session-continuity-resume.yaml +19 -0
- package/checks/validation/repository/evals/agent-behavior/social-network-archetype-prompt-pack.yaml +21 -0
- package/checks/validation/repository/evals/agent-behavior/stale-skill-upgrade.yaml +14 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-alternate-provider.yaml +17 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-focused-onboarding.yaml +17 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-managed-continuation.yaml +17 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-missing-runtime.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/age-rating-questionnaire-missing.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/agent-behavior-evals-missing.yaml +11 -0
- package/checks/validation/repository/evals/launchbench/app-archetype-pack-incomplete.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/app-preview-video-hook-missing.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/app-price-vs-iap-confusion.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/app-review-accepted-webhook-not-consumed.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-agreements-status-blocks-poll.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-binary-old-archive.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-consume-fixture-as-truth.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-consumed-envelope-left-in-queue.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/app-review-invalid-state.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-live-poll-created-date.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-missing-49-capability.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-missing-state.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-pending-agreement.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-protected-policy.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-resubmit-cycle-cap.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-resubmit-timeout-readback.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-resubmit-unauthorized.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-reviewer-injection.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-unknown-state.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-unobserved-shape.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-unsigned-webhook.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-verifier-self.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/app-review-web-session-missing.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/app-review-webhook-payload-as-truth.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/app-review-webhooks-serve.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-store-screenshots-unvalidated.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/app-strings-hardcoded-not-localization-ready.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-ui-copy-reads-like-spec.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/apple-requirements-thin.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/apple-signing-pre-upload-checklist.yaml +57 -0
- package/checks/validation/repository/evals/launchbench/apple-simulator-only.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/archetype-starter-ignored.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/artifact-template-coverage-gap.yaml +11 -0
- package/checks/validation/repository/evals/launchbench/asc-auth-recovery-not-attempted.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/asc-auth-unverifiable-on-knowledge-surface.yaml +38 -0
- package/checks/validation/repository/evals/launchbench/asc-cli-app-create-screenshot-orchestration-missed.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/asc-flag-drift-runtime.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/asc-listing-thin.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/asc-name-fallback.yaml +12 -0
- package/checks/validation/repository/evals/launchbench/asc-promoted-iap-image-duplicate.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/asc-review-information-missing.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/asc-stale-command-guidance.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/aso-discover-without-ads.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/aso-metadata-appkittie-skipped.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/aso-metadata-stale-log-source.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/aso-unavailable-fabricated.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/attribution-event-only.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/authenticated-browser-mutation-unapproved.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/backend-data-contract-missing.yaml +35 -0
- package/checks/validation/repository/evals/launchbench/behavioral-eval-split-misclaimed.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/broad-request-narrated-not-routed.yaml +32 -0
- package/checks/validation/repository/evals/launchbench/browser-action-state-not-reconciled.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/browser-capability-skipped.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/browser-prompt-injection-followed.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/browser-research-untraceable.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/ce-unavailable-standalone-loop-missing.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/change-cascade-incomplete.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/commitment-funnel-missing.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/compound-freshness-not-checked.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/compound-routing-skipped.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/context-budget-exceeded.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/continuity-drift-between-sessions.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/copy-deck-skipped-during-build.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/copy-ip-sweep-altered-brand-vocabulary.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/design-evidence-pass-skipped.yaml +32 -0
- package/checks/validation/repository/evals/launchbench/design-lock-landing-fanout-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/design-room-freeform-proposal.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/design-token-promotion-missing.yaml +11 -0
- package/checks/validation/repository/evals/launchbench/design-worthiness-contrast-fail.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/design-worthiness-taste-missing.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/distribution-first-compliments.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/doppler-config-name-and-credential-routing.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/doppler-raw-token-requested.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/email-lane-deep-proof-missing.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/emotional-audit-prose-without-card-mapping.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/emotional-claim-without-research-grounding.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/emotional-design-system-missing.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/evidence-bar-overengineered.yaml +34 -0
- package/checks/validation/repository/evals/launchbench/founder-gate-deferred-forever.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/founder-gate-jargon-without-choice.yaml +27 -0
- package/checks/validation/repository/evals/launchbench/founder-zero-operator-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/geo-seo-landing-copy-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/graph-foundations-unenforceable-principle.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/hdyhau-survey-missing.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/higgsfield-design-brief-missing.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/higgsfield-remotion-fallback-unapproved.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/higgsfield-soul-identity-retrained-duplicate.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/house-style-adr-api-example.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/house-style-customer-voice.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/house-style-entrypoints.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/house-style-fixture-as-provider-ready.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/house-style-handoff.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/house-style-inspect-read-only-claim.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/house-style-literal-controls.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/house-style-mixed-readme.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/house-style-packaged-ethos-path.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/house-style-partial-pr.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/house-style-readme-kitchen.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/house-style-timeout-uncertain-mutation.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/in-app-simulator-route-mishandled.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/influencer-sponsorship-shortcuts.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/landing-funnel-deploy-gates.yaml +31 -0
- package/checks/validation/repository/evals/launchbench/landing-motion-progressive-enhancement-missing.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/launch-tier-overproduction.yaml +41 -0
- package/checks/validation/repository/evals/launchbench/live-effect-false-progress.yaml +28 -0
- package/checks/validation/repository/evals/launchbench/live-provider-proof-missing.yaml +12 -0
- package/checks/validation/repository/evals/launchbench/localization-malformed-seasonal-dates.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/localization-same-day-peak.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/missed-provider-deprecation-unmigrated.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/mobai-fallback-unapproved.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/mobai-onboarding-chain-unverified.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/mobai-v25-proof-conflated-or-unsafe.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/monetization-cozy-default-stack-unexamined.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/motion-craft-prose-never-applied.yaml +41 -0
- package/checks/validation/repository/evals/launchbench/multi-runtime-skill-pin-drift.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/native-ios-proof-route-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/non-competitor-angle-hunt-missing.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/onboarding-event-invented-without-catalog.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/onboarding-research-auth-analytics-skipped.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/operating-graph-pack-leakage.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/operator-stops-after-access-instructions.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/orchestration-preflight-missing.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/pack-composition-weakens-base.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-anonymous-generation.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-controls-file-missing.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-kill-switch-disables-free.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-not-applicable-with-product-evidence.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-pack-omitted-while-spend-active.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/paid-ua-pending-mmp-waiver.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/paid-ua-spend-discipline-missing.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/paid-ua-spend-ready-without-appsflyer.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/paid-user-acquisition-system-missing.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/parallel-file-overlap-unsafe.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/paywall-engine-mismatch.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/paywall-experiment-program-unowned.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/paywall-experimentation-never-starts.yaml +35 -0
- package/checks/validation/repository/evals/launchbench/paywall-goal-headline-missing.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/post-launch-metrics-never-operated.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/post-launch-ops-runbook-missing.yaml +34 -0
- package/checks/validation/repository/evals/launchbench/post-launch-zombie-app-no-kill-decision.yaml +35 -0
- package/checks/validation/repository/evals/launchbench/pre-build-kill-gate-skipped.yaml +43 -0
- package/checks/validation/repository/evals/launchbench/price-derivation-apply-without-dry-run.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/price-derivation-multiplier-as-approval.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/project-state-stale-after-upload.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/remotion-assets-thin.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/remotion-license-unchecked.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-acceptance-incomplete.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-overlay-invalid-yaml.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-public-community-on-private.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-suppresses-privacy.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/resend-template-unbranded.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/revenuecat-entitlement-unproven.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/revenuecat-experiments-capability-unclassified.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/revenuecat-subscription-preflight-missing.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/review-prompt-teardown-race.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-copy-visual-disconnect.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-mobile-short-height-failure.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-reduced-motion-no-js-failure.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-scroll-sync-drift.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/secret-routing-missing.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/secrets-baseline-skipped.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/security-release-lane-missing.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/social-shared-password-instead-of-delegation.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/source-checkpoint-missing.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/source-registry-url-untracked.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/stale-blocker-after-authoritative-readback.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/stale-installed-skill-runtime.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/standing-approval-reprompt-and-late-tool-preflight.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/state-updated-but-never-narrated.yaml +30 -0
- package/checks/validation/repository/evals/launchbench/store-screenshots-raw-only.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/subagent-dispatch-skipped.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/subagent-findings-unintegrated.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/subagent-forbidden-actions.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/transformation-demo-vitamin.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/typed-skill-graph-drift.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/variable-reward-without-ethics-guardrail.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/virality-predictor-skipped-before-spend.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/weekly-source-refresh-unreviewed.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/xctest-signal-kill-loop.yaml +17 -0
- package/checks/validation/repository/evals/triggering/autopilot-triggering.yaml +140 -0
- package/checks/validation/repository/fixtures/_builders-ops.ts +358 -0
- package/checks/validation/repository/fixtures/_builders-store.ts +380 -0
- package/checks/validation/repository/fixtures/_evidence-header-constants.ts +37 -0
- package/checks/validation/repository/fixtures/_harness.ts +213 -0
- package/checks/validation/repository/fixtures/_source-http-checks.ts +258 -0
- package/checks/validation/repository/fixtures/_source-http-preload.mjs +71 -0
- package/checks/validation/repository/fixtures/_state.ts +29 -0
- package/checks/validation/repository/fixtures/_table-edit.ts +18 -0
- package/checks/validation/repository/fixtures/agent-entrypoints.fixtures.ts +277 -0
- package/checks/validation/repository/fixtures/agent-operations.fixtures.ts +614 -0
- package/checks/validation/repository/fixtures/appkittie-adapter.fixtures.ts +143 -0
- package/checks/validation/repository/fixtures/archetype.fixtures.ts +137 -0
- package/checks/validation/repository/fixtures/architecture.fixtures.ts +127 -0
- package/checks/validation/repository/fixtures/behavioral.fixtures.ts +19 -0
- package/checks/validation/repository/fixtures/check-json.fixtures.ts +145 -0
- package/checks/validation/repository/fixtures/continuity-length-budget.fixtures.ts +35 -0
- package/checks/validation/repository/fixtures/copy.fixtures.ts +1486 -0
- package/checks/validation/repository/fixtures/core-artifacts.fixtures.ts +3208 -0
- package/checks/validation/repository/fixtures/design-taste-grading.fixtures.ts +358 -0
- package/checks/validation/repository/fixtures/design-taste-rubric.fixtures.ts +136 -0
- package/checks/validation/repository/fixtures/design.fixtures.ts +5771 -0
- package/checks/validation/repository/fixtures/engineering.fixtures.ts +764 -0
- package/checks/validation/repository/fixtures/evidence-schema.fixtures.ts +448 -0
- package/checks/validation/repository/fixtures/founder-operator.fixtures.ts +897 -0
- package/checks/validation/repository/fixtures/graph-foundations.fixtures.ts +107 -0
- package/checks/validation/repository/fixtures/growth.fixtures.ts +908 -0
- package/checks/validation/repository/fixtures/learning.fixtures.ts +243 -0
- package/checks/validation/repository/fixtures/lifecycle.fixtures.ts +1958 -0
- package/checks/validation/repository/fixtures/mobai.fixtures.ts +277 -0
- package/checks/validation/repository/fixtures/onboarding.fixtures.ts +2447 -0
- package/checks/validation/repository/fixtures/operating-graph.fixtures.ts +24 -0
- package/checks/validation/repository/fixtures/pack-composition.fixtures.ts +117 -0
- package/checks/validation/repository/fixtures/probes-and-grading.fixtures.ts +122 -0
- package/checks/validation/repository/fixtures/provider-contracts.fixtures.ts +378 -0
- package/checks/validation/repository/fixtures/providers-and-secrets.fixtures.ts +1266 -0
- package/checks/validation/repository/fixtures/repo-gates.fixtures.ts +2451 -0
- package/checks/validation/repository/fixtures/repository-boundary.fixtures.ts +2281 -0
- package/checks/validation/repository/fixtures/repository-profile.fixtures.ts +244 -0
- package/checks/validation/repository/fixtures/roster.fixtures.ts +62 -0
- package/checks/validation/repository/fixtures/runtime-sync.fixtures.ts +286 -0
- package/checks/validation/repository/fixtures/skill-supply-chain.fixtures.ts +114 -0
- package/checks/validation/repository/fixtures/source-access.fixtures.ts +523 -0
- package/checks/validation/repository/fixtures/state-and-meta.fixtures.ts +1518 -0
- package/checks/validation/repository/fixtures/store.fixtures.ts +1573 -0
- package/checks/validation/repository/fixtures/upstreams.fixtures.ts +222 -0
- package/checks/validation/repository/launchbench-evals.md +150 -0
- package/checks/validation/repository/message-batches.ts +75 -0
- package/checks/validation/repository/refresh-source-freshness.ts +341 -0
- package/checks/validation/repository/run-agent-evals.ts +117 -0
- package/checks/validation/repository/run-behavioral-evals.ts +612 -0
- package/checks/validation/repository/run-launchbench.ts +246 -0
- package/checks/validation/repository/run-validator-fixtures.ts +173 -0
- package/checks/validation/repository/skill-versioning.md +91 -0
- package/checks/validation/repository/source-freshness-maintenance.md +129 -0
- package/checks/validation/repository/source-registry.yaml +2976 -0
- package/contracts/contribution/contract.ts +571 -0
- package/contracts/extensions/contract.ts +307 -0
- package/contracts/extensions/schemas/extension.schema.json +756 -0
- package/contracts/mobile-operation.ts +148 -0
- package/contracts/onboarding/foundations.ts +286 -0
- package/contracts/public-api/REFERENCE.md +206 -0
- package/contracts/public-api/connection-receipt.ts +645 -0
- package/contracts/public-api/contract.ts +786 -0
- package/contracts/public-api/examples/mobile-app-capture.json +5 -0
- package/contracts/public-api/examples/subscription-app.json +19 -0
- package/contracts/public-api/research-contract.ts +125 -0
- package/contracts/public-api/schemas/business.create.input.schema.json +38 -0
- package/contracts/public-api/schemas/business.create.result.schema.json +177 -0
- package/contracts/public-api/schemas/business.evidence.input.schema.json +19 -0
- package/contracts/public-api/schemas/business.evidence.result.schema.json +206 -0
- package/contracts/public-api/schemas/business.initialize.input.schema.json +20 -0
- package/contracts/public-api/schemas/business.initialize.result.schema.json +140 -0
- package/contracts/public-api/schemas/business.plan.input.schema.json +21 -0
- package/contracts/public-api/schemas/business.plan.result.schema.json +1007 -0
- package/contracts/public-api/schemas/business.recover.input.schema.json +25 -0
- package/contracts/public-api/schemas/business.recover.result.schema.json +179 -0
- package/contracts/public-api/schemas/business.research.decision.input.schema.json +53 -0
- package/contracts/public-api/schemas/business.research.decision.result.schema.json +184 -0
- package/contracts/public-api/schemas/business.research.lookup.input.schema.json +87 -0
- package/contracts/public-api/schemas/business.research.lookup.result.schema.json +281 -0
- package/contracts/public-api/schemas/business.research.record.input.schema.json +136 -0
- package/contracts/public-api/schemas/business.research.record.result.schema.json +149 -0
- package/contracts/public-api/schemas/business.run.input.schema.json +53 -0
- package/contracts/public-api/schemas/business.run.result.schema.json +218 -0
- package/contracts/public-api/schemas/business.status.input.schema.json +15 -0
- package/contracts/public-api/schemas/business.status.result.schema.json +319 -0
- package/contracts/public-api/schemas/catalog.list.input.schema.json +20 -0
- package/contracts/public-api/schemas/catalog.list.result.schema.json +208 -0
- package/contracts/public-api/schemas/composition.activate.input.schema.json +30 -0
- package/contracts/public-api/schemas/composition.activate.result.schema.json +161 -0
- package/contracts/public-api/schemas/composition.plan.input.schema.json +25 -0
- package/contracts/public-api/schemas/composition.plan.result.schema.json +253 -0
- package/contracts/public-api/schemas/composition.preview.input.schema.json +118 -0
- package/contracts/public-api/schemas/composition.preview.result.schema.json +284 -0
- package/contracts/public-api/schemas/composition.recover.input.schema.json +23 -0
- package/contracts/public-api/schemas/composition.recover.result.schema.json +161 -0
- package/contracts/public-api/schemas/composition.schema.json +101 -0
- package/contracts/public-api/schemas/market.report.input.schema.json +21 -0
- package/contracts/public-api/schemas/market.report.result.schema.json +377 -0
- package/contracts/public-api/schemas/packages.import.input.schema.json +29 -0
- package/contracts/public-api/schemas/packages.import.result.schema.json +177 -0
- package/contracts/public-api/schemas/packages.list.input.schema.json +15 -0
- package/contracts/public-api/schemas/packages.list.result.schema.json +189 -0
- package/contracts/research/observation.ts +27 -0
- package/contracts/semantic/canonicalize.ts +25 -0
- package/contracts/semantic/index.ts +116 -0
- package/contracts/semantic/package-resource.ts +53 -0
- package/contracts/semantic/query-ir.ts +215 -0
- package/contracts/semantic/question-pack.ts +176 -0
- package/contracts/semantic/questions.ts +149 -0
- package/contracts/semantic/receipts.ts +179 -0
- package/contracts/shared-resources.ts +18 -0
- package/contracts/source-access.ts +44 -0
- package/contracts/worker-artifact.ts +14 -0
- package/dist/adapters/app-review/archive.js +46 -0
- package/dist/adapters/app-review/asc-boundary.js +71 -0
- package/dist/adapters/app-review/asc-provider.js +474 -0
- package/dist/adapters/app-review/auth.js +53 -0
- package/dist/adapters/app-review/capability.js +195 -0
- package/dist/adapters/app-review/classify.js +107 -0
- package/dist/adapters/app-review/consume.js +77 -0
- package/dist/adapters/app-review/envelope.js +89 -0
- package/dist/adapters/app-review/events.js +381 -0
- package/dist/adapters/app-review/hmac.js +72 -0
- package/dist/adapters/app-review/implement.js +76 -0
- package/dist/adapters/app-review/index.js +29 -0
- package/dist/adapters/app-review/ingest.js +106 -0
- package/dist/adapters/app-review/mandate.js +76 -0
- package/dist/adapters/app-review/normalize.js +245 -0
- package/dist/adapters/app-review/packet.js +236 -0
- package/dist/adapters/app-review/persist.js +83 -0
- package/dist/adapters/app-review/plan.js +268 -0
- package/dist/adapters/app-review/plist.js +218 -0
- package/dist/adapters/app-review/poll.js +224 -0
- package/dist/adapters/app-review/projection.js +143 -0
- package/dist/adapters/app-review/queue.js +115 -0
- package/dist/adapters/app-review/receiver.js +78 -0
- package/dist/adapters/app-review/registration.js +52 -0
- package/dist/adapters/app-review/remediate.js +185 -0
- package/dist/adapters/app-review/render.js +175 -0
- package/dist/adapters/app-review/resubmit.js +322 -0
- package/dist/adapters/app-review/types.js +52 -0
- package/dist/adapters/app-review/uncertain-execution.js +151 -0
- package/dist/adapters/app-review/verification.js +35 -0
- package/dist/adapters/appkittie-category-revenue.js +69 -0
- package/dist/adapters/claude.js +51 -0
- package/dist/adapters/codex.js +47 -0
- package/dist/adapters/cursor.js +48 -0
- package/dist/adapters/device-proof.js +649 -0
- package/dist/adapters/greenfield/boundary.js +126 -0
- package/dist/adapters/greenfield/fail-safe.js +120 -0
- package/dist/adapters/greenfield/index.js +2 -0
- package/dist/adapters/inline.js +35 -0
- package/dist/adapters/install-control-permissions.js +264 -0
- package/dist/adapters/install-entrypoints.js +344 -0
- package/dist/adapters/install-schedule.js +571 -0
- package/dist/adapters/ios-app-evidence.js +111 -0
- package/dist/adapters/mobile-operation-host.js +206 -0
- package/dist/adapters/mobile-operation.js +93 -0
- package/dist/adapters/operating.js +7 -0
- package/dist/adapters/probe.js +40 -0
- package/dist/adapters/profile.js +134 -0
- package/dist/adapters/providers/capability-delta.js +59 -0
- package/dist/adapters/providers/contract.js +41 -0
- package/dist/adapters/providers/evaluate.js +116 -0
- package/dist/adapters/providers/expo/argv.js +222 -0
- package/dist/adapters/providers/expo/decode.js +593 -0
- package/dist/adapters/providers/expo/discovery.js +94 -0
- package/dist/adapters/providers/expo/doctor.js +145 -0
- package/dist/adapters/providers/expo/effects.js +142 -0
- package/dist/adapters/providers/expo/execute.js +299 -0
- package/dist/adapters/providers/expo/expo-device-bind.js +91 -0
- package/dist/adapters/providers/expo/expo-mcp-route.js +282 -0
- package/dist/adapters/providers/expo/hosting-prepare.js +116 -0
- package/dist/adapters/providers/expo/identity.js +99 -0
- package/dist/adapters/providers/expo/index.js +26 -0
- package/dist/adapters/providers/expo/jobs.js +424 -0
- package/dist/adapters/providers/expo/preflight.js +215 -0
- package/dist/adapters/providers/expo/process.js +117 -0
- package/dist/adapters/providers/expo/project-config.js +147 -0
- package/dist/adapters/providers/expo/sanitize.js +46 -0
- package/dist/adapters/providers/expo/signing-readiness.js +108 -0
- package/dist/adapters/providers/expo/store-handoff.js +52 -0
- package/dist/adapters/providers/expo/update-identity.js +70 -0
- package/dist/adapters/providers/expo/update-policy.js +93 -0
- package/dist/adapters/providers/expo/update-prepare.js +104 -0
- package/dist/adapters/providers/expo/update-recovery.js +96 -0
- package/dist/adapters/providers/expo/update-rollout.js +69 -0
- package/dist/adapters/providers/expo/update-signing.js +69 -0
- package/dist/adapters/providers/expo/web-api-contract.js +112 -0
- package/dist/adapters/providers/growth-agent/boundary.js +143 -0
- package/dist/adapters/providers/growth-agent/fail-safe.js +220 -0
- package/dist/adapters/providers/growth-agent/index.js +2 -0
- package/dist/adapters/providers/layers/effects.js +72 -0
- package/dist/adapters/providers/layers/index.js +9 -0
- package/dist/adapters/providers/layers/jobs.js +207 -0
- package/dist/adapters/providers/layers/onboarding.js +114 -0
- package/dist/adapters/providers/layers/route.js +242 -0
- package/dist/adapters/providers/layers/transport.js +144 -0
- package/dist/adapters/providers/load.js +300 -0
- package/dist/adapters/providers/mobile-ops/boundary.js +114 -0
- package/dist/adapters/providers/mobile-ops/fail-safe.js +190 -0
- package/dist/adapters/providers/mobile-ops/index.js +2 -0
- package/dist/adapters/providers/monetization-validation.js +72 -0
- package/dist/adapters/providers/revenuecat/cli-catalog-observe.js +230 -0
- package/dist/adapters/providers/revenuecat/cli-catalog.js +941 -0
- package/dist/adapters/providers/revenuecat/cli-command-schema.js +319 -0
- package/dist/adapters/providers/revenuecat/cli-decode.js +740 -0
- package/dist/adapters/providers/revenuecat/cli-discovery.js +205 -0
- package/dist/adapters/providers/revenuecat/cli-doctor.js +199 -0
- package/dist/adapters/providers/revenuecat/cli-execute.js +345 -0
- package/dist/adapters/providers/revenuecat/cli-ledger.js +371 -0
- package/dist/adapters/providers/revenuecat/cli-operations.js +875 -0
- package/dist/adapters/providers/revenuecat/cli-preflight.js +175 -0
- package/dist/adapters/providers/revenuecat/cli-process.js +149 -0
- package/dist/adapters/providers/revenuecat/cli-proof.js +121 -0
- package/dist/adapters/providers/revenuecat/cli-reconcile-plan.js +901 -0
- package/dist/adapters/providers/revenuecat/provisioning.js +52 -0
- package/dist/adapters/providers/revenuecat/revenue-validation.js +772 -0
- package/dist/adapters/providers/runtime-pin.js +92 -0
- package/dist/adapters/providers/superwall/boundary.js +86 -0
- package/dist/adapters/providers/superwall/fail-safe.js +171 -0
- package/dist/adapters/providers/superwall/measurement.js +49 -0
- package/dist/adapters/providers/typesafe/assess.js +160 -0
- package/dist/adapters/providers/typesafe/binding.js +35 -0
- package/dist/adapters/providers/typesafe/connection.js +58 -0
- package/dist/adapters/providers/typesafe/decode.js +255 -0
- package/dist/adapters/providers/typesafe/effects.js +67 -0
- package/dist/adapters/providers/typesafe/encode.js +61 -0
- package/dist/adapters/providers/typesafe/index.js +12 -0
- package/dist/adapters/providers/typesafe/support.js +65 -0
- package/dist/adapters/providers/typesafe/transport.js +318 -0
- package/dist/adapters/provisioning/capability-gaps.js +66 -0
- package/dist/adapters/provisioning/capability-readiness.js +39 -0
- package/dist/adapters/provisioning/cli.js +259 -0
- package/dist/adapters/provisioning/requirements.js +458 -0
- package/dist/adapters/provisioning/resolve.js +217 -0
- package/dist/adapters/registry.js +180 -0
- package/dist/catalog/agent-graph/load.js +102 -0
- package/dist/catalog/agent-graph/types.js +15 -0
- package/dist/catalog/agent-graph/validate.js +110 -0
- package/dist/catalog/areas.js +83 -0
- package/dist/catalog/artifacts.js +38 -0
- package/dist/catalog/authoring.js +43 -0
- package/dist/catalog/bridge.js +221 -0
- package/dist/catalog/business-primitives.js +80 -0
- package/dist/catalog/business-units.js +13 -0
- package/dist/catalog/capabilities/types.js +3 -0
- package/dist/catalog/context-packs.js +76 -0
- package/dist/catalog/domain-authority.js +32 -0
- package/dist/catalog/domains.js +170 -0
- package/dist/catalog/firstparty-declarations.js +625 -0
- package/dist/catalog/firstparty-recipes.js +273 -0
- package/dist/catalog/gates.js +93 -0
- package/dist/catalog/ids.js +18 -0
- package/dist/catalog/index.js +36 -0
- package/dist/catalog/knowledge-packages.js +210 -0
- package/dist/catalog/knowledge-validation.js +160 -0
- package/dist/catalog/lane-graph.js +30 -0
- package/dist/catalog/lanes.js +59 -0
- package/dist/catalog/ontology/design-surface-applicability.js +383 -0
- package/dist/catalog/ontology/instance-load.js +97 -0
- package/dist/catalog/ontology/instance-types.js +25 -0
- package/dist/catalog/ontology/instance-validate.js +86 -0
- package/dist/catalog/ontology/load.js +174 -0
- package/dist/catalog/ontology/onboarding-applicability.js +166 -0
- package/dist/catalog/ontology/product-workspace.js +36 -0
- package/dist/catalog/ontology/query.js +62 -0
- package/dist/catalog/ontology/render-product.js +26 -0
- package/dist/catalog/ontology/types.js +24 -0
- package/dist/catalog/ontology/validate.js +173 -0
- package/dist/catalog/operators.js +246 -0
- package/dist/catalog/overlays.js +28 -0
- package/dist/catalog/packs/compose.js +386 -0
- package/dist/catalog/packs/firstparty-assets.js +68 -0
- package/dist/catalog/packs/firstparty-notices.js +52 -0
- package/dist/catalog/packs/firstparty.js +134 -0
- package/dist/catalog/packs/installed-firstparty.js +20 -0
- package/dist/catalog/packs/isolation.js +77 -0
- package/dist/catalog/packs/load.js +543 -0
- package/dist/catalog/packs/snapshots.js +122 -0
- package/dist/catalog/packs/types.js +11 -0
- package/dist/catalog/phases.js +137 -0
- package/dist/catalog/principles/guards.js +101 -0
- package/dist/catalog/principles/load.js +176 -0
- package/dist/catalog/principles/types.js +26 -0
- package/dist/catalog/profiles.js +40 -0
- package/dist/catalog/providers/apple-asc-canonical-map.js +449 -0
- package/dist/catalog/providers/conformance.js +41 -0
- package/dist/catalog/providers/greenfield-70-applicability-closeout-map.js +210 -0
- package/dist/catalog/providers/greenfield-71-handoff-closeout-map.js +331 -0
- package/dist/catalog/providers/greenfield-72-benchmark-closeout-map.js +449 -0
- package/dist/catalog/providers/greenfield-73-overhead-closeout-map.js +276 -0
- package/dist/catalog/providers/greenfield-75-retrieval-closeout-map.js +283 -0
- package/dist/catalog/providers/greenfield-76-change-impact-closeout-map.js +287 -0
- package/dist/catalog/providers/greenfield-delivery-audit-map.js +319 -0
- package/dist/catalog/providers/growth-agent-canonical-map.js +599 -0
- package/dist/catalog/providers/mobile-ops-canonical-map.js +513 -0
- package/dist/catalog/providers/semantic-batch-map.js +62 -0
- package/dist/catalog/providers/semantic-eval-baselines-map.js +735 -0
- package/dist/catalog/providers/semantic-graph-views-map.js +66 -0
- package/dist/catalog/providers/semantic-plan-lower-map.js +54 -0
- package/dist/catalog/providers/semantic-source-projection-map.js +78 -0
- package/dist/catalog/providers/superwall-canonical-map.js +325 -0
- package/dist/catalog/providers/typesafe-qualify-map.js +224 -0
- package/dist/catalog/recipes/default-monetization.js +9 -0
- package/dist/catalog/render-routing.js +394 -0
- package/dist/catalog/repository-profiles/compile.js +381 -0
- package/dist/catalog/repository-profiles/index.js +4 -0
- package/dist/catalog/repository-profiles/paid-generation-applicability.js +111 -0
- package/dist/catalog/repository-profiles/registry.js +75 -0
- package/dist/catalog/repository-profiles/types.js +17 -0
- package/dist/catalog/repository-profiles/workspace.js +128 -0
- package/dist/catalog/roles.js +266 -0
- package/dist/catalog/stacks/expo-agent-privacy.js +101 -0
- package/dist/catalog/stacks/expo-agent-tools.js +264 -0
- package/dist/catalog/stacks/expo-capability-matrix.js +209 -0
- package/dist/catalog/stacks/expo-capability-protocol.js +521 -0
- package/dist/catalog/stacks/expo-custom-module.js +367 -0
- package/dist/catalog/stacks/expo-eas-commands.js +677 -0
- package/dist/catalog/stacks/expo-eas-hosting.js +160 -0
- package/dist/catalog/stacks/expo-eas-operation-matrix.js +194 -0
- package/dist/catalog/stacks/expo-local-boot.js +301 -0
- package/dist/catalog/stacks/expo-local-capabilities.js +240 -0
- package/dist/catalog/stacks/expo-native-ownership.js +362 -0
- package/dist/catalog/stacks/expo-observability.js +101 -0
- package/dist/catalog/stacks/expo-proof-collection.js +231 -0
- package/dist/catalog/stacks/expo-quality-evidence.js +148 -0
- package/dist/catalog/stacks/expo-revenuecat-wiring.js +103 -0
- package/dist/catalog/stacks/expo-router-contract.js +340 -0
- package/dist/catalog/stacks/expo-sdk-upgrade.js +126 -0
- package/dist/catalog/stacks/expo-selection.js +572 -0
- package/dist/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/capability.js +36 -0
- package/dist/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/index.web.js +11 -0
- package/dist/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/invoke.js +17 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/capabilities/reducers.js +116 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/navigation/deep-link.js +14 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/navigation/journeys.js +94 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/navigation/route-graph.js +36 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/notifications/handoff.js +15 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/offline/local-cache.js +62 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/permissions/safe-state.js +10 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/persistence/seam.js +25 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/session/local-session.js +24 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/states/surface-state.js +12 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/ui/contract-binding.js +11 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/ui/tokens.js +8 -0
- package/dist/catalog/stacks/expo-starter.js +292 -0
- package/dist/catalog/stacks/expo-web-api-routes.js +145 -0
- package/dist/catalog/stacks/expo-web-static.js +407 -0
- package/dist/catalog/stacks/expo-web-surface-table.js +162 -0
- package/dist/catalog/task-skills.js +345 -0
- package/dist/catalog/taxonomy/load.js +109 -0
- package/dist/catalog/taxonomy/types.js +30 -0
- package/dist/catalog/taxonomy/validate.js +199 -0
- package/dist/catalog/types.js +6 -0
- package/dist/catalog/validate.js +745 -0
- package/dist/catalog/workflows/build-release.js +704 -0
- package/dist/catalog/workflows/growth-revenue.js +322 -0
- package/dist/catalog/workflows/helpers.js +61 -0
- package/dist/catalog/workflows/index.js +8 -0
- package/dist/catalog/workflows/maintenance.js +269 -0
- package/dist/catalog/workflows/operating-system.js +250 -0
- package/dist/catalog/workflows/operations-trust.js +407 -0
- package/dist/catalog/workflows/product-experience.js +1214 -0
- package/dist/checks/validation/business/design/color-contrast.js +41 -0
- package/dist/checks/validation/business/design/design-acceptance.js +1716 -0
- package/dist/checks/validation/business/design/lib/vibecode-tells.js +78 -0
- package/dist/checks/validation/business/design/lib/worthiness-mechanical.js +157 -0
- package/dist/checks/validation/business/design/runtime-reviewer-inputs.js +51 -0
- package/dist/checks/validation/business/design/surface-page-gates.js +140 -0
- package/dist/checks/validation/repository/agent-guidance-contract.js +257 -0
- package/dist/checks/validation/repository/check-agent-entrypoints.js +210 -0
- package/dist/checks/validation/repository/check-architecture.js +327 -0
- package/dist/checks/validation/repository/check-autopilot-contract.js +198 -0
- package/dist/checks/validation/repository/check-capability-delta.js +28 -0
- package/dist/checks/validation/repository/check-catalog.js +80 -0
- package/dist/checks/validation/repository/check-gates-layout.js +76 -0
- package/dist/checks/validation/repository/check-graph-foundations.js +130 -0
- package/dist/checks/validation/repository/check-hub-spoke.js +110 -0
- package/dist/checks/validation/repository/check-learning-grounding.js +259 -0
- package/dist/checks/validation/repository/check-operating-graph.js +171 -0
- package/dist/checks/validation/repository/check-pack-composition.js +87 -0
- package/dist/checks/validation/repository/check-package-parity.js +410 -0
- package/dist/checks/validation/repository/check-provider-boundary.js +116 -0
- package/dist/checks/validation/repository/check-provider-contracts.js +21 -0
- package/dist/checks/validation/repository/check-upstreams.js +123 -0
- package/dist/checks/validation/repository/check-validator-docs.js +57 -0
- package/dist/contracts/contribution/contract.js +496 -0
- package/dist/contracts/extensions/contract.js +317 -0
- package/dist/contracts/mobile-operation.js +137 -0
- package/dist/contracts/onboarding/foundations.js +268 -0
- package/dist/contracts/public-api/connection-receipt.js +468 -0
- package/dist/contracts/public-api/contract.js +682 -0
- package/dist/contracts/public-api/research-contract.js +119 -0
- package/dist/contracts/research/observation.js +26 -0
- package/dist/contracts/semantic/canonicalize.js +24 -0
- package/dist/contracts/semantic/index.js +12 -0
- package/dist/contracts/semantic/package-resource.js +42 -0
- package/dist/contracts/semantic/query-ir.js +185 -0
- package/dist/contracts/semantic/question-pack.js +155 -0
- package/dist/contracts/semantic/questions.js +124 -0
- package/dist/contracts/semantic/receipts.js +152 -0
- package/dist/contracts/shared-resources.js +11 -0
- package/dist/contracts/source-access.js +36 -0
- package/dist/contracts/worker-artifact.js +13 -0
- package/dist/entrypoints/cli/business.js +245 -0
- package/dist/entrypoints/cli/contribute.js +256 -0
- package/dist/entrypoints/mcp/business.js +17 -0
- package/dist/entrypoints/mcp/contribute.js +36 -0
- package/dist/entrypoints/mcp/run-process.js +58 -0
- package/dist/entrypoints/mcp/server.js +664 -0
- package/dist/kernel/autonomy/budget.js +110 -0
- package/dist/kernel/autonomy/evaluator.js +81 -0
- package/dist/kernel/autonomy/grants.js +88 -0
- package/dist/kernel/autonomy/killswitch.js +16 -0
- package/dist/kernel/autonomy/prerequisites.js +71 -0
- package/dist/kernel/autonomy/probes/budget.js +50 -0
- package/dist/kernel/autonomy/probes/doppler.js +34 -0
- package/dist/kernel/autonomy/standing-approvals.js +272 -0
- package/dist/kernel/autonomy/waivers.js +97 -0
- package/dist/kernel/composition/activation.js +474 -0
- package/dist/kernel/composition/compile-bindings.js +241 -0
- package/dist/kernel/composition/notices.js +179 -0
- package/dist/kernel/composition/onboarding-selection.js +172 -0
- package/dist/kernel/composition/providers.js +29 -0
- package/dist/kernel/composition/resolve.js +201 -0
- package/dist/kernel/composition/resources.js +284 -0
- package/dist/kernel/composition/semantic-plan-lower.js +659 -0
- package/dist/kernel/composition/worker-context.js +54 -0
- package/dist/kernel/context/budget.js +12 -0
- package/dist/kernel/context/compile.js +54 -0
- package/dist/kernel/context/receipt.js +7 -0
- package/dist/kernel/context/selectors.js +25 -0
- package/dist/kernel/contribution/accepted-upstreams.js +71 -0
- package/dist/kernel/contribution/adoption-map.js +103 -0
- package/dist/kernel/contribution/check.js +157 -0
- package/dist/kernel/contribution/evaluate.js +251 -0
- package/dist/kernel/contribution/existing-owners.js +89 -0
- package/dist/kernel/contribution/github-metadata.js +178 -0
- package/dist/kernel/contribution/host-observe.js +117 -0
- package/dist/kernel/contribution/intake.js +559 -0
- package/dist/kernel/contribution/manifest-io.js +238 -0
- package/dist/kernel/contribution/plan.js +358 -0
- package/dist/kernel/contribution/preview.js +198 -0
- package/dist/kernel/contribution/provider-capability-delta.js +142 -0
- package/dist/kernel/contribution/service.js +208 -0
- package/dist/kernel/contribution/types.js +1 -0
- package/dist/kernel/contribution/untrusted.js +164 -0
- package/dist/kernel/contribution/upstream-coverage.js +99 -0
- package/dist/kernel/contribution/upstreams-load.js +157 -0
- package/dist/kernel/contribution/upstreams.js +1134 -0
- package/dist/kernel/engine/artifact-fingerprint.js +29 -0
- package/dist/kernel/engine/compile.js +201 -0
- package/dist/kernel/engine/design-taste-authority.js +191 -0
- package/dist/kernel/engine/dispatch.js +60 -0
- package/dist/kernel/engine/founder-decision-receipt.js +474 -0
- package/dist/kernel/engine/founder-trust-store.js +645 -0
- package/dist/kernel/engine/frontier.js +123 -0
- package/dist/kernel/engine/node-brief.js +199 -0
- package/dist/kernel/engine/proof-rung.js +47 -0
- package/dist/kernel/engine/review-evidence.js +292 -0
- package/dist/kernel/engine/review-facet.js +6 -0
- package/dist/kernel/engine/runstate.js +1032 -0
- package/dist/kernel/engine/source-fingerprint.js +89 -0
- package/dist/kernel/engine/verification-policy.js +4 -0
- package/dist/kernel/engine/verification.js +130 -0
- package/dist/kernel/knowledge-service/journey.js +46 -0
- package/dist/kernel/knowledge-service/projection-helpers.js +196 -0
- package/dist/kernel/knowledge-service/sections.js +58 -0
- package/dist/kernel/knowledge-service/semantic-graph-views.js +514 -0
- package/dist/kernel/knowledge-service/service.js +767 -0
- package/dist/kernel/knowledge-service/tools.js +101 -0
- package/dist/kernel/knowledge-service/types.js +27 -0
- package/dist/kernel/lib/atomic-file.js +39 -0
- package/dist/kernel/lib/bounded-file.js +29 -0
- package/dist/kernel/lib/cli.js +42 -0
- package/dist/kernel/lib/empty-equivalent-evidence.js +33 -0
- package/dist/kernel/lib/later-guidance.js +101 -0
- package/dist/kernel/lib/required-table-section.js +535 -0
- package/dist/kernel/operating-model/agreements.js +17 -0
- package/dist/kernel/operating-model/authorize.js +65 -0
- package/dist/kernel/operating-model/erasure-metadata.js +6 -0
- package/dist/kernel/operating-model/events.js +123 -0
- package/dist/kernel/operating-model/mandates.js +64 -0
- package/dist/kernel/operating-model/market-experiment.js +290 -0
- package/dist/kernel/operating-model/measurement.js +400 -0
- package/dist/kernel/operating-model/parties.js +12 -0
- package/dist/kernel/operating-model/projections.js +109 -0
- package/dist/kernel/operating-model/types.js +41 -0
- package/dist/kernel/operating-model/validate.js +316 -0
- package/dist/kernel/reducer/audit.js +103 -0
- package/dist/kernel/reducer/cli.js +489 -0
- package/dist/kernel/reducer/current-truth.js +383 -0
- package/dist/kernel/reducer/erasure-guard.js +16 -0
- package/dist/kernel/reducer/erasure.js +683 -0
- package/dist/kernel/reducer/lock.js +137 -0
- package/dist/kernel/reducer/patch.js +320 -0
- package/dist/kernel/reducer/semantic-batch-ownership.js +27 -0
- package/dist/kernel/reducer/semantic-graph-ownership.js +41 -0
- package/dist/kernel/reducer/shared-claims.js +124 -0
- package/dist/kernel/routing/eligibility.js +63 -0
- package/dist/kernel/routing/rank.js +14 -0
- package/dist/kernel/routing/resolve.js +89 -0
- package/dist/kernel/routing/signals.js +27 -0
- package/dist/kernel/routing/types.js +3 -0
- package/dist/kernel/schema/domain-authority.js +3 -0
- package/dist/kernel/schema/evidence-grammar.js +104 -0
- package/dist/kernel/schema/evidence-schema-version.js +64 -0
- package/dist/kernel/schema/index.js +283 -0
- package/dist/kernel/schema/types.js +91 -0
- package/dist/kernel/services/business.js +307 -0
- package/dist/kernel/services/installed-composition.js +148 -0
- package/dist/kernel/services/lifecycle.js +242 -0
- package/dist/kernel/services/plan-projection.js +211 -0
- package/dist/kernel/services/research-decision.js +209 -0
- package/dist/kernel/services/research.js +99 -0
- package/dist/kernel/services/source-projection.js +364 -0
- package/dist/kernel/session/app-review-ingress.js +230 -0
- package/dist/kernel/session/approve.js +364 -0
- package/dist/kernel/session/attempt-failure.js +108 -0
- package/dist/kernel/session/bootstrap.js +480 -0
- package/dist/kernel/session/brief.js +69 -0
- package/dist/kernel/session/catalog-contract.js +262 -0
- package/dist/kernel/session/check.js +184 -0
- package/dist/kernel/session/deterministic-gates.js +60 -0
- package/dist/kernel/session/digest.js +280 -0
- package/dist/kernel/session/doctor-host.js +187 -0
- package/dist/kernel/session/doctor.js +275 -0
- package/dist/kernel/session/executor.js +803 -0
- package/dist/kernel/session/firstparty-worker-host.js +30 -0
- package/dist/kernel/session/founder-brief.js +106 -0
- package/dist/kernel/session/founder-gate.js +133 -0
- package/dist/kernel/session/founder-key.js +118 -0
- package/dist/kernel/session/initialization-guard.js +16 -0
- package/dist/kernel/session/initialize.js +205 -0
- package/dist/kernel/session/input-inventory.js +207 -0
- package/dist/kernel/session/inspect.js +237 -0
- package/dist/kernel/session/ios-proof-receipt.js +232 -0
- package/dist/kernel/session/market-experiment.js +77 -0
- package/dist/kernel/session/new.js +177 -0
- package/dist/kernel/session/onboard.js +448 -0
- package/dist/kernel/session/operate-bind.js +52 -0
- package/dist/kernel/session/operate.js +211 -0
- package/dist/kernel/session/operating-service.js +431 -0
- package/dist/kernel/session/operating-transport.js +102 -0
- package/dist/kernel/session/operating-types.js +4 -0
- package/dist/kernel/session/operation-routes.js +569 -0
- package/dist/kernel/session/plan.js +473 -0
- package/dist/kernel/session/planning-context.js +92 -0
- package/dist/kernel/session/planning-limits.js +2 -0
- package/dist/kernel/session/proof.js +258 -0
- package/dist/kernel/session/reducer-cli.js +23 -0
- package/dist/kernel/session/research-observations.js +58 -0
- package/dist/kernel/session/research-proof-projection.js +62 -0
- package/dist/kernel/session/route-scoring.js +537 -0
- package/dist/kernel/session/route-utterance.js +321 -0
- package/dist/kernel/session/run.js +2042 -0
- package/dist/kernel/session/runtime-write-audit.js +47 -0
- package/dist/kernel/session/scope.js +75 -0
- package/dist/kernel/session/semantic-batch.js +535 -0
- package/dist/kernel/session/setup.js +126 -0
- package/dist/kernel/session/status.js +320 -0
- package/dist/kernel/session/stepper.js +188 -0
- package/dist/kernel/session/update.js +95 -0
- package/dist/kernel/session/verify.js +122 -0
- package/dist/kernel/session/worker-prompt.js +477 -0
- package/dist/kernel/session/workspace-revision.js +58 -0
- package/dist/kernel/session/workspaces.js +68 -0
- package/dist/kernel/work-orders/instantiate.js +51 -0
- package/dist/kernel/work-orders/lifecycle.js +156 -0
- package/dist/kernel/work-orders/outcomes.js +107 -0
- package/dist/kernel/work-orders/types.js +1 -0
- package/dist/tooling/browser-proof.js +1128 -0
- package/dist/tooling/calibrate-utterance-router.js +278 -0
- package/dist/tooling/catalog-scaffold.js +182 -0
- package/dist/tooling/export-task-skill.js +181 -0
- package/dist/tooling/grade-design-surface.js +341 -0
- package/dist/tooling/grade-screenshots.js +462 -0
- package/dist/tooling/knowledge.js +208 -0
- package/dist/tooling/lib/app-copy-rules.js +369 -0
- package/dist/tooling/lib/artifact-pages.js +136 -0
- package/dist/tooling/lib/audit-plan.js +382 -0
- package/dist/tooling/lib/canonical-json.js +26 -0
- package/dist/tooling/lib/cli-entrypoint.js +13 -0
- package/dist/tooling/lib/content-assets.js +246 -0
- package/dist/tooling/lib/design-exploration.js +165 -0
- package/dist/tooling/lib/design-md.js +381 -0
- package/dist/tooling/lib/design-state.js +278 -0
- package/dist/tooling/lib/design-taste-rubric.js +326 -0
- package/dist/tooling/lib/founder-copy.js +522 -0
- package/dist/tooling/lib/git-root.js +11 -0
- package/dist/tooling/lib/grading.js +43 -0
- package/dist/tooling/lib/html.js +31 -0
- package/dist/tooling/lib/knowledge-freshness-pin.js +69 -0
- package/dist/tooling/lib/launch-state.js +794 -0
- package/dist/tooling/lib/markdown-lite.js +294 -0
- package/dist/tooling/lib/no-slop-rules.js +243 -0
- package/dist/tooling/lib/packed-check.js +60 -0
- package/dist/tooling/lib/posthog-retention.js +96 -0
- package/dist/tooling/lib/render-artifact-page.js +312 -0
- package/dist/tooling/lib/runtime-sync-lib.js +122 -0
- package/dist/tooling/lib/script-paths.js +117 -0
- package/dist/tooling/lib/shard-pool.js +99 -0
- package/dist/tooling/lib/skill-root.js +31 -0
- package/dist/tooling/lib/source-freshness-state.js +31 -0
- package/dist/tooling/lib/source-http.js +166 -0
- package/dist/tooling/lib/spawn.js +30 -0
- package/dist/tooling/lib/tsx-bin.js +64 -0
- package/dist/tooling/lib/tsx-launcher.mjs +57 -0
- package/dist/tooling/print-hosted-version.js +46 -0
- package/dist/tooling/probe-eas.js +91 -0
- package/dist/tooling/probe-posthog.js +263 -0
- package/dist/tooling/probe-revenuecat-cli.js +399 -0
- package/dist/tooling/probe-revenuecat.js +234 -0
- package/dist/tooling/promote-design-tokens.js +215 -0
- package/dist/tooling/provision-posthog-platform.js +126 -0
- package/dist/tooling/prune-posthog-persons.js +270 -0
- package/dist/tooling/render-artifact-pages.js +70 -0
- package/dist/tooling/render-credits.js +269 -0
- package/dist/tooling/render-design-room.js +451 -0
- package/dist/tooling/render-hosted-bundle.js +186 -0
- package/dist/tooling/render-product.js +102 -0
- package/dist/tooling/render-public-api.js +95 -0
- package/dist/tooling/render-task-skills.js +71 -0
- package/dist/tooling/report-research-evidence-failures.js +135 -0
- package/dist/tooling/run-audit.js +332 -0
- package/dist/tooling/runtime-sync.js +392 -0
- package/dist/tooling/seed-design-brief.js +65 -0
- package/dist/tooling/test-public-api.js +37 -0
- package/entrypoints/cli/b2c.mjs +51 -0
- package/entrypoints/cli/business.ts +255 -0
- package/entrypoints/cli/contribute.ts +273 -0
- package/entrypoints/cli/help.d.mts +23 -0
- package/entrypoints/cli/help.mjs +262 -0
- package/entrypoints/mcp/b2c-app-builder-mcp.mjs +12 -0
- package/entrypoints/mcp/business.ts +22 -0
- package/entrypoints/mcp/contribute.ts +42 -0
- package/entrypoints/mcp/run-process.ts +59 -0
- package/entrypoints/mcp/server.ts +808 -0
- package/examples/extensions/layers-growth/LICENSE-layers-mcp.txt +21 -0
- package/examples/extensions/layers-growth/README.md +39 -0
- package/examples/extensions/layers-growth/draft-input.json +31 -0
- package/examples/extensions/layers-growth/evidence.json +17 -0
- package/examples/extensions/layers-growth/extension.yaml +200 -0
- package/examples/extensions/layers-growth/integration.md +122 -0
- package/examples/extensions/layers-growth/output.json +23 -0
- package/examples/extensions/layers-growth/pack.yaml +58 -0
- package/examples/extensions/layers-growth/read-input.json +11 -0
- package/examples/extensions/postiz-social/README.md +11 -0
- package/examples/extensions/postiz-social/extension.yaml +178 -0
- package/examples/extensions/postiz-social/integration.md +24 -0
- package/examples/extensions/postiz-social/schemas/post.evidence.json +13 -0
- package/examples/extensions/postiz-social/schemas/post.input.json +13 -0
- package/examples/extensions/postiz-social/schemas/post.output.json +11 -0
- package/examples/extensions/store-screenshot-compose/README.md +108 -0
- package/examples/extensions/store-screenshot-compose/compose.mjs +683 -0
- package/examples/extensions/store-screenshot-compose/compositor.md +51 -0
- package/examples/extensions/store-screenshot-compose/copy.sample.json +28 -0
- package/examples/extensions/store-screenshot-compose/extension.yaml +212 -0
- package/examples/extensions/store-screenshot-compose/pack.yaml +60 -0
- package/examples/extensions/store-screenshot-compose/schemas/compose-layout.input.json +17 -0
- package/examples/extensions/store-screenshot-compose/schemas/compose-layout.output.json +32 -0
- package/examples/extensions/store-screenshot-compose/schemas/export-localized.input.json +28 -0
- package/examples/extensions/store-screenshot-compose/schemas/export-localized.output.json +29 -0
- package/examples/extensions/store-screenshot-compose/schemas/provenance.evidence.json +80 -0
- package/examples/extensions/store-screenshot-compose/schemas/validate-deliverables.evidence.json +41 -0
- package/examples/extensions/store-screenshot-compose/schemas/validate-deliverables.input.json +12 -0
- package/examples/extensions/store-screenshot-compose/schemas/validate-deliverables.output.json +56 -0
- package/examples/extensions/store-screenshot-compose/templates/device-well.svg.tmpl +8 -0
- package/examples/extensions/store-screenshot-compose/wells.json +38 -0
- package/examples/extensions/superwall-ios/README.md +47 -0
- package/examples/extensions/superwall-ios/dependency-checksums.json +6 -0
- package/examples/extensions/superwall-ios/evidence.json +19 -0
- package/examples/extensions/superwall-ios/extension.yaml +174 -0
- package/examples/extensions/superwall-ios/input.json +15 -0
- package/examples/extensions/superwall-ios/integration.md +9 -0
- package/examples/extensions/superwall-ios/local-proof.json +44 -0
- package/examples/extensions/superwall-ios/native/Package.resolved +32 -0
- package/examples/extensions/superwall-ios/native/Package.swift +20 -0
- package/examples/extensions/superwall-ios/native/Sources/MonetizationCore/EntitlementState.swift +54 -0
- package/examples/extensions/superwall-ios/native/Sources/MonetizationNative/RevenueCatController.swift +129 -0
- package/examples/extensions/superwall-ios/native/Tests/MonetizationCoreTests/EntitlementStateTests.swift +46 -0
- package/examples/extensions/superwall-ios/output.json +16 -0
- package/examples/extensions/superwall-ios/pack.yaml +56 -0
- package/examples/extensions/support-case/README.md +7 -0
- package/examples/extensions/support-case/evidence.json +21 -0
- package/examples/extensions/support-case/extension.yaml +83 -0
- package/examples/extensions/support-case/input.json +16 -0
- package/examples/extensions/support-case/output.json +18 -0
- package/examples/extensions/support-case/pack.yaml +38 -0
- package/examples/extensions/support-case/support.md +3 -0
- package/examples/workspace/README.md +3 -0
- package/examples/workspace/business/DESIGN.md +338 -0
- package/examples/workspace/business/PRODUCT.md +91 -0
- package/examples/workspace/business/README.md +20 -0
- package/examples/workspace/business/analytics/ANALYTICS.md +186 -0
- package/examples/workspace/business/analytics/README.md +3 -0
- package/examples/workspace/business/analytics/analytics-plan.html +14 -0
- package/examples/workspace/business/analytics/posthog-proof.example.json +11 -0
- package/examples/workspace/business/design/README.md +12 -0
- package/examples/workspace/business/design/design-room.html +219 -0
- package/examples/workspace/business/design/motion-catalog/DemoBloom.swift +208 -0
- package/examples/workspace/business/design/motion-catalog/DemoCardReveal.swift +312 -0
- package/examples/workspace/business/design/motion-catalog/DemoExtrude.swift +255 -0
- package/examples/workspace/business/design/motion-catalog/DemoGesture.swift +315 -0
- package/examples/workspace/business/design/motion-catalog/DemoGrid.swift +215 -0
- package/examples/workspace/business/design/motion-catalog/DemoMascot.swift +535 -0
- package/examples/workspace/business/design/motion-catalog/DemoMeter.swift +335 -0
- package/examples/workspace/business/design/motion-catalog/DemoScratch.swift +357 -0
- package/examples/workspace/business/design/motion-catalog/DemoScrub.swift +267 -0
- package/examples/workspace/business/design/motion-catalog/DemoShiny.swift +325 -0
- package/examples/workspace/business/design/motion-catalog/DemoSphereCloud.swift +337 -0
- package/examples/workspace/business/design/motion-catalog/DemoTreasure.swift +484 -0
- package/examples/workspace/business/design/motion-catalog/MotionLabControls.swift +48 -0
- package/examples/workspace/business/design/motion-catalog/MotionLabIndex.swift +120 -0
- package/examples/workspace/business/design/motion-catalog/MotionLabTheme.swift +54 -0
- package/examples/workspace/business/design/motion-catalog/README.md +74 -0
- package/examples/workspace/business/design/motion-catalog/TokenSpring.swift +96 -0
- package/examples/workspace/business/design/motion-catalog/motion-tokens.ts +109 -0
- package/examples/workspace/business/design/system/DesignTokens.swift +57 -0
- package/examples/workspace/business/design/system/PremiumCraft.swift +352 -0
- package/examples/workspace/business/design/system/design-tokens.ts +84 -0
- package/examples/workspace/business/design/system/design_tokens.dart +14 -0
- package/examples/workspace/business/design/system/tokens.css +45 -0
- package/examples/workspace/business/design/system/tokens.json +313 -0
- package/examples/workspace/business/engineering/ACCESSIBILITY_READINESS.md +10 -0
- package/examples/workspace/business/engineering/APP_QUALITY.md +23 -0
- package/examples/workspace/business/engineering/ENGINEERING_PLAN.md +13 -0
- package/examples/workspace/business/engineering/PRODUCTION_READINESS.md +91 -0
- package/examples/workspace/business/engineering/README.md +3 -0
- package/examples/workspace/business/engineering/TECH_SPEC.md +57 -0
- package/examples/workspace/business/engineering/app-agent-roster/APP_AGENTS.md +88 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/accessibility-device-qa.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/backend-infrastructure-engineer.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/copy-specialist.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/customer-success.md +54 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/design-guru.md +56 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/engineering-leader.md +60 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/launch-surface-producer.md +118 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/marketing-guru.md +59 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/mobile-engineer.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/operator-readiness.md +61 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/orchestrator.md +56 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/product-leader.md +52 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/research-strategist.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/security-architect.md +63 -0
- package/examples/workspace/business/growth/DEMO_VIDEO.md +44 -0
- package/examples/workspace/business/growth/EMAIL_OPS.md +109 -0
- package/examples/workspace/business/growth/FASTLANE_OPS.md +5 -0
- package/examples/workspace/business/growth/LAUNCH_NARRATIVE.md +241 -0
- package/examples/workspace/business/growth/PAID_UA.md +142 -0
- package/examples/workspace/business/growth/README.md +3 -0
- package/examples/workspace/business/growth/UGC_PLAYBOOK.md +21 -0
- package/examples/workspace/business/growth/VIRAL_GROWTH.md +130 -0
- package/examples/workspace/business/growth/content-assets/CONTENT_ASSETS.md +127 -0
- package/examples/workspace/business/growth/content-assets/content-assets.html +97 -0
- package/examples/workspace/business/growth/content-assets/manifest.json +73 -0
- package/examples/workspace/business/growth/content-assets/remotion-README.md +26 -0
- package/examples/workspace/business/growth/content-intelligence.csv +1 -0
- package/examples/workspace/business/growth/format-lab.csv +2 -0
- package/examples/workspace/business/growth/landing/README.md +81 -0
- package/examples/workspace/business/growth/landing/lib/motion-tokens.ts +103 -0
- package/examples/workspace/business/growth/landing/lib/scene-progress.ts +286 -0
- package/examples/workspace/business/growth/landing/lib/scroll-scene-controller.ts +464 -0
- package/examples/workspace/business/growth/landing/motion.css +405 -0
- package/examples/workspace/business/growth/landing/scrollytelling.portable.example.html +156 -0
- package/examples/workspace/business/growth/landing/sections/Bento.tsx +51 -0
- package/examples/workspace/business/growth/landing/sections/Cta.tsx +48 -0
- package/examples/workspace/business/growth/landing/sections/Hero.tsx +62 -0
- package/examples/workspace/business/growth/landing/sections/Marquee.tsx +34 -0
- package/examples/workspace/business/growth/landing/sections/Pricing.tsx +73 -0
- package/examples/workspace/business/growth/landing/sections/Scrollytelling.tsx +193 -0
- package/examples/workspace/business/growth/landing/sections/Stats.tsx +74 -0
- package/examples/workspace/business/growth/landing/sections/Testimonials.tsx +61 -0
- package/examples/workspace/business/growth/landing/surface-contract.example.json +790 -0
- package/examples/workspace/business/growth/paid-ua-report.csv +2 -0
- package/examples/workspace/business/growth/resend/email-templates.ts +608 -0
- package/examples/workspace/business/operations/AGENT_OPERATIONS.md +56 -0
- package/examples/workspace/business/operations/BUSINESS_ACCESS.md +114 -0
- package/examples/workspace/business/operations/FAILURE_CARDS.md +21 -0
- package/examples/workspace/business/operations/LAUNCH_RETRO.md +53 -0
- package/examples/workspace/business/operations/METRIC_CONTRACTS.md +48 -0
- package/examples/workspace/business/operations/ORCHESTRATION.md +142 -0
- package/examples/workspace/business/operations/POST_LAUNCH_OPS.md +84 -0
- package/examples/workspace/business/operations/PROVIDER_PROOF.md +20 -0
- package/examples/workspace/business/operations/README.md +3 -0
- package/examples/workspace/business/operations/agent-operations.json +130 -0
- package/examples/workspace/business/operations/agent-operations.schema.json +274 -0
- package/examples/workspace/business/operations/business-access.json +418 -0
- package/examples/workspace/business/operations/business-access.schema.json +285 -0
- package/examples/workspace/business/operations/metric-contracts.json +346 -0
- package/examples/workspace/business/operations/metric-contracts.schema.json +255 -0
- package/examples/workspace/business/operations/orchestration.html +326 -0
- package/examples/workspace/business/product/ONBOARDING.md +306 -0
- package/examples/workspace/business/product/README.md +8 -0
- package/examples/workspace/business/product/copy/COPY_BRIEF.md +64 -0
- package/examples/workspace/business/product/copy/COPY_DECK.md +84 -0
- package/examples/workspace/business/product/experience/11-star-experience/11-star-experience.html +326 -0
- package/examples/workspace/business/product/experience/11-star-experience/11_STAR_EXPERIENCE.md +93 -0
- package/examples/workspace/business/product/experience/emotional-design/EMOTIONAL_AUDIT.md +608 -0
- package/examples/workspace/business/product/experience/emotional-design/EMOTIONAL_DESIGN.md +355 -0
- package/examples/workspace/business/product/experience/emotional-design/emotional-design.html +737 -0
- package/examples/workspace/business/product/experience/ux-patterns/UX_PATTERNS.md +144 -0
- package/examples/workspace/business/product/experience/ux-patterns/ux-patterns.html +102 -0
- package/examples/workspace/business/product/onboarding.html +58 -0
- package/examples/workspace/business/product.yaml +125 -0
- package/examples/workspace/business/revenue/README.md +3 -0
- package/examples/workspace/business/revenue/REVENUE_OPS.md +210 -0
- package/examples/workspace/business/revenue/revenuecat-proof.example.json +16 -0
- package/examples/workspace/business/revenue/revenuecat-proof.md +70 -0
- package/examples/workspace/business/state/LAUNCH_TRACE.md +29 -0
- package/examples/workspace/business/state/README.md +9 -0
- package/examples/workspace/business/state/business-state.json +520 -0
- package/examples/workspace/business/store/APPLE_APP_STORE_REQUIREMENTS.md +84 -0
- package/examples/workspace/business/store/APPLE_SIGNING.md +103 -0
- package/examples/workspace/business/store/APP_REVIEW.md +10 -0
- package/examples/workspace/business/store/GOOGLE_PLAY_RELEASE.md +71 -0
- package/examples/workspace/business/store/MARKETPLACE_COMPLIANCE.md +8 -0
- package/examples/workspace/business/store/README.md +3 -0
- package/examples/workspace/business/store/STORE_CONSOLE.md +62 -0
- package/examples/workspace/business/store/app-store-listing/APP_STORE_LISTING.md +160 -0
- package/examples/workspace/business/store/app-store-listing/SCREENSHOTS.md +246 -0
- package/examples/workspace/business/store/app-store-listing/SCREENSHOT_RUBRIC.md +202 -0
- package/examples/workspace/business/store/app-store-listing/app-privacy-questionnaire.html +156 -0
- package/examples/workspace/business/store/app-store-listing/app-store-listing.html +154 -0
- package/examples/workspace/business/store/app-store-listing/screenshot-rubric-scores.example.json +117 -0
- package/examples/workspace/business/store/store-console.html +271 -0
- package/examples/workspace/business/strategy/BRAND.md +48 -0
- package/examples/workspace/business/strategy/OFFER_TEST.md +43 -0
- package/examples/workspace/business/strategy/PORTFOLIO_REGISTRY.md +34 -0
- package/examples/workspace/business/strategy/README.md +3 -0
- package/examples/workspace/business/strategy/RESEARCH.md +87 -0
- package/examples/workspace/business/strategy/SIGNAL_CORPUS.md +34 -0
- package/examples/workspace/business/strategy/TOOL_DECISIONS.md +30 -0
- package/examples/workspace/business/strategy/localization-market-research/LOCALIZATION_MARKET_RESEARCH.md +93 -0
- package/examples/workspace/business/strategy/localization-market-research/localization-market-research.html +62 -0
- package/examples/workspace/business/studio/seed/business.json +57 -0
- package/examples/workspace/business/trust/AI_SAFETY.md +10 -0
- package/examples/workspace/business/trust/COMMUNITY_SAFETY.md +10 -0
- package/examples/workspace/business/trust/PRIVACY.md +31 -0
- package/examples/workspace/business/trust/README.md +3 -0
- package/examples/workspace/business/trust/SECURITY.md +145 -0
- package/examples/workspace/business/trust/TERMS.md +21 -0
- package/examples/workspace/business/trust/secrets/.env.example +2 -0
- package/examples/workspace/business/trust/secrets/SECRETS.md +77 -0
- package/examples/workspace/business/trust/secrets/doppler.yaml +3 -0
- package/examples/workspace/business/trust/security-review.html +373 -0
- package/examples/workspace/business/ugc/script-bank.md +9 -0
- package/kernel/autonomy/budget.ts +130 -0
- package/kernel/autonomy/evaluator.ts +136 -0
- package/kernel/autonomy/grants.ts +124 -0
- package/kernel/autonomy/killswitch.ts +27 -0
- package/kernel/autonomy/prerequisites.ts +94 -0
- package/kernel/autonomy/probes/budget.ts +55 -0
- package/kernel/autonomy/probes/doppler.ts +66 -0
- package/kernel/autonomy/standing-approvals.ts +336 -0
- package/kernel/autonomy/waivers.ts +129 -0
- package/kernel/composition/activation.ts +471 -0
- package/kernel/composition/compile-bindings.ts +297 -0
- package/kernel/composition/notices.ts +226 -0
- package/kernel/composition/onboarding-selection.ts +210 -0
- package/kernel/composition/providers.ts +43 -0
- package/kernel/composition/resolve.ts +252 -0
- package/kernel/composition/resources.ts +298 -0
- package/kernel/composition/semantic-plan-lower.ts +831 -0
- package/kernel/composition/worker-context.ts +63 -0
- package/kernel/context/budget.ts +16 -0
- package/kernel/context/compile.ts +66 -0
- package/kernel/context/receipt.ts +34 -0
- package/kernel/context/selectors.ts +30 -0
- package/kernel/contribution/accepted-upstreams.ts +83 -0
- package/kernel/contribution/adoption-map.ts +153 -0
- package/kernel/contribution/check.ts +197 -0
- package/kernel/contribution/evaluate.ts +275 -0
- package/kernel/contribution/existing-owners.ts +115 -0
- package/kernel/contribution/github-metadata.ts +241 -0
- package/kernel/contribution/host-observe.ts +146 -0
- package/kernel/contribution/intake.ts +611 -0
- package/kernel/contribution/manifest-io.ts +277 -0
- package/kernel/contribution/plan.ts +422 -0
- package/kernel/contribution/preview.ts +217 -0
- package/kernel/contribution/provider-capability-delta.ts +178 -0
- package/kernel/contribution/service.ts +291 -0
- package/kernel/contribution/types.ts +180 -0
- package/kernel/contribution/untrusted.ts +198 -0
- package/kernel/contribution/upstream-coverage.ts +116 -0
- package/kernel/contribution/upstreams-load.ts +184 -0
- package/kernel/contribution/upstreams.ts +1206 -0
- package/kernel/engine/artifact-fingerprint.ts +25 -0
- package/kernel/engine/compile.ts +419 -0
- package/kernel/engine/design-taste-authority.ts +264 -0
- package/kernel/engine/dispatch.ts +96 -0
- package/kernel/engine/founder-decision-receipt.ts +580 -0
- package/kernel/engine/founder-trust-store.ts +771 -0
- package/kernel/engine/frontier.ts +157 -0
- package/kernel/engine/node-brief.ts +285 -0
- package/kernel/engine/proof-rung.ts +95 -0
- package/kernel/engine/review-evidence.ts +343 -0
- package/kernel/engine/review-facet.ts +9 -0
- package/kernel/engine/runstate.ts +1113 -0
- package/kernel/engine/source-fingerprint.ts +100 -0
- package/kernel/engine/verification-policy.ts +6 -0
- package/kernel/engine/verification.ts +154 -0
- package/kernel/knowledge-service/journey.ts +50 -0
- package/kernel/knowledge-service/projection-helpers.ts +306 -0
- package/kernel/knowledge-service/sections.ts +68 -0
- package/kernel/knowledge-service/semantic-graph-views.ts +727 -0
- package/kernel/knowledge-service/service.ts +835 -0
- package/kernel/knowledge-service/tools.ts +118 -0
- package/kernel/knowledge-service/types.ts +236 -0
- package/kernel/lib/atomic-file.ts +34 -0
- package/kernel/lib/bounded-file.ts +24 -0
- package/kernel/lib/cli.ts +44 -0
- package/kernel/lib/empty-equivalent-evidence.ts +35 -0
- package/kernel/lib/later-guidance.ts +128 -0
- package/kernel/lib/required-table-section.ts +679 -0
- package/kernel/operating-model/agreements.ts +29 -0
- package/kernel/operating-model/authorize.ts +117 -0
- package/kernel/operating-model/erasure-metadata.ts +19 -0
- package/kernel/operating-model/events.ts +142 -0
- package/kernel/operating-model/mandates.ts +81 -0
- package/kernel/operating-model/market-experiment.ts +354 -0
- package/kernel/operating-model/measurement.ts +542 -0
- package/kernel/operating-model/parties.ts +23 -0
- package/kernel/operating-model/projections.ts +111 -0
- package/kernel/operating-model/types.ts +306 -0
- package/kernel/operating-model/validate.ts +388 -0
- package/kernel/reducer/audit.ts +146 -0
- package/kernel/reducer/cli.ts +552 -0
- package/kernel/reducer/current-truth.ts +432 -0
- package/kernel/reducer/erasure-guard.ts +17 -0
- package/kernel/reducer/erasure.ts +741 -0
- package/kernel/reducer/lock.ts +169 -0
- package/kernel/reducer/patch.ts +395 -0
- package/kernel/reducer/semantic-batch-ownership.ts +36 -0
- package/kernel/reducer/semantic-graph-ownership.ts +54 -0
- package/kernel/reducer/shared-claims.ts +133 -0
- package/kernel/routing/eligibility.ts +71 -0
- package/kernel/routing/rank.ts +21 -0
- package/kernel/routing/resolve.ts +97 -0
- package/kernel/routing/signals.ts +28 -0
- package/kernel/routing/types.ts +84 -0
- package/kernel/schema/app-review-webhook-envelope.schema.json +39 -0
- package/kernel/schema/app-review.schema.json +1504 -0
- package/kernel/schema/budget-ledger.schema.json +84 -0
- package/kernel/schema/business-state.schema.json +909 -0
- package/kernel/schema/checkpoint.schema.json +17 -0
- package/kernel/schema/control.schema.json +40 -0
- package/kernel/schema/current-truth.schema.json +56 -0
- package/kernel/schema/domain-authority.ts +22 -0
- package/kernel/schema/evidence-grammar.ts +132 -0
- package/kernel/schema/evidence-schema-version.json +5 -0
- package/kernel/schema/evidence-schema-version.ts +82 -0
- package/kernel/schema/grants.schema.json +102 -0
- package/kernel/schema/index.ts +518 -0
- package/kernel/schema/market-experiment.schema.json +212 -0
- package/kernel/schema/metric-contracts.schema.json +601 -0
- package/kernel/schema/offer-test.schema.json +88 -0
- package/kernel/schema/operation-envelope.schema.json +31 -0
- package/kernel/schema/research-evidence.schema.json +144 -0
- package/kernel/schema/run-state.schema.json +430 -0
- package/kernel/schema/signal-corpus.schema.json +94 -0
- package/kernel/schema/status.schema.json +25 -0
- package/kernel/schema/types.ts +701 -0
- package/kernel/schema/waivers.schema.json +97 -0
- package/kernel/services/business.ts +431 -0
- package/kernel/services/installed-composition.ts +146 -0
- package/kernel/services/lifecycle.ts +262 -0
- package/kernel/services/plan-projection.ts +230 -0
- package/kernel/services/research-decision.ts +234 -0
- package/kernel/services/research.ts +102 -0
- package/kernel/services/source-projection.ts +503 -0
- package/kernel/session/app-review-ingress.ts +254 -0
- package/kernel/session/approve.ts +411 -0
- package/kernel/session/attempt-failure.ts +113 -0
- package/kernel/session/bootstrap.ts +497 -0
- package/kernel/session/brief.ts +94 -0
- package/kernel/session/catalog-contract.ts +293 -0
- package/kernel/session/check.ts +206 -0
- package/kernel/session/deterministic-gates.ts +76 -0
- package/kernel/session/digest.ts +405 -0
- package/kernel/session/doctor-host.ts +219 -0
- package/kernel/session/doctor.ts +387 -0
- package/kernel/session/executor.ts +934 -0
- package/kernel/session/firstparty-worker-host.ts +30 -0
- package/kernel/session/founder-brief.ts +110 -0
- package/kernel/session/founder-gate.ts +188 -0
- package/kernel/session/founder-key.ts +119 -0
- package/kernel/session/initialization-guard.ts +17 -0
- package/kernel/session/initialize.ts +209 -0
- package/kernel/session/input-inventory.ts +217 -0
- package/kernel/session/inspect.ts +304 -0
- package/kernel/session/ios-proof-receipt.ts +273 -0
- package/kernel/session/market-experiment.ts +81 -0
- package/kernel/session/new.ts +202 -0
- package/kernel/session/onboard.ts +551 -0
- package/kernel/session/operate-bind.ts +58 -0
- package/kernel/session/operate.ts +239 -0
- package/kernel/session/operating-service.ts +452 -0
- package/kernel/session/operating-transport.ts +125 -0
- package/kernel/session/operating-types.ts +107 -0
- package/kernel/session/operation-routes.ts +673 -0
- package/kernel/session/plan.ts +667 -0
- package/kernel/session/planning-context.ts +96 -0
- package/kernel/session/planning-limits.ts +2 -0
- package/kernel/session/proof.ts +302 -0
- package/kernel/session/reducer-cli.ts +30 -0
- package/kernel/session/research-observations.ts +59 -0
- package/kernel/session/research-proof-projection.ts +76 -0
- package/kernel/session/route-scoring.ts +560 -0
- package/kernel/session/route-utterance.ts +486 -0
- package/kernel/session/run.ts +2214 -0
- package/kernel/session/runtime-write-audit.ts +44 -0
- package/kernel/session/scope.ts +85 -0
- package/kernel/session/semantic-batch.ts +834 -0
- package/kernel/session/setup.ts +142 -0
- package/kernel/session/status.ts +397 -0
- package/kernel/session/stepper.ts +258 -0
- package/kernel/session/update.ts +106 -0
- package/kernel/session/verify.ts +135 -0
- package/kernel/session/worker-prompt.ts +572 -0
- package/kernel/session/workspace-revision.ts +59 -0
- package/kernel/session/workspaces.ts +73 -0
- package/kernel/work-orders/instantiate.ts +68 -0
- package/kernel/work-orders/lifecycle.ts +178 -0
- package/kernel/work-orders/outcomes.ts +161 -0
- package/kernel/work-orders/types.ts +64 -0
- package/knowledge/README.md +81 -0
- package/knowledge/data/analytics-attribution.md +317 -0
- package/knowledge/data/posthog-agent-tooling.md +101 -0
- package/knowledge/design/audience-derived-identity.md +55 -0
- package/knowledge/design/consumer-craft-benchmarks.md +72 -0
- package/knowledge/design/design-acceptance.md +199 -0
- package/knowledge/design/design-evidence-stack.md +130 -0
- package/knowledge/design/design-room.md +83 -0
- package/knowledge/design/design-visual-system.md +247 -0
- package/knowledge/design/design-worthiness.md +188 -0
- package/knowledge/design/editorial-scrollytelling.md +239 -0
- package/knowledge/design/landing-motion-craft.md +67 -0
- package/knowledge/design/mobile-flow-craft.md +177 -0
- package/knowledge/design/motion-craft-benchmarks.md +340 -0
- package/knowledge/design/premium-mobile-craft.md +137 -0
- package/knowledge/design/quality-lens.md +100 -0
- package/knowledge/design/refero-ux-patterns.md +131 -0
- package/knowledge/design/remotion-content-assets.md +370 -0
- package/knowledge/design/surfaces-b2c.md +84 -0
- package/knowledge/design/vibecoded-tells.md +129 -0
- package/knowledge/engineering/accessibility-readiness.md +24 -0
- package/knowledge/engineering/app-agent-roster.md +120 -0
- package/knowledge/engineering/app-quality.md +19 -0
- package/knowledge/engineering/backend-data-contract.md +187 -0
- package/knowledge/engineering/engineering-orchestration.md +365 -0
- package/knowledge/engineering/expo-compatibility.md +74 -0
- package/knowledge/engineering/expo-operations-map.md +84 -0
- package/knowledge/engineering/expo-stack-selection.md +75 -0
- package/knowledge/engineering/external-skill-packs.md +47 -0
- package/knowledge/engineering/mobai-toolbelt.md +389 -0
- package/knowledge/engineering/recommended-agent-skills.md +109 -0
- package/knowledge/engineering/technical-documentation-ste100.md +89 -0
- package/knowledge/engineering/xcodebuildmcp-testing.md +502 -0
- package/knowledge/experience/commitment-funnel.md +90 -0
- package/knowledge/experience/consumer-product-design-agency.md +268 -0
- package/knowledge/experience/eleven-star-experience.md +194 -0
- package/knowledge/experience/emotional-design-system.md +412 -0
- package/knowledge/experience/emotional-experience-design.md +359 -0
- package/knowledge/experience/emotional-experience-measurement.md +433 -0
- package/knowledge/experience/ethics-guardrail.md +460 -0
- package/knowledge/experience/experience-cards/commitment-card.md +36 -0
- package/knowledge/experience/experience-cards/endowed-progress-card.md +34 -0
- package/knowledge/experience/experience-cards/fresh-start-card.md +34 -0
- package/knowledge/experience/experience-cards/identity-and-self-expression-card.md +35 -0
- package/knowledge/experience/experience-cards/intent-mirroring-card.md +36 -0
- package/knowledge/experience/experience-cards/mastery-and-status-card.md +43 -0
- package/knowledge/experience/experience-cards/peak-end-card.md +44 -0
- package/knowledge/experience/experience-cards/perceived-effort-delay-card.md +37 -0
- package/knowledge/experience/experience-cards/reciprocity-card.md +38 -0
- package/knowledge/experience/experience-cards/recovery-and-trust-repair-card.md +40 -0
- package/knowledge/experience/experience-cards/streak-and-loss-aversion-card.md +37 -0
- package/knowledge/experience/experience-cards/variable-reward-card.md +42 -0
- package/knowledge/experience/experience-cards.md +172 -0
- package/knowledge/experience/onboarding-conversion.md +422 -0
- package/knowledge/experience/onboarding-foundations.md +264 -0
- package/knowledge/experience/paywall-goal-headline.md +99 -0
- package/knowledge/experience/push-notification-lifecycle.md +79 -0
- package/knowledge/growth/appsflyer-mmp.md +99 -0
- package/knowledge/growth/cro-landing.md +86 -0
- package/knowledge/growth/fastlane-growth-ops.md +321 -0
- package/knowledge/growth/geo-seo.md +163 -0
- package/knowledge/growth/hdyhau-blended-roas.md +75 -0
- package/knowledge/growth/influencer-sponsorship-engine.md +224 -0
- package/knowledge/growth/ios-consumer-playbook-intake.md +65 -0
- package/knowledge/growth/launch-narrative-cadence.md +340 -0
- package/knowledge/growth/non-competitor-angle-discovery.md +80 -0
- package/knowledge/growth/paid-user-acquisition.md +283 -0
- package/knowledge/growth/ugc-creator-engine.md +259 -0
- package/knowledge/growth/viral-growth-loops.md +174 -0
- package/knowledge/money/billing-health-and-reactivation.md +54 -0
- package/knowledge/money/offer-and-pricing-decisions.md +33 -0
- package/knowledge/money/paywall-pricing-and-experiments.md +97 -0
- package/knowledge/money/revenue-monetization.md +107 -0
- package/knowledge/money/revenuecat-agent-tooling.md +174 -0
- package/knowledge/money/revenuecat-and-store-products.md +115 -0
- package/knowledge/money/stripe-and-web-billing.md +83 -0
- package/knowledge/money/subscription-price-derivation.md +105 -0
- package/knowledge/operations/autonomy-onboarding.md +269 -0
- package/knowledge/operations/doppler-organization.md +73 -0
- package/knowledge/operations/founder-zero-operator.md +184 -0
- package/knowledge/operations/frontier-agent-operations.md +189 -0
- package/knowledge/operations/paid-tool-routing.md +172 -0
- package/knowledge/operations/post-launch-operations.md +261 -0
- package/knowledge/operations/provider-state-recipes.md +80 -0
- package/knowledge/operations/resend-email-ops.md +339 -0
- package/knowledge/operations/secrets-management.md +215 -0
- package/knowledge/orchestration/compound-engineering-routing.md +101 -0
- package/knowledge/orchestration/dynamic-workflows.md +198 -0
- package/knowledge/orchestration/full-launch-program.md +179 -0
- package/knowledge/orchestration/isolated-review.md +144 -0
- package/knowledge/orchestration/parallel-agent-orchestration.md +335 -0
- package/knowledge/orchestration/project-state.md +96 -0
- package/knowledge/process/artifact-contracts.md +1527 -0
- package/knowledge/process/cascade-edges.yaml +217 -0
- package/knowledge/process/change-cascade.md +102 -0
- package/knowledge/process/current-truth.md +45 -0
- package/knowledge/process/failure-cards.md +114 -0
- package/knowledge/process/flow-traceability.md +189 -0
- package/knowledge/process/launch-coverage.md +298 -0
- package/knowledge/process/launch-phases.md +838 -0
- package/knowledge/process/learning-capture.md +77 -0
- package/knowledge/process/learnings/audit-runs-from-repo-root.md +22 -0
- package/knowledge/process/provider-contracts.md +49 -0
- package/knowledge/process/provider-proof.md +37 -0
- package/knowledge/process/repository-profiles.md +60 -0
- package/knowledge/process/tool-recipes/device-capture-and-proof.md +100 -0
- package/knowledge/process/tool-recipes/engineering-and-agent-orchestration.md +89 -0
- package/knowledge/process/tool-recipes/funnel-domain-and-privacy.md +142 -0
- package/knowledge/process/tool-recipes/growth-and-store-routing.md +192 -0
- package/knowledge/process/tool-recipes/research-intelligence.md +258 -0
- package/knowledge/process/tool-recipes/revenue-email-analytics.md +101 -0
- package/knowledge/process/tool-recipes/secrets-and-environment.md +35 -0
- package/knowledge/process/tool-recipes/visual-and-motion-production.md +457 -0
- package/knowledge/process/tool-recipes.md +67 -0
- package/knowledge/product/ai-chat-companion.md +96 -0
- package/knowledge/product/core-loop-and-complete-scope.md +82 -0
- package/knowledge/product/habit-tracker.md +89 -0
- package/knowledge/product/photo-ai-media.md +96 -0
- package/knowledge/product/product-moat.md +64 -0
- package/knowledge/product/social-network.md +117 -0
- package/knowledge/research/distribution-first-niche.md +70 -0
- package/knowledge/research/distribution-offer-signal.md +190 -0
- package/knowledge/research/go-pivot-or-kill.md +120 -0
- package/knowledge/research/localization-market-research.md +145 -0
- package/knowledge/research/transformation-demo.md +70 -0
- package/knowledge/store/age-rating-questionnaire.md +75 -0
- package/knowledge/store/app-review-observe.md +314 -0
- package/knowledge/store/app-review-remediate.md +125 -0
- package/knowledge/store/app-review-resubmit.md +128 -0
- package/knowledge/store/app-store-connect-cli.md +347 -0
- package/knowledge/store/app-store-listing-prep.md +277 -0
- package/knowledge/store/apple-signing-release.md +551 -0
- package/knowledge/store/aso-apple-keyword-evidence.md +112 -0
- package/knowledge/store/aso-store-ops.md +316 -0
- package/knowledge/store/google-play-release.md +200 -0
- package/knowledge/store/marketplace-regional-compliance.md +21 -0
- package/knowledge/store/screenshot-toolchain.md +130 -0
- package/knowledge/store/store-console-workflow.md +760 -0
- package/knowledge/trust/community-safety.md +18 -0
- package/knowledge/trust/generative-ai-safety.md +27 -0
- package/knowledge/trust/paid-generative-ai-controls.md +85 -0
- package/knowledge/trust/privacy-terms.md +192 -0
- package/knowledge/trust/security-release-hardening.md +169 -0
- package/knowledge/words/consumer-copy-benchmarks.md +111 -0
- package/knowledge/words/conversion-copy.md +181 -0
- package/knowledge/words/no-slop-writing.md +173 -0
- package/package.json +290 -0
- package/skill-version.json +149 -0
- package/surfaces/starters/ai-chat-companion/README.md +41 -0
- package/surfaces/starters/ai-chat-companion/prompts/00-positioning-strategy.md +45 -0
- package/surfaces/starters/ai-chat-companion/prompts/01-database-schema.md +44 -0
- package/surfaces/starters/ai-chat-companion/prompts/02-auth-system.md +38 -0
- package/surfaces/starters/ai-chat-companion/prompts/03-chat-core-loop.md +42 -0
- package/surfaces/starters/ai-chat-companion/prompts/04-model-integration.md +45 -0
- package/surfaces/starters/ai-chat-companion/prompts/05-memory-personalization.md +38 -0
- package/surfaces/starters/ai-chat-companion/prompts/06-usage-limits-metering.md +36 -0
- package/surfaces/starters/ai-chat-companion/prompts/07-stripe-monetization.md +34 -0
- package/surfaces/starters/ai-chat-companion/prompts/08-safety-and-moderation.md +39 -0
- package/surfaces/starters/ai-chat-companion/prompts/variants/companion-character.md +40 -0
- package/surfaces/starters/ai-chat-companion/prompts/variants/voice-first.md +37 -0
- package/surfaces/starters/ai-chat-companion/starter/.env.example +18 -0
- package/surfaces/starters/ai-chat-companion/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/ai-chat-companion/starter/.gitignore.template +9 -0
- package/surfaces/starters/ai-chat-companion/starter/README.md +48 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/chat/route.ts +70 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/ai-chat-companion/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/ai-chat-companion/starter/app/chat/page.tsx +78 -0
- package/surfaces/starters/ai-chat-companion/starter/app/layout.tsx +20 -0
- package/surfaces/starters/ai-chat-companion/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/ai-chat-companion/starter/app/page.tsx +17 -0
- package/surfaces/starters/ai-chat-companion/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/analytics/events.ts +32 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/strings.ts +32 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/ai-chat-companion/starter/next.config.ts +5 -0
- package/surfaces/starters/ai-chat-companion/starter/package-lock.json +1294 -0
- package/surfaces/starters/ai-chat-companion/starter/package.json +29 -0
- package/surfaces/starters/ai-chat-companion/starter/proxy.ts +12 -0
- package/surfaces/starters/ai-chat-companion/starter/supabase/migrations/0001_init.sql +78 -0
- package/surfaces/starters/ai-chat-companion/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/surfaces/starters/ai-chat-companion/starter/tsconfig.json +41 -0
- package/surfaces/starters/habit-tracker/README.md +43 -0
- package/surfaces/starters/habit-tracker/prompts/00-positioning-strategy.md +47 -0
- package/surfaces/starters/habit-tracker/prompts/01-database-schema.md +54 -0
- package/surfaces/starters/habit-tracker/prompts/02-auth-system.md +42 -0
- package/surfaces/starters/habit-tracker/prompts/03-habit-core-loop.md +50 -0
- package/surfaces/starters/habit-tracker/prompts/04-reminders-and-streaks.md +58 -0
- package/surfaces/starters/habit-tracker/prompts/05-stats-and-insights.md +44 -0
- package/surfaces/starters/habit-tracker/prompts/06-paywall-and-monetization.md +50 -0
- package/surfaces/starters/habit-tracker/prompts/07-social-accountability.md +49 -0
- package/surfaces/starters/habit-tracker/prompts/variants/simple-counter-utility.md +43 -0
- package/surfaces/starters/habit-tracker/prompts/variants/wellness-coach.md +44 -0
- package/surfaces/starters/habit-tracker/starter/.env.example +14 -0
- package/surfaces/starters/habit-tracker/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/habit-tracker/starter/.gitignore.template +9 -0
- package/surfaces/starters/habit-tracker/starter/README.md +48 -0
- package/surfaces/starters/habit-tracker/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/habit-tracker/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/habit-tracker/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/habit-tracker/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/habit-tracker/starter/app/layout.tsx +20 -0
- package/surfaces/starters/habit-tracker/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/habit-tracker/starter/app/page.tsx +17 -0
- package/surfaces/starters/habit-tracker/starter/app/today/page.tsx +27 -0
- package/surfaces/starters/habit-tracker/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/habit-tracker/starter/lib/analytics/events.ts +29 -0
- package/surfaces/starters/habit-tracker/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/habit-tracker/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/habit-tracker/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/habit-tracker/starter/lib/strings.ts +27 -0
- package/surfaces/starters/habit-tracker/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/habit-tracker/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/habit-tracker/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/habit-tracker/starter/next.config.ts +5 -0
- package/surfaces/starters/habit-tracker/starter/package-lock.json +1222 -0
- package/surfaces/starters/habit-tracker/starter/package.json +28 -0
- package/surfaces/starters/habit-tracker/starter/proxy.ts +12 -0
- package/surfaces/starters/habit-tracker/starter/supabase/migrations/0001_init.sql +84 -0
- package/surfaces/starters/habit-tracker/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/surfaces/starters/habit-tracker/starter/tsconfig.json +41 -0
- package/surfaces/starters/photo-ai-media/README.md +40 -0
- package/surfaces/starters/photo-ai-media/prompts/00-positioning-strategy.md +51 -0
- package/surfaces/starters/photo-ai-media/prompts/01-database-schema.md +55 -0
- package/surfaces/starters/photo-ai-media/prompts/02-auth-system.md +39 -0
- package/surfaces/starters/photo-ai-media/prompts/03-capture-and-library.md +42 -0
- package/surfaces/starters/photo-ai-media/prompts/04-ai-generation-pipeline.md +46 -0
- package/surfaces/starters/photo-ai-media/prompts/05-editing-and-presets.md +40 -0
- package/surfaces/starters/photo-ai-media/prompts/06-credits-and-monetization.md +47 -0
- package/surfaces/starters/photo-ai-media/prompts/07-sharing-and-virality.md +39 -0
- package/surfaces/starters/photo-ai-media/prompts/08-content-safety-and-rights.md +49 -0
- package/surfaces/starters/photo-ai-media/prompts/variants/avatar-headshot-studio.md +43 -0
- package/surfaces/starters/photo-ai-media/prompts/variants/photo-restoration.md +39 -0
- package/surfaces/starters/photo-ai-media/starter/.env.example +16 -0
- package/surfaces/starters/photo-ai-media/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/photo-ai-media/starter/.gitignore.template +9 -0
- package/surfaces/starters/photo-ai-media/starter/README.md +50 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/generate/route.ts +47 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/photo-ai-media/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/photo-ai-media/starter/app/layout.tsx +20 -0
- package/surfaces/starters/photo-ai-media/starter/app/library/page.tsx +29 -0
- package/surfaces/starters/photo-ai-media/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/photo-ai-media/starter/app/page.tsx +17 -0
- package/surfaces/starters/photo-ai-media/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/photo-ai-media/starter/lib/analytics/events.ts +32 -0
- package/surfaces/starters/photo-ai-media/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/photo-ai-media/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/photo-ai-media/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/photo-ai-media/starter/lib/strings.ts +27 -0
- package/surfaces/starters/photo-ai-media/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/photo-ai-media/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/photo-ai-media/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/photo-ai-media/starter/next.config.ts +5 -0
- package/surfaces/starters/photo-ai-media/starter/package-lock.json +1222 -0
- package/surfaces/starters/photo-ai-media/starter/package.json +28 -0
- package/surfaces/starters/photo-ai-media/starter/proxy.ts +12 -0
- package/surfaces/starters/photo-ai-media/starter/supabase/migrations/0001_init.sql +74 -0
- package/surfaces/starters/photo-ai-media/starter/supabase/tests/0001_rls.test.sql +72 -0
- package/surfaces/starters/photo-ai-media/starter/tsconfig.json +41 -0
- package/surfaces/starters/social-network/README.md +41 -0
- package/surfaces/starters/social-network/prompts/00-niche-strategy.md +44 -0
- package/surfaces/starters/social-network/prompts/01-database-schema.md +37 -0
- package/surfaces/starters/social-network/prompts/02-auth-system.md +40 -0
- package/surfaces/starters/social-network/prompts/03-feed-and-posts.md +43 -0
- package/surfaces/starters/social-network/prompts/04-profiles-and-follow.md +41 -0
- package/surfaces/starters/social-network/prompts/05-search-and-discovery.md +36 -0
- package/surfaces/starters/social-network/prompts/06-direct-messages.md +32 -0
- package/surfaces/starters/social-network/prompts/07-stripe-monetization.md +41 -0
- package/surfaces/starters/social-network/prompts/08-invite-system.md +37 -0
- package/surfaces/starters/social-network/prompts/variants/image-first-instagram.md +34 -0
- package/surfaces/starters/social-network/prompts/variants/video-first-tiktok.md +40 -0
- package/surfaces/starters/social-network/starter/.env.example +14 -0
- package/surfaces/starters/social-network/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/social-network/starter/.gitignore.template +9 -0
- package/surfaces/starters/social-network/starter/README.md +47 -0
- package/surfaces/starters/social-network/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/social-network/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/social-network/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/social-network/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/social-network/starter/app/feed/page.tsx +30 -0
- package/surfaces/starters/social-network/starter/app/layout.tsx +20 -0
- package/surfaces/starters/social-network/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/social-network/starter/app/page.tsx +17 -0
- package/surfaces/starters/social-network/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/social-network/starter/lib/analytics/events.ts +31 -0
- package/surfaces/starters/social-network/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/social-network/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/social-network/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/social-network/starter/lib/strings.ts +27 -0
- package/surfaces/starters/social-network/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/social-network/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/social-network/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/social-network/starter/next.config.ts +5 -0
- package/surfaces/starters/social-network/starter/package-lock.json +1222 -0
- package/surfaces/starters/social-network/starter/package.json +28 -0
- package/surfaces/starters/social-network/starter/proxy.ts +12 -0
- package/surfaces/starters/social-network/starter/supabase/migrations/0001_init.sql +81 -0
- package/surfaces/starters/social-network/starter/supabase/tests/0001_rls.test.sql +70 -0
- package/surfaces/starters/social-network/starter/tsconfig.json +41 -0
- package/surfaces/studio/seed/schema/business.empty.json +45 -0
- package/surfaces/studio/seed/schema/business.schema.json +664 -0
- package/surfaces/ui-library/README.md +42 -0
- package/surfaces/ui-library/adapters/expo.json +57 -0
- package/surfaces/ui-library/adapters/swiftui.json +57 -0
- package/surfaces/ui-library/component-index.json +26 -0
- package/surfaces/ui-library/components/feedback.empty-state.md +22 -0
- package/surfaces/ui-library/components/feedback.haptics.md +21 -0
- package/surfaces/ui-library/components/feedback.skeleton.md +21 -0
- package/surfaces/ui-library/components/input.keyboard-behavior.md +22 -0
- package/surfaces/ui-library/components/interaction.press-feedback.md +22 -0
- package/surfaces/ui-library/schemas/adapter-manifest.schema.json +101 -0
- package/surfaces/ui-library/schemas/component-contract.schema.json +56 -0
- package/surfaces/ui-library/schemas/component-index.schema.json +34 -0
- package/surfaces/workspace-template/new-business/DESIGN.md +198 -0
- package/surfaces/workspace-template/new-business/PRODUCT.md +69 -0
- package/surfaces/workspace-template/new-business/operations/metric-contracts.json +34 -0
- package/surfaces/workspace-template/new-business/product.yaml +87 -0
- package/surfaces/workspace-template/new-business/strategy/OFFER_TEST.md +43 -0
- package/surfaces/workspace-template/new-business/strategy/RESEARCH.md +69 -0
- package/surfaces/workspace-template/new-business/strategy/SIGNAL_CORPUS.md +34 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/.claude/settings.json +48 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/.cursor/rules/agents.mdc +12 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/AGENTS.md +102 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/CLAUDE.md +14 -0
- package/tooling/README.md +3 -0
- package/tooling/browser-proof.ts +1254 -0
- package/tooling/calibrate-utterance-router.ts +374 -0
- package/tooling/catalog-scaffold.ts +181 -0
- package/tooling/ci-aggregate.mjs +105 -0
- package/tooling/ci-lane.mjs +275 -0
- package/tooling/copy-runtime-assets.mjs +18 -0
- package/tooling/export-task-skill.ts +181 -0
- package/tooling/grade-design-surface.ts +404 -0
- package/tooling/grade-screenshots.ts +586 -0
- package/tooling/knowledge.ts +219 -0
- package/tooling/lib/app-copy-rules.ts +428 -0
- package/tooling/lib/artifact-pages.ts +143 -0
- package/tooling/lib/audit-plan.ts +492 -0
- package/tooling/lib/canonical-json.ts +30 -0
- package/tooling/lib/cli-entrypoint.ts +12 -0
- package/tooling/lib/content-assets.ts +228 -0
- package/tooling/lib/design-exploration.ts +232 -0
- package/tooling/lib/design-md.ts +442 -0
- package/tooling/lib/design-state.ts +333 -0
- package/tooling/lib/design-taste-rubric.ts +375 -0
- package/tooling/lib/founder-copy.ts +548 -0
- package/tooling/lib/git-root.ts +12 -0
- package/tooling/lib/grading.ts +92 -0
- package/tooling/lib/html.ts +32 -0
- package/tooling/lib/knowledge-freshness-pin.ts +83 -0
- package/tooling/lib/launch-state.ts +965 -0
- package/tooling/lib/markdown-lite.ts +351 -0
- package/tooling/lib/no-slop-rules.ts +273 -0
- package/tooling/lib/packed-check.ts +69 -0
- package/tooling/lib/posthog-retention.ts +144 -0
- package/tooling/lib/render-artifact-page.ts +342 -0
- package/tooling/lib/runtime-sync-lib.ts +171 -0
- package/tooling/lib/script-paths.ts +131 -0
- package/tooling/lib/shard-pool.ts +121 -0
- package/tooling/lib/skill-root.ts +35 -0
- package/tooling/lib/source-freshness-state.ts +43 -0
- package/tooling/lib/source-http.ts +167 -0
- package/tooling/lib/spawn.ts +36 -0
- package/tooling/lib/tsx-bin.ts +65 -0
- package/tooling/lib/tsx-launcher.d.mts +4 -0
- package/tooling/lib/tsx-launcher.mjs +57 -0
- package/tooling/print-hosted-version.ts +49 -0
- package/tooling/probe-eas.ts +99 -0
- package/tooling/probe-posthog.ts +318 -0
- package/tooling/probe-revenuecat-cli.ts +426 -0
- package/tooling/probe-revenuecat.ts +282 -0
- package/tooling/promote-design-tokens.ts +244 -0
- package/tooling/provision-posthog-platform.ts +138 -0
- package/tooling/prune-posthog-persons.ts +295 -0
- package/tooling/render-artifact-pages.ts +93 -0
- package/tooling/render-credits.ts +301 -0
- package/tooling/render-design-room.ts +518 -0
- package/tooling/render-hosted-bundle.ts +201 -0
- package/tooling/render-product.ts +103 -0
- package/tooling/render-public-api.ts +91 -0
- package/tooling/render-task-skills.ts +69 -0
- package/tooling/report-research-evidence-failures.ts +144 -0
- package/tooling/run-audit.ts +386 -0
- package/tooling/runtime-sync.ts +404 -0
- package/tooling/seed-design-brief.ts +69 -0
- package/tooling/test-public-api.ts +39 -0
- package/tsconfig.json +32 -0
package/catalog/generated/firstparty/checks/validation/business/design/check-motion-contract.ts
ADDED
|
@@ -0,0 +1,1374 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* check:motion-contract — deterministic consistency gate for the motion craft
|
|
4
|
+
* contract (premium-mobile-craft.md two-family spring canon + motion-craft-benchmarks.md
|
|
5
|
+
* recipes) against the authored DESIGN.md contract, promoted stack bindings,
|
|
6
|
+
* PremiumCraft.swift, and the experience-card canon files.
|
|
7
|
+
*
|
|
8
|
+
* This is the machine-checkable half of the motion acceptance contract. It cannot
|
|
9
|
+
* inspect a generated app's UI code (that adherence is covered behaviorally by the
|
|
10
|
+
* motion-craft-prose-never-applied LaunchBench scenario); what it CAN do is make the
|
|
11
|
+
* contract itself undriftable: every numeric band, token value, and preset the two
|
|
12
|
+
* references state must agree with the files that ship those numbers, and every motion
|
|
13
|
+
* name any reference or template cites (DesignTokens.Motion members, motion.* tokens,
|
|
14
|
+
* --motion-* CSS variables) must resolve to a shipped definition. The celebrate-band
|
|
15
|
+
* blocker the 2026-07-26 pre-PR review caught by hand (a band that excluded a canon
|
|
16
|
+
* card's own values) is exactly the class of failure this gate automates.
|
|
17
|
+
*/
|
|
18
|
+
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
19
|
+
import path from "node:path";
|
|
20
|
+
import { fileURLToPath } from "node:url";
|
|
21
|
+
import { loadDesignSystem } from "../../../../tooling/lib/design-md.js";
|
|
22
|
+
import { flagString, issue, parseFlags, reportAndExit, type Issue } from "../../../../tooling/lib/launch-state.js";
|
|
23
|
+
|
|
24
|
+
const scriptDir = path.dirname(fileURLToPath(import.meta.url));
|
|
25
|
+
const defaultSkillRoot = path.resolve(scriptDir, "../../../..");
|
|
26
|
+
|
|
27
|
+
function parseArgs(argv: string[]): { skillRoot: string; workspaceRoot: string } {
|
|
28
|
+
const flags = parseFlags(argv, [
|
|
29
|
+
{ flags: ["--skill-root", "--root"], key: "skillRoot" },
|
|
30
|
+
{ flags: ["--workspace-root", "--workspace"], key: "workspaceRoot" },
|
|
31
|
+
]);
|
|
32
|
+
const skillRoot = flagString(flags, "skillRoot") ?? defaultSkillRoot;
|
|
33
|
+
return { skillRoot, workspaceRoot: flagString(flags, "workspaceRoot") ?? path.join(skillRoot, "examples/workspace/business") };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const { skillRoot, workspaceRoot } = parseArgs(process.argv.slice(2));
|
|
37
|
+
|
|
38
|
+
/** Regex capture groups are typed string|undefined under noUncheckedIndexedAccess; every use below is a group the pattern guarantees. */
|
|
39
|
+
const g = (m: RegExpMatchArray, i: number): string => m[i] ?? "";
|
|
40
|
+
const issues: Issue[] = [];
|
|
41
|
+
|
|
42
|
+
const BENCH = "knowledge/design/motion-craft-benchmarks.md";
|
|
43
|
+
const CRAFT = "knowledge/design/premium-mobile-craft.md";
|
|
44
|
+
const DESIGN = "examples/workspace/business/DESIGN.md";
|
|
45
|
+
const SWIFT = "examples/workspace/business/design/system/PremiumCraft.swift";
|
|
46
|
+
const SWIFT_TOKENS = "examples/workspace/business/design/system/DesignTokens.swift";
|
|
47
|
+
const CANON_CARDS = [
|
|
48
|
+
"knowledge/experience/experience-cards/peak-end-card.md",
|
|
49
|
+
"knowledge/experience/experience-cards/mastery-and-status-card.md",
|
|
50
|
+
"knowledge/experience/experience-cards/variable-reward-card.md",
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
function read(rel: string): string | undefined {
|
|
54
|
+
const full = path.join(skillRoot, rel);
|
|
55
|
+
if (!existsSync(full)) {
|
|
56
|
+
issues.push(issue("error", "motion_contract.file_missing", `${rel} is missing; the motion contract cannot be checked without it.`, rel));
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
return readFileSync(full, "utf8");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const bench = read(BENCH);
|
|
63
|
+
const craft = read(CRAFT);
|
|
64
|
+
const swift = read(SWIFT);
|
|
65
|
+
const swiftTokens = read(SWIFT_TOKENS);
|
|
66
|
+
const design = loadDesignSystem(workspaceRoot);
|
|
67
|
+
issues.push(...design.issues);
|
|
68
|
+
|
|
69
|
+
// The live-surface family is one contract. If one recipe disappears, builders can
|
|
70
|
+
// route a visual effect without its state, accessibility, or performance limits.
|
|
71
|
+
if (bench !== undefined) {
|
|
72
|
+
const requiredLiveSurfaceRecipes = [
|
|
73
|
+
"### R15 — Liquid relationship morph",
|
|
74
|
+
"### R16 — State-bound perimeter beam",
|
|
75
|
+
"### R17 — Liquid-metal priority ring",
|
|
76
|
+
"### R18 — Semantic thinking orb",
|
|
77
|
+
];
|
|
78
|
+
for (const heading of requiredLiveSurfaceRecipes) {
|
|
79
|
+
if (!bench.includes(heading)) {
|
|
80
|
+
issues.push(
|
|
81
|
+
issue(
|
|
82
|
+
"error",
|
|
83
|
+
"motion_contract.live_surface.recipe_missing",
|
|
84
|
+
`${BENCH} is missing ${heading}; the live-surface effect family must ship as one bounded contract.`,
|
|
85
|
+
BENCH,
|
|
86
|
+
),
|
|
87
|
+
);
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
const body = sectionBody(bench, heading.replace(/^###\s+/, ""));
|
|
91
|
+
const checklistCount = body?.match(/^- \[ \] /gm)?.length ?? 0;
|
|
92
|
+
const requiredBodySignals = [
|
|
93
|
+
/\b(?:state|relationship|user action|product hierarchy)\b/i,
|
|
94
|
+
/\b(?:accessibility|accessible|focus|semantics?|status text)\b/i,
|
|
95
|
+
/\b(?:stop|stops|pause|pauses|inactive|idle|offscreen|hidden|stalled)\b/i,
|
|
96
|
+
/\b(?:layout shift|render loop|frame budget|context failure|pixel density|unbounded|static)\b/i,
|
|
97
|
+
/\bReduce Motion\b/i,
|
|
98
|
+
];
|
|
99
|
+
if (body === undefined || checklistCount < 5 || requiredBodySignals.some((signal) => !signal.test(body))) {
|
|
100
|
+
issues.push(
|
|
101
|
+
issue(
|
|
102
|
+
"error",
|
|
103
|
+
"motion_contract.live_surface.recipe_incomplete",
|
|
104
|
+
`${heading} must keep its state, accessibility, stop, performance or fallback, and Reduce Motion guidance with at least five checklist items.`,
|
|
105
|
+
BENCH,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const designContractPath = path.join(workspaceRoot, "DESIGN.md");
|
|
113
|
+
const designContract = existsSync(designContractPath) ? readFileSync(designContractPath, "utf8") : undefined;
|
|
114
|
+
if (designContract !== undefined) {
|
|
115
|
+
const renderedDesignContract = stripNonRenderedMarkdown(designContract);
|
|
116
|
+
const requiredLiveEffectFields = [
|
|
117
|
+
"Real state or relationship",
|
|
118
|
+
"Visible or semantic signal",
|
|
119
|
+
"Stop condition",
|
|
120
|
+
"Reduced-motion result",
|
|
121
|
+
"Low-power fallback",
|
|
122
|
+
];
|
|
123
|
+
for (const field of requiredLiveEffectFields) {
|
|
124
|
+
if (!renderedDesignContract.includes(field)) {
|
|
125
|
+
issues.push(
|
|
126
|
+
issue(
|
|
127
|
+
"error",
|
|
128
|
+
"motion_contract.live_surface.template_field_missing",
|
|
129
|
+
`examples/workspace/business/DESIGN.md is missing the ${field} field from its live-surface effect contract.`,
|
|
130
|
+
"examples/workspace/business/DESIGN.md",
|
|
131
|
+
),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const liveEffectBody = sectionBody(renderedDesignContract, "Live-surface effects");
|
|
136
|
+
const liveEffectHeaders = [
|
|
137
|
+
"Surface",
|
|
138
|
+
"Real state or relationship",
|
|
139
|
+
"Recipe",
|
|
140
|
+
"Visible or semantic signal",
|
|
141
|
+
"Stop condition",
|
|
142
|
+
"Reduced-motion result",
|
|
143
|
+
"Low-power fallback",
|
|
144
|
+
];
|
|
145
|
+
const liveEffectTable = markdownTable(liveEffectBody ?? "", liveEffectHeaders);
|
|
146
|
+
if (liveEffectTable === undefined) {
|
|
147
|
+
issues.push(
|
|
148
|
+
issue(
|
|
149
|
+
"error",
|
|
150
|
+
"motion_contract.live_surface.template_incomplete",
|
|
151
|
+
"The live-surface effect table needs all contract headers and a valid Markdown separator.",
|
|
152
|
+
path.relative(workspaceRoot, designContractPath),
|
|
153
|
+
),
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
if (workspaceNeedsLiveEffectValidation(workspaceRoot)) {
|
|
157
|
+
const liveEffectRows = liveEffectTable?.rows ?? [];
|
|
158
|
+
const recipeIndex = liveEffectTable?.headers.indexOf("Recipe") ?? -1;
|
|
159
|
+
if (
|
|
160
|
+
liveEffectRows.length === 0 ||
|
|
161
|
+
liveEffectRows.some(
|
|
162
|
+
(row) =>
|
|
163
|
+
row.length !== liveEffectHeaders.length ||
|
|
164
|
+
row.some((cell) => !isAuthoredLiveEffectCell(cell)) ||
|
|
165
|
+
!/^(?:R1[5-8]|none)$/i.test((row[recipeIndex] ?? "").trim()),
|
|
166
|
+
)
|
|
167
|
+
) {
|
|
168
|
+
issues.push(
|
|
169
|
+
issue(
|
|
170
|
+
"error",
|
|
171
|
+
"motion_contract.live_surface.workspace_incomplete",
|
|
172
|
+
"An active workspace needs one complete live-surface row, including a none row when the product uses no live effect.",
|
|
173
|
+
path.relative(workspaceRoot, designContractPath),
|
|
174
|
+
),
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
} else {
|
|
179
|
+
issues.push(issue("error", "motion_contract.live_surface.workspace_missing", "The active workspace is missing DESIGN.md.", "DESIGN.md"));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function workspaceIsLaunched(root: string): boolean {
|
|
183
|
+
const statePath = path.join(root, "state/business-state.json");
|
|
184
|
+
if (!existsSync(statePath)) return false;
|
|
185
|
+
try {
|
|
186
|
+
const state = JSON.parse(readFileSync(statePath, "utf8")) as { project?: { phase?: unknown } };
|
|
187
|
+
const phase = String(state.project?.phase ?? "");
|
|
188
|
+
return /^phase_6(?:b|_|$)/.test(phase);
|
|
189
|
+
} catch {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function workspaceNeedsLiveEffectValidation(root: string): boolean {
|
|
195
|
+
const packagedStarterRoot = path.resolve(skillRoot, "examples/workspace/business");
|
|
196
|
+
return path.resolve(root) !== packagedStarterRoot || workspaceIsLaunched(root);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function sectionBody(document: string, headingName: string): string | undefined {
|
|
200
|
+
const lines = document.split("\n");
|
|
201
|
+
const pattern = new RegExp(`^(#{2,4})\\s+${headingName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\s*$`, "i");
|
|
202
|
+
const start = lines.findIndex((line) => pattern.test(line.trim()));
|
|
203
|
+
if (start < 0) return undefined;
|
|
204
|
+
const depth = lines[start]!.trim().match(pattern)![1]!.length;
|
|
205
|
+
const end = lines.findIndex((line, index) => index > start && /^(#{2,6})\s+/.test(line.trim()) && line.trim().match(/^(#{2,6})/)![1]!.length <= depth);
|
|
206
|
+
return lines.slice(start + 1, end < 0 ? undefined : end).join("\n");
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function stripNonRenderedMarkdown(markdown: string): string {
|
|
210
|
+
const withoutComments = stripHtmlComments(stripNonRenderedHtmlBlocks(markdown));
|
|
211
|
+
const renderedLines: string[] = [];
|
|
212
|
+
let fence: { kind: "`" | "~"; length: number } | undefined;
|
|
213
|
+
for (const line of withoutComments.split("\n")) {
|
|
214
|
+
const markerMatch = line.match(/^ {0,3}(`{3,}|~{3,})(.*)$/u);
|
|
215
|
+
const marker = markerMatch?.[1];
|
|
216
|
+
if (fence !== undefined) {
|
|
217
|
+
if (marker !== undefined && fence.kind === marker[0] && marker.length >= fence.length && (markerMatch?.[2] ?? "").trim() === "") {
|
|
218
|
+
fence = undefined;
|
|
219
|
+
}
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
if (marker !== undefined) {
|
|
223
|
+
fence = { kind: marker[0] as "`" | "~", length: marker.length };
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
if (/^(?: {4}|\t)/u.test(line)) continue;
|
|
227
|
+
renderedLines.push(line);
|
|
228
|
+
}
|
|
229
|
+
return renderedLines.join("\n");
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function stripNonRenderedHtmlBlocks(markdown: string): string {
|
|
233
|
+
return markdown.replace(/<(script|style|template)\b[^>]*>[\s\S]*?<\/\1\s*>/giu, "");
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function stripHtmlComments(markdown: string): string {
|
|
237
|
+
let rendered = "";
|
|
238
|
+
let cursor = 0;
|
|
239
|
+
while (cursor < markdown.length) {
|
|
240
|
+
const start = markdown.indexOf("<!--", cursor);
|
|
241
|
+
if (start < 0) return rendered + markdown.slice(cursor);
|
|
242
|
+
rendered += markdown.slice(cursor, start);
|
|
243
|
+
const end = markdown.indexOf("-->", start + 4);
|
|
244
|
+
if (end < 0) return rendered;
|
|
245
|
+
cursor = end + 3;
|
|
246
|
+
}
|
|
247
|
+
return rendered;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function markdownTable(body: string, requiredHeaders: string[]): { headers: string[]; rows: string[][] } | undefined {
|
|
251
|
+
const lines = body.split("\n").map((line) => line.trim());
|
|
252
|
+
for (let index = 0; index < lines.length - 1; index += 1) {
|
|
253
|
+
if (!lines[index]!.startsWith("|")) continue;
|
|
254
|
+
const headers = parseMarkdownRow(lines[index]!);
|
|
255
|
+
if (!requiredHeaders.every((header) => headers.includes(header))) continue;
|
|
256
|
+
if (!lines[index + 1]!.startsWith("|")) return undefined;
|
|
257
|
+
const separator = parseMarkdownRow(lines[index + 1]!);
|
|
258
|
+
if (separator.length !== headers.length || !separator.every((cell) => /^:?-{3,}:?$/.test(cell.trim()))) return undefined;
|
|
259
|
+
const rows: string[][] = [];
|
|
260
|
+
for (let rowIndex = index + 2; rowIndex < lines.length && lines[rowIndex]!.startsWith("|"); rowIndex += 1) {
|
|
261
|
+
rows.push(parseMarkdownRow(lines[rowIndex]!));
|
|
262
|
+
}
|
|
263
|
+
return { headers, rows };
|
|
264
|
+
}
|
|
265
|
+
return undefined;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function parseMarkdownRow(line: string): string[] {
|
|
269
|
+
const source = line.replace(/^\|/, "").replace(/\|$/, "");
|
|
270
|
+
const cells: string[] = [];
|
|
271
|
+
let cell = "";
|
|
272
|
+
for (let index = 0; index < source.length; index += 1) {
|
|
273
|
+
if (source[index] === "\\") {
|
|
274
|
+
let end = index;
|
|
275
|
+
while (source[end] === "\\") end += 1;
|
|
276
|
+
const count = end - index;
|
|
277
|
+
if (source[end] === "|") {
|
|
278
|
+
cell += "\\".repeat(Math.floor(count / 2));
|
|
279
|
+
if (count % 2 === 1) {
|
|
280
|
+
cell += "|";
|
|
281
|
+
index = end;
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
index = end - 1;
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
cell += "\\".repeat(count);
|
|
288
|
+
index = end - 1;
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
if (source[index] === "|") {
|
|
292
|
+
cells.push(cell.trim());
|
|
293
|
+
cell = "";
|
|
294
|
+
} else {
|
|
295
|
+
cell += source[index];
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
cells.push(cell.trim());
|
|
299
|
+
return cells;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function isAuthoredLiveEffectCell(value: string): boolean {
|
|
303
|
+
return (
|
|
304
|
+
value.length > 0 && !/^(?:not defined|not captured|not recorded|not reviewed|pending|tbd|todo)$/i.test(value) && !/R15, R16, R17, R18, or none/i.test(value)
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/** Numeric members of the shipped DesignTokens.Motion enum, for resolving symbolic spring responses. */
|
|
309
|
+
const swiftMotionMembers = new Map<string, number>();
|
|
310
|
+
if (swiftTokens !== undefined) {
|
|
311
|
+
const motionEnum = swiftTokens.match(/enum Motion \{([\s\S]*?)\n {2}\}/);
|
|
312
|
+
const enumBody = motionEnum ? (motionEnum[1] ?? "") : "";
|
|
313
|
+
for (const m of enumBody.matchAll(/static let (\w+): Double = (\d+(?:\.\d+)?)(?:\n|$)/g)) {
|
|
314
|
+
swiftMotionMembers.set(g(m, 1), Number(g(m, 2)));
|
|
315
|
+
}
|
|
316
|
+
for (const m of enumBody.matchAll(/static let (\w+): Double = ([^\n]+)/g)) {
|
|
317
|
+
if (!swiftMotionMembers.has(g(m, 1))) {
|
|
318
|
+
issues.push(
|
|
319
|
+
issue(
|
|
320
|
+
"error",
|
|
321
|
+
"motion_contract.swift_tokens.member_malformed",
|
|
322
|
+
`DesignTokens.Motion.${g(m, 1)} declares a Double that does not parse as a valid decimal (${g(m, 2).trim()}) — the enum would not compile.`,
|
|
323
|
+
SWIFT_TOKENS,
|
|
324
|
+
),
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (swiftMotionMembers.size === 0) {
|
|
329
|
+
issues.push(
|
|
330
|
+
issue(
|
|
331
|
+
"error",
|
|
332
|
+
"motion_contract.swift_tokens.motion_unparseable",
|
|
333
|
+
"No numeric DesignTokens.Motion members could be parsed from DesignTokens.swift.",
|
|
334
|
+
SWIFT_TOKENS,
|
|
335
|
+
),
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
const motionTokens: Record<string, string> = design.tokens?.tokens.motion ?? {};
|
|
341
|
+
if (Object.keys(motionTokens).length === 0) {
|
|
342
|
+
issues.push(issue("error", "motion_contract.tokens.motion_missing", "DESIGN.md has no valid motion token block.", DESIGN));
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/** PremiumMotion presets parsed from PremiumCraft.swift: name -> { durationMember, bounce }. */
|
|
346
|
+
const swiftPresets = new Map<string, { durationMember: string; bounce: number }>();
|
|
347
|
+
if (swift !== undefined) {
|
|
348
|
+
const presetRe = /static let (\w+) = Animation\.spring\(\s*duration: DesignTokens\.Motion\.(\w+),\s*bounce: ([\d.]+)\s*\)/g;
|
|
349
|
+
for (const m of swift.matchAll(presetRe)) {
|
|
350
|
+
swiftPresets.set(g(m, 1), { durationMember: g(m, 2), bounce: Number(g(m, 3)) });
|
|
351
|
+
}
|
|
352
|
+
if (swiftPresets.size === 0) {
|
|
353
|
+
issues.push(
|
|
354
|
+
issue("error", "motion_contract.swift.presets_unparseable", "No PremiumMotion Animation.spring presets could be parsed from PremiumCraft.swift.", SWIFT),
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// --- 1. The benchmarks token table must match DESIGN.md's authored motion tokens exactly. ---
|
|
360
|
+
if (bench !== undefined) {
|
|
361
|
+
const rowRe = /^\|\s*`(\w+)`\s*\|\s*(\d+)ms\s*\|([^|]*)\|/gm;
|
|
362
|
+
const REQUIRED_ROWS = ["durationFast", "durationBase", "durationSlow", "durationCelebrate", "durationReveal", "durationCinematic", "stagger"];
|
|
363
|
+
const seenRows: string[] = [];
|
|
364
|
+
for (const m of bench.matchAll(rowRe)) {
|
|
365
|
+
const name = g(m, 1);
|
|
366
|
+
seenRows.push(name);
|
|
367
|
+
const ms = g(m, 2);
|
|
368
|
+
const presetCell = g(m, 3);
|
|
369
|
+
const actual = motionTokens[name];
|
|
370
|
+
if (actual === undefined) {
|
|
371
|
+
issues.push(
|
|
372
|
+
issue("error", "motion_contract.token_row.unknown_token", `Benchmarks token table names motion.${name}, which does not exist in DESIGN.md.`, BENCH),
|
|
373
|
+
);
|
|
374
|
+
} else if (actual !== `${ms}ms`) {
|
|
375
|
+
issues.push(
|
|
376
|
+
issue("error", "motion_contract.token_row.value_drift", `Benchmarks token table says motion.${name} = ${ms}ms but DESIGN.md authors ${actual}.`, BENCH),
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
// Every numeric row must also exist in and match the Swift enum, preset or not —
|
|
380
|
+
// durationReveal/durationCinematic/stagger have no PremiumMotion mapping but
|
|
381
|
+
// apps still compile against their Swift members, and a member deleted from the
|
|
382
|
+
// enum breaks that compile even while doc/JSON parity stays green.
|
|
383
|
+
if (swiftMotionMembers.size > 0 && !swiftMotionMembers.has(name)) {
|
|
384
|
+
issues.push(
|
|
385
|
+
issue(
|
|
386
|
+
"error",
|
|
387
|
+
"motion_contract.token_row.swift_member_missing",
|
|
388
|
+
`Benchmarks token table documents motion.${name} but DesignTokens.Motion defines no numeric ${name} member — code referencing it will not compile.`,
|
|
389
|
+
BENCH,
|
|
390
|
+
),
|
|
391
|
+
);
|
|
392
|
+
} else if (swiftMotionMembers.has(name) && Math.round((swiftMotionMembers.get(name) ?? 0) * 1000) !== Number(ms)) {
|
|
393
|
+
issues.push(
|
|
394
|
+
issue(
|
|
395
|
+
"error",
|
|
396
|
+
"motion_contract.token_row.swift_value_drift",
|
|
397
|
+
`Benchmarks token table says motion.${name} = ${ms}ms but DesignTokens.Motion.${name} ships ${(swiftMotionMembers.get(name) ?? 0) * 1000}ms.`,
|
|
398
|
+
BENCH,
|
|
399
|
+
),
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
// Validate EVERY preset annotation in the cell, not just the first — a
|
|
403
|
+
// two-preset row (durationCelebrate) must keep both presets synchronized,
|
|
404
|
+
// and an un-annotated mention must fail rather than ride along unchecked.
|
|
405
|
+
const presetRefs = [...presetCell.matchAll(/PremiumMotion\.(\w+)`?\s*\(bounce ([\d.]+)\)/g)];
|
|
406
|
+
const presetMentions = (presetCell.match(/PremiumMotion\./g) ?? []).length;
|
|
407
|
+
if (presetMentions > presetRefs.length) {
|
|
408
|
+
issues.push(
|
|
409
|
+
issue(
|
|
410
|
+
"error",
|
|
411
|
+
"motion_contract.preset.annotation_missing",
|
|
412
|
+
`Benchmarks token table row for motion.${name} names a PremiumMotion preset without its (bounce N) annotation; the stated bounce is what the gate keeps synchronized.`,
|
|
413
|
+
BENCH,
|
|
414
|
+
),
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
for (const presetRef of presetRefs) {
|
|
418
|
+
const preset = swiftPresets.get(g(presetRef, 1));
|
|
419
|
+
if (!preset) {
|
|
420
|
+
issues.push(
|
|
421
|
+
issue(
|
|
422
|
+
"error",
|
|
423
|
+
"motion_contract.preset.unknown",
|
|
424
|
+
`Benchmarks token table cites PremiumMotion.${g(presetRef, 1)}, which is not a parsed PremiumCraft.swift preset.`,
|
|
425
|
+
BENCH,
|
|
426
|
+
),
|
|
427
|
+
);
|
|
428
|
+
} else if (preset.durationMember !== name) {
|
|
429
|
+
issues.push(
|
|
430
|
+
issue(
|
|
431
|
+
"error",
|
|
432
|
+
"motion_contract.preset.duration_mismatch",
|
|
433
|
+
`Benchmarks token table maps PremiumMotion.${g(presetRef, 1)} to motion.${name} but PremiumCraft.swift rides DesignTokens.Motion.${preset.durationMember}.`,
|
|
434
|
+
BENCH,
|
|
435
|
+
),
|
|
436
|
+
);
|
|
437
|
+
} else if (preset.bounce !== Number(g(presetRef, 2))) {
|
|
438
|
+
issues.push(
|
|
439
|
+
issue(
|
|
440
|
+
"error",
|
|
441
|
+
"motion_contract.preset.bounce_drift",
|
|
442
|
+
`Benchmarks token table says PremiumMotion.${g(presetRef, 1)} bounce ${g(presetRef, 2)} but PremiumCraft.swift ships ${preset.bounce}.`,
|
|
443
|
+
BENCH,
|
|
444
|
+
),
|
|
445
|
+
);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
for (const required of REQUIRED_ROWS) {
|
|
450
|
+
if (!seenRows.includes(required)) {
|
|
451
|
+
issues.push(
|
|
452
|
+
issue(
|
|
453
|
+
"error",
|
|
454
|
+
"motion_contract.token_table.row_missing",
|
|
455
|
+
`Benchmarks token table lost its motion.${required} row; the mapping must stay complete.`,
|
|
456
|
+
BENCH,
|
|
457
|
+
),
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
for (const dup of seenRows.filter((name, i) => seenRows.indexOf(name) !== i)) {
|
|
462
|
+
issues.push(
|
|
463
|
+
issue(
|
|
464
|
+
"error",
|
|
465
|
+
"motion_contract.token_table.duplicate_row",
|
|
466
|
+
`Benchmarks token table lists motion.${dup} more than once; duplicates can mask omissions.`,
|
|
467
|
+
BENCH,
|
|
468
|
+
),
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// Every motion.<name> reference in the benchmarks must resolve to a shipped token.
|
|
473
|
+
for (const m of bench.matchAll(/`motion\.([^`]+)`/g)) {
|
|
474
|
+
// `motion.*` is the namespace label (table header prose), not a token reference.
|
|
475
|
+
if (g(m, 1) === "*") continue;
|
|
476
|
+
if (!Object.hasOwn(motionTokens, g(m, 1))) {
|
|
477
|
+
issues.push(
|
|
478
|
+
issue("error", "motion_contract.token_reference.unknown", `Benchmarks reference motion.${g(m, 1)}, which does not exist in DESIGN.md.`, BENCH),
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// --- 2. Every PremiumMotion.<name> mention in both references must be a real preset. ---
|
|
485
|
+
for (const [rel, text] of [
|
|
486
|
+
[BENCH, bench],
|
|
487
|
+
[CRAFT, craft],
|
|
488
|
+
] as const) {
|
|
489
|
+
if (text === undefined || swift === undefined) continue;
|
|
490
|
+
for (const m of text.matchAll(/PremiumMotion\.([A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*)/g)) {
|
|
491
|
+
if (!swiftPresets.has(g(m, 1))) {
|
|
492
|
+
issues.push(
|
|
493
|
+
issue("error", "motion_contract.premium_motion.unknown", `${rel} references PremiumMotion.${g(m, 1)}, which PremiumCraft.swift does not define.`, rel),
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// --- 3. The two-family spring table, its benchmarks mirror, and the card canon must agree. ---
|
|
500
|
+
interface Band {
|
|
501
|
+
respLo: number;
|
|
502
|
+
respHi: number;
|
|
503
|
+
dampLo: number;
|
|
504
|
+
dampHi: number;
|
|
505
|
+
}
|
|
506
|
+
const bands = new Map<string, Band>();
|
|
507
|
+
if (craft !== undefined) {
|
|
508
|
+
const familyRe =
|
|
509
|
+
/\|\s*\*\*(press|celebrate)\*\*\s*\|\s*response\s+(\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?),\s*dampingFraction\s+(\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?)/g;
|
|
510
|
+
for (const m of craft.matchAll(familyRe)) {
|
|
511
|
+
const family = g(m, 1);
|
|
512
|
+
if (bands.has(family)) {
|
|
513
|
+
issues.push(
|
|
514
|
+
issue(
|
|
515
|
+
"error",
|
|
516
|
+
"motion_contract.family_table.duplicate",
|
|
517
|
+
`premium-mobile-craft.md's spring table states the ${family} family more than once; two incompatible canons could coexist silently.`,
|
|
518
|
+
CRAFT,
|
|
519
|
+
),
|
|
520
|
+
);
|
|
521
|
+
continue;
|
|
522
|
+
}
|
|
523
|
+
bands.set(family, { respLo: Number(g(m, 2)), respHi: Number(g(m, 3)), dampLo: Number(g(m, 4)), dampHi: Number(g(m, 5)) });
|
|
524
|
+
}
|
|
525
|
+
for (const family of ["press", "celebrate"]) {
|
|
526
|
+
const band = bands.get(family);
|
|
527
|
+
if (!band) {
|
|
528
|
+
issues.push(
|
|
529
|
+
issue("error", "motion_contract.family_table.missing", `premium-mobile-craft.md's spring table has no parseable ${family} family row.`, CRAFT),
|
|
530
|
+
);
|
|
531
|
+
continue;
|
|
532
|
+
}
|
|
533
|
+
if (band.respLo > band.respHi || band.dampLo > band.dampHi) {
|
|
534
|
+
issues.push(
|
|
535
|
+
issue(
|
|
536
|
+
"error",
|
|
537
|
+
"motion_contract.family_table.inverted_range",
|
|
538
|
+
`premium-mobile-craft.md's ${family} family states an inverted range (response ${band.respLo}-${band.respHi}, damping ${band.dampLo}-${band.dampHi}) — an empty valid range gates nothing.`,
|
|
539
|
+
CRAFT,
|
|
540
|
+
),
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (bench !== undefined && bands.has("press") && bands.has("celebrate")) {
|
|
547
|
+
const mirrorRe =
|
|
548
|
+
/press \(response (\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?) \/ damping (\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?)\) and celebrate \(response (\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?) \/ damping (\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?)\)/;
|
|
549
|
+
const mirrors = [...bench.matchAll(new RegExp(mirrorRe, "g"))];
|
|
550
|
+
if (mirrors.length > 1) {
|
|
551
|
+
issues.push(
|
|
552
|
+
issue(
|
|
553
|
+
"error",
|
|
554
|
+
"motion_contract.family_mirror.duplicate",
|
|
555
|
+
`Benchmarks state the spring-family mirror ${mirrors.length} times; a stale second statement could publish an incompatible canon.`,
|
|
556
|
+
BENCH,
|
|
557
|
+
),
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
const m = mirrors[0];
|
|
561
|
+
if (!m) {
|
|
562
|
+
issues.push(
|
|
563
|
+
issue("error", "motion_contract.family_mirror.missing", "Benchmarks no longer state the two spring families in the expected mirror form.", BENCH),
|
|
564
|
+
);
|
|
565
|
+
} else {
|
|
566
|
+
const press = bands.get("press");
|
|
567
|
+
const celebrate = bands.get("celebrate");
|
|
568
|
+
if (!press || !celebrate) throw new Error("unreachable: bands checked above");
|
|
569
|
+
const stated: Array<[number, number, string]> = [
|
|
570
|
+
[Number(g(m, 1)), press.respLo, "press response low"],
|
|
571
|
+
[Number(g(m, 2)), press.respHi, "press response high"],
|
|
572
|
+
[Number(g(m, 3)), press.dampLo, "press damping low"],
|
|
573
|
+
[Number(g(m, 4)), press.dampHi, "press damping high"],
|
|
574
|
+
[Number(g(m, 5)), celebrate.respLo, "celebrate response low"],
|
|
575
|
+
[Number(g(m, 6)), celebrate.respHi, "celebrate response high"],
|
|
576
|
+
[Number(g(m, 7)), celebrate.dampLo, "celebrate damping low"],
|
|
577
|
+
[Number(g(m, 8)), celebrate.dampHi, "celebrate damping high"],
|
|
578
|
+
];
|
|
579
|
+
for (const [got, want, label] of stated) {
|
|
580
|
+
if (got !== want) {
|
|
581
|
+
issues.push(
|
|
582
|
+
issue(
|
|
583
|
+
"error",
|
|
584
|
+
"motion_contract.family_mirror.drift",
|
|
585
|
+
`Benchmarks mirror states ${label} = ${got} but premium-mobile-craft.md's table says ${want}.`,
|
|
586
|
+
BENCH,
|
|
587
|
+
),
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
const celebrateBand = bands.get("celebrate");
|
|
595
|
+
if (celebrateBand) {
|
|
596
|
+
const celebrate = celebrateBand;
|
|
597
|
+
for (const rel of CANON_CARDS) {
|
|
598
|
+
const text = read(rel);
|
|
599
|
+
if (text === undefined) continue;
|
|
600
|
+
const NUM = "\\d+(?:\\.\\d+)?";
|
|
601
|
+
const springs = [
|
|
602
|
+
...text.matchAll(
|
|
603
|
+
new RegExp(`\\.spring\\(\\s*response:\\s*(${NUM}|DesignTokens\\.Motion\\.[A-Za-z0-9_]+)\\s*,\\s*dampingFraction:\\s*(${NUM})\\s*\\)`, "g"),
|
|
604
|
+
),
|
|
605
|
+
];
|
|
606
|
+
const springSites = (text.match(/\.spring\(\s*response:/g) ?? []).length;
|
|
607
|
+
if (springSites > springs.length) {
|
|
608
|
+
issues.push(
|
|
609
|
+
issue(
|
|
610
|
+
"error",
|
|
611
|
+
"motion_contract.canon.spring_malformed",
|
|
612
|
+
`${rel} contains ${springSites - springs.length} .spring(response:...) recipe(s) that do not parse as valid numeric or DesignTokens.Motion springs — a malformed literal like 0..5 would not compile.`,
|
|
613
|
+
rel,
|
|
614
|
+
),
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
if (springs.length === 0) {
|
|
618
|
+
issues.push(
|
|
619
|
+
issue("error", "motion_contract.canon.spring_missing", `${rel} no longer contains a parseable .spring(response:dampingFraction:) canon value.`, rel),
|
|
620
|
+
);
|
|
621
|
+
continue;
|
|
622
|
+
}
|
|
623
|
+
for (const s of springs) {
|
|
624
|
+
// A symbolic response must resolve to a real numeric member of the shipped
|
|
625
|
+
// DesignTokens.Motion enum — a name the enum does not define would not even
|
|
626
|
+
// compile in the card's SwiftUI snippet, so it can never be treated as in-band.
|
|
627
|
+
let response: number;
|
|
628
|
+
const rawResponse = g(s, 1);
|
|
629
|
+
if (rawResponse.startsWith("DesignTokens.Motion.")) {
|
|
630
|
+
const member = rawResponse.slice("DesignTokens.Motion.".length);
|
|
631
|
+
const resolved = swiftMotionMembers.get(member);
|
|
632
|
+
if (resolved === undefined) {
|
|
633
|
+
issues.push(
|
|
634
|
+
issue(
|
|
635
|
+
"error",
|
|
636
|
+
"motion_contract.canon.symbol_unresolvable",
|
|
637
|
+
`${rel} ships a canon spring response ${rawResponse}, but DesignTokens.Motion defines no numeric ${member} member — the snippet would not compile.`,
|
|
638
|
+
rel,
|
|
639
|
+
),
|
|
640
|
+
);
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
response = resolved;
|
|
644
|
+
} else {
|
|
645
|
+
response = Number(rawResponse);
|
|
646
|
+
}
|
|
647
|
+
const damping = Number(g(s, 2));
|
|
648
|
+
if (Number.isFinite(response) && (response < celebrate.respLo || response > celebrate.respHi)) {
|
|
649
|
+
issues.push(
|
|
650
|
+
issue(
|
|
651
|
+
"error",
|
|
652
|
+
"motion_contract.canon.outside_band",
|
|
653
|
+
`${rel} ships a celebrate-canon spring response ${response} outside the stated family band ${celebrate.respLo}–${celebrate.respHi}.`,
|
|
654
|
+
rel,
|
|
655
|
+
),
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
if (damping < celebrate.dampLo || damping > celebrate.dampHi) {
|
|
659
|
+
issues.push(
|
|
660
|
+
issue(
|
|
661
|
+
"error",
|
|
662
|
+
"motion_contract.canon.outside_band",
|
|
663
|
+
`${rel} ships a celebrate-canon dampingFraction ${damping} outside the stated family band ${celebrate.dampLo}–${celebrate.dampHi}.`,
|
|
664
|
+
rel,
|
|
665
|
+
),
|
|
666
|
+
);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// --- 3b. A recipe's own restated numeric window (e.g. R12's "(360–600ms total)") must match
|
|
673
|
+
// DESIGN.md's authored values for the tokens it names — otherwise a future token edit can
|
|
674
|
+
// invert the range or drift the cap while this recipe's prose, and this gate, stay green.
|
|
675
|
+
// The match count is itself asserted (not just each match's values): rewording or dropping
|
|
676
|
+
// the parenthetical would otherwise make this loop silently validate zero windows. ---
|
|
677
|
+
if (bench !== undefined && Object.keys(motionTokens).length > 0) {
|
|
678
|
+
const windowRe = /`motion\.(\w+)`[–-]`(\w+)` window \((\d+)[–-](\d+)ms total\)/g;
|
|
679
|
+
const windowMatches = [...bench.matchAll(windowRe)];
|
|
680
|
+
if (windowMatches.length === 0) {
|
|
681
|
+
issues.push(
|
|
682
|
+
issue(
|
|
683
|
+
"error",
|
|
684
|
+
"motion_contract.recipe_window.none_found",
|
|
685
|
+
"No recipe states a `motion.TOKEN`–`TOKEN` window (N–Nms total) — either every such statement was removed (fine, update this check too) or one was reworded into a form this check no longer parses, which would silently stop validating it.",
|
|
686
|
+
BENCH,
|
|
687
|
+
),
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
for (const m of windowMatches) {
|
|
691
|
+
const bounds: Array<[string, string, string]> = [
|
|
692
|
+
[g(m, 1), g(m, 3), "low"],
|
|
693
|
+
[g(m, 2), g(m, 4), "high"],
|
|
694
|
+
];
|
|
695
|
+
for (const [tokenName, stated, label] of bounds) {
|
|
696
|
+
const actual = motionTokens[tokenName];
|
|
697
|
+
if (actual === undefined) {
|
|
698
|
+
issues.push(
|
|
699
|
+
issue(
|
|
700
|
+
"error",
|
|
701
|
+
"motion_contract.recipe_window.unknown_token",
|
|
702
|
+
`A recipe states a window ${label} bound against motion.${tokenName}, which does not exist in DESIGN.md.`,
|
|
703
|
+
BENCH,
|
|
704
|
+
),
|
|
705
|
+
);
|
|
706
|
+
continue;
|
|
707
|
+
}
|
|
708
|
+
if (actual !== `${stated}ms`) {
|
|
709
|
+
issues.push(
|
|
710
|
+
issue(
|
|
711
|
+
"error",
|
|
712
|
+
"motion_contract.recipe_window.value_drift",
|
|
713
|
+
`A recipe states its window ${label} bound as ${stated}ms (motion.${tokenName}) but DESIGN.md authors motion.${tokenName} = ${actual}.`,
|
|
714
|
+
BENCH,
|
|
715
|
+
),
|
|
716
|
+
);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
// --- 3c. A recipe's own inline restatement of a spring family's band (e.g. R12's
|
|
723
|
+
// "press-family spring (response 0.3-0.4s, damping 0.7-0.8)") must match the family
|
|
724
|
+
// table in premium-mobile-craft.md, the same drift class as the family_mirror check
|
|
725
|
+
// above but for a recipe body instead of the top-of-file summary sentence. ---
|
|
726
|
+
if (bench !== undefined && bands.size > 0) {
|
|
727
|
+
const familyInlineRe = /(press|celebrate)-family spring \(response (\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?)s?, damping (\d+(?:\.\d+)?)[–-](\d+(?:\.\d+)?)\)/g;
|
|
728
|
+
const familyInlineMatches = [...bench.matchAll(familyInlineRe)];
|
|
729
|
+
if (familyInlineMatches.length === 0) {
|
|
730
|
+
issues.push(
|
|
731
|
+
issue(
|
|
732
|
+
"error",
|
|
733
|
+
"motion_contract.recipe_family_inline.none_found",
|
|
734
|
+
"No recipe states a `<family>-family spring (response N-Ns, damping N-N)` restatement — either every such statement was removed (fine, update this check too) or one was reworded into a form this check no longer parses, which would silently stop validating it.",
|
|
735
|
+
BENCH,
|
|
736
|
+
),
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
for (const m of familyInlineMatches) {
|
|
740
|
+
const family = g(m, 1);
|
|
741
|
+
const band = bands.get(family);
|
|
742
|
+
if (!band) continue;
|
|
743
|
+
const stated: Array<[number, number, string]> = [
|
|
744
|
+
[Number(g(m, 2)), band.respLo, `${family} response low`],
|
|
745
|
+
[Number(g(m, 3)), band.respHi, `${family} response high`],
|
|
746
|
+
[Number(g(m, 4)), band.dampLo, `${family} damping low`],
|
|
747
|
+
[Number(g(m, 5)), band.dampHi, `${family} damping high`],
|
|
748
|
+
];
|
|
749
|
+
for (const [got, want, label] of stated) {
|
|
750
|
+
if (got !== want) {
|
|
751
|
+
issues.push(
|
|
752
|
+
issue(
|
|
753
|
+
"error",
|
|
754
|
+
"motion_contract.recipe_family_inline.drift",
|
|
755
|
+
`A recipe restates ${label} = ${got} but premium-mobile-craft.md's table says ${want}.`,
|
|
756
|
+
BENCH,
|
|
757
|
+
),
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
// --- 3d. R12's per-asset-count offset table is a derivation from motion.durationReveal,
|
|
765
|
+
// motion.stagger, and the press family's slowest settle (0.4s) -- not standalone prose.
|
|
766
|
+
// Parse each row's own asset count, offset, and total together (not "does this number
|
|
767
|
+
// appear somewhere in the file") so a row whose offset and total disagree with each
|
|
768
|
+
// other, or with the current tokens, cannot pass just because the right digits exist
|
|
769
|
+
// elsewhere in the recipe. Also recompute the asset count where pure stagger stops being
|
|
770
|
+
// achievable and assert the table's own terminal row states that same boundary. ---
|
|
771
|
+
if (bench !== undefined && Object.keys(motionTokens).length > 0 && bands.has("press")) {
|
|
772
|
+
const durationRevealMs = Number.parseInt(motionTokens["durationReveal"] ?? "", 10);
|
|
773
|
+
const staggerFloorMs = Number.parseInt(motionTokens["stagger"] ?? "", 10);
|
|
774
|
+
const press = bands.get("press")!;
|
|
775
|
+
const worstCaseSettleMs = Math.round(press.respHi * 1000);
|
|
776
|
+
if (Number.isFinite(durationRevealMs) && Number.isFinite(staggerFloorMs) && Number.isFinite(worstCaseSettleMs)) {
|
|
777
|
+
const gapBudgetMs = durationRevealMs - worstCaseSettleMs;
|
|
778
|
+
|
|
779
|
+
// Locate the table by its header (any order-tolerant subset of these column names)
|
|
780
|
+
// and parse each data row generically, the same cell-splitting approach
|
|
781
|
+
// check-analytics-catalog.ts uses for its own header-column table scan.
|
|
782
|
+
const lines = bench.split(/\r?\n/);
|
|
783
|
+
let headerRow = -1;
|
|
784
|
+
for (let i = 0; i < lines.length; i++) {
|
|
785
|
+
const header = lines[i];
|
|
786
|
+
const divider = lines[i + 1];
|
|
787
|
+
if (
|
|
788
|
+
header &&
|
|
789
|
+
divider &&
|
|
790
|
+
/^\s*\|/.test(header) &&
|
|
791
|
+
/^\s*\|[\s|:-]+\|\s*$/.test(divider) &&
|
|
792
|
+
/assets/i.test(header) &&
|
|
793
|
+
/offset/i.test(header) &&
|
|
794
|
+
/total/i.test(header)
|
|
795
|
+
) {
|
|
796
|
+
headerRow = i;
|
|
797
|
+
break;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
if (headerRow === -1) {
|
|
801
|
+
issues.push(
|
|
802
|
+
issue(
|
|
803
|
+
"error",
|
|
804
|
+
"motion_contract.recipe_offset_table.none_found",
|
|
805
|
+
"No Assets/Offset/Worst-case-total table found for R12 — either it was removed (fine, update this check too) or reworded into a form this check no longer parses, which would silently stop validating it.",
|
|
806
|
+
BENCH,
|
|
807
|
+
),
|
|
808
|
+
);
|
|
809
|
+
} else {
|
|
810
|
+
const splitCells = (line: string): string[] =>
|
|
811
|
+
line
|
|
812
|
+
.trim()
|
|
813
|
+
.replace(/^\|/, "")
|
|
814
|
+
.replace(/\|$/, "")
|
|
815
|
+
.split("|")
|
|
816
|
+
.map((cell) => cell.trim());
|
|
817
|
+
const headerCells = splitCells(lines[headerRow] ?? "");
|
|
818
|
+
const col = {
|
|
819
|
+
assets: headerCells.findIndex((c) => /assets/i.test(c)),
|
|
820
|
+
gaps: headerCells.findIndex((c) => /gaps/i.test(c)),
|
|
821
|
+
gapBudget: headerCells.findIndex((c) => /budget/i.test(c)),
|
|
822
|
+
offset: headerCells.findIndex((c) => /offset/i.test(c)),
|
|
823
|
+
total: headerCells.findIndex((c) => /total/i.test(c)),
|
|
824
|
+
};
|
|
825
|
+
// Cross-checks a row's own Gaps and Gap-budget-÷-gaps cells against the same derivation
|
|
826
|
+
// the Offset/Total cells are already checked against, for the given gap count -- so a row
|
|
827
|
+
// can no longer state a wrong gap count or budget while its offset/total stay internally
|
|
828
|
+
// consistent with each other (Codex's 4th-round finding: only Assets/Offset/Total were
|
|
829
|
+
// parsed, so Gaps and Gap budget could drift freely).
|
|
830
|
+
const checkGapsAndBudget = (gaps: number, gapsCell: string, budgetCell: string, rowLabel: string, isTerminal: boolean): void => {
|
|
831
|
+
const expectedGapsCell = isTerminal ? `${gaps}+` : String(gaps);
|
|
832
|
+
if (gapsCell.replace(/\s/g, "") !== expectedGapsCell) {
|
|
833
|
+
issues.push(
|
|
834
|
+
issue(
|
|
835
|
+
"error",
|
|
836
|
+
"motion_contract.recipe_offset_table.gaps_drift",
|
|
837
|
+
`R12's offset table states "${gapsCell || "(empty)"}" gap(s) for ${rowLabel}, but that row's own asset count implies ${expectedGapsCell} gap(s).`,
|
|
838
|
+
BENCH,
|
|
839
|
+
),
|
|
840
|
+
);
|
|
841
|
+
}
|
|
842
|
+
const expectedBudgetMs = Math.floor(gapBudgetMs / gaps);
|
|
843
|
+
const budgetMatch = /(\d+)ms/.exec(budgetCell);
|
|
844
|
+
if (!budgetMatch || Number(budgetMatch[1]) !== expectedBudgetMs) {
|
|
845
|
+
issues.push(
|
|
846
|
+
issue(
|
|
847
|
+
"error",
|
|
848
|
+
"motion_contract.recipe_offset_table.gap_budget_drift",
|
|
849
|
+
`R12's offset table states a gap budget of "${budgetCell || "(unparseable)"}" for ${rowLabel}, but (motion.durationReveal − press settle) ÷ ${gaps} gap(s) computes to ${expectedBudgetMs}ms.`,
|
|
850
|
+
BENCH,
|
|
851
|
+
),
|
|
852
|
+
);
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
let sawUnachievableRow = false;
|
|
856
|
+
let recomputedFirstUnachievable: number | undefined;
|
|
857
|
+
for (let assets = 2; assets <= 6; assets++) {
|
|
858
|
+
const gaps = assets - 1;
|
|
859
|
+
const rawOffsetMs = Math.floor(gapBudgetMs / gaps);
|
|
860
|
+
if (rawOffsetMs < staggerFloorMs && recomputedFirstUnachievable === undefined) {
|
|
861
|
+
recomputedFirstUnachievable = assets;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
const parsedAssetCounts = new Set<number>();
|
|
866
|
+
let rowIndex = headerRow + 2;
|
|
867
|
+
let parsedAnyNumericRow = false;
|
|
868
|
+
for (; rowIndex < lines.length; rowIndex++) {
|
|
869
|
+
const line = lines[rowIndex];
|
|
870
|
+
if (!line || !/^\s*\|/.test(line)) break;
|
|
871
|
+
const cells = splitCells(line);
|
|
872
|
+
const assetsCell = cells[col.assets] ?? "";
|
|
873
|
+
const offsetCell = cells[col.offset] ?? "";
|
|
874
|
+
const totalCell = cells[col.total] ?? "";
|
|
875
|
+
const assetsMatch = /^(\d+)$/.exec(assetsCell);
|
|
876
|
+
if (!assetsMatch) {
|
|
877
|
+
// Terminal row (e.g. "5+"): must name the boundary this file just recomputed.
|
|
878
|
+
const boundaryMatch = /^(\d+)\+$/.exec(assetsCell);
|
|
879
|
+
if (boundaryMatch && recomputedFirstUnachievable !== undefined) {
|
|
880
|
+
sawUnachievableRow = true;
|
|
881
|
+
const statedBoundary = Number(boundaryMatch[1]);
|
|
882
|
+
if (statedBoundary !== recomputedFirstUnachievable) {
|
|
883
|
+
issues.push(
|
|
884
|
+
issue(
|
|
885
|
+
"error",
|
|
886
|
+
"motion_contract.recipe_offset_table.boundary_drift",
|
|
887
|
+
`R12's offset table names ${assetsCell} as the first unachievable-as-pure-stagger asset count, but recomputing from the current tokens (motion.durationReveal=${durationRevealMs}ms, motion.stagger=${staggerFloorMs}ms, press settle=${worstCaseSettleMs}ms) gives ${recomputedFirstUnachievable}.`,
|
|
888
|
+
BENCH,
|
|
889
|
+
),
|
|
890
|
+
);
|
|
891
|
+
}
|
|
892
|
+
checkGapsAndBudget(recomputedFirstUnachievable - 1, cells[col.gaps] ?? "", cells[col.gapBudget] ?? "", "the terminal row", true);
|
|
893
|
+
}
|
|
894
|
+
continue;
|
|
895
|
+
}
|
|
896
|
+
parsedAnyNumericRow = true;
|
|
897
|
+
const assets = Number(assetsMatch[1]);
|
|
898
|
+
parsedAssetCounts.add(assets);
|
|
899
|
+
const gaps = assets - 1;
|
|
900
|
+
checkGapsAndBudget(gaps, cells[col.gaps] ?? "", cells[col.gapBudget] ?? "", `${assets} assets`, false);
|
|
901
|
+
const offsetNums = [...offsetCell.matchAll(/(\d+)ms/g)].map((x) => Number(x[1]));
|
|
902
|
+
const totalMatch = /^(\d+)ms$/.exec(totalCell);
|
|
903
|
+
if (offsetNums.length === 0 || !totalMatch) {
|
|
904
|
+
issues.push(
|
|
905
|
+
issue(
|
|
906
|
+
"error",
|
|
907
|
+
"motion_contract.recipe_offset_table.row_unparseable",
|
|
908
|
+
`R12's offset table row for ${assets} assets has an offset or total cell this check cannot parse ("${offsetCell}" / "${totalCell}") — recompute and restate it in the "Nms" form the other rows use.`,
|
|
909
|
+
BENCH,
|
|
910
|
+
),
|
|
911
|
+
);
|
|
912
|
+
continue;
|
|
913
|
+
}
|
|
914
|
+
const rowOffsetMs = Math.max(...offsetNums);
|
|
915
|
+
const rowTotalMs = Number(totalMatch[1]);
|
|
916
|
+
if (rowOffsetMs < staggerFloorMs) {
|
|
917
|
+
issues.push(
|
|
918
|
+
issue(
|
|
919
|
+
"error",
|
|
920
|
+
"motion_contract.recipe_offset_table.below_stagger_floor",
|
|
921
|
+
`R12's offset table states ${rowOffsetMs}ms for ${assets} assets, which is below motion.stagger (${staggerFloorMs}ms) — the recipe's own stated floor.`,
|
|
922
|
+
BENCH,
|
|
923
|
+
),
|
|
924
|
+
);
|
|
925
|
+
}
|
|
926
|
+
const computedTotalMs = rowOffsetMs * gaps + worstCaseSettleMs;
|
|
927
|
+
if (computedTotalMs !== rowTotalMs) {
|
|
928
|
+
issues.push(
|
|
929
|
+
issue(
|
|
930
|
+
"error",
|
|
931
|
+
"motion_contract.recipe_offset_table.row_internally_inconsistent",
|
|
932
|
+
`R12's offset table states ${rowTotalMs}ms total for ${assets} assets, but that row's own offset (${rowOffsetMs}ms) × ${gaps} gap(s) plus the press family's worst-case settle (${worstCaseSettleMs}ms) computes to ${computedTotalMs}ms.`,
|
|
933
|
+
BENCH,
|
|
934
|
+
),
|
|
935
|
+
);
|
|
936
|
+
} else if (computedTotalMs > durationRevealMs) {
|
|
937
|
+
issues.push(
|
|
938
|
+
issue(
|
|
939
|
+
"error",
|
|
940
|
+
"motion_contract.recipe_offset_table.exceeds_window",
|
|
941
|
+
`R12's offset table row for ${assets} assets computes to ${computedTotalMs}ms worst case, which exceeds motion.durationReveal (${durationRevealMs}ms).`,
|
|
942
|
+
BENCH,
|
|
943
|
+
),
|
|
944
|
+
);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
if (!parsedAnyNumericRow) {
|
|
948
|
+
issues.push(
|
|
949
|
+
issue(
|
|
950
|
+
"error",
|
|
951
|
+
"motion_contract.recipe_offset_table.no_numeric_rows",
|
|
952
|
+
"R12's offset table has no row this check could parse as a numeric asset count — the table format may have changed under this check.",
|
|
953
|
+
BENCH,
|
|
954
|
+
),
|
|
955
|
+
);
|
|
956
|
+
}
|
|
957
|
+
if (recomputedFirstUnachievable !== undefined && !sawUnachievableRow) {
|
|
958
|
+
issues.push(
|
|
959
|
+
issue(
|
|
960
|
+
"error",
|
|
961
|
+
"motion_contract.recipe_offset_table.missing_floor_boundary",
|
|
962
|
+
`Recomputing R12's offset table from the current tokens means some asset count now drops the per-asset offset below motion.stagger (${staggerFloorMs}ms) starting at ${recomputedFirstUnachievable} assets, but the table has no terminal "N+" row naming that boundary.`,
|
|
963
|
+
BENCH,
|
|
964
|
+
),
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
// Every asset count that is actually achievable (2 up to the recomputed boundary) needs
|
|
968
|
+
// its own row -- otherwise deleting an interior row (e.g. the 3-asset row) still leaves
|
|
969
|
+
// the 2-asset row, the terminal "N+" row, and every other check green, silently dropping
|
|
970
|
+
// guidance for a supported asset count (Codex's 4th-round finding).
|
|
971
|
+
if (recomputedFirstUnachievable !== undefined) {
|
|
972
|
+
const missingCounts: number[] = [];
|
|
973
|
+
for (let assets = 2; assets < recomputedFirstUnachievable; assets++) {
|
|
974
|
+
if (!parsedAssetCounts.has(assets)) missingCounts.push(assets);
|
|
975
|
+
}
|
|
976
|
+
if (missingCounts.length > 0) {
|
|
977
|
+
issues.push(
|
|
978
|
+
issue(
|
|
979
|
+
"error",
|
|
980
|
+
"motion_contract.recipe_offset_table.missing_asset_count_row",
|
|
981
|
+
`R12's offset table has no row for asset count(s) ${missingCounts.join(", ")}, even though pure stagger is achievable there (below the recomputed ${recomputedFirstUnachievable}-asset boundary) — every achievable asset count needs its own row.`,
|
|
982
|
+
BENCH,
|
|
983
|
+
),
|
|
984
|
+
);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
// --- 4. The cinematic token stays out of the in-app doctrine and rides only web/brand routes. ---
|
|
992
|
+
if (craft !== undefined && craft.includes("durationCinematic")) {
|
|
993
|
+
issues.push(
|
|
994
|
+
issue(
|
|
995
|
+
"error",
|
|
996
|
+
"motion_contract.cinematic.in_craft_doctrine",
|
|
997
|
+
"premium-mobile-craft.md (in-app doctrine) references durationCinematic; the mobile binary keeps to the 120-360ms band.",
|
|
998
|
+
CRAFT,
|
|
999
|
+
),
|
|
1000
|
+
);
|
|
1001
|
+
}
|
|
1002
|
+
if (bench !== undefined) {
|
|
1003
|
+
for (const line of bench.split("\n")) {
|
|
1004
|
+
if (line.includes("durationCinematic") && !/web|brand|landing/i.test(line)) {
|
|
1005
|
+
issues.push(
|
|
1006
|
+
issue(
|
|
1007
|
+
"error",
|
|
1008
|
+
"motion_contract.cinematic.unrouted",
|
|
1009
|
+
`Benchmarks line mentions durationCinematic without routing it to the web/brand lane: "${line.trim().slice(0, 120)}"`,
|
|
1010
|
+
BENCH,
|
|
1011
|
+
),
|
|
1012
|
+
);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
// --- 5. Motion vocabulary must resolve to shipped names on every guidance surface. ---
|
|
1018
|
+
// The 2026-07-27 sweep retired a phantom vocabulary (motion.brief/moderate/expressive/
|
|
1019
|
+
// deliberate token names, DesignTokens.Motion.spring/stepFadeDuration-style members,
|
|
1020
|
+
// --motion-brief-style CSS variables) that the canon checks above cannot see: prose
|
|
1021
|
+
// references outside .spring(response:) forms compile nowhere, so they drifted silently.
|
|
1022
|
+
// Every DesignTokens.Motion member, backticked motion.<name> token, and --motion-<name>
|
|
1023
|
+
// CSS variable cited by reference or template markdown must exist in the shipped
|
|
1024
|
+
// sources. Files are scanned when present so partial fixture trees stay valid.
|
|
1025
|
+
const swiftMotionMemberNames = new Set<string>(swiftMotionMembers.keys());
|
|
1026
|
+
if (swiftTokens !== undefined) {
|
|
1027
|
+
const motionEnum = swiftTokens.match(/enum Motion \{([\s\S]*?)\n {2}\}/);
|
|
1028
|
+
// String members (easing/easingEmphasis/easingSpring) are valid reference targets
|
|
1029
|
+
// even though only numeric members can carry a spring response.
|
|
1030
|
+
for (const m of (motionEnum ? (motionEnum[1] ?? "") : "").matchAll(/static let (\w+) = "/g)) {
|
|
1031
|
+
swiftMotionMemberNames.add(g(m, 1));
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
// Mirrors the cssName column promote-design-tokens.ts mints (check:token-promotion
|
|
1035
|
+
// proves the promoted artifacts agree with it). Promotion is the only pipeline that
|
|
1036
|
+
// creates --motion-* names, so a reference outside this set resolves to nothing.
|
|
1037
|
+
const PROMOTED_MOTION_CSS_VARS = new Set([
|
|
1038
|
+
"--motion-duration-fast",
|
|
1039
|
+
"--motion-duration-base",
|
|
1040
|
+
"--motion-duration-slow",
|
|
1041
|
+
"--motion-duration-celebrate",
|
|
1042
|
+
"--motion-duration-reduced",
|
|
1043
|
+
"--motion-easing",
|
|
1044
|
+
"--motion-duration-reveal",
|
|
1045
|
+
"--motion-duration-cinematic",
|
|
1046
|
+
"--motion-easing-emphasis",
|
|
1047
|
+
"--motion-easing-spring",
|
|
1048
|
+
"--motion-stagger",
|
|
1049
|
+
]);
|
|
1050
|
+
// The retired card vocabulary stays hard-banned by name: these are the aliases the
|
|
1051
|
+
// 2026-07-27 sweep removed (the benchmarks table's "Retired card alias" column), and
|
|
1052
|
+
// they are the one class of lowercase word that must never read as a component name.
|
|
1053
|
+
const RETIRED_MOTION_ALIASES = new Set(["brief", "moderate", "expressive", "deliberate"]);
|
|
1054
|
+
/**
|
|
1055
|
+
* Validate one motion.<name> occurrence found inside code (inline span or fenced block).
|
|
1056
|
+
* Tokens resolve against DESIGN.md. A first segment that is a pure-lowercase word and
|
|
1057
|
+
* not a shipped token is a component namespace, not a token: motion/react exposes every
|
|
1058
|
+
* intrinsic element as motion.<tag> (motion.div, motion.article, motion.nav, ...), and
|
|
1059
|
+
* motion.dev / motion.css ride the same prefix — a shape rule covers them all without
|
|
1060
|
+
* enumerating a partial HTML tag list. Shipped lowercase tokens (easing, stagger) resolve
|
|
1061
|
+
* before the shape rule, and the retired aliases are banned before it, so token-shaped
|
|
1062
|
+
* names (any uppercase or punctuation in the first segment) and alias reintroductions
|
|
1063
|
+
* still fail. Residual: a brand-new all-lowercase phantom word reads as a component
|
|
1064
|
+
* namespace — acceptable because the shipped naming convention is camelCase and any
|
|
1065
|
+
* lowercase token added to DESIGN.md resolves before this rule.
|
|
1066
|
+
*/
|
|
1067
|
+
function checkMotionTokenName(rel: string, name: string): void {
|
|
1068
|
+
if (Object.hasOwn(motionTokens, name)) return;
|
|
1069
|
+
const firstSegment = name.split(".")[0] ?? "";
|
|
1070
|
+
if (!RETIRED_MOTION_ALIASES.has(firstSegment) && /^[a-z][a-z0-9]*$/.test(firstSegment) && !Object.hasOwn(motionTokens, firstSegment)) {
|
|
1071
|
+
return;
|
|
1072
|
+
}
|
|
1073
|
+
issues.push(issue("error", "motion_contract.vocabulary.token_unknown", `${rel} references motion.${name}, which does not exist in DESIGN.md.`, rel));
|
|
1074
|
+
}
|
|
1075
|
+
const mdFilesUnder = (relDir: string): string[] => {
|
|
1076
|
+
const fullDir = path.join(skillRoot, relDir);
|
|
1077
|
+
if (!existsSync(fullDir)) return [];
|
|
1078
|
+
const found: string[] = [];
|
|
1079
|
+
for (const entry of readdirSync(fullDir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
1080
|
+
const rel = `${relDir}/${entry.name}`;
|
|
1081
|
+
if (entry.isDirectory()) found.push(...mdFilesUnder(rel));
|
|
1082
|
+
else if (entry.name.endsWith(".md")) found.push(rel);
|
|
1083
|
+
}
|
|
1084
|
+
return found;
|
|
1085
|
+
};
|
|
1086
|
+
for (const rel of [...mdFilesUnder("knowledge"), ...mdFilesUnder("examples/workspace/business")]) {
|
|
1087
|
+
const text = readFileSync(path.join(skillRoot, rel), "utf8");
|
|
1088
|
+
if (swiftMotionMemberNames.size > 0) {
|
|
1089
|
+
for (const m of text.matchAll(/DesignTokens\.Motion\.([A-Za-z0-9_]+)/g)) {
|
|
1090
|
+
if (!swiftMotionMemberNames.has(g(m, 1))) {
|
|
1091
|
+
issues.push(
|
|
1092
|
+
issue(
|
|
1093
|
+
"error",
|
|
1094
|
+
"motion_contract.vocabulary.member_unknown",
|
|
1095
|
+
`${rel} references DesignTokens.Motion.${g(m, 1)}, which the shipped Motion enum does not define — code following it would not compile.`,
|
|
1096
|
+
rel,
|
|
1097
|
+
),
|
|
1098
|
+
);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
// The benchmarks' motion.<name> references are already resolved by check 1.
|
|
1103
|
+
if (rel !== BENCH && Object.keys(motionTokens).length > 0) {
|
|
1104
|
+
// Scan token occurrences anywhere inside code, not just span-initial ones, so
|
|
1105
|
+
// `transition={{ duration: motion.moderate }}` fails the same way `motion.moderate`
|
|
1106
|
+
// does. Fenced blocks are scanned independently (a fenced `const d = motion.moderate`
|
|
1107
|
+
// example must fail too), then removed before inline-span pairing so a fence's
|
|
1108
|
+
// backticks cannot pair with prose backticks and swallow paragraphs. The name class
|
|
1109
|
+
// captures punctuated typos whole (motion.durationReveal-extra is not its prefix).
|
|
1110
|
+
const scanCodeForTokens = (code: string): void => {
|
|
1111
|
+
for (const m of code.matchAll(/\bmotion\.([A-Za-z0-9_.-]+)/g)) {
|
|
1112
|
+
checkMotionTokenName(rel, g(m, 1));
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
for (const fence of text.matchAll(/```[^\n]*\n([\s\S]*?)```/g)) {
|
|
1116
|
+
scanCodeForTokens(g(fence, 1));
|
|
1117
|
+
}
|
|
1118
|
+
const inlineText = text.replace(/```[\s\S]*?```/g, "");
|
|
1119
|
+
for (const span of inlineText.matchAll(/`([^`]+)`/g)) {
|
|
1120
|
+
scanCodeForTokens(g(span, 1));
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
// Capture the full CSS identifier so an undefined variable that merely extends a
|
|
1124
|
+
// promoted name (--motion-duration-fast_extra) fails instead of passing as its prefix.
|
|
1125
|
+
for (const m of text.matchAll(/--motion-[A-Za-z0-9_-]+/g)) {
|
|
1126
|
+
if (!PROMOTED_MOTION_CSS_VARS.has(m[0])) {
|
|
1127
|
+
issues.push(
|
|
1128
|
+
issue(
|
|
1129
|
+
"error",
|
|
1130
|
+
"motion_contract.vocabulary.css_var_unknown",
|
|
1131
|
+
`${rel} references ${m[0]}, which promote-design-tokens.ts does not mint — the variable would be undefined at runtime.`,
|
|
1132
|
+
rel,
|
|
1133
|
+
),
|
|
1134
|
+
);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
// --- 6. The two seeded templates must prescribe the same per-moment motion tokens. ---
|
|
1140
|
+
// DESIGN.md's "Card motion spec" table and EMOTIONAL_DESIGN.md's DESIGN.md integration
|
|
1141
|
+
// row describe the SAME four card moments; when both seed a business repo they must
|
|
1142
|
+
// agree on the tokens per moment, or the generated artifacts contradict each other
|
|
1143
|
+
// (the pre-reconciliation state: 120ms vs 220ms steps, celebrate vs 360ms reveals).
|
|
1144
|
+
// Soft-skipped when either template is absent, matching check 5's fixture tolerance.
|
|
1145
|
+
const CARD_MOMENTS = ["Commitment echo", "Perceived Effort", "Variable Reward", "Intent Mirror"];
|
|
1146
|
+
const DESIGN_TPL = "examples/workspace/business/DESIGN.md";
|
|
1147
|
+
const EMOTIONAL_TPL = "examples/workspace/business/product/experience/emotional-design/EMOTIONAL_DESIGN.md";
|
|
1148
|
+
const designTplPath = path.join(skillRoot, DESIGN_TPL);
|
|
1149
|
+
const emotionalTplPath = path.join(skillRoot, EMOTIONAL_TPL);
|
|
1150
|
+
if (existsSync(designTplPath) && existsSync(emotionalTplPath)) {
|
|
1151
|
+
const tokensCited = (chunk: string): string[] => [...chunk.matchAll(/`motion\.([A-Za-z0-9_]+)`/g)].map((m) => g(m, 1)).sort();
|
|
1152
|
+
|
|
1153
|
+
// DESIGN.md: one table row per moment; the row's cells carry its tokens.
|
|
1154
|
+
const designText = readFileSync(designTplPath, "utf8");
|
|
1155
|
+
const designMoments = new Map<string, string[]>();
|
|
1156
|
+
for (const line of designText.split("\n")) {
|
|
1157
|
+
if (!line.startsWith("|")) continue;
|
|
1158
|
+
const moment = CARD_MOMENTS.find((name) => line.includes(name));
|
|
1159
|
+
if (moment) designMoments.set(moment, tokensCited(line));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
// EMOTIONAL_DESIGN.md: all four moments live in one integration-table cell; slice
|
|
1163
|
+
// the cell at each moment name and read the tokens up to the next moment.
|
|
1164
|
+
const emotionalText = readFileSync(emotionalTplPath, "utf8");
|
|
1165
|
+
const emotionalRow = emotionalText.split("\n").find((line) => line.includes("Motion tokens for each card moment"));
|
|
1166
|
+
const emotionalMoments = new Map<string, string[]>();
|
|
1167
|
+
if (emotionalRow !== undefined) {
|
|
1168
|
+
const positions = CARD_MOMENTS.map((name) => ({ name, at: emotionalRow.indexOf(name) }))
|
|
1169
|
+
.filter((entry) => entry.at >= 0)
|
|
1170
|
+
.sort((a, b) => a.at - b.at);
|
|
1171
|
+
positions.forEach((entry, index) => {
|
|
1172
|
+
const end = positions[index + 1]?.at ?? emotionalRow.length;
|
|
1173
|
+
emotionalMoments.set(entry.name, tokensCited(emotionalRow.slice(entry.at, end)));
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
for (const moment of CARD_MOMENTS) {
|
|
1178
|
+
const inDesign = designMoments.get(moment);
|
|
1179
|
+
const inEmotional = emotionalMoments.get(moment);
|
|
1180
|
+
if (inDesign === undefined || inEmotional === undefined) {
|
|
1181
|
+
issues.push(
|
|
1182
|
+
issue(
|
|
1183
|
+
"error",
|
|
1184
|
+
"motion_contract.card_moments.missing",
|
|
1185
|
+
`The "${moment}" card moment is missing from ${inDesign === undefined ? DESIGN_TPL : EMOTIONAL_TPL}'s motion mapping; both seeded templates must state every moment.`,
|
|
1186
|
+
inDesign === undefined ? DESIGN_TPL : EMOTIONAL_TPL,
|
|
1187
|
+
),
|
|
1188
|
+
);
|
|
1189
|
+
continue;
|
|
1190
|
+
}
|
|
1191
|
+
if (JSON.stringify(inDesign) !== JSON.stringify(inEmotional)) {
|
|
1192
|
+
issues.push(
|
|
1193
|
+
issue(
|
|
1194
|
+
"error",
|
|
1195
|
+
"motion_contract.card_moments.drift",
|
|
1196
|
+
`The "${moment}" card moment cites motion tokens [${inDesign.join(", ")}] in ${DESIGN_TPL} but [${inEmotional.join(", ")}] in ${EMOTIONAL_TPL} — the seeded artifacts would contradict each other.`,
|
|
1197
|
+
DESIGN_TPL,
|
|
1198
|
+
),
|
|
1199
|
+
);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
// --- 8. The motion-catalog pack's copied presets must match PremiumCraft. ---
|
|
1205
|
+
// TokenSpring.swift (native procedural scenes) and motion-tokens.ts (Remotion)
|
|
1206
|
+
// each restate the preset bounces and duration members so procedural and video
|
|
1207
|
+
// surfaces ride the same physics as withAnimation. The pack README says a
|
|
1208
|
+
// bounce change is a three-file commit; this section is that instruction as a
|
|
1209
|
+
// gate (PR #71 review) — prose alone would go stale the first time
|
|
1210
|
+
// PremiumCraft moved.
|
|
1211
|
+
const TOKEN_SPRING = "examples/workspace/business/design/motion-catalog/TokenSpring.swift";
|
|
1212
|
+
const MOTION_TOKENS_TS = "examples/workspace/business/design/motion-catalog/motion-tokens.ts";
|
|
1213
|
+
|
|
1214
|
+
const tokenSpringRaw = read(TOKEN_SPRING);
|
|
1215
|
+
if (tokenSpringRaw !== undefined && swiftPresets.size > 0) {
|
|
1216
|
+
const copies = new Map<string, { durationMember: string; bounce: number }>();
|
|
1217
|
+
const re = /static let (\w+) = TokenSpring\(duration: DesignTokens\.Motion\.(\w+), bounce: ([\d.]+)\)/g;
|
|
1218
|
+
for (const m of tokenSpringRaw.matchAll(re)) {
|
|
1219
|
+
copies.set(g(m, 1), { durationMember: g(m, 2), bounce: Number(g(m, 3)) });
|
|
1220
|
+
}
|
|
1221
|
+
if (copies.size === 0) {
|
|
1222
|
+
issues.push(
|
|
1223
|
+
issue(
|
|
1224
|
+
"error",
|
|
1225
|
+
"motion_contract.token_spring.presets_unparseable",
|
|
1226
|
+
"No TokenSpring(duration: DesignTokens.Motion.<member>, bounce: N) presets could be parsed from TokenSpring.swift.",
|
|
1227
|
+
TOKEN_SPRING,
|
|
1228
|
+
),
|
|
1229
|
+
);
|
|
1230
|
+
} else {
|
|
1231
|
+
for (const [name, preset] of swiftPresets) {
|
|
1232
|
+
const copy = copies.get(name);
|
|
1233
|
+
if (copy === undefined) {
|
|
1234
|
+
issues.push(
|
|
1235
|
+
issue(
|
|
1236
|
+
"error",
|
|
1237
|
+
"motion_contract.token_spring.preset_missing",
|
|
1238
|
+
`PremiumCraft.swift ships PremiumMotion.${name} but TokenSpring.swift has no ${name} preset — procedural scenes would silently lack it.`,
|
|
1239
|
+
TOKEN_SPRING,
|
|
1240
|
+
),
|
|
1241
|
+
);
|
|
1242
|
+
continue;
|
|
1243
|
+
}
|
|
1244
|
+
if (copy.durationMember !== preset.durationMember) {
|
|
1245
|
+
issues.push(
|
|
1246
|
+
issue(
|
|
1247
|
+
"error",
|
|
1248
|
+
"motion_contract.token_spring.duration_drift",
|
|
1249
|
+
`TokenSpring.${name} rides DesignTokens.Motion.${copy.durationMember} but PremiumMotion.${name} rides ${preset.durationMember}.`,
|
|
1250
|
+
TOKEN_SPRING,
|
|
1251
|
+
),
|
|
1252
|
+
);
|
|
1253
|
+
}
|
|
1254
|
+
if (copy.bounce !== preset.bounce) {
|
|
1255
|
+
issues.push(
|
|
1256
|
+
issue(
|
|
1257
|
+
"error",
|
|
1258
|
+
"motion_contract.token_spring.bounce_drift",
|
|
1259
|
+
`TokenSpring.${name} states bounce ${copy.bounce} but PremiumMotion.${name} ships bounce ${preset.bounce} — the procedural curve would diverge from withAnimation.`,
|
|
1260
|
+
TOKEN_SPRING,
|
|
1261
|
+
),
|
|
1262
|
+
);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
for (const name of copies.keys()) {
|
|
1266
|
+
if (!swiftPresets.has(name)) {
|
|
1267
|
+
issues.push(
|
|
1268
|
+
issue(
|
|
1269
|
+
"error",
|
|
1270
|
+
"motion_contract.token_spring.preset_unknown",
|
|
1271
|
+
`TokenSpring.swift defines a ${name} preset that PremiumCraft.swift does not ship — the pack must restate the canon, never extend it.`,
|
|
1272
|
+
TOKEN_SPRING,
|
|
1273
|
+
),
|
|
1274
|
+
);
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
const motionTokensTsRaw = read(MOTION_TOKENS_TS);
|
|
1281
|
+
if (motionTokensTsRaw !== undefined) {
|
|
1282
|
+
if (Object.keys(motionTokens).length > 0) {
|
|
1283
|
+
const msRe = /^\s*(durationFast|durationBase|durationSlow|durationCelebrate|durationReveal|durationCinematic|stagger):\s*(\d+),/gm;
|
|
1284
|
+
const seen = new Set<string>();
|
|
1285
|
+
for (const m of motionTokensTsRaw.matchAll(msRe)) {
|
|
1286
|
+
const name = g(m, 1);
|
|
1287
|
+
seen.add(name);
|
|
1288
|
+
const actual = motionTokens[name];
|
|
1289
|
+
if (actual !== undefined && actual !== `${g(m, 2)}ms`) {
|
|
1290
|
+
issues.push(
|
|
1291
|
+
issue(
|
|
1292
|
+
"error",
|
|
1293
|
+
"motion_contract.motion_tokens.token_value_drift",
|
|
1294
|
+
`motion-tokens.ts states ${name} = ${g(m, 2)}ms but DESIGN.md authors ${actual}.`,
|
|
1295
|
+
MOTION_TOKENS_TS,
|
|
1296
|
+
),
|
|
1297
|
+
);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
for (const name of ["durationFast", "durationBase", "durationSlow", "durationCelebrate", "durationReveal", "durationCinematic", "stagger"]) {
|
|
1301
|
+
if (!seen.has(name)) {
|
|
1302
|
+
issues.push(
|
|
1303
|
+
issue("error", "motion_contract.motion_tokens.token_missing", `motion-tokens.ts's Motion table has no parseable ${name} entry.`, MOTION_TOKENS_TS),
|
|
1304
|
+
);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
if (swiftPresets.size > 0) {
|
|
1309
|
+
const copies = new Map<string, { durationMember: string; bounce: number }>();
|
|
1310
|
+
const re = /(\w+): springFromPreset\(Motion\.(\w+), ([\d.]+)\)/g;
|
|
1311
|
+
for (const m of motionTokensTsRaw.matchAll(re)) {
|
|
1312
|
+
copies.set(g(m, 1), { durationMember: g(m, 2), bounce: Number(g(m, 3)) });
|
|
1313
|
+
}
|
|
1314
|
+
if (copies.size === 0) {
|
|
1315
|
+
issues.push(
|
|
1316
|
+
issue(
|
|
1317
|
+
"error",
|
|
1318
|
+
"motion_contract.motion_tokens.presets_unparseable",
|
|
1319
|
+
"No springFromPreset(Motion.<member>, N) presets could be parsed from motion-tokens.ts.",
|
|
1320
|
+
MOTION_TOKENS_TS,
|
|
1321
|
+
),
|
|
1322
|
+
);
|
|
1323
|
+
} else {
|
|
1324
|
+
for (const [name, preset] of swiftPresets) {
|
|
1325
|
+
const copy = copies.get(name);
|
|
1326
|
+
if (copy === undefined) {
|
|
1327
|
+
issues.push(
|
|
1328
|
+
issue(
|
|
1329
|
+
"error",
|
|
1330
|
+
"motion_contract.motion_tokens.preset_missing",
|
|
1331
|
+
`PremiumCraft.swift ships PremiumMotion.${name} but motion-tokens.ts has no ${name} preset — video renders would silently lack it.`,
|
|
1332
|
+
MOTION_TOKENS_TS,
|
|
1333
|
+
),
|
|
1334
|
+
);
|
|
1335
|
+
continue;
|
|
1336
|
+
}
|
|
1337
|
+
if (copy.durationMember !== preset.durationMember) {
|
|
1338
|
+
issues.push(
|
|
1339
|
+
issue(
|
|
1340
|
+
"error",
|
|
1341
|
+
"motion_contract.motion_tokens.duration_drift",
|
|
1342
|
+
`motion-tokens.ts ${name} rides Motion.${copy.durationMember} but PremiumMotion.${name} rides ${preset.durationMember}.`,
|
|
1343
|
+
MOTION_TOKENS_TS,
|
|
1344
|
+
),
|
|
1345
|
+
);
|
|
1346
|
+
}
|
|
1347
|
+
if (copy.bounce !== preset.bounce) {
|
|
1348
|
+
issues.push(
|
|
1349
|
+
issue(
|
|
1350
|
+
"error",
|
|
1351
|
+
"motion_contract.motion_tokens.bounce_drift",
|
|
1352
|
+
`motion-tokens.ts ${name} states bounce ${copy.bounce} but PremiumMotion.${name} ships bounce ${preset.bounce} — the rendered curve would diverge from the native preset.`,
|
|
1353
|
+
MOTION_TOKENS_TS,
|
|
1354
|
+
),
|
|
1355
|
+
);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
for (const name of copies.keys()) {
|
|
1359
|
+
if (!swiftPresets.has(name)) {
|
|
1360
|
+
issues.push(
|
|
1361
|
+
issue(
|
|
1362
|
+
"error",
|
|
1363
|
+
"motion_contract.motion_tokens.preset_unknown",
|
|
1364
|
+
`motion-tokens.ts defines a ${name} preset that PremiumCraft.swift does not ship — the pack must restate the canon, never extend it.`,
|
|
1365
|
+
MOTION_TOKENS_TS,
|
|
1366
|
+
),
|
|
1367
|
+
);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
reportAndExit("Motion craft contract check", issues);
|