@litfamily/litgravity 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +185 -97
- package/README_ko-KR.md +186 -98
- package/bin/litgravity.mjs +19 -8
- package/lib/agent-file.mjs +9 -7
- package/lib/doctor.mjs +31 -19
- package/lib/extension-manager.mjs +641 -0
- package/lib/host-tools.mjs +9 -36
- package/lib/install.mjs +21 -5
- package/lib/list.mjs +11 -16
- package/lib/paths.mjs +0 -1
- package/package.json +2 -2
- package/plugin/hooks/lib/extensions.mjs +58 -0
- package/plugin/hooks/lib/reentry.mjs +5 -4
- package/plugin/hooks/lib/routes.mjs +52 -9
- package/plugin/hooks/post-tool-use.mjs +0 -2
- package/plugin/hooks/pre-invocation.mjs +0 -2
- package/plugin/hooks/session-start.mjs +8 -0
- package/plugin/hooks/stop.mjs +2 -8
- package/plugin/plugin.json +1 -1
- package/plugin/skills/autoconference/SKILL.md +1 -1
- package/plugin/skills/autoconference/modes/core.md +1 -1
- package/plugin/skills/autoconference/references/visualization-guide.md +6 -6
- package/plugin/skills/autoconference/scripts/style_presets.py +6 -6
- package/plugin/skills/autoresearch/references/type-checklists.md +1 -1
- package/plugin/skills/autoresearch/references/visualization-guide.md +14 -5
- package/plugin/skills/frontend-ui-ux/SKILL.md +26 -142
- package/plugin/skills/lit-code/references/core/agy-surfaces-and-verification.md +1 -1
- package/plugin/skills/lit-code/references/engineering-risk-signals.md +2 -2
- package/plugin/skills/lit-diagram-drawer/SKILL.md +30 -161
- package/plugin/skills/lit-docx/SKILL.md +30 -119
- package/plugin/skills/lit-loop/SKILL.md +1 -1
- package/plugin/skills/lit-pptx/SKILL.md +28 -127
- package/plugin/skills/lit-schematic/SKILL.md +29 -95
- package/plugin/skills/lit-scientific-visualization/SKILL.md +29 -157
- package/plugin/skills/lit-typographic-motion/SKILL.md +28 -184
- package/plugin/skills/readme-studio/SKILL.md +30 -95
- package/plugin/skills/visual-qa/SKILL.md +30 -118
- package/lib/runtime.mjs +0 -81
- package/plugin/hooks/lib/motion.mjs +0 -171
- package/plugin/lib/python-pick.mjs +0 -63
- package/plugin/skills/frontend-ui-ux/ATTRIBUTION.md +0 -23
- package/plugin/skills/frontend-ui-ux/LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/PROVENANCE.json +0 -38
- package/plugin/skills/frontend-ui-ux/SOURCE-MANIFEST.json +0 -1060
- package/plugin/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -14
- package/plugin/skills/frontend-ui-ux/data/design-intelligence.json +0 -1
- package/plugin/skills/frontend-ui-ux/examples/design-contract.example.json +0 -186
- package/plugin/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +0 -9
- package/plugin/skills/frontend-ui-ux/kit/components.css +0 -417
- package/plugin/skills/frontend-ui-ux/kit/fonts.json +0 -22
- package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
- package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
- package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
- package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
- package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
- package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
- package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
- package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
- package/plugin/skills/frontend-ui-ux/kit/ui.js +0 -226
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +0 -217
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +0 -201
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +0 -873
- package/plugin/skills/frontend-ui-ux/references/adaptive-layout.md +0 -103
- package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/complete-contract.md +0 -415
- package/plugin/skills/frontend-ui-ux/references/composition.md +0 -93
- package/plugin/skills/frontend-ui-ux/references/craft-floor.md +0 -203
- package/plugin/skills/frontend-ui-ux/references/creative-directions.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -27
- package/plugin/skills/frontend-ui-ux/references/design/README.md +0 -248
- package/plugin/skills/frontend-ui-ux/references/design/_INDEX.md +0 -191
- package/plugin/skills/frontend-ui-ux/references/design/airbnb.md +0 -393
- package/plugin/skills/frontend-ui-ux/references/design/airtable.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/design/apple.md +0 -250
- package/plugin/skills/frontend-ui-ux/references/design/aside.md +0 -209
- package/plugin/skills/frontend-ui-ux/references/design/binance.md +0 -348
- package/plugin/skills/frontend-ui-ux/references/design/bmw.md +0 -183
- package/plugin/skills/frontend-ui-ux/references/design/brutalist-skill.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/design/bugatti.md +0 -271
- package/plugin/skills/frontend-ui-ux/references/design/cal.md +0 -262
- package/plugin/skills/frontend-ui-ux/references/design/claude.md +0 -315
- package/plugin/skills/frontend-ui-ux/references/design/clay.md +0 -307
- package/plugin/skills/frontend-ui-ux/references/design/clickhouse.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/clone-from-url.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/design/cohere.md +0 -269
- package/plugin/skills/frontend-ui-ux/references/design/coinbase.md +0 -132
- package/plugin/skills/frontend-ui-ux/references/design/composio.md +0 -310
- package/plugin/skills/frontend-ui-ux/references/design/cursor.md +0 -312
- package/plugin/skills/frontend-ui-ux/references/design/design-system-architecture.md +0 -244
- package/plugin/skills/frontend-ui-ux/references/design/elevenlabs.md +0 -268
- package/plugin/skills/frontend-ui-ux/references/design/expo.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/ferrari.md +0 -317
- package/plugin/skills/frontend-ui-ux/references/design/figma.md +0 -223
- package/plugin/skills/frontend-ui-ux/references/design/framer.md +0 -249
- package/plugin/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +0 -74
- package/plugin/skills/frontend-ui-ux/references/design/hashicorp.md +0 -281
- package/plugin/skills/frontend-ui-ux/references/design/ibm.md +0 -335
- package/plugin/skills/frontend-ui-ux/references/design/image-to-code-skill.md +0 -1228
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +0 -798
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +0 -1465
- package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +0 -987
- package/plugin/skills/frontend-ui-ux/references/design/intercom.md +0 -149
- package/plugin/skills/frontend-ui-ux/references/design/kraken.md +0 -128
- package/plugin/skills/frontend-ui-ux/references/design/lamborghini.md +0 -291
- package/plugin/skills/frontend-ui-ux/references/design/layout-skill.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/design/lazyweb.md +0 -77
- package/plugin/skills/frontend-ui-ux/references/design/linear.app.md +0 -370
- package/plugin/skills/frontend-ui-ux/references/design/lovable.md +0 -301
- package/plugin/skills/frontend-ui-ux/references/design/mastercard.md +0 -368
- package/plugin/skills/frontend-ui-ux/references/design/meta.md +0 -369
- package/plugin/skills/frontend-ui-ux/references/design/minimalist-skill.md +0 -85
- package/plugin/skills/frontend-ui-ux/references/design/minimax.md +0 -260
- package/plugin/skills/frontend-ui-ux/references/design/mintlify.md +0 -329
- package/plugin/skills/frontend-ui-ux/references/design/miro.md +0 -111
- package/plugin/skills/frontend-ui-ux/references/design/mistral.ai.md +0 -264
- package/plugin/skills/frontend-ui-ux/references/design/mongodb.md +0 -269
- package/plugin/skills/frontend-ui-ux/references/design/nike.md +0 -366
- package/plugin/skills/frontend-ui-ux/references/design/notion.md +0 -312
- package/plugin/skills/frontend-ui-ux/references/design/nvidia.md +0 -296
- package/plugin/skills/frontend-ui-ux/references/design/ollama.md +0 -270
- package/plugin/skills/frontend-ui-ux/references/design/opencode.ai.md +0 -284
- package/plugin/skills/frontend-ui-ux/references/design/output-skill.md +0 -49
- package/plugin/skills/frontend-ui-ux/references/design/pinterest.md +0 -233
- package/plugin/skills/frontend-ui-ux/references/design/playstation.md +0 -367
- package/plugin/skills/frontend-ui-ux/references/design/posthog.md +0 -259
- package/plugin/skills/frontend-ui-ux/references/design/raycast.md +0 -271
- package/plugin/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +0 -230
- package/plugin/skills/frontend-ui-ux/references/design/redesign-skill.md +0 -178
- package/plugin/skills/frontend-ui-ux/references/design/renault.md +0 -314
- package/plugin/skills/frontend-ui-ux/references/design/replicate.md +0 -264
- package/plugin/skills/frontend-ui-ux/references/design/resend.md +0 -306
- package/plugin/skills/frontend-ui-ux/references/design/revolut.md +0 -188
- package/plugin/skills/frontend-ui-ux/references/design/runwayml.md +0 -247
- package/plugin/skills/frontend-ui-ux/references/design/sanity.md +0 -360
- package/plugin/skills/frontend-ui-ux/references/design/sentry.md +0 -265
- package/plugin/skills/frontend-ui-ux/references/design/shopify.md +0 -353
- package/plugin/skills/frontend-ui-ux/references/design/soft-skill.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/design/spacex.md +0 -197
- package/plugin/skills/frontend-ui-ux/references/design/spotify.md +0 -249
- package/plugin/skills/frontend-ui-ux/references/design/starbucks.md +0 -583
- package/plugin/skills/frontend-ui-ux/references/design/stitch-design-example.md +0 -121
- package/plugin/skills/frontend-ui-ux/references/design/stitch-skill.md +0 -184
- package/plugin/skills/frontend-ui-ux/references/design/stripe.md +0 -325
- package/plugin/skills/frontend-ui-ux/references/design/supabase.md +0 -258
- package/plugin/skills/frontend-ui-ux/references/design/superhuman.md +0 -255
- package/plugin/skills/frontend-ui-ux/references/design/taste-skill.md +0 -1206
- package/plugin/skills/frontend-ui-ux/references/design/tesla.md +0 -289
- package/plugin/skills/frontend-ui-ux/references/design/theverge.md +0 -342
- package/plugin/skills/frontend-ui-ux/references/design/together.ai.md +0 -266
- package/plugin/skills/frontend-ui-ux/references/design/uber.md +0 -298
- package/plugin/skills/frontend-ui-ux/references/design/vercel.md +0 -313
- package/plugin/skills/frontend-ui-ux/references/design/vodafone.md +0 -426
- package/plugin/skills/frontend-ui-ux/references/design/voltagent.md +0 -326
- package/plugin/skills/frontend-ui-ux/references/design/warp.md +0 -256
- package/plugin/skills/frontend-ui-ux/references/design/webflow.md +0 -95
- package/plugin/skills/frontend-ui-ux/references/design/wired.md +0 -281
- package/plugin/skills/frontend-ui-ux/references/design/wise.md +0 -176
- package/plugin/skills/frontend-ui-ux/references/design/x.ai.md +0 -260
- package/plugin/skills/frontend-ui-ux/references/design/zapier.md +0 -331
- package/plugin/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +0 -97
- package/plugin/skills/frontend-ui-ux/references/designpowers/README.md +0 -48
- package/plugin/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +0 -80
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +0 -64
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +0 -65
- package/plugin/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +0 -83
- package/plugin/skills/frontend-ui-ux/references/designpowers/orchestration.md +0 -80
- package/plugin/skills/frontend-ui-ux/references/designpowers/routing.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +0 -21
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +0 -132
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +0 -109
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +0 -89
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +0 -113
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +0 -121
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +0 -120
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +0 -101
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +0 -199
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +0 -125
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +0 -106
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +0 -123
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +0 -122
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +0 -96
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +0 -75
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +0 -117
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +0 -78
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
- package/plugin/skills/frontend-ui-ux/references/evidence-review.md +0 -119
- package/plugin/skills/frontend-ui-ux/references/house-styles.md +0 -234
- package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +0 -115
- package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +0 -98
- package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +0 -48
- package/plugin/skills/frontend-ui-ux/references/motion-guide.md +0 -153
- package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +0 -101
- package/plugin/skills/frontend-ui-ux/references/perfection/README.md +0 -160
- package/plugin/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +0 -127
- package/plugin/skills/frontend-ui-ux/references/performance-delivery.md +0 -91
- package/plugin/skills/frontend-ui-ux/references/product-direction.md +0 -92
- package/plugin/skills/frontend-ui-ux/references/production-interview.md +0 -71
- package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +0 -103
- package/plugin/skills/frontend-ui-ux/references/slop-register.md +0 -139
- package/plugin/skills/frontend-ui-ux/references/system-foundations.md +0 -90
- package/plugin/skills/frontend-ui-ux/references/taste-direction.md +0 -79
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/README.md +0 -659
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +0 -26
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +0 -106
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +0 -35
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +0 -45
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +0 -53
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +0 -52
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +0 -61
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +0 -54
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +0 -51
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +0 -50
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +0 -85
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +0 -74
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +0 -162
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +0 -100
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +0 -31
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +0 -262
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +0 -1148
- package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +0 -114
- package/plugin/skills/frontend-ui-ux/references/visual-language.md +0 -90
- package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -55
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +0 -306
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +0 -291
- package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +0 -311
- package/plugin/skills/frontend-ui-ux/scripts/chrome-driver.mjs +0 -217
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-format.mjs +0 -286
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +0 -354
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +0 -361
- package/plugin/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +0 -313
- package/plugin/skills/frontend-ui-ux/scripts/design-data.mjs +0 -68
- package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
- package/plugin/skills/frontend-ui-ux/scripts/errors.mjs +0 -12
- package/plugin/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +0 -124
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +0 -196
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +0 -1555
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +0 -153
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +0 -57
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +0 -129
- package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +0 -322
- package/plugin/skills/frontend-ui-ux/scripts/json-boundary.mjs +0 -63
- package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
- package/plugin/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +0 -106
- package/plugin/skills/frontend-ui-ux/scripts/search.mjs +0 -43
- package/plugin/skills/frontend-ui-ux/scripts/source-replay.mjs +0 -153
- package/plugin/skills/frontend-ui-ux/scripts/strict-json.mjs +0 -143
- package/plugin/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -52
- package/plugin/skills/frontend-ui-ux/scripts/verify-corpus.mjs +0 -90
- package/plugin/skills/lit-diagram-drawer/NOTICE +0 -33
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
- package/plugin/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/plugin/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
- package/plugin/skills/lit-diagram-drawer/assets/icons.html +0 -231
- package/plugin/skills/lit-diagram-drawer/assets/index.html +0 -1
- package/plugin/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
- package/plugin/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
- package/plugin/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
- package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
- package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
- package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
- package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
- package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
- package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +0 -1
- package/plugin/skills/lit-diagram-drawer/references/accessibility.md +0 -37
- package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +0 -86
- package/plugin/skills/lit-diagram-drawer/references/export.md +0 -34
- package/plugin/skills/lit-diagram-drawer/references/failure-codes.md +0 -66
- package/plugin/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
- package/plugin/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
- package/plugin/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
- package/plugin/skills/lit-diagram-drawer/references/import-schema.md +0 -28
- package/plugin/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
- package/plugin/skills/lit-diagram-drawer/references/motion.md +0 -29
- package/plugin/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
- package/plugin/skills/lit-diagram-drawer/references/output-spec.md +0 -48
- package/plugin/skills/lit-diagram-drawer/references/playbooks.md +0 -67
- package/plugin/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
- package/plugin/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
- package/plugin/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
- package/plugin/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
- package/plugin/skills/lit-diagram-drawer/references/profiles.md +0 -24
- package/plugin/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
- package/plugin/skills/lit-diagram-drawer/references/style-guide.md +0 -76
- package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-bar.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-bump.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
- package/plugin/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-er.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
- package/plugin/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-journey.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-layers.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-line.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-loop.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-nested.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
- package/plugin/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
- package/plugin/skills/lit-diagram-drawer/references/type-polar.md +0 -67
- package/plugin/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
- package/plugin/skills/lit-diagram-drawer/references/type-process.md +0 -58
- package/plugin/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
- package/plugin/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-radar.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
- package/plugin/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
- package/plugin/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
- package/plugin/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
- package/plugin/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
- package/plugin/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-state.md +0 -59
- package/plugin/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
- package/plugin/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
- package/plugin/skills/lit-diagram-drawer/references/type-tree.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-venn.md +0 -51
- package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
- package/plugin/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
- package/plugin/skills/lit-diagram-drawer/references/verifier-guide.md +0 -76
- package/plugin/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
- package/plugin/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
- package/plugin/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +0 -13
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -219
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime-lock/package.json +0 -9
- package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime.mjs +0 -277
- package/plugin/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -25
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-model.mjs +0 -162
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-source.mjs +0 -147
- package/plugin/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +0 -148
- package/plugin/skills/lit-diagram-drawer/scripts/export.mjs +0 -119
- package/plugin/skills/lit-diagram-drawer/scripts/import-common.mjs +0 -85
- package/plugin/skills/lit-diagram-drawer/scripts/import-drawio.mjs +0 -48
- package/plugin/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +0 -234
- package/plugin/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +0 -104
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +0 -115
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +0 -70
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +0 -178
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +0 -137
- package/plugin/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +0 -80
- package/plugin/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
- package/plugin/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +0 -11
- package/plugin/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -85
- package/plugin/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -16
- package/plugin/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -27
- package/plugin/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
- package/plugin/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +0 -226
- package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -146
- package/plugin/skills/lit-docx/NOTICE +0 -35
- package/plugin/skills/lit-docx/references/build-loop.md +0 -96
- package/plugin/skills/lit-docx/references/components.md +0 -287
- package/plugin/skills/lit-docx/references/direction-step.md +0 -339
- package/plugin/skills/lit-docx/references/examples/01-report-ko.md +0 -166
- package/plugin/skills/lit-docx/references/examples/02-brief-ko.md +0 -96
- package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +0 -170
- package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +0 -141
- package/plugin/skills/lit-docx/references/examples/05-memo-en.md +0 -56
- package/plugin/skills/lit-docx/references/examples/06-journal-en.md +0 -129
- package/plugin/skills/lit-docx/references/examples/07-report-en.md +0 -123
- package/plugin/skills/lit-docx/references/examples/08-proposal-en.md +0 -122
- package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +0 -40
- package/plugin/skills/lit-docx/references/frontmatter_schema.md +0 -94
- package/plugin/skills/lit-docx/references/journal_style_spec.md +0 -89
- package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +0 -43
- package/plugin/skills/lit-docx/references/page-composition.md +0 -319
- package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
- package/plugin/skills/lit-docx/references/slop_rules.md +0 -88
- package/plugin/skills/lit-docx/references/tonalities/brief.md +0 -170
- package/plugin/skills/lit-docx/references/tonalities/journal.md +0 -173
- package/plugin/skills/lit-docx/references/tonalities/manual.md +0 -182
- package/plugin/skills/lit-docx/references/tonalities/memo.md +0 -171
- package/plugin/skills/lit-docx/references/tonalities/proposal.md +0 -181
- package/plugin/skills/lit-docx/references/tonalities/report.md +0 -199
- package/plugin/skills/lit-docx/scripts/clean_markdown.py +0 -95
- package/plugin/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1395
- package/plugin/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -301
- package/plugin/skills/lit-docx/scripts/convert_pdf.py +0 -139
- package/plugin/skills/lit-docx/scripts/docx_design.py +0 -2449
- package/plugin/skills/lit-docx/scripts/docx_layout.py +0 -959
- package/plugin/skills/lit-docx/scripts/edit_docx.py +0 -306
- package/plugin/skills/lit-docx/scripts/embed_images.py +0 -78
- package/plugin/skills/lit-docx/scripts/generate_docx_templates.py +0 -500
- package/plugin/skills/lit-docx/scripts/pdf_fonts.py +0 -83
- package/plugin/skills/lit-docx/scripts/qa_docx.py +0 -234
- package/plugin/skills/lit-docx/scripts/slop_lint.py +0 -573
- package/plugin/skills/lit-docx/scripts/visual_audit.py +0 -48
- package/plugin/skills/lit-docx/templates/docx/acs.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/elsevier.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/ieee.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
- package/plugin/skills/lit-docx/templates/docx/nature.docx +0 -0
- package/plugin/skills/lit-docx/templates/latex/acs/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/acs/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +0 -42
- package/plugin/skills/lit-docx/templates/latex/ieee/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/latex/nature/README.md +0 -5
- package/plugin/skills/lit-docx/templates/latex/nature/template.tex +0 -41
- package/plugin/skills/lit-docx/templates/registry.yaml +0 -1366
- package/plugin/skills/lit-docx/templates/tonalities/brief.yaml +0 -28
- package/plugin/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
- package/plugin/skills/lit-docx/templates/tonalities/manual.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
- package/plugin/skills/lit-docx/templates/tonalities/report.yaml +0 -26
- package/plugin/skills/lit-pptx/NOTICE +0 -35
- package/plugin/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
- package/plugin/skills/lit-pptx/assets/azure/circle-md.png +0 -0
- package/plugin/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-a.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-b.png +0 -0
- package/plugin/skills/lit-pptx/assets/example-c.png +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/a2z/OFL.txt +0 -94
- package/plugin/skills/lit-pptx/fonts/a2z/SOURCE.md +0 -29
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
- package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
- package/plugin/skills/lit-pptx/fonts/pretendard/OFL.txt +0 -94
- package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
- package/plugin/skills/lit-pptx/fonts/provenance.json +0 -109
- package/plugin/skills/lit-pptx/references/agents/analyst.md +0 -49
- package/plugin/skills/lit-pptx/references/agents/antithesis.md +0 -59
- package/plugin/skills/lit-pptx/references/agents/architect.md +0 -44
- package/plugin/skills/lit-pptx/references/agents/critic.md +0 -42
- package/plugin/skills/lit-pptx/references/agents/synthesizer.md +0 -47
- package/plugin/skills/lit-pptx/references/agents/thesis.md +0 -33
- package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +0 -131
- package/plugin/skills/lit-pptx/references/authoring-guide.md +0 -250
- package/plugin/skills/lit-pptx/references/build-loop.md +0 -117
- package/plugin/skills/lit-pptx/references/consensus-protocol.md +0 -125
- package/plugin/skills/lit-pptx/references/data-display-cookbook.md +0 -52
- package/plugin/skills/lit-pptx/references/density-and-fill.md +0 -163
- package/plugin/skills/lit-pptx/references/design-system-azure.md +0 -61
- package/plugin/skills/lit-pptx/references/direction-step.md +0 -203
- package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +0 -210
- package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +0 -147
- package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +0 -199
- package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +0 -203
- package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +0 -178
- package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +0 -199
- package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +0 -194
- package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +0 -175
- package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +0 -204
- package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +0 -179
- package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +0 -164
- package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +0 -174
- package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +0 -173
- package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +0 -154
- package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +0 -139
- package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +0 -158
- package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +0 -179
- package/plugin/skills/lit-pptx/references/interview-protocol.md +0 -113
- package/plugin/skills/lit-pptx/references/layout-families.md +0 -194
- package/plugin/skills/lit-pptx/references/stages/autopilot.md +0 -48
- package/plugin/skills/lit-pptx/references/stages/interview.md +0 -52
- package/plugin/skills/lit-pptx/references/stages/plan.md +0 -42
- package/plugin/skills/lit-pptx/references/title-treatments.md +0 -113
- package/plugin/skills/lit-pptx/references/tonalities/atlas.md +0 -139
- package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +0 -140
- package/plugin/skills/lit-pptx/references/tonalities/chalk.md +0 -148
- package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -150
- package/plugin/skills/lit-pptx/references/tonalities/gazette.md +0 -149
- package/plugin/skills/lit-pptx/references/tonalities/ledger.md +0 -149
- package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -161
- package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +0 -144
- package/plugin/skills/lit-pptx/references/tonalities/night.md +0 -147
- package/plugin/skills/lit-pptx/references/tonalities/paper.md +0 -151
- package/plugin/skills/lit-pptx/references/tonalities/riso.md +0 -137
- package/plugin/skills/lit-pptx/references/tonalities/signal.md +0 -150
- package/plugin/skills/lit-pptx/references/tonalities/studio.md +0 -131
- package/plugin/skills/lit-pptx/scripts/compile-deck.js +0 -462
- package/plugin/skills/lit-pptx/scripts/craft_extras.py +0 -1077
- package/plugin/skills/lit-pptx/scripts/deck_craft.py +0 -363
- package/plugin/skills/lit-pptx/scripts/embed_fonts.py +0 -227
- package/plugin/skills/lit-pptx/scripts/forbidden-terms.json +0 -55
- package/plugin/skills/lit-pptx/scripts/layout_inventory.py +0 -418
- package/plugin/skills/lit-pptx/scripts/learn_template.py +0 -446
- package/plugin/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
- package/plugin/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
- package/plugin/skills/lit-pptx/scripts/lib/font-map.js +0 -79
- package/plugin/skills/lit-pptx/scripts/lib/gen-bg.js +0 -86
- package/plugin/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -37
- package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -512
- package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
- package/plugin/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -356
- package/plugin/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2240
- package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +0 -3366
- package/plugin/skills/lit-pptx/scripts/lib/runtime-require.js +0 -28
- package/plugin/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
- package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
- package/plugin/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
- package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package-lock.json +0 -793
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package.json +0 -12
- package/plugin/skills/lit-pptx/scripts/office-runtime-lock/requirements.lock +0 -15
- package/plugin/skills/lit-pptx/scripts/office-runtime.mjs +0 -279
- package/plugin/skills/lit-pptx/scripts/office_data.py +0 -493
- package/plugin/skills/lit-pptx/scripts/office_runtime_bootstrap.py +0 -73
- package/plugin/skills/lit-pptx/scripts/ooxml_integrity.py +0 -199
- package/plugin/skills/lit-pptx/scripts/package.json +0 -4
- package/plugin/skills/lit-pptx/scripts/qa_deck.py +0 -795
- package/plugin/skills/lit-pptx/scripts/render_pages.py +0 -147
- package/plugin/skills/lit-pptx/scripts/validate_pptx.py +0 -230
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
- package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -214
- package/plugin/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
- package/plugin/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
- package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +0 -382
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -475
- package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
- package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
- package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -92
- package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
- package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -97
- package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -93
- package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -94
- package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
- package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -93
- package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -98
- package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
- package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -94
- package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -92
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -38
- package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -133
- package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -87
- package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -85
- package/plugin/skills/lit-schematic/references/cutaway-outputs.md +0 -70
- package/plugin/skills/lit-schematic/references/isometric-craft.md +0 -101
- package/plugin/skills/lit-schematic/references/journal-figures.md +0 -72
- package/plugin/skills/lit-schematic/references/kit-api.md +0 -134
- package/plugin/skills/lit-schematic/references/pfd-and-layout.md +0 -53
- package/plugin/skills/lit-schematic/references/pid-drafting.md +0 -103
- package/plugin/skills/lit-schematic/references/pid-symbols.md +0 -163
- package/plugin/skills/lit-schematic/references/verification.md +0 -100
- package/plugin/skills/lit-schematic/scripts/doctor.mjs +0 -57
- package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +0 -81
- package/plugin/skills/lit-schematic/scripts/lib/fonts.mjs +0 -27
- package/plugin/skills/lit-schematic/scripts/lib/geom.mjs +0 -113
- package/plugin/skills/lit-schematic/scripts/lib/interactive.mjs +0 -292
- package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +0 -115
- package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +0 -719
- package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -162
- package/plugin/skills/lit-schematic/scripts/lib/pid.mjs +0 -937
- package/plugin/skills/lit-schematic/scripts/lib/png.mjs +0 -132
- package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -658
- package/plugin/skills/lit-schematic/scripts/lib/route.mjs +0 -218
- package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +0 -890
- package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +0 -82
- package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +0 -115
- package/plugin/skills/lit-schematic/scripts/motion.mjs +0 -129
- package/plugin/skills/lit-schematic/scripts/qa.mjs +0 -92
- package/plugin/skills/lit-schematic/scripts/render.mjs +0 -233
- package/plugin/skills/lit-schematic/scripts/scaffold.mjs +0 -60
- package/plugin/skills/lit-scientific-visualization/LICENSE +0 -21
- package/plugin/skills/lit-scientific-visualization/assets/color_palettes.py +0 -197
- package/plugin/skills/lit-scientific-visualization/assets/nature.mplstyle +0 -75
- package/plugin/skills/lit-scientific-visualization/assets/presentation.mplstyle +0 -74
- package/plugin/skills/lit-scientific-visualization/assets/publication.mplstyle +0 -78
- package/plugin/skills/lit-scientific-visualization/evals/evals.json +0 -158
- package/plugin/skills/lit-scientific-visualization/references/canonical-workflow.md +0 -278
- package/plugin/skills/lit-scientific-visualization/references/color_palettes.md +0 -380
- package/plugin/skills/lit-scientific-visualization/references/journal_requirements.md +0 -359
- package/plugin/skills/lit-scientific-visualization/references/matplotlib_examples.md +0 -608
- package/plugin/skills/lit-scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
- package/plugin/skills/lit-scientific-visualization/references/publication_guidelines.md +0 -217
- package/plugin/skills/lit-scientific-visualization/references/seaborn_for_publications.md +0 -293
- package/plugin/skills/lit-scientific-visualization/scripts/figure_export.py +0 -238
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime-requirements.lock +0 -23
- package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime.mjs +0 -230
- package/plugin/skills/lit-scientific-visualization/scripts/style_presets.py +0 -467
- package/plugin/skills/lit-scientific-visualization/tests/test_figure_export.py +0 -51
- package/plugin/skills/lit-scientific-visualization/tests/test_style_presets.py +0 -114
- package/plugin/skills/lit-typographic-motion/engine/NOTICE +0 -23
- package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +0 -73
- package/plugin/skills/lit-typographic-motion/engine/audio/beat_grid.py +0 -56
- package/plugin/skills/lit-typographic-motion/engine/audio/requirements.lock +0 -1084
- package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +0 -218
- package/plugin/skills/lit-typographic-motion/engine/core/constants.mjs +0 -246
- package/plugin/skills/lit-typographic-motion/engine/core/contrast.mjs +0 -90
- package/plugin/skills/lit-typographic-motion/engine/core/events.mjs +0 -46
- package/plugin/skills/lit-typographic-motion/engine/core/flash.mjs +0 -211
- package/plugin/skills/lit-typographic-motion/engine/core/gate-rules.mjs +0 -550
- package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +0 -123
- package/plugin/skills/lit-typographic-motion/engine/core/text.mjs +0 -100
- package/plugin/skills/lit-typographic-motion/engine/core/timeline.mjs +0 -142
- package/plugin/skills/lit-typographic-motion/engine/core/util.mjs +0 -167
- package/plugin/skills/lit-typographic-motion/engine/core/voices.mjs +0 -19
- package/plugin/skills/lit-typographic-motion/engine/models/word-timing.json +0 -198
- package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +0 -172
- package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +0 -298
- package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +0 -143
- package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +0 -136
- package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +0 -164
- package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +0 -328
- package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +0 -104
- package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +0 -210
- package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +0 -347
- package/plugin/skills/lit-typographic-motion/engine/node/cover-image.mjs +0 -141
- package/plugin/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +0 -76
- package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +0 -139
- package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +0 -32
- package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +0 -385
- package/plugin/skills/lit-typographic-motion/engine/node/coverage.mjs +0 -83
- package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +0 -209
- package/plugin/skills/lit-typographic-motion/engine/node/encode.mjs +0 -105
- package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +0 -38
- package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +0 -121
- package/plugin/skills/lit-typographic-motion/engine/node/host.mjs +0 -34
- package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +0 -44
- package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +0 -178
- package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +0 -603
- package/plugin/skills/lit-typographic-motion/engine/node/png.mjs +0 -112
- package/plugin/skills/lit-typographic-motion/engine/node/report.mjs +0 -66
- package/plugin/skills/lit-typographic-motion/engine/node/runtime.mjs +0 -349
- package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +0 -210
- package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +0 -639
- package/plugin/skills/lit-typographic-motion/engine/node/session.mjs +0 -145
- package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +0 -77
- package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +0 -740
- package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +0 -180
- package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +0 -177
- package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +0 -427
- package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +0 -428
- package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +0 -572
- package/plugin/skills/lit-typographic-motion/engine/node/stills.mjs +0 -100
- package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +0 -213
- package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +0 -645
- package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +0 -146
- package/plugin/skills/lit-typographic-motion/engine/node/ws-server.mjs +0 -132
- package/plugin/skills/lit-typographic-motion/engine/package-lock.json +0 -25
- package/plugin/skills/lit-typographic-motion/engine/package.json +0 -10
- package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +0 -49
- package/plugin/skills/lit-typographic-motion/engine/stage/init.js +0 -298
- package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +0 -106
- package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +0 -162
- package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +0 -823
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +0 -21
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +0 -144
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
- package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +0 -54571
- package/plugin/skills/lit-typographic-motion/engine/web/boot.mjs +0 -123
- package/plugin/skills/lit-typographic-motion/engine/web/engine.mjs +0 -281
- package/plugin/skills/lit-typographic-motion/engine/web/gl.mjs +0 -319
- package/plugin/skills/lit-typographic-motion/engine/web/glsl-common.mjs +0 -78
- package/plugin/skills/lit-typographic-motion/engine/web/index.html +0 -6
- package/plugin/skills/lit-typographic-motion/engine/web/lines.mjs +0 -112
- package/plugin/skills/lit-typographic-motion/engine/web/passes/crt.mjs +0 -98
- package/plugin/skills/lit-typographic-motion/engine/web/passes/dither.mjs +0 -49
- package/plugin/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +0 -77
- package/plugin/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +0 -61
- package/plugin/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +0 -88
- package/plugin/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +0 -86
- package/plugin/skills/lit-typographic-motion/engine/web/post.mjs +0 -165
- package/plugin/skills/lit-typographic-motion/engine/web/scale.mjs +0 -15
- package/plugin/skills/lit-typographic-motion/engine/web/scene.mjs +0 -82
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +0 -30
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/index.mjs +0 -16
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +0 -47
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +0 -45
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +0 -29
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +0 -73
- package/plugin/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +0 -73
- package/plugin/skills/lit-typographic-motion/engine/web/stroke.mjs +0 -236
- package/plugin/skills/lit-typographic-motion/engine/web/type.mjs +0 -180
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/archivo/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/manifest.json +0 -455
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/fonts/stroke/CREDITS +0 -42
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
- package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
- package/plugin/skills/lit-typographic-motion/fonts/stroke/OFL.txt +0 -91
- package/plugin/skills/lit-typographic-motion/fonts/vt323/OFL.txt +0 -93
- package/plugin/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -139
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
- package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -27
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
- package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -18
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
- package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -30
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -152
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -97
- package/plugin/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -202
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -69
- package/plugin/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -100
- package/plugin/skills/lit-typographic-motion/references/brief-schema.md +0 -119
- package/plugin/skills/lit-typographic-motion/references/cover.md +0 -424
- package/plugin/skills/lit-typographic-motion/references/craft-loop.md +0 -70
- package/plugin/skills/lit-typographic-motion/references/depth.md +0 -122
- package/plugin/skills/lit-typographic-motion/references/engine-contract.md +0 -124
- package/plugin/skills/lit-typographic-motion/references/look.md +0 -122
- package/plugin/skills/lit-typographic-motion/references/runtime.md +0 -67
- package/plugin/skills/lit-typographic-motion/references/sound.md +0 -152
- package/plugin/skills/lit-typographic-motion/references/stage.md +0 -256
- package/plugin/skills/lit-typographic-motion/references/studio.md +0 -245
- package/plugin/skills/lit-typographic-motion/references/style-bibles.md +0 -141
- package/plugin/skills/lit-typographic-motion/references/treatment.md +0 -214
- package/plugin/skills/lit-typographic-motion/references/type-craft.md +0 -87
- package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +0 -111
- package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +0 -95
- package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +0 -205
- package/plugin/skills/lit-typographic-motion/styles/paper.json +0 -41
- package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +0 -41
- package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +0 -42
- package/plugin/skills/lit-typographic-motion/styles/tidal.json +0 -41
- package/plugin/skills/readme-studio/references/decoration-and-navigation.md +0 -55
- package/plugin/skills/readme-studio/references/facts-and-assembly.md +0 -19
- package/plugin/skills/readme-studio/references/production-interview.md +0 -11
- package/plugin/skills/readme-studio/references/render-and-deliver.md +0 -44
- package/plugin/skills/readme-studio/references/type-and-background.md +0 -23
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package-lock.json +0 -133
- package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package.json +0 -6
- package/plugin/skills/readme-studio/scripts/readme-runtime.mjs +0 -77
- package/plugin/skills/readme-studio/scripts/validate-readme-facts.mjs +0 -28
- package/plugin/skills/readme-studio/templates/cover-source.json +0 -21
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.html +0 -30
- package/plugin/skills/readme-studio/templates/hyperframes-cover/index.motion.json +0 -1
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +0 -2017
- package/plugin/skills/readme-studio/templates/hyperframes-cover/package.json +0 -8
- package/plugin/skills/readme-studio/templates/readme-cover-section.md +0 -75
- package/plugin/skills/readme-studio/templates/readme-facts.json +0 -4
- package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +0 -3783
- package/plugin/skills/readme-studio/templates/remotion-cover/package.json +0 -7
- package/plugin/skills/readme-studio/templates/remotion-cover/src/index.tsx +0 -36
- package/plugin/skills/readme-studio/templates/typography/package-lock.json +0 -133
- package/plugin/skills/readme-studio/templates/typography/package.json +0 -6
- package/plugin/skills/readme-studio/templates/typography/safe-files.mjs +0 -57
- package/plugin/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +0 -63
- package/plugin/skills/visual-qa/references/breakage-catalogue.md +0 -70
- package/plugin/skills/visual-qa/references/capture-playbook.md +0 -96
- package/plugin/skills/visual-qa/references/complete-contract.md +0 -411
- package/plugin/skills/visual-qa/references/korean-and-mixed-script-checks.md +0 -50
- package/plugin/skills/visual-qa/references/reviewer-charters.md +0 -70
- package/plugin/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +0 -305
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +0 -291
- package/plugin/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +0 -311
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +0 -235
- package/plugin/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +0 -208
- package/plugin/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +0 -66
- package/plugin/skills/visual-qa/scripts/ansi.ts +0 -17
- package/plugin/skills/visual-qa/scripts/cli.mjs +0 -101
- package/plugin/skills/visual-qa/scripts/cli.ts +0 -96
- package/plugin/skills/visual-qa/scripts/design-contract-shape.mjs +0 -448
- package/plugin/skills/visual-qa/scripts/east-asian-width.ts +0 -72
- package/plugin/skills/visual-qa/scripts/errors.mjs +0 -12
- package/plugin/skills/visual-qa/scripts/evidence-io.mjs +0 -184
- package/plugin/skills/visual-qa/scripts/evidence-semantic.mjs +0 -95
- package/plugin/skills/visual-qa/scripts/evidence-shape.mjs +0 -163
- package/plugin/skills/visual-qa/scripts/evidence.mjs +0 -421
- package/plugin/skills/visual-qa/scripts/image-diff.mjs +0 -89
- package/plugin/skills/visual-qa/scripts/image-diff.ts +0 -109
- package/plugin/skills/visual-qa/scripts/png-chunks.mjs +0 -107
- package/plugin/skills/visual-qa/scripts/png-crc.ts +0 -27
- package/plugin/skills/visual-qa/scripts/png-decode.mjs +0 -143
- package/plugin/skills/visual-qa/scripts/png-decode.ts +0 -206
- package/plugin/skills/visual-qa/scripts/png-synth.ts +0 -57
- package/plugin/skills/visual-qa/scripts/review-rules.mjs +0 -137
- package/plugin/skills/visual-qa/scripts/strict-json.mjs +0 -143
- package/plugin/skills/visual-qa/scripts/terminal-text.mjs +0 -117
- package/plugin/skills/visual-qa/scripts/tui-check.mjs +0 -74
- package/plugin/skills/visual-qa/scripts/tui-grid.ts +0 -88
- package/plugin/skills/visual-qa/scripts/types.ts +0 -54
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { cleanLabel, reject, safeId, sha256 } from './import-common.mjs';
|
|
2
|
-
import { descendants, inflateDiagram, parseXml, xmlText } from './drawio-xml.mjs';
|
|
3
|
-
|
|
4
|
-
const MAX_PAGES = 100;
|
|
5
|
-
const MAX_NODES = 2_000;
|
|
6
|
-
const MAX_RELATIONSHIPS = 5_000;
|
|
7
|
-
|
|
8
|
-
function diagramModel(diagram) {
|
|
9
|
-
const nested = descendants(diagram, 'mxGraphModel')[0];
|
|
10
|
-
if (nested) return nested;
|
|
11
|
-
const payload = xmlText(diagram).trim();
|
|
12
|
-
if (!payload) reject('draw.io page has no graph model');
|
|
13
|
-
return parseXml(payload.startsWith('<') ? payload : inflateDiagram(payload));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function styleOf(entry) {
|
|
17
|
-
return Object.fromEntries((entry.style ?? '').split(';').filter(Boolean).map((part) => {
|
|
18
|
-
const separator = part.indexOf('=');
|
|
19
|
-
return separator < 0 ? [part, '1'] : [part.slice(0, separator), part.slice(separator + 1)];
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function cellEntries(model) {
|
|
24
|
-
const entries = [];
|
|
25
|
-
for (const cell of descendants(model, 'mxCell')) {
|
|
26
|
-
const wrapper = cell.parent?.attributes.id && cell.parent.name !== 'root' ? cell.parent : undefined;
|
|
27
|
-
const attributes = { ...cell.attributes, ...(wrapper?.attributes ?? {}) };
|
|
28
|
-
if (cell.attributes.vertex === '1' || cell.attributes.edge === '1') {
|
|
29
|
-
attributes.vertex = cell.attributes.vertex;
|
|
30
|
-
attributes.edge = cell.attributes.edge;
|
|
31
|
-
}
|
|
32
|
-
entries.push({ attributes, wrapper: Boolean(wrapper) });
|
|
33
|
-
}
|
|
34
|
-
return entries;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function shapeHint(style) {
|
|
38
|
-
const shape = style.shape ?? '';
|
|
39
|
-
if (/swimlane|container|group/iu.test(shape)) return 'container';
|
|
40
|
-
if (/rhombus|diamond/iu.test(shape)) return 'diamond';
|
|
41
|
-
if (/ellipse|oval/iu.test(shape)) return 'ellipse';
|
|
42
|
-
if (/cylinder|database/iu.test(shape)) return 'cylinder';
|
|
43
|
-
if (/cloud/iu.test(shape)) return 'cloud';
|
|
44
|
-
if (/image/iu.test(shape)) return 'image';
|
|
45
|
-
return 'rectangle';
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function labelOf(attributes) {
|
|
49
|
-
return cleanLabel(attributes.label ?? attributes.value ?? attributes.name ?? '', { html: true });
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function extractPage(model, page, pageIndex) {
|
|
53
|
-
const entries = cellEntries(model);
|
|
54
|
-
if (entries.length > 20_000) reject('draw.io cell limit exceeded (max 20,000)');
|
|
55
|
-
const bySourceId = new Map();
|
|
56
|
-
const entryBySourceId = new Map();
|
|
57
|
-
const usedIds = new Set();
|
|
58
|
-
const nodes = [];
|
|
59
|
-
const edges = [];
|
|
60
|
-
const discarded = { styles: 0, links: 0, urls: 0, assets: 0, unsupportedCells: 0, danglingRelationships: 0 };
|
|
61
|
-
|
|
62
|
-
for (const entry of entries) {
|
|
63
|
-
const { attributes } = entry;
|
|
64
|
-
const sourceId = attributes.id;
|
|
65
|
-
if (!sourceId || sourceId === '0' || sourceId === '1') continue;
|
|
66
|
-
if (bySourceId.has(sourceId)) reject(`draw.io page contains duplicate cell id ${sourceId}`);
|
|
67
|
-
const style = styleOf(attributes);
|
|
68
|
-
if (attributes.style || entry.wrapper) discarded.styles += 1;
|
|
69
|
-
if (attributes.link || style.link) discarded.links += 1;
|
|
70
|
-
if (attributes.edge === '1' || attributes.source || attributes.target) {
|
|
71
|
-
edges.push({ attributes, style });
|
|
72
|
-
bySourceId.set(sourceId, null);
|
|
73
|
-
entryBySourceId.set(sourceId, entry);
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (attributes.vertex !== '1') {
|
|
77
|
-
discarded.unsupportedCells += 1;
|
|
78
|
-
bySourceId.set(sourceId, null);
|
|
79
|
-
entryBySourceId.set(sourceId, entry);
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
if (nodes.length >= MAX_NODES) reject('draw.io node limit exceeded (max 2,000)');
|
|
83
|
-
const normalized = labelOf(attributes);
|
|
84
|
-
discarded.urls += normalized.urls;
|
|
85
|
-
const shape = shapeHint(style);
|
|
86
|
-
if (shape === 'image') discarded.assets += 1;
|
|
87
|
-
const id = safeId(sourceId, usedIds, 'draw.io page');
|
|
88
|
-
const node = { id, sourceId, label: normalized.text, kind: shape === 'container' ? 'container' : 'component', shape };
|
|
89
|
-
nodes.push(node);
|
|
90
|
-
bySourceId.set(sourceId, node);
|
|
91
|
-
entryBySourceId.set(sourceId, entry);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const relationships = [];
|
|
95
|
-
for (const edge of edges) {
|
|
96
|
-
const { attributes, style } = edge;
|
|
97
|
-
const from = bySourceId.get(attributes.source);
|
|
98
|
-
const to = bySourceId.get(attributes.target);
|
|
99
|
-
if (!from || !to) {
|
|
100
|
-
discarded.danglingRelationships += 1;
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
const normalized = labelOf(attributes);
|
|
104
|
-
discarded.urls += normalized.urls;
|
|
105
|
-
const start = Boolean(style.startArrow && style.startArrow !== 'none');
|
|
106
|
-
const end = Boolean(style.endArrow && style.endArrow !== 'none');
|
|
107
|
-
const direction = start && end ? 'both' : start ? 'reverse' : style.endArrow === 'none' ? 'none' : 'forward';
|
|
108
|
-
relationships.push({ from: from.id, to: to.id, label: normalized.text, kind: 'flow', direction });
|
|
109
|
-
if (relationships.length > MAX_RELATIONSHIPS) reject('draw.io relationship limit exceeded (max 5,000)');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
for (const node of nodes) {
|
|
113
|
-
const entry = entryBySourceId.get(node.sourceId);
|
|
114
|
-
const parentId = entry?.attributes.parent;
|
|
115
|
-
const parent = bySourceId.get(parentId);
|
|
116
|
-
if (parent?.kind === 'container') node.parentId = parent.id;
|
|
117
|
-
}
|
|
118
|
-
const groups = nodes.filter(({ kind }) => kind === 'container').flatMap((container) => {
|
|
119
|
-
const members = nodes.filter(({ parentId }) => parentId === container.id).map(({ id }) => id);
|
|
120
|
-
return members.length ? [{ id: container.id, label: container.label || 'Container', nodeIds: members }] : [];
|
|
121
|
-
});
|
|
122
|
-
if (!nodes.length) reject('draw.io page contains no supported diagram cells');
|
|
123
|
-
return {
|
|
124
|
-
pageId: page.id || `page-${pageIndex + 1}`,
|
|
125
|
-
name: cleanLabel(page.name || `Page ${pageIndex + 1}`).text,
|
|
126
|
-
nodeCount: nodes.length,
|
|
127
|
-
relationshipCount: relationships.length,
|
|
128
|
-
suggestedType: relationships.length ? 'flowchart' : 'architecture',
|
|
129
|
-
nodes: nodes.map(({ sourceId, ...node }) => node),
|
|
130
|
-
relationships,
|
|
131
|
-
groups,
|
|
132
|
-
discarded,
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function pageDefinitions(root) {
|
|
137
|
-
if (root.name === 'mxGraphModel') return [{ id: 'page-1', name: 'Page 1', model: root }];
|
|
138
|
-
if (root.name !== 'mxfile') reject('XML root is not mxfile or mxGraphModel');
|
|
139
|
-
const diagrams = root.children.filter(({ name }) => name === 'diagram');
|
|
140
|
-
if (!diagrams.length) reject('draw.io file has no diagram pages');
|
|
141
|
-
if (diagrams.length > MAX_PAGES) reject('draw.io page limit exceeded (max 100)');
|
|
142
|
-
return diagrams.map((page) => ({ id: page.attributes.id, name: page.attributes.name, model: diagramModel(page) }));
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export function extractDrawio(root, bytes, pageIndex) {
|
|
146
|
-
const allPages = pageDefinitions(root);
|
|
147
|
-
if (pageIndex !== undefined && (!Number.isInteger(pageIndex) || pageIndex < 0 || pageIndex >= allPages.length)) {
|
|
148
|
-
reject(`page index must be between 0 and ${allPages.length - 1}`);
|
|
149
|
-
}
|
|
150
|
-
const selected = pageIndex === undefined ? allPages.map((page, index) => ({ page, index })) : [{ page: allPages[pageIndex], index: pageIndex }];
|
|
151
|
-
const pages = selected.map(({ page, index }) => extractPage(page.model, page, index));
|
|
152
|
-
return {
|
|
153
|
-
schemaVersion: 1,
|
|
154
|
-
sourceFormat: 'drawio',
|
|
155
|
-
sourceDigest: sha256(bytes),
|
|
156
|
-
title: pages[0].name,
|
|
157
|
-
suggestedType: pages[0].suggestedType,
|
|
158
|
-
pageCount: allPages.length,
|
|
159
|
-
pages,
|
|
160
|
-
warnings: ['Source geometry, routes, and styling are omitted; labels and link text are inert data.'],
|
|
161
|
-
};
|
|
162
|
-
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { inflateSync } from 'node:zlib';
|
|
2
|
-
import { readBoundedFile, reject, strictUtf8 } from './import-common.mjs';
|
|
3
|
-
import { descendants, parseXml } from './drawio-xml.mjs';
|
|
4
|
-
|
|
5
|
-
const PNG_SIGNATURE = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
|
|
6
|
-
const MAX_INPUT = 16 * 1024 * 1024;
|
|
7
|
-
const MAX_METADATA = 32 * 1024 * 1024;
|
|
8
|
-
const CRC_TABLE = (() => {
|
|
9
|
-
const values = new Uint32Array(256);
|
|
10
|
-
for (let index = 0; index < values.length; index += 1) {
|
|
11
|
-
let value = index;
|
|
12
|
-
for (let bit = 0; bit < 8; bit += 1) value = value & 1 ? 0xedb88320 ^ (value >>> 1) : value >>> 1;
|
|
13
|
-
values[index] = value >>> 0;
|
|
14
|
-
}
|
|
15
|
-
return values;
|
|
16
|
-
})();
|
|
17
|
-
|
|
18
|
-
function crc32(data) {
|
|
19
|
-
let crc = 0xffffffff;
|
|
20
|
-
for (const byte of data) crc = CRC_TABLE[(crc ^ byte) & 0xff] ^ (crc >>> 8);
|
|
21
|
-
return (crc ^ 0xffffffff) >>> 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function inflateMetadata(data) {
|
|
25
|
-
try {
|
|
26
|
-
return strictUtf8(inflateSync(data, { maxOutputLength: MAX_METADATA }), 'PNG metadata is not valid UTF-8');
|
|
27
|
-
} catch (error) {
|
|
28
|
-
if (error instanceof Error && /PNG metadata/u.test(error.message)) throw error;
|
|
29
|
-
reject('PNG compressed metadata is invalid or exceeds the decoded limit');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function pngText(type, data) {
|
|
34
|
-
if (type === 'tEXt') {
|
|
35
|
-
const separator = data.indexOf(0);
|
|
36
|
-
if (separator < 0) reject('PNG text chunk has no keyword terminator');
|
|
37
|
-
return { keyword: data.toString('latin1', 0, separator), text: strictUtf8(data.subarray(separator + 1), 'PNG mxfile metadata is not valid UTF-8') };
|
|
38
|
-
}
|
|
39
|
-
if (type === 'zTXt') {
|
|
40
|
-
const separator = data.indexOf(0);
|
|
41
|
-
if (separator < 0 || data[separator + 1] !== 0) reject('PNG compressed text chunk is malformed');
|
|
42
|
-
return { keyword: data.toString('latin1', 0, separator), text: inflateMetadata(data.subarray(separator + 2)) };
|
|
43
|
-
}
|
|
44
|
-
if (type !== 'iTXt') return null;
|
|
45
|
-
const keywordEnd = data.indexOf(0);
|
|
46
|
-
if (keywordEnd < 0 || data.length < keywordEnd + 5) reject('PNG international text chunk is malformed');
|
|
47
|
-
const compressed = data[keywordEnd + 1];
|
|
48
|
-
const method = data[keywordEnd + 2];
|
|
49
|
-
let cursor = data.indexOf(0, keywordEnd + 3);
|
|
50
|
-
if (cursor < 0) reject('PNG international text language is malformed');
|
|
51
|
-
cursor = data.indexOf(0, cursor + 1);
|
|
52
|
-
if (cursor < 0) reject('PNG international text translation is malformed');
|
|
53
|
-
let text = data.subarray(cursor + 1);
|
|
54
|
-
if (compressed === 1) {
|
|
55
|
-
if (method !== 0) reject('PNG international text compression method is unsupported');
|
|
56
|
-
text = Buffer.from(inflateMetadata(text), 'utf8');
|
|
57
|
-
} else if (compressed !== 0) reject('PNG international text compression flag is invalid');
|
|
58
|
-
return { keyword: data.toString('latin1', 0, keywordEnd), text: strictUtf8(text, 'PNG mxfile metadata is not valid UTF-8') };
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function pngMxfile(bytes) {
|
|
62
|
-
if (bytes.length < 20 || !bytes.subarray(0, 8).equals(PNG_SIGNATURE)) reject('input is not a PNG file');
|
|
63
|
-
let offset = 8;
|
|
64
|
-
let sawHeader = false;
|
|
65
|
-
let sawEnd = false;
|
|
66
|
-
const candidates = [];
|
|
67
|
-
while (offset < bytes.length) {
|
|
68
|
-
if (offset + 12 > bytes.length) reject('PNG has a truncated chunk header');
|
|
69
|
-
const length = bytes.readUInt32BE(offset);
|
|
70
|
-
const end = offset + 12 + length;
|
|
71
|
-
if (length > MAX_INPUT || end > bytes.length) reject('PNG chunk length is invalid or exceeds the limit');
|
|
72
|
-
const typeBytes = bytes.subarray(offset + 4, offset + 8);
|
|
73
|
-
const type = typeBytes.toString('ascii');
|
|
74
|
-
if (!/^[A-Za-z]{4}$/u.test(type)) reject('PNG chunk type is invalid');
|
|
75
|
-
const data = bytes.subarray(offset + 8, offset + 8 + length);
|
|
76
|
-
const expected = bytes.readUInt32BE(offset + 8 + length);
|
|
77
|
-
if (crc32(Buffer.concat([typeBytes, data])) !== expected) reject(`PNG ${type} chunk CRC check failed`);
|
|
78
|
-
if (type === 'IHDR') {
|
|
79
|
-
if (sawHeader || offset !== 8 || length !== 13) reject('PNG header chunk is malformed');
|
|
80
|
-
sawHeader = true;
|
|
81
|
-
}
|
|
82
|
-
const metadata = pngText(type, data);
|
|
83
|
-
if (metadata?.keyword === 'mxfile') candidates.push(metadata.text);
|
|
84
|
-
offset = end;
|
|
85
|
-
if (type === 'IEND') {
|
|
86
|
-
if (length !== 0 || offset !== bytes.length) reject('PNG end chunk is malformed or has trailing data');
|
|
87
|
-
sawEnd = true;
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (!sawHeader || !sawEnd) reject('PNG is incomplete');
|
|
92
|
-
if (!candidates.length) reject('PNG contains no embedded mxfile text metadata');
|
|
93
|
-
return candidates;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function embeddedMxfile(root) {
|
|
97
|
-
if (root.name === 'mxfile' || root.name === 'mxGraphModel') return root;
|
|
98
|
-
return descendants(root, 'mxfile')[0];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function candidateRoot(candidate) {
|
|
102
|
-
let value = candidate.trim();
|
|
103
|
-
const dataUri = /^data:[^,]*;base64,/iu.exec(value);
|
|
104
|
-
if (dataUri) value = value.slice(dataUri[0].length);
|
|
105
|
-
else if (value.startsWith('data:') && value.includes(',')) {
|
|
106
|
-
const comma = value.indexOf(',');
|
|
107
|
-
try {
|
|
108
|
-
value = decodeURIComponent(value.slice(comma + 1));
|
|
109
|
-
} catch {
|
|
110
|
-
reject('embedded mxfile data URI is malformed');
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (value.startsWith('<')) return embeddedMxfile(parseXml(value));
|
|
114
|
-
if (/^[A-Za-z0-9+/\s]+={0,2}$/u.test(value) && value.replace(/\s/gu, '').length % 4 !== 1) {
|
|
115
|
-
const decoded = strictUtf8(Buffer.from(value.replace(/\s/gu, ''), 'base64'), 'embedded mxfile payload is not valid UTF-8');
|
|
116
|
-
return embeddedMxfile(parseXml(decoded));
|
|
117
|
-
}
|
|
118
|
-
return undefined;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export function readDrawioRoot(file) {
|
|
122
|
-
const name = file.toLowerCase();
|
|
123
|
-
const bytes = readBoundedFile(file, MAX_INPUT, 'draw.io input');
|
|
124
|
-
const extension = name.slice(name.lastIndexOf('.'));
|
|
125
|
-
if (extension === '.png') {
|
|
126
|
-
const roots = pngMxfile(bytes).map(candidateRoot).filter(Boolean);
|
|
127
|
-
if (!roots.length) reject('PNG mxfile metadata does not contain a readable mxfile document');
|
|
128
|
-
return { root: roots[0], bytes };
|
|
129
|
-
}
|
|
130
|
-
const source = strictUtf8(bytes, 'draw.io input is not valid UTF-8');
|
|
131
|
-
const parsed = parseXml(source);
|
|
132
|
-
if (extension === '.svg' || parsed.name === 'svg') {
|
|
133
|
-
const embedded = embeddedMxfile(parsed);
|
|
134
|
-
if (embedded) return { root: embedded, bytes };
|
|
135
|
-
for (const metadata of descendants(parsed, 'metadata')) {
|
|
136
|
-
const root = candidateRoot(metadata.text.join(''));
|
|
137
|
-
if (root) return { root, bytes };
|
|
138
|
-
for (const value of Object.values(metadata.attributes)) {
|
|
139
|
-
const attributeRoot = candidateRoot(value);
|
|
140
|
-
if (attributeRoot) return { root: attributeRoot, bytes };
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
reject('SVG has no readable embedded mxfile metadata');
|
|
144
|
-
}
|
|
145
|
-
if (parsed.name !== 'mxfile' && parsed.name !== 'mxGraphModel') reject('XML root is not mxfile or mxGraphModel');
|
|
146
|
-
return { root: parsed, bytes };
|
|
147
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { inflateRawSync } from 'node:zlib';
|
|
2
|
-
import { decodeEntities, reject, strictUtf8 } from './import-common.mjs';
|
|
3
|
-
|
|
4
|
-
const MAX_XML_CHARS = 24 * 1024 * 1024;
|
|
5
|
-
const MAX_XML_NODES = 50_000;
|
|
6
|
-
const MAX_XML_DEPTH = 64;
|
|
7
|
-
const MAX_INFLATED_BYTES = 32 * 1024 * 1024;
|
|
8
|
-
const NAME = /^[A-Za-z_][A-Za-z0-9_.:-]*/u;
|
|
9
|
-
|
|
10
|
-
function appendText(node, value) {
|
|
11
|
-
if (value) node.text.push(value);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function decodeXmlText(value) {
|
|
15
|
-
if (/&(?!(?:#(?:x[\da-f]+|\d+)|amp|lt|gt|quot|apos|nbsp);)/iu.test(value)) {
|
|
16
|
-
reject('XML contains an unsupported entity reference');
|
|
17
|
-
}
|
|
18
|
-
return decodeEntities(value);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function tagEnd(source, start) {
|
|
22
|
-
let quote = '';
|
|
23
|
-
for (let index = start; index < source.length; index += 1) {
|
|
24
|
-
const char = source[index];
|
|
25
|
-
if (quote) {
|
|
26
|
-
if (char === quote) quote = '';
|
|
27
|
-
} else if (char === '"' || char === "'") quote = char;
|
|
28
|
-
else if (char === '>') return index;
|
|
29
|
-
}
|
|
30
|
-
reject('XML contains an unterminated tag');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function parseOpeningTag(raw) {
|
|
34
|
-
const match = NAME.exec(raw);
|
|
35
|
-
if (!match) reject('XML contains an invalid element name');
|
|
36
|
-
const name = match[0];
|
|
37
|
-
const attributes = Object.create(null);
|
|
38
|
-
let rest = raw.slice(name.length).trim();
|
|
39
|
-
const selfClosing = rest.endsWith('/');
|
|
40
|
-
if (selfClosing) rest = rest.slice(0, -1).trim();
|
|
41
|
-
while (rest) {
|
|
42
|
-
const attribute = /^([A-Za-z_][A-Za-z0-9_.:-]*)\s*=\s*(["'])([\s\S]*?)\2/u.exec(rest);
|
|
43
|
-
if (!attribute) reject('XML contains a malformed attribute');
|
|
44
|
-
const [, key, , value] = attribute;
|
|
45
|
-
if (Object.hasOwn(attributes, key)) reject(`XML contains duplicate attribute ${key}`);
|
|
46
|
-
attributes[key] = decodeXmlText(value);
|
|
47
|
-
rest = rest.slice(attribute[0].length).trim();
|
|
48
|
-
}
|
|
49
|
-
return { name, attributes, selfClosing };
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function parseXml(source) {
|
|
53
|
-
if (source.length > MAX_XML_CHARS) reject('XML exceeds the 24 MiB decoded limit');
|
|
54
|
-
if (/<!\s*(?:DOCTYPE|ENTITY)\b/iu.test(source)) reject('DOCTYPE and entity declarations are unsupported');
|
|
55
|
-
const document = { name: '#document', attributes: Object.create(null), children: [], text: [] };
|
|
56
|
-
const stack = [document];
|
|
57
|
-
let count = 0;
|
|
58
|
-
let cursor = 0;
|
|
59
|
-
while (cursor < source.length) {
|
|
60
|
-
if (source[cursor] !== '<') {
|
|
61
|
-
const end = source.indexOf('<', cursor);
|
|
62
|
-
const next = end < 0 ? source.length : end;
|
|
63
|
-
const text = source.slice(cursor, next);
|
|
64
|
-
if (stack.length === 1 && text.trim()) reject('XML has text outside the root element');
|
|
65
|
-
appendText(stack.at(-1), decodeXmlText(text));
|
|
66
|
-
cursor = next;
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
if (source.startsWith('<!--', cursor)) {
|
|
70
|
-
const end = source.indexOf('-->', cursor + 4);
|
|
71
|
-
if (end < 0) reject('XML contains an unterminated comment');
|
|
72
|
-
cursor = end + 3;
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
if (source.startsWith('<![CDATA[', cursor)) {
|
|
76
|
-
const end = source.indexOf(']]>', cursor + 9);
|
|
77
|
-
if (end < 0) reject('XML contains an unterminated CDATA section');
|
|
78
|
-
appendText(stack.at(-1), source.slice(cursor + 9, end));
|
|
79
|
-
cursor = end + 3;
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
if (source.startsWith('<?', cursor)) {
|
|
83
|
-
const end = source.indexOf('?>', cursor + 2);
|
|
84
|
-
if (end < 0) reject('XML contains an unterminated processing instruction');
|
|
85
|
-
cursor = end + 2;
|
|
86
|
-
continue;
|
|
87
|
-
}
|
|
88
|
-
if (source.startsWith('<!', cursor)) reject('unsupported XML declaration');
|
|
89
|
-
const end = tagEnd(source, cursor + 1);
|
|
90
|
-
const raw = source.slice(cursor + 1, end).trim();
|
|
91
|
-
if (raw.startsWith('/')) {
|
|
92
|
-
const closing = raw.slice(1).trim();
|
|
93
|
-
if (stack.length === 1 || stack.at(-1).name !== closing) reject('XML has mismatched closing tags');
|
|
94
|
-
stack.pop();
|
|
95
|
-
} else {
|
|
96
|
-
const parsed = parseOpeningTag(raw);
|
|
97
|
-
const parent = stack.at(-1);
|
|
98
|
-
const node = { name: parsed.name, attributes: parsed.attributes, children: [], text: [], parent };
|
|
99
|
-
parent.children.push(node);
|
|
100
|
-
count += 1;
|
|
101
|
-
if (count > MAX_XML_NODES) reject('XML element limit exceeded (max 50,000)');
|
|
102
|
-
if (!parsed.selfClosing) {
|
|
103
|
-
stack.push(node);
|
|
104
|
-
if (stack.length - 1 > MAX_XML_DEPTH) reject('XML nesting exceeds the depth limit (64)');
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
cursor = end + 1;
|
|
108
|
-
}
|
|
109
|
-
if (stack.length !== 1 || document.children.length !== 1) reject('XML is incomplete or has multiple root elements');
|
|
110
|
-
return document.children[0];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function descendants(node, name) {
|
|
114
|
-
const found = [];
|
|
115
|
-
const pending = [...node.children].reverse();
|
|
116
|
-
while (pending.length) {
|
|
117
|
-
const current = pending.pop();
|
|
118
|
-
if (current.name === name) found.push(current);
|
|
119
|
-
for (let index = current.children.length - 1; index >= 0; index -= 1) pending.push(current.children[index]);
|
|
120
|
-
}
|
|
121
|
-
return found;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function xmlText(node) {
|
|
125
|
-
return node.text.join('');
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export function inflateDiagram(text) {
|
|
129
|
-
const compact = text.replace(/\s+/gu, '');
|
|
130
|
-
if (!compact || compact.length % 4 === 1 || !/^[A-Za-z0-9+/]*={0,2}$/u.test(compact)) reject('compressed diagram payload is not valid base64');
|
|
131
|
-
const compressed = Buffer.from(compact, 'base64');
|
|
132
|
-
let inflated;
|
|
133
|
-
try {
|
|
134
|
-
inflated = inflateRawSync(compressed, { maxOutputLength: MAX_INFLATED_BYTES });
|
|
135
|
-
} catch {
|
|
136
|
-
reject('compressed diagram payload is invalid or exceeds the 32 MiB limit');
|
|
137
|
-
}
|
|
138
|
-
const textPayload = strictUtf8(inflated, 'compressed diagram is not valid UTF-8');
|
|
139
|
-
if (textPayload.startsWith('<')) return textPayload;
|
|
140
|
-
try {
|
|
141
|
-
const decoded = decodeURIComponent(textPayload);
|
|
142
|
-
if (!decoded.startsWith('<')) reject('compressed diagram does not contain XML');
|
|
143
|
-
return decoded;
|
|
144
|
-
} catch (error) {
|
|
145
|
-
if (error instanceof Error && error.message.includes('does not contain XML')) throw error;
|
|
146
|
-
reject('compressed diagram URI encoding is malformed');
|
|
147
|
-
}
|
|
148
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from 'node:fs';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { runSync } from '../../../lib/host-exec.mjs';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
|
-
import { buildBlockRegistry } from './block-registry.mjs';
|
|
7
|
-
import { decodeXmlCharacterReferences, officeCssUrlsAreSafe, officeHrefRefsAreSafe } from './office-safety.mjs';
|
|
8
|
-
import { ensureChrome, ensureRenderer, rendererEnv } from './diagram-runtime.mjs';
|
|
9
|
-
|
|
10
|
-
const root=path.resolve(path.dirname(fileURLToPath(import.meta.url)),'..');
|
|
11
|
-
const args=process.argv.slice(2);
|
|
12
|
-
const value=(flag,fallback)=>{const i=args.indexOf(flag);if(i<0)return fallback;const candidate=args[i+1];return candidate&&!candidate.startsWith('--')?candidate:undefined;};
|
|
13
|
-
const input=value('--input',args.find((x)=>!x.startsWith('--')));
|
|
14
|
-
const outputValue=value('--out',path.resolve('docs','diagrams','exports'));
|
|
15
|
-
const all=args.includes('--all-scales');
|
|
16
|
-
const office=args.includes('--office-safe');
|
|
17
|
-
const registry=args.includes('--registry');
|
|
18
|
-
const allowFontFallback=args.includes('--allow-font-fallback');
|
|
19
|
-
const selected=Number(value('--scale','3'));
|
|
20
|
-
if(!input||!outputValue||(!all&&![1,2,3].includes(selected))){console.error('Usage: node scripts/export.mjs --input <file.html|file.svg> [--out DIR] [--scale 1|2|3|--all-scales] [--office-safe] [--registry] [--allow-font-fallback]');process.exit(2);}
|
|
21
|
-
const output=path.resolve(outputValue);
|
|
22
|
-
if(path.basename(input)==='index.html'){console.error('EXPORT_SOURCE_REJECTED gallery pages are not diagram sources');process.exit(2);}
|
|
23
|
-
const resolved=path.resolve(input);
|
|
24
|
-
if(!fs.existsSync(resolved)){console.error('INPUT_MISSING '+resolved);process.exit(2);}
|
|
25
|
-
let renderer;
|
|
26
|
-
try{renderer=ensureRenderer();const chromeState=ensureChrome(renderer.bin);if(!chromeState.ok){console.error("CHROME_REQUIRED "+chromeState.detail+"; pre-warm from a terminal: npx @litfamily/litgravity runtime install diagram");process.exit(2);}}
|
|
27
|
-
catch(e){console.error("RENDERER_REQUIRED "+e.message+"; pre-warm from a terminal: npx @litfamily/litgravity runtime install diagram");process.exit(2);}
|
|
28
|
-
const AB=renderer.bin;
|
|
29
|
-
let source=fs.readFileSync(resolved,'utf8');
|
|
30
|
-
const svgMatch=source.match(/<svg\b[^>]*>[\s\S]*?<\/svg>/i);
|
|
31
|
-
if(!svgMatch){console.error('SVG_MISSING '+resolved);process.exit(2);}
|
|
32
|
-
const svg=svgMatch[0];
|
|
33
|
-
let registryData=null;
|
|
34
|
-
if(registry){try{registryData=buildBlockRegistry(svg,resolved);}catch(e){console.error('REGISTRY_FAILED '+e.message);process.exit(2);}}
|
|
35
|
-
const view=svg.match(/\bviewBox\s*=\s*["']([^"']+)["']/i)?.[1]?.trim().split(/[\s,]+/).map(Number);
|
|
36
|
-
if(!view||view.length!==4||view.some((x)=>!Number.isFinite(x))){console.error('VIEWBOX_REQUIRED '+resolved);process.exit(2);}
|
|
37
|
-
let officeSvg=null;
|
|
38
|
-
if(office){
|
|
39
|
-
const font=path.join(root,'assets/fonts/PretendardVariable.woff2');
|
|
40
|
-
if(!fs.existsSync(font)){console.error('FONT_MISSING '+font);process.exit(2);}
|
|
41
|
-
const normalizedOfficeSource=decodeXmlCharacterReferences(svg);
|
|
42
|
-
if(normalizedOfficeSource===null){console.error('OFFICE_UNSAFE_ACTIVE_OR_EXTERNAL_CONTENT');process.exit(2);}
|
|
43
|
-
officeSvg=svg.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,'');
|
|
44
|
-
if(/<foreignObject\b|\bon[a-z]+\s*=|<script\b/i.test(normalizedOfficeSource)||!officeHrefRefsAreSafe(normalizedOfficeSource)){console.error('OFFICE_UNSAFE_ACTIVE_OR_EXTERNAL_CONTENT');process.exit(2);}
|
|
45
|
-
if(/\bvar\s*\(|@import/i.test(normalizedOfficeSource)||!officeCssUrlsAreSafe(normalizedOfficeSource)){console.error('OFFICE_UNSUPPORTED_CSS_URL_OR_VARIABLE');process.exit(2);}
|
|
46
|
-
officeSvg=officeSvg.replace(/<filter\b[^>]*>[\s\S]*?<\/filter>/gi,'');
|
|
47
|
-
officeSvg=officeSvg.replace(/\s+(?:filter|mask)\s*=\s*(["'])url\(#.*?\)\1/gi,'');
|
|
48
|
-
officeSvg=officeSvg.replace(/<(rect|circle|ellipse|line|path|polygon|polyline|text)\b([^>]*)>/gi,(tag,name,attributes)=>{
|
|
49
|
-
let extra='';
|
|
50
|
-
const converted=attributes.replace(/(\b(?:fill|stroke)\s*=\s*)(["'])(.*?)\2/gi,(whole,prefix,quote,value)=>{
|
|
51
|
-
if(value.toLowerCase()==='transparent')return prefix+quote+'none'+quote;
|
|
52
|
-
const rgba=value.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?\s*\)$/i);
|
|
53
|
-
if(!rgba)return whole;
|
|
54
|
-
const channels=rgba.slice(1,4).map((n)=>Math.max(0,Math.min(255,Number(n))).toString(16).padStart(2,'0'));
|
|
55
|
-
const alpha=rgba[4]===undefined?1:Math.max(0,Math.min(1,Number(rgba[4])));
|
|
56
|
-
if(alpha<1)extra+=' '+prefix.trim().split('=')[0]+'-opacity="'+alpha+'"';
|
|
57
|
-
return prefix+quote+'#'+channels.join('')+quote;
|
|
58
|
-
});
|
|
59
|
-
return '<'+name+converted+extra+'>';
|
|
60
|
-
});
|
|
61
|
-
const rootOpen=officeSvg.match(/<svg\b[^>]*>/i)?.[0];
|
|
62
|
-
if(!rootOpen){console.error('OFFICE_SVG_ROOT_MISSING');process.exit(2);}
|
|
63
|
-
let nextRoot=rootOpen;
|
|
64
|
-
if(!/\bxmlns\s*=/.test(nextRoot))nextRoot=nextRoot.replace(/<svg\b/,'<svg xmlns="http://www.w3.org/2000/svg"');
|
|
65
|
-
if(!/\bwidth\s*=/.test(nextRoot))nextRoot=nextRoot.replace(/>$/,' width="'+view[2]+'" height="'+view[3]+'">');
|
|
66
|
-
officeSvg=officeSvg.replace(rootOpen,nextRoot);
|
|
67
|
-
const fontData=fs.readFileSync(font).toString('base64');
|
|
68
|
-
const style='<style>@font-face{font-family:Pretendard;src:url(data:font/woff2;base64,'+fontData+') format("woff2");font-weight:100 900}text{font-family:Pretendard,Arial,sans-serif}</style>';
|
|
69
|
-
officeSvg=officeSvg.replace(/(<svg\b[^>]*>)/i,'$1'+style);
|
|
70
|
-
}
|
|
71
|
-
function run(commandArgs, env={}) {
|
|
72
|
-
const r=runSync(AB,commandArgs,{encoding:'utf8',env:rendererEnv({AGENT_BROWSER_ALLOW_FILE_ACCESS:'true',...env}),maxBuffer:2*1024*1024});
|
|
73
|
-
if(r.status!==0) throw new Error((r.stderr||r.stdout||'agent-browser failed').trim());
|
|
74
|
-
return (r.stdout||'').trim();
|
|
75
|
-
}
|
|
76
|
-
fs.mkdirSync(output,{recursive:true});
|
|
77
|
-
const session='lde-'+process.pid;
|
|
78
|
-
const url=resolved.endsWith('.svg')?'file://'+resolved:'file://'+resolved;
|
|
79
|
-
let opened=false;
|
|
80
|
-
try{
|
|
81
|
-
run(['--session',session,'open',url]);opened=true;
|
|
82
|
-
run(['--session',session,'set','media','light','reduced-motion']);
|
|
83
|
-
const outputs=[];
|
|
84
|
-
const scales=all?[1,2,3]:[selected];
|
|
85
|
-
for(const scale of scales){
|
|
86
|
-
const width=Math.round(view[2]*scale), height=Math.round(view[3]*scale);
|
|
87
|
-
run(['--session',session,'set','viewport',String(Math.max(width+8,640)),String(Math.max(height+8,480))]);
|
|
88
|
-
run(['--session',session,'eval','document.fonts.ready.then(()=>true)']);
|
|
89
|
-
const script='(async()=>{const s=document.querySelector("svg");if(!s)throw new Error("SVG missing");document.documentElement.style.margin="0";document.body.style.margin="0";document.body.style.padding="0";const main=s.closest("main");if(main){main.style.width="'+width+'px";main.style.maxWidth="none";main.style.margin="0";main.style.padding="0"}s.style.width="'+width+'px";s.style.height="'+height+'px";s.style.maxWidth="none";s.style.display="block";await document.fonts.ready;const t=s.querySelector("text"),family=t?getComputedStyle(t).fontFamily:"",size=t?getComputedStyle(t).fontSize:"16px",face=[...document.fonts].find(f=>f.family.replace(/[\"\']/g,"").toLowerCase()==="pretendard"),r=s.getBoundingClientRect();const font=Boolean(t&&/Pretendard/i.test(family)&&face?.status==="loaded"&&document.fonts.check(size+" Pretendard"));return JSON.stringify({width:r.width,height:r.height,x:r.x,y:r.y,viewportWidth:innerWidth,viewportHeight:innerHeight,font,family,fontFaceStatus:face?.status||"missing"})})()';
|
|
90
|
-
const dimensions=run(['--session',session,'eval',script]);
|
|
91
|
-
let measurement;
|
|
92
|
-
try{const outer=JSON.parse(dimensions);measurement=typeof outer==='string'?JSON.parse(outer):outer;}catch{throw new Error('FONT_PROOF_INVALID '+dimensions);}
|
|
93
|
-
if(Math.abs(measurement.width-width)>0.5||Math.abs(measurement.height-height)>0.5)throw new Error('SVG_DIMENSIONS_MISMATCH '+JSON.stringify(measurement));
|
|
94
|
-
if(measurement.x<0||measurement.y<0||measurement.x+measurement.width>measurement.viewportWidth||measurement.y+measurement.height>measurement.viewportHeight)throw new Error('SVG_OUTSIDE_VIEWPORT '+JSON.stringify(measurement));
|
|
95
|
-
if(!measurement.font&&!allowFontFallback)throw new Error('PRETENDARD_NOT_LOADED_OR_COMPUTED '+JSON.stringify(measurement));
|
|
96
|
-
const filename=path.join(output,path.basename(resolved).replace(/\.(?:html|svg)$/i,'')+'-'+scale+'x.png');
|
|
97
|
-
run(['--session',session,'screenshot','svg',filename]);
|
|
98
|
-
if(!fs.existsSync(filename)||fs.statSync(filename).size===0) throw new Error('PNG_WRITE_FAILED '+filename+' '+dimensions);
|
|
99
|
-
outputs.push({file:filename,bytes:fs.statSync(filename).size,scale,dimensions});
|
|
100
|
-
}
|
|
101
|
-
for(const out of outputs) console.log('PNG '+out.scale+'x '+out.bytes+' bytes '+out.file+' '+out.dimensions);
|
|
102
|
-
} catch(e) {
|
|
103
|
-
console.error('EXPORT_FAILED '+e.message);
|
|
104
|
-
process.exitCode=1;
|
|
105
|
-
} finally {
|
|
106
|
-
if(opened) {
|
|
107
|
-
const close=runSync(AB,['--session',session,'close'],{encoding:'utf8',env:rendererEnv()});
|
|
108
|
-
if(close.status!==0) console.error('BROWSER_CLOSE_WARNING '+(close.stderr||''));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if(officeSvg){
|
|
112
|
-
const target=path.join(output,path.basename(resolved).replace(/\.(?:html|svg)$/i,'')+'-office.svg');
|
|
113
|
-
fs.writeFileSync(target,'<?xml version="1.0" encoding="UTF-8"?>\n'+officeSvg);
|
|
114
|
-
console.log('OFFICE_SVG '+fs.statSync(target).size+' bytes '+target+' text=live font=embedded-woff2');
|
|
115
|
-
}
|
|
116
|
-
if(registry) {
|
|
117
|
-
const target=path.join(output,path.basename(resolved).replace(/\.(?:html|svg)$/i,'')+'.registry.json');
|
|
118
|
-
if(!process.exitCode){fs.writeFileSync(target,JSON.stringify(registryData,null,2)+'\n');console.log('REGISTRY '+registryData.blocks.length+' blocks '+target);}
|
|
119
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
import { closeSync, openSync, readSync } from 'node:fs';
|
|
3
|
-
|
|
4
|
-
export class ImportFailure extends Error {}
|
|
5
|
-
|
|
6
|
-
export function reject(message) {
|
|
7
|
-
throw new ImportFailure(message);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function readBoundedFile(file, limit, description) {
|
|
11
|
-
let fd;
|
|
12
|
-
try {
|
|
13
|
-
fd = openSync(file, 'r');
|
|
14
|
-
const chunks = [];
|
|
15
|
-
let total = 0;
|
|
16
|
-
while (total <= limit) {
|
|
17
|
-
const buffer = Buffer.alloc(Math.min(64 * 1024, limit + 1 - total));
|
|
18
|
-
const count = readSync(fd, buffer, 0, buffer.length, null);
|
|
19
|
-
if (count === 0) break;
|
|
20
|
-
chunks.push(buffer.subarray(0, count));
|
|
21
|
-
total += count;
|
|
22
|
-
}
|
|
23
|
-
if (total > limit) reject(`${description} exceeds the ${Math.floor(limit / (1024 * 1024))} MiB limit`);
|
|
24
|
-
return Buffer.concat(chunks, total);
|
|
25
|
-
} catch (error) {
|
|
26
|
-
if (error instanceof ImportFailure) throw error;
|
|
27
|
-
reject(`cannot read input: ${error instanceof Error ? error.message : 'I/O error'}`);
|
|
28
|
-
} finally {
|
|
29
|
-
if (fd !== undefined) closeSync(fd);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function safeId(sourceId, used, description = 'diagram') {
|
|
34
|
-
if (!sourceId) reject(`${description} contains an element without an id`);
|
|
35
|
-
const candidate = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/u.test(sourceId)
|
|
36
|
-
? sourceId
|
|
37
|
-
: `n-${createHash('sha256').update(sourceId).digest('hex').slice(0, 16)}`;
|
|
38
|
-
if (used.has(candidate)) reject(`${description} contains duplicate or colliding ids`);
|
|
39
|
-
used.add(candidate);
|
|
40
|
-
return candidate;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function sha256(data) {
|
|
44
|
-
return `sha256:${createHash('sha256').update(data).digest('hex')}`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function decodeEntities(text) {
|
|
48
|
-
return text.replace(/&(#(?:x[\da-f]+|\d+)|amp|lt|gt|quot|apos|nbsp);/giu, (entity, name) => {
|
|
49
|
-
if (name[0] === '#') {
|
|
50
|
-
const hex = name[1]?.toLowerCase() === 'x';
|
|
51
|
-
const point = Number.parseInt(name.slice(hex ? 2 : 1), hex ? 16 : 10);
|
|
52
|
-
if (!Number.isFinite(point) || point < 0 || point > 0x10ffff || (point >= 0xd800 && point <= 0xdfff)) {
|
|
53
|
-
reject('label contains an invalid character reference');
|
|
54
|
-
}
|
|
55
|
-
return String.fromCodePoint(point);
|
|
56
|
-
}
|
|
57
|
-
return ({ amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: '\u00a0' })[name.toLowerCase()] ?? entity;
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function cleanLabel(raw, { html = false, markdown = false, removeControls = false } = {}) {
|
|
62
|
-
let text = html ? decodeEntities(raw) : raw;
|
|
63
|
-
if (/<\s*(?:script|iframe|object|embed)\b|\bon[a-z]+\s*=/isu.test(text)) {
|
|
64
|
-
reject('executable markup or event attributes in labels are unsupported');
|
|
65
|
-
}
|
|
66
|
-
const urls = text.match(/\b(?:https?|ftp|file|javascript|data):[^\s<>"']+/giu)?.length ?? 0;
|
|
67
|
-
text = text.replace(/\b(?:https?|ftp|file|javascript|data):[^\s<>"']+/giu, '');
|
|
68
|
-
if (html) {
|
|
69
|
-
text = text.replace(/<br\s*\/?>|<\/(?:p|div)\s*>/giu, '\n').replace(/<[^>]*>/gu, ' ');
|
|
70
|
-
text = text.replaceAll('\u00a0', ' ');
|
|
71
|
-
}
|
|
72
|
-
if (markdown) text = text.replace(/\*\*(.*?)\*\*|__(.*?)__/gu, (_all, a, b) => a || b);
|
|
73
|
-
text = text.replace(/\r\n?/gu, '\n');
|
|
74
|
-
if (removeControls) text = [...text].filter((char) => char === '\n' || char === '\t' || char.codePointAt(0) >= 32).join('');
|
|
75
|
-
const lines = text.split('\n').map((line) => line.replace(/[ \t]+/gu, ' ').trim()).filter(Boolean);
|
|
76
|
-
return { text: lines.join('\n').slice(0, 2_000), urls };
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function strictUtf8(data, message) {
|
|
80
|
-
try {
|
|
81
|
-
return new TextDecoder('utf-8', { fatal: true }).decode(data);
|
|
82
|
-
} catch {
|
|
83
|
-
reject(message);
|
|
84
|
-
}
|
|
85
|
-
}
|