@litfamily/litgrok 1.0.34 → 1.0.35
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/.grok/hooks/lit-status-line.mjs +59 -1
- package/.grok/rules/00-litgrok.md +4 -6
- package/.grok/skills/browser-drive/scripts/capability-probe.mjs +1 -1
- package/.grok/skills/frontend-ui-ux/SKILL.md +47 -39
- package/.grok/skills/lit-diagram-drawer/SKILL.md +32 -93
- package/.grok/skills/lit-docx/SKILL.md +31 -77
- package/.grok/skills/lit-humanizer/scripts/extract.mjs +1 -1
- package/.grok/skills/lit-humanizer/scripts/test-fixtures.mjs +1 -1
- package/.grok/skills/lit-pptx/SKILL.md +30 -90
- package/.grok/skills/lit-schematic/SKILL.md +30 -115
- package/.grok/skills/lit-scientific-visualization/SKILL.md +36 -221
- package/.grok/skills/lit-typographic-motion/SKILL.md +40 -29
- package/.grok/skills/litgrok/SKILL.md +6 -3
- package/.grok/skills/litwork/SKILL.md +1 -1
- package/.grok/skills/lsp-setup/scripts/lsp-server-table.mjs +1 -1
- package/.grok/skills/readme-studio/SKILL.md +40 -24
- package/.grok/skills/visual-qa/SKILL.md +33 -28
- package/.grok-plugin/plugin.json +1 -1
- package/CHANGELOG.md +12 -1
- package/CONTRIBUTING.md +0 -1
- package/README.md +9 -9
- package/README_ko-KR.md +9 -9
- package/bin/litgrok.mjs +351 -30
- package/docs/assets/readme/README.md +7 -0
- package/docs/assets/readme/badge-version.svg +1 -1
- package/docs/reference.md +11 -5
- package/docs/reference_ko-KR.md +10 -5
- package/package.json +4 -6
- package/plugin.json +1 -1
- package/.grok/skills/frontend-ui-ux/ATTRIBUTION.md +0 -23
- package/.grok/skills/frontend-ui-ux/LICENSE +0 -21
- package/.grok/skills/frontend-ui-ux/PROVENANCE.json +0 -38
- package/.grok/skills/frontend-ui-ux/SOURCE-MANIFEST.json +0 -1060
- package/.grok/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -24
- package/.grok/skills/frontend-ui-ux/data/design-intelligence.json +0 -1
- package/.grok/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +0 -9
- package/.grok/skills/frontend-ui-ux/examples/phase-3-readme-motion-ab.md +0 -24
- package/.grok/skills/frontend-ui-ux/kit/components.css +0 -414
- package/.grok/skills/frontend-ui-ux/kit/fonts.json +0 -22
- package/.grok/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
- package/.grok/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
- package/.grok/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
- package/.grok/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
- package/.grok/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
- package/.grok/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
- package/.grok/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
- package/.grok/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
- package/.grok/skills/frontend-ui-ux/kit/ui.js +0 -226
- package/.grok/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +0 -217
- package/.grok/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +0 -201
- package/.grok/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +0 -21
- package/.grok/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +0 -873
- package/.grok/skills/frontend-ui-ux/references/adaptive-layout.md +0 -88
- package/.grok/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -87
- package/.grok/skills/frontend-ui-ux/references/complete-contract.md +0 -572
- package/.grok/skills/frontend-ui-ux/references/composition.md +0 -79
- package/.grok/skills/frontend-ui-ux/references/craft-floor.md +0 -262
- package/.grok/skills/frontend-ui-ux/references/creative-directions.md +0 -74
- package/.grok/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -28
- package/.grok/skills/frontend-ui-ux/references/design/README.md +0 -248
- package/.grok/skills/frontend-ui-ux/references/design/_INDEX.md +0 -191
- package/.grok/skills/frontend-ui-ux/references/design/airbnb.md +0 -393
- package/.grok/skills/frontend-ui-ux/references/design/airtable.md +0 -92
- package/.grok/skills/frontend-ui-ux/references/design/apple.md +0 -250
- package/.grok/skills/frontend-ui-ux/references/design/aside.md +0 -209
- package/.grok/skills/frontend-ui-ux/references/design/binance.md +0 -348
- package/.grok/skills/frontend-ui-ux/references/design/bmw.md +0 -183
- package/.grok/skills/frontend-ui-ux/references/design/brutalist-skill.md +0 -92
- package/.grok/skills/frontend-ui-ux/references/design/bugatti.md +0 -271
- package/.grok/skills/frontend-ui-ux/references/design/cal.md +0 -262
- package/.grok/skills/frontend-ui-ux/references/design/claude.md +0 -315
- package/.grok/skills/frontend-ui-ux/references/design/clay.md +0 -307
- package/.grok/skills/frontend-ui-ux/references/design/clickhouse.md +0 -284
- package/.grok/skills/frontend-ui-ux/references/design/clone-from-url.md +0 -65
- package/.grok/skills/frontend-ui-ux/references/design/cohere.md +0 -269
- package/.grok/skills/frontend-ui-ux/references/design/coinbase.md +0 -132
- package/.grok/skills/frontend-ui-ux/references/design/composio.md +0 -310
- package/.grok/skills/frontend-ui-ux/references/design/cursor.md +0 -312
- package/.grok/skills/frontend-ui-ux/references/design/design-system-architecture.md +0 -244
- package/.grok/skills/frontend-ui-ux/references/design/elevenlabs.md +0 -268
- package/.grok/skills/frontend-ui-ux/references/design/expo.md +0 -284
- package/.grok/skills/frontend-ui-ux/references/design/ferrari.md +0 -317
- package/.grok/skills/frontend-ui-ux/references/design/figma.md +0 -223
- package/.grok/skills/frontend-ui-ux/references/design/framer.md +0 -249
- package/.grok/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +0 -74
- package/.grok/skills/frontend-ui-ux/references/design/hashicorp.md +0 -281
- package/.grok/skills/frontend-ui-ux/references/design/ibm.md +0 -335
- package/.grok/skills/frontend-ui-ux/references/design/image-to-code-skill.md +0 -1228
- package/.grok/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +0 -798
- package/.grok/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +0 -1465
- package/.grok/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +0 -987
- package/.grok/skills/frontend-ui-ux/references/design/intercom.md +0 -149
- package/.grok/skills/frontend-ui-ux/references/design/kraken.md +0 -128
- package/.grok/skills/frontend-ui-ux/references/design/lamborghini.md +0 -291
- package/.grok/skills/frontend-ui-ux/references/design/layout-skill.md +0 -107
- package/.grok/skills/frontend-ui-ux/references/design/lazyweb.md +0 -77
- package/.grok/skills/frontend-ui-ux/references/design/linear.app.md +0 -370
- package/.grok/skills/frontend-ui-ux/references/design/lovable.md +0 -301
- package/.grok/skills/frontend-ui-ux/references/design/mastercard.md +0 -368
- package/.grok/skills/frontend-ui-ux/references/design/meta.md +0 -369
- package/.grok/skills/frontend-ui-ux/references/design/minimalist-skill.md +0 -85
- package/.grok/skills/frontend-ui-ux/references/design/minimax.md +0 -260
- package/.grok/skills/frontend-ui-ux/references/design/mintlify.md +0 -329
- package/.grok/skills/frontend-ui-ux/references/design/miro.md +0 -111
- package/.grok/skills/frontend-ui-ux/references/design/mistral.ai.md +0 -264
- package/.grok/skills/frontend-ui-ux/references/design/mongodb.md +0 -269
- package/.grok/skills/frontend-ui-ux/references/design/nike.md +0 -366
- package/.grok/skills/frontend-ui-ux/references/design/notion.md +0 -312
- package/.grok/skills/frontend-ui-ux/references/design/nvidia.md +0 -296
- package/.grok/skills/frontend-ui-ux/references/design/ollama.md +0 -270
- package/.grok/skills/frontend-ui-ux/references/design/opencode.ai.md +0 -284
- package/.grok/skills/frontend-ui-ux/references/design/output-skill.md +0 -49
- package/.grok/skills/frontend-ui-ux/references/design/pinterest.md +0 -233
- package/.grok/skills/frontend-ui-ux/references/design/playstation.md +0 -367
- package/.grok/skills/frontend-ui-ux/references/design/posthog.md +0 -259
- package/.grok/skills/frontend-ui-ux/references/design/raycast.md +0 -271
- package/.grok/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +0 -230
- package/.grok/skills/frontend-ui-ux/references/design/redesign-skill.md +0 -178
- package/.grok/skills/frontend-ui-ux/references/design/renault.md +0 -314
- package/.grok/skills/frontend-ui-ux/references/design/replicate.md +0 -264
- package/.grok/skills/frontend-ui-ux/references/design/resend.md +0 -306
- package/.grok/skills/frontend-ui-ux/references/design/revolut.md +0 -188
- package/.grok/skills/frontend-ui-ux/references/design/runwayml.md +0 -247
- package/.grok/skills/frontend-ui-ux/references/design/sanity.md +0 -360
- package/.grok/skills/frontend-ui-ux/references/design/sentry.md +0 -265
- package/.grok/skills/frontend-ui-ux/references/design/shopify.md +0 -353
- package/.grok/skills/frontend-ui-ux/references/design/soft-skill.md +0 -98
- package/.grok/skills/frontend-ui-ux/references/design/spacex.md +0 -197
- package/.grok/skills/frontend-ui-ux/references/design/spotify.md +0 -249
- package/.grok/skills/frontend-ui-ux/references/design/starbucks.md +0 -583
- package/.grok/skills/frontend-ui-ux/references/design/stitch-design-example.md +0 -121
- package/.grok/skills/frontend-ui-ux/references/design/stitch-skill.md +0 -184
- package/.grok/skills/frontend-ui-ux/references/design/stripe.md +0 -325
- package/.grok/skills/frontend-ui-ux/references/design/supabase.md +0 -258
- package/.grok/skills/frontend-ui-ux/references/design/superhuman.md +0 -255
- package/.grok/skills/frontend-ui-ux/references/design/taste-skill.md +0 -1206
- package/.grok/skills/frontend-ui-ux/references/design/tesla.md +0 -289
- package/.grok/skills/frontend-ui-ux/references/design/theverge.md +0 -342
- package/.grok/skills/frontend-ui-ux/references/design/together.ai.md +0 -266
- package/.grok/skills/frontend-ui-ux/references/design/uber.md +0 -298
- package/.grok/skills/frontend-ui-ux/references/design/vercel.md +0 -313
- package/.grok/skills/frontend-ui-ux/references/design/vodafone.md +0 -426
- package/.grok/skills/frontend-ui-ux/references/design/voltagent.md +0 -326
- package/.grok/skills/frontend-ui-ux/references/design/warp.md +0 -256
- package/.grok/skills/frontend-ui-ux/references/design/webflow.md +0 -95
- package/.grok/skills/frontend-ui-ux/references/design/wired.md +0 -281
- package/.grok/skills/frontend-ui-ux/references/design/wise.md +0 -176
- package/.grok/skills/frontend-ui-ux/references/design/x.ai.md +0 -260
- package/.grok/skills/frontend-ui-ux/references/design/zapier.md +0 -331
- package/.grok/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +0 -97
- package/.grok/skills/frontend-ui-ux/references/designpowers/README.md +0 -48
- package/.grok/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +0 -80
- package/.grok/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +0 -64
- package/.grok/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +0 -65
- package/.grok/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +0 -65
- package/.grok/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +0 -83
- package/.grok/skills/frontend-ui-ux/references/designpowers/orchestration.md +0 -80
- package/.grok/skills/frontend-ui-ux/references/designpowers/routing.md +0 -79
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +0 -21
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +0 -132
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +0 -109
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +0 -89
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +0 -113
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +0 -78
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +0 -121
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +0 -107
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +0 -120
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +0 -101
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +0 -199
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +0 -125
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +0 -106
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +0 -123
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +0 -122
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +0 -96
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +0 -78
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +0 -75
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +0 -117
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +0 -78
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
- package/.grok/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
- package/.grok/skills/frontend-ui-ux/references/evidence-review.md +0 -126
- package/.grok/skills/frontend-ui-ux/references/house-styles.md +0 -234
- package/.grok/skills/frontend-ui-ux/references/implementation-platforms.md +0 -103
- package/.grok/skills/frontend-ui-ux/references/inclusive-interface.md +0 -88
- package/.grok/skills/frontend-ui-ux/references/interaction-motion.md +0 -47
- package/.grok/skills/frontend-ui-ux/references/motion-guide.md +0 -130
- package/.grok/skills/frontend-ui-ux/references/operating-lanes.md +0 -92
- package/.grok/skills/frontend-ui-ux/references/perfection/README.md +0 -160
- package/.grok/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +0 -127
- package/.grok/skills/frontend-ui-ux/references/performance-delivery.md +0 -85
- package/.grok/skills/frontend-ui-ux/references/probe-loop.md +0 -27
- package/.grok/skills/frontend-ui-ux/references/product-direction.md +0 -80
- package/.grok/skills/frontend-ui-ux/references/production-interview.md +0 -17
- package/.grok/skills/frontend-ui-ux/references/production.md +0 -27
- package/.grok/skills/frontend-ui-ux/references/redesign-playbook.md +0 -91
- package/.grok/skills/frontend-ui-ux/references/slop-register.md +0 -150
- package/.grok/skills/frontend-ui-ux/references/system-foundations.md +0 -80
- package/.grok/skills/frontend-ui-ux/references/taste-direction.md +0 -86
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/README.md +0 -659
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +0 -26
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +0 -162
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +0 -106
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +0 -35
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +0 -162
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +0 -45
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +0 -54
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +0 -53
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +0 -53
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +0 -52
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +0 -54
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +0 -61
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +0 -54
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +0 -51
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +0 -50
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +0 -85
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +0 -74
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +0 -162
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +0 -100
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +0 -31
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +0 -262
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +0 -1148
- package/.grok/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +0 -114
- package/.grok/skills/frontend-ui-ux/references/visual-language.md +0 -80
- package/.grok/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -51
- package/.grok/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +0 -306
- package/.grok/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +0 -291
- package/.grok/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +0 -311
- package/.grok/skills/frontend-ui-ux/scripts/design-contract-format.mjs +0 -286
- package/.grok/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +0 -354
- package/.grok/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +0 -361
- package/.grok/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +0 -313
- package/.grok/skills/frontend-ui-ux/scripts/design-data.mjs +0 -68
- package/.grok/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
- package/.grok/skills/frontend-ui-ux/scripts/errors.mjs +0 -12
- package/.grok/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +0 -124
- package/.grok/skills/frontend-ui-ux/scripts/interface-probe-driver.mjs +0 -33
- package/.grok/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +0 -196
- package/.grok/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +0 -1555
- package/.grok/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +0 -153
- package/.grok/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +0 -57
- package/.grok/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +0 -139
- package/.grok/skills/frontend-ui-ux/scripts/interface-probe.mjs +0 -363
- package/.grok/skills/frontend-ui-ux/scripts/json-boundary.mjs +0 -63
- package/.grok/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
- package/.grok/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +0 -106
- package/.grok/skills/frontend-ui-ux/scripts/search.mjs +0 -43
- package/.grok/skills/frontend-ui-ux/scripts/source-replay.mjs +0 -153
- package/.grok/skills/frontend-ui-ux/scripts/strict-json.mjs +0 -143
- package/.grok/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -52
- package/.grok/skills/frontend-ui-ux/scripts/verify-canonical-corpus.mjs +0 -214
- package/.grok/skills/lit-diagram-drawer/NOTICE +0 -33
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
- package/.grok/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/.grok/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
- package/.grok/skills/lit-diagram-drawer/assets/icons.html +0 -231
- package/.grok/skills/lit-diagram-drawer/assets/index.html +0 -1
- package/.grok/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
- package/.grok/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
- package/.grok/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
- package/.grok/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
- package/.grok/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
- package/.grok/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
- package/.grok/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
- package/.grok/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
- package/.grok/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
- package/.grok/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
- package/.grok/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
- package/.grok/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
- package/.grok/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
- package/.grok/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
- package/.grok/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +0 -1
- package/.grok/skills/lit-diagram-drawer/references/accessibility.md +0 -37
- package/.grok/skills/lit-diagram-drawer/references/export.md +0 -29
- package/.grok/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
- package/.grok/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
- package/.grok/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
- package/.grok/skills/lit-diagram-drawer/references/import-schema.md +0 -28
- package/.grok/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
- package/.grok/skills/lit-diagram-drawer/references/motion.md +0 -29
- package/.grok/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
- package/.grok/skills/lit-diagram-drawer/references/output-spec.md +0 -48
- package/.grok/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
- package/.grok/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
- package/.grok/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
- package/.grok/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
- package/.grok/skills/lit-diagram-drawer/references/profiles.md +0 -24
- package/.grok/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
- package/.grok/skills/lit-diagram-drawer/references/style-guide.md +0 -76
- package/.grok/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
- package/.grok/skills/lit-diagram-drawer/references/type-bar.md +0 -51
- package/.grok/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-bump.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
- package/.grok/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
- package/.grok/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-er.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
- package/.grok/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-journey.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-layers.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-line.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-loop.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-nested.md +0 -59
- package/.grok/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
- package/.grok/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
- package/.grok/skills/lit-diagram-drawer/references/type-polar.md +0 -67
- package/.grok/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
- package/.grok/skills/lit-diagram-drawer/references/type-process.md +0 -58
- package/.grok/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
- package/.grok/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
- package/.grok/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
- package/.grok/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
- package/.grok/skills/lit-diagram-drawer/references/type-radar.md +0 -57
- package/.grok/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
- package/.grok/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
- package/.grok/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
- package/.grok/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
- package/.grok/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
- package/.grok/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
- package/.grok/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-state.md +0 -59
- package/.grok/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
- package/.grok/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
- package/.grok/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
- package/.grok/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
- package/.grok/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
- package/.grok/skills/lit-diagram-drawer/references/type-tree.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
- package/.grok/skills/lit-diagram-drawer/references/type-venn.md +0 -51
- package/.grok/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
- package/.grok/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
- package/.grok/skills/lit-diagram-drawer/references/verifier-guide.md +0 -64
- package/.grok/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
- package/.grok/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
- package/.grok/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
- package/.grok/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -219
- package/.grok/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -22
- package/.grok/skills/lit-diagram-drawer/scripts/drawio-extract.mjs +0 -359
- package/.grok/skills/lit-diagram-drawer/scripts/excalidraw-extract.mjs +0 -196
- package/.grok/skills/lit-diagram-drawer/scripts/export.mjs +0 -117
- package/.grok/skills/lit-diagram-drawer/scripts/import-common.mjs +0 -68
- package/.grok/skills/lit-diagram-drawer/scripts/mermaid-extract.mjs +0 -232
- package/.grok/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
- package/.grok/skills/lit-diagram-drawer/scripts/renderer-status.mjs +0 -43
- package/.grok/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -73
- package/.grok/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -16
- package/.grok/skills/lit-diagram-drawer/scripts/verify-coverage.mjs +0 -56
- package/.grok/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -22
- package/.grok/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
- package/.grok/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
- package/.grok/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -344
- package/.grok/skills/lit-docx/LICENSE +0 -21
- package/.grok/skills/lit-docx/NOTICE.md +0 -1
- package/.grok/skills/lit-docx/examples/01-report-ko.md +0 -137
- package/.grok/skills/lit-docx/examples/02-brief-ko.md +0 -82
- package/.grok/skills/lit-docx/examples/03-manual-ko.md +0 -118
- package/.grok/skills/lit-docx/examples/04-proposal-ko.md +0 -92
- package/.grok/skills/lit-docx/examples/05-memo-en.md +0 -42
- package/.grok/skills/lit-docx/examples/06-journal-en.md +0 -90
- package/.grok/skills/lit-docx/examples/07-report-en.md +0 -103
- package/.grok/skills/lit-docx/examples/08-proposal-en.md +0 -90
- package/.grok/skills/lit-docx/examples/09-memo-ko.md +0 -41
- package/.grok/skills/lit-docx/references/components.md +0 -151
- package/.grok/skills/lit-docx/references/direction-step.md +0 -129
- package/.grok/skills/lit-docx/references/frontmatter_schema.md +0 -42
- package/.grok/skills/lit-docx/references/journal_style_spec.md +0 -17
- package/.grok/skills/lit-docx/references/markdown_quality_checklist.md +0 -37
- package/.grok/skills/lit-docx/references/page-composition.md +0 -129
- package/.grok/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
- package/.grok/skills/lit-docx/references/slop_rules.md +0 -35
- package/.grok/skills/lit-docx/references/tonalities/brief.md +0 -98
- package/.grok/skills/lit-docx/references/tonalities/journal.md +0 -100
- package/.grok/skills/lit-docx/references/tonalities/manual.md +0 -107
- package/.grok/skills/lit-docx/references/tonalities/memo.md +0 -95
- package/.grok/skills/lit-docx/references/tonalities/proposal.md +0 -104
- package/.grok/skills/lit-docx/references/tonalities/report.md +0 -114
- package/.grok/skills/lit-docx/requirements.lock +0 -12
- package/.grok/skills/lit-docx/scripts/clean_markdown.py +0 -95
- package/.grok/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1377
- package/.grok/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -284
- package/.grok/skills/lit-docx/scripts/convert_pdf.py +0 -130
- package/.grok/skills/lit-docx/scripts/docx_design.py +0 -2446
- package/.grok/skills/lit-docx/scripts/docx_gate.py +0 -206
- package/.grok/skills/lit-docx/scripts/docx_layout.py +0 -959
- package/.grok/skills/lit-docx/scripts/edit_docx.py +0 -297
- package/.grok/skills/lit-docx/scripts/embed_images.py +0 -78
- package/.grok/skills/lit-docx/scripts/generate_docx_templates.py +0 -491
- package/.grok/skills/lit-docx/scripts/pdf_fonts.py +0 -63
- package/.grok/skills/lit-docx/scripts/run.mjs +0 -23
- package/.grok/skills/lit-docx/scripts/slop_lint.py +0 -563
- package/.grok/skills/lit-docx/scripts/visual_audit.py +0 -41
- package/.grok/skills/lit-docx/templates/docx/acs.docx +0 -0
- package/.grok/skills/lit-docx/templates/docx/elsevier.docx +0 -0
- package/.grok/skills/lit-docx/templates/docx/ieee.docx +0 -0
- package/.grok/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
- package/.grok/skills/lit-docx/templates/docx/nature.docx +0 -0
- package/.grok/skills/lit-docx/templates/latex/acs/README.md +0 -5
- package/.grok/skills/lit-docx/templates/latex/acs/template.tex +0 -42
- package/.grok/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
- package/.grok/skills/lit-docx/templates/latex/elsevier/template.tex +0 -43
- package/.grok/skills/lit-docx/templates/latex/ieee/README.md +0 -5
- package/.grok/skills/lit-docx/templates/latex/ieee/template.tex +0 -42
- package/.grok/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
- package/.grok/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -42
- package/.grok/skills/lit-docx/templates/latex/nature/README.md +0 -5
- package/.grok/skills/lit-docx/templates/latex/nature/template.tex +0 -42
- package/.grok/skills/lit-docx/templates/registry.yaml +0 -1366
- package/.grok/skills/lit-docx/templates/tonalities/brief.yaml +0 -28
- package/.grok/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
- package/.grok/skills/lit-docx/templates/tonalities/manual.yaml +0 -26
- package/.grok/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
- package/.grok/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
- package/.grok/skills/lit-docx/templates/tonalities/report.yaml +0 -26
- package/.grok/skills/lit-pptx/FORBIDDEN_TERMS.json +0 -55
- package/.grok/skills/lit-pptx/NOTICE.md +0 -1
- package/.grok/skills/lit-pptx/agents/analyst.md +0 -49
- package/.grok/skills/lit-pptx/agents/antithesis.md +0 -59
- package/.grok/skills/lit-pptx/agents/architect.md +0 -44
- package/.grok/skills/lit-pptx/agents/critic.md +0 -42
- package/.grok/skills/lit-pptx/agents/synthesizer.md +0 -47
- package/.grok/skills/lit-pptx/agents/thesis.md +0 -33
- package/.grok/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
- package/.grok/skills/lit-pptx/assets/azure/circle-md.png +0 -0
- package/.grok/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
- package/.grok/skills/lit-pptx/examples/01-pitch-signal-ko.md +0 -175
- package/.grok/skills/lit-pptx/examples/02-business-review-ledger-ko.md +0 -199
- package/.grok/skills/lit-pptx/examples/03-research-talk-paper-en.md +0 -177
- package/.grok/skills/lit-pptx/examples/04-lecture-chalk-ko.md +0 -176
- package/.grok/skills/lit-pptx/examples/05-data-review-night-en.md +0 -221
- package/.grok/skills/lit-pptx/examples/06-image-led-atlas-en.md +0 -143
- package/.grok/skills/lit-pptx/examples/07-briefing-gazette-ko.md +0 -192
- package/.grok/skills/lit-pptx/examples/08-status-update-ledger-en.md +0 -168
- package/.grok/skills/lit-pptx/examples/09-pitch-studio-en.md +0 -157
- package/.grok/skills/lit-pptx/examples/10-image-led-studio-ko.md +0 -175
- package/.grok/skills/lit-pptx/examples/11-business-review-night-en.md +0 -181
- package/.grok/skills/lit-pptx/examples/12-status-update-gazette-ko.md +0 -199
- package/.grok/skills/lit-pptx/examples/13-engineering-review-computational-brutalism-ko.md +0 -173
- package/.grok/skills/lit-pptx/examples/14-launch-pitch-neo-brutalism-ko.md +0 -154
- package/.grok/skills/lit-pptx/examples/15-design-lecture-bauhaus-ko.md +0 -139
- package/.grok/skills/lit-pptx/examples/16-community-programme-riso-ko.md +0 -158
- package/.grok/skills/lit-pptx/examples/17-public-data-briefing-newsroom-ko.md +0 -179
- package/.grok/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/.grok/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/.grok/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
- package/.grok/skills/lit-pptx/fonts/jetbrains-mono/provenance.json +0 -1
- package/.grok/skills/lit-pptx/package-lock.json +0 -795
- package/.grok/skills/lit-pptx/package.json +0 -13
- package/.grok/skills/lit-pptx/pretendard-font/OFL.txt +0 -94
- package/.grok/skills/lit-pptx/pretendard-font/public/static/Pretendard-Bold.otf +0 -0
- package/.grok/skills/lit-pptx/pretendard-font/public/static/Pretendard-Regular.otf +0 -0
- package/.grok/skills/lit-pptx/references/density-and-fill.md +0 -155
- package/.grok/skills/lit-pptx/references/direction-step.md +0 -237
- package/.grok/skills/lit-pptx/references/layout-families.md +0 -193
- package/.grok/skills/lit-pptx/references/title-treatments.md +0 -134
- package/.grok/skills/lit-pptx/references/tonalities/atlas.md +0 -121
- package/.grok/skills/lit-pptx/references/tonalities/bauhaus.md +0 -140
- package/.grok/skills/lit-pptx/references/tonalities/chalk.md +0 -133
- package/.grok/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -150
- package/.grok/skills/lit-pptx/references/tonalities/gazette.md +0 -125
- package/.grok/skills/lit-pptx/references/tonalities/ledger.md +0 -132
- package/.grok/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -161
- package/.grok/skills/lit-pptx/references/tonalities/newsroom.md +0 -144
- package/.grok/skills/lit-pptx/references/tonalities/night.md +0 -129
- package/.grok/skills/lit-pptx/references/tonalities/paper.md +0 -125
- package/.grok/skills/lit-pptx/references/tonalities/riso.md +0 -137
- package/.grok/skills/lit-pptx/references/tonalities/signal.md +0 -116
- package/.grok/skills/lit-pptx/references/tonalities/studio.md +0 -121
- package/.grok/skills/lit-pptx/requirements.lock +0 -12
- package/.grok/skills/lit-pptx/scripts/compile-deck.js +0 -451
- package/.grok/skills/lit-pptx/scripts/craft_extras.py +0 -307
- package/.grok/skills/lit-pptx/scripts/deck_output.py +0 -612
- package/.grok/skills/lit-pptx/scripts/deps.cjs +0 -83
- package/.grok/skills/lit-pptx/scripts/embed_fonts.py +0 -213
- package/.grok/skills/lit-pptx/scripts/inventory.py +0 -74
- package/.grok/skills/lit-pptx/scripts/learn_template.py +0 -433
- package/.grok/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
- package/.grok/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
- package/.grok/skills/lit-pptx/scripts/lib/font-map.js +0 -79
- package/.grok/skills/lit-pptx/scripts/lib/gen-bg.js +0 -85
- package/.grok/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -36
- package/.grok/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -512
- package/.grok/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
- package/.grok/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
- package/.grok/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -356
- package/.grok/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2236
- package/.grok/skills/lit-pptx/scripts/lib/render-pack.js +0 -3365
- package/.grok/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
- package/.grok/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
- package/.grok/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
- package/.grok/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
- package/.grok/skills/lit-pptx/scripts/ooxml_integrity.py +0 -37
- package/.grok/skills/lit-pptx/scripts/qa_deck.py +0 -809
- package/.grok/skills/lit-pptx/scripts/run.mjs +0 -25
- package/.grok/skills/lit-pptx/scripts/validate_pptx.py +0 -223
- package/.grok/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
- package/.grok/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -207
- package/.grok/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
- package/.grok/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
- package/.grok/skills/lit-pptx/specs/template-enrollment-contract.md +0 -379
- package/.grok/skills/lit-pptx/templates/bauhaus_light.css +0 -4
- package/.grok/skills/lit-pptx/templates/boilerplate_professional.css +0 -508
- package/.grok/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
- package/.grok/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
- package/.grok/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
- package/.grok/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
- package/.grok/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -435
- package/.grok/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
- package/.grok/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
- package/.grok/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
- package/.grok/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
- package/.grok/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
- package/.grok/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
- package/.grok/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
- package/.grok/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -81
- package/.grok/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
- package/.grok/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -87
- package/.grok/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -99
- package/.grok/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -81
- package/.grok/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -82
- package/.grok/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
- package/.grok/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
- package/.grok/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -82
- package/.grok/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -87
- package/.grok/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
- package/.grok/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -83
- package/.grok/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -81
- package/.grok/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -38
- package/.grok/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -133
- package/.grok/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -87
- package/.grok/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -85
- package/.grok/skills/lit-schematic/references/cutaway-outputs.md +0 -70
- package/.grok/skills/lit-schematic/references/isometric-craft.md +0 -101
- package/.grok/skills/lit-schematic/references/journal-figures.md +0 -72
- package/.grok/skills/lit-schematic/references/kit-api.md +0 -134
- package/.grok/skills/lit-schematic/references/pfd-and-layout.md +0 -53
- package/.grok/skills/lit-schematic/references/pid-drafting.md +0 -103
- package/.grok/skills/lit-schematic/references/pid-symbols.md +0 -163
- package/.grok/skills/lit-schematic/references/verification.md +0 -100
- package/.grok/skills/lit-schematic/scripts/doctor.mjs +0 -57
- package/.grok/skills/lit-schematic/scripts/lib/figure.mjs +0 -81
- package/.grok/skills/lit-schematic/scripts/lib/fonts.mjs +0 -27
- package/.grok/skills/lit-schematic/scripts/lib/geom.mjs +0 -113
- package/.grok/skills/lit-schematic/scripts/lib/interactive.mjs +0 -292
- package/.grok/skills/lit-schematic/scripts/lib/isa.mjs +0 -115
- package/.grok/skills/lit-schematic/scripts/lib/iso.mjs +0 -719
- package/.grok/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -162
- package/.grok/skills/lit-schematic/scripts/lib/pid.mjs +0 -937
- package/.grok/skills/lit-schematic/scripts/lib/png.mjs +0 -132
- package/.grok/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -658
- package/.grok/skills/lit-schematic/scripts/lib/route.mjs +0 -218
- package/.grok/skills/lit-schematic/scripts/lib/sheet.mjs +0 -890
- package/.grok/skills/lit-schematic/scripts/lib/svg.mjs +0 -82
- package/.grok/skills/lit-schematic/scripts/lib/theme.mjs +0 -115
- package/.grok/skills/lit-schematic/scripts/motion.mjs +0 -129
- package/.grok/skills/lit-schematic/scripts/qa.mjs +0 -92
- package/.grok/skills/lit-schematic/scripts/render.mjs +0 -233
- package/.grok/skills/lit-schematic/scripts/scaffold.mjs +0 -60
- package/.grok/skills/lit-scientific-visualization/scripts/verify-canonical-corpus.mjs +0 -181
- package/.grok/skills/lit-typographic-motion/NOTICE +0 -23
- package/.grok/skills/lit-typographic-motion/THIRD_PARTY_NOTICES +0 -56
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-OFL.txt +0 -93
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w100-wt400.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w100-wt700.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w100-wt900.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w125-wt400.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w125-wt700.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w125-wt900.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w75-wt400.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w75-wt700.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Archivo-w75-wt900.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/JetBrainsMono-OFL.txt +0 -93
- package/.grok/skills/lit-typographic-motion/fonts/JetBrainsMono-wght-latin.woff2 +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Silkscreen-Bold.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/Silkscreen-OFL.txt +0 -93
- package/.grok/skills/lit-typographic-motion/fonts/Silkscreen-Regular.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/VT323-OFL.txt +0 -93
- package/.grok/skills/lit-typographic-motion/fonts/VT323-Regular.ttf +0 -0
- package/.grok/skills/lit-typographic-motion/fonts/pins.json +0 -386
- package/.grok/skills/lit-typographic-motion/fonts/stroke/CREDITS +0 -41
- package/.grok/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
- package/.grok/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
- package/.grok/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
- package/.grok/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
- package/.grok/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
- package/.grok/skills/lit-typographic-motion/fonts/stroke/OFL-1.1.txt +0 -91
- package/.grok/skills/lit-typographic-motion/package-lock.json +0 -63
- package/.grok/skills/lit-typographic-motion/package.json +0 -10
- package/.grok/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -62
- package/.grok/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -82
- package/.grok/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
- package/.grok/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -36
- package/.grok/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
- package/.grok/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -24
- package/.grok/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
- package/.grok/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -25
- package/.grok/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
- package/.grok/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -37
- package/.grok/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -67
- package/.grok/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -119
- package/.grok/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -95
- package/.grok/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -192
- package/.grok/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -67
- package/.grok/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -85
- package/.grok/skills/lit-typographic-motion/references/choice-first.md +0 -30
- package/.grok/skills/lit-typographic-motion/references/complete-contract.md +0 -124
- package/.grok/skills/lit-typographic-motion/references/cover.md +0 -389
- package/.grok/skills/lit-typographic-motion/references/craft-loop.md +0 -112
- package/.grok/skills/lit-typographic-motion/references/depth.md +0 -119
- package/.grok/skills/lit-typographic-motion/references/runtime.md +0 -138
- package/.grok/skills/lit-typographic-motion/references/scene-contract.md +0 -98
- package/.grok/skills/lit-typographic-motion/references/stage.md +0 -194
- package/.grok/skills/lit-typographic-motion/references/style-bible.md +0 -102
- package/.grok/skills/lit-typographic-motion/references/treatment.md +0 -153
- package/.grok/skills/lit-typographic-motion/references/type-craft.md +0 -94
- package/.grok/skills/lit-typographic-motion/requirements-audio.txt +0 -794
- package/.grok/skills/lit-typographic-motion/scripts/beat_grid.py +0 -29
- package/.grok/skills/lit-typographic-motion/scripts/blender/runner.py +0 -218
- package/.grok/skills/lit-typographic-motion/scripts/lib/assets.mjs +0 -230
- package/.grok/skills/lit-typographic-motion/scripts/lib/blender.mjs +0 -136
- package/.grok/skills/lit-typographic-motion/scripts/lib/board.mjs +0 -153
- package/.grok/skills/lit-typographic-motion/scripts/lib/bundle.mjs +0 -23
- package/.grok/skills/lit-typographic-motion/scripts/lib/cache.mjs +0 -107
- package/.grok/skills/lit-typographic-motion/scripts/lib/chrome.mjs +0 -276
- package/.grok/skills/lit-typographic-motion/scripts/lib/clips.mjs +0 -119
- package/.grok/skills/lit-typographic-motion/scripts/lib/completion.mjs +0 -43
- package/.grok/skills/lit-typographic-motion/scripts/lib/constants.mjs +0 -244
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-assets.mjs +0 -88
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-capture.mjs +0 -153
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-gate.mjs +0 -312
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-image.mjs +0 -111
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-pool.mjs +0 -62
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-sheet.mjs +0 -73
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-treatment.mjs +0 -128
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover-webp.mjs +0 -134
- package/.grok/skills/lit-typographic-motion/scripts/lib/cover.mjs +0 -354
- package/.grok/skills/lit-typographic-motion/scripts/lib/encode.mjs +0 -33
- package/.grok/skills/lit-typographic-motion/scripts/lib/flash.mjs +0 -170
- package/.grok/skills/lit-typographic-motion/scripts/lib/fonts.mjs +0 -150
- package/.grok/skills/lit-typographic-motion/scripts/lib/frame-pool.mjs +0 -162
- package/.grok/skills/lit-typographic-motion/scripts/lib/gallery.mjs +0 -160
- package/.grok/skills/lit-typographic-motion/scripts/lib/gate.mjs +0 -586
- package/.grok/skills/lit-typographic-motion/scripts/lib/house.mjs +0 -43
- package/.grok/skills/lit-typographic-motion/scripts/lib/look.mjs +0 -289
- package/.grok/skills/lit-typographic-motion/scripts/lib/png.mjs +0 -95
- package/.grok/skills/lit-typographic-motion/scripts/lib/presets.mjs +0 -161
- package/.grok/skills/lit-typographic-motion/scripts/lib/render.mjs +0 -563
- package/.grok/skills/lit-typographic-motion/scripts/lib/report.mjs +0 -65
- package/.grok/skills/lit-typographic-motion/scripts/lib/scaffold.mjs +0 -174
- package/.grok/skills/lit-typographic-motion/scripts/lib/score.mjs +0 -640
- package/.grok/skills/lit-typographic-motion/scripts/lib/seed.mjs +0 -31
- package/.grok/skills/lit-typographic-motion/scripts/lib/session.mjs +0 -102
- package/.grok/skills/lit-typographic-motion/scripts/lib/sound.mjs +0 -517
- package/.grok/skills/lit-typographic-motion/scripts/lib/soundtrack.mjs +0 -46
- package/.grok/skills/lit-typographic-motion/scripts/lib/stage-gate.mjs +0 -139
- package/.grok/skills/lit-typographic-motion/scripts/lib/stage-qa.mjs +0 -400
- package/.grok/skills/lit-typographic-motion/scripts/lib/stage-session.mjs +0 -166
- package/.grok/skills/lit-typographic-motion/scripts/lib/stage.mjs +0 -504
- package/.grok/skills/lit-typographic-motion/scripts/lib/stills.mjs +0 -90
- package/.grok/skills/lit-typographic-motion/scripts/lib/styles.mjs +0 -224
- package/.grok/skills/lit-typographic-motion/scripts/lib/text.mjs +0 -114
- package/.grok/skills/lit-typographic-motion/scripts/lib/timeline.mjs +0 -223
- package/.grok/skills/lit-typographic-motion/scripts/lib/treatment.mjs +0 -446
- package/.grok/skills/lit-typographic-motion/scripts/lib/vendor/three/LICENSE +0 -21
- package/.grok/skills/lit-typographic-motion/scripts/lib/vendor/three/addons/environments/RoomEnvironment.js +0 -144
- package/.grok/skills/lit-typographic-motion/scripts/lib/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
- package/.grok/skills/lit-typographic-motion/scripts/lib/vendor/three/three.module.js +0 -54571
- package/.grok/skills/lit-typographic-motion/scripts/motion.mjs +0 -225
- package/.grok/skills/lit-typographic-motion/scripts/page/engine.js +0 -344
- package/.grok/skills/lit-typographic-motion/scripts/page/gl.js +0 -365
- package/.grok/skills/lit-typographic-motion/scripts/page/passes.js +0 -211
- package/.grok/skills/lit-typographic-motion/scripts/page/post.js +0 -127
- package/.grok/skills/lit-typographic-motion/scripts/page/scenes.js +0 -359
- package/.grok/skills/lit-typographic-motion/scripts/page/stroke.js +0 -154
- package/.grok/skills/lit-typographic-motion/scripts/page/type.js +0 -142
- package/.grok/skills/lit-typographic-motion/scripts/page/util.js +0 -68
- package/.grok/skills/lit-typographic-motion/scripts/prewarm.mjs +0 -216
- package/.grok/skills/lit-typographic-motion/scripts/stage/cover-init.js +0 -56
- package/.grok/skills/lit-typographic-motion/scripts/stage/host.js +0 -200
- package/.grok/skills/lit-typographic-motion/scripts/stage/loop-kit.js +0 -96
- package/.grok/skills/lit-typographic-motion/scripts/stage/qa.js +0 -137
- package/.grok/skills/lit-typographic-motion/scripts/stage/stage-kit.js +0 -523
- package/.grok/skills/lit-typographic-motion/styles/paper.json +0 -1
- package/.grok/skills/lit-typographic-motion/styles/swiss-signal.json +0 -1
- package/.grok/skills/lit-typographic-motion/styles/terminalcore.json +0 -1
- package/.grok/skills/lit-typographic-motion/styles/tidal.json +0 -1
- package/.grok/skills/readme-studio/references/choice-first.md +0 -24
- package/.grok/skills/readme-studio/references/complete-contract.md +0 -26
- package/.grok/skills/readme-studio/references/decoration-patterns.md +0 -29
- package/.grok/skills/readme-studio/references/facts.md +0 -15
- package/.grok/skills/readme-studio/references/motion.md +0 -42
- package/.grok/skills/readme-studio/references/production.md +0 -9
- package/.grok/skills/readme-studio/references/typography.md +0 -16
- package/.grok/skills/readme-studio/scripts/validate-facts.mjs +0 -52
- package/.grok/skills/readme-studio/templates/cover-source.json +0 -27
- package/.grok/skills/readme-studio/templates/facts.json +0 -13
- package/.grok/skills/readme-studio/templates/hyperframes/index.html +0 -41
- package/.grok/skills/readme-studio/templates/hyperframes/index.motion.json +0 -4
- package/.grok/skills/readme-studio/templates/hyperframes/package-lock.json +0 -2016
- package/.grok/skills/readme-studio/templates/hyperframes/package.json +0 -12
- package/.grok/skills/readme-studio/templates/picture.md +0 -61
- package/.grok/skills/readme-studio/templates/remotion/package-lock.json +0 -3785
- package/.grok/skills/readme-studio/templates/remotion/package.json +0 -19
- package/.grok/skills/readme-studio/templates/remotion/src/index.jsx +0 -31
- package/.grok/skills/readme-studio/templates/typography/outline.mjs +0 -62
- package/.grok/skills/readme-studio/templates/typography/package-lock.json +0 -135
- package/.grok/skills/readme-studio/templates/typography/package.json +0 -10
- package/.grok/skills/visual-qa/references/capture-playbook.md +0 -47
- package/.grok/skills/visual-qa/references/complete-contract.md +0 -721
- package/.grok/skills/visual-qa/references/verdict-taxonomy.md +0 -34
- package/.grok/skills/visual-qa/scripts/verify-evidence-manifest.mjs +0 -91
- package/.grok/vendor/NOTICE.md +0 -16
- package/.grok/vendor/licenses/045_scientific-visualization-MIT.txt +0 -21
- package/.grok/vendor/provenance/045_scientific-visualization.md +0 -37
- package/.grok/vendor/scientific-visualization/assets/color_palettes.py +0 -197
- package/.grok/vendor/scientific-visualization/assets/nature.mplstyle +0 -75
- package/.grok/vendor/scientific-visualization/assets/presentation.mplstyle +0 -74
- package/.grok/vendor/scientific-visualization/assets/publication.mplstyle +0 -78
- package/.grok/vendor/scientific-visualization/evals/evals.json +0 -158
- package/.grok/vendor/scientific-visualization/references/_canonical-corpus/manifest.json +0 -38
- package/.grok/vendor/scientific-visualization/references/color_palettes.md +0 -380
- package/.grok/vendor/scientific-visualization/references/journal_requirements.md +0 -359
- package/.grok/vendor/scientific-visualization/references/matplotlib_examples.md +0 -608
- package/.grok/vendor/scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
- package/.grok/vendor/scientific-visualization/references/publication_guidelines.md +0 -217
- package/.grok/vendor/scientific-visualization/references/seaborn_for_publications.md +0 -293
- package/.grok/vendor/scientific-visualization/scripts/figure_export.py +0 -238
- package/.grok/vendor/scientific-visualization/scripts/style_presets.py +0 -467
- package/.grok/vendor/scientific-visualization/tests/test_figure_export.py +0 -51
- package/.grok/vendor/scientific-visualization/tests/test_style_presets.py +0 -114
- /package/.grok/skills/{lit-pptx → litgrok}/scripts/proc.cjs +0 -0
|
@@ -1,658 +0,0 @@
|
|
|
1
|
-
// Static QA for lit-schematic SVG files. It parses the file itself (no browser), applies every
|
|
2
|
-
// transform, and reads the markers the kit writes (data-sym, data-box, data-ports, data-line,
|
|
3
|
-
// data-part, data-hull, data-leader, data-panel, data-legend-item, data-within). A drawing made
|
|
4
|
-
// by hand passes only if it carries the same markers, so a checker cannot be silenced by
|
|
5
|
-
// leaving geometry unmarked: unmarked strokes still count for STROKE.MIN, unmarked text for
|
|
6
|
-
// every text check.
|
|
7
|
-
|
|
8
|
-
import { boxesOverlap, collinearOverlap, contains, dist, insideLength, overlapArea, pointIn, pointSegmentDistance, segmentIntersection, segmentsOf } from "./geom.mjs";
|
|
9
|
-
import { parseEquipmentTag, parseInstrumentTag, parseLineNumber } from "./isa.mjs";
|
|
10
|
-
import { mmToPt, textBox } from "./svg.mjs";
|
|
11
|
-
|
|
12
|
-
// Two leaders closer than this at print size merge into one stroke for the eye.
|
|
13
|
-
const LEADER_GAP_MM = 1.2;
|
|
14
|
-
function leaderGap(p, q) {
|
|
15
|
-
let best = Infinity;
|
|
16
|
-
for (const [a, b] of segmentsOf(p)) {
|
|
17
|
-
for (const [c, d] of segmentsOf(q)) {
|
|
18
|
-
best = Math.min(best, pointSegmentDistance(a, c, d), pointSegmentDistance(b, c, d), pointSegmentDistance(c, a, b), pointSegmentDistance(d, a, b));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return best;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const CODES = Object.freeze({
|
|
25
|
-
"XML.WELLFORMED": "The file is not well-formed XML.",
|
|
26
|
-
"XML.EXTERNAL": "The file loads something from outside itself (href, url() or @import other than #fragment or data:).",
|
|
27
|
-
"SVG.ACTIVE": "The file carries script or event-handler attributes.",
|
|
28
|
-
"SVG.SIZE": "The root needs a viewBox and a physical width and height (mm, cm, in or pt).",
|
|
29
|
-
"TEXT.MIN_SIZE": "Text is smaller than the minimum at final print size.",
|
|
30
|
-
"TEXT.OVERLAP": "Two labels overlap.",
|
|
31
|
-
"TEXT.ON_SYMBOL": "A label sits on a symbol it does not belong to.",
|
|
32
|
-
"TEXT.ON_ART": "A label sits on the drawn object instead of beside it.",
|
|
33
|
-
"TEXT.ON_LINE": "A line runs through a label.",
|
|
34
|
-
"TEXT.CLIPPED": "A label runs past the edge of the drawing.",
|
|
35
|
-
"TEXT.OUT_OF_CELL": "A label runs out of the cell or block it belongs to.",
|
|
36
|
-
"LINE.THROUGH_SYMBOL": "A line passes through a symbol instead of ending at its port.",
|
|
37
|
-
"LINE.DANGLING": "A line ends in the air: not on a port, another line, or a terminal.",
|
|
38
|
-
"LINE.BEND_ON_LINE": "A line turns on top of another line, which reads as a joint.",
|
|
39
|
-
"LINE.OVERLAP": "Two lines run along each other.",
|
|
40
|
-
"LINE.CROSSING": "Two process lines cross without a hop (advisory).",
|
|
41
|
-
"LINE.ARROW_IN_SYMBOL": "A flow arrow is drawn inside a symbol, where it reads as part of the valve or instrument.",
|
|
42
|
-
"LEADER.LOOSE": "A leader does not end on the part it names or does not start at its label.",
|
|
43
|
-
"LEADER.CROSSING": "Two leaders cross.",
|
|
44
|
-
"LEADER.SPACING": "A leader runs closer than 1.2 mm (print size) to another leader or to its dot, so the two read as one.",
|
|
45
|
-
"LINE.NUMBER": "A P&ID line number does not follow size-fluid-sequence-class[-insulation].",
|
|
46
|
-
"STROKE.MIN": "A stroke is thinner than the printable minimum.",
|
|
47
|
-
"SYMBOL.NO_BOX": "A symbol group has no data-box, so nothing can check it.",
|
|
48
|
-
"TAG.GRAMMAR": "A tag does not follow the instrument (ISA-5.1) or equipment tag grammar.",
|
|
49
|
-
"TAG.DUPLICATE": "Two items carry the same tag.",
|
|
50
|
-
"LEGEND.COVERAGE": "A symbol or line kind used in the drawing is missing from the legend.",
|
|
51
|
-
"TITLEBLOCK.FIELDS": "The title block is missing a required field.",
|
|
52
|
-
"PALETTE.CVD": "Two category colours become hard to tell apart for normal or colour-deficient vision.",
|
|
53
|
-
"PANEL.LABELS": "Panel labels are missing, out of order, inconsistent, or not at the panel's top left.",
|
|
54
|
-
"FONT.FAMILIES": "More than two font families are used (advisory).",
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
const ADVISORY = new Set(["LINE.CROSSING", "FONT.FAMILIES"]);
|
|
58
|
-
|
|
59
|
-
// ------------------------------------------------------------------ XML
|
|
60
|
-
|
|
61
|
-
const ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'" };
|
|
62
|
-
const decode = (s) => s.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/giu, (m, e) => {
|
|
63
|
-
if (e[0] === "#") return String.fromCodePoint(e[1] === "x" || e[1] === "X" ? parseInt(e.slice(2), 16) : Number(e.slice(1)));
|
|
64
|
-
return ENTITIES[e] ?? m;
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export function parseXml(text) {
|
|
68
|
-
const root = { name: "#document", attrs: {}, children: [], parent: null };
|
|
69
|
-
let node = root;
|
|
70
|
-
const re = /<!--[\s\S]*?-->|<!\[CDATA\[([\s\S]*?)\]\]>|<\?[\s\S]*?\?>|<!DOCTYPE[^>]*>|<\/\s*([\w:.-]+)\s*>|<([\w:.-]+)((?:\s+[\w:.-]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>|([^<]+)|(<)/gu;
|
|
71
|
-
let m;
|
|
72
|
-
while ((m = re.exec(text))) {
|
|
73
|
-
if (m[7]) throw new Error(`unexpected "<" at offset ${m.index}`);
|
|
74
|
-
if (m[2]) {
|
|
75
|
-
if (node.name !== m[2]) throw new Error(`closing </${m[2]}> does not match <${node.name}> at offset ${m.index}`);
|
|
76
|
-
node = node.parent;
|
|
77
|
-
} else if (m[3]) {
|
|
78
|
-
const attrs = {};
|
|
79
|
-
for (const a of m[4].matchAll(/([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/gu)) attrs[a[1]] = decode(a[2] ?? a[3] ?? "");
|
|
80
|
-
const child = { name: m[3], attrs, children: [], parent: node, text: "" };
|
|
81
|
-
node.children.push(child);
|
|
82
|
-
if (!m[5]) node = child;
|
|
83
|
-
} else if (m[1] !== undefined) {
|
|
84
|
-
node.text = (node.text ?? "") + m[1];
|
|
85
|
-
} else if (m[6]) {
|
|
86
|
-
if (node !== root) node.text = (node.text ?? "") + decode(m[6]);
|
|
87
|
-
else if (m[6].trim()) throw new Error("text outside the root element");
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if (node !== root) throw new Error(`<${node.name}> is never closed`);
|
|
91
|
-
const elements = root.children.filter((c) => c.name);
|
|
92
|
-
if (elements.length !== 1 || elements[0].name !== "svg") throw new Error("the document root must be a single <svg> element");
|
|
93
|
-
return elements[0];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// ------------------------------------------------------------------ transforms
|
|
97
|
-
|
|
98
|
-
const I = [1, 0, 0, 1, 0, 0];
|
|
99
|
-
const mul = (a, b) => [
|
|
100
|
-
a[0] * b[0] + a[2] * b[1], a[1] * b[0] + a[3] * b[1],
|
|
101
|
-
a[0] * b[2] + a[2] * b[3], a[1] * b[2] + a[3] * b[3],
|
|
102
|
-
a[0] * b[4] + a[2] * b[5] + a[4], a[1] * b[4] + a[3] * b[5] + a[5],
|
|
103
|
-
];
|
|
104
|
-
const apply = (m, [x, y]) => [m[0] * x + m[2] * y + m[4], m[1] * x + m[3] * y + m[5]];
|
|
105
|
-
const scaleOf = (m) => Math.sqrt(Math.abs(m[0] * m[3] - m[1] * m[2]));
|
|
106
|
-
|
|
107
|
-
export function parseTransform(text) {
|
|
108
|
-
let m = I;
|
|
109
|
-
for (const [, op, raw] of String(text ?? "").matchAll(/(matrix|translate|scale|rotate|skewX|skewY)\s*\(([^)]*)\)/gu)) {
|
|
110
|
-
const v = raw.trim().split(/[\s,]+/u).filter(Boolean).map(Number);
|
|
111
|
-
let t = I;
|
|
112
|
-
if (op === "matrix") t = v;
|
|
113
|
-
else if (op === "translate") t = [1, 0, 0, 1, v[0] ?? 0, v[1] ?? 0];
|
|
114
|
-
else if (op === "scale") t = [v[0], 0, 0, v[1] ?? v[0], 0, 0];
|
|
115
|
-
else if (op === "rotate") {
|
|
116
|
-
const a = ((v[0] ?? 0) * Math.PI) / 180;
|
|
117
|
-
const r = [Math.cos(a), Math.sin(a), -Math.sin(a), Math.cos(a), 0, 0];
|
|
118
|
-
t = v.length >= 3 ? mul(mul([1, 0, 0, 1, v[1], v[2]], r), [1, 0, 0, 1, -v[1], -v[2]]) : r;
|
|
119
|
-
} else if (op === "skewX") t = [1, 0, Math.tan((v[0] * Math.PI) / 180), 1, 0, 0];
|
|
120
|
-
else if (op === "skewY") t = [1, Math.tan((v[0] * Math.PI) / 180), 0, 1, 0, 0];
|
|
121
|
-
m = mul(m, t);
|
|
122
|
-
}
|
|
123
|
-
return m;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// ------------------------------------------------------------------ path geometry
|
|
127
|
-
|
|
128
|
-
function arcPoints(x1, y1, rx, ry, phi, large, sweep, x2, y2) {
|
|
129
|
-
if (rx === 0 || ry === 0) return [[x2, y2]];
|
|
130
|
-
const p = (phi * Math.PI) / 180;
|
|
131
|
-
const cos = Math.cos(p);
|
|
132
|
-
const sin = Math.sin(p);
|
|
133
|
-
const dx = (x1 - x2) / 2;
|
|
134
|
-
const dy = (y1 - y2) / 2;
|
|
135
|
-
const x1p = cos * dx + sin * dy;
|
|
136
|
-
const y1p = -sin * dx + cos * dy;
|
|
137
|
-
rx = Math.abs(rx);
|
|
138
|
-
ry = Math.abs(ry);
|
|
139
|
-
const lambda = (x1p * x1p) / (rx * rx) + (y1p * y1p) / (ry * ry);
|
|
140
|
-
if (lambda > 1) { rx *= Math.sqrt(lambda); ry *= Math.sqrt(lambda); }
|
|
141
|
-
const sign = large === sweep ? -1 : 1;
|
|
142
|
-
const num = rx * rx * ry * ry - rx * rx * y1p * y1p - ry * ry * x1p * x1p;
|
|
143
|
-
const coef = sign * Math.sqrt(Math.max(0, num / (rx * rx * y1p * y1p + ry * ry * x1p * x1p)));
|
|
144
|
-
const cxp = (coef * rx * y1p) / ry;
|
|
145
|
-
const cyp = (-coef * ry * x1p) / rx;
|
|
146
|
-
const cx = cos * cxp - sin * cyp + (x1 + x2) / 2;
|
|
147
|
-
const cy = sin * cxp + cos * cyp + (y1 + y2) / 2;
|
|
148
|
-
const angle = (ux, uy, vx, vy) => {
|
|
149
|
-
const a = Math.atan2(ux * vy - uy * vx, ux * vx + uy * vy);
|
|
150
|
-
return a;
|
|
151
|
-
};
|
|
152
|
-
const t1 = angle(1, 0, (x1p - cxp) / rx, (y1p - cyp) / ry);
|
|
153
|
-
let dt = angle((x1p - cxp) / rx, (y1p - cyp) / ry, (-x1p - cxp) / rx, (-y1p - cyp) / ry);
|
|
154
|
-
if (!sweep && dt > 0) dt -= 2 * Math.PI;
|
|
155
|
-
if (sweep && dt < 0) dt += 2 * Math.PI;
|
|
156
|
-
const steps = Math.max(4, Math.ceil(Math.abs(dt) / (Math.PI / 12)));
|
|
157
|
-
const out = [];
|
|
158
|
-
for (let i = 1; i <= steps; i++) {
|
|
159
|
-
const t = t1 + (dt * i) / steps;
|
|
160
|
-
const xr = rx * Math.cos(t);
|
|
161
|
-
const yr = ry * Math.sin(t);
|
|
162
|
-
out.push([cos * xr - sin * yr + cx, sin * xr + cos * yr + cy]);
|
|
163
|
-
}
|
|
164
|
-
out[out.length - 1] = [x2, y2];
|
|
165
|
-
return out;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export function pathPolylines(d) {
|
|
169
|
-
const tokens = String(d ?? "").match(/[a-zA-Z]|-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/gu) ?? [];
|
|
170
|
-
const out = [];
|
|
171
|
-
let current = null;
|
|
172
|
-
let x = 0, y = 0, sx = 0, sy = 0, cmd = null, lastCtrl = null;
|
|
173
|
-
let i = 0;
|
|
174
|
-
const num = () => Number(tokens[i++]);
|
|
175
|
-
const start = (px, py) => { current = { points: [[px, py]], closed: false }; out.push(current); x = sx = px; y = sy = py; };
|
|
176
|
-
const to = (px, py) => { if (!current) start(x, y); current.points.push([px, py]); x = px; y = py; };
|
|
177
|
-
const bezier = (pts) => {
|
|
178
|
-
for (let k = 1; k <= 8; k++) {
|
|
179
|
-
const t = k / 8;
|
|
180
|
-
const mt = 1 - t;
|
|
181
|
-
if (pts.length === 4) to(mt ** 3 * pts[0][0] + 3 * mt * mt * t * pts[1][0] + 3 * mt * t * t * pts[2][0] + t ** 3 * pts[3][0], mt ** 3 * pts[0][1] + 3 * mt * mt * t * pts[1][1] + 3 * mt * t * t * pts[2][1] + t ** 3 * pts[3][1]);
|
|
182
|
-
else to(mt * mt * pts[0][0] + 2 * mt * t * pts[1][0] + t * t * pts[2][0], mt * mt * pts[0][1] + 2 * mt * t * pts[1][1] + t * t * pts[2][1]);
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
while (i < tokens.length) {
|
|
186
|
-
if (/[a-zA-Z]/u.test(tokens[i])) cmd = tokens[i++];
|
|
187
|
-
else if (!cmd) throw new Error("path data starts without a command");
|
|
188
|
-
const rel = cmd === cmd.toLowerCase();
|
|
189
|
-
const ox = rel ? x : 0;
|
|
190
|
-
const oy = rel ? y : 0;
|
|
191
|
-
switch (cmd.toUpperCase()) {
|
|
192
|
-
case "M": start(ox + num(), oy + num()); cmd = rel ? "l" : "L"; lastCtrl = null; break;
|
|
193
|
-
case "L": to(ox + num(), oy + num()); lastCtrl = null; break;
|
|
194
|
-
case "H": to(ox + num(), y); lastCtrl = null; break;
|
|
195
|
-
case "V": to(x, oy + num()); lastCtrl = null; break;
|
|
196
|
-
case "Z": if (current) { current.closed = true; to(sx, sy); } current = null; x = sx; y = sy; lastCtrl = null; break;
|
|
197
|
-
case "C": { const p1 = [ox + num(), oy + num()]; const p2 = [ox + num(), oy + num()]; const p = [ox + num(), oy + num()]; bezier([[x, y], p1, p2, p]); lastCtrl = p2; break; }
|
|
198
|
-
case "S": { const p1 = lastCtrl ? [2 * x - lastCtrl[0], 2 * y - lastCtrl[1]] : [x, y]; const p2 = [ox + num(), oy + num()]; const p = [ox + num(), oy + num()]; bezier([[x, y], p1, p2, p]); lastCtrl = p2; break; }
|
|
199
|
-
case "Q": { const p1 = [ox + num(), oy + num()]; const p = [ox + num(), oy + num()]; bezier([[x, y], p1, p]); lastCtrl = p1; break; }
|
|
200
|
-
case "T": { const p1 = lastCtrl ? [2 * x - lastCtrl[0], 2 * y - lastCtrl[1]] : [x, y]; const p = [ox + num(), oy + num()]; bezier([[x, y], p1, p]); lastCtrl = p1; break; }
|
|
201
|
-
case "A": {
|
|
202
|
-
const rx = num(), ry = num(), phi = num(), large = num(), sweep = num();
|
|
203
|
-
const px = ox + num(), py = oy + num();
|
|
204
|
-
if (!current) start(x, y);
|
|
205
|
-
for (const pt of arcPoints(x, y, rx, ry, phi, large, sweep, px, py)) {
|
|
206
|
-
to(pt[0], pt[1]);
|
|
207
|
-
// A small arc on a line is a hop: its points touch the line it jumps, by design.
|
|
208
|
-
if (Math.max(rx, ry) <= 2) (current.hops ??= new Set()).add(current.points.length - 1);
|
|
209
|
-
}
|
|
210
|
-
lastCtrl = null;
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
default: throw new Error(`unsupported path command ${cmd}`);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return out;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// ------------------------------------------------------------------ colour
|
|
220
|
-
|
|
221
|
-
const hex = (c) => {
|
|
222
|
-
const s = String(c ?? "").trim().toLowerCase();
|
|
223
|
-
const m = /^#([0-9a-f]{3}|[0-9a-f]{6})$/u.exec(s);
|
|
224
|
-
if (!m) return null;
|
|
225
|
-
const v = m[1].length === 3 ? [...m[1]].map((h) => h + h).join("") : m[1];
|
|
226
|
-
return [0, 2, 4].map((k) => parseInt(v.slice(k, k + 2), 16) / 255);
|
|
227
|
-
};
|
|
228
|
-
const lin = (v) => (v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4);
|
|
229
|
-
const lab = ([r, g, b]) => {
|
|
230
|
-
const X = (0.4124 * r + 0.3576 * g + 0.1805 * b) / 0.95047;
|
|
231
|
-
const Y = 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
232
|
-
const Z = (0.0193 * r + 0.1192 * g + 0.9505 * b) / 1.08883;
|
|
233
|
-
const f = (t) => (t > 216 / 24389 ? Math.cbrt(t) : (24389 / 27 * t + 16) / 116);
|
|
234
|
-
return [116 * f(Y) - 16, 500 * (f(X) - f(Y)), 200 * (f(Y) - f(Z))];
|
|
235
|
-
};
|
|
236
|
-
// Machado, Oliveira and Fernandes (2009), severity 1.0, applied to linear RGB.
|
|
237
|
-
const CVD = {
|
|
238
|
-
normal: null,
|
|
239
|
-
deuteranopia: [[0.367322, 0.860646, -0.227968], [0.280085, 0.672501, 0.047413], [-0.01182, 0.04294, 0.968881]],
|
|
240
|
-
protanopia: [[0.152286, 1.052583, -0.204868], [0.114503, 0.786281, 0.099216], [-0.003882, -0.048116, 1.051998]],
|
|
241
|
-
tritanopia: [[1.255528, -0.076749, -0.178779], [-0.078411, 0.930809, 0.147602], [0.004733, 0.691367, 0.3039]],
|
|
242
|
-
};
|
|
243
|
-
export function deltaE(c1, c2, vision = "normal") {
|
|
244
|
-
const a = hex(c1);
|
|
245
|
-
const b = hex(c2);
|
|
246
|
-
if (!a || !b) return Infinity;
|
|
247
|
-
const sim = (rgb) => {
|
|
248
|
-
const l = rgb.map(lin);
|
|
249
|
-
const m = CVD[vision];
|
|
250
|
-
const v = m ? m.map((row) => Math.min(1, Math.max(0, row[0] * l[0] + row[1] * l[1] + row[2] * l[2]))) : l;
|
|
251
|
-
return lab(v);
|
|
252
|
-
};
|
|
253
|
-
const p = sim(a);
|
|
254
|
-
const q = sim(b);
|
|
255
|
-
return Math.hypot(p[0] - q[0], p[1] - q[1], p[2] - q[2]);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// ------------------------------------------------------------------ collection
|
|
259
|
-
|
|
260
|
-
const inherited = (node, name) => {
|
|
261
|
-
for (let n = node; n; n = n.parent) {
|
|
262
|
-
if (n.attrs?.[name] !== undefined) return n.attrs[name];
|
|
263
|
-
const style = n.attrs?.style;
|
|
264
|
-
if (style) {
|
|
265
|
-
const m = new RegExp(`(?:^|;)\\s*${name}\\s*:\\s*([^;]+)`, "u").exec(style);
|
|
266
|
-
if (m) return m[1].trim();
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return undefined;
|
|
270
|
-
};
|
|
271
|
-
const ancestor = (node, attr) => { for (let n = node; n; n = n.parent) if (n.attrs?.[attr] !== undefined) return n; return null; };
|
|
272
|
-
const numbers = (s) => String(s ?? "").trim().split(/[\s,]+/u).filter(Boolean).map(Number);
|
|
273
|
-
const toMm = (value) => {
|
|
274
|
-
const m = /^(-?[\d.]+)\s*(mm|cm|in|pt|px)?$/u.exec(String(value ?? "").trim());
|
|
275
|
-
if (!m) return null;
|
|
276
|
-
const v = Number(m[1]);
|
|
277
|
-
return { mm: v, cm: v * 10, in: v * 25.4, pt: (v * 25.4) / 72, px: (v * 25.4) / 96, undefined: (v * 25.4) / 96 }[m[2]];
|
|
278
|
-
};
|
|
279
|
-
// Font sizes and stroke widths: unitless and px values are user units (mm in kit drawings),
|
|
280
|
-
// physical units are converted on the assumption that one user unit is one millimetre.
|
|
281
|
-
const toUser = (value) => {
|
|
282
|
-
const m = /^(-?[\d.]+)\s*(mm|cm|in|pt|px)?$/u.exec(String(value ?? "").trim());
|
|
283
|
-
if (!m) return null;
|
|
284
|
-
const v = Number(m[1]);
|
|
285
|
-
return { mm: v, cm: v * 10, in: v * 25.4, pt: (v * 25.4) / 72, px: v, undefined: v }[m[2]];
|
|
286
|
-
};
|
|
287
|
-
const boxFromPoints = (pts) => [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]))];
|
|
288
|
-
const transformBox = (m, b) => boxFromPoints([[b[0], b[1]], [b[2], b[1]], [b[2], b[3]], [b[0], b[3]]].map((p) => apply(m, p)));
|
|
289
|
-
|
|
290
|
-
function polygonHitsBox(poly, box) {
|
|
291
|
-
if (poly.length < 3) return false;
|
|
292
|
-
if (poly.some((p) => pointIn(p, box))) return true;
|
|
293
|
-
const [x0, y0, x1, y1] = box;
|
|
294
|
-
const corners = [[x0, y0], [x1, y0], [x1, y1], [x0, y1]];
|
|
295
|
-
const inside = (p) => {
|
|
296
|
-
let c = false;
|
|
297
|
-
for (let i = 0, j = poly.length - 1; i < poly.length; j = i++) {
|
|
298
|
-
if ((poly[i][1] > p[1]) !== (poly[j][1] > p[1]) && p[0] < ((poly[j][0] - poly[i][0]) * (p[1] - poly[i][1])) / (poly[j][1] - poly[i][1]) + poly[i][0]) c = !c;
|
|
299
|
-
}
|
|
300
|
-
return c;
|
|
301
|
-
};
|
|
302
|
-
if (corners.some(inside)) return true;
|
|
303
|
-
const edges = [[corners[0], corners[1]], [corners[1], corners[2]], [corners[2], corners[3]], [corners[3], corners[0]]];
|
|
304
|
-
for (let i = 0; i < poly.length; i++) {
|
|
305
|
-
const a = poly[i];
|
|
306
|
-
const b = poly[(i + 1) % poly.length];
|
|
307
|
-
if (edges.some(([c, d]) => segmentIntersection(a, b, c, d, true))) return true;
|
|
308
|
-
}
|
|
309
|
-
return false;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export function collect(svgText) {
|
|
313
|
-
const root = parseXml(svgText);
|
|
314
|
-
const out = { root, texts: [], symbols: [], lines: [], strokes: [], parts: [], leaders: [], dots: [], panels: [], arrows: [], legend: new Set(), titleblock: new Map(), external: [], active: [], families: new Set(), roleColors: new Map(), legendGlyphs: 0 };
|
|
315
|
-
const walk = (node, ctm) => {
|
|
316
|
-
const m = node.attrs.transform ? mul(ctm, parseTransform(node.attrs.transform)) : ctm;
|
|
317
|
-
const a = node.attrs;
|
|
318
|
-
for (const [k, v] of Object.entries(a)) {
|
|
319
|
-
if (/^on/iu.test(k)) out.active.push(k);
|
|
320
|
-
if ((k === "href" || k === "xlink:href") && !/^(?:#|data:)/u.test(v)) out.external.push(v);
|
|
321
|
-
if (/url\(\s*['"]?(?!#|data:)/iu.test(v)) out.external.push(v);
|
|
322
|
-
}
|
|
323
|
-
if (node.name === "script" || node.name === "foreignObject") out.active.push(node.name);
|
|
324
|
-
if (node.name === "style") {
|
|
325
|
-
const css = node.text ?? "";
|
|
326
|
-
if (/@import|url\(\s*['"]?(?!#|data:)/iu.test(css)) out.external.push("style: @import or url()");
|
|
327
|
-
}
|
|
328
|
-
if (a["data-legend-item"]) out.legend.add(a["data-legend-item"]);
|
|
329
|
-
if (a["data-legend-glyph"]) out.legendGlyphs++;
|
|
330
|
-
if (a["data-titleblock-value"]) out.titleblock.set(a["data-titleblock-value"], (out.titleblock.get(a["data-titleblock-value"]) ?? "") + (node.text ?? "").trim());
|
|
331
|
-
if (a["data-sym"]) {
|
|
332
|
-
if (!a["data-box"]) out.symbols.push({ node, kind: a["data-sym"], boxes: [], ports: [], noBox: true });
|
|
333
|
-
else {
|
|
334
|
-
const boxes = a["data-box"].split("|").map((b) => transformBox(m, numbers(b)));
|
|
335
|
-
const ports = (a["data-ports"] ?? "").split(";").filter(Boolean).map((p) => {
|
|
336
|
-
const [name, rest] = p.split(":");
|
|
337
|
-
const v = numbers(rest);
|
|
338
|
-
return { name, point: apply(m, [v[0], v[1]]) };
|
|
339
|
-
});
|
|
340
|
-
out.symbols.push({ node, id: a["data-sym-id"], kind: a["data-sym"], tag: a["data-tag"], boxes, ports });
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
if (a["data-part"] && a["data-hull"]) {
|
|
344
|
-
const hull = a["data-hull"].trim().split(/\s+/u).map((p) => apply(m, numbers(p)));
|
|
345
|
-
out.parts.push({ node, name: a["data-part"], hull });
|
|
346
|
-
}
|
|
347
|
-
if (a["data-panel"] && a["data-panel-box"]) out.panels.push({ node, label: a["data-panel"], box: transformBox(m, numbers(a["data-panel-box"])) });
|
|
348
|
-
if (node.name === "circle" && a["data-leader-dot"] !== undefined) out.dots.push({ node, point: apply(m, [Number(a.cx), Number(a.cy)]), r: Number(a.r) * scaleOf(m) });
|
|
349
|
-
if (node.name === "text") {
|
|
350
|
-
const content = [node.text ?? "", ...node.children.filter((c) => c.name === "tspan").map((c) => c.text ?? "")].join("").replace(/\s+/gu, " ").trim();
|
|
351
|
-
if (content) {
|
|
352
|
-
const size = toUser(inherited(node, "font-size") ?? "16") ?? 16;
|
|
353
|
-
const family = inherited(node, "font-family");
|
|
354
|
-
if (family) out.families.add(family.split(",")[0].trim().replace(/['"]/gu, ""));
|
|
355
|
-
const local = textBox(Number(a.x ?? 0), Number(a.y ?? 0), content, size, inherited(node, "text-anchor") ?? "start");
|
|
356
|
-
out.texts.push({
|
|
357
|
-
node, content, size: size * scaleOf(m), box: transformBox(m, local),
|
|
358
|
-
symbol: ancestor(node, "data-sym"), part: ancestor(node, "data-part"),
|
|
359
|
-
label: a["data-label"] ?? "", within: a["data-within"] ? numbers(a["data-within"]) : null, withinM: m,
|
|
360
|
-
legendGlyph: Boolean(ancestor(node, "data-legend-glyph")), panelLabel: a["data-label"] === "panel-label",
|
|
361
|
-
forLeader: a["data-for-leader"] ?? null,
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
if (["path", "line", "polyline", "polygon", "rect", "circle", "ellipse"].includes(node.name)) {
|
|
366
|
-
const stroke = inherited(node, "stroke");
|
|
367
|
-
if (stroke && stroke !== "none") {
|
|
368
|
-
const w = toUser(inherited(node, "stroke-width") ?? "1") ?? 1;
|
|
369
|
-
out.strokes.push({ node, width: w * scaleOf(m), legend: Boolean(ancestor(node, "data-legend-glyph") || ancestor(node, "data-legend-item")) });
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
if (node.name === "path" && a["data-arrow"]) {
|
|
373
|
-
const pts = pathPolylines(a.d).flatMap((p) => p.points.map((pt) => apply(m, pt)));
|
|
374
|
-
if (pts.length) out.arrows.push({ id: a["data-arrow"], point: [pts.reduce((t, p) => t + p[0], 0) / pts.length, pts.reduce((t, p) => t + p[1], 0) / pts.length] });
|
|
375
|
-
}
|
|
376
|
-
if (node.name === "path" && (a["data-line"] || a["data-leader"])) {
|
|
377
|
-
let polys;
|
|
378
|
-
try {
|
|
379
|
-
polys = pathPolylines(a.d).map((p) => ({ ...p, points: p.points.map((pt) => apply(m, pt)) }));
|
|
380
|
-
} catch (error) {
|
|
381
|
-
polys = [];
|
|
382
|
-
out.active.push(`path parse: ${error.message}`);
|
|
383
|
-
}
|
|
384
|
-
const stroke = inherited(node, "stroke");
|
|
385
|
-
if (a["data-line"]) {
|
|
386
|
-
for (const p of polys) out.lines.push({ node, kind: a["data-line"], id: a["data-line-id"] ?? "", points: p.points, closed: p.closed, hops: p.hops, color: stroke });
|
|
387
|
-
if (a["data-role"] && stroke) out.roleColors.set(a["data-role"], stroke);
|
|
388
|
-
} else {
|
|
389
|
-
for (const p of polys) out.leaders.push({ node, id: a["data-leader"], target: a["data-target"] ?? null, points: p.points });
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
for (const child of node.children) walk(child, m);
|
|
393
|
-
};
|
|
394
|
-
walk(root, I);
|
|
395
|
-
return out;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
// ------------------------------------------------------------------ checks
|
|
399
|
-
|
|
400
|
-
const isProcess = (kind) => /^(?:process|utility|stream)/u.test(kind);
|
|
401
|
-
const at = (p) => `@ ${p[0].toFixed(1)},${p[1].toFixed(1)}`;
|
|
402
|
-
|
|
403
|
-
export function check(svgText, options = {}) {
|
|
404
|
-
const findings = [];
|
|
405
|
-
const add = (code, message, where = null) => findings.push({ code, level: ADVISORY.has(code) ? "WARN" : "FAIL", message, where });
|
|
406
|
-
let c;
|
|
407
|
-
try {
|
|
408
|
-
c = collect(svgText);
|
|
409
|
-
} catch (error) {
|
|
410
|
-
add("XML.WELLFORMED", error.message);
|
|
411
|
-
return summarize(findings, {});
|
|
412
|
-
}
|
|
413
|
-
const root = c.root;
|
|
414
|
-
const mode = options.mode ?? root.attrs["data-schematic-mode"] ?? "figure";
|
|
415
|
-
const view = numbers(root.attrs.viewBox);
|
|
416
|
-
const width = toMm(root.attrs.width);
|
|
417
|
-
const height = toMm(root.attrs.height);
|
|
418
|
-
if (view.length !== 4 || !width || !height || !/(?:mm|cm|in|pt)$/u.test(root.attrs.width ?? "")) add("SVG.SIZE", `width="${root.attrs.width ?? ""}" height="${root.attrs.height ?? ""}" viewBox="${root.attrs.viewBox ?? ""}"`);
|
|
419
|
-
const unit = view.length === 4 && width ? width / view[2] : 1;
|
|
420
|
-
const canvas = view.length === 4 ? [view[0], view[1], view[0] + view[2], view[1] + view[3]] : [0, 0, Infinity, Infinity];
|
|
421
|
-
for (const e of new Set(c.external)) add("XML.EXTERNAL", e.slice(0, 120));
|
|
422
|
-
for (const e of new Set(c.active)) add("SVG.ACTIVE", e);
|
|
423
|
-
|
|
424
|
-
const minPt = options.minTextPt ?? Number(root.attrs["data-min-text-pt"] ?? (mode === "pid" || mode === "pfd" ? 5.6 : 6));
|
|
425
|
-
const minStrokeMm = options.minStrokeMm ?? 0.088;
|
|
426
|
-
const texts = c.texts;
|
|
427
|
-
for (const t of texts) {
|
|
428
|
-
const pt = mmToPt(t.size * unit);
|
|
429
|
-
if (pt < minPt - 0.05) add("TEXT.MIN_SIZE", `"${t.content}" is ${pt.toFixed(1)} pt; the minimum is ${minPt} pt`, [t.box[0], t.box[3]]);
|
|
430
|
-
if (!contains(canvas, t.box, 0.05)) add("TEXT.CLIPPED", `"${t.content}" runs past the drawing edge`, [t.box[0], t.box[3]]);
|
|
431
|
-
if (t.within && !contains(transformBox(t.withinM, t.within), t.box, 0.15)) add("TEXT.OUT_OF_CELL", `"${t.content}" runs out of its block`, [t.box[0], t.box[3]]);
|
|
432
|
-
}
|
|
433
|
-
for (let i = 0; i < texts.length; i++) {
|
|
434
|
-
for (let j = i + 1; j < texts.length; j++) {
|
|
435
|
-
const a = texts[i];
|
|
436
|
-
const b = texts[j];
|
|
437
|
-
const ov = overlapArea(a.box, b.box);
|
|
438
|
-
if (ov > 0.04 * Math.min((a.box[2] - a.box[0]) * (a.box[3] - a.box[1]), (b.box[2] - b.box[0]) * (b.box[3] - b.box[1])) && ov > 0.05) {
|
|
439
|
-
add("TEXT.OVERLAP", `"${a.content}" overlaps "${b.content}"`, [a.box[0], a.box[3]]);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
const symbols = c.symbols.filter((s) => !s.noBox);
|
|
444
|
-
for (const s of c.symbols.filter((s) => s.noBox)) add("SYMBOL.NO_BOX", `${s.kind} has no data-box`);
|
|
445
|
-
for (const t of texts) {
|
|
446
|
-
if (t.legendGlyph) continue;
|
|
447
|
-
for (const s of symbols) {
|
|
448
|
-
if (t.symbol === s.node) continue;
|
|
449
|
-
if (s.boxes.some((b) => boxesOverlap(t.box, b, 0.25))) { add("TEXT.ON_SYMBOL", `"${t.content}" sits on ${s.kind}${s.tag ? ` ${s.tag}` : ""}`, [t.box[0], t.box[3]]); break; }
|
|
450
|
-
}
|
|
451
|
-
if (t.label !== "engraved") {
|
|
452
|
-
for (const p of c.parts) {
|
|
453
|
-
if (t.part === p.node) continue;
|
|
454
|
-
if (polygonHitsBox(p.hull, [t.box[0] + 0.2, t.box[1] + 0.2, t.box[2] - 0.2, t.box[3] - 0.2])) { add("TEXT.ON_ART", `"${t.content}" sits on ${p.name}`, [t.box[0], t.box[3]]); break; }
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
const segs = c.lines.flatMap((l) => segmentsOf(l.points).map(([a, b]) => ({ line: l, a, b })));
|
|
459
|
-
for (const t of texts) {
|
|
460
|
-
const inner = [t.box[0] + 0.2, t.box[1] + 0.2, t.box[2] - 0.2, t.box[3] - 0.2];
|
|
461
|
-
if (inner[2] <= inner[0] || inner[3] <= inner[1]) continue;
|
|
462
|
-
const hit = segs.find(({ a, b }) => insideLength(a, b, inner) > 0.05);
|
|
463
|
-
// A stream number sits in its diamond on the line by convention.
|
|
464
|
-
if (hit && !t.symbol && t.label !== "stream-number") add("TEXT.ON_LINE", `${hit.line.kind} ${hit.line.id} runs through "${t.content}"`, [t.box[0], t.box[3]]);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
// Flow arrows sit on open line, never inside a body.
|
|
468
|
-
for (const arrow of c.arrows) {
|
|
469
|
-
const inSym = symbols.find((s) => s.boxes.some((bx) => arrow.point[0] > bx[0] + 0.2 && arrow.point[0] < bx[2] - 0.2 && arrow.point[1] > bx[1] + 0.2 && arrow.point[1] < bx[3] - 0.2));
|
|
470
|
-
if (inSym) add("LINE.ARROW_IN_SYMBOL", `flow arrow on ${arrow.id} sits inside ${inSym.kind}${inSym.tag ? ` ${inSym.tag}` : ""}`, arrow.point);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
// Lines against symbols.
|
|
474
|
-
const portsOf = (s) => s.ports.map((p) => p.point);
|
|
475
|
-
const allPorts = symbols.flatMap((s) => s.ports.map((p) => ({ s, point: p.point })));
|
|
476
|
-
for (const l of c.lines) {
|
|
477
|
-
for (const [a, b] of segmentsOf(l.points)) {
|
|
478
|
-
for (const s of symbols) {
|
|
479
|
-
const shrunk = s.boxes.map((bx) => [bx[0] + 0.25, bx[1] + 0.25, bx[2] - 0.25, bx[3] - 0.25]);
|
|
480
|
-
const inside = shrunk.reduce((sum, bx) => sum + insideLength(a, b, bx), 0);
|
|
481
|
-
if (inside <= 0.3) continue;
|
|
482
|
-
const atPort = portsOf(s).find((p) => dist(p, a) < 0.4 || dist(p, b) < 0.4);
|
|
483
|
-
if (atPort) {
|
|
484
|
-
// Allowed only while running out from the port: once outside, the segment may not re-enter.
|
|
485
|
-
const from = dist(atPort, a) < 0.4 ? a : b;
|
|
486
|
-
const toPt = from === a ? b : a;
|
|
487
|
-
const len = dist(from, toPt);
|
|
488
|
-
let left = false;
|
|
489
|
-
let reenter = false;
|
|
490
|
-
for (let k = 0.25; k < len; k += 0.25) {
|
|
491
|
-
const p = [from[0] + ((toPt[0] - from[0]) * k) / len, from[1] + ((toPt[1] - from[1]) * k) / len];
|
|
492
|
-
const isIn = shrunk.some((bx) => pointIn(p, bx));
|
|
493
|
-
if (!isIn) left = true;
|
|
494
|
-
else if (left) { reenter = true; break; }
|
|
495
|
-
}
|
|
496
|
-
if (!reenter) continue;
|
|
497
|
-
}
|
|
498
|
-
add("LINE.THROUGH_SYMBOL", `${l.kind} ${l.id} passes through ${s.kind}${s.tag ? ` ${s.tag}` : ""}`, [(a[0] + b[0]) / 2, (a[1] + b[1]) / 2]);
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
// Open line ends must land on something.
|
|
503
|
-
const landed = (p, self) => {
|
|
504
|
-
if (allPorts.some(({ point }) => dist(point, p) < 0.45)) return true;
|
|
505
|
-
for (const l of c.lines) {
|
|
506
|
-
if (l === self) continue;
|
|
507
|
-
for (const [a, b] of segmentsOf(l.points)) if (pointSegmentDistance(p, a, b) < 0.35) return true;
|
|
508
|
-
}
|
|
509
|
-
return false;
|
|
510
|
-
};
|
|
511
|
-
for (const l of c.lines) {
|
|
512
|
-
if (l.closed || l.points.length < 2) continue;
|
|
513
|
-
for (const end of [l.points[0], l.points.at(-1)]) {
|
|
514
|
-
if (!landed(end, l)) add("LINE.DANGLING", `${l.kind} ${l.id} ends in the air`, end);
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
// Turns on other lines, runs along other lines, and unmarked process crossings.
|
|
518
|
-
for (const l of c.lines) {
|
|
519
|
-
for (let k = 1; k < l.points.length - 1; k++) {
|
|
520
|
-
const v = l.points[k];
|
|
521
|
-
const turn = Math.abs((v[0] - l.points[k - 1][0]) * (l.points[k + 1][1] - v[1]) - (v[1] - l.points[k - 1][1]) * (l.points[k + 1][0] - v[0]));
|
|
522
|
-
if (turn < 1e-3 || l.hops?.has(k)) continue;
|
|
523
|
-
for (const o of c.lines) {
|
|
524
|
-
if (o === l || (o.id && o.id === l.id)) continue;
|
|
525
|
-
const onO = segmentsOf(o.points).some(([a, b]) => pointSegmentDistance(v, a, b) < 0.2) && !(dist(v, o.points[0]) < 0.4 || dist(v, o.points.at(-1)) < 0.4);
|
|
526
|
-
if (onO) { add("LINE.BEND_ON_LINE", `${l.kind} ${l.id} turns on ${o.kind} ${o.id}`, v); break; }
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
for (let i = 0; i < c.lines.length; i++) {
|
|
531
|
-
for (let j = i + 1; j < c.lines.length; j++) {
|
|
532
|
-
const p = c.lines[i];
|
|
533
|
-
const q = c.lines[j];
|
|
534
|
-
if (p.id && p.id === q.id) continue;
|
|
535
|
-
for (const [a, b] of segmentsOf(p.points)) {
|
|
536
|
-
for (const [d, e] of segmentsOf(q.points)) {
|
|
537
|
-
if (collinearOverlap(a, b, d, e) > 0.5) add("LINE.OVERLAP", `${p.kind} ${p.id} runs along ${q.kind} ${q.id}`, a);
|
|
538
|
-
else if (isProcess(p.kind) && isProcess(q.kind)) {
|
|
539
|
-
const hit = segmentIntersection(a, b, d, e);
|
|
540
|
-
if (hit) add("LINE.CROSSING", `${p.id} crosses ${q.id} without a hop`, hit.point);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
// Leaders: one end at the label, the other on a dot on the part or symbol it names.
|
|
547
|
-
for (const l of c.leaders) {
|
|
548
|
-
const ends = [l.points[0], l.points.at(-1)];
|
|
549
|
-
const label = texts.find((t) => t.forLeader === l.id);
|
|
550
|
-
const nearLabel = (p) => label && pointSegmentDistance(p, [label.box[0] - 1.5, (label.box[1] + label.box[3]) / 2], [label.box[2] + 1.5, (label.box[1] + label.box[3]) / 2]) < 1.6 + (label.box[3] - label.box[1]) / 2;
|
|
551
|
-
const onTarget = (p) => c.dots.some((d) => dist(d.point, p) <= d.r + 0.3) && (c.parts.some((pt) => polygonHitsBox(pt.hull, [p[0] - 0.3, p[1] - 0.3, p[0] + 0.3, p[1] + 0.3])) || symbols.some((s) => s.boxes.some((b) => pointIn(p, b, -0.3))));
|
|
552
|
-
const named = l.target ? c.parts.filter((pt) => pt.name === l.target) : null;
|
|
553
|
-
if (named && named.length && !ends.some((p) => named.some((pt) => polygonHitsBox(pt.hull, [p[0] - 0.3, p[1] - 0.3, p[0] + 0.3, p[1] + 0.3])))) {
|
|
554
|
-
add("LEADER.LOOSE", `leader ${l.id} names ${l.target} but its dot is not on that part`, ends.at(-1));
|
|
555
|
-
}
|
|
556
|
-
if (!label) add("LEADER.LOOSE", `leader ${l.id} has no label (data-for-leader)`, ends[0]);
|
|
557
|
-
else if (!((nearLabel(ends[0]) && onTarget(ends[1])) || (nearLabel(ends[1]) && onTarget(ends[0])))) add("LEADER.LOOSE", `leader ${l.id} for "${label.content}" does not run from its label to a dot on its part`, ends[1]);
|
|
558
|
-
}
|
|
559
|
-
for (let i = 0; i < c.leaders.length; i++) {
|
|
560
|
-
for (let j = i + 1; j < c.leaders.length; j++) {
|
|
561
|
-
const hit = segmentsOf(c.leaders[i].points).some(([a, b]) => segmentsOf(c.leaders[j].points).some(([d, e]) => segmentIntersection(a, b, d, e)));
|
|
562
|
-
if (hit) add("LEADER.CROSSING", `leaders ${c.leaders[i].id} and ${c.leaders[j].id} cross`, c.leaders[i].points[0]);
|
|
563
|
-
else {
|
|
564
|
-
const gap = leaderGap(c.leaders[i].points, c.leaders[j].points) * unit;
|
|
565
|
-
if (gap < LEADER_GAP_MM) add("LEADER.SPACING", `leaders ${c.leaders[i].id} and ${c.leaders[j].id} come within ${gap.toFixed(2)} mm; keep ${LEADER_GAP_MM} mm (move a dot or the label order)`, c.leaders[i].points.at(-1));
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
if (mode === "pid") {
|
|
570
|
-
for (const l of c.lines) {
|
|
571
|
-
const number = l.node.attrs["data-number"];
|
|
572
|
-
if (!number || !isProcess(l.kind)) continue;
|
|
573
|
-
const parsed = parseLineNumber(number);
|
|
574
|
-
if (!parsed.ok) add("LINE.NUMBER", `${l.id} "${number}": ${parsed.error}`, l.points[0]);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
for (const s of c.strokes) {
|
|
578
|
-
const mm = s.width * unit;
|
|
579
|
-
if (mm < minStrokeMm - 1e-4) add("STROKE.MIN", `${s.node.name} stroke ${mm.toFixed(3)} mm (${mmToPt(mm).toFixed(2)} pt) is under ${mmToPt(minStrokeMm).toFixed(2)} pt`);
|
|
580
|
-
}
|
|
581
|
-
// Tags.
|
|
582
|
-
const seen = new Map();
|
|
583
|
-
for (const s of symbols) {
|
|
584
|
-
if (!s.tag) continue;
|
|
585
|
-
const instrument = s.kind.startsWith("instrument.") || s.kind.startsWith("valve.") || s.kind.startsWith("relief.") || s.kind.startsWith("flow.");
|
|
586
|
-
const equipment = /^(?:vessel|pump|compressor|exchanger|package|gas)\./u.test(s.kind);
|
|
587
|
-
const parsed = instrument ? parseInstrumentTag(s.tag) : equipment ? parseEquipmentTag(s.tag) : { ok: true };
|
|
588
|
-
if (!parsed.ok) add("TAG.GRAMMAR", `${s.tag}: ${parsed.error}`);
|
|
589
|
-
if (seen.has(s.tag)) add("TAG.DUPLICATE", `${s.tag} appears on ${seen.get(s.tag)} and ${s.kind}`);
|
|
590
|
-
seen.set(s.tag, s.kind);
|
|
591
|
-
}
|
|
592
|
-
// Legend and title block (sheets).
|
|
593
|
-
if (mode === "pid" || mode === "pfd") {
|
|
594
|
-
const used = new Set([...symbols.map((s) => s.kind), ...c.lines.map((l) => `line:${l.kind}`)]);
|
|
595
|
-
for (const kind of used) if (!c.legend.has(kind)) add("LEGEND.COVERAGE", `${kind} is drawn but not in the legend`);
|
|
596
|
-
} else if (c.legend.size) {
|
|
597
|
-
// Figures label equipment directly; a key must cover every stream colour it uses.
|
|
598
|
-
const roles = new Set(c.lines.map((l) => l.node.attrs["data-role"]).filter(Boolean));
|
|
599
|
-
for (const role of roles) if (!c.legend.has(`role:${role}`)) add("LEGEND.COVERAGE", `stream role ${role} is drawn but not in the key`);
|
|
600
|
-
}
|
|
601
|
-
if (mode === "pid" || mode === "pfd") {
|
|
602
|
-
for (const field of ["title", "number", "rev", "date", "scale"]) {
|
|
603
|
-
const v = c.titleblock.get(field);
|
|
604
|
-
if (!v || v === "-") add("TITLEBLOCK.FIELDS", `title block field "${field}" is empty`);
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
// Category colours.
|
|
608
|
-
const roles = [...c.roleColors.entries()].filter(([, color]) => hex(color));
|
|
609
|
-
for (let i = 0; i < roles.length; i++) {
|
|
610
|
-
for (let j = i + 1; j < roles.length; j++) {
|
|
611
|
-
if (roles[i][1].toLowerCase() === roles[j][1].toLowerCase()) continue;
|
|
612
|
-
for (const vision of ["normal", "deuteranopia", "protanopia", "tritanopia"]) {
|
|
613
|
-
const d = deltaE(roles[i][1], roles[j][1], vision);
|
|
614
|
-
if (d < (vision === "normal" ? 12 : 9)) { add("PALETTE.CVD", `${roles[i][0]} ${roles[i][1]} and ${roles[j][0]} ${roles[j][1]} differ by dE ${d.toFixed(1)} under ${vision} vision`); break; }
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
// Panels.
|
|
619
|
-
if (c.panels.length) {
|
|
620
|
-
const labels = texts.filter((t) => t.panelLabel);
|
|
621
|
-
const expected = c.panels.map((_, i) => String.fromCharCode(97 + i));
|
|
622
|
-
const got = c.panels.map((p) => p.label);
|
|
623
|
-
if (got.join() !== expected.join()) add("PANEL.LABELS", `panels are labelled ${got.join(", ")}; expected ${expected.join(", ")}`);
|
|
624
|
-
const sizes = new Set(labels.map((t) => t.size.toFixed(2)));
|
|
625
|
-
if (labels.length !== c.panels.length) add("PANEL.LABELS", `${c.panels.length} panels but ${labels.length} panel labels`);
|
|
626
|
-
if (sizes.size > 1) add("PANEL.LABELS", "panel labels use different sizes");
|
|
627
|
-
for (const p of c.panels) {
|
|
628
|
-
const t = labels.find((x) => x.content.replace(/[()]/gu, "").toLowerCase() === p.label);
|
|
629
|
-
if (!t) { add("PANEL.LABELS", `panel ${p.label} has no label`); continue; }
|
|
630
|
-
const [x0, y0, x1, y1] = p.box;
|
|
631
|
-
if (!(t.box[0] <= x0 + (x1 - x0) * 0.2 && t.box[1] <= y0 + (y1 - y0) * 0.2 && contains(grow4(p.box, 0.5), t.box))) add("PANEL.LABELS", `label ${t.content} is not at the top left of its panel`, [t.box[0], t.box[3]]);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
if (c.families.size > 2) add("FONT.FAMILIES", `families: ${[...c.families].join(", ")}`);
|
|
635
|
-
return summarize(findings, { mode, texts: texts.length, symbols: symbols.length, lines: c.lines.length, leaders: c.leaders.length, parts: c.parts.length, widthMm: width, heightMm: height });
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
const grow4 = (b, by) => [b[0] - by, b[1] - by, b[2] + by, b[3] + by];
|
|
639
|
-
|
|
640
|
-
function summarize(findings, stats) {
|
|
641
|
-
const unique = [];
|
|
642
|
-
const keys = new Set();
|
|
643
|
-
for (const f of findings) {
|
|
644
|
-
const key = `${f.code}|${f.message}`;
|
|
645
|
-
if (keys.has(key)) continue;
|
|
646
|
-
keys.add(key);
|
|
647
|
-
unique.push(f);
|
|
648
|
-
}
|
|
649
|
-
const fails = unique.filter((f) => f.level === "FAIL");
|
|
650
|
-
return { verdict: fails.length ? "FAIL" : "PASS", fails: fails.length, warnings: unique.length - fails.length, findings: unique, stats };
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
export function formatReport(result, file = "") {
|
|
654
|
-
const lines = result.findings.map((f) => `${f.level} ${f.code} ${f.message}${f.where ? ` ${at(f.where)}` : ""}`);
|
|
655
|
-
const s = result.stats;
|
|
656
|
-
lines.push(`QA ${result.verdict}${file ? ` ${file}` : ""} · ${result.fails} fail · ${result.warnings} warn${s.mode ? ` · mode ${s.mode} · ${s.symbols} symbols · ${s.lines} lines · ${s.texts} labels` : ""}`);
|
|
657
|
-
return lines.join("\n");
|
|
658
|
-
}
|