@hattoriai/poney 0.0.0-stage → 0.1.1

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 (359) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -2
  3. package/bin/poney-mcp.mjs +3 -0
  4. package/bin/poney.mjs +3 -0
  5. package/brief-change.md +23 -0
  6. package/brief-tour.md +43 -0
  7. package/brief.md +133 -0
  8. package/dist/chunk-BCOS4LFB.js +1184 -0
  9. package/dist/chunk-BCOS4LFB.js.map +1 -0
  10. package/dist/chunk-TPJZDQG6.js +290 -0
  11. package/dist/chunk-TPJZDQG6.js.map +1 -0
  12. package/dist/chunk-YLKV6LIU.js +621 -0
  13. package/dist/chunk-YLKV6LIU.js.map +1 -0
  14. package/dist/cli.d.ts +2 -0
  15. package/dist/cli.js +181 -0
  16. package/dist/cli.js.map +1 -0
  17. package/dist/hub-FERXNPJS.js +4 -0
  18. package/dist/hub-FERXNPJS.js.map +1 -0
  19. package/dist/live/types.d.ts +165 -0
  20. package/dist/live/types.js +3 -0
  21. package/dist/live/types.js.map +1 -0
  22. package/dist/mcp.d.ts +2 -0
  23. package/dist/mcp.js +288 -0
  24. package/dist/mcp.js.map +1 -0
  25. package/dist/ops.d.ts +1575 -0
  26. package/dist/ops.js +3 -0
  27. package/dist/ops.js.map +1 -0
  28. package/dist/plugins/index.d.ts +94 -0
  29. package/dist/plugins/index.js +3 -0
  30. package/dist/plugins/index.js.map +1 -0
  31. package/dist/run-25PP2HWH.js +3 -0
  32. package/dist/run-25PP2HWH.js.map +1 -0
  33. package/dist/types-N-oiuMYy.d.ts +77 -0
  34. package/examples/tour.poney +195 -0
  35. package/examples/walkthrough.poney +644 -0
  36. package/package.json +76 -4
  37. package/studio/assets/abap-BdImnpbu.js +1 -0
  38. package/studio/assets/actionscript-3-B3316cI-.js +1 -0
  39. package/studio/assets/ada-BIOnG6TC.js +1 -0
  40. package/studio/assets/ahk-BrbAagtO.js +1 -0
  41. package/studio/assets/ahk2-8Zs4aa1G.js +1 -0
  42. package/studio/assets/andromeeda-C4gqWexZ.js +1 -0
  43. package/studio/assets/angular-html-D_SYSyRt.js +1 -0
  44. package/studio/assets/angular-ts-DGq0tZX5.js +1 -0
  45. package/studio/assets/apache-Pmp26Uib.js +1 -0
  46. package/studio/assets/apex-DhZFqWV2.js +1 -0
  47. package/studio/assets/apl-ChzvTHjC.js +1 -0
  48. package/studio/assets/applescript-Co6uUVPk.js +1 -0
  49. package/studio/assets/ara-BRHolxvo.js +1 -0
  50. package/studio/assets/asciidoc-CSVQ5wI8.js +1 -0
  51. package/studio/assets/asm-D_Q5rh1f.js +1 -0
  52. package/studio/assets/astro-DTjqU0_L.js +1 -0
  53. package/studio/assets/aurora-x-D-2ljcwZ.js +1 -0
  54. package/studio/assets/awk-DMzUqQB5.js +1 -0
  55. package/studio/assets/ayu-dark-DYE7WIF3.js +1 -0
  56. package/studio/assets/ayu-light-BA47KaF1.js +1 -0
  57. package/studio/assets/ayu-mirage-32ctXXKs.js +1 -0
  58. package/studio/assets/ballerina-BFfxhgS-.js +1 -0
  59. package/studio/assets/bat-CickPsom.js +1 -0
  60. package/studio/assets/beancount-BgSHGh8x.js +1 -0
  61. package/studio/assets/berry-uYugtg8r.js +1 -0
  62. package/studio/assets/bibtex-CHM0blh-.js +1 -0
  63. package/studio/assets/bicep-Bmn6On1c.js +1 -0
  64. package/studio/assets/bird2-Bx8U0n9b.js +1 -0
  65. package/studio/assets/blade-k33SngOZ.js +1 -0
  66. package/studio/assets/bsl-DlhNcFeZ.js +1 -0
  67. package/studio/assets/c-BIGW1oBm.js +1 -0
  68. package/studio/assets/c3-Dp5svz6Z.js +1 -0
  69. package/studio/assets/cadence-Bv_4Rxtq.js +1 -0
  70. package/studio/assets/cairo-KRGpt6FW.js +1 -0
  71. package/studio/assets/catppuccin-frappe-CZL1YF0i.js +1 -0
  72. package/studio/assets/catppuccin-latte-DH-8KZSZ.js +1 -0
  73. package/studio/assets/catppuccin-macchiato-B7yYVSCf.js +1 -0
  74. package/studio/assets/catppuccin-mocha-Ct7hS0mc.js +1 -0
  75. package/studio/assets/chapel-DTp_pixX.js +1 -0
  76. package/studio/assets/clarity-Dn5IMItf.js +1 -0
  77. package/studio/assets/clojure-P80f7IUj.js +1 -0
  78. package/studio/assets/cmake-D1j8_8rp.js +1 -0
  79. package/studio/assets/cobol-BBKr1ja6.js +1 -0
  80. package/studio/assets/codeowners-Bp6g37R7.js +1 -0
  81. package/studio/assets/codeql-DsOJ9woJ.js +1 -0
  82. package/studio/assets/coffee-Ch7k5sss.js +1 -0
  83. package/studio/assets/common-lisp-Cg-RD9OK.js +1 -0
  84. package/studio/assets/coq-BqXF5kFF.js +1 -0
  85. package/studio/assets/cpp-BMRokrvK.js +1 -0
  86. package/studio/assets/crystal-LUwhHfY5.js +1 -0
  87. package/studio/assets/csharp-B_TYUkTI.js +1 -0
  88. package/studio/assets/css-Z72CF80r.js +1 -0
  89. package/studio/assets/csv-fuZLfV_i.js +1 -0
  90. package/studio/assets/cue-D82EKSYY.js +1 -0
  91. package/studio/assets/cypher-COkxafJQ.js +1 -0
  92. package/studio/assets/d-85-TOEBH.js +1 -0
  93. package/studio/assets/dark-plus-C3mMm8J8.js +1 -0
  94. package/studio/assets/dart-CtKP3W-j.js +1 -0
  95. package/studio/assets/dax-CEL-wOlO.js +1 -0
  96. package/studio/assets/desktop-BmXAJ9_W.js +1 -0
  97. package/studio/assets/diff-D97Zzqfu.js +1 -0
  98. package/studio/assets/dist-_ey1iXf6.js +153 -0
  99. package/studio/assets/docker-BcOcwvcX.js +1 -0
  100. package/studio/assets/dotenv-De0Btta0.js +1 -0
  101. package/studio/assets/dracula-BzJJZx-M.js +1 -0
  102. package/studio/assets/dracula-soft-BXkSAIEj.js +1 -0
  103. package/studio/assets/dream-maker-BtqSS_iP.js +1 -0
  104. package/studio/assets/edge-CJaD-t2L.js +1 -0
  105. package/studio/assets/elixir-DkJLSxtU.js +1 -0
  106. package/studio/assets/elk.bundled-Bw5WzyyE.js +26 -0
  107. package/studio/assets/elm-DbKCFpqz.js +1 -0
  108. package/studio/assets/emacs-lisp-DaIrSCgJ.js +1 -0
  109. package/studio/assets/erb-CSMaCouu.js +1 -0
  110. package/studio/assets/erlang-DsQrWhSR.js +1 -0
  111. package/studio/assets/everforest-dark-BgDCqdQA.js +1 -0
  112. package/studio/assets/everforest-light-C8M2exoo.js +1 -0
  113. package/studio/assets/fennel-BYunw83y.js +1 -0
  114. package/studio/assets/fish-BvzEVeQv.js +1 -0
  115. package/studio/assets/fluent-C4IJs8-o.js +1 -0
  116. package/studio/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  117. package/studio/assets/fortran-free-form-BxgE0vQu.js +1 -0
  118. package/studio/assets/fsharp-CXgrBDvD.js +1 -0
  119. package/studio/assets/gdresource-TyuKm33G.js +1 -0
  120. package/studio/assets/gdscript-DqcFQ5yU.js +1 -0
  121. package/studio/assets/gdshader-DkwncUOv.js +1 -0
  122. package/studio/assets/genie-D0YGMca9.js +1 -0
  123. package/studio/assets/gherkin-DyxjwDmM.js +1 -0
  124. package/studio/assets/git-commit-F4YmCXRG.js +1 -0
  125. package/studio/assets/git-rebase-r7XF79zn.js +1 -0
  126. package/studio/assets/github-dark-DHJKELXO.js +1 -0
  127. package/studio/assets/github-dark-default-Cuk6v7N8.js +1 -0
  128. package/studio/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  129. package/studio/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  130. package/studio/assets/github-light-DAi9KRSo.js +1 -0
  131. package/studio/assets/github-light-default-D7oLnXFd.js +1 -0
  132. package/studio/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  133. package/studio/assets/gleam-BspZqrRM.js +1 -0
  134. package/studio/assets/glimmer-js-Drrc9bTt.js +1 -0
  135. package/studio/assets/glimmer-ts-zeybXsvi.js +1 -0
  136. package/studio/assets/glsl-DplSGwfg.js +1 -0
  137. package/studio/assets/gn-8iBmfbXw.js +1 -0
  138. package/studio/assets/gnuplot-DdkO51Og.js +1 -0
  139. package/studio/assets/go-C27-OAKa.js +1 -0
  140. package/studio/assets/graphql-ChdNCCLP.js +1 -0
  141. package/studio/assets/groovy-gcz8RCvz.js +1 -0
  142. package/studio/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  143. package/studio/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  144. package/studio/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  145. package/studio/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  146. package/studio/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  147. package/studio/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  148. package/studio/assets/hack-Ck6-gGSS.js +1 -0
  149. package/studio/assets/haml-GN_XdMnF.js +1 -0
  150. package/studio/assets/handlebars-DPT5vKgj.js +1 -0
  151. package/studio/assets/hanken-grotesk-latin-ext-wght-normal-Dg-wlmqe.woff2 +0 -0
  152. package/studio/assets/hanken-grotesk-latin-wght-normal-CaVRRdDk.woff2 +0 -0
  153. package/studio/assets/hanken-grotesk-vietnamese-wght-normal-CHiFlh_0.woff2 +0 -0
  154. package/studio/assets/haskell-Df6bDoY_.js +1 -0
  155. package/studio/assets/haxe-CfZj7gIn.js +1 -0
  156. package/studio/assets/hcl-BWvSN4gD.js +1 -0
  157. package/studio/assets/hjson-D5-asLiD.js +1 -0
  158. package/studio/assets/hlsl-D3lLCCz7.js +1 -0
  159. package/studio/assets/horizon-BUw7H-hv.js +1 -0
  160. package/studio/assets/horizon-bright-CUuTKBJd.js +1 -0
  161. package/studio/assets/houston-DnULxvSX.js +1 -0
  162. package/studio/assets/html-BlS82ilI.js +1 -0
  163. package/studio/assets/html-derivative-DZhk3IEZ.js +1 -0
  164. package/studio/assets/http-jrhK8wxY.js +1 -0
  165. package/studio/assets/hurl-irOxFIW8.js +1 -0
  166. package/studio/assets/hxml-2-FPmUDs.js +1 -0
  167. package/studio/assets/hy-DFXneXwc.js +1 -0
  168. package/studio/assets/imba-DGztddWO.js +1 -0
  169. package/studio/assets/index-B-C2JUUu.css +1 -0
  170. package/studio/assets/index-DOjop_HJ.js +889 -0
  171. package/studio/assets/ini-BEwlwnbL.js +1 -0
  172. package/studio/assets/java-CylS5w8V.js +1 -0
  173. package/studio/assets/javascript-wDzz0qaB.js +1 -0
  174. package/studio/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  175. package/studio/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  176. package/studio/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  177. package/studio/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  178. package/studio/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  179. package/studio/assets/jinja-DFQZVq3b.js +1 -0
  180. package/studio/assets/jison-wvAkD_A8.js +1 -0
  181. package/studio/assets/json-Cp-IABpG.js +1 -0
  182. package/studio/assets/json5-C9tS-k6U.js +1 -0
  183. package/studio/assets/jsonc-Des-eS-w.js +1 -0
  184. package/studio/assets/jsonl-DcaNXYhu.js +1 -0
  185. package/studio/assets/jsonnet-DFQXde-d.js +1 -0
  186. package/studio/assets/jssm-C2t-YnRu.js +1 -0
  187. package/studio/assets/jsx-g9-lgVsj.js +1 -0
  188. package/studio/assets/julia-Cu79e8SL.js +1 -0
  189. package/studio/assets/just-CMxyWJJc.js +1 -0
  190. package/studio/assets/kanagawa-dragon-BuwD2xS4.js +1 -0
  191. package/studio/assets/kanagawa-lotus-C3DzagqV.js +1 -0
  192. package/studio/assets/kanagawa-wave-DFGoQZhC.js +1 -0
  193. package/studio/assets/kdl-DV7GczEv.js +1 -0
  194. package/studio/assets/kotlin-BdnUsdx6.js +1 -0
  195. package/studio/assets/kusto-wEQ09or8.js +1 -0
  196. package/studio/assets/laserwave-DUszq2jm.js +1 -0
  197. package/studio/assets/latex-DJVikpzR.js +1 -0
  198. package/studio/assets/lean-BZvkOJ9d.js +1 -0
  199. package/studio/assets/less-B1dDrJ26.js +1 -0
  200. package/studio/assets/light-plus-B7mTdjB0.js +1 -0
  201. package/studio/assets/liquid-B-duXHXw.js +1 -0
  202. package/studio/assets/llvm-BZoOZj88.js +1 -0
  203. package/studio/assets/log-2UxHyX5q.js +1 -0
  204. package/studio/assets/logo-BtOb2qkB.js +1 -0
  205. package/studio/assets/lua-BaeVxFsk.js +1 -0
  206. package/studio/assets/luau-nOZpfvQi.js +1 -0
  207. package/studio/assets/make-CHLpvVh8.js +1 -0
  208. package/studio/assets/markdown-Cvjx9yec.js +1 -0
  209. package/studio/assets/marko-BYgDmDgU.js +1 -0
  210. package/studio/assets/material-theme-D5KoaKCx.js +1 -0
  211. package/studio/assets/material-theme-darker-BfHTSMKl.js +1 -0
  212. package/studio/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  213. package/studio/assets/material-theme-ocean-CyktbL80.js +1 -0
  214. package/studio/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  215. package/studio/assets/matlab-D7o27uSR.js +1 -0
  216. package/studio/assets/mdc-DF4WjDMn.js +1 -0
  217. package/studio/assets/mdx-Cmh6b_Ma.js +1 -0
  218. package/studio/assets/mermaid-CQcHuHx7.js +1 -0
  219. package/studio/assets/min-dark-CafNBF8u.js +1 -0
  220. package/studio/assets/min-light-CTRr51gU.js +1 -0
  221. package/studio/assets/mipsasm-CKIfxQSi.js +1 -0
  222. package/studio/assets/mojo-DJz3ZmWd.js +1 -0
  223. package/studio/assets/monokai-CR4piiQ-.js +1 -0
  224. package/studio/assets/moonbit-Bag4Rp_g.js +1 -0
  225. package/studio/assets/move-el3G9tDJ.js +1 -0
  226. package/studio/assets/narrat-DRg8JJMk.js +1 -0
  227. package/studio/assets/nextflow-BCxp2Aob.js +1 -0
  228. package/studio/assets/nextflow-groovy-CedDknKX.js +1 -0
  229. package/studio/assets/nginx-BpAMiNFr.js +1 -0
  230. package/studio/assets/night-owl-C39BiMTA.js +1 -0
  231. package/studio/assets/night-owl-light-CMTm3GFP.js +1 -0
  232. package/studio/assets/nim-nV83PyhX.js +1 -0
  233. package/studio/assets/nix-CwoSXNpI.js +1 -0
  234. package/studio/assets/nord-Ddv68eIx.js +1 -0
  235. package/studio/assets/nsis-BlV79W_Q.js +1 -0
  236. package/studio/assets/nushell-BXD5iret.js +1 -0
  237. package/studio/assets/objective-c-DXmwc3jG.js +1 -0
  238. package/studio/assets/objective-cpp-CLxacb5B.js +1 -0
  239. package/studio/assets/ocaml-C0hk2d4L.js +1 -0
  240. package/studio/assets/odin-BBf5iR-q.js +1 -0
  241. package/studio/assets/one-dark-pro-CxGP3dtY.js +1 -0
  242. package/studio/assets/one-light-C3Wv6jpd.js +1 -0
  243. package/studio/assets/openscad-C4EeE6gA.js +1 -0
  244. package/studio/assets/org-6a7ccXN_.js +1 -0
  245. package/studio/assets/pascal-D93ZcfNL.js +1 -0
  246. package/studio/assets/perl-5klg-GXX.js +1 -0
  247. package/studio/assets/php-DoruYMF0.js +1 -0
  248. package/studio/assets/pkl-u5AG7uiY.js +1 -0
  249. package/studio/assets/plastic-3e1v2bzS.js +1 -0
  250. package/studio/assets/plsql-ChMvpjG-.js +1 -0
  251. package/studio/assets/po-BTJTHyun.js +1 -0
  252. package/studio/assets/poimandres-CS3Unz2-.js +1 -0
  253. package/studio/assets/polar-C0HS_06l.js +1 -0
  254. package/studio/assets/postcss-CXtECtnM.js +1 -0
  255. package/studio/assets/powerquery-CEu0bR-o.js +1 -0
  256. package/studio/assets/powershell-Dd0kTxKP.js +1 -0
  257. package/studio/assets/prisma-Vru482bI.js +1 -0
  258. package/studio/assets/prolog-CbFg5uaA.js +1 -0
  259. package/studio/assets/proto-C7zT0LnQ.js +1 -0
  260. package/studio/assets/pug-BtYPkAgq.js +1 -0
  261. package/studio/assets/puppet-BMWR74SV.js +1 -0
  262. package/studio/assets/purescript-CklMAg4u.js +1 -0
  263. package/studio/assets/python-B6aJPvgy.js +1 -0
  264. package/studio/assets/qml-3beO22l8.js +1 -0
  265. package/studio/assets/qmldir-C8lEn-DE.js +1 -0
  266. package/studio/assets/qss-IeuSbFQv.js +1 -0
  267. package/studio/assets/r-Cf5RLm7j.js +1 -0
  268. package/studio/assets/racket-BqYA7rlc.js +1 -0
  269. package/studio/assets/raku-DXvB9xmW.js +1 -0
  270. package/studio/assets/razor-CyjPwjZj.js +1 -0
  271. package/studio/assets/rbs-CpoqiR4B.js +1 -0
  272. package/studio/assets/red-DMbB5_pp.js +1 -0
  273. package/studio/assets/reg-C-SQnVFl.js +1 -0
  274. package/studio/assets/regexp-CDVJQ6XC.js +1 -0
  275. package/studio/assets/rel-C3B-1QV4.js +1 -0
  276. package/studio/assets/riscv-BM1_JUlF.js +1 -0
  277. package/studio/assets/ron-D8l8udqQ.js +1 -0
  278. package/studio/assets/rose-pine-5qJOZa0Y.js +1 -0
  279. package/studio/assets/rose-pine-dawn-zx0QlTCp.js +1 -0
  280. package/studio/assets/rose-pine-moon-C9pEdX9L.js +1 -0
  281. package/studio/assets/rosmsg-BJDFO7_C.js +1 -0
  282. package/studio/assets/rst-CVOjT0e7.js +1 -0
  283. package/studio/assets/ruby-C8rp0wew.js +1 -0
  284. package/studio/assets/rust-DPvrY3IQ.js +1 -0
  285. package/studio/assets/sas-BGn39htG.js +1 -0
  286. package/studio/assets/sass-Cj5Yp3dK.js +1 -0
  287. package/studio/assets/scala-CqE71os6.js +1 -0
  288. package/studio/assets/scheme-C98Dy4si.js +1 -0
  289. package/studio/assets/scss-Cw6XMfVs.js +1 -0
  290. package/studio/assets/sdbl-DVxCFoDh.js +1 -0
  291. package/studio/assets/shaderlab-Dg9Lc6iA.js +1 -0
  292. package/studio/assets/shellscript-Yzrsuije.js +1 -0
  293. package/studio/assets/shellsession-BADoaaVG.js +1 -0
  294. package/studio/assets/slack-dark-BthQWCQV.js +1 -0
  295. package/studio/assets/slack-ochin-DqwNpetd.js +1 -0
  296. package/studio/assets/smalltalk-BOQMe2GC.js +1 -0
  297. package/studio/assets/smithy-cds9vsN8.js +1 -0
  298. package/studio/assets/snazzy-light-Bw305WKR.js +1 -0
  299. package/studio/assets/solarized-dark-UcubFVte.js +1 -0
  300. package/studio/assets/solarized-light-DCG28T6R.js +1 -0
  301. package/studio/assets/solidity-DijEV5ha.js +1 -0
  302. package/studio/assets/soy-zscZBeg6.js +1 -0
  303. package/studio/assets/sparql-rVzFXLq3.js +1 -0
  304. package/studio/assets/splunk-BtCnVYZw.js +1 -0
  305. package/studio/assets/sql-DkvoVjww.js +1 -0
  306. package/studio/assets/src-Br__iChL.js +88 -0
  307. package/studio/assets/ssh-config-_ykCGR6B.js +1 -0
  308. package/studio/assets/stata-DACIj5bg.js +1 -0
  309. package/studio/assets/stylus-BEDo0Tqx.js +1 -0
  310. package/studio/assets/surrealql-Cjom0U5J.js +1 -0
  311. package/studio/assets/svelte-D84K1R2Q.js +1 -0
  312. package/studio/assets/swift-C2oV4EkX.js +1 -0
  313. package/studio/assets/synthwave-84-CbfX1IO0.js +1 -0
  314. package/studio/assets/system-verilog-0hqHdDBg.js +1 -0
  315. package/studio/assets/systemd-4A_iFExJ.js +1 -0
  316. package/studio/assets/talonscript-CkByrt1z.js +1 -0
  317. package/studio/assets/tasl-QIJgUcNo.js +1 -0
  318. package/studio/assets/tcl-dwOrl1Do.js +1 -0
  319. package/studio/assets/templ-Vpw5XpSW.js +1 -0
  320. package/studio/assets/terraform-BETggiCN.js +1 -0
  321. package/studio/assets/tex-D96PA37w.js +1 -0
  322. package/studio/assets/tokyo-night-hegEt444.js +1 -0
  323. package/studio/assets/toml-vGWfd6FD.js +1 -0
  324. package/studio/assets/ts-tags-Ls60c9xG.js +1 -0
  325. package/studio/assets/tsv-B_m7g4N7.js +1 -0
  326. package/studio/assets/tsx-COt5Ahok.js +1 -0
  327. package/studio/assets/turtle-BsS91CYL.js +1 -0
  328. package/studio/assets/twig-D9-LOF2p.js +1 -0
  329. package/studio/assets/typescript-BPQ3VLAy.js +1 -0
  330. package/studio/assets/typespec-ClX509-Q.js +1 -0
  331. package/studio/assets/typst-DamkJZ1Q.js +1 -0
  332. package/studio/assets/v-BGw2Nkan.js +1 -0
  333. package/studio/assets/vala-CsfeWuGM.js +1 -0
  334. package/studio/assets/vb-Cu-pLBUe.js +1 -0
  335. package/studio/assets/verilog-nZwndyjY.js +1 -0
  336. package/studio/assets/vesper-DRje8inN.js +1 -0
  337. package/studio/assets/vhdl-CeAyd5Ju.js +1 -0
  338. package/studio/assets/viml-CJc9bBzg.js +1 -0
  339. package/studio/assets/vitesse-black-Bkuqu6BP.js +1 -0
  340. package/studio/assets/vitesse-dark-D0r3Knsf.js +1 -0
  341. package/studio/assets/vitesse-light-CVO1_9PV.js +1 -0
  342. package/studio/assets/vue-DSqPwMUe.js +1 -0
  343. package/studio/assets/vue-html-AaS7Mt5G.js +1 -0
  344. package/studio/assets/vue-vine-C0RcJ6UU.js +1 -0
  345. package/studio/assets/vyper-CDx5xZoG.js +1 -0
  346. package/studio/assets/wasm-Cey7Y6ql.js +1 -0
  347. package/studio/assets/wasm-MzD3tlZU.js +1 -0
  348. package/studio/assets/wenyan-BV7otONQ.js +1 -0
  349. package/studio/assets/wgsl-Dx-B1_4e.js +1 -0
  350. package/studio/assets/wikitext-BhOHFoWU.js +1 -0
  351. package/studio/assets/wit-5i3qLPDT.js +1 -0
  352. package/studio/assets/wolfram-lXgVvXCa.js +1 -0
  353. package/studio/assets/xml-sdJ4AIDG.js +1 -0
  354. package/studio/assets/xsl-CtQFsRM5.js +1 -0
  355. package/studio/assets/yaml-Buea-lGh.js +1 -0
  356. package/studio/assets/zenscript-DVFEvuxE.js +1 -0
  357. package/studio/assets/zig-VOosw3JB.js +1 -0
  358. package/studio/favicon.svg +7 -0
  359. package/studio/index.html +15 -0
