@litfamily/litgravity 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +79 -11
- package/README_ko-KR.md +80 -12
- package/bin/litgravity.mjs +3 -7
- package/lib/doctor.mjs +22 -18
- package/lib/host-tools.mjs +9 -36
- package/lib/install.mjs +18 -5
- package/lib/list.mjs +8 -16
- package/lib/paths.mjs +0 -1
- package/package.json +2 -2
- package/plugin/hooks/lib/extensions.mjs +53 -0
- package/plugin/hooks/lib/reentry.mjs +6 -5
- package/plugin/hooks/lib/rewind/board.mjs +295 -0
- package/plugin/hooks/lib/rewind/brief.mjs +26 -18
- package/plugin/hooks/lib/rewind/collect.mjs +42 -4
- package/plugin/hooks/lib/routes.mjs +36 -11
- package/plugin/hooks/post-tool-use.mjs +0 -2
- package/plugin/hooks/pre-invocation.mjs +0 -2
- package/plugin/hooks/session-start.mjs +7 -0
- package/plugin/hooks/stop.mjs +2 -8
- package/plugin/plugin.json +1 -1
- package/plugin/skills/autoconference/SKILL.md +1 -1
- package/plugin/skills/autoconference/modes/core.md +1 -1
- package/plugin/skills/autoconference/references/visualization-guide.md +6 -6
- package/plugin/skills/autoconference/scripts/style_presets.py +6 -6
- package/plugin/skills/autoresearch/references/type-checklists.md +1 -1
- package/plugin/skills/autoresearch/references/visualization-guide.md +11 -5
- package/plugin/skills/frontend-ui-ux/SKILL.md +18 -147
- package/plugin/skills/lit-adhd/SKILL.md +45 -20
- package/plugin/skills/lit-adhd/references/card-examples.md +99 -1
- package/plugin/skills/lit-adhd/references/status-taxonomy.md +17 -8
- package/plugin/skills/lit-code/references/core/agy-surfaces-and-verification.md +1 -1
- package/plugin/skills/lit-code/references/engineering-risk-signals.md +2 -2
- package/plugin/skills/lit-diagram-drawer/SKILL.md +20 -164
- package/plugin/skills/lit-docx/SKILL.md +20 -122
- package/plugin/skills/lit-loop/SKILL.md +1 -1
- package/plugin/skills/lit-pptx/SKILL.md +18 -130
- package/plugin/skills/lit-schematic/SKILL.md +19 -98
- package/plugin/skills/lit-scientific-visualization/SKILL.md +19 -160
- package/plugin/skills/lit-typographic-motion/SKILL.md +19 -188
- package/plugin/skills/readme-studio/SKILL.md +20 -98
- package/plugin/skills/visual-qa/SKILL.md +20 -121
- package/lib/runtime.mjs +0 -81
- package/plugin/hooks/lib/motion.mjs +0 -171
- package/plugin/lib/python-pick.mjs +0 -63
- package/plugin/skills/frontend-ui-ux/ATTRIBUTION.md +0 -23
- package/plugin/skills/frontend-ui-ux/LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/PROVENANCE.json +0 -38
- package/plugin/skills/frontend-ui-ux/SOURCE-MANIFEST.json +0 -1060
- package/plugin/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -14
- package/plugin/skills/frontend-ui-ux/data/design-intelligence.json +0 -1
- package/plugin/skills/frontend-ui-ux/examples/design-contract.example.json +0 -186
- package/plugin/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +0 -9
- package/plugin/skills/frontend-ui-ux/kit/components.css +0 -417
- package/plugin/skills/frontend-ui-ux/kit/fonts.json +0 -22
- package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
- package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
- package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
- package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
- package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
- package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
- package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
- package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
- package/plugin/skills/frontend-ui-ux/kit/ui.js +0 -226
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +0 -217
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +0 -201
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +0 -873
- package/plugin/skills/frontend-ui-ux/references/adaptive-layout.md +0 -103
- package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/complete-contract.md +0 -415
- package/plugin/skills/frontend-ui-ux/references/composition.md +0 -93
- package/plugin/skills/frontend-ui-ux/references/craft-floor.md +0 -203
- package/plugin/skills/frontend-ui-ux/references/creative-directions.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -27
- package/plugin/skills/frontend-ui-ux/references/design/README.md +0 -248
- package/plugin/skills/frontend-ui-ux/references/design/_INDEX.md +0 -191
- package/plugin/skills/frontend-ui-ux/references/design/airbnb.md +0 -393
- package/plugin/skills/frontend-ui-ux/references/design/airtable.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/design/apple.md +0 -250
- package/plugin/skills/frontend-ui-ux/references/design/aside.md +0 -209
- package/plugin/skills/frontend-ui-ux/references/design/binance.md +0 -348
- package/plugin/skills/frontend-ui-ux/references/design/bmw.md +0 -183
- package/plugin/skills/frontend-ui-ux/references/design/brutalist-skill.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/design/bugatti.md +0 -271
- package/plugin/skills/frontend-ui-ux/references/design/cal.md +0 -262
- package/plugin/skills/frontend-ui-ux/references/design/claude.md +0 -315
- package/plugin/skills/frontend-ui-ux/references/design/clay.md +0 -307
- package/plugin/skills/frontend-ui-ux/references/design/clickhouse.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/clone-from-url.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/design/cohere.md +0 -269
- package/plugin/skills/frontend-ui-ux/references/design/coinbase.md +0 -132
- package/plugin/skills/frontend-ui-ux/references/design/composio.md +0 -310
- package/plugin/skills/frontend-ui-ux/references/design/cursor.md +0 -312
- package/plugin/skills/frontend-ui-ux/references/design/design-system-architecture.md +0 -244
- package/plugin/skills/frontend-ui-ux/references/design/elevenlabs.md +0 -268
- package/plugin/skills/frontend-ui-ux/references/design/expo.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/ferrari.md +0 -317
- package/plugin/skills/frontend-ui-ux/references/design/figma.md +0 -223
- package/plugin/skills/frontend-ui-ux/references/design/framer.md +0 -249
- package/plugin/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +0 -74
- package/plugin/skills/frontend-ui-ux/references/design/hashicorp.md +0 -281
- package/plugin/skills/frontend-ui-ux/references/design/ibm.md +0 -335
- package/plugin/skills/frontend-ui-ux/references/design/image-to-code-skill.md +0 -1228
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +0 -798
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +0 -1465
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +0 -987
- package/plugin/skills/frontend-ui-ux/references/design/intercom.md +0 -149
- package/plugin/skills/frontend-ui-ux/references/design/kraken.md +0 -128
- package/plugin/skills/frontend-ui-ux/references/design/lamborghini.md +0 -291
- package/plugin/skills/frontend-ui-ux/references/design/layout-skill.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/design/lazyweb.md +0 -77
- package/plugin/skills/frontend-ui-ux/references/design/linear.app.md +0 -370
- package/plugin/skills/frontend-ui-ux/references/design/lovable.md +0 -301
- package/plugin/skills/frontend-ui-ux/references/design/mastercard.md +0 -368
- package/plugin/skills/frontend-ui-ux/references/design/meta.md +0 -369
- package/plugin/skills/frontend-ui-ux/references/design/minimalist-skill.md +0 -85
- package/plugin/skills/frontend-ui-ux/references/design/minimax.md +0 -260
- package/plugin/skills/frontend-ui-ux/references/design/mintlify.md +0 -329
- package/plugin/skills/frontend-ui-ux/references/design/miro.md +0 -111
- package/plugin/skills/frontend-ui-ux/references/design/mistral.ai.md +0 -264
- package/plugin/skills/frontend-ui-ux/references/design/mongodb.md +0 -269
- package/plugin/skills/frontend-ui-ux/references/design/nike.md +0 -366
- package/plugin/skills/frontend-ui-ux/references/design/notion.md +0 -312
- package/plugin/skills/frontend-ui-ux/references/design/nvidia.md +0 -296
- package/plugin/skills/frontend-ui-ux/references/design/ollama.md +0 -270
- package/plugin/skills/frontend-ui-ux/references/design/opencode.ai.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/output-skill.md +0 -49
- package/plugin/skills/frontend-ui-ux/references/design/pinterest.md +0 -233
- package/plugin/skills/frontend-ui-ux/references/design/playstation.md +0 -367
- package/plugin/skills/frontend-ui-ux/references/design/posthog.md +0 -259
- package/plugin/skills/frontend-ui-ux/references/design/raycast.md +0 -271
- package/plugin/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +0 -230
- package/plugin/skills/frontend-ui-ux/references/design/redesign-skill.md +0 -178
- package/plugin/skills/frontend-ui-ux/references/design/renault.md +0 -314
- package/plugin/skills/frontend-ui-ux/references/design/replicate.md +0 -264
- package/plugin/skills/frontend-ui-ux/references/design/resend.md +0 -306
- package/plugin/skills/frontend-ui-ux/references/design/revolut.md +0 -188
- package/plugin/skills/frontend-ui-ux/references/design/runwayml.md +0 -247
- package/plugin/skills/frontend-ui-ux/references/design/sanity.md +0 -360
- package/plugin/skills/frontend-ui-ux/references/design/sentry.md +0 -265
- package/plugin/skills/frontend-ui-ux/references/design/shopify.md +0 -353
- package/plugin/skills/frontend-ui-ux/references/design/soft-skill.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/design/spacex.md +0 -197
- package/plugin/skills/frontend-ui-ux/references/design/spotify.md +0 -249
- package/plugin/skills/frontend-ui-ux/references/design/starbucks.md +0 -583
- package/plugin/skills/frontend-ui-ux/references/design/stitch-design-example.md +0 -121
- package/plugin/skills/frontend-ui-ux/references/design/stitch-skill.md +0 -184
- package/plugin/skills/frontend-ui-ux/references/design/stripe.md +0 -325
- package/plugin/skills/frontend-ui-ux/references/design/supabase.md +0 -258
- package/plugin/skills/frontend-ui-ux/references/design/superhuman.md +0 -255
- package/plugin/skills/frontend-ui-ux/references/design/taste-skill.md +0 -1206
- package/plugin/skills/frontend-ui-ux/references/design/tesla.md +0 -289
- package/plugin/skills/frontend-ui-ux/references/design/theverge.md +0 -342
- package/plugin/skills/frontend-ui-ux/references/design/together.ai.md +0 -266
- package/plugin/skills/frontend-ui-ux/references/design/uber.md +0 -298
- package/plugin/skills/frontend-ui-ux/references/design/vercel.md +0 -313
- package/plugin/skills/frontend-ui-ux/references/design/vodafone.md +0 -426
- package/plugin/skills/frontend-ui-ux/references/design/voltagent.md +0 -326
- package/plugin/skills/frontend-ui-ux/references/design/warp.md +0 -256
- package/plugin/skills/frontend-ui-ux/references/design/webflow.md +0 -95
- package/plugin/skills/frontend-ui-ux/references/design/wired.md +0 -281
- package/plugin/skills/frontend-ui-ux/references/design/wise.md +0 -176
- package/plugin/skills/frontend-ui-ux/references/design/x.ai.md +0 -260
- package/plugin/skills/frontend-ui-ux/references/design/zapier.md +0 -331
- package/plugin/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +0 -97
- package/plugin/skills/frontend-ui-ux/references/designpowers/README.md +0 -48
- package/plugin/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +0 -80
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +0 -64
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +0 -83
- package/plugin/skills/frontend-ui-ux/references/designpowers/orchestration.md +0 -80
- package/plugin/skills/frontend-ui-ux/references/designpowers/routing.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +0 -132
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +0 -109
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +0 -89
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +0 -113
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +0 -121
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +0 -120
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +0 -101
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +0 -199
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +0 -125
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +0 -106
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +0 -123
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +0 -122
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +0 -75
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +0 -117
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
- package/plugin/skills/frontend-ui-ux/references/evidence-review.md +0 -119
- package/plugin/skills/frontend-ui-ux/references/house-styles.md +0 -234
- package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +0 -115
- package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +0 -48
- package/plugin/skills/frontend-ui-ux/references/motion-guide.md +0 -153
- package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +0 -101
- package/plugin/skills/frontend-ui-ux/references/perfection/README.md +0 -160
- package/plugin/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +0 -127
- package/plugin/skills/frontend-ui-ux/references/performance-delivery.md +0 -91
- package/plugin/skills/frontend-ui-ux/references/product-direction.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/production-interview.md +0 -71
- package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +0 -103
- package/plugin/skills/frontend-ui-ux/references/slop-register.md +0 -139
- package/plugin/skills/frontend-ui-ux/references/system-foundations.md +0 -90
- package/plugin/skills/frontend-ui-ux/references/taste-direction.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/README.md +0 -659
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +0 -26
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +0 -106
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +0 -35
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +0 -45
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +0 -52
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +0 -61
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +0 -51
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +0 -50
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +0 -85
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +0 -74
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +0 -100
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +0 -31
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +0 -262
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +0 -1148
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +0 -114
- package/plugin/skills/frontend-ui-ux/references/visual-language.md +0 -90
- package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -55
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +0 -306
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +0 -291
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +0 -311
- package/plugin/skills/frontend-ui-ux/scripts/chrome-driver.mjs +0 -217
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-format.mjs +0 -286
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +0 -354
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +0 -361
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +0 -313
- package/plugin/skills/frontend-ui-ux/scripts/design-data.mjs +0 -68
- package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
- package/plugin/skills/frontend-ui-ux/scripts/errors.mjs +0 -12
- package/plugin/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +0 -124
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +0 -196
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +0 -1555
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +0 -153
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +0 -57
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +0 -129
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +0 -322
- package/plugin/skills/frontend-ui-ux/scripts/json-boundary.mjs +0 -63
- package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
- package/plugin/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +0 -106
- package/plugin/skills/frontend-ui-ux/scripts/search.mjs +0 -43
- package/plugin/skills/frontend-ui-ux/scripts/source-replay.mjs +0 -153
- package/plugin/skills/frontend-ui-ux/scripts/strict-json.mjs +0 -143
- package/plugin/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -52
- package/plugin/skills/frontend-ui-ux/scripts/verify-corpus.mjs +0 -90
- package/plugin/skills/lit-diagram-drawer/NOTICE +0 -33
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
- package/plugin/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/plugin/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
- package/plugin/skills/lit-diagram-drawer/assets/icons.html +0 -231
- package/plugin/skills/lit-diagram-drawer/assets/index.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
- package/plugin/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
- package/plugin/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/references/accessibility.md +0 -37
- package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +0 -86
- package/plugin/skills/lit-diagram-drawer/references/export.md +0 -34
- package/plugin/skills/lit-diagram-drawer/references/failure-codes.md +0 -66
- package/plugin/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
- package/plugin/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
- package/plugin/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
- package/plugin/skills/lit-diagram-drawer/references/import-schema.md +0 -28
- package/plugin/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
- package/plugin/skills/lit-diagram-drawer/references/motion.md +0 -29
- package/plugin/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
- package/plugin/skills/lit-diagram-drawer/references/output-spec.md +0 -48
- package/plugin/skills/lit-diagram-drawer/references/playbooks.md +0 -67
- package/plugin/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
- package/plugin/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
- package/plugin/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
- package/plugin/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
- package/plugin/skills/lit-diagram-drawer/references/profiles.md +0 -24
- package/plugin/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
- package/plugin/skills/lit-diagram-drawer/references/style-guide.md +0 -76
- package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-bar.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-bump.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
- package/plugin/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-er.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-journey.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-layers.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-line.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-loop.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-nested.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
- package/plugin/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
- package/plugin/skills/lit-diagram-drawer/references/type-polar.md +0 -67
- package/plugin/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
- package/plugin/skills/lit-diagram-drawer/references/type-process.md +0 -58
- package/plugin/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-radar.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
- package/plugin/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
- package/plugin/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
- package/plugin/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
- package/plugin/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-state.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-tree.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-venn.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/verifier-guide.md +0 -76
- package/plugin/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
- package/plugin/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
- package/plugin/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +0 -13
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -219
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime-lock/package.json +0 -9
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime.mjs +0 -277
- package/plugin/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -25
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-model.mjs +0 -162
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-source.mjs +0 -147
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +0 -148
- package/plugin/skills/lit-diagram-drawer/scripts/export.mjs +0 -119
- package/plugin/skills/lit-diagram-drawer/scripts/import-common.mjs +0 -85
- package/plugin/skills/lit-diagram-drawer/scripts/import-drawio.mjs +0 -48
- package/plugin/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +0 -234
- package/plugin/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +0 -104
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +0 -115
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +0 -70
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +0 -178
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +0 -137
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +0 -80
- package/plugin/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
- package/plugin/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +0 -11
- package/plugin/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -85
- package/plugin/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -16
- package/plugin/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -27
- package/plugin/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
- package/plugin/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +0 -226
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -146
- package/plugin/skills/lit-docx/NOTICE +0 -35
- package/plugin/skills/lit-docx/references/build-loop.md +0 -96
- package/plugin/skills/lit-docx/references/components.md +0 -287
- package/plugin/skills/lit-docx/references/direction-step.md +0 -339
- package/plugin/skills/lit-docx/references/examples/01-report-ko.md +0 -166
- package/plugin/skills/lit-docx/references/examples/02-brief-ko.md +0 -96
- package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +0 -170
- package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +0 -141
- package/plugin/skills/lit-docx/references/examples/05-memo-en.md +0 -56
- package/plugin/skills/lit-docx/references/examples/06-journal-en.md +0 -129
- package/plugin/skills/lit-docx/references/examples/07-report-en.md +0 -123
- package/plugin/skills/lit-docx/references/examples/08-proposal-en.md +0 -122
- package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +0 -40
- package/plugin/skills/lit-docx/references/frontmatter_schema.md +0 -94
- package/plugin/skills/lit-docx/references/journal_style_spec.md +0 -89
- package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +0 -43
- package/plugin/skills/lit-docx/references/page-composition.md +0 -319
- package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
- package/plugin/skills/lit-docx/references/slop_rules.md +0 -88
- package/plugin/skills/lit-docx/references/tonalities/brief.md +0 -170
- package/plugin/skills/lit-docx/references/tonalities/journal.md +0 -173
- package/plugin/skills/lit-docx/references/tonalities/manual.md +0 -182
- package/plugin/skills/lit-docx/references/tonalities/memo.md +0 -171
- package/plugin/skills/lit-docx/references/tonalities/proposal.md +0 -181
- package/plugin/skills/lit-docx/references/tonalities/report.md +0 -199
- package/plugin/skills/lit-docx/scripts/clean_markdown.py +0 -95
- package/plugin/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1395
- package/plugin/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -301
- package/plugin/skills/lit-docx/scripts/convert_pdf.py +0 -139
- package/plugin/skills/lit-docx/scripts/docx_design.py +0 -2449
- package/plugin/skills/lit-docx/scripts/docx_layout.py +0 -959
- package/plugin/skills/lit-docx/scripts/edit_docx.py +0 -306
- package/plugin/skills/lit-docx/scripts/embed_images.py +0 -78
- package/plugin/skills/lit-docx/scripts/generate_docx_templates.py +0 -500
- package/plugin/skills/lit-docx/scripts/pdf_fonts.py +0 -83
- package/plugin/skills/lit-docx/scripts/qa_docx.py +0 -234
- package/plugin/skills/lit-docx/scripts/slop_lint.py +0 -573
- package/plugin/skills/lit-docx/scripts/visual_audit.py +0 -48
- package/plugin/skills/lit-docx/templates/docx/acs.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/elsevier.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/ieee.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/nature.docx +0 -0
- package/plugin/skills/lit-docx/templates/latex/acs/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/acs/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +0 -42
- package/plugin/skills/lit-docx/templates/latex/ieee/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/nature/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/nature/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/registry.yaml +0 -1366
- package/plugin/skills/lit-docx/templates/tonalities/brief.yaml +0 -28
- package/plugin/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
- package/plugin/skills/lit-docx/templates/tonalities/manual.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/report.yaml +0 -26
- package/plugin/skills/lit-pptx/NOTICE +0 -35
- package/plugin/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
- package/plugin/skills/lit-pptx/assets/azure/circle-md.png +0 -0
- package/plugin/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-a.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-b.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-c.png +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/OFL.txt +0 -94
- package/plugin/skills/lit-pptx/fonts/a2z/SOURCE.md +0 -29
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
- package/plugin/skills/lit-pptx/fonts/pretendard/OFL.txt +0 -94
- package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/provenance.json +0 -109
- package/plugin/skills/lit-pptx/references/agents/analyst.md +0 -49
- package/plugin/skills/lit-pptx/references/agents/antithesis.md +0 -59
- package/plugin/skills/lit-pptx/references/agents/architect.md +0 -44
- package/plugin/skills/lit-pptx/references/agents/critic.md +0 -42
- package/plugin/skills/lit-pptx/references/agents/synthesizer.md +0 -47
- package/plugin/skills/lit-pptx/references/agents/thesis.md +0 -33
- package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +0 -131
- package/plugin/skills/lit-pptx/references/authoring-guide.md +0 -250
- package/plugin/skills/lit-pptx/references/build-loop.md +0 -117
- package/plugin/skills/lit-pptx/references/consensus-protocol.md +0 -125
- package/plugin/skills/lit-pptx/references/data-display-cookbook.md +0 -52
- package/plugin/skills/lit-pptx/references/density-and-fill.md +0 -163
- package/plugin/skills/lit-pptx/references/design-system-azure.md +0 -61
- package/plugin/skills/lit-pptx/references/direction-step.md +0 -203
- package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +0 -210
- package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +0 -147
- package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +0 -199
- package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +0 -203
- package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +0 -178
- package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +0 -199
- package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +0 -194
- package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +0 -175
- package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +0 -204
- package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +0 -179
- package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +0 -164
- package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +0 -174
- package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +0 -173
- package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +0 -154
- package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +0 -139
- package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +0 -158
- package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +0 -179
- package/plugin/skills/lit-pptx/references/interview-protocol.md +0 -113
- package/plugin/skills/lit-pptx/references/layout-families.md +0 -194
- package/plugin/skills/lit-pptx/references/stages/autopilot.md +0 -48
- package/plugin/skills/lit-pptx/references/stages/interview.md +0 -52
- package/plugin/skills/lit-pptx/references/stages/plan.md +0 -42
- package/plugin/skills/lit-pptx/references/title-treatments.md +0 -113
- package/plugin/skills/lit-pptx/references/tonalities/atlas.md +0 -139
- package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +0 -140
- package/plugin/skills/lit-pptx/references/tonalities/chalk.md +0 -148
- package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -150
- package/plugin/skills/lit-pptx/references/tonalities/gazette.md +0 -149
- package/plugin/skills/lit-pptx/references/tonalities/ledger.md +0 -149
- package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -161
- package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +0 -144
- package/plugin/skills/lit-pptx/references/tonalities/night.md +0 -147
- package/plugin/skills/lit-pptx/references/tonalities/paper.md +0 -151
- package/plugin/skills/lit-pptx/references/tonalities/riso.md +0 -137
- package/plugin/skills/lit-pptx/references/tonalities/signal.md +0 -150
- package/plugin/skills/lit-pptx/references/tonalities/studio.md +0 -131
- package/plugin/skills/lit-pptx/scripts/compile-deck.js +0 -462
- package/plugin/skills/lit-pptx/scripts/craft_extras.py +0 -1077
- package/plugin/skills/lit-pptx/scripts/deck_craft.py +0 -363
- package/plugin/skills/lit-pptx/scripts/embed_fonts.py +0 -227
- package/plugin/skills/lit-pptx/scripts/forbidden-terms.json +0 -55
- package/plugin/skills/lit-pptx/scripts/layout_inventory.py +0 -418
- package/plugin/skills/lit-pptx/scripts/learn_template.py +0 -446
- package/plugin/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
- package/plugin/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
- package/plugin/skills/lit-pptx/scripts/lib/font-map.js +0 -79
- package/plugin/skills/lit-pptx/scripts/lib/gen-bg.js +0 -86
- package/plugin/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -37
- package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -512
- package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
- package/plugin/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -356
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2240
- package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +0 -3366
- package/plugin/skills/lit-pptx/scripts/lib/runtime-require.js +0 -28
- package/plugin/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
- package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
- package/plugin/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
- package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package-lock.json +0 -793
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package.json +0 -12
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/requirements.lock +0 -15
- package/plugin/skills/lit-pptx/scripts/office-runtime.mjs +0 -279
- package/plugin/skills/lit-pptx/scripts/office_data.py +0 -493
- package/plugin/skills/lit-pptx/scripts/office_runtime_bootstrap.py +0 -73
- package/plugin/skills/lit-pptx/scripts/ooxml_integrity.py +0 -199
- package/plugin/skills/lit-pptx/scripts/package.json +0 -4
- package/plugin/skills/lit-pptx/scripts/qa_deck.py +0 -795
- package/plugin/skills/lit-pptx/scripts/render_pages.py +0 -147
- package/plugin/skills/lit-pptx/scripts/validate_pptx.py +0 -230
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -214
- package/plugin/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
- package/plugin/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
- package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +0 -382
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -475
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
- package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -92
- package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
- package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -97
- package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -93
- package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -94
- package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
- package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -93
- package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -98
- package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -94
- package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -92
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -38
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -133
- package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -87
- package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -85
- package/plugin/skills/lit-schematic/references/cutaway-outputs.md +0 -70
- package/plugin/skills/lit-schematic/references/isometric-craft.md +0 -101
- package/plugin/skills/lit-schematic/references/journal-figures.md +0 -72
- package/plugin/skills/lit-schematic/references/kit-api.md +0 -134
- package/plugin/skills/lit-schematic/references/pfd-and-layout.md +0 -53
- package/plugin/skills/lit-schematic/references/pid-drafting.md +0 -103
- package/plugin/skills/lit-schematic/references/pid-symbols.md +0 -163
- package/plugin/skills/lit-schematic/references/verification.md +0 -100
- package/plugin/skills/lit-schematic/scripts/doctor.mjs +0 -57
- package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +0 -81
- package/plugin/skills/lit-schematic/scripts/lib/fonts.mjs +0 -27
- package/plugin/skills/lit-schematic/scripts/lib/geom.mjs +0 -113
- package/plugin/skills/lit-schematic/scripts/lib/interactive.mjs +0 -292
- package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +0 -115
- package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +0 -719
- package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -162
- package/plugin/skills/lit-schematic/scripts/lib/pid.mjs +0 -937
- package/plugin/skills/lit-schematic/scripts/lib/png.mjs +0 -132
- package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -658
- package/plugin/skills/lit-schematic/scripts/lib/route.mjs +0 -218
- package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +0 -890
- package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +0 -82
- package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +0 -115
- package/plugin/skills/lit-schematic/scripts/motion.mjs +0 -129
- package/plugin/skills/lit-schematic/scripts/qa.mjs +0 -92
- package/plugin/skills/lit-schematic/scripts/render.mjs +0 -233
- package/plugin/skills/lit-schematic/scripts/scaffold.mjs +0 -60
- package/plugin/skills/lit-scientific-visualization/LICENSE +0 -21
- package/plugin/skills/lit-scientific-visualization/assets/color_palettes.py +0 -197
- package/plugin/skills/lit-scientific-visualization/assets/nature.mplstyle +0 -75
- package/plugin/skills/lit-scientific-visualization/assets/presentation.mplstyle +0 -74
- package/plugin/skills/lit-scientific-visualization/assets/publication.mplstyle +0 -78
- package/plugin/skills/lit-scientific-visualization/evals/evals.json +0 -158
- package/plugin/skills/lit-scientific-visualization/references/canonical-workflow.md +0 -278
- package/plugin/skills/lit-scientific-visualization/references/color_palettes.md +0 -380
- package/plugin/skills/lit-scientific-visualization/references/journal_requirements.md +0 -359
- package/plugin/skills/lit-scientific-visualization/references/matplotlib_examples.md +0 -608
- package/plugin/skills/lit-scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
- package/plugin/skills/lit-scientific-visualization/references/publication_guidelines.md +0 -217
- package/plugin/skills/lit-scientific-visualization/references/seaborn_for_publications.md +0 -293
- package/plugin/skills/lit-scientific-visualization/scripts/figure_export.py +0 -238
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime-requirements.lock +0 -23
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime.mjs +0 -230
- package/plugin/skills/lit-scientific-visualization/scripts/style_presets.py +0 -467
- package/plugin/skills/lit-scientific-visualization/tests/test_figure_export.py +0 -51
- package/plugin/skills/lit-scientific-visualization/tests/test_style_presets.py +0 -114
- package/plugin/skills/lit-typographic-motion/engine/NOTICE +0 -23
- package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +0 -73
- package/plugin/skills/lit-typographic-motion/engine/audio/beat_grid.py +0 -56
- package/plugin/skills/lit-typographic-motion/engine/audio/requirements.lock +0 -1084
- package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +0 -218
- package/plugin/skills/lit-typographic-motion/engine/core/constants.mjs +0 -246
- package/plugin/skills/lit-typographic-motion/engine/core/contrast.mjs +0 -90
- package/plugin/skills/lit-typographic-motion/engine/core/events.mjs +0 -46
- package/plugin/skills/lit-typographic-motion/engine/core/flash.mjs +0 -211
- package/plugin/skills/lit-typographic-motion/engine/core/gate-rules.mjs +0 -550
- package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +0 -123
- package/plugin/skills/lit-typographic-motion/engine/core/text.mjs +0 -100
- package/plugin/skills/lit-typographic-motion/engine/core/timeline.mjs +0 -142
- package/plugin/skills/lit-typographic-motion/engine/core/util.mjs +0 -167
- package/plugin/skills/lit-typographic-motion/engine/core/voices.mjs +0 -19
- package/plugin/skills/lit-typographic-motion/engine/models/word-timing.json +0 -198
- package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +0 -172
- package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +0 -298
- package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +0 -143
- package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +0 -136
- package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +0 -164
- package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +0 -328
- package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +0 -104
- package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +0 -210
- package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +0 -347
- package/plugin/skills/lit-typographic-motion/engine/node/cover-image.mjs +0 -141
- package/plugin/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +0 -76
- package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +0 -139
- package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +0 -32
- package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +0 -385
- package/plugin/skills/lit-typographic-motion/engine/node/coverage.mjs +0 -83
- package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +0 -209
- package/plugin/skills/lit-typographic-motion/engine/node/encode.mjs +0 -105
- package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +0 -38
- package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +0 -121
- package/plugin/skills/lit-typographic-motion/engine/node/host.mjs +0 -34
- package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +0 -44
- package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +0 -178
- package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +0 -603
- package/plugin/skills/lit-typographic-motion/engine/node/png.mjs +0 -112
- package/plugin/skills/lit-typographic-motion/engine/node/report.mjs +0 -66
- package/plugin/skills/lit-typographic-motion/engine/node/runtime.mjs +0 -349
- package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +0 -210
- package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +0 -639
- package/plugin/skills/lit-typographic-motion/engine/node/session.mjs +0 -145
- package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +0 -77
- package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +0 -740
- package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +0 -180
- package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +0 -177
- package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +0 -427
- package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +0 -428
- package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +0 -572
- package/plugin/skills/lit-typographic-motion/engine/node/stills.mjs +0 -100
- package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +0 -213
- package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +0 -645
- package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +0 -146
- package/plugin/skills/lit-typographic-motion/engine/node/ws-server.mjs +0 -132
- package/plugin/skills/lit-typographic-motion/engine/package-lock.json +0 -25
- package/plugin/skills/lit-typographic-motion/engine/package.json +0 -10
- package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +0 -49
- package/plugin/skills/lit-typographic-motion/engine/stage/init.js +0 -298
- package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +0 -106
- package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +0 -162
- package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +0 -823
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +0 -21
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +0 -144
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +0 -54571
- package/plugin/skills/lit-typographic-motion/engine/web/boot.mjs +0 -123
- package/plugin/skills/lit-typographic-motion/engine/web/engine.mjs +0 -281
- package/plugin/skills/lit-typographic-motion/engine/web/gl.mjs +0 -319
- package/plugin/skills/lit-typographic-motion/engine/web/glsl-common.mjs +0 -78
- package/plugin/skills/lit-typographic-motion/engine/web/index.html +0 -6
- package/plugin/skills/lit-typographic-motion/engine/web/lines.mjs +0 -112
- package/plugin/skills/lit-typographic-motion/engine/web/passes/crt.mjs +0 -98
- package/plugin/skills/lit-typographic-motion/engine/web/passes/dither.mjs +0 -49
- package/plugin/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +0 -77
- package/plugin/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +0 -61
- package/plugin/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +0 -88
- package/plugin/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +0 -86
- package/plugin/skills/lit-typographic-motion/engine/web/post.mjs +0 -165
- package/plugin/skills/lit-typographic-motion/engine/web/scale.mjs +0 -15
- package/plugin/skills/lit-typographic-motion/engine/web/scene.mjs +0 -82
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +0 -30
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/index.mjs +0 -16
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +0 -47
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +0 -45
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +0 -29
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +0 -73
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +0 -73
- package/plugin/skills/lit-typographic-motion/engine/web/stroke.mjs +0 -236
- package/plugin/skills/lit-typographic-motion/engine/web/type.mjs +0 -180
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/manifest.json +0 -455
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/CREDITS +0 -42
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
- package/plugin/skills/lit-typographic-motion/fonts/stroke/OFL.txt +0 -91
- package/plugin/skills/lit-typographic-motion/fonts/vt323/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -139
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -27
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -18
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -30
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -152
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -97
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -202
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -100
- package/plugin/skills/lit-typographic-motion/references/brief-schema.md +0 -119
- package/plugin/skills/lit-typographic-motion/references/cover.md +0 -424
- package/plugin/skills/lit-typographic-motion/references/craft-loop.md +0 -70
- package/plugin/skills/lit-typographic-motion/references/depth.md +0 -122
- package/plugin/skills/lit-typographic-motion/references/engine-contract.md +0 -124
- package/plugin/skills/lit-typographic-motion/references/look.md +0 -122
- package/plugin/skills/lit-typographic-motion/references/runtime.md +0 -67
- package/plugin/skills/lit-typographic-motion/references/sound.md +0 -152
- package/plugin/skills/lit-typographic-motion/references/stage.md +0 -256
- package/plugin/skills/lit-typographic-motion/references/studio.md +0 -245
- package/plugin/skills/lit-typographic-motion/references/style-bibles.md +0 -141
- package/plugin/skills/lit-typographic-motion/references/treatment.md +0 -214
- package/plugin/skills/lit-typographic-motion/references/type-craft.md +0 -87
- package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +0 -111
- package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +0 -95
- package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +0 -205
- package/plugin/skills/lit-typographic-motion/styles/paper.json +0 -41
- package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +0 -41
- package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +0 -42
- package/plugin/skills/lit-typographic-motion/styles/tidal.json +0 -41
- package/plugin/skills/readme-studio/references/decoration-and-navigation.md +0 -55
- package/plugin/skills/readme-studio/references/facts-and-assembly.md +0 -19
- package/plugin/skills/readme-studio/references/production-interview.md +0 -11
- package/plugin/skills/readme-studio/references/render-and-deliver.md +0 -44
- package/plugin/skills/readme-studio/references/type-and-background.md +0 -23
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package-lock.json +0 -133
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package.json +0 -6
- package/plugin/skills/readme-studio/scripts/readme-runtime.mjs +0 -77
- package/plugin/skills/readme-studio/scripts/validate-readme-facts.mjs +0 -28
- package/plugin/skills/readme-studio/templates/cover-source.json +0 -21
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.html +0 -30
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.motion.json +0 -1
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +0 -2017
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package.json +0 -8
- package/plugin/skills/readme-studio/templates/readme-cover-section.md +0 -75
- package/plugin/skills/readme-studio/templates/readme-facts.json +0 -4
- package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +0 -3783
- package/plugin/skills/readme-studio/templates/remotion-cover/package.json +0 -7
- package/plugin/skills/readme-studio/templates/remotion-cover/src/index.tsx +0 -36
- package/plugin/skills/readme-studio/templates/typography/package-lock.json +0 -133
- package/plugin/skills/readme-studio/templates/typography/package.json +0 -6
- package/plugin/skills/readme-studio/templates/typography/safe-files.mjs +0 -57
- package/plugin/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +0 -63
- package/plugin/skills/visual-qa/references/breakage-catalogue.md +0 -70
- package/plugin/skills/visual-qa/references/capture-playbook.md +0 -96
- package/plugin/skills/visual-qa/references/complete-contract.md +0 -411
- package/plugin/skills/visual-qa/references/korean-and-mixed-script-checks.md +0 -50
- package/plugin/skills/visual-qa/references/reviewer-charters.md +0 -70
- package/plugin/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +0 -305
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +0 -291
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +0 -311
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +0 -235
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +0 -208
- package/plugin/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +0 -66
- package/plugin/skills/visual-qa/scripts/ansi.ts +0 -17
- package/plugin/skills/visual-qa/scripts/cli.mjs +0 -101
- package/plugin/skills/visual-qa/scripts/cli.ts +0 -96
- package/plugin/skills/visual-qa/scripts/design-contract-shape.mjs +0 -448
- package/plugin/skills/visual-qa/scripts/east-asian-width.ts +0 -72
- package/plugin/skills/visual-qa/scripts/errors.mjs +0 -12
- package/plugin/skills/visual-qa/scripts/evidence-io.mjs +0 -184
- package/plugin/skills/visual-qa/scripts/evidence-semantic.mjs +0 -95
- package/plugin/skills/visual-qa/scripts/evidence-shape.mjs +0 -163
- package/plugin/skills/visual-qa/scripts/evidence.mjs +0 -421
- package/plugin/skills/visual-qa/scripts/image-diff.mjs +0 -89
- package/plugin/skills/visual-qa/scripts/image-diff.ts +0 -109
- package/plugin/skills/visual-qa/scripts/png-chunks.mjs +0 -107
- package/plugin/skills/visual-qa/scripts/png-crc.ts +0 -27
- package/plugin/skills/visual-qa/scripts/png-decode.mjs +0 -143
- package/plugin/skills/visual-qa/scripts/png-decode.ts +0 -206
- package/plugin/skills/visual-qa/scripts/png-synth.ts +0 -57
- package/plugin/skills/visual-qa/scripts/review-rules.mjs +0 -137
- package/plugin/skills/visual-qa/scripts/strict-json.mjs +0 -143
- package/plugin/skills/visual-qa/scripts/terminal-text.mjs +0 -117
- package/plugin/skills/visual-qa/scripts/tui-check.mjs +0 -74
- package/plugin/skills/visual-qa/scripts/tui-grid.ts +0 -88
- package/plugin/skills/visual-qa/scripts/types.ts +0 -54
|
@@ -1,937 +0,0 @@
|
|
|
1
|
-
// P&ID and PFD symbol library after ISO 10628-2 and ANSI/ISA-5.1 conventions, drawn in
|
|
2
|
-
// millimetres for a 1:1 sheet. Every symbol is an object with:
|
|
3
|
-
// kind a stable id ("valve.gate", "pump.centrifugal") the legend and the QA gate read,
|
|
4
|
-
// box its overall extent, boxes its obstacle parts (for routing and LINE.THROUGH_SYMBOL),
|
|
5
|
-
// port() named connection points with an outward axis-aligned normal,
|
|
6
|
-
// svg() the drawing, wrapped in <g data-sym data-box data-ports>.
|
|
7
|
-
// Coordinates are absolute sheet millimetres; (x, y) is the symbol centre unless noted.
|
|
8
|
-
|
|
9
|
-
import { el, esc, n, pathOf } from "./svg.mjs";
|
|
10
|
-
import { parseEquipmentTag, parseInstrumentTag } from "./isa.mjs";
|
|
11
|
-
import { FONT_LATIN, PID, fontFor } from "./theme.mjs";
|
|
12
|
-
|
|
13
|
-
const W = PID.weight;
|
|
14
|
-
const UP = [0, -1];
|
|
15
|
-
const DOWN = [0, 1];
|
|
16
|
-
const LEFT = [-1, 0];
|
|
17
|
-
const RIGHT = [1, 0];
|
|
18
|
-
const SIDE_DIR = { left: LEFT, right: RIGHT, top: UP, bottom: DOWN };
|
|
19
|
-
|
|
20
|
-
const rot = (angle) => {
|
|
21
|
-
const a = ((angle % 360) + 360) % 360;
|
|
22
|
-
const c = Math.round(Math.cos((a * Math.PI) / 180));
|
|
23
|
-
const s = Math.round(Math.sin((a * Math.PI) / 180));
|
|
24
|
-
return ([x, y]) => [x * c - y * s, x * s + y * c];
|
|
25
|
-
};
|
|
26
|
-
const ORIENT = { right: 0, down: 90, left: 180, up: 270 };
|
|
27
|
-
|
|
28
|
-
export const KIND_DESCRIPTIONS = Object.freeze({
|
|
29
|
-
"vessel.vertical": "Vertical vessel",
|
|
30
|
-
"vessel.reactor": "Stirred reactor",
|
|
31
|
-
"vessel.jacketed": "Jacketed vessel",
|
|
32
|
-
"vessel.horizontal": "Horizontal drum",
|
|
33
|
-
"vessel.column": "Column",
|
|
34
|
-
"vessel.tank": "Atmospheric tank",
|
|
35
|
-
"gas.cylinder": "Gas cylinder",
|
|
36
|
-
"pump.centrifugal": "Centrifugal pump",
|
|
37
|
-
"pump.positive": "Positive-displacement pump (rotary)",
|
|
38
|
-
"pump.metering": "Metering pump",
|
|
39
|
-
"compressor.centrifugal": "Centrifugal compressor",
|
|
40
|
-
"compressor.reciprocating": "Reciprocating compressor / gas booster",
|
|
41
|
-
"exchanger.general": "Heat exchanger",
|
|
42
|
-
"exchanger.shelltube": "Shell-and-tube exchanger, fixed tube sheets",
|
|
43
|
-
"exchanger.floating": "Shell-and-tube exchanger, floating head",
|
|
44
|
-
"exchanger.utube": "Shell-and-tube exchanger, U-tubes",
|
|
45
|
-
"exchanger.plate": "Plate exchanger",
|
|
46
|
-
"exchanger.aircooler": "Air-cooled exchanger (fin fan)",
|
|
47
|
-
"package.unit": "Packaged unit",
|
|
48
|
-
"valve.gate": "Gate valve",
|
|
49
|
-
"valve.globe": "Globe valve",
|
|
50
|
-
"valve.ball": "Ball valve",
|
|
51
|
-
"valve.butterfly": "Butterfly valve",
|
|
52
|
-
"valve.check": "Check valve",
|
|
53
|
-
"valve.needle": "Needle valve",
|
|
54
|
-
"valve.plug": "Plug valve",
|
|
55
|
-
"valve.diaphragm": "Diaphragm valve",
|
|
56
|
-
"valve.threeway": "Three-way valve",
|
|
57
|
-
"valve.angle": "Angle valve",
|
|
58
|
-
"valve.regulator": "Pressure-reducing regulator",
|
|
59
|
-
"valve.backpressure": "Back-pressure regulator",
|
|
60
|
-
"valve.safety": "Pressure safety or relief valve",
|
|
61
|
-
"relief.rupture": "Rupture disk",
|
|
62
|
-
"flow.orifice": "Orifice plate / restriction orifice",
|
|
63
|
-
"flow.venturi": "Venturi tube",
|
|
64
|
-
"flow.magnetic": "Magnetic flowmeter (MAG)",
|
|
65
|
-
"flow.coriolis": "Coriolis mass flowmeter (COR)",
|
|
66
|
-
"flow.vortex": "Vortex flowmeter (VOR)",
|
|
67
|
-
"flow.turbine": "Turbine flowmeter (TUR)",
|
|
68
|
-
"flow.ultrasonic": "Ultrasonic flowmeter (US)",
|
|
69
|
-
"flow.thermal": "Thermal mass flowmeter (TMF)",
|
|
70
|
-
"flow.rotameter": "Variable-area flowmeter",
|
|
71
|
-
"flow.mfc": "Mass flow controller",
|
|
72
|
-
"line.filter": "Inline filter",
|
|
73
|
-
"line.reducer": "Concentric reducer",
|
|
74
|
-
"line.reducer-eccentric": "Eccentric reducer",
|
|
75
|
-
"line.flange": "Flange pair",
|
|
76
|
-
"line.sightglass": "Sight glass",
|
|
77
|
-
"line.blind": "Spectacle blind, normally closed",
|
|
78
|
-
"line.blind-open": "Spectacle blind, normally open",
|
|
79
|
-
"logic.interlock": "Interlock or logic",
|
|
80
|
-
"terminal.vent": "Vent to atmosphere",
|
|
81
|
-
"terminal.drain": "Drain",
|
|
82
|
-
"terminal.sample": "Sample point",
|
|
83
|
-
"terminal.offpage": "Off-page connector",
|
|
84
|
-
"terminal.utility": "Utility connection",
|
|
85
|
-
"drive.motor": "Electric motor",
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
// ANSI/ISA-5.1-2009 Table 5.4.2 actuators and Table 5.1.1 function shapes and locations.
|
|
89
|
-
export const ACTUATORS = Object.freeze({ diaphragm: "spring-diaphragm actuator", piston: "piston actuator", motor: "electric motor actuator", solenoid: "solenoid actuator", hand: "handwheel" });
|
|
90
|
-
export const FUNCTIONS = Object.freeze({ discrete: "Discrete instrument", shared: "Shared display and control (DCS)", computer: "Computer function", plc: "PLC or safety-system logic" });
|
|
91
|
-
export const LOCATIONS = Object.freeze({
|
|
92
|
-
field: "field mounted",
|
|
93
|
-
main: "main control room, operator accessible",
|
|
94
|
-
"main-rear": "main control room, not operator accessible",
|
|
95
|
-
aux: "auxiliary or local panel, operator accessible",
|
|
96
|
-
"aux-rear": "auxiliary or local panel, not operator accessible",
|
|
97
|
-
});
|
|
98
|
-
// Table 5.4.4: fail open, fail closed, fail locked (last position), fail indeterminate.
|
|
99
|
-
export const FAIL_POSITIONS = Object.freeze({ FO: "fail open", FC: "fail closed", FL: "fail locked in last position", FI: "fail indeterminate" });
|
|
100
|
-
|
|
101
|
-
// Shorter wording for the legend column of a single sheet, where space is tight.
|
|
102
|
-
const SHORT = Object.freeze({
|
|
103
|
-
actuator: { diaphragm: "diaphragm actuator", piston: "piston actuator", motor: "motor actuator", solenoid: "solenoid", hand: "handwheel" },
|
|
104
|
-
fn: { discrete: "Instrument", shared: "DCS function", computer: "Computer function", plc: "PLC / SIS function" },
|
|
105
|
-
location: { field: "field", main: "control room", "main-rear": "control room, behind panel", aux: "local panel", "aux-rear": "local panel, behind" },
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
// The legend text for any kind this library draws, including composed ones such as
|
|
109
|
-
// "valve.globe.diaphragm" and "instrument.shared-main".
|
|
110
|
-
export function describeKind(kind, { short = false } = {}) {
|
|
111
|
-
if (KIND_DESCRIPTIONS[kind]) return KIND_DESCRIPTIONS[kind];
|
|
112
|
-
const valve = /^valve\.([a-z]+)\.([a-z]+)$/u.exec(kind ?? "");
|
|
113
|
-
if (valve && KIND_DESCRIPTIONS[`valve.${valve[1]}`] && ACTUATORS[valve[2]]) return `${KIND_DESCRIPTIONS[`valve.${valve[1]}`]}, ${(short ? SHORT.actuator : ACTUATORS)[valve[2]]}`;
|
|
114
|
-
const bubble = /^instrument\.([a-z]+)-([a-z-]+)$/u.exec(kind ?? "");
|
|
115
|
-
if (bubble && FUNCTIONS[bubble[1]] && LOCATIONS[bubble[2]]) return short ? `${SHORT.fn[bubble[1]]}, ${SHORT.location[bubble[2]]}` : `${FUNCTIONS[bubble[1]]}, ${LOCATIONS[bubble[2]]}`;
|
|
116
|
-
return null;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
let counter = 0;
|
|
120
|
-
export const resetIds = () => { counter = 0; };
|
|
121
|
-
|
|
122
|
-
function symbol({ kind, tag = null, box, boxes = null, ports = {}, body, sidePort = null, label = null, meta = {} }) {
|
|
123
|
-
if (!describeKind(kind)) throw new Error(`pid: unknown symbol kind ${kind}`);
|
|
124
|
-
const id = `S${++counter}`;
|
|
125
|
-
const used = new Map();
|
|
126
|
-
const obstacleBoxes = boxes ?? [box];
|
|
127
|
-
const sym = {
|
|
128
|
-
id, kind, tag, box, boxes: obstacleBoxes, label, meta,
|
|
129
|
-
port(name, t) {
|
|
130
|
-
let p = ports[name];
|
|
131
|
-
if (!p && sidePort && SIDE_DIR[name] && t !== undefined) p = sidePort(name, t);
|
|
132
|
-
if (!p) throw new Error(`pid: ${kind}${tag ? ` ${tag}` : ""} has no port "${name}"${sidePort ? " (side ports take a fraction 0..1: port('left', 0.3))" : ""}; ports: ${Object.keys(ports).join(", ")}`);
|
|
133
|
-
const key = t === undefined ? name : `${name}@${n(t)}`;
|
|
134
|
-
const port = { x: p[0], y: p[1], dir: p[2], owner: id, name: key };
|
|
135
|
-
used.set(key, port);
|
|
136
|
-
return port;
|
|
137
|
-
},
|
|
138
|
-
get usedPorts() { return [...used.values()]; },
|
|
139
|
-
get allPorts() { return Object.entries(ports).map(([name, p]) => ({ name, x: p[0], y: p[1], dir: p[2] })); },
|
|
140
|
-
svg() {
|
|
141
|
-
const declared = [...Object.entries(ports).map(([name, p]) => [name, p]), ...[...used.values()].map((p) => [p.name, [p.x, p.y, p.dir]])];
|
|
142
|
-
const uniq = new Map(declared);
|
|
143
|
-
return el("g", {
|
|
144
|
-
"data-sym": kind,
|
|
145
|
-
"data-sym-id": id,
|
|
146
|
-
"data-tag": tag ?? undefined,
|
|
147
|
-
"data-box": obstacleBoxes.map((b) => b.map(n).join(" ")).join("|"),
|
|
148
|
-
"data-ports": [...uniq].map(([name, p]) => `${name}:${n(p[0])},${n(p[1])},${p[2][0]},${p[2][1]}`).join(";"),
|
|
149
|
-
fill: "none",
|
|
150
|
-
stroke: PID.ink,
|
|
151
|
-
"stroke-width": W.symbol,
|
|
152
|
-
"stroke-linecap": "round",
|
|
153
|
-
"stroke-linejoin": "round",
|
|
154
|
-
}, body);
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
return sym;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const line = (points, extra = {}) => el("path", { d: pathOf(points), ...extra });
|
|
161
|
-
const poly = (points, extra = {}) => el("path", { d: pathOf(points, true), ...extra });
|
|
162
|
-
const circle = (cx, cy, r, extra = {}) => el("circle", { cx, cy, r, ...extra });
|
|
163
|
-
const label = (x, y, text, size = PID.text.tag, extra = {}) =>
|
|
164
|
-
el("text", { x, y, "font-family": fontFor(text), "font-size": size, "text-anchor": "middle", fill: PID.ink, stroke: "none", "data-label": "symbol", ...extra }, esc(text));
|
|
165
|
-
|
|
166
|
-
function checkEquipmentTag(tag) {
|
|
167
|
-
if (!tag) return;
|
|
168
|
-
const parsed = parseEquipmentTag(tag);
|
|
169
|
-
if (!parsed.ok) throw new Error(`pid: equipment tag "${tag}": ${parsed.error}`);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// ---------------------------------------------------------------- vessels
|
|
173
|
-
|
|
174
|
-
export function vessel({
|
|
175
|
-
x, y, w = 24, h = 48, tag = null, name = null, top = "ellipse", bottom = "ellipse",
|
|
176
|
-
jacket = false, agitator = null, coil = false, packing = false, trays = 0, trayStyle = "full", demister = false,
|
|
177
|
-
supports = null, liquid = null, kind,
|
|
178
|
-
}) {
|
|
179
|
-
checkEquipmentTag(tag);
|
|
180
|
-
const half = w / 2;
|
|
181
|
-
const headDepth = w / 4;
|
|
182
|
-
const topT = y - h / 2 + (top === "flat" ? 0 : headDepth);
|
|
183
|
-
const botT = y + h / 2 - (bottom === "flat" ? 0 : headDepth);
|
|
184
|
-
const parts = [];
|
|
185
|
-
// Shell: left side down, bottom head, right side up, top head.
|
|
186
|
-
let d = `M${n(x - half)} ${n(topT)}L${n(x - half)} ${n(botT)}`;
|
|
187
|
-
if (bottom === "ellipse") d += `A${n(half)} ${n(headDepth)} 0 0 0 ${n(x + half)} ${n(botT)}`;
|
|
188
|
-
else if (bottom === "cone") d += `L${n(x)} ${n(y + h / 2)}L${n(x + half)} ${n(botT)}`;
|
|
189
|
-
else d += `L${n(x + half)} ${n(botT)}`;
|
|
190
|
-
d += `L${n(x + half)} ${n(topT)}`;
|
|
191
|
-
if (top === "ellipse") d += `A${n(half)} ${n(headDepth)} 0 0 0 ${n(x - half)} ${n(topT)}`;
|
|
192
|
-
else if (top === "cone") d += `L${n(x)} ${n(y - h / 2)}L${n(x - half)} ${n(topT)}`;
|
|
193
|
-
else d += `L${n(x - half)} ${n(topT)}`;
|
|
194
|
-
parts.push(el("path", { d: `${d}Z`, "stroke-width": W.equipment, fill: PID.paper }));
|
|
195
|
-
if (top !== "flat") parts.push(line([[x - half, topT], [x + half, topT]], { "stroke-width": W.detail }));
|
|
196
|
-
if (bottom !== "flat") parts.push(line([[x - half, botT], [x + half, botT]], { "stroke-width": W.detail }));
|
|
197
|
-
if (liquid !== null) {
|
|
198
|
-
const ly = topT + (botT - topT) * (1 - liquid);
|
|
199
|
-
parts.push(line([[x - half, ly], [x + half, ly]], { "stroke-width": W.detail, "stroke-dasharray": "1.2 0.8" }));
|
|
200
|
-
parts.push(poly([[x + half - 4, ly - 1.4], [x + half - 2.6, ly - 1.4], [x + half - 3.3, ly - 0.2]], { "stroke-width": W.detail }));
|
|
201
|
-
}
|
|
202
|
-
let boxTop = y - h / 2;
|
|
203
|
-
let boxBottom = y + h / 2;
|
|
204
|
-
let boxLeft = x - half;
|
|
205
|
-
let boxRight = x + half;
|
|
206
|
-
const boxes = [];
|
|
207
|
-
const ports = {
|
|
208
|
-
top: [x, y - h / 2, UP],
|
|
209
|
-
bottom: [x, y + h / 2, DOWN],
|
|
210
|
-
};
|
|
211
|
-
const headY = (dx, upward) => {
|
|
212
|
-
const k = Math.min(1, Math.abs(dx) / half);
|
|
213
|
-
const yt = upward ? topT : botT;
|
|
214
|
-
const shape = upward ? top : bottom;
|
|
215
|
-
if (shape === "flat") return yt;
|
|
216
|
-
if (shape === "cone") return yt + (upward ? -1 : 1) * headDepth * (1 - k);
|
|
217
|
-
return yt + (upward ? -1 : 1) * headDepth * Math.sqrt(1 - k * k);
|
|
218
|
-
};
|
|
219
|
-
ports["top-left"] = [x - half / 2, headY(-half / 2, true), UP];
|
|
220
|
-
ports["top-right"] = [x + half / 2, headY(half / 2, true), UP];
|
|
221
|
-
ports["bottom-left"] = [x - half / 2, headY(-half / 2, false), DOWN];
|
|
222
|
-
ports["bottom-right"] = [x + half / 2, headY(half / 2, false), DOWN];
|
|
223
|
-
let jacketTop = null;
|
|
224
|
-
const j = 2.6;
|
|
225
|
-
if (jacket) {
|
|
226
|
-
jacketTop = topT + (botT - topT) * 0.22;
|
|
227
|
-
let jd = `M${n(x - half - j)} ${n(jacketTop)}L${n(x - half - j)} ${n(botT)}`;
|
|
228
|
-
if (bottom === "ellipse") jd += `A${n(half + j)} ${n(headDepth + j)} 0 0 0 ${n(x + half + j)} ${n(botT)}`;
|
|
229
|
-
else jd += `L${n(x + half + j)} ${n(botT + (bottom === "flat" ? j : 0))}`;
|
|
230
|
-
jd += `L${n(x + half + j)} ${n(jacketTop)}`;
|
|
231
|
-
parts.unshift(el("path", { d: jd, "stroke-width": W.equipment }));
|
|
232
|
-
parts.push(line([[x - half - j, jacketTop], [x - half, jacketTop]], { "stroke-width": W.equipment }));
|
|
233
|
-
parts.push(line([[x + half, jacketTop], [x + half + j, jacketTop]], { "stroke-width": W.equipment }));
|
|
234
|
-
boxLeft -= j;
|
|
235
|
-
boxRight += j;
|
|
236
|
-
boxBottom = Math.max(boxBottom, botT + (bottom === "ellipse" ? headDepth + j : j));
|
|
237
|
-
ports["jacket-in"] = [x + half + j, botT - (botT - jacketTop) * 0.12, RIGHT];
|
|
238
|
-
ports["jacket-out"] = [x - half - j, jacketTop + (botT - jacketTop) * 0.12, LEFT];
|
|
239
|
-
}
|
|
240
|
-
if (coil) {
|
|
241
|
-
const c0 = topT + (botT - topT) * 0.45;
|
|
242
|
-
const c1 = botT - 2;
|
|
243
|
-
const zig = [];
|
|
244
|
-
const count = 7;
|
|
245
|
-
for (let i = 0; i <= count; i++) zig.push([x + (i % 2 ? half - 3 : -half + 3), c0 + ((c1 - c0) * i) / count]);
|
|
246
|
-
parts.push(line(zig, { "stroke-width": W.detail }));
|
|
247
|
-
}
|
|
248
|
-
if (packing) {
|
|
249
|
-
const p0 = topT + (botT - topT) * 0.3;
|
|
250
|
-
const p1 = topT + (botT - topT) * 0.75;
|
|
251
|
-
parts.push(poly([[x - half, p0], [x + half, p0], [x + half, p1], [x - half, p1]], { "stroke-width": W.detail }));
|
|
252
|
-
parts.push(line([[x - half, p0], [x + half, p1]], { "stroke-width": W.detail }));
|
|
253
|
-
parts.push(line([[x + half, p0], [x - half, p1]], { "stroke-width": W.detail }));
|
|
254
|
-
}
|
|
255
|
-
if (demister) {
|
|
256
|
-
const m = topT + 3;
|
|
257
|
-
parts.push(poly([[x - half, m], [x + half, m], [x + half, m + 2.2], [x - half, m + 2.2]], { "stroke-width": W.detail }));
|
|
258
|
-
for (let i = 1; i < 6; i++) parts.push(line([[x - half + (w * i) / 6 - 1, m], [x - half + (w * i) / 6 + 1, m + 2.2]], { "stroke-width": W.detail }));
|
|
259
|
-
}
|
|
260
|
-
// ISO 10628-2 item 2.2 draws trays across the whole shell; item 2.5 staggers baffles.
|
|
261
|
-
for (let i = 0; i < trays; i++) {
|
|
262
|
-
const ty = topT + ((botT - topT) * (i + 1)) / (trays + 1);
|
|
263
|
-
const fromLeft = i % 2 === 0;
|
|
264
|
-
const run = trayStyle === "staggered"
|
|
265
|
-
? (fromLeft ? [[x - half, ty], [x + half * 0.5, ty]] : [[x - half * 0.5, ty], [x + half, ty]])
|
|
266
|
-
: [[x - half, ty], [x + half, ty]];
|
|
267
|
-
parts.push(line(run, { "stroke-width": W.detail, "stroke-dasharray": "2.2 1" }));
|
|
268
|
-
}
|
|
269
|
-
if (agitator) {
|
|
270
|
-
const motorY = y - h / 2 - 6.5;
|
|
271
|
-
const shaftTop = motorY + 3.2;
|
|
272
|
-
const shaftBottom = topT + (botT - topT) * 0.82;
|
|
273
|
-
parts.push(line([[x, shaftTop], [x, shaftBottom]], { "stroke-width": W.symbol }));
|
|
274
|
-
parts.push(circle(x, motorY, 3.2, { fill: PID.paper }));
|
|
275
|
-
parts.push(label(x, motorY + 0.9, "M", 2.4));
|
|
276
|
-
if (agitator === "anchor") {
|
|
277
|
-
parts.push(line([[x - half + 2.5, shaftBottom - 7], [x - half + 2.5, shaftBottom], [x + half - 2.5, shaftBottom], [x + half - 2.5, shaftBottom - 7]]));
|
|
278
|
-
} else if (agitator === "propeller") {
|
|
279
|
-
parts.push(poly([[x, shaftBottom], [x - 5, shaftBottom - 1.6], [x - 5, shaftBottom + 0.6]]));
|
|
280
|
-
parts.push(poly([[x, shaftBottom], [x + 5, shaftBottom + 1.6], [x + 5, shaftBottom - 0.6]]));
|
|
281
|
-
} else {
|
|
282
|
-
parts.push(line([[x - 5.5, shaftBottom], [x + 5.5, shaftBottom]]));
|
|
283
|
-
parts.push(poly([[x - 5.5, shaftBottom - 1.8], [x - 3.3, shaftBottom - 1.8], [x - 3.3, shaftBottom + 1.8], [x - 5.5, shaftBottom + 1.8]]));
|
|
284
|
-
parts.push(poly([[x + 3.3, shaftBottom - 1.8], [x + 5.5, shaftBottom - 1.8], [x + 5.5, shaftBottom + 1.8], [x + 3.3, shaftBottom + 1.8]]));
|
|
285
|
-
}
|
|
286
|
-
boxes.push([x - 3.4, motorY - 3.4, x + 3.4, y - h / 2]);
|
|
287
|
-
boxTop = motorY - 3.4;
|
|
288
|
-
}
|
|
289
|
-
if (supports === "legs") {
|
|
290
|
-
const legBottom = boxBottom + 4;
|
|
291
|
-
for (const sx of [x - half * 0.75, x + half * 0.75]) {
|
|
292
|
-
const top0 = headY(sx - x, false);
|
|
293
|
-
parts.push(line([[sx, top0], [sx, legBottom]], { "stroke-width": W.equipment }));
|
|
294
|
-
parts.push(line([[sx - 1.6, legBottom], [sx + 1.6, legBottom]], { "stroke-width": W.equipment }));
|
|
295
|
-
}
|
|
296
|
-
boxBottom = legBottom;
|
|
297
|
-
} else if (supports === "skirt") {
|
|
298
|
-
const skBottom = boxBottom + 5;
|
|
299
|
-
parts.push(line([[x - half * 0.8, headY(-half * 0.8, false)], [x - half * 0.8, skBottom]], { "stroke-width": W.equipment }));
|
|
300
|
-
parts.push(line([[x + half * 0.8, headY(half * 0.8, false)], [x + half * 0.8, skBottom]], { "stroke-width": W.equipment }));
|
|
301
|
-
parts.push(line([[x - half * 0.8 - 1.5, skBottom], [x + half * 0.8 + 1.5, skBottom]], { "stroke-width": W.equipment }));
|
|
302
|
-
boxBottom = skBottom;
|
|
303
|
-
}
|
|
304
|
-
const shellBox = [boxLeft, y - h / 2, boxRight, boxBottom];
|
|
305
|
-
boxes.unshift(shellBox);
|
|
306
|
-
const resolvedKind = kind ?? (agitator ? "vessel.reactor" : jacket ? "vessel.jacketed" : trays || packing ? "vessel.column" : top === "cone" && bottom === "flat" ? "vessel.tank" : "vessel.vertical");
|
|
307
|
-
return symbol({
|
|
308
|
-
kind: resolvedKind,
|
|
309
|
-
tag,
|
|
310
|
-
label: name,
|
|
311
|
-
box: [boxLeft, boxTop, boxRight, boxBottom],
|
|
312
|
-
boxes,
|
|
313
|
-
ports,
|
|
314
|
-
sidePort: (side, t) => {
|
|
315
|
-
if (side !== "left" && side !== "right") {
|
|
316
|
-
const dx = (t - 0.5) * w * 0.8;
|
|
317
|
-
return side === "top" ? [x + dx, headY(dx, true), UP] : [x + dx, headY(dx, false), DOWN];
|
|
318
|
-
}
|
|
319
|
-
const yy = topT + (botT - topT) * t;
|
|
320
|
-
const covered = jacket && yy >= jacketTop - 0.01;
|
|
321
|
-
const xx = side === "left" ? x - half - (covered ? j : 0) : x + half + (covered ? j : 0);
|
|
322
|
-
return [xx, yy, side === "left" ? LEFT : RIGHT];
|
|
323
|
-
},
|
|
324
|
-
body: parts,
|
|
325
|
-
meta: { topT, botT, w, h, jacket, agitator },
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export const reactor = (options) => vessel({ jacket: true, agitator: "turbine", ...options });
|
|
330
|
-
export const column = (options) => vessel({ w: 16, h: 90, trays: 8, ...options, kind: "vessel.column" });
|
|
331
|
-
export const tank = (options) => vessel({ w: 30, h: 30, top: "cone", bottom: "flat", ...options, kind: "vessel.tank" });
|
|
332
|
-
|
|
333
|
-
export function drum({ x, y, w = 48, h = 20, tag = null, name = null, saddles = true }) {
|
|
334
|
-
checkEquipmentTag(tag);
|
|
335
|
-
const headDepth = h / 4;
|
|
336
|
-
const leftT = x - w / 2 + headDepth;
|
|
337
|
-
const rightT = x + w / 2 - headDepth;
|
|
338
|
-
const half = h / 2;
|
|
339
|
-
const d = `M${n(leftT)} ${n(y - half)}L${n(rightT)} ${n(y - half)}A${n(headDepth)} ${n(half)} 0 0 1 ${n(rightT)} ${n(y + half)}L${n(leftT)} ${n(y + half)}A${n(headDepth)} ${n(half)} 0 0 1 ${n(leftT)} ${n(y - half)}Z`;
|
|
340
|
-
const parts = [el("path", { d, "stroke-width": W.equipment, fill: PID.paper })];
|
|
341
|
-
parts.push(line([[leftT, y - half], [leftT, y + half]], { "stroke-width": W.detail }));
|
|
342
|
-
parts.push(line([[rightT, y - half], [rightT, y + half]], { "stroke-width": W.detail }));
|
|
343
|
-
let bottom = y + half;
|
|
344
|
-
if (saddles) {
|
|
345
|
-
for (const sx of [leftT + 4, rightT - 4]) {
|
|
346
|
-
parts.push(poly([[sx - 3, y + half - 0.6], [sx + 3, y + half - 0.6], [sx + 3.6, y + half + 3], [sx - 3.6, y + half + 3]], { "stroke-width": W.equipment }));
|
|
347
|
-
}
|
|
348
|
-
bottom = y + half + 3;
|
|
349
|
-
}
|
|
350
|
-
return symbol({
|
|
351
|
-
kind: "vessel.horizontal",
|
|
352
|
-
tag,
|
|
353
|
-
label: name,
|
|
354
|
-
box: [x - w / 2, y - half, x + w / 2, bottom],
|
|
355
|
-
ports: { left: [x - w / 2, y, LEFT], right: [x + w / 2, y, RIGHT] },
|
|
356
|
-
sidePort: (side, t) => {
|
|
357
|
-
const xx = leftT + (rightT - leftT) * t;
|
|
358
|
-
if (side === "top") return [xx, y - half, UP];
|
|
359
|
-
if (side === "bottom") return [xx, y + half, DOWN];
|
|
360
|
-
return [side === "left" ? x - w / 2 : x + w / 2, y - half + h * t, side === "left" ? LEFT : RIGHT];
|
|
361
|
-
},
|
|
362
|
-
body: parts,
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export function gasCylinder({ x, y, w = 10, h = 30, tag = null, name = null }) {
|
|
367
|
-
checkEquipmentTag(tag);
|
|
368
|
-
const half = w / 2;
|
|
369
|
-
const top = y - h / 2;
|
|
370
|
-
const shoulder = top + half;
|
|
371
|
-
const parts = [
|
|
372
|
-
el("path", { d: `M${n(x - half)} ${n(y + h / 2)}L${n(x - half)} ${n(shoulder)}A${n(half)} ${n(half)} 0 0 1 ${n(x + half)} ${n(shoulder)}L${n(x + half)} ${n(y + h / 2)}Z`, "stroke-width": W.equipment, fill: PID.paper }),
|
|
373
|
-
poly([[x - 1.2, top - 3], [x + 1.2, top - 3], [x + 1.2, top], [x - 1.2, top]]),
|
|
374
|
-
line([[x - 2.6, top - 3], [x + 2.6, top - 3]]),
|
|
375
|
-
];
|
|
376
|
-
return symbol({
|
|
377
|
-
kind: "gas.cylinder",
|
|
378
|
-
tag,
|
|
379
|
-
label: name,
|
|
380
|
-
box: [x - half, top - 3, x + half, y + h / 2],
|
|
381
|
-
ports: { outlet: [x, top - 3, UP] },
|
|
382
|
-
body: parts,
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// ---------------------------------------------------------------- machines
|
|
387
|
-
|
|
388
|
-
export function pump({ x, y, r = 5, type = "centrifugal", facing = "right", tag = null, name = null }) {
|
|
389
|
-
checkEquipmentTag(tag);
|
|
390
|
-
const m = facing === "left" ? -1 : 1;
|
|
391
|
-
const parts = [circle(x, y, r, { "stroke-width": W.equipment, fill: PID.paper })];
|
|
392
|
-
parts.push(poly([[x - r * 0.62, y + r * 0.78], [x - r * 0.95, y + r + 1.8], [x + r * 0.95, y + r + 1.8], [x + r * 0.62, y + r * 0.78]], { "stroke-width": W.equipment }));
|
|
393
|
-
const discharge = [x + m * (r + 2.4), y - r];
|
|
394
|
-
parts.push(line([[x, y - r], discharge], { "stroke-width": W.equipment }));
|
|
395
|
-
if (type === "positive") {
|
|
396
|
-
parts.push(circle(x - r * 0.32, y, r * 0.32), circle(x + r * 0.32, y, r * 0.32));
|
|
397
|
-
} else if (type === "metering") {
|
|
398
|
-
parts.push(line([[x - r * 0.9, y + r * 0.9], [x + r * 0.9, y - r * 0.9]]));
|
|
399
|
-
parts.push(poly([[x + r * 0.9, y - r * 0.9], [x + r * 0.35, y - r * 0.7], [x + r * 0.7, y - r * 0.35]], { fill: PID.ink }));
|
|
400
|
-
} else {
|
|
401
|
-
parts.push(line([[x - r * 0.5, y], [x + r * 0.5, y]], { "stroke-width": W.detail }));
|
|
402
|
-
}
|
|
403
|
-
return symbol({
|
|
404
|
-
kind: type === "positive" ? "pump.positive" : type === "metering" ? "pump.metering" : "pump.centrifugal",
|
|
405
|
-
tag,
|
|
406
|
-
label: name,
|
|
407
|
-
box: [Math.min(x - r, discharge[0]), y - r, Math.max(x + r, discharge[0]), y + r + 1.8],
|
|
408
|
-
ports: {
|
|
409
|
-
suction: [x - m * r, y, m > 0 ? LEFT : RIGHT],
|
|
410
|
-
discharge: [discharge[0], discharge[1], m > 0 ? RIGHT : LEFT],
|
|
411
|
-
signal: [x + m * r * 0.6, y + r + 1.8, DOWN],
|
|
412
|
-
},
|
|
413
|
-
body: parts,
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
export function compressor({ x, y, r = 7, type = "centrifugal", facing = "right", tag = null, name = null }) {
|
|
418
|
-
checkEquipmentTag(tag);
|
|
419
|
-
const m = facing === "left" ? -1 : 1;
|
|
420
|
-
const parts = [circle(x, y, r, { "stroke-width": W.equipment, fill: PID.paper })];
|
|
421
|
-
if (type === "reciprocating") {
|
|
422
|
-
parts.push(poly([[x - r * 0.55, y - r * 0.4], [x + r * 0.55, y - r * 0.4], [x + r * 0.55, y + r * 0.4], [x - r * 0.55, y + r * 0.4]]));
|
|
423
|
-
parts.push(line([[x - r * 0.1, y - r * 0.4], [x - r * 0.1, y + r * 0.4]]));
|
|
424
|
-
parts.push(line([[x - r * 0.1, y], [x - r * 0.85, y]]));
|
|
425
|
-
} else {
|
|
426
|
-
parts.push(poly([[x - m * r * 0.72, y - r * 0.62], [x + m * r * 0.72, y - r * 0.28], [x + m * r * 0.72, y + r * 0.28], [x - m * r * 0.72, y + r * 0.62]]));
|
|
427
|
-
}
|
|
428
|
-
return symbol({
|
|
429
|
-
kind: type === "reciprocating" ? "compressor.reciprocating" : "compressor.centrifugal",
|
|
430
|
-
tag,
|
|
431
|
-
label: name,
|
|
432
|
-
box: [x - r, y - r, x + r, y + r],
|
|
433
|
-
ports: {
|
|
434
|
-
inlet: [x - m * r, y, m > 0 ? LEFT : RIGHT],
|
|
435
|
-
outlet: [x + m * r, y, m > 0 ? RIGHT : LEFT],
|
|
436
|
-
drive: [x, y + r, DOWN],
|
|
437
|
-
},
|
|
438
|
-
body: parts,
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
export function motor({ x, y, r = 3.6, tag = null }) {
|
|
443
|
-
return symbol({
|
|
444
|
-
kind: "drive.motor",
|
|
445
|
-
tag,
|
|
446
|
-
box: [x - r, y - r, x + r, y + r],
|
|
447
|
-
ports: { shaft: [x, y - r, UP], left: [x - r, y, LEFT], right: [x + r, y, RIGHT], bottom: [x, y + r, DOWN] },
|
|
448
|
-
body: [circle(x, y, r, { fill: PID.paper }), label(x, y + 0.9, "M", 2.5)],
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
// ---------------------------------------------------------------- heat transfer
|
|
453
|
-
|
|
454
|
-
export function exchanger({ x, y, r = 7, tag = null, name = null }) {
|
|
455
|
-
checkEquipmentTag(tag);
|
|
456
|
-
const zig = [[x - r, y], [x - r * 0.45, y], [x - r * 0.2, y - r * 0.45], [x + r * 0.2, y + r * 0.45], [x + r * 0.45, y], [x + r, y]];
|
|
457
|
-
return symbol({
|
|
458
|
-
kind: "exchanger.general",
|
|
459
|
-
tag,
|
|
460
|
-
label: name,
|
|
461
|
-
box: [x - r, y - r, x + r, y + r],
|
|
462
|
-
ports: { "tube-in": [x - r, y, LEFT], "tube-out": [x + r, y, RIGHT], "shell-in": [x, y - r, UP], "shell-out": [x, y + r, DOWN] },
|
|
463
|
-
body: [circle(x, y, r, { "stroke-width": W.equipment, fill: PID.paper }), line(zig)],
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
// Shell-and-tube exchangers after ISO 10628-2 items 3.3 (fixed tube sheets, one tube pass),
|
|
468
|
-
// 3.4 (floating head, two passes from the front channel) and 3.5 (U-tubes).
|
|
469
|
-
export function shellTube({ x, y, w = 36, h = 12, type = "fixed", tag = null, name = null }) {
|
|
470
|
-
checkEquipmentTag(tag);
|
|
471
|
-
const half = h / 2;
|
|
472
|
-
const x0 = x - w / 2;
|
|
473
|
-
const x1 = x + w / 2;
|
|
474
|
-
const rect = (a, b, c, d, extra = {}) => poly([[a, b], [c, b], [c, d], [a, d]], extra);
|
|
475
|
-
const parts = [];
|
|
476
|
-
let ports;
|
|
477
|
-
let kind;
|
|
478
|
-
if (type === "utube") {
|
|
479
|
-
const channel = x0 + 6;
|
|
480
|
-
const d = `M${n(channel)} ${n(y - half)}L${n(x1 - half)} ${n(y - half)}A${n(half)} ${n(half)} 0 0 1 ${n(x1 - half)} ${n(y + half)}L${n(channel)} ${n(y + half)}Z`;
|
|
481
|
-
parts.push(
|
|
482
|
-
el("path", { d, "stroke-width": W.equipment, fill: PID.paper }),
|
|
483
|
-
rect(x0, y - half, channel, y + half, { "stroke-width": W.equipment, fill: PID.paper }),
|
|
484
|
-
line([[x0, y], [channel, y]], { "stroke-width": W.detail }),
|
|
485
|
-
el("path", { d: `M${n(channel)} ${n(y - 2.4)}L${n(x1 - half - 1)} ${n(y - 2.4)}A2.4 2.4 0 0 1 ${n(x1 - half - 1)} ${n(y + 2.4)}L${n(channel)} ${n(y + 2.4)}`, "stroke-width": W.detail }),
|
|
486
|
-
);
|
|
487
|
-
kind = "exchanger.utube";
|
|
488
|
-
ports = { "tube-in": [x0 + 3, y + half, DOWN], "tube-out": [x0 + 3, y - half, UP], "shell-in": [x1 - half - 4, y - half, UP], "shell-out": [channel + 4, y + half, DOWN] };
|
|
489
|
-
} else {
|
|
490
|
-
const sheet = 1.4;
|
|
491
|
-
const front = x0 + 4;
|
|
492
|
-
parts.push(rect(x0, y - half, x1, y + half, { "stroke-width": W.equipment, fill: PID.paper }));
|
|
493
|
-
parts.push(rect(front, y - half, front + sheet, y + half, { "stroke-width": W.detail, fill: PID.paper }));
|
|
494
|
-
if (type === "floating") {
|
|
495
|
-
const head = x1 - 8;
|
|
496
|
-
parts.push(rect(head, y - half + 1.6, head + 2.6, y + half - 1.6, { "stroke-width": W.detail, fill: PID.paper }));
|
|
497
|
-
parts.push(line([[x0, y], [front, y]], { "stroke-width": W.detail }));
|
|
498
|
-
for (const dy of [-half * 0.45, 0, half * 0.45]) parts.push(line([[front + sheet, y + dy], [head, y + dy]], { "stroke-width": W.detail }));
|
|
499
|
-
kind = "exchanger.floating";
|
|
500
|
-
ports = { "tube-in": [x0 + 2, y + half, DOWN], "tube-out": [x0 + 2, y - half, UP], "shell-in": [x1 - 12, y - half, UP], "shell-out": [front + 6, y + half, DOWN] };
|
|
501
|
-
} else {
|
|
502
|
-
const rear = x1 - 4 - sheet;
|
|
503
|
-
parts.push(rect(rear, y - half, rear + sheet, y + half, { "stroke-width": W.detail, fill: PID.paper }));
|
|
504
|
-
for (const dy of [-half * 0.45, 0, half * 0.45]) parts.push(line([[front + sheet, y + dy], [rear, y + dy]], { "stroke-width": W.detail }));
|
|
505
|
-
kind = "exchanger.shelltube";
|
|
506
|
-
ports = { "tube-in": [x0 + 2, y + half, DOWN], "tube-out": [x1 - 2, y - half, UP], "shell-in": [rear - 4, y - half, UP], "shell-out": [front + sheet + 4, y + half, DOWN] };
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
return symbol({ kind, tag, label: name, box: [x0, y - half, x1, y + half], ports, body: parts });
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
// ISO 10628-2 item 3.6: the plate pack as a rectangle with both diagonals and a centre line.
|
|
513
|
-
export function plateExchanger({ x, y, w = 18, h = 10, tag = null, name = null }) {
|
|
514
|
-
checkEquipmentTag(tag);
|
|
515
|
-
const [x0, y0, x1, y1] = [x - w / 2, y - h / 2, x + w / 2, y + h / 2];
|
|
516
|
-
const parts = [
|
|
517
|
-
poly([[x0, y0], [x1, y0], [x1, y1], [x0, y1]], { "stroke-width": W.equipment, fill: PID.paper }),
|
|
518
|
-
line([[x0, y0], [x1, y1]], { "stroke-width": W.detail }),
|
|
519
|
-
line([[x0, y1], [x1, y0]], { "stroke-width": W.detail }),
|
|
520
|
-
line([[x, y0], [x, y1]], { "stroke-width": W.detail }),
|
|
521
|
-
];
|
|
522
|
-
return symbol({
|
|
523
|
-
kind: "exchanger.plate",
|
|
524
|
-
tag,
|
|
525
|
-
label: name,
|
|
526
|
-
box: [x - w / 2, y - h / 2, x + w / 2, y + h / 2],
|
|
527
|
-
ports: {
|
|
528
|
-
"hot-in": [x - w / 2, y - h / 2 + 3, LEFT], "hot-out": [x + w / 2, y + h / 2 - 3, RIGHT],
|
|
529
|
-
"cold-in": [x + w / 2, y - h / 2 + 3, RIGHT], "cold-out": [x - w / 2, y + h / 2 - 3, LEFT],
|
|
530
|
-
},
|
|
531
|
-
body: parts,
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
// An air-cooled exchanger: the tube bundle as a box with the tube run inside, the fan under it
|
|
536
|
-
// as a blade sweep on a hub, driven by a motor.
|
|
537
|
-
export function airCooler({ x, y, w = 30, h = 7, tag = null, name = null }) {
|
|
538
|
-
checkEquipmentTag(tag);
|
|
539
|
-
const [x0, y0, x1, y1] = [x - w / 2, y - h / 2, x + w / 2, y + h / 2];
|
|
540
|
-
const zig = [];
|
|
541
|
-
for (let i = 0; i <= 10; i++) zig.push([x0 + 2 + ((w - 4) * i) / 10, i % 2 ? y - h * 0.22 : y + h * 0.22]);
|
|
542
|
-
const fanY = y1 + 3;
|
|
543
|
-
const motorY = fanY + 4.6;
|
|
544
|
-
const parts = [
|
|
545
|
-
poly([[x0, y0], [x1, y0], [x1, y1], [x0, y1]], { "stroke-width": W.equipment, fill: PID.paper }),
|
|
546
|
-
line(zig, { "stroke-width": W.detail }),
|
|
547
|
-
line([[x, y1], [x, motorY - 2.4]], { "stroke-width": W.symbol }),
|
|
548
|
-
el("path", { d: `M${n(x - w * 0.3)} ${n(fanY)}Q${n(x - w * 0.15)} ${n(fanY - 1.4)} ${n(x)} ${n(fanY)}Q${n(x + w * 0.15)} ${n(fanY + 1.4)} ${n(x + w * 0.3)} ${n(fanY)}`, "stroke-width": W.symbol }),
|
|
549
|
-
circle(x, fanY, 0.8, { fill: PID.ink }),
|
|
550
|
-
circle(x, motorY, 2.4, { fill: PID.paper }),
|
|
551
|
-
label(x, motorY + 0.8, "M", 2.2),
|
|
552
|
-
];
|
|
553
|
-
return symbol({
|
|
554
|
-
kind: "exchanger.aircooler",
|
|
555
|
-
tag,
|
|
556
|
-
label: name,
|
|
557
|
-
box: [x0, y0, x1, motorY + 2.4],
|
|
558
|
-
boxes: [[x0, y0, x1, fanY + 1.6], [x - 2.6, fanY + 1.6, x + 2.6, motorY + 2.4]],
|
|
559
|
-
ports: { in: [x0, y, LEFT], out: [x1, y, RIGHT] },
|
|
560
|
-
body: parts,
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
// A packaged unit (chiller, circulator, gas booster skid, analyzer, DAQ): a box with a
|
|
565
|
-
// centred caption and ports at fractions of its sides.
|
|
566
|
-
export function unit({ x, y, w = 26, h = 16, tag = null, name = null, caption = null, ports = {}, glyph = null }) {
|
|
567
|
-
checkEquipmentTag(tag);
|
|
568
|
-
const x0 = x - w / 2;
|
|
569
|
-
const y0 = y - h / 2;
|
|
570
|
-
const parts = [poly([[x0, y0], [x0 + w, y0], [x0 + w, y0 + h], [x0, y0 + h]], { "stroke-width": W.equipment, fill: PID.paper })];
|
|
571
|
-
if (glyph === "coil") {
|
|
572
|
-
const z = [];
|
|
573
|
-
for (let i = 0; i <= 8; i++) z.push([x0 + 3 + ((w - 6) * i) / 8, y0 + h - 3.2 - (i % 2 ? 2 : 0)]);
|
|
574
|
-
parts.push(line(z, { "stroke-width": W.detail }));
|
|
575
|
-
} else if (glyph === "wave") {
|
|
576
|
-
const z = [];
|
|
577
|
-
for (let i = 0; i <= 16; i++) z.push([x0 + 3 + ((w - 6) * i) / 16, y0 + h - 3.2 + Math.sin((i / 16) * Math.PI * 4) * 0.8]);
|
|
578
|
-
parts.push(line(z, { "stroke-width": W.detail }));
|
|
579
|
-
}
|
|
580
|
-
if (caption) parts.push(label(x, glyph ? y - 0.2 : y + 0.9, caption, PID.text.label));
|
|
581
|
-
const resolved = {};
|
|
582
|
-
const at = (side, t) => {
|
|
583
|
-
if (side === "left") return [x0, y0 + h * t, LEFT];
|
|
584
|
-
if (side === "right") return [x0 + w, y0 + h * t, RIGHT];
|
|
585
|
-
if (side === "top") return [x0 + w * t, y0, UP];
|
|
586
|
-
return [x0 + w * t, y0 + h, DOWN];
|
|
587
|
-
};
|
|
588
|
-
for (const [name0, [side, t]] of Object.entries(ports)) resolved[name0] = at(side, t);
|
|
589
|
-
return symbol({ kind: "package.unit", tag, label: name, box: [x0, y0, x0 + w, y0 + h], ports: resolved, sidePort: at, body: parts });
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
// ---------------------------------------------------------------- inline items
|
|
593
|
-
|
|
594
|
-
// Inline symbols are drawn along +x in a local frame and turned to the line direction. A line
|
|
595
|
-
// running left mirrors the symbol instead of turning it over, so an actuator still stands above
|
|
596
|
-
// the line; letters are set upright at their turned position.
|
|
597
|
-
function inline({ kind, x, y, orient = "right", half = 3.5, height = 2.4, body, extraPorts = {}, extraBoxes = [], tag = null }) {
|
|
598
|
-
const mirrored = orient === "left";
|
|
599
|
-
const turn = mirrored ? ([px, py]) => [-px, py] : rot(ORIENT[orient] ?? 0);
|
|
600
|
-
const place = ([px, py]) => { const [rx, ry] = turn([px, py]); return [x + rx, y + ry]; };
|
|
601
|
-
const dirOf = (d) => turn(d).map((v) => Math.round(v));
|
|
602
|
-
const corners = [[-half, -height], [half, -height], [half, height], [-half, height]].map(place);
|
|
603
|
-
const xs = corners.map((c) => c[0]);
|
|
604
|
-
const ys = corners.map((c) => c[1]);
|
|
605
|
-
const box = [Math.min(...xs), Math.min(...ys), Math.max(...xs), Math.max(...ys)];
|
|
606
|
-
const ports = { a: [...place([-half, 0]), dirOf(LEFT)], b: [...place([half, 0]), dirOf(RIGHT)] };
|
|
607
|
-
for (const [name, [lx, ly, d]] of Object.entries(extraPorts)) ports[name] = [...place([lx, ly]), dirOf(d)];
|
|
608
|
-
const boxes = [box];
|
|
609
|
-
for (const local of extraBoxes) {
|
|
610
|
-
const pts = [[local[0], local[1]], [local[2], local[1]], [local[2], local[3]], [local[0], local[3]]].map(place);
|
|
611
|
-
boxes.push([Math.min(...pts.map((p) => p[0])), Math.min(...pts.map((p) => p[1])), Math.max(...pts.map((p) => p[0])), Math.max(...pts.map((p) => p[1]))]);
|
|
612
|
-
}
|
|
613
|
-
const all = boxes.reduce((acc, b) => [Math.min(acc[0], b[0]), Math.min(acc[1], b[1]), Math.max(acc[2], b[2]), Math.max(acc[3], b[3])]);
|
|
614
|
-
const parts = [body].flat();
|
|
615
|
-
const isText = (part) => typeof part === "string" && part.startsWith("<text");
|
|
616
|
-
const texts = parts.filter(isText).map((t) => {
|
|
617
|
-
const attr = (name) => Number(t.match(new RegExp(` ${name}="([^"]*)"`, "u"))?.[1] ?? 0);
|
|
618
|
-
const [tx, ty] = place([attr("x"), attr("y")]);
|
|
619
|
-
const along = turn([1, 0]);
|
|
620
|
-
const anchor = t.match(/ text-anchor="([^"]*)"/u)?.[1] ?? "middle";
|
|
621
|
-
const flip = { start: "end", end: "start", middle: "middle" };
|
|
622
|
-
const upright = along[0] < 0 ? flip[anchor] : along[0] !== 0 ? anchor : tx < x - 0.5 ? "end" : tx > x + 0.5 ? "start" : "middle";
|
|
623
|
-
return t.replace(/ x="[^"]*"/u, ` x="${n(tx)}"`).replace(/ y="[^"]*"/u, ` y="${n(ty)}"`).replace(/ text-anchor="[^"]*"/u, ` text-anchor="${upright}"`);
|
|
624
|
-
});
|
|
625
|
-
const transform = mirrored ? `translate(${n(x)} ${n(y)}) scale(-1 1)` : `translate(${n(x)} ${n(y)}) rotate(${ORIENT[orient] ?? 0})`;
|
|
626
|
-
return symbol({
|
|
627
|
-
kind,
|
|
628
|
-
tag,
|
|
629
|
-
box: all,
|
|
630
|
-
boxes,
|
|
631
|
-
ports,
|
|
632
|
-
body: [el("g", { transform }, parts.filter((p) => !isText(p))), ...texts].join(""),
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
const bowtie = (half = 3.5, hh = 2.2) => poly([[-half, -hh], [half, hh], [half, -hh], [-half, hh]]);
|
|
637
|
-
|
|
638
|
-
const ACTUATOR_ALIASES = Object.freeze({ manual: "hand", handwheel: "hand" });
|
|
639
|
-
|
|
640
|
-
function checkFail(fail) {
|
|
641
|
-
if (fail && !FAIL_POSITIONS[fail]) throw new Error(`pid: fail position "${fail}" must be FO, FC, FL or FI (ISA-5.1 Table 5.4.4)`);
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
// How far each actuator reaches from the valve body: its signal connects at that end.
|
|
645
|
-
const ACTUATOR_REACH = Object.freeze({ diaphragm: 7.6, piston: 8, motor: 9, solenoid: 8.8, hand: 4.2 });
|
|
646
|
-
|
|
647
|
-
// Actuators stand perpendicular to the line, on the local -y side (ISA-5.1 Table 5.4.2).
|
|
648
|
-
// On a vertical line the fail letters go beside the body, opposite the actuator, reading upright.
|
|
649
|
-
function actuatorParts(type, fail, orient = "right") {
|
|
650
|
-
const parts = [line([[0, 0], [0, -4.2]])];
|
|
651
|
-
const boxes = [[-3.4, -9.2, 3.4, 0]];
|
|
652
|
-
if (type === "diaphragm") parts.push(el("path", { d: "M-3.4 -4.2A3.4 3.4 0 0 1 3.4 -4.2Z", fill: "#ffffff" }));
|
|
653
|
-
else if (type === "solenoid") parts.push(poly([[-2.4, -4.2], [2.4, -4.2], [2.4, -8.8], [-2.4, -8.8]], { fill: "#ffffff" }), label(0, -5.6, "S", 2.4));
|
|
654
|
-
else if (type === "motor") parts.push(circle(0, -6.6, 2.4, { fill: "#ffffff" }), label(0, -5.7, "M", 2.4));
|
|
655
|
-
else if (type === "piston") parts.push(poly([[-2.6, -4.2], [2.6, -4.2], [2.6, -8], [-2.6, -8]], { fill: "#ffffff" }), line([[-2.6, -6.1], [2.6, -6.1]]));
|
|
656
|
-
else parts.push(line([[-2.6, -4.2], [2.6, -4.2]]));
|
|
657
|
-
const vertical = orient === "up" || orient === "down";
|
|
658
|
-
const baseline = orient === "up" ? -0.8 : 0.8;
|
|
659
|
-
if (fail) parts.push(vertical ? label(baseline, 3, fail, 2.2, { "data-label": "fail" }) : label(4.6, -1.2, fail, 2.2, { "text-anchor": "start", "data-label": "fail" }));
|
|
660
|
-
if (fail) boxes.push(vertical ? [-2.2, 2.4, 2.2, 9] : [3.4, -3.6, 9.2, 0.6]);
|
|
661
|
-
return { parts, boxes };
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
export function valve({ x, y, type = "gate", orient = "right", actuator = null, fail = null, tag = null }) {
|
|
665
|
-
const parts = [];
|
|
666
|
-
const act = actuator ? ACTUATOR_ALIASES[actuator] ?? actuator : null;
|
|
667
|
-
if (act && !ACTUATORS[act]) throw new Error(`pid: actuator must be one of ${Object.keys(ACTUATORS).join(", ")}`);
|
|
668
|
-
checkFail(fail);
|
|
669
|
-
let kind = act ? `valve.${type}.${act}` : `valve.${type}`;
|
|
670
|
-
let extraPorts = {};
|
|
671
|
-
let extraBoxes = [];
|
|
672
|
-
if (type === "butterfly") {
|
|
673
|
-
parts.push(line([[-3, -2.4], [-3, 2.4]]), line([[3, -2.4], [3, 2.4]]), line([[-3, 0], [3, 0]]), line([[-1.8, 1.8], [1.8, -1.8]]), circle(0, 0, 0.7, { fill: PID.ink }));
|
|
674
|
-
} else if (type === "check") {
|
|
675
|
-
parts.push(bowtie(), poly([[-3.5, -2.2], [0, 0], [-3.5, 2.2]], { fill: PID.ink }));
|
|
676
|
-
} else {
|
|
677
|
-
parts.push(bowtie());
|
|
678
|
-
if (type === "globe") parts.push(circle(0, 0, 0.9, { fill: PID.ink }));
|
|
679
|
-
if (type === "ball") parts.push(circle(0, 0, 1.3, { fill: "#ffffff" }));
|
|
680
|
-
if (type === "plug") parts.push(poly([[-0.9, -1.1], [0.9, -1.1], [0.9, 1.1], [-0.9, 1.1]], { fill: "#ffffff" }));
|
|
681
|
-
if (type === "needle") parts.push(poly([[-1, -3.6], [1, -3.6], [0, -0.6]], { fill: PID.ink }), line([[0, -3.6], [0, -5.2]]));
|
|
682
|
-
if (type === "diaphragm") parts.push(el("path", { d: "M-2.4 -2.2A2.4 1.6 0 0 1 2.4 -2.2" }));
|
|
683
|
-
if (type === "threeway") {
|
|
684
|
-
parts.push(poly([[0, 0], [-2.2, 3.5], [2.2, 3.5]]));
|
|
685
|
-
extraPorts = { c: [0, 3.5, DOWN] };
|
|
686
|
-
extraBoxes = [[-2.4, 0, 2.4, 3.6]];
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
if (type === "needle") extraBoxes.push([-1.2, -5.4, 1.2, 0]);
|
|
690
|
-
if (type === "diaphragm") extraBoxes.push([-2.6, -3.9, 2.6, 0]);
|
|
691
|
-
if (act) {
|
|
692
|
-
const a = actuatorParts(act, fail, orient);
|
|
693
|
-
parts.push(...a.parts);
|
|
694
|
-
extraBoxes.push(...a.boxes);
|
|
695
|
-
extraPorts = { ...extraPorts, actuator: [0, -ACTUATOR_REACH[act], UP] };
|
|
696
|
-
}
|
|
697
|
-
if (!describeKind(kind)) throw new Error(`pid: unknown valve type ${type}`);
|
|
698
|
-
return inline({ kind, x, y, orient, body: parts, extraPorts, extraBoxes, tag });
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
// An angle valve sits where the line turns: one body toward the inlet, one toward the outlet,
|
|
702
|
-
// the actuator (if any) on the side away from the inlet.
|
|
703
|
-
export function angleValve({ x, y, inlet = "down", outlet = "right", actuator = null, fail = null, tag = null }) {
|
|
704
|
-
const dirs = { right: RIGHT, left: LEFT, up: UP, down: DOWN };
|
|
705
|
-
const din = dirs[inlet];
|
|
706
|
-
const dout = dirs[outlet];
|
|
707
|
-
if (!din || !dout || din[0] * dout[0] + din[1] * dout[1] !== 0) throw new Error("angleValve: inlet and outlet must be two perpendicular sides (left, right, up, down)");
|
|
708
|
-
const act = actuator ? ACTUATOR_ALIASES[actuator] ?? actuator : null;
|
|
709
|
-
if (act && !ACTUATORS[act]) throw new Error(`pid: actuator must be one of ${Object.keys(ACTUATORS).join(", ")}`);
|
|
710
|
-
checkFail(fail);
|
|
711
|
-
const triangle = (d) => [[x, y], [x + d[0] * 3.5 - d[1] * 2.2, y + d[1] * 3.5 + d[0] * 2.2], [x + d[0] * 3.5 + d[1] * 2.2, y + d[1] * 3.5 - d[0] * 2.2]];
|
|
712
|
-
const tris = [triangle(din), triangle(dout)];
|
|
713
|
-
const parts = tris.map((t) => poly(t));
|
|
714
|
-
const corners = tris.flat();
|
|
715
|
-
const boxes = [[Math.min(...corners.map((p) => p[0])), Math.min(...corners.map((p) => p[1])), Math.max(...corners.map((p) => p[0])), Math.max(...corners.map((p) => p[1]))]];
|
|
716
|
-
if (act) {
|
|
717
|
-
const away = [-din[0], -din[1]];
|
|
718
|
-
const angle = Math.round((Math.atan2(away[1], away[0]) * 180) / Math.PI) + 90;
|
|
719
|
-
const a = actuatorParts(act, fail);
|
|
720
|
-
parts.push(el("g", { transform: `translate(${n(x)} ${n(y)}) rotate(${angle})` }, a.parts));
|
|
721
|
-
const r = rot(angle);
|
|
722
|
-
for (const b of a.boxes) {
|
|
723
|
-
const pts = [[b[0], b[1]], [b[2], b[1]], [b[2], b[3]], [b[0], b[3]]].map(r).map(([px, py]) => [x + px, y + py]);
|
|
724
|
-
boxes.push([Math.min(...pts.map((p) => p[0])), Math.min(...pts.map((p) => p[1])), Math.max(...pts.map((p) => p[0])), Math.max(...pts.map((p) => p[1]))]);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
const all = boxes.reduce((acc, b) => [Math.min(acc[0], b[0]), Math.min(acc[1], b[1]), Math.max(acc[2], b[2]), Math.max(acc[3], b[3])]);
|
|
728
|
-
return symbol({
|
|
729
|
-
kind: act ? `valve.angle.${act}` : "valve.angle",
|
|
730
|
-
tag,
|
|
731
|
-
box: all,
|
|
732
|
-
boxes,
|
|
733
|
-
ports: {
|
|
734
|
-
inlet: [x + din[0] * 3.5, y + din[1] * 3.5, din],
|
|
735
|
-
outlet: [x + dout[0] * 3.5, y + dout[1] * 3.5, dout],
|
|
736
|
-
...(act ? { actuator: [x - din[0] * ACTUATOR_REACH[act], y - din[1] * ACTUATOR_REACH[act], [-din[0], -din[1]]] } : {}),
|
|
737
|
-
},
|
|
738
|
-
body: parts,
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
export function regulator({ x, y, orient = "right", backPressure = false, tag = null }) {
|
|
743
|
-
const sense = backPressure ? -3.5 : 3.5;
|
|
744
|
-
const parts = [
|
|
745
|
-
bowtie(),
|
|
746
|
-
line([[0, 0], [0, -4.2]]),
|
|
747
|
-
el("path", { d: "M-3.4 -4.2A3.4 3.4 0 0 1 3.4 -4.2Z", fill: "#ffffff" }),
|
|
748
|
-
line([[backPressure ? -3.4 : 3.4, -5.2], [sense + (backPressure ? -2.2 : 2.2), -5.2], [sense + (backPressure ? -2.2 : 2.2), 0]], { "stroke-width": W.signal, "stroke-dasharray": "0.8 0.6" }),
|
|
749
|
-
];
|
|
750
|
-
const sx = sense + (backPressure ? -2.2 : 2.2);
|
|
751
|
-
return inline({ kind: backPressure ? "valve.backpressure" : "valve.regulator", x, y, orient, body: parts, extraBoxes: [[Math.min(-3.4, sx), -7.8, Math.max(3.4, sx), 0]], tag });
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
// A pressure safety valve: inlet from below, outlet to the side, spring on top.
|
|
755
|
-
export function safetyValve({ x, y, outlet = "right", tag = null, setPressure = null }) {
|
|
756
|
-
const m = outlet === "left" ? -1 : 1;
|
|
757
|
-
const parts = [
|
|
758
|
-
poly([[x, y], [x - 2.4, y + 4], [x + 2.4, y + 4]]),
|
|
759
|
-
poly([[x, y], [x + m * 4, y - 2.4], [x + m * 4, y + 2.4]]),
|
|
760
|
-
line([[x, y], [x, y - 3]]),
|
|
761
|
-
line([[x, y - 3], [x - 1.6, y - 3.8], [x + 1.6, y - 4.8], [x - 1.6, y - 5.8], [x + 1.6, y - 6.8], [x, y - 7.4]], { "stroke-width": W.detail }),
|
|
762
|
-
];
|
|
763
|
-
const boxes = [[Math.min(x - 2.4, x + m * 4), y - 7.6, Math.max(x + 2.4, x + m * 4), y + 4]];
|
|
764
|
-
if (setPressure) {
|
|
765
|
-
parts.push(label(x - m * 3, y - 4.6, setPressure, 2.2, { "text-anchor": m > 0 ? "end" : "start", "data-label": "set" }));
|
|
766
|
-
}
|
|
767
|
-
return symbol({
|
|
768
|
-
kind: "valve.safety",
|
|
769
|
-
tag,
|
|
770
|
-
box: boxes[0],
|
|
771
|
-
boxes,
|
|
772
|
-
ports: { inlet: [x, y + 4, DOWN], outlet: [x + m * 4, y, m > 0 ? RIGHT : LEFT] },
|
|
773
|
-
body: parts,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
export function ruptureDisk({ x, y, orient = "up", tag = null }) {
|
|
778
|
-
const parts = [line([[-1.6, -3], [-1.6, 3]]), line([[1.6, -3], [1.6, 3]]), el("path", { d: "M-1.6 -2.6Q1.2 0 -1.6 2.6" })];
|
|
779
|
-
return inline({ kind: "relief.rupture", x, y, orient, half: 1.6, height: 3, body: parts, tag });
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
export function orifice({ x, y, orient = "right", tag = null }) {
|
|
783
|
-
return inline({ kind: "flow.orifice", x, y, orient, half: 1, height: 3, body: [line([[-1, -3], [-1, 3]]), line([[1, -3], [1, 3]])], tag });
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
export function rotameter({ x, y, orient = "up", tag = null }) {
|
|
787
|
-
const parts = [poly([[-3.5, -1.2], [3.5, -2.2], [3.5, 2.2], [-3.5, 1.2]]), circle(-0.6, 0, 0.8, { fill: PID.ink })];
|
|
788
|
-
return inline({ kind: "flow.rotameter", x, y, orient, half: 3.5, height: 2.2, body: parts, tag });
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
export function mfc({ x, y, orient = "right", tag = null }) {
|
|
792
|
-
const parts = [poly([[-6, -3.5], [6, -3.5], [6, 3.5], [-6, 3.5]], { fill: "#ffffff" }), label(0, 0.9, "MFC", 2.4)];
|
|
793
|
-
return inline({ kind: "flow.mfc", x, y, orient, half: 6, height: 3.5, body: parts, extraPorts: { signal: [0, -3.5, UP] }, tag });
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
export function filter({ x, y, orient = "right", tag = null }) {
|
|
797
|
-
const parts = [poly([[-3.4, 0], [0, -3.4], [3.4, 0], [0, 3.4]], { fill: "#ffffff" }), line([[0, -3.4], [0, 3.4]], { "stroke-dasharray": "0.8 0.6" })];
|
|
798
|
-
return inline({ kind: "line.filter", x, y, orient, half: 3.4, height: 3.4, body: parts, tag });
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
// Concentric reducers taper on both sides; an eccentric one keeps one side flat (bottom flat
|
|
802
|
-
// by default, as on pump suctions, so no vapour pocket forms).
|
|
803
|
-
export function reducer({ x, y, orient = "right", eccentric = false, flat = "bottom" }) {
|
|
804
|
-
const shape = !eccentric
|
|
805
|
-
? [[-2.4, -2.4], [2.4, -1.4], [2.4, 1.4], [-2.4, 2.4]]
|
|
806
|
-
: flat === "top" ? [[-2.4, -2.4], [2.4, -2.4], [2.4, 0.4], [-2.4, 2.4]] : [[-2.4, -2.4], [2.4, -0.4], [2.4, 2.4], [-2.4, 2.4]];
|
|
807
|
-
return inline({ kind: eccentric ? "line.reducer-eccentric" : "line.reducer", x, y, orient, half: 2.4, height: 2.4, body: [poly(shape)] });
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
export function flange({ x, y, orient = "right" }) {
|
|
811
|
-
return inline({ kind: "line.flange", x, y, orient, half: 0.7, height: 2.8, body: [line([[-0.7, -2.8], [-0.7, 2.8]], { "stroke-width": W.symbol }), line([[0.7, -2.8], [0.7, 2.8]], { "stroke-width": W.symbol })] });
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
export function sightGlass({ x, y, orient = "right" }) {
|
|
815
|
-
return inline({ kind: "line.sightglass", x, y, orient, half: 2.8, height: 2.8, body: [circle(0, 0, 2.8, { fill: "#ffffff" }), circle(0, 0, 1.2)] });
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
// A spectacle (figure-8) blind: the half in the line is solid when the line is blinded
|
|
819
|
-
// (normally closed) and a ring when it is open; the other half hangs off the line.
|
|
820
|
-
export function blind({ x, y, orient = "right", state = "closed" }) {
|
|
821
|
-
const closed = state !== "open";
|
|
822
|
-
const body = [
|
|
823
|
-
line([[0, -1.8], [0, -3.2]], { "stroke-width": W.symbol }),
|
|
824
|
-
circle(0, 0, 1.8, { fill: closed ? PID.ink : PID.paper }),
|
|
825
|
-
circle(0, -5, 1.8, { fill: closed ? PID.paper : PID.ink }),
|
|
826
|
-
];
|
|
827
|
-
return inline({ kind: closed ? "line.blind" : "line.blind-open", x, y, orient, half: 1.8, height: 1.8, body, extraBoxes: [[-1.9, -6.9, 1.9, 0]] });
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
// Primary flow elements (ISA-5.1 Table 5.2.3). Elements without a drawn form of their own
|
|
831
|
-
// carry the measurement notation of Table 5.2.2 in a small box on the line.
|
|
832
|
-
const FLOW_NOTATION = Object.freeze({ magnetic: "MAG", coriolis: "COR", vortex: "VOR", turbine: "TUR", ultrasonic: "US", thermal: "TMF" });
|
|
833
|
-
export function flowElement({ x, y, type = "orifice", orient = "right", tag = null }) {
|
|
834
|
-
if (type === "orifice") return orifice({ x, y, orient, tag });
|
|
835
|
-
if (type === "venturi") {
|
|
836
|
-
const body = [line([[-4, -2.4], [-1.2, -1.1], [1.2, -1.1], [4, -2.4]]), line([[-4, 2.4], [-1.2, 1.1], [1.2, 1.1], [4, 2.4]])];
|
|
837
|
-
return inline({ kind: "flow.venturi", x, y, orient, half: 4, height: 2.4, body, tag });
|
|
838
|
-
}
|
|
839
|
-
const note = FLOW_NOTATION[type];
|
|
840
|
-
if (!note) throw new Error(`flowElement: type must be orifice, venturi or one of ${Object.keys(FLOW_NOTATION).join(", ")}`);
|
|
841
|
-
const body = [poly([[-4.4, -2.4], [4.4, -2.4], [4.4, 2.4], [-4.4, 2.4]], { fill: PID.paper }), label(0, 0.85, note, 2.4)];
|
|
842
|
-
return inline({ kind: `flow.${type}`, x, y, orient, half: 4.4, height: 2.4, body, tag });
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
// ---------------------------------------------------------------- instruments
|
|
846
|
-
|
|
847
|
-
// Round-1 location names: a location alone used to pick the whole bubble.
|
|
848
|
-
const LEGACY_LOCATION = Object.freeze({
|
|
849
|
-
panel: ["discrete", "main"], "panel-rear": ["discrete", "main-rear"], "local-panel": ["discrete", "aux"],
|
|
850
|
-
dcs: ["shared", "main"], plc: ["plc", "main"],
|
|
851
|
-
});
|
|
852
|
-
|
|
853
|
-
// ISA-5.1 Table 5.1.1: the shape says what kind of device or function it is, the lines across
|
|
854
|
-
// it say where it lives (none in the field, one in the main control room, two on an auxiliary
|
|
855
|
-
// or local panel; dashed when the operator cannot normally reach it).
|
|
856
|
-
export function instrument({ x, y, tag, fn = null, location = "field", r = 5 }) {
|
|
857
|
-
const parsed = parseInstrumentTag(tag);
|
|
858
|
-
if (!parsed.ok) throw new Error(`pid: instrument tag "${tag}": ${parsed.error}`);
|
|
859
|
-
const [legacyFn, legacyLocation] = LEGACY_LOCATION[location] ?? [null, location];
|
|
860
|
-
const func = fn ?? legacyFn ?? "discrete";
|
|
861
|
-
const where = LEGACY_LOCATION[location] ? legacyLocation : location;
|
|
862
|
-
if (!FUNCTIONS[func]) throw new Error(`pid: instrument fn must be one of ${Object.keys(FUNCTIONS).join(", ")}`);
|
|
863
|
-
if (!LOCATIONS[where]) throw new Error(`pid: instrument location must be one of ${Object.keys(LOCATIONS).join(", ")}`);
|
|
864
|
-
const kind = `instrument.${func}-${where}`;
|
|
865
|
-
const parts = [];
|
|
866
|
-
const square = () => poly([[x - r, y - r], [x + r, y - r], [x + r, y + r], [x - r, y + r]], { fill: "#ffffff" });
|
|
867
|
-
if (func === "shared") parts.push(square(), circle(x, y, r, { fill: "#ffffff" }));
|
|
868
|
-
else if (func === "plc") parts.push(square(), poly([[x, y - r], [x + r, y], [x, y + r], [x - r, y]]));
|
|
869
|
-
else if (func === "computer") parts.push(poly([[x - r, y], [x - r / 2, y - r * 0.866], [x + r / 2, y - r * 0.866], [x + r, y], [x + r / 2, y + r * 0.866], [x - r / 2, y + r * 0.866]], { fill: "#ffffff" }));
|
|
870
|
-
else parts.push(circle(x, y, r, { fill: "#ffffff" }));
|
|
871
|
-
const rear = where.endsWith("-rear") ? { "stroke-dasharray": "0.9 0.6" } : {};
|
|
872
|
-
if (where.startsWith("main")) parts.push(line([[x - r, y], [x + r, y]], rear));
|
|
873
|
-
if (where.startsWith("aux")) parts.push(line([[x - r, y - 0.35], [x + r, y - 0.35]], rear), line([[x - r, y + 0.35], [x + r, y + 0.35]], rear));
|
|
874
|
-
const letters = parsed.letters;
|
|
875
|
-
const size = Math.min(letters.length >= 4 ? 2.1 : PID.text.tag, r * 0.5);
|
|
876
|
-
parts.push(el("text", { x, y: y - r * 0.16, "font-family": FONT_LATIN, "font-size": size, "text-anchor": "middle", fill: PID.ink, stroke: "none", "data-label": "tag-letters" }, esc(letters)));
|
|
877
|
-
parts.push(el("text", { x, y: y + r * 0.58, "font-family": FONT_LATIN, "font-size": Math.min(PID.text.small + 0.2, r * 0.44), "text-anchor": "middle", fill: PID.ink, stroke: "none", "data-label": "tag-loop" }, esc(parsed.loop)));
|
|
878
|
-
return symbol({
|
|
879
|
-
kind,
|
|
880
|
-
tag: `${letters}-${parsed.loop}`,
|
|
881
|
-
box: [x - r, y - r, x + r, y + r],
|
|
882
|
-
ports: { top: [x, y - r, UP], bottom: [x, y + r, DOWN], left: [x - r, y, LEFT], right: [x + r, y, RIGHT] },
|
|
883
|
-
body: parts,
|
|
884
|
-
meta: { meaning: parsed.meaning },
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export function interlock({ x, y, text = "I", r = 4.6 }) {
|
|
889
|
-
return symbol({
|
|
890
|
-
kind: "logic.interlock",
|
|
891
|
-
tag: null,
|
|
892
|
-
box: [x - r, y - r, x + r, y + r],
|
|
893
|
-
ports: { top: [x, y - r, UP], bottom: [x, y + r, DOWN], left: [x - r, y, LEFT], right: [x + r, y, RIGHT] },
|
|
894
|
-
body: [poly([[x, y - r], [x + r, y], [x, y + r], [x - r, y]], { fill: "#ffffff" }), label(x, y + 0.9, text, 2.2)],
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
// ---------------------------------------------------------------- terminals
|
|
899
|
-
|
|
900
|
-
export function vent({ x, y, text = "ATM" }) {
|
|
901
|
-
const parts = [line([[x, y], [x, y - 4]]), el("path", { d: `M${n(x)} ${n(y - 4)}A2 2 0 0 1 ${n(x + 4)} ${n(y - 4)}L${n(x + 4)} ${n(y - 2.6)}` }), label(x + 4, y + 0.6, text, 2.2)];
|
|
902
|
-
return symbol({ kind: "terminal.vent", box: [x - 0.5, y - 6.2, x + 6.4, y + 0.8], ports: { in: [x, y, DOWN] }, body: parts });
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
export function drain({ x, y, text = "DR" }) {
|
|
906
|
-
const parts = [poly([[x - 2, y], [x + 2, y], [x, y + 2.8]]), label(x, y + 5.6, text, 2.2)];
|
|
907
|
-
return symbol({ kind: "terminal.drain", box: [x - 2.8, y, x + 2.8, y + 5.8], ports: { in: [x, y, UP] }, body: parts });
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
export function samplePoint({ x, y, text = "SP", facing = "down" }) {
|
|
911
|
-
const s = facing === "up" ? -1 : 1;
|
|
912
|
-
const parts = [line([[x, y], [x, y + s * 3]]), poly([[x - 1.4, y + s * 3], [x + 1.4, y + s * 3], [x, y + s * 4.8]], { fill: PID.ink }), label(x + 2.4, y + s * 4.6 + (s > 0 ? 0.6 : 0), text, 2.2, { "text-anchor": "start" })];
|
|
913
|
-
const y0 = Math.min(y, y + s * 5.4);
|
|
914
|
-
return symbol({ kind: "terminal.sample", box: [x - 1.6, y0, x + 2.4 + text.length * 1.6, Math.max(y, y + s * 5.4)], ports: { in: [x, y, s > 0 ? UP : DOWN] }, body: parts });
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
// Off-page and utility connectors: a pentagon pointing along the flow, the text inside.
|
|
918
|
-
function connector({ kind, x, y, text, width, pointing }) {
|
|
919
|
-
const h = 5;
|
|
920
|
-
const tip = 2.6;
|
|
921
|
-
const m = pointing === "left" ? -1 : 1;
|
|
922
|
-
const x0 = x;
|
|
923
|
-
const x1 = x + m * (width + tip);
|
|
924
|
-
const pts = [[x0, y - h / 2], [x + m * width, y - h / 2], [x1, y], [x + m * width, y + h / 2], [x0, y + h / 2]];
|
|
925
|
-
const textX = x + (m * width) / 2;
|
|
926
|
-
return symbol({
|
|
927
|
-
kind,
|
|
928
|
-
box: [Math.min(x0, x1), y - h / 2, Math.max(x0, x1), y + h / 2],
|
|
929
|
-
ports: { in: [x0, y, m > 0 ? LEFT : RIGHT], out: [x1, y, m > 0 ? RIGHT : LEFT] },
|
|
930
|
-
body: [poly(pts, { fill: "#ffffff" }), label(textX, y + 0.8, text, 2.2)],
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
export const offPage = ({ x, y, text, pointing = "right" }) =>
|
|
935
|
-
connector({ kind: "terminal.offpage", x, y, text, width: Math.max(14, text.length * 1.45 + 3), pointing });
|
|
936
|
-
export const utility = ({ x, y, text, pointing = "right" }) =>
|
|
937
|
-
connector({ kind: "terminal.utility", x, y, text, width: Math.max(8, text.length * 1.45 + 2.4), pointing });
|