@litfamily/litgravity 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/LICENSE +22 -0
- package/README.md +146 -2
- package/README_ko-KR.md +147 -0
- package/bin/litgravity.mjs +123 -0
- package/lib/agy.mjs +54 -0
- package/lib/bundle.mjs +141 -0
- package/lib/doctor.mjs +184 -0
- package/lib/guard.mjs +12 -0
- package/lib/host-tools.mjs +69 -0
- package/lib/install.mjs +130 -0
- package/lib/list.mjs +39 -0
- package/lib/models.mjs +36 -0
- package/lib/paths.mjs +28 -0
- package/lib/runtime.mjs +81 -0
- package/lib/safe-write.mjs +55 -0
- package/lib/statusline.mjs +99 -0
- package/lib/uninstall.mjs +60 -0
- package/lib/update-check.mjs +28 -0
- package/package.json +51 -4
- package/plugin/agents/.gitkeep +0 -0
- package/plugin/agents/korean-prose-editor.md +62 -0
- package/plugin/agents/korean-style-analyzer.md +59 -0
- package/plugin/agents/librarian-researcher.md +60 -0
- package/plugin/agents/lit-executor.md +61 -0
- package/plugin/agents/lit-planner.md +68 -0
- package/plugin/agents/lit-verifier.md +58 -0
- package/plugin/agents/meaning-preservation-auditor.md +57 -0
- package/plugin/agents/native-flow-reviewer.md +56 -0
- package/plugin/agents/polish-orchestrator.md +60 -0
- package/plugin/agents/qa-runner.md +53 -0
- package/plugin/agents/quality-reviewer.md +58 -0
- package/plugin/hooks/lib/boundary.mjs +106 -0
- package/plugin/hooks/lib/common.mjs +208 -0
- package/plugin/hooks/lib/continuation.mjs +157 -0
- package/plugin/hooks/lib/motion.mjs +142 -0
- package/plugin/hooks/lib/policy.mjs +149 -0
- package/plugin/hooks/lib/prose.mjs +79 -0
- package/plugin/hooks/lib/redact.mjs +23 -0
- package/plugin/hooks/lib/reentry.mjs +93 -0
- package/plugin/hooks/lib/routes.mjs +173 -0
- package/plugin/hooks/lib/transcript.mjs +48 -0
- package/plugin/hooks/post-invocation.mjs +18 -0
- package/plugin/hooks/post-tool-use.mjs +30 -0
- package/plugin/hooks/pre-invocation.mjs +62 -0
- package/plugin/hooks/pre-tool-use.mjs +112 -0
- package/plugin/hooks/session-start.mjs +31 -0
- package/plugin/hooks/stop.mjs +44 -0
- package/plugin/hooks.json +56 -0
- package/plugin/hud/render.mjs +602 -0
- package/plugin/hud/statusline.mjs +20 -0
- package/plugin/lib/host-exec.mjs +133 -0
- package/plugin/lib/python-pick.mjs +63 -0
- package/plugin/plugin.json +6 -0
- package/plugin/rules/AGENTS.md +30 -0
- package/plugin/skills/autoconference/LICENSE +21 -0
- package/plugin/skills/autoconference/PROVENANCE.md +26 -0
- package/plugin/skills/autoconference/SKILL.md +137 -0
- package/plugin/skills/autoconference/assets/conference_template.md +93 -0
- package/plugin/skills/autoconference/assets/report_template.md +59 -0
- package/plugin/skills/autoconference/assets/synthesis_template.md +52 -0
- package/plugin/skills/autoconference/modes/analyze.md +181 -0
- package/plugin/skills/autoconference/modes/core.md +244 -0
- package/plugin/skills/autoconference/modes/debate.md +240 -0
- package/plugin/skills/autoconference/modes/plan.md +220 -0
- package/plugin/skills/autoconference/modes/resume.md +172 -0
- package/plugin/skills/autoconference/modes/ship.md +247 -0
- package/plugin/skills/autoconference/modes/survey.md +218 -0
- package/plugin/skills/autoconference/references/agent-prompts.md +488 -0
- package/plugin/skills/autoconference/references/conference-protocol.md +332 -0
- package/plugin/skills/autoconference/references/convergence-guide.md +157 -0
- package/plugin/skills/autoconference/references/core-principles.md +93 -0
- package/plugin/skills/autoconference/references/crash-recovery.md +137 -0
- package/plugin/skills/autoconference/references/results-logging.md +200 -0
- package/plugin/skills/autoconference/references/visualization-guide.md +83 -0
- package/plugin/skills/autoconference/scripts/check_conference.sh +184 -0
- package/plugin/skills/autoconference/scripts/init_conference.py +392 -0
- package/plugin/skills/autoconference/scripts/style_presets.py +142 -0
- package/plugin/skills/autoconference/templates/code-performance.md +82 -0
- package/plugin/skills/autoconference/templates/debate-mode.md +58 -0
- package/plugin/skills/autoconference/templates/prompt-optimization.md +81 -0
- package/plugin/skills/autoconference/templates/quick-conference.md +70 -0
- package/plugin/skills/autoconference/templates/research-synthesis.md +76 -0
- package/plugin/skills/autoconference/templates/survey-mode.md +70 -0
- package/plugin/skills/autoresearch/LICENSE +21 -0
- package/plugin/skills/autoresearch/PROVENANCE.md +22 -0
- package/plugin/skills/autoresearch/SKILL.md +204 -0
- package/plugin/skills/autoresearch/assets/report_template.md +58 -0
- package/plugin/skills/autoresearch/assets/research_template.md +46 -0
- package/plugin/skills/autoresearch/assets/results_template.tsv +1 -0
- package/plugin/skills/autoresearch/modes/core.md +148 -0
- package/plugin/skills/autoresearch/modes/debug.md +175 -0
- package/plugin/skills/autoresearch/modes/fix.md +126 -0
- package/plugin/skills/autoresearch/modes/learn.md +77 -0
- package/plugin/skills/autoresearch/modes/plan.md +177 -0
- package/plugin/skills/autoresearch/modes/predict.md +170 -0
- package/plugin/skills/autoresearch/modes/reason.md +131 -0
- package/plugin/skills/autoresearch/modes/scenario.md +118 -0
- package/plugin/skills/autoresearch/modes/security.md +206 -0
- package/plugin/skills/autoresearch/modes/ship.md +39 -0
- package/plugin/skills/autoresearch/references/core-principles.md +91 -0
- package/plugin/skills/autoresearch/references/evaluator-contract.md +134 -0
- package/plugin/skills/autoresearch/references/investigation-techniques.md +149 -0
- package/plugin/skills/autoresearch/references/owasp-checklist.md +175 -0
- package/plugin/skills/autoresearch/references/persona-templates.md +171 -0
- package/plugin/skills/autoresearch/references/results-logging.md +100 -0
- package/plugin/skills/autoresearch/references/scenario-dimensions.md +186 -0
- package/plugin/skills/autoresearch/references/stride-model.md +192 -0
- package/plugin/skills/autoresearch/references/stuck-detection.md +105 -0
- package/plugin/skills/autoresearch/references/type-checklists.md +156 -0
- package/plugin/skills/autoresearch/references/upstream-family-contract.md +120 -0
- package/plugin/skills/autoresearch/references/visualization-guide.md +84 -0
- package/plugin/skills/autoresearch/scripts/check_progress.sh +293 -0
- package/plugin/skills/autoresearch/scripts/init_research.py +380 -0
- package/plugin/skills/autoresearch/scripts/run_with_deadline.py +207 -0
- package/plugin/skills/autoresearch/scripts/style_presets.py +156 -0
- package/plugin/skills/browser-drive/SKILL.md +138 -0
- package/plugin/skills/browser-drive/references/blocker-codes.md +31 -0
- package/plugin/skills/browser-drive/references/cleanup-receipts.md +52 -0
- package/plugin/skills/browser-drive/references/credential-and-approval-boundaries.md +49 -0
- package/plugin/skills/browser-drive/references/playwright-recipes.md +75 -0
- package/plugin/skills/browser-drive/references/snapshot-act-loop.md +65 -0
- package/plugin/skills/browser-drive/scripts/capability-probe.mjs +483 -0
- package/plugin/skills/browser-drive/scripts/secret-shapes.mjs +56 -0
- package/plugin/skills/browser-drive/templates/drive.cjs +52 -0
- package/plugin/skills/comment-checker/SKILL.md +144 -0
- package/plugin/skills/comment-checker/references/comment-policy.md +109 -0
- package/plugin/skills/debugging/SKILL.md +187 -0
- package/plugin/skills/debugging/references/methodology/00-setup.md +115 -0
- package/plugin/skills/debugging/references/methodology/02-investigate.md +107 -0
- package/plugin/skills/debugging/references/methodology/04-oracle-triple.md +116 -0
- package/plugin/skills/debugging/references/methodology/05-escalate.md +73 -0
- package/plugin/skills/debugging/references/methodology/06-fix.md +111 -0
- package/plugin/skills/debugging/references/methodology/08-qa.md +87 -0
- package/plugin/skills/debugging/references/methodology/09-cleanup.md +162 -0
- package/plugin/skills/debugging/references/methodology/partial-runtime-evidence.md +186 -0
- package/plugin/skills/debugging/references/runtimes/bundled-js-binary.md +359 -0
- package/plugin/skills/debugging/references/runtimes/go.md +204 -0
- package/plugin/skills/debugging/references/runtimes/native-binary.md +406 -0
- package/plugin/skills/debugging/references/runtimes/node.md +227 -0
- package/plugin/skills/debugging/references/runtimes/python.md +215 -0
- package/plugin/skills/debugging/references/runtimes/rust.md +205 -0
- package/plugin/skills/debugging/references/tools/ghidra.md +150 -0
- package/plugin/skills/debugging/references/tools/playwright-cli.md +179 -0
- package/plugin/skills/debugging/references/tools/pwndbg.md +223 -0
- package/plugin/skills/debugging/references/tools/pwntools.md +217 -0
- package/plugin/skills/deep-interview/SKILL.md +305 -0
- package/plugin/skills/deep-interview/references/headless-and-resume.md +35 -0
- package/plugin/skills/deep-interview/references/question-craft.md +76 -0
- package/plugin/skills/deep-interview/references/scoring-and-gates.md +69 -0
- package/plugin/skills/deep-interview/scripts/render-progress.mjs +165 -0
- package/plugin/skills/deep-interview/templates/context.md +38 -0
- package/plugin/skills/deep-interview/templates/spec.md +68 -0
- package/plugin/skills/deep-interview/templates/state.json +35 -0
- package/plugin/skills/frontend-ui-ux/ATTRIBUTION.md +23 -0
- package/plugin/skills/frontend-ui-ux/LICENSE +21 -0
- package/plugin/skills/frontend-ui-ux/PROVENANCE.json +38 -0
- package/plugin/skills/frontend-ui-ux/SKILL.md +153 -0
- package/plugin/skills/frontend-ui-ux/SOURCE-MANIFEST.json +1060 -0
- package/plugin/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +14 -0
- package/plugin/skills/frontend-ui-ux/data/design-intelligence.json +1 -0
- package/plugin/skills/frontend-ui-ux/examples/design-contract.example.json +186 -0
- package/plugin/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +9 -0
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +217 -0
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +201 -0
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +21 -0
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +873 -0
- package/plugin/skills/frontend-ui-ux/references/adaptive-layout.md +103 -0
- package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +96 -0
- package/plugin/skills/frontend-ui-ux/references/complete-contract.md +415 -0
- package/plugin/skills/frontend-ui-ux/references/composition.md +93 -0
- package/plugin/skills/frontend-ui-ux/references/craft-floor.md +203 -0
- package/plugin/skills/frontend-ui-ux/references/creative-directions.md +96 -0
- package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +27 -0
- package/plugin/skills/frontend-ui-ux/references/design/README.md +248 -0
- package/plugin/skills/frontend-ui-ux/references/design/_INDEX.md +191 -0
- package/plugin/skills/frontend-ui-ux/references/design/airbnb.md +393 -0
- package/plugin/skills/frontend-ui-ux/references/design/airtable.md +92 -0
- package/plugin/skills/frontend-ui-ux/references/design/apple.md +250 -0
- package/plugin/skills/frontend-ui-ux/references/design/aside.md +209 -0
- package/plugin/skills/frontend-ui-ux/references/design/binance.md +348 -0
- package/plugin/skills/frontend-ui-ux/references/design/bmw.md +183 -0
- package/plugin/skills/frontend-ui-ux/references/design/brutalist-skill.md +92 -0
- package/plugin/skills/frontend-ui-ux/references/design/bugatti.md +271 -0
- package/plugin/skills/frontend-ui-ux/references/design/cal.md +262 -0
- package/plugin/skills/frontend-ui-ux/references/design/claude.md +315 -0
- package/plugin/skills/frontend-ui-ux/references/design/clay.md +307 -0
- package/plugin/skills/frontend-ui-ux/references/design/clickhouse.md +284 -0
- package/plugin/skills/frontend-ui-ux/references/design/clone-from-url.md +65 -0
- package/plugin/skills/frontend-ui-ux/references/design/cohere.md +269 -0
- package/plugin/skills/frontend-ui-ux/references/design/coinbase.md +132 -0
- package/plugin/skills/frontend-ui-ux/references/design/composio.md +310 -0
- package/plugin/skills/frontend-ui-ux/references/design/cursor.md +312 -0
- package/plugin/skills/frontend-ui-ux/references/design/design-system-architecture.md +244 -0
- package/plugin/skills/frontend-ui-ux/references/design/elevenlabs.md +268 -0
- package/plugin/skills/frontend-ui-ux/references/design/expo.md +284 -0
- package/plugin/skills/frontend-ui-ux/references/design/ferrari.md +317 -0
- package/plugin/skills/frontend-ui-ux/references/design/figma.md +223 -0
- package/plugin/skills/frontend-ui-ux/references/design/framer.md +249 -0
- package/plugin/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +74 -0
- package/plugin/skills/frontend-ui-ux/references/design/hashicorp.md +281 -0
- package/plugin/skills/frontend-ui-ux/references/design/ibm.md +335 -0
- package/plugin/skills/frontend-ui-ux/references/design/image-to-code-skill.md +1228 -0
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +798 -0
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +1465 -0
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +987 -0
- package/plugin/skills/frontend-ui-ux/references/design/intercom.md +149 -0
- package/plugin/skills/frontend-ui-ux/references/design/kraken.md +128 -0
- package/plugin/skills/frontend-ui-ux/references/design/lamborghini.md +291 -0
- package/plugin/skills/frontend-ui-ux/references/design/layout-skill.md +107 -0
- package/plugin/skills/frontend-ui-ux/references/design/lazyweb.md +77 -0
- package/plugin/skills/frontend-ui-ux/references/design/linear.app.md +370 -0
- package/plugin/skills/frontend-ui-ux/references/design/lovable.md +301 -0
- package/plugin/skills/frontend-ui-ux/references/design/mastercard.md +368 -0
- package/plugin/skills/frontend-ui-ux/references/design/meta.md +369 -0
- package/plugin/skills/frontend-ui-ux/references/design/minimalist-skill.md +85 -0
- package/plugin/skills/frontend-ui-ux/references/design/minimax.md +260 -0
- package/plugin/skills/frontend-ui-ux/references/design/mintlify.md +329 -0
- package/plugin/skills/frontend-ui-ux/references/design/miro.md +111 -0
- package/plugin/skills/frontend-ui-ux/references/design/mistral.ai.md +264 -0
- package/plugin/skills/frontend-ui-ux/references/design/mongodb.md +269 -0
- package/plugin/skills/frontend-ui-ux/references/design/nike.md +366 -0
- package/plugin/skills/frontend-ui-ux/references/design/notion.md +312 -0
- package/plugin/skills/frontend-ui-ux/references/design/nvidia.md +296 -0
- package/plugin/skills/frontend-ui-ux/references/design/ollama.md +270 -0
- package/plugin/skills/frontend-ui-ux/references/design/opencode.ai.md +284 -0
- package/plugin/skills/frontend-ui-ux/references/design/output-skill.md +49 -0
- package/plugin/skills/frontend-ui-ux/references/design/pinterest.md +233 -0
- package/plugin/skills/frontend-ui-ux/references/design/playstation.md +367 -0
- package/plugin/skills/frontend-ui-ux/references/design/posthog.md +259 -0
- package/plugin/skills/frontend-ui-ux/references/design/raycast.md +271 -0
- package/plugin/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +230 -0
- package/plugin/skills/frontend-ui-ux/references/design/redesign-skill.md +178 -0
- package/plugin/skills/frontend-ui-ux/references/design/renault.md +314 -0
- package/plugin/skills/frontend-ui-ux/references/design/replicate.md +264 -0
- package/plugin/skills/frontend-ui-ux/references/design/resend.md +306 -0
- package/plugin/skills/frontend-ui-ux/references/design/revolut.md +188 -0
- package/plugin/skills/frontend-ui-ux/references/design/runwayml.md +247 -0
- package/plugin/skills/frontend-ui-ux/references/design/sanity.md +360 -0
- package/plugin/skills/frontend-ui-ux/references/design/sentry.md +265 -0
- package/plugin/skills/frontend-ui-ux/references/design/shopify.md +353 -0
- package/plugin/skills/frontend-ui-ux/references/design/soft-skill.md +98 -0
- package/plugin/skills/frontend-ui-ux/references/design/spacex.md +197 -0
- package/plugin/skills/frontend-ui-ux/references/design/spotify.md +249 -0
- package/plugin/skills/frontend-ui-ux/references/design/starbucks.md +583 -0
- package/plugin/skills/frontend-ui-ux/references/design/stitch-design-example.md +121 -0
- package/plugin/skills/frontend-ui-ux/references/design/stitch-skill.md +184 -0
- package/plugin/skills/frontend-ui-ux/references/design/stripe.md +325 -0
- package/plugin/skills/frontend-ui-ux/references/design/supabase.md +258 -0
- package/plugin/skills/frontend-ui-ux/references/design/superhuman.md +255 -0
- package/plugin/skills/frontend-ui-ux/references/design/taste-skill.md +1206 -0
- package/plugin/skills/frontend-ui-ux/references/design/tesla.md +289 -0
- package/plugin/skills/frontend-ui-ux/references/design/theverge.md +342 -0
- package/plugin/skills/frontend-ui-ux/references/design/together.ai.md +266 -0
- package/plugin/skills/frontend-ui-ux/references/design/uber.md +298 -0
- package/plugin/skills/frontend-ui-ux/references/design/vercel.md +313 -0
- package/plugin/skills/frontend-ui-ux/references/design/vodafone.md +426 -0
- package/plugin/skills/frontend-ui-ux/references/design/voltagent.md +326 -0
- package/plugin/skills/frontend-ui-ux/references/design/warp.md +256 -0
- package/plugin/skills/frontend-ui-ux/references/design/webflow.md +95 -0
- package/plugin/skills/frontend-ui-ux/references/design/wired.md +281 -0
- package/plugin/skills/frontend-ui-ux/references/design/wise.md +176 -0
- package/plugin/skills/frontend-ui-ux/references/design/x.ai.md +260 -0
- package/plugin/skills/frontend-ui-ux/references/design/zapier.md +331 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +97 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/README.md +48 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +80 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +64 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +65 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +65 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +83 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/orchestration.md +80 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/routing.md +79 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +21 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +83 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +132 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +109 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +89 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +113 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +78 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +121 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +268 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +107 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +120 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +101 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +109 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +107 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +199 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +174 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +125 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +106 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +266 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +123 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +120 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +164 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +85 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +98 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +165 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +122 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +81 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +96 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +77 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +192 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +165 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +78 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +75 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +117 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +78 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +125 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +79 -0
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +119 -0
- package/plugin/skills/frontend-ui-ux/references/evidence-review.md +119 -0
- package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +115 -0
- package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +98 -0
- package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +48 -0
- package/plugin/skills/frontend-ui-ux/references/motion-guide.md +153 -0
- package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +101 -0
- package/plugin/skills/frontend-ui-ux/references/perfection/README.md +160 -0
- package/plugin/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +127 -0
- package/plugin/skills/frontend-ui-ux/references/performance-delivery.md +91 -0
- package/plugin/skills/frontend-ui-ux/references/product-direction.md +92 -0
- package/plugin/skills/frontend-ui-ux/references/production-interview.md +71 -0
- package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +103 -0
- package/plugin/skills/frontend-ui-ux/references/slop-register.md +139 -0
- package/plugin/skills/frontend-ui-ux/references/system-foundations.md +90 -0
- package/plugin/skills/frontend-ui-ux/references/taste-direction.md +79 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/README.md +659 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +26 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +162 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +106 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +35 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +162 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +45 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +85 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +74 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +31 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +262 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +114 -0
- package/plugin/skills/frontend-ui-ux/references/visual-language.md +90 -0
- package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +55 -0
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +306 -0
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +291 -0
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +311 -0
- package/plugin/skills/frontend-ui-ux/scripts/chrome-driver.mjs +216 -0
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-format.mjs +286 -0
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +354 -0
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +361 -0
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +313 -0
- package/plugin/skills/frontend-ui-ux/scripts/design-data.mjs +68 -0
- package/plugin/skills/frontend-ui-ux/scripts/errors.mjs +12 -0
- package/plugin/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +124 -0
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +1534 -0
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +141 -0
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +57 -0
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +129 -0
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +289 -0
- package/plugin/skills/frontend-ui-ux/scripts/json-boundary.mjs +63 -0
- package/plugin/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +106 -0
- package/plugin/skills/frontend-ui-ux/scripts/search.mjs +43 -0
- package/plugin/skills/frontend-ui-ux/scripts/source-replay.mjs +153 -0
- package/plugin/skills/frontend-ui-ux/scripts/strict-json.mjs +143 -0
- package/plugin/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +52 -0
- package/plugin/skills/frontend-ui-ux/scripts/verify-corpus.mjs +90 -0
- package/plugin/skills/lit-brainstorm/SKILL.md +228 -0
- package/plugin/skills/lit-brainstorm/references/convergence-matrices.md +39 -0
- package/plugin/skills/lit-brainstorm/references/idea-lenses.md +71 -0
- package/plugin/skills/lit-brainstorm/references/lane-prompts.md +35 -0
- package/plugin/skills/lit-brainstorm/references/scoring-rubric.md +33 -0
- package/plugin/skills/lit-brainstorm/references/session-walkthrough.md +58 -0
- package/plugin/skills/lit-brainstorm/references/technique-catalog.md +41 -0
- package/plugin/skills/lit-brainstorm/references/techniques-generate.md +50 -0
- package/plugin/skills/lit-brainstorm/references/techniques-reframe.md +30 -0
- package/plugin/skills/lit-brainstorm/references/techniques-structure.md +36 -0
- package/plugin/skills/lit-brainstorm/templates/handoff-packet.md +23 -0
- package/plugin/skills/lit-brainstorm/templates/session-board.md +45 -0
- package/plugin/skills/lit-brainstorm/templates/shortlist.md +31 -0
- package/plugin/skills/lit-burnoff/SKILL.md +222 -0
- package/plugin/skills/lit-burnoff/references/behavior-preserving-cleanup.md +75 -0
- package/plugin/skills/lit-burnoff/references/prose-and-docs.md +31 -0
- package/plugin/skills/lit-burnoff/references/slop-categories.md +75 -0
- package/plugin/skills/lit-burnoff/templates/report.md +17 -0
- package/plugin/skills/lit-burnoff-file/SKILL.md +177 -0
- package/plugin/skills/lit-burnoff-file/references/triage-examples.md +76 -0
- package/plugin/skills/lit-burnoff-file/templates/report.md +17 -0
- package/plugin/skills/lit-code/SKILL.md +239 -0
- package/plugin/skills/lit-code/references/core/agy-surfaces-and-verification.md +95 -0
- package/plugin/skills/lit-code/references/core/cross-language-stack.md +74 -0
- package/plugin/skills/lit-code/references/core/file-size-ceiling.md +133 -0
- package/plugin/skills/lit-code/references/core/language-jump-table.md +143 -0
- package/plugin/skills/lit-code/references/core/post-write-review.md +77 -0
- package/plugin/skills/lit-code/references/core/shared-rules.md +92 -0
- package/plugin/skills/lit-code/references/core/tdd-discipline.md +82 -0
- package/plugin/skills/lit-code/references/engineering-risk-signals.md +123 -0
- package/plugin/skills/lit-code/references/go/README.md +104 -0
- package/plugin/skills/lit-code/references/go/backend-stack.md +717 -0
- package/plugin/skills/lit-code/references/go/bootstrap.md +350 -0
- package/plugin/skills/lit-code/references/go/bubbletea-v2.md +356 -0
- package/plugin/skills/lit-code/references/go/cobra-stack.md +446 -0
- package/plugin/skills/lit-code/references/go/concurrency.md +443 -0
- package/plugin/skills/lit-code/references/go/data-modeling.md +372 -0
- package/plugin/skills/lit-code/references/go/error-handling.md +379 -0
- package/plugin/skills/lit-code/references/go/golangci-strict.md +285 -0
- package/plugin/skills/lit-code/references/go/grpc-connect.md +458 -0
- package/plugin/skills/lit-code/references/go/libraries.md +327 -0
- package/plugin/skills/lit-code/references/go/one-liners.md +223 -0
- package/plugin/skills/lit-code/references/go/sqlc-pgx.md +517 -0
- package/plugin/skills/lit-code/references/go/testing.md +453 -0
- package/plugin/skills/lit-code/references/go/type-patterns.md +347 -0
- package/plugin/skills/lit-code/references/observability-contracts.md +106 -0
- package/plugin/skills/lit-code/references/python/README.md +313 -0
- package/plugin/skills/lit-code/references/python/async-anyio.md +487 -0
- package/plugin/skills/lit-code/references/python/data-modeling.md +264 -0
- package/plugin/skills/lit-code/references/python/data-processing.md +156 -0
- package/plugin/skills/lit-code/references/python/error-handling.md +300 -0
- package/plugin/skills/lit-code/references/python/fastapi-stack.md +368 -0
- package/plugin/skills/lit-code/references/python/httpx2-optimization.md +445 -0
- package/plugin/skills/lit-code/references/python/libraries.md +342 -0
- package/plugin/skills/lit-code/references/python/one-liners.md +290 -0
- package/plugin/skills/lit-code/references/python/orjson-stack.md +389 -0
- package/plugin/skills/lit-code/references/python/pydantic-ai.md +335 -0
- package/plugin/skills/lit-code/references/python/pyproject-strict.md +265 -0
- package/plugin/skills/lit-code/references/python/textual-tui.md +243 -0
- package/plugin/skills/lit-code/references/python/type-patterns.md +258 -0
- package/plugin/skills/lit-code/references/rust/README.md +338 -0
- package/plugin/skills/lit-code/references/rust/async-tokio.md +324 -0
- package/plugin/skills/lit-code/references/rust/axum-stack.md +563 -0
- package/plugin/skills/lit-code/references/rust/cargo-strict.md +357 -0
- package/plugin/skills/lit-code/references/rust/clap-stack.md +482 -0
- package/plugin/skills/lit-code/references/rust/concurrency.md +396 -0
- package/plugin/skills/lit-code/references/rust/libraries.md +467 -0
- package/plugin/skills/lit-code/references/rust/one-liners.md +294 -0
- package/plugin/skills/lit-code/references/rust/proptest-insta.md +418 -0
- package/plugin/skills/lit-code/references/rust/type-state.md +496 -0
- package/plugin/skills/lit-code/references/rust/unsafe-discipline.md +282 -0
- package/plugin/skills/lit-code/references/rust/zero-cost-safety.md +546 -0
- package/plugin/skills/lit-code/references/rust-ub/README.md +294 -0
- package/plugin/skills/lit-code/references/rust-ub/miri-sanitizers-loom.md +477 -0
- package/plugin/skills/lit-code/references/rust-ub/ub-taxonomy.md +302 -0
- package/plugin/skills/lit-code/references/typescript/README.md +191 -0
- package/plugin/skills/lit-code/references/typescript/backend-hono.md +703 -0
- package/plugin/skills/lit-code/references/typescript/bootstrap.md +185 -0
- package/plugin/skills/lit-code/references/typescript/data-modeling.md +244 -0
- package/plugin/skills/lit-code/references/typescript/error-handling.md +219 -0
- package/plugin/skills/lit-code/references/typescript/tsconfig-strict.md +193 -0
- package/plugin/skills/lit-code/references/typescript/type-patterns.md +290 -0
- package/plugin/skills/lit-code/scripts/go/check-no-excuse-rules.sh +173 -0
- package/plugin/skills/lit-code/scripts/go/new-project.py +138 -0
- package/plugin/skills/lit-code/scripts/go/templates/.editorconfig +13 -0
- package/plugin/skills/lit-code/scripts/go/templates/.golangci.yml +95 -0
- package/plugin/skills/lit-code/scripts/go/templates/AGENTS.md.tmpl +24 -0
- package/plugin/skills/lit-code/scripts/go/templates/README.md.tmpl +12 -0
- package/plugin/skills/lit-code/scripts/go/templates/Taskfile.yml +40 -0
- package/plugin/skills/lit-code/scripts/go/templates/ci.yml +37 -0
- package/plugin/skills/lit-code/scripts/go/templates/config.go +24 -0
- package/plugin/skills/lit-code/scripts/go/templates/gitignore +15 -0
- package/plugin/skills/lit-code/scripts/go/templates/main.go.tmpl +22 -0
- package/plugin/skills/lit-code/scripts/go/templates/run.go +15 -0
- package/plugin/skills/lit-code/scripts/python/check-no-excuse-rules.py +687 -0
- package/plugin/skills/lit-code/scripts/python/new-project.py +172 -0
- package/plugin/skills/lit-code/scripts/python/new-script.py +116 -0
- package/plugin/skills/lit-code/scripts/rust/check-no-excuse-rules.py +296 -0
- package/plugin/skills/lit-code/scripts/rust/check-no-excuse-rules.sh +158 -0
- package/plugin/skills/lit-code/scripts/rust/new-project.py +175 -0
- package/plugin/skills/lit-code/scripts/typescript/check-no-excuse-rules.ts +344 -0
- package/plugin/skills/lit-code/scripts/typescript/new-project.ts +174 -0
- package/plugin/skills/lit-commit/SKILL.md +148 -0
- package/plugin/skills/lit-commit/references/safe-git-operations.md +154 -0
- package/plugin/skills/lit-comprehend/SKILL.md +244 -0
- package/plugin/skills/lit-comprehend/assets/explainer-scaffold.html +257 -0
- package/plugin/skills/lit-comprehend/references/artifact-template.md +173 -0
- package/plugin/skills/lit-comprehend/references/micro-worlds.md +174 -0
- package/plugin/skills/lit-comprehend/scripts/verify-explainer.mjs +357 -0
- package/plugin/skills/lit-crucible/SKILL.md +151 -0
- package/plugin/skills/lit-crucible/references/adversarial-workflow.md +134 -0
- package/plugin/skills/lit-crucible/references/lane-briefs.md +69 -0
- package/plugin/skills/lit-crucible/templates/crucible.md +37 -0
- package/plugin/skills/lit-diagram-drawer/NOTICE +33 -0
- package/plugin/skills/lit-diagram-drawer/SKILL.md +177 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/fonts/OFL.txt +94 -0
- package/plugin/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/plugin/skills/lit-diagram-drawer/assets/fonts/provenance.json +22 -0
- package/plugin/skills/lit-diagram-drawer/assets/icons.html +231 -0
- package/plugin/skills/lit-diagram-drawer/assets/index.html +1 -0
- package/plugin/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +20 -0
- package/plugin/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +21 -0
- package/plugin/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +21 -0
- package/plugin/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +30 -0
- package/plugin/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +21 -0
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +33 -0
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +18 -0
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +19 -0
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +17 -0
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +17 -0
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +17 -0
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +19 -0
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +1 -0
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +20 -0
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +1 -0
- package/plugin/skills/lit-diagram-drawer/references/accessibility.md +37 -0
- package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +86 -0
- package/plugin/skills/lit-diagram-drawer/references/export.md +34 -0
- package/plugin/skills/lit-diagram-drawer/references/failure-codes.md +66 -0
- package/plugin/skills/lit-diagram-drawer/references/import-drawio.md +21 -0
- package/plugin/skills/lit-diagram-drawer/references/import-excalidraw.md +14 -0
- package/plugin/skills/lit-diagram-drawer/references/import-mermaid.md +18 -0
- package/plugin/skills/lit-diagram-drawer/references/import-schema.md +28 -0
- package/plugin/skills/lit-diagram-drawer/references/korean-typography.md +34 -0
- package/plugin/skills/lit-diagram-drawer/references/motion.md +29 -0
- package/plugin/skills/lit-diagram-drawer/references/office-pptx-docx.md +42 -0
- package/plugin/skills/lit-diagram-drawer/references/output-spec.md +48 -0
- package/plugin/skills/lit-diagram-drawer/references/playbooks.md +67 -0
- package/plugin/skills/lit-diagram-drawer/references/primitive-annotation.md +12 -0
- package/plugin/skills/lit-diagram-drawer/references/primitive-icons.md +21 -0
- package/plugin/skills/lit-diagram-drawer/references/primitive-sketchy.md +11 -0
- package/plugin/skills/lit-diagram-drawer/references/primitive-terminal.md +11 -0
- package/plugin/skills/lit-diagram-drawer/references/profiles.md +24 -0
- package/plugin/skills/lit-diagram-drawer/references/semantic-patterns.md +27 -0
- package/plugin/skills/lit-diagram-drawer/references/style-guide.md +67 -0
- package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +51 -0
- package/plugin/skills/lit-diagram-drawer/references/type-bar.md +51 -0
- package/plugin/skills/lit-diagram-drawer/references/type-beeswarm.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-bubble.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-bump.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-catalog.json +1433 -0
- package/plugin/skills/lit-diagram-drawer/references/type-data-flow.md +51 -0
- package/plugin/skills/lit-diagram-drawer/references/type-datalake.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-db-schema.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-deployment.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-dp-integration.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-er.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-fishbone.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-flowchart.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-gantt.md +49 -0
- package/plugin/skills/lit-diagram-drawer/references/type-heatmap.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-high-level-vertical.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-high-level.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-import-drawio.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-import-excalidraw.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-import-mermaid.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-it-state.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-journey.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-kanban.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-layers.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-line.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-loop-terminal.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-loop.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-marimekko.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-medallion.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-nested.md +59 -0
- package/plugin/skills/lit-diagram-drawer/references/type-org-chart.md +58 -0
- package/plugin/skills/lit-diagram-drawer/references/type-paved-road-animated.md +72 -0
- package/plugin/skills/lit-diagram-drawer/references/type-polar.md +67 -0
- package/plugin/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +69 -0
- package/plugin/skills/lit-diagram-drawer/references/type-process.md +58 -0
- package/plugin/skills/lit-diagram-drawer/references/type-pyramid.md +59 -0
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +60 -0
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant.md +57 -0
- package/plugin/skills/lit-diagram-drawer/references/type-queue-animated.md +63 -0
- package/plugin/skills/lit-diagram-drawer/references/type-radar.md +57 -0
- package/plugin/skills/lit-diagram-drawer/references/type-ridgeline.md +63 -0
- package/plugin/skills/lit-diagram-drawer/references/type-sankey.md +68 -0
- package/plugin/skills/lit-diagram-drawer/references/type-scatter.md +60 -0
- package/plugin/skills/lit-diagram-drawer/references/type-sequence-oauth.md +66 -0
- package/plugin/skills/lit-diagram-drawer/references/type-sequence.md +63 -0
- package/plugin/skills/lit-diagram-drawer/references/type-slopegraph.md +65 -0
- package/plugin/skills/lit-diagram-drawer/references/type-state-lifecycle.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-state.md +59 -0
- package/plugin/skills/lit-diagram-drawer/references/type-story-map.md +52 -0
- package/plugin/skills/lit-diagram-drawer/references/type-streamgraph.md +53 -0
- package/plugin/skills/lit-diagram-drawer/references/type-swimlane.md +52 -0
- package/plugin/skills/lit-diagram-drawer/references/type-timeline.md +52 -0
- package/plugin/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +57 -0
- package/plugin/skills/lit-diagram-drawer/references/type-tree.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-treemap.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/type-uml-class.md +52 -0
- package/plugin/skills/lit-diagram-drawer/references/type-venn.md +51 -0
- package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +52 -0
- package/plugin/skills/lit-diagram-drawer/references/type-waterfall.md +54 -0
- package/plugin/skills/lit-diagram-drawer/references/verifier-guide.md +76 -0
- package/plugin/skills/lit-diagram-drawer/scripts/block-registry.mjs +43 -0
- package/plugin/skills/lit-diagram-drawer/scripts/brief-contract.mjs +94 -0
- package/plugin/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +15 -0
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +14 -0
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +219 -0
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime-lock/package.json +9 -0
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime.mjs +277 -0
- package/plugin/skills/lit-diagram-drawer/scripts/doctor.mjs +25 -0
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-model.mjs +162 -0
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-source.mjs +147 -0
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +148 -0
- package/plugin/skills/lit-diagram-drawer/scripts/export.mjs +119 -0
- package/plugin/skills/lit-diagram-drawer/scripts/import-common.mjs +85 -0
- package/plugin/skills/lit-diagram-drawer/scripts/import-drawio.mjs +48 -0
- package/plugin/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +234 -0
- package/plugin/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +104 -0
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +115 -0
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +70 -0
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +178 -0
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +137 -0
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +80 -0
- package/plugin/skills/lit-diagram-drawer/scripts/office-safety.mjs +54 -0
- package/plugin/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +11 -0
- package/plugin/skills/lit-diagram-drawer/scripts/verify-all.mjs +85 -0
- package/plugin/skills/lit-diagram-drawer/scripts/verify-brief.mjs +16 -0
- package/plugin/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +27 -0
- package/plugin/skills/lit-diagram-drawer/scripts/verify-motion.mjs +12 -0
- package/plugin/skills/lit-diagram-drawer/scripts/verify-type.mjs +48 -0
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +226 -0
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +147 -0
- package/plugin/skills/lit-docx/NOTICE +35 -0
- package/plugin/skills/lit-docx/SKILL.md +137 -0
- package/plugin/skills/lit-docx/references/build-loop.md +96 -0
- package/plugin/skills/lit-docx/references/components.md +287 -0
- package/plugin/skills/lit-docx/references/direction-step.md +339 -0
- package/plugin/skills/lit-docx/references/examples/01-report-ko.md +166 -0
- package/plugin/skills/lit-docx/references/examples/02-brief-ko.md +96 -0
- package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +170 -0
- package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +141 -0
- package/plugin/skills/lit-docx/references/examples/05-memo-en.md +56 -0
- package/plugin/skills/lit-docx/references/examples/06-journal-en.md +129 -0
- package/plugin/skills/lit-docx/references/examples/07-report-en.md +123 -0
- package/plugin/skills/lit-docx/references/examples/08-proposal-en.md +122 -0
- package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +40 -0
- package/plugin/skills/lit-docx/references/frontmatter_schema.md +94 -0
- package/plugin/skills/lit-docx/references/journal_style_spec.md +89 -0
- package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +43 -0
- package/plugin/skills/lit-docx/references/page-composition.md +319 -0
- package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +58 -0
- package/plugin/skills/lit-docx/references/slop_rules.md +88 -0
- package/plugin/skills/lit-docx/references/tonalities/brief.md +170 -0
- package/plugin/skills/lit-docx/references/tonalities/journal.md +173 -0
- package/plugin/skills/lit-docx/references/tonalities/manual.md +182 -0
- package/plugin/skills/lit-docx/references/tonalities/memo.md +171 -0
- package/plugin/skills/lit-docx/references/tonalities/proposal.md +181 -0
- package/plugin/skills/lit-docx/references/tonalities/report.md +199 -0
- package/plugin/skills/lit-docx/scripts/clean_markdown.py +95 -0
- package/plugin/skills/lit-docx/scripts/convert_md_to_docx.py +1395 -0
- package/plugin/skills/lit-docx/scripts/convert_md_to_pdf.py +301 -0
- package/plugin/skills/lit-docx/scripts/convert_pdf.py +139 -0
- package/plugin/skills/lit-docx/scripts/docx_design.py +2449 -0
- package/plugin/skills/lit-docx/scripts/docx_layout.py +959 -0
- package/plugin/skills/lit-docx/scripts/edit_docx.py +306 -0
- package/plugin/skills/lit-docx/scripts/embed_images.py +78 -0
- package/plugin/skills/lit-docx/scripts/generate_docx_templates.py +500 -0
- package/plugin/skills/lit-docx/scripts/pdf_fonts.py +83 -0
- package/plugin/skills/lit-docx/scripts/qa_docx.py +234 -0
- package/plugin/skills/lit-docx/scripts/slop_lint.py +573 -0
- package/plugin/skills/lit-docx/scripts/visual_audit.py +48 -0
- package/plugin/skills/lit-docx/templates/docx/acs.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/elsevier.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/ieee.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/nature.docx +0 -0
- package/plugin/skills/lit-docx/templates/latex/acs/README.md +5 -0
- package/plugin/skills/lit-docx/templates/latex/acs/template.tex +41 -0
- package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +5 -0
- package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +42 -0
- package/plugin/skills/lit-docx/templates/latex/ieee/README.md +5 -0
- package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +41 -0
- package/plugin/skills/lit-docx/templates/latex/korean-generic/README.md +5 -0
- package/plugin/skills/lit-docx/templates/latex/korean-generic/template.tex +41 -0
- package/plugin/skills/lit-docx/templates/latex/nature/README.md +5 -0
- package/plugin/skills/lit-docx/templates/latex/nature/template.tex +41 -0
- package/plugin/skills/lit-docx/templates/registry.yaml +1366 -0
- package/plugin/skills/lit-docx/templates/tonalities/brief.yaml +28 -0
- package/plugin/skills/lit-docx/templates/tonalities/journal.yaml +25 -0
- package/plugin/skills/lit-docx/templates/tonalities/manual.yaml +26 -0
- package/plugin/skills/lit-docx/templates/tonalities/memo.yaml +26 -0
- package/plugin/skills/lit-docx/templates/tonalities/proposal.yaml +26 -0
- package/plugin/skills/lit-docx/templates/tonalities/report.yaml +26 -0
- package/plugin/skills/lit-handoff/LICENSE +21 -0
- package/plugin/skills/lit-handoff/SKILL.md +176 -0
- package/plugin/skills/lit-handoff/evals/evals.json +244 -0
- package/plugin/skills/lit-handoff/examples/HANDOFF-example-generic-auth-refactor.md +97 -0
- package/plugin/skills/lit-handoff/reference/PROVENANCE.md +17 -0
- package/plugin/skills/lit-handoff/reference/canonical-handoff.md +199 -0
- package/plugin/skills/lit-handoff/scripts/verify-closure.mjs +50 -0
- package/plugin/skills/lit-handoff/templates/HANDOFF.md +121 -0
- package/plugin/skills/lit-humanizer/NOTICE +160 -0
- package/plugin/skills/lit-humanizer/SKILL.md +226 -0
- package/plugin/skills/lit-humanizer/assets/always-on-rule.md +11 -0
- package/plugin/skills/lit-humanizer/assets/report-skeleton.md +29 -0
- package/plugin/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
- package/plugin/skills/lit-humanizer/bench/prompts.md +81 -0
- package/plugin/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
- package/plugin/skills/lit-humanizer/examples/accessibility-note/before.md +9 -0
- package/plugin/skills/lit-humanizer/examples/api-reference/after.md +10 -0
- package/plugin/skills/lit-humanizer/examples/api-reference/before.md +14 -0
- package/plugin/skills/lit-humanizer/examples/changelog/after.md +8 -0
- package/plugin/skills/lit-humanizer/examples/changelog/before.md +12 -0
- package/plugin/skills/lit-humanizer/examples/code-comments/after.md +11 -0
- package/plugin/skills/lit-humanizer/examples/code-comments/before.md +19 -0
- package/plugin/skills/lit-humanizer/examples/commit/after.md +7 -0
- package/plugin/skills/lit-humanizer/examples/commit/before.md +5 -0
- package/plugin/skills/lit-humanizer/examples/data-release/after.md +9 -0
- package/plugin/skills/lit-humanizer/examples/data-release/before.md +11 -0
- package/plugin/skills/lit-humanizer/examples/english-essay/after.md +5 -0
- package/plugin/skills/lit-humanizer/examples/english-essay/before.md +9 -0
- package/plugin/skills/lit-humanizer/examples/incident-update/after.md +9 -0
- package/plugin/skills/lit-humanizer/examples/incident-update/before.md +9 -0
- package/plugin/skills/lit-humanizer/examples/ko-essay/after.md +5 -0
- package/plugin/skills/lit-humanizer/examples/ko-essay/before.md +11 -0
- package/plugin/skills/lit-humanizer/examples/ko-report/after.md +9 -0
- package/plugin/skills/lit-humanizer/examples/ko-report/before.md +19 -0
- package/plugin/skills/lit-humanizer/examples/ko-slide/after.md +21 -0
- package/plugin/skills/lit-humanizer/examples/ko-slide/before.md +23 -0
- package/plugin/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
- package/plugin/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
- package/plugin/skills/lit-humanizer/examples/policy-faq/after.md +16 -0
- package/plugin/skills/lit-humanizer/examples/policy-faq/before.md +16 -0
- package/plugin/skills/lit-humanizer/examples/pr/after.md +17 -0
- package/plugin/skills/lit-humanizer/examples/pr/before.md +19 -0
- package/plugin/skills/lit-humanizer/examples/project-update/after.md +10 -0
- package/plugin/skills/lit-humanizer/examples/project-update/before.md +9 -0
- package/plugin/skills/lit-humanizer/examples/readme/after.md +19 -0
- package/plugin/skills/lit-humanizer/examples/readme/before.md +23 -0
- package/plugin/skills/lit-humanizer/examples/report/after.md +9 -0
- package/plugin/skills/lit-humanizer/examples/report/before.md +19 -0
- package/plugin/skills/lit-humanizer/examples/research-abstract/after.md +1 -0
- package/plugin/skills/lit-humanizer/examples/research-abstract/before.md +7 -0
- package/plugin/skills/lit-humanizer/examples/slides/after.md +16 -0
- package/plugin/skills/lit-humanizer/examples/slides/before.md +19 -0
- package/plugin/skills/lit-humanizer/examples/troubleshooting/after.md +13 -0
- package/plugin/skills/lit-humanizer/examples/troubleshooting/before.md +13 -0
- package/plugin/skills/lit-humanizer/fixtures/ko-metrics-golden.json +51 -0
- package/plugin/skills/lit-humanizer/fixtures/office/minimal.docx +0 -0
- package/plugin/skills/lit-humanizer/fixtures/office/minimal.pptx +0 -0
- package/plugin/skills/lit-humanizer/fixtures/pledge-cases.json +1341 -0
- package/plugin/skills/lit-humanizer/fixtures/pos-real.txt +26 -0
- package/plugin/skills/lit-humanizer/fixtures/rule-cases.json +312 -0
- package/plugin/skills/lit-humanizer/motion-guide.md +125 -0
- package/plugin/skills/lit-humanizer/references/code-patterns.md +324 -0
- package/plugin/skills/lit-humanizer/references/deliverable-channels.md +123 -0
- package/plugin/skills/lit-humanizer/references/en-patterns-checklist.md +44 -0
- package/plugin/skills/lit-humanizer/references/en-patterns-content.md +245 -0
- package/plugin/skills/lit-humanizer/references/en-patterns-structure.md +389 -0
- package/plugin/skills/lit-humanizer/references/en-patterns.md +58 -0
- package/plugin/skills/lit-humanizer/references/ko-metrics.md +39 -0
- package/plugin/skills/lit-humanizer/references/ko-patterns-a-d.md +667 -0
- package/plugin/skills/lit-humanizer/references/ko-patterns-e-j.md +391 -0
- package/plugin/skills/lit-humanizer/references/ko-patterns.md +40 -0
- package/plugin/skills/lit-humanizer/references/litgravity-fidelity-checklist.md +83 -0
- package/plugin/skills/lit-humanizer/references/litgravity-rewrite-rules.md +74 -0
- package/plugin/skills/lit-humanizer/references/litgravity-style-patterns.md +57 -0
- package/plugin/skills/lit-humanizer/references/prompt-injection-handling.md +29 -0
- package/plugin/skills/lit-humanizer/references/rewrite-playbook.md +67 -0
- package/plugin/skills/lit-humanizer/references/taxonomy.md +190 -0
- package/plugin/skills/lit-humanizer/rules.json +938 -0
- package/plugin/skills/lit-humanizer/scripts/artifact-text.mjs +41 -0
- package/plugin/skills/lit-humanizer/scripts/core.mjs +313 -0
- package/plugin/skills/lit-humanizer/scripts/detect.mjs +79 -0
- package/plugin/skills/lit-humanizer/scripts/extract_office_text.py +109 -0
- package/plugin/skills/lit-humanizer/scripts/ko-metrics.mjs +147 -0
- package/plugin/skills/lit-humanizer/scripts/scan-input.mjs +57 -0
- package/plugin/skills/lit-humanizer/scripts/test-fixtures.mjs +217 -0
- package/plugin/skills/lit-humanizer/scripts/test-ko-metrics.mjs +28 -0
- package/plugin/skills/lit-init/SKILL.md +189 -0
- package/plugin/skills/lit-init/references/deep-repository-map.md +95 -0
- package/plugin/skills/lit-init/templates/agents-child.md +20 -0
- package/plugin/skills/lit-init/templates/agents-root.md +35 -0
- package/plugin/skills/lit-loop/SKILL.md +217 -0
- package/plugin/skills/lit-loop/references/adversarial-classes.md +27 -0
- package/plugin/skills/lit-loop/references/ledger-and-records.md +47 -0
- package/plugin/skills/lit-plan/SKILL.md +220 -0
- package/plugin/skills/lit-plan/references/agy-surfaces.md +29 -0
- package/plugin/skills/lit-plan/references/intent-routes.md +118 -0
- package/plugin/skills/lit-plan/references/plan-contract.md +112 -0
- package/plugin/skills/lit-plan/references/review-gates.md +51 -0
- package/plugin/skills/lit-plan/references/risk-and-recovery.md +56 -0
- package/plugin/skills/lit-plan/references/start-work-handoff-contract.md +66 -0
- package/plugin/skills/lit-plan/scripts/check-plan.mjs +163 -0
- package/plugin/skills/lit-plan/templates/draft.md +41 -0
- package/plugin/skills/lit-plan/templates/plan.md +101 -0
- package/plugin/skills/lit-pptx/NOTICE +35 -0
- package/plugin/skills/lit-pptx/SKILL.md +147 -0
- package/plugin/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
- package/plugin/skills/lit-pptx/assets/azure/circle-md.png +0 -0
- package/plugin/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-a.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-b.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-c.png +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/OFL.txt +94 -0
- package/plugin/skills/lit-pptx/fonts/a2z/SOURCE.md +29 -0
- package/plugin/skills/lit-pptx/fonts/pretendard/OFL.txt +94 -0
- package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/provenance.json +78 -0
- package/plugin/skills/lit-pptx/references/agents/analyst.md +71 -0
- package/plugin/skills/lit-pptx/references/agents/antithesis.md +77 -0
- package/plugin/skills/lit-pptx/references/agents/architect.md +57 -0
- package/plugin/skills/lit-pptx/references/agents/critic.md +58 -0
- package/plugin/skills/lit-pptx/references/agents/synthesizer.md +56 -0
- package/plugin/skills/lit-pptx/references/agents/thesis.md +53 -0
- package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +157 -0
- package/plugin/skills/lit-pptx/references/authoring-guide.md +341 -0
- package/plugin/skills/lit-pptx/references/build-loop.md +117 -0
- package/plugin/skills/lit-pptx/references/consensus-protocol.md +123 -0
- package/plugin/skills/lit-pptx/references/data-display-cookbook.md +153 -0
- package/plugin/skills/lit-pptx/references/density-and-fill.md +232 -0
- package/plugin/skills/lit-pptx/references/design-system-azure.md +90 -0
- package/plugin/skills/lit-pptx/references/direction-step.md +245 -0
- package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +211 -0
- package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +147 -0
- package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +199 -0
- package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +203 -0
- package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +178 -0
- package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +199 -0
- package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +192 -0
- package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +175 -0
- package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +204 -0
- package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +179 -0
- package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +164 -0
- package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +174 -0
- package/plugin/skills/lit-pptx/references/interview-protocol.md +132 -0
- package/plugin/skills/lit-pptx/references/layout-families.md +298 -0
- package/plugin/skills/lit-pptx/references/stages/autopilot.md +88 -0
- package/plugin/skills/lit-pptx/references/stages/interview.md +84 -0
- package/plugin/skills/lit-pptx/references/stages/plan.md +83 -0
- package/plugin/skills/lit-pptx/references/title-treatments.md +165 -0
- package/plugin/skills/lit-pptx/references/tonalities/atlas.md +152 -0
- package/plugin/skills/lit-pptx/references/tonalities/chalk.md +163 -0
- package/plugin/skills/lit-pptx/references/tonalities/gazette.md +173 -0
- package/plugin/skills/lit-pptx/references/tonalities/ledger.md +178 -0
- package/plugin/skills/lit-pptx/references/tonalities/night.md +174 -0
- package/plugin/skills/lit-pptx/references/tonalities/paper.md +167 -0
- package/plugin/skills/lit-pptx/references/tonalities/signal.md +157 -0
- package/plugin/skills/lit-pptx/references/tonalities/studio.md +162 -0
- package/plugin/skills/lit-pptx/scripts/compile-deck.js +464 -0
- package/plugin/skills/lit-pptx/scripts/craft_extras.py +1033 -0
- package/plugin/skills/lit-pptx/scripts/deck_craft.py +363 -0
- package/plugin/skills/lit-pptx/scripts/embed_fonts.py +215 -0
- package/plugin/skills/lit-pptx/scripts/forbidden-terms.json +55 -0
- package/plugin/skills/lit-pptx/scripts/layout_inventory.py +418 -0
- package/plugin/skills/lit-pptx/scripts/learn_template.py +446 -0
- package/plugin/skills/lit-pptx/scripts/lib/derive-palette.js +176 -0
- package/plugin/skills/lit-pptx/scripts/lib/directive-parser.js +244 -0
- package/plugin/skills/lit-pptx/scripts/lib/font-map.js +79 -0
- package/plugin/skills/lit-pptx/scripts/lib/gen-bg.js +86 -0
- package/plugin/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +37 -0
- package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +521 -0
- package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +1119 -0
- package/plugin/skills/lit-pptx/scripts/lib/markdown-loader.js +138 -0
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-html.js +356 -0
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +2240 -0
- package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +3559 -0
- package/plugin/skills/lit-pptx/scripts/lib/runtime-require.js +28 -0
- package/plugin/skills/lit-pptx/scripts/lib/slide-ast.js +565 -0
- package/plugin/skills/lit-pptx/scripts/lib/spec-validator.js +94 -0
- package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +679 -0
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package-lock.json +793 -0
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package.json +12 -0
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/requirements.lock +15 -0
- package/plugin/skills/lit-pptx/scripts/office-runtime.mjs +279 -0
- package/plugin/skills/lit-pptx/scripts/office_data.py +493 -0
- package/plugin/skills/lit-pptx/scripts/office_runtime_bootstrap.py +73 -0
- package/plugin/skills/lit-pptx/scripts/ooxml_integrity.py +199 -0
- package/plugin/skills/lit-pptx/scripts/package.json +4 -0
- package/plugin/skills/lit-pptx/scripts/qa_deck.py +795 -0
- package/plugin/skills/lit-pptx/scripts/render_pages.py +116 -0
- package/plugin/skills/lit-pptx/scripts/validate_pptx.py +230 -0
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +275 -0
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +263 -0
- package/plugin/skills/lit-pptx/specs/slide-ast-v1.schema.json +229 -0
- package/plugin/skills/lit-pptx/specs/slide-ast-v2.schema.json +144 -0
- package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +405 -0
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +146 -0
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +454 -0
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +40 -0
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +154 -0
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +475 -0
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +40 -0
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +179 -0
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +299 -0
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +45 -0
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +181 -0
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +299 -0
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +44 -0
- package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +92 -0
- package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +97 -0
- package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +93 -0
- package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +94 -0
- package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +93 -0
- package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +98 -0
- package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +94 -0
- package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +92 -0
- package/plugin/skills/lit-recap/SKILL.md +168 -0
- package/plugin/skills/lit-recap/references/recap-shapes.md +166 -0
- package/plugin/skills/lit-recap/references/source-reading.md +105 -0
- package/plugin/skills/lit-recap/references/stale-state-checks.md +74 -0
- package/plugin/skills/lit-scientific-visualization/LICENSE +21 -0
- package/plugin/skills/lit-scientific-visualization/SKILL.md +165 -0
- package/plugin/skills/lit-scientific-visualization/assets/color_palettes.py +197 -0
- package/plugin/skills/lit-scientific-visualization/assets/nature.mplstyle +75 -0
- package/plugin/skills/lit-scientific-visualization/assets/presentation.mplstyle +74 -0
- package/plugin/skills/lit-scientific-visualization/assets/publication.mplstyle +78 -0
- package/plugin/skills/lit-scientific-visualization/evals/evals.json +158 -0
- package/plugin/skills/lit-scientific-visualization/references/canonical-workflow.md +278 -0
- package/plugin/skills/lit-scientific-visualization/references/color_palettes.md +380 -0
- package/plugin/skills/lit-scientific-visualization/references/journal_requirements.md +359 -0
- package/plugin/skills/lit-scientific-visualization/references/matplotlib_examples.md +608 -0
- package/plugin/skills/lit-scientific-visualization/references/mdanalysis_martini_visualization.md +85 -0
- package/plugin/skills/lit-scientific-visualization/references/publication_guidelines.md +217 -0
- package/plugin/skills/lit-scientific-visualization/references/seaborn_for_publications.md +293 -0
- package/plugin/skills/lit-scientific-visualization/scripts/figure_export.py +238 -0
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime-requirements.lock +23 -0
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime.mjs +230 -0
- package/plugin/skills/lit-scientific-visualization/scripts/style_presets.py +467 -0
- package/plugin/skills/lit-scientific-visualization/tests/test_figure_export.py +51 -0
- package/plugin/skills/lit-scientific-visualization/tests/test_style_presets.py +114 -0
- package/plugin/skills/lit-team/SKILL.md +118 -0
- package/plugin/skills/lit-team/references/member-briefs.md +67 -0
- package/plugin/skills/lit-team/references/team-orchestration.md +129 -0
- package/plugin/skills/lit-team/scripts/owner-lock.mjs +330 -0
- package/plugin/skills/lit-team/scripts/secure-path.mjs +24 -0
- package/plugin/skills/lit-team/scripts/state-root.mjs +55 -0
- package/plugin/skills/lit-team/scripts/team.mjs +629 -0
- package/plugin/skills/lit-typographic-motion/SKILL.md +196 -0
- package/plugin/skills/lit-typographic-motion/engine/NOTICE +23 -0
- package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +62 -0
- package/plugin/skills/lit-typographic-motion/engine/audio/beat_grid.py +56 -0
- package/plugin/skills/lit-typographic-motion/engine/audio/requirements.lock +1084 -0
- package/plugin/skills/lit-typographic-motion/engine/core/constants.mjs +246 -0
- package/plugin/skills/lit-typographic-motion/engine/core/contrast.mjs +90 -0
- package/plugin/skills/lit-typographic-motion/engine/core/events.mjs +46 -0
- package/plugin/skills/lit-typographic-motion/engine/core/flash.mjs +211 -0
- package/plugin/skills/lit-typographic-motion/engine/core/gate-rules.mjs +550 -0
- package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +123 -0
- package/plugin/skills/lit-typographic-motion/engine/core/text.mjs +100 -0
- package/plugin/skills/lit-typographic-motion/engine/core/timeline.mjs +142 -0
- package/plugin/skills/lit-typographic-motion/engine/core/util.mjs +167 -0
- package/plugin/skills/lit-typographic-motion/engine/core/voices.mjs +19 -0
- package/plugin/skills/lit-typographic-motion/engine/models/word-timing.json +198 -0
- package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +108 -0
- package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +158 -0
- package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +331 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +102 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +209 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +347 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover-image.mjs +141 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +76 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +106 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +32 -0
- package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +374 -0
- package/plugin/skills/lit-typographic-motion/engine/node/coverage.mjs +83 -0
- package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +170 -0
- package/plugin/skills/lit-typographic-motion/engine/node/encode.mjs +105 -0
- package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +36 -0
- package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +164 -0
- package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +593 -0
- package/plugin/skills/lit-typographic-motion/engine/node/png.mjs +112 -0
- package/plugin/skills/lit-typographic-motion/engine/node/report.mjs +66 -0
- package/plugin/skills/lit-typographic-motion/engine/node/runtime.mjs +349 -0
- package/plugin/skills/lit-typographic-motion/engine/node/session.mjs +145 -0
- package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +60 -0
- package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +642 -0
- package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +179 -0
- package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +122 -0
- package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +295 -0
- package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +283 -0
- package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +503 -0
- package/plugin/skills/lit-typographic-motion/engine/node/stills.mjs +100 -0
- package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +344 -0
- package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +146 -0
- package/plugin/skills/lit-typographic-motion/engine/node/ws-server.mjs +132 -0
- package/plugin/skills/lit-typographic-motion/engine/package-lock.json +25 -0
- package/plugin/skills/lit-typographic-motion/engine/package.json +10 -0
- package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +37 -0
- package/plugin/skills/lit-typographic-motion/engine/stage/init.js +288 -0
- package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +106 -0
- package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +157 -0
- package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +701 -0
- package/plugin/skills/lit-typographic-motion/engine/web/boot.mjs +123 -0
- package/plugin/skills/lit-typographic-motion/engine/web/engine.mjs +281 -0
- package/plugin/skills/lit-typographic-motion/engine/web/gl.mjs +319 -0
- package/plugin/skills/lit-typographic-motion/engine/web/glsl-common.mjs +78 -0
- package/plugin/skills/lit-typographic-motion/engine/web/index.html +6 -0
- package/plugin/skills/lit-typographic-motion/engine/web/lines.mjs +112 -0
- package/plugin/skills/lit-typographic-motion/engine/web/passes/crt.mjs +98 -0
- package/plugin/skills/lit-typographic-motion/engine/web/passes/dither.mjs +49 -0
- package/plugin/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +77 -0
- package/plugin/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +61 -0
- package/plugin/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +88 -0
- package/plugin/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +86 -0
- package/plugin/skills/lit-typographic-motion/engine/web/post.mjs +165 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scale.mjs +15 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scene.mjs +82 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +30 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/index.mjs +16 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +47 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +45 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +29 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +73 -0
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +73 -0
- package/plugin/skills/lit-typographic-motion/engine/web/stroke.mjs +236 -0
- package/plugin/skills/lit-typographic-motion/engine/web/type.mjs +180 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/OFL.txt +93 -0
- package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +93 -0
- package/plugin/skills/lit-typographic-motion/fonts/manifest.json +455 -0
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +93 -0
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/CREDITS +42 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +216 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +216 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +216 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +216 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +217 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/OFL.txt +91 -0
- package/plugin/skills/lit-typographic-motion/fonts/vt323/OFL.txt +93 -0
- package/plugin/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +16 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +27 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +16 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +17 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +17 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +18 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +17 -0
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +30 -0
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +67 -0
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/index.html +152 -0
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +95 -0
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/index.html +202 -0
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +67 -0
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/index.html +100 -0
- package/plugin/skills/lit-typographic-motion/references/brief-schema.md +119 -0
- package/plugin/skills/lit-typographic-motion/references/cover.md +473 -0
- package/plugin/skills/lit-typographic-motion/references/craft-loop.md +100 -0
- package/plugin/skills/lit-typographic-motion/references/engine-contract.md +124 -0
- package/plugin/skills/lit-typographic-motion/references/look.md +157 -0
- package/plugin/skills/lit-typographic-motion/references/runtime.md +100 -0
- package/plugin/skills/lit-typographic-motion/references/sound.md +121 -0
- package/plugin/skills/lit-typographic-motion/references/stage.md +239 -0
- package/plugin/skills/lit-typographic-motion/references/style-bibles.md +130 -0
- package/plugin/skills/lit-typographic-motion/references/treatment.md +166 -0
- package/plugin/skills/lit-typographic-motion/references/type-craft.md +87 -0
- package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +99 -0
- package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +95 -0
- package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +165 -0
- package/plugin/skills/litgoal/SKILL.md +267 -0
- package/plugin/skills/litgoal/references/close-gate.md +28 -0
- package/plugin/skills/litgoal/references/host-goal-binding.md +32 -0
- package/plugin/skills/litgoal/scripts/check-goal.mjs +116 -0
- package/plugin/skills/litgoal/templates/goal.json +23 -0
- package/plugin/skills/litresearch/ATTRIBUTION.md +42 -0
- package/plugin/skills/litresearch/SKILL.md +229 -0
- package/plugin/skills/litresearch/references/disputed-claims.md +103 -0
- package/plugin/skills/litresearch/references/lane-operations.md +96 -0
- package/plugin/skills/litresearch/references/ledger-and-evidence.md +120 -0
- package/plugin/skills/litresearch/references/pitfalls.md +56 -0
- package/plugin/skills/litresearch/references/query-craft.md +67 -0
- package/plugin/skills/litresearch/references/question-playbooks.md +74 -0
- package/plugin/skills/litresearch/references/report-formats.md +136 -0
- package/plugin/skills/litresearch/references/source-verdict-checklist.md +81 -0
- package/plugin/skills/litresearch/references/worked-examples.md +36 -0
- package/plugin/skills/litwork/SKILL.md +190 -0
- package/plugin/skills/litwork/references/execution-details.md +93 -0
- package/plugin/skills/litwork/references/qa-channel-recipes.md +83 -0
- package/plugin/skills/litwork/references/tier-and-criteria.md +68 -0
- package/plugin/skills/litwork/templates/notes.md +29 -0
- package/plugin/skills/lsp/SKILL.md +166 -0
- package/plugin/skills/lsp/references/cli-recipes.md +154 -0
- package/plugin/skills/lsp/references/runtime-triage.md +122 -0
- package/plugin/skills/lsp/scripts/diagnostics.mjs +340 -0
- package/plugin/skills/lsp/scripts/tsserver-query.mjs +83 -0
- package/plugin/skills/lsp-setup/SKILL.md +241 -0
- package/plugin/skills/lsp-setup/references/bash/README.md +92 -0
- package/plugin/skills/lsp-setup/references/c-cpp/README.md +92 -0
- package/plugin/skills/lsp-setup/references/csharp/README.md +93 -0
- package/plugin/skills/lsp-setup/references/dart/README.md +88 -0
- package/plugin/skills/lsp-setup/references/elixir/README.md +87 -0
- package/plugin/skills/lsp-setup/references/go/README.md +93 -0
- package/plugin/skills/lsp-setup/references/haskell/README.md +89 -0
- package/plugin/skills/lsp-setup/references/java/README.md +89 -0
- package/plugin/skills/lsp-setup/references/julia/README.md +85 -0
- package/plugin/skills/lsp-setup/references/kotlin/README.md +88 -0
- package/plugin/skills/lsp-setup/references/lua/README.md +92 -0
- package/plugin/skills/lsp-setup/references/php/README.md +92 -0
- package/plugin/skills/lsp-setup/references/python/README.md +104 -0
- package/plugin/skills/lsp-setup/references/ruby/README.md +90 -0
- package/plugin/skills/lsp-setup/references/rust/README.md +91 -0
- package/plugin/skills/lsp-setup/references/swift/README.md +91 -0
- package/plugin/skills/lsp-setup/references/terraform/README.md +92 -0
- package/plugin/skills/lsp-setup/references/typescript/README.md +109 -0
- package/plugin/skills/lsp-setup/references/yaml/README.md +93 -0
- package/plugin/skills/lsp-setup/references/zig/README.md +81 -0
- package/plugin/skills/lsp-setup/scripts/detect-lsp.mjs +129 -0
- package/plugin/skills/lsp-setup/scripts/lsp-server-table.mjs +192 -0
- package/plugin/skills/lsp-setup/scripts/verify-lsp.mjs +203 -0
- package/plugin/skills/readme-studio/SKILL.md +111 -0
- package/plugin/skills/readme-studio/references/decoration-and-navigation.md +55 -0
- package/plugin/skills/readme-studio/references/facts-and-assembly.md +19 -0
- package/plugin/skills/readme-studio/references/production-interview.md +11 -0
- package/plugin/skills/readme-studio/references/render-and-deliver.md +44 -0
- package/plugin/skills/readme-studio/references/type-and-background.md +23 -0
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package-lock.json +133 -0
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package.json +6 -0
- package/plugin/skills/readme-studio/scripts/readme-runtime.mjs +77 -0
- package/plugin/skills/readme-studio/scripts/validate-readme-facts.mjs +28 -0
- package/plugin/skills/readme-studio/templates/cover-source.json +21 -0
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.html +30 -0
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.motion.json +1 -0
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +2017 -0
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package.json +8 -0
- package/plugin/skills/readme-studio/templates/readme-cover-section.md +75 -0
- package/plugin/skills/readme-studio/templates/readme-facts.json +4 -0
- package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +3783 -0
- package/plugin/skills/readme-studio/templates/remotion-cover/package.json +7 -0
- package/plugin/skills/readme-studio/templates/remotion-cover/src/index.tsx +36 -0
- package/plugin/skills/readme-studio/templates/typography/package-lock.json +133 -0
- package/plugin/skills/readme-studio/templates/typography/package.json +6 -0
- package/plugin/skills/readme-studio/templates/typography/safe-files.mjs +57 -0
- package/plugin/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +63 -0
- package/plugin/skills/refactor/SKILL.md +228 -0
- package/plugin/skills/refactor/references/evidence-and-stops.md +107 -0
- package/plugin/skills/refactor/references/language-and-surface-checks.md +90 -0
- package/plugin/skills/refactor/references/parallel-dispatch.md +66 -0
- package/plugin/skills/refactor/references/phase-templates.md +172 -0
- package/plugin/skills/refactor/references/safe-change-playbook.md +151 -0
- package/plugin/skills/review-work/SKILL.md +227 -0
- package/plugin/skills/review-work/references/agy-plugin-review.md +38 -0
- package/plugin/skills/review-work/references/lane-briefs.md +62 -0
- package/plugin/skills/review-work/references/lane-context.md +44 -0
- package/plugin/skills/review-work/references/lane-goal.md +51 -0
- package/plugin/skills/review-work/references/lane-output-examples.md +79 -0
- package/plugin/skills/review-work/references/lane-qa.md +54 -0
- package/plugin/skills/review-work/references/lane-quality.md +39 -0
- package/plugin/skills/review-work/references/lane-security.md +38 -0
- package/plugin/skills/review-work/references/plan-review-checklist.md +142 -0
- package/plugin/skills/review-work/references/review-rules.md +54 -0
- package/plugin/skills/review-work/references/verdict-templates.md +152 -0
- package/plugin/skills/review-work/references/worked-reviews.md +85 -0
- package/plugin/skills/review-work/scripts/check-lanes.mjs +109 -0
- package/plugin/skills/rules/SKILL.md +175 -0
- package/plugin/skills/rules/references/loading-facts.md +55 -0
- package/plugin/skills/rules/templates/receipt.md +34 -0
- package/plugin/skills/start-work/SKILL.md +191 -0
- package/plugin/skills/start-work/references/admission-and-selection.md +39 -0
- package/plugin/skills/start-work/references/delegation-and-recovery.md +63 -0
- package/plugin/skills/start-work/references/execution-templates.md +131 -0
- package/plugin/skills/start-work/references/final-wave.md +47 -0
- package/plugin/skills/start-work/references/gate-details.md +79 -0
- package/plugin/skills/start-work/scripts/ledger-append.mjs +58 -0
- package/plugin/skills/start-work/scripts/next-row.mjs +99 -0
- package/plugin/skills/structural-search/SKILL.md +223 -0
- package/plugin/skills/structural-search/references/diagnostics.md +289 -0
- package/plugin/skills/structural-search/references/patterns-and-rules.md +356 -0
- package/plugin/skills/structural-search/references/rewrite-safety.md +230 -0
- package/plugin/skills/visual-qa/SKILL.md +136 -0
- package/plugin/skills/visual-qa/references/breakage-catalogue.md +70 -0
- package/plugin/skills/visual-qa/references/capture-playbook.md +96 -0
- package/plugin/skills/visual-qa/references/complete-contract.md +411 -0
- package/plugin/skills/visual-qa/references/korean-and-mixed-script-checks.md +50 -0
- package/plugin/skills/visual-qa/references/reviewer-charters.md +70 -0
- package/plugin/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +305 -0
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +291 -0
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +311 -0
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +235 -0
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +208 -0
- package/plugin/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +66 -0
- package/plugin/skills/visual-qa/scripts/ansi.ts +17 -0
- package/plugin/skills/visual-qa/scripts/cli.mjs +101 -0
- package/plugin/skills/visual-qa/scripts/cli.ts +96 -0
- package/plugin/skills/visual-qa/scripts/design-contract-shape.mjs +448 -0
- package/plugin/skills/visual-qa/scripts/east-asian-width.ts +72 -0
- package/plugin/skills/visual-qa/scripts/errors.mjs +12 -0
- package/plugin/skills/visual-qa/scripts/evidence-io.mjs +184 -0
- package/plugin/skills/visual-qa/scripts/evidence-semantic.mjs +95 -0
- package/plugin/skills/visual-qa/scripts/evidence-shape.mjs +163 -0
- package/plugin/skills/visual-qa/scripts/evidence.mjs +421 -0
- package/plugin/skills/visual-qa/scripts/image-diff.mjs +89 -0
- package/plugin/skills/visual-qa/scripts/image-diff.ts +109 -0
- package/plugin/skills/visual-qa/scripts/png-chunks.mjs +107 -0
- package/plugin/skills/visual-qa/scripts/png-crc.ts +27 -0
- package/plugin/skills/visual-qa/scripts/png-decode.mjs +143 -0
- package/plugin/skills/visual-qa/scripts/png-decode.ts +206 -0
- package/plugin/skills/visual-qa/scripts/png-synth.ts +57 -0
- package/plugin/skills/visual-qa/scripts/review-rules.mjs +137 -0
- package/plugin/skills/visual-qa/scripts/strict-json.mjs +143 -0
- package/plugin/skills/visual-qa/scripts/terminal-text.mjs +117 -0
- package/plugin/skills/visual-qa/scripts/tui-check.mjs +74 -0
- package/plugin/skills/visual-qa/scripts/tui-grid.ts +88 -0
- package/plugin/skills/visual-qa/scripts/types.ts +54 -0
- package/plugin/skills/wikify/LICENSE +21 -0
- package/plugin/skills/wikify/PROVENANCE.md +31 -0
- package/plugin/skills/wikify/SKILL.md +245 -0
- package/plugin/skills/wikify/assets/home-template.md +44 -0
- package/plugin/skills/wikify/assets/maintenance-report-template.md +46 -0
- package/plugin/skills/wikify/assets/paper-source-note-template.md +137 -0
- package/plugin/skills/wikify/assets/source-note-template.md +45 -0
- package/plugin/skills/wikify/assets/wiki-rules-template.md +117 -0
- package/plugin/skills/wikify/modes/ingest.md +40 -0
- package/plugin/skills/wikify/modes/init.md +50 -0
- package/plugin/skills/wikify/modes/lint.md +43 -0
- package/plugin/skills/wikify/modes/query.md +35 -0
- package/plugin/skills/wikify/modes/save.md +43 -0
- package/plugin/skills/wikify/references/bridge-and-promotion.md +70 -0
- package/plugin/skills/wikify/references/capture-review-protocol.md +78 -0
- package/plugin/skills/wikify/references/knowledge-script-contract.md +95 -0
- package/plugin/skills/wikify/references/lint-and-maintenance.md +83 -0
- package/plugin/skills/wikify/references/paper-notes.md +56 -0
- package/plugin/skills/wikify/references/query-protocol.md +58 -0
- package/plugin/skills/wikify/references/source-notes-and-citations.md +71 -0
- package/plugin/skills/wikify/references/wiki-layout.md +152 -0
- package/plugin/skills/wikify/scripts/wikify-knowledge.mjs +483 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// The cover gate: G0 determinism, G1 budget and loop, G2 motion energy, G3 anti-slide, G4 seam,
|
|
2
|
+
// G5 title contrast and G6 title glyph height, measured on the DECODED cover (animated WebP, or the
|
|
3
|
+
// GIF fallback), never only on the frames that went into the encoder. Every metric runs on a fixed
|
|
4
|
+
// time grid, because an encoder merges identical frames into one long frame and frame-count
|
|
5
|
+
// statistics would make a slide film look busy. Two tiers: FLOOR fails the cover, TARGET is the
|
|
6
|
+
// cover-mode goal and `--strict` fails on it too, the 2 MiB size target included. Thresholds live
|
|
7
|
+
// in core/constants.mjs (COVER).
|
|
8
|
+
import { createHash } from "node:crypto";
|
|
9
|
+
import { spawnSync } from "node:child_process";
|
|
10
|
+
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
11
|
+
import path from "node:path";
|
|
12
|
+
import { COVER } from "../core/constants.mjs";
|
|
13
|
+
import { lumaGrid } from "./cover-image.mjs";
|
|
14
|
+
import { findFfmpeg } from "./encode.mjs";
|
|
15
|
+
import { decodePng } from "./png.mjs";
|
|
16
|
+
import { decodeWebp } from "./webp.mjs";
|
|
17
|
+
import { describeSpawn } from "../../../../lib/host-exec.mjs";
|
|
18
|
+
|
|
19
|
+
const median = (xs) => {
|
|
20
|
+
const s = [...xs].sort((a, b) => a - b);
|
|
21
|
+
const m = s.length >> 1;
|
|
22
|
+
return s.length % 2 ? s[m] : (s[m - 1] + s[m]) / 2;
|
|
23
|
+
};
|
|
24
|
+
const pct = (xs, p) => {
|
|
25
|
+
const s = [...xs].sort((a, b) => a - b);
|
|
26
|
+
return s[Math.min(s.length - 1, Math.max(0, Math.round(p * (s.length - 1))))];
|
|
27
|
+
};
|
|
28
|
+
const meanAbs = (a, b) => {
|
|
29
|
+
let s = 0;
|
|
30
|
+
for (let i = 0; i < a.length; i++) s += Math.abs(a[i] - b[i]);
|
|
31
|
+
return s / a.length / 255;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const toRgba = ({ width, height, channels, pixels }) => {
|
|
35
|
+
if (channels === 4) return pixels;
|
|
36
|
+
const out = Buffer.alloc(width * height * 4, 255);
|
|
37
|
+
for (let i = 0; i < width * height; i++) for (let c = 0; c < 3; c++) out[i * 4 + c] = pixels[i * channels + (channels === 1 ? 0 : c)];
|
|
38
|
+
return out;
|
|
39
|
+
};
|
|
40
|
+
export const readPngRgba = (file) => {
|
|
41
|
+
const png = decodePng(readFileSync(file));
|
|
42
|
+
return { width: png.width, height: png.height, rgba: toRgba(png) };
|
|
43
|
+
};
|
|
44
|
+
export const pngFrames = (dir, prefix = "f") => (existsSync(dir) ? readdirSync(dir).filter((f) => f.startsWith(prefix) && f.endsWith(".png")).sort().map((f) => path.join(dir, f)) : []);
|
|
45
|
+
|
|
46
|
+
/** GIF container facts the decoder pipe does not give back: per-frame delays (ms) and the loop count. */
|
|
47
|
+
export function gifTiming(bytes) {
|
|
48
|
+
if (bytes.toString("latin1", 0, 3) !== "GIF") throw new Error("not a GIF file");
|
|
49
|
+
const delays = [];
|
|
50
|
+
let loop = null;
|
|
51
|
+
let pending = 100;
|
|
52
|
+
let o = 13;
|
|
53
|
+
if (bytes[10] & 0x80) o += 3 * (1 << ((bytes[10] & 0x07) + 1));
|
|
54
|
+
const skipBlocks = (p) => {
|
|
55
|
+
while (p < bytes.length && bytes[p] !== 0) p += bytes[p] + 1;
|
|
56
|
+
return p + 1;
|
|
57
|
+
};
|
|
58
|
+
while (o < bytes.length) {
|
|
59
|
+
const sep = bytes[o];
|
|
60
|
+
if (sep === 0x3b) break;
|
|
61
|
+
if (sep === 0x21) {
|
|
62
|
+
const label = bytes[o + 1];
|
|
63
|
+
if (label === 0xf9) pending = 10 * bytes.readUInt16LE(o + 4);
|
|
64
|
+
if (label === 0xff && bytes.toString("latin1", o + 3, o + 14) === "NETSCAPE2.0") loop = bytes.readUInt16LE(o + 16);
|
|
65
|
+
o = skipBlocks(o + 2);
|
|
66
|
+
} else if (sep === 0x2c) {
|
|
67
|
+
let p = o + 10;
|
|
68
|
+
if (bytes[o + 9] & 0x80) p += 3 * (1 << ((bytes[o + 9] & 0x07) + 1));
|
|
69
|
+
o = skipBlocks(p + 1);
|
|
70
|
+
delays.push(pending > 0 ? pending : 100);
|
|
71
|
+
pending = 100;
|
|
72
|
+
} else break;
|
|
73
|
+
}
|
|
74
|
+
return { delays, loop, width: bytes.readUInt16LE(6), height: bytes.readUInt16LE(8) };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Load a cover for the gate: { lumas, delays, width, height, loop, bytes, format, kept }. `keep(i,
|
|
79
|
+
* durationMs)` is called once per decoded frame, in order, and says which frames to keep whole (RGBA)
|
|
80
|
+
* for the sheet, the poster and the frame-0 checks.
|
|
81
|
+
*/
|
|
82
|
+
export function loadCover(input, { fps = 16, keep = () => false, env = process.env } = {}) {
|
|
83
|
+
const kept = new Map();
|
|
84
|
+
const lumas = [];
|
|
85
|
+
if (statSync(input).isDirectory()) {
|
|
86
|
+
const files = pngFrames(input);
|
|
87
|
+
let width = 0;
|
|
88
|
+
let height = 0;
|
|
89
|
+
files.forEach((f, i) => {
|
|
90
|
+
const img = readPngRgba(f);
|
|
91
|
+
({ width, height } = img);
|
|
92
|
+
lumas.push(lumaGrid(img.rgba, width, height).luma);
|
|
93
|
+
if (keep(i, 1000 / fps)) kept.set(i, img.rgba);
|
|
94
|
+
});
|
|
95
|
+
return { lumas, delays: files.map(() => 1000 / fps), width, height, loop: 0, bytes: null, format: "png", kept };
|
|
96
|
+
}
|
|
97
|
+
if (input.toLowerCase().endsWith(".gif")) {
|
|
98
|
+
const bytes = readFileSync(input);
|
|
99
|
+
const timing = gifTiming(bytes);
|
|
100
|
+
const ffmpeg = findFfmpeg(env);
|
|
101
|
+
if (!ffmpeg) throw new Error("ffmpeg is needed to decode a GIF cover");
|
|
102
|
+
const raw = spawnSync(ffmpeg, ["-v", "error", "-i", input, "-fps_mode", "passthrough", "-f", "rawvideo", "-pix_fmt", "rgba", "pipe:1"], { maxBuffer: 2 ** 31 });
|
|
103
|
+
if (raw.status !== 0) throw new Error(`ffmpeg could not decode ${input} (${describeSpawn(raw)})`);
|
|
104
|
+
const size = timing.width * timing.height * 4;
|
|
105
|
+
for (let i = 0; i * size < raw.stdout.length; i++) {
|
|
106
|
+
const rgba = raw.stdout.subarray(i * size, (i + 1) * size);
|
|
107
|
+
lumas.push(lumaGrid(rgba, timing.width, timing.height).luma);
|
|
108
|
+
if (keep(i, timing.delays[i] ?? 100)) kept.set(i, Buffer.from(rgba));
|
|
109
|
+
}
|
|
110
|
+
return { lumas, delays: timing.delays.slice(0, lumas.length), width: timing.width, height: timing.height, loop: timing.loop, bytes: bytes.length, format: "gif", kept };
|
|
111
|
+
}
|
|
112
|
+
const info = decodeWebp(input, {
|
|
113
|
+
env,
|
|
114
|
+
onFrame: (i, rgba, ms, width, height) => {
|
|
115
|
+
lumas.push(lumaGrid(rgba, width, height).luma);
|
|
116
|
+
if (keep(i, ms > 0 ? ms : 100)) kept.set(i, Buffer.from(rgba));
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
return { ...info, lumas, delays: info.durations.map((d) => (d > 0 ? d : 100)), format: "webp", kept };
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** Resample a frame list to one sample per `step` ms (the shown frame at each grid time). */
|
|
123
|
+
export function resample(frames, delays, step) {
|
|
124
|
+
const total = delays.reduce((a, b) => a + b, 0);
|
|
125
|
+
const out = [];
|
|
126
|
+
let i = 0;
|
|
127
|
+
let end = delays[0];
|
|
128
|
+
for (let ms = 0; ms < total - 1e-6; ms += step) {
|
|
129
|
+
while (ms >= end && i < frames.length - 1) end += delays[++i];
|
|
130
|
+
out.push(frames[i]);
|
|
131
|
+
}
|
|
132
|
+
return out;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** Motion metrics on the grid; the loop is a ring, so the seam is one more step. */
|
|
136
|
+
export function motionMetrics({ lumas, delays }) {
|
|
137
|
+
const step = Math.max(COVER.stepMs, Math.min(...delays));
|
|
138
|
+
const frames = resample(lumas, delays, step);
|
|
139
|
+
const n = frames.length;
|
|
140
|
+
const d = [];
|
|
141
|
+
for (let i = 1; i < n; i++) d.push(meanAbs(frames[i], frames[i - 1]));
|
|
142
|
+
const seam = meanAbs(frames[0], frames[n - 1]);
|
|
143
|
+
const all = [...d, seam];
|
|
144
|
+
const med = median(all);
|
|
145
|
+
const still = all.map((x) => x < COVER.stillEps);
|
|
146
|
+
let longest = 0;
|
|
147
|
+
if (still.every(Boolean)) longest = (n * step) / 1000;
|
|
148
|
+
else {
|
|
149
|
+
const start = still.findIndex((s) => !s);
|
|
150
|
+
let run = 0;
|
|
151
|
+
for (let j = 1; j <= n; j++) {
|
|
152
|
+
const k = (start + j) % n;
|
|
153
|
+
run = still[(k - 1 + n) % n] ? run + step : step;
|
|
154
|
+
longest = Math.max(longest, run);
|
|
155
|
+
}
|
|
156
|
+
longest /= 1000;
|
|
157
|
+
}
|
|
158
|
+
const around = n >= 4 ? (all[n - 3] + all[n - 2] + all[0] + all[1]) / 4 : med;
|
|
159
|
+
return {
|
|
160
|
+
gridFrames: n, stepMs: step, durationSec: (n * step) / 1000, sourceDurationSec: delays.reduce((a, b) => a + b, 0) / 1000,
|
|
161
|
+
medianD: med, p10D: pct(all, 0.1), p90D: pct(all, 0.9), maxD: Math.max(...all),
|
|
162
|
+
movingFrac: all.filter((x) => x >= COVER.stillEps).length / all.length,
|
|
163
|
+
longestStillSec: longest, spike: Math.max(...all) / Math.max(med, COVER.stillEps), seam,
|
|
164
|
+
seamLocal: seam / Math.max(COVER.stillEps, around), diffs: all,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
const lin = (c) => {
|
|
169
|
+
const v = c / 255;
|
|
170
|
+
return v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4;
|
|
171
|
+
};
|
|
172
|
+
const relL = (r, g, b) => 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b);
|
|
173
|
+
const boxPx = (box, W, H) => box.map((v, k) => Math.round(v * (k % 2 ? H : W)));
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* G5: per frame, the median title pixel against the 90th-percentile background in the title box
|
|
177
|
+
* (background = box pixels at least 3 px from any title pixel). Needs the per-frame title masks the
|
|
178
|
+
* mask pass wrote (white = title); without them G5 fails and names what is missing.
|
|
179
|
+
*/
|
|
180
|
+
export function titleContrast({ framesDir, masksDir, box }) {
|
|
181
|
+
const frames = pngFrames(framesDir, "f");
|
|
182
|
+
const masks = pngFrames(masksDir, "m");
|
|
183
|
+
if (!frames.length || masks.length !== frames.length) return { measured: false, reason: `need one mask per frame (${frames.length} frames, ${masks.length} masks)` };
|
|
184
|
+
const per = [];
|
|
185
|
+
for (let i = 0; i < frames.length; i++) {
|
|
186
|
+
const { width: W, height: H, rgba } = readPngRgba(frames[i]);
|
|
187
|
+
const m = readPngRgba(masks[i]);
|
|
188
|
+
if (m.width !== W || m.height !== H) return { measured: false, reason: `mask ${i} is ${m.width}x${m.height}, the frame ${W}x${H}` };
|
|
189
|
+
const [bx, by, bw, bh] = boxPx(box, W, H);
|
|
190
|
+
const kind = new Uint8Array(W * H);
|
|
191
|
+
for (let p = 0; p < W * H; p++) if (m.rgba[p * 4] > 127) kind[p] = 2;
|
|
192
|
+
const R = 3;
|
|
193
|
+
for (let y = by; y < by + bh; y++) {
|
|
194
|
+
for (let x = bx; x < bx + bw; x++) {
|
|
195
|
+
if (kind[y * W + x] !== 2) continue;
|
|
196
|
+
for (let dy = -R; dy <= R; dy++) {
|
|
197
|
+
for (let dx = -R; dx <= R; dx++) {
|
|
198
|
+
const yy = y + dy;
|
|
199
|
+
const xx = x + dx;
|
|
200
|
+
if (yy >= 0 && yy < H && xx >= 0 && xx < W && kind[yy * W + xx] === 0) kind[yy * W + xx] = 1;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
const text = [];
|
|
206
|
+
const bg = [];
|
|
207
|
+
for (let y = by; y < by + bh; y++) {
|
|
208
|
+
for (let x = bx; x < bx + bw; x++) {
|
|
209
|
+
const p = (y * W + x) * 4;
|
|
210
|
+
const L = relL(rgba[p], rgba[p + 1], rgba[p + 2]);
|
|
211
|
+
if (kind[y * W + x] === 2) text.push(L);
|
|
212
|
+
else if (kind[y * W + x] === 0) bg.push(L);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (!text.length || !bg.length) return { measured: false, reason: `frame ${i}: the title box holds ${text.length} title and ${bg.length} background pixels` };
|
|
216
|
+
const tl = median(text);
|
|
217
|
+
const worst = tl > median(bg) ? pct(bg, 0.9) : pct(bg, 0.1);
|
|
218
|
+
per.push((Math.max(tl, worst) + 0.05) / (Math.min(tl, worst) + 0.05));
|
|
219
|
+
}
|
|
220
|
+
return { measured: true, min: Math.min(...per), median: median(per), frames: per.length };
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* G6: the title's cap height at the README display width. Per sampled mask frame, the white pixels in
|
|
225
|
+
* the title box split into connected glyphs; glyphs smaller than 1 % of the largest or shorter than
|
|
226
|
+
* 30 % of the tallest (dots, accents) are left out, and the median height of the rest is the cap
|
|
227
|
+
* height. The smallest over the samples, scaled from the cover width to `displayWidth`, must reach
|
|
228
|
+
* COVER.minGlyphPx. A title painted into declared base art is `exempt` (still measured, reported as
|
|
229
|
+
* INFO). G6 sits beside G5: contrast alone never makes a title readable.
|
|
230
|
+
*/
|
|
231
|
+
export function glyphHeights({ masksDir, box, displayWidth = COVER.displayWidth, exempt = null, samples = 12 }) {
|
|
232
|
+
const masks = pngFrames(masksDir, "m");
|
|
233
|
+
if (!masks.length) return { pass: false, reason: "no mask frames to measure the title on" };
|
|
234
|
+
const picks = [...new Set(Array.from({ length: Math.min(samples, masks.length) }, (_, k) => Math.floor((k * masks.length) / Math.min(samples, masks.length))))];
|
|
235
|
+
let cap = Infinity;
|
|
236
|
+
let glyphs = 0;
|
|
237
|
+
let width = 0;
|
|
238
|
+
for (const i of picks) {
|
|
239
|
+
const m = readPngRgba(masks[i]);
|
|
240
|
+
width = m.width;
|
|
241
|
+
const [bx, by, bw, bh] = boxPx(box, m.width, m.height);
|
|
242
|
+
const on = new Uint8Array(bw * bh);
|
|
243
|
+
for (let y = 0; y < bh; y++) for (let x = 0; x < bw; x++) on[y * bw + x] = m.rgba[((by + y) * m.width + bx + x) * 4] > 127 ? 1 : 0;
|
|
244
|
+
const comps = [];
|
|
245
|
+
const stack = [];
|
|
246
|
+
for (let start = 0; start < on.length; start++) {
|
|
247
|
+
if (on[start] !== 1) continue;
|
|
248
|
+
on[start] = 2;
|
|
249
|
+
stack.push(start);
|
|
250
|
+
let area = 0;
|
|
251
|
+
let top = bh;
|
|
252
|
+
let bottom = -1;
|
|
253
|
+
while (stack.length) {
|
|
254
|
+
const q = stack.pop();
|
|
255
|
+
const y = Math.floor(q / bw);
|
|
256
|
+
const x = q - y * bw;
|
|
257
|
+
area += 1;
|
|
258
|
+
if (y < top) top = y;
|
|
259
|
+
if (y > bottom) bottom = y;
|
|
260
|
+
for (const n of [x > 0 ? q - 1 : -1, x < bw - 1 ? q + 1 : -1, y > 0 ? q - bw : -1, y < bh - 1 ? q + bw : -1]) {
|
|
261
|
+
if (n >= 0 && on[n] === 1) {
|
|
262
|
+
on[n] = 2;
|
|
263
|
+
stack.push(n);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
comps.push({ area, height: bottom - top + 1 });
|
|
268
|
+
}
|
|
269
|
+
if (!comps.length) return { pass: false, reason: `mask ${i}: no title pixels in the title box` };
|
|
270
|
+
const maxArea = Math.max(...comps.map((c) => c.area));
|
|
271
|
+
const tallest = Math.max(...comps.map((c) => c.height));
|
|
272
|
+
const letters = comps.filter((c) => c.area >= 0.01 * maxArea && c.height >= 0.3 * tallest);
|
|
273
|
+
glyphs = Math.max(glyphs, letters.length);
|
|
274
|
+
cap = Math.min(cap, median(letters.map((c) => c.height)));
|
|
275
|
+
}
|
|
276
|
+
const capPx = (cap * displayWidth) / width;
|
|
277
|
+
const result = { capPx: +capPx.toFixed(1), coverPx: cap, displayWidth, glyphs, sampled: picks.length };
|
|
278
|
+
if (exempt) return { pass: null, ...result, reason: exempt };
|
|
279
|
+
return { pass: capPx >= COVER.minGlyphPx, ...result };
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/** G0: SHA-256 per frame of two independent captures. */
|
|
283
|
+
export function determinism(a, b) {
|
|
284
|
+
const fa = pngFrames(a, "f");
|
|
285
|
+
const fb = pngFrames(b, "f");
|
|
286
|
+
const h = (f) => createHash("sha256").update(readFileSync(f)).digest("hex");
|
|
287
|
+
let same = 0;
|
|
288
|
+
const differing = [];
|
|
289
|
+
const n = Math.min(fa.length, fb.length);
|
|
290
|
+
for (let i = 0; i < n; i++) {
|
|
291
|
+
if (h(fa[i]) === h(fb[i])) same += 1;
|
|
292
|
+
else differing.push(i);
|
|
293
|
+
}
|
|
294
|
+
return { compared: n, identical: same, countsMatch: fa.length === fb.length, firstDiffering: differing[0] ?? null };
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Gate one cover. Options: frames / frames2 (two captures, G0), masks + title (G5), fps (a PNG
|
|
299
|
+
* directory input), keep (frames to keep whole). Returns the metrics, the per-gate verdicts and
|
|
300
|
+
* `pass` (FLOOR) / `target` (TARGET, what --strict needs).
|
|
301
|
+
*/
|
|
302
|
+
export function coverGate(input, { frames = null, frames2 = null, masks = null, title = null, glyph = null, fps = 16, keep, env = process.env } = {}) {
|
|
303
|
+
const src = loadCover(input, { fps, keep, env });
|
|
304
|
+
const m = motionMetrics(src);
|
|
305
|
+
const g = {};
|
|
306
|
+
if (frames && frames2) {
|
|
307
|
+
const det = determinism(frames, frames2);
|
|
308
|
+
g.G0 = { pass: det.countsMatch && det.identical === det.compared && det.compared > 0, ...det };
|
|
309
|
+
}
|
|
310
|
+
if (src.format !== "png") {
|
|
311
|
+
g.G1 = {
|
|
312
|
+
pass: src.bytes <= COVER.maxBytes && m.sourceDurationSec >= COVER.minSec && m.sourceDurationSec <= COVER.maxSec && src.loop === 0,
|
|
313
|
+
target: src.bytes <= COVER.targetBytes,
|
|
314
|
+
bytes: src.bytes, durationSec: m.sourceDurationSec, loop: src.loop, size: `${src.width}x${src.height}`,
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
const F = COVER.floor;
|
|
318
|
+
const T = COVER.target;
|
|
319
|
+
g.G2 = { pass: m.medianD >= F.medianD && m.movingFrac >= F.movingFrac, target: m.medianD >= T.medianD && m.movingFrac >= T.movingFrac, medianD: m.medianD, movingFrac: m.movingFrac };
|
|
320
|
+
g.G3 = { pass: m.longestStillSec <= F.stillSec, target: m.longestStillSec <= T.stillSec && m.spike <= T.spike, longestStillSec: m.longestStillSec, spike: m.spike };
|
|
321
|
+
g.G4 = { pass: m.seamLocal <= F.seamLocal, target: m.seamLocal <= T.seamLocal && m.seamLocal >= T.seamLo, seam: m.seam, seamLocal: m.seamLocal };
|
|
322
|
+
if (title && frames) {
|
|
323
|
+
const c = titleContrast({ framesDir: frames, masksDir: masks, box: title });
|
|
324
|
+
g.G5 = c.measured ? { pass: c.min >= COVER.minContrast, min: c.min, median: c.median, frames: c.frames } : { pass: false, reason: c.reason };
|
|
325
|
+
}
|
|
326
|
+
if (title && masks && glyph) g.G6 = glyphHeights({ masksDir: masks, box: title, displayWidth: glyph.displayWidth ?? COVER.displayWidth, exempt: glyph.exempt ?? null });
|
|
327
|
+
const pass = Object.values(g).every((x) => x.pass !== false);
|
|
328
|
+
const target = pass && Object.values(g).every((x) => x.target !== false);
|
|
329
|
+
return { input, format: src.format, width: src.width, height: src.height, bytes: src.bytes, loop: src.loop, sourceFrames: src.lumas.length, durations: src.delays, ...m, gates: g, pass, target, kept: src.kept };
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
const num = (x) => (typeof x === "number" && !Number.isInteger(x) ? +x.toPrecision(4) : x);
|
|
333
|
+
|
|
334
|
+
/** The report text: verdict line, size line, one line per gate. */
|
|
335
|
+
export function formatCoverReport(r, { strict = false } = {}) {
|
|
336
|
+
const verdict = r.pass ? (r.target ? "PASS+TARGET" : "PASS(floor)") : "FAIL";
|
|
337
|
+
const lines = [
|
|
338
|
+
`COVER gate${strict ? " --strict" : ""}: ${verdict}`,
|
|
339
|
+
` ${r.width}x${r.height} ${r.format} frames=${r.sourceFrames} dur=${num(r.sourceDurationSec)}s bytes=${r.bytes ?? "-"} loop=${r.loop} grid=${r.stepMs}ms`,
|
|
340
|
+
];
|
|
341
|
+
for (const [k, v] of Object.entries(r.gates)) {
|
|
342
|
+
const { pass, target, ...detail } = v;
|
|
343
|
+
const word = pass === null ? "INFO" : pass ? (target === false ? "pass(floor)" : "pass") : "FAIL";
|
|
344
|
+
lines.push(` ${k} ${word} ${Object.entries(detail).map(([a, b]) => `${a}=${num(b)}`).join(" ")}`);
|
|
345
|
+
}
|
|
346
|
+
return `${lines.join("\n")}\n`;
|
|
347
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// Pixel helpers for cover mode, all on RGBA8 buffers: a separable Lanczos-3 resize (the 2x seek
|
|
2
|
+
// capture is downsampled with it, as the pilot did), the gate's luma grid (Rec. 709 on gamma values,
|
|
3
|
+
// box-averaged to about 300 px wide so every gate number is measured at thumbnail scale), a crop, and
|
|
4
|
+
// an SSIM on luma (mean over 8x8 tiles) that compares the base art in decoded frame 0 with its source.
|
|
5
|
+
|
|
6
|
+
const lanczos = (x, a = 3) => {
|
|
7
|
+
if (x === 0) return 1;
|
|
8
|
+
if (Math.abs(x) >= a) return 0;
|
|
9
|
+
const px = Math.PI * x;
|
|
10
|
+
return (a * Math.sin(px) * Math.sin(px / a)) / (px * px);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** Per output index: the first source index and its normalized weights (support widens when shrinking). */
|
|
14
|
+
function kernel(src, dst) {
|
|
15
|
+
const scale = src / dst;
|
|
16
|
+
const support = 3 * Math.max(1, scale);
|
|
17
|
+
const rows = [];
|
|
18
|
+
for (let i = 0; i < dst; i++) {
|
|
19
|
+
const center = (i + 0.5) * scale - 0.5;
|
|
20
|
+
const first = Math.max(0, Math.ceil(center - support));
|
|
21
|
+
const last = Math.min(src - 1, Math.floor(center + support));
|
|
22
|
+
const weights = [];
|
|
23
|
+
let sum = 0;
|
|
24
|
+
for (let j = first; j <= last; j++) {
|
|
25
|
+
const w = lanczos((j - center) / Math.max(1, scale));
|
|
26
|
+
weights.push(w);
|
|
27
|
+
sum += w;
|
|
28
|
+
}
|
|
29
|
+
rows.push({ first, weights: weights.map((w) => w / sum) });
|
|
30
|
+
}
|
|
31
|
+
return rows;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Lanczos-3 resize of RGBA8; alpha is kept at 255 (captures are opaque). */
|
|
35
|
+
export function lanczosResize(src, sw, sh, dw, dh) {
|
|
36
|
+
if (sw === dw && sh === dh) return Buffer.from(src);
|
|
37
|
+
const kx = kernel(sw, dw);
|
|
38
|
+
const ky = kernel(sh, dh);
|
|
39
|
+
const tmp = new Float32Array(dw * sh * 3);
|
|
40
|
+
for (let y = 0; y < sh; y++) {
|
|
41
|
+
const row = y * sw * 4;
|
|
42
|
+
for (let x = 0; x < dw; x++) {
|
|
43
|
+
const { first, weights } = kx[x];
|
|
44
|
+
let r = 0;
|
|
45
|
+
let g = 0;
|
|
46
|
+
let b = 0;
|
|
47
|
+
for (let k = 0; k < weights.length; k++) {
|
|
48
|
+
const o = row + (first + k) * 4;
|
|
49
|
+
const w = weights[k];
|
|
50
|
+
r += src[o] * w; g += src[o + 1] * w; b += src[o + 2] * w;
|
|
51
|
+
}
|
|
52
|
+
const t = (y * dw + x) * 3;
|
|
53
|
+
tmp[t] = r; tmp[t + 1] = g; tmp[t + 2] = b;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const out = Buffer.alloc(dw * dh * 4);
|
|
57
|
+
const clamp8 = (v) => (v <= 0 ? 0 : v >= 255 ? 255 : Math.round(v));
|
|
58
|
+
for (let y = 0; y < dh; y++) {
|
|
59
|
+
const { first, weights } = ky[y];
|
|
60
|
+
for (let x = 0; x < dw; x++) {
|
|
61
|
+
let r = 0;
|
|
62
|
+
let g = 0;
|
|
63
|
+
let b = 0;
|
|
64
|
+
for (let k = 0; k < weights.length; k++) {
|
|
65
|
+
const o = ((first + k) * dw + x) * 3;
|
|
66
|
+
const w = weights[k];
|
|
67
|
+
r += tmp[o] * w; g += tmp[o + 1] * w; b += tmp[o + 2] * w;
|
|
68
|
+
}
|
|
69
|
+
const t = (y * dw + x) * 4;
|
|
70
|
+
out[t] = clamp8(r); out[t + 1] = clamp8(g); out[t + 2] = clamp8(b); out[t + 3] = 255;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return out;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const LUMA_WIDTH = 300;
|
|
77
|
+
|
|
78
|
+
/** Box-downsampled luma (0..255) at about LUMA_WIDTH wide: { luma, w, h }. */
|
|
79
|
+
export function lumaGrid(rgba, width, height, channels = 4) {
|
|
80
|
+
const f = Math.max(1, Math.round(width / LUMA_WIDTH));
|
|
81
|
+
const w = Math.floor(width / f);
|
|
82
|
+
const h = Math.floor(height / f);
|
|
83
|
+
const luma = new Float32Array(w * h);
|
|
84
|
+
for (let y = 0; y < h * f; y++) {
|
|
85
|
+
const row = y * width * channels;
|
|
86
|
+
const oy = Math.floor(y / f) * w;
|
|
87
|
+
for (let x = 0; x < w * f; x++) {
|
|
88
|
+
const p = row + x * channels;
|
|
89
|
+
luma[oy + Math.floor(x / f)] += 0.2126 * rgba[p] + 0.7152 * rgba[p + 1] + 0.0722 * rgba[p + 2];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const n = f * f;
|
|
93
|
+
for (let i = 0; i < luma.length; i++) luma[i] /= n;
|
|
94
|
+
return { luma, w, h };
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** Copy the rectangle [x, y, w, h] out of an RGBA8 frame. */
|
|
98
|
+
export function crop(rgba, width, [x, y, w, h]) {
|
|
99
|
+
const out = Buffer.alloc(w * h * 4);
|
|
100
|
+
for (let row = 0; row < h; row++) rgba.copy(out, row * w * 4, ((y + row) * width + x) * 4, ((y + row) * width + x + w) * 4);
|
|
101
|
+
return out;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** SSIM of two same-size RGBA8 images on luma: the mean of the SSIM term over 8x8 tiles. */
|
|
105
|
+
export function ssim(a, b, width, height) {
|
|
106
|
+
const n = width * height;
|
|
107
|
+
const la = new Float64Array(n);
|
|
108
|
+
const lb = new Float64Array(n);
|
|
109
|
+
for (let i = 0; i < n; i++) {
|
|
110
|
+
la[i] = 0.2126 * a[i * 4] + 0.7152 * a[i * 4 + 1] + 0.0722 * a[i * 4 + 2];
|
|
111
|
+
lb[i] = 0.2126 * b[i * 4] + 0.7152 * b[i * 4 + 1] + 0.0722 * b[i * 4 + 2];
|
|
112
|
+
}
|
|
113
|
+
const T = 8;
|
|
114
|
+
const C1 = (0.01 * 255) ** 2;
|
|
115
|
+
const C2 = (0.03 * 255) ** 2;
|
|
116
|
+
let total = 0;
|
|
117
|
+
let tiles = 0;
|
|
118
|
+
for (let ty = 0; ty + T <= height; ty += T) {
|
|
119
|
+
for (let tx = 0; tx + T <= width; tx += T) {
|
|
120
|
+
let ma = 0;
|
|
121
|
+
let mb = 0;
|
|
122
|
+
for (let y = ty; y < ty + T; y++) for (let x = tx; x < tx + T; x++) { ma += la[y * width + x]; mb += lb[y * width + x]; }
|
|
123
|
+
ma /= T * T;
|
|
124
|
+
mb /= T * T;
|
|
125
|
+
let va = 0;
|
|
126
|
+
let vb = 0;
|
|
127
|
+
let cov = 0;
|
|
128
|
+
for (let y = ty; y < ty + T; y++) {
|
|
129
|
+
for (let x = tx; x < tx + T; x++) {
|
|
130
|
+
const da = la[y * width + x] - ma;
|
|
131
|
+
const db = lb[y * width + x] - mb;
|
|
132
|
+
va += da * da; vb += db * db; cov += da * db;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const m = T * T - 1;
|
|
136
|
+
total += ((2 * ma * mb + C1) * (2 * (cov / m) + C2)) / ((ma * ma + mb * mb + C1) * (va / m + vb / m + C2));
|
|
137
|
+
tiles += 1;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return tiles ? total / tiles : 0;
|
|
141
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// The cover's review artifact: a contact sheet of decoded frames above a frame-difference plot of the
|
|
2
|
+
// whole loop (one point per grid step, the still threshold and the median drawn in). The plot shows
|
|
3
|
+
// what single stills cannot: holds, encoder pops, the reset at the seam. It is laid out as a small
|
|
4
|
+
// local page and captured by the same headless Chrome the cover renderer uses, so its labels are real
|
|
5
|
+
// type. `marks` shades time spans on the plot (a logged defect, a re-rendered window).
|
|
6
|
+
import { copyFileSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { COVER } from "../core/constants.mjs";
|
|
9
|
+
import { CoverBrowser } from "./cover-capture.mjs";
|
|
10
|
+
import { decodePng } from "./png.mjs";
|
|
11
|
+
|
|
12
|
+
const esc = (s) => String(s).replace(/[&<>"]/gu, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """ })[c]);
|
|
13
|
+
|
|
14
|
+
/** The sheet page: tiles [{ file, caption }] (4 per row), then the plot of `diffs`. */
|
|
15
|
+
export function sheetHtml({ tiles, tileWidth, tileHeight, diffs, medianD, label, status, marks = [], durationSec }) {
|
|
16
|
+
const pad = 8;
|
|
17
|
+
const cols = 4;
|
|
18
|
+
const rows = Math.ceil(tiles.length / cols);
|
|
19
|
+
const width = cols * tileWidth + (cols + 1) * pad;
|
|
20
|
+
const plotH = 170;
|
|
21
|
+
const gridTop = rows * (tileHeight + 22) + (rows + 1) * pad;
|
|
22
|
+
const height = gridTop + 10 + plotH + 40;
|
|
23
|
+
const pw = width - 2 * pad;
|
|
24
|
+
const ymax = Math.max(0.01, ...diffs) * 1.05;
|
|
25
|
+
const X = (i) => pad + (i / Math.max(1, diffs.length - 1)) * pw;
|
|
26
|
+
const Y = (v) => gridTop + 10 + plotH - (v / ymax) * plotH;
|
|
27
|
+
const points = diffs.map((v, i) => `${X(i).toFixed(1)},${Y(v).toFixed(1)}`).join(" ");
|
|
28
|
+
const markX = (sec) => pad + (sec / durationSec) * pw;
|
|
29
|
+
const cells = tiles.map((tile, k) => {
|
|
30
|
+
const x = pad + (k % cols) * (tileWidth + pad);
|
|
31
|
+
const y = pad + Math.floor(k / cols) * (tileHeight + 22 + pad);
|
|
32
|
+
return `<div class="cap" style="left:${x}px;top:${y}px">${esc(tile.caption)}</div><img src="${esc(tile.file)}" style="left:${x}px;top:${y + 22}px;width:${tileWidth}px;height:${tileHeight}px">`;
|
|
33
|
+
}).join("\n");
|
|
34
|
+
const markLines = marks.map((m) => `<rect x="${markX(m.t0).toFixed(1)}" y="${gridTop + 10}" width="${Math.max(2, markX(m.t1) - markX(m.t0)).toFixed(1)}" height="${plotH}" fill="#ffb02e" opacity="0.18"/>`).join("");
|
|
35
|
+
const page = `<!doctype html><meta charset="utf-8"><link rel="stylesheet" href="/lit/fonts.css">
|
|
36
|
+
<style>html,body{margin:0;width:${width}px;height:${height}px;overflow:hidden;background:#080b10}
|
|
37
|
+
img{position:absolute;display:block}.cap{position:absolute;font:13px "JetBrains Mono",monospace;color:#9aa}
|
|
38
|
+
.foot{position:absolute;left:${pad}px;top:${gridTop + 10 + plotH + 12}px;font:14px "JetBrains Mono",monospace;color:#ccd;white-space:nowrap}</style>
|
|
39
|
+
<body>${cells}
|
|
40
|
+
<svg width="${width}" height="${height}" style="position:absolute;left:0;top:0">
|
|
41
|
+
<rect x="${pad}" y="${gridTop + 10}" width="${pw}" height="${plotH}" fill="#11161d"/>${markLines}
|
|
42
|
+
<line x1="${pad}" x2="${pad + pw}" y1="${Y(COVER.stillEps)}" y2="${Y(COVER.stillEps)}" stroke="#a33" stroke-dasharray="4 4"/>
|
|
43
|
+
<line x1="${pad}" x2="${pad + pw}" y1="${Y(medianD)}" y2="${Y(medianD)}" stroke="#5a8" stroke-dasharray="2 3"/>
|
|
44
|
+
<polyline points="${points}" fill="none" stroke="#ff7a46" stroke-width="1.5"/></svg>
|
|
45
|
+
<div class="foot">${esc(label)} | ${esc(status)}</div>
|
|
46
|
+
<script>window.renderFrame = () => {}; Promise.all([...document.images].map((i) => i.decode())).then(() => document.fonts.ready).then(() => { window.ready = true; });</script>`;
|
|
47
|
+
return { page, width, height };
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Render the sheet to `file`. `tiles` carry PNG paths on disk; they are copied next to the page
|
|
52
|
+
* (the stage router serves nothing outside its directory) and the work directory is removed after.
|
|
53
|
+
*/
|
|
54
|
+
export async function renderSheet({ file, tiles, diffs, medianD, label, status, marks, durationSec, faces, workDir, env, log }) {
|
|
55
|
+
rmSync(workDir, { recursive: true, force: true });
|
|
56
|
+
mkdirSync(workDir, { recursive: true });
|
|
57
|
+
const first = decodePng(readFileSync(tiles[0].file));
|
|
58
|
+
const tileWidth = 400;
|
|
59
|
+
const tileHeight = Math.round((tileWidth * first.height) / first.width);
|
|
60
|
+
const local = tiles.map((t, i) => {
|
|
61
|
+
const name = `t${String(i).padStart(2, "0")}.png`;
|
|
62
|
+
copyFileSync(t.file, path.join(workDir, name));
|
|
63
|
+
return { file: name, caption: t.caption };
|
|
64
|
+
});
|
|
65
|
+
const { page, width, height } = sheetHtml({ tiles: local, tileWidth, tileHeight, diffs, medianD, label, status, marks, durationSec });
|
|
66
|
+
writeFileSync(path.join(workDir, "index.html"), page);
|
|
67
|
+
const browser = await CoverBrowser.open({ stageDir: workDir, faces, width, height, scale: 1, profileDir: path.join(workDir, ".chrome"), env, log });
|
|
68
|
+
try {
|
|
69
|
+
await browser.frame(0);
|
|
70
|
+
writeFileSync(file, await browser.capture());
|
|
71
|
+
} finally {
|
|
72
|
+
await browser.close();
|
|
73
|
+
rmSync(workDir, { recursive: true, force: true });
|
|
74
|
+
}
|
|
75
|
+
return file;
|
|
76
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// The cover treatment: `treatment.json` with `mode: "cover"`, written before any cover render and
|
|
2
|
+
// validated by every one (exit 16 names the first bad field). A cover is not a film: it has no beats,
|
|
3
|
+
// no arc, no end card and no sound. It names one recipe, one rule copied many times, three speed
|
|
4
|
+
// layers, the brand word set once (plus at most one motto the user or the project already uses), the
|
|
5
|
+
// aspect and loop length, and the title box the contrast gate measures. Text in it is content, never
|
|
6
|
+
// instructions.
|
|
7
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import { COVER } from "../core/constants.mjs";
|
|
10
|
+
import { normalizeText, restateLimit, sharesRun, stripQuoted, TreatmentError } from "./treatment.mjs";
|
|
11
|
+
|
|
12
|
+
export const RECIPES = Object.freeze(["painted-light", "weight-tide", "orbit-loop", "own"]);
|
|
13
|
+
export const LAYERS = Object.freeze(["slow", "mid", "beat"]);
|
|
14
|
+
|
|
15
|
+
const fail = (field, message) => {
|
|
16
|
+
throw new TreatmentError(field, message);
|
|
17
|
+
};
|
|
18
|
+
const PLACEHOLDER = /<[^<>\n]{1,80}>|^\s*(?:todo|tbd|tk|xxx|\.\.\.|…)\s*$/iu;
|
|
19
|
+
const isText = (v) => typeof v === "string" && v.trim().length > 0;
|
|
20
|
+
const sentences = (text) => String(text).trim().split(/(?<=[.!?。?!])\s+/u).filter((s) => s.trim()).length;
|
|
21
|
+
|
|
22
|
+
function text(t, key, { max } = {}) {
|
|
23
|
+
const value = key.split(".").reduce((o, k) => (o && typeof o === "object" ? o[k] : undefined), t);
|
|
24
|
+
if (value === undefined) fail(key, "missing");
|
|
25
|
+
if (!isText(value)) fail(key, "must be a non-empty string");
|
|
26
|
+
if (PLACEHOLDER.test(value)) fail(key, `placeholder value ${JSON.stringify(value)}`);
|
|
27
|
+
if (max && sentences(value) > max) fail(key, `at most ${max} sentence(s)`);
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Validate a cover treatment; returns it with the derived sizes, frame count and seed filled in. */
|
|
32
|
+
export function validateCoverTreatment(t) {
|
|
33
|
+
if (!t || typeof t !== "object" || Array.isArray(t)) fail("treatment.json", "must be a JSON object");
|
|
34
|
+
if (t.mode !== "cover") fail("mode", "must be cover for a cover render");
|
|
35
|
+
text(t, "request");
|
|
36
|
+
text(t, "idea", { max: 1 });
|
|
37
|
+
const quoteFree = normalizeText(stripQuoted(t.request));
|
|
38
|
+
const restated = sharesRun(normalizeText(t.idea), quoteFree, restateLimit(t.request));
|
|
39
|
+
if (restated) fail("idea", `the idea restates the request ("${restated}"); say what the loop does`);
|
|
40
|
+
if (!RECIPES.includes(t.recipe)) fail("recipe", `must be one of ${RECIPES.join(", ")} (references/cover.md)`);
|
|
41
|
+
text(t, "recipeReason", { max: 2 });
|
|
42
|
+
text(t, "brandWord");
|
|
43
|
+
if (t.brandWord.trim().split(/\s+/u).length > 3) fail("brandWord", "is the name set once: at most three words");
|
|
44
|
+
if ("motto" in t) {
|
|
45
|
+
const m = t.motto;
|
|
46
|
+
if (!m || typeof m !== "object") fail("motto", "must be an object { text, source }");
|
|
47
|
+
text(t, "motto.text");
|
|
48
|
+
if (m.text.trim().split(/\s+/u).length > 6) fail("motto.text", "at most six words");
|
|
49
|
+
if (!["user", "project"].includes(m.source)) fail("motto.source", "must be user (found in the request) or project (the project's own line, with from)");
|
|
50
|
+
if (m.source === "user" && !normalizeText(t.request).includes(normalizeText(m.text))) fail("motto.text", "a user motto must appear in the request; a cover never invents a tagline");
|
|
51
|
+
if (m.source === "project") text(t, "motto.from");
|
|
52
|
+
}
|
|
53
|
+
for (const key of ["copy", "beats", "lines"]) if (key in t) fail(key, "a cover has no copy lines and no beats: the brand word is set once and never swapped (references/cover.md)");
|
|
54
|
+
if ("sound" in t && t.sound !== "none") fail("sound", "a cover is silent: leave sound out or set it to none");
|
|
55
|
+
if (!(t.aspect in COVER.aspects)) fail("aspect", `must be ${Object.keys(COVER.aspects).join(" or ")}`);
|
|
56
|
+
if (typeof t.loopSec !== "number" || t.loopSec < COVER.minSec || t.loopSec > COVER.maxSec) fail("loopSec", `must be ${COVER.minSec}-${COVER.maxSec} seconds`);
|
|
57
|
+
if (!COVER.fps.includes(t.fps)) fail("fps", `must be one of ${COVER.fps.join(", ")}`);
|
|
58
|
+
if (!t.layers || typeof t.layers !== "object") fail("layers", "missing: name the slow, mid and beat layers");
|
|
59
|
+
for (const k of LAYERS) text(t, `layers.${k}`, { max: 2 });
|
|
60
|
+
if (!t.system || typeof t.system !== "object") fail("system", "missing: the one rule, its copies and their offset");
|
|
61
|
+
for (const k of ["rule", "copies", "offset"]) text(t, `system.${k}`, { max: 2 });
|
|
62
|
+
const title = t.title;
|
|
63
|
+
if (!title || typeof title !== "object") fail("title", "missing: { box: [x, y, w, h] as fractions of the cover, kind: live or painted }");
|
|
64
|
+
if (!Array.isArray(title.box) || title.box.length !== 4 || title.box.some((v) => typeof v !== "number" || v < 0 || v > 1)) fail("title.box", "must be [x, y, w, h], each a fraction 0..1 of the cover");
|
|
65
|
+
if (title.box[0] + title.box[2] > 1 + 1e-9 || title.box[1] + title.box[3] > 1 + 1e-9 || title.box[2] <= 0 || title.box[3] <= 0) fail("title.box", "must lie inside the cover");
|
|
66
|
+
if (!["live", "painted"].includes(title.kind)) fail("title.kind", "must be live (set as text) or painted (part of the base art)");
|
|
67
|
+
if ("palette" in t) {
|
|
68
|
+
if (!Array.isArray(t.palette) || t.palette.length < 2 || t.palette.length > 6) fail("palette", "2-6 { color, role } entries");
|
|
69
|
+
t.palette.forEach((p, i) => {
|
|
70
|
+
if (!/^#[0-9a-f]{6}$/iu.test(p?.color ?? "")) fail(`palette[${i}].color`, "must be #rrggbb");
|
|
71
|
+
if (!isText(p?.role)) fail(`palette[${i}].role`, "must say the colour's job");
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if ("encode" in t) {
|
|
75
|
+
const e = t.encode;
|
|
76
|
+
if (!e || typeof e !== "object") fail("encode", "must be an object { q, edgeQ, edgeFrames }");
|
|
77
|
+
for (const [k, lo, hi] of [["q", 50, 100], ["edgeQ", 50, 100], ["edgeFrames", 0, 60]]) {
|
|
78
|
+
if (k in e && !(Number.isInteger(e[k]) && e[k] >= lo && e[k] <= hi)) fail(`encode.${k}`, `an integer ${lo}-${hi}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
text(t, "ambition", { max: 2 });
|
|
82
|
+
const { page, out } = COVER.aspects[t.aspect];
|
|
83
|
+
const frames = Math.round(t.loopSec * t.fps);
|
|
84
|
+
const encode = { ...COVER.encode, ...(t.encode ?? {}) };
|
|
85
|
+
return { ...t, page, out, frames, encode, seed: Number.isInteger(t.seed) ? t.seed >>> 0 : 0 };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** Load and validate `<out>/treatment.json` as a cover; keeps the first valid one for the done-check. */
|
|
89
|
+
export function loadCoverTreatment(out) {
|
|
90
|
+
const file = path.join(out, "treatment.json");
|
|
91
|
+
if (!existsSync(file)) fail("treatment.json", `missing: write ${file} before rendering (see references/cover.md)`);
|
|
92
|
+
let raw;
|
|
93
|
+
try {
|
|
94
|
+
raw = JSON.parse(readFileSync(file, "utf8"));
|
|
95
|
+
} catch (error) {
|
|
96
|
+
fail("treatment.json", `not valid JSON (${error.message})`);
|
|
97
|
+
}
|
|
98
|
+
if (raw?.mode !== "cover") fail("mode", "this treatment is a film: render it with stage or make (references/treatment.md); a cover sets mode: cover");
|
|
99
|
+
const treatment = validateCoverTreatment(raw);
|
|
100
|
+
const first = path.join(out, ".run", "treatment.first.json");
|
|
101
|
+
if (!existsSync(first)) {
|
|
102
|
+
mkdirSync(path.dirname(first), { recursive: true });
|
|
103
|
+
writeFileSync(first, `${JSON.stringify(raw, null, 2)}\n`);
|
|
104
|
+
}
|
|
105
|
+
return treatment;
|
|
106
|
+
}
|