package/dist/ops.js ADDED
@@ -0,0 +1,3 @@
1
+ export { EXTENSIONS, brief, check, example, excerpt, outline, readInput, schema, toJSON } from './chunk-TPJZDQG6.js';
2
+ //# sourceMappingURL=ops.js.map
3
+ //# sourceMappingURL=ops.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ops.js"}
@@ -0,0 +1,94 @@
1
+ import { P as PoneyPlugin, I as Importer, b as Overlay, c as ImportResult, a as OverlayResult, d as ImportOptions } from '../types-N-oiuMYy.js';
2
+ export { O as OverlayMark, e as definePlugin, s as slug } from '../types-N-oiuMYy.js';
3
+ import '@hattoriai/poney-core';
4
+
5
+ /** What Poney brings. */
6
+ declare const BUILT_IN: PoneyPlugin;
7
+ /**
8
+ * The person's own plugins, listed in ~/.poney/plugins.json (or the file
9
+ * PONEY_PLUGINS names):
10
+ *
11
+ * { "plugins": ["/path/to/my-plugin.mjs", "poney-plugin-sentry"] }
12
+ *
13
+ * Each is a module whose default export is a plugin (see definePlugin).
14
+ * Plugins run code on this computer, so the list lives in the person's home
15
+ * folder, never in a project: opening or cloning a repository never loads
16
+ * its code.
17
+ */
18
+ declare const pluginsFile: () => string;
19
+ interface Plugins {
20
+ plugins: PoneyPlugin[];
21
+ importers: Importer[];
22
+ overlays: Overlay[];
23
+ /** Plugins that did not load, and why. */
24
+ problems: string[];
25
+ }
26
+ /** The built-in plugins and the person's own, loaded once. */
27
+ declare function plugins(): Promise<Plugins>;
28
+ /** For tests: forget what was loaded. */
29
+ declare const resetPlugins: () => undefined;
30
+
31
+ interface MergeReport {
32
+ added: {
33
+ entities: number;
34
+ relationships: number;
35
+ dataTypes: number;
36
+ dataRelations: number;
37
+ views: number;
38
+ };
39
+ /** Elements the document already had (by id): they keep the document's version. */
40
+ kept: number;
41
+ /** Relationships left out because an end is missing from the document. */
42
+ skipped: number;
43
+ }
44
+ type Doc = Record<string, any>;
45
+ /**
46
+ * Adds an import to a document. It only adds: an element whose id the
47
+ * document already has keeps the document's version, so a person's edits and
48
+ * an agent's words survive a second import.
49
+ */
50
+ declare function mergeImport(document: Doc | undefined, result: ImportResult, project?: {
51
+ id: string;
52
+ name: string;
53
+ description: string;
54
+ }): {
55
+ document: Doc;
56
+ report: MergeReport;
57
+ };
58
+ /** One line on what a merge did. */
59
+ declare function describeMerge(r: MergeReport): string;
60
+
61
+ /** Importers and overlays, each with the files it would read in a folder. */
62
+ declare function available(dir: string): Promise<{
63
+ importers: {
64
+ id: string;
65
+ name: string;
66
+ description: string;
67
+ files: string[];
68
+ }[];
69
+ overlays: {
70
+ id: string;
71
+ name: string;
72
+ description: string;
73
+ files: string[];
74
+ }[];
75
+ problems: string[];
76
+ }>;
77
+ /**
78
+ * Runs an importer on a folder and adds what it finds to a document (or to a
79
+ * new one named after the folder). Returns the document and what happened.
80
+ */
81
+ declare function runImport(id: string, dir: string, options?: ImportOptions & {
82
+ into?: unknown;
83
+ }): Promise<{
84
+ document: {
85
+ [x: string]: any;
86
+ };
87
+ summary: string;
88
+ }>;
89
+ /** Runs an overlay on a folder, for a document. */
90
+ declare function runOverlay(id: string, dir: string, document: unknown): Promise<OverlayResult>;
91
+ /** An overlay result in a few lines, for an agent or a terminal. */
92
+ declare function describeOverlay(r: OverlayResult): string;
93
+
94
+ export { BUILT_IN, ImportOptions, ImportResult, Importer, type MergeReport, Overlay, OverlayResult, PoneyPlugin, available, describeMerge, describeOverlay, mergeImport, plugins, pluginsFile, resetPlugins, runImport, runOverlay };
@@ -0,0 +1,3 @@
1
+ export { BUILT_IN, available, definePlugin, describeMerge, describeOverlay, mergeImport, plugins, pluginsFile, resetPlugins, runImport, runOverlay, slug } from '../chunk-YLKV6LIU.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,3 @@
1
+ export { available, describeOverlay, runImport, runOverlay } from './chunk-YLKV6LIU.js';
2
+ //# sourceMappingURL=run-25PP2HWH.js.map
3
+ //# sourceMappingURL=run-25PP2HWH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"run-25PP2HWH.js"}
@@ -0,0 +1,77 @@
1
+ import { Tone, EffectKind, Entity, Relationship, DataType, DataRelation, PoneyDocument, PoneyExtension } from '@hattoriai/poney-core';
2
+
3
+ /**
4
+ * Poney plugins run in the local server (the hub), next to the code: they
5
+ * read files and tools on this computer. The Studio only shows what they
6
+ * return. A plugin can bring:
7
+ *
8
+ * - importers, which read a source (a schema file, an import graph) and
9
+ * return model elements and views to add to a document;
10
+ * - overlays, which read live facts (test coverage, recent changes) and mark
11
+ * the parts of a document they concern, without changing it;
12
+ * - format extensions, so the hub checks documents that use them.
13
+ */
14
+ /** What an importer returns: elements and views to add. Ids are stable, so a second run finds what the first added. */
15
+ interface ImportResult {
16
+ entities: Entity[];
17
+ relationships: Relationship[];
18
+ dataTypes: DataType[];
19
+ dataRelations: DataRelation[];
20
+ /** Views in document form (as they would appear in "views"). */
21
+ views: Record<string, unknown>[];
22
+ /** What the importer read, and what it left out, for the person or the agent. */
23
+ notes: string[];
24
+ }
25
+ interface ImportOptions {
26
+ /** A file to read instead of the one the importer finds. Relative to the folder. */
27
+ path?: string;
28
+ /** For data: the entity (a database) the tables are stored in. */
29
+ store?: string;
30
+ }
31
+ interface Importer {
32
+ id: string;
33
+ name: string;
34
+ /** One line: what it reads and what it adds. */
35
+ description: string;
36
+ /** The files in the folder it would read; empty when it has nothing to read there. */
37
+ detect(dir: string): string[];
38
+ run(dir: string, options?: ImportOptions): Promise<ImportResult>;
39
+ }
40
+ /** A mark on one element: a short fact, and an effect by meaning. */
41
+ interface OverlayMark {
42
+ /** A ref key, e.g. "entity:orders". */
43
+ target: string;
44
+ badge?: {
45
+ text: string;
46
+ tone?: Tone;
47
+ };
48
+ effect?: EffectKind;
49
+ }
50
+ interface OverlayResult {
51
+ /** What the marks show, e.g. "Test coverage". */
52
+ title: string;
53
+ /** When the facts were read. */
54
+ at: string;
55
+ marks: OverlayMark[];
56
+ notes: string[];
57
+ }
58
+ interface Overlay {
59
+ id: string;
60
+ name: string;
61
+ description: string;
62
+ /** The files or tools it would read in the folder; empty when it has nothing to read there. */
63
+ detect(dir: string): string[];
64
+ read(dir: string, doc: PoneyDocument): Promise<OverlayResult>;
65
+ }
66
+ interface PoneyPlugin {
67
+ name: string;
68
+ importers?: Importer[];
69
+ overlays?: Overlay[];
70
+ extensions?: PoneyExtension[];
71
+ }
72
+ /** Identity function that checks a plugin's shape. */
73
+ declare const definePlugin: (plugin: PoneyPlugin) => PoneyPlugin;
74
+ /** An id from any name: lowercase letters, digits and "-". */
75
+ declare const slug: (s: string) => string;
76
+
77
+ export { type Importer as I, type OverlayMark as O, type PoneyPlugin as P, type OverlayResult as a, type Overlay as b, type ImportResult as c, type ImportOptions as d, definePlugin as e, slug as s };
@@ -0,0 +1,195 @@
1
+ {
2
+ "poneyVersion": "0.1.0",
3
+ "project": { "id": "acme-notes", "name": "Acme Notes", "description": "A note-taking web app." },
4
+ "model": {
5
+ "entities": [
6
+ { "id": "user", "kind": "person", "name": "User", "summary": "Writes and searches notes." },
7
+ { "id": "web", "kind": "web-app", "name": "Web app", "summary": "The editor in the browser.", "technology": "React", "sourceRefs": [{ "path": "web/src" }] },
8
+ { "id": "editor", "kind": "module", "name": "Editor", "summary": "Turns key presses into edits.", "parent": "web", "sourceRefs": [{ "path": "web/src/editor" }] },
9
+ { "id": "sync", "kind": "module", "name": "Sync client", "summary": "Sends edits to the API, a second after typing stops.", "parent": "web", "sourceRefs": [{ "path": "web/src/sync/client.ts", "symbol": "flush" }] },
10
+ { "id": "api", "kind": "service", "name": "Notes API", "summary": "Keeps notes and who may read them.", "technology": "Node, Fastify", "sourceRefs": [{ "path": "api/src" }] },
11
+ { "id": "router", "kind": "module", "name": "Routes", "summary": "Every HTTP route, in one file.", "parent": "api", "sourceRefs": [{ "path": "api/src/routes.ts" }] },
12
+ { "id": "auth", "kind": "module", "name": "Sessions", "summary": "Finds the user from the session cookie.", "parent": "api", "sourceRefs": [{ "path": "api/src/auth/session.ts", "symbol": "requireUser" }] },
13
+ { "id": "notes", "kind": "module", "name": "Notes", "summary": "Saves notes, with a version check.", "parent": "api", "sourceRefs": [{ "path": "api/src/notes/save.ts", "symbol": "saveNote" }] },
14
+ { "id": "search", "kind": "module", "name": "Search", "summary": "Keeps the search index up to date.", "parent": "api", "sourceRefs": [{ "path": "api/src/search/queue.ts" }] },
15
+ { "id": "db", "kind": "database", "name": "Postgres", "summary": "Notes, users and sessions." },
16
+ { "id": "index", "kind": "database", "name": "Search index", "summary": "Full-text index of every note.", "technology": "Meilisearch" }
17
+ ],
18
+ "relationships": [
19
+ { "id": "r-user-web", "kind": "uses", "source": "user", "target": "web", "label": "Writes notes in" },
20
+ { "id": "r-editor-sync", "kind": "calls", "source": "editor", "target": "sync", "label": "Hands over edits" },
21
+ { "id": "r-sync-router", "kind": "calls", "source": "sync", "target": "router", "label": "PUT /notes/:id", "protocol": "HTTPS" },
22
+ { "id": "r-router-auth", "kind": "calls", "source": "router", "target": "auth", "label": "Checks the session" },
23
+ { "id": "r-router-notes", "kind": "calls", "source": "router", "target": "notes", "label": "Calls saveNote" },
24
+ { "id": "r-auth-db", "kind": "reads", "source": "auth", "target": "db", "label": "Reads sessions" },
25
+ { "id": "r-notes-db", "kind": "writes", "source": "notes", "target": "db", "label": "Writes the note row" },
26
+ { "id": "r-notes-search", "kind": "publishes", "source": "notes", "target": "search", "label": "Queues a re-index" },
27
+ { "id": "r-search-index", "kind": "writes", "source": "search", "target": "index", "label": "Updates the index" }
28
+ ],
29
+ "behaviors": [
30
+ {
31
+ "id": "save-note",
32
+ "kind": "interaction",
33
+ "name": "Save a note",
34
+ "summary": "One save, from the editor to Postgres.",
35
+ "participants": ["sync", "router", "auth", "notes", "db", "search"],
36
+ "steps": [
37
+ { "type": "message", "id": "m1", "kind": "call", "from": "sync", "to": "router", "label": "PUT /notes/:id with the version" },
38
+ { "type": "message", "id": "m2", "kind": "call", "from": "router", "to": "auth", "label": "Check the session cookie" },
39
+ { "type": "message", "id": "m3", "kind": "return", "from": "auth", "to": "router", "label": "User id" },
40
+ { "type": "message", "id": "m4", "kind": "call", "from": "router", "to": "notes", "label": "saveNote(user, id, edit)" },
41
+ { "type": "message", "id": "m5", "kind": "call", "from": "notes", "to": "db", "label": "UPDATE … WHERE version = $v" },
42
+ {
43
+ "type": "fragment",
44
+ "id": "f-version",
45
+ "kind": "alt",
46
+ "label": "Version check",
47
+ "branches": [
48
+ {
49
+ "guard": "one row updated",
50
+ "steps": [
51
+ { "type": "message", "id": "m6", "kind": "return", "from": "db", "to": "notes", "label": "1 row" },
52
+ { "type": "message", "id": "m7", "kind": "async", "from": "notes", "to": "search", "label": "Queue a re-index" },
53
+ { "type": "message", "id": "m8", "kind": "return", "from": "notes", "to": "router", "label": "Note, version + 1" }
54
+ ]
55
+ },
56
+ {
57
+ "guard": "no row: someone saved first",
58
+ "steps": [
59
+ { "type": "message", "id": "m9", "kind": "return", "from": "db", "to": "notes", "label": "0 rows" },
60
+ { "type": "message", "id": "m10", "kind": "return", "from": "notes", "to": "router", "label": "Conflict" }
61
+ ]
62
+ }
63
+ ]
64
+ },
65
+ { "type": "message", "id": "m11", "kind": "return", "from": "router", "to": "sync", "label": "200 with the note, or 409" }
66
+ ]
67
+ }
68
+ ]
69
+ },
70
+ "views": [
71
+ {
72
+ "id": "tour-map",
73
+ "type": "map",
74
+ "title": "Acme Notes",
75
+ "description": "The two apps and the two stores.",
76
+ "category": "walkthrough",
77
+ "entities": ["user", "web", "editor", "sync", "api", "router", "auth", "notes", "search", "db", "index"],
78
+ "collapsed": ["web", "api"]
79
+ }
80
+ ],
81
+ "walkthroughs": [
82
+ {
83
+ "id": "first-walk",
84
+ "kind": "tour",
85
+ "title": "How Acme Notes saves a note",
86
+ "summary": "A first walk through the Acme Notes code: its parts, and the path of one save from the editor to the database.",
87
+ "source": { "kind": "Repository", "repository": "acme/notes", "head": "4f2c9a1" },
88
+ "story": {
89
+ "text": "Acme Notes is a web editor for notes, with a small API behind it. People type; the app saves a second after they stop, and search finds the note a few seconds later. This tour follows one save. It leaves out sign-up, sharing and billing."
90
+ },
91
+ "overview": "tour-map",
92
+ "verdict": {
93
+ "risk": "routine",
94
+ "facts": [
95
+ { "label": "Stack", "value": "TypeScript: React in web/, Fastify in api/" },
96
+ { "label": "Run it", "value": "npm run dev, with Postgres from docker compose" },
97
+ { "label": "Tests", "value": "npm test; the API tests need Postgres" },
98
+ { "label": "Read first", "value": "api/src/routes.ts, then api/src/notes/save.ts" }
99
+ ],
100
+ "findings": [{ "text": "Search lags a few seconds behind a save: a note that was just saved may not be found yet.", "severity": "note", "scene": "s-search" }]
101
+ },
102
+ "scenes": [
103
+ {
104
+ "id": "s-parts",
105
+ "title": "Two apps and two stores",
106
+ "text": "The web app and the API are the two big parts; open them to see their modules. Postgres keeps everything that matters. The search index is a copy that can be rebuilt.",
107
+ "view": "tour-map",
108
+ "callouts": [
109
+ { "target": "entity:web", "text": "The browser app. Editing and syncing are separate modules." },
110
+ { "target": "entity:api", "text": "One Fastify service. Routes, sessions, notes and search." },
111
+ { "target": "entity:index", "text": "Only a copy: the API can rebuild it from Postgres." }
112
+ ]
113
+ },
114
+ {
115
+ "id": "s-entry",
116
+ "title": "Every request enters through one file",
117
+ "text": "All HTTP routes are in api/src/routes.ts. Each route first finds the user from the session, then calls one function in a module. To find what a URL does, start here.",
118
+ "view": { "type": "map", "title": "Inside the API", "entities": ["sync", "api", "router", "auth", "notes", "search", "db"] },
119
+ "focus": ["entity:router", "relationship:r-router-auth", "relationship:r-router-notes"],
120
+ "callouts": [{ "target": "entity:router", "text": "Routes stay thin: they check the session and call a module." }],
121
+ "code": [
122
+ {
123
+ "path": "api/src/routes.ts",
124
+ "title": "The save route",
125
+ "start": 31,
126
+ "text": "app.put('/notes/:id', async (req, reply) => {\n const user = await requireUser(req)\n const result = await saveNote(user, req.params.id, req.body)\n if (result.conflict) return reply.code(409).send(result.current)\n return result.note\n})",
127
+ "notes": [{ "line": 32, "text": "Throws a 401 when the cookie is missing or old." }]
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "id": "s-save",
133
+ "title": "One save, from the editor to Postgres",
134
+ "text": "The sync client sends the whole note with the version it last saw. The API checks the session, then updates the row only if the version still matches. Search is told later, without waiting.",
135
+ "view": { "type": "sequence", "title": "Save a note", "interaction": "save-note" },
136
+ "callouts": [
137
+ { "target": "message:save-note:m1", "text": "The client sends the version it started from." },
138
+ { "target": "message:save-note:m5", "text": "One UPDATE does the check and the write together." },
139
+ { "target": "message:save-note:m7", "text": "Search is queued; the save does not wait for it." }
140
+ ],
141
+ "trace": [
142
+ { "ref": "message:save-note:m1", "caption": "The client sends the edit and its version." },
143
+ { "ref": "message:save-note:m2", "caption": "Routes find the user from the cookie." },
144
+ { "ref": "message:save-note:m4", "caption": "Routes hand the edit to saveNote." },
145
+ { "ref": "message:save-note:m5", "caption": "One UPDATE checks the version and writes." },
146
+ { "ref": "message:save-note:m7", "caption": "Search is queued, without waiting." },
147
+ { "ref": "message:save-note:m11", "caption": "The client gets the saved note back." }
148
+ ],
149
+ "effects": [{ "target": "message:save-note:m7", "as": "flow" }],
150
+ "badges": [{ "target": "message:save-note:m5", "text": "p95 12 ms" }],
151
+ "code": [
152
+ {
153
+ "path": "api/src/notes/save.ts",
154
+ "title": "saveNote",
155
+ "start": 14,
156
+ "text": " const rows = await db.query(\n 'UPDATE notes SET body = $1, version = version + 1 WHERE id = $2 AND version = $3 RETURNING *',\n [edit.body, id, edit.version],\n )\n if (rows.length === 0) return { conflict: true, current: await findNote(id) }\n await queueReindex(id)\n return { note: rows[0] }",
157
+ "notes": [{ "line": 18, "text": "No row means another tab saved first." }]
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "id": "s-conflict",
163
+ "title": "Two tabs, one note: the version check",
164
+ "text": "When two tabs edit the same note, the second save finds no row with its version. The API answers 409 with the note as it is now, and the sync client shows both versions to the user.",
165
+ "risk": "look",
166
+ "view": { "type": "sequence", "title": "Save a note: a conflict", "interaction": "save-note" },
167
+ "focus": ["message:save-note:m5", "message:save-note:m9", "message:save-note:m10", "message:save-note:m11"],
168
+ "cases": [
169
+ { "when": "The version matches", "then": "The row is updated and the version goes up by one" },
170
+ { "when": "Another tab saved first", "then": "409, with the current note", "note": "Nothing is written." }
171
+ ],
172
+ "proof": [{ "text": "A stale version gets a 409 and changes nothing", "source": "api/test/notes.test.ts", "test": "returns 409 when the version is stale" }],
173
+ "question": "Where would you change the code to merge the two versions on the server?"
174
+ },
175
+ {
176
+ "id": "s-search",
177
+ "title": "Search is updated later, not at once",
178
+ "text": "Saving only queues a re-index. A worker in the Search module updates the index a few seconds later. If the index is lost, a script rebuilds it from Postgres.",
179
+ "view": { "type": "map", "title": "Search", "entities": ["api", "notes", "search", "db", "index"] },
180
+ "focus": ["relationship:r-notes-search", "relationship:r-search-index"],
181
+ "callouts": [{ "target": "relationship:r-notes-search", "text": "A queue in Postgres, not a message broker." }],
182
+ "effects": [
183
+ { "target": "relationship:r-notes-search", "as": "flow" },
184
+ { "target": "relationship:r-search-index", "as": "slow" },
185
+ { "target": "entity:index", "as": "attention" }
186
+ ],
187
+ "badges": [
188
+ { "target": "relationship:r-search-index", "text": "2–5 s behind" },
189
+ { "target": "entity:index", "text": "120 k notes" }
190
+ ]
191
+ }
192
+ ]
193
+ }
194
+ ]
195
+ }