@litfamily/litcodex 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +327 -25
- package/dist/cli.js +42 -0
- package/dist/config-migration/config-paths.js +9 -2
- package/dist/install/execute.d.ts +2 -0
- package/dist/install/execute.js +8 -3
- package/dist/install/generated-skill-payload-hashes.d.ts +617 -21
- package/dist/install/generated-skill-payload-hashes.js +617 -21
- package/dist/install/index.js +13 -2
- package/dist/install/marketplace-payload.d.ts +1 -0
- package/dist/install/marketplace-payload.js +73 -2
- package/dist/install/motion-runtime.d.ts +36 -0
- package/dist/install/motion-runtime.js +82 -0
- package/dist/install/office-runtime.d.ts +20 -0
- package/dist/install/office-runtime.js +37 -0
- package/dist/install/skill-catalog.d.ts +1 -1
- package/dist/install/skill-catalog.js +26 -2
- package/dist/install/skill-resource-hashes.d.ts +1 -1
- package/dist/install/skill-resource-hashes.js +1 -1
- package/dist/postinstall.js +14 -2
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
- package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
- package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
- package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/directive.md +90 -5
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-comprehend.md +13 -17
- package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +8 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +8 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.d.ts +18 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +95 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.d.ts +3 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.js +10 -5
- package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
- package/marketplace/plugins/litcodex/components/rules/bundled-rules/lit-humanizer.md +12 -0
- package/marketplace/plugins/litcodex/components/rules/dist/cli.js +22 -10
- package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.d.ts +23 -34
- package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.js +420 -388
- package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
- package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
- package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
- package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
- package/marketplace/plugins/litcodex/hooks/hooks.json +32 -21
- package/marketplace/plugins/litcodex/skills/autoconference/assets/report_template.md +1 -1
- package/marketplace/plugins/litcodex/skills/browser-drive/SKILL.md +4 -0
- package/marketplace/plugins/litcodex/skills/browser-drive/scripts/capability-probe.mjs +25 -2
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +14 -15
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +7 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/examples/readme-ab/README.md +13 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/adaptive-layout.md +12 -83
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +17 -65
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +44 -13
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/composition.md +14 -80
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +103 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/creative-directions.md +13 -82
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/evidence-review.md +14 -112
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/implementation-platforms.md +16 -68
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/inclusive-interface.md +12 -86
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/interaction-motion.md +13 -82
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +123 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/operating-lanes.md +12 -100
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/performance-delivery.md +12 -78
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +41 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/product-direction.md +10 -88
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +10 -12
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/redesign-playbook.md +12 -74
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +98 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/system-foundations.md +13 -100
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-language.md +11 -74
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-reconstruction.md +9 -78
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/hover-probe.mjs +28 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +423 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +261 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/route-mode.mjs +19 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/serve-static.mjs +24 -0
- package/marketplace/plugins/litcodex/skills/lit-comprehend/SKILL.md +45 -53
- package/marketplace/plugins/litcodex/skills/lit-comprehend/references/artifact-template.md +10 -44
- package/marketplace/plugins/litcodex/skills/lit-comprehend/scripts/verify-explainer.ts +0 -18
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/NOTICE +33 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +167 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/OFL.txt +94 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/provenance.json +22 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/icons.html +231 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/index.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +20 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +30 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +33 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +18 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +20 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/accessibility.md +37 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/export.md +29 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-drawio.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-excalidraw.md +14 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-mermaid.md +18 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-schema.md +28 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/korean-typography.md +34 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/motion.md +29 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/office-pptx-docx.md +42 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/output-spec.md +48 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-annotation.md +12 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-icons.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-sketchy.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-terminal.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/profiles.md +24 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/semantic-patterns.md +27 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +67 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bar.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-beeswarm.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bubble.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bump.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-catalog.json +1433 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-data-flow.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-datalake.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-db-schema.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-deployment.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-integration.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-er.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-fishbone.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-flowchart.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-gantt.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-heatmap.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level-vertical.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-drawio.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-excalidraw.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-mermaid.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-it-state.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-journey.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-kanban.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-layers.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-line.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop-terminal.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-marimekko.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-medallion.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-nested.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-org-chart.md +58 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-paved-road-animated.md +72 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-polar.md +67 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +69 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-process.md +58 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-pyramid.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +60 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-queue-animated.md +63 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-radar.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-ridgeline.md +63 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sankey.md +68 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-scatter.md +60 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence-oauth.md +66 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence.md +63 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-slopegraph.md +65 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state-lifecycle.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-story-map.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-streamgraph.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-timeline.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-treemap.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-uml-class.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-venn.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-waterfall.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/block-registry.mjs +43 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/brief-contract.mjs +94 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +15 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +14 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +219 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/doctor.mjs +28 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-model.mjs +162 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-source.mjs +147 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +148 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/export.mjs +122 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-common.mjs +85 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-drawio.mjs +48 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +234 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +104 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +70 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +178 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +137 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +80 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/office-safety.mjs +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +11 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-all.mjs +85 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-brief.mjs +16 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +27 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-motion.mjs +12 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-type.mjs +48 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +226 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +147 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/LICENSE +21 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/NOTICE +3 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +102 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/agents/openai.yaml +14 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/frontmatter_schema.md +42 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/journal_style_spec.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/markdown_quality_checklist.md +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_phrase_list.yaml +58 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_rules.md +35 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.in +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.lock +20 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/clean_markdown.py +95 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_docx.py +1046 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_pdf.py +281 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_pdf.py +130 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/docx_craft.py +95 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/edit_docx.py +297 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/embed_images.py +78 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/generate_docx_templates.py +491 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/slop_lint.py +473 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/visual_audit.py +41 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/acs.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/elsevier.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/ieee.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/nature.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/template.tex +38 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/registry.yaml +1366 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/NOTICE +160 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/SKILL.md +146 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/always-on-rule.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/always-on-rule.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/report-skeleton.md +25 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/bench/prompts.md +73 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/before.md +15 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/before.md +12 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/after.md +10 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/before.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/before.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/before.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/before.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/before.md +13 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/after.md +15 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/before.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/after.md +12 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/before.md +14 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/after.md +13 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/before.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/after.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/before.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/motion-guide.md +123 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/code-patterns.md +468 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/deliverable-channels.md +111 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-content.md +243 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-metrics.md +33 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns.md +31 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/taxonomy.md +153 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/rules.json +884 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/core.mjs +208 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/detect.mjs +83 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
- package/marketplace/plugins/litcodex/skills/lit-init/references/deep-repository-map.md +6 -10
- package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +95 -12
- package/marketplace/plugins/litcodex/skills/lit-loop/agents/openai.yaml +3 -2
- package/marketplace/plugins/litcodex/skills/lit-loop/references/full-workflow.md +10 -3
- package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +7 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +102 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/analyst.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/antithesis.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/architect.md +44 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/critic.md +42 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/openai.yaml +14 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/synthesizer.md +47 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/thesis.md +33 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-md.png +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Black.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Bold.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Light.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Medium.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Regular.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/OFL.txt +94 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/SOURCE.md +29 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/LICENSE.txt +94 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Bold.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Regular.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +71 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +141 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/consensus-protocol.md +125 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/data-display-cookbook.md +45 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/design-system-azure.md +58 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/interview-protocol.md +113 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package-lock.json +747 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package.json +13 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.in +2 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.lock +14 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/check_ooxml.py +40 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +399 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +246 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +201 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/inventory.py +95 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/learn_template.py +433 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/derive-palette.js +176 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/directive-parser.js +244 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/font-map.js +79 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-bg.js +85 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +36 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +734 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/markdown-loader.js +136 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-html.js +358 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +1885 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-ast.js +517 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/spec-validator.js +94 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +355 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +137 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/package.json +1 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +795 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/validate_pptx.py +206 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v1.md +251 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v2.md +207 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v1.schema.json +229 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v2.schema.json +144 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/template-enrollment-contract.md +379 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/bauhaus_light.css +4 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/boilerplate_professional.css +508 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +146 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +454 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +37 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +154 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +464 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +37 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +179 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +299 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +45 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +181 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +299 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +44 -0
- package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +2 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +73 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/agents/openai.yaml +15 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/NOTICE +23 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +32 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/browser-app.js +735 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/completion.mjs +9 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/compose.mjs +255 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +264 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +169 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/encode.mjs +163 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/flash.mjs +251 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/fonts.mjs +169 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gate.mjs +466 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +267 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +182 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/passes.mjs +181 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/presets.mjs +110 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/report.mjs +56 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +287 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scenes.mjs +309 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +463 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +155 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-init.js +215 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +515 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +147 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +243 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +335 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +26 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +311 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stroke.mjs +264 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/timeline.mjs +153 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +280 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/type.mjs +234 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/util.mjs +198 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt400.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt700.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt900.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt400.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt700.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt900.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt400.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt700.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt900.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/OFL.txt +93 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/SHA256SUMS +16 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/CREDITS +6 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +217 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/OFL.txt +86 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/OFL.txt +93 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +137 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +68 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/scene-author.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +175 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +103 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +119 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/type-and-timing.md +83 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package-lock.json +59 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package.json +1 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/requirements-audio.txt +1082 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/word-timing-models.json +11 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/beat-grid.py +50 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +807 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/runtime.mjs +43 -0
- package/marketplace/plugins/litcodex/skills/litresearch/SKILL.md +28 -41
- package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +8 -0
- package/marketplace/plugins/litcodex/skills/litwork/references/delivery-playbook.md +6 -0
- package/node_modules/@litcodex/lit-loop/directive.md +90 -5
- package/node_modules/@litcodex/lit-loop/directives/lit-comprehend.md +13 -17
- package/node_modules/@litcodex/lit-loop/directives/litwork.md +8 -0
- package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +8 -1
- package/node_modules/@litcodex/lit-loop/dist/motion-route.d.ts +18 -0
- package/node_modules/@litcodex/lit-loop/dist/motion-route.js +95 -0
- package/node_modules/@litcodex/lit-loop/dist/skill-renames.d.ts +3 -1
- package/node_modules/@litcodex/lit-loop/dist/skill-renames.js +10 -5
- package/node_modules/@litcodex/lit-loop/package.json +1 -1
- package/node_modules/@litcodex/lit-loop/skills/browser-drive/SKILL.md +4 -0
- package/node_modules/@litcodex/lit-loop/skills/browser-drive/scripts/capability-probe.mjs +25 -2
- package/node_modules/@litcodex/lit-loop/skills/lit-comprehend/SKILL.md +45 -53
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/NOTICE +160 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/SKILL.md +146 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/always-on-rule.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/always-on-rule.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/report-skeleton.md +25 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/bench/prompts.md +73 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/before.md +15 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/before.md +12 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/after.md +10 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/before.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/before.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/before.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/before.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/before.md +13 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/after.md +15 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/before.md +17 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/after.md +12 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/before.md +14 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/after.md +13 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/before.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/after.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/before.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/motion-guide.md +123 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/code-patterns.md +468 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/deliverable-channels.md +111 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-content.md +243 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns.md +57 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-metrics.md +33 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns.md +31 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/taxonomy.md +153 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/rules.json +884 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/core.mjs +208 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/detect.mjs +83 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-init/references/deep-repository-map.md +6 -10
- package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +95 -12
- package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +2 -0
- package/node_modules/@litcodex/lit-loop/skills/litresearch/SKILL.md +28 -41
- package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +8 -0
- package/package.json +3 -3
- package/readme-assets/ab-simple/assets/s11-baseline-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s11-baseline-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s11-lit-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s11-lit-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-baseline-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-baseline-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-lit-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-lit-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-baseline-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-baseline-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-lit-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-lit-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s5-baseline-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s5-lit-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s7-lit-diagram.webp +0 -0
- package/readme-assets/ab-simple/assets/s8-baseline-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s8-lit-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s9-lit-pages.webp +0 -0
- package/readme-assets/badge-version.svg +1 -1
- package/readme-assets/cover-motion-still.webp +0 -0
- package/readme-assets/cover-motion.webp +0 -0
- package/readme-assets/skills/autoconference.webp +0 -0
- package/readme-assets/skills/automatic-checks.webp +0 -0
- package/readme-assets/skills/autoresearch.webp +0 -0
- package/readme-assets/skills/browser-drive.webp +0 -0
- package/readme-assets/skills/coding-session-audit.webp +0 -0
- package/readme-assets/skills/debugging.webp +0 -0
- package/readme-assets/skills/deep-interview.webp +0 -0
- package/readme-assets/skills/frontend-ui-ux.webp +0 -0
- package/readme-assets/skills/lit-burnoff-file.webp +0 -0
- package/readme-assets/skills/lit-burnoff.webp +0 -0
- package/readme-assets/skills/lit-code.webp +0 -0
- package/readme-assets/skills/lit-commit.webp +0 -0
- package/readme-assets/skills/lit-comprehend.webp +0 -0
- package/readme-assets/skills/lit-crucible.webp +0 -0
- package/readme-assets/skills/lit-diagram-drawer.webp +0 -0
- package/readme-assets/skills/lit-docx.webp +0 -0
- package/readme-assets/skills/lit-fetch.webp +0 -0
- package/readme-assets/skills/lit-handoff.webp +0 -0
- package/readme-assets/skills/lit-humanizer.webp +0 -0
- package/readme-assets/skills/lit-init.webp +0 -0
- package/readme-assets/skills/lit-loop.webp +0 -0
- package/readme-assets/skills/lit-plan.webp +0 -0
- package/readme-assets/skills/lit-pptx.webp +0 -0
- package/readme-assets/skills/lit-recap.webp +0 -0
- package/readme-assets/skills/lit-scientific-visualization.webp +0 -0
- package/readme-assets/skills/lit-team.webp +0 -0
- package/readme-assets/skills/lit-typographic-motion.webp +0 -0
- package/readme-assets/skills/litcodex-contribute-bug-fix.webp +0 -0
- package/readme-assets/skills/litcodex-doctor.webp +0 -0
- package/readme-assets/skills/litcodex-report-bug.webp +0 -0
- package/readme-assets/skills/litgoal.webp +0 -0
- package/readme-assets/skills/litresearch.webp +0 -0
- package/readme-assets/skills/litwork.webp +0 -0
- package/readme-assets/skills/lsp-setup.webp +0 -0
- package/readme-assets/skills/readme-studio.webp +0 -0
- package/readme-assets/skills/refactor.webp +0 -0
- package/readme-assets/skills/review-work.webp +0 -0
- package/readme-assets/skills/start-approved-plan.webp +0 -0
- package/readme-assets/skills/structural-search.webp +0 -0
- package/readme-assets/skills/visual-qa.webp +0 -0
- package/readme-assets/skills/wikify.webp +0 -0
- package/marketplace/plugins/litcodex/skills/lit-korean/SKILL.md +0 -206
- package/marketplace/plugins/litcodex/skills/lit-korean/references/prompt-injection-handling.md +0 -23
- package/marketplace/plugins/litcodex/skills/lit-korean/references/quick-rules.md +0 -38
- package/marketplace/plugins/litcodex/skills/lit-korean/references/safety-checklist.md +0 -38
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/SKILL.md +0 -206
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/prompt-injection-handling.md +0 -23
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/quick-rules.md +0 -38
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/safety-checklist.md +0 -38
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
// Stage text QA, node side (director brief 6g). A separate Chrome replays the clock from 0; the
|
|
2
|
+
// master capture never has its styles touched. At each QA sample (every beat midpoint plus two
|
|
3
|
+
// settled frames per beat) it captures A, hides all text ink, captures B, and restores. The ink
|
|
4
|
+
// mask is where A and B differ inside a run's rects; contrast then uses the Wave 1 measurement.
|
|
5
|
+
// Copy runs are held to contrast, title-safe and reading time; decor runs only warn on contrast.
|
|
6
|
+
import { readFileSync } from "node:fs";
|
|
7
|
+
import { join } from "node:path";
|
|
8
|
+
import { measureContrast } from "./gate.mjs";
|
|
9
|
+
import { SKILL_ROOT } from "./fonts.mjs";
|
|
10
|
+
import { linearOf } from "./image.mjs";
|
|
11
|
+
import { capture, stepFrame } from "./stage.mjs";
|
|
12
|
+
import { normalizeText, stripQuoted } from "./treatment.mjs";
|
|
13
|
+
import { readingFloor } from "./type.mjs";
|
|
14
|
+
|
|
15
|
+
const QA = Object.freeze({ inkDelta: 2, minInk: 12, visibleOpacity: 0.6, settledOpacity: 0.95, settledMovePx: 2, probeFps: 10, readingTolerance: 0.1, decorShare: 0.25, presenceStd: 8 / 255, largeShare: 0.03 });
|
|
16
|
+
// Internal family names start with the product family (Archivo Condensed Black, Pretendard GOV,
|
|
17
|
+
// Galmuri9 Regular), so a face matches by normalized prefix.
|
|
18
|
+
const PRODUCT_PREFIXES = ["archivo", "pretendardgov", "vt323", "galmuri9", "meslolgsnf"];
|
|
19
|
+
export const isProductFamily = (name) => PRODUCT_PREFIXES.some((prefix) => normalizeText(name).startsWith(prefix));
|
|
20
|
+
const INTERNAL_TERM = /\b(?:path|preset|gate|beat|treatment)\b/iu;
|
|
21
|
+
const FILE_NAME = /\b[\w-]+\.(?:html|json|js|mjs|css|png|svg|jpe?g|webp|wav|mp4)\b/iu;
|
|
22
|
+
|
|
23
|
+
export const qaScript = () => readFileSync(join(SKILL_ROOT, "engine", "stage-qa.js"), "utf8");
|
|
24
|
+
|
|
25
|
+
/** QA sample frames: each beat's midpoint (for fonts and presence) and two settled frames. */
|
|
26
|
+
export function qaSamples(treatment, fps, frameCount) {
|
|
27
|
+
const clamp = (f) => Math.max(0, Math.min(frameCount - 1, f));
|
|
28
|
+
const samples = new Map();
|
|
29
|
+
treatment.beats.forEach((beat, i) => {
|
|
30
|
+
const span = beat.t1 - beat.t0;
|
|
31
|
+
samples.set(clamp(Math.round(((beat.t0 + beat.t1) / 2) * fps)), { beat: i, kind: "mid" });
|
|
32
|
+
for (const at of [0.75, 0.9]) {
|
|
33
|
+
const f = clamp(Math.round((beat.t0 + at * span) * fps));
|
|
34
|
+
if (!samples.has(f)) samples.set(f, { beat: i, kind: "settled" });
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return samples;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const bucket = (rect, width, height) => `${Math.min(2, Math.floor((((rect[0] + rect[2]) / 2) / width) * 3))}${Math.min(2, Math.floor((((rect[1] + rect[3]) / 2) / height) * 3))}`;
|
|
41
|
+
const union = (rects) => rects.reduce((b, r) => (b ? [Math.min(b[0], r[0]), Math.min(b[1], r[1]), Math.max(b[2], r[2]), Math.max(b[3], r[3])] : [...r]), null);
|
|
42
|
+
const quote = (text) => `"${text.length > 40 ? `${text.slice(0, 40)}…` : text}"`;
|
|
43
|
+
|
|
44
|
+
/** Classify a run against the treatment's copy lines (normalized). */
|
|
45
|
+
function classify(run, lines) {
|
|
46
|
+
const norm = normalizeText(run.text);
|
|
47
|
+
const carries = lines.filter((line) => line && (norm.includes(line) || (norm.length >= 2 && line.includes(norm))));
|
|
48
|
+
return { norm, carriesCopy: carries.length > 0, isCopy: !run.decor && carries.length > 0 };
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Per-pixel ink map: 1 where A and B differ by more than 2 levels in any channel. */
|
|
52
|
+
function inkMap(a, b, width, height) {
|
|
53
|
+
const map = new Uint8Array(width * height);
|
|
54
|
+
for (let i = 0, p = 0; p < map.length; i += 4, p++) if (Math.abs(a[i] - b[i]) > QA.inkDelta || Math.abs(a[i + 1] - b[i + 1]) > QA.inkDelta || Math.abs(a[i + 2] - b[i + 2]) > QA.inkDelta) map[p] = 1;
|
|
55
|
+
return map;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function inkIn(map, width, rect) {
|
|
59
|
+
let count = 0;
|
|
60
|
+
let box = null;
|
|
61
|
+
const [x0, y0, x1, y1] = [Math.max(0, Math.floor(rect[0])), Math.max(0, Math.floor(rect[1])), Math.ceil(rect[2]), Math.ceil(rect[3])];
|
|
62
|
+
for (let y = y0; y < y1; y++)
|
|
63
|
+
for (let x = x0; x < Math.min(x1, width); x++)
|
|
64
|
+
if (map[y * width + x]) {
|
|
65
|
+
count++;
|
|
66
|
+
box = box ? [Math.min(box[0], x), Math.min(box[1], y), Math.max(box[2], x + 1), Math.max(box[3], y + 1)] : [x, y, x + 1, y + 1];
|
|
67
|
+
}
|
|
68
|
+
return { count, box };
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Replay the clock in the QA session and collect everything the text rules need. Returns the raw
|
|
73
|
+
* observations; `qaRules` turns them into gate rules.
|
|
74
|
+
*/
|
|
75
|
+
export async function collectQA({ session, treatment, fps, frameCount, width, height, pool }) {
|
|
76
|
+
const samples = qaSamples(treatment, fps, frameCount);
|
|
77
|
+
const probeEvery = Math.max(1, Math.round(fps / QA.probeFps));
|
|
78
|
+
const neighbours = new Set();
|
|
79
|
+
for (const f of samples.keys()) for (const d of [-2, 2]) neighbours.add(Math.max(0, Math.min(frameCount - 1, f + d)));
|
|
80
|
+
const last = Math.max(...samples.keys(), ...neighbours);
|
|
81
|
+
const track = new Map();
|
|
82
|
+
const positions = new Map();
|
|
83
|
+
const observed = [];
|
|
84
|
+
await session.cdp.send("DOM.enable");
|
|
85
|
+
await session.cdp.send("CSS.enable");
|
|
86
|
+
for (let f = 0; f <= Math.min(frameCount - 1, last + probeEvery); f++) {
|
|
87
|
+
const sample = samples.get(f);
|
|
88
|
+
await stepFrame(session, f, Boolean(sample));
|
|
89
|
+
const probe = f % probeEvery === 0;
|
|
90
|
+
if (!sample && !probe && !neighbours.has(f)) continue;
|
|
91
|
+
const state = await session.page.evaluate((mark) => window.__litQA.runs({ mark }), Boolean(sample && sample.kind === "mid"));
|
|
92
|
+
const onScreen = (run) => run.opacity >= QA.visibleOpacity && run.rects.some((r) => r[2] > 0 && r[3] > 0 && r[0] < width && r[1] < height);
|
|
93
|
+
if (probe) {
|
|
94
|
+
for (const run of state.runs) {
|
|
95
|
+
if (!run.rects.length) continue;
|
|
96
|
+
const key = `${normalizeText(run.text)}|${bucket(union(run.rects), width, height)}`;
|
|
97
|
+
if (!track.has(key)) track.set(key, { text: run.text, decor: run.decor, frames: [] });
|
|
98
|
+
if (onScreen(run)) track.get(key).frames.push(f);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (neighbours.has(f)) positions.set(f, state.runs.map((run) => ({ text: normalizeText(run.text), box: run.rects.length ? union(run.rects) : null })));
|
|
102
|
+
if (!sample) continue;
|
|
103
|
+
const pngA = await capture(session, width, height);
|
|
104
|
+
await session.page.evaluate(() => window.__litQA.hideText());
|
|
105
|
+
const pngB = await capture(session, width, height);
|
|
106
|
+
await session.page.evaluate(() => window.__litQA.showText());
|
|
107
|
+
let fonts = null;
|
|
108
|
+
if (sample.kind === "mid") {
|
|
109
|
+
fonts = [];
|
|
110
|
+
const { root } = await session.cdp.send("DOM.getDocument", { depth: -1 });
|
|
111
|
+
const { nodeIds } = await session.cdp.send("DOM.querySelectorAll", { nodeId: root.nodeId, selector: "[data-lit-qa-run]" });
|
|
112
|
+
for (const nodeId of nodeIds) {
|
|
113
|
+
const attrs = (await session.cdp.send("DOM.getAttributes", { nodeId })).attributes;
|
|
114
|
+
const index = Number(attrs[attrs.indexOf("data-lit-qa-run") + 1]);
|
|
115
|
+
const platform = await session.cdp.send("CSS.getPlatformFontsForNode", { nodeId }).catch(() => ({ fonts: [] }));
|
|
116
|
+
fonts.push({ index, families: platform.fonts.map((font) => ({ name: font.familyName, custom: font.isCustomFont })) });
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const [a, b] = await Promise.all([pool.decode(pngA), pool.decode(pngB)]);
|
|
120
|
+
observed.push({ frame: f, ...sample, state, a: a.rgba, b: b.rgba, fonts });
|
|
121
|
+
}
|
|
122
|
+
return { samples, track, positions, observed, probeEvery };
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** Gate rules from the QA observations (director brief 6g checks and severities). */
|
|
126
|
+
export function qaRules({ treatment, width, height, fps, collected }) {
|
|
127
|
+
const lines = treatment.copy.lines.map(normalizeText);
|
|
128
|
+
const safe = [Math.round(width * 0.05), Math.round(height * 0.05), Math.round(width * 0.95), Math.round(height * 0.95)];
|
|
129
|
+
const safeText = `[${safe[0]},${safe[1]}]-[${safe[2]},${safe[3]}]`;
|
|
130
|
+
const largePx = QA.largeShare * Math.min(width, height);
|
|
131
|
+
const faults = { contrast: [], contrastWarn: [], safe: [], decor: [], decorShare: [], meta: new Set(), unlisted: new Set(), fonts: [], fontsWarn: [], state: [], canvas: new Set() };
|
|
132
|
+
const found = new Set();
|
|
133
|
+
const request = normalizeText(treatment.request);
|
|
134
|
+
const requestBare = normalizeText(stripQuoted(treatment.request));
|
|
135
|
+
const idea = normalizeText(treatment.idea);
|
|
136
|
+
let measured = 0;
|
|
137
|
+
let presence = 0;
|
|
138
|
+
let mids = 0;
|
|
139
|
+
for (const sample of collected.observed) {
|
|
140
|
+
const { state, a, b, frame } = sample;
|
|
141
|
+
const map = inkMap(a, b, width, height);
|
|
142
|
+
const runs = state.runs.map((run) => ({ ...run, ...classify(run, lines) }));
|
|
143
|
+
const textRects = runs.flatMap((run) => run.rects).concat(state.registered.map((t) => [t.x, t.y, t.x + t.w, t.y + t.h]));
|
|
144
|
+
const inside = new Uint8Array(width * height);
|
|
145
|
+
for (const r of textRects) for (let y = Math.max(0, Math.floor(r[1]) - 2); y < Math.min(height, Math.ceil(r[3]) + 2); y++) for (let x = Math.max(0, Math.floor(r[0]) - 2); x < Math.min(width, Math.ceil(r[2]) + 2); x++) inside[y * width + x] = 1;
|
|
146
|
+
let stray = 0;
|
|
147
|
+
for (let p = 0; p < map.length; p++) if (map[p] && !inside[p]) stray++;
|
|
148
|
+
if (sample.kind === "mid") {
|
|
149
|
+
mids++;
|
|
150
|
+
let sum = 0;
|
|
151
|
+
let sq = 0;
|
|
152
|
+
let n = 0;
|
|
153
|
+
for (let p = 0, i = 0; p < inside.length; p++, i += 4) {
|
|
154
|
+
if (inside[p]) continue;
|
|
155
|
+
const l = 0.2126 * linearOf(b[i]) + 0.7152 * linearOf(b[i + 1]) + 0.0722 * linearOf(b[i + 2]);
|
|
156
|
+
sum += l;
|
|
157
|
+
sq += l * l;
|
|
158
|
+
n++;
|
|
159
|
+
}
|
|
160
|
+
if (n && Math.sqrt(Math.max(0, sq / n - (sum / n) ** 2)) > QA.presenceStd) presence++;
|
|
161
|
+
}
|
|
162
|
+
const visibleText = [];
|
|
163
|
+
for (const run of runs) {
|
|
164
|
+
const ink = run.rects.reduce((acc, r) => {
|
|
165
|
+
const part = inkIn(map, width, r);
|
|
166
|
+
return { count: acc.count + part.count, box: part.box ? union([acc.box ?? part.box, part.box]) : acc.box };
|
|
167
|
+
}, { count: 0, box: null });
|
|
168
|
+
if (run.opacity < QA.visibleOpacity || ink.count < QA.minInk) continue;
|
|
169
|
+
visibleText.push({ run, ink });
|
|
170
|
+
if (run.decor && run.carriesCopy) faults.decor.push(`${quote(run.text)}@${frame}`);
|
|
171
|
+
if (!run.decor && ((request && run.norm.includes(request)) || (requestBare.length >= 6 && run.norm.includes(requestBare)) || (idea && run.norm.includes(idea)) || INTERNAL_TERM.test(run.text) || FILE_NAME.test(run.text))) faults.meta.add(quote(run.text));
|
|
172
|
+
if (run.isCopy && ink.box && (ink.box[0] < safe[0] || ink.box[1] < safe[1] || ink.box[2] > safe[2] || ink.box[3] > safe[3])) faults.safe.push(`${quote(run.text)}@${frame}`);
|
|
173
|
+
if (!run.decor && !run.isCopy) faults.unlisted.add(quote(run.text));
|
|
174
|
+
}
|
|
175
|
+
const textInk = visibleText.reduce((sum, v) => sum + v.ink.count, 0);
|
|
176
|
+
const decorInk = visibleText.filter((v) => v.run.decor).reduce((sum, v) => sum + v.ink.count, 0);
|
|
177
|
+
if (textInk > 0 && decorInk / textInk > QA.decorShare) faults.decorShare.push(`${Math.round((decorInk / textInk) * 100)}% decor at frame ${frame}`);
|
|
178
|
+
const reading = [...runs.filter((r) => r.opacity >= QA.visibleOpacity && r.rects.length).map((r) => ({ y: r.rects[0][1], x: r.rects[0][0], text: r.norm })), ...state.registered.map((t) => ({ y: t.y, x: t.x, text: normalizeText(t.content) }))].sort((p, q) => p.y - q.y || p.x - q.x);
|
|
179
|
+
const joined = reading.map((r) => r.text).join("");
|
|
180
|
+
for (const line of lines) if (joined.includes(line) || reading.some((r) => r.text === line)) found.add(line);
|
|
181
|
+
for (const entry of sample.fonts ?? []) {
|
|
182
|
+
const run = runs.find((r) => r.index === entry.index);
|
|
183
|
+
if (!run || !run.rects.length || run.opacity < QA.visibleOpacity) continue;
|
|
184
|
+
const foreign = entry.families.filter((font) => !isProductFamily(font.name));
|
|
185
|
+
if (foreign.length) (run.isCopy ? faults.fonts : faults.fontsWarn).push(`${quote(run.text)} uses ${foreign.map((font) => font.name).join(", ")}`);
|
|
186
|
+
}
|
|
187
|
+
if (state.canvases > 0) faults.canvas.add(state.registered.length ? "registered canvas text: its contrast is not measured" : "canvas text not measured (a canvas is on screen and no text was registered with LitStage.text)");
|
|
188
|
+
if (stray > 0) {
|
|
189
|
+
faults.state.push(`frame ${frame}: ${stray} px changed outside text when the text ink was hidden`);
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
const neighbours = [frame - 2, frame + 2].map((f) => collected.positions.get(f)).filter(Boolean);
|
|
193
|
+
for (const { run, ink } of visibleText) {
|
|
194
|
+
if (run.opacity < QA.settledOpacity || !ink.box) continue;
|
|
195
|
+
const moved = neighbours.some((list) => {
|
|
196
|
+
const other = list.find((o) => o.text === run.norm && o.box);
|
|
197
|
+
const own = union(run.rects);
|
|
198
|
+
return !other || Math.max(...own.map((v, i) => Math.abs(v - other.box[i]))) >= QA.settledMovePx;
|
|
199
|
+
});
|
|
200
|
+
if (moved) continue;
|
|
201
|
+
const runMask = new Uint8Array(width * height);
|
|
202
|
+
for (const r of run.rects) for (let y = Math.max(0, Math.floor(r[1])); y < Math.min(height, Math.ceil(r[3])); y++) for (let x = Math.max(0, Math.floor(r[0])); x < Math.min(width, Math.ceil(r[2])); x++) if (map[y * width + x]) runMask[y * width + x] = 255;
|
|
203
|
+
const result = measureContrast({ bbox: ink.box, capHeightPx: run.fontSizePx, fill: run.gradient ? "gradient" : "solid", fontSizePx: run.fontSizePx, weight: run.weight }, { width, height, rgba: a, mask: runMask }, { scale: 1, largeFontPx: largePx });
|
|
204
|
+
if (!result) continue;
|
|
205
|
+
measured++;
|
|
206
|
+
if (result.ratio < result.floor) (run.isCopy ? faults.contrast : faults.contrastWarn).push(`${quote(run.text)}@${frame} ${result.ratio.toFixed(2)}:1 under ${result.floor}:1`);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const readingFaults = [];
|
|
210
|
+
for (const entry of collected.track.values()) {
|
|
211
|
+
if (entry.decor || !entry.frames.length || !classify({ text: entry.text, decor: false }, lines).isCopy) continue;
|
|
212
|
+
let best = 0;
|
|
213
|
+
let runLength = 0;
|
|
214
|
+
let previous = null;
|
|
215
|
+
for (const f of entry.frames) {
|
|
216
|
+
runLength = previous !== null && f - previous === collected.probeEvery ? runLength + 1 : 1;
|
|
217
|
+
best = Math.max(best, runLength);
|
|
218
|
+
previous = f;
|
|
219
|
+
}
|
|
220
|
+
const seconds = (best * collected.probeEvery) / fps;
|
|
221
|
+
const floor = readingFloor(entry.text, "line");
|
|
222
|
+
if (seconds < floor - QA.readingTolerance - 1e-9) readingFaults.push(`${quote(entry.text)} on screen ${seconds.toFixed(1)} s, reading floor ${floor.toFixed(1)} s`);
|
|
223
|
+
}
|
|
224
|
+
const missing = treatment.copy.lines.filter((line) => !found.has(normalizeText(line)));
|
|
225
|
+
const list = (items, n = 4) => [...new Set(items)].slice(0, n).join("; ");
|
|
226
|
+
const rule = (id, name, status, detail) => ({ id, name, status, detail });
|
|
227
|
+
return {
|
|
228
|
+
missing,
|
|
229
|
+
rules: [
|
|
230
|
+
rule("QA-CONTRAST", "copy contrast (3.0 large, 4.5 body)", faults.contrast.length ? "FAIL" : faults.contrastWarn.length || measured === 0 ? "WARN" : "PASS", faults.contrast.length ? list(faults.contrast) : faults.contrastWarn.length ? `decor or unlisted text only: ${list(faults.contrastWarn)}` : measured === 0 ? "no settled run was measurable; the look must judge legibility" : `${measured} settled runs measured`),
|
|
231
|
+
rule("QA-TITLE-SAFE", "copy inside title-safe", faults.safe.length ? "FAIL" : "PASS", `${faults.safe.length ? `${list(faults.safe)} outside ` : "every copy run inside "}${safeText}`),
|
|
232
|
+
rule("QA-READING", "copy reading floor", readingFaults.length ? "FAIL" : "PASS", readingFaults.length ? list(readingFaults) : `every copy run holds its reading floor (measured at ${QA.probeFps} fps)`),
|
|
233
|
+
rule("QA-COPY", "every copy line on screen", missing.length ? "FAIL" : "PASS", missing.length ? `never on screen: ${missing.map(quote).join(", ")}` : `${lines.length} copy line(s) found`),
|
|
234
|
+
rule("QA-DECOR", "decor text carries no copy, at most 25% of text", faults.decor.length || faults.decorShare.length ? "FAIL" : "PASS", faults.decor.length ? `decor run carries copy: ${list(faults.decor)}` : faults.decorShare.length ? list(faults.decorShare) : "decor text stays decor"),
|
|
235
|
+
rule("QA-META", "no request, idea, file name or internal term on screen", faults.meta.size ? "WARN" : "PASS", faults.meta.size ? `${list([...faults.meta])}; the look must answer it` : "no meta labels"),
|
|
236
|
+
rule("QA-UNLISTED", "text on screen is copy or decor", faults.unlisted.size ? "WARN" : "PASS", faults.unlisted.size ? `neither in copy.lines nor marked decor: ${list([...faults.unlisted])}; list it as copy or mark it decor` : "every visible run is copy or decor"),
|
|
237
|
+
rule("QA-FONTS", "only the product's faces", faults.fonts.length ? "FAIL" : faults.fontsWarn.length ? "WARN" : "PASS", faults.fonts.length ? list(faults.fonts) : faults.fontsWarn.length ? list(faults.fontsWarn) : "every sampled run renders in a product face"),
|
|
238
|
+
rule("QA-CANVAS", "canvas text", faults.canvas.size ? "WARN" : "PASS", faults.canvas.size ? `${[...faults.canvas].join("; ")}; the look must answer it` : "no unmeasured canvas text"),
|
|
239
|
+
rule("QA-STATE", "stable state while text is hidden", faults.state.length ? "WARN" : "PASS", faults.state.length ? `${list(faults.state, 2)} (samples discarded)` : "no state moved"),
|
|
240
|
+
rule("QA-PRESENCE", "something besides text on screen", mids && presence * 2 >= mids ? "PASS" : "WARN", `${presence} of ${mids} beat midpoints show non-text detail`),
|
|
241
|
+
],
|
|
242
|
+
};
|
|
243
|
+
}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
// Stage path orchestration. One `stage` run validates the page, then either writes the stills set
|
|
2
|
+
// only (--stills-only) or captures every frame into the pinned encode while writing the same stills,
|
|
3
|
+
// the preview, the poster and the reduced-motion still, replays the clock in a fresh Chrome to prove
|
|
4
|
+
// determinism, and runs the stage gate. Frames are computed from the frame index, never accumulated.
|
|
5
|
+
import { createHash } from "node:crypto";
|
|
6
|
+
import { spawn } from "node:child_process";
|
|
7
|
+
import { createWriteStream, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
8
|
+
import { join } from "node:path";
|
|
9
|
+
import { EXIT, Exit, INSTALL_COMMAND, MAX_ROUNDS, STAGE_FORMATS } from "./constants.mjs";
|
|
10
|
+
import { buildPreview, encoderArgs, exportPaths, previewSize, promote, requireFfmpeg } from "./encode.mjs";
|
|
11
|
+
import { FlashDetector } from "./flash.mjs";
|
|
12
|
+
import { FONTS, verifyFonts } from "./fonts.mjs";
|
|
13
|
+
import { contactSheet, decodePng, downscale, encodePng } from "./image.mjs";
|
|
14
|
+
import { viewedFor } from "./look.mjs";
|
|
15
|
+
import { ffmpegProbe, firstLine, resolveRuntime, stageFlags } from "./runtime.mjs";
|
|
16
|
+
import { assertClean, capture, closeStage, DecodePool, fontRoutes, openStage, scanStage, stageFontFaults, stepFrame } from "./stage.mjs";
|
|
17
|
+
import { evaluateStage, loadStageData, renderStageReport, stagePassed } from "./stage-gate.mjs";
|
|
18
|
+
import { prepareTrack, soundFailed } from "./sound.mjs";
|
|
19
|
+
import { collectQA, qaRules, qaScript } from "./stage-qa.mjs";
|
|
20
|
+
import { fnv1a32 } from "./util.mjs";
|
|
21
|
+
|
|
22
|
+
const sha256 = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
23
|
+
const pad = (n, width = 2) => String(n).padStart(width, "0");
|
|
24
|
+
|
|
25
|
+
/** Every frame the stills set, the poster, the still and the determinism replay need. */
|
|
26
|
+
export function framePlan(treatment, fps, frameCount) {
|
|
27
|
+
const clampFrame = (f) => Math.max(0, Math.min(frameCount - 1, f));
|
|
28
|
+
const toFrame = (t) => clampFrame(Math.round(t * fps));
|
|
29
|
+
const beats = treatment.beats.map((beat, i) => ({ index: i, start: toFrame(beat.t0), mid: toFrame((beat.t0 + beat.t1) / 2) }));
|
|
30
|
+
const cuts = beats.slice(1).map((beat) => ({ beat: beat.index, frames: [-6, 0, 6].map((d) => clampFrame(beat.start + d)) }));
|
|
31
|
+
const sheet = Array.from({ length: 12 }, (_, i) => clampFrame(Math.round((i * (frameCount - 1)) / 11)));
|
|
32
|
+
const poster = beats[Math.floor(beats.length / 2)].mid;
|
|
33
|
+
const still = beats[beats.length - 1].mid;
|
|
34
|
+
const samples = new Set([0, frameCount - 1, ...beats.map((b) => b.start)]);
|
|
35
|
+
for (const beat of beats) if (samples.size < 8) samples.add(beat.mid);
|
|
36
|
+
for (let k = 1; samples.size < 8 && k < 64; k++) samples.add(clampFrame(Math.round((k * (frameCount - 1)) / 9)));
|
|
37
|
+
let determinism = [...samples].sort((a, b) => a - b);
|
|
38
|
+
if (determinism.length > 16) {
|
|
39
|
+
const inner = determinism.slice(1, -1);
|
|
40
|
+
determinism = [determinism[0], ...Array.from({ length: 14 }, (_, i) => inner[Math.round((i * (inner.length - 1)) / 13)]), determinism[determinism.length - 1]];
|
|
41
|
+
determinism = [...new Set(determinism)].sort((a, b) => a - b);
|
|
42
|
+
}
|
|
43
|
+
const needed = new Set([...beats.map((b) => b.mid), ...cuts.flatMap((c) => c.frames), ...sheet, poster, still]);
|
|
44
|
+
return { beats, cuts, sheet, poster, still, determinism, needed };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Thumbnail sizes for the transition strips and the contact sheet, by orientation. */
|
|
48
|
+
const thumbSizes = (width, height) => (width >= height ? { strip: [960, 540], sheet: [480, 270], columns: 4 } : { strip: [540, 960], sheet: [270, 480], columns: 6 });
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Write stills/: beat midpoints and the poster at full size (the captured PNG bytes), one
|
|
52
|
+
* transition strip per cut, the 12-frame contact sheet, and manifest.json with each file's hash.
|
|
53
|
+
*/
|
|
54
|
+
export function writeStills({ outDir, plan, frames, width, height, fps, round, kind }) {
|
|
55
|
+
const dir = join(outDir, "stills");
|
|
56
|
+
rmSync(dir, { recursive: true, force: true });
|
|
57
|
+
mkdirSync(dir, { recursive: true });
|
|
58
|
+
const sizes = thumbSizes(width, height);
|
|
59
|
+
const files = [];
|
|
60
|
+
const put = (name, bytes, entry) => {
|
|
61
|
+
writeFileSync(join(dir, name), bytes);
|
|
62
|
+
files.push({ file: name, sha256: sha256(bytes), ...entry });
|
|
63
|
+
};
|
|
64
|
+
for (const beat of plan.beats) put(`beat-${pad(beat.index + 1)}.png`, frames.get(beat.mid).png, { kind: "beat", beat: beat.index, frames: [beat.mid], t: [beat.mid / fps] });
|
|
65
|
+
for (const cut of plan.cuts) {
|
|
66
|
+
const built = contactSheet(cut.frames.map((f) => frames.get(f).strip), sizes.strip[0], sizes.strip[1], 3, cut.frames.map((f) => `${(f / fps).toFixed(2)}s f${f}`));
|
|
67
|
+
put(`cut-${pad(cut.beat)}-${pad(cut.beat + 1)}.png`, encodePng(built.width, built.height, built.pixels, 4, 6), { kind: "strip", beat: cut.beat, frames: cut.frames, t: cut.frames.map((f) => f / fps) });
|
|
68
|
+
}
|
|
69
|
+
const sheet = contactSheet(plan.sheet.map((f) => frames.get(f).sheet), sizes.sheet[0], sizes.sheet[1], sizes.columns, plan.sheet.map((f) => `${(f / fps).toFixed(2)}s f${f}`));
|
|
70
|
+
put("contact-sheet.png", encodePng(sheet.width, sheet.height, sheet.pixels, 4, 6), { kind: "sheet", frames: plan.sheet, t: plan.sheet.map((f) => f / fps) });
|
|
71
|
+
put("poster.png", frames.get(plan.poster).png, { kind: "poster", frames: [plan.poster], t: [plan.poster / fps] });
|
|
72
|
+
const manifest = { schema: 1, kind, round, width, height, fps, files };
|
|
73
|
+
const text = `${JSON.stringify(manifest, null, 2)}\n`;
|
|
74
|
+
writeFileSync(join(dir, "manifest.json"), text);
|
|
75
|
+
return { dir, files, manifestSha256: sha256(text) };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** A kept frame for the stills set: the full-size PNG plus its strip and contact-sheet thumbnails. */
|
|
79
|
+
export function stillsEntry(png, rgba, width, height) {
|
|
80
|
+
const sizes = thumbSizes(width, height);
|
|
81
|
+
return { png, strip: downscale(rgba, width, height, sizes.strip[0], sizes.strip[1]), sheet: downscale(rgba, width, height, sizes.sheet[0], sizes.sheet[1]) };
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function keepFrame(frames, plan, f, png, rgba, width, height) {
|
|
85
|
+
if (!plan.needed.has(f) || frames.has(f)) return;
|
|
86
|
+
frames.set(f, stillsEntry(png, rgba, width, height));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function percentile(sorted, p) {
|
|
90
|
+
return sorted.length ? Math.round(sorted[Math.min(sorted.length - 1, Math.floor(p * sorted.length))] * 10) / 10 : null;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Validate the page's declared contract against the treatment and the format. */
|
|
94
|
+
function checkContract(contract, treatment, format) {
|
|
95
|
+
if (!contract.defined) throw new Exit(EXIT.STAGE_CONTRACT_ERROR, "STAGE_CONTRACT_ERROR: the page never called LitStage.define({width, height, fps, duration, render}) (or set window.litStage) while it loaded");
|
|
96
|
+
if (contract.width !== format.width || contract.height !== format.height) throw new Exit(EXIT.STAGE_CONTRACT_ERROR, `STAGE_CONTRACT_ERROR: the page declares ${contract.width}x${contract.height}; format ${treatment.format} is exactly ${format.width}x${format.height}`);
|
|
97
|
+
const fps = contract.fps ?? 60;
|
|
98
|
+
if (fps !== 60 && !(fps === 30 && treatment.fps === 30)) throw new Exit(EXIT.STAGE_CONTRACT_ERROR, `STAGE_CONTRACT_ERROR: fps ${fps}; the stage renders 60 fps, or 30 when the treatment sets "fps": 30`);
|
|
99
|
+
if (typeof contract.duration !== "number" || !(contract.duration > 0) || contract.duration > 90.5) throw new Exit(EXIT.STAGE_CONTRACT_ERROR, "STAGE_CONTRACT_ERROR: duration must be the film's length in seconds (at most 90)");
|
|
100
|
+
return { fps, frameCount: Math.round(contract.duration * fps) };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function progress(outDir, state) {
|
|
104
|
+
writeFileSync(join(outDir, ".run", "progress.json"), `${JSON.stringify({ ...state, at: new Date().toISOString() })}\n`);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** Step 0..last sequentially, capturing only `wanted` frames; used by stills-only and the replays. */
|
|
108
|
+
async function replay(session, { wanted, last, width, height, pool, onFrame, settleAll = true, outDir, phase }) {
|
|
109
|
+
for (let f = 0; f <= last; f++) {
|
|
110
|
+
const want = wanted.has(f);
|
|
111
|
+
const state = await stepFrame(session, f, settleAll || want);
|
|
112
|
+
if (state.violations || session.record.blocked.length || session.record.rejected.length) await assertClean(session);
|
|
113
|
+
if (want) {
|
|
114
|
+
const png = await capture(session, width, height);
|
|
115
|
+
const decoded = await pool.decode(png);
|
|
116
|
+
if (decoded.width !== width || decoded.height !== height) throw new Exit(EXIT.STAGE_CONTRACT_ERROR, `STAGE_CONTRACT_ERROR: captured ${decoded.width}x${decoded.height}, the format is ${width}x${height}`);
|
|
117
|
+
await onFrame(f, png, decoded);
|
|
118
|
+
}
|
|
119
|
+
if (outDir && f % 60 === 0) progress(outDir, { phase, frame: f, total: last + 1 });
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The stage subcommand. Returns an exit code; throws Exit for blocked and contract states.
|
|
125
|
+
* `treatment` is already validated for path: stage.
|
|
126
|
+
*/
|
|
127
|
+
export async function runStage({ outDir, treatment, round, stillsOnly, log = () => {} }) {
|
|
128
|
+
const started = Date.now();
|
|
129
|
+
if (!Number.isInteger(round) || round < 1 || round > MAX_ROUNDS) throw new Exit(EXIT.USAGE, `--round must be 1..${MAX_ROUNDS}`);
|
|
130
|
+
const format = STAGE_FORMATS[treatment.format];
|
|
131
|
+
const scan = scanStage(join(outDir, "stage"));
|
|
132
|
+
const runtime = resolveRuntime();
|
|
133
|
+
if (!runtime.deps.ready) throw new Exit(EXIT.BLOCKED_DEPS_NOT_PREWARMED, `BLOCKED_DEPS_NOT_PREWARMED: ${runtime.deps.missing.join("; ")}. Run \`${INSTALL_COMMAND}\` outside the sandboxed session, then rerun.`);
|
|
134
|
+
stageFontFaults(verifyFonts(FONTS.map((f) => f.key), runtime.dir));
|
|
135
|
+
const fonts = fontRoutes(runtime.dir);
|
|
136
|
+
const hasFfmpeg = ffmpegProbe().ok;
|
|
137
|
+
const seed = treatment.seed ?? fnv1a32(`${treatment.request}\u0000${treatment.idea}`);
|
|
138
|
+
const fpsHint = treatment.fps === 30 ? 30 : 60;
|
|
139
|
+
const { width, height } = format;
|
|
140
|
+
const pool = new DecodePool();
|
|
141
|
+
const runDir = join(outDir, ".run");
|
|
142
|
+
mkdirSync(runDir, { recursive: true });
|
|
143
|
+
for (const name of ["manifest.json", "gate-report.txt", "render.jsonl", ...Object.values(exportPaths(outDir, {})), "preview.gif"]) rmSync(join(outDir, name), { force: true });
|
|
144
|
+
rmSync(join(outDir, "withheld"), { recursive: true, force: true });
|
|
145
|
+
let session = null;
|
|
146
|
+
try {
|
|
147
|
+
session = await openStage({ runtime, outDir, scan, fonts, width, height, fps: fpsHint, seed });
|
|
148
|
+
const { fps, frameCount } = checkContract(session.contract, treatment, format);
|
|
149
|
+
const plan = framePlan(treatment, fps, frameCount);
|
|
150
|
+
const kept = new Map();
|
|
151
|
+
if (stillsOnly || !hasFfmpeg) {
|
|
152
|
+
await replay(session, { wanted: plan.needed, last: Math.max(...plan.needed), width, height, pool, settleAll: false, outDir, phase: "stills", onFrame: (f, png, d) => keepFrame(kept, plan, f, png, d.rgba, width, height) });
|
|
153
|
+
await assertClean(session);
|
|
154
|
+
const stills = writeStills({ outDir, plan, frames: kept, width, height, fps, round, kind: "stills-only" });
|
|
155
|
+
const track = prepareTrack({ outDir, treatment, frameCount, fps, cuts: treatment.beats.slice(1).map((b) => b.t0) });
|
|
156
|
+
for (const note of track.notes) log(note);
|
|
157
|
+
writeFileSync(join(runDir, "stills-run.json"), `${JSON.stringify({ round, manifestSha256: stills.manifestSha256, fps, frameCount, seconds: (Date.now() - started) / 1000 }, null, 2)}\n`);
|
|
158
|
+
log(`stills: ${stills.files.map((f) => join(stills.dir, f.file)).join(" ")}`);
|
|
159
|
+
log(`stills manifest: ${join(stills.dir, "manifest.json")} (sha256 ${stills.manifestSha256})`);
|
|
160
|
+
if (!hasFfmpeg && !stillsOnly) requireFfmpeg();
|
|
161
|
+
log("stills-only: view every still, then record the look round; this is not a finished film.");
|
|
162
|
+
return EXIT.OK;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const ffmpeg = requireFfmpeg();
|
|
166
|
+
const staging = join(runDir, "film.mp4");
|
|
167
|
+
const previewDir = join(runDir, "preview-src");
|
|
168
|
+
rmSync(previewDir, { recursive: true, force: true });
|
|
169
|
+
mkdirSync(previewDir, { recursive: true });
|
|
170
|
+
const detDir = join(runDir, "det-master");
|
|
171
|
+
rmSync(detDir, { recursive: true, force: true });
|
|
172
|
+
mkdirSync(detDir, { recursive: true });
|
|
173
|
+
const previewDims = previewSize([width, height], 960);
|
|
174
|
+
const previewEvery = Math.max(1, Math.round(fps / 30));
|
|
175
|
+
const track = prepareTrack({ outDir, treatment, frameCount, fps, cuts: treatment.beats.slice(1).map((b) => b.t0) });
|
|
176
|
+
const encoder = spawn(ffmpeg.path, encoderArgs([width, height], fps, staging, track.wav), { stdio: ["pipe", "ignore", "pipe"] });
|
|
177
|
+
let encoderError = "";
|
|
178
|
+
encoder.stderr.on("data", (chunk) => {
|
|
179
|
+
encoderError += chunk;
|
|
180
|
+
});
|
|
181
|
+
const encoded = new Promise((done) => encoder.on("close", done));
|
|
182
|
+
const frameLog = createWriteStream(join(runDir, "render.jsonl"));
|
|
183
|
+
const detector = new FlashDetector(width, height);
|
|
184
|
+
const detSet = new Set(plan.determinism);
|
|
185
|
+
const masterSha = new Map();
|
|
186
|
+
const times = [];
|
|
187
|
+
let previewCount = 0;
|
|
188
|
+
const inflight = [];
|
|
189
|
+
const consume = async ({ f, png, d }) => {
|
|
190
|
+
if (d.width !== width || d.height !== height) throw new Exit(EXIT.STAGE_CONTRACT_ERROR, `STAGE_CONTRACT_ERROR: captured ${d.width}x${d.height}, the format is ${width}x${height}`);
|
|
191
|
+
const flash = detector.ingestGrid(d.grid);
|
|
192
|
+
frameLog.write(`${JSON.stringify({ frame: f, pass: null, rgbaSha256: d.sha, flash, p995: Math.round(d.p995 * 1e4) / 1e4 })}\n`);
|
|
193
|
+
masterSha.set(f, d.sha);
|
|
194
|
+
if (detSet.has(f)) writeFileSync(join(detDir, `${f}.png`), png);
|
|
195
|
+
keepFrame(kept, plan, f, png, d.rgba, width, height);
|
|
196
|
+
if (d.previewPng) writeFileSync(join(previewDir, `${pad(previewCount++, 5)}.png`), d.previewPng);
|
|
197
|
+
if (!encoder.stdin.write(Buffer.from(d.rgba.buffer, d.rgba.byteOffset, d.rgba.byteLength))) await new Promise((done) => encoder.stdin.once("drain", done));
|
|
198
|
+
};
|
|
199
|
+
for (let f = 0; f < frameCount; f++) {
|
|
200
|
+
const t0 = performance.now();
|
|
201
|
+
const state = await stepFrame(session, f, true);
|
|
202
|
+
if (state.violations || session.record.blocked.length || session.record.rejected.length) await assertClean(session);
|
|
203
|
+
const png = await capture(session, width, height);
|
|
204
|
+
times.push(performance.now() - t0);
|
|
205
|
+
inflight.push(pool.decode(png, { analyze: true, preview: f % previewEvery === 0 ? previewDims : null }).then((d) => ({ f, png, d })));
|
|
206
|
+
while (inflight.length > 6) await consume(await inflight.shift());
|
|
207
|
+
if (f % 60 === 0) progress(outDir, { phase: "master", frame: f, total: frameCount });
|
|
208
|
+
}
|
|
209
|
+
while (inflight.length) await consume(await inflight.shift());
|
|
210
|
+
encoder.stdin.end();
|
|
211
|
+
const code = await encoded;
|
|
212
|
+
await new Promise((done) => frameLog.end(done));
|
|
213
|
+
if (code !== 0) throw new Error(`ffmpeg encode failed: ${firstLine(encoderError || `exit ${code}`)}`);
|
|
214
|
+
const masterSec = (Date.now() - started) / 1000;
|
|
215
|
+
const report = await assertClean(session);
|
|
216
|
+
const record = session.record;
|
|
217
|
+
await closeStage(session);
|
|
218
|
+
session = null;
|
|
219
|
+
|
|
220
|
+
const stills = writeStills({ outDir, plan, frames: kept, width, height, fps, round, kind: "render" });
|
|
221
|
+
writeFileSync(join(runDir, "poster.png"), kept.get(plan.poster).png);
|
|
222
|
+
writeFileSync(join(runDir, "reduced-motion.png"), kept.get(plan.still).png);
|
|
223
|
+
|
|
224
|
+
progress(outDir, { phase: "determinism and text QA", frame: 0, total: frameCount });
|
|
225
|
+
const determinism = { frames: [], region: null };
|
|
226
|
+
const replayDeterminism = async () => {
|
|
227
|
+
const replaySession = await openStage({ runtime, outDir, scan, fonts, width, height, fps: fpsHint, seed });
|
|
228
|
+
try {
|
|
229
|
+
await replay(replaySession, {
|
|
230
|
+
wanted: detSet,
|
|
231
|
+
last: Math.max(...plan.determinism),
|
|
232
|
+
width,
|
|
233
|
+
height,
|
|
234
|
+
pool,
|
|
235
|
+
onFrame: (f, png, d) => {
|
|
236
|
+
determinism.frames.push({ frame: f, master: masterSha.get(f), replay: d.sha });
|
|
237
|
+
if (!determinism.region && masterSha.get(f) !== d.sha) determinism.region = diffRegion(decodePng(readFileSync(join(detDir, `${f}.png`))).pixels, d.rgba, width, height);
|
|
238
|
+
},
|
|
239
|
+
});
|
|
240
|
+
} finally {
|
|
241
|
+
await closeStage(replaySession);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
const replayQA = async () => {
|
|
245
|
+
const qaSession = await openStage({ runtime, outDir, scan, fonts, width, height, fps: fpsHint, seed, extraInit: qaScript() });
|
|
246
|
+
try {
|
|
247
|
+
const collected = await collectQA({ session: qaSession, treatment, fps, frameCount, width, height, pool });
|
|
248
|
+
return qaRules({ treatment, width, height, fps, collected });
|
|
249
|
+
} finally {
|
|
250
|
+
await closeStage(qaSession);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
const replayStarted = Date.now();
|
|
254
|
+
const [, qa] = await Promise.all([replayDeterminism(), replayQA()]);
|
|
255
|
+
const replaySec = (Date.now() - replayStarted) / 1000;
|
|
256
|
+
writeFileSync(join(runDir, "qa.json"), `${JSON.stringify(qa, null, 2)}\n`);
|
|
257
|
+
writeFileSync(join(runDir, "determinism.json"), `${JSON.stringify(determinism, null, 2)}\n`);
|
|
258
|
+
|
|
259
|
+
const pv = await buildPreview({ runDir, ffmpeg, previewCount, frame: [width, height], minGlyph: 28 });
|
|
260
|
+
const previewLog = createWriteStream(join(runDir, "render.jsonl"), { flags: "a" });
|
|
261
|
+
for (const r of pv.records) previewLog.write(`${JSON.stringify({ previewFrame: r.f, rung: `${pv.rung.width}x${pv.rung.height}@${pv.rung.fps}`, pass: null, flash: { g: r.g, r: r.r, step: r.step } })}\n`);
|
|
262
|
+
await new Promise((done) => previewLog.end(done));
|
|
263
|
+
writeFileSync(join(runDir, "exports.json"), `${JSON.stringify({ poster: { frame: plan.poster }, still: { frame: plan.still }, preview: { fps: pv.rung.fps, width: pv.rung.width, height: pv.rung.height, bytes: pv.bytes, encoder: pv.encoder } }, null, 2)}\n`);
|
|
264
|
+
rmSync(detDir, { recursive: true, force: true });
|
|
265
|
+
|
|
266
|
+
const sorted = [...times].sort((a, b) => a - b);
|
|
267
|
+
const manifest = {
|
|
268
|
+
schemaVersion: 1,
|
|
269
|
+
path: "stage",
|
|
270
|
+
format: treatment.format,
|
|
271
|
+
width,
|
|
272
|
+
height,
|
|
273
|
+
fps,
|
|
274
|
+
frameCount,
|
|
275
|
+
durationSec: Math.round((frameCount / fps) * 1e6) / 1e6,
|
|
276
|
+
targetDurationSec: treatment.durationSec,
|
|
277
|
+
round,
|
|
278
|
+
seed,
|
|
279
|
+
chromeFlags: stageFlags(width, height),
|
|
280
|
+
renderer: report.webgl?.renderer ?? null,
|
|
281
|
+
webgl: report.webgl,
|
|
282
|
+
previewEncoder: pv.encoder,
|
|
283
|
+
stillsManifestSha256: stills.manifestSha256,
|
|
284
|
+
determinismFrames: plan.determinism,
|
|
285
|
+
sound: { mode: track.mode, notes: track.notes },
|
|
286
|
+
pageErrors: [...record.pageErrors, ...report.errors].slice(0, 10),
|
|
287
|
+
missingFiles: [...new Set(record.missing)],
|
|
288
|
+
timing: { p50Ms: percentile(sorted, 0.5), p95Ms: percentile(sorted, 0.95), captureSec: Math.round(sorted.reduce((a, b) => a + b, 0) / 100) / 10, masterSec: Math.round(masterSec * 10) / 10, replaysSec: Math.round(replaySec * 10) / 10, totalSec: Math.round((Date.now() - started) / 100) / 10 },
|
|
289
|
+
generatedAt: new Date().toISOString(),
|
|
290
|
+
};
|
|
291
|
+
writeFileSync(join(outDir, "manifest.json"), `${JSON.stringify(manifest, null, 2)}\n`);
|
|
292
|
+
const notes = [...track.notes, `preview rung: ${pv.rung.width}x${pv.rung.height} @ ${pv.rung.fps} fps, ${pv.bytes} B, encoder ${pv.encoder}`, `stills manifest sha256 ${stills.manifestSha256}`];
|
|
293
|
+
const outcome = gateStage(outDir, { round, notes });
|
|
294
|
+
log(`report: ${join(outDir, "gate-report.txt")}`);
|
|
295
|
+
log(`stills manifest: ${join(stills.dir, "manifest.json")} (sha256 ${stills.manifestSha256})`);
|
|
296
|
+
const badFrame = determinism.frames.find((d) => d.master !== d.replay);
|
|
297
|
+
if (badFrame) throw new Exit(EXIT.STAGE_NONDETERMINISTIC, `STAGE_NONDETERMINISTIC: frame ${badFrame.frame} differs between the master and a fresh sequential replay${determinism.region ? ` (first differing region x ${determinism.region[0]}-${determinism.region[2]}, y ${determinism.region[1]}-${determinism.region[3]})` : ""}; something the clock does not cover (performance.timeOrigin, crypto randomness, an unseeded source) reaches the pixels. Report: ${join(outDir, "gate-report.txt")}`);
|
|
298
|
+
if (qa.missing.length) throw new Exit(EXIT.STAGE_CONTRACT_ERROR, `STAGE_CONTRACT_ERROR: copy line${qa.missing.length > 1 ? "s" : ""} never on screen: ${qa.missing.map((line) => `"${line}"`).join(", ")}; every copy line must appear in the film (as page text or registered canvas text). Report: ${join(outDir, "gate-report.txt")}`);
|
|
299
|
+
if (outcome.soundInvalid) throw new Exit(EXIT.SOUND_INVALID, `SOUND_INVALID: ${outcome.rules.filter((r) => r.sound && r.status === "FAIL").map((r) => `${r.id} ${r.detail}`).join("; ")}. Report: ${join(outDir, "gate-report.txt")}`);
|
|
300
|
+
if (outcome.passed) {
|
|
301
|
+
log(`GATE PASS: ${join(outDir, "film.mp4")}`);
|
|
302
|
+
return EXIT.OK;
|
|
303
|
+
}
|
|
304
|
+
const failed = outcome.rules.filter((r) => r.status === "FAIL").map((r) => r.id).join(", ");
|
|
305
|
+
throw new Exit(EXIT.GATE_FAIL_QA, `GATE_FAIL_QA: ${failed}.${outcome.withheld ? ` MO-C-03 flash FAIL: the exports are withheld in ${join(outDir, "withheld")} as diagnostics, not deliverables.` : ""}${round >= MAX_ROUNDS ? " Round 3 of 3 reached: deliver with the failure stated." : ` Fix the cause and rerun with --round ${round + 1}; never shorten the film or drop a beat to pass.`}`);
|
|
306
|
+
} finally {
|
|
307
|
+
if (session) await closeStage(session);
|
|
308
|
+
await pool.close();
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/** Bounding box [x0, y0, x1, y1] of the pixels that differ between two RGBA frames. */
|
|
313
|
+
export function diffRegion(a, b, width, height) {
|
|
314
|
+
let box = null;
|
|
315
|
+
for (let y = 0; y < height; y++)
|
|
316
|
+
for (let x = 0; x < width; x++) {
|
|
317
|
+
const i = (y * width + x) * 4;
|
|
318
|
+
if (a[i] !== b[i] || a[i + 1] !== b[i + 1] || a[i + 2] !== b[i + 2] || a[i + 3] !== b[i + 3]) box = box ? [Math.min(box[0], x), Math.min(box[1], y), Math.max(box[2], x), Math.max(box[3], y)] : [x, y, x, y];
|
|
319
|
+
}
|
|
320
|
+
return box;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/** Evaluate the stage gate, promote or withhold the exports, and write gate-report.txt. */
|
|
324
|
+
export function gateStage(outDir, { round, notes = [], framesViewed = 0 }) {
|
|
325
|
+
const data = loadStageData(outDir);
|
|
326
|
+
const rules = evaluateStage(data);
|
|
327
|
+
const withheld = promote(outDir, data.manifest, rules);
|
|
328
|
+
const names = exportPaths(outDir, data.manifest);
|
|
329
|
+
const where = (name) => join(withheld ? join(outDir, "withheld") : outDir, name);
|
|
330
|
+
const viewed = viewedFor(outDir, data.manifest.stillsManifestSha256) ?? framesViewed;
|
|
331
|
+
writeFileSync(join(outDir, "gate-report.txt"), renderStageReport({ manifest: data.manifest, rules, outputs: { mp4: where(names.mp4), preview: where(names.preview), poster: where(names.poster), still: where(names.still) }, round: round ?? data.manifest.round ?? 1, framesViewed: viewed, withheld, notes }));
|
|
332
|
+
const log = join(outDir, ".run", "render.jsonl");
|
|
333
|
+
if (existsSync(log)) renameSync(log, join(outDir, "render.jsonl"));
|
|
334
|
+
return { rules, withheld, passed: stagePassed(rules), soundInvalid: soundFailed(rules) };
|
|
335
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Stage frame worker: decodes one captured PNG to RGBA, hashes the decoded bytes (never the PNG),
|
|
2
|
+
// and computes the flash-audit cell grid and the near-black percentile, so the main thread only
|
|
3
|
+
// orders frames and feeds ffmpeg while the next frame is being stepped.
|
|
4
|
+
import { parentPort } from "node:worker_threads";
|
|
5
|
+
import { cellGrid, gridFor } from "./flash.mjs";
|
|
6
|
+
import { decodePng, downscale, encodePng, luminancePercentile, rgbaSha256 } from "./image.mjs";
|
|
7
|
+
import { NEAR_BLACK } from "./constants.mjs";
|
|
8
|
+
|
|
9
|
+
parentPort.on("message", ({ id, png, analyze, preview }) => {
|
|
10
|
+
try {
|
|
11
|
+
const image = decodePng(Buffer.from(png.buffer, png.byteOffset, png.byteLength));
|
|
12
|
+
const rgba = image.pixels;
|
|
13
|
+
const out = { id, width: image.width, height: image.height, sha: rgbaSha256(rgba) };
|
|
14
|
+
if (analyze) {
|
|
15
|
+
out.grid = cellGrid(rgba, image.width, image.height, gridFor(image.width, image.height));
|
|
16
|
+
out.p995 = luminancePercentile(rgba, NEAR_BLACK.percentile);
|
|
17
|
+
}
|
|
18
|
+
if (preview) out.previewPng = encodePng(preview[0], preview[1], downscale(rgba, image.width, image.height, preview[0], preview[1]), 4, 3);
|
|
19
|
+
out.rgba = rgba;
|
|
20
|
+
const transfer = [rgba.buffer];
|
|
21
|
+
if (out.grid) transfer.push(out.grid.lum.buffer, out.grid.redValue.buffer, out.grid.saturated.buffer);
|
|
22
|
+
parentPort.postMessage(out, transfer);
|
|
23
|
+
} catch (error) {
|
|
24
|
+
parentPort.postMessage({ id, error: String(error?.stack ?? error) });
|
|
25
|
+
}
|
|
26
|
+
});
|