@litfamily/litmuse 0.1.11 → 0.1.12
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 +12 -0
- package/README.md +76 -10
- package/README_ko-KR.md +76 -10
- package/bin/litmuse.mjs +0 -4
- package/lib/bundle.mjs +1 -1
- package/lib/doctor.mjs +20 -31
- package/lib/install.mjs +26 -1
- package/lib/paths.mjs +1 -0
- package/lib/safe-write.mjs +1 -1
- package/package.json +2 -2
- package/plugin/.muse-plugin/plugin.json +11 -11
- package/plugin/hooks/lib/digest.mjs +4 -7
- package/plugin/hooks/lib/extensions.mjs +80 -0
- package/plugin/hooks/lib/moved.mjs +42 -0
- package/plugin/hooks/post-tool-use.mjs +0 -4
- package/plugin/hooks/session-start.mjs +6 -1
- package/plugin/hooks/stop.mjs +1 -7
- package/plugin/hooks/user-prompt-submit.mjs +4 -4
- package/plugin/skills/frontend-ui-ux/SKILL.md +33 -228
- package/plugin/skills/lit-diagram-drawer/SKILL.md +35 -212
- package/plugin/skills/lit-docx/SKILL.md +33 -239
- package/plugin/skills/lit-pptx/SKILL.md +33 -281
- package/plugin/skills/lit-schematic/SKILL.md +35 -224
- package/plugin/skills/lit-scientific-visualization/SKILL.md +34 -219
- package/plugin/skills/lit-typographic-motion/SKILL.md +33 -165
- package/plugin/skills/readme-studio/SKILL.md +35 -100
- package/plugin/skills/visual-qa/SKILL.md +35 -175
- package/lib/runtime.mjs +0 -73
- package/plugin/hooks/lib/motion.mjs +0 -156
- package/plugin/lib/office-runtime-lock/package-lock.json +0 -793
- package/plugin/lib/office-runtime-lock/package.json +0 -12
- package/plugin/lib/office-runtime-lock/requirements.lock +0 -15
- package/plugin/lib/office-runtime.mjs +0 -274
- package/plugin/lib/office_data.py +0 -493
- package/plugin/lib/office_runtime_bootstrap.py +0 -76
- package/plugin/lib/ooxml_integrity.py +0 -199
- package/plugin/lib/pdf_fonts.py +0 -91
- package/plugin/lib/render_pages.py +0 -133
- package/plugin/lib/strict-json.mjs +0 -143
- 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 -414
- 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 -92
- package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -93
- package/plugin/skills/frontend-ui-ux/references/complete-contract.md +0 -579
- package/plugin/skills/frontend-ui-ux/references/composition.md +0 -85
- package/plugin/skills/frontend-ui-ux/references/craft-floor.md +0 -264
- package/plugin/skills/frontend-ui-ux/references/creative-directions.md +0 -80
- package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -79
- 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 -126
- package/plugin/skills/frontend-ui-ux/references/house-styles.md +0 -234
- package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +0 -109
- package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +0 -47
- package/plugin/skills/frontend-ui-ux/references/motion-guide.md +0 -130
- package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +0 -92
- 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 -93
- package/plugin/skills/frontend-ui-ux/references/product-direction.md +0 -84
- package/plugin/skills/frontend-ui-ux/references/production-interview.md +0 -17
- package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +0 -97
- package/plugin/skills/frontend-ui-ux/references/slop-register.md +0 -150
- package/plugin/skills/frontend-ui-ux/references/system-foundations.md +0 -84
- package/plugin/skills/frontend-ui-ux/references/taste-direction.md +0 -86
- 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 -84
- package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -51
- 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 -202
- 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 -133
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +0 -341
- 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/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/export.md +0 -29
- 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/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 -67
- 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 -59
- 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 -275
- 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 -33
- package/plugin/skills/lit-docx/references/components.md +0 -207
- package/plugin/skills/lit-docx/references/direction-step.md +0 -277
- 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 -105
- package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +0 -164
- package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +0 -138
- package/plugin/skills/lit-docx/references/examples/05-memo-en.md +0 -55
- package/plugin/skills/lit-docx/references/examples/06-journal-en.md +0 -130
- 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 -123
- package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +0 -45
- package/plugin/skills/lit-docx/references/frontmatter_schema.md +0 -42
- package/plugin/skills/lit-docx/references/journal_style_spec.md +0 -17
- package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +0 -37
- package/plugin/skills/lit-docx/references/page-composition.md +0 -221
- package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
- package/plugin/skills/lit-docx/references/slop_rules.md +0 -35
- package/plugin/skills/lit-docx/references/tonalities/brief.md +0 -143
- package/plugin/skills/lit-docx/references/tonalities/journal.md +0 -142
- package/plugin/skills/lit-docx/references/tonalities/manual.md +0 -148
- package/plugin/skills/lit-docx/references/tonalities/memo.md +0 -137
- package/plugin/skills/lit-docx/references/tonalities/proposal.md +0 -140
- package/plugin/skills/lit-docx/references/tonalities/report.md +0 -156
- 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 -302
- 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/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 -39
- package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +0 -40
- package/plugin/skills/lit-docx/templates/latex/ieee/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +0 -39
- 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 -39
- package/plugin/skills/lit-docx/templates/latex/nature/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/nature/template.tex +0 -39
- 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 -38
- 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/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 -110
- package/plugin/skills/lit-pptx/references/authoring-guide.md +0 -250
- 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 -164
- 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 -198
- 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 -109
- package/plugin/skills/lit-pptx/references/tonalities/atlas.md +0 -139
- package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +0 -112
- package/plugin/skills/lit-pptx/references/tonalities/chalk.md +0 -148
- package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -118
- 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 -125
- package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +0 -115
- 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 -109
- package/plugin/skills/lit-pptx/references/tonalities/signal.md +0 -150
- package/plugin/skills/lit-pptx/references/tonalities/studio.md +0 -132
- package/plugin/skills/lit-pptx/scripts/compile-deck.js +0 -462
- package/plugin/skills/lit-pptx/scripts/craft_extras.py +0 -1078
- 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 -510
- 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/package.json +0 -4
- package/plugin/skills/lit-pptx/scripts/qa_deck.py +0 -795
- 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 -14
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -8
- package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -22
- package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -81
- package/plugin/skills/lit-schematic/references/cutaway-outputs.md +0 -25
- package/plugin/skills/lit-schematic/references/isometric-craft.md +0 -24
- package/plugin/skills/lit-schematic/references/journal-figures.md +0 -19
- package/plugin/skills/lit-schematic/references/kit-api.md +0 -42
- package/plugin/skills/lit-schematic/references/pfd-and-layout.md +0 -20
- package/plugin/skills/lit-schematic/references/pid-drafting.md +0 -30
- package/plugin/skills/lit-schematic/references/pid-symbols.md +0 -35
- package/plugin/skills/lit-schematic/references/verification.md +0 -31
- package/plugin/skills/lit-schematic/scripts/doctor.mjs +0 -13
- package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +0 -49
- package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +0 -18
- package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +0 -58
- package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -10
- package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -349
- package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +0 -497
- package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +0 -39
- package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +0 -25
- package/plugin/skills/lit-schematic/scripts/motion.mjs +0 -8
- package/plugin/skills/lit-schematic/scripts/qa.mjs +0 -21
- package/plugin/skills/lit-schematic/scripts/render.mjs +0 -38
- package/plugin/skills/lit-schematic/scripts/scaffold.mjs +0 -73
- 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 -283
- 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 -225
- 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 -108
- package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +0 -218
- package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +0 -144
- package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +0 -136
- package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +0 -158
- package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +0 -330
- package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +0 -102
- package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +0 -213
- package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +0 -346
- 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 -106
- package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +0 -32
- package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +0 -373
- 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 -102
- package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +0 -36
- package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +0 -120
- package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +0 -44
- package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +0 -164
- 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 -348
- 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 -179
- package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +0 -123
- package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +0 -295
- package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +0 -430
- 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 -214
- package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +0 -645
- package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +0 -145
- 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 -37
- package/plugin/skills/lit-typographic-motion/engine/stage/init.js +0 -288
- package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +0 -106
- package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +0 -157
- package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +0 -741
- 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 -67
- 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 -95
- 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 -67
- 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 -475
- package/plugin/skills/lit-typographic-motion/references/craft-loop.md +0 -100
- 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 -157
- package/plugin/skills/lit-typographic-motion/references/runtime.md +0 -98
- package/plugin/skills/lit-typographic-motion/references/sound.md +0 -181
- package/plugin/skills/lit-typographic-motion/references/stage.md +0 -310
- package/plugin/skills/lit-typographic-motion/references/studio.md +0 -245
- package/plugin/skills/lit-typographic-motion/references/style-bibles.md +0 -130
- package/plugin/skills/lit-typographic-motion/references/treatment.md +0 -189
- package/plugin/skills/lit-typographic-motion/references/type-craft.md +0 -87
- package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +0 -99
- package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +0 -95
- package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +0 -206
- 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/capture-playbook.md +0 -126
- package/plugin/skills/visual-qa/references/complete-contract.md +0 -677
- 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/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,497 +0,0 @@
|
|
|
1
|
-
import { el, text, doc, comment } from './svg.mjs';
|
|
2
|
-
import { WEIGHTS, material } from './theme.mjs';
|
|
3
|
-
|
|
4
|
-
// Wide A3-tall sheet (mm): border frame with zone ticks, an equipment band on top,
|
|
5
|
-
// the drawing field, a legend panel on the right, and a title block along the bottom.
|
|
6
|
-
// Every drawn symbol leaves its QA comment behind; the look is new, the contract is not.
|
|
7
|
-
const SHEET_W = 470;
|
|
8
|
-
const SHEET_H = 297;
|
|
9
|
-
const FRAME = 6;
|
|
10
|
-
const BAND_TOP = 8;
|
|
11
|
-
const BAND_BOTTOM = 36;
|
|
12
|
-
const FIELD_TOP = 40;
|
|
13
|
-
const FIELD_BOTTOM = 245;
|
|
14
|
-
const FIELD_RIGHT = 306;
|
|
15
|
-
const LEGEND_X = 340;
|
|
16
|
-
const TITLE_TOP = 249;
|
|
17
|
-
const INK = '#111';
|
|
18
|
-
|
|
19
|
-
function route(points) {
|
|
20
|
-
const path = [points[0]];
|
|
21
|
-
for (let i = 1; i < points.length; i++) {
|
|
22
|
-
const [px, py] = path[path.length - 1];
|
|
23
|
-
const [x, y] = points[i];
|
|
24
|
-
if (px !== x && py !== y) path.push([x, py]);
|
|
25
|
-
path.push([x, y]);
|
|
26
|
-
}
|
|
27
|
-
return path;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function poly(points) {
|
|
31
|
-
return points.map(([x, y]) => `${x},${y}`).join(' ');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const KIND_NAMES = {
|
|
35
|
-
tank: 'Tank',
|
|
36
|
-
pump: 'Dosing pump',
|
|
37
|
-
'valve.gate.hand': 'Gate valve',
|
|
38
|
-
'valve.gate.pneumatic': 'Gate valve',
|
|
39
|
-
'valve.gate.motor': 'Gate valve',
|
|
40
|
-
'valve.ball.hand': 'Ball valve',
|
|
41
|
-
'valve.globe.pneumatic': 'Globe valve',
|
|
42
|
-
'valve.check.auto': 'Check valve',
|
|
43
|
-
'filter.strainer': 'Filter',
|
|
44
|
-
psv: 'Relief valve',
|
|
45
|
-
orifice: 'Orifice',
|
|
46
|
-
instrument: 'Field instr.',
|
|
47
|
-
'instrument.dcs': 'DCS instr.',
|
|
48
|
-
offpage: 'Off-page',
|
|
49
|
-
drain: 'Drain',
|
|
50
|
-
vent: 'Vent',
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const kindName = (kind) => KIND_NAMES[kind] ?? String(kind).replace(/\./g, ' ');
|
|
54
|
-
|
|
55
|
-
// First-letter/shift meanings for the instrument identification table.
|
|
56
|
-
const VARIABLE_WORDS = { F: 'flow', L: 'level', P: 'pressure', T: 'temperature', E: 'voltage', S: 'speed' };
|
|
57
|
-
const FUNCTION_WORDS = { I: 'indicating', C: 'controlling', T: 'transmitting', A: 'alarm', S: 'switching', R: 'recording', V: 'valve' };
|
|
58
|
-
|
|
59
|
-
const instrumentMeaning = (tag) => {
|
|
60
|
-
const letters = String(tag).split('-')[0] ?? '';
|
|
61
|
-
const words = [];
|
|
62
|
-
if (VARIABLE_WORDS[letters[0]]) words.push(VARIABLE_WORDS[letters[0]]);
|
|
63
|
-
for (const ch of letters.slice(1)) {
|
|
64
|
-
if (FUNCTION_WORDS[ch]) words.push(FUNCTION_WORDS[ch]);
|
|
65
|
-
}
|
|
66
|
-
return words.length ? words.join(' ') : 'instrument function';
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export function createSheet(opts = {}) {
|
|
70
|
-
const tb = {
|
|
71
|
-
plant: opts.plant ?? 'PLANT', unit: opts.unit ?? 'UNIT',
|
|
72
|
-
sheetNo: opts.sheetNo ?? '00-000', rev: opts.rev ?? '0',
|
|
73
|
-
title: opts.title ?? `${opts.plant ?? 'PLANT'} ${opts.unit ?? 'UNIT'}`,
|
|
74
|
-
subTitle: opts.subTitle ?? 'Piping and instrumentation diagram',
|
|
75
|
-
drawingNo: opts.drawingNo ?? `${opts.plant ?? 'PLANT'}-${opts.sheetNo ?? '00-000'}`,
|
|
76
|
-
project: opts.project ?? 'Worked example', owner: opts.owner ?? 'lit-schematic',
|
|
77
|
-
drawn: opts.drawn ?? '-', date: opts.date ?? '2026-10-26', scale: opts.scale ?? 'NTS',
|
|
78
|
-
sheet: opts.sheet ?? '1 of 1',
|
|
79
|
-
};
|
|
80
|
-
const shapes = [];
|
|
81
|
-
const marks = [comment(`titleblock plant=${tb.plant} unit=${tb.unit} sheetNo=${tb.sheetNo} rev=${tb.rev}`)];
|
|
82
|
-
const kinds = new Set();
|
|
83
|
-
const lines = new Map();
|
|
84
|
-
const equipment = [];
|
|
85
|
-
const lineClasses = new Set();
|
|
86
|
-
const notes = [];
|
|
87
|
-
const instruments = new Map();
|
|
88
|
-
|
|
89
|
-
const frame = () => {
|
|
90
|
-
const out = [];
|
|
91
|
-
out.push(el('rect', { x: FRAME, y: FRAME, width: SHEET_W - FRAME * 2, height: SHEET_H - FRAME * 2, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
92
|
-
for (let i = 0; i < 8; i += 1) {
|
|
93
|
-
const x = FRAME + ((SHEET_W - FRAME * 2) * (i + 0.5)) / 8;
|
|
94
|
-
out.push(text(x, FRAME - 1, String(i + 1), { size: 6, anchor: 'middle' }));
|
|
95
|
-
out.push(text(x, SHEET_H - FRAME + 5, String(i + 1), { size: 6, anchor: 'middle' }));
|
|
96
|
-
}
|
|
97
|
-
const rows = 'ABCDEF';
|
|
98
|
-
for (let i = 0; i < 6; i += 1) {
|
|
99
|
-
const y = FRAME + ((SHEET_H - FRAME * 2) * (i + 0.5)) / 6;
|
|
100
|
-
out.push(text(FRAME - 2.6, y + 2, rows[i], { size: 6, anchor: 'middle' }));
|
|
101
|
-
out.push(text(SHEET_W - FRAME + 2.6, y + 2, rows[i], { size: 6, anchor: 'middle' }));
|
|
102
|
-
}
|
|
103
|
-
out.push(el('line', { x1: FRAME, y1: BAND_BOTTOM, x2: SHEET_W - FRAME, y2: BAND_BOTTOM, stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
104
|
-
out.push(el('line', { x1: FRAME, y1: FIELD_TOP, x2: SHEET_W - FRAME, y2: FIELD_TOP, stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
105
|
-
return out.join('\n');
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
const band = () => {
|
|
109
|
-
if (!equipment.length) return '';
|
|
110
|
-
const out = [text(12, BAND_TOP + 6, 'EQUIPMENT', { size: 7 })];
|
|
111
|
-
equipment.slice(0, 3).forEach(([tag, info], i) => {
|
|
112
|
-
out.push(text(12, BAND_TOP + 14 + i * 6, tag, { size: 6 }));
|
|
113
|
-
out.push(text(56, BAND_TOP + 14 + i * 6, info, { size: 6 }));
|
|
114
|
-
});
|
|
115
|
-
return out.join('\n');
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
const titleBlock = () => {
|
|
119
|
-
const out = [];
|
|
120
|
-
out.push(el('line', { x1: FRAME, y1: TITLE_TOP, x2: SHEET_W - FRAME, y2: TITLE_TOP, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
121
|
-
for (const x of [150, 320]) out.push(el('line', { x1: x, y1: TITLE_TOP, x2: x, y2: SHEET_H - FRAME, stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
122
|
-
out.push(text(10, TITLE_TOP + 8, 'NOTES', { size: 7 }));
|
|
123
|
-
notes.slice(0, 4).forEach((note, i) => {
|
|
124
|
-
out.push(text(10, TITLE_TOP + 18 + i * 7, `${i + 1}. ${note}`, { size: 6 }));
|
|
125
|
-
});
|
|
126
|
-
out.push(text(154, TITLE_TOP + 8, 'TITLE', { size: 6 }));
|
|
127
|
-
out.push(text(154, TITLE_TOP + 20, tb.title, { size: 10 }));
|
|
128
|
-
out.push(text(154, TITLE_TOP + 29, tb.subTitle, { size: 7 }));
|
|
129
|
-
out.push(text(154, TITLE_TOP + 38, `PROJECT ${tb.project} OWNER ${tb.owner}`, { size: 6 }));
|
|
130
|
-
out.push(text(324, TITLE_TOP + 8, 'DRAWING NO.', { size: 6 }));
|
|
131
|
-
out.push(text(324, TITLE_TOP + 18, tb.drawingNo, { size: 8 }));
|
|
132
|
-
out.push(text(324, TITLE_TOP + 28, `REV ${tb.rev} SHEET ${tb.sheet}`, { size: 6 }));
|
|
133
|
-
out.push(text(324, TITLE_TOP + 38, `DATE ${tb.date} SCALE ${tb.scale}`, { size: 6 }));
|
|
134
|
-
return out.join('\n');
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
// Glyph thumbnails for the legend panel, drawn small at (x, y).
|
|
138
|
-
const thumb = (kind, x, y) => {
|
|
139
|
-
const s = [];
|
|
140
|
-
if (kind === 'tank') {
|
|
141
|
-
s.push(el('rect', { x: x - 5, y: y - 4, width: 10, height: 9, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
142
|
-
s.push(el('path', { d: `M ${x - 5} ${y - 4} L ${x + 5} ${y - 4} L ${x} ${y - 6} Z`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
143
|
-
} else if (kind === 'pump') {
|
|
144
|
-
s.push(el('circle', { cx: x, cy: y, r: 6, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
145
|
-
s.push(el('path', { d: `M ${x - 3} ${y - 3} L ${x - 3} ${y + 3} L ${x + 3} ${y} Z`, fill: INK }));
|
|
146
|
-
} else if (kind.startsWith('valve.check')) {
|
|
147
|
-
s.push(el('path', { d: `M ${x - 5} ${y - 4} L ${x + 3} ${y} L ${x - 5} ${y + 4} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
148
|
-
s.push(el('line', { x1: x + 3, y1: y - 4, x2: x + 3, y2: y + 4, stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
149
|
-
} else if (kind.startsWith('valve')) {
|
|
150
|
-
s.push(el('path', { d: `M ${x - 5} ${y - 4} L ${x} ${y} L ${x - 5} ${y + 4} M ${x + 5} ${y - 4} L ${x} ${y} L ${x + 5} ${y + 4}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
151
|
-
if (kind.includes('globe')) s.push(el('circle', { cx: x, cy: y, r: 2, fill: INK }));
|
|
152
|
-
} else if (kind.startsWith('filter')) {
|
|
153
|
-
s.push(el('path', { d: `M ${x} ${y - 6} L ${x + 6} ${y} L ${x} ${y + 6} L ${x - 6} ${y} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
154
|
-
} else if (kind === 'psv') {
|
|
155
|
-
s.push(el('path', { d: `M ${x} ${y + 1} L ${x - 2.5} ${y + 6} L ${x + 2.5} ${y + 6} Z M ${x} ${y + 1} L ${x + 5} ${y - 1.5} L ${x + 5} ${y + 3.5} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
156
|
-
s.push(el('path', { d: `M ${x} ${y + 1} L ${x} ${y - 1} L ${x + 2} ${y - 2} L ${x - 2} ${y - 3.5} L ${x + 2} ${y - 5} L ${x} ${y - 6}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
157
|
-
} else if (kind === 'orifice') {
|
|
158
|
-
s.push(el('line', { x1: x - 4, y1: y - 4, x2: x + 4, y2: y - 4, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
159
|
-
s.push(el('line', { x1: x - 2, y1: y - 5, x2: x - 2, y2: y + 5, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
160
|
-
s.push(el('line', { x1: x + 2, y1: y - 5, x2: x + 2, y2: y + 5, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
161
|
-
} else if (kind === 'instrument.dcs') {
|
|
162
|
-
s.push(el('rect', { x: x - 5, y: y - 5, width: 10, height: 10, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
163
|
-
s.push(el('line', { x1: x - 5, y1: y, x2: x + 5, y2: y, stroke: INK, 'stroke-width': WEIGHTS.signal }));
|
|
164
|
-
} else if (kind === 'instrument') {
|
|
165
|
-
s.push(el('circle', { cx: x, cy: y, r: 5, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
166
|
-
} else if (kind === 'offpage') {
|
|
167
|
-
s.push(el('path', { d: `M ${x - 7} ${y - 4} L ${x + 3} ${y - 4} L ${x + 7} ${y} L ${x + 3} ${y + 4} L ${x - 7} ${y + 4} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
168
|
-
} else if (kind === 'drain') {
|
|
169
|
-
s.push(el('path', { d: `M ${x - 4} ${y - 4} L ${x + 4} ${y - 4} L ${x} ${y + 4} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
170
|
-
} else if (kind === 'vent') {
|
|
171
|
-
s.push(el('path', { d: `M ${x - 4} ${y + 4} L ${x - 4} ${y} A 4 4 0 0 1 ${x + 4} ${y} L ${x + 4} ${y + 4}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
172
|
-
} else {
|
|
173
|
-
s.push(el('rect', { x: x - 5, y: y - 4, width: 10, height: 8, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
174
|
-
}
|
|
175
|
-
return s.join('\n');
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
const legendPanel = () => {
|
|
179
|
-
const out = [el('line', { x1: LEGEND_X - 2, y1: FIELD_TOP, x2: LEGEND_X - 2, y2: TITLE_TOP, stroke: INK, 'stroke-width': WEIGHTS.utility })];
|
|
180
|
-
out.push(text(LEGEND_X, FIELD_TOP + 8, 'LEGEND', { size: 8 }));
|
|
181
|
-
let y = FIELD_TOP + 22;
|
|
182
|
-
// Two columns of 64: the widest thumbnail (relief zigzag, off-page hexagon)
|
|
183
|
-
// ends 12 past its origin; thumbnails sit 6 in from the panel rule so a pump
|
|
184
|
-
// circle clears it, labels start at +18, and the longest name still
|
|
185
|
-
// clears the next column's thumbnails. Rows sit 13 apart so the tallest
|
|
186
|
-
// thumbnails (pump circle, tank roof) never touch the row above or below.
|
|
187
|
-
for (const [index, kind] of [...kinds].sort().entries()) {
|
|
188
|
-
const col = index < Math.ceil([...kinds].length / 2) ? 0 : 1;
|
|
189
|
-
const yy = y + (index % Math.ceil([...kinds].length / 2)) * 13;
|
|
190
|
-
const xx = LEGEND_X + col * 64;
|
|
191
|
-
out.push(thumb(kind, xx + 6, yy - 2));
|
|
192
|
-
out.push(text(xx + 18, yy, kindName(kind), { size: 6 }));
|
|
193
|
-
}
|
|
194
|
-
y += Math.ceil([...kinds].length / 2) * 13 + 6;
|
|
195
|
-
const lineSample = (yy, weight, dash, name) => {
|
|
196
|
-
out.push(el('line', { x1: LEGEND_X, y1: yy - 2, x2: LEGEND_X + 14, y2: yy - 2, stroke: INK, 'stroke-width': weight, ...(dash ? { 'stroke-dasharray': dash } : {}) }));
|
|
197
|
-
out.push(text(LEGEND_X + 18, yy, name, { size: 6 }));
|
|
198
|
-
};
|
|
199
|
-
for (const [cls, weight, dash, name] of [['process', WEIGHTS.process, null, 'Main process line'], ['utility', WEIGHTS.utility, null, 'Utility line'], ['signal', WEIGHTS.signal, '6,2,1,2', 'Electric signal']]) {
|
|
200
|
-
if (!lineClasses.has(cls)) continue;
|
|
201
|
-
lineSample(y, weight, dash, name);
|
|
202
|
-
y += 12;
|
|
203
|
-
}
|
|
204
|
-
y += 6;
|
|
205
|
-
if (instruments.size) {
|
|
206
|
-
out.push(text(LEGEND_X, y + 2, 'INSTRUMENT', { size: 7 }));
|
|
207
|
-
y += 12;
|
|
208
|
-
for (const [letters, tag] of instruments) {
|
|
209
|
-
out.push(text(LEGEND_X, y, letters, { size: 6 }));
|
|
210
|
-
out.push(text(LEGEND_X + 20, y, instrumentMeaning(tag), { size: 6 }));
|
|
211
|
-
y += 8;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return out.join('\n');
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
const labelAt = (pts, number, at = 0.5) => {
|
|
218
|
-
let best = null;
|
|
219
|
-
for (let i = 1; i < pts.length; i += 1) {
|
|
220
|
-
const [x1, y1] = pts[i - 1];
|
|
221
|
-
const [x2, y2] = pts[i];
|
|
222
|
-
const len = Math.hypot(x2 - x1, y2 - y1);
|
|
223
|
-
if (!best || len > best.len) best = { x1, y1, x2, y2, len };
|
|
224
|
-
}
|
|
225
|
-
if (!best || best.len < 12) return '';
|
|
226
|
-
const x = best.x1 + (best.x2 - best.x1) * at;
|
|
227
|
-
const y = best.y1 + (best.y2 - best.y1) * at;
|
|
228
|
-
const vertical = best.x1 === best.x2;
|
|
229
|
-
// Rotated -90, the glyph tops face the pipe: a baseline 8 out leaves about
|
|
230
|
-
// 3.7 mm of air, the same as a horizontal number riding 4 above its line.
|
|
231
|
-
return vertical
|
|
232
|
-
? el('text', { x: x + 8, y, 'font-size': 6, 'font-family': 'Arial, sans-serif', fill: INK, transform: `rotate(-90 ${x + 8} ${y})`, 'data-clear': 'true' }, number)
|
|
233
|
-
: text(x, y - 4, number, { size: 6, anchor: 'middle' });
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
const api = {
|
|
237
|
-
add(kind, id, x, y, label) {
|
|
238
|
-
kinds.add(kind);
|
|
239
|
-
marks.push(comment(`symbol kind=${kind} id=${id}`));
|
|
240
|
-
if (kind === 'tank') return api.tank(id, x, y);
|
|
241
|
-
if (kind === 'pump') return api.pump(id, x, y);
|
|
242
|
-
shapes.push(el('rect', { x: x - 6, y: y - 4, width: 12, height: 8, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
243
|
-
shapes.push(text(x, y + 14, label ?? id, { size: 7 }));
|
|
244
|
-
return id;
|
|
245
|
-
},
|
|
246
|
-
tank(tag, x, y, side = 'below') {
|
|
247
|
-
kinds.add('tank');
|
|
248
|
-
marks.push(comment(`symbol kind=tank id=${tag}`));
|
|
249
|
-
shapes.push(el('path', { d: `M ${x - 22} ${y - 26} L ${x + 22} ${y - 26} L ${x} ${y - 40} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
250
|
-
shapes.push(el('rect', { x: x - 22, y: y - 26, width: 44, height: 52, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
251
|
-
shapes.push(el('rect', { x: x - 3, y: y - 46, width: 6, height: 6, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
252
|
-
shapes.push(el('rect', { x: x - 3, y: y + 26, width: 6, height: 6, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
253
|
-
// 'right' puts the tag beside the shell at mid-height, clear of the bottom
|
|
254
|
-
// nozzle and of anything that hangs below the tank.
|
|
255
|
-
if (side === 'right') shapes.push(text(x + 26, y + 2, tag, { size: 7 }));
|
|
256
|
-
else shapes.push(text(x + 10, y + 40, tag, { size: 7 }));
|
|
257
|
-
return tag;
|
|
258
|
-
},
|
|
259
|
-
pump(tag, x, y, side = 'below') {
|
|
260
|
-
kinds.add('pump');
|
|
261
|
-
marks.push(comment(`symbol kind=pump id=${tag}`));
|
|
262
|
-
shapes.push(el('circle', { cx: x, cy: y, r: 10, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
263
|
-
shapes.push(el('path', { d: `M ${x - 5} ${y - 6} L ${x - 5} ${y + 6} L ${x + 6} ${y} Z`, fill: INK }));
|
|
264
|
-
shapes.push(el('rect', { x: x - 12, y: y + 10, width: 24, height: 4, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
265
|
-
// A vertical drop through the tag reads as a strike-through, so a stacked
|
|
266
|
-
// pump takes its tag beside the circle, a row below center so it also clears
|
|
267
|
-
// the suction-header labels; below stays the default elsewhere.
|
|
268
|
-
if (side === 'left') shapes.push(text(x - 14, y + 10, tag, { size: 7, anchor: 'end' }));
|
|
269
|
-
else if (side === 'right') shapes.push(text(x + 14, y + 10, tag, { size: 7, anchor: 'start' }));
|
|
270
|
-
else shapes.push(text(x, y + 26, tag, { size: 7, anchor: 'middle' }));
|
|
271
|
-
return tag;
|
|
272
|
-
},
|
|
273
|
-
strainer(id, x, y, orient = 'h', tagSide = 'left') {
|
|
274
|
-
kinds.add('filter.strainer');
|
|
275
|
-
marks.push(comment(`symbol kind=filter.strainer id=${id}`));
|
|
276
|
-
shapes.push(el('path', { d: `M ${x} ${y - 7} L ${x + 7} ${y} L ${x} ${y + 7} L ${x - 7} ${y} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
277
|
-
// On a vertical pipe a tag below the diamond would sit on the pipe itself.
|
|
278
|
-
if (orient === 'v') shapes.push(text(tagSide === 'right' ? x + 10 : x - 10, y + 2.5, id, { size: 7, anchor: tagSide === 'right' ? 'start' : 'end' }));
|
|
279
|
-
else shapes.push(text(x, y + 18, id, { size: 7, anchor: 'middle' }));
|
|
280
|
-
return id;
|
|
281
|
-
},
|
|
282
|
-
// Angle body: an inlet triangle and an outlet triangle meet at (x, y), each
|
|
283
|
-
// with a 3-unit stem, so pipes connect 10 from the center: inlet below
|
|
284
|
-
// (x, y + 10) and outlet right (x + 10, y) by default. The spring rises
|
|
285
|
-
// opposite the inlet; the tag and set pressure sit opposite the outlet.
|
|
286
|
-
psv(tag, x, y, set, opts2 = {}) {
|
|
287
|
-
const DIRS = { right: [1, 0], left: [-1, 0], up: [0, -1], down: [0, 1] };
|
|
288
|
-
const outlet = opts2.outlet ?? 'right';
|
|
289
|
-
const inlet = opts2.inlet ?? (outlet === 'left' || outlet === 'right' ? 'down' : 'left');
|
|
290
|
-
const o = DIRS[outlet];
|
|
291
|
-
const n = DIRS[inlet];
|
|
292
|
-
if (!o || !n || o[0] * n[0] + o[1] * n[1] !== 0) {
|
|
293
|
-
throw new Error(`psv ${tag}: inlet ${inlet} and outlet ${outlet} must be at right angles`);
|
|
294
|
-
}
|
|
295
|
-
kinds.add('psv');
|
|
296
|
-
marks.push(comment(`symbol kind=psv id=${tag} inlet=${inlet} outlet=${outlet}`));
|
|
297
|
-
const at = (v, d, w = [0, 0], e = 0) => [x + v[0] * d + w[0] * e, y + v[1] * d + w[1] * e].map((c) => Math.round(c * 100) / 100 + 0);
|
|
298
|
-
const P = (pt) => `${pt[0]} ${pt[1]}`;
|
|
299
|
-
const sp = [-n[0], -n[1]];
|
|
300
|
-
shapes.push(el('path', {
|
|
301
|
-
d: `M ${x} ${y} L ${P(at(n, 7, o, 3.5))} L ${P(at(n, 7, o, -3.5))} Z M ${x} ${y} L ${P(at(o, 7, n, 3.5))} L ${P(at(o, 7, n, -3.5))} Z`,
|
|
302
|
-
fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.process,
|
|
303
|
-
}));
|
|
304
|
-
for (const v of [n, o]) {
|
|
305
|
-
const [x1, y1] = at(v, 7);
|
|
306
|
-
const [x2, y2] = at(v, 10);
|
|
307
|
-
shapes.push(el('line', { x1, y1, x2, y2, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
308
|
-
}
|
|
309
|
-
const zig = [at(sp, 3), at(sp, 4.5, o, 2.5), at(sp, 6.5, o, -2.5), at(sp, 8.5, o, 2.5), at(sp, 10.5, o, -2.5), at(sp, 12)];
|
|
310
|
-
shapes.push(el('line', { x1: x, y1: y, x2: zig[0][0], y2: zig[0][1], stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
311
|
-
shapes.push(el('path', { d: `M ${zig.map(P).join(' L ')}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
312
|
-
const t = [-o[0], -o[1]];
|
|
313
|
-
if (t[0]) {
|
|
314
|
-
const anchor = t[0] < 0 ? 'end' : 'start';
|
|
315
|
-
shapes.push(text(x + t[0] * 6, y - 4, tag, { size: 6, anchor }));
|
|
316
|
-
if (set) shapes.push(text(x + t[0] * 6, y + 3, set, { size: 6, anchor }));
|
|
317
|
-
} else if (t[1] > 0) {
|
|
318
|
-
shapes.push(text(x, y + 10, tag, { size: 6, anchor: 'middle' }));
|
|
319
|
-
if (set) shapes.push(text(x, y + 17, set, { size: 6, anchor: 'middle' }));
|
|
320
|
-
} else {
|
|
321
|
-
shapes.push(text(x, y - 13, tag, { size: 6, anchor: 'middle' }));
|
|
322
|
-
if (set) shapes.push(text(x, y - 6, set, { size: 6, anchor: 'middle' }));
|
|
323
|
-
}
|
|
324
|
-
return tag;
|
|
325
|
-
},
|
|
326
|
-
orifice(id, x, y) {
|
|
327
|
-
kinds.add('orifice');
|
|
328
|
-
marks.push(comment(`symbol kind=orifice id=${id}`));
|
|
329
|
-
shapes.push(el('line', { x1: x, y1: y - 9, x2: x, y2: y - 5, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
330
|
-
shapes.push(el('line', { x1: x, y1: y + 5, x2: x, y2: y + 9, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
331
|
-
shapes.push(el('line', { x1: x - 2, y1: y - 5, x2: x - 2, y2: y + 5, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
332
|
-
shapes.push(el('line', { x1: x + 2, y1: y - 5, x2: x + 2, y2: y + 5, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
333
|
-
shapes.push(text(x + 5, y + 2, id, { size: 6 }));
|
|
334
|
-
return id;
|
|
335
|
-
},
|
|
336
|
-
instrument(tag, x, y, opts2 = {}) {
|
|
337
|
-
const dcs = opts2.dcs === true;
|
|
338
|
-
const kind = dcs ? 'instrument.dcs' : 'instrument';
|
|
339
|
-
kinds.add(kind);
|
|
340
|
-
marks.push(comment(`symbol kind=${kind} id=${tag}`));
|
|
341
|
-
marks.push(comment(`tag ${tag}`));
|
|
342
|
-
const letters = String(tag).split('-')[0] ?? '';
|
|
343
|
-
const number = String(tag).split('-').slice(1).join('-');
|
|
344
|
-
if (!instruments.has(letters)) instruments.set(letters, tag);
|
|
345
|
-
const r = Math.max(9, 3.4 * Math.max(letters.length, number.length) + 3);
|
|
346
|
-
if (dcs) {
|
|
347
|
-
shapes.push(el('rect', { x: x - r, y: y - r, width: r * 2, height: r * 2, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
348
|
-
shapes.push(el('line', { x1: x - r, y1: y, x2: x + r, y2: y, stroke: INK, 'stroke-width': WEIGHTS.signal }));
|
|
349
|
-
} else {
|
|
350
|
-
shapes.push(el('circle', { cx: x, cy: y, r, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
351
|
-
}
|
|
352
|
-
shapes.push(text(x, y - 1, letters, { size: 6, anchor: 'middle' }));
|
|
353
|
-
shapes.push(text(x, y + 7, number, { size: 6, anchor: 'middle' }));
|
|
354
|
-
// The bubble already reads as the tag (letters over number), so no second
|
|
355
|
-
// tag is printed beside it. The old `tag` placement option is accepted and ignored.
|
|
356
|
-
return tag;
|
|
357
|
-
},
|
|
358
|
-
offpage(label, x, y, dir = 'out', w = 22) {
|
|
359
|
-
kinds.add('offpage');
|
|
360
|
-
marks.push(comment(`symbol kind=offpage id=${label}`));
|
|
361
|
-
// The connector always fits its text: a long destination name widens the box
|
|
362
|
-
// instead of overflowing into the legend. Estimate 3.7 units per character at
|
|
363
|
-
// 6 pt plus padding; an explicit wider box is kept.
|
|
364
|
-
w = Math.max(w, Math.ceil(String(label).length * 3.7) + 8);
|
|
365
|
-
const d = dir === 'in'
|
|
366
|
-
? `M ${x + w} ${y - 6} L ${x + 6} ${y - 6} L ${x} ${y} L ${x + 6} ${y + 6} L ${x + w} ${y + 6} Z`
|
|
367
|
-
: `M ${x} ${y - 6} L ${x + w - 6} ${y - 6} L ${x + w} ${y} L ${x + w - 6} ${y + 6} L ${x} ${y + 6} Z`;
|
|
368
|
-
shapes.push(el('path', { d, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
369
|
-
shapes.push(text(w > 30 ? x + w / 2 : dir === 'in' ? x + 11 : x + 2, y + 2, label, { size: 6, anchor: w > 30 || dir === 'in' ? 'middle' : 'start' }));
|
|
370
|
-
return label;
|
|
371
|
-
},
|
|
372
|
-
drain(x, y) {
|
|
373
|
-
kinds.add('drain');
|
|
374
|
-
marks.push(comment('symbol kind=drain id=DR'));
|
|
375
|
-
shapes.push(el('line', { x1: x, y1: y, x2: x, y2: y + 5, stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
376
|
-
shapes.push(el('path', { d: `M ${x - 4} ${y + 5} L ${x + 4} ${y + 5} L ${x} ${y + 11} Z`, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
377
|
-
shapes.push(text(x + 6, y + 11, 'DR', { size: 6 }));
|
|
378
|
-
return 'DR';
|
|
379
|
-
},
|
|
380
|
-
vent(x, y) {
|
|
381
|
-
kinds.add('vent');
|
|
382
|
-
marks.push(comment(`symbol kind=vent id=ATM at=${x},${y}`));
|
|
383
|
-
shapes.push(el('path', { d: `M ${x} ${y} L ${x} ${y - 8} A 5 5 0 0 1 ${x + 10} ${y - 8} L ${x + 10} ${y - 2}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
384
|
-
// The label sits left of the vent pipe so it never touches the arc.
|
|
385
|
-
shapes.push(text(x - 5, y - 1, 'ATM', { size: 6, anchor: 'end' }));
|
|
386
|
-
return 'ATM';
|
|
387
|
-
},
|
|
388
|
-
pipe(points, opts2 = {}) {
|
|
389
|
-
const id = `L${lines.size + 1}`;
|
|
390
|
-
const cls = opts2.cls ?? 'process';
|
|
391
|
-
marks.push(comment(`line class=${cls} w=${WEIGHTS[cls]}`));
|
|
392
|
-
lineClasses.add(cls);
|
|
393
|
-
if (opts2.number) marks.push(comment(`linenumber line=${opts2.number}`));
|
|
394
|
-
const routed = route(points);
|
|
395
|
-
shapes.push(el('polyline', { points: poly(routed), fill: 'none', stroke: INK, 'stroke-width': WEIGHTS[cls] }));
|
|
396
|
-
if (opts2.number) {
|
|
397
|
-
const label = labelAt(routed, opts2.number, opts2.at ?? 0.5);
|
|
398
|
-
if (label) shapes.push(label);
|
|
399
|
-
}
|
|
400
|
-
lines.set(id, points);
|
|
401
|
-
return id;
|
|
402
|
-
},
|
|
403
|
-
signal(points, kind = 'electric') {
|
|
404
|
-
const id = `S${lines.size + 1}`;
|
|
405
|
-
lineClasses.add('signal');
|
|
406
|
-
marks.push(comment(`line class=signal w=${WEIGHTS.signal} kind=${kind}`));
|
|
407
|
-
shapes.push(el('polyline', {
|
|
408
|
-
points: poly(route(points)), fill: 'none', stroke: INK,
|
|
409
|
-
'stroke-width': WEIGHTS.signal, 'stroke-dasharray': kind === 'pneumatic' ? '3,1' : '6,2,1,2',
|
|
410
|
-
}));
|
|
411
|
-
lines.set(id, points);
|
|
412
|
-
return id;
|
|
413
|
-
},
|
|
414
|
-
inline(lineId, kind, id, at = 0.5) {
|
|
415
|
-
const pts = lines.get(lineId) ?? [[0, 0], [10, 0]];
|
|
416
|
-
const [x1, y1] = pts[0];
|
|
417
|
-
const [x2, y2] = pts[pts.length - 1];
|
|
418
|
-
return api.add(kind, id, x1 + (x2 - x1) * at, y1 + (y2 - y1) * at, id);
|
|
419
|
-
},
|
|
420
|
-
valve(body, actuator, id, x, y, fail = 'FC', orient = 'h', tagSide = 'left') {
|
|
421
|
-
kinds.add(`valve.${body}.${actuator}`);
|
|
422
|
-
marks.push(comment(`symbol kind=valve.${body}.${actuator} id=${id} fail=${fail}`));
|
|
423
|
-
const v = orient === 'v';
|
|
424
|
-
const bow = v
|
|
425
|
-
? `M ${x - 4} ${y - 5} L ${x} ${y} L ${x + 4} ${y - 5} M ${x - 4} ${y + 5} L ${x} ${y} L ${x + 4} ${y + 5}`
|
|
426
|
-
: `M ${x - 5} ${y - 4} L ${x} ${y} L ${x - 5} ${y + 4} M ${x + 5} ${y - 4} L ${x} ${y} L ${x + 5} ${y + 4}`;
|
|
427
|
-
if (body === 'check') {
|
|
428
|
-
shapes.push(el('path', { d: v ? `M ${x - 4} ${y - 5} L ${x} ${y + 2} L ${x + 4} ${y - 5}` : `M ${x - 5} ${y - 4} L ${x + 2} ${y} L ${x - 5} ${y + 4}`, fill: INK }));
|
|
429
|
-
shapes.push(el('line', v
|
|
430
|
-
? { x1: x - 4, y1: y - 5, x2: x + 4, y2: y - 5, stroke: INK, 'stroke-width': WEIGHTS.process }
|
|
431
|
-
: { x1: x + 2, y1: y - 4, x2: x + 2, y2: y + 4, stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
432
|
-
} else {
|
|
433
|
-
shapes.push(el('path', { d: bow, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
434
|
-
// The globe reads apart from the gate by its filled seat dot, drawn large
|
|
435
|
-
// enough to survive at print scale; the gate stays an open bow-tie.
|
|
436
|
-
if (body === 'globe') shapes.push(el('circle', { cx: x, cy: y, r: 2.6, fill: INK }));
|
|
437
|
-
if (body === 'ball') shapes.push(el('circle', { cx: x, cy: y, r: 1.6, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
438
|
-
}
|
|
439
|
-
if (body !== 'check') {
|
|
440
|
-
if (actuator === 'hand') {
|
|
441
|
-
shapes.push(el('line', v ? { x1: x, y1: y, x2: x + 8, y2: y, stroke: INK, 'stroke-width': WEIGHTS.utility } : { x1: x, y1: y, x2: x, y2: y - 9, stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
442
|
-
shapes.push(el('line', v ? { x1: x + 8, y1: y - 3, x2: x + 8, y2: y + 3, stroke: INK, 'stroke-width': WEIGHTS.utility } : { x1: x - 4, y1: y - 9, x2: x + 4, y2: y - 9, stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
443
|
-
} else if (actuator === 'pneumatic') {
|
|
444
|
-
shapes.push(el('path', { d: v ? `M ${x} ${y} L ${x + 8} ${y} M ${x + 4} ${y} A 4 4 0 0 1 ${x + 12} ${y}` : `M ${x} ${y} L ${x} ${y - 6} M ${x - 4} ${y - 6} A 4 4 0 0 1 ${x + 4} ${y - 6}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
445
|
-
} else if (actuator === 'motor') {
|
|
446
|
-
shapes.push(el('circle', { cx: v ? x + 9 : x, cy: v ? y : y - 10, r: 3.4, fill: '#fff', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
447
|
-
shapes.push(text(v ? x + 9 : x, (v ? y : y - 10) + 2, 'M', { size: 6, anchor: 'middle' }));
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
if (body !== 'check' || fail !== 'FC') shapes.push(text(x + 8, y - 6, fail, { size: 6 }));
|
|
451
|
-
// On a vertical pipe a tag below the body would sit on the pipe, so it goes
|
|
452
|
-
// beside it: left by default, or right past the actuator (and fail letters).
|
|
453
|
-
if (v && tagSide === 'right') shapes.push(text(x + (body === 'check' ? 7 : 15), y + 2.5, id, { size: 7, anchor: 'start' }));
|
|
454
|
-
else if (v) shapes.push(text(x - 7, y + 2.5, id, { size: 7, anchor: 'end' }));
|
|
455
|
-
else shapes.push(text(x - 6, y + 14, id, { size: 7, anchor: 'middle' }));
|
|
456
|
-
return id;
|
|
457
|
-
},
|
|
458
|
-
// An open chevron with its tip at (x, y), pointing the way the flow runs.
|
|
459
|
-
arrow(x, y, clear = true, dir = 'right') {
|
|
460
|
-
const wings = {
|
|
461
|
-
right: [[-4, -2], [-4, 2]], left: [[4, -2], [4, 2]],
|
|
462
|
-
up: [[-2, 4], [2, 4]], down: [[-2, -4], [2, -4]],
|
|
463
|
-
}[dir];
|
|
464
|
-
if (!wings) throw new Error(`arrow direction ${dir} is not right, left, up or down`);
|
|
465
|
-
marks.push(comment(`arrow at=${x},${y} clear=${clear ? 'true' : 'false'} dir=${dir}`));
|
|
466
|
-
const [[ax, ay], [bx, by]] = wings;
|
|
467
|
-
shapes.push(el('path', { d: `M ${x + ax} ${y + ay} L ${x} ${y} L ${x + bx} ${y + by}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.process }));
|
|
468
|
-
},
|
|
469
|
-
hop(x, y, r = 1.5) {
|
|
470
|
-
marks.push(comment(`hop r=${r}`));
|
|
471
|
-
shapes.push(el('path', { d: `M ${x - r} ${y} A ${r} ${r} 0 0 1 ${x + r} ${y}`, fill: 'none', stroke: INK, 'stroke-width': WEIGHTS.utility }));
|
|
472
|
-
},
|
|
473
|
-
callout(partText, x, y, spacing = 1.4) {
|
|
474
|
-
marks.push(comment(`leader spacing=${spacing} part=${partText}`));
|
|
475
|
-
shapes.push(el('circle', { cx: x, cy: y, r: 0.9, fill: INK }));
|
|
476
|
-
shapes.push(text(x + 4, y + 2, partText, { size: 6 }));
|
|
477
|
-
},
|
|
478
|
-
equipmentInfo(tag, info) {
|
|
479
|
-
equipment.push([tag, info]);
|
|
480
|
-
return tag;
|
|
481
|
-
},
|
|
482
|
-
notes(list) {
|
|
483
|
-
for (const item of list ?? []) notes.push(String(item));
|
|
484
|
-
return notes.length;
|
|
485
|
-
},
|
|
486
|
-
legend() {
|
|
487
|
-
for (const kind of [...kinds].sort()) marks.push(comment(`legend kind=${kind}`));
|
|
488
|
-
return kinds.size;
|
|
489
|
-
},
|
|
490
|
-
toSVG() {
|
|
491
|
-
return doc({ width: SHEET_W, height: SHEET_H, title: `${tb.plant} ${tb.unit} ${tb.sheetNo}` }, `${marks.join('\n')}\n${frame()}\n${band()}\n${shapes.join('\n')}\n${legendPanel()}\n${titleBlock()}`);
|
|
492
|
-
},
|
|
493
|
-
};
|
|
494
|
-
return api;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
export { material };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export function esc(s) {
|
|
2
|
-
return String(s)
|
|
3
|
-
.replace(/&/g, '&')
|
|
4
|
-
.replace(/</g, '<')
|
|
5
|
-
.replace(/>/g, '>')
|
|
6
|
-
.replace(/"/g, '"');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function attrs(o) {
|
|
10
|
-
return Object.entries(o)
|
|
11
|
-
.filter(([, v]) => v !== undefined && v !== null)
|
|
12
|
-
.map(([k, v]) => ` ${k}="${esc(v)}"`)
|
|
13
|
-
.join('');
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function el(name, attributes = {}, children = '') {
|
|
17
|
-
const a = attrs(attributes);
|
|
18
|
-
if (children === '' || children === null) return `<${name}${a}/>`;
|
|
19
|
-
return `<${name}${a}>${children}</${name}>`;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function text(x, y, s, opts = {}) {
|
|
23
|
-
return el('text', {
|
|
24
|
-
x, y, 'font-size': opts.size ?? 7, 'font-family': opts.font ?? 'Arial, sans-serif',
|
|
25
|
-
fill: opts.fill ?? '#111', 'text-anchor': opts.anchor ?? 'start',
|
|
26
|
-
'data-clear': opts.clear === false ? undefined : 'true',
|
|
27
|
-
}, esc(s));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function doc({ width = 420, height = 297, title = 'drawing' }, body) {
|
|
31
|
-
const ground = `<rect x="0" y="0" width="${width}" height="${height}" fill="#ffffff"/>`;
|
|
32
|
-
return `<?xml version="1.0" encoding="UTF-8"?>\n` +
|
|
33
|
-
`<svg xmlns="http://www.w3.org/2000/svg" width="${width}mm" height="${height}mm" ` +
|
|
34
|
-
`viewBox="0 0 ${width} ${height}" data-sheet="A3" data-title="${esc(title)}">\n${ground}\n${body}\n</svg>\n`;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function comment(s) {
|
|
38
|
-
return `<!-- ${s} -->`;
|
|
39
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export const WEIGHTS = {
|
|
2
|
-
process: 0.7,
|
|
3
|
-
utility: 0.5,
|
|
4
|
-
signal: 0.35,
|
|
5
|
-
leader: 0.18,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export const ALLOWED_WIDTHS = new Set([0.7, 0.5, 0.35, 0.18]);
|
|
9
|
-
|
|
10
|
-
export const MATERIAL = {
|
|
11
|
-
'painted-steel': { fill: '#5b7fa6', stroke: '#2e4a62' },
|
|
12
|
-
stainless: { fill: '#b9c2c9', stroke: '#6d757c' },
|
|
13
|
-
copper: { fill: '#c47b4a', stroke: '#7d4a24' },
|
|
14
|
-
brass: { fill: '#c9a227', stroke: '#7a5f14' },
|
|
15
|
-
'cast-iron': { fill: '#55565a', stroke: '#2b2b2e' },
|
|
16
|
-
concrete: { fill: '#c9c5bb', stroke: '#8a867c' },
|
|
17
|
-
glass: { fill: '#cfe3ea', stroke: '#7fa3b0' },
|
|
18
|
-
quiet: { fill: '#9aa0a6', stroke: '#5f6368' },
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const STREAMS = ['#0072b2', '#d55e00', '#009e73', '#cc79a7', '#f0e442', '#56b4e9'];
|
|
22
|
-
|
|
23
|
-
export function material(name) {
|
|
24
|
-
return MATERIAL[name] ?? MATERIAL['painted-steel'];
|
|
25
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { findOnPath } from '../../../lib/host-process.mjs';
|
|
2
|
-
|
|
3
|
-
const args = process.argv.slice(2);
|
|
4
|
-
if (!findOnPath('ffmpeg') || !findOnPath('img2webp')) {
|
|
5
|
-
console.log('ENCODER_REQUIRED: install ffmpeg and libwebp (brew install ffmpeg webp), then rerun');
|
|
6
|
-
process.exit(14);
|
|
7
|
-
}
|
|
8
|
-
console.log(`motion loop source: ${args[0] ?? '(missing scene)'} -> ${args[args.indexOf('--out') + 1] ?? '(missing out)'}`);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { runQA, CODES } from './lib/qa-core.mjs';
|
|
3
|
-
|
|
4
|
-
const args = process.argv.slice(2);
|
|
5
|
-
if (args.includes('--codes')) {
|
|
6
|
-
console.log(CODES.join('\n'));
|
|
7
|
-
process.exit(0);
|
|
8
|
-
}
|
|
9
|
-
const file = args.find((a) => !a.startsWith('-'));
|
|
10
|
-
if (!file) {
|
|
11
|
-
console.error('usage: qa.mjs drawing.svg [--png f.png --pdf f.pdf]');
|
|
12
|
-
process.exit(2);
|
|
13
|
-
}
|
|
14
|
-
const svg = readFileSync(file, 'utf8');
|
|
15
|
-
const { pass, fails } = runQA(svg);
|
|
16
|
-
if (pass) {
|
|
17
|
-
console.log('QA PASS');
|
|
18
|
-
} else {
|
|
19
|
-
for (const f of fails) console.log(`QA FAIL ${f.code}: ${f.msg}`);
|
|
20
|
-
process.exit(1);
|
|
21
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { firstLine } from '../../../lib/host-process.mjs';
|
|
3
|
-
|
|
4
|
-
const args = process.argv.slice(2);
|
|
5
|
-
const file = args[0];
|
|
6
|
-
const pngI = args.indexOf('--png');
|
|
7
|
-
const pdfI = args.indexOf('--pdf');
|
|
8
|
-
const dpiI = args.indexOf('--dpi');
|
|
9
|
-
const png = pngI >= 0 ? args[pngI + 1] : null;
|
|
10
|
-
const pdf = pdfI >= 0 ? args[pdfI + 1] : null;
|
|
11
|
-
const dpi = dpiI >= 0 ? args[dpiI + 1] : '600';
|
|
12
|
-
if (!file) {
|
|
13
|
-
console.error('usage: render.mjs drawing.svg --png out.png --dpi 600 --pdf out.pdf');
|
|
14
|
-
process.exit(2);
|
|
15
|
-
}
|
|
16
|
-
const has = (bin) => spawnSync('which', [bin]).status === 0;
|
|
17
|
-
function run(bin, binArgs, label) {
|
|
18
|
-
const r = spawnSync(bin, binArgs, { encoding: 'utf8' });
|
|
19
|
-
if (r.status !== 0) {
|
|
20
|
-
console.log(`RENDER_INCOMPLETE ${label}: ${firstLine(r.stderr || r.stdout)}`);
|
|
21
|
-
process.exit(3);
|
|
22
|
-
}
|
|
23
|
-
console.log(`rendered ${label} at ${dpi} dpi`);
|
|
24
|
-
}
|
|
25
|
-
if (png) {
|
|
26
|
-
if (has('rsvg-convert')) run('rsvg-convert', ['-d', `${dpi}`, '-p', `${dpi}`, '-o', png, file], png);
|
|
27
|
-
else {
|
|
28
|
-
console.log(`RENDER_SKIP ${png}: rasterizer missing on this machine`);
|
|
29
|
-
process.exit(0);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (pdf) {
|
|
33
|
-
if (has('rsvg-convert')) run('rsvg-convert', ['-f', 'pdf', '-o', pdf, file], pdf);
|
|
34
|
-
else {
|
|
35
|
-
console.log(`RENDER_SKIP ${pdf}: rasterizer missing on this machine`);
|
|
36
|
-
process.exit(0);
|
|
37
|
-
}
|
|
38
|
-
}
|