@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
|
@@ -1,434 +1,466 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { lstatSync, readFileSync, realpathSync } from "node:fs";
|
|
3
|
+
import { dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
3
4
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
const MAX_TEXT_BYTES = 4 * 1024 * 1024;
|
|
6
|
+
const MAX_PATHS = 64;
|
|
7
|
+
const MAX_OUTPUT_BYTES = 512 * 1024;
|
|
8
|
+
const DETECTOR_TIMEOUT_MS = 1500;
|
|
9
|
+
const DEFAULT_DETECTOR = resolve(dirname(fileURLToPath(import.meta.url)), "../../../skills/lit-humanizer/scripts/detect.mjs");
|
|
10
|
+
const TEXT_EXTENSIONS = new Set([
|
|
11
|
+
".adoc",
|
|
12
|
+
".c",
|
|
13
|
+
".cc",
|
|
14
|
+
".cpp",
|
|
15
|
+
".css",
|
|
16
|
+
".csv",
|
|
17
|
+
".go",
|
|
18
|
+
".h",
|
|
19
|
+
".html",
|
|
20
|
+
".java",
|
|
21
|
+
".js",
|
|
22
|
+
".jsx",
|
|
23
|
+
".jsonc",
|
|
24
|
+
".md",
|
|
25
|
+
".mdx",
|
|
26
|
+
".mjs",
|
|
27
|
+
".php",
|
|
28
|
+
".py",
|
|
29
|
+
".rb",
|
|
30
|
+
".rst",
|
|
31
|
+
".rs",
|
|
32
|
+
".sh",
|
|
33
|
+
".sql",
|
|
34
|
+
".svg",
|
|
35
|
+
".tex",
|
|
36
|
+
".toml",
|
|
37
|
+
".ts",
|
|
38
|
+
".tsx",
|
|
39
|
+
".txt",
|
|
40
|
+
".xml",
|
|
41
|
+
".yaml",
|
|
42
|
+
".yml",
|
|
43
|
+
]);
|
|
44
|
+
const OFFICE_EXTENSIONS = new Set([".docx", ".pdf", ".pptx"]);
|
|
45
|
+
const WRITER_TOOLS = new Set([
|
|
16
46
|
"apply_patch",
|
|
17
47
|
"write",
|
|
48
|
+
"write_file",
|
|
18
49
|
"edit",
|
|
50
|
+
"edit_file",
|
|
19
51
|
"multi_edit",
|
|
20
52
|
"multiedit",
|
|
21
53
|
"mcp__filesystem__write_file",
|
|
22
54
|
"mcp__filesystem__edit_file",
|
|
55
|
+
"bash",
|
|
23
56
|
]);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
maxFindings: 256,
|
|
28
|
-
maxOutputBytes: 2048,
|
|
29
|
-
});
|
|
30
|
-
const expectedChannel = Object.freeze({
|
|
31
|
-
client_deliverable: "reply",
|
|
32
|
-
internal_analysis: "designated_section",
|
|
33
|
-
audit_report: "methodology_paragraph",
|
|
34
|
-
working_note: "inline",
|
|
35
|
-
no_artifact: "reply",
|
|
36
|
-
});
|
|
37
|
-
const referenceContractSkills = new Set(["frontend-ui-ux", "visual-qa"]);
|
|
38
|
-
const evidenceNouns = /근거|자료|측정값|관찰\s*기록|데이터|증거|출처|참고문헌|평가\s*자료|검토\s*자료|시험\s*결과|검증\s*결과|수치|통계|evidence|data|measurement|observation|source|citation|test result/iu;
|
|
39
|
-
const evaluationNouns = /접근성|성능|효과|유효성|품질|평가|결과|점수|충족\s*여부|적합성|안전성|accessibility|performance|effect|validity|quality|score|compliance|safety/iu;
|
|
40
|
-
const missingEvidenceForm = /없(?:어(?:서)?|습니다|음)|부족|부재|제공되지\s*않|주어지지\s*않|확인되지\s*않|검증되지\s*않/u;
|
|
41
|
-
const cannotConcludeForm = /(?:평가|판단|산정)할\s*수\s*없|알\s*수\s*없/u;
|
|
42
|
-
const englishEvidenceGap = /\b(?:no evidence yet|not yet substantiated|(?:evidence|data|measurements?|observations?|sources?|citations?|test results?) (?:is|are|was|were)?\s*(?:missing|absent|unavailable|insufficient|not (?:provided|available|verified|substantiated)))\b/iu;
|
|
43
|
-
const englishCannotConclude = /\b(?:cannot|can not|unable to)\s+(?:assess|determine|calculate|establish|substantiate|verify)\b/iu;
|
|
44
|
-
const directPatterns = [
|
|
45
|
-
["deferred", /보류\s*중|별도로\s*진행|추후\s*진행|to be determined separately/iu],
|
|
46
|
-
["scope-limit", /한정됩니다|국한됩니다|범위\s*내에서만|limited to the provided evidence/iu],
|
|
47
|
-
["negated-action", /하지\s*않았습니다|포함되지\s*않습니다|다루지\s*않습니다|was not performed|is not included/iu],
|
|
48
|
-
["self-protection", /참고용|추가\s*검증이\s*필요|완전하지\s*않을\s*수\s*있|for reference only|may be incomplete/iu],
|
|
49
|
-
["process-meta", /as an AI|이\s*작업에서는|프롬프트가/iu],
|
|
50
|
-
];
|
|
51
|
-
export function readOutputChannelContract(skillId, skillRoot = defaultSkillRoot) {
|
|
52
|
-
if (!/^[a-z][a-z0-9-]{0,63}$/u.test(skillId))
|
|
53
|
-
throw new Error(`OUTPUT_CHANNEL_SKILL_INVALID skill=${skillId}`);
|
|
54
|
-
const skillPath = resolve(skillRoot, skillId, "SKILL.md");
|
|
55
|
-
const skillText = readFileSync(skillPath, "utf8");
|
|
56
|
-
const activationYaml = skillText.match(/^## #contract\.activation\s*\n\s*```yaml\s*\n([\s\S]*?)\n```\s*$/mu)?.[1];
|
|
57
|
-
const nested = activationYaml === undefined ? undefined : nestedChannel(activationYaml, skillPath);
|
|
58
|
-
if (nested !== undefined)
|
|
59
|
-
return nested;
|
|
60
|
-
if (!referenceContractSkills.has(skillId))
|
|
61
|
-
throw new Error(`OUTPUT_CHANNEL_MISSING skill=${skillId}`);
|
|
62
|
-
const completePath = resolve(skillRoot, skillId, "references", "complete-contract.md");
|
|
63
|
-
const completeText = readFileSync(completePath, "utf8");
|
|
64
|
-
const standalone = completeText.match(/^## #contract\.output_channels\s*\n\s*```yaml\s*\n([\s\S]*?)\n```\s*$/mu)?.[1];
|
|
65
|
-
if (standalone === undefined)
|
|
66
|
-
throw new Error(`OUTPUT_CHANNEL_MISSING skill=${skillId}`);
|
|
67
|
-
return channelFromPairs(standalone, completePath, "");
|
|
68
|
-
}
|
|
69
|
-
function nestedChannel(yaml, source) {
|
|
70
|
-
const marker = yaml.match(/^output_channels:\s*$/mu);
|
|
71
|
-
if (marker?.index === undefined)
|
|
72
|
-
return undefined;
|
|
73
|
-
return channelFromPairs(yaml.slice(marker.index + marker[0].length), source, " ");
|
|
74
|
-
}
|
|
75
|
-
function channelFromPairs(text, source, indentation) {
|
|
76
|
-
const genre = text.match(new RegExp(`^${indentation}artifact_genre:\\s*([a-z_]+)\\s*$`, "mu"))?.[1];
|
|
77
|
-
const channel = text.match(new RegExp(`^${indentation}limitations_channel:\\s*([a-z_]+)\\s*$`, "mu"))?.[1];
|
|
78
|
-
if (!isArtifactGenre(genre))
|
|
79
|
-
throw new Error(`OUTPUT_CHANNEL_GENRE_INVALID source=${source}`);
|
|
80
|
-
const required = expectedChannel[genre];
|
|
81
|
-
if (channel !== required)
|
|
82
|
-
throw new Error(`OUTPUT_CHANNEL_LIMITATIONS_MISMATCH source=${source}`);
|
|
83
|
-
return { artifactGenre: genre, limitationsChannel: required };
|
|
84
|
-
}
|
|
85
|
-
function isArtifactGenre(value) {
|
|
86
|
-
return typeof value === "string" && artifactGenres.some((candidate) => candidate === value);
|
|
87
|
-
}
|
|
88
|
-
function activeSkillFromTranscript(transcriptPath, turnId) {
|
|
89
|
-
if (transcriptPath === null)
|
|
90
|
-
return undefined;
|
|
91
|
-
const trustedText = readCurrentTurnHookContext(transcriptPath, turnId);
|
|
92
|
-
if (trustedText === null)
|
|
93
|
-
return undefined;
|
|
94
|
-
const marker = /<litcodex-skill-body name="([a-z][a-z0-9-]{0,63})">/gu;
|
|
95
|
-
let latest;
|
|
96
|
-
for (const match of trustedText.matchAll(marker))
|
|
97
|
-
latest = match[1];
|
|
98
|
-
return latest;
|
|
57
|
+
const FAIL_OPEN_NOTE = "lit-humanizer: the text check could not complete; the write was allowed. Review the changed text manually and retry the check.";
|
|
58
|
+
export function humanizerFailOpenOutput(event) {
|
|
59
|
+
return contextOutput(event, FAIL_OPEN_NOTE);
|
|
99
60
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const close = line.indexOf(quote, open + 1);
|
|
114
|
-
if (close < 0)
|
|
115
|
-
break;
|
|
116
|
-
if (open < at && at < close)
|
|
117
|
-
return true;
|
|
118
|
-
open = line.indexOf(quote, close + 1);
|
|
119
|
-
}
|
|
61
|
+
/** Run the bundled detector. Its exit statuses 1 and 2 represent findings; 2 is also used for block hits. */
|
|
62
|
+
export function inspectHumanizerText(text, detectorPath = detectorPathFromEnvironment()) {
|
|
63
|
+
if (Buffer.byteLength(text, "utf8") > MAX_TEXT_BYTES)
|
|
64
|
+
throw new Error("humanizer input limit exceeded");
|
|
65
|
+
const result = spawnSync(process.execPath, [detectorPath, "--json"], {
|
|
66
|
+
encoding: "utf8",
|
|
67
|
+
input: text,
|
|
68
|
+
maxBuffer: MAX_OUTPUT_BYTES,
|
|
69
|
+
timeout: DETECTOR_TIMEOUT_MS,
|
|
70
|
+
windowsHide: true,
|
|
71
|
+
});
|
|
72
|
+
if (result.error || result.status === null || (result.status !== 0 && result.status !== 1 && result.status !== 2)) {
|
|
73
|
+
throw new Error("humanizer detector did not finish cleanly");
|
|
120
74
|
}
|
|
121
|
-
|
|
75
|
+
const report = JSON.parse(result.stdout);
|
|
76
|
+
if (!Array.isArray(report.findings) || (report.errors?.length ?? 0) > 0)
|
|
77
|
+
throw new Error("invalid humanizer report");
|
|
78
|
+
return report.findings;
|
|
122
79
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
80
|
+
/** Deny block-tier findings before a supported editor writes; warnings are advisory context. */
|
|
81
|
+
export function runHumanizerPreToolUse(input, options = {}) {
|
|
82
|
+
if (input.hook_event_name !== "PreToolUse" || !WRITER_TOOLS.has(input.tool_name.toLowerCase()))
|
|
83
|
+
return "";
|
|
84
|
+
try {
|
|
85
|
+
const writes = collectWriteParts(input);
|
|
86
|
+
if (writes === null)
|
|
87
|
+
return contextOutput("PreToolUse", FAIL_OPEN_NOTE);
|
|
88
|
+
const text = writes
|
|
89
|
+
.filter((part) => !isInternalPath(part.path) && !isOfficePath(part.path))
|
|
90
|
+
.filter((part) => part.path === undefined || TEXT_EXTENSIONS.has(extname(part.path).toLowerCase()))
|
|
91
|
+
.map((part) => changedText(part, input.cwd))
|
|
92
|
+
.join("\n\n");
|
|
93
|
+
if (text.length === 0)
|
|
94
|
+
return "";
|
|
95
|
+
return findingsOutput("PreToolUse", (options.scan ?? inspectHumanizerText)(maskQuotedUserText(text)), writes.length);
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
return contextOutput("PreToolUse", FAIL_OPEN_NOTE);
|
|
126
99
|
}
|
|
127
|
-
return line.includes("|") && /status|state|상태|pending|deferred|보류\s*중/iu.test(line);
|
|
128
|
-
}
|
|
129
|
-
function headingDepth(line) {
|
|
130
|
-
return line.match(/^(#{1,6})\s+/u)?.[1]?.length ?? 0;
|
|
131
100
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
return
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (paragraphStarted)
|
|
149
|
-
break;
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
paragraphStarted = true;
|
|
153
|
-
allowed[index] = true;
|
|
154
|
-
}
|
|
155
|
-
return allowed;
|
|
101
|
+
/** Inspect Office/PDF output after creation; block findings ask the model to fix and rebuild. */
|
|
102
|
+
export function runHumanizerPostToolUse(input, options = {}) {
|
|
103
|
+
if (input.hook_event_name !== "PostToolUse" || !WRITER_TOOLS.has(input.tool_name.toLowerCase()))
|
|
104
|
+
return "";
|
|
105
|
+
try {
|
|
106
|
+
const paths = collectPostToolPaths(input);
|
|
107
|
+
if (paths === null)
|
|
108
|
+
return contextOutput("PostToolUse", FAIL_OPEN_NOTE);
|
|
109
|
+
const targets = paths.filter((path) => !isInternalPath(path) &&
|
|
110
|
+
(isOfficePath(path) || (input.tool_name.toLowerCase() === "bash" && isTextPath(path))));
|
|
111
|
+
if (targets.length === 0)
|
|
112
|
+
return "";
|
|
113
|
+
const text = targets
|
|
114
|
+
.map((path) => isOfficePath(path) ? extractOfficeText(path, input.cwd) : readAddedOutputText(path, input.cwd))
|
|
115
|
+
.join("\n\n");
|
|
116
|
+
return findingsOutput("PostToolUse", (options.scan ?? inspectHumanizerText)(maskQuotedUserText(text)), targets.length);
|
|
156
117
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return allowed;
|
|
160
|
-
const limitationsHeading = lines[limitations];
|
|
161
|
-
if (limitationsHeading === undefined)
|
|
162
|
-
return allowed;
|
|
163
|
-
const boundaryDepth = headingDepth(limitationsHeading);
|
|
164
|
-
for (let index = limitations + 1; index < lines.length; index += 1) {
|
|
165
|
-
const line = lines[index];
|
|
166
|
-
if (line === undefined)
|
|
167
|
-
break;
|
|
168
|
-
const depth = headingDepth(line);
|
|
169
|
-
if (depth > 0 && depth <= boundaryDepth)
|
|
170
|
-
break;
|
|
171
|
-
allowed[index] = true;
|
|
118
|
+
catch {
|
|
119
|
+
return contextOutput("PostToolUse", FAIL_OPEN_NOTE);
|
|
172
120
|
}
|
|
173
|
-
return allowed;
|
|
174
121
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
const lines = text.replace(/\r\n?/g, "\n").split("\n");
|
|
179
|
-
const allowed = allowedLimitationLines(lines, genre);
|
|
180
|
-
const findings = [];
|
|
181
|
-
let fence;
|
|
182
|
-
for (const [offset, line] of lines.entries()) {
|
|
183
|
-
const boundary = line.match(/^\s*(```|~~~)/u)?.[1];
|
|
184
|
-
if (boundary !== undefined) {
|
|
185
|
-
fence = fence === undefined ? boundary : fence === boundary ? undefined : fence;
|
|
186
|
-
continue;
|
|
187
|
-
}
|
|
188
|
-
if (fence !== undefined || allowed[offset])
|
|
189
|
-
continue;
|
|
190
|
-
if (isAuthorEvidenceGap(line)) {
|
|
191
|
-
findings.push({ category: "absent-evidence", line: offset + 1 });
|
|
192
|
-
if (findings.length >= maxFindings)
|
|
193
|
-
return findings;
|
|
194
|
-
}
|
|
195
|
-
for (const [category, pattern] of directPatterns) {
|
|
196
|
-
const match = pattern.exec(line);
|
|
197
|
-
if (match === null)
|
|
198
|
-
continue;
|
|
199
|
-
if (category === "deferred" && (insideQuotedText(line, match.index) || isStatusEncoding(line)))
|
|
200
|
-
continue;
|
|
201
|
-
findings.push({ category, line: offset + 1 });
|
|
202
|
-
if (findings.length >= maxFindings)
|
|
203
|
-
return findings;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
return findings;
|
|
122
|
+
function detectorPathFromEnvironment() {
|
|
123
|
+
const pluginRoot = process.env["PLUGIN_ROOT"];
|
|
124
|
+
return pluginRoot ? join(pluginRoot, "skills", "lit-humanizer", "scripts", "detect.mjs") : DEFAULT_DETECTOR;
|
|
207
125
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
if (isFailedToolResponse(input.tool_response) || !isRecord(input.tool_input)) {
|
|
214
|
-
return { ok: false, reason: "unsupported" };
|
|
215
|
-
}
|
|
216
|
-
const collector = new PendingWriteCollector(input.cwd);
|
|
217
|
-
collector.preflightDeclaredPaths(input.tool_input);
|
|
218
|
-
if (collector.failed !== undefined)
|
|
219
|
-
return { ok: false, reason: collector.failed };
|
|
220
|
-
const toolName = input.tool_name.toLowerCase();
|
|
221
|
-
if (toolName === "apply_patch") {
|
|
126
|
+
function collectWriteParts(input) {
|
|
127
|
+
if (!isRecord(input.tool_input))
|
|
128
|
+
return null;
|
|
129
|
+
const tool = input.tool_name.toLowerCase();
|
|
130
|
+
if (tool === "apply_patch") {
|
|
222
131
|
const patch = firstString(input.tool_input, ["command", "patch", "input"]);
|
|
223
|
-
|
|
224
|
-
return { ok: false, reason: "unsupported" };
|
|
225
|
-
collector.addPatch(patch);
|
|
132
|
+
return patch === undefined ? null : patchAdditions(patch);
|
|
226
133
|
}
|
|
227
|
-
|
|
228
|
-
|
|
134
|
+
if (tool === "bash") {
|
|
135
|
+
const command = firstString(input.tool_input, ["command", "cmd"]);
|
|
136
|
+
if (command === undefined)
|
|
137
|
+
return null;
|
|
138
|
+
const paths = shellOutputPaths(command);
|
|
139
|
+
if (paths === null)
|
|
140
|
+
return null;
|
|
141
|
+
if (paths.length === 0)
|
|
142
|
+
return [];
|
|
143
|
+
const text = heredocBody(command);
|
|
144
|
+
if (text === null)
|
|
145
|
+
return null;
|
|
146
|
+
return paths.map((path) => ({ path, text }));
|
|
229
147
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
148
|
+
const raw = input.tool_input["edits"] ?? input.tool_input["files"];
|
|
149
|
+
const candidates = Array.isArray(raw) ? raw.filter(isRecord) : [input.tool_input];
|
|
150
|
+
if (candidates.length > MAX_PATHS)
|
|
151
|
+
throw new Error("humanizer path limit exceeded");
|
|
152
|
+
const parts = [];
|
|
153
|
+
for (const candidate of candidates) {
|
|
154
|
+
const path = firstString(candidate, ["file_path", "path", "filename", "target"]);
|
|
155
|
+
const oldText = firstString(candidate, ["old_string", "oldString", "old_text", "oldText"]);
|
|
156
|
+
const newText = firstString(candidate, ["new_string", "newString", "new_text", "newText"]);
|
|
157
|
+
const text = newText ?? firstString(candidate, ["content", "contents", "text", "file_text"]);
|
|
158
|
+
if (text !== undefined)
|
|
159
|
+
parts.push({
|
|
160
|
+
...(path === undefined ? {} : { path }),
|
|
161
|
+
text,
|
|
162
|
+
...(oldText === undefined ? {} : { before: oldText }),
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
if (parts.length === 0)
|
|
166
|
+
return null;
|
|
167
|
+
if (parts.length > MAX_PATHS ||
|
|
168
|
+
parts.reduce((size, part) => size + Buffer.byteLength(part.text, "utf8"), 0) > MAX_TEXT_BYTES) {
|
|
169
|
+
throw new Error("humanizer write budget exceeded");
|
|
249
170
|
}
|
|
250
|
-
|
|
251
|
-
return { ok: false, reason: collector.failed };
|
|
252
|
-
const writes = collector.writes();
|
|
253
|
-
return writes.length === 0 ? { ok: false, reason: "unsupported" } : { ok: true, writes };
|
|
171
|
+
return parts;
|
|
254
172
|
}
|
|
255
|
-
|
|
256
|
-
if (!
|
|
257
|
-
return
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
173
|
+
function collectPostToolPaths(input) {
|
|
174
|
+
if (!isRecord(input.tool_input))
|
|
175
|
+
return null;
|
|
176
|
+
const raw = input.tool_input["edits"] ?? input.tool_input["files"];
|
|
177
|
+
const candidates = Array.isArray(raw) ? raw.filter(isRecord) : [input.tool_input];
|
|
178
|
+
if (candidates.length > MAX_PATHS)
|
|
179
|
+
throw new Error("humanizer path limit exceeded");
|
|
180
|
+
const paths = candidates
|
|
181
|
+
.map((item) => firstString(item, ["file_path", "path", "filename", "target"]))
|
|
182
|
+
.filter((value) => value !== undefined);
|
|
183
|
+
if (input.tool_name.toLowerCase() === "bash" && paths.length === 0) {
|
|
184
|
+
const command = firstString(input.tool_input, ["command", "cmd"]);
|
|
185
|
+
if (command === undefined)
|
|
186
|
+
return null;
|
|
187
|
+
const outputPaths = shellOutputPaths(command);
|
|
188
|
+
if (outputPaths === null)
|
|
189
|
+
return null;
|
|
190
|
+
paths.push(...outputPaths);
|
|
267
191
|
}
|
|
268
|
-
|
|
269
|
-
|
|
192
|
+
return paths;
|
|
193
|
+
}
|
|
194
|
+
const WRITABLE_EXTENSIONS = new Set([...TEXT_EXTENSIONS, ...OFFICE_EXTENSIONS]);
|
|
195
|
+
function isTextPath(path) {
|
|
196
|
+
return TEXT_EXTENSIONS.has(extname(path).toLowerCase());
|
|
197
|
+
}
|
|
198
|
+
function shellOutputPaths(command) {
|
|
199
|
+
const intent = /(?:^|\s)(?:>>?|\d?>)\s*|--output(?:=|\s+)|\s-o\s+/iu.test(command);
|
|
200
|
+
const paths = new Set();
|
|
201
|
+
let foundPath = false;
|
|
202
|
+
const pattern = /(?:>>?|\d?>|--output(?:=|\s+)|\s-o\s+)(?:\s*)(?:"([^"\r\n]+)"|'([^'\r\n]+)'|([^\s;&|<>]+))/giu;
|
|
203
|
+
for (const match of command.matchAll(pattern)) {
|
|
204
|
+
const path = (match[1] ?? match[2] ?? match[3])?.trim();
|
|
205
|
+
if (path)
|
|
206
|
+
foundPath = true;
|
|
207
|
+
if (path && WRITABLE_EXTENSIONS.has(extname(path).toLowerCase()))
|
|
208
|
+
paths.add(path);
|
|
270
209
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
210
|
+
if (paths.size === 0 && intent && !foundPath)
|
|
211
|
+
return null;
|
|
212
|
+
return [...paths].slice(0, MAX_PATHS + 1);
|
|
213
|
+
}
|
|
214
|
+
function heredocBody(command) {
|
|
215
|
+
const marker = /<<(-?)\s*(?:"([^"\r\n]+)"|'([^'\r\n]+)'|([A-Za-z_][A-Za-z0-9_]*))/u.exec(command);
|
|
216
|
+
if (!marker)
|
|
217
|
+
return null;
|
|
218
|
+
const delimiter = marker[2] ?? marker[3] ?? marker[4];
|
|
219
|
+
const bodyStart = command.indexOf("\n", marker.index + marker[0].length);
|
|
220
|
+
if (!delimiter || bodyStart < 0)
|
|
221
|
+
return null;
|
|
222
|
+
const body = command.slice(bodyStart + 1);
|
|
223
|
+
const delimiterLine = new RegExp(`^(?:\\t*)${escapeRegExp(delimiter)}\\s*$`, "mu").exec(body);
|
|
224
|
+
if (!delimiterLine)
|
|
225
|
+
return null;
|
|
226
|
+
const text = body.slice(0, delimiterLine.index);
|
|
227
|
+
return marker[1] === "-" ? text.replace(/^\t+/gmu, "") : text;
|
|
228
|
+
}
|
|
229
|
+
function escapeRegExp(value) {
|
|
230
|
+
return value.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
231
|
+
}
|
|
232
|
+
function readAddedOutputText(path, cwd) {
|
|
233
|
+
const root = realpathSync(cwd);
|
|
234
|
+
const target = isAbsolute(path) ? resolve(path) : resolve(root, path);
|
|
235
|
+
const text = readSafeExistingText(path, cwd);
|
|
236
|
+
if (text === null)
|
|
237
|
+
throw new Error("generated text file is missing");
|
|
238
|
+
if (Buffer.byteLength(text, "utf8") > MAX_TEXT_BYTES || text.includes("\0"))
|
|
239
|
+
throw new Error("generated text file is outside scan limits");
|
|
240
|
+
const repo = spawnSync("git", ["rev-parse", "--show-toplevel"], {
|
|
241
|
+
cwd: root,
|
|
242
|
+
encoding: "utf8",
|
|
243
|
+
shell: false,
|
|
244
|
+
windowsHide: true,
|
|
245
|
+
});
|
|
246
|
+
if (repo.status !== 0 || repo.error)
|
|
247
|
+
return text;
|
|
248
|
+
const repoRoot = repo.stdout.trim();
|
|
249
|
+
const repoPath = relative(repoRoot, target);
|
|
250
|
+
if (repoPath === ".." || repoPath.startsWith(`..${sep}`) || isAbsolute(repoPath))
|
|
251
|
+
return text;
|
|
252
|
+
const tracked = spawnSync("git", ["ls-files", "--error-unmatch", "--", repoPath], {
|
|
253
|
+
cwd: repoRoot,
|
|
254
|
+
encoding: "utf8",
|
|
255
|
+
shell: false,
|
|
256
|
+
stdio: ["ignore", "ignore", "ignore"],
|
|
257
|
+
windowsHide: true,
|
|
258
|
+
});
|
|
259
|
+
if (tracked.status !== 0)
|
|
260
|
+
return text;
|
|
261
|
+
const diff = spawnSync("git", ["diff", "--no-ext-diff", "--unified=0", "HEAD", "--", repoPath], {
|
|
262
|
+
cwd: repoRoot,
|
|
263
|
+
encoding: "utf8",
|
|
264
|
+
shell: false,
|
|
265
|
+
maxBuffer: MAX_OUTPUT_BYTES,
|
|
266
|
+
windowsHide: true,
|
|
267
|
+
});
|
|
268
|
+
if (diff.error || diff.status !== 0)
|
|
269
|
+
throw new Error("could not determine generated additions");
|
|
270
|
+
return diff.stdout
|
|
271
|
+
.split(/\r?\n/u)
|
|
272
|
+
.filter((line) => line.startsWith("+") && !line.startsWith("+++"))
|
|
273
|
+
.map((line) => line.slice(1))
|
|
274
|
+
.join("\n");
|
|
275
|
+
}
|
|
276
|
+
function patchAdditions(patch) {
|
|
277
|
+
if (Buffer.byteLength(patch, "utf8") > MAX_TEXT_BYTES)
|
|
278
|
+
throw new Error("humanizer patch limit exceeded");
|
|
279
|
+
const writes = [];
|
|
280
|
+
let path;
|
|
281
|
+
let additions = [];
|
|
282
|
+
const flush = () => {
|
|
283
|
+
if (additions.length > 0)
|
|
284
|
+
writes.push({ ...(path === undefined ? {} : { path }), text: additions.join("\n") });
|
|
285
|
+
additions = [];
|
|
286
|
+
};
|
|
287
|
+
for (const line of patch.split(/\r?\n/u)) {
|
|
288
|
+
const codex = /^\*\*\* (?:Update|Add|Delete) File: (.+)$/u.exec(line);
|
|
289
|
+
const unified = /^\+\+\+ b\/(.+)$/u.exec(line);
|
|
290
|
+
if (codex || unified) {
|
|
291
|
+
flush();
|
|
292
|
+
path = (codex?.[1] ?? unified?.[1])?.trim();
|
|
281
293
|
}
|
|
282
|
-
|
|
294
|
+
else if (line.startsWith("+") && !line.startsWith("+++"))
|
|
295
|
+
additions.push(line.slice(1));
|
|
283
296
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
return Buffer.byteLength(output, "utf8") <= deliverableRuntimeLimits.maxOutputBytes ? output : "";
|
|
297
|
+
flush();
|
|
298
|
+
if (writes.length > MAX_PATHS)
|
|
299
|
+
throw new Error("humanizer path limit exceeded");
|
|
300
|
+
return writes;
|
|
289
301
|
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
for (const key of ["edits", "files", "changes"]) {
|
|
315
|
-
const records = input[key];
|
|
316
|
-
if (!Array.isArray(records))
|
|
317
|
-
continue;
|
|
318
|
-
if (records.length > deliverableRuntimeLimits.maxPathCandidates) {
|
|
319
|
-
this.failed = "path-limit";
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
for (const item of records) {
|
|
323
|
-
if (typeof item === "string")
|
|
324
|
-
this.registerPath(item);
|
|
325
|
-
else if (isRecord(item))
|
|
326
|
-
this.registerRecordPaths(item);
|
|
327
|
-
}
|
|
302
|
+
function changedText(part, cwd) {
|
|
303
|
+
if (part.before !== undefined)
|
|
304
|
+
return addedLines(part.before, part.text);
|
|
305
|
+
if (part.path === undefined)
|
|
306
|
+
return part.text;
|
|
307
|
+
const before = readSafeExistingText(part.path, cwd);
|
|
308
|
+
return before === null ? part.text : addedLines(before, part.text);
|
|
309
|
+
}
|
|
310
|
+
function addedLines(before, after) {
|
|
311
|
+
if (Buffer.byteLength(before, "utf8") + Buffer.byteLength(after, "utf8") > MAX_TEXT_BYTES)
|
|
312
|
+
throw new Error("humanizer diff limit exceeded");
|
|
313
|
+
const oldLines = before.replace(/\r\n?/gu, "\n").split("\n");
|
|
314
|
+
const newLines = after.replace(/\r\n?/gu, "\n").split("\n");
|
|
315
|
+
const columns = newLines.length + 1;
|
|
316
|
+
if ((oldLines.length + 1) * columns > 1_000_000)
|
|
317
|
+
throw new Error("humanizer diff complexity limit exceeded");
|
|
318
|
+
const table = new Uint32Array((oldLines.length + 1) * columns);
|
|
319
|
+
const valueAt = (row, column) => table[row * columns + column] ?? 0;
|
|
320
|
+
for (let i = oldLines.length - 1; i >= 0; i -= 1) {
|
|
321
|
+
for (let j = newLines.length - 1; j >= 0; j -= 1) {
|
|
322
|
+
const cell = i * columns + j;
|
|
323
|
+
table[cell] =
|
|
324
|
+
oldLines[i] === newLines[j] ? 1 + valueAt(i + 1, j + 1) : Math.max(valueAt(i + 1, j), valueAt(i, j + 1));
|
|
328
325
|
}
|
|
329
326
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
addPatch(patch) {
|
|
338
|
-
if (Buffer.byteLength(patch, "utf8") > deliverableRuntimeLimits.maxAggregateContentBytes) {
|
|
339
|
-
this.failed = "content-limit";
|
|
340
|
-
return;
|
|
327
|
+
const additions = [];
|
|
328
|
+
let i = 0;
|
|
329
|
+
let j = 0;
|
|
330
|
+
while (i < oldLines.length && j < newLines.length) {
|
|
331
|
+
if (oldLines[i] === newLines[j]) {
|
|
332
|
+
i += 1;
|
|
333
|
+
j += 1;
|
|
341
334
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
for (const line of patch.replace(/\r\n?/gu, "\n").split("\n")) {
|
|
350
|
-
const header = patchPathHeader(line);
|
|
351
|
-
if (header !== undefined) {
|
|
352
|
-
flush();
|
|
353
|
-
currentPath = header;
|
|
354
|
-
this.registerPath(header);
|
|
355
|
-
if (this.failed !== undefined)
|
|
356
|
-
return;
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
if (line === "*** End Patch") {
|
|
360
|
-
flush();
|
|
361
|
-
currentPath = undefined;
|
|
362
|
-
continue;
|
|
363
|
-
}
|
|
364
|
-
if (currentPath !== undefined && line.startsWith("+") && !line.startsWith("+++")) {
|
|
365
|
-
additions.push(line.slice(1));
|
|
366
|
-
}
|
|
335
|
+
else if (valueAt(i + 1, j) >= valueAt(i, j + 1))
|
|
336
|
+
i += 1;
|
|
337
|
+
else {
|
|
338
|
+
const added = newLines[j];
|
|
339
|
+
if (added !== undefined)
|
|
340
|
+
additions.push(added);
|
|
341
|
+
j += 1;
|
|
367
342
|
}
|
|
368
|
-
flush();
|
|
369
|
-
}
|
|
370
|
-
writes() {
|
|
371
|
-
return [...this.#contentByPath.entries()].map(([path, parts]) => ({ path, content: parts.join("\n") }));
|
|
372
343
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
344
|
+
while (j < newLines.length) {
|
|
345
|
+
const added = newLines[j];
|
|
346
|
+
if (added !== undefined)
|
|
347
|
+
additions.push(added);
|
|
348
|
+
j += 1;
|
|
376
349
|
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
350
|
+
return additions.join("\n");
|
|
351
|
+
}
|
|
352
|
+
function readSafeExistingText(path, cwd) {
|
|
353
|
+
const root = realpathSync(cwd);
|
|
354
|
+
const target = isAbsolute(path) ? resolve(path) : resolve(root, path);
|
|
355
|
+
const relativePath = relative(root, target);
|
|
356
|
+
if (relativePath === "" || relativePath === ".." || relativePath.startsWith(`..${sep}`))
|
|
357
|
+
throw new Error("target outside cwd");
|
|
358
|
+
let current = root;
|
|
359
|
+
const segments = relativePath.split(sep);
|
|
360
|
+
for (const [index, segment] of segments.entries()) {
|
|
361
|
+
current = join(current, segment);
|
|
362
|
+
try {
|
|
363
|
+
const stat = lstatSync(current);
|
|
364
|
+
if (stat.isSymbolicLink())
|
|
365
|
+
throw new Error("symlink target refused");
|
|
366
|
+
if (index < segments.length - 1 && !stat.isDirectory())
|
|
367
|
+
throw new Error("invalid parent path");
|
|
368
|
+
if (index === segments.length - 1) {
|
|
369
|
+
if (!stat.isFile())
|
|
370
|
+
throw new Error("non-file target refused");
|
|
371
|
+
return readFileSync(current, "utf8");
|
|
372
|
+
}
|
|
386
373
|
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
return;
|
|
392
|
-
const normalizedPath = resolve(this.#cwd, path);
|
|
393
|
-
if (!this.#declaredPaths.has(normalizedPath))
|
|
394
|
-
this.registerPath(path);
|
|
395
|
-
if (this.failed !== undefined)
|
|
396
|
-
return;
|
|
397
|
-
const bytes = Buffer.byteLength(content, "utf8");
|
|
398
|
-
this.#aggregateBytes += bytes;
|
|
399
|
-
if (this.#aggregateBytes > deliverableRuntimeLimits.maxAggregateContentBytes) {
|
|
400
|
-
this.failed = "content-limit";
|
|
401
|
-
return;
|
|
374
|
+
catch (error) {
|
|
375
|
+
if (error.code === "ENOENT")
|
|
376
|
+
return null;
|
|
377
|
+
throw error;
|
|
402
378
|
}
|
|
403
|
-
if (!proseExtensions.has(extname(normalizedPath).toLowerCase()))
|
|
404
|
-
return;
|
|
405
|
-
const parts = this.#contentByPath.get(normalizedPath) ?? [];
|
|
406
|
-
parts.push(content);
|
|
407
|
-
this.#contentByPath.set(normalizedPath, parts);
|
|
408
379
|
}
|
|
380
|
+
return null;
|
|
409
381
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
382
|
+
function extractOfficeText(path, cwd) {
|
|
383
|
+
const root = realpathSync(cwd);
|
|
384
|
+
const target = isAbsolute(path) ? resolve(path) : resolve(root, path);
|
|
385
|
+
const relativePath = relative(root, target);
|
|
386
|
+
if (relativePath === ".." || relativePath.startsWith(`..${sep}`))
|
|
387
|
+
throw new Error("Office target outside cwd");
|
|
388
|
+
const stat = lstatSync(target);
|
|
389
|
+
if (!stat.isFile() || stat.isSymbolicLink())
|
|
390
|
+
throw new Error("Office target is not a regular file");
|
|
391
|
+
const extension = extname(target).toLowerCase();
|
|
392
|
+
const command = extension === ".pdf" ? "pdftotext" : "python3";
|
|
393
|
+
const args = extension === ".pdf" ? [target, "-"] : [join(dirname(DEFAULT_DETECTOR), "extract_office_text.py"), target];
|
|
394
|
+
const result = spawnSync(command, args, {
|
|
395
|
+
cwd: root,
|
|
396
|
+
encoding: "utf8",
|
|
397
|
+
maxBuffer: MAX_OUTPUT_BYTES,
|
|
398
|
+
timeout: DETECTOR_TIMEOUT_MS,
|
|
399
|
+
windowsHide: true,
|
|
400
|
+
});
|
|
401
|
+
if (result.error || result.status !== 0)
|
|
402
|
+
throw new Error("Office text extraction failed");
|
|
403
|
+
return result.stdout;
|
|
404
|
+
}
|
|
405
|
+
function isOfficePath(path) {
|
|
406
|
+
return path !== undefined && OFFICE_EXTENSIONS.has(extname(path).toLowerCase());
|
|
407
|
+
}
|
|
408
|
+
function isInternalPath(path) {
|
|
409
|
+
if (path === undefined)
|
|
410
|
+
return false;
|
|
411
|
+
return path
|
|
412
|
+
.replaceAll("\\", "/")
|
|
413
|
+
.split("/")
|
|
414
|
+
.some((segment) => segment === "plans" ||
|
|
415
|
+
segment === "evidence" ||
|
|
416
|
+
segment === ".hermes" ||
|
|
417
|
+
segment === `.${["o", "mo"].join("")}` ||
|
|
418
|
+
/^\.lit[^/]*$/iu.test(segment) ||
|
|
419
|
+
/^handoff(?:$|[-_.])/iu.test(segment) ||
|
|
420
|
+
/^(?:ledgers?|status)(?:\.[^/]*)?$/iu.test(segment));
|
|
421
|
+
}
|
|
422
|
+
function maskQuotedUserText(text) {
|
|
423
|
+
return text
|
|
424
|
+
.split("\n")
|
|
425
|
+
.map((line) => {
|
|
426
|
+
if (/^\s{0,3}>/u.test(line))
|
|
427
|
+
return "";
|
|
428
|
+
return line
|
|
429
|
+
.replace(/"(?:\\.|[^"\\])*"/gu, " ")
|
|
430
|
+
.replace(/“[^”]*”/gu, " ")
|
|
431
|
+
.replace(/‘[^’]*’/gu, " ")
|
|
432
|
+
.replace(/(?<![\p{L}\p{N}_])'[^'\n]+'(?![\p{L}\p{N}_])/gu, " ");
|
|
433
|
+
})
|
|
434
|
+
.join("\n");
|
|
435
|
+
}
|
|
436
|
+
function findingsOutput(event, findings, files) {
|
|
437
|
+
if (findings.length === 0)
|
|
438
|
+
return "";
|
|
439
|
+
const blocks = findings.filter((item) => item.severity === "block");
|
|
440
|
+
const warnings = findings.filter((item) => item.severity === "warn");
|
|
441
|
+
const detail = findings
|
|
442
|
+
.slice(0, 24)
|
|
443
|
+
.map((item) => `${item.severity} ${item.rule} line ${item.line}`)
|
|
444
|
+
.join("; ");
|
|
445
|
+
const rebuild = event === "PostToolUse" && blocks.length > 0 ? "Fix the changed passages and rebuild the artifact. " : "";
|
|
446
|
+
const context = `LIT_HUMANIZER findings=${findings.length} files=${files} block=${blocks.length} warn=${warnings.length}. ${rebuild}Warnings are advisory; preserve meaning and voice. ${detail}`.slice(0, 1800);
|
|
447
|
+
const hookSpecificOutput = { hookEventName: event, additionalContext: context };
|
|
448
|
+
if (event === "PreToolUse" && blocks.length > 0) {
|
|
449
|
+
hookSpecificOutput["permissionDecision"] = "deny";
|
|
450
|
+
hookSpecificOutput["permissionDecisionReason"] =
|
|
451
|
+
`lit-humanizer blocked ${blocks.length} high-confidence drafting residue hit(s).`;
|
|
416
452
|
}
|
|
417
|
-
return
|
|
453
|
+
return JSON.stringify({ hookSpecificOutput });
|
|
454
|
+
}
|
|
455
|
+
function contextOutput(event, message) {
|
|
456
|
+
return JSON.stringify({ hookSpecificOutput: { hookEventName: event, additionalContext: message } });
|
|
418
457
|
}
|
|
419
458
|
function firstString(record, keys) {
|
|
420
|
-
for (const key of keys)
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
return value;
|
|
424
|
-
}
|
|
459
|
+
for (const key of keys)
|
|
460
|
+
if (typeof record[key] === "string")
|
|
461
|
+
return record[key];
|
|
425
462
|
return undefined;
|
|
426
463
|
}
|
|
427
464
|
function isRecord(value) {
|
|
428
465
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
429
466
|
}
|
|
430
|
-
function isFailedToolResponse(value) {
|
|
431
|
-
if (!isRecord(value))
|
|
432
|
-
return false;
|
|
433
|
-
return (value["isError"] === true || value["is_error"] === true || value["error"] === true || value["status"] === "error");
|
|
434
|
-
}
|