@litfamily/litcodex 1.0.5 → 1.0.7
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/README.md +327 -25
- package/dist/cli.js +42 -0
- package/dist/config-migration/config-paths.js +9 -2
- package/dist/install/execute.d.ts +2 -0
- package/dist/install/execute.js +8 -3
- package/dist/install/generated-skill-payload-hashes.d.ts +617 -21
- package/dist/install/generated-skill-payload-hashes.js +617 -21
- package/dist/install/index.js +13 -2
- package/dist/install/marketplace-payload.d.ts +1 -0
- package/dist/install/marketplace-payload.js +73 -2
- package/dist/install/motion-runtime.d.ts +36 -0
- package/dist/install/motion-runtime.js +82 -0
- package/dist/install/office-runtime.d.ts +20 -0
- package/dist/install/office-runtime.js +37 -0
- package/dist/install/skill-catalog.d.ts +1 -1
- package/dist/install/skill-catalog.js +26 -2
- package/dist/install/skill-resource-hashes.d.ts +1 -1
- package/dist/install/skill-resource-hashes.js +1 -1
- package/dist/postinstall.js +14 -2
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
- package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
- package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
- package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/directive.md +90 -5
- package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-comprehend.md +13 -17
- package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +8 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +8 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.d.ts +18 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +95 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.d.ts +3 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.js +10 -5
- package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
- package/marketplace/plugins/litcodex/components/rules/bundled-rules/lit-humanizer.md +12 -0
- package/marketplace/plugins/litcodex/components/rules/dist/cli.js +22 -10
- package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.d.ts +23 -34
- package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.js +420 -388
- package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
- package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
- package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
- package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
- package/marketplace/plugins/litcodex/hooks/hooks.json +32 -21
- package/marketplace/plugins/litcodex/skills/autoconference/assets/report_template.md +1 -1
- package/marketplace/plugins/litcodex/skills/browser-drive/SKILL.md +4 -0
- package/marketplace/plugins/litcodex/skills/browser-drive/scripts/capability-probe.mjs +25 -2
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +14 -15
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +7 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/examples/readme-ab/README.md +13 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/adaptive-layout.md +12 -83
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +17 -65
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +44 -13
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/composition.md +14 -80
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +103 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/creative-directions.md +13 -82
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/evidence-review.md +14 -112
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/implementation-platforms.md +16 -68
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/inclusive-interface.md +12 -86
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/interaction-motion.md +13 -82
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +123 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/operating-lanes.md +12 -100
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/performance-delivery.md +12 -78
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +41 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/product-direction.md +10 -88
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +10 -12
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/redesign-playbook.md +12 -74
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +98 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/system-foundations.md +13 -100
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-language.md +11 -74
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-reconstruction.md +9 -78
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/hover-probe.mjs +28 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +423 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +261 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/route-mode.mjs +19 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/serve-static.mjs +24 -0
- package/marketplace/plugins/litcodex/skills/lit-comprehend/SKILL.md +45 -53
- package/marketplace/plugins/litcodex/skills/lit-comprehend/references/artifact-template.md +10 -44
- package/marketplace/plugins/litcodex/skills/lit-comprehend/scripts/verify-explainer.ts +0 -18
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/NOTICE +33 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +167 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/agents/openai.yaml +6 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/OFL.txt +94 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/provenance.json +22 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/icons.html +231 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/index.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +20 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +30 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +33 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +18 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +20 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +1 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/accessibility.md +37 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/export.md +29 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-drawio.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-excalidraw.md +14 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-mermaid.md +18 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-schema.md +28 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/korean-typography.md +34 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/motion.md +29 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/office-pptx-docx.md +42 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/output-spec.md +48 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-annotation.md +12 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-icons.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-sketchy.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-terminal.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/profiles.md +24 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/semantic-patterns.md +27 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +67 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bar.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-beeswarm.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bubble.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bump.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-catalog.json +1433 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-data-flow.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-datalake.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-db-schema.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-deployment.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-integration.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-er.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-fishbone.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-flowchart.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-gantt.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-heatmap.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level-vertical.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-drawio.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-excalidraw.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-mermaid.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-it-state.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-journey.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-kanban.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-layers.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-line.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop-terminal.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-marimekko.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-medallion.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-nested.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-org-chart.md +58 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-paved-road-animated.md +72 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-polar.md +67 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +69 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-process.md +58 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-pyramid.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +60 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-queue-animated.md +63 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-radar.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-ridgeline.md +63 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sankey.md +68 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-scatter.md +60 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence-oauth.md +66 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence.md +63 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-slopegraph.md +65 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state-lifecycle.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-story-map.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-streamgraph.md +53 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-timeline.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-treemap.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-uml-class.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-venn.md +51 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +52 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-waterfall.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/block-registry.mjs +43 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/brief-contract.mjs +94 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +15 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +14 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +219 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/doctor.mjs +28 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-model.mjs +162 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-source.mjs +147 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +148 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/export.mjs +122 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-common.mjs +85 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-drawio.mjs +48 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +234 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +104 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +115 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +70 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +178 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +137 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +80 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/office-safety.mjs +54 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +11 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-all.mjs +85 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-brief.mjs +16 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +27 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-motion.mjs +12 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-type.mjs +48 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +226 -0
- package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +147 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/LICENSE +21 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/NOTICE +3 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +102 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/agents/openai.yaml +14 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/frontmatter_schema.md +42 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/journal_style_spec.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/markdown_quality_checklist.md +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_phrase_list.yaml +58 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_rules.md +35 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.in +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.lock +20 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/clean_markdown.py +95 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_docx.py +1046 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_pdf.py +281 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_pdf.py +130 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/docx_craft.py +95 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/edit_docx.py +297 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/embed_images.py +78 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/generate_docx_templates.py +491 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/slop_lint.py +473 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/scripts/visual_audit.py +41 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/acs.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/elsevier.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/ieee.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/nature.docx +0 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/template.tex +38 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/README.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/template.tex +37 -0
- package/marketplace/plugins/litcodex/skills/lit-docx/templates/registry.yaml +1366 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/NOTICE +160 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/SKILL.md +146 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/always-on-rule.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/always-on-rule.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/report-skeleton.md +25 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/bench/prompts.md +73 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/before.md +15 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/before.md +12 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/after.md +10 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/before.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/before.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/before.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/before.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/before.md +13 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/after.md +15 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/before.md +17 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/after.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/before.md +9 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/after.md +12 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/before.md +14 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/after.md +13 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/before.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/after.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/before.md +19 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/motion-guide.md +123 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/code-patterns.md +468 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/deliverable-channels.md +111 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-content.md +243 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-metrics.md +33 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns.md +31 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/references/taxonomy.md +153 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/rules.json +884 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/core.mjs +208 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/detect.mjs +83 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
- package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
- package/marketplace/plugins/litcodex/skills/lit-init/references/deep-repository-map.md +6 -10
- package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +95 -12
- package/marketplace/plugins/litcodex/skills/lit-loop/agents/openai.yaml +3 -2
- package/marketplace/plugins/litcodex/skills/lit-loop/references/full-workflow.md +10 -3
- package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +7 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +102 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/analyst.md +49 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/antithesis.md +59 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/architect.md +44 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/critic.md +42 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/openai.yaml +14 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/synthesizer.md +47 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/agents/thesis.md +33 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-md.png +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Black.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Bold.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Light.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Medium.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Regular.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/OFL.txt +94 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/SOURCE.md +29 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/LICENSE.txt +94 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Bold.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Regular.otf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +71 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +141 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/consensus-protocol.md +125 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/data-display-cookbook.md +45 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/design-system-azure.md +58 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/references/interview-protocol.md +113 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package-lock.json +747 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package.json +13 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.in +2 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.lock +14 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/check_ooxml.py +40 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +399 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +246 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +201 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/inventory.py +95 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/learn_template.py +433 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/derive-palette.js +176 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/directive-parser.js +244 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/font-map.js +79 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-bg.js +85 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +36 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +734 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/markdown-loader.js +136 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-html.js +358 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +1885 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-ast.js +517 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/spec-validator.js +94 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +355 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +137 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/package.json +1 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +795 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/validate_pptx.py +206 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v1.md +251 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v2.md +207 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v1.schema.json +229 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v2.schema.json +144 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/specs/template-enrollment-contract.md +379 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/bauhaus_light.css +4 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/boilerplate_professional.css +508 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +146 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +454 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +37 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +154 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +464 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +37 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +179 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +299 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +45 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +181 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +299 -0
- package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +44 -0
- package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +2 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +73 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/agents/openai.yaml +15 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/NOTICE +23 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +32 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/browser-app.js +735 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/completion.mjs +9 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/compose.mjs +255 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +264 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +169 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/encode.mjs +163 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/flash.mjs +251 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/fonts.mjs +169 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gate.mjs +466 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +267 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +182 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/passes.mjs +181 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/presets.mjs +110 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/report.mjs +56 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +287 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scenes.mjs +309 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +463 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +155 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-init.js +215 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +515 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +147 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +243 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +335 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +26 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +311 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stroke.mjs +264 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/timeline.mjs +153 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +280 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/type.mjs +234 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/util.mjs +198 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt400.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt700.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt900.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt400.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt700.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt900.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt400.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt700.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt900.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/OFL.txt +93 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/SHA256SUMS +16 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/CREDITS +6 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +216 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +217 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/OFL.txt +86 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/OFL.txt +93 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +137 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +68 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/scene-author.md +57 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +175 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +103 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +119 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/type-and-timing.md +83 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package-lock.json +59 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package.json +1 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/requirements-audio.txt +1082 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/word-timing-models.json +11 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/beat-grid.py +50 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +807 -0
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/runtime.mjs +43 -0
- package/marketplace/plugins/litcodex/skills/litresearch/SKILL.md +28 -41
- package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +8 -0
- package/marketplace/plugins/litcodex/skills/litwork/references/delivery-playbook.md +6 -0
- package/node_modules/@litcodex/lit-loop/directive.md +90 -5
- package/node_modules/@litcodex/lit-loop/directives/lit-comprehend.md +13 -17
- package/node_modules/@litcodex/lit-loop/directives/litwork.md +8 -0
- package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +8 -1
- package/node_modules/@litcodex/lit-loop/dist/motion-route.d.ts +18 -0
- package/node_modules/@litcodex/lit-loop/dist/motion-route.js +95 -0
- package/node_modules/@litcodex/lit-loop/dist/skill-renames.d.ts +3 -1
- package/node_modules/@litcodex/lit-loop/dist/skill-renames.js +10 -5
- package/node_modules/@litcodex/lit-loop/package.json +1 -1
- package/node_modules/@litcodex/lit-loop/skills/browser-drive/SKILL.md +4 -0
- package/node_modules/@litcodex/lit-loop/skills/browser-drive/scripts/capability-probe.mjs +25 -2
- package/node_modules/@litcodex/lit-loop/skills/lit-comprehend/SKILL.md +45 -53
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/NOTICE +160 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/SKILL.md +146 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/always-on-rule.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/always-on-rule.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/report-skeleton.md +25 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/bench/prompts.md +73 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/before.md +15 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/before.md +12 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/after.md +10 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/before.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/before.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/before.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/before.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/before.md +13 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/after.md +15 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/before.md +17 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/after.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/before.md +9 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/after.md +12 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/before.md +14 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/after.md +13 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/before.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/after.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/before.md +19 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/motion-guide.md +123 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/code-patterns.md +468 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/deliverable-channels.md +111 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-content.md +243 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns.md +57 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-metrics.md +33 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns.md +31 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/taxonomy.md +153 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/rules.json +884 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/core.mjs +208 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/detect.mjs +83 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
- package/node_modules/@litcodex/lit-loop/skills/lit-init/references/deep-repository-map.md +6 -10
- package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +95 -12
- package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +2 -0
- package/node_modules/@litcodex/lit-loop/skills/litresearch/SKILL.md +28 -41
- package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +8 -0
- package/package.json +3 -3
- package/readme-assets/ab-simple/assets/s11-baseline-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s11-baseline-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s11-lit-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s11-lit-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-baseline-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-baseline-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-lit-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s3-lit-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-baseline-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-baseline-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-lit-desktop.webp +0 -0
- package/readme-assets/ab-simple/assets/s4-lit-phone.webp +0 -0
- package/readme-assets/ab-simple/assets/s5-baseline-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s5-lit-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s7-lit-diagram.webp +0 -0
- package/readme-assets/ab-simple/assets/s8-baseline-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s8-lit-slides.webp +0 -0
- package/readme-assets/ab-simple/assets/s9-lit-pages.webp +0 -0
- package/readme-assets/badge-version.svg +1 -1
- package/readme-assets/cover-motion-still.webp +0 -0
- package/readme-assets/cover-motion.webp +0 -0
- package/readme-assets/skills/autoconference.webp +0 -0
- package/readme-assets/skills/automatic-checks.webp +0 -0
- package/readme-assets/skills/autoresearch.webp +0 -0
- package/readme-assets/skills/browser-drive.webp +0 -0
- package/readme-assets/skills/coding-session-audit.webp +0 -0
- package/readme-assets/skills/debugging.webp +0 -0
- package/readme-assets/skills/deep-interview.webp +0 -0
- package/readme-assets/skills/frontend-ui-ux.webp +0 -0
- package/readme-assets/skills/lit-burnoff-file.webp +0 -0
- package/readme-assets/skills/lit-burnoff.webp +0 -0
- package/readme-assets/skills/lit-code.webp +0 -0
- package/readme-assets/skills/lit-commit.webp +0 -0
- package/readme-assets/skills/lit-comprehend.webp +0 -0
- package/readme-assets/skills/lit-crucible.webp +0 -0
- package/readme-assets/skills/lit-diagram-drawer.webp +0 -0
- package/readme-assets/skills/lit-docx.webp +0 -0
- package/readme-assets/skills/lit-fetch.webp +0 -0
- package/readme-assets/skills/lit-handoff.webp +0 -0
- package/readme-assets/skills/lit-humanizer.webp +0 -0
- package/readme-assets/skills/lit-init.webp +0 -0
- package/readme-assets/skills/lit-loop.webp +0 -0
- package/readme-assets/skills/lit-plan.webp +0 -0
- package/readme-assets/skills/lit-pptx.webp +0 -0
- package/readme-assets/skills/lit-recap.webp +0 -0
- package/readme-assets/skills/lit-scientific-visualization.webp +0 -0
- package/readme-assets/skills/lit-team.webp +0 -0
- package/readme-assets/skills/lit-typographic-motion.webp +0 -0
- package/readme-assets/skills/litcodex-contribute-bug-fix.webp +0 -0
- package/readme-assets/skills/litcodex-doctor.webp +0 -0
- package/readme-assets/skills/litcodex-report-bug.webp +0 -0
- package/readme-assets/skills/litgoal.webp +0 -0
- package/readme-assets/skills/litresearch.webp +0 -0
- package/readme-assets/skills/litwork.webp +0 -0
- package/readme-assets/skills/lsp-setup.webp +0 -0
- package/readme-assets/skills/readme-studio.webp +0 -0
- package/readme-assets/skills/refactor.webp +0 -0
- package/readme-assets/skills/review-work.webp +0 -0
- package/readme-assets/skills/start-approved-plan.webp +0 -0
- package/readme-assets/skills/structural-search.webp +0 -0
- package/readme-assets/skills/visual-qa.webp +0 -0
- package/readme-assets/skills/wikify.webp +0 -0
- package/marketplace/plugins/litcodex/skills/lit-korean/SKILL.md +0 -206
- package/marketplace/plugins/litcodex/skills/lit-korean/references/prompt-injection-handling.md +0 -23
- package/marketplace/plugins/litcodex/skills/lit-korean/references/quick-rules.md +0 -38
- package/marketplace/plugins/litcodex/skills/lit-korean/references/safety-checklist.md +0 -38
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/SKILL.md +0 -206
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/prompt-injection-handling.md +0 -23
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/quick-rules.md +0 -38
- package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/safety-checklist.md +0 -38
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
// Self-contained because agent-browser evaluates its serialized function in the page.
|
|
2
|
+
export function inspectPage(viewport, limits) {
|
|
3
|
+
const findings = [];
|
|
4
|
+
const notVerified = [];
|
|
5
|
+
const counts = new Map();
|
|
6
|
+
const add = (rule, severity, element, value, threshold, tier = 'measured', note) => {
|
|
7
|
+
const count = counts.get(rule) ?? 0;
|
|
8
|
+
if (count >= limits.findingCapPerRule) return;
|
|
9
|
+
counts.set(rule, count + 1);
|
|
10
|
+
findings.push({ rule, severity, tier, viewport: viewport.id, selector: element ? selectorFor(element) : 'html', value, threshold, ...(note ? { note } : {}) });
|
|
11
|
+
};
|
|
12
|
+
const unknown = (rule, reason) => {
|
|
13
|
+
if (!notVerified.some((item) => item.rule === rule)) notVerified.push({ rule, viewport: viewport.id, reason });
|
|
14
|
+
};
|
|
15
|
+
const selectorFor = (element) => {
|
|
16
|
+
if (element.id) return `#${CSS.escape(element.id)}`;
|
|
17
|
+
const tag = element.tagName.toLowerCase();
|
|
18
|
+
const classes = [...element.classList].slice(0, 2).map((name) => `.${CSS.escape(name)}`).join('');
|
|
19
|
+
return `${tag}${classes}`;
|
|
20
|
+
};
|
|
21
|
+
const parseRgb = (value) => {
|
|
22
|
+
const match = value.match(/rgba?\((\d+)[, ]+(\d+)[, ]+(\d+)/i);
|
|
23
|
+
return match ? match.slice(1, 4).map(Number) : null;
|
|
24
|
+
};
|
|
25
|
+
const luminance = (rgb) => rgb.map((channel) => {
|
|
26
|
+
const c = channel / 255;
|
|
27
|
+
return c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
28
|
+
}).reduce((sum, channel, index) => sum + channel * [0.2126, 0.7152, 0.0722][index], 0);
|
|
29
|
+
const hueAndSaturation = (rgb) => {
|
|
30
|
+
const [red, green, blue] = rgb.map((channel) => channel / 255);
|
|
31
|
+
const high = Math.max(red, green, blue), low = Math.min(red, green, blue), delta = high - low;
|
|
32
|
+
if (!delta) return [0, 0];
|
|
33
|
+
const hue = high === red ? ((green - blue) / delta) % 6 : high === green ? (blue - red) / delta + 2 : (red - green) / delta + 4;
|
|
34
|
+
return [(hue * 60 + 360) % 360, high ? delta / high : 0];
|
|
35
|
+
};
|
|
36
|
+
const background = (element) => {
|
|
37
|
+
for (let node = element; node; node = node.parentElement) {
|
|
38
|
+
const style = getComputedStyle(node);
|
|
39
|
+
if (style.backgroundImage !== 'none') return null;
|
|
40
|
+
const color = parseRgb(style.backgroundColor);
|
|
41
|
+
if (color && !/rgba\([^)]*,\s*0\s*\)/.test(style.backgroundColor)) return color;
|
|
42
|
+
}
|
|
43
|
+
return [255, 255, 255];
|
|
44
|
+
};
|
|
45
|
+
const width = innerWidth;
|
|
46
|
+
const lineCount = (element) => {
|
|
47
|
+
const tops = new Set();
|
|
48
|
+
for (const node of element.childNodes) if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {
|
|
49
|
+
const range = document.createRange();
|
|
50
|
+
range.selectNodeContents(node);
|
|
51
|
+
for (const box of range.getClientRects()) if (box.width > 0) tops.add(Math.round(box.top));
|
|
52
|
+
}
|
|
53
|
+
return tops.size;
|
|
54
|
+
};
|
|
55
|
+
const authoredDeclarations = (element) => {
|
|
56
|
+
const declarations = [element.getAttribute('style') ?? ''];
|
|
57
|
+
let opaque = false;
|
|
58
|
+
const inspectRules = (rules) => {
|
|
59
|
+
for (const rule of rules) {
|
|
60
|
+
if (rule.selectorText) {
|
|
61
|
+
try { if (element.matches(rule.selectorText)) declarations.push(rule.style.cssText); } catch { /* unsupported selector */ }
|
|
62
|
+
} else if (rule.cssRules) inspectRules(rule.cssRules);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
for (const sheet of document.styleSheets) {
|
|
66
|
+
try { inspectRules(sheet.cssRules); } catch { opaque = true; }
|
|
67
|
+
}
|
|
68
|
+
return { text: declarations.join(';'), opaque };
|
|
69
|
+
};
|
|
70
|
+
const longestLine = (element) => {
|
|
71
|
+
const byTop = new Map();
|
|
72
|
+
let seen = 0;
|
|
73
|
+
for (const node of element.childNodes) if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {
|
|
74
|
+
const range = document.createRange();
|
|
75
|
+
for (let index = 0; index < node.textContent.length && seen < limits.textCap; index++, seen++) {
|
|
76
|
+
range.setStart(node, index);
|
|
77
|
+
range.setEnd(node, index + 1);
|
|
78
|
+
const rect = range.getBoundingClientRect();
|
|
79
|
+
if (rect.width) {
|
|
80
|
+
const key = Math.round(rect.top);
|
|
81
|
+
byTop.set(key, (byTop.get(key) ?? 0) + 1);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return Math.max(0, ...byTop.values());
|
|
86
|
+
};
|
|
87
|
+
const cjk = (value) => [...value].filter((char) => /[\u3130-\u318f\uac00-\ud7af\u3400-\u9fff]/u.test(char)).length / Math.max(1, [...value].length) > 0.3;
|
|
88
|
+
const leading = (style) => style.lineHeight === 'normal' ? 1.15 : Number.parseFloat(style.lineHeight) / Number.parseFloat(style.fontSize);
|
|
89
|
+
const accents = [];
|
|
90
|
+
const textBoxes = [];
|
|
91
|
+
const controls = [];
|
|
92
|
+
const fonts = new Set();
|
|
93
|
+
const typeRoles = new Set();
|
|
94
|
+
const spacingValues = new Set();
|
|
95
|
+
const eyebrowCandidates = [];
|
|
96
|
+
const headings = [];
|
|
97
|
+
const glows = [];
|
|
98
|
+
const stripeScopes = [];
|
|
99
|
+
const gridCandidates = [];
|
|
100
|
+
const numericLabels = new Set();
|
|
101
|
+
const overflow = Math.max(document.documentElement.scrollWidth, document.body?.scrollWidth ?? 0) - width;
|
|
102
|
+
if (overflow > limits.overflowPx) add('RS-006', 'HIGH', null, overflow, limits.overflowPx);
|
|
103
|
+
if (viewport.zoomEmulation && overflow > limits.overflowPx) add('RS-004', 'HIGH', null, overflow, limits.overflowPx, 'derived');
|
|
104
|
+
|
|
105
|
+
for (const element of [...document.querySelectorAll('body *')].slice(0, limits.elementCap)) {
|
|
106
|
+
const style = getComputedStyle(element);
|
|
107
|
+
const rect = element.getBoundingClientRect();
|
|
108
|
+
if (style.display === 'none' || style.visibility === 'hidden' || rect.width === 0 || rect.height === 0 || rect.right <= 0 || rect.bottom <= 0 || rect.left >= innerWidth || rect.top >= innerHeight || element.closest('[aria-hidden="true"],[hidden],[inert]')) continue;
|
|
109
|
+
const text = element.textContent?.trim() ?? '';
|
|
110
|
+
const ownText = [...element.childNodes].some((node) => node.nodeType === Node.TEXT_NODE && node.textContent?.trim());
|
|
111
|
+
const localText = [...element.childNodes].filter((node) => node.nodeType === Node.TEXT_NODE).map((node) => node.textContent.trim()).join(' ').trim();
|
|
112
|
+
const lines = ownText ? lineCount(element) : 0;
|
|
113
|
+
const fontSize = Number.parseFloat(style.fontSize);
|
|
114
|
+
if (ownText) {
|
|
115
|
+
fonts.add(style.fontFamily.split(',')[0].replace(/["']/g, '').trim());
|
|
116
|
+
if (!element.closest('form') && !element.matches('input,textarea,select')) typeRoles.add(`${style.fontFamily.split(',')[0].replace(/["']/g, '').trim()}|${Math.round(fontSize)}|${Math.floor(Number.parseInt(style.fontWeight, 10) / 100) * 100}`);
|
|
117
|
+
textBoxes.push({ element, rect });
|
|
118
|
+
if (element.matches('h1,h2,h3,h4,h5,h6,[role="heading"]')) headings.push(element);
|
|
119
|
+
if (localText.length < 30 && (style.textTransform === 'uppercase' || Number.parseFloat(style.letterSpacing) > 1)) eyebrowCandidates.push(element);
|
|
120
|
+
}
|
|
121
|
+
for (const property of ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'columnGap', 'rowGap']) {
|
|
122
|
+
const value = Number.parseFloat(style[property]);
|
|
123
|
+
if (value > 0 && Number.isFinite(value)) spacingValues.add(Math.round(value));
|
|
124
|
+
}
|
|
125
|
+
if (ownText && lines >= 2 && element.matches('p,blockquote,dd,li,td') && !element.closest('nav,footer')) {
|
|
126
|
+
const floor = cjk(localText) ? limits.bodyLeadingCjk : limits.bodyLeadingLatin;
|
|
127
|
+
if (leading(style) < floor) add('CF-103', 'MEDIUM', element, Number(leading(style).toFixed(2)), floor);
|
|
128
|
+
if (lines >= 3 && leading(style) < limits.wrappedRowLeading) add('CF-104', 'MEDIUM', element, Number(leading(style).toFixed(2)), limits.wrappedRowLeading);
|
|
129
|
+
const measure = longestLine(element);
|
|
130
|
+
const measureMax = cjk(localText) ? limits.lineMeasureCjkMax : limits.lineMeasureLatinMax;
|
|
131
|
+
if (measure > measureMax) add('CF-101', 'MEDIUM', element, measure, measureMax);
|
|
132
|
+
}
|
|
133
|
+
if (ownText && lines >= 2 && element.matches('h1,h2,h3,h4,h5,h6,[role="heading"]')) {
|
|
134
|
+
const floor = fontSize >= limits.heroSizePx ? limits.heroLeadingMin : limits.headingLeadingMin;
|
|
135
|
+
if (leading(style) < floor || (fontSize < limits.heroSizePx && leading(style) > limits.headingLeadingMax)) add('CF-102', 'MEDIUM', element, Number(leading(style).toFixed(2)), [floor, limits.headingLeadingMax]);
|
|
136
|
+
}
|
|
137
|
+
if (ownText && fontSize < 18 && Number.parseInt(style.fontWeight, 10) < 400) add('CF-109', 'MEDIUM', element, Number.parseInt(style.fontWeight, 10), 400);
|
|
138
|
+
if (ownText && /\d/u.test(localText) && element.closest('table,[role="table"],[data-kpi],[aria-live]') && !/mono/i.test(style.fontFamily) && !/tabular-nums/.test(style.fontVariantNumeric) && !/['"]tnum['"]/.test(style.fontFeatureSettings)) add('CF-106', 'LOW', element, style.fontVariantNumeric, 'tabular numerals');
|
|
139
|
+
if (ownText && text && !element.matches('.sr-only,.visually-hidden') && rect.width * rect.height >= 4 && /^(hidden|clip|ellipsis)$/.test(style.overflowX) && element.scrollWidth > element.clientWidth + 1 && style.textOverflow !== 'ellipsis' && !style.webkitLineClamp && !style.lineClamp) {
|
|
140
|
+
add('RS-007', element.closest('main,article,h1,h2,h3') ? 'HIGH' : 'MEDIUM', element, element.scrollWidth - element.clientWidth, 0);
|
|
141
|
+
}
|
|
142
|
+
if (ownText && text && /^(hidden|clip)$/.test(style.overflowY) && element.scrollHeight > element.clientHeight + 1 && !style.webkitLineClamp && !style.lineClamp && !element.closest('details:not([open])')) add('RS-007', 'HIGH', element, element.scrollHeight - element.clientHeight, 0);
|
|
143
|
+
if (ownText && text && style.color && Number(style.opacity) > 0) {
|
|
144
|
+
const foreground = parseRgb(style.color);
|
|
145
|
+
if (!background(element)) unknown('CF-204', `image or gradient ground at ${selectorFor(element)} needs a pixel sample`);
|
|
146
|
+
if (foreground && background(element)) {
|
|
147
|
+
const light = [luminance(foreground), luminance(background(element))].sort((a, b) => b - a);
|
|
148
|
+
const ratio = (light[0] + 0.05) / (light[1] + 0.05);
|
|
149
|
+
const large = Number.parseFloat(style.fontSize) >= limits.largeTextPx || (Number.parseFloat(style.fontSize) >= limits.boldLargeTextPx && Number.parseInt(style.fontWeight, 10) >= 700);
|
|
150
|
+
const floor = large ? limits.largeContrast : limits.bodyContrast;
|
|
151
|
+
if (ratio < floor) add('CF-201', large ? 'MEDIUM' : 'HIGH', element, Number(ratio.toFixed(2)), floor, 'derived');
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (element.matches('a,button,input,select,textarea,[role="button"]') && !element.matches(':disabled,[aria-disabled="true"]')) {
|
|
155
|
+
controls.push({ element, rect });
|
|
156
|
+
const name = (element.getAttribute('aria-label') || element.getAttribute('alt') || element.getAttribute('title') || element.labels?.[0]?.textContent || element.textContent || '').trim();
|
|
157
|
+
if (!name && !element.getAttribute('aria-labelledby')) add('CF-603', 'HIGH', element, 'empty accessible name', 'non-empty accessible name');
|
|
158
|
+
const size = Math.min(rect.width, rect.height);
|
|
159
|
+
const spaced = controls.slice(0, -1).every((other) => {
|
|
160
|
+
const x = Math.max(0, Math.max(other.rect.left - rect.right, rect.left - other.rect.right));
|
|
161
|
+
const y = Math.max(0, Math.max(other.rect.top - rect.bottom, rect.top - other.rect.bottom));
|
|
162
|
+
return Math.hypot(x, y) >= limits.touchTargetPx;
|
|
163
|
+
});
|
|
164
|
+
if (size < limits.hitFloorPx && !spaced) add('CF-701', 'HIGH', element, Number(size.toFixed(1)), limits.hitFloorPx);
|
|
165
|
+
else if (viewport.width <= limits.touchPrimaryMaxWidthPx && size < limits.touchTargetPx && !spaced) add('CF-701', element.matches('.primary,.btn-primary,[data-primary]') ? 'HIGH' : 'MEDIUM', element, Number(size.toFixed(1)), limits.touchTargetPx);
|
|
166
|
+
if (viewport.width <= limits.mobileInputMaxWidthPx && element.matches('input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),textarea,[contenteditable="true"]') && fontSize < limits.mobileInputPx) add('RS-008', 'MEDIUM', element, fontSize, limits.mobileInputPx);
|
|
167
|
+
if (element.matches('input[placeholder],textarea[placeholder]') && !element.labels?.length && !element.getAttribute('aria-label') && !element.getAttribute('aria-labelledby')) add('CF-806', 'MEDIUM', element, element.getAttribute('placeholder'), 'accessible label');
|
|
168
|
+
}
|
|
169
|
+
if (element.matches('button:not([type])') && element.form && [...document.querySelectorAll('button,input[type="submit"],input[type="image"]')].filter((button) => button.form === element.form && button.matches('button:not([type="button"]):not([type="reset"]),input[type="submit"],input[type="image"]')).length >= 2) add('SLOP-059', 'HIGH', element, 'ambiguous implicit submit', 'explicit type');
|
|
170
|
+
if (element.matches('img') && (!element.getAttribute('src') && !element.getAttribute('srcset') || /^(?:#|undefined)$/i.test(element.getAttribute('src') ?? '') || /^(?:#|undefined)$/i.test(element.getAttribute('srcset') ?? '') || (element.complete && element.naturalWidth === 0)) && ![...element.attributes].some((attribute) => /^data-(?:src|srcset|lazy)/.test(attribute.name))) {
|
|
171
|
+
if (element.loading === 'lazy' && !element.complete) unknown('SLOP-057', `lazy image at ${selectorFor(element)} has not fetched`);
|
|
172
|
+
else if (element.complete || !element.loading || element.loading !== 'lazy') add('SLOP-057', 'HIGH', element, element.getAttribute('src'), 'valid decoding image');
|
|
173
|
+
}
|
|
174
|
+
if (element.matches('marquee')) add('SLOP-061', 'LOW', element, 'marquee', 'static row or pause control');
|
|
175
|
+
if (ownText && element.matches('h2,h3,h4') && /^0?[1-9]\d?\b/.test(localText)) numericLabels.add(/^0?[1-9]\d?/.exec(localText)[0]);
|
|
176
|
+
if (element.matches('progress,meter,[role="progressbar"],[role="meter"]') && !element.getAttribute('aria-label') && !element.getAttribute('aria-labelledby') && !element.querySelector('text,[role="note"]') && !/\d/.test(element.textContent ?? '')) unknown('SLOP-046', `unlabeled gauge candidate at ${selectorFor(element)} needs data-origin review`);
|
|
177
|
+
if (element.matches('section,article,div') && /gradient\(/.test(style.backgroundImage) && /\d+px/.test(style.backgroundSize)) {
|
|
178
|
+
const gradients = (style.backgroundImage.match(/gradient\(/g) ?? []).length;
|
|
179
|
+
if (gradients >= limits.gridHairlineLayers || /radial-gradient\(/.test(style.backgroundImage)) {
|
|
180
|
+
const region = element.closest('section,main,article,[role="region"]') ?? element;
|
|
181
|
+
const data = region.querySelector('canvas,table,[role="table"],[role="grid"],[role="img"]') || [...region.querySelectorAll('svg')].some((svg) => { const box = svg.getBoundingClientRect(); return box.width > limits.dataSvgMinPx && box.height > limits.dataSvgMinPx; });
|
|
182
|
+
if (!data) gridCandidates.push(element);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (document.querySelector('meta[name="viewport"][content*="viewport-fit=cover"]') && ['fixed', 'sticky'].includes(style.position) && element.querySelector('a,button,input,select,textarea,[role="button"]') && (rect.top <= limits.safeEdgePx || rect.bottom >= innerHeight - limits.safeEdgePx || rect.left <= limits.safeEdgePx || rect.right >= innerWidth - limits.safeEdgePx)) {
|
|
186
|
+
const declarations = authoredDeclarations(element);
|
|
187
|
+
if (declarations.opaque && !declarations.text.trim()) unknown('RS-009', `cross-origin style at ${selectorFor(element)} cannot be inspected`);
|
|
188
|
+
else if (!/env\(safe-area-inset-(?:top|right|bottom|left)\)/.test(declarations.text)) add('RS-009', 'MEDIUM', element, 'no authored safe-area inset', 'env(safe-area-inset-*)', 'derived');
|
|
189
|
+
}
|
|
190
|
+
if (/(?:auto|scroll)/.test(style.overflowX) && element.scrollWidth > element.clientWidth + limits.overflowPx) {
|
|
191
|
+
const hasCue = element.querySelector('button,[role="tab"],[aria-controls]') || (element.id && document.querySelector(`[aria-controls="${CSS.escape(element.id)}"]`)) || /\b\d+\s*\/\s*\d+\b/.test(element.textContent ?? '');
|
|
192
|
+
if (!hasCue) {
|
|
193
|
+
const visibleEdge = rect.right;
|
|
194
|
+
const peeks = [...element.children].map((child) => child.getBoundingClientRect()).filter((box) => box.left < visibleEdge && box.right > visibleEdge).map((box) => visibleEdge - box.left);
|
|
195
|
+
if (!peeks.some((peek) => peek >= limits.railPeekMinPx && peek <= limits.railPeekMaxPx)) add('RS-010', 'LOW', element, peeks, [limits.railPeekMinPx, limits.railPeekMaxPx]);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (element.matches('div,section,article') && style.display === 'grid' && !element.closest('ul,ol,table')) {
|
|
199
|
+
const tiles = [...element.children].filter((child) => child.querySelector('svg,img') && child.querySelector('h2,h3,h4,h5,h6,[role="heading"]') && child.querySelector('p,small,span'));
|
|
200
|
+
if (tiles.length >= limits.tileMinSiblings) {
|
|
201
|
+
const sizes = tiles.map((tile) => tile.getBoundingClientRect());
|
|
202
|
+
const alike = sizes.every((box) => Math.abs(box.width - sizes[0].width) <= limits.tileTolerancePx && Math.abs(box.height - sizes[0].height) <= limits.tileTolerancePx);
|
|
203
|
+
if (alike) add('SLOP-002', 'MEDIUM', element, tiles.length, limits.tileMinSiblings);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
if (element.matches('section,article,div') && element.children.length >= limits.statWithCtaMinSiblings && element.children.length <= limits.statMaxSiblings) {
|
|
207
|
+
const blocks = [...element.children].filter((child) => {
|
|
208
|
+
const leaves = [...child.querySelectorAll('*')].filter((node) => node.children.length === 0 && /\d/.test(node.textContent ?? ''));
|
|
209
|
+
return leaves.some((leaf) => Number.parseFloat(getComputedStyle(leaf).fontSize) >= limits.statFontRatio * Number.parseFloat(getComputedStyle(child).fontSize));
|
|
210
|
+
});
|
|
211
|
+
const min = element.querySelector('a,button') ? limits.statWithCtaMinSiblings : limits.statMinSiblings;
|
|
212
|
+
if (blocks.length >= min) unknown('SLOP-045', `${blocks.length} stat siblings at ${selectorFor(element)} need source review`);
|
|
213
|
+
}
|
|
214
|
+
if (viewport.width === limits.tickerViewportWidthPx && element.matches('section,article,div') && element.getAnimations().some((animation) => animation.playState === 'running' && animation.effect?.getTiming().iterations === Infinity && animation.effect?.getKeyframes().some((key) => /translateX?\(/.test(key.transform ?? '')))) {
|
|
215
|
+
const logos = [...element.querySelectorAll('img,svg')];
|
|
216
|
+
const sources = new Set(logos.map((logo) => logo.currentSrc || logo.outerHTML));
|
|
217
|
+
const heights = logos.map((logo) => logo.getBoundingClientRect().height).sort((a,b) => a-b);
|
|
218
|
+
if (sources.size >= limits.tickerMinLogos && sources.size <= limits.tickerMaxLogos && heights.length && heights[Math.floor(heights.length/2)] < limits.smallLogoMaxPx) add('SLOP-047', 'MEDIUM', element, { logos: sources.size, medianHeight: heights[Math.floor(heights.length/2)] }, { maxLogos: limits.tickerMaxLogos, minHeight: limits.smallLogoMaxPx });
|
|
219
|
+
}
|
|
220
|
+
if (element.matches('[data-autoplay],[data-bs-ride="carousel"],[autoplay]') && element.querySelectorAll('button,[role="tab"],.dot,.indicator').length >= 2) {
|
|
221
|
+
const dots = [...element.querySelectorAll('button,[role="tab"],.dot,.indicator')].filter((dot) => {
|
|
222
|
+
const box = dot.getBoundingClientRect();
|
|
223
|
+
return box.width <= limits.tinyDotMaxPx && box.height <= limits.tinyDotMaxPx;
|
|
224
|
+
});
|
|
225
|
+
const bound = dots.every((dot) => dot.matches('button,[role="button"],[role="tab"]') && (dot.getAttribute('aria-label') || dot.textContent.trim() || dot.getAttribute('aria-controls') || dot.getAttribute('aria-selected') || dot.getAttribute('aria-current')));
|
|
226
|
+
if (dots.length >= 2 && !bound) add('SLOP-048', 'LOW', element, dots.length, 'accessible slide picker');
|
|
227
|
+
}
|
|
228
|
+
if (ownText && /\b(?:lorem ipsum|\[placeholder\]|TODO)\b/i.test(localText)) add('SLOP-060', 'LOW', element, localText.slice(0, 80), 'specific copy');
|
|
229
|
+
if (ownText && style.textTransform === 'uppercase' && localText.length > limits.uppercaseTextChars && !cjk(localText)) add('SLOP-020', 'LOW', element, localText.length, limits.uppercaseTextChars);
|
|
230
|
+
if (ownText && (localText.match(/·/g)?.length ?? 0) >= limits.middleDotCount) add('SLOP-033', 'LOW', element, localText.match(/·/g).length, limits.middleDotCount);
|
|
231
|
+
if (ownText && /\bscroll (?:down|to explore)\b|아래로 스크롤/iu.test(localText) && rect.top < innerHeight) add('SLOP-035', 'LOW', element, localText.slice(0, 60), 'remove redundant cue');
|
|
232
|
+
const authoredCopy = localText.replace(/\b\d[\d:/.-]*\s+–\s+\d[\d:/.-]*\b/g, '');
|
|
233
|
+
if (ownText && (/[—]/u.test(authoredCopy) || /\s–\s/u.test(authoredCopy)) && !element.closest('pre,code,kbd,form,blockquote[cite^="http"],q[cite^="http"]')) add('SLOP-040', 'MEDIUM', element, authoredCopy.slice(0, 80), 'review separator punctuation', 'derived');
|
|
234
|
+
if (ownText && /\b(?:seamless experience|unlock your potential|cutting.edge innovation)\b/i.test(localText)) add('SLOP-036', 'MEDIUM', element, localText.slice(0, 80), 'specific copy');
|
|
235
|
+
if (ownText && element.matches('a,button,label,[role="button"]') && /\b(?:Of|And|The|To|For|In)\b/u.test(localText) && /\b[A-Z][a-z]{3,}/u.test(localText)) add('CF-107', 'LOW', element, localText.slice(0, 80), 'sentence case');
|
|
236
|
+
if (ownText && /[\u{1f300}-\u{1faff}]/u.test(localText) && element.closest('button,nav,[role="button"],.badge')) unknown('SLOP-053', `emoji icon candidate at ${selectorFor(element)} needs policy review`);
|
|
237
|
+
if (element.matches('svg')) {
|
|
238
|
+
const primitives = element.querySelectorAll('rect,circle,ellipse,polygon').length;
|
|
239
|
+
const fills = new Set([...element.querySelectorAll('rect,circle,ellipse,polygon')].map((shape) => getComputedStyle(shape).fill).filter((fill) => fill !== 'none' && fill !== 'transparent'));
|
|
240
|
+
if (rect.width >= limits.largeSvgMinPx && rect.height >= limits.largeSvgMinPx && primitives >= limits.largeSvgMinPrimitives && fills.size >= limits.largeSvgMinFills && element.querySelectorAll('text,tspan').length <= limits.largeSvgMaxText && !element.querySelector('pattern')) unknown('SLOP-051', `assembled SVG candidate at ${selectorFor(element)} needs illustration-versus-data judgment`);
|
|
241
|
+
}
|
|
242
|
+
if (style.clipPath.startsWith('polygon(')) {
|
|
243
|
+
const points = style.clipPath.slice(8, -1).split(',');
|
|
244
|
+
const values = points.flatMap((point) => [...point.matchAll(/(-?[\d.]+)%/g)].map((match) => Number(match[1])));
|
|
245
|
+
const off = values.filter((value) => Math.abs(value / limits.maskGridPercent - Math.round(value / limits.maskGridPercent)) * limits.maskGridPercent > limits.maskOffGridTolerance).length;
|
|
246
|
+
if (points.length >= limits.maskMinVertices && values.length && off >= values.length / 2) add('SLOP-052', 'LOW', element, { vertices: points.length, offGrid: off }, `>=${limits.maskMinVertices} vertices; >=50% off-grid`);
|
|
247
|
+
} else if (style.clipPath.startsWith('path(') && (style.clipPath.match(/[CSQTAcsqta](?=[\s\d-])/g)?.length ?? 0) >= limits.maskMinCurves) add('SLOP-052', 'LOW', element, style.clipPath, `>=${limits.maskMinCurves} curves`);
|
|
248
|
+
const layoutMotion = style.transitionProperty.split(',').map((part) => part.trim()).filter((part) => /^(width|height|max-height|padding(?:-.+)?|margin(?:-.+)?|top|left)$/.test(part));
|
|
249
|
+
if (layoutMotion.length && !element.closest('details,[aria-expanded],.accordion,.collapse') && !element.querySelector('[aria-expanded]')) add('CF-508', 'MEDIUM', element, layoutMotion, 'transform|opacity', 'measured', 'SLOP-026 cross-reference');
|
|
250
|
+
if ((style.backgroundClip === 'text' || style.webkitBackgroundClip === 'text') && /gradient\(/.test(style.backgroundImage)) add('SLOP-009', 'MEDIUM', element, style.backgroundImage.slice(0, 80), 'solid ink');
|
|
251
|
+
if (ownText && (element.matches('h1,h2,h3') || fontSize >= 20)) {
|
|
252
|
+
const ink = parseRgb(style.color);
|
|
253
|
+
if (ink) {
|
|
254
|
+
const [hue] = hueAndSaturation(ink);
|
|
255
|
+
if (hue >= limits.accentPurpleHueMin && hue <= limits.accentPurpleHueMax && Math.max(...ink) - Math.min(...ink) >= limits.accentPurpleChannelSpread) add('SLOP-008', 'MEDIUM', element, style.color, `${limits.accentPurpleHueMin}–${limits.accentPurpleHueMax}°`, 'derived', 'verify whether this is the declared primary brand hue');
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
if (/gradient\(/.test(style.backgroundImage) && /rgb\(/.test(style.backgroundImage)) {
|
|
259
|
+
const stops = [...style.backgroundImage.matchAll(/rgb\([^)]*\)/g)].map((match) => parseRgb(match[0])).filter(Boolean);
|
|
260
|
+
if (stops.length >= 2 && stops.every((stop) => { const [hue] = hueAndSaturation(stop); return hue >= limits.accentPurpleHueMin && hue <= limits.accentPurpleHueMax && Math.max(...stop) - Math.min(...stop) >= limits.accentPurpleChannelSpread; })) add('SLOP-008', 'MEDIUM', element, style.backgroundImage.slice(0, 80), 'brand-led palette', 'derived');
|
|
261
|
+
}
|
|
262
|
+
if (/\bblur\(/.test(style.backdropFilter) && element.matches('dialog,[role="dialog"],.modal,.scrim,.backdrop')) add('CF-406', 'LOW', element, style.backdropFilter, 'solid scrim');
|
|
263
|
+
if (element.matches('button,.primary,.btn-primary,[data-primary],h1,h2') && style.boxShadow !== 'none') {
|
|
264
|
+
const shadowColor = parseRgb(style.boxShadow);
|
|
265
|
+
const lengths = [...style.boxShadow.matchAll(/(-?[\d.]+)px/g)].map((match) => Number(match[1]));
|
|
266
|
+
if (shadowColor && lengths.length >= 3 && Math.abs(lengths[0]) <= 2 && Math.abs(lengths[1]) <= 2 && lengths[2] >= limits.glowBlurPx && hueAndSaturation(shadowColor)[1] > limits.glowSaturationMin) glows.push(element);
|
|
267
|
+
}
|
|
268
|
+
if (element.matches('section,article,div') && Number.parseFloat(style.borderRadius) > 0 && !element.closest('[role="alert"],[role="note"],[role="status"],.callout,.admonition')) {
|
|
269
|
+
const sides = ['Top', 'Right', 'Bottom', 'Left'];
|
|
270
|
+
const accented = sides.filter((side) => {
|
|
271
|
+
const thickness = Number.parseFloat(style[`border${side}Width`]);
|
|
272
|
+
const color = parseRgb(style[`border${side}Color`]);
|
|
273
|
+
return thickness >= 2 && color && hueAndSaturation(color)[1] > 0.3;
|
|
274
|
+
});
|
|
275
|
+
if (accented.length === 1 && sides.filter((side) => side !== accented[0]).every((side) => Number.parseFloat(style[`border${side}Width`]) <= 1)) stripeScopes.push(element);
|
|
276
|
+
}
|
|
277
|
+
if (element.matches('main,body') && ['rgb(0, 0, 0)', 'rgb(255, 255, 255)'].includes(style.backgroundColor)) add('SLOP-023', 'LOW', element, style.backgroundColor, 'theme-specific ground', 'derived');
|
|
278
|
+
if (style.willChange !== 'auto') {
|
|
279
|
+
const properties = style.willChange.split(',').map((part) => part.trim());
|
|
280
|
+
const wrong = properties.filter((part) => !['transform', 'opacity', 'filter'].includes(part));
|
|
281
|
+
if (wrong.length) add('CF-507', 'LOW', element, wrong.join(','), 'transform|opacity|filter');
|
|
282
|
+
else if (!element.getAnimations().some((animation) => animation.playState === 'running')) add('CF-507', 'MEDIUM', element, style.willChange, 'only during animation');
|
|
283
|
+
}
|
|
284
|
+
if (rect.width >= limits.accentMinSidePx && rect.height >= limits.accentMinSidePx && element.matches('.primary,.btn-primary,[data-primary],[aria-current],.active,[data-accent]')) {
|
|
285
|
+
const fill = parseRgb(style.backgroundColor);
|
|
286
|
+
if (fill) {
|
|
287
|
+
const hi = Math.max(...fill), lo = Math.min(...fill), delta = hi - lo;
|
|
288
|
+
if (hi && delta / hi >= limits.accentSaturationMin) {
|
|
289
|
+
let hue = hi === fill[0] ? ((fill[1] - fill[2]) / delta) % 6 : hi === fill[1] ? (fill[2] - fill[0]) / delta + 2 : (fill[0] - fill[1]) / delta + 4;
|
|
290
|
+
hue = (hue * 60 + 360) % 360;
|
|
291
|
+
if (!accents.some((candidate) => Math.min(Math.abs(candidate - hue), 360 - Math.abs(candidate - hue)) <= limits.accentHueMergeDeg)) accents.push(hue);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
if (element.matches('a[href="#"],a[href^="javascript:"]')) add('SLOP-058', element.closest('main,nav,header') ? 'HIGH' : 'MEDIUM', element, element.getAttribute('href'), 'working destination', 'derived');
|
|
296
|
+
if (style.animationName !== 'none' && element.getAnimations().some((animation) => animation.playState === 'running') && style.transform.startsWith('matrix(')) {
|
|
297
|
+
const matrix = style.transform.slice(7, -1).split(',').map(Number);
|
|
298
|
+
const scale = Math.min(Math.hypot(matrix[0], matrix[1]), Math.hypot(matrix[2], matrix[3]));
|
|
299
|
+
if (scale < limits.entranceScaleMin) add('CF-503', 'MEDIUM', element, Number(scale.toFixed(2)), limits.entranceScaleMin);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
if (accents.length > limits.accentFamilyMax) add('CF-205', 'MEDIUM', null, accents.length, limits.accentFamilyMax, 'derived');
|
|
303
|
+
if (fonts.size > limits.typeFamilyMax) add('SLOP-019', 'MEDIUM', null, fonts.size, limits.typeFamilyMax);
|
|
304
|
+
if (typeRoles.size > 7) add('CF-108', 'MEDIUM', null, typeRoles.size, 7, 'derived');
|
|
305
|
+
for (const heading of headings.filter((element) => element.matches('h2,h3,h4'))) {
|
|
306
|
+
const rect = heading.getBoundingClientRect();
|
|
307
|
+
let anchor = heading;
|
|
308
|
+
let previous = null;
|
|
309
|
+
while (anchor && anchor !== document.body) {
|
|
310
|
+
const prior = anchor.previousElementSibling;
|
|
311
|
+
if (prior) { previous = prior; break; }
|
|
312
|
+
anchor = anchor.parentElement;
|
|
313
|
+
if (!anchor || anchor === document.body) break;
|
|
314
|
+
const boundary = getComputedStyle(anchor);
|
|
315
|
+
if (!['rgba(0, 0, 0, 0)', 'transparent'].includes(boundary.backgroundColor) || Number.parseFloat(boundary.borderTopWidth) > 0 || boundary.boxShadow !== 'none') break;
|
|
316
|
+
}
|
|
317
|
+
const next = heading.nextElementSibling;
|
|
318
|
+
if (!previous || !next) continue;
|
|
319
|
+
const beforeRect = previous.getBoundingClientRect();
|
|
320
|
+
const afterRect = next.getBoundingClientRect();
|
|
321
|
+
if (beforeRect.right <= rect.left || beforeRect.left >= rect.right || beforeRect.height === 0 || afterRect.height === 0) continue;
|
|
322
|
+
let headingTop = rect.top;
|
|
323
|
+
if (beforeRect.height <= limits.headingLabelMaxHeightPx && rect.top - beforeRect.bottom < limits.headingLabelGapPx) {
|
|
324
|
+
const earlier = previous.previousElementSibling;
|
|
325
|
+
if (earlier) { headingTop = beforeRect.top; previous = earlier; }
|
|
326
|
+
}
|
|
327
|
+
const above = Math.max(0, headingTop - previous.getBoundingClientRect().bottom);
|
|
328
|
+
const below = Math.max(0, afterRect.top - rect.bottom);
|
|
329
|
+
if (above < below * limits.headingInversionRatio && below - above >= limits.headingInversionDeficitPx) add('CF-304', 'LOW', heading, { above, below }, `above >= ${limits.headingInversionRatio}x below or deficit < ${limits.headingInversionDeficitPx}px`);
|
|
330
|
+
}
|
|
331
|
+
for (const child of [...document.querySelectorAll('body *')].slice(0, limits.elementCap)) {
|
|
332
|
+
const parent = child.parentElement;
|
|
333
|
+
if (!parent || parent === document.body) continue;
|
|
334
|
+
const outer = getComputedStyle(parent), inner = getComputedStyle(child);
|
|
335
|
+
const pads = ['Top', 'Right', 'Bottom', 'Left'].map((side) => Number.parseFloat(outer[`padding${side}`]));
|
|
336
|
+
if (pads.some((pad) => !Number.isFinite(pad) || pad > limits.framePaddingMaxPx)) continue;
|
|
337
|
+
const parentRect = parent.getBoundingClientRect(), childRect = child.getBoundingClientRect();
|
|
338
|
+
if (!parentRect.width || !parentRect.height || !childRect.width || !childRect.height) continue;
|
|
339
|
+
const insets = [childRect.top-parentRect.top, parentRect.right-childRect.right, parentRect.bottom-childRect.bottom, childRect.left-parentRect.left];
|
|
340
|
+
if (insets.some((inset, index) => Math.abs(inset - pads[index]) > limits.frameContentTolerancePx)) continue;
|
|
341
|
+
for (const [corner, pad] of [['TopLeft', (pads[0]+pads[3])/2], ['TopRight', (pads[0]+pads[1])/2], ['BottomRight', (pads[2]+pads[1])/2], ['BottomLeft', (pads[2]+pads[3])/2]]) {
|
|
342
|
+
const outerRadius = Math.min(Number.parseFloat(outer[`border${corner}Radius`]), Math.min(parentRect.width,parentRect.height)/2);
|
|
343
|
+
const innerRadius = Math.min(Number.parseFloat(inner[`border${corner}Radius`]), Math.min(childRect.width,childRect.height)/2);
|
|
344
|
+
if (outerRadius > 0 && Math.abs(innerRadius - Math.max(0,outerRadius-pad)) > limits.concentricTolerancePx) add('CF-401', 'LOW', child, { corner, outerRadius, innerRadius, pad }, limits.concentricTolerancePx);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
const cadence = document.body.innerText ?? '';
|
|
348
|
+
const firstShape = [...cadence.matchAll(/Not an?\s+[a-z][^.!]{1,40}[.!]\s+[A-Z][^.!]{1,60}[.!]/g)].length;
|
|
349
|
+
const secondShape = [...cadence.matchAll(/[A-Z][^.!]{4,80}[.!]\s+(?:No|Just)\s+[a-z][^.!]{2,60}[.!]/g)].length;
|
|
350
|
+
if (firstShape + secondShape >= limits.cadenceMinPairs) add('SLOP-039', 'LOW', document.body, firstShape + secondShape, limits.cadenceMinPairs);
|
|
351
|
+
const offScale = [...spacingValues].filter((value) => value >= limits.spacingGridPx && Math.abs(value - Math.round(value / limits.spacingGridPx) * limits.spacingGridPx) > limits.spacingTolerancePx);
|
|
352
|
+
if (offScale.length) add('CF-301', offScale.length > limits.offScaleMediumCount ? 'MEDIUM' : 'LOW', null, offScale, `${limits.spacingGridPx}px grid ±${limits.spacingTolerancePx}px`, 'derived');
|
|
353
|
+
if (glows.length >= limits.repeatingGlowCount) for (const element of glows) add('SLOP-010', 'MEDIUM', element, getComputedStyle(element).boxShadow, `recurrence >= ${limits.repeatingGlowCount}`);
|
|
354
|
+
if (gridCandidates.length && findings.some((finding) => ['SLOP-008','SLOP-010'].includes(finding.rule))) for (const element of gridCandidates) add('SLOP-012', 'MEDIUM', element, getComputedStyle(element).backgroundImage.slice(0,80), 'grid plus decorative signal');
|
|
355
|
+
if (numericLabels.size >= 2) unknown('SLOP-030', `${numericLabels.size} numbered sections need process-order review`);
|
|
356
|
+
if (stripeScopes.length >= limits.stripeRepeatCount) add('SLOP-015', 'MEDIUM', stripeScopes[0], stripeScopes.length, limits.stripeRepeatCount, 'derived');
|
|
357
|
+
const sectionHeadings = headings.filter((element) => element.matches('h2'));
|
|
358
|
+
const sectionEyebrows = sectionHeadings.map((heading) => heading.previousElementSibling).filter((candidate) => candidate && eyebrowCandidates.includes(candidate));
|
|
359
|
+
if (sectionHeadings.length && sectionEyebrows.length > Math.ceil(sectionHeadings.length * limits.sectionEyebrowFraction)) add('SLOP-029', 'MEDIUM', sectionEyebrows[0], sectionEyebrows.length, Math.ceil(sectionHeadings.length * limits.sectionEyebrowFraction), 'derived');
|
|
360
|
+
for (let first = 0; first < Math.min(textBoxes.length, 200); first++) for (let second = first + 1; second < Math.min(textBoxes.length, 200); second++) {
|
|
361
|
+
const left = textBoxes[first], right = textBoxes[second];
|
|
362
|
+
if (left.element.contains(right.element) || right.element.contains(left.element)) continue;
|
|
363
|
+
const x = Math.max(0, Math.min(left.rect.right, right.rect.right) - Math.max(left.rect.left, right.rect.left));
|
|
364
|
+
const y = Math.max(0, Math.min(left.rect.bottom, right.rect.bottom) - Math.max(left.rect.top, right.rect.top));
|
|
365
|
+
const fraction = x * y / Math.min(left.rect.width * left.rect.height, right.rect.width * right.rect.height);
|
|
366
|
+
if (fraction >= limits.overlapFraction) add('RS-007', 'MEDIUM', right.element, Number(fraction.toFixed(2)), limits.overlapFraction, 'measured', `overlaps ${selectorFor(left.element)}`);
|
|
367
|
+
}
|
|
368
|
+
for (let first = 0; first < Math.min(controls.length, 150); first++) for (let second = first + 1; second < Math.min(controls.length, 150); second++) {
|
|
369
|
+
const a = controls[first], b = controls[second];
|
|
370
|
+
if (a.element.contains(b.element) || b.element.contains(a.element)) continue;
|
|
371
|
+
const x = Math.max(0, Math.max(a.rect.left - b.rect.right, b.rect.left - a.rect.right));
|
|
372
|
+
const y = Math.max(0, Math.max(a.rect.top - b.rect.bottom, b.rect.top - a.rect.bottom));
|
|
373
|
+
const gap = Math.hypot(x, y);
|
|
374
|
+
const floor = viewport.width <= limits.touchPrimaryMaxWidthPx ? limits.neighborCoarseClearancePx : limits.neighborFineClearancePx;
|
|
375
|
+
if (gap < floor) add('CF-702', 'MEDIUM', b.element, Number(gap.toFixed(1)), floor, 'measured', `near ${selectorFor(a.element)}`);
|
|
376
|
+
}
|
|
377
|
+
if (viewport.id === '390') {
|
|
378
|
+
const prior = document.activeElement;
|
|
379
|
+
for (const { element } of controls.slice(0, 5)) {
|
|
380
|
+
const before = getComputedStyle(element);
|
|
381
|
+
const initial = [before.outlineStyle, before.outlineWidth, before.outlineColor, before.boxShadow, before.borderColor].join('|');
|
|
382
|
+
element.focus({ preventScroll: true });
|
|
383
|
+
const after = getComputedStyle(element);
|
|
384
|
+
const focused = [after.outlineStyle, after.outlineWidth, after.outlineColor, after.boxShadow, after.borderColor].join('|');
|
|
385
|
+
if (document.activeElement !== element) { unknown('CF-202', `focus could not be applied at ${selectorFor(element)}`); continue; }
|
|
386
|
+
if (focused === initial) add('CF-202', 'HIGH', element, 'no focus-state change', 'visible focus indicator');
|
|
387
|
+
else if (after.outlineStyle !== 'auto' && after.outlineStyle !== 'none' && Number.parseFloat(after.outlineWidth) < 2) add('CF-202', 'MEDIUM', element, focused, '2px custom ring or browser auto outline', 'derived');
|
|
388
|
+
element.blur();
|
|
389
|
+
}
|
|
390
|
+
if (prior && prior !== document.body && typeof prior.focus === 'function') prior.focus({ preventScroll: true });
|
|
391
|
+
}
|
|
392
|
+
if (viewport.id === '390-dark') {
|
|
393
|
+
const rootBackground = background(document.body);
|
|
394
|
+
if (rootBackground && luminance(rootBackground) >= limits.darkGroundLuminanceMax) {
|
|
395
|
+
const toggle = document.querySelector('[aria-label*="theme" i],[aria-label*="dark" i],[data-theme-toggle],[role="switch"][aria-label*="mode" i]');
|
|
396
|
+
if (toggle) unknown('RS-002', 'theme control found; toggle-only dark path cannot be activated by the probe');
|
|
397
|
+
else add('RS-002', 'MEDIUM', document.body, Number(luminance(rootBackground).toFixed(2)), limits.darkGroundLuminanceMax);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if (viewport.reducedMotion) {
|
|
401
|
+
if (!matchMedia('(prefers-reduced-motion: reduce)').matches) add('RS-003', 'HIGH', null, false, true);
|
|
402
|
+
for (const video of document.querySelectorAll('video')) if (!video.paused) add('RS-003', 'HIGH', video, 'playing', 'paused');
|
|
403
|
+
for (const element of document.querySelectorAll('body *')) for (const animation of element.getAnimations()) {
|
|
404
|
+
const timing = animation.effect?.getTiming();
|
|
405
|
+
if (animation.playState !== 'running' || (timing?.duration ?? 0) <= limits.reducedMotionMaxMs || element.closest('[role="progressbar"],[role="status"],[aria-live]')) continue;
|
|
406
|
+
const keys = animation.effect?.getKeyframes() ?? [];
|
|
407
|
+
const motion = keys.some((key) => ['transform', 'translate', 'rotate', 'scale', 'left', 'top', 'right', 'bottom', 'width', 'height', 'margin', 'padding'].some((prop) => prop in key));
|
|
408
|
+
if (motion) add('RS-003', 'HIGH', element, timing.duration, limits.reducedMotionMaxMs);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
for (const sheet of document.styleSheets) {
|
|
412
|
+
let rules;
|
|
413
|
+
try { rules = sheet.cssRules; } catch { continue; }
|
|
414
|
+
for (const rule of rules) {
|
|
415
|
+
if (rule.type === CSSRule.KEYFRAMES_RULE) {
|
|
416
|
+
const starts = [...rule.cssRules].filter((frame) => /(?:^|,)\s*(?:from|0%)\s*(?:,|$)/.test(frame.keyText));
|
|
417
|
+
const scales = starts.flatMap((frame) => [...frame.style.transform.matchAll(/scale(?:X|Y)?\(\s*([\d.]+)/g)].map((match) => Number(match[1])));
|
|
418
|
+
if (scales.some((scale) => scale < limits.entranceScaleMin)) add('CF-503', 'LOW', null, Math.min(...scales), limits.entranceScaleMin, 'derived', `declared keyframe ${rule.name}; execution not confirmed`);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return { findings, notVerified, readyState: document.readyState, width, scrollWidth: document.documentElement.scrollWidth };
|
|
423
|
+
}
|