@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.
Files changed (827) hide show
  1. package/README.md +361 -23
  2. package/dist/cli.js +42 -0
  3. package/dist/config-migration/config-paths.js +9 -2
  4. package/dist/install/doctor-render.js +1 -0
  5. package/dist/install/doctor.js +8 -0
  6. package/dist/install/execute.d.ts +2 -0
  7. package/dist/install/execute.js +8 -3
  8. package/dist/install/generated-skill-payload-hashes.d.ts +617 -21
  9. package/dist/install/generated-skill-payload-hashes.js +617 -21
  10. package/dist/install/index.js +13 -2
  11. package/dist/install/marketplace-payload.d.ts +1 -0
  12. package/dist/install/marketplace-payload.js +73 -2
  13. package/dist/install/motion-runtime.d.ts +36 -0
  14. package/dist/install/motion-runtime.js +82 -0
  15. package/dist/install/office-runtime.d.ts +20 -0
  16. package/dist/install/office-runtime.js +37 -0
  17. package/dist/install/skill-catalog.d.ts +1 -1
  18. package/dist/install/skill-catalog.js +26 -2
  19. package/dist/install/skill-resource-hashes.d.ts +1 -1
  20. package/dist/install/skill-resource-hashes.js +1 -1
  21. package/dist/install/types.d.ts +3 -0
  22. package/dist/postinstall.js +14 -2
  23. package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
  24. package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
  25. package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
  26. package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
  27. package/marketplace/plugins/litcodex/components/lit-loop/directive.md +90 -5
  28. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-comprehend.md +13 -17
  29. package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +8 -0
  30. package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +8 -1
  31. package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.d.ts +8 -1
  32. package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +36 -4
  33. package/marketplace/plugins/litcodex/components/lit-loop/dist/jev-hint.d.ts +112 -0
  34. package/marketplace/plugins/litcodex/components/lit-loop/dist/jev-hint.js +522 -0
  35. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.d.ts +18 -0
  36. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +95 -0
  37. package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.d.ts +3 -1
  38. package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-renames.js +10 -5
  39. package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
  40. package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
  41. package/marketplace/plugins/litcodex/components/rules/bundled-rules/lit-humanizer.md +12 -0
  42. package/marketplace/plugins/litcodex/components/rules/dist/cli.js +22 -10
  43. package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.d.ts +23 -34
  44. package/marketplace/plugins/litcodex/components/rules/dist/deliverable-hedge-guard.js +420 -388
  45. package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
  46. package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
  47. package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
  48. package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
  49. package/marketplace/plugins/litcodex/hooks/hooks.json +32 -21
  50. package/marketplace/plugins/litcodex/skills/autoconference/assets/report_template.md +1 -1
  51. package/marketplace/plugins/litcodex/skills/browser-drive/SKILL.md +4 -0
  52. package/marketplace/plugins/litcodex/skills/browser-drive/scripts/capability-probe.mjs +25 -2
  53. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +14 -15
  54. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +7 -0
  55. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/examples/readme-ab/README.md +13 -0
  56. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/adaptive-layout.md +12 -83
  57. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +17 -65
  58. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +44 -13
  59. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/composition.md +14 -80
  60. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +103 -0
  61. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/creative-directions.md +13 -82
  62. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/evidence-review.md +14 -112
  63. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/implementation-platforms.md +16 -68
  64. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/inclusive-interface.md +12 -86
  65. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/interaction-motion.md +13 -82
  66. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +123 -0
  67. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/operating-lanes.md +12 -100
  68. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/performance-delivery.md +12 -78
  69. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +41 -0
  70. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/product-direction.md +10 -88
  71. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +10 -12
  72. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/redesign-playbook.md +12 -74
  73. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +98 -0
  74. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/system-foundations.md +13 -100
  75. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-language.md +11 -74
  76. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-reconstruction.md +9 -78
  77. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/hover-probe.mjs +28 -0
  78. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +423 -0
  79. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +261 -0
  80. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/route-mode.mjs +19 -0
  81. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +115 -0
  82. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/serve-static.mjs +24 -0
  83. package/marketplace/plugins/litcodex/skills/lit-comprehend/SKILL.md +45 -53
  84. package/marketplace/plugins/litcodex/skills/lit-comprehend/references/artifact-template.md +10 -44
  85. package/marketplace/plugins/litcodex/skills/lit-comprehend/scripts/verify-explainer.ts +0 -18
  86. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/NOTICE +33 -0
  87. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +167 -0
  88. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/agents/openai.yaml +6 -0
  89. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +1 -0
  90. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +1 -0
  91. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +1 -0
  92. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +1 -0
  93. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +1 -0
  94. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +1 -0
  95. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +1 -0
  96. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +1 -0
  97. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +1 -0
  98. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +1 -0
  99. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +1 -0
  100. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +1 -0
  101. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +1 -0
  102. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +1 -0
  103. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +1 -0
  104. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +1 -0
  105. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +1 -0
  106. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +1 -0
  107. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +1 -0
  108. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +1 -0
  109. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +1 -0
  110. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +1 -0
  111. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +1 -0
  112. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +1 -0
  113. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +1 -0
  114. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +1 -0
  115. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +1 -0
  116. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +1 -0
  117. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +1 -0
  118. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +1 -0
  119. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +1 -0
  120. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +1 -0
  121. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +1 -0
  122. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +1 -0
  123. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +1 -0
  124. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +1 -0
  125. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +1 -0
  126. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-full.html +1 -0
  127. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-light.html +1 -0
  128. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +1 -0
  129. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +1 -0
  130. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +1 -0
  131. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +1 -0
  132. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +1 -0
  133. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +1 -0
  134. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +1 -0
  135. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +1 -0
  136. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +1 -0
  137. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +1 -0
  138. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +1 -0
  139. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +1 -0
  140. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +1 -0
  141. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +1 -0
  142. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +1 -0
  143. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +1 -0
  144. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +1 -0
  145. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +1 -0
  146. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +1 -0
  147. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +1 -0
  148. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +1 -0
  149. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +1 -0
  150. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +1 -0
  151. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +1 -0
  152. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +1 -0
  153. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +1 -0
  154. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +1 -0
  155. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +1 -0
  156. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +1 -0
  157. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +1 -0
  158. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +1 -0
  159. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +1 -0
  160. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +1 -0
  161. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +1 -0
  162. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +1 -0
  163. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +1 -0
  164. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +1 -0
  165. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +1 -0
  166. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +1 -0
  167. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +1 -0
  168. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-full.html +1 -0
  169. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-light.html +1 -0
  170. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +1 -0
  171. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +1 -0
  172. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +1 -0
  173. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +1 -0
  174. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +1 -0
  175. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +1 -0
  176. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +1 -0
  177. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +1 -0
  178. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +1 -0
  179. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +1 -0
  180. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +1 -0
  181. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +1 -0
  182. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +1 -0
  183. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +1 -0
  184. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +1 -0
  185. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +1 -0
  186. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +1 -0
  187. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +1 -0
  188. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +1 -0
  189. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +1 -0
  190. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +1 -0
  191. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +1 -0
  192. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +1 -0
  193. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +1 -0
  194. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +1 -0
  195. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +1 -0
  196. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +1 -0
  197. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +1 -0
  198. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-full.html +1 -0
  199. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-light.html +1 -0
  200. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +1 -0
  201. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +1 -0
  202. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +1 -0
  203. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +1 -0
  204. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +1 -0
  205. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +1 -0
  206. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +1 -0
  207. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +1 -0
  208. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +1 -0
  209. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +1 -0
  210. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +1 -0
  211. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +1 -0
  212. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +1 -0
  213. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +1 -0
  214. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +1 -0
  215. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +1 -0
  216. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +1 -0
  217. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +1 -0
  218. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +1 -0
  219. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +1 -0
  220. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +1 -0
  221. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +1 -0
  222. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +1 -0
  223. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +1 -0
  224. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +1 -0
  225. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +1 -0
  226. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +1 -0
  227. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +1 -0
  228. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +1 -0
  229. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +1 -0
  230. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +1 -0
  231. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +1 -0
  232. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +1 -0
  233. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +1 -0
  234. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-full.html +1 -0
  235. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +1 -0
  236. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +1 -0
  237. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +1 -0
  238. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-light.html +1 -0
  239. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +1 -0
  240. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +1 -0
  241. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +1 -0
  242. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +1 -0
  243. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +1 -0
  244. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +1 -0
  245. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +1 -0
  246. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +1 -0
  247. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +1 -0
  248. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +1 -0
  249. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +1 -0
  250. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +1 -0
  251. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +1 -0
  252. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +1 -0
  253. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +1 -0
  254. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +1 -0
  255. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +1 -0
  256. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +1 -0
  257. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +1 -0
  258. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +1 -0
  259. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +1 -0
  260. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +1 -0
  261. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +1 -0
  262. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +1 -0
  263. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +1 -0
  264. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +1 -0
  265. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +1 -0
  266. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +1 -0
  267. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +1 -0
  268. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +1 -0
  269. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +1 -0
  270. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +1 -0
  271. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +1 -0
  272. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/OFL.txt +94 -0
  273. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
  274. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/provenance.json +22 -0
  275. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/icons.html +231 -0
  276. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/index.html +1 -0
  277. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +20 -0
  278. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +21 -0
  279. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +21 -0
  280. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +30 -0
  281. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +21 -0
  282. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +1 -0
  283. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +33 -0
  284. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +1 -0
  285. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/after.html +1 -0
  286. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +18 -0
  287. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +1 -0
  288. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/after.html +1 -0
  289. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +19 -0
  290. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +1 -0
  291. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +1 -0
  292. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +17 -0
  293. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +1 -0
  294. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +1 -0
  295. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +17 -0
  296. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +1 -0
  297. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +1 -0
  298. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +17 -0
  299. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +1 -0
  300. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +1 -0
  301. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +19 -0
  302. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +1 -0
  303. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +1 -0
  304. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +20 -0
  305. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +1 -0
  306. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/accessibility.md +37 -0
  307. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/export.md +29 -0
  308. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-drawio.md +21 -0
  309. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-excalidraw.md +14 -0
  310. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-mermaid.md +18 -0
  311. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-schema.md +28 -0
  312. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/korean-typography.md +34 -0
  313. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/motion.md +29 -0
  314. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/office-pptx-docx.md +42 -0
  315. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/output-spec.md +48 -0
  316. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-annotation.md +12 -0
  317. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-icons.md +21 -0
  318. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-sketchy.md +11 -0
  319. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-terminal.md +11 -0
  320. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/profiles.md +24 -0
  321. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/semantic-patterns.md +27 -0
  322. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +67 -0
  323. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +51 -0
  324. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bar.md +51 -0
  325. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-beeswarm.md +49 -0
  326. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bubble.md +49 -0
  327. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bump.md +49 -0
  328. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-catalog.json +1433 -0
  329. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-data-flow.md +51 -0
  330. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-datalake.md +49 -0
  331. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-db-schema.md +49 -0
  332. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +49 -0
  333. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-deployment.md +49 -0
  334. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-integration.md +49 -0
  335. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +49 -0
  336. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-er.md +49 -0
  337. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-fishbone.md +49 -0
  338. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-flowchart.md +49 -0
  339. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-gantt.md +49 -0
  340. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-heatmap.md +53 -0
  341. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level-vertical.md +53 -0
  342. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level.md +53 -0
  343. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-drawio.md +53 -0
  344. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-excalidraw.md +53 -0
  345. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-mermaid.md +53 -0
  346. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-it-state.md +54 -0
  347. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-journey.md +54 -0
  348. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-kanban.md +54 -0
  349. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-layers.md +54 -0
  350. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-line.md +54 -0
  351. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop-terminal.md +53 -0
  352. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop.md +54 -0
  353. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-marimekko.md +54 -0
  354. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-medallion.md +54 -0
  355. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-nested.md +59 -0
  356. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-org-chart.md +58 -0
  357. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-paved-road-animated.md +72 -0
  358. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-polar.md +67 -0
  359. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +69 -0
  360. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-process.md +58 -0
  361. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-pyramid.md +59 -0
  362. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +60 -0
  363. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant.md +57 -0
  364. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-queue-animated.md +63 -0
  365. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-radar.md +57 -0
  366. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-ridgeline.md +63 -0
  367. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sankey.md +68 -0
  368. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-scatter.md +60 -0
  369. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence-oauth.md +66 -0
  370. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence.md +63 -0
  371. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-slopegraph.md +65 -0
  372. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state-lifecycle.md +53 -0
  373. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state.md +59 -0
  374. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-story-map.md +52 -0
  375. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-streamgraph.md +53 -0
  376. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +52 -0
  377. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-timeline.md +52 -0
  378. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +57 -0
  379. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +54 -0
  380. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-treemap.md +54 -0
  381. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-uml-class.md +52 -0
  382. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-venn.md +51 -0
  383. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +52 -0
  384. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-waterfall.md +54 -0
  385. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +59 -0
  386. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/block-registry.mjs +43 -0
  387. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/brief-contract.mjs +94 -0
  388. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +15 -0
  389. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +14 -0
  390. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +219 -0
  391. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/doctor.mjs +28 -0
  392. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-model.mjs +162 -0
  393. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-source.mjs +147 -0
  394. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +148 -0
  395. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/export.mjs +122 -0
  396. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-common.mjs +85 -0
  397. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-drawio.mjs +48 -0
  398. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +234 -0
  399. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +104 -0
  400. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +115 -0
  401. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +70 -0
  402. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +178 -0
  403. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +137 -0
  404. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +80 -0
  405. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/office-safety.mjs +54 -0
  406. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +11 -0
  407. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-all.mjs +85 -0
  408. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-brief.mjs +16 -0
  409. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +27 -0
  410. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-motion.mjs +12 -0
  411. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-type.mjs +48 -0
  412. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +226 -0
  413. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +147 -0
  414. package/marketplace/plugins/litcodex/skills/lit-docx/LICENSE +21 -0
  415. package/marketplace/plugins/litcodex/skills/lit-docx/NOTICE +3 -0
  416. package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +102 -0
  417. package/marketplace/plugins/litcodex/skills/lit-docx/agents/openai.yaml +14 -0
  418. package/marketplace/plugins/litcodex/skills/lit-docx/references/frontmatter_schema.md +42 -0
  419. package/marketplace/plugins/litcodex/skills/lit-docx/references/journal_style_spec.md +17 -0
  420. package/marketplace/plugins/litcodex/skills/lit-docx/references/markdown_quality_checklist.md +37 -0
  421. package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_phrase_list.yaml +58 -0
  422. package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_rules.md +35 -0
  423. package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.in +5 -0
  424. package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.lock +20 -0
  425. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/clean_markdown.py +95 -0
  426. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_docx.py +1046 -0
  427. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_pdf.py +281 -0
  428. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_pdf.py +130 -0
  429. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/docx_craft.py +95 -0
  430. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/edit_docx.py +297 -0
  431. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/embed_images.py +78 -0
  432. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/generate_docx_templates.py +491 -0
  433. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/slop_lint.py +473 -0
  434. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/visual_audit.py +41 -0
  435. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/acs.docx +0 -0
  436. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/elsevier.docx +0 -0
  437. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/ieee.docx +0 -0
  438. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
  439. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/nature.docx +0 -0
  440. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/README.md +5 -0
  441. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/template.tex +37 -0
  442. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/README.md +5 -0
  443. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/template.tex +38 -0
  444. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/README.md +5 -0
  445. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/template.tex +37 -0
  446. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/README.md +5 -0
  447. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/template.tex +37 -0
  448. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/README.md +5 -0
  449. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/template.tex +37 -0
  450. package/marketplace/plugins/litcodex/skills/lit-docx/templates/registry.yaml +1366 -0
  451. package/marketplace/plugins/litcodex/skills/lit-humanizer/NOTICE +160 -0
  452. package/marketplace/plugins/litcodex/skills/lit-humanizer/SKILL.md +146 -0
  453. package/marketplace/plugins/litcodex/skills/lit-humanizer/always-on-rule.md +9 -0
  454. package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/always-on-rule.md +9 -0
  455. package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/report-skeleton.md +25 -0
  456. package/marketplace/plugins/litcodex/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
  457. package/marketplace/plugins/litcodex/skills/lit-humanizer/bench/prompts.md +73 -0
  458. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
  459. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
  460. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/after.md +9 -0
  461. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/api-reference/before.md +15 -0
  462. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/after.md +5 -0
  463. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/changelog/before.md +12 -0
  464. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/after.md +10 -0
  465. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/code-comments/before.md +19 -0
  466. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/after.md +5 -0
  467. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/commit/before.md +7 -0
  468. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/after.md +7 -0
  469. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/data-release/before.md +9 -0
  470. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/after.md +5 -0
  471. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/english-essay/before.md +5 -0
  472. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/after.md +7 -0
  473. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/incident-update/before.md +7 -0
  474. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
  475. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
  476. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/after.md +9 -0
  477. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-report/before.md +13 -0
  478. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
  479. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
  480. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
  481. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
  482. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
  483. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
  484. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/after.md +15 -0
  485. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/pr/before.md +17 -0
  486. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/after.md +7 -0
  487. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/project-update/before.md +9 -0
  488. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/after.md +12 -0
  489. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/readme/before.md +14 -0
  490. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/after.md +13 -0
  491. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/report/before.md +11 -0
  492. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
  493. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
  494. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/after.md +19 -0
  495. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/slides/before.md +19 -0
  496. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
  497. package/marketplace/plugins/litcodex/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
  498. package/marketplace/plugins/litcodex/skills/lit-humanizer/motion-guide.md +123 -0
  499. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/code-patterns.md +468 -0
  500. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/deliverable-channels.md +111 -0
  501. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
  502. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-content.md +243 -0
  503. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
  504. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/en-patterns.md +57 -0
  505. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-metrics.md +33 -0
  506. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
  507. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
  508. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/ko-patterns.md +31 -0
  509. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
  510. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
  511. package/marketplace/plugins/litcodex/skills/lit-humanizer/references/taxonomy.md +153 -0
  512. package/marketplace/plugins/litcodex/skills/lit-humanizer/rules.json +884 -0
  513. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/core.mjs +208 -0
  514. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/detect.mjs +83 -0
  515. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
  516. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
  517. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
  518. package/marketplace/plugins/litcodex/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
  519. package/marketplace/plugins/litcodex/skills/lit-init/references/deep-repository-map.md +6 -10
  520. package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +95 -12
  521. package/marketplace/plugins/litcodex/skills/lit-loop/agents/openai.yaml +3 -2
  522. package/marketplace/plugins/litcodex/skills/lit-loop/references/full-workflow.md +10 -3
  523. package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +7 -0
  524. package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +102 -0
  525. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/analyst.md +49 -0
  526. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/antithesis.md +59 -0
  527. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/architect.md +44 -0
  528. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/critic.md +42 -0
  529. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/openai.yaml +14 -0
  530. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/synthesizer.md +47 -0
  531. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/thesis.md +33 -0
  532. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
  533. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-md.png +0 -0
  534. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
  535. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Black.otf +0 -0
  536. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Bold.otf +0 -0
  537. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Light.otf +0 -0
  538. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Medium.otf +0 -0
  539. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Regular.otf +0 -0
  540. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/OFL.txt +94 -0
  541. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/SOURCE.md +29 -0
  542. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/LICENSE.txt +94 -0
  543. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Bold.otf +0 -0
  544. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/PretendardGOV-Regular.otf +0 -0
  545. package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +71 -0
  546. package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +141 -0
  547. package/marketplace/plugins/litcodex/skills/lit-pptx/references/consensus-protocol.md +125 -0
  548. package/marketplace/plugins/litcodex/skills/lit-pptx/references/data-display-cookbook.md +45 -0
  549. package/marketplace/plugins/litcodex/skills/lit-pptx/references/design-system-azure.md +58 -0
  550. package/marketplace/plugins/litcodex/skills/lit-pptx/references/interview-protocol.md +113 -0
  551. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package-lock.json +747 -0
  552. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package.json +13 -0
  553. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.in +2 -0
  554. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.lock +14 -0
  555. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/check_ooxml.py +40 -0
  556. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +399 -0
  557. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +246 -0
  558. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +201 -0
  559. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/inventory.py +95 -0
  560. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/learn_template.py +433 -0
  561. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/derive-palette.js +176 -0
  562. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/directive-parser.js +244 -0
  563. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/font-map.js +79 -0
  564. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-bg.js +85 -0
  565. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +36 -0
  566. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +734 -0
  567. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/markdown-loader.js +136 -0
  568. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-html.js +358 -0
  569. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +1885 -0
  570. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-ast.js +517 -0
  571. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/spec-validator.js +94 -0
  572. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +355 -0
  573. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +137 -0
  574. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/package.json +1 -0
  575. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +795 -0
  576. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/validate_pptx.py +206 -0
  577. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v1.md +251 -0
  578. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v2.md +207 -0
  579. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v1.schema.json +229 -0
  580. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v2.schema.json +144 -0
  581. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/template-enrollment-contract.md +379 -0
  582. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/bauhaus_light.css +4 -0
  583. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/boilerplate_professional.css +508 -0
  584. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +146 -0
  585. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +454 -0
  586. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +37 -0
  587. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +154 -0
  588. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +464 -0
  589. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +37 -0
  590. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +179 -0
  591. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +299 -0
  592. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +45 -0
  593. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +181 -0
  594. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +299 -0
  595. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +44 -0
  596. package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +2 -0
  597. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +73 -0
  598. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/agents/openai.yaml +15 -0
  599. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/NOTICE +23 -0
  600. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +32 -0
  601. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/browser-app.js +735 -0
  602. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/completion.mjs +9 -0
  603. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/compose.mjs +255 -0
  604. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +264 -0
  605. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +169 -0
  606. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/encode.mjs +163 -0
  607. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/flash.mjs +251 -0
  608. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/fonts.mjs +169 -0
  609. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gate.mjs +466 -0
  610. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +267 -0
  611. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +182 -0
  612. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/passes.mjs +181 -0
  613. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/presets.mjs +110 -0
  614. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/report.mjs +56 -0
  615. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +287 -0
  616. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scenes.mjs +309 -0
  617. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +463 -0
  618. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +155 -0
  619. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-init.js +215 -0
  620. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +515 -0
  621. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +147 -0
  622. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +243 -0
  623. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +335 -0
  624. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +26 -0
  625. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +311 -0
  626. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stroke.mjs +264 -0
  627. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/timeline.mjs +153 -0
  628. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +280 -0
  629. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/type.mjs +234 -0
  630. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/util.mjs +198 -0
  631. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt400.ttf +0 -0
  632. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt700.ttf +0 -0
  633. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt900.ttf +0 -0
  634. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt400.ttf +0 -0
  635. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt700.ttf +0 -0
  636. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt900.ttf +0 -0
  637. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt400.ttf +0 -0
  638. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt700.ttf +0 -0
  639. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt900.ttf +0 -0
  640. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/OFL.txt +93 -0
  641. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/SHA256SUMS +16 -0
  642. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/CREDITS +6 -0
  643. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +216 -0
  644. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +216 -0
  645. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +216 -0
  646. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +216 -0
  647. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +217 -0
  648. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/OFL.txt +86 -0
  649. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/OFL.txt +93 -0
  650. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
  651. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +137 -0
  652. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +68 -0
  653. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/scene-author.md +57 -0
  654. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +175 -0
  655. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +103 -0
  656. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +119 -0
  657. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/type-and-timing.md +83 -0
  658. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package-lock.json +59 -0
  659. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package.json +1 -0
  660. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/requirements-audio.txt +1082 -0
  661. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/word-timing-models.json +11 -0
  662. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/beat-grid.py +50 -0
  663. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +807 -0
  664. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/runtime.mjs +43 -0
  665. package/marketplace/plugins/litcodex/skills/litresearch/SKILL.md +28 -41
  666. package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +8 -0
  667. package/marketplace/plugins/litcodex/skills/litwork/references/delivery-playbook.md +6 -0
  668. package/node_modules/@litcodex/lit-loop/directive.md +90 -5
  669. package/node_modules/@litcodex/lit-loop/directives/lit-comprehend.md +13 -17
  670. package/node_modules/@litcodex/lit-loop/directives/litwork.md +8 -0
  671. package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +8 -1
  672. package/node_modules/@litcodex/lit-loop/dist/hook-cli.d.ts +8 -1
  673. package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +36 -4
  674. package/node_modules/@litcodex/lit-loop/dist/jev-hint.d.ts +112 -0
  675. package/node_modules/@litcodex/lit-loop/dist/jev-hint.js +522 -0
  676. package/node_modules/@litcodex/lit-loop/dist/motion-route.d.ts +18 -0
  677. package/node_modules/@litcodex/lit-loop/dist/motion-route.js +95 -0
  678. package/node_modules/@litcodex/lit-loop/dist/skill-renames.d.ts +3 -1
  679. package/node_modules/@litcodex/lit-loop/dist/skill-renames.js +10 -5
  680. package/node_modules/@litcodex/lit-loop/package.json +1 -1
  681. package/node_modules/@litcodex/lit-loop/skills/browser-drive/SKILL.md +4 -0
  682. package/node_modules/@litcodex/lit-loop/skills/browser-drive/scripts/capability-probe.mjs +25 -2
  683. package/node_modules/@litcodex/lit-loop/skills/lit-comprehend/SKILL.md +45 -53
  684. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/NOTICE +160 -0
  685. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/SKILL.md +146 -0
  686. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/always-on-rule.md +9 -0
  687. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/always-on-rule.md +9 -0
  688. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/report-skeleton.md +25 -0
  689. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
  690. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/bench/prompts.md +73 -0
  691. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
  692. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/accessibility-note/before.md +7 -0
  693. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/after.md +9 -0
  694. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/api-reference/before.md +15 -0
  695. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/after.md +5 -0
  696. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/changelog/before.md +12 -0
  697. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/after.md +10 -0
  698. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/code-comments/before.md +19 -0
  699. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/after.md +5 -0
  700. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/commit/before.md +7 -0
  701. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/after.md +7 -0
  702. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/data-release/before.md +9 -0
  703. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/after.md +5 -0
  704. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/english-essay/before.md +5 -0
  705. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/after.md +7 -0
  706. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/incident-update/before.md +7 -0
  707. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/after.md +7 -0
  708. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-essay/before.md +9 -0
  709. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/after.md +9 -0
  710. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-report/before.md +13 -0
  711. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/after.md +19 -0
  712. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/ko-slide/before.md +21 -0
  713. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
  714. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
  715. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/after.md +9 -0
  716. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/policy-faq/before.md +9 -0
  717. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/after.md +15 -0
  718. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/pr/before.md +17 -0
  719. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/after.md +7 -0
  720. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/project-update/before.md +9 -0
  721. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/after.md +12 -0
  722. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/readme/before.md +14 -0
  723. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/after.md +13 -0
  724. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/report/before.md +11 -0
  725. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/after.md +5 -0
  726. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/research-abstract/before.md +5 -0
  727. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/after.md +19 -0
  728. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/slides/before.md +19 -0
  729. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/after.md +11 -0
  730. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/examples/troubleshooting/before.md +11 -0
  731. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/motion-guide.md +123 -0
  732. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/code-patterns.md +468 -0
  733. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/deliverable-channels.md +111 -0
  734. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-checklist.md +43 -0
  735. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-content.md +243 -0
  736. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns-structure.md +375 -0
  737. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/en-patterns.md +57 -0
  738. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-metrics.md +33 -0
  739. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-a-d.md +659 -0
  740. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns-e-j.md +387 -0
  741. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/ko-patterns.md +31 -0
  742. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/prompt-injection-handling.md +7 -0
  743. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/rewrite-playbook.md +54 -0
  744. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/references/taxonomy.md +153 -0
  745. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/rules.json +884 -0
  746. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/core.mjs +208 -0
  747. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/detect.mjs +83 -0
  748. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/extract_office_text.py +89 -0
  749. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/ko-metrics.mjs +124 -0
  750. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-fixtures.mjs +155 -0
  751. package/node_modules/@litcodex/lit-loop/skills/lit-humanizer/scripts/test-ko-metrics.mjs +27 -0
  752. package/node_modules/@litcodex/lit-loop/skills/lit-init/references/deep-repository-map.md +6 -10
  753. package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +95 -12
  754. package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +2 -0
  755. package/node_modules/@litcodex/lit-loop/skills/litresearch/SKILL.md +28 -41
  756. package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +8 -0
  757. package/package.json +2 -2
  758. package/readme-assets/ab-simple/assets/s11-baseline-desktop.webp +0 -0
  759. package/readme-assets/ab-simple/assets/s11-baseline-phone.webp +0 -0
  760. package/readme-assets/ab-simple/assets/s11-lit-desktop.webp +0 -0
  761. package/readme-assets/ab-simple/assets/s11-lit-phone.webp +0 -0
  762. package/readme-assets/ab-simple/assets/s3-baseline-desktop.webp +0 -0
  763. package/readme-assets/ab-simple/assets/s3-baseline-phone.webp +0 -0
  764. package/readme-assets/ab-simple/assets/s3-lit-desktop.webp +0 -0
  765. package/readme-assets/ab-simple/assets/s3-lit-phone.webp +0 -0
  766. package/readme-assets/ab-simple/assets/s4-baseline-desktop.webp +0 -0
  767. package/readme-assets/ab-simple/assets/s4-baseline-phone.webp +0 -0
  768. package/readme-assets/ab-simple/assets/s4-lit-desktop.webp +0 -0
  769. package/readme-assets/ab-simple/assets/s4-lit-phone.webp +0 -0
  770. package/readme-assets/ab-simple/assets/s5-baseline-slides.webp +0 -0
  771. package/readme-assets/ab-simple/assets/s5-lit-slides.webp +0 -0
  772. package/readme-assets/ab-simple/assets/s7-lit-diagram.webp +0 -0
  773. package/readme-assets/ab-simple/assets/s8-baseline-slides.webp +0 -0
  774. package/readme-assets/ab-simple/assets/s8-lit-slides.webp +0 -0
  775. package/readme-assets/ab-simple/assets/s9-lit-pages.webp +0 -0
  776. package/readme-assets/badge-version.svg +1 -1
  777. package/readme-assets/cover-motion-still.webp +0 -0
  778. package/readme-assets/cover-motion.webp +0 -0
  779. package/readme-assets/skills/autoconference.webp +0 -0
  780. package/readme-assets/skills/automatic-checks.webp +0 -0
  781. package/readme-assets/skills/autoresearch.webp +0 -0
  782. package/readme-assets/skills/browser-drive.webp +0 -0
  783. package/readme-assets/skills/coding-session-audit.webp +0 -0
  784. package/readme-assets/skills/debugging.webp +0 -0
  785. package/readme-assets/skills/deep-interview.webp +0 -0
  786. package/readme-assets/skills/frontend-ui-ux.webp +0 -0
  787. package/readme-assets/skills/lit-burnoff-file.webp +0 -0
  788. package/readme-assets/skills/lit-burnoff.webp +0 -0
  789. package/readme-assets/skills/lit-code.webp +0 -0
  790. package/readme-assets/skills/lit-commit.webp +0 -0
  791. package/readme-assets/skills/lit-comprehend.webp +0 -0
  792. package/readme-assets/skills/lit-crucible.webp +0 -0
  793. package/readme-assets/skills/lit-diagram-drawer.webp +0 -0
  794. package/readme-assets/skills/lit-docx.webp +0 -0
  795. package/readme-assets/skills/lit-fetch.webp +0 -0
  796. package/readme-assets/skills/lit-handoff.webp +0 -0
  797. package/readme-assets/skills/lit-humanizer.webp +0 -0
  798. package/readme-assets/skills/lit-init.webp +0 -0
  799. package/readme-assets/skills/lit-loop.webp +0 -0
  800. package/readme-assets/skills/lit-plan.webp +0 -0
  801. package/readme-assets/skills/lit-pptx.webp +0 -0
  802. package/readme-assets/skills/lit-recap.webp +0 -0
  803. package/readme-assets/skills/lit-scientific-visualization.webp +0 -0
  804. package/readme-assets/skills/lit-team.webp +0 -0
  805. package/readme-assets/skills/lit-typographic-motion.webp +0 -0
  806. package/readme-assets/skills/litcodex-contribute-bug-fix.webp +0 -0
  807. package/readme-assets/skills/litcodex-doctor.webp +0 -0
  808. package/readme-assets/skills/litcodex-report-bug.webp +0 -0
  809. package/readme-assets/skills/litgoal.webp +0 -0
  810. package/readme-assets/skills/litresearch.webp +0 -0
  811. package/readme-assets/skills/litwork.webp +0 -0
  812. package/readme-assets/skills/lsp-setup.webp +0 -0
  813. package/readme-assets/skills/readme-studio.webp +0 -0
  814. package/readme-assets/skills/refactor.webp +0 -0
  815. package/readme-assets/skills/review-work.webp +0 -0
  816. package/readme-assets/skills/start-approved-plan.webp +0 -0
  817. package/readme-assets/skills/structural-search.webp +0 -0
  818. package/readme-assets/skills/visual-qa.webp +0 -0
  819. package/readme-assets/skills/wikify.webp +0 -0
  820. package/marketplace/plugins/litcodex/skills/lit-korean/SKILL.md +0 -206
  821. package/marketplace/plugins/litcodex/skills/lit-korean/references/prompt-injection-handling.md +0 -23
  822. package/marketplace/plugins/litcodex/skills/lit-korean/references/quick-rules.md +0 -38
  823. package/marketplace/plugins/litcodex/skills/lit-korean/references/safety-checklist.md +0 -38
  824. package/node_modules/@litcodex/lit-loop/skills/lit-korean/SKILL.md +0 -206
  825. package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/prompt-injection-handling.md +0 -23
  826. package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/quick-rules.md +0 -38
  827. package/node_modules/@litcodex/lit-loop/skills/lit-korean/references/safety-checklist.md +0 -38
