@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,1119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* layout-resolver.js — Resolve AST slides against a template's layout mapping.
|
|
5
|
+
*
|
|
6
|
+
* Takes a compiled AST (from compile-deck.js) and a loaded template object
|
|
7
|
+
* (from template-registry.js) and produces a render-ready resolved spec with
|
|
8
|
+
* positioned regions and decoration elements for each slide.
|
|
9
|
+
*
|
|
10
|
+
* API:
|
|
11
|
+
* const { resolve } = require('./layout-resolver');
|
|
12
|
+
* const resolved = resolve(ast, templateObj);
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
// Minimal YAML parser (no external dependencies)
|
|
17
|
+
// Handles: key: value, nested maps via indentation, lists with "- ", comments
|
|
18
|
+
// ---------------------------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Parse a YAML string into a JS object.
|
|
22
|
+
* Supports: maps, scalar values, quoted strings, dash lists, comments.
|
|
23
|
+
* @param {string} text — Raw YAML content
|
|
24
|
+
* @returns {object}
|
|
25
|
+
*/
|
|
26
|
+
function parseYaml(text) {
|
|
27
|
+
const lines = text.split("\n");
|
|
28
|
+
return parseBlock(lines, 0).value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Parse a block of YAML lines starting at a given indent level.
|
|
33
|
+
* Returns { value, end } where end is the next unparsed line index.
|
|
34
|
+
*/
|
|
35
|
+
function parseBlock(lines, start) {
|
|
36
|
+
if (start >= lines.length) return { value: null, end: lines.length };
|
|
37
|
+
|
|
38
|
+
const firstLine = stripComment(lines[start]);
|
|
39
|
+
const firstIndent = leadingSpaces(lines[start]);
|
|
40
|
+
|
|
41
|
+
// Empty/blank first line — skip ahead
|
|
42
|
+
if (!firstLine.trim()) {
|
|
43
|
+
return parseBlock(lines, start + 1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Determine if this is a list block or map block
|
|
47
|
+
if (firstLine.trimStart().startsWith("- ")) {
|
|
48
|
+
return parseList(lines, start, firstIndent);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return parseMap(lines, start, firstIndent);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Parse a YAML map block at a given indent level.
|
|
56
|
+
*/
|
|
57
|
+
function parseMap(lines, start, baseIndent) {
|
|
58
|
+
const obj = {};
|
|
59
|
+
let i = start;
|
|
60
|
+
|
|
61
|
+
while (i < lines.length) {
|
|
62
|
+
const raw = lines[i];
|
|
63
|
+
const line = stripComment(raw);
|
|
64
|
+
const indent = leadingSpaces(raw);
|
|
65
|
+
|
|
66
|
+
// Blank line — skip
|
|
67
|
+
if (!line.trim()) { i++; continue; }
|
|
68
|
+
|
|
69
|
+
// Dedent — end of this map
|
|
70
|
+
if (indent < baseIndent) break;
|
|
71
|
+
|
|
72
|
+
// List item at our indent — not part of this map
|
|
73
|
+
if (line.trimStart().startsWith("- ") && indent === baseIndent) break;
|
|
74
|
+
|
|
75
|
+
// Expect key: value
|
|
76
|
+
const colonIdx = line.indexOf(":");
|
|
77
|
+
if (colonIdx === -1) { i++; continue; }
|
|
78
|
+
|
|
79
|
+
const key = line.substring(0, colonIdx).trim();
|
|
80
|
+
const afterColon = line.substring(colonIdx + 1).trim();
|
|
81
|
+
|
|
82
|
+
if (afterColon === "") {
|
|
83
|
+
// Value is on subsequent lines (nested block)
|
|
84
|
+
const next = parseBlock(lines, i + 1);
|
|
85
|
+
if (next.value !== null) {
|
|
86
|
+
// Check if next block starts with a dash list
|
|
87
|
+
const nextLine = stripComment(lines[i + 1] || "");
|
|
88
|
+
if (nextLine.trimStart().startsWith("- ") && leadingSpaces(lines[i + 1]) > indent) {
|
|
89
|
+
obj[key] = next.value;
|
|
90
|
+
} else {
|
|
91
|
+
obj[key] = next.value;
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
obj[key] = null;
|
|
95
|
+
}
|
|
96
|
+
i = next.end;
|
|
97
|
+
} else {
|
|
98
|
+
obj[key] = parseScalar(afterColon);
|
|
99
|
+
i++;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return { value: obj, end: i };
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Parse a YAML list block at a given indent level.
|
|
108
|
+
*/
|
|
109
|
+
function parseList(lines, start, baseIndent) {
|
|
110
|
+
const arr = [];
|
|
111
|
+
let i = start;
|
|
112
|
+
|
|
113
|
+
while (i < lines.length) {
|
|
114
|
+
const raw = lines[i];
|
|
115
|
+
const line = stripComment(raw);
|
|
116
|
+
const indent = leadingSpaces(raw);
|
|
117
|
+
|
|
118
|
+
if (!line.trim()) { i++; continue; }
|
|
119
|
+
if (indent < baseIndent) break;
|
|
120
|
+
|
|
121
|
+
const trimmed = line.trimStart();
|
|
122
|
+
if (trimmed.startsWith("- ") && indent === baseIndent) {
|
|
123
|
+
const itemText = trimmed.substring(2).trim();
|
|
124
|
+
if (itemText.includes(":")) {
|
|
125
|
+
// Inline map item: "- key: value"
|
|
126
|
+
const inlineObj = {};
|
|
127
|
+
const colonIdx = itemText.indexOf(":");
|
|
128
|
+
const k = itemText.substring(0, colonIdx).trim();
|
|
129
|
+
const v = itemText.substring(colonIdx + 1).trim();
|
|
130
|
+
inlineObj[k] = parseScalar(v);
|
|
131
|
+
|
|
132
|
+
// Check for continuation lines that belong to this item
|
|
133
|
+
const nextI = i + 1;
|
|
134
|
+
if (nextI < lines.length) {
|
|
135
|
+
const nextRaw = lines[nextI];
|
|
136
|
+
const nextIndent = leadingSpaces(nextRaw);
|
|
137
|
+
if (nextIndent > indent && !stripComment(nextRaw).trimStart().startsWith("- ")) {
|
|
138
|
+
const nested = parseMap(lines, nextI, nextIndent);
|
|
139
|
+
Object.assign(inlineObj, nested.value);
|
|
140
|
+
i = nested.end;
|
|
141
|
+
arr.push(inlineObj);
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
arr.push(inlineObj);
|
|
146
|
+
} else {
|
|
147
|
+
arr.push(parseScalar(itemText));
|
|
148
|
+
}
|
|
149
|
+
i++;
|
|
150
|
+
} else {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return { value: arr, end: i };
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Parse a scalar YAML value (string, number, boolean, null) or inline array.
|
|
160
|
+
* Handles: [a, b, c] inline array syntax.
|
|
161
|
+
*/
|
|
162
|
+
function parseScalar(val) {
|
|
163
|
+
// Inline array: [item1, item2, ...]
|
|
164
|
+
if (val.startsWith("[") && val.endsWith("]")) {
|
|
165
|
+
const inner = val.slice(1, -1).trim();
|
|
166
|
+
if (inner === "") return [];
|
|
167
|
+
return inner.split(",").map((s) => parseScalar(s.trim()));
|
|
168
|
+
}
|
|
169
|
+
if (val === "null" || val === "~") return null;
|
|
170
|
+
if (val === "true") return true;
|
|
171
|
+
if (val === "false") return false;
|
|
172
|
+
// Quoted string
|
|
173
|
+
if ((val.startsWith('"') && val.endsWith('"')) ||
|
|
174
|
+
(val.startsWith("'") && val.endsWith("'"))) {
|
|
175
|
+
return val.slice(1, -1);
|
|
176
|
+
}
|
|
177
|
+
// Number
|
|
178
|
+
if (/^-?\d+(\.\d+)?$/.test(val)) return parseFloat(val);
|
|
179
|
+
return val;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** Remove trailing # comment from a line, respecting quoted strings. */
|
|
183
|
+
function stripComment(line) {
|
|
184
|
+
let inQuote = false;
|
|
185
|
+
let quoteChar = "";
|
|
186
|
+
for (let i = 0; i < line.length; i++) {
|
|
187
|
+
const ch = line[i];
|
|
188
|
+
if (inQuote) {
|
|
189
|
+
if (ch === quoteChar) inQuote = false;
|
|
190
|
+
} else {
|
|
191
|
+
if (ch === '"' || ch === "'") {
|
|
192
|
+
inQuote = true;
|
|
193
|
+
quoteChar = ch;
|
|
194
|
+
} else if (ch === "#") {
|
|
195
|
+
return line.substring(0, i);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return line;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Count leading spaces of a line. */
|
|
203
|
+
function leadingSpaces(line) {
|
|
204
|
+
let count = 0;
|
|
205
|
+
for (let i = 0; i < line.length; i++) {
|
|
206
|
+
if (line[i] === " ") count++;
|
|
207
|
+
else break;
|
|
208
|
+
}
|
|
209
|
+
return count;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// ---------------------------------------------------------------------------
|
|
213
|
+
// Block-to-region mapping
|
|
214
|
+
// ---------------------------------------------------------------------------
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Map a block type to the corresponding region name in the layout mapping.
|
|
218
|
+
* @param {string} blockType
|
|
219
|
+
* @param {object} block — The block object (used for summary-group position)
|
|
220
|
+
* @returns {string|null} — Region name or null if not mappable
|
|
221
|
+
*/
|
|
222
|
+
function blockToRegion(blockType, block, layout) {
|
|
223
|
+
switch (blockType) {
|
|
224
|
+
case "title": return "title";
|
|
225
|
+
case "body": return "body";
|
|
226
|
+
case "kpi-table":
|
|
227
|
+
// content/summary layout defines "table" region; main layout defines "kpi_table" region
|
|
228
|
+
return (layout === "main") ? "kpi_table" : "table";
|
|
229
|
+
case "image": return "image";
|
|
230
|
+
case "main-box": return "main_box";
|
|
231
|
+
case "key-message": return "key_message";
|
|
232
|
+
case "table": return "table";
|
|
233
|
+
case "figure-caption": return "figure_caption";
|
|
234
|
+
case "table-caption": return "table_caption";
|
|
235
|
+
case "summary-group":
|
|
236
|
+
return block.position === "top" ? "group_top" : "group_bottom";
|
|
237
|
+
default:
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Would this table block render as KPI badges rather than as a table?
|
|
244
|
+
*
|
|
245
|
+
* The renderer decides that from the block's shape, and the answer changes how
|
|
246
|
+
* much vertical room the block needs, so the rule lives here where the geometry
|
|
247
|
+
* is worked out and the renderer reads it from here.
|
|
248
|
+
*/
|
|
249
|
+
function looksLikeKpi(content, o = {}) {
|
|
250
|
+
if (content && content.chart) return false;
|
|
251
|
+
const headers = (content && content.headers) || [];
|
|
252
|
+
const rows = (content && content.rows) || [];
|
|
253
|
+
const cols = headers.length;
|
|
254
|
+
// Under a tonality a row may hold up to six figures (spec-v2 Amendments 6); legacy cards stop at four.
|
|
255
|
+
if (cols < 2 || cols > (o.basis ? 6 : 4)) return false;
|
|
256
|
+
if (cols === 2) {
|
|
257
|
+
const pairs = [headers, ...rows];
|
|
258
|
+
return pairs.length <= 4 && pairs.every((p) => String(p[0]).length <= 12);
|
|
259
|
+
}
|
|
260
|
+
// Under a tonality a second row may give each figure's basis or comparison (spec-v2 Amendments 5).
|
|
261
|
+
if (o.basis && rows.length === 2) return rows[0].every((c) => String(c).length <= 12) && rows[1].every((c) => String(c).length <= 24);
|
|
262
|
+
return rows.length === 1 && rows[0].every((c) => String(c).length <= 12);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// A KPI badge stacks a small label over a large value, so it stands roughly as tall as the
|
|
266
|
+
// template's kpi.blockHeight token (1.75in on the legacy templates) no matter how few rows fed it.
|
|
267
|
+
const grid = require("./grid-resolver");
|
|
268
|
+
|
|
269
|
+
// ---------------------------------------------------------------------------
|
|
270
|
+
// Capability validation
|
|
271
|
+
// ---------------------------------------------------------------------------
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Capability rules: which block types each layout supports.
|
|
275
|
+
* Mirrors the structure in capabilities.yaml but kept as code
|
|
276
|
+
* so validation works even with minimal template data.
|
|
277
|
+
*/
|
|
278
|
+
const CAPABILITY_RULES = {
|
|
279
|
+
cover: new Set(["title", "notes"]),
|
|
280
|
+
section: new Set(["title", "notes", "image", "figure-caption"]),
|
|
281
|
+
content: new Set(["title", "key-message", "body", "image", "notes", "kpi-table", "figure-caption", "table-caption"]),
|
|
282
|
+
main: new Set(["title", "key-message", "body", "main-box", "kpi-table", "image", "notes", "figure-caption", "table-caption"]),
|
|
283
|
+
summary: new Set(["title", "key-message", "summary-group", "image", "kpi-table", "figure-caption", "table-caption"]),
|
|
284
|
+
closing: new Set(["title", "notes"]),
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// Blocks that carry their own position and so never claim a region.
|
|
288
|
+
const PLACEMENT_BLOCK_TYPES = new Set(["box", "shape", "columns"]);
|
|
289
|
+
|
|
290
|
+
// Notes are slide-level metadata; placement blocks position themselves. Neither
|
|
291
|
+
// depends on what regions a layout happens to declare.
|
|
292
|
+
const ALWAYS_ALLOWED = new Set(["notes", ...PLACEMENT_BLOCK_TYPES]);
|
|
293
|
+
|
|
294
|
+
// The inverse of blockToRegion. A template may declare a layout without also
|
|
295
|
+
// listing its supported blocks, and the regions it declares already say which
|
|
296
|
+
// blocks it can hold — deriving the answer keeps the layout set open without
|
|
297
|
+
// hardcoding another table that would drift from this one.
|
|
298
|
+
const REGION_TO_BLOCKS = {
|
|
299
|
+
title: ["title"],
|
|
300
|
+
body: ["body"],
|
|
301
|
+
table: ["kpi-table", "table"],
|
|
302
|
+
kpi_table: ["kpi-table"],
|
|
303
|
+
image: ["image"],
|
|
304
|
+
main_box: ["main-box"],
|
|
305
|
+
key_message: ["key-message"],
|
|
306
|
+
figure_caption: ["figure-caption"],
|
|
307
|
+
table_caption: ["table-caption"],
|
|
308
|
+
group_top: ["summary-group"],
|
|
309
|
+
group_bottom: ["summary-group"],
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
// "free" needs no template declaration: it means "this slide uses no template
|
|
313
|
+
// region", so every template supports it by construction. A template may still
|
|
314
|
+
// declare its own free layout, and that declaration wins.
|
|
315
|
+
const FREE_LAYOUT = { layout_source: "none", decorations: null, regions: {} };
|
|
316
|
+
|
|
317
|
+
// A region holds one block. Images are the documented exception — they collapse
|
|
318
|
+
// into a grid. Captions are subordinate labels rather than content, and last-wins
|
|
319
|
+
// is how every existing deck already renders them.
|
|
320
|
+
const MERGEABLE_REGIONS = new Set(["image"]);
|
|
321
|
+
const SUBORDINATE_REGIONS = new Set(["figure_caption", "table_caption"]);
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Validate blocks against capability rules from the template's capabilities.
|
|
325
|
+
* @param {number} slideIndex
|
|
326
|
+
* @param {string} layout
|
|
327
|
+
* @param {Array} blocks
|
|
328
|
+
* @param {object} [templateCapabilities] — Parsed capabilities.yaml (optional)
|
|
329
|
+
* @param {object} [layoutConfig] — The layout's mapping entry, used to derive
|
|
330
|
+
* capabilities when the template publishes none for this layout
|
|
331
|
+
*/
|
|
332
|
+
function validateCapabilities(slideIndex, layout, blocks, templateCapabilities, layoutConfig) {
|
|
333
|
+
// Use template capabilities if provided, otherwise fall back to built-in
|
|
334
|
+
// rules, otherwise derive from the regions this layout declares.
|
|
335
|
+
let allowed;
|
|
336
|
+
if (templateCapabilities && templateCapabilities.supported_blocks &&
|
|
337
|
+
templateCapabilities.supported_blocks[layout]) {
|
|
338
|
+
allowed = new Set(templateCapabilities.supported_blocks[layout]);
|
|
339
|
+
} else if (CAPABILITY_RULES[layout]) {
|
|
340
|
+
allowed = CAPABILITY_RULES[layout];
|
|
341
|
+
} else if (layoutConfig && layoutConfig.regions) {
|
|
342
|
+
allowed = new Set(
|
|
343
|
+
Object.keys(layoutConfig.regions).flatMap((r) => REGION_TO_BLOCKS[r] || [])
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if (!allowed) {
|
|
348
|
+
throw new Error(
|
|
349
|
+
`Slide ${slideIndex}: unknown layout "${layout}" with no capability rules`
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
for (const block of blocks) {
|
|
354
|
+
if (ALWAYS_ALLOWED.has(block.type)) continue;
|
|
355
|
+
|
|
356
|
+
if (!allowed.has(block.type)) {
|
|
357
|
+
throw new Error(
|
|
358
|
+
`Slide ${slideIndex} (layout: ${layout}): ` +
|
|
359
|
+
`block type "${block.type}" is not allowed. ` +
|
|
360
|
+
`Allowed: ${[...allowed, ...ALWAYS_ALLOWED].join(", ") || "(placement blocks only)"}`
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Divide a layout's body region into columns.
|
|
368
|
+
*
|
|
369
|
+
* Tracks are ratios, so the source carries no coordinates and the same deck
|
|
370
|
+
* still lands correctly on a template with a different canvas.
|
|
371
|
+
*
|
|
372
|
+
* @returns {Array<object>} one content-band placement per column
|
|
373
|
+
*/
|
|
374
|
+
function resolveColumns(slideIndex, layout, regionDefs, block) {
|
|
375
|
+
const bodyDef = regionDefs && regionDefs.body;
|
|
376
|
+
if (!bodyDef) {
|
|
377
|
+
throw new Error(
|
|
378
|
+
`Slide ${slideIndex} (layout: ${layout}): ":::: columns" divides the layout's ` +
|
|
379
|
+
`body region, but "${layout}" declares none. ` +
|
|
380
|
+
`Regions here: ${Object.keys(regionDefs || {}).join(", ") || "(none)"}`
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const weights = block.tracks.map((track) => {
|
|
385
|
+
const value = parseFloat(String(track));
|
|
386
|
+
if (!isFinite(value) || value <= 0) {
|
|
387
|
+
throw new Error(
|
|
388
|
+
`Slide ${slideIndex}: column track "${track}" is not a positive ratio ` +
|
|
389
|
+
`(write them as "2fr 1fr").`
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
return value;
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
const total = weights.reduce((sum, w) => sum + w, 0);
|
|
396
|
+
const gap = typeof block.gap === "number" ? block.gap : 0.25;
|
|
397
|
+
const inner = bodyDef.w - gap * (weights.length - 1);
|
|
398
|
+
if (inner <= 0) {
|
|
399
|
+
throw new Error(
|
|
400
|
+
`Slide ${slideIndex}: a gap of ${gap}in leaves no width for ${weights.length} columns ` +
|
|
401
|
+
`inside a body region ${bodyDef.w}in wide.`
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
let x = bodyDef.x;
|
|
406
|
+
return block.columns.map((column, i) => {
|
|
407
|
+
const w = inner * (weights[i] / total);
|
|
408
|
+
const placement = {
|
|
409
|
+
kind: "box",
|
|
410
|
+
z: "content",
|
|
411
|
+
x,
|
|
412
|
+
y: bodyDef.y,
|
|
413
|
+
w,
|
|
414
|
+
...(bodyDef.h !== undefined ? { h: bodyDef.h } : {}),
|
|
415
|
+
blocks: column.blocks || [],
|
|
416
|
+
};
|
|
417
|
+
x += w + gap;
|
|
418
|
+
return placement;
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
// ---------------------------------------------------------------------------
|
|
423
|
+
// Main resolve function
|
|
424
|
+
// ---------------------------------------------------------------------------
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Resolve a compiled AST against a template to produce render-ready specs.
|
|
428
|
+
*
|
|
429
|
+
* @param {object} ast — AST from compile-deck.js (conforms to slide-ast-v1)
|
|
430
|
+
* @param {object} templateObj — Template object from template-registry.js
|
|
431
|
+
* Expected shape:
|
|
432
|
+
* {
|
|
433
|
+
* name: "AZURE-PRO",
|
|
434
|
+
* mapping: "<yaml string of layout-mapping.yaml>",
|
|
435
|
+
* capabilities: "<yaml string of capabilities.yaml>",
|
|
436
|
+
* template: "<yaml string of template.yaml>"
|
|
437
|
+
* }
|
|
438
|
+
* @returns {object} — Resolved deck spec with positioned regions
|
|
439
|
+
*/
|
|
440
|
+
/**
|
|
441
|
+
* Caption prefixes in the deck's language: "도"/"표" for a Korean deck, "Figure"/
|
|
442
|
+
* "Table" otherwise. Frontmatter `lang: ko|en` decides; without it, a deck whose
|
|
443
|
+
* text is at least a tenth Hangul (one syllable weighs about two Latin letters)
|
|
444
|
+
* is Korean. English decks used to get Korean prefixes.
|
|
445
|
+
*/
|
|
446
|
+
function captionPrefixes(ast) {
|
|
447
|
+
const meta = (ast.deck && ast.deck.metadata) || {};
|
|
448
|
+
const lang = String(meta.lang || meta.language || "").toLowerCase();
|
|
449
|
+
let korean;
|
|
450
|
+
if (lang) korean = lang.startsWith("ko");
|
|
451
|
+
else {
|
|
452
|
+
const strings = [];
|
|
453
|
+
const walk = (node, key) => {
|
|
454
|
+
if (typeof node === "string") { if (!["type", "layout", "src", "variant", "kind", "align"].includes(key)) strings.push(node); }
|
|
455
|
+
else if (Array.isArray(node)) node.forEach((n) => walk(n, key));
|
|
456
|
+
else if (node && typeof node === "object") for (const [k, v] of Object.entries(node)) walk(v, k);
|
|
457
|
+
};
|
|
458
|
+
walk(ast.slides || [], "");
|
|
459
|
+
const text = strings.join(" ");
|
|
460
|
+
const hangul = (text.match(/[\uac00-\ud7a3]/gu) || []).length;
|
|
461
|
+
const latin = (text.match(/[A-Za-z]/gu) || []).length;
|
|
462
|
+
korean = hangul * 2 >= 0.1 * (hangul * 2 + latin) && hangul > 0;
|
|
463
|
+
}
|
|
464
|
+
return korean ? ["도", "표"] : ["Figure", "Table"];
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function resolve(ast, templateObj) {
|
|
468
|
+
if (!ast || !ast.slides) {
|
|
469
|
+
throw new Error("resolve(): invalid AST — expected an object with a slides array");
|
|
470
|
+
}
|
|
471
|
+
if (!templateObj) {
|
|
472
|
+
throw new Error("resolve(): templateObj is required");
|
|
473
|
+
}
|
|
474
|
+
if (templateObj.pack && !templateObj.pack.legacy) return resolvePack(ast, templateObj);
|
|
475
|
+
|
|
476
|
+
// Parse YAML strings from template object
|
|
477
|
+
const mapping = typeof templateObj.mapping === "string"
|
|
478
|
+
? parseYaml(templateObj.mapping)
|
|
479
|
+
: templateObj.mapping;
|
|
480
|
+
const capabilities = typeof templateObj.capabilities === "string"
|
|
481
|
+
? parseYaml(templateObj.capabilities)
|
|
482
|
+
: templateObj.capabilities;
|
|
483
|
+
|
|
484
|
+
if (!mapping || !mapping.layouts) {
|
|
485
|
+
throw new Error(
|
|
486
|
+
`resolve(): template "${templateObj.name || "unknown"}" has no layout mapping`
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
const resolvedSlides = [];
|
|
491
|
+
let figureCount = 0;
|
|
492
|
+
let tableCount = 0;
|
|
493
|
+
|
|
494
|
+
const deckMeta = ast.deck || {};
|
|
495
|
+
const [FIGURE, TABLE] = captionPrefixes(ast);
|
|
496
|
+
|
|
497
|
+
const tokens = (templateObj.pack && templateObj.pack.tokens) || {};
|
|
498
|
+
const kpiBlockHeight = (tokens.kpi && tokens.kpi.blockHeight) || 1.75;
|
|
499
|
+
for (const slide of ast.slides) {
|
|
500
|
+
if (slide.meta && slide.meta.title) {
|
|
501
|
+
throw new Error(
|
|
502
|
+
`Slide ${slide.index + 1}: "title: ${slide.meta.title}" picks a title treatment, which needs a tonality; ` +
|
|
503
|
+
`${templateObj.name || "this template"} is a legacy template with one title look`
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
const resolved = resolveSlide(slide, mapping, capabilities, deckMeta, kpiBlockHeight);
|
|
507
|
+
// Auto-number captions across the deck
|
|
508
|
+
for (const [name, region] of Object.entries(resolved.regions || {})) {
|
|
509
|
+
if (region.content && region.content.type === "figure-caption") {
|
|
510
|
+
figureCount++;
|
|
511
|
+
region.content.number = figureCount;
|
|
512
|
+
region.content.prefix = FIGURE;
|
|
513
|
+
}
|
|
514
|
+
if (region.content && region.content.type === "table-caption" && region.content.figure) {
|
|
515
|
+
// A chart's caption is a figure caption, numbered with the figures.
|
|
516
|
+
figureCount++;
|
|
517
|
+
region.content.number = figureCount;
|
|
518
|
+
region.content.prefix = FIGURE;
|
|
519
|
+
} else if (region.content && region.content.type === "table-caption") {
|
|
520
|
+
tableCount++;
|
|
521
|
+
region.content.number = tableCount;
|
|
522
|
+
region.content.prefix = TABLE;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
resolvedSlides.push(resolved);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
return {
|
|
529
|
+
deck: { ...ast.deck },
|
|
530
|
+
slides: resolvedSlides,
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Resolve a single slide against the layout mapping.
|
|
536
|
+
*
|
|
537
|
+
* @param {object} slide — A slide from the AST
|
|
538
|
+
* @param {object} mapping — Parsed layout-mapping.yaml
|
|
539
|
+
* @param {object} [capabilities] — Parsed capabilities.yaml
|
|
540
|
+
* @returns {object} — Resolved slide spec
|
|
541
|
+
*/
|
|
542
|
+
function resolveSlide(slide, mapping, capabilities, deckMeta, kpiBlockHeight) {
|
|
543
|
+
const { index, blocks } = slide;
|
|
544
|
+
|
|
545
|
+
// 1. Look up layout configuration. A layout family the template does not declare (kpi-row,
|
|
546
|
+
// chart-insight, …) is drawn on the template layout that hosts its kind of slide.
|
|
547
|
+
const family = familyOf(slide.layout, mapping, index);
|
|
548
|
+
const layout = (mapping.layouts[slide.layout] || slide.layout === "free") ? slide.layout : family.host;
|
|
549
|
+
const layoutConfig = mapping.layouts[layout] ||
|
|
550
|
+
(layout === "free" ? FREE_LAYOUT : null);
|
|
551
|
+
if (!layoutConfig) {
|
|
552
|
+
throw new Error(
|
|
553
|
+
`Slide ${index}: layout "${layout}" not found in template mapping. ` +
|
|
554
|
+
`Available: ${Object.keys(mapping.layouts).join(", ")}, free`
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// 2. Validate blocks against capabilities
|
|
559
|
+
validateCapabilities(index, layout, blocks, capabilities, layoutConfig);
|
|
560
|
+
|
|
561
|
+
// 3. Pick the variant, if the slide asked for one. A variant swaps the
|
|
562
|
+
// decoration set and may move the regions the new furniture displaces —
|
|
563
|
+
// a split cover needs a narrower title than a full-bleed one.
|
|
564
|
+
let decorKey = layoutConfig.decorations;
|
|
565
|
+
let regionDefs = layoutConfig.regions || {};
|
|
566
|
+
const variantName = slide.meta && slide.meta.variant;
|
|
567
|
+
if (variantName) {
|
|
568
|
+
const variants = layoutConfig.variants || {};
|
|
569
|
+
const variant = variants[variantName];
|
|
570
|
+
if (!variant) {
|
|
571
|
+
throw new Error(
|
|
572
|
+
`Slide ${index}: layout "${layout}" has no variant "${variantName}". ` +
|
|
573
|
+
`Available: ${Object.keys(variants).join(", ") || "(none — this layout declares no variants)"}`
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
if (variant.decorations) decorKey = variant.decorations;
|
|
577
|
+
if (variant.regions) regionDefs = { ...regionDefs, ...variant.regions };
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
let decorations = [];
|
|
581
|
+
if (decorKey && mapping.decorations && mapping.decorations[decorKey]) {
|
|
582
|
+
decorations = mapping.decorations[decorKey].elements || [];
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// 4. Map blocks to regions, and collect the blocks that place themselves
|
|
586
|
+
const regions = {};
|
|
587
|
+
const placements = [];
|
|
588
|
+
let hasColumns = false;
|
|
589
|
+
|
|
590
|
+
for (const block of blocks) {
|
|
591
|
+
if (block.type === "shape") {
|
|
592
|
+
const { type, ...rest } = block;
|
|
593
|
+
placements.push({ kind: "shape", ...rest });
|
|
594
|
+
continue;
|
|
595
|
+
}
|
|
596
|
+
if (block.type === "box") {
|
|
597
|
+
// A role that does not exist would otherwise fall back to a default and
|
|
598
|
+
// render in the wrong type, which is worse than not rendering: the deck
|
|
599
|
+
// looks finished and is quietly off-system.
|
|
600
|
+
const roles = (capabilities && capabilities.font_roles) || null;
|
|
601
|
+
if (block.role && roles && !roles[block.role]) {
|
|
602
|
+
throw new Error(
|
|
603
|
+
`Slide ${index}: "::: box role=${block.role}" names a font role this ` +
|
|
604
|
+
`template does not define. Available: ${Object.keys(roles).join(", ")}`
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
const { type, ...rest } = block;
|
|
608
|
+
placements.push({ kind: "box", ...rest });
|
|
609
|
+
continue;
|
|
610
|
+
}
|
|
611
|
+
if (block.type === "columns") {
|
|
612
|
+
placements.push(...resolveColumns(index, layout, regionDefs, block));
|
|
613
|
+
hasColumns = true;
|
|
614
|
+
continue;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
// An explicit "::: region name=" beats the block type's default region.
|
|
618
|
+
const regionName = block.regionHint || blockToRegion(block.type, block, layout);
|
|
619
|
+
if (!regionName) continue;
|
|
620
|
+
|
|
621
|
+
const regionDef = regionDefs[regionName];
|
|
622
|
+
if (!regionDef) {
|
|
623
|
+
throw new Error(
|
|
624
|
+
`Slide ${index} (layout: ${layout}): ` +
|
|
625
|
+
`block "${block.type}" maps to region "${regionName}" ` +
|
|
626
|
+
`which is not defined in the layout mapping. ` +
|
|
627
|
+
`Available regions: ${Object.keys(regionDefs).join(", ") || "(none)"}`
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// Build the resolved region: position metadata + block content
|
|
632
|
+
const resolved = {
|
|
633
|
+
x: regionDef.x,
|
|
634
|
+
y: regionDef.y,
|
|
635
|
+
w: regionDef.w,
|
|
636
|
+
...(regionDef.h !== undefined ? { h: regionDef.h } : {}),
|
|
637
|
+
content: extractContent(block),
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
// Copy region metadata (font roles, autofit, alignment, border, etc.)
|
|
641
|
+
for (const key of Object.keys(regionDef)) {
|
|
642
|
+
if (key === "x" || key === "y" || key === "w" || key === "h") continue;
|
|
643
|
+
resolved[key] = regionDef[key];
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
if (regions[regionName]) {
|
|
647
|
+
if (MERGEABLE_REGIONS.has(regionName)) {
|
|
648
|
+
const existing = regions[regionName].content;
|
|
649
|
+
const images = existing && existing.type === "image-grid"
|
|
650
|
+
? existing.images
|
|
651
|
+
: [existing];
|
|
652
|
+
images.push(resolved.content);
|
|
653
|
+
regions[regionName].content = { type: "image-grid", images };
|
|
654
|
+
} else if (SUBORDINATE_REGIONS.has(regionName)) {
|
|
655
|
+
regions[regionName] = resolved;
|
|
656
|
+
} else {
|
|
657
|
+
throw new Error(
|
|
658
|
+
`Slide ${index} (layout: ${layout}): two blocks both claim region ` +
|
|
659
|
+
`"${regionName}", so one would be lost. A region holds one block — ` +
|
|
660
|
+
`send one of them elsewhere with "::: region name=<region>", or place ` +
|
|
661
|
+
`them side by side with ":::: columns". ` +
|
|
662
|
+
`Regions here: ${Object.keys(regionDefs).join(", ")}`
|
|
663
|
+
);
|
|
664
|
+
}
|
|
665
|
+
} else {
|
|
666
|
+
regions[regionName] = resolved;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
// Columns take over the body area, so the body region must not also render.
|
|
671
|
+
if (hasColumns) delete regions.body;
|
|
672
|
+
|
|
673
|
+
// When body + image coexist, narrow body to leave room for the image
|
|
674
|
+
if (regions.body && regions.image) {
|
|
675
|
+
const imageX = regions.image.x || 0;
|
|
676
|
+
if (imageX > 0 && imageX < (regions.body.x || 0) + (regions.body.w || 10)) {
|
|
677
|
+
regions.body.w = Math.max(1, imageX - (regions.body.x || 0) - 0.2);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
// When a table + image coexist on one slide, narrow the table so it never
|
|
682
|
+
// overlaps the image (the image keeps its right-hand column with a gutter).
|
|
683
|
+
// Content layouts map the table to "table"; main layouts to "kpi_table".
|
|
684
|
+
const tableImageRegion = regions.kpi_table || regions.table;
|
|
685
|
+
if (tableImageRegion && regions.image) {
|
|
686
|
+
const imageX = regions.image.x || 0;
|
|
687
|
+
if (imageX > 0 && imageX < (tableImageRegion.x || 0) + (tableImageRegion.w || 10)) {
|
|
688
|
+
tableImageRegion.w = Math.max(1, imageX - (tableImageRegion.x || 0) - 0.2);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
// When table + body coexist, offset body below the table. Content layouts
|
|
693
|
+
// map KPI tables to "table" while main layouts map them to "kpi_table".
|
|
694
|
+
const tableRegion = regions.kpi_table || regions.table;
|
|
695
|
+
if (tableRegion && regions.body) {
|
|
696
|
+
const tblY = tableRegion.y || 1.044;
|
|
697
|
+
const tblRows = (tableRegion.content && tableRegion.content.rows) || [];
|
|
698
|
+
const tblHeaders = (tableRegion.content && tableRegion.content.headers) || [];
|
|
699
|
+
const rowCount = tblRows.length + (tblHeaders.length > 0 ? 1 : 0);
|
|
700
|
+
const rowH = 0.35;
|
|
701
|
+
// The row model only describes a table drawn as a table. The same block
|
|
702
|
+
// renders as KPI badges when its shape suggests it, and those stand far
|
|
703
|
+
// taller than their row count, so a body placed by the row estimate alone
|
|
704
|
+
// lands on top of them.
|
|
705
|
+
const tableContent = tableRegion.content || {};
|
|
706
|
+
const needed = looksLikeKpi(tableContent)
|
|
707
|
+
? kpiBlockHeight
|
|
708
|
+
: rowCount * rowH;
|
|
709
|
+
const tableBottom = tblY + Math.max(needed, tableRegion.h || 0) + 0.3;
|
|
710
|
+
if ((regions.body.y || 1.044) < tableBottom) {
|
|
711
|
+
regions.body.y = tableBottom;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
// Cover slide: auto-populate date_line from deck metadata
|
|
716
|
+
if (layout === "cover" && deckMeta) {
|
|
717
|
+
const meta = deckMeta.metadata || {};
|
|
718
|
+
if (regionDefs.date_line && !regions.date_line) {
|
|
719
|
+
const parts = [];
|
|
720
|
+
if (meta.date) parts.push(meta.date);
|
|
721
|
+
if (meta.department) parts.push(meta.department);
|
|
722
|
+
if (parts.length > 0) {
|
|
723
|
+
const rd = regionDefs.date_line;
|
|
724
|
+
regions.date_line = {
|
|
725
|
+
x: rd.x, y: rd.y, w: rd.w,
|
|
726
|
+
...(rd.h !== undefined ? { h: rd.h } : {}),
|
|
727
|
+
content: parts.join(" | "),
|
|
728
|
+
};
|
|
729
|
+
for (const key of Object.keys(rd)) {
|
|
730
|
+
if (key === "x" || key === "y" || key === "w" || key === "h") continue;
|
|
731
|
+
regions.date_line[key] = rd[key];
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
// Auto-populate any cover region named after a frontmatter key (e.g. subtitle,
|
|
736
|
+
// eyebrow) so designed cover templates can surface deck metadata.
|
|
737
|
+
for (const [rname, rdef] of Object.entries(regionDefs)) {
|
|
738
|
+
if (regions[rname] || rname === "date_line" || rname === "title") continue;
|
|
739
|
+
if (meta[rname] == null) continue;
|
|
740
|
+
regions[rname] = { x: rdef.x, y: rdef.y, w: rdef.w, ...(rdef.h !== undefined ? { h: rdef.h } : {}), content: String(meta[rname]) };
|
|
741
|
+
for (const key of Object.keys(rdef)) {
|
|
742
|
+
if (["x", "y", "w", "h"].includes(key)) continue;
|
|
743
|
+
regions[rname][key] = rdef[key];
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
return {
|
|
749
|
+
index,
|
|
750
|
+
layout,
|
|
751
|
+
family: family.id,
|
|
752
|
+
layoutSource: layoutConfig.layout_source,
|
|
753
|
+
decorations,
|
|
754
|
+
regions,
|
|
755
|
+
placements,
|
|
756
|
+
blocks,
|
|
757
|
+
...(slide.meta ? { meta: slide.meta } : {}),
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Extract the primary text content from a block for the resolved region.
|
|
763
|
+
* @param {object} block
|
|
764
|
+
* @returns {string}
|
|
765
|
+
*/
|
|
766
|
+
function extractContent(block) {
|
|
767
|
+
if (block.type === "title") return block.content || "";
|
|
768
|
+
if (block.type === "main-box") return block.content || "";
|
|
769
|
+
if (block.type === "key-message") return block.content || "";
|
|
770
|
+
if (block.type === "notes") return block.content || "";
|
|
771
|
+
if (block.type === "body") return { type: "body", items: block.items || [] };
|
|
772
|
+
if (block.type === "kpi-table") return { type: "kpi-table", headers: block.headers || [], rows: block.rows || [], caption: block.caption || "", ...(block.chart ? { chart: block.chart } : {}) };
|
|
773
|
+
if (block.type === "image") return { type: "image", src: block.src || "", caption: block.caption || "" };
|
|
774
|
+
if (block.type === "figure-caption") return { type: "figure-caption", caption: block.caption || "" };
|
|
775
|
+
if (block.type === "table-caption") return { type: "table-caption", caption: block.caption || "", ...(block.figure ? { figure: true } : {}) };
|
|
776
|
+
if (block.type === "summary-group") return { type: "summary-group", heading: block.heading, items: block.items || [] };
|
|
777
|
+
return "";
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
// ---------------------------------------------------------------------------
|
|
781
|
+
// Layout families
|
|
782
|
+
// ---------------------------------------------------------------------------
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* The family a slide is stamped with, and the template layout that hosts it when the template
|
|
786
|
+
* does not declare the name itself. A name that is neither keeps the template's own error.
|
|
787
|
+
*/
|
|
788
|
+
function familyOf(layout, mapping, index) {
|
|
789
|
+
if (grid.LEGACY_LAYOUTS[layout]) return { id: grid.LEGACY_LAYOUTS[layout], host: layout };
|
|
790
|
+
if (mapping.layouts[layout]) return { id: layout, host: layout };
|
|
791
|
+
try {
|
|
792
|
+
const f = grid.resolveFamily(layout, index + 1);
|
|
793
|
+
return { id: f.family || layout, host: f.kind === "cover" || f.kind === "section" ? f.kind : "content" };
|
|
794
|
+
} catch (_) {
|
|
795
|
+
return { id: layout, host: layout };
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
// ---------------------------------------------------------------------------
|
|
800
|
+
// Tonality packs: regions on the 12-column grid
|
|
801
|
+
// ---------------------------------------------------------------------------
|
|
802
|
+
|
|
803
|
+
const PACK_BLOCKS = {
|
|
804
|
+
cover: new Set(["title", "notes"]),
|
|
805
|
+
section: new Set(["title", "notes", "image", "figure-caption"]),
|
|
806
|
+
content: new Set(["title", "key-message", "body", "main-box", "kpi-table", "image", "notes", "figure-caption", "table-caption", "summary-group"]),
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
const plain = (text) => String(text || "").replace(/\*\*/g, "").trim();
|
|
810
|
+
|
|
811
|
+
/** What a slide holds, as the treatment rules need it. */
|
|
812
|
+
function slideFacts(blocks) {
|
|
813
|
+
const all = blocks.flatMap((b) => (b.type === "columns" ? b.columns.flatMap((c) => c.blocks || []) : [b]));
|
|
814
|
+
const has = (type) => all.some((b) => b.type === type);
|
|
815
|
+
const textBlocks = all.filter((b) => ["body", "summary-group", "main-box", "key-message"].includes(b.type)).length +
|
|
816
|
+
(blocks.some((b) => b.type === "columns") ? 1 : 0);
|
|
817
|
+
const bodyItems = all.filter((b) => b.type === "body").reduce((n, b) => n + (b.items || []).length, 0);
|
|
818
|
+
return {
|
|
819
|
+
image: has("image"),
|
|
820
|
+
visual: has("image") || has("kpi-table"),
|
|
821
|
+
textBlocks: textBlocks + (bodyItems > 1 ? 1 : 0),
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/** Comparison halves of numbers are data; halves of arguments are content. */
|
|
826
|
+
function comparisonRole(blocks) {
|
|
827
|
+
const text = JSON.stringify(blocks);
|
|
828
|
+
const digits = (text.match(/\d/g) || []).length;
|
|
829
|
+
return digits / Math.max(1, plain(text).length) >= 0.04 ? "data" : "content";
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/** The ordered content of a pack slide, captions bound to the visual before them. */
|
|
833
|
+
// Families whose geometry is a chart: a table of numbers there is drawn as one.
|
|
834
|
+
const CHART_FAMILIES = new Set(["chart-insight", "full-chart", "kpi-over-chart", "dashboard-grid"]);
|
|
835
|
+
const NUMBER_CELL = /^[+\-−±▲▼△▽]?\s*[\d.,]+\s*(?:%p?|배|x|pt|bp|[가-힣]{1,3}|[A-Za-z]{1,3})?$/u;
|
|
836
|
+
|
|
837
|
+
/** A table whose data columns are all numbers, over three or more rows, can be drawn as a chart. */
|
|
838
|
+
function chartable(c) {
|
|
839
|
+
const rows = c.rows || [];
|
|
840
|
+
const headers = c.headers || [];
|
|
841
|
+
return headers.length >= 2 && rows.length >= 3 &&
|
|
842
|
+
headers.slice(1).every((_, ci) => rows.every((r) => r[ci + 1] != null && NUMBER_CELL.test(plain(r[ci + 1]))));
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
function packItems(blocks, numbering, charts = false) {
|
|
846
|
+
const items = [];
|
|
847
|
+
for (const block of blocks) {
|
|
848
|
+
if (["title", "notes", "key-message", "box", "shape"].includes(block.type)) continue;
|
|
849
|
+
if (block.type === "columns") {
|
|
850
|
+
items.push({ type: "columns", tracks: block.tracks, columns: block.columns.map((c) => packItems(c.blocks || [], numbering, charts)) });
|
|
851
|
+
continue;
|
|
852
|
+
}
|
|
853
|
+
const content = extractContent(block);
|
|
854
|
+
if (charts && block.type === "kpi-table" && !content.chart && chartable(content)) {
|
|
855
|
+
content.chart = { type: (content.rows || []).length > 8 ? "line" : "column" };
|
|
856
|
+
}
|
|
857
|
+
if (block.type === "figure-caption" || block.type === "table-caption") {
|
|
858
|
+
// A table drawn as a chart is captioned as a figure.
|
|
859
|
+
const charted = [...items].reverse().find((i) => i.type === "kpi-table");
|
|
860
|
+
const figure = block.type === "figure-caption" || block.figure || Boolean(charted && charted.content.chart);
|
|
861
|
+
content.number = figure ? ++numbering.figure : ++numbering.table;
|
|
862
|
+
content.prefix = figure ? numbering.FIGURE : numbering.TABLE;
|
|
863
|
+
const target = [...items].reverse().find((i) => ["kpi-table", "image"].includes(i.type));
|
|
864
|
+
if (target && !target.caption) target.caption = content;
|
|
865
|
+
else items.push({ type: "caption", content });
|
|
866
|
+
continue;
|
|
867
|
+
}
|
|
868
|
+
items.push({ type: block.type, content });
|
|
869
|
+
}
|
|
870
|
+
return items;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* What covers and sections can draw from the deck itself: the first image, the part names (from
|
|
875
|
+
* the agenda heads, else the section titles), the first row of headline numbers and a real year.
|
|
876
|
+
*/
|
|
877
|
+
function deckFacts(ast) {
|
|
878
|
+
const facts = { image: null, index: [], figures: [], numeral: null };
|
|
879
|
+
const sections = [];
|
|
880
|
+
for (const slide of ast.slides) {
|
|
881
|
+
for (const b of slide.blocks) {
|
|
882
|
+
if (!facts.image && b.type === "image" && b.src) facts.image = { src: b.src, caption: b.caption };
|
|
883
|
+
if (!facts.figures.length && b.type === "kpi-table" && !b.chart && looksLikeKpi(b, { basis: true })) {
|
|
884
|
+
const headers = b.headers || [];
|
|
885
|
+
const row = (b.rows || [])[0] || [];
|
|
886
|
+
facts.figures = headers.slice(0, 4).map((h, i) => ({ label: plain(h), value: plain(row[i]) })).filter((f) => f.value);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
if (slide.layout === "agenda" && !facts.index.length) {
|
|
890
|
+
const body = slide.blocks.find((b) => b.type === "body");
|
|
891
|
+
const items = ((body && body.items) || []).filter((i) => plain(i.heading || i.text)).slice(0, 6);
|
|
892
|
+
facts.index = items.map((i) => plain(i.heading || String(i.text || "").replace(/^\*\*(.+?)\*\*.*$/u, "$1")));
|
|
893
|
+
// What each part is about, so a section titled with an entry's description finds its place too.
|
|
894
|
+
facts.indexAbout = items.map((i) => plain(String(i.text || "").replace(/^\*\*(.+?)\*\*/u, "")));
|
|
895
|
+
}
|
|
896
|
+
if (/^section/u.test(slide.layout)) {
|
|
897
|
+
const t = slide.blocks.find((b) => b.type === "title");
|
|
898
|
+
if (t) sections.push(plain(t.content));
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
if (!facts.index.length && sections.length >= 2) facts.index = sections.slice(0, 6);
|
|
902
|
+
facts.indexAbout = facts.indexAbout || [];
|
|
903
|
+
const meta = (ast.deck && ast.deck.metadata) || {};
|
|
904
|
+
const year = `${ast.deck && ast.deck.title ? ast.deck.title : ""} ${meta.date || ""}`.match(/\b(19|20)\d{2}\b/u);
|
|
905
|
+
facts.numeral = year ? year[0] : null;
|
|
906
|
+
return facts;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/** Titles of the content slides a section opens, up to the next section or closing (at most three). */
|
|
910
|
+
function sectionContents(ast, from) {
|
|
911
|
+
const out = [];
|
|
912
|
+
for (const s of ast.slides.slice(from + 1)) {
|
|
913
|
+
if (/^(section|closing)/u.test(s.layout || "")) break;
|
|
914
|
+
const t = s.blocks.find((b) => b.type === "title");
|
|
915
|
+
if (t && plain(t.content)) out.push(plain(t.content));
|
|
916
|
+
}
|
|
917
|
+
return out.slice(0, 3);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* A preview line: a bold run-in label stays bold and is followed by a colon ("**결과:** 공부 시간이 …"),
|
|
922
|
+
* unless the label ends in its own separator; any other line is plain text.
|
|
923
|
+
*/
|
|
924
|
+
function runIn(text) {
|
|
925
|
+
const m = /^\*\*(.+?)\*\*\s*(.*)$/u.exec(String(text || "").trim());
|
|
926
|
+
if (!m || !plain(m[2])) return plain(text);
|
|
927
|
+
const label = plain(m[1]);
|
|
928
|
+
return `**${/[::.)\]–—-]$/u.test(label) ? label : `${label}:`}** ${plain(m[2])}`;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/** The first body lines (bullets or text, up to five) of the slides a section opens, by title. */
|
|
932
|
+
function sectionDigest(ast, from) {
|
|
933
|
+
const out = [];
|
|
934
|
+
for (const s of ast.slides.slice(from + 1)) {
|
|
935
|
+
if (/^(section|closing)/u.test(s.layout || "")) break;
|
|
936
|
+
const t = s.blocks.find((b) => b.type === "title");
|
|
937
|
+
if (!t || !plain(t.content)) continue;
|
|
938
|
+
const lines = s.blocks.filter((b) => b.type === "body").flatMap((b) => b.items || [])
|
|
939
|
+
.filter((i) => ["bullet", "text", "numbered"].includes(i.type) && plain(i.text)).slice(0, 5).map((i) => runIn(i.text));
|
|
940
|
+
out.push({ title: plain(t.content), lines });
|
|
941
|
+
}
|
|
942
|
+
return out.slice(0, 3);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/** Position of a section title in the deck's part index (by entry or by its description), or -1. */
|
|
946
|
+
function indexOf(facts, title) {
|
|
947
|
+
const t = String(title || "").trim();
|
|
948
|
+
if (!t || facts.index.length < 2) return -1;
|
|
949
|
+
const at = facts.index.findIndex((name) => name === t);
|
|
950
|
+
return at >= 0 ? at : facts.indexAbout.findIndex((about) => about === t);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/** Can this cover, section or closing variant be drawn with what the deck and slide hold? true or the reason. */
|
|
954
|
+
function variantApplies(variant, facts, slide) {
|
|
955
|
+
const ownImage = slide.blocks.find((b) => b.type === "image");
|
|
956
|
+
if (["cover-split-image", "cover-full-image"].includes(variant) && !facts.image) return "the deck has no image";
|
|
957
|
+
if (variant === "section-image" && !ownImage) return "the section slide has no image";
|
|
958
|
+
if (variant === "cover-numeral" && !facts.numeral) return "the deck names no year or real figure";
|
|
959
|
+
if (variant === "cover-index" && facts.index.length < 2) return "the deck has no agenda or sections to list";
|
|
960
|
+
if (variant === "cover-figures" && facts.figures.length < 2) return "the deck has no row of headline numbers";
|
|
961
|
+
if (variant === "closing-statement" && slide.blocks.some((b) => ["kpi-table", "image"].includes(b.type))) return "a statement closing has no table or image";
|
|
962
|
+
return true;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* The variant of a cover, section or closing: the one the source names when the pack lists it and
|
|
967
|
+
* it can be drawn, else the pack's first that can. A generic name (cover, section, closing) asks
|
|
968
|
+
* for the pack's own first choice.
|
|
969
|
+
*/
|
|
970
|
+
function chooseVariant(kind, named, pack, facts, slide, notes) {
|
|
971
|
+
const list = pack[kind === "cover" ? "covers" : kind === "section" ? "sections" : "closings"] || [];
|
|
972
|
+
const n = slide.index + 1;
|
|
973
|
+
if (named && list.includes(named)) {
|
|
974
|
+
const why = variantApplies(named, facts, slide);
|
|
975
|
+
if (why === true) return named;
|
|
976
|
+
notes.push(`slide ${n}: ${named} cannot be drawn (${why})`);
|
|
977
|
+
} else if (named && !["cover", "section", "closing"].includes(named)) {
|
|
978
|
+
notes.push(`slide ${n}: ${named} is not a ${pack.id} ${kind} variant (${list.join(", ")})`);
|
|
979
|
+
}
|
|
980
|
+
const pick = list.find((v) => v !== named && variantApplies(v, facts, slide) === true);
|
|
981
|
+
if (!pick) throw new Error(`Slide ${n}: no ${pack.id} ${kind} variant (${list.join(", ")}) can be drawn here`);
|
|
982
|
+
if (named) notes.push(`slide ${n}: drawn as ${pick}`);
|
|
983
|
+
return pick;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* Resolve every slide of a deck against a tonality pack: its family, the title treatments it may
|
|
988
|
+
* take (the pack's role default first, then the others the family allows; the renderer picks among
|
|
989
|
+
* them by fill and the variance dial), the treatment geometry inputs and its content in reading
|
|
990
|
+
* order. Notes go to the build log.
|
|
991
|
+
*/
|
|
992
|
+
function resolvePack(ast, templateObj) {
|
|
993
|
+
const pack = templateObj.pack;
|
|
994
|
+
const sizes = pack.tok.sizes;
|
|
995
|
+
const decoration = new Set(pack.decoration || []);
|
|
996
|
+
const notes = [];
|
|
997
|
+
const [FIGURE, TABLE] = captionPrefixes(ast);
|
|
998
|
+
const numbering = { figure: 0, table: 0, FIGURE, TABLE };
|
|
999
|
+
const facts = deckFacts(ast);
|
|
1000
|
+
const families = pack["layout-families"] || [];
|
|
1001
|
+
const wide = { title: grid.faceWidth(pack.faces.title), display: grid.faceWidth(pack.faces.display) };
|
|
1002
|
+
let part = 0;
|
|
1003
|
+
|
|
1004
|
+
const slides = ast.slides.map((slide) => {
|
|
1005
|
+
const n = slide.index + 1;
|
|
1006
|
+
const meta = slide.meta || {};
|
|
1007
|
+
const fam = grid.resolveFamily(slide.layout, n);
|
|
1008
|
+
const kind = fam.kind === "free" ? "content" : fam.kind;
|
|
1009
|
+
const allowed = PACK_BLOCKS[kind];
|
|
1010
|
+
for (const block of slide.blocks) {
|
|
1011
|
+
if (["box", "shape", "columns"].includes(block.type) || allowed.has(block.type)) continue;
|
|
1012
|
+
throw new Error(`Slide ${n} (layout: ${slide.layout}): block type "${block.type}" is not allowed on a ${kind} slide. ` +
|
|
1013
|
+
`Allowed: ${[...allowed].join(", ")}`);
|
|
1014
|
+
}
|
|
1015
|
+
const titleBlock = slide.blocks.find((b) => b.type === "title");
|
|
1016
|
+
const title = titleBlock ? titleBlock.content : "";
|
|
1017
|
+
const lead = slide.blocks.find((b) => b.type === "key-message");
|
|
1018
|
+
const placements = slide.blocks
|
|
1019
|
+
.filter((b) => b.type === "box" || b.type === "shape")
|
|
1020
|
+
.map(({ type, ...rest }) => ({ kind: type === "shape" ? "shape" : "box", ...rest }));
|
|
1021
|
+
const base = { index: slide.index, layout: slide.layout, kind, title, lead: lead ? lead.content : null, placements, blocks: slide.blocks, meta, regions: {} };
|
|
1022
|
+
|
|
1023
|
+
if (kind === "cover" || kind === "section") {
|
|
1024
|
+
if (meta.title) throw new Error(`Slide ${n}: a ${kind} slide takes its variant's title, not "title: ${meta.title}"`);
|
|
1025
|
+
const variant = chooseVariant(kind, fam.family || fam.legacyLayout, pack, facts, slide, notes);
|
|
1026
|
+
let parts = null;
|
|
1027
|
+
if (kind === "section") {
|
|
1028
|
+
// A section numbers itself by its place in the deck's agenda when its title is an agenda
|
|
1029
|
+
// entry (or that entry's description); otherwise it counts the sections so far.
|
|
1030
|
+
const at = indexOf(facts, plain(title));
|
|
1031
|
+
part = at >= 0 ? at + 1 : part + 1;
|
|
1032
|
+
parts = at >= 0 ? facts.index.length : null;
|
|
1033
|
+
}
|
|
1034
|
+
const ownImage = slide.blocks.find((b) => b.type === "image");
|
|
1035
|
+
const cover = { ...facts, image: kind === "section" && ownImage ? { src: ownImage.src, caption: ownImage.caption } : facts.image };
|
|
1036
|
+
const contents = kind === "section" ? sectionContents(ast, slide.index) : [];
|
|
1037
|
+
const digest = kind === "section" ? sectionDigest(ast, slide.index) : [];
|
|
1038
|
+
return { ...base, family: variant, variant, part, parts, cover, contents, digest, regions: { title: { content: title } } };
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
let family = fam.family === "free" ? "text-column" : fam.family;
|
|
1042
|
+
let role = family === "comparison" ? comparisonRole(slide.blocks) : fam.role;
|
|
1043
|
+
if (grid.VARIANTS.closing.includes(family) || fam.legacyLayout === "closing") {
|
|
1044
|
+
family = chooseVariant("closing", fam.legacyLayout === "closing" ? "closing" : family, pack, facts, slide, notes);
|
|
1045
|
+
role = family === "closing-statement" ? "statement" : "content";
|
|
1046
|
+
} else if (!families.includes(family)) {
|
|
1047
|
+
notes.push(`slide ${n}: ${family} is not a ${pack.id} layout family (${families.join(", ")}); drawn with its own geometry`);
|
|
1048
|
+
}
|
|
1049
|
+
let titleOnly = null;
|
|
1050
|
+
if (family === "statement" && !pack.treatments.includes("statement")) {
|
|
1051
|
+
// A pack without a statement title sets the sentence as a top title, the largest it has.
|
|
1052
|
+
titleOnly = ["top-plain-large", "band", "top-rule"].find((t) => pack.treatments.includes(t));
|
|
1053
|
+
if (!titleOnly) throw new Error(`Slide ${n}: ${pack.id} has no statement or top title to set a statement slide with; choose another tonality`);
|
|
1054
|
+
notes.push(`slide ${n}: ${pack.id} has no statement title, so the sentence is drawn as a ${titleOnly} title`);
|
|
1055
|
+
family = "text-column";
|
|
1056
|
+
role = "content";
|
|
1057
|
+
}
|
|
1058
|
+
const items = packItems(slide.blocks, numbering, CHART_FAMILIES.has(family));
|
|
1059
|
+
const paras = slide.blocks.filter((b) => b.type === "body").flatMap((b) => b.items || []);
|
|
1060
|
+
// A closing is not part of a section, so it never carries the part number.
|
|
1061
|
+
const closing = grid.VARIANTS.closing.includes(family);
|
|
1062
|
+
// An agenda numbers its own rows: a count beside its title reads as a stray section number (spec-v2 Amendments 8).
|
|
1063
|
+
const numeral = family === "agenda" ? null : part > 0 && !closing ? part : null;
|
|
1064
|
+
const statementCols = (pack.display || {}).statement === "offset" ? [5, 12] : null;
|
|
1065
|
+
const ctx = { grid: pack.grid, sizes, title: plain(title), hero: pack.hero, decoration, numeral, rail: pack.rail, wide, statementCols, tight: Boolean((pack.tok || {}).tight) };
|
|
1066
|
+
const facts1 = slideFacts(slide.blocks);
|
|
1067
|
+
// A quote under a statement title says the quote; the source line becomes the support line.
|
|
1068
|
+
let statementText = null;
|
|
1069
|
+
let supportText = null;
|
|
1070
|
+
if (family === "quote") {
|
|
1071
|
+
const texts = paras.filter((i) => i.type === "text").map((i) => plain(i.text));
|
|
1072
|
+
const by = texts.find((t) => /^[—–-]\s*/u.test(t));
|
|
1073
|
+
statementText = texts.filter((t) => t !== by).join(" ") || null;
|
|
1074
|
+
supportText = by || null;
|
|
1075
|
+
}
|
|
1076
|
+
const applicable = (t) => {
|
|
1077
|
+
const c = t === "statement" && statementText ? { ...ctx, title: statementText } : ctx;
|
|
1078
|
+
const f = t === "statement" && family === "quote" ? { ...facts1, textBlocks: 1 } : facts1;
|
|
1079
|
+
return grid.treatmentApplies(t, f, c);
|
|
1080
|
+
};
|
|
1081
|
+
let allow = grid.familyAllows(family);
|
|
1082
|
+
let treatment;
|
|
1083
|
+
if (titleOnly) {
|
|
1084
|
+
treatment = titleOnly;
|
|
1085
|
+
} else if (!families.includes(family) && !meta.title && !pack.treatments.some((t) => allow.includes(t) && applicable(t) === true)) {
|
|
1086
|
+
// A family from outside the pack that takes none of its titles gets the pack's title for its role.
|
|
1087
|
+
allow = [pack["role-defaults"][role] || pack.treatments[0], ...grid.familyAllows("text-column")];
|
|
1088
|
+
treatment = pack.treatments.find((t) => allow.includes(t) && applicable(t) === true) || allow[0];
|
|
1089
|
+
notes.push(`slide ${n}: the ${family} family takes none of the ${pack.id} titles; drawn under ${treatment}`);
|
|
1090
|
+
} else {
|
|
1091
|
+
treatment = grid.pickTreatment({
|
|
1092
|
+
pack, family, role, override: meta.title, slideNumber: n, used: new Set(), max: Infinity,
|
|
1093
|
+
applicable, onNote: (note) => notes.push(note),
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
const candidates = meta.title || titleOnly ? [treatment] : [treatment, ...pack.treatments.filter((t) =>
|
|
1097
|
+
t !== treatment && allow.includes(t) && !["statement", "overlay"].includes(t) && applicable(t) === true)];
|
|
1098
|
+
return {
|
|
1099
|
+
...base,
|
|
1100
|
+
family,
|
|
1101
|
+
role,
|
|
1102
|
+
treatment,
|
|
1103
|
+
candidates,
|
|
1104
|
+
ctx,
|
|
1105
|
+
statementText,
|
|
1106
|
+
supportText,
|
|
1107
|
+
items,
|
|
1108
|
+
regions: { title: { content: title } },
|
|
1109
|
+
};
|
|
1110
|
+
});
|
|
1111
|
+
|
|
1112
|
+
return { deck: { ...ast.deck }, slides, notes };
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
// ---------------------------------------------------------------------------
|
|
1116
|
+
// Exports
|
|
1117
|
+
// ---------------------------------------------------------------------------
|
|
1118
|
+
|
|
1119
|
+
module.exports = { resolve, extractContent, looksLikeKpi };
|