@rotifer/playground 0.8.1 → 0.8.6

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 (453) hide show
  1. package/CHANGELOG.md +46 -11
  2. package/README.md +92 -58
  3. package/README.zh.md +90 -49
  4. package/dist/cloud/auth.d.ts +9 -3
  5. package/dist/cloud/auth.d.ts.map +1 -1
  6. package/dist/cloud/auth.js +28 -13
  7. package/dist/cloud/auth.js.map +1 -1
  8. package/dist/cloud/client.d.ts +4 -3
  9. package/dist/cloud/client.d.ts.map +1 -1
  10. package/dist/cloud/client.js +139 -68
  11. package/dist/cloud/client.js.map +1 -1
  12. package/dist/cloud/types.d.ts +3 -0
  13. package/dist/cloud/types.d.ts.map +1 -1
  14. package/dist/cloud/types.js.map +1 -1
  15. package/dist/commands/agent-create.d.ts +20 -0
  16. package/dist/commands/agent-create.d.ts.map +1 -1
  17. package/dist/commands/agent-create.js +91 -80
  18. package/dist/commands/agent-create.js.map +1 -1
  19. package/dist/commands/agent-list.d.ts.map +1 -1
  20. package/dist/commands/agent-list.js +27 -24
  21. package/dist/commands/agent-list.js.map +1 -1
  22. package/dist/commands/agent-run.d.ts +24 -0
  23. package/dist/commands/agent-run.d.ts.map +1 -1
  24. package/dist/commands/agent-run.js +166 -44
  25. package/dist/commands/agent-run.js.map +1 -1
  26. package/dist/commands/api-key.d.ts +3 -0
  27. package/dist/commands/api-key.d.ts.map +1 -0
  28. package/dist/commands/api-key.js +235 -0
  29. package/dist/commands/api-key.js.map +1 -0
  30. package/dist/commands/arena-list.d.ts.map +1 -1
  31. package/dist/commands/arena-list.js +113 -97
  32. package/dist/commands/arena-list.js.map +1 -1
  33. package/dist/commands/arena-submit.d.ts.map +1 -1
  34. package/dist/commands/arena-submit.js +114 -37
  35. package/dist/commands/arena-submit.js.map +1 -1
  36. package/dist/commands/arena-watch.d.ts.map +1 -1
  37. package/dist/commands/arena-watch.js +59 -87
  38. package/dist/commands/arena-watch.js.map +1 -1
  39. package/dist/commands/compare.d.ts.map +1 -1
  40. package/dist/commands/compare.js +40 -50
  41. package/dist/commands/compare.js.map +1 -1
  42. package/dist/commands/compile.d.ts.map +1 -1
  43. package/dist/commands/compile.js +80 -58
  44. package/dist/commands/compile.js.map +1 -1
  45. package/dist/commands/hello.d.ts +3 -0
  46. package/dist/commands/hello.d.ts.map +1 -0
  47. package/dist/commands/hello.js +575 -0
  48. package/dist/commands/hello.js.map +1 -0
  49. package/dist/commands/info.d.ts.map +1 -1
  50. package/dist/commands/info.js +130 -40
  51. package/dist/commands/info.js.map +1 -1
  52. package/dist/commands/init.d.ts.map +1 -1
  53. package/dist/commands/init.js +39 -60
  54. package/dist/commands/init.js.map +1 -1
  55. package/dist/commands/install.d.ts.map +1 -1
  56. package/dist/commands/install.js +35 -9
  57. package/dist/commands/install.js.map +1 -1
  58. package/dist/commands/list.d.ts.map +1 -1
  59. package/dist/commands/list.js +111 -58
  60. package/dist/commands/list.js.map +1 -1
  61. package/dist/commands/login.d.ts.map +1 -1
  62. package/dist/commands/login.js +23 -10
  63. package/dist/commands/login.js.map +1 -1
  64. package/dist/commands/network.d.ts.map +1 -1
  65. package/dist/commands/network.js +48 -67
  66. package/dist/commands/network.js.map +1 -1
  67. package/dist/commands/publish.d.ts.map +1 -1
  68. package/dist/commands/publish.js +152 -53
  69. package/dist/commands/publish.js.map +1 -1
  70. package/dist/commands/reputation.js +84 -85
  71. package/dist/commands/reputation.js.map +1 -1
  72. package/dist/commands/run.d.ts.map +1 -1
  73. package/dist/commands/run.js +32 -12
  74. package/dist/commands/run.js.map +1 -1
  75. package/dist/commands/scan.d.ts.map +1 -1
  76. package/dist/commands/scan.js +8 -9
  77. package/dist/commands/scan.js.map +1 -1
  78. package/dist/commands/search.d.ts.map +1 -1
  79. package/dist/commands/search.js +80 -54
  80. package/dist/commands/search.js.map +1 -1
  81. package/dist/commands/self-update.d.ts +7 -0
  82. package/dist/commands/self-update.d.ts.map +1 -0
  83. package/dist/commands/self-update.js +187 -0
  84. package/dist/commands/self-update.js.map +1 -0
  85. package/dist/commands/stats.d.ts.map +1 -1
  86. package/dist/commands/stats.js +20 -26
  87. package/dist/commands/stats.js.map +1 -1
  88. package/dist/commands/test.d.ts.map +1 -1
  89. package/dist/commands/test.js +104 -79
  90. package/dist/commands/test.js.map +1 -1
  91. package/dist/commands/user-config.d.ts +3 -0
  92. package/dist/commands/user-config.d.ts.map +1 -0
  93. package/dist/commands/user-config.js +82 -0
  94. package/dist/commands/user-config.js.map +1 -0
  95. package/dist/commands/versions.d.ts.map +1 -1
  96. package/dist/commands/versions.js +46 -33
  97. package/dist/commands/versions.js.map +1 -1
  98. package/dist/commands/vg.d.ts.map +1 -1
  99. package/dist/commands/vg.js +65 -63
  100. package/dist/commands/vg.js.map +1 -1
  101. package/dist/commands/whoami.d.ts.map +1 -1
  102. package/dist/commands/whoami.js +33 -23
  103. package/dist/commands/whoami.js.map +1 -1
  104. package/dist/commands/wrap.d.ts.map +1 -1
  105. package/dist/commands/wrap.js +57 -40
  106. package/dist/commands/wrap.js.map +1 -1
  107. package/dist/index.js +61 -1
  108. package/dist/index.js.map +1 -1
  109. package/dist/publish/pre-publish-check.d.ts +15 -0
  110. package/dist/publish/pre-publish-check.d.ts.map +1 -0
  111. package/dist/publish/pre-publish-check.js +228 -0
  112. package/dist/publish/pre-publish-check.js.map +1 -0
  113. package/dist/runtime/domain-failover.d.ts +1 -1
  114. package/dist/runtime/domain-failover.js +1 -1
  115. package/dist/runtime/network-gateway.d.ts +1 -1
  116. package/dist/runtime/network-gateway.d.ts.map +1 -1
  117. package/dist/runtime/network-gateway.js +10 -10
  118. package/dist/runtime/network-gateway.js.map +1 -1
  119. package/dist/scanner/scanner.js +3 -3
  120. package/dist/scanner/scanner.js.map +1 -1
  121. package/dist/utils/binding.d.ts +1 -0
  122. package/dist/utils/binding.d.ts.map +1 -1
  123. package/dist/utils/binding.js +37 -15
  124. package/dist/utils/binding.js.map +1 -1
  125. package/dist/utils/content-hash.d.ts +3 -0
  126. package/dist/utils/content-hash.d.ts.map +1 -0
  127. package/dist/utils/content-hash.js +25 -0
  128. package/dist/utils/content-hash.js.map +1 -0
  129. package/dist/utils/detect-source-language.d.ts +20 -0
  130. package/dist/utils/detect-source-language.d.ts.map +1 -0
  131. package/dist/utils/detect-source-language.js +83 -0
  132. package/dist/utils/detect-source-language.js.map +1 -0
  133. package/dist/utils/display.d.ts +44 -1
  134. package/dist/utils/display.d.ts.map +1 -1
  135. package/dist/utils/display.js +443 -14
  136. package/dist/utils/display.js.map +1 -1
  137. package/dist/utils/domain-suggest.d.ts.map +1 -1
  138. package/dist/utils/domain-suggest.js +3 -3
  139. package/dist/utils/domain-suggest.js.map +1 -1
  140. package/dist/utils/javy-compiler.d.ts.map +1 -1
  141. package/dist/utils/javy-compiler.js +10 -3
  142. package/dist/utils/javy-compiler.js.map +1 -1
  143. package/dist/utils/open-browser.d.ts +7 -3
  144. package/dist/utils/open-browser.d.ts.map +1 -1
  145. package/dist/utils/open-browser.js +15 -4
  146. package/dist/utils/open-browser.js.map +1 -1
  147. package/dist/utils/palette.d.ts +49 -0
  148. package/dist/utils/palette.d.ts.map +1 -0
  149. package/dist/utils/palette.js +80 -0
  150. package/dist/utils/palette.js.map +1 -0
  151. package/dist/utils/private-fs.d.ts +3 -0
  152. package/dist/utils/private-fs.d.ts.map +1 -0
  153. package/dist/utils/private-fs.js +25 -0
  154. package/dist/utils/private-fs.js.map +1 -0
  155. package/dist/utils/project-root.d.ts +2 -0
  156. package/dist/utils/project-root.d.ts.map +1 -0
  157. package/dist/utils/project-root.js +49 -0
  158. package/dist/utils/project-root.js.map +1 -0
  159. package/dist/utils/run-logger.d.ts +24 -0
  160. package/dist/utils/run-logger.d.ts.map +1 -0
  161. package/dist/utils/run-logger.js +70 -0
  162. package/dist/utils/run-logger.js.map +1 -0
  163. package/dist/utils/sandbox-defaults.d.ts +9 -0
  164. package/dist/utils/sandbox-defaults.d.ts.map +1 -0
  165. package/dist/utils/sandbox-defaults.js +12 -0
  166. package/dist/utils/sandbox-defaults.js.map +1 -0
  167. package/dist/utils/update-check.d.ts +20 -0
  168. package/dist/utils/update-check.d.ts.map +1 -0
  169. package/dist/utils/update-check.js +155 -0
  170. package/dist/utils/update-check.js.map +1 -0
  171. package/dist/utils/user-config.d.ts +10 -0
  172. package/dist/utils/user-config.d.ts.map +1 -0
  173. package/dist/utils/user-config.js +54 -0
  174. package/dist/utils/user-config.js.map +1 -0
  175. package/dist/utils/validate-gene-name.d.ts +7 -0
  176. package/dist/utils/validate-gene-name.d.ts.map +1 -0
  177. package/dist/utils/validate-gene-name.js +28 -0
  178. package/dist/utils/validate-gene-name.js.map +1 -0
  179. package/genes/genesis-code-format/phenotype.json +4 -3
  180. package/genes/genesis-file-read/phenotype.json +4 -3
  181. package/genes/genesis-l0-constraint/phenotype.json +4 -3
  182. package/genes/genesis-web-search/phenotype.json +5 -4
  183. package/genes/genesis-web-search-lite/phenotype.json +4 -3
  184. package/package.json +35 -8
  185. package/scripts/postinstall.js +38 -0
  186. package/dist/errors/formatter.d.ts +0 -25
  187. package/dist/errors/formatter.d.ts.map +0 -1
  188. package/dist/errors/formatter.js +0 -43
  189. package/dist/errors/formatter.js.map +0 -1
  190. package/genes/academic-writer/.cloud-manifest.json +0 -6
  191. package/genes/academic-writer/.gene-manifest.json +0 -8
  192. package/genes/academic-writer/SKILL.md +0 -274
  193. package/genes/academic-writer/phenotype.json +0 -28
  194. package/genes/ai-components/.cloud-manifest.json +0 -6
  195. package/genes/ai-components/.gene-manifest.json +0 -8
  196. package/genes/ai-components/SKILL.md +0 -381
  197. package/genes/ai-components/phenotype.json +0 -28
  198. package/genes/algorithmic-art/.cloud-manifest.json +0 -6
  199. package/genes/algorithmic-art/.gene-manifest.json +0 -8
  200. package/genes/algorithmic-art/SKILL.md +0 -405
  201. package/genes/algorithmic-art/phenotype.json +0 -28
  202. package/genes/answer-synthesizer/.cloud-manifest.json +0 -6
  203. package/genes/answer-synthesizer/index.ts +0 -194
  204. package/genes/answer-synthesizer/phenotype.json +0 -61
  205. package/genes/api-designer/.cloud-manifest.json +0 -6
  206. package/genes/api-designer/.gene-manifest.json +0 -8
  207. package/genes/api-designer/SKILL.md +0 -456
  208. package/genes/api-designer/phenotype.json +0 -28
  209. package/genes/auto-coder/.cloud-manifest.json +0 -6
  210. package/genes/auto-coder/.gene-manifest.json +0 -8
  211. package/genes/auto-coder/SKILL.md +0 -400
  212. package/genes/auto-coder/phenotype.json +0 -28
  213. package/genes/auto-writer/.cloud-manifest.json +0 -6
  214. package/genes/auto-writer/.gene-manifest.json +0 -8
  215. package/genes/auto-writer/SKILL.md +0 -361
  216. package/genes/auto-writer/phenotype.json +0 -28
  217. package/genes/brand-personality/.cloud-manifest.json +0 -6
  218. package/genes/brand-personality/.gene-manifest.json +0 -8
  219. package/genes/brand-personality/SKILL.md +0 -549
  220. package/genes/brand-personality/phenotype.json +0 -28
  221. package/genes/business-writer/.cloud-manifest.json +0 -6
  222. package/genes/business-writer/.gene-manifest.json +0 -8
  223. package/genes/business-writer/SKILL.md +0 -448
  224. package/genes/business-writer/phenotype.json +0 -28
  225. package/genes/citation-manager/.cloud-manifest.json +0 -6
  226. package/genes/citation-manager/.gene-manifest.json +0 -8
  227. package/genes/citation-manager/SKILL.md +0 -279
  228. package/genes/citation-manager/index.ts +0 -162
  229. package/genes/citation-manager/package.json +0 -1
  230. package/genes/citation-manager/phenotype.json +0 -50
  231. package/genes/code-complexity/.cloud-manifest.json +0 -6
  232. package/genes/code-complexity/README.md +0 -35
  233. package/genes/code-complexity/index.ts +0 -101
  234. package/genes/code-complexity/phenotype.json +0 -34
  235. package/genes/copywriter/.cloud-manifest.json +0 -6
  236. package/genes/copywriter/.gene-manifest.json +0 -8
  237. package/genes/copywriter/SKILL.md +0 -329
  238. package/genes/copywriter/phenotype.json +0 -28
  239. package/genes/creative-writer/.cloud-manifest.json +0 -6
  240. package/genes/creative-writer/.gene-manifest.json +0 -8
  241. package/genes/creative-writer/SKILL.md +0 -356
  242. package/genes/creative-writer/phenotype.json +0 -28
  243. package/genes/data-modeler/.cloud-manifest.json +0 -6
  244. package/genes/data-modeler/.gene-manifest.json +0 -8
  245. package/genes/data-modeler/SKILL.md +0 -486
  246. package/genes/data-modeler/phenotype.json +0 -28
  247. package/genes/debugger/.cloud-manifest.json +0 -6
  248. package/genes/debugger/.gene-manifest.json +0 -8
  249. package/genes/debugger/SKILL.md +0 -416
  250. package/genes/debugger/phenotype.json +0 -28
  251. package/genes/design-tokens/.cloud-manifest.json +0 -6
  252. package/genes/design-tokens/.gene-manifest.json +0 -8
  253. package/genes/design-tokens/SKILL.md +0 -222
  254. package/genes/design-tokens/index.ts +0 -128
  255. package/genes/design-tokens/package.json +0 -1
  256. package/genes/design-tokens/phenotype.json +0 -1
  257. package/genes/devops-automator/.cloud-manifest.json +0 -6
  258. package/genes/devops-automator/.gene-manifest.json +0 -8
  259. package/genes/devops-automator/SKILL.md +0 -490
  260. package/genes/devops-automator/phenotype.json +0 -28
  261. package/genes/doc-coauthoring/.cloud-manifest.json +0 -6
  262. package/genes/doc-coauthoring/.gene-manifest.json +0 -8
  263. package/genes/doc-coauthoring/SKILL.md +0 -375
  264. package/genes/doc-coauthoring/phenotype.json +0 -28
  265. package/genes/doc-retrieval/.cloud-manifest.json +0 -6
  266. package/genes/doc-retrieval/index.ts +0 -134
  267. package/genes/doc-retrieval/phenotype.json +0 -54
  268. package/genes/docs-writer/.cloud-manifest.json +0 -6
  269. package/genes/docs-writer/.gene-manifest.json +0 -8
  270. package/genes/docs-writer/SKILL.md +0 -492
  271. package/genes/docs-writer/phenotype.json +0 -28
  272. package/genes/evolve-life/.cloud-manifest.json +0 -6
  273. package/genes/evolve-life/.compile-result.json +0 -12
  274. package/genes/evolve-life/README.md +0 -52
  275. package/genes/evolve-life/gene.ir.wasm +0 -0
  276. package/genes/evolve-life/gene.wasm +0 -0
  277. package/genes/evolve-life/index.ts +0 -255
  278. package/genes/evolve-life/phenotype.json +0 -129
  279. package/genes/evolve-life-bitwise/.cloud-manifest.json +0 -6
  280. package/genes/evolve-life-bitwise/.compile-result.json +0 -12
  281. package/genes/evolve-life-bitwise/gene.ir.wasm +0 -0
  282. package/genes/evolve-life-bitwise/gene.wasm +0 -0
  283. package/genes/evolve-life-bitwise/index.ts +0 -273
  284. package/genes/evolve-life-bitwise/phenotype.json +0 -129
  285. package/genes/evolve-life-sparse/.cloud-manifest.json +0 -6
  286. package/genes/evolve-life-sparse/.compile-result.json +0 -12
  287. package/genes/evolve-life-sparse/gene.ir.wasm +0 -0
  288. package/genes/evolve-life-sparse/gene.wasm +0 -0
  289. package/genes/evolve-life-sparse/index.ts +0 -236
  290. package/genes/evolve-life-sparse/phenotype.json +0 -129
  291. package/genes/fact-checker/.cloud-manifest.json +0 -6
  292. package/genes/fact-checker/.gene-manifest.json +0 -8
  293. package/genes/fact-checker/SKILL.md +0 -373
  294. package/genes/fact-checker/phenotype.json +0 -28
  295. package/genes/git-workflow/.cloud-manifest.json +0 -6
  296. package/genes/git-workflow/.gene-manifest.json +0 -8
  297. package/genes/git-workflow/SKILL.md +0 -407
  298. package/genes/git-workflow/phenotype.json +0 -28
  299. package/genes/grammar-checker/.cloud-manifest.json +0 -6
  300. package/genes/grammar-checker/.gene-manifest.json +0 -8
  301. package/genes/grammar-checker/SKILL.md +0 -194
  302. package/genes/grammar-checker/index.ts +0 -168
  303. package/genes/grammar-checker/package.json +0 -1
  304. package/genes/grammar-checker/phenotype.json +0 -52
  305. package/genes/guard-balanced/.gene-manifest.json +0 -8
  306. package/genes/guard-balanced/phenotype.json +0 -105
  307. package/genes/guard-balanced/system-prompt.md +0 -23
  308. package/genes/guard-strict/.gene-manifest.json +0 -8
  309. package/genes/guard-strict/phenotype.json +0 -107
  310. package/genes/guard-strict/system-prompt.md +0 -18
  311. package/genes/json-validator/.cloud-manifest.json +0 -6
  312. package/genes/json-validator/README.md +0 -42
  313. package/genes/json-validator/index.ts +0 -112
  314. package/genes/json-validator/phenotype.json +0 -42
  315. package/genes/license-advisor/.cloud-manifest.json +0 -6
  316. package/genes/license-advisor/.gene-manifest.json +0 -8
  317. package/genes/license-advisor/SKILL.md +0 -117
  318. package/genes/license-advisor/phenotype.json +0 -28
  319. package/genes/logic-architect/.cloud-manifest.json +0 -6
  320. package/genes/logic-architect/.gene-manifest.json +0 -8
  321. package/genes/logic-architect/SKILL.md +0 -451
  322. package/genes/logic-architect/phenotype.json +0 -28
  323. package/genes/markdown-formatter/.cloud-manifest.json +0 -6
  324. package/genes/markdown-formatter/README.md +0 -34
  325. package/genes/markdown-formatter/index.ts +0 -86
  326. package/genes/markdown-formatter/phenotype.json +0 -32
  327. package/genes/orch/.cloud-manifest.json +0 -6
  328. package/genes/orch/.gene-manifest.json +0 -8
  329. package/genes/orch/SKILL.md +0 -504
  330. package/genes/orch/phenotype.json +0 -28
  331. package/genes/particle-barneshut/.cloud-manifest.json +0 -6
  332. package/genes/particle-barneshut/.compile-result.json +0 -12
  333. package/genes/particle-barneshut/README.md +0 -55
  334. package/genes/particle-barneshut/gene.ir.wasm +0 -0
  335. package/genes/particle-barneshut/gene.wasm +0 -0
  336. package/genes/particle-barneshut/index.ts +0 -486
  337. package/genes/particle-barneshut/phenotype.json +0 -137
  338. package/genes/particle-brute/.cloud-manifest.json +0 -6
  339. package/genes/particle-brute/.compile-result.json +0 -12
  340. package/genes/particle-brute/README.md +0 -55
  341. package/genes/particle-brute/gene.ir.wasm +0 -0
  342. package/genes/particle-brute/gene.wasm +0 -0
  343. package/genes/particle-brute/index.ts +0 -277
  344. package/genes/particle-brute/phenotype.json +0 -137
  345. package/genes/particle-spatial/.cloud-manifest.json +0 -6
  346. package/genes/particle-spatial/.compile-result.json +0 -12
  347. package/genes/particle-spatial/README.md +0 -53
  348. package/genes/particle-spatial/gene.ir.wasm +0 -0
  349. package/genes/particle-spatial/gene.wasm +0 -0
  350. package/genes/particle-spatial/index.ts +0 -352
  351. package/genes/particle-spatial/phenotype.json +0 -137
  352. package/genes/performance-optimizer/.cloud-manifest.json +0 -6
  353. package/genes/performance-optimizer/.gene-manifest.json +0 -8
  354. package/genes/performance-optimizer/SKILL.md +0 -480
  355. package/genes/performance-optimizer/phenotype.json +0 -28
  356. package/genes/plagiarism-checker/.cloud-manifest.json +0 -6
  357. package/genes/plagiarism-checker/.gene-manifest.json +0 -8
  358. package/genes/plagiarism-checker/SKILL.md +0 -342
  359. package/genes/plagiarism-checker/phenotype.json +0 -28
  360. package/genes/product-manager/.cloud-manifest.json +0 -6
  361. package/genes/product-manager/.gene-manifest.json +0 -8
  362. package/genes/product-manager/SKILL.md +0 -249
  363. package/genes/product-manager/phenotype.json +0 -28
  364. package/genes/project-reviewer/.cloud-manifest.json +0 -6
  365. package/genes/project-reviewer/.gene-manifest.json +0 -8
  366. package/genes/project-reviewer/SKILL.md +0 -312
  367. package/genes/project-reviewer/phenotype.json +0 -28
  368. package/genes/prompt-engineer/.cloud-manifest.json +0 -6
  369. package/genes/prompt-engineer/.gene-manifest.json +0 -8
  370. package/genes/prompt-engineer/SKILL.md +0 -411
  371. package/genes/prompt-engineer/phenotype.json +0 -28
  372. package/genes/prompt-review-perf/.gene-manifest.json +0 -8
  373. package/genes/prompt-review-perf/phenotype.json +0 -61
  374. package/genes/prompt-review-perf/system-prompt.md +0 -22
  375. package/genes/prompt-review-readability/.gene-manifest.json +0 -8
  376. package/genes/prompt-review-readability/phenotype.json +0 -60
  377. package/genes/prompt-review-readability/system-prompt.md +0 -21
  378. package/genes/prompt-review-security/.gene-manifest.json +0 -8
  379. package/genes/prompt-review-security/phenotype.json +0 -60
  380. package/genes/prompt-review-security/system-prompt.md +0 -21
  381. package/genes/readability-analyzer/.cloud-manifest.json +0 -6
  382. package/genes/readability-analyzer/.gene-manifest.json +0 -8
  383. package/genes/readability-analyzer/SKILL.md +0 -357
  384. package/genes/readability-analyzer/index.ts +0 -123
  385. package/genes/readability-analyzer/package.json +0 -1
  386. package/genes/readability-analyzer/phenotype.json +0 -35
  387. package/genes/rotifer-protocol/SKILL.md +0 -121
  388. package/genes/rule-router-frequency/.gene-manifest.json +0 -8
  389. package/genes/rule-router-frequency/phenotype.json +0 -76
  390. package/genes/rule-router-frequency/system-prompt.md +0 -26
  391. package/genes/rule-router-relevance/.gene-manifest.json +0 -8
  392. package/genes/rule-router-relevance/phenotype.json +0 -76
  393. package/genes/rule-router-relevance/system-prompt.md +0 -29
  394. package/genes/security-auditor/.cloud-manifest.json +0 -6
  395. package/genes/security-auditor/.gene-manifest.json +0 -8
  396. package/genes/security-auditor/SKILL.md +0 -494
  397. package/genes/security-auditor/phenotype.json +0 -28
  398. package/genes/seo-optimizer/.cloud-manifest.json +0 -6
  399. package/genes/seo-optimizer/.gene-manifest.json +0 -8
  400. package/genes/seo-optimizer/SKILL.md +0 -327
  401. package/genes/seo-optimizer/index.ts +0 -206
  402. package/genes/seo-optimizer/package.json +0 -1
  403. package/genes/seo-optimizer/phenotype.json +0 -1
  404. package/genes/source-linker/.cloud-manifest.json +0 -6
  405. package/genes/source-linker/index.ts +0 -88
  406. package/genes/source-linker/phenotype.json +0 -45
  407. package/genes/style-optimizer/.cloud-manifest.json +0 -6
  408. package/genes/style-optimizer/.gene-manifest.json +0 -8
  409. package/genes/style-optimizer/SKILL.md +0 -285
  410. package/genes/style-optimizer/phenotype.json +0 -28
  411. package/genes/tech-lead/.cloud-manifest.json +0 -6
  412. package/genes/tech-lead/.gene-manifest.json +0 -8
  413. package/genes/tech-lead/SKILL.md +0 -451
  414. package/genes/tech-lead/phenotype.json +0 -28
  415. package/genes/test-wrap/.cloud-manifest.json +0 -6
  416. package/genes/test-wrap/.gene-manifest.json +0 -8
  417. package/genes/test-wrap/phenotype.json +0 -28
  418. package/genes/testing-strategist/.cloud-manifest.json +0 -6
  419. package/genes/testing-strategist/.gene-manifest.json +0 -8
  420. package/genes/testing-strategist/SKILL.md +0 -500
  421. package/genes/testing-strategist/phenotype.json +0 -28
  422. package/genes/text-summarizer/.cloud-manifest.json +0 -6
  423. package/genes/text-summarizer/README.md +0 -34
  424. package/genes/text-summarizer/index.ts +0 -122
  425. package/genes/text-summarizer/phenotype.json +0 -32
  426. package/genes/tone-analyzer/.cloud-manifest.json +0 -6
  427. package/genes/tone-analyzer/.gene-manifest.json +0 -8
  428. package/genes/tone-analyzer/SKILL.md +0 -410
  429. package/genes/tone-analyzer/phenotype.json +0 -28
  430. package/genes/translator/.cloud-manifest.json +0 -6
  431. package/genes/translator/.gene-manifest.json +0 -8
  432. package/genes/translator/SKILL.md +0 -355
  433. package/genes/translator/phenotype.json +0 -28
  434. package/genes/ui-components/.cloud-manifest.json +0 -6
  435. package/genes/ui-components/.gene-manifest.json +0 -8
  436. package/genes/ui-components/SKILL.md +0 -467
  437. package/genes/ui-components/phenotype.json +0 -28
  438. package/genes/uiux-designer/.cloud-manifest.json +0 -6
  439. package/genes/uiux-designer/.gene-manifest.json +0 -8
  440. package/genes/uiux-designer/SKILL.md +0 -353
  441. package/genes/uiux-designer/phenotype.json +0 -28
  442. package/genes/url-extractor/.cloud-manifest.json +0 -6
  443. package/genes/url-extractor/README.md +0 -37
  444. package/genes/url-extractor/index.ts +0 -86
  445. package/genes/url-extractor/phenotype.json +0 -48
  446. package/genes/ux-patterns/.cloud-manifest.json +0 -6
  447. package/genes/ux-patterns/.gene-manifest.json +0 -8
  448. package/genes/ux-patterns/SKILL.md +0 -872
  449. package/genes/ux-patterns/phenotype.json +0 -28
  450. package/genes/web3-components/.cloud-manifest.json +0 -6
  451. package/genes/web3-components/.gene-manifest.json +0 -8
  452. package/genes/web3-components/SKILL.md +0 -390
  453. package/genes/web3-components/phenotype.json +0 -28
