@litfamily/litgravity 0.1.7 → 0.1.9
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 +24 -0
- package/README.md +79 -11
- package/README_ko-KR.md +80 -12
- package/bin/litgravity.mjs +3 -7
- package/lib/doctor.mjs +22 -18
- package/lib/host-tools.mjs +9 -36
- package/lib/install.mjs +18 -5
- package/lib/list.mjs +8 -16
- package/lib/paths.mjs +0 -1
- package/package.json +2 -2
- package/plugin/hooks/lib/extensions.mjs +53 -0
- package/plugin/hooks/lib/reentry.mjs +6 -5
- package/plugin/hooks/lib/rewind/board.mjs +295 -0
- package/plugin/hooks/lib/rewind/brief.mjs +26 -18
- package/plugin/hooks/lib/rewind/collect.mjs +42 -4
- package/plugin/hooks/lib/routes.mjs +36 -11
- package/plugin/hooks/post-tool-use.mjs +0 -2
- package/plugin/hooks/pre-invocation.mjs +0 -2
- package/plugin/hooks/session-start.mjs +7 -0
- package/plugin/hooks/stop.mjs +2 -8
- package/plugin/plugin.json +1 -1
- package/plugin/skills/autoconference/SKILL.md +1 -1
- package/plugin/skills/autoconference/modes/core.md +1 -1
- package/plugin/skills/autoconference/references/visualization-guide.md +6 -6
- package/plugin/skills/autoconference/scripts/style_presets.py +6 -6
- package/plugin/skills/autoresearch/references/type-checklists.md +1 -1
- package/plugin/skills/autoresearch/references/visualization-guide.md +11 -5
- package/plugin/skills/frontend-ui-ux/SKILL.md +18 -147
- package/plugin/skills/lit-adhd/SKILL.md +45 -20
- package/plugin/skills/lit-adhd/references/card-examples.md +99 -1
- package/plugin/skills/lit-adhd/references/status-taxonomy.md +17 -8
- package/plugin/skills/lit-code/references/core/agy-surfaces-and-verification.md +1 -1
- package/plugin/skills/lit-code/references/engineering-risk-signals.md +2 -2
- package/plugin/skills/lit-diagram-drawer/SKILL.md +20 -164
- package/plugin/skills/lit-docx/SKILL.md +20 -122
- package/plugin/skills/lit-loop/SKILL.md +1 -1
- package/plugin/skills/lit-pptx/SKILL.md +18 -130
- package/plugin/skills/lit-schematic/SKILL.md +19 -98
- package/plugin/skills/lit-scientific-visualization/SKILL.md +19 -160
- package/plugin/skills/lit-typographic-motion/SKILL.md +19 -188
- package/plugin/skills/readme-studio/SKILL.md +20 -98
- package/plugin/skills/visual-qa/SKILL.md +20 -121
- package/lib/runtime.mjs +0 -81
- package/plugin/hooks/lib/motion.mjs +0 -171
- package/plugin/lib/python-pick.mjs +0 -63
- package/plugin/skills/frontend-ui-ux/ATTRIBUTION.md +0 -23
- package/plugin/skills/frontend-ui-ux/LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/PROVENANCE.json +0 -38
- package/plugin/skills/frontend-ui-ux/SOURCE-MANIFEST.json +0 -1060
- package/plugin/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -14
- package/plugin/skills/frontend-ui-ux/data/design-intelligence.json +0 -1
- package/plugin/skills/frontend-ui-ux/examples/design-contract.example.json +0 -186
- package/plugin/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +0 -9
- package/plugin/skills/frontend-ui-ux/kit/components.css +0 -417
- package/plugin/skills/frontend-ui-ux/kit/fonts.json +0 -22
- package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
- package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
- package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
- package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
- package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
- package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
- package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
- package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
- package/plugin/skills/frontend-ui-ux/kit/ui.js +0 -226
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +0 -217
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +0 -201
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +0 -873
- package/plugin/skills/frontend-ui-ux/references/adaptive-layout.md +0 -103
- package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/complete-contract.md +0 -415
- package/plugin/skills/frontend-ui-ux/references/composition.md +0 -93
- package/plugin/skills/frontend-ui-ux/references/craft-floor.md +0 -203
- package/plugin/skills/frontend-ui-ux/references/creative-directions.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -27
- package/plugin/skills/frontend-ui-ux/references/design/README.md +0 -248
- package/plugin/skills/frontend-ui-ux/references/design/_INDEX.md +0 -191
- package/plugin/skills/frontend-ui-ux/references/design/airbnb.md +0 -393
- package/plugin/skills/frontend-ui-ux/references/design/airtable.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/design/apple.md +0 -250
- package/plugin/skills/frontend-ui-ux/references/design/aside.md +0 -209
- package/plugin/skills/frontend-ui-ux/references/design/binance.md +0 -348
- package/plugin/skills/frontend-ui-ux/references/design/bmw.md +0 -183
- package/plugin/skills/frontend-ui-ux/references/design/brutalist-skill.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/design/bugatti.md +0 -271
- package/plugin/skills/frontend-ui-ux/references/design/cal.md +0 -262
- package/plugin/skills/frontend-ui-ux/references/design/claude.md +0 -315
- package/plugin/skills/frontend-ui-ux/references/design/clay.md +0 -307
- package/plugin/skills/frontend-ui-ux/references/design/clickhouse.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/clone-from-url.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/design/cohere.md +0 -269
- package/plugin/skills/frontend-ui-ux/references/design/coinbase.md +0 -132
- package/plugin/skills/frontend-ui-ux/references/design/composio.md +0 -310
- package/plugin/skills/frontend-ui-ux/references/design/cursor.md +0 -312
- package/plugin/skills/frontend-ui-ux/references/design/design-system-architecture.md +0 -244
- package/plugin/skills/frontend-ui-ux/references/design/elevenlabs.md +0 -268
- package/plugin/skills/frontend-ui-ux/references/design/expo.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/ferrari.md +0 -317
- package/plugin/skills/frontend-ui-ux/references/design/figma.md +0 -223
- package/plugin/skills/frontend-ui-ux/references/design/framer.md +0 -249
- package/plugin/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +0 -74
- package/plugin/skills/frontend-ui-ux/references/design/hashicorp.md +0 -281
- package/plugin/skills/frontend-ui-ux/references/design/ibm.md +0 -335
- package/plugin/skills/frontend-ui-ux/references/design/image-to-code-skill.md +0 -1228
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +0 -798
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +0 -1465
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +0 -987
- package/plugin/skills/frontend-ui-ux/references/design/intercom.md +0 -149
- package/plugin/skills/frontend-ui-ux/references/design/kraken.md +0 -128
- package/plugin/skills/frontend-ui-ux/references/design/lamborghini.md +0 -291
- package/plugin/skills/frontend-ui-ux/references/design/layout-skill.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/design/lazyweb.md +0 -77
- package/plugin/skills/frontend-ui-ux/references/design/linear.app.md +0 -370
- package/plugin/skills/frontend-ui-ux/references/design/lovable.md +0 -301
- package/plugin/skills/frontend-ui-ux/references/design/mastercard.md +0 -368
- package/plugin/skills/frontend-ui-ux/references/design/meta.md +0 -369
- package/plugin/skills/frontend-ui-ux/references/design/minimalist-skill.md +0 -85
- package/plugin/skills/frontend-ui-ux/references/design/minimax.md +0 -260
- package/plugin/skills/frontend-ui-ux/references/design/mintlify.md +0 -329
- package/plugin/skills/frontend-ui-ux/references/design/miro.md +0 -111
- package/plugin/skills/frontend-ui-ux/references/design/mistral.ai.md +0 -264
- package/plugin/skills/frontend-ui-ux/references/design/mongodb.md +0 -269
- package/plugin/skills/frontend-ui-ux/references/design/nike.md +0 -366
- package/plugin/skills/frontend-ui-ux/references/design/notion.md +0 -312
- package/plugin/skills/frontend-ui-ux/references/design/nvidia.md +0 -296
- package/plugin/skills/frontend-ui-ux/references/design/ollama.md +0 -270
- package/plugin/skills/frontend-ui-ux/references/design/opencode.ai.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/output-skill.md +0 -49
- package/plugin/skills/frontend-ui-ux/references/design/pinterest.md +0 -233
- package/plugin/skills/frontend-ui-ux/references/design/playstation.md +0 -367
- package/plugin/skills/frontend-ui-ux/references/design/posthog.md +0 -259
- package/plugin/skills/frontend-ui-ux/references/design/raycast.md +0 -271
- package/plugin/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +0 -230
- package/plugin/skills/frontend-ui-ux/references/design/redesign-skill.md +0 -178
- package/plugin/skills/frontend-ui-ux/references/design/renault.md +0 -314
- package/plugin/skills/frontend-ui-ux/references/design/replicate.md +0 -264
- package/plugin/skills/frontend-ui-ux/references/design/resend.md +0 -306
- package/plugin/skills/frontend-ui-ux/references/design/revolut.md +0 -188
- package/plugin/skills/frontend-ui-ux/references/design/runwayml.md +0 -247
- package/plugin/skills/frontend-ui-ux/references/design/sanity.md +0 -360
- package/plugin/skills/frontend-ui-ux/references/design/sentry.md +0 -265
- package/plugin/skills/frontend-ui-ux/references/design/shopify.md +0 -353
- package/plugin/skills/frontend-ui-ux/references/design/soft-skill.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/design/spacex.md +0 -197
- package/plugin/skills/frontend-ui-ux/references/design/spotify.md +0 -249
- package/plugin/skills/frontend-ui-ux/references/design/starbucks.md +0 -583
- package/plugin/skills/frontend-ui-ux/references/design/stitch-design-example.md +0 -121
- package/plugin/skills/frontend-ui-ux/references/design/stitch-skill.md +0 -184
- package/plugin/skills/frontend-ui-ux/references/design/stripe.md +0 -325
- package/plugin/skills/frontend-ui-ux/references/design/supabase.md +0 -258
- package/plugin/skills/frontend-ui-ux/references/design/superhuman.md +0 -255
- package/plugin/skills/frontend-ui-ux/references/design/taste-skill.md +0 -1206
- package/plugin/skills/frontend-ui-ux/references/design/tesla.md +0 -289
- package/plugin/skills/frontend-ui-ux/references/design/theverge.md +0 -342
- package/plugin/skills/frontend-ui-ux/references/design/together.ai.md +0 -266
- package/plugin/skills/frontend-ui-ux/references/design/uber.md +0 -298
- package/plugin/skills/frontend-ui-ux/references/design/vercel.md +0 -313
- package/plugin/skills/frontend-ui-ux/references/design/vodafone.md +0 -426
- package/plugin/skills/frontend-ui-ux/references/design/voltagent.md +0 -326
- package/plugin/skills/frontend-ui-ux/references/design/warp.md +0 -256
- package/plugin/skills/frontend-ui-ux/references/design/webflow.md +0 -95
- package/plugin/skills/frontend-ui-ux/references/design/wired.md +0 -281
- package/plugin/skills/frontend-ui-ux/references/design/wise.md +0 -176
- package/plugin/skills/frontend-ui-ux/references/design/x.ai.md +0 -260
- package/plugin/skills/frontend-ui-ux/references/design/zapier.md +0 -331
- package/plugin/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +0 -97
- package/plugin/skills/frontend-ui-ux/references/designpowers/README.md +0 -48
- package/plugin/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +0 -80
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +0 -64
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +0 -83
- package/plugin/skills/frontend-ui-ux/references/designpowers/orchestration.md +0 -80
- package/plugin/skills/frontend-ui-ux/references/designpowers/routing.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +0 -132
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +0 -109
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +0 -89
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +0 -113
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +0 -121
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +0 -120
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +0 -101
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +0 -199
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +0 -125
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +0 -106
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +0 -123
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +0 -122
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +0 -75
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +0 -117
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
- package/plugin/skills/frontend-ui-ux/references/evidence-review.md +0 -119
- package/plugin/skills/frontend-ui-ux/references/house-styles.md +0 -234
- package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +0 -115
- package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +0 -48
- package/plugin/skills/frontend-ui-ux/references/motion-guide.md +0 -153
- package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +0 -101
- package/plugin/skills/frontend-ui-ux/references/perfection/README.md +0 -160
- package/plugin/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +0 -127
- package/plugin/skills/frontend-ui-ux/references/performance-delivery.md +0 -91
- package/plugin/skills/frontend-ui-ux/references/product-direction.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/production-interview.md +0 -71
- package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +0 -103
- package/plugin/skills/frontend-ui-ux/references/slop-register.md +0 -139
- package/plugin/skills/frontend-ui-ux/references/system-foundations.md +0 -90
- package/plugin/skills/frontend-ui-ux/references/taste-direction.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/README.md +0 -659
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +0 -26
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +0 -106
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +0 -35
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +0 -45
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +0 -52
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +0 -61
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +0 -51
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +0 -50
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +0 -85
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +0 -74
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +0 -100
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +0 -31
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +0 -262
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +0 -1148
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +0 -114
- package/plugin/skills/frontend-ui-ux/references/visual-language.md +0 -90
- package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -55
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +0 -306
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +0 -291
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +0 -311
- package/plugin/skills/frontend-ui-ux/scripts/chrome-driver.mjs +0 -217
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-format.mjs +0 -286
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +0 -354
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +0 -361
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +0 -313
- package/plugin/skills/frontend-ui-ux/scripts/design-data.mjs +0 -68
- package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
- package/plugin/skills/frontend-ui-ux/scripts/errors.mjs +0 -12
- package/plugin/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +0 -124
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +0 -196
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +0 -1555
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +0 -153
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +0 -57
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +0 -129
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +0 -322
- package/plugin/skills/frontend-ui-ux/scripts/json-boundary.mjs +0 -63
- package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
- package/plugin/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +0 -106
- package/plugin/skills/frontend-ui-ux/scripts/search.mjs +0 -43
- package/plugin/skills/frontend-ui-ux/scripts/source-replay.mjs +0 -153
- package/plugin/skills/frontend-ui-ux/scripts/strict-json.mjs +0 -143
- package/plugin/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -52
- package/plugin/skills/frontend-ui-ux/scripts/verify-corpus.mjs +0 -90
- package/plugin/skills/lit-diagram-drawer/NOTICE +0 -33
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
- package/plugin/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/plugin/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
- package/plugin/skills/lit-diagram-drawer/assets/icons.html +0 -231
- package/plugin/skills/lit-diagram-drawer/assets/index.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
- package/plugin/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
- package/plugin/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/references/accessibility.md +0 -37
- package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +0 -86
- package/plugin/skills/lit-diagram-drawer/references/export.md +0 -34
- package/plugin/skills/lit-diagram-drawer/references/failure-codes.md +0 -66
- package/plugin/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
- package/plugin/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
- package/plugin/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
- package/plugin/skills/lit-diagram-drawer/references/import-schema.md +0 -28
- package/plugin/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
- package/plugin/skills/lit-diagram-drawer/references/motion.md +0 -29
- package/plugin/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
- package/plugin/skills/lit-diagram-drawer/references/output-spec.md +0 -48
- package/plugin/skills/lit-diagram-drawer/references/playbooks.md +0 -67
- package/plugin/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
- package/plugin/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
- package/plugin/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
- package/plugin/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
- package/plugin/skills/lit-diagram-drawer/references/profiles.md +0 -24
- package/plugin/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
- package/plugin/skills/lit-diagram-drawer/references/style-guide.md +0 -76
- package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-bar.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-bump.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
- package/plugin/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-er.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-journey.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-layers.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-line.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-loop.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-nested.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
- package/plugin/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
- package/plugin/skills/lit-diagram-drawer/references/type-polar.md +0 -67
- package/plugin/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
- package/plugin/skills/lit-diagram-drawer/references/type-process.md +0 -58
- package/plugin/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-radar.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
- package/plugin/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
- package/plugin/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
- package/plugin/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
- package/plugin/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-state.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-tree.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-venn.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/verifier-guide.md +0 -76
- package/plugin/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
- package/plugin/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
- package/plugin/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +0 -13
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -219
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime-lock/package.json +0 -9
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime.mjs +0 -277
- package/plugin/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -25
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-model.mjs +0 -162
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-source.mjs +0 -147
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +0 -148
- package/plugin/skills/lit-diagram-drawer/scripts/export.mjs +0 -119
- package/plugin/skills/lit-diagram-drawer/scripts/import-common.mjs +0 -85
- package/plugin/skills/lit-diagram-drawer/scripts/import-drawio.mjs +0 -48
- package/plugin/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +0 -234
- package/plugin/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +0 -104
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +0 -115
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +0 -70
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +0 -178
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +0 -137
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +0 -80
- package/plugin/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
- package/plugin/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +0 -11
- package/plugin/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -85
- package/plugin/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -16
- package/plugin/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -27
- package/plugin/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
- package/plugin/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +0 -226
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -146
- package/plugin/skills/lit-docx/NOTICE +0 -35
- package/plugin/skills/lit-docx/references/build-loop.md +0 -96
- package/plugin/skills/lit-docx/references/components.md +0 -287
- package/plugin/skills/lit-docx/references/direction-step.md +0 -339
- package/plugin/skills/lit-docx/references/examples/01-report-ko.md +0 -166
- package/plugin/skills/lit-docx/references/examples/02-brief-ko.md +0 -96
- package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +0 -170
- package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +0 -141
- package/plugin/skills/lit-docx/references/examples/05-memo-en.md +0 -56
- package/plugin/skills/lit-docx/references/examples/06-journal-en.md +0 -129
- package/plugin/skills/lit-docx/references/examples/07-report-en.md +0 -123
- package/plugin/skills/lit-docx/references/examples/08-proposal-en.md +0 -122
- package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +0 -40
- package/plugin/skills/lit-docx/references/frontmatter_schema.md +0 -94
- package/plugin/skills/lit-docx/references/journal_style_spec.md +0 -89
- package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +0 -43
- package/plugin/skills/lit-docx/references/page-composition.md +0 -319
- package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
- package/plugin/skills/lit-docx/references/slop_rules.md +0 -88
- package/plugin/skills/lit-docx/references/tonalities/brief.md +0 -170
- package/plugin/skills/lit-docx/references/tonalities/journal.md +0 -173
- package/plugin/skills/lit-docx/references/tonalities/manual.md +0 -182
- package/plugin/skills/lit-docx/references/tonalities/memo.md +0 -171
- package/plugin/skills/lit-docx/references/tonalities/proposal.md +0 -181
- package/plugin/skills/lit-docx/references/tonalities/report.md +0 -199
- package/plugin/skills/lit-docx/scripts/clean_markdown.py +0 -95
- package/plugin/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1395
- package/plugin/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -301
- package/plugin/skills/lit-docx/scripts/convert_pdf.py +0 -139
- package/plugin/skills/lit-docx/scripts/docx_design.py +0 -2449
- package/plugin/skills/lit-docx/scripts/docx_layout.py +0 -959
- package/plugin/skills/lit-docx/scripts/edit_docx.py +0 -306
- package/plugin/skills/lit-docx/scripts/embed_images.py +0 -78
- package/plugin/skills/lit-docx/scripts/generate_docx_templates.py +0 -500
- package/plugin/skills/lit-docx/scripts/pdf_fonts.py +0 -83
- package/plugin/skills/lit-docx/scripts/qa_docx.py +0 -234
- package/plugin/skills/lit-docx/scripts/slop_lint.py +0 -573
- package/plugin/skills/lit-docx/scripts/visual_audit.py +0 -48
- 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 +0 -5
- package/plugin/skills/lit-docx/templates/latex/acs/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +0 -42
- package/plugin/skills/lit-docx/templates/latex/ieee/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/nature/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/nature/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/registry.yaml +0 -1366
- package/plugin/skills/lit-docx/templates/tonalities/brief.yaml +0 -28
- package/plugin/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
- package/plugin/skills/lit-docx/templates/tonalities/manual.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/report.yaml +0 -26
- package/plugin/skills/lit-pptx/NOTICE +0 -35
- 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 +0 -94
- package/plugin/skills/lit-pptx/fonts/a2z/SOURCE.md +0 -29
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
- package/plugin/skills/lit-pptx/fonts/pretendard/OFL.txt +0 -94
- 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 +0 -109
- package/plugin/skills/lit-pptx/references/agents/analyst.md +0 -49
- package/plugin/skills/lit-pptx/references/agents/antithesis.md +0 -59
- package/plugin/skills/lit-pptx/references/agents/architect.md +0 -44
- package/plugin/skills/lit-pptx/references/agents/critic.md +0 -42
- package/plugin/skills/lit-pptx/references/agents/synthesizer.md +0 -47
- package/plugin/skills/lit-pptx/references/agents/thesis.md +0 -33
- package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +0 -131
- package/plugin/skills/lit-pptx/references/authoring-guide.md +0 -250
- package/plugin/skills/lit-pptx/references/build-loop.md +0 -117
- package/plugin/skills/lit-pptx/references/consensus-protocol.md +0 -125
- package/plugin/skills/lit-pptx/references/data-display-cookbook.md +0 -52
- package/plugin/skills/lit-pptx/references/density-and-fill.md +0 -163
- package/plugin/skills/lit-pptx/references/design-system-azure.md +0 -61
- package/plugin/skills/lit-pptx/references/direction-step.md +0 -203
- package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +0 -210
- package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +0 -147
- package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +0 -199
- package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +0 -203
- package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +0 -178
- package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +0 -199
- package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +0 -194
- package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +0 -175
- package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +0 -204
- package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +0 -179
- package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +0 -164
- package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +0 -174
- package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +0 -173
- package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +0 -154
- package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +0 -139
- package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +0 -158
- package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +0 -179
- package/plugin/skills/lit-pptx/references/interview-protocol.md +0 -113
- package/plugin/skills/lit-pptx/references/layout-families.md +0 -194
- package/plugin/skills/lit-pptx/references/stages/autopilot.md +0 -48
- package/plugin/skills/lit-pptx/references/stages/interview.md +0 -52
- package/plugin/skills/lit-pptx/references/stages/plan.md +0 -42
- package/plugin/skills/lit-pptx/references/title-treatments.md +0 -113
- package/plugin/skills/lit-pptx/references/tonalities/atlas.md +0 -139
- package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +0 -140
- package/plugin/skills/lit-pptx/references/tonalities/chalk.md +0 -148
- package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -150
- package/plugin/skills/lit-pptx/references/tonalities/gazette.md +0 -149
- package/plugin/skills/lit-pptx/references/tonalities/ledger.md +0 -149
- package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -161
- package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +0 -144
- package/plugin/skills/lit-pptx/references/tonalities/night.md +0 -147
- package/plugin/skills/lit-pptx/references/tonalities/paper.md +0 -151
- package/plugin/skills/lit-pptx/references/tonalities/riso.md +0 -137
- package/plugin/skills/lit-pptx/references/tonalities/signal.md +0 -150
- package/plugin/skills/lit-pptx/references/tonalities/studio.md +0 -131
- package/plugin/skills/lit-pptx/scripts/compile-deck.js +0 -462
- package/plugin/skills/lit-pptx/scripts/craft_extras.py +0 -1077
- package/plugin/skills/lit-pptx/scripts/deck_craft.py +0 -363
- package/plugin/skills/lit-pptx/scripts/embed_fonts.py +0 -227
- package/plugin/skills/lit-pptx/scripts/forbidden-terms.json +0 -55
- package/plugin/skills/lit-pptx/scripts/layout_inventory.py +0 -418
- package/plugin/skills/lit-pptx/scripts/learn_template.py +0 -446
- package/plugin/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
- package/plugin/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
- package/plugin/skills/lit-pptx/scripts/lib/font-map.js +0 -79
- package/plugin/skills/lit-pptx/scripts/lib/gen-bg.js +0 -86
- package/plugin/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -37
- package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -512
- package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
- package/plugin/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -356
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2240
- package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +0 -3366
- package/plugin/skills/lit-pptx/scripts/lib/runtime-require.js +0 -28
- package/plugin/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
- package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
- package/plugin/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
- package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package-lock.json +0 -793
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package.json +0 -12
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/requirements.lock +0 -15
- package/plugin/skills/lit-pptx/scripts/office-runtime.mjs +0 -279
- package/plugin/skills/lit-pptx/scripts/office_data.py +0 -493
- package/plugin/skills/lit-pptx/scripts/office_runtime_bootstrap.py +0 -73
- package/plugin/skills/lit-pptx/scripts/ooxml_integrity.py +0 -199
- package/plugin/skills/lit-pptx/scripts/package.json +0 -4
- package/plugin/skills/lit-pptx/scripts/qa_deck.py +0 -795
- package/plugin/skills/lit-pptx/scripts/render_pages.py +0 -147
- package/plugin/skills/lit-pptx/scripts/validate_pptx.py +0 -230
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -214
- package/plugin/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
- package/plugin/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
- package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +0 -382
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -475
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
- package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -92
- package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
- package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -97
- package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -93
- package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -94
- package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
- package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -93
- package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -98
- package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -94
- package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -92
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -38
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -133
- package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -87
- package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -85
- package/plugin/skills/lit-schematic/references/cutaway-outputs.md +0 -70
- package/plugin/skills/lit-schematic/references/isometric-craft.md +0 -101
- package/plugin/skills/lit-schematic/references/journal-figures.md +0 -72
- package/plugin/skills/lit-schematic/references/kit-api.md +0 -134
- package/plugin/skills/lit-schematic/references/pfd-and-layout.md +0 -53
- package/plugin/skills/lit-schematic/references/pid-drafting.md +0 -103
- package/plugin/skills/lit-schematic/references/pid-symbols.md +0 -163
- package/plugin/skills/lit-schematic/references/verification.md +0 -100
- package/plugin/skills/lit-schematic/scripts/doctor.mjs +0 -57
- package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +0 -81
- package/plugin/skills/lit-schematic/scripts/lib/fonts.mjs +0 -27
- package/plugin/skills/lit-schematic/scripts/lib/geom.mjs +0 -113
- package/plugin/skills/lit-schematic/scripts/lib/interactive.mjs +0 -292
- package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +0 -115
- package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +0 -719
- package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -162
- package/plugin/skills/lit-schematic/scripts/lib/pid.mjs +0 -937
- package/plugin/skills/lit-schematic/scripts/lib/png.mjs +0 -132
- package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -658
- package/plugin/skills/lit-schematic/scripts/lib/route.mjs +0 -218
- package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +0 -890
- package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +0 -82
- package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +0 -115
- package/plugin/skills/lit-schematic/scripts/motion.mjs +0 -129
- package/plugin/skills/lit-schematic/scripts/qa.mjs +0 -92
- package/plugin/skills/lit-schematic/scripts/render.mjs +0 -233
- package/plugin/skills/lit-schematic/scripts/scaffold.mjs +0 -60
- package/plugin/skills/lit-scientific-visualization/LICENSE +0 -21
- package/plugin/skills/lit-scientific-visualization/assets/color_palettes.py +0 -197
- package/plugin/skills/lit-scientific-visualization/assets/nature.mplstyle +0 -75
- package/plugin/skills/lit-scientific-visualization/assets/presentation.mplstyle +0 -74
- package/plugin/skills/lit-scientific-visualization/assets/publication.mplstyle +0 -78
- package/plugin/skills/lit-scientific-visualization/evals/evals.json +0 -158
- package/plugin/skills/lit-scientific-visualization/references/canonical-workflow.md +0 -278
- package/plugin/skills/lit-scientific-visualization/references/color_palettes.md +0 -380
- package/plugin/skills/lit-scientific-visualization/references/journal_requirements.md +0 -359
- package/plugin/skills/lit-scientific-visualization/references/matplotlib_examples.md +0 -608
- package/plugin/skills/lit-scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
- package/plugin/skills/lit-scientific-visualization/references/publication_guidelines.md +0 -217
- package/plugin/skills/lit-scientific-visualization/references/seaborn_for_publications.md +0 -293
- package/plugin/skills/lit-scientific-visualization/scripts/figure_export.py +0 -238
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime-requirements.lock +0 -23
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime.mjs +0 -230
- package/plugin/skills/lit-scientific-visualization/scripts/style_presets.py +0 -467
- package/plugin/skills/lit-scientific-visualization/tests/test_figure_export.py +0 -51
- package/plugin/skills/lit-scientific-visualization/tests/test_style_presets.py +0 -114
- package/plugin/skills/lit-typographic-motion/engine/NOTICE +0 -23
- package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +0 -73
- package/plugin/skills/lit-typographic-motion/engine/audio/beat_grid.py +0 -56
- package/plugin/skills/lit-typographic-motion/engine/audio/requirements.lock +0 -1084
- package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +0 -218
- package/plugin/skills/lit-typographic-motion/engine/core/constants.mjs +0 -246
- package/plugin/skills/lit-typographic-motion/engine/core/contrast.mjs +0 -90
- package/plugin/skills/lit-typographic-motion/engine/core/events.mjs +0 -46
- package/plugin/skills/lit-typographic-motion/engine/core/flash.mjs +0 -211
- package/plugin/skills/lit-typographic-motion/engine/core/gate-rules.mjs +0 -550
- package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +0 -123
- package/plugin/skills/lit-typographic-motion/engine/core/text.mjs +0 -100
- package/plugin/skills/lit-typographic-motion/engine/core/timeline.mjs +0 -142
- package/plugin/skills/lit-typographic-motion/engine/core/util.mjs +0 -167
- package/plugin/skills/lit-typographic-motion/engine/core/voices.mjs +0 -19
- package/plugin/skills/lit-typographic-motion/engine/models/word-timing.json +0 -198
- package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +0 -172
- package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +0 -298
- package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +0 -143
- package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +0 -136
- package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +0 -164
- package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +0 -328
- package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +0 -104
- package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +0 -210
- package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +0 -347
- package/plugin/skills/lit-typographic-motion/engine/node/cover-image.mjs +0 -141
- package/plugin/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +0 -76
- package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +0 -139
- package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +0 -32
- package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +0 -385
- package/plugin/skills/lit-typographic-motion/engine/node/coverage.mjs +0 -83
- package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +0 -209
- package/plugin/skills/lit-typographic-motion/engine/node/encode.mjs +0 -105
- package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +0 -38
- package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +0 -121
- package/plugin/skills/lit-typographic-motion/engine/node/host.mjs +0 -34
- package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +0 -44
- package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +0 -178
- package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +0 -603
- package/plugin/skills/lit-typographic-motion/engine/node/png.mjs +0 -112
- package/plugin/skills/lit-typographic-motion/engine/node/report.mjs +0 -66
- package/plugin/skills/lit-typographic-motion/engine/node/runtime.mjs +0 -349
- package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +0 -210
- package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +0 -639
- package/plugin/skills/lit-typographic-motion/engine/node/session.mjs +0 -145
- package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +0 -77
- package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +0 -740
- package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +0 -180
- package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +0 -177
- package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +0 -427
- package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +0 -428
- package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +0 -572
- package/plugin/skills/lit-typographic-motion/engine/node/stills.mjs +0 -100
- package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +0 -213
- package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +0 -645
- package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +0 -146
- package/plugin/skills/lit-typographic-motion/engine/node/ws-server.mjs +0 -132
- package/plugin/skills/lit-typographic-motion/engine/package-lock.json +0 -25
- package/plugin/skills/lit-typographic-motion/engine/package.json +0 -10
- package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +0 -49
- package/plugin/skills/lit-typographic-motion/engine/stage/init.js +0 -298
- package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +0 -106
- package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +0 -162
- package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +0 -823
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +0 -21
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +0 -144
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +0 -54571
- package/plugin/skills/lit-typographic-motion/engine/web/boot.mjs +0 -123
- package/plugin/skills/lit-typographic-motion/engine/web/engine.mjs +0 -281
- package/plugin/skills/lit-typographic-motion/engine/web/gl.mjs +0 -319
- package/plugin/skills/lit-typographic-motion/engine/web/glsl-common.mjs +0 -78
- package/plugin/skills/lit-typographic-motion/engine/web/index.html +0 -6
- package/plugin/skills/lit-typographic-motion/engine/web/lines.mjs +0 -112
- package/plugin/skills/lit-typographic-motion/engine/web/passes/crt.mjs +0 -98
- package/plugin/skills/lit-typographic-motion/engine/web/passes/dither.mjs +0 -49
- package/plugin/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +0 -77
- package/plugin/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +0 -61
- package/plugin/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +0 -88
- package/plugin/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +0 -86
- package/plugin/skills/lit-typographic-motion/engine/web/post.mjs +0 -165
- package/plugin/skills/lit-typographic-motion/engine/web/scale.mjs +0 -15
- package/plugin/skills/lit-typographic-motion/engine/web/scene.mjs +0 -82
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +0 -30
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/index.mjs +0 -16
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +0 -47
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +0 -45
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +0 -29
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +0 -73
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +0 -73
- package/plugin/skills/lit-typographic-motion/engine/web/stroke.mjs +0 -236
- package/plugin/skills/lit-typographic-motion/engine/web/type.mjs +0 -180
- 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 +0 -93
- 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 +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/manifest.json +0 -455
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +0 -93
- 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 +0 -42
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
- package/plugin/skills/lit-typographic-motion/fonts/stroke/OFL.txt +0 -91
- package/plugin/skills/lit-typographic-motion/fonts/vt323/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -139
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -27
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -18
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -30
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -152
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -97
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -202
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -100
- package/plugin/skills/lit-typographic-motion/references/brief-schema.md +0 -119
- package/plugin/skills/lit-typographic-motion/references/cover.md +0 -424
- package/plugin/skills/lit-typographic-motion/references/craft-loop.md +0 -70
- package/plugin/skills/lit-typographic-motion/references/depth.md +0 -122
- package/plugin/skills/lit-typographic-motion/references/engine-contract.md +0 -124
- package/plugin/skills/lit-typographic-motion/references/look.md +0 -122
- package/plugin/skills/lit-typographic-motion/references/runtime.md +0 -67
- package/plugin/skills/lit-typographic-motion/references/sound.md +0 -152
- package/plugin/skills/lit-typographic-motion/references/stage.md +0 -256
- package/plugin/skills/lit-typographic-motion/references/studio.md +0 -245
- package/plugin/skills/lit-typographic-motion/references/style-bibles.md +0 -141
- package/plugin/skills/lit-typographic-motion/references/treatment.md +0 -214
- package/plugin/skills/lit-typographic-motion/references/type-craft.md +0 -87
- package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +0 -111
- package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +0 -95
- package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +0 -205
- package/plugin/skills/lit-typographic-motion/styles/paper.json +0 -41
- package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +0 -41
- package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +0 -42
- package/plugin/skills/lit-typographic-motion/styles/tidal.json +0 -41
- package/plugin/skills/readme-studio/references/decoration-and-navigation.md +0 -55
- package/plugin/skills/readme-studio/references/facts-and-assembly.md +0 -19
- package/plugin/skills/readme-studio/references/production-interview.md +0 -11
- package/plugin/skills/readme-studio/references/render-and-deliver.md +0 -44
- package/plugin/skills/readme-studio/references/type-and-background.md +0 -23
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package-lock.json +0 -133
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package.json +0 -6
- package/plugin/skills/readme-studio/scripts/readme-runtime.mjs +0 -77
- package/plugin/skills/readme-studio/scripts/validate-readme-facts.mjs +0 -28
- package/plugin/skills/readme-studio/templates/cover-source.json +0 -21
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.html +0 -30
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.motion.json +0 -1
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +0 -2017
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package.json +0 -8
- package/plugin/skills/readme-studio/templates/readme-cover-section.md +0 -75
- package/plugin/skills/readme-studio/templates/readme-facts.json +0 -4
- package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +0 -3783
- package/plugin/skills/readme-studio/templates/remotion-cover/package.json +0 -7
- package/plugin/skills/readme-studio/templates/remotion-cover/src/index.tsx +0 -36
- package/plugin/skills/readme-studio/templates/typography/package-lock.json +0 -133
- package/plugin/skills/readme-studio/templates/typography/package.json +0 -6
- package/plugin/skills/readme-studio/templates/typography/safe-files.mjs +0 -57
- package/plugin/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +0 -63
- package/plugin/skills/visual-qa/references/breakage-catalogue.md +0 -70
- package/plugin/skills/visual-qa/references/capture-playbook.md +0 -96
- package/plugin/skills/visual-qa/references/complete-contract.md +0 -411
- package/plugin/skills/visual-qa/references/korean-and-mixed-script-checks.md +0 -50
- package/plugin/skills/visual-qa/references/reviewer-charters.md +0 -70
- package/plugin/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +0 -305
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +0 -291
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +0 -311
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +0 -235
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +0 -208
- package/plugin/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +0 -66
- package/plugin/skills/visual-qa/scripts/ansi.ts +0 -17
- package/plugin/skills/visual-qa/scripts/cli.mjs +0 -101
- package/plugin/skills/visual-qa/scripts/cli.ts +0 -96
- package/plugin/skills/visual-qa/scripts/design-contract-shape.mjs +0 -448
- package/plugin/skills/visual-qa/scripts/east-asian-width.ts +0 -72
- package/plugin/skills/visual-qa/scripts/errors.mjs +0 -12
- package/plugin/skills/visual-qa/scripts/evidence-io.mjs +0 -184
- package/plugin/skills/visual-qa/scripts/evidence-semantic.mjs +0 -95
- package/plugin/skills/visual-qa/scripts/evidence-shape.mjs +0 -163
- package/plugin/skills/visual-qa/scripts/evidence.mjs +0 -421
- package/plugin/skills/visual-qa/scripts/image-diff.mjs +0 -89
- package/plugin/skills/visual-qa/scripts/image-diff.ts +0 -109
- package/plugin/skills/visual-qa/scripts/png-chunks.mjs +0 -107
- package/plugin/skills/visual-qa/scripts/png-crc.ts +0 -27
- package/plugin/skills/visual-qa/scripts/png-decode.mjs +0 -143
- package/plugin/skills/visual-qa/scripts/png-decode.ts +0 -206
- package/plugin/skills/visual-qa/scripts/png-synth.ts +0 -57
- package/plugin/skills/visual-qa/scripts/review-rules.mjs +0 -137
- package/plugin/skills/visual-qa/scripts/strict-json.mjs +0 -143
- package/plugin/skills/visual-qa/scripts/terminal-text.mjs +0 -117
- package/plugin/skills/visual-qa/scripts/tui-check.mjs +0 -74
- package/plugin/skills/visual-qa/scripts/tui-grid.ts +0 -88
- package/plugin/skills/visual-qa/scripts/types.ts +0 -54
|
@@ -1,740 +0,0 @@
|
|
|
1
|
-
// The sound bed and the sound gate in pure product code: no network, no model
|
|
2
|
-
// weights, no dependency. A generated bed is always tempo + pulse + pad (one chord per treatment beat,
|
|
3
|
-
// or per two bars inside a long beat) plus the accents a beat's `sound` field asks for: a hit on a
|
|
4
|
-
// cut, a rise into a change, a closing cadence. It is 48 kHz 16-bit stereo, exactly
|
|
5
|
-
// round(frameCount x 48000 / fps) samples, normalized to -16 LUFS (ITU-R BS.1770-4, measured here)
|
|
6
|
-
// with its sample peak at or under -2 dBFS. Every noise source is seeded from the treatment, so two
|
|
7
|
-
// runs give the same bytes. Supplied and authored tracks are padded or trimmed to the film with a
|
|
8
|
-
// 50 ms fade and always muxed; the muxed stream is audited after the encode.
|
|
9
|
-
import { createHash } from "node:crypto";
|
|
10
|
-
import { spawnSync } from "node:child_process";
|
|
11
|
-
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
12
|
-
import path from "node:path";
|
|
13
|
-
import { fnv1a32, mulberry32 } from "../core/util.mjs";
|
|
14
|
-
|
|
15
|
-
export const SOUND = Object.freeze({
|
|
16
|
-
sampleRate: 48000,
|
|
17
|
-
channels: 2,
|
|
18
|
-
bitsPerSample: 16,
|
|
19
|
-
targetLufs: -16,
|
|
20
|
-
lufsTolerance: 2,
|
|
21
|
-
bedPeakDbfs: -2,
|
|
22
|
-
gatePeakDbfs: -0.5,
|
|
23
|
-
silenceDbfs: -50,
|
|
24
|
-
silenceWindowSec: 0.05,
|
|
25
|
-
silenceMaxSec: 1.5,
|
|
26
|
-
silenceHeadSec: 3,
|
|
27
|
-
durationToleranceSec: 0.1,
|
|
28
|
-
fadeSec: 0.05,
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export { TABLE as WAVETABLE_SIZE };
|
|
32
|
-
export const TEMPO_RANGE = Object.freeze([60, 160]);
|
|
33
|
-
const PITCH = { C: 0, "C#": 1, Db: 1, D: 2, "D#": 3, Eb: 3, E: 4, F: 5, "F#": 6, Gb: 6, G: 7, "G#": 8, Ab: 8, A: 9, "A#": 10, Bb: 10, B: 11 };
|
|
34
|
-
export const KEYS = Object.freeze({ pitchClasses: Object.freeze(Object.keys(PITCH)), modes: Object.freeze(["major", "minor"]) });
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Timbre palettes. Each names its pad, pulse and accent voices; the recipes below are what the
|
|
38
|
-
* synthesis code reads. `harmonics` are additive partial amplitudes of a single-cycle table.
|
|
39
|
-
*/
|
|
40
|
-
export const TIMBRES = Object.freeze({
|
|
41
|
-
"soft-keys": Object.freeze({
|
|
42
|
-
character: "warm, close and unhurried; rounded electric-piano pad over a felt kick",
|
|
43
|
-
pad: { harmonics: [1, 0.32, 0.14, 0.06, 0.02], detuneCents: 5, level: 0.22, lowpassHz: 2600 },
|
|
44
|
-
pulse: { kind: "thump", level: 0.42, every: 1 },
|
|
45
|
-
accent: { kind: "felt", partials: [1, 2, 3, 4], decay: 1.6 },
|
|
46
|
-
}),
|
|
47
|
-
glass: Object.freeze({
|
|
48
|
-
character: "bright, airy and precise; bell-like pad with a small tick on every beat",
|
|
49
|
-
pad: { harmonics: [1, 0, 0.22, 0, 0.12, 0, 0.05], detuneCents: 9, level: 0.18, lowpassHz: 7000, shimmer: 0.35 },
|
|
50
|
-
pulse: { kind: "tick", level: 0.3, every: 1 },
|
|
51
|
-
accent: { kind: "bell", partials: [1, 2.76, 5.4, 8.93], decay: 2.4 },
|
|
52
|
-
}),
|
|
53
|
-
"pulse-synth": Object.freeze({
|
|
54
|
-
character: "driving and graphic; filtered saw pad, eighth-note bass and a firm kick",
|
|
55
|
-
pad: { harmonics: [1, 0.5, 0.33, 0.25, 0.2, 0.16, 0.14, 0.12, 0.1, 0.08], detuneCents: 12, level: 0.16, lowpassHz: 1500 },
|
|
56
|
-
pulse: { kind: "bass-eighths", level: 0.36, every: 0.5 },
|
|
57
|
-
accent: { kind: "pluck", partials: [1, 0.5, 0.33, 0.25, 0.2], decay: 1.1 },
|
|
58
|
-
}),
|
|
59
|
-
"felt-strings": Object.freeze({
|
|
60
|
-
character: "slow, tender and wide; bowed string pad with vibrato over a brushed pulse",
|
|
61
|
-
pad: { harmonics: [1, 0.45, 0.3, 0.2, 0.12, 0.08], detuneCents: 7, level: 0.17, lowpassHz: 3200, vibrato: 0.004 },
|
|
62
|
-
pulse: { kind: "brush", level: 0.24, every: 1 },
|
|
63
|
-
accent: { kind: "felt", partials: [1, 2, 3], decay: 2.0 },
|
|
64
|
-
}),
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export class SoundError extends Error {
|
|
68
|
-
constructor(field, message) {
|
|
69
|
-
super(message);
|
|
70
|
-
this.field = field;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const dbfs = (x) => (x > 0 ? 20 * Math.log10(x) : -Infinity);
|
|
75
|
-
const round4 = (x) => Math.round(x * 10000) / 10000;
|
|
76
|
-
|
|
77
|
-
export function normalizePalette(palette) {
|
|
78
|
-
if (!palette || typeof palette !== "object" || Array.isArray(palette)) throw new SoundError("sound.palette", "sound.palette must be an object { timbre, key, mode, tempo }");
|
|
79
|
-
const timbre = String(palette.timbre ?? "");
|
|
80
|
-
if (!TIMBRES[timbre]) throw new SoundError("sound.palette.timbre", `sound.palette.timbre must be one of ${Object.keys(TIMBRES).join(", ")}`);
|
|
81
|
-
const key = String(palette.key ?? "");
|
|
82
|
-
if (!(key in PITCH)) throw new SoundError("sound.palette.key", `sound.palette.key must be a pitch class (${Object.keys(PITCH).join(", ")})`);
|
|
83
|
-
const mode = palette.mode === undefined ? "major" : String(palette.mode);
|
|
84
|
-
if (!KEYS.modes.includes(mode)) throw new SoundError("sound.palette.mode", "sound.palette.mode must be major or minor");
|
|
85
|
-
const tempo = Number(palette.tempo);
|
|
86
|
-
if (!Number.isFinite(tempo) || tempo < TEMPO_RANGE[0] || tempo > TEMPO_RANGE[1]) throw new SoundError("sound.palette.tempo", `sound.palette.tempo must be ${TEMPO_RANGE[0]}-${TEMPO_RANGE[1]} BPM`);
|
|
87
|
-
return { timbre, key, mode, tempo };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Sounds an on-screen event can make (treatment `sound.events`): a tap (a small click with a pitched
|
|
92
|
-
* body: a key, a latch, a drop landing), a hit (the cut hit), a whoosh (air ending on the event) and a
|
|
93
|
-
* chime (two notes of the key: something completes).
|
|
94
|
-
*/
|
|
95
|
-
export const EVENT_SOUNDS = Object.freeze(["tap", "hit", "whoosh", "chime"]);
|
|
96
|
-
|
|
97
|
-
const CUE_WORDS = [
|
|
98
|
-
["hit", /\b(?:hits?|impacts?|cuts?|stabs?|accents?)\b|타격|히트|컷|강세/iu],
|
|
99
|
-
["rise", /\b(?:rises?|rising|risers?|swells?|swelling|builds?|building|build-?ups?|lifts?|lifting)\b|상승|고조|빌드업/iu],
|
|
100
|
-
["cadence", /\b(?:cadences?|resolves?|resolving|resolution|close|closing|ending|final chord)\b|종지|마무리|해결/iu],
|
|
101
|
-
];
|
|
102
|
-
|
|
103
|
-
/** Cue kinds a beat's free-text `sound` field asks for; none when nothing matches. */
|
|
104
|
-
export function cueKindsFor(soundText) {
|
|
105
|
-
const text = String(soundText ?? "");
|
|
106
|
-
return CUE_WORDS.filter(([, re]) => re.test(text)).map(([kind]) => kind);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const nearest = (times, t, within) => {
|
|
110
|
-
let best = null;
|
|
111
|
-
for (const c of times) if (Math.abs(c - t) <= within && (best === null || Math.abs(c - t) < Math.abs(best - t))) best = c;
|
|
112
|
-
return best;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Accent cues, each measured against the beat boundary or cut it serves, plus one `event` cue per
|
|
117
|
-
* on-screen event at its own time (it never snaps to a cut: it follows the picture).
|
|
118
|
-
*/
|
|
119
|
-
export function planCues({ beats = [], durationSec, cutTimes = [], events = [] }) {
|
|
120
|
-
const cues = [];
|
|
121
|
-
const clampT = (t) => Math.min(durationSec, Math.max(0, t));
|
|
122
|
-
beats.forEach((beat, beatIndex) => {
|
|
123
|
-
const t0 = clampT(Number(beat.t0));
|
|
124
|
-
const t1 = clampT(Number(beat.t1));
|
|
125
|
-
for (const kind of cueKindsFor(beat.sound)) {
|
|
126
|
-
if (kind === "hit") {
|
|
127
|
-
const cut = nearest(cutTimes, t0, 0.5);
|
|
128
|
-
const target = cut ?? t0;
|
|
129
|
-
cues.push({ kind, t: round4(target), beatIndex, target: round4(target), delta: 0 });
|
|
130
|
-
} else if (kind === "rise") {
|
|
131
|
-
const cut = nearest(cutTimes, t1, 0.5);
|
|
132
|
-
const end = cut ?? t1;
|
|
133
|
-
const start = Math.max(t0, end - 1.0);
|
|
134
|
-
cues.push({ kind, t: round4(end), start: round4(start), beatIndex, target: round4(end), delta: 0 });
|
|
135
|
-
} else {
|
|
136
|
-
const t = t0 + 0.6 * (t1 - t0);
|
|
137
|
-
cues.push({ kind, t: round4(t), beatIndex, target: round4(t), delta: 0, end: round4(beatIndex === beats.length - 1 ? durationSec : t1) });
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
for (const e of Array.isArray(events) ? events : []) {
|
|
142
|
-
if (!EVENT_SOUNDS.includes(e?.kind) || !(e.t >= 0 && e.t < durationSec)) continue;
|
|
143
|
-
const beatIndex = Math.max(0, beats.findIndex((b) => e.t >= Number(b.t0) && e.t < Number(b.t1)));
|
|
144
|
-
const cut = nearest(cutTimes, e.t, Infinity);
|
|
145
|
-
cues.push({ kind: "event", sound: e.kind, t: round4(e.t), beatIndex, target: round4(e.t), delta: 0, on: String(e.on ?? ""), fromCut: cut === null ? null : round4(Math.abs(e.t - cut)) });
|
|
146
|
-
}
|
|
147
|
-
cues.sort((a, b) => a.t - b.t || a.beatIndex - b.beatIndex);
|
|
148
|
-
return cues;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// ---- BS.1770-4 ----
|
|
152
|
-
const SHELF = { b: [1.53512485958697, -2.69169618940638, 1.19839281085285], a: [1, -1.69065929318241, 0.73248077421585] };
|
|
153
|
-
const HIGHPASS = { b: [1, -2, 1], a: [1, -1.99004745483398, 0.99007225036621] };
|
|
154
|
-
|
|
155
|
-
function biquad(x, { b, a }) {
|
|
156
|
-
const y = new Float64Array(x.length);
|
|
157
|
-
let x1 = 0, x2 = 0, y1 = 0, y2 = 0;
|
|
158
|
-
for (let i = 0; i < x.length; i++) {
|
|
159
|
-
const v = b[0] * x[i] + b[1] * x1 + b[2] * x2 - a[1] * y1 - a[2] * y2;
|
|
160
|
-
x2 = x1; x1 = x[i]; y2 = y1; y1 = v;
|
|
161
|
-
y[i] = v;
|
|
162
|
-
}
|
|
163
|
-
return y;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/** Integrated loudness (LUFS) of 48 kHz channels per ITU-R BS.1770-4; -Infinity for silence. */
|
|
167
|
-
export function integratedLoudness(channels, sampleRate = SOUND.sampleRate) {
|
|
168
|
-
if (sampleRate !== 48000) throw new SoundError("sound.sampleRate", "loudness is measured at 48 kHz only");
|
|
169
|
-
const weighted = channels.map((c) => biquad(biquad(c, SHELF), HIGHPASS));
|
|
170
|
-
const n = channels[0]?.length ?? 0;
|
|
171
|
-
const block = Math.round(0.4 * sampleRate);
|
|
172
|
-
const step = Math.round(0.1 * sampleRate);
|
|
173
|
-
if (n < block) return -Infinity;
|
|
174
|
-
// Prefix sums of squares make every 400 ms block O(1).
|
|
175
|
-
const prefix = weighted.map((w) => {
|
|
176
|
-
const p = new Float64Array(n + 1);
|
|
177
|
-
for (let i = 0; i < n; i++) p[i + 1] = p[i] + w[i] * w[i];
|
|
178
|
-
return p;
|
|
179
|
-
});
|
|
180
|
-
const blocks = [];
|
|
181
|
-
for (let s = 0; s + block <= n; s += step) {
|
|
182
|
-
let sum = 0;
|
|
183
|
-
for (const p of prefix) sum += (p[s + block] - p[s]) / block;
|
|
184
|
-
blocks.push(sum);
|
|
185
|
-
}
|
|
186
|
-
const loud = (z) => -0.691 + 10 * Math.log10(z);
|
|
187
|
-
const abs = blocks.filter((z) => z > 0 && loud(z) > -70);
|
|
188
|
-
if (!abs.length) return -Infinity;
|
|
189
|
-
const relative = loud(abs.reduce((a, b) => a + b, 0) / abs.length) - 10;
|
|
190
|
-
const gated = abs.filter((z) => loud(z) > relative);
|
|
191
|
-
if (!gated.length) return -Infinity;
|
|
192
|
-
return loud(gated.reduce((a, b) => a + b, 0) / gated.length);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export function samplePeakDbfs(channels) {
|
|
196
|
-
let peak = 0;
|
|
197
|
-
for (const c of channels) for (let i = 0; i < c.length; i++) {
|
|
198
|
-
const v = Math.abs(c[i]);
|
|
199
|
-
if (v > peak) peak = v;
|
|
200
|
-
}
|
|
201
|
-
return dbfs(peak);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/** Longest run (seconds) of windows below `floorDbfs` RMS (all channels) within the first `headSec`. */
|
|
205
|
-
export function rmsRuns(channels, sampleRate = SOUND.sampleRate, { windowSec = SOUND.silenceWindowSec, floorDbfs = SOUND.silenceDbfs, headSec = SOUND.silenceHeadSec } = {}) {
|
|
206
|
-
const win = Math.max(1, Math.round(windowSec * sampleRate));
|
|
207
|
-
const end = Math.min(channels[0]?.length ?? 0, Math.round(headSec * sampleRate));
|
|
208
|
-
let run = 0;
|
|
209
|
-
let longest = 0;
|
|
210
|
-
for (let s = 0; s < end; s += win) {
|
|
211
|
-
const e = Math.min(end, s + win);
|
|
212
|
-
let sum = 0;
|
|
213
|
-
for (const c of channels) for (let i = s; i < e; i++) sum += c[i] * c[i];
|
|
214
|
-
const rms = Math.sqrt(sum / ((e - s) * channels.length));
|
|
215
|
-
if (dbfs(rms) < floorDbfs) {
|
|
216
|
-
run += (e - s) / sampleRate;
|
|
217
|
-
longest = Math.max(longest, run);
|
|
218
|
-
} else run = 0;
|
|
219
|
-
}
|
|
220
|
-
const covered = (channels[0]?.length ?? 0) / sampleRate;
|
|
221
|
-
// A stream that ends inside the head is silent for the rest of it.
|
|
222
|
-
if (covered < headSec) longest = Math.max(longest, run + (headSec - covered));
|
|
223
|
-
return +longest.toFixed(4);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// ---- WAV ----
|
|
227
|
-
export function encodeWav({ left, right, sampleRate = SOUND.sampleRate }) {
|
|
228
|
-
const n = left.length;
|
|
229
|
-
const data = Buffer.alloc(n * 4);
|
|
230
|
-
const q = (v) => Math.max(-32768, Math.min(32767, Math.round(Math.max(-1, Math.min(1, v)) * 32767)));
|
|
231
|
-
for (let i = 0; i < n; i++) {
|
|
232
|
-
data.writeInt16LE(q(left[i]), i * 4);
|
|
233
|
-
data.writeInt16LE(q(right[i]), i * 4 + 2);
|
|
234
|
-
}
|
|
235
|
-
const header = Buffer.alloc(44);
|
|
236
|
-
header.write("RIFF", 0, "ascii");
|
|
237
|
-
header.writeUInt32LE(36 + data.length, 4);
|
|
238
|
-
header.write("WAVE", 8, "ascii");
|
|
239
|
-
header.write("fmt ", 12, "ascii");
|
|
240
|
-
header.writeUInt32LE(16, 16);
|
|
241
|
-
header.writeUInt16LE(1, 20);
|
|
242
|
-
header.writeUInt16LE(2, 22);
|
|
243
|
-
header.writeUInt32LE(sampleRate, 24);
|
|
244
|
-
header.writeUInt32LE(sampleRate * 4, 28);
|
|
245
|
-
header.writeUInt16LE(4, 32);
|
|
246
|
-
header.writeUInt16LE(16, 34);
|
|
247
|
-
header.write("data", 36, "ascii");
|
|
248
|
-
header.writeUInt32LE(data.length, 40);
|
|
249
|
-
return Buffer.concat([header, data]);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export function decodeWav(buffer) {
|
|
253
|
-
if (buffer.length < 12 || buffer.toString("ascii", 0, 4) !== "RIFF" || buffer.toString("ascii", 8, 12) !== "WAVE") throw new SoundError("sound.file", "not a RIFF/WAVE file");
|
|
254
|
-
let fmt = null;
|
|
255
|
-
let data = null;
|
|
256
|
-
for (let o = 12; o + 8 <= buffer.length;) {
|
|
257
|
-
const id = buffer.toString("ascii", o, o + 4);
|
|
258
|
-
const size = buffer.readUInt32LE(o + 4);
|
|
259
|
-
const body = buffer.subarray(o + 8, Math.min(buffer.length, o + 8 + size));
|
|
260
|
-
if (id === "fmt ") {
|
|
261
|
-
let format = body.readUInt16LE(0);
|
|
262
|
-
if (format === 0xfffe && body.length >= 26) format = body.readUInt16LE(24);
|
|
263
|
-
fmt = { format, channels: body.readUInt16LE(2), sampleRate: body.readUInt32LE(4), bits: body.readUInt16LE(14) };
|
|
264
|
-
} else if (id === "data") data = body;
|
|
265
|
-
o += 8 + size + (size % 2);
|
|
266
|
-
}
|
|
267
|
-
if (!fmt || !data) throw new SoundError("sound.file", "WAV has no fmt or data chunk");
|
|
268
|
-
const { format, channels, bits, sampleRate } = fmt;
|
|
269
|
-
const bytes = bits / 8;
|
|
270
|
-
const frames = Math.floor(data.length / (bytes * channels));
|
|
271
|
-
const out = Array.from({ length: channels }, () => new Float32Array(frames));
|
|
272
|
-
const read = format === 3 && bits === 32 ? (o) => data.readFloatLE(o)
|
|
273
|
-
: format === 1 && bits === 16 ? (o) => data.readInt16LE(o) / 32768
|
|
274
|
-
: format === 1 && bits === 24 ? (o) => data.readIntLE(o, 3) / 8388608
|
|
275
|
-
: format === 1 && bits === 32 ? (o) => data.readInt32LE(o) / 2147483648
|
|
276
|
-
: null;
|
|
277
|
-
if (!read) throw new SoundError("sound.file", `unsupported WAV encoding (format ${format}, ${bits}-bit)`);
|
|
278
|
-
for (let i = 0; i < frames; i++) for (let c = 0; c < channels; c++) out[c][i] = read((i * channels + c) * bytes);
|
|
279
|
-
return { sampleRate, channels: out };
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
// ---- synthesis ----
|
|
283
|
-
const TABLE = 4096;
|
|
284
|
-
/** A normalized single-cycle table of additive partials (TABLE + 1 samples, wrapped). */
|
|
285
|
-
export function wavetable(harmonics) {
|
|
286
|
-
const t = new Float32Array(TABLE + 1);
|
|
287
|
-
let peak = 0;
|
|
288
|
-
for (let i = 0; i < TABLE; i++) {
|
|
289
|
-
let v = 0;
|
|
290
|
-
harmonics.forEach((a, k) => { if (a) v += a * Math.sin((2 * Math.PI * (k + 1) * i) / TABLE); });
|
|
291
|
-
t[i] = v;
|
|
292
|
-
peak = Math.max(peak, Math.abs(v));
|
|
293
|
-
}
|
|
294
|
-
for (let i = 0; i < TABLE; i++) t[i] /= peak || 1;
|
|
295
|
-
t[TABLE] = t[0];
|
|
296
|
-
return t;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
const midiHz = (m) => 440 * 2 ** ((m - 69) / 12);
|
|
300
|
-
const PROGRESSIONS = {
|
|
301
|
-
major: [[0, "maj"], [7, "maj"], [9, "min"], [5, "maj"]],
|
|
302
|
-
minor: [[0, "min"], [8, "maj"], [3, "maj"], [10, "maj"]],
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
/** Chord segments: one per beat, split into two-bar chords inside a long beat; the last resolves home. */
|
|
306
|
-
function chordSegments({ beats, durationSec, palette }) {
|
|
307
|
-
const barSec = (4 * 60) / palette.tempo;
|
|
308
|
-
const spans = beats.length ? beats.map((b) => [Math.max(0, Number(b.t0)), Math.min(durationSec, Number(b.t1))]).filter(([a, b]) => b > a) : [[0, durationSec]];
|
|
309
|
-
const pieces = [];
|
|
310
|
-
for (const [a, b] of spans) {
|
|
311
|
-
const count = Math.max(1, Math.round((b - a) / (2 * barSec)));
|
|
312
|
-
for (let k = 0; k < count; k++) pieces.push([a + ((b - a) * k) / count, a + ((b - a) * (k + 1)) / count]);
|
|
313
|
-
}
|
|
314
|
-
if (pieces.length) pieces[pieces.length - 1][1] = durationSec;
|
|
315
|
-
const prog = PROGRESSIONS[palette.mode];
|
|
316
|
-
const tonic = 48 + PITCH[palette.key];
|
|
317
|
-
return pieces.map(([t0, t1], i) => {
|
|
318
|
-
const [offset, quality] = i === pieces.length - 1 && pieces.length > 1 ? prog[0] : prog[i % prog.length];
|
|
319
|
-
const root = tonic + offset - (offset > 6 ? 12 : 0);
|
|
320
|
-
const third = quality === "maj" ? 4 : 3;
|
|
321
|
-
return { t0, t1, notes: [root - 12, root, root + third, root + 7, root + 12] };
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function onePole(hz, sr) {
|
|
326
|
-
return 1 - Math.exp((-2 * Math.PI * hz) / sr);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export function buildBed({ treatment, frameCount, fps, cutTimes = [] }) {
|
|
330
|
-
const sr = SOUND.sampleRate;
|
|
331
|
-
if (!(Number.isInteger(frameCount) && frameCount > 0) || !(fps > 0)) throw new SoundError("sound", "the bed needs a positive frame count and fps");
|
|
332
|
-
const palette = normalizePalette(treatment?.sound?.palette);
|
|
333
|
-
const voice = TIMBRES[palette.timbre];
|
|
334
|
-
const sampleCount = Math.round((frameCount * sr) / fps);
|
|
335
|
-
const durationSec = sampleCount / sr;
|
|
336
|
-
const beats = Array.isArray(treatment?.beats) ? treatment.beats : [];
|
|
337
|
-
const cues = planCues({ beats, durationSec, cutTimes, events: treatment?.sound?.events });
|
|
338
|
-
const rand = mulberry32(fnv1a32(`${treatment?.request ?? ""}|${palette.timbre}|${palette.key}|${palette.mode}|${palette.tempo}`));
|
|
339
|
-
const L = new Float64Array(sampleCount);
|
|
340
|
-
const R = new Float64Array(sampleCount);
|
|
341
|
-
|
|
342
|
-
// Pad: every chord note as a detuned L/R pair from one wavetable, low-passed per channel.
|
|
343
|
-
const table = wavetable(voice.pad.harmonics);
|
|
344
|
-
const cents = voice.pad.detuneCents;
|
|
345
|
-
for (const [i, seg] of chordSegments({ beats, durationSec, palette }).entries()) {
|
|
346
|
-
const attack = i === 0 ? 0.2 : 0.12;
|
|
347
|
-
const release = 0.35;
|
|
348
|
-
const s0 = Math.floor(seg.t0 * sr);
|
|
349
|
-
const s1 = Math.min(sampleCount, Math.ceil((seg.t1 + release) * sr));
|
|
350
|
-
for (const [k, note] of seg.notes.entries()) {
|
|
351
|
-
const hz = midiHz(note);
|
|
352
|
-
const level = voice.pad.level * (k === 0 ? 0.7 : 1);
|
|
353
|
-
const incL = (hz * 2 ** (-cents / 1200) * TABLE) / sr;
|
|
354
|
-
const incR = (hz * 2 ** (cents / 1200) * TABLE) / sr;
|
|
355
|
-
let pl = (rand() * TABLE) | 0;
|
|
356
|
-
let pr = (rand() * TABLE) | 0;
|
|
357
|
-
for (let s = s0; s < s1; s++) {
|
|
358
|
-
const t = s / sr;
|
|
359
|
-
const env = Math.min(1, (t - seg.t0) / attack) * (t > seg.t1 ? Math.max(0, 1 - (t - seg.t1) / release) : 1);
|
|
360
|
-
const vib = voice.pad.vibrato ? 1 + voice.pad.vibrato * Math.sin(2 * Math.PI * 5.2 * t) : 1;
|
|
361
|
-
pl = (pl + incL * vib) % TABLE;
|
|
362
|
-
pr = (pr + incR * vib) % TABLE;
|
|
363
|
-
L[s] += level * env * table[pl | 0];
|
|
364
|
-
R[s] += level * env * table[pr | 0];
|
|
365
|
-
if (voice.pad.shimmer) {
|
|
366
|
-
const sh = voice.pad.shimmer * level * env * Math.sin(2 * Math.PI * hz * 2.003 * t);
|
|
367
|
-
L[s] += sh * 0.6;
|
|
368
|
-
R[s] += sh;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
const lp = onePole(voice.pad.lowpassHz, sr);
|
|
374
|
-
let fl = 0;
|
|
375
|
-
let fr = 0;
|
|
376
|
-
for (let s = 0; s < sampleCount; s++) {
|
|
377
|
-
fl += lp * (L[s] - fl);
|
|
378
|
-
fr += lp * (R[s] - fr);
|
|
379
|
-
L[s] = fl;
|
|
380
|
-
R[s] = fr;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
// Pulse: on the tempo grid from t = 0.
|
|
384
|
-
const beatSec = 60 / palette.tempo;
|
|
385
|
-
const stepSec = beatSec * voice.pulse.every;
|
|
386
|
-
const bassTable = wavetable(TIMBRES["pulse-synth"].pad.harmonics);
|
|
387
|
-
const segments = chordSegments({ beats, durationSec, palette });
|
|
388
|
-
for (let k = 0; k * stepSec < durationSec; k++) {
|
|
389
|
-
const t0 = k * stepSec;
|
|
390
|
-
const s0 = Math.round(t0 * sr);
|
|
391
|
-
const onBeat = Math.abs((t0 / beatSec) - Math.round(t0 / beatSec)) < 1e-6;
|
|
392
|
-
const len = Math.min(sampleCount - s0, Math.round(0.45 * sr));
|
|
393
|
-
const lvl = voice.pulse.level;
|
|
394
|
-
if (voice.pulse.kind === "thump" || (voice.pulse.kind === "bass-eighths" && onBeat)) {
|
|
395
|
-
let ph = 0;
|
|
396
|
-
for (let i = 0; i < len; i++) {
|
|
397
|
-
const t = i / sr;
|
|
398
|
-
ph += (2 * Math.PI * (45 + 65 * Math.exp(-t / 0.03))) / sr;
|
|
399
|
-
const v = lvl * Math.exp(-t / 0.14) * Math.sin(ph);
|
|
400
|
-
L[s0 + i] += v;
|
|
401
|
-
R[s0 + i] += v;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
if (voice.pulse.kind === "tick") {
|
|
405
|
-
for (let i = 0; i < Math.min(len, Math.round(0.08 * sr)); i++) {
|
|
406
|
-
const t = i / sr;
|
|
407
|
-
const v = lvl * Math.exp(-t / 0.012) * (0.6 * Math.sin(2 * Math.PI * 3100 * t) + 0.4 * (rand() * 2 - 1));
|
|
408
|
-
L[s0 + i] += v * 0.9;
|
|
409
|
-
R[s0 + i] += v;
|
|
410
|
-
}
|
|
411
|
-
if (k % 4 === 0) for (let i = 0; i < len; i++) {
|
|
412
|
-
const t = i / sr;
|
|
413
|
-
const v = 0.5 * lvl * Math.exp(-t / 0.2) * Math.sin(2 * Math.PI * 55 * t);
|
|
414
|
-
L[s0 + i] += v;
|
|
415
|
-
R[s0 + i] += v;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
if (voice.pulse.kind === "brush") {
|
|
419
|
-
let f = 0;
|
|
420
|
-
const c = onePole(2400, sr);
|
|
421
|
-
for (let i = 0; i < Math.min(len, Math.round(0.25 * sr)); i++) {
|
|
422
|
-
const t = i / sr;
|
|
423
|
-
f += c * (rand() * 2 - 1 - f);
|
|
424
|
-
const v = lvl * (t < 0.03 ? t / 0.03 : Math.exp(-(t - 0.03) / 0.07)) * f;
|
|
425
|
-
L[s0 + i] += v;
|
|
426
|
-
R[s0 + i] += v * 0.85;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
if (voice.pulse.kind === "bass-eighths") {
|
|
430
|
-
const seg = segments.find((g) => t0 >= g.t0 && t0 < g.t1) ?? segments[segments.length - 1];
|
|
431
|
-
const inc = (midiHz(seg.notes[0]) * TABLE) / sr;
|
|
432
|
-
const gate = Math.round(stepSec * 0.7 * sr);
|
|
433
|
-
let ph = 0;
|
|
434
|
-
for (let i = 0; i < Math.min(sampleCount - s0, gate); i++) {
|
|
435
|
-
ph = (ph + inc) % TABLE;
|
|
436
|
-
const env = Math.min(1, i / 96) * Math.min(1, (gate - i) / 480);
|
|
437
|
-
const v = 0.55 * lvl * env * bassTable[ph | 0];
|
|
438
|
-
L[s0 + i] += v;
|
|
439
|
-
R[s0 + i] += v;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
// Accents, only where a beat asked for one.
|
|
445
|
-
const tonic = 60 + PITCH[palette.key];
|
|
446
|
-
const strike = (t0, notes, decay, level) => {
|
|
447
|
-
const s0 = Math.round(t0 * sr);
|
|
448
|
-
const len = Math.min(sampleCount - s0, Math.round(decay * 3 * sr));
|
|
449
|
-
const parts = voice.accent.partials;
|
|
450
|
-
for (const [n, note] of notes.entries()) {
|
|
451
|
-
const hz = midiHz(note);
|
|
452
|
-
for (let i = 0; i < len; i++) {
|
|
453
|
-
const t = i / sr;
|
|
454
|
-
let v = 0;
|
|
455
|
-
for (let p = 0; p < parts.length; p++) {
|
|
456
|
-
const ratio = voice.accent.kind === "bell" ? parts[p] : p + 1;
|
|
457
|
-
const amp = voice.accent.kind === "bell" ? 1 / (p + 1) : parts[p];
|
|
458
|
-
v += amp * Math.exp((-t * (1 + p * 0.8)) / decay) * Math.sin(2 * Math.PI * hz * ratio * t);
|
|
459
|
-
}
|
|
460
|
-
v *= level * Math.min(1, t / 0.004);
|
|
461
|
-
L[s0 + i] += v * (n % 2 ? 0.8 : 1);
|
|
462
|
-
R[s0 + i] += v * (n % 2 ? 1 : 0.8);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
// An on-screen event: a sound shaped like what the picture does at that frame.
|
|
467
|
-
const eventSound = (cue) => {
|
|
468
|
-
const s0 = Math.round(cue.t * sr);
|
|
469
|
-
if (cue.sound === "tap") {
|
|
470
|
-
const len = Math.min(sampleCount - s0, Math.round(0.3 * sr));
|
|
471
|
-
const hz = midiHz(tonic + 24 + (palette.mode === "major" ? 7 : 3));
|
|
472
|
-
let f = 0;
|
|
473
|
-
const c = onePole(4500, sr);
|
|
474
|
-
for (let i = 0; i < len; i++) {
|
|
475
|
-
const t = i / sr;
|
|
476
|
-
f += c * (rand() * 2 - 1 - f);
|
|
477
|
-
const v = 1.2 * Math.exp(-t / 0.008) * f + 0.6 * Math.exp(-t / 0.07) * Math.sin(2 * Math.PI * hz * t);
|
|
478
|
-
L[s0 + i] += v;
|
|
479
|
-
R[s0 + i] += v * 0.9;
|
|
480
|
-
}
|
|
481
|
-
} else if (cue.sound === "whoosh") {
|
|
482
|
-
const start = Math.max(0, s0 - Math.round(0.4 * sr));
|
|
483
|
-
const tail = Math.min(sampleCount, s0 + Math.round(0.08 * sr));
|
|
484
|
-
let f = 0;
|
|
485
|
-
for (let s = start; s < tail; s++) {
|
|
486
|
-
const u = s < s0 ? (s - start) / Math.max(1, s0 - start) : 1 - (s - s0) / Math.max(1, tail - s0);
|
|
487
|
-
f += onePole(300 + 3200 * u, sr) * (rand() * 2 - 1 - f);
|
|
488
|
-
const v = 0.5 * u * u * f;
|
|
489
|
-
L[s] += v * (1 - 0.4 * u);
|
|
490
|
-
R[s] += v * (0.6 + 0.4 * u);
|
|
491
|
-
}
|
|
492
|
-
} else if (cue.sound === "chime") {
|
|
493
|
-
strike(cue.t, [tonic + 12], 1.2, 0.09);
|
|
494
|
-
strike(cue.t + 0.09, [tonic + 19], 1.2, 0.08);
|
|
495
|
-
} else {
|
|
496
|
-
hitAt(cue.t);
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
const hitAt = (t0) => {
|
|
500
|
-
const s0 = Math.round(t0 * sr);
|
|
501
|
-
const len = Math.min(sampleCount - s0, Math.round(0.6 * sr));
|
|
502
|
-
let f = 0;
|
|
503
|
-
const c = onePole(voice.accent.kind === "bell" ? 6000 : 1800, sr);
|
|
504
|
-
let ph = 0;
|
|
505
|
-
for (let i = 0; i < len; i++) {
|
|
506
|
-
const t = i / sr;
|
|
507
|
-
f += c * (rand() * 2 - 1 - f);
|
|
508
|
-
ph += (2 * Math.PI * (50 + 90 * Math.exp(-t / 0.02))) / sr;
|
|
509
|
-
const v = 0.55 * Math.exp(-t / 0.12) * f + 0.5 * Math.exp(-t / 0.22) * Math.sin(ph);
|
|
510
|
-
L[s0 + i] += v;
|
|
511
|
-
R[s0 + i] += v;
|
|
512
|
-
}
|
|
513
|
-
if (voice.accent.kind === "bell") strike(t0, [tonic + 12], 0.6, 0.12);
|
|
514
|
-
};
|
|
515
|
-
for (const cue of cues) {
|
|
516
|
-
if (cue.kind === "hit") {
|
|
517
|
-
hitAt(cue.t);
|
|
518
|
-
} else if (cue.kind === "rise") {
|
|
519
|
-
const s0 = Math.round(cue.start * sr);
|
|
520
|
-
const s1 = Math.min(sampleCount, Math.round(cue.t * sr));
|
|
521
|
-
const span = Math.max(1, s1 - s0);
|
|
522
|
-
let f = 0;
|
|
523
|
-
let ph = 0;
|
|
524
|
-
for (let s = s0; s < s1; s++) {
|
|
525
|
-
const u = (s - s0) / span;
|
|
526
|
-
f += onePole(200 + 5800 * u * u, sr) * (rand() * 2 - 1 - f);
|
|
527
|
-
ph += (2 * Math.PI * midiHz(tonic - 12 + 24 * u)) / sr;
|
|
528
|
-
const v = 0.45 * u * u * f + (voice.pulse.kind === "bass-eighths" ? 0.12 * u * Math.sin(ph) : 0);
|
|
529
|
-
L[s] += v * (1 - 0.3 * u);
|
|
530
|
-
R[s] += v * (0.7 + 0.3 * u);
|
|
531
|
-
}
|
|
532
|
-
} else if (cue.kind === "event") {
|
|
533
|
-
eventSound(cue);
|
|
534
|
-
} else {
|
|
535
|
-
const third = palette.mode === "major" ? 4 : 3;
|
|
536
|
-
strike(cue.t, [tonic - 12, tonic, tonic + third, tonic + 7], voice.accent.decay, 0.1);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
// End fade, so a cut-off pad never clicks.
|
|
541
|
-
const fade = Math.min(Math.round(0.4 * sr), Math.floor(sampleCount / 10));
|
|
542
|
-
for (let i = 0; i < fade; i++) {
|
|
543
|
-
const g = i / fade;
|
|
544
|
-
L[sampleCount - 1 - i] *= g;
|
|
545
|
-
R[sampleCount - 1 - i] *= g;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
const { left, right, lufs } = masterTo(L, R);
|
|
549
|
-
return { left, right, sampleCount, palette, cues, lufs: +lufs.toFixed(2), peakDbfs: +samplePeakDbfs([left, right]).toFixed(2), loudnessMethod: "BS.1770-4" };
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* The master stage every built track ends in: loudness to -16 LUFS through a lookahead limiter under
|
|
554
|
-
* -2 dBFS, quantized as the WAV will be. Returns the channels, the gain applied and the loudness.
|
|
555
|
-
*
|
|
556
|
-
* The limiter turns the gain down smoothly before a peak (5 ms lookahead, both channels linked, 80 ms
|
|
557
|
-
* release) instead of bending the waveform. A waveshaper adds harmonics the AAC encode turns into
|
|
558
|
-
* overshoot: one film's score sat at -2.1 dBFS in the WAV and decoded at +0.4 dBFS from the mux.
|
|
559
|
-
*/
|
|
560
|
-
export function masterTo(L, R) {
|
|
561
|
-
const sampleCount = L.length;
|
|
562
|
-
const ceiling = 10 ** (-2.1 / 20);
|
|
563
|
-
const ahead = Math.round(0.005 * SOUND.sampleRate);
|
|
564
|
-
const release = 1 - Math.exp(-1 / (0.08 * SOUND.sampleRate));
|
|
565
|
-
const q = (v) => Math.round(Math.max(-1, Math.min(1, v)) * 32767) / 32767;
|
|
566
|
-
const render = (gain) => {
|
|
567
|
-
// need[s]: the gain that keeps sample s under the ceiling; held[s]: the lowest need in the next
|
|
568
|
-
// `ahead` samples (a monotonic deque); then the release lets it rise slowly; then a moving average
|
|
569
|
-
// over `ahead` samples reaches every held value before its peak, so the result never exceeds need.
|
|
570
|
-
const need = new Float32Array(sampleCount);
|
|
571
|
-
for (let s = 0; s < sampleCount; s++) {
|
|
572
|
-
const a = Math.max(Math.abs(L[s]), Math.abs(R[s])) * gain;
|
|
573
|
-
need[s] = a > ceiling ? ceiling / a : 1;
|
|
574
|
-
}
|
|
575
|
-
const held = new Float32Array(sampleCount);
|
|
576
|
-
const deque = new Int32Array(sampleCount + ahead + 1);
|
|
577
|
-
let head = 0;
|
|
578
|
-
let tail = 0;
|
|
579
|
-
let next = 0;
|
|
580
|
-
for (let s = 0; s < sampleCount; s++) {
|
|
581
|
-
for (; next < Math.min(sampleCount, s + ahead + 1); next++) {
|
|
582
|
-
while (tail > head && need[deque[tail - 1]] >= need[next]) tail--;
|
|
583
|
-
deque[tail++] = next;
|
|
584
|
-
}
|
|
585
|
-
while (deque[head] < s) head++;
|
|
586
|
-
held[s] = need[deque[head]];
|
|
587
|
-
}
|
|
588
|
-
let env = 1;
|
|
589
|
-
const smooth = new Float32Array(sampleCount);
|
|
590
|
-
for (let s = 0; s < sampleCount; s++) {
|
|
591
|
-
env = Math.min(held[s], env + (1 - env) * release);
|
|
592
|
-
smooth[s] = env;
|
|
593
|
-
}
|
|
594
|
-
const l = new Float32Array(sampleCount);
|
|
595
|
-
const r = new Float32Array(sampleCount);
|
|
596
|
-
// The averaging window starts full of unity gain; the hard ceiling below catches the first 5 ms.
|
|
597
|
-
let win = ahead;
|
|
598
|
-
for (let s = 0; s < sampleCount; s++) {
|
|
599
|
-
win += smooth[s] - (s >= ahead ? smooth[s - ahead] : 1);
|
|
600
|
-
const g = win / ahead;
|
|
601
|
-
l[s] = q(Math.max(-ceiling, Math.min(ceiling, L[s] * gain * g)));
|
|
602
|
-
r[s] = q(Math.max(-ceiling, Math.min(ceiling, R[s] * gain * g)));
|
|
603
|
-
}
|
|
604
|
-
return [l, r];
|
|
605
|
-
};
|
|
606
|
-
const raw = integratedLoudness([Float32Array.from(L), Float32Array.from(R)]);
|
|
607
|
-
let gain = Number.isFinite(raw) ? 10 ** ((SOUND.targetLufs - raw) / 20) : 1;
|
|
608
|
-
let [left, right] = render(gain);
|
|
609
|
-
let lufs = integratedLoudness([left, right]);
|
|
610
|
-
for (let i = 0; i < 8 && Number.isFinite(lufs) && Math.abs(lufs - SOUND.targetLufs) > 0.2; i++) {
|
|
611
|
-
gain *= 10 ** ((SOUND.targetLufs - lufs) / 20);
|
|
612
|
-
[left, right] = render(gain);
|
|
613
|
-
lufs = integratedLoudness([left, right]);
|
|
614
|
-
}
|
|
615
|
-
return { left, right, gain, lufs };
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
export function writeBed({ treatment, frameCount, fps, cutTimes = [], dir }) {
|
|
619
|
-
const bed = buildBed({ treatment, frameCount, fps, cutTimes });
|
|
620
|
-
const file = path.join(dir, "sound", "bed.wav");
|
|
621
|
-
mkdirSync(path.dirname(file), { recursive: true });
|
|
622
|
-
const wav = encodeWav({ left: bed.left, right: bed.right, sampleRate: SOUND.sampleRate });
|
|
623
|
-
writeFileSync(file, wav);
|
|
624
|
-
const summary = {
|
|
625
|
-
schema: "litgravity.motion-sound-cues/v1",
|
|
626
|
-
mode: "generated",
|
|
627
|
-
file,
|
|
628
|
-
sha256: createHash("sha256").update(wav).digest("hex"),
|
|
629
|
-
sampleRate: SOUND.sampleRate,
|
|
630
|
-
sampleCount: bed.sampleCount,
|
|
631
|
-
durationSec: +(bed.sampleCount / SOUND.sampleRate).toFixed(6),
|
|
632
|
-
frameCount,
|
|
633
|
-
fps,
|
|
634
|
-
palette: bed.palette,
|
|
635
|
-
timbre: bed.palette.timbre,
|
|
636
|
-
key: `${bed.palette.key} ${bed.palette.mode}`,
|
|
637
|
-
tempo: bed.palette.tempo,
|
|
638
|
-
lufs: bed.lufs,
|
|
639
|
-
peakDbfs: bed.peakDbfs,
|
|
640
|
-
loudnessMethod: bed.loudnessMethod,
|
|
641
|
-
cutTimes: cutTimes.map(round4),
|
|
642
|
-
cues: bed.cues,
|
|
643
|
-
};
|
|
644
|
-
writeFileSync(path.join(dir, "sound-cues.json"), `${JSON.stringify(summary, null, 2)}\n`);
|
|
645
|
-
return summary;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/** Convert a supplied or authored track to the film's exact length (50 ms fade at a trim or pad). */
|
|
649
|
-
export function prepareTrack({ ffmpeg, input, frameCount, fps, dir, name = "track.wav" }) {
|
|
650
|
-
if (!input || !existsSync(input)) throw new SoundError("sound.file", `audio file not found: ${input}`);
|
|
651
|
-
const sr = SOUND.sampleRate;
|
|
652
|
-
const want = Math.round((frameCount * sr) / fps);
|
|
653
|
-
const out = path.join(dir, "sound", name);
|
|
654
|
-
mkdirSync(path.dirname(out), { recursive: true });
|
|
655
|
-
const tmp = path.join(dir, "sound", `.src-${process.pid}-${name}`);
|
|
656
|
-
const r = spawnSync(ffmpeg, ["-y", "-hide_banner", "-loglevel", "error", "-i", input, "-vn", "-ac", "2", "-ar", String(sr), "-c:a", "pcm_s16le", "-f", "wav", tmp], { encoding: "utf8" });
|
|
657
|
-
if (r.status !== 0 || !existsSync(tmp)) {
|
|
658
|
-
rmSync(tmp, { force: true });
|
|
659
|
-
throw new SoundError("sound.file", `audio file could not be decoded: ${(r.stderr || r.error?.message || "").trim().split("\n").pop()}`);
|
|
660
|
-
}
|
|
661
|
-
let src;
|
|
662
|
-
try {
|
|
663
|
-
src = decodeWav(readFileSync(tmp));
|
|
664
|
-
} finally {
|
|
665
|
-
rmSync(tmp, { force: true });
|
|
666
|
-
}
|
|
667
|
-
const have = src.channels[0].length;
|
|
668
|
-
const fade = Math.round(SOUND.fadeSec * sr);
|
|
669
|
-
const left = new Float32Array(want);
|
|
670
|
-
const right = new Float32Array(want);
|
|
671
|
-
const [a, b] = [src.channels[0], src.channels[1] ?? src.channels[0]];
|
|
672
|
-
const keep = Math.min(have, want);
|
|
673
|
-
left.set(a.subarray(0, keep));
|
|
674
|
-
right.set(b.subarray(0, keep));
|
|
675
|
-
const action = have === want ? "exact" : have > want ? "trimmed" : "padded";
|
|
676
|
-
if (action !== "exact") {
|
|
677
|
-
for (let i = 0; i < Math.min(fade, keep); i++) {
|
|
678
|
-
const g = i / fade;
|
|
679
|
-
left[keep - 1 - i] *= g;
|
|
680
|
-
right[keep - 1 - i] *= g;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
writeFileSync(out, encodeWav({ left, right, sampleRate: sr }));
|
|
684
|
-
return { file: out, sampleCount: want, sourceDurationSec: +(have / sr).toFixed(6), action };
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
/** The sound gate on the decoded muxed stream (exit 20 for a generated bed that is missing or silent at the head). */
|
|
688
|
-
export function auditMuxed({ ffmpeg, ffprobe = null, film, videoDurationSec, mode }) {
|
|
689
|
-
const na = (id) => ({ id, status: "N/A", detail: "sound mode none" });
|
|
690
|
-
const ids = ["SOUND-STREAM", "SOUND-DURATION", "SOUND-PEAK", "SOUND-HEAD", "SOUND-LOUDNESS"];
|
|
691
|
-
if (mode === "none") return { rules: ids.map(na), exitCode: null };
|
|
692
|
-
let present = true;
|
|
693
|
-
if (ffprobe) {
|
|
694
|
-
const p = spawnSync(ffprobe, ["-v", "error", "-select_streams", "a", "-show_entries", "stream=index", "-of", "csv=p=0", film], { encoding: "utf8" });
|
|
695
|
-
present = p.status === 0 && p.stdout.trim().length > 0;
|
|
696
|
-
}
|
|
697
|
-
let pcm = null;
|
|
698
|
-
if (present) {
|
|
699
|
-
const r = spawnSync(ffmpeg, ["-hide_banner", "-loglevel", "error", "-i", film, "-map", "0:a:0", "-f", "f32le", "-ac", "2", "-ar", String(SOUND.sampleRate), "pipe:1"], { maxBuffer: 1024 * 1024 * 1024 });
|
|
700
|
-
if (r.status === 0 && r.stdout?.length) pcm = r.stdout;
|
|
701
|
-
else present = false;
|
|
702
|
-
}
|
|
703
|
-
if (!present) {
|
|
704
|
-
return {
|
|
705
|
-
rules: [{ id: "SOUND-STREAM", status: "FAIL", detail: `no audio stream in the film although sound mode is ${mode}` }, ...ids.slice(1).map((id) => ({ id, status: "N/A", detail: "no stream" }))],
|
|
706
|
-
exitCode: 20,
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
const frames = Math.floor(pcm.length / 8);
|
|
710
|
-
const l = new Float32Array(frames);
|
|
711
|
-
const r = new Float32Array(frames);
|
|
712
|
-
for (let i = 0; i < frames; i++) {
|
|
713
|
-
l[i] = pcm.readFloatLE(i * 8);
|
|
714
|
-
r[i] = pcm.readFloatLE(i * 8 + 4);
|
|
715
|
-
}
|
|
716
|
-
const channels = [l, r];
|
|
717
|
-
const duration = frames / SOUND.sampleRate;
|
|
718
|
-
const peak = samplePeakDbfs(channels);
|
|
719
|
-
const head = rmsRuns(channels);
|
|
720
|
-
const lufs = integratedLoudness(channels);
|
|
721
|
-
// A generated bed and a score are built here to the loudness target; a supplied track is only reported.
|
|
722
|
-
const built = mode === "generated" || mode === "score";
|
|
723
|
-
const rules = [{ id: "SOUND-STREAM", status: "PASS", detail: `audio stream present (${mode})` }];
|
|
724
|
-
const dd = Math.abs(duration - videoDurationSec);
|
|
725
|
-
rules.push({ id: "SOUND-DURATION", status: dd <= SOUND.durationToleranceSec ? "PASS" : "FAIL", detail: `audio ${duration.toFixed(3)} s vs video ${Number(videoDurationSec).toFixed(3)} s (limit ±${SOUND.durationToleranceSec} s)` });
|
|
726
|
-
rules.push({ id: "SOUND-PEAK", status: peak <= SOUND.gatePeakDbfs ? "PASS" : "FAIL", detail: `sample peak ${peak.toFixed(2)} dBFS (limit ${SOUND.gatePeakDbfs} dBFS)` });
|
|
727
|
-
const headBad = head > SOUND.silenceMaxSec;
|
|
728
|
-
rules.push({
|
|
729
|
-
id: "SOUND-HEAD",
|
|
730
|
-
status: headBad ? (built ? "FAIL" : "WARN") : "PASS",
|
|
731
|
-
detail: `longest run below ${SOUND.silenceDbfs} dBFS RMS in the first ${SOUND.silenceHeadSec} s: ${head.toFixed(2)} s (limit ${SOUND.silenceMaxSec} s)`,
|
|
732
|
-
});
|
|
733
|
-
const inRange = Number.isFinite(lufs) && Math.abs(lufs - SOUND.targetLufs) <= SOUND.lufsTolerance;
|
|
734
|
-
rules.push({
|
|
735
|
-
id: "SOUND-LOUDNESS",
|
|
736
|
-
status: built ? (inRange ? "PASS" : "WARN") : "PASS",
|
|
737
|
-
detail: `integrated ${Number.isFinite(lufs) ? lufs.toFixed(2) : "-inf"} LUFS (BS.1770-4${built ? `, target ${SOUND.targetLufs} ± ${SOUND.lufsTolerance}` : ", reported"})`,
|
|
738
|
-
});
|
|
739
|
-
return { rules, exitCode: headBad && built ? 20 : null };
|
|
740
|
-
}
|