@litfamily/litcodex 1.0.6 → 1.0.8
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 +361 -23
- package/dist/cli.js +42 -0
- package/dist/config-migration/config-paths.js +9 -2
- package/dist/install/doctor-render.js +1 -0
- package/dist/install/doctor.js +8 -0
- 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/install/types.d.ts +3 -0
- 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/hook-cli.d.ts +8 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +36 -4
- package/marketplace/plugins/litcodex/components/lit-loop/dist/jev-hint.d.ts +112 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/jev-hint.js +522 -0
- 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/hook-cli.d.ts +8 -1
- package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +36 -4
- package/node_modules/@litcodex/lit-loop/dist/jev-hint.d.ts +112 -0
- package/node_modules/@litcodex/lit-loop/dist/jev-hint.js +522 -0
- 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 +2 -2
- 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,522 @@
|
|
|
1
|
+
// src/jev-hint.ts — optional Jev skill hint for the UserPromptSubmit hook.
|
|
2
|
+
//
|
|
3
|
+
// Off by default. Active only when `LITCODEX_JEV=1` AND a non-empty `TYPESAFE_API_KEY` are both in
|
|
4
|
+
// the hook's environment. On an eligible turn (not a slash command, not an explicit `$skill` mention,
|
|
5
|
+
// not already routed by the deterministic lit router, at least 4 non-space characters) it sends the
|
|
6
|
+
// redacted, truncated prompt text to Jev with one Choice question over this plugin's own implicitly
|
|
7
|
+
// invocable skills, and returns at most one fixed advisory sentence naming a validated skill id.
|
|
8
|
+
//
|
|
9
|
+
// The response is untrusted: only an exact catalog id (or `none`) with a numeric confidence at or
|
|
10
|
+
// above the threshold is accepted, and no response text ever reaches the model context. Every
|
|
11
|
+
// failure falls back to today's behavior, with one short visible note per session. With
|
|
12
|
+
// `LITCODEX_JEV_SHOW=1` as well, a hinted turn also shows one visible line naming the skill id and
|
|
13
|
+
// latency. Whenever the hint is on, the first prompt of each session the router leaves alone also shows
|
|
14
|
+
// a once-per-session plain-text banner (`JEV_ON_BANNER`). The key is read from the environment only and is never written to output, errors, state,
|
|
15
|
+
// or the trace.
|
|
16
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
17
|
+
import { closeSync, constants, lstatSync, mkdirSync, openSync, readdirSync, readFileSync, readSync, renameSync, unlinkSync, writeSync, } from "node:fs";
|
|
18
|
+
import { dirname, isAbsolute, join } from "node:path";
|
|
19
|
+
import { isExactBrowserDrivePrompt } from "./browser-drive-route.js";
|
|
20
|
+
import { isExactBareHandoffPrompt } from "./handoff-route.js";
|
|
21
|
+
import { resolveSkillPath } from "./modes.js";
|
|
22
|
+
import { isExactBareScientificVisualizationPrompt } from "./scientific-visualization-route.js";
|
|
23
|
+
import { matchRenamedSkillInvocation } from "./skill-renames.js";
|
|
24
|
+
import { normalizeSessionId } from "./state-paths.js";
|
|
25
|
+
import { maskMarkdownCode, matchLitTrigger } from "./trigger.js";
|
|
26
|
+
export const JEV_FLAG_ENV = "LITCODEX_JEV";
|
|
27
|
+
export const JEV_KEY_ENV = "TYPESAFE_API_KEY";
|
|
28
|
+
export const JEV_ENDPOINT = "https://api.typesafe.ai/v1/systemone";
|
|
29
|
+
export const JEV_DEFAULT_MODEL = "jev-1.13.0";
|
|
30
|
+
export const JEV_DEFAULT_TIMEOUT_MS = 1_500;
|
|
31
|
+
export const JEV_MAX_TIMEOUT_MS = 3_000;
|
|
32
|
+
export const JEV_DEFAULT_MAX_CALLS = 200;
|
|
33
|
+
export const JEV_DEFAULT_MIN_CONFIDENCE = 0.35;
|
|
34
|
+
export const JEV_MAX_PROMPT_CHARS = 2_000;
|
|
35
|
+
export const JEV_REDACTION_WINDOW_CHARS = 8_000;
|
|
36
|
+
export const JEV_MAX_DESCRIPTION_CHARS = 300;
|
|
37
|
+
export const JEV_MAX_BODY_BYTES = 64 * 1024;
|
|
38
|
+
export const JEV_STATE_DIR = ".litcodex/jev";
|
|
39
|
+
const QUESTION_INSTRUCTIONS = "Which one skill, if any, is the best fit for the user's request? Choose none when no catalog skill fits.";
|
|
40
|
+
const NONE_CRITERION = "No specialized skill in this catalog fits; answer the user directly.";
|
|
41
|
+
const SKILL_ID = /^[a-z0-9][a-z0-9-]{0,63}$/;
|
|
42
|
+
const FRONTMATTER_READ_BYTES = 16 * 1024;
|
|
43
|
+
/** The doctor/status state. Never reveals the key or its length. */
|
|
44
|
+
export function jevSwitchState(env) {
|
|
45
|
+
if (env[JEV_FLAG_ENV] !== "1")
|
|
46
|
+
return "off";
|
|
47
|
+
return (env[JEV_KEY_ENV]?.trim() ?? "") !== "" ? "on" : "flag on but TYPESAFE_API_KEY missing";
|
|
48
|
+
}
|
|
49
|
+
// ── Redaction ────────────────────────────────────────────────────────────────
|
|
50
|
+
// The user name runs to the next separator and never ends in a dot, so `/Users/alice.` keeps its full stop.
|
|
51
|
+
const HOME_PATHS = [
|
|
52
|
+
/\/(?:Users|home)\/[^/\\\s,;:"'`()[\]<>{}]*[^/\\\s,;:"'`()[\]<>{}.](\/)?/g,
|
|
53
|
+
/[A-Za-z]:\\Users\\[^/\\\s,;:"'`()[\]<>{}]*[^/\\\s,;:"'`()[\]<>{}.](\\)?/gi,
|
|
54
|
+
];
|
|
55
|
+
const EMAIL = /[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}/g;
|
|
56
|
+
const TOKEN_SHAPES = [
|
|
57
|
+
/-----BEGIN [A-Z0-9 ]+-----[\s\S]*?(?:-----END [A-Z0-9 ]+-----|$)/g,
|
|
58
|
+
/\beyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]*)?/g,
|
|
59
|
+
/\bsk-ant-[A-Za-z0-9_-]{8,}/g,
|
|
60
|
+
/\bsk-[A-Za-z0-9_-]{16,}/g,
|
|
61
|
+
/\bgh[op]_[A-Za-z0-9]{16,}/g,
|
|
62
|
+
/\bgithub_pat_[A-Za-z0-9_]{16,}/g,
|
|
63
|
+
/\bnpm_[A-Za-z0-9]{16,}/g,
|
|
64
|
+
/\bapikey_[A-Za-z0-9_-]{8,}/gi,
|
|
65
|
+
/\bxox[abprs]-[A-Za-z0-9-]{8,}/g,
|
|
66
|
+
/\bAKIA[A-Z0-9]{16}\b/g,
|
|
67
|
+
/\bAIza[A-Za-z0-9_-]{20,}/g,
|
|
68
|
+
/[A-Za-z0-9+/_-]{32,}={0,2}/g,
|
|
69
|
+
];
|
|
70
|
+
const TRAILING_TOKEN_RUN = /[A-Za-z0-9+/_-]{8,}={0,2}$/;
|
|
71
|
+
/**
|
|
72
|
+
* Redact an 8,000-character window (home paths, e-mail addresses, the literal key and token-shaped
|
|
73
|
+
* strings, in that order), then cut to 2,000 characters. A run of 8 or more token characters left at
|
|
74
|
+
* the cut is part of something the cut split, so it becomes `[secret]` too.
|
|
75
|
+
*/
|
|
76
|
+
export function redactJevPrompt(prompt, key = "") {
|
|
77
|
+
let text = Array.from(prompt).slice(0, JEV_REDACTION_WINDOW_CHARS).join("");
|
|
78
|
+
for (const pattern of HOME_PATHS)
|
|
79
|
+
text = text.replace(pattern, (_match, separator) => (separator ? "~/" : "~"));
|
|
80
|
+
text = text.replace(EMAIL, "[email]");
|
|
81
|
+
if (key !== "")
|
|
82
|
+
text = text.split(key).join("[secret]");
|
|
83
|
+
for (const pattern of TOKEN_SHAPES)
|
|
84
|
+
text = text.replace(pattern, "[secret]");
|
|
85
|
+
const chars = Array.from(text);
|
|
86
|
+
if (chars.length <= JEV_MAX_PROMPT_CHARS)
|
|
87
|
+
return text;
|
|
88
|
+
return chars.slice(0, JEV_MAX_PROMPT_CHARS).join("").replace(TRAILING_TOKEN_RUN, "[secret]");
|
|
89
|
+
}
|
|
90
|
+
/** The installed plugin's `skills/` directory, resolved the same way the mode router finds bodies. */
|
|
91
|
+
export function defaultJevSkillsRoot() {
|
|
92
|
+
return dirname(dirname(resolveSkillPath("lit-loop")));
|
|
93
|
+
}
|
|
94
|
+
function readHead(path) {
|
|
95
|
+
let fd;
|
|
96
|
+
try {
|
|
97
|
+
fd = openSync(path, "r");
|
|
98
|
+
const buffer = Buffer.alloc(FRONTMATTER_READ_BYTES);
|
|
99
|
+
const read = readSync(fd, buffer, 0, buffer.length, 0);
|
|
100
|
+
return buffer.subarray(0, read).toString("utf8");
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
if (fd !== undefined)
|
|
107
|
+
closeSync(fd);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function frontmatterValue(raw) {
|
|
111
|
+
const value = raw.trim();
|
|
112
|
+
if (value.startsWith('"') && value.endsWith('"') && value.length >= 2) {
|
|
113
|
+
try {
|
|
114
|
+
const parsed = JSON.parse(value);
|
|
115
|
+
if (typeof parsed === "string")
|
|
116
|
+
return parsed;
|
|
117
|
+
}
|
|
118
|
+
catch {
|
|
119
|
+
return value.slice(1, -1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (value.startsWith("'") && value.endsWith("'") && value.length >= 2)
|
|
123
|
+
return value.slice(1, -1).replace(/''/g, "'");
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
function readFrontmatter(text) {
|
|
127
|
+
const match = /^---\r?\n([\s\S]*?)\r?\n---/.exec(text);
|
|
128
|
+
if (match?.[1] === undefined)
|
|
129
|
+
return {};
|
|
130
|
+
const out = {};
|
|
131
|
+
for (const line of match[1].split(/\r?\n/)) {
|
|
132
|
+
const field = /^(name|description):\s*(.*)$/.exec(line);
|
|
133
|
+
if (field?.[1] === "name" && field[2] !== undefined)
|
|
134
|
+
out.name = frontmatterValue(field[2]);
|
|
135
|
+
if (field?.[1] === "description" && field[2] !== undefined)
|
|
136
|
+
out.description = frontmatterValue(field[2]);
|
|
137
|
+
}
|
|
138
|
+
return out;
|
|
139
|
+
}
|
|
140
|
+
function implicitInvocationDisabled(skillDir) {
|
|
141
|
+
try {
|
|
142
|
+
return /^\s*allow_implicit_invocation:\s*false\s*$/m.test(readFileSync(join(skillDir, "agents", "openai.yaml"), "utf8"));
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* This plugin's own skills that the host may load on the model's initiative: every `skills/<id>/SKILL.md`
|
|
150
|
+
* whose frontmatter `name` equals its directory, minus skills whose `agents/openai.yaml` sets
|
|
151
|
+
* `allow_implicit_invocation: false` (those run only on an explicit user invocation).
|
|
152
|
+
*/
|
|
153
|
+
export function loadJevCatalog(skillsRoot = defaultJevSkillsRoot()) {
|
|
154
|
+
let names;
|
|
155
|
+
try {
|
|
156
|
+
names = readdirSync(skillsRoot).sort();
|
|
157
|
+
}
|
|
158
|
+
catch {
|
|
159
|
+
return [];
|
|
160
|
+
}
|
|
161
|
+
const catalog = [];
|
|
162
|
+
for (const id of names) {
|
|
163
|
+
if (!SKILL_ID.test(id) || id === "none")
|
|
164
|
+
continue;
|
|
165
|
+
const head = readHead(join(skillsRoot, id, "SKILL.md"));
|
|
166
|
+
if (head === null)
|
|
167
|
+
continue;
|
|
168
|
+
const frontmatter = readFrontmatter(head);
|
|
169
|
+
const description = frontmatter.description?.trim() ?? "";
|
|
170
|
+
if (frontmatter.name !== id || description === "")
|
|
171
|
+
continue;
|
|
172
|
+
if (implicitInvocationDisabled(join(skillsRoot, id)))
|
|
173
|
+
continue;
|
|
174
|
+
catalog.push({ id, description: Array.from(description).slice(0, JEV_MAX_DESCRIPTION_CHARS).join("") });
|
|
175
|
+
}
|
|
176
|
+
return catalog;
|
|
177
|
+
}
|
|
178
|
+
/** Why this turn gets no Jev request, or null when it is eligible. Pure. */
|
|
179
|
+
export function jevSkipReason(prompt, catalogIds = new Set()) {
|
|
180
|
+
if (/^\s*\//u.test(prompt))
|
|
181
|
+
return "slash-command";
|
|
182
|
+
for (const mention of prompt.matchAll(/(?:^|\s)\$([A-Za-z0-9_-]+)(:[A-Za-z0-9_-]+)?/gu)) {
|
|
183
|
+
if (mention[2] !== undefined || catalogIds.has((mention[1] ?? "").toLowerCase()))
|
|
184
|
+
return "skill-mention";
|
|
185
|
+
}
|
|
186
|
+
if (matchLitTrigger(prompt) !== null ||
|
|
187
|
+
matchRenamedSkillInvocation(maskMarkdownCode(prompt), Number.POSITIVE_INFINITY) !== null ||
|
|
188
|
+
isExactBareHandoffPrompt(prompt) ||
|
|
189
|
+
isExactBareScientificVisualizationPrompt(prompt) ||
|
|
190
|
+
isExactBrowserDrivePrompt(prompt)) {
|
|
191
|
+
return "routed";
|
|
192
|
+
}
|
|
193
|
+
if (Array.from(prompt.replace(/\s+/gu, "")).length < 4)
|
|
194
|
+
return "too-short";
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
export function buildJevRequestBody(model, state, catalog) {
|
|
198
|
+
const criteria = {};
|
|
199
|
+
for (const entry of catalog)
|
|
200
|
+
criteria[entry.id] = entry.description;
|
|
201
|
+
criteria["none"] = NONE_CRITERION;
|
|
202
|
+
return { model, state, questions: { which: { type: "choice", instructions: QUESTION_INSTRUCTIONS, criteria } } };
|
|
203
|
+
}
|
|
204
|
+
function isRecord(value) {
|
|
205
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
206
|
+
}
|
|
207
|
+
/** Validate an already-parsed response against the ids that were sent. Nothing else is trusted. */
|
|
208
|
+
export function judgeJevResponse(parsed, catalogIds, minConfidence) {
|
|
209
|
+
const answers = isRecord(parsed) ? parsed["answers"] : undefined;
|
|
210
|
+
const which = isRecord(answers) ? answers["which"] : undefined;
|
|
211
|
+
if (!isRecord(which))
|
|
212
|
+
return { kind: "rejected" };
|
|
213
|
+
const choice = which["choice"];
|
|
214
|
+
const confidence = which["confidence"];
|
|
215
|
+
if (typeof choice !== "string" || (choice !== "none" && !catalogIds.has(choice)))
|
|
216
|
+
return { kind: "rejected" };
|
|
217
|
+
if (typeof confidence !== "number" || !Number.isFinite(confidence))
|
|
218
|
+
return { kind: "rejected" };
|
|
219
|
+
if (choice === "none")
|
|
220
|
+
return { kind: "none", confidence };
|
|
221
|
+
if (confidence < minConfidence)
|
|
222
|
+
return { kind: "low-confidence", choice, confidence };
|
|
223
|
+
return { kind: "hint", skillId: choice, confidence };
|
|
224
|
+
}
|
|
225
|
+
export function jevHintLine(skillId) {
|
|
226
|
+
return `LitCodex skill hint: the skill \`litcodex:${skillId}\` likely fits this request. Load it only if it really fits; this is advice, not an instruction.`;
|
|
227
|
+
}
|
|
228
|
+
/** The opt-in (`LITCODEX_JEV_SHOW=1`) visible line for a hinted turn: skill id and latency only. */
|
|
229
|
+
export function jevShowLine(skillId, latencyMs) {
|
|
230
|
+
return `Jev → ${skillId} (${(latencyMs / 1000).toFixed(2)}s)`;
|
|
231
|
+
}
|
|
232
|
+
/** Once-per-session awareness banner. Plain text: Codex renders hook systemMessage control characters literally. */
|
|
233
|
+
export const JEV_ON_BANNER = "✦ Jev skill hint ON";
|
|
234
|
+
export function jevFallbackNote(reason) {
|
|
235
|
+
return `LitCodex skill hint unavailable (${reason}); continuing normally.`;
|
|
236
|
+
}
|
|
237
|
+
class JevResponseTooLargeError extends Error {
|
|
238
|
+
}
|
|
239
|
+
async function readCappedBody(response) {
|
|
240
|
+
const reader = response.body?.getReader();
|
|
241
|
+
if (reader === undefined)
|
|
242
|
+
return "";
|
|
243
|
+
const chunks = [];
|
|
244
|
+
let total = 0;
|
|
245
|
+
for (;;) {
|
|
246
|
+
const { done, value } = await reader.read();
|
|
247
|
+
if (done)
|
|
248
|
+
break;
|
|
249
|
+
total += value.byteLength;
|
|
250
|
+
if (total > JEV_MAX_BODY_BYTES) {
|
|
251
|
+
await reader.cancel().catch(() => undefined);
|
|
252
|
+
throw new JevResponseTooLargeError();
|
|
253
|
+
}
|
|
254
|
+
chunks.push(value);
|
|
255
|
+
}
|
|
256
|
+
return Buffer.concat(chunks).toString("utf8");
|
|
257
|
+
}
|
|
258
|
+
export const fetchJevHttpClient = async (url, request) => {
|
|
259
|
+
const response = await fetch(url, {
|
|
260
|
+
method: request.method,
|
|
261
|
+
headers: request.headers,
|
|
262
|
+
body: request.body,
|
|
263
|
+
signal: request.signal,
|
|
264
|
+
redirect: "error",
|
|
265
|
+
});
|
|
266
|
+
return { status: response.status, text: () => readCappedBody(response) };
|
|
267
|
+
};
|
|
268
|
+
function sessionStatePath(repoRoot, sessionId) {
|
|
269
|
+
if (!isAbsolute(repoRoot))
|
|
270
|
+
return null;
|
|
271
|
+
return join(repoRoot, JEV_STATE_DIR, `${normalizeSessionId(sessionId) ?? "unscoped"}.json`);
|
|
272
|
+
}
|
|
273
|
+
function readSessionState(path) {
|
|
274
|
+
try {
|
|
275
|
+
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
276
|
+
if (isRecord(parsed) && typeof parsed["calls"] === "number" && typeof parsed["noted"] === "boolean") {
|
|
277
|
+
return { version: 1, calls: parsed["calls"], noted: parsed["noted"], announced: parsed["announced"] === true };
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
catch {
|
|
281
|
+
// Missing or malformed state starts a fresh session record.
|
|
282
|
+
}
|
|
283
|
+
return { version: 1, calls: 0, noted: false, announced: false };
|
|
284
|
+
}
|
|
285
|
+
const NO_FOLLOW = constants.O_NOFOLLOW ?? 0;
|
|
286
|
+
/**
|
|
287
|
+
* Create `.litcodex/jev` one level at a time. False when either level is a symlink or not a directory,
|
|
288
|
+
* so a checked-in link can never redirect state or trace writes elsewhere.
|
|
289
|
+
*/
|
|
290
|
+
function ensureStateDir(dir) {
|
|
291
|
+
for (const level of [dirname(dir), dir]) {
|
|
292
|
+
try {
|
|
293
|
+
if (!lstatSync(level).isDirectory())
|
|
294
|
+
return false;
|
|
295
|
+
}
|
|
296
|
+
catch {
|
|
297
|
+
try {
|
|
298
|
+
mkdirSync(level);
|
|
299
|
+
}
|
|
300
|
+
catch {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return true;
|
|
306
|
+
}
|
|
307
|
+
/** False when `path` exists as anything but a regular file (a symlink included). */
|
|
308
|
+
function isRegularOrAbsent(path) {
|
|
309
|
+
return lstatSync(path, { throwIfNoEntry: false })?.isFile() ?? true;
|
|
310
|
+
}
|
|
311
|
+
function writeSessionState(path, state) {
|
|
312
|
+
if (!ensureStateDir(dirname(path)))
|
|
313
|
+
return false;
|
|
314
|
+
const tmp = `${path}.${process.pid}.${randomBytes(6).toString("hex")}.tmp`;
|
|
315
|
+
try {
|
|
316
|
+
if (!isRegularOrAbsent(path))
|
|
317
|
+
return false;
|
|
318
|
+
const fd = openSync(tmp, constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | NO_FOLLOW);
|
|
319
|
+
try {
|
|
320
|
+
writeSync(fd, `${JSON.stringify(state)}\n`);
|
|
321
|
+
}
|
|
322
|
+
finally {
|
|
323
|
+
closeSync(fd);
|
|
324
|
+
}
|
|
325
|
+
renameSync(tmp, path);
|
|
326
|
+
return true;
|
|
327
|
+
}
|
|
328
|
+
catch {
|
|
329
|
+
try {
|
|
330
|
+
unlinkSync(tmp);
|
|
331
|
+
}
|
|
332
|
+
catch {
|
|
333
|
+
// Nothing was created.
|
|
334
|
+
}
|
|
335
|
+
return false;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function writeTrace(repoRoot, env, now, record) {
|
|
339
|
+
if (env[`${JEV_FLAG_ENV}_TRACE`] !== "1" || !isAbsolute(repoRoot))
|
|
340
|
+
return;
|
|
341
|
+
try {
|
|
342
|
+
const path = join(repoRoot, JEV_STATE_DIR, "trace.jsonl");
|
|
343
|
+
if (!ensureStateDir(dirname(path)) || !isRegularOrAbsent(path))
|
|
344
|
+
return;
|
|
345
|
+
const fd = openSync(path, constants.O_WRONLY | constants.O_APPEND | constants.O_CREAT | NO_FOLLOW);
|
|
346
|
+
try {
|
|
347
|
+
writeSync(fd, `${JSON.stringify({ ts: new Date(now()).toISOString(), ...record })}\n`);
|
|
348
|
+
}
|
|
349
|
+
finally {
|
|
350
|
+
closeSync(fd);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
catch {
|
|
354
|
+
// The trace is an optional debug aid; a write failure never affects the turn.
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
// ── Settings ─────────────────────────────────────────────────────────────────
|
|
358
|
+
function positiveInt(raw, fallback) {
|
|
359
|
+
const value = raw === undefined ? Number.NaN : Number(raw.trim());
|
|
360
|
+
return Number.isInteger(value) && value > 0 ? value : fallback;
|
|
361
|
+
}
|
|
362
|
+
function nonNegativeInt(raw, fallback) {
|
|
363
|
+
const value = raw === undefined || raw.trim() === "" ? Number.NaN : Number(raw.trim());
|
|
364
|
+
return Number.isInteger(value) && value >= 0 ? value : fallback;
|
|
365
|
+
}
|
|
366
|
+
function unitInterval(raw, fallback) {
|
|
367
|
+
const value = raw === undefined || raw.trim() === "" ? Number.NaN : Number(raw.trim());
|
|
368
|
+
return Number.isFinite(value) && value >= 0 && value <= 1 ? value : fallback;
|
|
369
|
+
}
|
|
370
|
+
function modelName(raw) {
|
|
371
|
+
const value = raw?.trim() ?? "";
|
|
372
|
+
return /^[A-Za-z0-9._:-]{1,64}$/.test(value) ? value : JEV_DEFAULT_MODEL;
|
|
373
|
+
}
|
|
374
|
+
const NOTHING = Object.freeze({});
|
|
375
|
+
async function exchange(http, key, body, timeoutMs) {
|
|
376
|
+
const controller = new AbortController();
|
|
377
|
+
let timer;
|
|
378
|
+
const timeout = new Promise((resolve) => {
|
|
379
|
+
timer = setTimeout(() => {
|
|
380
|
+
controller.abort();
|
|
381
|
+
resolve({ kind: "failed", reason: "timeout" });
|
|
382
|
+
}, timeoutMs);
|
|
383
|
+
});
|
|
384
|
+
const call = (async () => {
|
|
385
|
+
try {
|
|
386
|
+
const response = await http(JEV_ENDPOINT, {
|
|
387
|
+
method: "POST",
|
|
388
|
+
headers: { authorization: `Bearer ${key}`, "content-type": "application/json", accept: "application/json" },
|
|
389
|
+
body,
|
|
390
|
+
signal: controller.signal,
|
|
391
|
+
});
|
|
392
|
+
if (response.status !== 200)
|
|
393
|
+
return { kind: "response", status: response.status, body: null };
|
|
394
|
+
const text = await response.text();
|
|
395
|
+
if (Buffer.byteLength(text, "utf8") > JEV_MAX_BODY_BYTES)
|
|
396
|
+
return { kind: "failed", reason: "response-too-large" };
|
|
397
|
+
return { kind: "response", status: 200, body: text };
|
|
398
|
+
}
|
|
399
|
+
catch (error) {
|
|
400
|
+
if (controller.signal.aborted)
|
|
401
|
+
return { kind: "failed", reason: "timeout" };
|
|
402
|
+
return {
|
|
403
|
+
kind: "failed",
|
|
404
|
+
reason: error instanceof JevResponseTooLargeError ? "response-too-large" : "network",
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
})();
|
|
408
|
+
try {
|
|
409
|
+
return await Promise.race([call, timeout]);
|
|
410
|
+
}
|
|
411
|
+
finally {
|
|
412
|
+
clearTimeout(timer);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Decide the optional hint for one UserPromptSubmit turn. Never throws; every failure resolves to at
|
|
417
|
+
* most one visible fallback note per session and otherwise to nothing.
|
|
418
|
+
*/
|
|
419
|
+
export async function runJevSkillHint(input) {
|
|
420
|
+
const { env, repoRoot } = input;
|
|
421
|
+
const now = input.now ?? Date.now;
|
|
422
|
+
const switchState = jevSwitchState(env);
|
|
423
|
+
if (switchState === "off")
|
|
424
|
+
return NOTHING;
|
|
425
|
+
if (jevSkipReason(input.prompt) !== null)
|
|
426
|
+
return NOTHING;
|
|
427
|
+
const statePath = sessionStatePath(repoRoot, input.sessionId);
|
|
428
|
+
if (statePath === null)
|
|
429
|
+
return NOTHING;
|
|
430
|
+
const session = readSessionState(statePath);
|
|
431
|
+
const fail = (reason, record) => {
|
|
432
|
+
writeTrace(repoRoot, env, now, { ...record, fallback: reason });
|
|
433
|
+
if (session.noted)
|
|
434
|
+
return NOTHING;
|
|
435
|
+
const current = readSessionState(statePath);
|
|
436
|
+
if (!writeSessionState(statePath, { ...current, noted: true }))
|
|
437
|
+
return NOTHING;
|
|
438
|
+
return { systemMessage: jevFallbackNote(reason) };
|
|
439
|
+
};
|
|
440
|
+
const blank = { promptSha256: "", choice: null, confidence: null, latencyMs: null, httpStatus: null };
|
|
441
|
+
const catalog = loadJevCatalog(input.skillsRoot);
|
|
442
|
+
const catalogIds = new Set(catalog.map((entry) => entry.id));
|
|
443
|
+
if (jevSkipReason(input.prompt, catalogIds) !== null)
|
|
444
|
+
return NOTHING;
|
|
445
|
+
if (switchState !== "on")
|
|
446
|
+
return fail("key-missing", blank);
|
|
447
|
+
if (catalog.length === 0)
|
|
448
|
+
return fail("catalog-unavailable", blank);
|
|
449
|
+
if (session.calls >= nonNegativeInt(env[`${JEV_FLAG_ENV}_MAX_CALLS`], JEV_DEFAULT_MAX_CALLS)) {
|
|
450
|
+
return fail("cap-reached", blank);
|
|
451
|
+
}
|
|
452
|
+
const key = env[JEV_KEY_ENV]?.trim() ?? "";
|
|
453
|
+
const state = redactJevPrompt(input.prompt, key);
|
|
454
|
+
const promptSha256 = createHash("sha256").update(state).digest("hex");
|
|
455
|
+
const body = JSON.stringify(buildJevRequestBody(modelName(env[`${JEV_FLAG_ENV}_MODEL`]), state, catalog));
|
|
456
|
+
if (Buffer.byteLength(body, "utf8") > JEV_MAX_BODY_BYTES)
|
|
457
|
+
return fail("request-too-large", { ...blank, promptSha256 });
|
|
458
|
+
// Count the call before sending it, so a state write failure can never lift the per-session cap.
|
|
459
|
+
if (!writeSessionState(statePath, { ...session, calls: session.calls + 1 }))
|
|
460
|
+
return NOTHING;
|
|
461
|
+
const timeoutMs = Math.min(positiveInt(env[`${JEV_FLAG_ENV}_TIMEOUT_MS`], JEV_DEFAULT_TIMEOUT_MS), JEV_MAX_TIMEOUT_MS);
|
|
462
|
+
const started = now();
|
|
463
|
+
const result = await exchange(input.http ?? fetchJevHttpClient, key, body, timeoutMs);
|
|
464
|
+
const latencyMs = Math.max(0, now() - started);
|
|
465
|
+
const sent = { ...blank, promptSha256, latencyMs };
|
|
466
|
+
if (result.kind === "failed")
|
|
467
|
+
return fail(result.reason, sent);
|
|
468
|
+
if (result.status !== 200 || result.body === null) {
|
|
469
|
+
return fail(`http-${result.status}`, { ...sent, httpStatus: result.status });
|
|
470
|
+
}
|
|
471
|
+
let parsed;
|
|
472
|
+
try {
|
|
473
|
+
parsed = JSON.parse(result.body);
|
|
474
|
+
}
|
|
475
|
+
catch {
|
|
476
|
+
return fail("invalid-json", { ...sent, httpStatus: 200 });
|
|
477
|
+
}
|
|
478
|
+
const minConfidence = unitInterval(env[`${JEV_FLAG_ENV}_MIN_CONFIDENCE`], JEV_DEFAULT_MIN_CONFIDENCE);
|
|
479
|
+
const verdict = judgeJevResponse(parsed, catalogIds, minConfidence);
|
|
480
|
+
const choice = verdict.kind === "hint" ? verdict.skillId : verdict.kind === "none" ? "none" : null;
|
|
481
|
+
const confidence = verdict.kind === "rejected" ? null : verdict.confidence;
|
|
482
|
+
writeTrace(repoRoot, env, now, { ...sent, httpStatus: 200, choice, confidence, fallback: null });
|
|
483
|
+
if (verdict.kind !== "hint")
|
|
484
|
+
return NOTHING;
|
|
485
|
+
const additionalContext = jevHintLine(verdict.skillId);
|
|
486
|
+
if (env[`${JEV_FLAG_ENV}_SHOW`] !== "1")
|
|
487
|
+
return { additionalContext };
|
|
488
|
+
return { additionalContext, systemMessage: jevShowLine(verdict.skillId, latencyMs) };
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* The once-per-session banner, or null. Only when the hint is fully on (flag and key); it is claimed in
|
|
492
|
+
* the session state before it is shown, so a state write failure shows nothing rather than repeating.
|
|
493
|
+
*/
|
|
494
|
+
export function claimJevOnBanner(repoRoot, sessionId, env) {
|
|
495
|
+
if (jevSwitchState(env) !== "on")
|
|
496
|
+
return null;
|
|
497
|
+
const statePath = sessionStatePath(repoRoot, sessionId);
|
|
498
|
+
if (statePath === null)
|
|
499
|
+
return null;
|
|
500
|
+
const session = readSessionState(statePath);
|
|
501
|
+
if (session.announced)
|
|
502
|
+
return null;
|
|
503
|
+
return writeSessionState(statePath, { ...session, announced: true }) ? JEV_ON_BANNER : null;
|
|
504
|
+
}
|
|
505
|
+
/** Put the banner (when claimed) on its own line ahead of any other visible Jev line. */
|
|
506
|
+
export function withJevBanner(result, banner) {
|
|
507
|
+
if (banner === null)
|
|
508
|
+
return result;
|
|
509
|
+
const systemMessage = result.systemMessage === undefined ? banner : `${banner}\n${result.systemMessage}`;
|
|
510
|
+
return { ...result, systemMessage };
|
|
511
|
+
}
|
|
512
|
+
/** Codex UserPromptSubmit output for a hint and/or visible line; "" when there is nothing to say. */
|
|
513
|
+
export function formatJevHookOutput(result) {
|
|
514
|
+
if (result.additionalContext === undefined && result.systemMessage === undefined)
|
|
515
|
+
return "";
|
|
516
|
+
return `${JSON.stringify({
|
|
517
|
+
...(result.systemMessage === undefined ? {} : { systemMessage: result.systemMessage }),
|
|
518
|
+
...(result.additionalContext === undefined
|
|
519
|
+
? {}
|
|
520
|
+
: { hookSpecificOutput: { hookEventName: "UserPromptSubmit", additionalContext: result.additionalContext } }),
|
|
521
|
+
})}\n`;
|
|
522
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface FilmRequest {
|
|
2
|
+
readonly verb: string;
|
|
3
|
+
readonly noun: string;
|
|
4
|
+
}
|
|
5
|
+
/** A creation verb plus a video noun or compound, with none of the five exclusions. */
|
|
6
|
+
export declare function classifyFilmRequest(prompt: string): FilmRequest | null;
|
|
7
|
+
/**
|
|
8
|
+
* The optional router hint. A type compound, an explicit kinetic-type or lyric request, or a quoted
|
|
9
|
+
* span of two or more words. A quote is only detected; its contents are never followed.
|
|
10
|
+
*/
|
|
11
|
+
export declare function typeLedCue(prompt: string): string | null;
|
|
12
|
+
export declare const FILM_SUBCOMMANDS: readonly string[];
|
|
13
|
+
/**
|
|
14
|
+
* The neutral film context for a matched prompt: what the request is, the treatment-first step, the
|
|
15
|
+
* path rule, and the installed renderer named once as an absolute path. Empty on no match or when
|
|
16
|
+
* the sibling skill is not installed.
|
|
17
|
+
*/
|
|
18
|
+
export declare function motionRouteContext(litLoopSkillPath: string, prompt: string): string;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { dirname, join, resolve } from "node:path";
|
|
3
|
+
// Bare-lit film route. The lit-loop directive states the selection rule in prose; this classifier
|
|
4
|
+
// applies the same trigger deterministically so the hook appends the film context, the installed
|
|
5
|
+
// commands and the type-led hint only when the prompt really asks for a new film.
|
|
6
|
+
const VERB = /만들|제작|뽑|\b(?:make|making|create|creating|design|designing|build|building|produce|producing|render|rendering)\b/iu;
|
|
7
|
+
const VIDEO_NOUN = /영상|비디오|\bvideos?\b|\bclips?\b/iu;
|
|
8
|
+
const COMPOUNDS = [
|
|
9
|
+
[/\bkinetic[\s-]+typography\b/iu, "kinetic typography"],
|
|
10
|
+
[/\btypographic[\s-]+motion\b/iu, "typographic motion"],
|
|
11
|
+
[/\blyric[\s-]+videos?\b/iu, "lyric video"],
|
|
12
|
+
[/\btitle[\s-]+sequences?\b/iu, "title sequence"],
|
|
13
|
+
[/\bopening[\s-]+titles?\b/iu, "opening titles"],
|
|
14
|
+
[/키네틱\s*타이포/u, "키네틱 타이포"],
|
|
15
|
+
[/타이포\s*모션/u, "타이포 모션"],
|
|
16
|
+
[/타이포그래피\s*영상/u, "타이포그래피 영상"],
|
|
17
|
+
[/가사\s*영상/u, "가사 영상"],
|
|
18
|
+
[/오프닝\s*타이틀/u, "오프닝 타이틀"],
|
|
19
|
+
[/타이틀\s*시퀀스/u, "타이틀 시퀀스"],
|
|
20
|
+
];
|
|
21
|
+
const OTHER_COMPOUNDS = /\bmotion[\s-]+graphics?\b|\bmusic[\s-]+videos?\b|모션\s*그래픽|뮤직\s*비디오/iu;
|
|
22
|
+
const EXPLICIT_TYPE = /\bkinetic[\s-]+type\b|\blyrics?\b|가사|타이포/iu;
|
|
23
|
+
const QUOTED = /"([^"\n]+)"|“([^”\n]+)”|'([^'\n]+)'|「([^」\n]+)」/gu;
|
|
24
|
+
// (i) editing existing footage; (ii) a page, screen or component that embeds a video; (iii) a video
|
|
25
|
+
// put into slides, a deck or a document; (iv) a text or image artifact about a video; (v) UI motion.
|
|
26
|
+
const EXCLUSIONS = [
|
|
27
|
+
/편집|자막|트리밍|색\s*보정|컬러\s*그레이딩|\bedit(?:s|ing|ed)?\b|\bcaption(?:s|ed|ing)?\b|\bsubtitl\w*|\btrim(?:s|med|ming)?\b|\bcolou?r[\s-]*grad(?:e|es|ed|ing)\b/iu,
|
|
28
|
+
/(?:랜딩\s*페이지|웹\s*페이지|웹사이트|홈페이지|화면|컴포넌트|\blanding\s+page\b|\bweb\s*page\b|\bwebsite\b|\bscreen\b|\bcomponent\b|\bhero\b)[^.\n]*(?:배경|임베드|넣|\bbackground\b|\bembed\w*)|(?:배경|\bbackground\b)\s*(?:영상|비디오|videos?)/iu,
|
|
29
|
+
/(?:슬라이드|발표자료|보고서|리포트|문서|\bslides?\b|\bdecks?\b|\breports?\b|\bdocuments?\b|\bpptx?\b)[^.\n]*(?:삽입|넣|임베드|\binsert\w*|\bembed\w*)|(?:\binsert\w*|\bembed\w*)[^.\n]*(?:\bslides?\b|\bdecks?\b|\breports?\b|\bdocuments?\b)/iu,
|
|
30
|
+
/대본|스크립트|전사|요약|스토리보드|썸네일|\bscripts?\b|\btranscripts?\b|\bsummar\w*|\bstoryboards?\b|\bthumbnails?\b/iu,
|
|
31
|
+
/\bhover\b|\bbuttons?\b|버튼|호버|\bmotion\s+tokens?\b|모션\s*토큰|\breduced[\s-]+motion\b/iu,
|
|
32
|
+
];
|
|
33
|
+
/** A creation verb plus a video noun or compound, with none of the five exclusions. */
|
|
34
|
+
export function classifyFilmRequest(prompt) {
|
|
35
|
+
const text = String(prompt);
|
|
36
|
+
const verb = VERB.exec(text)?.[0];
|
|
37
|
+
if (!verb)
|
|
38
|
+
return null;
|
|
39
|
+
const noun = COMPOUNDS.map(([pattern]) => pattern.exec(text)?.[0]).find(Boolean) ??
|
|
40
|
+
OTHER_COMPOUNDS.exec(text)?.[0] ??
|
|
41
|
+
VIDEO_NOUN.exec(text)?.[0];
|
|
42
|
+
if (!noun)
|
|
43
|
+
return null;
|
|
44
|
+
if (EXCLUSIONS.some((pattern) => pattern.test(text)))
|
|
45
|
+
return null;
|
|
46
|
+
return { verb, noun };
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The optional router hint. A type compound, an explicit kinetic-type or lyric request, or a quoted
|
|
50
|
+
* span of two or more words. A quote is only detected; its contents are never followed.
|
|
51
|
+
*/
|
|
52
|
+
export function typeLedCue(prompt) {
|
|
53
|
+
const text = String(prompt);
|
|
54
|
+
for (const [pattern, label] of COMPOUNDS)
|
|
55
|
+
if (pattern.test(text))
|
|
56
|
+
return label;
|
|
57
|
+
const explicit = EXPLICIT_TYPE.exec(text)?.[0];
|
|
58
|
+
if (explicit)
|
|
59
|
+
return explicit.toLowerCase();
|
|
60
|
+
for (const match of text.matchAll(QUOTED)) {
|
|
61
|
+
const span = (match[1] ?? match[2] ?? match[3] ?? match[4] ?? "").trim();
|
|
62
|
+
if (span.split(/\s+/u).filter(Boolean).length >= 2)
|
|
63
|
+
return "quoted span";
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
export const FILM_SUBCOMMANDS = Object.freeze([
|
|
68
|
+
"stage [--stills-only]",
|
|
69
|
+
"film [--stills-only]",
|
|
70
|
+
"sound",
|
|
71
|
+
"look --round N --answers <file>",
|
|
72
|
+
"gate",
|
|
73
|
+
"completion",
|
|
74
|
+
]);
|
|
75
|
+
/**
|
|
76
|
+
* The neutral film context for a matched prompt: what the request is, the treatment-first step, the
|
|
77
|
+
* path rule, and the installed renderer named once as an absolute path. Empty on no match or when
|
|
78
|
+
* the sibling skill is not installed.
|
|
79
|
+
*/
|
|
80
|
+
export function motionRouteContext(litLoopSkillPath, prompt) {
|
|
81
|
+
if (!classifyFilmRequest(prompt))
|
|
82
|
+
return "";
|
|
83
|
+
const skill = resolve(join(dirname(litLoopSkillPath), "..", "lit-typographic-motion"));
|
|
84
|
+
const renderer = join(skill, "scripts", "render.mjs");
|
|
85
|
+
if (!existsSync(renderer))
|
|
86
|
+
return "";
|
|
87
|
+
const cue = typeLedCue(prompt);
|
|
88
|
+
return [
|
|
89
|
+
"Film context: this is a film request. Load SKILL.md from the skill folder above the renderer's scripts/ and write treatment.json in the output directory before any render.",
|
|
90
|
+
"Path rule: the type path only when the words themselves are the film (kinetic type, a lyric or quote video, a title sequence, typographic motion, or supplied words with no other subject) at 16:9. Every other film, and every 9:16 film, takes the stage path: you author the visuals in HTML, CSS, SVG or Canvas and the renderer captures them.",
|
|
91
|
+
"Hand-encoded films are not the deliverable; every frame and track goes through the renderer.",
|
|
92
|
+
`Renderer: node "${renderer}" <subcommand> --out <dir>; subcommands: ${FILM_SUBCOMMANDS.join(", ")}.`,
|
|
93
|
+
...(cue ? [`type-led cue found: ${cue}`] : []),
|
|
94
|
+
].join("\n");
|
|
95
|
+
}
|
|
@@ -6,7 +6,9 @@ export declare const SKILL_RENAMES: {
|
|
|
6
6
|
readonly teammode: "lit-team";
|
|
7
7
|
readonly "remove-ai-slops": "lit-burnoff";
|
|
8
8
|
readonly "ai-slop-remover": "lit-burnoff-file";
|
|
9
|
-
readonly "korean
|
|
9
|
+
readonly "lit-korean": "lit-humanizer";
|
|
10
|
+
readonly "text-naturalization": "lit-humanizer";
|
|
11
|
+
readonly "korean-ai-slop-remover": "lit-humanizer";
|
|
10
12
|
readonly "public-page-reader": "lit-fetch";
|
|
11
13
|
readonly programming: "lit-code";
|
|
12
14
|
};
|