@litfamily/litcodex 1.0.6 → 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 -23
- 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,267 @@
|
|
|
1
|
+
// Frame-byte utilities for the Node side: sha256 over exact RGBA bytes (MO-C-09), a dependency-free
|
|
2
|
+
// PNG encoder, area downscaling, per-pixel luminance percentiles, and contact-sheet assembly.
|
|
3
|
+
import { createHash } from "node:crypto";
|
|
4
|
+
import { deflateSync, inflateSync } from "node:zlib";
|
|
5
|
+
|
|
6
|
+
export const rgbaSha256 = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
7
|
+
|
|
8
|
+
const CRC = new Uint32Array(256).map((_, n) => {
|
|
9
|
+
let c = n;
|
|
10
|
+
for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;
|
|
11
|
+
return c >>> 0;
|
|
12
|
+
});
|
|
13
|
+
function crc32(buffers) {
|
|
14
|
+
let c = 0xffffffff;
|
|
15
|
+
for (const buffer of buffers) for (let i = 0; i < buffer.length; i++) c = CRC[(c ^ buffer[i]) & 255] ^ (c >>> 8);
|
|
16
|
+
return (c ^ 0xffffffff) >>> 0;
|
|
17
|
+
}
|
|
18
|
+
function chunk(type, data) {
|
|
19
|
+
const head = Buffer.alloc(8);
|
|
20
|
+
head.writeUInt32BE(data.length, 0);
|
|
21
|
+
head.write(type, 4, "ascii");
|
|
22
|
+
const tail = Buffer.alloc(4);
|
|
23
|
+
tail.writeUInt32BE(crc32([head.subarray(4), data]), 0);
|
|
24
|
+
return Buffer.concat([head, data, tail]);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Encode 8-bit pixels as PNG. `channels` is 4 (RGBA input written as RGB), 3 (RGB) or 1 (grey).
|
|
29
|
+
* Rows use the per-row filter with the smallest absolute sum, which keeps clean frames small.
|
|
30
|
+
*/
|
|
31
|
+
export function encodePng(width, height, pixels, channels = 4, level = 9) {
|
|
32
|
+
const out = channels === 1 ? 1 : 3;
|
|
33
|
+
const stride = width * out;
|
|
34
|
+
const raw = Buffer.alloc((stride + 1) * height);
|
|
35
|
+
const row = Buffer.alloc(stride);
|
|
36
|
+
const prev = Buffer.alloc(stride);
|
|
37
|
+
const candidates = [0, 1, 2, 3, 4].map(() => Buffer.alloc(stride));
|
|
38
|
+
for (let y = 0; y < height; y++) {
|
|
39
|
+
for (let x = 0; x < width; x++) {
|
|
40
|
+
const src = (y * width + x) * channels;
|
|
41
|
+
if (out === 1) row[x] = pixels[src];
|
|
42
|
+
else {
|
|
43
|
+
row[x * 3] = pixels[src];
|
|
44
|
+
row[x * 3 + 1] = pixels[src + 1];
|
|
45
|
+
row[x * 3 + 2] = pixels[src + 2];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
let best = 0;
|
|
49
|
+
let bestSum = Number.POSITIVE_INFINITY;
|
|
50
|
+
for (let type = 0; type < 5; type++) {
|
|
51
|
+
const line = candidates[type];
|
|
52
|
+
let sum = 0;
|
|
53
|
+
for (let i = 0; i < stride; i++) {
|
|
54
|
+
const a = i >= out ? row[i - out] : 0;
|
|
55
|
+
const b = prev[i];
|
|
56
|
+
const c = i >= out ? prev[i - out] : 0;
|
|
57
|
+
let predicted = 0;
|
|
58
|
+
if (type === 1) predicted = a;
|
|
59
|
+
else if (type === 2) predicted = b;
|
|
60
|
+
else if (type === 3) predicted = (a + b) >> 1;
|
|
61
|
+
else if (type === 4) {
|
|
62
|
+
const p = a + b - c;
|
|
63
|
+
const pa = Math.abs(p - a);
|
|
64
|
+
const pb = Math.abs(p - b);
|
|
65
|
+
const pc = Math.abs(p - c);
|
|
66
|
+
predicted = pa <= pb && pa <= pc ? a : pb <= pc ? b : c;
|
|
67
|
+
}
|
|
68
|
+
const value = (row[i] - predicted) & 255;
|
|
69
|
+
line[i] = value;
|
|
70
|
+
sum += value < 128 ? value : 256 - value;
|
|
71
|
+
}
|
|
72
|
+
if (sum < bestSum) {
|
|
73
|
+
bestSum = sum;
|
|
74
|
+
best = type;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
raw[y * (stride + 1)] = best;
|
|
78
|
+
candidates[best].copy(raw, y * (stride + 1) + 1);
|
|
79
|
+
row.copy(prev);
|
|
80
|
+
}
|
|
81
|
+
const header = Buffer.alloc(13);
|
|
82
|
+
header.writeUInt32BE(width, 0);
|
|
83
|
+
header.writeUInt32BE(height, 4);
|
|
84
|
+
header[8] = 8;
|
|
85
|
+
header[9] = out === 1 ? 0 : 2;
|
|
86
|
+
return Buffer.concat([Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]), chunk("IHDR", header), chunk("IDAT", deflateSync(raw, { level })), chunk("IEND", Buffer.alloc(0))]);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Area-average RGBA downscale to (dw, dh); exact box filter when the ratio is an integer. */
|
|
90
|
+
export function downscale(bytes, width, height, dw, dh) {
|
|
91
|
+
const out = new Uint8Array(dw * dh * 4);
|
|
92
|
+
const sx = width / dw;
|
|
93
|
+
const sy = height / dh;
|
|
94
|
+
for (let y = 0; y < dh; y++) {
|
|
95
|
+
const y0 = y * sy;
|
|
96
|
+
const y1 = y0 + sy;
|
|
97
|
+
for (let x = 0; x < dw; x++) {
|
|
98
|
+
const x0 = x * sx;
|
|
99
|
+
const x1 = x0 + sx;
|
|
100
|
+
let r = 0;
|
|
101
|
+
let g = 0;
|
|
102
|
+
let b = 0;
|
|
103
|
+
let area = 0;
|
|
104
|
+
for (let yy = Math.floor(y0); yy < Math.ceil(y1); yy++) {
|
|
105
|
+
const wy = Math.min(yy + 1, y1) - Math.max(yy, y0);
|
|
106
|
+
for (let xx = Math.floor(x0); xx < Math.ceil(x1); xx++) {
|
|
107
|
+
const wx = Math.min(xx + 1, x1) - Math.max(xx, x0);
|
|
108
|
+
const w = wx * wy;
|
|
109
|
+
const i = (yy * width + xx) * 4;
|
|
110
|
+
r += bytes[i] * w;
|
|
111
|
+
g += bytes[i + 1] * w;
|
|
112
|
+
b += bytes[i + 2] * w;
|
|
113
|
+
area += w;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const o = (y * dw + x) * 4;
|
|
117
|
+
out[o] = Math.round(r / area);
|
|
118
|
+
out[o + 1] = Math.round(g / area);
|
|
119
|
+
out[o + 2] = Math.round(b / area);
|
|
120
|
+
out[o + 3] = 255;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return out;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const LINEAR = Float64Array.from({ length: 256 }, (_, v) => {
|
|
127
|
+
const s = v / 255;
|
|
128
|
+
return s <= 0.04045 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
129
|
+
});
|
|
130
|
+
export const linearOf = (v) => LINEAR[v];
|
|
131
|
+
|
|
132
|
+
/** Percentile of per-pixel WCAG relative luminance (1024-bin histogram). */
|
|
133
|
+
export function luminancePercentile(bytes, fraction) {
|
|
134
|
+
const bins = new Uint32Array(1024);
|
|
135
|
+
const count = bytes.length / 4;
|
|
136
|
+
for (let i = 0; i < bytes.length; i += 4) {
|
|
137
|
+
const l = 0.2126 * LINEAR[bytes[i]] + 0.7152 * LINEAR[bytes[i + 1]] + 0.0722 * LINEAR[bytes[i + 2]];
|
|
138
|
+
bins[Math.min(1023, Math.floor(l * 1024))]++;
|
|
139
|
+
}
|
|
140
|
+
const target = count * fraction;
|
|
141
|
+
let seen = 0;
|
|
142
|
+
for (let k = 0; k < 1024; k++) {
|
|
143
|
+
seen += bins[k];
|
|
144
|
+
if (seen >= target) return (k + 1) / 1024;
|
|
145
|
+
}
|
|
146
|
+
return 1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// A 3x5 bitmap face for contact-sheet labels only (time and frame numbers); never film type.
|
|
150
|
+
const GLYPHS = {
|
|
151
|
+
0: "111101101101111",
|
|
152
|
+
1: "010110010010111",
|
|
153
|
+
2: "111001111100111",
|
|
154
|
+
3: "111001111001111",
|
|
155
|
+
4: "101101111001001",
|
|
156
|
+
5: "111100111001111",
|
|
157
|
+
6: "111100111101111",
|
|
158
|
+
7: "111001010010010",
|
|
159
|
+
8: "111101111101111",
|
|
160
|
+
9: "111101111001111",
|
|
161
|
+
".": "000000000000010",
|
|
162
|
+
s: "000011110011110",
|
|
163
|
+
f: "011010111010010",
|
|
164
|
+
" ": "000000000000000",
|
|
165
|
+
"/": "001001010100100",
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
function label(sheet, sheetWidth, text, x, y, px = 3) {
|
|
169
|
+
let cx = x;
|
|
170
|
+
for (const char of text) {
|
|
171
|
+
const bits = GLYPHS[char] ?? GLYPHS[" "];
|
|
172
|
+
for (let r = 0; r < 5; r++)
|
|
173
|
+
for (let c = 0; c < 3; c++) {
|
|
174
|
+
if (bits[r * 3 + c] !== "1") continue;
|
|
175
|
+
for (let dy = 0; dy < px; dy++)
|
|
176
|
+
for (let dx = 0; dx < px; dx++) {
|
|
177
|
+
const o = ((y + r * px + dy) * sheetWidth + cx + c * px + dx) * 4;
|
|
178
|
+
sheet[o] = 235;
|
|
179
|
+
sheet[o + 1] = 235;
|
|
180
|
+
sheet[o + 2] = 235;
|
|
181
|
+
sheet[o + 3] = 255;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
cx += 4 * px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** Contact sheet of thumbnails (each already RGBA at tw x th), labelled, `columns` wide. */
|
|
189
|
+
export function contactSheet(thumbs, tw, th, columns, labels) {
|
|
190
|
+
const pad = 6;
|
|
191
|
+
const band = 22;
|
|
192
|
+
const rows = Math.ceil(thumbs.length / columns);
|
|
193
|
+
const width = columns * (tw + pad) + pad;
|
|
194
|
+
const height = rows * (th + band + pad) + pad;
|
|
195
|
+
const sheet = new Uint8Array(width * height * 4);
|
|
196
|
+
for (let i = 0; i < sheet.length; i += 4) {
|
|
197
|
+
sheet[i] = 30;
|
|
198
|
+
sheet[i + 1] = 30;
|
|
199
|
+
sheet[i + 2] = 30;
|
|
200
|
+
sheet[i + 3] = 255;
|
|
201
|
+
}
|
|
202
|
+
thumbs.forEach((thumb, k) => {
|
|
203
|
+
const x0 = pad + (k % columns) * (tw + pad);
|
|
204
|
+
const y0 = pad + Math.floor(k / columns) * (th + band + pad);
|
|
205
|
+
label(sheet, width, labels[k], x0 + 2, y0 + 3);
|
|
206
|
+
for (let y = 0; y < th; y++) sheet.set(thumb.subarray(y * tw * 4, (y + 1) * tw * 4), ((y0 + band + y) * width + x0) * 4);
|
|
207
|
+
});
|
|
208
|
+
return { width, height, pixels: sheet };
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** Decode an 8-bit, non-interlaced grey/RGB/RGBA PNG (the files this engine writes) to RGBA or grey. */
|
|
212
|
+
export function decodePng(buffer) {
|
|
213
|
+
let offset = 8;
|
|
214
|
+
let width = 0;
|
|
215
|
+
let height = 0;
|
|
216
|
+
let colorType = 0;
|
|
217
|
+
const data = [];
|
|
218
|
+
while (offset < buffer.length) {
|
|
219
|
+
const length = buffer.readUInt32BE(offset);
|
|
220
|
+
const type = buffer.toString("ascii", offset + 4, offset + 8);
|
|
221
|
+
const body = buffer.subarray(offset + 8, offset + 8 + length);
|
|
222
|
+
if (type === "IHDR") {
|
|
223
|
+
width = body.readUInt32BE(0);
|
|
224
|
+
height = body.readUInt32BE(4);
|
|
225
|
+
if (body[8] !== 8 || body[12] !== 0) throw new Error("only 8-bit non-interlaced PNG is supported");
|
|
226
|
+
colorType = body[9];
|
|
227
|
+
} else if (type === "IDAT") data.push(body);
|
|
228
|
+
else if (type === "IEND") break;
|
|
229
|
+
offset += 12 + length;
|
|
230
|
+
}
|
|
231
|
+
const channels = { 0: 1, 2: 3, 6: 4 }[colorType];
|
|
232
|
+
if (!channels) throw new Error(`unsupported PNG colour type ${colorType}`);
|
|
233
|
+
const raw = inflateSync(Buffer.concat(data));
|
|
234
|
+
const stride = width * channels;
|
|
235
|
+
const out = new Uint8Array(stride * height);
|
|
236
|
+
for (let y = 0; y < height; y++) {
|
|
237
|
+
const filter = raw[y * (stride + 1)];
|
|
238
|
+
const src = y * (stride + 1) + 1;
|
|
239
|
+
for (let i = 0; i < stride; i++) {
|
|
240
|
+
const a = i >= channels ? out[y * stride + i - channels] : 0;
|
|
241
|
+
const b = y > 0 ? out[(y - 1) * stride + i] : 0;
|
|
242
|
+
const c = y > 0 && i >= channels ? out[(y - 1) * stride + i - channels] : 0;
|
|
243
|
+
let predicted = 0;
|
|
244
|
+
if (filter === 1) predicted = a;
|
|
245
|
+
else if (filter === 2) predicted = b;
|
|
246
|
+
else if (filter === 3) predicted = (a + b) >> 1;
|
|
247
|
+
else if (filter === 4) {
|
|
248
|
+
const p = a + b - c;
|
|
249
|
+
const pa = Math.abs(p - a);
|
|
250
|
+
const pb = Math.abs(p - b);
|
|
251
|
+
const pc = Math.abs(p - c);
|
|
252
|
+
predicted = pa <= pb && pa <= pc ? a : pb <= pc ? b : c;
|
|
253
|
+
}
|
|
254
|
+
out[y * stride + i] = (raw[src + i] + predicted) & 255;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (channels === 1) return { width, height, channels: 1, pixels: out };
|
|
258
|
+
if (channels === 4) return { width, height, channels: 4, pixels: out };
|
|
259
|
+
const rgba = new Uint8Array(width * height * 4);
|
|
260
|
+
for (let i = 0, j = 0; i < out.length; i += 3, j += 4) {
|
|
261
|
+
rgba[j] = out[i];
|
|
262
|
+
rgba[j + 1] = out[i + 1];
|
|
263
|
+
rgba[j + 2] = out[i + 2];
|
|
264
|
+
rgba[j + 3] = 255;
|
|
265
|
+
}
|
|
266
|
+
return { width, height, channels: 4, pixels: rgba };
|
|
267
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// Look rounds and Done (director brief section 9). `look` is the only writer of look.json: each
|
|
2
|
+
// round is stamped with the SHA-256 of the stills manifest it looked at and of every frame it
|
|
3
|
+
// lists, and it refuses frames that are not in the latest stills set and bare yes/no answers. The
|
|
4
|
+
// done-check then needs gate PASS, a valid treatment, at least two rounds (the round-1 stills round
|
|
5
|
+
// with a change, then a last round on the final render's stills) and full viewing coverage.
|
|
6
|
+
import { createHash } from "node:crypto";
|
|
7
|
+
import { existsSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
8
|
+
import { join } from "node:path";
|
|
9
|
+
import { EXIT, Exit, MAX_ROUNDS } from "./constants.mjs";
|
|
10
|
+
import { loadTreatment, TreatmentError } from "./treatment.mjs";
|
|
11
|
+
|
|
12
|
+
export const QUESTIONS = Object.freeze([
|
|
13
|
+
"A stranger would say this film is for: <…>. Does that match the treatment's audience and idea?",
|
|
14
|
+
"Does every beat show its onScreen plan?",
|
|
15
|
+
"Is the craft at the level ambition asks for (transitions, rhythm, depth, hierarchy)?",
|
|
16
|
+
"Is any request text, meta label, placeholder, file name or internal term on screen?",
|
|
17
|
+
"Does the ending land?",
|
|
18
|
+
"Does the sound follow the cuts (from sound-cues.json)?",
|
|
19
|
+
"Name one thing a skilled motion designer, given only the request, would have shown that this film does not. Can you name one?",
|
|
20
|
+
"Is any element on screen without a job in its beat?",
|
|
21
|
+
"Could every copy line be pasted unchanged into a film about a different subject?",
|
|
22
|
+
]);
|
|
23
|
+
// The answer that asks for another round, per question: "no" on 1, 2, 3, 5, 6; "yes" on 4, 7, 8, 9.
|
|
24
|
+
const REVISE_ON = Object.freeze({ 1: "no", 2: "no", 3: "no", 4: "yes", 5: "no", 6: "no", 7: "yes", 8: "yes", 9: "yes" });
|
|
25
|
+
const COVERAGE_KINDS = new Set(["poster", "sheet", "beat", "strip"]);
|
|
26
|
+
const sha256 = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
27
|
+
const refuse = (message) => {
|
|
28
|
+
throw new Exit(EXIT.USAGE, `look refused: ${message}`);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** The latest stills set: its manifest, the manifest's SHA-256 and the files by name. */
|
|
32
|
+
export function latestStills(outDir) {
|
|
33
|
+
const path = join(outDir, "stills", "manifest.json");
|
|
34
|
+
if (!existsSync(path)) return null;
|
|
35
|
+
const text = readFileSync(path, "utf8");
|
|
36
|
+
const manifest = JSON.parse(text);
|
|
37
|
+
return { manifest, sha: sha256(text), files: new Map(manifest.files.map((f) => [f.file, f])) };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function readLook(outDir) {
|
|
41
|
+
const path = join(outDir, "look.json");
|
|
42
|
+
return existsSync(path) ? JSON.parse(readFileSync(path, "utf8")) : { schema: 1, rounds: [] };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const bare = /^\s*(?:yes|no|y|n|ok|okay|fine|good|none|n\/a|네|아니오|예)\s*[.!]?\s*$/iu;
|
|
46
|
+
const sentence = (text) => typeof text === "string" && !bare.test(text) && text.trim().length >= 20 && text.trim().split(/\s+/u).length >= 5;
|
|
47
|
+
|
|
48
|
+
/** Validate an answers file against the latest stills set and append the round to look.json. */
|
|
49
|
+
export function recordLook(outDir, round, answersPath) {
|
|
50
|
+
if (!Number.isInteger(round) || round < 1 || round > MAX_ROUNDS) refuse(`--round must be 1..${MAX_ROUNDS}`);
|
|
51
|
+
let body;
|
|
52
|
+
try {
|
|
53
|
+
body = JSON.parse(readFileSync(answersPath, "utf8"));
|
|
54
|
+
} catch (error) {
|
|
55
|
+
refuse(`answers file unreadable (${error.message})`);
|
|
56
|
+
}
|
|
57
|
+
const stills = latestStills(outDir);
|
|
58
|
+
if (!stills) refuse("no stills set yet; render stills first");
|
|
59
|
+
const look = readLook(outDir);
|
|
60
|
+
const previous = look.rounds.at(-1);
|
|
61
|
+
if (previous && round <= previous.round) refuse(`round ${round} is already recorded; the next round is ${previous.round + 1}`);
|
|
62
|
+
if (body.blocked) {
|
|
63
|
+
if (body.blocked !== "no-vision-tool") refuse('blocked must be "no-vision-tool"');
|
|
64
|
+
const entry = { round, at: new Date().toISOString(), blocked: body.blocked, manifestSha256: stills.sha };
|
|
65
|
+
look.rounds.push(entry);
|
|
66
|
+
writeFileSync(join(outDir, "look.json"), `${JSON.stringify(look, null, 2)}\n`);
|
|
67
|
+
return entry;
|
|
68
|
+
}
|
|
69
|
+
if (stills.manifest.round !== round) refuse(`the latest stills set is from round ${stills.manifest.round}; look at the stills of round ${round} (render it first)`);
|
|
70
|
+
if (round === 1 && stills.manifest.kind !== "stills-only") refuse("round 1 is a stills round: run the render with --stills-only --round 1 first");
|
|
71
|
+
const name = (file) => String(file ?? "").replace(/^stills\//u, "");
|
|
72
|
+
const viewed = Array.isArray(body.viewed) ? body.viewed.map(name) : [];
|
|
73
|
+
const listed = [...viewed];
|
|
74
|
+
if (!Array.isArray(body.answers)) refuse("answers must be an array of { q, verdict, frame, observed }");
|
|
75
|
+
const byQ = new Map();
|
|
76
|
+
for (const answer of body.answers) {
|
|
77
|
+
const q = Number(answer?.q);
|
|
78
|
+
if (!Number.isInteger(q) || q < 1 || q > 9) refuse(`unknown question ${answer?.q}`);
|
|
79
|
+
if (byQ.has(q)) refuse(`question ${q} answered twice`);
|
|
80
|
+
if (answer.verdict !== "yes" && answer.verdict !== "no") refuse(`question ${q}: verdict must be "yes" or "no"`);
|
|
81
|
+
if (!sentence(answer.observed)) refuse(`question ${q}: observed must be a sentence naming a concrete visible detail, not a bare yes/no`);
|
|
82
|
+
if (q === 1 && !/for:\s*\S/iu.test(answer.observed)) refuse('question 1: observed must read "A stranger would say this film is for: <…>"');
|
|
83
|
+
const frame = name(answer.frame);
|
|
84
|
+
if (frame === "sound-cues.json") {
|
|
85
|
+
if (q !== 6 || !existsSync(join(outDir, "sound-cues.json"))) refuse(`question ${q}: sound-cues.json is only for question 6 and must exist`);
|
|
86
|
+
} else listed.push(frame);
|
|
87
|
+
byQ.set(q, { q, verdict: answer.verdict, frame, observed: answer.observed.trim(), ...(q === 1 ? { by: answer.by === "blind" ? "blind" : "self" } : {}) });
|
|
88
|
+
}
|
|
89
|
+
for (let q = 1; q <= 9; q++) if (!byQ.has(q)) refuse(`question ${q} is not answered (${QUESTIONS[q - 1]})`);
|
|
90
|
+
const unknown = [...new Set(listed)].filter((file) => !stills.files.has(file));
|
|
91
|
+
if (unknown.length) refuse(`not in the latest stills set: ${unknown.join(", ")}`);
|
|
92
|
+
const frames = {};
|
|
93
|
+
for (const file of new Set(listed)) {
|
|
94
|
+
const bytes = readFileSync(join(outDir, "stills", file));
|
|
95
|
+
if (sha256(bytes) !== stills.files.get(file).sha256) refuse(`${file} changed after the stills manifest was written; render again`);
|
|
96
|
+
frames[file] = sha256(bytes);
|
|
97
|
+
}
|
|
98
|
+
if (round === 1) {
|
|
99
|
+
if (!Number.isInteger(body.weakestBeat) || body.weakestBeat < 1) refuse("round 1 must name the weakest beat (weakestBeat, 1-based)");
|
|
100
|
+
if (typeof body.change !== "string" || body.change.trim().split(/\s+/u).length < 3) refuse("round 1 must state the change you made (change)");
|
|
101
|
+
}
|
|
102
|
+
const answers = [...byQ.values()].sort((a, b) => a.q - b.q);
|
|
103
|
+
const openItems = answers.filter((a) => a.verdict === REVISE_ON[a.q]).map((a) => `Q${a.q}: ${a.observed}`);
|
|
104
|
+
const entry = { round, at: new Date().toISOString(), kind: stills.manifest.kind, manifestSha256: stills.sha, frames, viewed: [...new Set(viewed)], answers, ...(round === 1 ? { weakestBeat: body.weakestBeat, change: body.change.trim() } : {}), needsAnotherRound: openItems.length > 0, openItems };
|
|
105
|
+
look.rounds.push(entry);
|
|
106
|
+
writeFileSync(join(outDir, "look.json"), `${JSON.stringify(look, null, 2)}\n`);
|
|
107
|
+
return entry;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Frames viewed for the render whose stills manifest hash is `manifestSha`, from look.json only. */
|
|
111
|
+
export function viewedFor(outDir, manifestSha) {
|
|
112
|
+
if (!manifestSha) return null;
|
|
113
|
+
const rounds = readLook(outDir).rounds.filter((r) => r.manifestSha256 === manifestSha && !r.blocked);
|
|
114
|
+
if (!rounds.length) return null;
|
|
115
|
+
return new Set(rounds.flatMap((r) => [...(r.viewed ?? []), ...Object.keys(r.frames ?? {})])).size;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const subjectBeats = (t) => new Set((t.visualDevices ?? []).filter((d) => d.role === "subject").flatMap((d) => d.beats)).size;
|
|
119
|
+
const SILENCE_ASKED = /무음|소리\s*없|음악\s*없|\bsilent\b|\bsilence\b|\bno\s+(?:sound|audio|music)\b|\bwithout\s+(?:sound|audio|music)\b|\bmuted?\b/iu;
|
|
120
|
+
|
|
121
|
+
/** What the final treatment gave up against the first valid one (the brief's four downgrades). */
|
|
122
|
+
export function downgrades(first, final) {
|
|
123
|
+
if (!first || !final) return [];
|
|
124
|
+
const out = [];
|
|
125
|
+
if (final.durationSec < first.durationSec * 0.8 - 1e-9) out.push(`durationSec dropped ${Math.round((1 - final.durationSec / first.durationSec) * 100)}% (${first.durationSec} s to ${final.durationSec} s)`);
|
|
126
|
+
if (subjectBeats(final) < subjectBeats(first)) out.push(`fewer subject beats (${subjectBeats(first)} to ${subjectBeats(final)})`);
|
|
127
|
+
if (first.sound?.mode !== "none" && final.sound?.mode === "none" && !SILENCE_ASKED.test(final.request)) out.push("sound changed to none without a user request");
|
|
128
|
+
if (first.path === "stage" && final.path === "type") out.push("path changed from stage to type");
|
|
129
|
+
return out;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const EXPORTS = ["film.mp4", "poster.png", "reduced-motion.png"];
|
|
133
|
+
const PREVIEWS = ["preview.webp", "preview.gif"];
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The done-check. Returns { status: "complete" | "not complete" | "DONE_UNVIEWED", reason,
|
|
137
|
+
* downgraded[], openItems[] }.
|
|
138
|
+
*/
|
|
139
|
+
export function evaluateDone(outDir) {
|
|
140
|
+
const notDone = (reason) => ({ status: "not complete", reason, downgraded: [], openItems: [] });
|
|
141
|
+
const manifestPath = join(outDir, "manifest.json");
|
|
142
|
+
const reportPath = join(outDir, "gate-report.txt");
|
|
143
|
+
if (!existsSync(manifestPath) || !existsSync(reportPath)) return notDone("no manifest and gate report: nothing verified was rendered (a started, stills-only or BLOCKED run)");
|
|
144
|
+
let treatment;
|
|
145
|
+
try {
|
|
146
|
+
treatment = loadTreatment(join(outDir, "treatment.json"));
|
|
147
|
+
} catch (error) {
|
|
148
|
+
if (error instanceof TreatmentError) return notDone(`the treatment is not valid (${error.message})`);
|
|
149
|
+
throw error;
|
|
150
|
+
}
|
|
151
|
+
const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
152
|
+
const report = readFileSync(reportPath, "utf8");
|
|
153
|
+
const rendered = statSync(manifestPath).mtimeMs;
|
|
154
|
+
if (statSync(join(outDir, "treatment.json")).mtimeMs > rendered) return notDone("the treatment changed after the last render; render again");
|
|
155
|
+
const page = join(outDir, "stage", "index.html");
|
|
156
|
+
if (manifest.path === "stage" && existsSync(page) && statSync(page).mtimeMs > rendered) return notDone("the stage page changed after the last render; render again");
|
|
157
|
+
if (report.includes("(pre-flight; nothing rendered)")) return notDone("pre-flight gate stopped the render; nothing was rendered");
|
|
158
|
+
const passed = /^QA gate: PASS/mu.test(report);
|
|
159
|
+
const round = Number(manifest.round ?? 1);
|
|
160
|
+
const withheld = /render withheld/u.test(report);
|
|
161
|
+
const delivered = (dir) => EXPORTS.every((n) => existsSync(join(dir, n))) && PREVIEWS.some((n) => existsSync(join(dir, n)));
|
|
162
|
+
if (!passed && round < MAX_ROUNDS) return notDone(`gate FAIL at round ${round} of ${MAX_ROUNDS}: fix the named cause and render round ${round + 1}`);
|
|
163
|
+
if (withheld && (!delivered(join(outDir, "withheld")) || [...EXPORTS, ...PREVIEWS].some((n) => existsSync(join(outDir, n))))) return notDone("flash FAIL but the exports are not confined to withheld/");
|
|
164
|
+
if (!withheld && !delivered(outDir)) return notDone("an export is missing at its deliverable name");
|
|
165
|
+
const first = existsSync(join(outDir, ".run", "treatment-first.json")) ? JSON.parse(readFileSync(join(outDir, ".run", "treatment-first.json"), "utf8")) : null;
|
|
166
|
+
const downgraded = downgrades(first, treatment);
|
|
167
|
+
const rounds = readLook(outDir).rounds;
|
|
168
|
+
const last = rounds.at(-1);
|
|
169
|
+
const gateNote = passed ? "gate PASS" : withheld ? "round 3 ended with a flash FAIL; the film is withheld" : "round 3 ended with failed rules named in the report";
|
|
170
|
+
if (last?.blocked) return { status: "DONE_UNVIEWED", reason: `${gateNote}, but no image tool was reachable: nobody viewed the frames. Say so plainly in the reply.`, downgraded, openItems: [] };
|
|
171
|
+
if (rounds.length < 2) return { ...notDone("needs at least 2 look rounds: the round-1 stills round with a change, then a last round on the final render's stills"), downgraded };
|
|
172
|
+
const opening = rounds[0];
|
|
173
|
+
if (opening.round !== 1 || opening.kind !== "stills-only" || !opening.change) return { ...notDone("the first look round must be the round-1 stills round, naming the weakest beat and the change made"), downgraded };
|
|
174
|
+
if (last.manifestSha256 !== manifest.stillsManifestSha256) return { ...notDone("the last look round viewed an older stills set than the final render; view the final render's stills and record another round"), downgraded };
|
|
175
|
+
const stills = latestStills(outDir);
|
|
176
|
+
const required = stills ? [...stills.files.values()].filter((f) => COVERAGE_KINDS.has(f.kind)).map((f) => f.file) : [];
|
|
177
|
+
const seen = new Set([...(last.viewed ?? []), ...Object.keys(last.frames ?? {})]);
|
|
178
|
+
const unseen = required.filter((file) => !seen.has(file));
|
|
179
|
+
if (unseen.length) return { ...notDone(`the last look round did not view ${unseen.join(", ")} (the poster, the contact sheet, every beat midpoint and every transition strip)`), downgraded };
|
|
180
|
+
if (last.needsAnotherRound && last.round < MAX_ROUNDS) return { ...notDone(`look round ${last.round} found items that need another round: ${last.openItems.map((item) => item.split(":")[0]).join(", ")}`), downgraded };
|
|
181
|
+
return { status: "complete", reason: `${gateNote}; ${rounds.length} look rounds, the last on the final render with every still viewed${last.openItems.length ? "; deliver with the open items stated" : ""}`, downgraded, openItems: last.openItems ?? [] };
|
|
182
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Look-library planning: per-shot seeds (MO-SH-01), precomputed event schedules that respect the
|
|
2
|
+
// per-shot ceiling of 2 events in any 1 s window (MO-SH-03), the software-GL downgrade (MO-SH-09),
|
|
3
|
+
// and the per-sample uniform values each GLSL pass receives. The GLSL itself is browser-app.js.
|
|
4
|
+
import { EVENTS, PASS_CAPS } from "./constants.mjs";
|
|
5
|
+
import { envelope, fnv1a32, mulberry32, passSeed } from "./util.mjs";
|
|
6
|
+
|
|
7
|
+
export const PASS_IDS = Object.freeze(["glitch", "tidal-gradient", "crt", "dither", "swiss-grid", "terminal-ui"]);
|
|
8
|
+
|
|
9
|
+
/** True when adding an event at t keeps every 1 s window of this shot at or under the ceiling. */
|
|
10
|
+
export function fitsCeiling(times, t) {
|
|
11
|
+
const all = [...times, t].sort((a, b) => a - b);
|
|
12
|
+
for (let i = 0; i < all.length; i++) {
|
|
13
|
+
let n = 0;
|
|
14
|
+
for (let j = i; j < all.length && all[j] < all[i] + EVENTS.windowSec - 1e-9; j++) n++;
|
|
15
|
+
if (n > EVENTS.maxPerWindow) return false;
|
|
16
|
+
}
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Candidate event times: reveal starts (word boundaries) plus beats and half beats, in time order. */
|
|
21
|
+
function candidates(shot) {
|
|
22
|
+
const times = new Set();
|
|
23
|
+
for (const reveal of shot.reveals) if (reveal.start > shot.start + 0.2) times.add(round(reveal.start));
|
|
24
|
+
for (let t = shot.start + shot.beat; t < shot.end - 0.25; t += shot.beat / 2) times.add(round(t));
|
|
25
|
+
return [...times].filter((t) => t > shot.start + 0.2 && t < shot.end - 0.25).sort((a, b) => a - b);
|
|
26
|
+
}
|
|
27
|
+
const round = (v) => Math.round(v * 1e6) / 1e6;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Plan every pass for every shot. Returns passRanges-ready entries plus per-shot runtime plans and
|
|
31
|
+
* the scheduled events (glitch hits, surges, boot flicker) for the render log.
|
|
32
|
+
*/
|
|
33
|
+
export function planPasses({ preset, shots, runSeed, softwareGL, fps, stateful }) {
|
|
34
|
+
const plans = new Map();
|
|
35
|
+
const events = [];
|
|
36
|
+
shots.forEach((shot, shotOrder) => {
|
|
37
|
+
const taken = [];
|
|
38
|
+
const shotEvents = [];
|
|
39
|
+
const addEvent = (t, source, detail = {}) => {
|
|
40
|
+
taken.push(t);
|
|
41
|
+
const event = { t, frame: Math.round(t * fps), source, shotId: shot.id, ...detail };
|
|
42
|
+
shotEvents.push(event);
|
|
43
|
+
events.push(event);
|
|
44
|
+
return event;
|
|
45
|
+
};
|
|
46
|
+
const passes = [];
|
|
47
|
+
for (const { pass, params: defaults } of preset.passes) {
|
|
48
|
+
const seed = pass === "swiss-grid" ? null : passSeed(runSeed, shot.sceneId, shot.shotIndex, pass);
|
|
49
|
+
const params = { ...defaults };
|
|
50
|
+
let downgraded = false;
|
|
51
|
+
const plan = { pass, seed, params, downgraded, schedule: [] };
|
|
52
|
+
if (pass === "terminal-ui") {
|
|
53
|
+
params.compositedThrough = preset.passes.map((p) => p.pass).filter((p) => p === "crt" || p === "dither");
|
|
54
|
+
if (shotOrder === 0 && preset.motion.bootFlickerSec) plan.boot = addEvent(shot.start + 0.05, "boot-flicker", { durationSec: preset.motion.bootFlickerSec });
|
|
55
|
+
}
|
|
56
|
+
if (pass === "tidal-gradient") {
|
|
57
|
+
params.octavesRequested = defaults.octaves;
|
|
58
|
+
if (softwareGL) {
|
|
59
|
+
params.octaves = Math.max(3, Math.floor(defaults.octaves / 2));
|
|
60
|
+
downgraded = true;
|
|
61
|
+
}
|
|
62
|
+
params.paletteStopsHex = [preset.palette.teal, preset.palette.violet];
|
|
63
|
+
const random = mulberry32(seed);
|
|
64
|
+
const rate = Math.min(defaults.surgeRatePerSec, PASS_CAPS.surgeRate);
|
|
65
|
+
for (const t of candidates(shot)) {
|
|
66
|
+
const budget = Math.floor(rate * shot.holdSec + 1e-9);
|
|
67
|
+
if (plan.schedule.length >= budget) break;
|
|
68
|
+
if (random() < 0.55 && fitsCeiling(taken, t)) plan.schedule.push(addEvent(t, "surge", { attackSec: defaults.surgeAttackSec, decaySec: defaults.surgeDecaySec }));
|
|
69
|
+
}
|
|
70
|
+
params.surgeCountRealized = plan.schedule.length;
|
|
71
|
+
params.origin = [random() * 64, random() * 64];
|
|
72
|
+
}
|
|
73
|
+
if (pass === "glitch") {
|
|
74
|
+
const random = mulberry32(seed);
|
|
75
|
+
const rate = Math.min(defaults.hitRatePerSec, PASS_CAPS.glitchHitRate);
|
|
76
|
+
for (const t of candidates(shot)) {
|
|
77
|
+
const budget = Math.floor(rate * shot.holdSec + 1e-9);
|
|
78
|
+
if (plan.schedule.length >= budget) break;
|
|
79
|
+
if (random() < 0.5 && fitsCeiling(taken, t)) {
|
|
80
|
+
plan.schedule.push(addEvent(t, "glitch-hit", { hitSeed: fnv1a32(`${seed}:hit:${plan.schedule.length}`), holdFrames: defaults.holdFrames }));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
params.hitRatePerSecRealized = round(plan.schedule.length / shot.holdSec);
|
|
84
|
+
}
|
|
85
|
+
if (pass === "crt") {
|
|
86
|
+
if (softwareGL) downgraded = true;
|
|
87
|
+
params.persistenceEnabled = !softwareGL && defaults.phosphorPersistence > 0;
|
|
88
|
+
params.sceneStateful = stateful;
|
|
89
|
+
params.flickerAmpRealized = shotOrder === 0 && preset.motion.bootFlickerSec ? PASS_CAPS.crtFlickerAmp : defaults.flickerAmp;
|
|
90
|
+
}
|
|
91
|
+
plan.downgraded = downgraded;
|
|
92
|
+
passes.push(plan);
|
|
93
|
+
}
|
|
94
|
+
plans.set(shot.id, { shot, passes, events: shotEvents });
|
|
95
|
+
});
|
|
96
|
+
return { plans, events };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** passRanges[] for the manifest: one entry per pass per shot (a continuous range). */
|
|
100
|
+
export function passRanges(plans) {
|
|
101
|
+
const entries = [];
|
|
102
|
+
for (const { shot, passes } of plans.values()) {
|
|
103
|
+
for (const plan of passes) {
|
|
104
|
+
const params = { ...plan.params };
|
|
105
|
+
entries.push({ pass: plan.pass, frameStart: shot.frameStart, frameEnd: shot.frameEnd, sceneId: shot.sceneId, shotIndex: shot.shotIndex, seed: plan.seed, params, downgraded: plan.downgraded });
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return entries;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Uniform values for one pass at sample time t. `still` zeroes the random-noise sources for the
|
|
113
|
+
* poster and reduced-motion still (MO-A-39/40); the Bayer pattern stays.
|
|
114
|
+
*/
|
|
115
|
+
export function passUniforms(plan, t, fps, { still = false, firstFrameOfShot = false, bootOffset = 0 } = {}) {
|
|
116
|
+
const p = plan.params;
|
|
117
|
+
switch (plan.pass) {
|
|
118
|
+
case "glitch": {
|
|
119
|
+
const hit = plan.schedule.find((event) => t >= event.t && t < event.t + event.holdFrames / fps);
|
|
120
|
+
return {
|
|
121
|
+
u_hit: hit ? 1 : 0,
|
|
122
|
+
u_hitSeed: hit ? hit.hitSeed : 0,
|
|
123
|
+
u_intensity: p.intensity,
|
|
124
|
+
u_sliceCount: p.sliceCount,
|
|
125
|
+
u_maxOffsetPx: p.maxOffsetPx,
|
|
126
|
+
u_blockCorruptSize: p.blockCorruptSize,
|
|
127
|
+
u_rgbSplitPx: p.rgbSplitPx,
|
|
128
|
+
u_areaCapPct: p.areaCapPct,
|
|
129
|
+
u_seed: plan.seed,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
case "tidal-gradient": {
|
|
133
|
+
let surge = 0;
|
|
134
|
+
for (const event of plan.schedule) surge = Math.max(surge, envelope(t, event.t, event.attackSec, 0.05, event.decaySec));
|
|
135
|
+
return {
|
|
136
|
+
u_time: t,
|
|
137
|
+
u_seed: plan.seed,
|
|
138
|
+
u_flowSpeed: p.flowSpeed,
|
|
139
|
+
u_warpAmount: p.warpAmount,
|
|
140
|
+
u_curlStrength: p.curlStrength,
|
|
141
|
+
u_octaves: p.octaves,
|
|
142
|
+
u_surge: surge * p.surgeOnHit,
|
|
143
|
+
u_bandingSteps: p.bandingSteps,
|
|
144
|
+
u_ditherAmount: still ? 0 : p.ditherAmount,
|
|
145
|
+
u_origin: p.origin,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
case "crt": {
|
|
149
|
+
const half = PASS_CAPS.crtFlickerAmp / 2;
|
|
150
|
+
const flicker = Math.max(-half, Math.min(half, (p.flickerAmp / 2) * Math.sin(2 * Math.PI * p.flickerFreqHz * t) + bootOffset));
|
|
151
|
+
return {
|
|
152
|
+
u_time: t,
|
|
153
|
+
u_seed: plan.seed,
|
|
154
|
+
u_scanlineFreqPerFrame: p.scanlineFreqPerFrame,
|
|
155
|
+
u_scanlineDepth: p.scanlineDepth,
|
|
156
|
+
u_phosphorPersistence: p.persistenceEnabled && !firstFrameOfShot ? p.phosphorPersistence : 0,
|
|
157
|
+
u_bloomAmount: p.bloomAmount,
|
|
158
|
+
u_curvature: p.curvature,
|
|
159
|
+
u_vignette: p.vignette,
|
|
160
|
+
u_triadMaskAmount: p.triadMaskAmount,
|
|
161
|
+
u_flicker: still ? 0 : flicker,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
case "dither":
|
|
165
|
+
return { u_ditherMode: p.mode, u_paletteSize: p.paletteSize, u_pixelScale: p.pixelScale, u_ditherStrength: p.strength, u_seed: plan.seed };
|
|
166
|
+
case "swiss-grid":
|
|
167
|
+
return { u_columns: p.columns, u_gutterPx: p.gutterPx, u_marginPx: p.marginPx, u_baselinePx: p.baselinePx, u_showGuides: p.showGuides ? 1 : 0, u_hairlineWidthPx: p.hairlineWidthPx };
|
|
168
|
+
case "terminal-ui":
|
|
169
|
+
return { u_charGridPx: p.charGridPx, u_windowChromeWidthPx: p.windowChromeWidthPx, u_meterCount: p.meterCount, u_caretBlinkHz: p.caretBlinkHz, u_seed: plan.seed };
|
|
170
|
+
default:
|
|
171
|
+
throw new Error(`unknown pass: ${plan.pass}`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** Boot-flicker brightness offset at t (bounded by the CRT flicker cap, MO-B-02). */
|
|
176
|
+
export function bootFlicker(plan, t, cap = PASS_CAPS.crtFlickerAmp) {
|
|
177
|
+
if (!plan?.boot) return 0;
|
|
178
|
+
const local = t - plan.boot.t;
|
|
179
|
+
if (local < 0 || local > plan.boot.durationSec) return 0;
|
|
180
|
+
return (cap / 2) * Math.sin((local / plan.boot.durationSec) * Math.PI) * Math.sin(2 * Math.PI * 9 * local);
|
|
181
|
+
}
|