@oriro/orirocli 0.1.7 → 0.1.9

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 (351) hide show
  1. package/ATTRIBUTION.md +8 -0
  2. package/LICENSE +21 -0
  3. package/dist/cli.js +35 -5
  4. package/package.json +1 -1
  5. package/skills/21stdev/SKILL.md +64 -0
  6. package/skills/graphify/SKILL.md +619 -0
  7. package/skills/graphify/__init__.py +28 -0
  8. package/skills/graphify/__main__.py +4582 -0
  9. package/skills/graphify/affected.py +154 -0
  10. package/skills/graphify/always_on/agents-md.md +12 -0
  11. package/skills/graphify/always_on/antigravity-rules.md +14 -0
  12. package/skills/graphify/always_on/claude-md.md +9 -0
  13. package/skills/graphify/always_on/gemini-md.md +9 -0
  14. package/skills/graphify/always_on/kiro-steering.md +5 -0
  15. package/skills/graphify/always_on/vscode-instructions.md +17 -0
  16. package/skills/graphify/analyze.py +724 -0
  17. package/skills/graphify/benchmark.py +155 -0
  18. package/skills/graphify/build.py +487 -0
  19. package/skills/graphify/cache.py +417 -0
  20. package/skills/graphify/callflow_html.py +2020 -0
  21. package/skills/graphify/cluster.py +272 -0
  22. package/skills/graphify/command-kilo.md +15 -0
  23. package/skills/graphify/dedup.py +429 -0
  24. package/skills/graphify/detect.py +1379 -0
  25. package/skills/graphify/diagnostics.py +390 -0
  26. package/skills/graphify/export.py +1408 -0
  27. package/skills/graphify/extract.py +11570 -0
  28. package/skills/graphify/global_graph.py +159 -0
  29. package/skills/graphify/google_workspace.py +223 -0
  30. package/skills/graphify/hooks.py +457 -0
  31. package/skills/graphify/ingest.py +331 -0
  32. package/skills/graphify/llm.py +1896 -0
  33. package/skills/graphify/manifest.py +4 -0
  34. package/skills/graphify/mcp_ingest.py +392 -0
  35. package/skills/graphify/multigraph_compat.py +212 -0
  36. package/skills/graphify/pg_introspect.py +142 -0
  37. package/skills/graphify/prs.py +748 -0
  38. package/skills/graphify/querylog.py +70 -0
  39. package/skills/graphify/report.py +218 -0
  40. package/skills/graphify/scip_ingest.py +363 -0
  41. package/skills/graphify/security.py +336 -0
  42. package/skills/graphify/semantic_cleanup.py +319 -0
  43. package/skills/graphify/serve.py +1309 -0
  44. package/skills/graphify/skill-aider.md +1246 -0
  45. package/skills/graphify/skill-amp.md +613 -0
  46. package/skills/graphify/skill-claw.md +616 -0
  47. package/skills/graphify/skill-codex.md +613 -0
  48. package/skills/graphify/skill-copilot.md +616 -0
  49. package/skills/graphify/skill-devin.md +1372 -0
  50. package/skills/graphify/skill-droid.md +613 -0
  51. package/skills/graphify/skill-kilo.md +625 -0
  52. package/skills/graphify/skill-kiro.md +615 -0
  53. package/skills/graphify/skill-opencode.md +608 -0
  54. package/skills/graphify/skill-pi.md +615 -0
  55. package/skills/graphify/skill-trae.md +614 -0
  56. package/skills/graphify/skill-vscode.md +612 -0
  57. package/skills/graphify/skill-windows.md +651 -0
  58. package/skills/graphify/skills/amp/references/add-watch.md +56 -0
  59. package/skills/graphify/skills/amp/references/exports.md +71 -0
  60. package/skills/graphify/skills/amp/references/extraction-spec.md +68 -0
  61. package/skills/graphify/skills/amp/references/github-and-merge.md +46 -0
  62. package/skills/graphify/skills/amp/references/hooks.md +33 -0
  63. package/skills/graphify/skills/amp/references/query.md +249 -0
  64. package/skills/graphify/skills/amp/references/transcribe.md +48 -0
  65. package/skills/graphify/skills/amp/references/update.md +179 -0
  66. package/skills/graphify/skills/claude/references/add-watch.md +56 -0
  67. package/skills/graphify/skills/claude/references/exports.md +71 -0
  68. package/skills/graphify/skills/claude/references/extraction-spec.md +68 -0
  69. package/skills/graphify/skills/claude/references/github-and-merge.md +46 -0
  70. package/skills/graphify/skills/claude/references/hooks.md +33 -0
  71. package/skills/graphify/skills/claude/references/query.md +103 -0
  72. package/skills/graphify/skills/claude/references/transcribe.md +48 -0
  73. package/skills/graphify/skills/claude/references/update.md +179 -0
  74. package/skills/graphify/skills/claw/references/add-watch.md +56 -0
  75. package/skills/graphify/skills/claw/references/exports.md +71 -0
  76. package/skills/graphify/skills/claw/references/extraction-spec.md +29 -0
  77. package/skills/graphify/skills/claw/references/github-and-merge.md +46 -0
  78. package/skills/graphify/skills/claw/references/hooks.md +33 -0
  79. package/skills/graphify/skills/claw/references/query.md +249 -0
  80. package/skills/graphify/skills/claw/references/transcribe.md +48 -0
  81. package/skills/graphify/skills/claw/references/update.md +179 -0
  82. package/skills/graphify/skills/codex/references/add-watch.md +56 -0
  83. package/skills/graphify/skills/codex/references/exports.md +71 -0
  84. package/skills/graphify/skills/codex/references/extraction-spec.md +29 -0
  85. package/skills/graphify/skills/codex/references/github-and-merge.md +46 -0
  86. package/skills/graphify/skills/codex/references/hooks.md +33 -0
  87. package/skills/graphify/skills/codex/references/query.md +249 -0
  88. package/skills/graphify/skills/codex/references/transcribe.md +48 -0
  89. package/skills/graphify/skills/codex/references/update.md +179 -0
  90. package/skills/graphify/skills/copilot/references/add-watch.md +56 -0
  91. package/skills/graphify/skills/copilot/references/exports.md +71 -0
  92. package/skills/graphify/skills/copilot/references/extraction-spec.md +68 -0
  93. package/skills/graphify/skills/copilot/references/github-and-merge.md +46 -0
  94. package/skills/graphify/skills/copilot/references/hooks.md +33 -0
  95. package/skills/graphify/skills/copilot/references/query.md +249 -0
  96. package/skills/graphify/skills/copilot/references/transcribe.md +48 -0
  97. package/skills/graphify/skills/copilot/references/update.md +179 -0
  98. package/skills/graphify/skills/droid/references/add-watch.md +56 -0
  99. package/skills/graphify/skills/droid/references/exports.md +71 -0
  100. package/skills/graphify/skills/droid/references/extraction-spec.md +68 -0
  101. package/skills/graphify/skills/droid/references/github-and-merge.md +46 -0
  102. package/skills/graphify/skills/droid/references/hooks.md +33 -0
  103. package/skills/graphify/skills/droid/references/query.md +249 -0
  104. package/skills/graphify/skills/droid/references/transcribe.md +48 -0
  105. package/skills/graphify/skills/droid/references/update.md +179 -0
  106. package/skills/graphify/skills/kilo/references/add-watch.md +56 -0
  107. package/skills/graphify/skills/kilo/references/exports.md +71 -0
  108. package/skills/graphify/skills/kilo/references/extraction-spec.md +68 -0
  109. package/skills/graphify/skills/kilo/references/github-and-merge.md +46 -0
  110. package/skills/graphify/skills/kilo/references/hooks.md +33 -0
  111. package/skills/graphify/skills/kilo/references/query.md +249 -0
  112. package/skills/graphify/skills/kilo/references/transcribe.md +48 -0
  113. package/skills/graphify/skills/kilo/references/update.md +179 -0
  114. package/skills/graphify/skills/kiro/references/add-watch.md +56 -0
  115. package/skills/graphify/skills/kiro/references/exports.md +71 -0
  116. package/skills/graphify/skills/kiro/references/extraction-spec.md +29 -0
  117. package/skills/graphify/skills/kiro/references/github-and-merge.md +46 -0
  118. package/skills/graphify/skills/kiro/references/hooks.md +33 -0
  119. package/skills/graphify/skills/kiro/references/query.md +249 -0
  120. package/skills/graphify/skills/kiro/references/transcribe.md +48 -0
  121. package/skills/graphify/skills/kiro/references/update.md +179 -0
  122. package/skills/graphify/skills/opencode/references/add-watch.md +56 -0
  123. package/skills/graphify/skills/opencode/references/exports.md +71 -0
  124. package/skills/graphify/skills/opencode/references/extraction-spec.md +68 -0
  125. package/skills/graphify/skills/opencode/references/github-and-merge.md +46 -0
  126. package/skills/graphify/skills/opencode/references/hooks.md +33 -0
  127. package/skills/graphify/skills/opencode/references/query.md +249 -0
  128. package/skills/graphify/skills/opencode/references/transcribe.md +48 -0
  129. package/skills/graphify/skills/opencode/references/update.md +179 -0
  130. package/skills/graphify/skills/pi/references/add-watch.md +56 -0
  131. package/skills/graphify/skills/pi/references/exports.md +71 -0
  132. package/skills/graphify/skills/pi/references/extraction-spec.md +29 -0
  133. package/skills/graphify/skills/pi/references/github-and-merge.md +46 -0
  134. package/skills/graphify/skills/pi/references/hooks.md +33 -0
  135. package/skills/graphify/skills/pi/references/query.md +249 -0
  136. package/skills/graphify/skills/pi/references/transcribe.md +48 -0
  137. package/skills/graphify/skills/pi/references/update.md +179 -0
  138. package/skills/graphify/skills/trae/references/add-watch.md +56 -0
  139. package/skills/graphify/skills/trae/references/exports.md +71 -0
  140. package/skills/graphify/skills/trae/references/extraction-spec.md +68 -0
  141. package/skills/graphify/skills/trae/references/github-and-merge.md +46 -0
  142. package/skills/graphify/skills/trae/references/hooks.md +35 -0
  143. package/skills/graphify/skills/trae/references/query.md +249 -0
  144. package/skills/graphify/skills/trae/references/transcribe.md +48 -0
  145. package/skills/graphify/skills/trae/references/update.md +179 -0
  146. package/skills/graphify/skills/vscode/references/add-watch.md +56 -0
  147. package/skills/graphify/skills/vscode/references/exports.md +71 -0
  148. package/skills/graphify/skills/vscode/references/extraction-spec.md +68 -0
  149. package/skills/graphify/skills/vscode/references/github-and-merge.md +46 -0
  150. package/skills/graphify/skills/vscode/references/hooks.md +33 -0
  151. package/skills/graphify/skills/vscode/references/query.md +249 -0
  152. package/skills/graphify/skills/vscode/references/transcribe.md +48 -0
  153. package/skills/graphify/skills/vscode/references/update.md +179 -0
  154. package/skills/graphify/skills/windows/references/add-watch.md +56 -0
  155. package/skills/graphify/skills/windows/references/exports.md +71 -0
  156. package/skills/graphify/skills/windows/references/extraction-spec.md +68 -0
  157. package/skills/graphify/skills/windows/references/github-and-merge.md +46 -0
  158. package/skills/graphify/skills/windows/references/hooks.md +33 -0
  159. package/skills/graphify/skills/windows/references/query.md +249 -0
  160. package/skills/graphify/skills/windows/references/transcribe.md +48 -0
  161. package/skills/graphify/skills/windows/references/update.md +179 -0
  162. package/skills/graphify/symbol_resolution.py +538 -0
  163. package/skills/graphify/transcribe.py +184 -0
  164. package/skills/graphify/tree_html.py +582 -0
  165. package/skills/graphify/validate.py +72 -0
  166. package/skills/graphify/watch.py +898 -0
  167. package/skills/graphify/wiki.py +282 -0
  168. package/skills/impeccable/SKILL.md +186 -0
  169. package/skills/impeccable/agents/impeccable_asset_producer.toml +92 -0
  170. package/skills/impeccable/agents/impeccable_manual_edit_applier.toml +95 -0
  171. package/skills/impeccable/agents/openai.yaml +4 -0
  172. package/skills/impeccable/reference/adapt.md +311 -0
  173. package/skills/impeccable/reference/animate.md +201 -0
  174. package/skills/impeccable/reference/audit.md +133 -0
  175. package/skills/impeccable/reference/bolder.md +113 -0
  176. package/skills/impeccable/reference/brand.md +108 -0
  177. package/skills/impeccable/reference/clarify.md +288 -0
  178. package/skills/impeccable/reference/codex.md +105 -0
  179. package/skills/impeccable/reference/colorize.md +257 -0
  180. package/skills/impeccable/reference/craft.md +123 -0
  181. package/skills/impeccable/reference/critique.md +790 -0
  182. package/skills/impeccable/reference/delight.md +302 -0
  183. package/skills/impeccable/reference/distill.md +111 -0
  184. package/skills/impeccable/reference/document.md +429 -0
  185. package/skills/impeccable/reference/extract.md +69 -0
  186. package/skills/impeccable/reference/harden.md +347 -0
  187. package/skills/impeccable/reference/init.md +172 -0
  188. package/skills/impeccable/reference/interaction-design.md +189 -0
  189. package/skills/impeccable/reference/layout.md +161 -0
  190. package/skills/impeccable/reference/live.md +720 -0
  191. package/skills/impeccable/reference/onboard.md +234 -0
  192. package/skills/impeccable/reference/optimize.md +258 -0
  193. package/skills/impeccable/reference/overdrive.md +130 -0
  194. package/skills/impeccable/reference/polish.md +241 -0
  195. package/skills/impeccable/reference/product.md +60 -0
  196. package/skills/impeccable/reference/quieter.md +99 -0
  197. package/skills/impeccable/reference/shape.md +165 -0
  198. package/skills/impeccable/reference/typeset.md +279 -0
  199. package/skills/impeccable/scripts/cleanup-deprecated.mjs +284 -0
  200. package/skills/impeccable/scripts/command-metadata.json +94 -0
  201. package/skills/impeccable/scripts/context-signals.mjs +225 -0
  202. package/skills/impeccable/scripts/context.mjs +266 -0
  203. package/skills/impeccable/scripts/critique-storage.mjs +242 -0
  204. package/skills/impeccable/scripts/design-parser.mjs +835 -0
  205. package/skills/impeccable/scripts/detect-csp.mjs +198 -0
  206. package/skills/impeccable/scripts/detect.mjs +21 -0
  207. package/skills/impeccable/scripts/detector/browser/injected/index.mjs +1733 -0
  208. package/skills/impeccable/scripts/detector/cli/main.mjs +244 -0
  209. package/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +4618 -0
  210. package/skills/impeccable/scripts/detector/detect-antipatterns.mjs +43 -0
  211. package/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +252 -0
  212. package/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +535 -0
  213. package/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +986 -0
  214. package/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +208 -0
  215. package/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +189 -0
  216. package/skills/impeccable/scripts/detector/findings.mjs +12 -0
  217. package/skills/impeccable/scripts/detector/node/file-system.mjs +198 -0
  218. package/skills/impeccable/scripts/detector/profile/profiler.mjs +166 -0
  219. package/skills/impeccable/scripts/detector/registry/antipatterns.mjs +419 -0
  220. package/skills/impeccable/scripts/detector/rules/checks.mjs +2384 -0
  221. package/skills/impeccable/scripts/detector/shared/color.mjs +124 -0
  222. package/skills/impeccable/scripts/detector/shared/constants.mjs +101 -0
  223. package/skills/impeccable/scripts/detector/shared/page.mjs +7 -0
  224. package/skills/impeccable/scripts/impeccable-paths.mjs +126 -0
  225. package/skills/impeccable/scripts/is-generated.mjs +69 -0
  226. package/skills/impeccable/scripts/live-accept.mjs +812 -0
  227. package/skills/impeccable/scripts/live-browser-session.js +123 -0
  228. package/skills/impeccable/scripts/live-browser.js +10295 -0
  229. package/skills/impeccable/scripts/live-commit-manual-edits.mjs +1241 -0
  230. package/skills/impeccable/scripts/live-complete.mjs +75 -0
  231. package/skills/impeccable/scripts/live-completion.mjs +19 -0
  232. package/skills/impeccable/scripts/live-copy-edit-agent.mjs +683 -0
  233. package/skills/impeccable/scripts/live-discard-manual-edits.mjs +51 -0
  234. package/skills/impeccable/scripts/live-event-validation.mjs +137 -0
  235. package/skills/impeccable/scripts/live-inject.mjs +557 -0
  236. package/skills/impeccable/scripts/live-insert-ui.mjs +458 -0
  237. package/skills/impeccable/scripts/live-insert.mjs +272 -0
  238. package/skills/impeccable/scripts/live-manual-edit-evidence.mjs +363 -0
  239. package/skills/impeccable/scripts/live-manual-edits-buffer.mjs +152 -0
  240. package/skills/impeccable/scripts/live-poll.mjs +379 -0
  241. package/skills/impeccable/scripts/live-resume.mjs +94 -0
  242. package/skills/impeccable/scripts/live-server.mjs +2326 -0
  243. package/skills/impeccable/scripts/live-session-store.mjs +289 -0
  244. package/skills/impeccable/scripts/live-status.mjs +61 -0
  245. package/skills/impeccable/scripts/live-svelte-component.mjs +826 -0
  246. package/skills/impeccable/scripts/live-sveltekit-adapter.mjs +274 -0
  247. package/skills/impeccable/scripts/live-ui-core.mjs +179 -0
  248. package/skills/impeccable/scripts/live-vocabulary.mjs +36 -0
  249. package/skills/impeccable/scripts/live-wrap.mjs +894 -0
  250. package/skills/impeccable/scripts/live.mjs +246 -0
  251. package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
  252. package/skills/impeccable/scripts/palette.mjs +633 -0
  253. package/skills/impeccable/scripts/pin.mjs +214 -0
  254. package/skills/uipm-ui-styling/LICENSE.txt +202 -0
  255. package/skills/uipm-ui-styling/SKILL.md +328 -0
  256. package/skills/uipm-ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  257. package/skills/uipm-ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  258. package/skills/uipm-ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  259. package/skills/uipm-ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
  260. package/skills/uipm-ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  261. package/skills/uipm-ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
  262. package/skills/uipm-ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
  263. package/skills/uipm-ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  264. package/skills/uipm-ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  265. package/skills/uipm-ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  266. package/skills/uipm-ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  267. package/skills/uipm-ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  268. package/skills/uipm-ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  269. package/skills/uipm-ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  270. package/skills/uipm-ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
  271. package/skills/uipm-ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
  272. package/skills/uipm-ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
  273. package/skills/uipm-ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
  274. package/skills/uipm-ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
  275. package/skills/uipm-ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
  276. package/skills/uipm-ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
  277. package/skills/uipm-ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
  278. package/skills/uipm-ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
  279. package/skills/uipm-ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  280. package/skills/uipm-ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  281. package/skills/uipm-ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  282. package/skills/uipm-ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  283. package/skills/uipm-ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  284. package/skills/uipm-ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  285. package/skills/uipm-ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  286. package/skills/uipm-ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  287. package/skills/uipm-ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  288. package/skills/uipm-ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  289. package/skills/uipm-ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  290. package/skills/uipm-ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  291. package/skills/uipm-ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  292. package/skills/uipm-ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  293. package/skills/uipm-ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
  294. package/skills/uipm-ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
  295. package/skills/uipm-ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  296. package/skills/uipm-ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  297. package/skills/uipm-ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  298. package/skills/uipm-ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
  299. package/skills/uipm-ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
  300. package/skills/uipm-ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
  301. package/skills/uipm-ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  302. package/skills/uipm-ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  303. package/skills/uipm-ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
  304. package/skills/uipm-ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  305. package/skills/uipm-ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
  306. package/skills/uipm-ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
  307. package/skills/uipm-ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
  308. package/skills/uipm-ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
  309. package/skills/uipm-ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
  310. package/skills/uipm-ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
  311. package/skills/uipm-ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  312. package/skills/uipm-ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  313. package/skills/uipm-ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
  314. package/skills/uipm-ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
  315. package/skills/uipm-ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
  316. package/skills/uipm-ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  317. package/skills/uipm-ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
  318. package/skills/uipm-ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
  319. package/skills/uipm-ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  320. package/skills/uipm-ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  321. package/skills/uipm-ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
  322. package/skills/uipm-ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  323. package/skills/uipm-ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
  324. package/skills/uipm-ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  325. package/skills/uipm-ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  326. package/skills/uipm-ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
  327. package/skills/uipm-ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
  328. package/skills/uipm-ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
  329. package/skills/uipm-ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
  330. package/skills/uipm-ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
  331. package/skills/uipm-ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  332. package/skills/uipm-ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
  333. package/skills/uipm-ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
  334. package/skills/uipm-ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
  335. package/skills/uipm-ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
  336. package/skills/uipm-ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  337. package/skills/uipm-ui-styling/references/canvas-design-system.md +320 -0
  338. package/skills/uipm-ui-styling/references/shadcn-accessibility.md +471 -0
  339. package/skills/uipm-ui-styling/references/shadcn-components.md +424 -0
  340. package/skills/uipm-ui-styling/references/shadcn-theming.md +373 -0
  341. package/skills/uipm-ui-styling/references/tailwind-customization.md +483 -0
  342. package/skills/uipm-ui-styling/references/tailwind-responsive.md +382 -0
  343. package/skills/uipm-ui-styling/references/tailwind-utilities.md +455 -0
  344. package/skills/uipm-ui-styling/scripts/.coverage +0 -0
  345. package/skills/uipm-ui-styling/scripts/requirements.txt +17 -0
  346. package/skills/uipm-ui-styling/scripts/shadcn_add.py +292 -0
  347. package/skills/uipm-ui-styling/scripts/tailwind_config_gen.py +456 -0
  348. package/skills/uipm-ui-styling/scripts/tests/coverage-ui.json +1 -0
  349. package/skills/uipm-ui-styling/scripts/tests/requirements.txt +3 -0
  350. package/skills/uipm-ui-styling/scripts/tests/test_shadcn_add.py +266 -0
  351. package/skills/uipm-ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