@@ -1,434 +1,466 @@
1
- import { readFileSync } from "node:fs";
2
- import { extname, resolve } from "node:path";
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
- import { formatAdditionalContextOutput } from "./hook-output.js";
5
- import { readCurrentTurnHookContext } from "./transcript-search.js";
6
- export const artifactGenres = [
7
- "client_deliverable",
8
- "internal_analysis",
9
- "audit_report",
10
- "working_note",
11
- "no_artifact",
12
- ];
13
- const defaultSkillRoot = fileURLToPath(new URL("../../../skills", import.meta.url));
14
- const proseExtensions = new Set([".adoc", ".html", ".md", ".mdx", ".rst", ".tex", ".txt"]);
15
- const writerTools = new Set([
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
- export const deliverableRuntimeLimits = Object.freeze({
25
- maxPathCandidates: 64,
26
- maxAggregateContentBytes: 4 * 1024 * 1024,
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
- function isAuthorEvidenceGap(line) {
101
- if (englishEvidenceGap.test(line))
102
- return true;
103
- if (englishCannotConclude.test(line) && (evidenceNouns.test(line) || evaluationNouns.test(line)))
104
- return true;
105
- if (evidenceNouns.test(line) && (missingEvidenceForm.test(line) || cannotConcludeForm.test(line)))
106
- return true;
107
- return evaluationNouns.test(line) && cannotConcludeForm.test(line) && missingEvidenceForm.test(line);
108
- }
109
- function insideQuotedText(line, at) {
110
- for (const quote of ['"', "'"]) {
111
- let open = line.indexOf(quote);
112
- while (open >= 0) {
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
- return false;
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
- function isStatusEncoding(line) {
124
- if (/^\s*["']?[A-Za-z_][\w.-]*["']?\s*:\s*["']?(?:pending|deferred|보류\s*중)["']?\s*[,}]?\s*$/iu.test(line)) {
125
- return true;
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
- function allowedLimitationLines(lines, genre) {
133
- const allowed = lines.map(() => false);
134
- if (genre === "working_note" || genre === "no_artifact")
135
- return lines.map(() => true);
136
- if (genre === "client_deliverable")
137
- return allowed;
138
- if (genre === "audit_report") {
139
- const methodology = lines.findIndex((line) => /^#{1,6}\s+.*(?:방법론|methodology)/iu.test(line));
140
- if (methodology < 0)
141
- return allowed;
142
- let paragraphStarted = false;
143
- for (let index = methodology + 1; index < lines.length; index += 1) {
144
- const line = lines[index];
145
- if (line === undefined || headingDepth(line) > 0)
146
- break;
147
- if (line.trim() === "") {
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
- const limitations = lines.findIndex((line) => /^#{1,6}\s+.*(?:한계|limitations?)/iu.test(line));
158
- if (limitations < 0)
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
- export function inspectDeliverableHedges(text, genre, maxFindings = Number.MAX_SAFE_INTEGER) {
176
- if (!Number.isSafeInteger(maxFindings) || maxFindings < 1)
177
- return [];
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
- export function extractBoundedPendingArtifactWrites(input) {
209
- // Artifact paths are identifiers only. Runtime inspection is restricted to content carried by
210
- // the trusted PostToolUse event because named-path opens cannot prove ancestor identity under ABA.
211
- if (!writerTools.has(input.tool_name.toLowerCase()))
212
- return { ok: false, reason: "unsupported" };
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
- if (patch === undefined)
224
- return { ok: false, reason: "unsupported" };
225
- collector.addPatch(patch);
132
+ return patch === undefined ? null : patchAdditions(patch);
226
133
  }
227
- else if (toolName === "write" || toolName === "mcp__filesystem__write_file") {
228
- collector.addDirect(input.tool_input, undefined, ["content"]);
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
- else {
231
- collector.addDirect(input.tool_input, undefined, ["new_string", "newString", "new_text", "newText"]);
232
- for (const key of ["edits", "files", "changes"]) {
233
- const records = input.tool_input[key];
234
- if (!Array.isArray(records))
235
- continue;
236
- for (const item of records) {
237
- if (isRecord(item)) {
238
- collector.addDirect(item, firstString(input.tool_input, pathKeys), [
239
- "new_string",
240
- "newString",
241
- "new_text",
242
- "newText",
243
- "after",
244
- "content",
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
- if (collector.failed !== undefined)
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
- export function runDeliverableHedgePostToolUse(input, options = {}) {
256
- if (!writerTools.has(input.tool_name.toLowerCase()))
257
- return "";
258
- const extracted = extractBoundedPendingArtifactWrites(input);
259
- if (!extracted.ok)
260
- return "";
261
- const skillId = activeSkillFromTranscript(input.transcript_path, input.turn_id);
262
- if (skillId === undefined)
263
- return "";
264
- let contract;
265
- try {
266
- contract = readOutputChannelContract(skillId);
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
- catch {
269
- return "";
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
- const inspect = options.inspect ?? inspectDeliverableHedges;
272
- const findings = [];
273
- let findingsTruncated = false;
274
- for (const write of extracted.writes) {
275
- const remaining = deliverableRuntimeLimits.maxFindings - findings.length;
276
- const next = inspect(write.content, contract.artifactGenre, remaining + 1);
277
- if (next.length > remaining) {
278
- findings.push(...next.slice(0, remaining));
279
- findingsTruncated = true;
280
- break;
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
- findings.push(...next);
294
+ else if (line.startsWith("+") && !line.startsWith("+++"))
295
+ additions.push(line.slice(1));
283
296
  }
284
- if (findings.length === 0)
285
- return "";
286
- const findingCount = findingsTruncated ? `>=${deliverableRuntimeLimits.maxFindings}` : String(findings.length);
287
- const output = formatAdditionalContextOutput("PostToolUse", `DELIVERABLE_HEDGE_VIOLATION skill=${skillId} genre=${contract.artifactGenre} findings=${findingCount} files=${extracted.writes.length}. Revise the pending write content and place limitations in ${contract.limitationsChannel}.`);
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
- const pathKeys = ["path", "filePath", "file_path", "target", "targetPath", "target_path"];
291
- const pathArrayKeys = ["paths", "filePaths", "file_paths"];
292
- class PendingWriteCollector {
293
- #cwd;
294
- #contentByPath = new Map();
295
- #declaredPaths = new Set();
296
- #pathCandidates = 0;
297
- #aggregateBytes = 0;
298
- constructor(cwd) {
299
- this.#cwd = cwd;
300
- }
301
- preflightDeclaredPaths(input) {
302
- this.registerRecordPaths(input);
303
- for (const key of pathArrayKeys) {
304
- const paths = input[key];
305
- if (!Array.isArray(paths))
306
- continue;
307
- if (paths.length > deliverableRuntimeLimits.maxPathCandidates) {
308
- this.failed = "path-limit";
309
- return;
310
- }
311
- for (const path of paths)
312
- this.registerPath(path);
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
- addDirect(record, fallbackPath, contentKeys) {
331
- const path = firstString(record, pathKeys) ?? fallbackPath;
332
- const content = firstString(record, contentKeys);
333
- if (path === undefined || content === undefined)
334
- return;
335
- this.addContent(path, content);
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
- let currentPath;
343
- let additions = [];
344
- const flush = () => {
345
- if (currentPath !== undefined && additions.length > 0)
346
- this.addContent(currentPath, additions.join("\n"));
347
- additions = [];
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
- registerRecordPaths(record) {
374
- for (const key of pathKeys)
375
- this.registerPath(record[key]);
344
+ while (j < newLines.length) {
345
+ const added = newLines[j];
346
+ if (added !== undefined)
347
+ additions.push(added);
348
+ j += 1;
376
349
  }
377
- registerPath(value) {
378
- if (this.failed !== undefined || typeof value !== "string" || value.length === 0)
379
- return;
380
- this.#pathCandidates += 1;
381
- if (this.#pathCandidates > deliverableRuntimeLimits.maxPathCandidates ||
382
- value.length > 4096 ||
383
- value.includes("\0")) {
384
- this.failed = "path-limit";
385
- return;
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
- this.#declaredPaths.add(resolve(this.#cwd, value));
388
- }
389
- addContent(path, content) {
390
- if (this.failed !== undefined)
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 patchPathHeader(line) {
411
- for (const prefix of ["*** Add File: ", "*** Update File: ", "*** Move to: "]) {
412
- if (line.startsWith(prefix)) {
413
- const path = line.slice(prefix.length).trim();
414
- return path.length === 0 ? undefined : path;
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 undefined;
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
- const value = record[key];
422
- if (typeof value === "string")
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
- }