@litfamily/litclaude 1.0.10 → 1.0.13
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/CHANGELOG.md +36 -0
- package/README.md +436 -45
- package/README_ko-KR.md +403 -17
- package/bin/install-ownership.mjs +155 -18
- package/bin/litclaude-ai.js +91 -9
- package/docs/ab/S11-baseline-desktop.webp +0 -0
- package/docs/ab/S11-baseline-phone.webp +0 -0
- package/docs/ab/S11-litclaude-desktop.webp +0 -0
- package/docs/ab/S11-litclaude-phone.webp +0 -0
- package/docs/ab/S3-baseline-desktop.webp +0 -0
- package/docs/ab/S3-baseline-phone.webp +0 -0
- package/docs/ab/S3-litclaude-desktop.webp +0 -0
- package/docs/ab/S3-litclaude-phone.webp +0 -0
- package/docs/ab/S4-baseline-desktop.webp +0 -0
- package/docs/ab/S4-baseline-phone.webp +0 -0
- package/docs/ab/S4-litclaude-desktop.webp +0 -0
- package/docs/ab/S4-litclaude-phone.webp +0 -0
- package/docs/ab/S5-baseline-pages.webp +0 -0
- package/docs/ab/S5-baseline-slides.webp +0 -0
- package/docs/ab/S5-litclaude-pages.webp +0 -0
- package/docs/ab/S5-litclaude-slides.webp +0 -0
- package/docs/ab/S7-litclaude-diagram.webp +0 -0
- package/docs/ab/S8-baseline-slides.webp +0 -0
- package/docs/ab/S8-litclaude-slides.webp +0 -0
- package/docs/ab/S9-litclaude-pages.webp +0 -0
- package/docs/agents.md +10 -7
- package/docs/assets/cover-motion-still.webp +0 -0
- package/docs/assets/cover-motion.webp +0 -0
- package/docs/assets/readme/badge-version.svg +1 -1
- package/docs/assets/skills/autoconference.webp +0 -0
- package/docs/assets/skills/automatic-checks.webp +0 -0
- package/docs/assets/skills/autoresearch.webp +0 -0
- package/docs/assets/skills/browser-drive.webp +0 -0
- package/docs/assets/skills/debugging.webp +0 -0
- package/docs/assets/skills/deep-interview.webp +0 -0
- package/docs/assets/skills/frontend-ui-ux.webp +0 -0
- package/docs/assets/skills/lit-burnoff-file.webp +0 -0
- package/docs/assets/skills/lit-burnoff.webp +0 -0
- package/docs/assets/skills/lit-code.webp +0 -0
- package/docs/assets/skills/lit-commit.webp +0 -0
- package/docs/assets/skills/lit-comprehend.webp +0 -0
- package/docs/assets/skills/lit-crucible.webp +0 -0
- package/docs/assets/skills/lit-diagram-drawer.webp +0 -0
- package/docs/assets/skills/lit-docx.webp +0 -0
- package/docs/assets/skills/lit-handoff.webp +0 -0
- package/docs/assets/skills/lit-humanizer.webp +0 -0
- package/docs/assets/skills/lit-init.webp +0 -0
- package/docs/assets/skills/lit-loop.webp +0 -0
- package/docs/assets/skills/lit-plan.webp +0 -0
- package/docs/assets/skills/lit-pptx.webp +0 -0
- package/docs/assets/skills/lit-recap.webp +0 -0
- package/docs/assets/skills/lit-scientific-visualization.webp +0 -0
- package/docs/assets/skills/lit-team.webp +0 -0
- package/docs/assets/skills/lit-typographic-motion.webp +0 -0
- package/docs/assets/skills/litgoal.webp +0 -0
- package/docs/assets/skills/litresearch.webp +0 -0
- package/docs/assets/skills/litwork.webp +0 -0
- package/docs/assets/skills/lsp-setup.webp +0 -0
- package/docs/assets/skills/readme-studio.webp +0 -0
- package/docs/assets/skills/refactor.webp +0 -0
- package/docs/assets/skills/review-work.webp +0 -0
- package/docs/assets/skills/start-work.webp +0 -0
- package/docs/assets/skills/structural-search.webp +0 -0
- package/docs/assets/skills/visual-qa.webp +0 -0
- package/docs/assets/skills/wikify.webp +0 -0
- package/docs/hooks.md +185 -41
- package/docs/migration.md +6 -3
- package/docs/privacy.md +6 -1
- package/package.json +4 -2
- package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
- package/plugins/litclaude/agents/korean-prose-editor.md +1 -0
- package/plugins/litclaude/agents/korean-style-analyzer.md +1 -0
- package/plugins/litclaude/agents/meaning-preservation-auditor.md +1 -0
- package/plugins/litclaude/agents/native-flow-reviewer.md +1 -0
- package/plugins/litclaude/agents/polish-orchestrator.md +1 -0
- package/plugins/litclaude/bin/litclaude-hook.js +347 -35
- package/plugins/litclaude/bin/litclaude-hud.js +29 -1
- package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
- package/plugins/litclaude/bundled-rules/lit-humanizer.md +14 -0
- package/plugins/litclaude/commands/korean-ai-slop-remover.md +2 -2
- package/plugins/litclaude/commands/lit-comprehend.md +11 -11
- package/plugins/litclaude/commands/lit-humanizer.md +75 -0
- package/plugins/litclaude/commands/lit-korean.md +4 -130
- package/plugins/litclaude/commands/litresearch.md +12 -10
- package/plugins/litclaude/hooks/hooks.json +1 -1
- package/plugins/litclaude/lib/canonical-runtime-commitments.mjs +2 -2
- package/plugins/litclaude/lib/canonical-skill-catalog.mjs +5 -1
- package/plugins/litclaude/lib/canonical-skill-resources.mjs +618 -13
- package/plugins/litclaude/lib/deliverable-hedge-guard.mjs +256 -350
- package/plugins/litclaude/lib/hud-accent-palette.mjs +33 -0
- package/plugins/litclaude/lib/interface-mode.mjs +33 -0
- package/plugins/litclaude/lib/interface-probe-gate.mjs +125 -0
- package/plugins/litclaude/lib/jev-skill-hint.mjs +445 -0
- package/plugins/litclaude/lib/motion-render-gate.mjs +164 -0
- package/plugins/litclaude/lib/mutated-file-paths.mjs +32 -1
- package/plugins/litclaude/lib/office-runtime-lock/package-lock.json +745 -0
- package/plugins/litclaude/lib/office-runtime-lock/package.json +12 -0
- package/plugins/litclaude/lib/office-runtime-lock/requirements.lock +15 -0
- package/plugins/litclaude/lib/office-runtime.mjs +255 -0
- package/plugins/litclaude/lib/office_data.py +493 -0
- package/plugins/litclaude/lib/office_runtime_bootstrap.py +61 -0
- package/plugins/litclaude/lib/ooxml_integrity.py +199 -0
- package/plugins/litclaude/lib/rename-aliases.mjs +3 -1
- package/plugins/litclaude/lib/render_pages.py +105 -0
- package/plugins/litclaude/skills/autoconference/SKILL.md +2 -0
- package/plugins/litclaude/skills/browser-drive/SKILL.md +19 -6
- package/plugins/litclaude/skills/browser-drive/scripts/capability-probe.mjs +44 -8
- package/plugins/litclaude/skills/frontend-ui-ux/ATTRIBUTION.md +26 -0
- package/plugins/litclaude/skills/frontend-ui-ux/SKILL.md +50 -16
- package/plugins/litclaude/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +9 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/complete-contract.md +32 -6
- package/plugins/litclaude/skills/frontend-ui-ux/references/craft-floor.md +257 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/default-editorial-pixel.json +6 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/interaction-motion.md +34 -88
- package/plugins/litclaude/skills/frontend-ui-ux/references/motion-guide.md +130 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/slop-register.md +150 -0
- package/plugins/litclaude/skills/frontend-ui-ux/references/visual-reconstruction.md +39 -85
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +1534 -0
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +141 -0
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +57 -0
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +129 -0
- package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe.mjs +316 -0
- package/plugins/litclaude/skills/lit-comprehend/SKILL.md +34 -43
- package/plugins/litclaude/skills/lit-comprehend/references/artifact-template.md +5 -44
- package/plugins/litclaude/skills/lit-comprehend/scripts/verify-explainer.mjs +6 -16
- package/plugins/litclaude/skills/lit-diagram-drawer/NOTICE +33 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/SKILL.md +123 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-er-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-er-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-line-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-line-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-process-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-process-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/fonts/OFL.txt +94 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/fonts/provenance.json +22 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/icons.html +231 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/index.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +20 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +21 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +21 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +30 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +21 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +33 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/02-release-decision/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +18 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/03-data-retention/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +19 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +17 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +17 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +17 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +19 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +1 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +20 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/accessibility.md +37 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/export.md +29 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/import-drawio.md +21 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/import-excalidraw.md +14 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/import-mermaid.md +18 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/import-schema.md +28 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/korean-typography.md +34 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/motion.md +29 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/office-pptx-docx.md +42 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/output-spec.md +48 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-annotation.md +12 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-icons.md +21 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-sketchy.md +11 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-terminal.md +11 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/profiles.md +24 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/semantic-patterns.md +27 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/style-guide.md +67 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-architecture.md +51 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-bar.md +51 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-beeswarm.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-bubble.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-bump.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-catalog.json +1433 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-data-flow.md +51 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-datalake.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-db-schema.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dependency.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-deployment.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dp-integration.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-er.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-fishbone.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-flowchart.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-gantt.md +49 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-heatmap.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-high-level-vertical.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-high-level.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-import-drawio.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-import-excalidraw.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-import-mermaid.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-it-state.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-journey.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-kanban.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-layers.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-line.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-loop-terminal.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-loop.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-marimekko.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-medallion.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-nested.md +59 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-org-chart.md +58 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-paved-road-animated.md +72 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-polar.md +67 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +69 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-process.md +58 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-pyramid.md +59 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +60 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-quadrant.md +57 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-queue-animated.md +63 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-radar.md +57 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-ridgeline.md +63 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-sankey.md +68 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-scatter.md +60 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-sequence-oauth.md +66 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-sequence.md +63 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-slopegraph.md +65 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-state-lifecycle.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-state.md +59 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-story-map.md +52 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-streamgraph.md +53 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-swimlane.md +52 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-timeline.md +52 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +57 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-tree.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-treemap.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-uml-class.md +52 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-venn.md +51 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-wardley.md +52 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/type-waterfall.md +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/references/verifier-guide.md +66 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/block-registry.mjs +43 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/brief-contract.mjs +94 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +15 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +223 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/doctor.mjs +35 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/drawio-extract.mjs +635 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/excalidraw-extract.mjs +319 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/export.mjs +116 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/mermaid-extract.mjs +438 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/office-safety.mjs +54 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/renderer.mjs +33 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-all.mjs +58 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-brief.mjs +22 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-coverage.mjs +56 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +27 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-motion.mjs +12 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-type.mjs +48 -0
- package/plugins/litclaude/skills/lit-diagram-drawer/scripts/visual-quality.mjs +376 -0
- package/plugins/litclaude/skills/lit-docx/NOTICE +33 -0
- package/plugins/litclaude/skills/lit-docx/SKILL.md +170 -0
- package/plugins/litclaude/skills/lit-docx/references/frontmatter_schema.md +42 -0
- package/plugins/litclaude/skills/lit-docx/references/journal_style_spec.md +17 -0
- package/plugins/litclaude/skills/lit-docx/references/markdown_quality_checklist.md +37 -0
- package/plugins/litclaude/skills/lit-docx/references/slop_phrase_list.yaml +58 -0
- package/plugins/litclaude/skills/lit-docx/references/slop_rules.md +35 -0
- package/plugins/litclaude/skills/lit-docx/scripts/clean_markdown.py +95 -0
- package/plugins/litclaude/skills/lit-docx/scripts/convert_md_to_docx.py +1194 -0
- package/plugins/litclaude/skills/lit-docx/scripts/convert_md_to_pdf.py +290 -0
- package/plugins/litclaude/skills/lit-docx/scripts/convert_pdf.py +139 -0
- package/plugins/litclaude/skills/lit-docx/scripts/edit_docx.py +306 -0
- package/plugins/litclaude/skills/lit-docx/scripts/embed_images.py +78 -0
- package/plugins/litclaude/skills/lit-docx/scripts/generate_docx_templates.py +500 -0
- package/plugins/litclaude/skills/lit-docx/scripts/qa_docx.py +177 -0
- package/plugins/litclaude/skills/lit-docx/scripts/slop_lint.py +561 -0
- package/plugins/litclaude/skills/lit-docx/scripts/visual_audit.py +48 -0
- package/plugins/litclaude/skills/lit-docx/templates/docx/acs.docx +0 -0
- package/plugins/litclaude/skills/lit-docx/templates/docx/elsevier.docx +0 -0
- package/plugins/litclaude/skills/lit-docx/templates/docx/ieee.docx +0 -0
- package/plugins/litclaude/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
- package/plugins/litclaude/skills/lit-docx/templates/docx/nature.docx +0 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/acs/README.md +5 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/acs/template.tex +37 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/elsevier/README.md +5 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/elsevier/template.tex +38 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/ieee/README.md +5 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/ieee/template.tex +37 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/korean-generic/README.md +5 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/korean-generic/template.tex +37 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/nature/README.md +5 -0
- package/plugins/litclaude/skills/lit-docx/templates/latex/nature/template.tex +37 -0
- package/plugins/litclaude/skills/lit-docx/templates/registry.yaml +1366 -0
- package/plugins/litclaude/skills/lit-humanizer/NOTICE +160 -0
- package/plugins/litclaude/skills/lit-humanizer/SKILL.md +164 -0
- package/plugins/litclaude/skills/lit-humanizer/assets/always-on-rule.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/assets/report-skeleton.md +25 -0
- package/plugins/litclaude/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
- package/plugins/litclaude/skills/lit-humanizer/bench/prompts.md +73 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/api-reference/after.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/api-reference/before.md +15 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/changelog/after.md +5 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/changelog/before.md +12 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/code-comments/after.md +10 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/code-comments/before.md +19 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/commit/after.md +5 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/commit/before.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/data-release/after.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/data-release/before.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/english-essay/after.md +5 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/english-essay/before.md +5 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/incident-update/after.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/incident-update/before.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/ko-report/after.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/ko-report/before.md +13 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/pr/after.md +15 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/pr/before.md +17 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/project-update/after.md +7 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/project-update/before.md +9 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/readme/after.md +12 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/readme/before.md +14 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/report/after.md +13 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/report/before.md +11 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/slides/after.md +19 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/slides/before.md +19 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
- package/plugins/litclaude/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
- package/plugins/litclaude/skills/lit-humanizer/motion-guide.md +123 -0
- package/plugins/litclaude/skills/lit-humanizer/references/code-patterns.md +468 -0
- package/plugins/litclaude/skills/lit-humanizer/references/deliverable-channels.md +111 -0
- package/plugins/litclaude/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
- package/plugins/litclaude/skills/lit-humanizer/references/en-patterns-content.md +243 -0
- package/plugins/litclaude/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
- package/plugins/litclaude/skills/lit-humanizer/references/en-patterns.md +57 -0
- package/plugins/litclaude/skills/lit-humanizer/references/ko-metrics.md +33 -0
- package/plugins/litclaude/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
- package/plugins/litclaude/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
- package/plugins/litclaude/skills/lit-humanizer/references/ko-patterns.md +31 -0
- package/plugins/litclaude/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
- package/plugins/litclaude/skills/lit-humanizer/references/taxonomy.md +153 -0
- package/plugins/litclaude/skills/lit-humanizer/rules.json +884 -0
- package/plugins/litclaude/skills/lit-humanizer/scripts/artifact-text.mjs +38 -0
- package/plugins/litclaude/skills/lit-humanizer/scripts/core.mjs +207 -0
- package/plugins/litclaude/skills/lit-humanizer/scripts/detect.mjs +64 -0
- package/plugins/litclaude/skills/lit-humanizer/scripts/extract_office_text.py +112 -0
- package/plugins/litclaude/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
- package/plugins/litclaude/skills/lit-humanizer/scripts/scan-input.mjs +29 -0
- package/plugins/litclaude/skills/lit-loop/SKILL.md +30 -1
- package/plugins/litclaude/skills/lit-plan/SKILL.md +4 -1
- package/plugins/litclaude/skills/lit-pptx/NOTICE +38 -0
- package/plugins/litclaude/skills/lit-pptx/SKILL.md +207 -0
- package/plugins/litclaude/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
- package/plugins/litclaude/skills/lit-pptx/assets/azure/circle-md.png +0 -0
- package/plugins/litclaude/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/a2z/OFL.txt +94 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/a2z/SOURCE.md +29 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/pretendard/OFL.txt +94 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
- package/plugins/litclaude/skills/lit-pptx/fonts/provenance.json +78 -0
- package/plugins/litclaude/skills/lit-pptx/references/agents/analyst.md +49 -0
- package/plugins/litclaude/skills/lit-pptx/references/agents/antithesis.md +59 -0
- package/plugins/litclaude/skills/lit-pptx/references/agents/architect.md +44 -0
- package/plugins/litclaude/skills/lit-pptx/references/agents/critic.md +42 -0
- package/plugins/litclaude/skills/lit-pptx/references/agents/synthesizer.md +47 -0
- package/plugins/litclaude/skills/lit-pptx/references/agents/thesis.md +33 -0
- package/plugins/litclaude/skills/lit-pptx/references/anti-slop-checklist.md +81 -0
- package/plugins/litclaude/skills/lit-pptx/references/authoring-guide.md +173 -0
- package/plugins/litclaude/skills/lit-pptx/references/consensus-protocol.md +125 -0
- package/plugins/litclaude/skills/lit-pptx/references/data-display-cookbook.md +45 -0
- package/plugins/litclaude/skills/lit-pptx/references/design-system-azure.md +58 -0
- package/plugins/litclaude/skills/lit-pptx/references/interview-protocol.md +113 -0
- package/plugins/litclaude/skills/lit-pptx/references/stages/autopilot.md +48 -0
- package/plugins/litclaude/skills/lit-pptx/references/stages/interview.md +52 -0
- package/plugins/litclaude/skills/lit-pptx/references/stages/plan.md +42 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/compile-deck.js +414 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/craft_extras.py +373 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/deck_craft.py +321 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/embed_fonts.py +215 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/forbidden-terms.json +55 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/layout_inventory.py +418 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/learn_template.py +446 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/derive-palette.js +176 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/directive-parser.js +244 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/font-map.js +79 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/gen-bg.js +86 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +37 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/layout-resolver.js +768 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/markdown-loader.js +136 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/render-adapter-html.js +356 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +2094 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/runtime-require.js +28 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/slide-ast.js +561 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/spec-validator.js +94 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/lib/template-registry.js +394 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/package.json +4 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/qa_deck.py +766 -0
- package/plugins/litclaude/skills/lit-pptx/scripts/validate_pptx.py +215 -0
- package/plugins/litclaude/skills/lit-pptx/specs/markdown-slide-spec-v1.md +251 -0
- package/plugins/litclaude/skills/lit-pptx/specs/markdown-slide-spec-v2.md +214 -0
- package/plugins/litclaude/skills/lit-pptx/specs/slide-ast-v1.schema.json +229 -0
- package/plugins/litclaude/skills/lit-pptx/specs/slide-ast-v2.schema.json +144 -0
- package/plugins/litclaude/skills/lit-pptx/specs/template-enrollment-contract.md +382 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +146 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +454 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +37 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +154 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +475 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +37 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +179 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +299 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +45 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +181 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +299 -0
- package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +44 -0
- package/plugins/litclaude/skills/lit-scientific-visualization/SKILL.md +1 -0
- package/plugins/litclaude/skills/lit-typographic-motion/SKILL.md +131 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/NOTICE +23 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +56 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/audio/beat_grid.py +56 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/audio/requirements.lock +1084 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/constants.mjs +211 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/contrast.mjs +90 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/events.mjs +46 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/flash.mjs +211 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/gate-rules.mjs +550 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/presets.mjs +123 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/text.mjs +100 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/timeline.mjs +142 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/util.mjs +167 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/core/voices.mjs +19 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/models/word-timing.json +198 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/analysis.mjs +108 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/brief.mjs +158 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/chrome.mjs +330 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/coverage.mjs +83 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/done.mjs +104 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/encode.mjs +104 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/frame-worker.mjs +36 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/look.mjs +128 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/pipeline.mjs +592 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/png.mjs +112 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/report.mjs +66 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/runtime.mjs +330 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/session.mjs +145 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound-cli.mjs +60 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound.mjs +641 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-capture.mjs +178 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-gate.mjs +122 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-qa.mjs +295 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-serve.mjs +278 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage.mjs +503 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stills.mjs +100 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/treatment.mjs +343 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/node/ws-server.mjs +132 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/package-lock.json +25 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/package.json +10 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/init.js +288 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/qa.js +157 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/stage-kit.js +701 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/boot.mjs +123 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/engine.mjs +281 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/gl.mjs +319 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/glsl-common.mjs +78 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/index.html +6 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/lines.mjs +112 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/crt.mjs +98 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/dither.mjs +49 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +77 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +61 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +88 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +86 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/post.mjs +165 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scale.mjs +15 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scene.mjs +82 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +30 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/index.mjs +16 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +47 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +45 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +29 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +73 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +73 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/stroke.mjs +236 -0
- package/plugins/litclaude/skills/lit-typographic-motion/engine/web/type.mjs +180 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/OFL.txt +93 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/manifest.json +437 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +93 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/CREDITS +42 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +216 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +216 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +216 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +216 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +217 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/OFL.txt +91 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/vt323/OFL.txt +93 -0
- package/plugins/litclaude/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/brief-schema.md +91 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/craft-loop.md +69 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/engine-contract.md +104 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/look.md +106 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/runtime.md +65 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/sound.md +83 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/stage.md +192 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/style-bibles.md +117 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/treatment.md +114 -0
- package/plugins/litclaude/skills/lit-typographic-motion/references/type-craft.md +79 -0
- package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion-doctor.mjs +78 -0
- package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion-runtime.mjs +67 -0
- package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion.mjs +132 -0
- package/plugins/litclaude/skills/litresearch/SKILL.md +54 -18
- package/scripts/doctor.mjs +5 -0
- package/scripts/postinstall.mjs +1 -0
- package/plugins/litclaude/skills/lit-korean/SKILL.md +0 -327
- /package/plugins/litclaude/skills/{lit-korean/references/fidelity-checklist.md → lit-humanizer/references/litclaude-fidelity-checklist.md} +0 -0
- /package/plugins/litclaude/skills/{lit-korean/references/rewrite-rules.md → lit-humanizer/references/litclaude-rewrite-rules.md} +0 -0
- /package/plugins/litclaude/skills/{lit-korean/references/style-patterns.md → lit-humanizer/references/litclaude-style-patterns.md} +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// glitch (MO-SH-05): horizontal slice offsets, block corruption and an RGB split confined to one
|
|
2
|
+
// band per hit. A hit is one displace held for `holdFrames` frames, then one restore; its schedule
|
|
3
|
+
// is precomputed per shot from the seed and the shot event budget. The band never exceeds the area
|
|
4
|
+
// cap, so a hit can never become a full-frame step (MO-SH-04a), and nothing is inverted.
|
|
5
|
+
import { SHADER } from "../../core/constants.mjs";
|
|
6
|
+
import { glitchCandidates } from "../../core/events.mjs";
|
|
7
|
+
import { mulberry32 } from "../../core/util.mjs";
|
|
8
|
+
import { Pass } from "../gl.mjs";
|
|
9
|
+
|
|
10
|
+
const FRAG = /* glsl */ `
|
|
11
|
+
uniform sampler2D src; uniform float u_time; uniform uint u_seed; uniform uint u_hitSeed;
|
|
12
|
+
uniform float u_hit, u_intensity, u_maxOffsetPx, u_rgbSplitPx, u_hitRatePerSec, u_areaCapPct;
|
|
13
|
+
uniform int u_sliceCount, u_holdFrames; uniform vec2 u_blockCorruptSize; uniform vec2 u_band;
|
|
14
|
+
void main() {
|
|
15
|
+
vec2 px = FRAG_PX;
|
|
16
|
+
float y = LOGICAL.y - px.y;
|
|
17
|
+
vec4 c = texture(src, vUv);
|
|
18
|
+
if (u_hit < 0.5 || y < u_band.x || y >= u_band.y) { fragColor = c; return; }
|
|
19
|
+
float t = (y - u_band.x) / max(u_band.y - u_band.x, 1.0);
|
|
20
|
+
int slice = int(floor(t * float(u_sliceCount)));
|
|
21
|
+
float r = unit(uhash3(uvec3(uint(slice), u_hitSeed, u_seed))) * 2.0 - 1.0;
|
|
22
|
+
float dx = r * u_maxOffsetPx * u_intensity;
|
|
23
|
+
vec2 cell = floor(px / u_blockCorruptSize);
|
|
24
|
+
uint blockHash = uhash3(uvec3(uvec2(cell), u_hitSeed));
|
|
25
|
+
if ((blockHash & 7u) == 0u) dx += (unit(uhash(blockHash)) - 0.5) * u_blockCorruptSize.x * 2.0;
|
|
26
|
+
vec2 uv = vUv + vec2(dx / LOGICAL.x, 0.0);
|
|
27
|
+
vec2 split = vec2(u_rgbSplitPx / LOGICAL.x, 0.0);
|
|
28
|
+
vec4 g = texture(src, uv);
|
|
29
|
+
fragColor = vec4(texture(src, uv - split).r, g.g, texture(src, uv + split).b, g.a);
|
|
30
|
+
}`;
|
|
31
|
+
|
|
32
|
+
export class Glitch {
|
|
33
|
+
constructor(glw, { params, fps }) {
|
|
34
|
+
this.id = "glitch";
|
|
35
|
+
this.category = "filter";
|
|
36
|
+
this.fps = fps;
|
|
37
|
+
this.params = {
|
|
38
|
+
...params,
|
|
39
|
+
hitRatePerSec: Math.min(SHADER.glitchHitRateCap, params.hitRatePerSec),
|
|
40
|
+
areaCapPct: Math.min(SHADER.glitchAreaCapPct, params.areaCapPct),
|
|
41
|
+
};
|
|
42
|
+
this.pass = new Pass(glw, FRAG, { pass: this.id });
|
|
43
|
+
}
|
|
44
|
+
shotState(seed, events, shot) {
|
|
45
|
+
const p = this.params;
|
|
46
|
+
const rnd = mulberry32(seed ^ 0x9e3779b9);
|
|
47
|
+
const hits = [];
|
|
48
|
+
for (const t of glitchCandidates({ start: shot.start, end: shot.end, rate: p.hitRatePerSec, seed })) {
|
|
49
|
+
if (!events.add(t, "glitch")) continue;
|
|
50
|
+
const bandH = (p.areaCapPct / 100) * 1080 * (0.6 + 0.4 * rnd());
|
|
51
|
+
const y0 = 140 + rnd() * (1080 - 280 - bandH);
|
|
52
|
+
hits.push({ t, hitSeed: (Math.floor(rnd() * 4294967295) >>> 0), band: [y0, y0 + bandH] });
|
|
53
|
+
}
|
|
54
|
+
return { seed, hits, duration: shot.end - shot.start };
|
|
55
|
+
}
|
|
56
|
+
activeHit(t, state) {
|
|
57
|
+
const hold = this.params.holdFrames / this.fps;
|
|
58
|
+
return state.hits.find((h) => t >= h.t && t < h.t + hold) ?? null;
|
|
59
|
+
}
|
|
60
|
+
apply(src, dst, f, state) {
|
|
61
|
+
const p = this.params;
|
|
62
|
+
const hit = this.activeHit(f.t, state);
|
|
63
|
+
this.pass.draw(dst, {
|
|
64
|
+
src, u_time: f.t, u_seed: state.seed, u_hitSeed: hit ? hit.hitSeed : 0, u_hit: hit ? 1 : 0, u_intensity: p.intensity,
|
|
65
|
+
u_maxOffsetPx: p.maxOffsetPx, u_rgbSplitPx: p.rgbSplitPx, u_hitRatePerSec: p.hitRatePerSec, u_areaCapPct: p.areaCapPct,
|
|
66
|
+
u_sliceCount: p.sliceCount, u_holdFrames: p.holdFrames, u_blockCorruptSize: p.blockCorruptSize, u_band: hit ? hit.band : [0, 0],
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
manifestParams(state) {
|
|
70
|
+
const p = this.params;
|
|
71
|
+
const maxBand = state.hits.reduce((m, h) => Math.max(m, h.band[1] - h.band[0]), 0);
|
|
72
|
+
return {
|
|
73
|
+
intensity: p.intensity, hitRatePerSecRealized: +(state.hits.length / Math.max(state.duration, 1e-6)).toFixed(4), areaCapPct: p.areaCapPct,
|
|
74
|
+
maxHitAreaPct: +((maxBand / 1080) * 100).toFixed(3), holdFrames: p.holdFrames, hitTimes: state.hits.map((h) => +h.t.toFixed(4)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// swiss-grid (MO-SH-10): layout arithmetic plus a batch of GPU hairline rules. It carries no seed.
|
|
2
|
+
// Scenes place type on its columns and baseline; the pass draws the rules that make the grid
|
|
3
|
+
// visible (a top rule, a bottom rule and column ticks) through one instanced LineBatch draw, which
|
|
4
|
+
// is what the render log counts. Full column guides draw only when showGuides is on, which is a
|
|
5
|
+
// debug aid and a gate FAIL in any export.
|
|
6
|
+
import { hexToLinear } from "../../core/util.mjs";
|
|
7
|
+
import { LineBatch } from "../lines.mjs";
|
|
8
|
+
import { W, H } from "../scale.mjs";
|
|
9
|
+
|
|
10
|
+
export class SwissGrid {
|
|
11
|
+
constructor(glw, { params, palette }) {
|
|
12
|
+
this.id = "swiss-grid";
|
|
13
|
+
this.category = "layout";
|
|
14
|
+
this.params = { ...params };
|
|
15
|
+
this.lines = new LineBatch(glw, 128);
|
|
16
|
+
this.ruleColor = hexToLinear(palette.dim ?? palette.type);
|
|
17
|
+
const { columns, gutterPx, marginPx } = this.params;
|
|
18
|
+
this.colWidth = (W - 2 * marginPx - (columns - 1) * gutterPx) / columns;
|
|
19
|
+
}
|
|
20
|
+
/** Left x of column `i` (0-based). */
|
|
21
|
+
col(i) {
|
|
22
|
+
const { gutterPx, marginPx } = this.params;
|
|
23
|
+
return marginPx + i * (this.colWidth + gutterPx);
|
|
24
|
+
}
|
|
25
|
+
/** Width spanned by columns a..b inclusive. */
|
|
26
|
+
span(a, b) {
|
|
27
|
+
return this.col(b) + this.colWidth - this.col(a);
|
|
28
|
+
}
|
|
29
|
+
/** Snap a y to the baseline grid (moduleSnap). */
|
|
30
|
+
baseline(y) {
|
|
31
|
+
return this.params.moduleSnap ? Math.round(y / this.params.baselinePx) * this.params.baselinePx : y;
|
|
32
|
+
}
|
|
33
|
+
shotState() {
|
|
34
|
+
return { seed: null };
|
|
35
|
+
}
|
|
36
|
+
draw(target, f, record) {
|
|
37
|
+
const { marginPx, columns, hairlineWidthPx, showGuides } = this.params;
|
|
38
|
+
const top = 72;
|
|
39
|
+
const bottom = H - 72;
|
|
40
|
+
const l = this.lines;
|
|
41
|
+
l.clear();
|
|
42
|
+
const alpha = 0.55;
|
|
43
|
+
const drawn = Math.min(1, f.lt / 0.3);
|
|
44
|
+
l.segment(marginPx, top, marginPx + (W - 2 * marginPx) * drawn, top, hairlineWidthPx, this.ruleColor, alpha);
|
|
45
|
+
l.segment(W - marginPx - (W - 2 * marginPx) * drawn, bottom, W - marginPx, bottom, hairlineWidthPx, this.ruleColor, alpha);
|
|
46
|
+
for (let i = 0; i <= columns; i++) {
|
|
47
|
+
const x = i === columns ? W - marginPx : this.col(i);
|
|
48
|
+
l.segment(x, top - 8, x, top, hairlineWidthPx, this.ruleColor, alpha);
|
|
49
|
+
}
|
|
50
|
+
if (showGuides) for (let i = 0; i < columns; i++) l.segment(this.col(i), top, this.col(i), bottom, 1, this.ruleColor, 0.25);
|
|
51
|
+
l.draw(target, { pass: this.id });
|
|
52
|
+
if (record) {
|
|
53
|
+
record.elements.push({ elementId: "swiss-grid/top-rule", kind: "rule", bbox: [marginPx, top - 8, W - marginPx, top + 1] });
|
|
54
|
+
record.elements.push({ elementId: "swiss-grid/bottom-rule", kind: "rule", bbox: [marginPx, bottom - 1, W - marginPx, bottom + 1] });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
manifestParams() {
|
|
58
|
+
const { columns, gutterPx, marginPx, baselinePx, showGuides } = this.params;
|
|
59
|
+
return { columns, gutterPx, marginPx, baselinePx, showGuides };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// terminal-ui (MO-SH-11): a Canvas2D kit for window chrome, status meters and a caret, drawn crisp
|
|
2
|
+
// on one layer and composited before crt/dither. Its labels and readouts are glyphs, so they go
|
|
3
|
+
// through the type kit like any other text. The seed only drives cosmetic jitter (a readout's last
|
|
4
|
+
// digit); content and pacing come from the brief and the timeline.
|
|
5
|
+
import { mulberry32 } from "../../core/util.mjs";
|
|
6
|
+
import { Layer2D } from "../gl.mjs";
|
|
7
|
+
|
|
8
|
+
export class TerminalUi {
|
|
9
|
+
constructor(glw, { params, palette, compositor }) {
|
|
10
|
+
this.id = "terminal-ui";
|
|
11
|
+
this.category = "background";
|
|
12
|
+
this.params = { ...params };
|
|
13
|
+
this.palette = palette;
|
|
14
|
+
this.layer = new Layer2D(glw);
|
|
15
|
+
this.compositor = compositor;
|
|
16
|
+
this.window = { x: 120, y: 110, w: 1680, h: 860, bar: 44 };
|
|
17
|
+
}
|
|
18
|
+
/** The content box scenes lay text into (logical px). */
|
|
19
|
+
content() {
|
|
20
|
+
const w = this.window;
|
|
21
|
+
return { x: w.x + 48, y: w.y + w.bar + 36, w: w.w - 96, h: w.h - w.bar - 120 };
|
|
22
|
+
}
|
|
23
|
+
shotState(seed) {
|
|
24
|
+
return { seed, jitter: mulberry32(seed) };
|
|
25
|
+
}
|
|
26
|
+
draw(target, f, state, stage) {
|
|
27
|
+
const p = this.params;
|
|
28
|
+
const w = this.window;
|
|
29
|
+
const c = this.layer.ctx;
|
|
30
|
+
// Meters: fill follows shot progress, so they move with the timeline, not with noise.
|
|
31
|
+
const meterY = w.y + w.h - 52;
|
|
32
|
+
const strip = { x: w.x + 44, y: meterY - 4, w: 300 * (p.meterCount - 1) + 230, h: 22 };
|
|
33
|
+
const drawMeters = () => {
|
|
34
|
+
for (let i = 0; i < p.meterCount; i++) {
|
|
35
|
+
const mx = w.x + 48 + i * 300;
|
|
36
|
+
const level = 0.25 + 0.7 * ((f.p * (1 + i * 0.35)) % 1);
|
|
37
|
+
c.strokeStyle = this.palette.dim;
|
|
38
|
+
c.lineWidth = p.windowChromeWidthPx;
|
|
39
|
+
c.strokeRect(mx, meterY, 220, 14);
|
|
40
|
+
c.fillStyle = this.palette.signal;
|
|
41
|
+
c.fillRect(mx + 2, meterY + 2, 216 * level, 10);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
let texture;
|
|
45
|
+
if (!this.chromeDrawn) {
|
|
46
|
+
// The window chrome is the same on every frame of the film: drawn and uploaded once.
|
|
47
|
+
this.layer.clear();
|
|
48
|
+
c.fillStyle = this.palette.panel;
|
|
49
|
+
c.fillRect(w.x, w.y, w.w, w.h);
|
|
50
|
+
c.strokeStyle = this.palette.dim;
|
|
51
|
+
c.lineWidth = p.windowChromeWidthPx;
|
|
52
|
+
c.strokeRect(w.x + 0.75, w.y + 0.75, w.w - 1.5, w.h - 1.5);
|
|
53
|
+
c.beginPath();
|
|
54
|
+
c.moveTo(w.x, w.y + w.bar);
|
|
55
|
+
c.lineTo(w.x + w.w, w.y + w.bar);
|
|
56
|
+
c.stroke();
|
|
57
|
+
for (let i = 0; i < 3; i++) c.strokeRect(w.x + 18 + i * 22, w.y + 15, 12, 12);
|
|
58
|
+
drawMeters();
|
|
59
|
+
texture = this.layer.upload();
|
|
60
|
+
this.chromeDrawn = true;
|
|
61
|
+
} else {
|
|
62
|
+
// Only the meter strip changes: repaint it on the panel and re-upload that rectangle.
|
|
63
|
+
c.fillStyle = this.palette.panel;
|
|
64
|
+
c.fillRect(strip.x, strip.y, strip.w, strip.h);
|
|
65
|
+
drawMeters();
|
|
66
|
+
texture = this.layer.uploadRegion(strip.x, strip.y, strip.w, strip.h);
|
|
67
|
+
}
|
|
68
|
+
this.compositor.draw(texture, target, { mode: "normal", logAs: this.id });
|
|
69
|
+
if (stage.record) {
|
|
70
|
+
stage.record.elements.push({ elementId: "terminal-ui/window", kind: "window", bbox: [w.x, w.y, w.x + w.w, w.y + w.h] });
|
|
71
|
+
stage.record.fills.push({ elementId: "terminal-ui/panel", color: this.palette.panel, bbox: [w.x, w.y, w.x + w.w, w.y + w.h] });
|
|
72
|
+
}
|
|
73
|
+
// Chrome text sits in the corners, where the crt vignette and scanlines darken it below 4.5:1 in
|
|
74
|
+
// status grey, so it is set in the signal hue (15:1 on navy); grey stays on strokes.
|
|
75
|
+
if (stage.labelText) {
|
|
76
|
+
const label = stage.type.layout(stage.labelText, { voice: "chrome", size: 20 });
|
|
77
|
+
stage.type.drawLine(stage.glyphs, label, w.x + 96, w.y + 30, { fill: this.palette.type, elementId: "terminal-ui/title" });
|
|
78
|
+
}
|
|
79
|
+
// A readout whose last digit jitters with the seed: cosmetic only, never content or timing.
|
|
80
|
+
const frameDigit = Math.floor(mulberry32((state.seed ^ Math.floor(f.t * 12)) >>> 0)() * 10);
|
|
81
|
+
const readout = stage.type.layout(`T+${f.t.toFixed(1).padStart(5, "0")}${frameDigit}`, { voice: "machine", size: 22 });
|
|
82
|
+
stage.type.drawLine(stage.glyphs, readout, w.x + w.w - 48, meterY + 12, { fill: this.palette.type, align: "right", elementId: "terminal-ui/readout" });
|
|
83
|
+
}
|
|
84
|
+
manifestParams() {
|
|
85
|
+
const p = this.params;
|
|
86
|
+
return { compositedThrough: ["crt", "dither"], meterCount: p.meterCount, logLineRateCharsPerSec: p.logLineRateCharsPerSec, wordTimingSource: "reading-time", layers: 1 };
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// tidal-gradient (MO-SH-06): a slow domain-warped flow field that mixes the preset's 2-3 palette
|
|
2
|
+
// stops into the background. The noise origin is drawn once per shot from the pass seed; surges are
|
|
3
|
+
// smooth attack/decay envelopes placed through the shot event budget, never an instant step.
|
|
4
|
+
import { SHADER } from "../../core/constants.mjs";
|
|
5
|
+
import { hexToLinear, mulberry32 } from "../../core/util.mjs";
|
|
6
|
+
import { Pass } from "../gl.mjs";
|
|
7
|
+
|
|
8
|
+
const FRAG = /* glsl */ `
|
|
9
|
+
uniform float u_time; uniform uint u_seed; uniform vec3 u_stop0; uniform vec3 u_stop1; uniform vec3 u_stop2;
|
|
10
|
+
uniform float u_flowSpeed, u_warpAmount, u_curlStrength, u_surge, u_ditherAmount; uniform int u_octaves, u_bandingSteps;
|
|
11
|
+
uniform vec2 u_origin;
|
|
12
|
+
void main() {
|
|
13
|
+
vec2 p = (FRAG_PX / LOGICAL.y) * 1.35 + u_origin;
|
|
14
|
+
float z = u_time * u_flowSpeed * 2.0;
|
|
15
|
+
vec2 flow = curl(p * 0.7, z, u_seed) * u_curlStrength * 0.08;
|
|
16
|
+
float warp = fbm(vec3(p * 0.9 + flow, z), u_octaves, u_seed ^ 0xa511e9b3u);
|
|
17
|
+
vec2 q = p + vec2(warp, -warp) * (u_warpAmount * (1.0 + 0.6 * u_surge)) + flow + vec2(u_time * u_flowSpeed, 0.0);
|
|
18
|
+
float v = fbm(vec3(q, z * 0.5), u_octaves, u_seed) * 0.5 + 0.5;
|
|
19
|
+
v = smoothstep(0.15, 0.95, v);
|
|
20
|
+
if (u_bandingSteps > 0) v = floor(v * float(u_bandingSteps)) / float(u_bandingSteps);
|
|
21
|
+
vec3 col = v < 0.5 ? mix(u_stop0, u_stop1, v * 2.0) : mix(u_stop1, u_stop2, (v - 0.5) * 2.0);
|
|
22
|
+
col *= 1.0 + 0.35 * u_surge;
|
|
23
|
+
if (u_ditherAmount > 0.0) {
|
|
24
|
+
vec3 s = toSRGB(col);
|
|
25
|
+
s += (unit(uhash3(uvec3(uvec2(FRAG_PX), uint(u_time * 600.0)))) - 0.5) * u_ditherAmount * 0.25;
|
|
26
|
+
col = toLinear(sat(s));
|
|
27
|
+
}
|
|
28
|
+
fragColor = vec4(col, 0.0);
|
|
29
|
+
}`;
|
|
30
|
+
|
|
31
|
+
/** Surge envelope: rises over `attack`, decays over `decay` (both floored at 0.1 s). */
|
|
32
|
+
export function surgeEnvelope(t, times, attack, decay) {
|
|
33
|
+
let env = 0;
|
|
34
|
+
for (const t0 of times) {
|
|
35
|
+
if (t < t0) continue;
|
|
36
|
+
const dt = t - t0;
|
|
37
|
+
const e = dt < attack ? dt / attack : Math.max(0, 1 - (dt - attack) / decay);
|
|
38
|
+
env = Math.max(env, e * e * (3 - 2 * e));
|
|
39
|
+
}
|
|
40
|
+
return env;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class TidalGradient {
|
|
44
|
+
constructor(glw, { params, palette, software }) {
|
|
45
|
+
this.id = "tidal-gradient";
|
|
46
|
+
this.category = "background";
|
|
47
|
+
const octaves = software ? SHADER.softwareOctaves(params.octaves) : params.octaves;
|
|
48
|
+
this.params = {
|
|
49
|
+
...params,
|
|
50
|
+
octaves,
|
|
51
|
+
surgeAttackSec: Math.max(SHADER.surgeAttackFloor, params.surgeAttackSec),
|
|
52
|
+
surgeDecaySec: Math.max(SHADER.surgeDecayFloor, params.surgeDecaySec),
|
|
53
|
+
surgeCapPerSec: Math.min(SHADER.surgeRateCap, params.surgeCapPerSec),
|
|
54
|
+
};
|
|
55
|
+
this.downgraded = Boolean(software);
|
|
56
|
+
this.stopsHex = [palette.bg, palette.stopA, palette.stopB];
|
|
57
|
+
this.stops = this.stopsHex.map(hexToLinear);
|
|
58
|
+
this.pass = new Pass(glw, FRAG, { pass: this.id });
|
|
59
|
+
}
|
|
60
|
+
shotState(seed, events, shot) {
|
|
61
|
+
const rnd = mulberry32(seed);
|
|
62
|
+
const origin = [rnd() * 40, rnd() * 40];
|
|
63
|
+
// One surge on the shot's opening beat and one past its middle, each only if the event budget
|
|
64
|
+
// allows it; surges punctuate, they never pulse on every beat.
|
|
65
|
+
const surges = [];
|
|
66
|
+
for (const t of [shot.start + 0.05, shot.start + (shot.end - shot.start) * 0.55]) if (events.add(t, "surge")) surges.push(t);
|
|
67
|
+
return { seed, origin, surges };
|
|
68
|
+
}
|
|
69
|
+
draw(target, f, state, { stillOverrides } = {}) {
|
|
70
|
+
const p = this.params;
|
|
71
|
+
this.pass.draw(target, {
|
|
72
|
+
u_time: f.t, u_seed: state.seed, u_stop0: this.stops[0], u_stop1: this.stops[1], u_stop2: this.stops[2],
|
|
73
|
+
u_flowSpeed: p.flowSpeed, u_warpAmount: p.warpAmount, u_curlStrength: p.curlStrength, u_octaves: p.octaves,
|
|
74
|
+
u_surge: p.surgeOnHit * surgeEnvelope(f.t, state.surges, p.surgeAttackSec, p.surgeDecaySec),
|
|
75
|
+
u_ditherAmount: stillOverrides?.noise === 0 ? 0 : p.ditherAmount, u_bandingSteps: p.bandingSteps, u_origin: state.origin,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
manifestParams(state) {
|
|
79
|
+
const p = this.params;
|
|
80
|
+
return {
|
|
81
|
+
paletteStopsHex: this.stopsHex, octaves: p.octaves, flowSpeed: p.flowSpeed, surgeCountRealized: state.surges.length,
|
|
82
|
+
surgeTimes: state.surges.map((t) => +t.toFixed(4)), surgeAttackSec: p.surgeAttackSec, surgeDecaySec: p.surgeDecaySec,
|
|
83
|
+
surgeCapPerSec: p.surgeCapPerSec,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// The global post chain, run once per output frame on the averaged linear-HDR composite, in the
|
|
2
|
+
// fixed order bloom + halation -> chromatic aberration -> tone shoulder -> grain -> vignette ->
|
|
3
|
+
// flash -> shake/zoom -> invert (MO-A-58, MO-A-29). The sRGB transfer is applied exactly once, in
|
|
4
|
+
// the final pass, which also flips rows so a readback yields top-to-bottom bytes. The alpha channel
|
|
5
|
+
// carries the glyph-coverage mask through every geometric step, so the mask the gate reads lines up
|
|
6
|
+
// with the colour it samples. Adapted from mexicat/pdoom-video app/src/engine/post.ts (MIT, see
|
|
7
|
+
// ../NOTICE); the bloom pyramid follows the same prefilter/downsample/upsample shape.
|
|
8
|
+
import { POST_FIELDS } from "../core/constants.mjs";
|
|
9
|
+
import { Pass, W, H } from "./gl.mjs";
|
|
10
|
+
|
|
11
|
+
const MIPS = 6;
|
|
12
|
+
|
|
13
|
+
const PREFILTER = /* glsl */ `
|
|
14
|
+
uniform sampler2D src; uniform vec2 texel; uniform float threshold, knee;
|
|
15
|
+
void main() {
|
|
16
|
+
vec3 c = 0.25 * (texture(src, vUv + texel * vec2(-1.0, -1.0)).rgb + texture(src, vUv + texel * vec2(1.0, -1.0)).rgb
|
|
17
|
+
+ texture(src, vUv + texel * vec2(-1.0, 1.0)).rgb + texture(src, vUv + texel * vec2(1.0, 1.0)).rgb);
|
|
18
|
+
c = min(c, vec3(32.0));
|
|
19
|
+
float l = max(c.r, max(c.g, c.b));
|
|
20
|
+
float k = max(knee, 1e-4);
|
|
21
|
+
float soft = clamp(l - threshold + k, 0.0, 2.0 * k);
|
|
22
|
+
soft = soft * soft / (4.0 * k);
|
|
23
|
+
float w = max(soft, l - threshold) / max(l, 1e-5);
|
|
24
|
+
fragColor = vec4(c * w, 1.0);
|
|
25
|
+
}`;
|
|
26
|
+
|
|
27
|
+
const DOWN = /* glsl */ `
|
|
28
|
+
uniform sampler2D src; uniform vec2 texel;
|
|
29
|
+
void main() {
|
|
30
|
+
vec3 o = texture(src, vUv).rgb * 0.25;
|
|
31
|
+
o += (texture(src, vUv + texel * vec2(-1.0, -1.0)).rgb + texture(src, vUv + texel * vec2(1.0, -1.0)).rgb
|
|
32
|
+
+ texture(src, vUv + texel * vec2(-1.0, 1.0)).rgb + texture(src, vUv + texel * vec2(1.0, 1.0)).rgb) * 0.125;
|
|
33
|
+
o += (texture(src, vUv + texel * vec2(-2.0, 0.0)).rgb + texture(src, vUv + texel * vec2(2.0, 0.0)).rgb
|
|
34
|
+
+ texture(src, vUv + texel * vec2(0.0, -2.0)).rgb + texture(src, vUv + texel * vec2(0.0, 2.0)).rgb) * 0.0625;
|
|
35
|
+
fragColor = vec4(o, 1.0);
|
|
36
|
+
}`;
|
|
37
|
+
|
|
38
|
+
const UP = /* glsl */ `
|
|
39
|
+
uniform sampler2D src; uniform sampler2D prev; uniform vec2 texel; uniform float radius;
|
|
40
|
+
void main() {
|
|
41
|
+
vec2 o = texel * radius;
|
|
42
|
+
vec3 s = texture(src, vUv - o).rgb + 2.0 * texture(src, vUv + vec2(0.0, -o.y)).rgb + texture(src, vUv + vec2(o.x, -o.y)).rgb
|
|
43
|
+
+ 2.0 * texture(src, vUv + vec2(-o.x, 0.0)).rgb + 4.0 * texture(src, vUv).rgb + 2.0 * texture(src, vUv + vec2(o.x, 0.0)).rgb
|
|
44
|
+
+ texture(src, vUv + vec2(-o.x, o.y)).rgb + 2.0 * texture(src, vUv + vec2(0.0, o.y)).rgb + texture(src, vUv + o).rgb;
|
|
45
|
+
fragColor = vec4(texture(prev, vUv).rgb + s / 16.0, 1.0);
|
|
46
|
+
}`;
|
|
47
|
+
|
|
48
|
+
// Linear stage: everything before the geometric steps. Output stays linear HDR.
|
|
49
|
+
const LINEAR_STAGE = /* glsl */ `
|
|
50
|
+
uniform sampler2D src; uniform sampler2D bloomTex; uniform sampler2D haloTex;
|
|
51
|
+
uniform float exposure, bloom, halation, ca, grain, vignette, fade, flash, frameTime;
|
|
52
|
+
uniform vec3 flashColor; uniform vec3 haloColor;
|
|
53
|
+
vec3 composite(vec2 uv) {
|
|
54
|
+
return texture(src, uv).rgb * exposure + texture(bloomTex, uv).rgb * bloom + haloColor * luma(texture(haloTex, uv).rgb) * halation;
|
|
55
|
+
}
|
|
56
|
+
vec3 shoulder(vec3 x) {
|
|
57
|
+
const float k = 0.72;
|
|
58
|
+
vec3 y = mix(x, k + (1.0 - k) * (1.0 - exp(-(x - k) / (1.0 - k))), step(k, x));
|
|
59
|
+
float over = max(max(x.r, x.g), x.b);
|
|
60
|
+
return mix(y, vec3(1.0), smoothstep(2.0, 12.0, over) * 0.85);
|
|
61
|
+
}
|
|
62
|
+
void main() {
|
|
63
|
+
vec2 dc = vUv - 0.5;
|
|
64
|
+
vec2 aspect = vec2(LOGICAL.x / LOGICAL.y, 1.0);
|
|
65
|
+
float r2 = dot(dc * aspect, dc * aspect);
|
|
66
|
+
vec2 off = dc * r2 * ca / LOGICAL.x * 4.0;
|
|
67
|
+
vec3 col = vec3(composite(vUv + off).r, composite(vUv).g, composite(vUv - off).b);
|
|
68
|
+
col = shoulder(col);
|
|
69
|
+
if (grain > 0.0) {
|
|
70
|
+
// Grain is sized in display (sRGB) units like film grain, so it is added through a transfer
|
|
71
|
+
// round trip; the output encode still happens once, in the final stage.
|
|
72
|
+
vec3 s = toSRGB(sat(col));
|
|
73
|
+
uint seed = uint(floor(frameTime * 60000.0 + 0.5));
|
|
74
|
+
float g1 = unit(uhash3(uvec3(uvec2(FRAG_PX), seed))) - 0.5;
|
|
75
|
+
float g2 = unit(uhash3(uvec3(uvec2(floor(FRAG_PX / 2.0)), seed ^ 0x5bd1e995u))) - 0.5;
|
|
76
|
+
float lm = luma(s);
|
|
77
|
+
s += (g1 * 0.6 + g2 * 0.4) * grain * (0.55 + 1.2 * lm * (1.0 - lm));
|
|
78
|
+
col = toLinear(sat(s));
|
|
79
|
+
}
|
|
80
|
+
float v = smoothstep(0.95, 0.25, length(dc * vec2(1.0, 0.8)));
|
|
81
|
+
col *= mix(1.0, v, vignette);
|
|
82
|
+
col *= fade;
|
|
83
|
+
col += flashColor * flash;
|
|
84
|
+
fragColor = vec4(col, texture(src, vUv).a);
|
|
85
|
+
}`;
|
|
86
|
+
|
|
87
|
+
// Geometric + output stage: shake/zoom, invert, the single sRGB encode, row flip for readback.
|
|
88
|
+
const OUTPUT_STAGE = /* glsl */ `
|
|
89
|
+
uniform sampler2D src; uniform float zoom; uniform vec2 shake; uniform bool invertFrame;
|
|
90
|
+
void main() {
|
|
91
|
+
vec2 uv = vec2(vUv.x, 1.0 - vUv.y);
|
|
92
|
+
uv = (uv - 0.5) / zoom + 0.5 + vec2(-shake.x, shake.y) / LOGICAL;
|
|
93
|
+
vec4 c = texture(src, uv);
|
|
94
|
+
if (uv.x < 0.0 || uv.x > 1.0 || uv.y < 0.0 || uv.y > 1.0) c = vec4(0.0);
|
|
95
|
+
vec3 col = sat(c.rgb);
|
|
96
|
+
if (invertFrame) col = vec3(1.0) - col;
|
|
97
|
+
fragColor = vec4(toSRGB(col), c.a);
|
|
98
|
+
}`;
|
|
99
|
+
|
|
100
|
+
/** Clamp a post-override object to the MO-A-58 contract and fill neutral values. */
|
|
101
|
+
export function normalizePost(values) {
|
|
102
|
+
const out = {};
|
|
103
|
+
for (const [field, rule] of Object.entries(POST_FIELDS)) {
|
|
104
|
+
const v = values[field];
|
|
105
|
+
if (rule.pair) out[field] = Array.isArray(v) && v.length === 2 ? [+v[0] || 0, +v[1] || 0] : [...rule.neutral];
|
|
106
|
+
else if (rule.boolean) out[field] = v === true;
|
|
107
|
+
else {
|
|
108
|
+
const n = typeof v === "number" && Number.isFinite(v) ? v : rule.neutral;
|
|
109
|
+
out[field] = Math.min(rule.max, Math.max(rule.exclusiveMin ? Math.max(rule.min, 1e-4) : rule.min, n));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return out;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class Post {
|
|
116
|
+
constructor(glw) {
|
|
117
|
+
this.glw = glw;
|
|
118
|
+
this.prefilter = new Pass(glw, PREFILTER);
|
|
119
|
+
this.down = new Pass(glw, DOWN);
|
|
120
|
+
this.up = new Pass(glw, UP);
|
|
121
|
+
this.linear = new Pass(glw, LINEAR_STAGE);
|
|
122
|
+
this.output = new Pass(glw, OUTPUT_STAGE);
|
|
123
|
+
this.mips = [];
|
|
124
|
+
this.ups = [];
|
|
125
|
+
let w = W >> 1;
|
|
126
|
+
let h = H >> 1;
|
|
127
|
+
for (let i = 0; i < MIPS; i++) {
|
|
128
|
+
this.mips.push(glw.target(Math.max(2, w), Math.max(2, h)));
|
|
129
|
+
this.ups.push(glw.target(Math.max(2, w), Math.max(2, h)));
|
|
130
|
+
w >>= 1;
|
|
131
|
+
h >>= 1;
|
|
132
|
+
}
|
|
133
|
+
this.black = glw.target(2, 2);
|
|
134
|
+
glw.clear(this.black, [0, 0, 0], 0);
|
|
135
|
+
this.mid = glw.target();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** src: averaged linear HDR (alpha = glyph mask). out: RGBA8 target, rows flipped for readback. */
|
|
139
|
+
render(src, out, params, { frameTime, flashColor, haloColor = [1, 0.18, 0.04] }) {
|
|
140
|
+
const p = normalizePost(params);
|
|
141
|
+
let bloomTex = this.black.tex;
|
|
142
|
+
let haloTex = this.black.tex;
|
|
143
|
+
if (p.bloom > 0 || p.halation > 0) {
|
|
144
|
+
this.prefilter.draw(this.mips[0], { src, texel: [1 / W, 1 / H], threshold: p.bloomThreshold, knee: p.bloomKnee });
|
|
145
|
+
for (let i = 1; i < MIPS; i++) {
|
|
146
|
+
const s = this.mips[i - 1];
|
|
147
|
+
this.down.draw(this.mips[i], { src: s.tex, texel: [1 / s.width, 1 / s.height] });
|
|
148
|
+
}
|
|
149
|
+
let prev = this.mips[MIPS - 1].tex;
|
|
150
|
+
for (let i = MIPS - 2; i >= 0; i--) {
|
|
151
|
+
const small = i === MIPS - 2 ? this.mips[MIPS - 1] : this.ups[i + 1];
|
|
152
|
+
this.up.draw(this.ups[i], { src: prev, prev: this.mips[i].tex, texel: [1 / small.width, 1 / small.height], radius: 0.5 + p.bloomRadius });
|
|
153
|
+
prev = this.ups[i].tex;
|
|
154
|
+
}
|
|
155
|
+
bloomTex = this.ups[0].tex;
|
|
156
|
+
haloTex = this.ups[Math.min(3, MIPS - 2)].tex;
|
|
157
|
+
}
|
|
158
|
+
this.linear.draw(this.mid, {
|
|
159
|
+
src, bloomTex, haloTex, exposure: p.exposure, bloom: p.bloom / 3, halation: p.halation, ca: p.ca, grain: p.grain,
|
|
160
|
+
vignette: p.vignette, fade: p.fade, flash: p.flash, frameTime, flashColor, haloColor,
|
|
161
|
+
});
|
|
162
|
+
this.output.draw(out, { src: this.mid.tex, zoom: p.zoom, shake: p.shake, invertFrame: p.invert });
|
|
163
|
+
return p;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Output scale, read once from the page URL (`?scale=2` renders 3840x2160). Scenes keep laying out
|
|
2
|
+
// in logical 1920x1080 px at every scale. Adapted from mexicat/pdoom-video app/src/engine/scale.ts
|
|
3
|
+
// (MIT, see ../NOTICE).
|
|
4
|
+
function readScale() {
|
|
5
|
+
if (typeof location === "undefined") return 1;
|
|
6
|
+
const value = Math.round(Number(new URLSearchParams(location.search).get("scale") ?? "1"));
|
|
7
|
+
return Number.isFinite(value) && value >= 1 ? Math.min(value, 4) : 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** Physical px per logical px (integer 1..4). */
|
|
11
|
+
export const SCALE = readScale();
|
|
12
|
+
export const W = 1920;
|
|
13
|
+
export const H = 1080;
|
|
14
|
+
export const PW = W * SCALE;
|
|
15
|
+
export const PH = H * SCALE;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Scene contract (MO-A-05, MO-A-06). A scene is built once per shot and renders any time `f.t`
|
|
2
|
+
// inside its window as a pure function of `f` (and the run seed). A scene that carries state sets
|
|
3
|
+
// `stateful = true` and `prerollMax`, keeps a finite memory no longer than `prerollMax`, and updates
|
|
4
|
+
// it only in `advance(f)`; after a seek the engine resets it and replays `advance` over the
|
|
5
|
+
// preroll, so a seeked render matches the sequential one byte for byte. Adapted from
|
|
6
|
+
// mexicat/pdoom-video app/src/engine/scene.ts (MIT, see ../NOTICE).
|
|
7
|
+
//
|
|
8
|
+
// `render(f, stage)` draws glyphs through stage.type onto stage.glyphs, non-glyph marks through
|
|
9
|
+
// stage.lines / stage.mark, and returns post-chain overrides for this frame (MO-A-58).
|
|
10
|
+
import { W, H } from "./scale.mjs";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Entrance opacity: type is already partly visible on the frame it lands on, so a hard cut never
|
|
14
|
+
* shows an empty frame, then settles to full over `dur` seconds.
|
|
15
|
+
*/
|
|
16
|
+
export const landing = (since, dur = 0.12) => (since < 0 ? 0 : Math.min(1, 0.4 + 0.6 * (since / dur)));
|
|
17
|
+
|
|
18
|
+
export class Scene {
|
|
19
|
+
constructor(ctx) {
|
|
20
|
+
this.ctx = ctx;
|
|
21
|
+
this.stateful = false;
|
|
22
|
+
this.prerollMax = 0;
|
|
23
|
+
}
|
|
24
|
+
init() {}
|
|
25
|
+
reset() {}
|
|
26
|
+
advance() {}
|
|
27
|
+
render() {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** The box text may occupy: the title-safe area, or the terminal content box. */
|
|
32
|
+
box() {
|
|
33
|
+
if (this.ctx.terminal) return this.ctx.terminal.content();
|
|
34
|
+
return { x: 120, y: 96, w: W - 240, h: H - 192 };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Largest size <= max at which `text` fits `width` in `voice` (layout is linear in size). */
|
|
38
|
+
fit(stage, text, voice, width, max, opts = {}) {
|
|
39
|
+
const probe = stage.type.layout(text, { voice, size: 100, ...opts });
|
|
40
|
+
const size = Math.min(max, (100 * width) / Math.max(1, probe.width));
|
|
41
|
+
return this.snapSize(size, voice);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Galmuri renders only at whole multiples of its 9 px grid, at least 4x (MO-FT-07). */
|
|
45
|
+
snapSize(size, voice) {
|
|
46
|
+
const v = this.ctx.voices[voice];
|
|
47
|
+
if (v?.hangul === "galmuri9") return Math.max(36, Math.floor(size / 9) * 9);
|
|
48
|
+
return Math.floor(size);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Wrap text into lines that fit `width` at `size`, breaking only between eojeol. */
|
|
52
|
+
wrap(stage, text, voice, size, width, opts = {}) {
|
|
53
|
+
const words = text.trim().split(/\s+/u);
|
|
54
|
+
const lines = [];
|
|
55
|
+
let line = "";
|
|
56
|
+
for (const word of words) {
|
|
57
|
+
const candidate = line ? `${line} ${word}` : word;
|
|
58
|
+
if (!line || stage.type.layout(candidate, { voice, size, ...opts }).width <= width) line = candidate;
|
|
59
|
+
else {
|
|
60
|
+
lines.push(line);
|
|
61
|
+
line = word;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (line) lines.push(line);
|
|
65
|
+
return lines;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Fit `text` into `width` x `maxLines`: shrink from `max` until the eojeol-wrapped block fits.
|
|
70
|
+
* Returns { size, lines } with lines laid out.
|
|
71
|
+
*/
|
|
72
|
+
fitBlock(stage, text, voice, width, max, maxLines = 3, opts = {}) {
|
|
73
|
+
let size = this.snapSize(max, voice);
|
|
74
|
+
for (;;) {
|
|
75
|
+
const lines = this.wrap(stage, text, voice, size, width, opts);
|
|
76
|
+
if ((lines.length <= maxLines && lines.every((l) => stage.type.layout(l, { voice, size, ...opts }).width <= width)) || size <= 24) {
|
|
77
|
+
return { size, lines: lines.map((l) => stage.type.layout(l, { voice, size, ...opts })) };
|
|
78
|
+
}
|
|
79
|
+
size = this.snapSize(size * 0.92, voice);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// end-card: the closing statement and its credit line, settled. Its last frame is the film's final
|
|
2
|
+
// text state, which the reduced-motion still reproduces. The preset's one accent (if it has one)
|
|
3
|
+
// appears here only, as a small mark, inside the window the engine grants (<= 10% of frames).
|
|
4
|
+
import { clamp, ease } from "../../core/util.mjs";
|
|
5
|
+
import { Scene, landing } from "../scene.mjs";
|
|
6
|
+
|
|
7
|
+
export default class EndCard extends Scene {
|
|
8
|
+
render(f, stage) {
|
|
9
|
+
const { palette, presetId, shot, accentWindow } = this.ctx;
|
|
10
|
+
const box = this.box();
|
|
11
|
+
const settle = presetId === "tidal" ? ease.drift(clamp(f.lt / 1.2)) : ease.slam(clamp(f.lt / 0.18));
|
|
12
|
+
const { size, lines } = this.fitBlock(stage, shot.text, "display", box.w * 0.85, presetId === "terminalcore" ? 90 : 140, 3);
|
|
13
|
+
const lineHeight = 1.6;
|
|
14
|
+
const blockH = (lines.length - 1) * size * lineHeight;
|
|
15
|
+
const centered = presetId === "tidal";
|
|
16
|
+
const x = centered ? 960 : box.x;
|
|
17
|
+
const y0 = (presetId === "terminalcore" ? box.y + box.h / 2 : 520) - blockH / 2 + size * 0.3 + (1 - settle) * 16;
|
|
18
|
+
stage.type.drawBlock(stage.glyphs, lines, x, y0, { lineHeight, fill: palette.type, alpha: landing(f.lt, 0.15), align: centered ? "center" : "left", elementId: "end" });
|
|
19
|
+
const subY = y0 + blockH + Math.max(72, size * 0.8);
|
|
20
|
+
if (shot.sub) {
|
|
21
|
+
const s = stage.type.layout(shot.sub, { voice: "machine", size: 30 });
|
|
22
|
+
stage.type.drawLine(stage.glyphs, s, x, subY, { fill: palette.type, alpha: landing(f.lt - 0.2, 0.3), align: centered ? "center" : "left", elementId: "end/sub" });
|
|
23
|
+
}
|
|
24
|
+
if (accentWindow && f.t >= accentWindow.start && f.t < accentWindow.end) {
|
|
25
|
+
const mx = centered ? 960 - 16 : box.x;
|
|
26
|
+
stage.mark({ x: mx, y: subY + 28, w: 32, h: 32 }, palette.accent, "end/accent", "accent");
|
|
27
|
+
}
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Starter scene registry. Brief shots name one of these ids.
|
|
2
|
+
import TitleSlam from "./title-slam.mjs";
|
|
3
|
+
import KaraokeLine from "./karaoke-line.mjs";
|
|
4
|
+
import KineticList from "./kinetic-list.mjs";
|
|
5
|
+
import NumberCounter from "./number-counter.mjs";
|
|
6
|
+
import Signature from "./signature.mjs";
|
|
7
|
+
import EndCard from "./end-card.mjs";
|
|
8
|
+
|
|
9
|
+
export const SCENES = Object.freeze({
|
|
10
|
+
"title-slam": TitleSlam,
|
|
11
|
+
"karaoke-line": KaraokeLine,
|
|
12
|
+
"kinetic-list": KineticList,
|
|
13
|
+
"number-counter": NumberCounter,
|
|
14
|
+
signature: Signature,
|
|
15
|
+
"end-card": EndCard,
|
|
16
|
+
});
|