@@ -0,0 +1,289 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { getLegacyLiveSessionsDir, getLiveSessionsDir } from './impeccable-paths.mjs';
4
+
5
+ const COMPLETED_PHASES = new Set(['completed', 'discarded']);
6
+
7
+ export function createLiveSessionStore({ cwd = process.cwd(), sessionId } = {}) {
8
+ const rootDir = getLiveSessionsDir(cwd);
9
+ const legacyRootDir = getLegacyLiveSessionsDir(cwd);
10
+ fs.mkdirSync(rootDir, { recursive: true });
11
+ const snapshotCache = new Map();
12
+
13
+ function loadCachedOrRebuild(id) {
14
+ const cached = snapshotCache.get(id);
15
+ if (cached) return cached;
16
+ const journalPath = getReadableJournalPath(id);
17
+ const rebuilt = rebuildSnapshotFromJournal(journalPath, id);
18
+ snapshotCache.set(id, rebuilt);
19
+ return rebuilt;
20
+ }
21
+
22
+ function getReadableJournalPath(id) {
23
+ const primary = getJournalPath(rootDir, id);
24
+ if (fs.existsSync(primary)) return primary;
25
+ const legacy = getJournalPath(legacyRootDir, id);
26
+ if (fs.existsSync(legacy)) return legacy;
27
+ return primary;
28
+ }
29
+
30
+ return {
31
+ rootDir,
32
+ legacyRootDir,
33
+ appendEvent(event) {
34
+ const normalized = normalizeEvent(event, sessionId);
35
+ const journalPath = getJournalPath(rootDir, normalized.id);
36
+ const snapshotPath = getSnapshotPath(rootDir, normalized.id);
37
+ const legacyJournalPath = getJournalPath(legacyRootDir, normalized.id);
38
+ if (!fs.existsSync(journalPath) && fs.existsSync(legacyJournalPath)) {
39
+ fs.copyFileSync(legacyJournalPath, journalPath);
40
+ }
41
+ const prior = loadCachedOrRebuild(normalized.id);
42
+ const seq = prior.nextSeq;
43
+ const entry = {
44
+ seq,
45
+ id: normalized.id,
46
+ type: normalized.type,
47
+ ts: new Date().toISOString(),
48
+ event: normalized,
49
+ };
50
+ fs.appendFileSync(journalPath, JSON.stringify(entry) + '\n');
51
+ const next = applyEvent(prior.snapshot, entry, prior.diagnostics);
52
+ snapshotCache.set(normalized.id, { snapshot: next, diagnostics: next.diagnostics || [], nextSeq: seq + 1 });
53
+ writeSnapshot(snapshotPath, next);
54
+ return next;
55
+ },
56
+ getSnapshot(id = sessionId, opts = {}) {
57
+ if (!id) throw new Error('session id required');
58
+ const journalPath = getReadableJournalPath(id);
59
+ const snapshotPath = getSnapshotPath(rootDir, id);
60
+ const rebuilt = rebuildSnapshotFromJournal(journalPath, id);
61
+ snapshotCache.set(id, rebuilt);
62
+ writeSnapshot(snapshotPath, rebuilt.snapshot);
63
+ if (!opts.includeCompleted && COMPLETED_PHASES.has(rebuilt.snapshot.phase)) return null;
64
+ return rebuilt.snapshot;
65
+ },
66
+ listActiveSessions() {
67
+ const ids = new Set();
68
+ for (const dir of [legacyRootDir, rootDir]) {
69
+ if (!fs.existsSync(dir)) continue;
70
+ for (const name of fs.readdirSync(dir)) {
71
+ if (name.endsWith('.jsonl')) ids.add(name.slice(0, -'.jsonl'.length));
72
+ }
73
+ }
74
+ return [...ids]
75
+ .sort()
76
+ .map((id) => this.getSnapshot(id))
77
+ .filter(Boolean);
78
+ },
79
+ };
80
+ }
81
+
82
+ function normalizeEvent(event, fallbackId) {
83
+ if (!event || typeof event !== 'object') throw new Error('event object required');
84
+ const id = event.id || fallbackId;
85
+ if (!id || typeof id !== 'string') throw new Error('event id required');
86
+ if (!event.type || typeof event.type !== 'string') throw new Error('event type required');
87
+ return { ...event, id };
88
+ }
89
+
90
+ function getJournalPath(rootDir, id) {
91
+ return path.join(rootDir, safeSessionId(id) + '.jsonl');
92
+ }
93
+
94
+ function getSnapshotPath(rootDir, id) {
95
+ return path.join(rootDir, safeSessionId(id) + '.snapshot.json');
96
+ }
97
+
98
+ function safeSessionId(id) {
99
+ if (!/^[A-Za-z0-9_-]{1,128}$/.test(id)) throw new Error('invalid session id: ' + id);
100
+ return id;
101
+ }
102
+
103
+ function baseSnapshot(id) {
104
+ return {
105
+ id,
106
+ phase: 'new',
107
+ pageUrl: null,
108
+ sourceFile: null,
109
+ previewFile: null,
110
+ previewMode: null,
111
+ expectedVariants: 0,
112
+ arrivedVariants: 0,
113
+ visibleVariant: null,
114
+ paramValues: {},
115
+ pendingEventSeq: null,
116
+ pendingEvent: null,
117
+ deliveryLease: null,
118
+ checkpointRevision: 0,
119
+ activeOwner: null,
120
+ sourceMarkers: {},
121
+ fallbackMode: null,
122
+ annotationArtifacts: [],
123
+ diagnostics: [],
124
+ updatedAt: null,
125
+ };
126
+ }
127
+
128
+ function rebuildSnapshotFromJournal(journalPath, id) {
129
+ let snapshot = baseSnapshot(id);
130
+ const diagnostics = [];
131
+ let nextSeq = 1;
132
+ if (!fs.existsSync(journalPath)) return { snapshot, diagnostics, nextSeq };
133
+
134
+ const lines = fs.readFileSync(journalPath, 'utf-8').split('\n');
135
+ for (let i = 0; i < lines.length; i++) {
136
+ const line = lines[i];
137
+ if (!line.trim()) continue;
138
+ try {
139
+ const entry = JSON.parse(line);
140
+ if (!entry || typeof entry !== 'object') throw new Error('entry is not object');
141
+ if (Number.isInteger(entry.seq)) nextSeq = Math.max(nextSeq, entry.seq + 1);
142
+ snapshot = applyEvent(snapshot, entry);
143
+ } catch (err) {
144
+ diagnostics.push({
145
+ error: 'journal_parse_failed',
146
+ line: i + 1,
147
+ message: err.message,
148
+ });
149
+ }
150
+ }
151
+ snapshot.diagnostics = [...snapshot.diagnostics, ...diagnostics];
152
+ return { snapshot, diagnostics, nextSeq };
153
+ }
154
+
155
+ function applyEvent(snapshot, entry, inheritedDiagnostics = []) {
156
+ const event = entry.event || entry;
157
+ const next = {
158
+ ...snapshot,
159
+ paramValues: { ...(snapshot.paramValues || {}) },
160
+ sourceMarkers: { ...(snapshot.sourceMarkers || {}) },
161
+ annotationArtifacts: [...(snapshot.annotationArtifacts || [])],
162
+ diagnostics: [...(snapshot.diagnostics || [])],
163
+ updatedAt: entry.ts || new Date().toISOString(),
164
+ };
165
+
166
+ if (inheritedDiagnostics.length && next.diagnostics.length === 0) {
167
+ next.diagnostics = [...inheritedDiagnostics];
168
+ }
169
+
170
+ switch (event.type) {
171
+ case 'generate':
172
+ next.phase = 'generate_requested';
173
+ next.pageUrl = event.pageUrl ?? next.pageUrl;
174
+ next.expectedVariants = event.count ?? next.expectedVariants;
175
+ next.pendingEventSeq = entry.seq ?? next.pendingEventSeq;
176
+ next.pendingEvent = toPendingEvent(event);
177
+ if (event.screenshotPath) upsertArtifact(next.annotationArtifacts, { type: 'screenshot', path: event.screenshotPath });
178
+ break;
179
+ case 'variants_ready':
180
+ case 'agent_done':
181
+ next.phase = event.carbonize === true ? 'carbonize_required' : 'variants_ready';
182
+ next.sourceFile = event.sourceFile ?? event.file ?? next.sourceFile;
183
+ next.previewFile = event.previewFile ?? next.previewFile;
184
+ next.previewMode = event.previewMode ?? next.previewMode;
185
+ next.arrivedVariants = event.arrivedVariants ?? (next.expectedVariants || next.arrivedVariants || 0);
186
+ next.pendingEventSeq = null;
187
+ next.pendingEvent = null;
188
+ if (event.carbonize === true) {
189
+ next.diagnostics.push({
190
+ error: 'carbonize_cleanup_required',
191
+ file: event.file || null,
192
+ message: 'Accepted variant still has carbonize markers that must be folded into source CSS.',
193
+ });
194
+ }
195
+ break;
196
+ case 'checkpoint':
197
+ if (COMPLETED_PHASES.has(next.phase)) {
198
+ next.diagnostics.push({ error: 'checkpoint_after_terminal_ignored', phase: event.phase ?? null, revision: event.revision ?? null });
199
+ break;
200
+ }
201
+ if ((event.revision ?? 0) >= (next.checkpointRevision ?? 0)) {
202
+ next.phase = event.phase ?? next.phase;
203
+ next.checkpointRevision = event.revision ?? next.checkpointRevision;
204
+ next.activeOwner = event.owner ?? next.activeOwner;
205
+ next.arrivedVariants = event.arrivedVariants ?? next.arrivedVariants;
206
+ next.visibleVariant = event.visibleVariant ?? next.visibleVariant;
207
+ next.sourceFile = event.sourceFile ?? next.sourceFile;
208
+ next.previewFile = event.previewFile ?? next.previewFile;
209
+ next.previewMode = event.previewMode ?? next.previewMode;
210
+ if (event.paramValues) next.paramValues = { ...event.paramValues };
211
+ } else {
212
+ next.diagnostics.push({ error: 'stale_checkpoint_ignored', revision: event.revision });
213
+ }
214
+ break;
215
+ case 'accept':
216
+ case 'accept_intent':
217
+ next.phase = 'accept_requested';
218
+ next.visibleVariant = Number(event.variantId ?? next.visibleVariant);
219
+ if (event.paramValues) next.paramValues = { ...event.paramValues };
220
+ next.pendingEventSeq = entry.seq ?? next.pendingEventSeq;
221
+ next.pendingEvent = toPendingEvent(event);
222
+ break;
223
+ case 'manual_edit_apply':
224
+ next.phase = 'manual_edit_apply_requested';
225
+ next.pageUrl = event.pageUrl ?? next.pageUrl;
226
+ next.pendingEventSeq = entry.seq ?? next.pendingEventSeq;
227
+ next.pendingEvent = toPendingEvent(event);
228
+ break;
229
+ case 'steer':
230
+ next.phase = 'steer_requested';
231
+ next.pageUrl = event.pageUrl ?? next.pageUrl;
232
+ next.pendingEventSeq = entry.seq ?? next.pendingEventSeq;
233
+ next.pendingEvent = toPendingEvent(event);
234
+ break;
235
+ case 'steer_done':
236
+ next.phase = 'steer_done';
237
+ next.sourceFile = event.sourceFile ?? event.file ?? next.sourceFile;
238
+ next.previewFile = event.previewFile ?? next.previewFile;
239
+ next.previewMode = event.previewMode ?? next.previewMode;
240
+ next.message = event.message ?? next.message;
241
+ next.pendingEventSeq = null;
242
+ next.pendingEvent = null;
243
+ break;
244
+ case 'discard':
245
+ next.phase = 'discard_requested';
246
+ next.pendingEventSeq = entry.seq ?? next.pendingEventSeq;
247
+ next.pendingEvent = toPendingEvent(event);
248
+ break;
249
+ case 'discarded':
250
+ next.phase = 'discarded';
251
+ next.pendingEventSeq = null;
252
+ next.pendingEvent = null;
253
+ break;
254
+ case 'complete':
255
+ next.phase = 'completed';
256
+ next.sourceFile = event.sourceFile ?? event.file ?? next.sourceFile;
257
+ next.previewFile = event.previewFile ?? next.previewFile;
258
+ next.previewMode = event.previewMode ?? next.previewMode;
259
+ next.pendingEventSeq = null;
260
+ next.pendingEvent = null;
261
+ break;
262
+ case 'agent_error':
263
+ next.phase = 'agent_error';
264
+ next.pendingEventSeq = null;
265
+ next.pendingEvent = null;
266
+ next.diagnostics.push({ error: 'agent_error', message: event.message || 'unknown agent error' });
267
+ break;
268
+ default:
269
+ next.diagnostics.push({ error: 'unknown_event_type', type: event.type });
270
+ break;
271
+ }
272
+ return next;
273
+ }
274
+
275
+ function toPendingEvent(event) {
276
+ const pending = { ...event };
277
+ delete pending.token;
278
+ return pending;
279
+ }
280
+
281
+ function upsertArtifact(artifacts, artifact) {
282
+ if (!artifacts.some((existing) => existing.path === artifact.path && existing.type === artifact.type)) {
283
+ artifacts.push(artifact);
284
+ }
285
+ }
286
+
287
+ function writeSnapshot(snapshotPath, snapshot) {
288
+ fs.writeFileSync(snapshotPath, JSON.stringify(snapshot, null, 2) + '\n');
289
+ }
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Print durable recovery status for Impeccable live sessions.
4
+ */
5
+
6
+ import { createLiveSessionStore } from './live-session-store.mjs';
7
+ import { readLiveServerInfo } from './impeccable-paths.mjs';
8
+ import { manualApplyResumeHint } from './live-resume.mjs';
9
+
10
+ function readServerInfo() {
11
+ return readLiveServerInfo(process.cwd())?.info || null;
12
+ }
13
+
14
+ async function fetchServerStatus(info) {
15
+ if (!info) return null;
16
+ try {
17
+ const res = await fetch(`http://localhost:${info.port}/status?token=${info.token}`);
18
+ if (!res.ok) return null;
19
+ return await res.json();
20
+ } catch {
21
+ return null;
22
+ }
23
+ }
24
+
25
+ export async function statusCli() {
26
+ const info = readServerInfo();
27
+ const server = await fetchServerStatus(info);
28
+ const store = createLiveSessionStore({ cwd: process.cwd() });
29
+ const activeSessions = store.listActiveSessions();
30
+ const manualApply = findPendingManualApply(server, activeSessions);
31
+ const payload = {
32
+ liveServer: server ? {
33
+ status: server.status,
34
+ port: server.port,
35
+ connectedClients: server.connectedClients,
36
+ agentPolling: server.agentPolling,
37
+ pendingEvents: server.pendingEvents,
38
+ } : null,
39
+ activeSessions: server?.activeSessions || activeSessions,
40
+ recoveryHint: manualApply
41
+ ? manualApplyResumeHint(manualApply)
42
+ : server
43
+ ? 'Run live-poll.mjs to continue pending work, or live-complete.mjs --id <session> after manual cleanup.'
44
+ : 'Start live-server.mjs to requeue pending durable events, then run live-poll.mjs.',
45
+ };
46
+ console.log(JSON.stringify(payload, null, 2));
47
+ }
48
+
49
+ function findPendingManualApply(server, activeSessions) {
50
+ const fromServer = server?.pendingEvents?.find((event) => event?.type === 'manual_edit_apply');
51
+ if (fromServer) return fromServer;
52
+ const fromSession = activeSessions
53
+ ?.map((session) => session.pendingEvent)
54
+ .find((event) => event?.type === 'manual_edit_apply');
55
+ return fromSession || null;
56
+ }
57
+
58
+ const _running = process.argv[1];
59
+ if (_running?.endsWith('live-status.mjs') || _running?.endsWith('live-status.mjs/')) {
60
+ statusCli();
61
+ }