package/CHANGELOG.md CHANGED
@@ -5,6 +5,35 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.8.6] - 2026-04-16
9
+
10
+ ### Fixed
11
+
12
+ - **Javy async Gene WASM trap** — `express()` returning a Promise now produces a clear error message instead of an opaque "Pending jobs in the event queue" WASM trap ([#29](https://github.com/rotifer-protocol/rotifer-playground/pull/29))
13
+ - **Compile cache ignoring source changes** — `rotifer compile` now prefers TypeScript/JavaScript source files over a stale `gene.wasm`; previously, the existing WASM was reused even after source edits ([#29](https://github.com/rotifer-protocol/rotifer-playground/pull/29))
14
+ - **irHash serialization mismatch** — phenotype `irHash` field is now stripped before passing to the native Rust binding, preventing serde deserialization failures on the native execution path ([#29](https://github.com/rotifer-protocol/rotifer-playground/pull/29))
15
+ - **WASM sandbox fuel exhaustion** — default `max_fuel` increased from 1M to 500M; default memory raised to 256 MiB; timeout extended to 60s — Javy/QuickJS Genes no longer hit "fuel exhausted" on trivial workloads ([#29](https://github.com/rotifer-protocol/rotifer-playground/pull/29))
16
+
17
+ ### Added
18
+
19
+ - **Native addon distribution** — prebuilt native bindings are now shipped via platform-specific npm packages (`@rotifer/playground-darwin-arm64`, `-darwin-x64`, `-linux-x64-gnu`, `-win32-x64-msvc`); `npm install` automatically pulls the correct binary for the user's platform ([#28](https://github.com/rotifer-protocol/rotifer-playground/issues/28))
20
+ - **`napi-build.yml` reusable workflow** — 4-platform matrix build for native addons (macOS ARM/x64, Linux x64, Windows x64)
21
+ - **`sync:native-versions` script** — one-command version sync across all platform packages
22
+ - **Version alignment checks** — `verify:versions` now validates platform package versions and `optionalDependencies` consistency
23
+
24
+ ### Changed
25
+
26
+ - Release pipeline now builds and publishes native addons before the main package (`native-build → publish-native → publish`)
27
+ - CI `rust-check` job now verifies napi compilation with `@napi-rs/cli` instead of `cargo build`
28
+
29
+ ## [0.8.5] - 2026-04-08
30
+
31
+ ### Changed
32
+
33
+ - **Public release-line consolidation** — aligned the CLI package with the current public `v0.8.5` release line across rotifer.dev, IDE/plugin distribution surfaces, and MCP installation metadata
34
+ - **Shipped v0.8.x surface clarified** — current release messaging now reflects the already-shipped Skill→Gene migration path, CLI UX refresh, version update notifications, and related ecosystem-facing improvements from the `v0.8.x` cycle
35
+ - **Reserved version gap documented** — `v0.8.2` to `v0.8.4` remain reserved internal iteration numbers rather than retroactively published public releases
36
+
8
37
  ## [0.8.1] - 2026-03-27
9
38
 
10
39
  ### Added
@@ -18,6 +47,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
47
  - SVG animation generator with rotifer.dev design system alignment
19
48
  - Experiment results with 3 reproducible runs
20
49
 
50
+ ### Changed
51
+
52
+ - **Reputation model alignment** — cold-start `R(g)` now uses phase-based weights (W0/W1/W2) instead of a fixed 0.5/0.3/0.2 split
53
+ - **Creator reputation** — now uses a diminishing-returns weighted sum of positive gene reputations, instead of a plain average
54
+ - **Arena safety scoring** — `V(g)` now incorporates the shipped static security scanner (`Security_Leak_Risk`) during `arena submit`
55
+
21
56
  ## [0.8.0] - 2026-02-17
22
57
 
23
58
  ### Added
@@ -67,12 +102,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
67
102
 
68
103
  ### Added
69
104
 
70
- - **CLI: `rotifer info <gene-id>`** — display detailed gene information (description, domain, version, fitness, reputation)
105
+ - **CLI: `rotifer info <gene-ref>`** — display detailed gene information (description, domain, version, fitness, reputation)
71
106
  - **CLI: `rotifer list`** — list local genes in current project with optional `--domain` filter
72
107
  - **CLI: `rotifer run <gene-name>`** — directly execute a single gene with WASM sandbox or Node.js fallback
73
108
  - **CLI: `rotifer versions <owner> <name>`** — display version history chain for a gene
74
109
  - **CLI: `rotifer whoami`** — show current authentication status
75
- - **CLI: `rotifer stats <gene-id>`** — display download statistics for a gene
110
+ - **CLI: `rotifer stats <gene-ref>`** — display download statistics for a gene
76
111
  - **CLI: `rotifer compare <id...>`** — compare 2-5 genes side by side by fitness and reputation
77
112
 
78
113
  ### Changed
@@ -179,7 +214,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
179
214
  - Phenotype schema display (inputSchema/outputSchema)
180
215
  - Stats: version, R(g), downloads, WASM size, dates
181
216
  - One-click install command copy
182
- - **Developer Profile Pages** — each developer has a page at `/developers/[user]/` with:
217
+ - **Creator Profile Pages** — each creator has a page at `/developers/[user]/` with:
183
218
  - R(d) reputation score and stats grid
184
219
  - Published gene list with links
185
220
  - **Gene Registry Upgrade** — `/genes/` listing page now fetches from Cloud API
@@ -266,13 +301,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
266
301
 
267
302
  ### Added
268
303
 
269
- - **Reputation System** — measurable trust signals for genes and developers
304
+ - **Reputation System** — measurable trust signals for genes and creators
270
305
  - Gene reputation R(g) = α·Arena + β·Usage + γ·Stability (weights: 0.5, 0.3, 0.2)
271
- - Developer reputation R(d) = avg(gene reputations) + community bonus
306
+ - Creator reputation R(d) initially launched as a plain average of gene reputations plus community bonus
272
307
  - Time-based decay (5%/month, floor at 0.01) prevents reputation stagnation
273
- - `rotifer reputation <gene-id>` — view gene reputation breakdown
274
- - `rotifer reputation --mine` — view your developer reputation
275
- - `rotifer reputation --leaderboard` — top developers ranked by reputation
308
+ - `rotifer reputation <gene-ref>` — view gene reputation breakdown
309
+ - `rotifer reputation --mine` — view your creator reputation
310
+ - `rotifer reputation --leaderboard` — top creators ranked by reputation
276
311
  - Database migration `003_reputation.sql` with `gene_reputation` and `developer_reputation` tables
277
312
  - Server-side reputation computation via PostgreSQL functions
278
313
  - Reputation leaderboard API (`get_reputation_leaderboard()`)
@@ -309,16 +344,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
309
344
 
310
345
  ### Added
311
346
 
312
- - **Cloud Binding** — Cross-developer gene sharing via Supabase-backed REST API
347
+ - **Cloud Binding** — Cross-creator gene sharing via Supabase-backed REST API
313
348
  - `rotifer login` — GitHub OAuth authentication via PKCE flow
314
349
  - `rotifer logout` — Clear cloud credentials
315
350
  - `rotifer publish <gene>` — Upload gene (phenotype + WASM) to cloud registry, saves `.cloud-manifest.json`
316
351
  - `rotifer search [query]` — Search and browse cloud gene registry
317
- - `rotifer install <gene-id>` — Download gene from cloud to local project
352
+ - `rotifer install <gene-ref>` — Download gene from cloud to local project
318
353
  - Cloud Binding REST API specification (`docs/cloud-binding-api.md`)
319
354
  - Supabase database schema with RLS policies (see `supabase/README.md` for self-hosting guide)
320
355
 
321
- - **Cloud Arena** — Remote Arena competition across developers
356
+ - **Cloud Arena** — Remote Arena competition across creators
322
357
  - `rotifer arena submit --cloud` — Submit gene to cloud Arena
323
358
  - `rotifer arena list --cloud` — View cloud Arena rankings
324
359
  - `rotifer arena watch --cloud` — Real-time cloud ranking updates (polling)
package/README.md CHANGED
@@ -5,11 +5,11 @@
5
5
  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
6
6
  [![Node.js](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org/)
7
7
  [![Protocol](https://img.shields.io/badge/Protocol-Frozen-orange)](https://github.com/rotifer-protocol/rotifer-spec)
8
- [![Discord](https://img.shields.io/discord/placeholder?label=Discord&logo=discord&color=5865F2)](https://discord.gg/6d4JrfMr)
8
+ [![Discord](https://img.shields.io/discord/placeholder?label=Discord&logo=discord&color=5865F2)](https://rotifer.dev/discord)
9
9
 
10
- Development environment for the **Rotifer Protocol** — build genes, compete in Arenas, share via Cloud, and simulate agent evolution.
10
+ Development environment for the **Rotifer Protocol** — **WASM-Native, Polyglot by Design**: build genes in TypeScript / Rust / AssemblyScript / Go / C, compete in Arenas, share via Cloud, and simulate agent evolution.
11
11
 
12
- > **Status:** v0.8.0 (Iron Shell) Security hardening, WASM sandbox testing, P2P Protocol RFC, Epoch automation, AI docs assistant, WebMCP Phase 1, plus all v0.7 features (Gene lifecycle, IR compiler, Cloud Binding, Reputation, V(g) scanner, badges, MCP Server). P2P implementation and L4 Collective Immunity are planned — see [Implementation Status](#implementation-status) below.
12
+ > **Status:** v0.8.5public playground for gene development, Arena competition, and protocol experimentation. This public release line consolidates the shipped `v0.8.x` surface into one coherent version. See [CHANGELOG.md](CHANGELOG.md) for detailed release history. P2P implementation and L4 Collective Immunity are still planned — see [Implementation Status](#implementation-status) below.
13
13
 
14
14
  ---
15
15
 
@@ -29,6 +29,18 @@ npx @rotifer/playground init my-project
29
29
 
30
30
  ---
31
31
 
32
+ ## First Agent in Seconds
33
+
34
+ ```bash
35
+ rotifer init my-project && cd my-project
36
+ rotifer hello --list-templates
37
+ rotifer hello
38
+ ```
39
+
40
+ `rotifer init` bootstraps the local Arena and Genesis genes. `rotifer hello` is the preset-agent entrypoint: pick a curated template and run an agent immediately.
41
+
42
+ ---
43
+
32
44
  ## 30-Second Demo
33
45
 
34
46
  ```bash
@@ -55,7 +67,7 @@ $ rotifer init my-project
55
67
  ✓ Project ready: my-project
56
68
  ```
57
69
 
58
- One command. Five Genesis genes. A living Arena.
70
+ One command boots the Arena. `rotifer hello` turns those bundled genes into your first preset agent.
59
71
 
60
72
  ---
61
73
 
@@ -72,21 +84,26 @@ You see an Arena with 6 genes ranked by fitness. No configuration needed.
72
84
  ### Act 2 — Aha (5 minutes)
73
85
 
74
86
  ```bash
75
- rotifer scan genes/ # Discover candidate functions
76
- rotifer wrap hello-world # Wrap as a gene (generates Phenotype)
77
- rotifer test hello-world # Run L2 sandbox tests (WASM sandbox for compiled genes)
78
- rotifer test hello-world --compliance # Run structural compliance checks
79
- rotifer arena submit hello-world # Submit to Arena (admission gate)
80
- rotifer arena list # See your gene's ranking
87
+ rotifer hello --list-templates # See curated Quick Start and Power templates
88
+ rotifer hello # Pick a template interactively and run it now
89
+ rotifer agent list # Inspect the generated hello-* agent
81
90
  ```
82
91
 
83
- Your existing code becomes a gene and competes in the Arena.
92
+ Bundled genes become a working preset agent in seconds.
84
93
 
85
94
  ### Act 3 — Hooked (30 minutes)
86
95
 
87
- Write a TypeScript gene and compile it to Native WASM automatically:
96
+ Turn your own code into a gene, then build a custom agent:
88
97
 
89
98
  ```bash
99
+ # Wrap existing code as a gene
100
+ rotifer scan genes/ # Discover candidate functions
101
+ rotifer wrap hello-world # Wrap as a gene (generates Phenotype)
102
+ rotifer test hello-world # Run sandbox tests (WASM sandbox for compiled genes)
103
+ rotifer test hello-world --compliance # Run structural compliance checks
104
+ rotifer arena submit hello-world # Submit to Arena (admission gate)
105
+ rotifer arena list # See your gene's ranking
106
+
90
107
  # Write a gene in TypeScript — same language, zero learning curve
91
108
  mkdir genes/my-search && cat > genes/my-search/index.ts << 'EOF'
92
109
  export function express(input: { query: string }) {
@@ -95,8 +112,8 @@ export function express(input: { query: string }) {
95
112
  EOF
96
113
 
97
114
  rotifer wrap my-search --domain search
98
- rotifer compile my-search # TS → JS → WASM (Javy) → Rotifer IR
99
- rotifer arena submit my-search # Watch it climb the rankings
115
+ rotifer compile my-search # TS → JS → WASM → Rotifer IR
116
+ rotifer arena submit my-search # Watch it climb the rankings
100
117
  rotifer arena list --domain search # Compare against Genesis genes
101
118
 
102
119
  # Create an Agent with a gene genome (supports Seq, Par, Cond, Try)
@@ -109,7 +126,7 @@ rotifer agent run search-bot --input '{"query":"rotifer protocol"}'
109
126
  rotifer agent run search-bot --no-sandbox # Force Node.js fallback
110
127
  ```
111
128
 
112
- **v0.3 highlight:** `rotifer compile` auto-detects TypeScript genes and compiles them to Native WASM via [Javy](https://github.com/bytecodealliance/javy) (QuickJS→WASM). No separate toolchain required.
129
+ `rotifer compile` auto-detects TypeScript genes and compiles them to Native WASM. No separate toolchain required.
113
130
 
114
131
  ---
115
132
 
@@ -119,16 +136,15 @@ rotifer agent run search-bot --no-sandbox # Force Node.js fallback
119
136
  playground/
120
137
  ├── crates/
121
138
  │ ├── rotifer-core/ Rust: types, sandbox, arena, algebra, fitness, storage
122
- │ └── rotifer-napi/ napi-rs bridge: Rust ↔ Node.js FFI
123
- ├── src/ TypeScript CLI (commander.js)
124
- │ ├── commands/ 16 CLI commands
139
+ │ └── rotifer-napi/ Native bridge: Rust ↔ Node.js FFI
140
+ ├── src/ TypeScript CLI and supporting modules
141
+ │ ├── commands/ CLI command modules
125
142
  │ ├── cloud/ Cloud Binding client (auth, API, types)
126
- ├── utils/ Config, display, NAPI binding, Javy compiler
127
- │ └── errors/ Rust-style error formatting
128
- ├── genes/ 5 Genesis genes (bundled)
143
+ └── utils/ Config, display, native binding, IR compiler
144
+ ├── genes/ Bundled gene directories
129
145
  ├── supabase/ Cloud Binding self-hosting guide
130
146
  ├── templates/ Gene + composition scaffolds
131
- └── tests/ Unit + E2E test suites (114 tests)
147
+ └── tests/ Unit + E2E test suites
132
148
  ```
133
149
 
134
150
  ### Layers
@@ -136,31 +152,46 @@ playground/
136
152
  | Layer | Technology | Responsibility |
137
153
  |-------|-----------|----------------|
138
154
  | **CLI** | TypeScript + commander.js | User interface, command routing, display |
139
- | **Bridge** | napi-rs (cdylib) | Rust-to-Node.js FFI binding |
140
- | **Core** | Rust + wasmtime | WASM sandbox (Direct + WASI), Arena engine, Algebra executor, Fitness computation, SQLite storage |
155
+ | **Bridge** | Native bridge (cdylib) | Rust-to-Node.js FFI binding |
156
+ | **Core** | Rust + WASM runtime | WASM sandbox (Direct + WASI), Arena engine, Algebra executor, Fitness computation, SQLite storage |
141
157
 
142
158
  ---
143
159
 
144
160
  ## CLI Commands
145
161
 
162
+ Run `rotifer --help` for the grouped command list. The commands below cover the main local, cloud, arena, and agent workflows.
163
+
146
164
  | Command | Description |
147
165
  |---------|-------------|
148
- | `rotifer init [name]` | Initialize a new gene project with Genesis genes |
149
- | `rotifer scan [path]` | Scan source files for candidate gene functions |
150
- | `rotifer wrap <name>` | Wrap a function as a Rotifer gene |
151
- | `rotifer test [name]` | Test a gene (WASM sandbox preferred, `--compliance` for structural checks) |
152
- | `rotifer compile [name]` | Compile gene to Rotifer IR (auto TS→WASM via Javy) |
153
- | `rotifer arena submit <name>` | Submit a gene to the Arena (`--cloud` for Cloud Arena) |
154
- | `rotifer arena list` | List Arena rankings (`--cloud` for Cloud Arena) |
155
- | `rotifer arena watch <domain>` | Watch Arena rankings live (`--cloud` for Cloud Arena) |
156
- | `rotifer login` | Log in to Rotifer Cloud via GitHub OAuth |
166
+ | `rotifer init [gene-name]` | Initialize a new gene project with Genesis genes |
167
+ | `rotifer hello [--template <id>]` | Create and run a preset agent from curated templates inside a Rotifer project |
168
+ | `rotifer scan [path]` | Scan for candidate genes and local skills |
169
+ | `rotifer wrap <gene-name>` | Wrap a function or SKILL.md as a gene |
170
+ | `rotifer test [gene-name]` | Test a gene (WASM sandbox preferred, `--compliance` for structural checks) |
171
+ | `rotifer compile [gene-name]` | Compile gene to Rotifer IR (auto TS→WASM) |
172
+ | `rotifer run <gene-name>` | Execute a single local gene directly |
173
+ | `rotifer list` | List local genes in the current project |
174
+ | `rotifer login` | Log in to Rotifer Cloud (OAuth) |
157
175
  | `rotifer logout` | Log out from Rotifer Cloud |
158
- | `rotifer publish <name>` | Publish a gene to Rotifer Cloud |
176
+ | `rotifer publish [gene-name]` | Publish gene(s) to Rotifer Cloud |
159
177
  | `rotifer search [query]` | Search genes on Rotifer Cloud |
160
- | `rotifer install <gene-id>` | Install a gene from Rotifer Cloud |
161
- | `rotifer agent create <name>` | Create an Agent (`--composition Seq\|Par\|Cond\|Try`) |
178
+ | `rotifer install <gene-ref>` | Install a gene from Cloud (UUID, name, or content hash) |
179
+ | `rotifer info <gene-ref>` | View gene details (local or Cloud) |
180
+ | `rotifer stats <gene-ref>` | View download statistics for a gene |
181
+ | `rotifer compare [gene-refs...]` | Compare 2–5 genes by reputation and downloads |
182
+ | `rotifer reputation [gene-ref]` | View gene and creator reputation scores |
183
+ | `rotifer versions <owner> <gene-name>` | View version history chain for a gene |
184
+ | `rotifer arena submit <gene-name>` | Submit a gene to the Arena (`--cloud` for Cloud Arena) |
185
+ | `rotifer arena list` | List Arena rankings (`--cloud` for Cloud Arena) |
186
+ | `rotifer arena watch <domain>` | Watch Arena rankings live (`--cloud` for Cloud Arena) |
187
+ | `rotifer agent create <agent-name>` | Create an Agent (`--composition Seq\|Par\|Cond\|Try\|TryPool`) |
162
188
  | `rotifer agent list` | List all agents |
163
- | `rotifer agent run <name>` | Execute genome pipeline (WASM sandbox, `--no-sandbox` for Node.js) |
189
+ | `rotifer agent run <agent-name>` | Execute genome pipeline (WASM sandbox, `--no-sandbox` for Node.js) |
190
+ | `rotifer vg [path]` | V(g) security scan for gene/skill code |
191
+ | `rotifer network` | P2P gene network commands (see `rotifer network --help`) |
192
+ | `rotifer self-update` | Check for updates and upgrade Rotifer packages |
193
+ | `rotifer config` | Manage global Rotifer configuration |
194
+ | `rotifer whoami` | Show current authentication status |
164
195
 
165
196
  ---
166
197
 
@@ -194,17 +225,28 @@ See `templates/composition/` for JSON examples.
194
225
 
195
226
  ---
196
227
 
228
+ ## Examples
229
+
230
+ The `examples/` directory contains reference implementations and experiments:
231
+
232
+ | Directory | Description |
233
+ |-----------|-------------|
234
+ | `examples/mcp-migration/` | How to migrate MCP Tools into Rotifer Genes |
235
+ | `examples/api-apocalypse/` | API fault-tolerance experiment — baseline vs Rotifer agent with domain failover |
236
+
237
+ ---
238
+
197
239
  ## Development
198
240
 
199
241
  ```bash
200
242
  git clone https://github.com/rotifer-protocol/rotifer-playground.git
201
- cd playground
243
+ cd rotifer-playground
202
244
 
203
245
  # TypeScript CLI
204
246
  npm install
205
247
  npm run build # Build to dist/
206
- npm test # Run 114 TypeScript tests
207
- npm run lint # Type check only
248
+ npm test # Run the TypeScript test suite (Vitest)
249
+ npm run lint # Type-check and lint src/
208
250
 
209
251
  # Rust Core (requires Rust toolchain)
210
252
  cargo check -p rotifer-core
@@ -218,18 +260,18 @@ bash demo.sh
218
260
 
219
261
  ## Implementation Status
220
262
 
221
- > This project is in **alpha**. The table below shows the honest implementation status of each URAA layer as of v0.5.5.
263
+ > This project is in **alpha**. The table below shows the honest implementation status of each URAA layer.
222
264
 
223
265
  | URAA Layer | Spec Name | Status | What Works | What's Planned |
224
266
  |------------|-----------|--------|------------|----------------|
225
267
  | **L0** | Kernel | **~35%** | `L0Gate` pre-execution checks (domain, resource, network, filesystem); Audit log | EthicalBoundary, State Anchoring, Trust Anchor |
226
- | **L1** | Synthesis | **~95%** | WASM sandbox (wasmtime), IR compiler, Javy TS→WASM, NAPI bridge | Full WASI capability negotiation |
268
+ | **L1** | Synthesis | **~95%** | WASM sandbox, IR compiler, TS→WASM compilation, native bridge | Full WASI capability negotiation |
227
269
  | **L2** | Calibration | **~40%** | Schema validation, sandbox testing, `--compliance` checks | Static analysis, controlled field trial |
228
- | **L3** | Competition | **~60%** | Arena ranking, F(g) multiplicative model, R(g) reputation, Cloud Registry | P2P HLT broadcasting (stub only), hot-loading, retirement |
270
+ | **L3** | Competition | **~60%** | Arena ranking, F(g) multiplicative model, R(g) reputation, Cloud Registry | P2P HLT broadcasting (planned), hot-loading, retirement |
229
271
  | **L4** | Collective Immunity | **0%** | — | Threat broadcasting, emergency rollback, cross-node consensus |
230
272
  | **Algebra** | Composition | **~90%** | All 5 operators in Rust; CLI supports Seq/Par/Cond/Try | DataFlowGraph |
231
273
 
232
- **Key limitation:** L4 depends on L3's P2P network, which is currently a stub. Full L4 is targeted for v0.9+.
274
+ **Key limitation:** L4 depends on L3's P2P network, which is planned. Full L4 is targeted for v0.9+.
233
275
 
234
276
  ---
235
277
 
@@ -242,7 +284,7 @@ Targets **Rotifer Protocol Specification** (Frozen). See [Implementation Status]
242
284
  | **Full** | Phenotype, AlgebraExpr, Fitness F(g), Arena | Core gene lifecycle |
243
285
  | **Functional** | WASM Sandbox, L0 Gate, Reputation R(g) | L0 at ~35%, expanding |
244
286
  | **Simplified** | Agent Lifecycle, Gene Lifecycle, RotiferBinding | MVP subset |
245
- | **Stub/Planned** | P2P HLT, Formal Verification, Cross-Binding Consistency, ZK Proofs, L4 Immunity | Roadmap items |
287
+ | **Planned** | P2P HLT, Formal Verification, Cross-Binding Consistency, ZK Proofs, L4 Immunity | Roadmap items |
246
288
 
247
289
  Changes driven by implementation feedback are proposed through the ADR process.
248
290
 
@@ -250,24 +292,16 @@ Changes driven by implementation feedback are proposed through the ADR process.
250
292
 
251
293
  ## Roadmap
252
294
 
253
- - [x] **v0.1** Core CLI + Genesis genes + Arena
254
- - [x] **v0.2** — IR compiler pipeline, live Arena watching, NAPI bridge
255
- - [x] **v0.3** — Frontend SDK: TS→WASM auto-compilation via Javy, WASI sandbox support
256
- - [x] **v0.4** — Cloud Binding: publish/search/install genes, Cloud Arena, GitHub OAuth
257
- - [x] **v0.5** — Reputation System, developer documentation, L0 Gate
258
- - [x] **v0.5.5** — Foundation Hardening: WASM sandbox enforcement, L0 Gate integration, F(g) spec alignment
259
- - [ ] **v0.6** — Web Registry: dynamic gene pages, developer profiles, gene cold start (≥50 genes)
260
- - [ ] **v0.6.5** — Cross-Binding Proof: `RotiferBinding` trait, Web3 Mock Binding, IR interop validation
261
- - [ ] **v0.7** — Hybrid Gene, IDE plugins (Cursor/VS Code), developer dogfooding
262
- - [ ] **v0.8** — Security hardening, P2P protocol design (RFC)
263
- - [ ] **v0.9** — P2P network (metadata discovery), economic framework design
264
- - [ ] **v1.0** — Stable release: L0-L3 complete, economic system, security audit
295
+ See [CHANGELOG.md](CHANGELOG.md) for detailed release history. Upcoming milestones:
296
+
297
+ - **v0.9** — P2P network (metadata discovery), economic framework design
298
+ - **v1.0** — Stable release: L0-L3 complete, economic system, security audit
265
299
 
266
300
  ---
267
301
 
268
302
  ## Community
269
303
 
270
- - [Discord](https://discord.gg/6d4JrfMr) — Join the conversation
304
+ - [Discord](https://rotifer.dev/discord) — Join the conversation
271
305
  - [GitHub Discussions](https://github.com/rotifer-protocol/rotifer-playground/discussions) — Questions and proposals
272
306
 
273
307
  ## Contributing
package/README.zh.md CHANGED
@@ -5,11 +5,11 @@
5
5
  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
6
6
  [![Node.js](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org/)
7
7
  [![Protocol](https://img.shields.io/badge/Protocol-Frozen-orange)](https://github.com/rotifer-protocol/rotifer-spec)
8
- [![Discord](https://img.shields.io/discord/placeholder?label=Discord&logo=discord&color=5865F2)](https://discord.gg/6d4JrfMr)
8
+ [![Discord](https://img.shields.io/discord/placeholder?label=Discord&logo=discord&color=5865F2)](https://rotifer.dev/discord)
9
9
 
10
10
  **Rotifer Protocol** 的开发环境——构建基因、运行 Arena 竞争、通过 Cloud 共享、模拟代理进化。
11
11
 
12
- > **状态:** v0.8.0(Iron Shell)— 安全加固、WASM 沙箱测试、P2P Protocol RFC、Epoch 自动化、AI 文档助手、WebMCP Phase 1,以及 v0.7 全部功能(基因生命周期、IR 编译器、Cloud Binding、声誉系统、V(g) 扫描器、徽章、MCP Server)。P2P 实现和 L4 集体免疫为规划中功能——详见下方[实现状态](#实现状态)。
12
+ > **状态:** v0.8.5——面向基因开发、Arena 竞争和协议实验的公开 Playground。本次公开版本线将已落地的 `v0.8.x` 能力收口为同一版本口径。详细版本历史请参见 [CHANGELOG.md](CHANGELOG.md)P2P 实现与 L4 集体免疫仍在规划中——详见下方[实现状态](#实现状态)。
13
13
 
14
14
  ---
15
15
 
@@ -29,6 +29,18 @@ npx @rotifer/playground init my-project
29
29
 
30
30
  ---
31
31
 
32
+ ## 几秒钟跑通第一个 Agent
33
+
34
+ ```bash
35
+ rotifer init my-project && cd my-project
36
+ rotifer hello --list-templates
37
+ rotifer hello
38
+ ```
39
+
40
+ `rotifer init` 先把本地 Arena 和 Genesis genes 建起来;`rotifer hello` 则是预设 agent 的主入口:从精选模板里挑一个,立刻创建并运行。
41
+
42
+ ---
43
+
32
44
  ## 30 秒演示
33
45
 
34
46
  ```bash
@@ -55,7 +67,7 @@ $ rotifer init my-project
55
67
  ✓ Project ready: my-project
56
68
  ```
57
69
 
58
- 一条命令。五个 Genesis 基因。一个活跃的 Arena
70
+ 一条命令先把 Arena 跑起来;`rotifer hello` 再把这些内置基因收口成你的第一个预设 agent
59
71
 
60
72
  ---
61
73
 
@@ -72,22 +84,27 @@ rotifer init my-project && cd my-project
72
84
  ### 第二幕——Aha(5 分钟)
73
85
 
74
86
  ```bash
75
- rotifer scan genes/ # 发现候选基因函数
76
- rotifer wrap hello-world # 包装为基因(生成 Phenotype)
77
- rotifer test hello-world # L2 沙箱中运行测试(已编译基因走 WASM 沙箱)
78
- rotifer test hello-world --compliance # 运行结构性合规检查
79
- rotifer arena submit hello-world # 提交到 Arena(准入评估)
80
- rotifer arena list # 查看你的基因排名
87
+ rotifer hello --list-templates # 查看 Quick Start / Power 模板
88
+ rotifer hello # 交互式选择模板并立即运行
89
+ rotifer agent list # 查看生成的 hello-* agent
81
90
  ```
82
91
 
83
- 你的现有代码变成了基因,并在 Arena 中竞争。
92
+ 内置基因在几秒内就能组合成一个可运行的预设 agent。
84
93
 
85
94
  ### 第三幕——Hooked(30 分钟)
86
95
 
87
- TypeScript 编写基因,自动编译为原生 WASM
96
+ 把自己的代码变成基因,再组合成自定义 Agent
88
97
 
89
98
  ```bash
90
- # 用 TypeScript 写基因——同一语言,零学习成本
99
+ # 先把现有代码包装成基因
100
+ rotifer scan genes/ # 发现候选基因函数
101
+ rotifer wrap hello-world # 包装为基因(生成 Phenotype)
102
+ rotifer test hello-world # 在 L2 沙箱中运行测试(已编译基因走 WASM 沙箱)
103
+ rotifer test hello-world --compliance # 运行结构性合规检查
104
+ rotifer arena submit hello-world # 提交到 Arena(准入评估)
105
+ rotifer arena list # 查看你的基因排名
106
+
107
+ # 再用 TypeScript 写一个新基因——同一语言,零学习成本
91
108
  mkdir genes/my-search && cat > genes/my-search/index.ts << 'EOF'
92
109
  export function express(input: { query: string }) {
93
110
  return { results: [`Found: ${input.query}`], total: 1 };
@@ -95,8 +112,8 @@ export function express(input: { query: string }) {
95
112
  EOF
96
113
 
97
114
  rotifer wrap my-search --domain search
98
- rotifer compile my-search # TS → JS → WASM (Javy) → Rotifer IR
99
- rotifer arena submit my-search # 观察它攀升排名
115
+ rotifer compile my-search # TS → JS → WASM (Javy) → Rotifer IR
116
+ rotifer arena submit my-search # 观察它攀升排名
100
117
  rotifer arena list --domain search # 与 Genesis 基因对比
101
118
 
102
119
  # 创建一个拥有基因组的 Agent(支持 Seq, Par, Cond, Try)
@@ -109,7 +126,7 @@ rotifer agent run search-bot --input '{"query":"rotifer protocol"}'
109
126
  rotifer agent run search-bot --no-sandbox # 强制 Node.js 回退
110
127
  ```
111
128
 
112
- **v0.3 亮点:** `rotifer compile` 自动检测 TypeScript 基因,通过 [Javy](https://github.com/bytecodealliance/javy)(QuickJS→WASM)编译为原生 WASM,无需额外工具链。
129
+ **说明:** `rotifer compile` 自动检测 TypeScript 基因,通过 [Javy](https://github.com/bytecodealliance/javy)(QuickJS→WASM)编译为原生 WASM,无需额外工具链。
113
130
 
114
131
  ---
115
132
 
@@ -120,13 +137,14 @@ playground/
120
137
  ├── crates/
121
138
  │ ├── rotifer-core/ Rust: 类型、沙箱、Arena、代数、适应度、存储
122
139
  │ └── rotifer-napi/ napi-rs 桥接: Rust ↔ Node.js FFI
123
- ├── src/ TypeScript CLI (commander.js)
124
- │ ├── commands/ 11 个 CLI 命令
125
- │ ├── utils/ 配置、显示、NAPI 绑定、Javy 编译器
126
- │ └── errors/ Rust 风格的错误格式化
127
- ├── genes/ 5 Genesis 基因(内置)
140
+ ├── src/ TypeScript CLI 与支撑模块
141
+ │ ├── commands/ CLI 命令模块
142
+ │ ├── cloud/ Cloud Binding 客户端(auth、API、types)
143
+ │ └── utils/ 配置、显示、NAPI 绑定、IR 编译器
144
+ ├── genes/ 随仓库提供的 gene 目录
145
+ ├── supabase/ Cloud Binding 自托管指南
128
146
  ├── templates/ 基因 + 组合脚手架模板
129
- └── tests/ 单元测试 + E2E 测试(91 个测试)
147
+ └── tests/ 单元测试 + E2E 测试
130
148
  ```
131
149
 
132
150
  ### 分层
@@ -141,19 +159,39 @@ playground/
141
159
 
142
160
  ## CLI 命令
143
161
 
162
+ 运行 `rotifer --help` 查看按模块分组的命令列表。下面列出最常用的本地、Cloud、Arena 与 Agent 工作流命令:
163
+
144
164
  | 命令 | 说明 |
145
165
  |------|------|
146
- | `rotifer init [name]` | 初始化新的基因项目(包含 Genesis 基因) |
147
- | `rotifer scan [path]` | 扫描源文件中的候选基因函数 |
148
- | `rotifer wrap <name>` | 将函数包装为 Rotifer 基因 |
149
- | `rotifer test [name]` | 测试基因(WASM 沙箱优先,`--compliance` 运行结构性检查) |
150
- | `rotifer compile [name]` | 编译基因为 Rotifer IR(自动 TS→WASM via Javy) |
151
- | `rotifer arena submit <name>` | 将基因提交到 Arena(`--cloud` 提交到 Cloud Arena) |
152
- | `rotifer arena list` | 列出 Arena 排名(`--cloud` 查看 Cloud Arena) |
153
- | `rotifer arena watch <domain>` | 观察 Arena 排名(`--cloud` 查看 Cloud Arena) |
154
- | `rotifer agent create <name>` | 创建 Agent(`--composition Seq\|Par\|Cond\|Try`) |
155
- | `rotifer agent list` | 列出所有 Agent |
156
- | `rotifer agent run <name>` | 执行基因组管线(WASM 沙箱,`--no-sandbox` Node.js) |
166
+ | `rotifer init [gene-name]` | 初始化新的 Rotifer 基因项目 |
167
+ | `rotifer hello [--template <id>]` | Rotifer 项目内从精选模板创建并运行一个预设 agent |
168
+ | `rotifer scan [path]` | 扫描候选基因和本地技能 |
169
+ | `rotifer wrap <gene-name>` | 将函数或 `SKILL.md` 包装为基因 |
170
+ | `rotifer test [gene-name]` | 在沙箱中测试基因 |
171
+ | `rotifer compile [gene-name]` | 将基因编译为 Rotifer IR(WASM) |
172
+ | `rotifer run <gene-name>` | 直接执行单个本地基因 |
173
+ | `rotifer list` | 列出当前项目中的本地基因 |
174
+ | `rotifer login` | 登录 Rotifer Cloud |
175
+ | `rotifer logout` | Rotifer Cloud 登出 |
176
+ | `rotifer publish [gene-name]` | 将基因发布到 Rotifer Cloud |
177
+ | `rotifer search [query]` | 在 Rotifer Cloud 中搜索基因 |
178
+ | `rotifer install <gene-ref>` | 从 Rotifer Cloud 安装基因 |
179
+ | `rotifer info <gene-ref>` | 查看基因详情(本地或 Cloud) |
180
+ | `rotifer stats <gene-ref>` | 查看基因下载统计 |
181
+ | `rotifer compare [gene-refs...]` | 按声誉与下载量对比 2-5 个基因 |
182
+ | `rotifer reputation [gene-ref]` | 查看基因与创作者声誉分数 |
183
+ | `rotifer versions <owner> <gene-name>` | 查看某个基因的版本链 |
184
+ | `rotifer arena submit <gene-name>` | 将基因提交到 Arena 竞争 |
185
+ | `rotifer arena list` | 列出 Arena 排名 |
186
+ | `rotifer arena watch <domain>` | 实时观察 Arena 排名 |
187
+ | `rotifer agent create <agent-name>` | 用基因组创建 Agent |
188
+ | `rotifer agent list` | 列出全部 Agent |
189
+ | `rotifer agent run <agent-name>` | 执行 Agent 的基因组管线 |
190
+ | `rotifer vg [path]` | 对基因代码执行 V(g) 安全扫描 |
191
+ | `rotifer network` | P2P 基因网络命令 |
192
+ | `rotifer self-update` | 检查并升级 Rotifer 包 |
193
+ | `rotifer config` | 管理全局 Rotifer 配置 |
194
+ | `rotifer whoami` | 显示当前认证状态 |
157
195
 
158
196
  ---
159
197
 
@@ -187,17 +225,28 @@ JSON 示例参见 `templates/composition/`。
187
225
 
188
226
  ---
189
227
 
228
+ ## 示例
229
+
230
+ `examples/` 目录包含参考实现和实验:
231
+
232
+ | 目录 | 说明 |
233
+ |------|------|
234
+ | `examples/mcp-migration/` | 如何将 MCP Tool 迁移为 Rotifer Gene |
235
+ | `examples/api-apocalypse/` | API 容错实验——基线 Agent 与 Rotifer 域故障转移 Agent 的对比 |
236
+
237
+ ---
238
+
190
239
  ## 开发
191
240
 
192
241
  ```bash
193
242
  git clone https://github.com/rotifer-protocol/rotifer-playground.git
194
- cd playground
243
+ cd rotifer-playground
195
244
 
196
245
  # TypeScript CLI
197
246
  npm install
198
247
  npm run build # 构建到 dist/
199
- npm test # 运行 91 个 TypeScript 测试
200
- npm run lint # 仅类型检查
248
+ npm test # 运行 TypeScript 测试套件(Vitest)
249
+ npm run lint # 对 src/ 做类型检查和 lint
201
250
 
202
251
  # Rust Core(需要 Rust 工具链)
203
252
  cargo check -p rotifer-core
@@ -211,7 +260,7 @@ bash demo.sh
211
260
 
212
261
  ## 实现状态
213
262
 
214
- > 本项目处于 **alpha** 阶段。下表展示了截至 v0.5.5 各 URAA 层级的真实实现状态。
263
+ > 本项目处于 **alpha** 阶段。下表展示了当前各 URAA 层级的真实实现状态。
215
264
 
216
265
  | URAA 层级 | 规范名称 | 完成度 | 已可用 | 规划中 |
217
266
  |-----------|---------|--------|--------|--------|
@@ -243,24 +292,16 @@ bash demo.sh
243
292
 
244
293
  ## 路线图
245
294
 
246
- - [x] **v0.1** — 核心 CLI + Genesis 基因 + Arena
247
- - [x] **v0.2** — IR 编译器管线、实时 Arena 观察、NAPI 桥接
248
- - [x] **v0.3** — 前端 SDK:TS→WASM 自动编译 via Javy、WASI 沙箱支持
249
- - [x] **v0.4** — Cloud Binding:发布/搜索/安装基因、Cloud Arena、GitHub OAuth
250
- - [x] **v0.5** — 声誉系统、开发者文档、L0 Gate
251
- - [x] **v0.5.5** — 地基加固:WASM 沙箱强制执行、L0 Gate 集成、F(g) 规范对齐
252
- - [ ] **v0.6** — Web Registry:动态 Gene 页面、开发者主页、Gene 冷启动(≥50 个 Gene)
253
- - [ ] **v0.6.5** — 跨绑定验证:`RotiferBinding` trait、Web3 Mock Binding、IR 互操作验证
254
- - [ ] **v0.7** — 混合基因、IDE 插件(Cursor/VS Code)、开发者 dogfooding
255
- - [ ] **v0.8** — 安全加固、P2P 协议设计(RFC)
256
- - [ ] **v0.9** — P2P 网络(元数据发现)、经济体系设计
257
- - [ ] **v1.0** — 稳定版:L0-L3 完整、经济体系上线、安全审计
295
+ 详细发布历史请参见 [CHANGELOG.md](CHANGELOG.md)。接下来的里程碑:
296
+
297
+ - **v0.9** — P2P 网络(元数据发现)、经济体系设计
298
+ - **v1.0** — 稳定版:L0-L3 完整、经济体系上线、安全审计
258
299
 
259
300
  ---
260
301
 
261
302
  ## 社区
262
303
 
263
- - [Discord](https://discord.gg/6d4JrfMr) — 加入讨论
304
+ - [Discord](https://rotifer.dev/discord) — 加入讨论
264
305
  - [GitHub Discussions](https://github.com/rotifer-protocol/rotifer-playground/discussions) — 问题与提案
265
306
 
266
307
  ## 参与贡献