@rotifer/playground 0.8.1 → 0.8.5

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 (443) hide show
  1. package/CHANGELOG.md +25 -11
  2. package/README.md +64 -48
  3. package/README.zh.md +60 -37
  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 +154 -36
  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 +113 -30
  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 +60 -37
  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 +127 -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 +26 -9
  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 +95 -75
  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.map +1 -1
  122. package/dist/utils/binding.js +5 -4
  123. package/dist/utils/binding.js.map +1 -1
  124. package/dist/utils/content-hash.d.ts +3 -0
  125. package/dist/utils/content-hash.d.ts.map +1 -0
  126. package/dist/utils/content-hash.js +25 -0
  127. package/dist/utils/content-hash.js.map +1 -0
  128. package/dist/utils/display.d.ts +44 -1
  129. package/dist/utils/display.d.ts.map +1 -1
  130. package/dist/utils/display.js +443 -14
  131. package/dist/utils/display.js.map +1 -1
  132. package/dist/utils/domain-suggest.d.ts.map +1 -1
  133. package/dist/utils/domain-suggest.js +3 -3
  134. package/dist/utils/domain-suggest.js.map +1 -1
  135. package/dist/utils/javy-compiler.js +9 -3
  136. package/dist/utils/javy-compiler.js.map +1 -1
  137. package/dist/utils/open-browser.d.ts +7 -3
  138. package/dist/utils/open-browser.d.ts.map +1 -1
  139. package/dist/utils/open-browser.js +15 -4
  140. package/dist/utils/open-browser.js.map +1 -1
  141. package/dist/utils/palette.d.ts +49 -0
  142. package/dist/utils/palette.d.ts.map +1 -0
  143. package/dist/utils/palette.js +80 -0
  144. package/dist/utils/palette.js.map +1 -0
  145. package/dist/utils/private-fs.d.ts +3 -0
  146. package/dist/utils/private-fs.d.ts.map +1 -0
  147. package/dist/utils/private-fs.js +25 -0
  148. package/dist/utils/private-fs.js.map +1 -0
  149. package/dist/utils/project-root.d.ts +2 -0
  150. package/dist/utils/project-root.d.ts.map +1 -0
  151. package/dist/utils/project-root.js +49 -0
  152. package/dist/utils/project-root.js.map +1 -0
  153. package/dist/utils/run-logger.d.ts +24 -0
  154. package/dist/utils/run-logger.d.ts.map +1 -0
  155. package/dist/utils/run-logger.js +70 -0
  156. package/dist/utils/run-logger.js.map +1 -0
  157. package/dist/utils/update-check.d.ts +20 -0
  158. package/dist/utils/update-check.d.ts.map +1 -0
  159. package/dist/utils/update-check.js +155 -0
  160. package/dist/utils/update-check.js.map +1 -0
  161. package/dist/utils/user-config.d.ts +10 -0
  162. package/dist/utils/user-config.d.ts.map +1 -0
  163. package/dist/utils/user-config.js +54 -0
  164. package/dist/utils/user-config.js.map +1 -0
  165. package/dist/utils/validate-gene-name.d.ts +7 -0
  166. package/dist/utils/validate-gene-name.d.ts.map +1 -0
  167. package/dist/utils/validate-gene-name.js +28 -0
  168. package/dist/utils/validate-gene-name.js.map +1 -0
  169. package/genes/genesis-code-format/phenotype.json +4 -3
  170. package/genes/genesis-file-read/phenotype.json +4 -3
  171. package/genes/genesis-l0-constraint/phenotype.json +4 -3
  172. package/genes/genesis-web-search/phenotype.json +5 -4
  173. package/genes/genesis-web-search-lite/phenotype.json +4 -3
  174. package/package.json +29 -8
  175. package/scripts/postinstall.js +38 -0
  176. package/dist/errors/formatter.d.ts +0 -25
  177. package/dist/errors/formatter.d.ts.map +0 -1
  178. package/dist/errors/formatter.js +0 -43
  179. package/dist/errors/formatter.js.map +0 -1
  180. package/genes/academic-writer/.cloud-manifest.json +0 -6
  181. package/genes/academic-writer/.gene-manifest.json +0 -8
  182. package/genes/academic-writer/SKILL.md +0 -274
  183. package/genes/academic-writer/phenotype.json +0 -28
  184. package/genes/ai-components/.cloud-manifest.json +0 -6
  185. package/genes/ai-components/.gene-manifest.json +0 -8
  186. package/genes/ai-components/SKILL.md +0 -381
  187. package/genes/ai-components/phenotype.json +0 -28
  188. package/genes/algorithmic-art/.cloud-manifest.json +0 -6
  189. package/genes/algorithmic-art/.gene-manifest.json +0 -8
  190. package/genes/algorithmic-art/SKILL.md +0 -405
  191. package/genes/algorithmic-art/phenotype.json +0 -28
  192. package/genes/answer-synthesizer/.cloud-manifest.json +0 -6
  193. package/genes/answer-synthesizer/index.ts +0 -194
  194. package/genes/answer-synthesizer/phenotype.json +0 -61
  195. package/genes/api-designer/.cloud-manifest.json +0 -6
  196. package/genes/api-designer/.gene-manifest.json +0 -8
  197. package/genes/api-designer/SKILL.md +0 -456
  198. package/genes/api-designer/phenotype.json +0 -28
  199. package/genes/auto-coder/.cloud-manifest.json +0 -6
  200. package/genes/auto-coder/.gene-manifest.json +0 -8
  201. package/genes/auto-coder/SKILL.md +0 -400
  202. package/genes/auto-coder/phenotype.json +0 -28
  203. package/genes/auto-writer/.cloud-manifest.json +0 -6
  204. package/genes/auto-writer/.gene-manifest.json +0 -8
  205. package/genes/auto-writer/SKILL.md +0 -361
  206. package/genes/auto-writer/phenotype.json +0 -28
  207. package/genes/brand-personality/.cloud-manifest.json +0 -6
  208. package/genes/brand-personality/.gene-manifest.json +0 -8
  209. package/genes/brand-personality/SKILL.md +0 -549
  210. package/genes/brand-personality/phenotype.json +0 -28
  211. package/genes/business-writer/.cloud-manifest.json +0 -6
  212. package/genes/business-writer/.gene-manifest.json +0 -8
  213. package/genes/business-writer/SKILL.md +0 -448
  214. package/genes/business-writer/phenotype.json +0 -28
  215. package/genes/citation-manager/.cloud-manifest.json +0 -6
  216. package/genes/citation-manager/.gene-manifest.json +0 -8
  217. package/genes/citation-manager/SKILL.md +0 -279
  218. package/genes/citation-manager/index.ts +0 -162
  219. package/genes/citation-manager/package.json +0 -1
  220. package/genes/citation-manager/phenotype.json +0 -50
  221. package/genes/code-complexity/.cloud-manifest.json +0 -6
  222. package/genes/code-complexity/README.md +0 -35
  223. package/genes/code-complexity/index.ts +0 -101
  224. package/genes/code-complexity/phenotype.json +0 -34
  225. package/genes/copywriter/.cloud-manifest.json +0 -6
  226. package/genes/copywriter/.gene-manifest.json +0 -8
  227. package/genes/copywriter/SKILL.md +0 -329
  228. package/genes/copywriter/phenotype.json +0 -28
  229. package/genes/creative-writer/.cloud-manifest.json +0 -6
  230. package/genes/creative-writer/.gene-manifest.json +0 -8
  231. package/genes/creative-writer/SKILL.md +0 -356
  232. package/genes/creative-writer/phenotype.json +0 -28
  233. package/genes/data-modeler/.cloud-manifest.json +0 -6
  234. package/genes/data-modeler/.gene-manifest.json +0 -8
  235. package/genes/data-modeler/SKILL.md +0 -486
  236. package/genes/data-modeler/phenotype.json +0 -28
  237. package/genes/debugger/.cloud-manifest.json +0 -6
  238. package/genes/debugger/.gene-manifest.json +0 -8
  239. package/genes/debugger/SKILL.md +0 -416
  240. package/genes/debugger/phenotype.json +0 -28
  241. package/genes/design-tokens/.cloud-manifest.json +0 -6
  242. package/genes/design-tokens/.gene-manifest.json +0 -8
  243. package/genes/design-tokens/SKILL.md +0 -222
  244. package/genes/design-tokens/index.ts +0 -128
  245. package/genes/design-tokens/package.json +0 -1
  246. package/genes/design-tokens/phenotype.json +0 -1
  247. package/genes/devops-automator/.cloud-manifest.json +0 -6
  248. package/genes/devops-automator/.gene-manifest.json +0 -8
  249. package/genes/devops-automator/SKILL.md +0 -490
  250. package/genes/devops-automator/phenotype.json +0 -28
  251. package/genes/doc-coauthoring/.cloud-manifest.json +0 -6
  252. package/genes/doc-coauthoring/.gene-manifest.json +0 -8
  253. package/genes/doc-coauthoring/SKILL.md +0 -375
  254. package/genes/doc-coauthoring/phenotype.json +0 -28
  255. package/genes/doc-retrieval/.cloud-manifest.json +0 -6
  256. package/genes/doc-retrieval/index.ts +0 -134
  257. package/genes/doc-retrieval/phenotype.json +0 -54
  258. package/genes/docs-writer/.cloud-manifest.json +0 -6
  259. package/genes/docs-writer/.gene-manifest.json +0 -8
  260. package/genes/docs-writer/SKILL.md +0 -492
  261. package/genes/docs-writer/phenotype.json +0 -28
  262. package/genes/evolve-life/.cloud-manifest.json +0 -6
  263. package/genes/evolve-life/.compile-result.json +0 -12
  264. package/genes/evolve-life/README.md +0 -52
  265. package/genes/evolve-life/gene.ir.wasm +0 -0
  266. package/genes/evolve-life/gene.wasm +0 -0
  267. package/genes/evolve-life/index.ts +0 -255
  268. package/genes/evolve-life/phenotype.json +0 -129
  269. package/genes/evolve-life-bitwise/.cloud-manifest.json +0 -6
  270. package/genes/evolve-life-bitwise/.compile-result.json +0 -12
  271. package/genes/evolve-life-bitwise/gene.ir.wasm +0 -0
  272. package/genes/evolve-life-bitwise/gene.wasm +0 -0
  273. package/genes/evolve-life-bitwise/index.ts +0 -273
  274. package/genes/evolve-life-bitwise/phenotype.json +0 -129
  275. package/genes/evolve-life-sparse/.cloud-manifest.json +0 -6
  276. package/genes/evolve-life-sparse/.compile-result.json +0 -12
  277. package/genes/evolve-life-sparse/gene.ir.wasm +0 -0
  278. package/genes/evolve-life-sparse/gene.wasm +0 -0
  279. package/genes/evolve-life-sparse/index.ts +0 -236
  280. package/genes/evolve-life-sparse/phenotype.json +0 -129
  281. package/genes/fact-checker/.cloud-manifest.json +0 -6
  282. package/genes/fact-checker/.gene-manifest.json +0 -8
  283. package/genes/fact-checker/SKILL.md +0 -373
  284. package/genes/fact-checker/phenotype.json +0 -28
  285. package/genes/git-workflow/.cloud-manifest.json +0 -6
  286. package/genes/git-workflow/.gene-manifest.json +0 -8
  287. package/genes/git-workflow/SKILL.md +0 -407
  288. package/genes/git-workflow/phenotype.json +0 -28
  289. package/genes/grammar-checker/.cloud-manifest.json +0 -6
  290. package/genes/grammar-checker/.gene-manifest.json +0 -8
  291. package/genes/grammar-checker/SKILL.md +0 -194
  292. package/genes/grammar-checker/index.ts +0 -168
  293. package/genes/grammar-checker/package.json +0 -1
  294. package/genes/grammar-checker/phenotype.json +0 -52
  295. package/genes/guard-balanced/.gene-manifest.json +0 -8
  296. package/genes/guard-balanced/phenotype.json +0 -105
  297. package/genes/guard-balanced/system-prompt.md +0 -23
  298. package/genes/guard-strict/.gene-manifest.json +0 -8
  299. package/genes/guard-strict/phenotype.json +0 -107
  300. package/genes/guard-strict/system-prompt.md +0 -18
  301. package/genes/json-validator/.cloud-manifest.json +0 -6
  302. package/genes/json-validator/README.md +0 -42
  303. package/genes/json-validator/index.ts +0 -112
  304. package/genes/json-validator/phenotype.json +0 -42
  305. package/genes/license-advisor/.cloud-manifest.json +0 -6
  306. package/genes/license-advisor/.gene-manifest.json +0 -8
  307. package/genes/license-advisor/SKILL.md +0 -117
  308. package/genes/license-advisor/phenotype.json +0 -28
  309. package/genes/logic-architect/.cloud-manifest.json +0 -6
  310. package/genes/logic-architect/.gene-manifest.json +0 -8
  311. package/genes/logic-architect/SKILL.md +0 -451
  312. package/genes/logic-architect/phenotype.json +0 -28
  313. package/genes/markdown-formatter/.cloud-manifest.json +0 -6
  314. package/genes/markdown-formatter/README.md +0 -34
  315. package/genes/markdown-formatter/index.ts +0 -86
  316. package/genes/markdown-formatter/phenotype.json +0 -32
  317. package/genes/orch/.cloud-manifest.json +0 -6
  318. package/genes/orch/.gene-manifest.json +0 -8
  319. package/genes/orch/SKILL.md +0 -504
  320. package/genes/orch/phenotype.json +0 -28
  321. package/genes/particle-barneshut/.cloud-manifest.json +0 -6
  322. package/genes/particle-barneshut/.compile-result.json +0 -12
  323. package/genes/particle-barneshut/README.md +0 -55
  324. package/genes/particle-barneshut/gene.ir.wasm +0 -0
  325. package/genes/particle-barneshut/gene.wasm +0 -0
  326. package/genes/particle-barneshut/index.ts +0 -486
  327. package/genes/particle-barneshut/phenotype.json +0 -137
  328. package/genes/particle-brute/.cloud-manifest.json +0 -6
  329. package/genes/particle-brute/.compile-result.json +0 -12
  330. package/genes/particle-brute/README.md +0 -55
  331. package/genes/particle-brute/gene.ir.wasm +0 -0
  332. package/genes/particle-brute/gene.wasm +0 -0
  333. package/genes/particle-brute/index.ts +0 -277
  334. package/genes/particle-brute/phenotype.json +0 -137
  335. package/genes/particle-spatial/.cloud-manifest.json +0 -6
  336. package/genes/particle-spatial/.compile-result.json +0 -12
  337. package/genes/particle-spatial/README.md +0 -53
  338. package/genes/particle-spatial/gene.ir.wasm +0 -0
  339. package/genes/particle-spatial/gene.wasm +0 -0
  340. package/genes/particle-spatial/index.ts +0 -352
  341. package/genes/particle-spatial/phenotype.json +0 -137
  342. package/genes/performance-optimizer/.cloud-manifest.json +0 -6
  343. package/genes/performance-optimizer/.gene-manifest.json +0 -8
  344. package/genes/performance-optimizer/SKILL.md +0 -480
  345. package/genes/performance-optimizer/phenotype.json +0 -28
  346. package/genes/plagiarism-checker/.cloud-manifest.json +0 -6
  347. package/genes/plagiarism-checker/.gene-manifest.json +0 -8
  348. package/genes/plagiarism-checker/SKILL.md +0 -342
  349. package/genes/plagiarism-checker/phenotype.json +0 -28
  350. package/genes/product-manager/.cloud-manifest.json +0 -6
  351. package/genes/product-manager/.gene-manifest.json +0 -8
  352. package/genes/product-manager/SKILL.md +0 -249
  353. package/genes/product-manager/phenotype.json +0 -28
  354. package/genes/project-reviewer/.cloud-manifest.json +0 -6
  355. package/genes/project-reviewer/.gene-manifest.json +0 -8
  356. package/genes/project-reviewer/SKILL.md +0 -312
  357. package/genes/project-reviewer/phenotype.json +0 -28
  358. package/genes/prompt-engineer/.cloud-manifest.json +0 -6
  359. package/genes/prompt-engineer/.gene-manifest.json +0 -8
  360. package/genes/prompt-engineer/SKILL.md +0 -411
  361. package/genes/prompt-engineer/phenotype.json +0 -28
  362. package/genes/prompt-review-perf/.gene-manifest.json +0 -8
  363. package/genes/prompt-review-perf/phenotype.json +0 -61
  364. package/genes/prompt-review-perf/system-prompt.md +0 -22
  365. package/genes/prompt-review-readability/.gene-manifest.json +0 -8
  366. package/genes/prompt-review-readability/phenotype.json +0 -60
  367. package/genes/prompt-review-readability/system-prompt.md +0 -21
  368. package/genes/prompt-review-security/.gene-manifest.json +0 -8
  369. package/genes/prompt-review-security/phenotype.json +0 -60
  370. package/genes/prompt-review-security/system-prompt.md +0 -21
  371. package/genes/readability-analyzer/.cloud-manifest.json +0 -6
  372. package/genes/readability-analyzer/.gene-manifest.json +0 -8
  373. package/genes/readability-analyzer/SKILL.md +0 -357
  374. package/genes/readability-analyzer/index.ts +0 -123
  375. package/genes/readability-analyzer/package.json +0 -1
  376. package/genes/readability-analyzer/phenotype.json +0 -35
  377. package/genes/rotifer-protocol/SKILL.md +0 -121
  378. package/genes/rule-router-frequency/.gene-manifest.json +0 -8
  379. package/genes/rule-router-frequency/phenotype.json +0 -76
  380. package/genes/rule-router-frequency/system-prompt.md +0 -26
  381. package/genes/rule-router-relevance/.gene-manifest.json +0 -8
  382. package/genes/rule-router-relevance/phenotype.json +0 -76
  383. package/genes/rule-router-relevance/system-prompt.md +0 -29
  384. package/genes/security-auditor/.cloud-manifest.json +0 -6
  385. package/genes/security-auditor/.gene-manifest.json +0 -8
  386. package/genes/security-auditor/SKILL.md +0 -494
  387. package/genes/security-auditor/phenotype.json +0 -28
  388. package/genes/seo-optimizer/.cloud-manifest.json +0 -6
  389. package/genes/seo-optimizer/.gene-manifest.json +0 -8
  390. package/genes/seo-optimizer/SKILL.md +0 -327
  391. package/genes/seo-optimizer/index.ts +0 -206
  392. package/genes/seo-optimizer/package.json +0 -1
  393. package/genes/seo-optimizer/phenotype.json +0 -1
  394. package/genes/source-linker/.cloud-manifest.json +0 -6
  395. package/genes/source-linker/index.ts +0 -88
  396. package/genes/source-linker/phenotype.json +0 -45
  397. package/genes/style-optimizer/.cloud-manifest.json +0 -6
  398. package/genes/style-optimizer/.gene-manifest.json +0 -8
  399. package/genes/style-optimizer/SKILL.md +0 -285
  400. package/genes/style-optimizer/phenotype.json +0 -28
  401. package/genes/tech-lead/.cloud-manifest.json +0 -6
  402. package/genes/tech-lead/.gene-manifest.json +0 -8
  403. package/genes/tech-lead/SKILL.md +0 -451
  404. package/genes/tech-lead/phenotype.json +0 -28
  405. package/genes/test-wrap/.cloud-manifest.json +0 -6
  406. package/genes/test-wrap/.gene-manifest.json +0 -8
  407. package/genes/test-wrap/phenotype.json +0 -28
  408. package/genes/testing-strategist/.cloud-manifest.json +0 -6
  409. package/genes/testing-strategist/.gene-manifest.json +0 -8
  410. package/genes/testing-strategist/SKILL.md +0 -500
  411. package/genes/testing-strategist/phenotype.json +0 -28
  412. package/genes/text-summarizer/.cloud-manifest.json +0 -6
  413. package/genes/text-summarizer/README.md +0 -34
  414. package/genes/text-summarizer/index.ts +0 -122
  415. package/genes/text-summarizer/phenotype.json +0 -32
  416. package/genes/tone-analyzer/.cloud-manifest.json +0 -6
  417. package/genes/tone-analyzer/.gene-manifest.json +0 -8
  418. package/genes/tone-analyzer/SKILL.md +0 -410
  419. package/genes/tone-analyzer/phenotype.json +0 -28
  420. package/genes/translator/.cloud-manifest.json +0 -6
  421. package/genes/translator/.gene-manifest.json +0 -8
  422. package/genes/translator/SKILL.md +0 -355
  423. package/genes/translator/phenotype.json +0 -28
  424. package/genes/ui-components/.cloud-manifest.json +0 -6
  425. package/genes/ui-components/.gene-manifest.json +0 -8
  426. package/genes/ui-components/SKILL.md +0 -467
  427. package/genes/ui-components/phenotype.json +0 -28
  428. package/genes/uiux-designer/.cloud-manifest.json +0 -6
  429. package/genes/uiux-designer/.gene-manifest.json +0 -8
  430. package/genes/uiux-designer/SKILL.md +0 -353
  431. package/genes/uiux-designer/phenotype.json +0 -28
  432. package/genes/url-extractor/.cloud-manifest.json +0 -6
  433. package/genes/url-extractor/README.md +0 -37
  434. package/genes/url-extractor/index.ts +0 -86
  435. package/genes/url-extractor/phenotype.json +0 -48
  436. package/genes/ux-patterns/.cloud-manifest.json +0 -6
  437. package/genes/ux-patterns/.gene-manifest.json +0 -8
  438. package/genes/ux-patterns/SKILL.md +0 -872
  439. package/genes/ux-patterns/phenotype.json +0 -28
  440. package/genes/web3-components/.cloud-manifest.json +0 -6
  441. package/genes/web3-components/.gene-manifest.json +0 -8
  442. package/genes/web3-components/SKILL.md +0 -390
  443. package/genes/web3-components/phenotype.json +0 -28
@@ -1,467 +0,0 @@
1
- ---
2
- name: ui-components
3
- description: 参数化UI组件库,根据风格参数动态生成按钮、输入框、卡片等组件样式。当用户提到"按钮""输入框""卡片""表格""弹窗""导航"等组件时使用。
4
- ---
5
-
6
- # UI Components (参数化组件库)
7
-
8
- **定位**: 根据风格参数动态生成组件样式,而非从固定变体中选择。
9
-
10
- **依赖**:
11
- - [brand-personality](../brand-personality/SKILL.md) - 提供风格维度参数
12
- - [design-tokens](../design-tokens/SKILL.md) - 提供CSS变量
13
- - [ux-patterns](../ux-patterns/SKILL.md) - 提供文案和动效参数
14
-
15
- ---
16
-
17
- ## 参数化组件生成
18
-
19
- ### 核心思路
20
-
21
- ```
22
- 输入: 风格参数 (borderRadius, motionIntensity, contrast, colors...)
23
-
24
- 处理: 参数映射函数
25
-
26
- 输出: 组件CSS类/样式
27
- ```
28
-
29
- ### 参数到样式的映射
30
-
31
- ```typescript
32
- interface StyleParams {
33
- borderRadius: number; // 0-100 → 圆角
34
- motionIntensity: number; // 0-100 → 动效
35
- contrast: number; // 0-100 → 阴影/边框强度
36
- density: number; // 0-100 → 间距
37
- colors: {
38
- primary: string;
39
- secondary?: string;
40
- };
41
- }
42
-
43
- function generateButtonStyles(params: StyleParams) {
44
- const radius = Math.round(params.borderRadius * 0.32); // 0-32px
45
- const duration = 80 + params.motionIntensity * 4.2;
46
- const shadowOpacity = 0.05 + params.contrast * 0.002;
47
- const padding = params.density > 50 ? 'px-6 py-3' : 'px-4 py-2.5';
48
-
49
- return {
50
- base: `
51
- ${padding}
52
- bg-[${params.colors.primary}] text-white
53
- text-sm font-medium
54
- rounded-[${radius}px]
55
- transition-all duration-[${Math.round(duration)}ms]
56
- `,
57
- hover: params.contrast > 50
58
- ? `hover:shadow-lg hover:-translate-y-0.5`
59
- : `hover:brightness-110`,
60
- active: params.motionIntensity > 60
61
- ? `active:scale-95`
62
- : `active:brightness-95`
63
- };
64
- }
65
- ```
66
-
67
- ---
68
-
69
- ## 按钮 (Button)
70
-
71
- ### 参数化生成
72
-
73
- ```typescript
74
- function Button({ params, children }: { params: StyleParams; children: React.ReactNode }) {
75
- const radius = Math.round(params.borderRadius * 0.32);
76
- const duration = 80 + params.motionIntensity * 4.2;
77
-
78
- // 根据参数决定样式特性
79
- const useGradient = params.contrast > 70;
80
- const useShadow = params.contrast > 40;
81
- const useScale = params.motionIntensity > 50;
82
-
83
- return (
84
- <button
85
- className={`
86
- px-${params.density > 50 ? 6 : 4} py-${params.density > 50 ? 3 : 2.5}
87
- text-sm font-medium text-white
88
- rounded-[${radius}px]
89
- transition-all duration-[${Math.round(duration)}ms]
90
- ${useGradient
91
- ? 'bg-gradient-to-r from-[var(--color-primary)] to-[var(--color-secondary)]'
92
- : 'bg-[var(--color-primary)]'}
93
- ${useShadow ? 'shadow-md hover:shadow-lg' : ''}
94
- ${useScale ? 'hover:scale-[1.02] active:scale-95' : 'hover:brightness-110'}
95
- `}
96
- >
97
- {children}
98
- </button>
99
- );
100
- }
101
- ```
102
-
103
- ### 参数效果对照
104
-
105
- | 参数组合 | 效果 |
106
- |---------|------|
107
- | borderRadius: 15, motionIntensity: 15 | 小圆角,快速过渡,无缩放 |
108
- | borderRadius: 70, motionIntensity: 55 | 大圆角,中等过渡,轻微缩放 |
109
- | borderRadius: 85, motionIntensity: 80, contrast: 80 | 药丸形,弹性动效,渐变+阴影 |
110
-
111
- ### 示例输出
112
-
113
- ```html
114
- <!-- borderRadius: 20, motionIntensity: 30, contrast: 40 -->
115
- <button class="px-4 py-2.5 bg-[var(--color-primary)] text-white text-sm font-medium
116
- rounded-[6px] transition-all duration-[206ms]
117
- hover:brightness-110">
118
- 提交
119
- </button>
120
-
121
- <!-- borderRadius: 70, motionIntensity: 60, contrast: 60 -->
122
- <button class="px-6 py-3 bg-[var(--color-primary)] text-white text-sm font-medium
123
- rounded-[22px] shadow-md transition-all duration-[332ms]
124
- hover:shadow-lg hover:scale-[1.02] active:scale-95">
125
- 开始使用
126
- </button>
127
-
128
- <!-- borderRadius: 90, motionIntensity: 85, contrast: 80 -->
129
- <button class="px-6 py-3 text-white text-sm font-semibold
130
- rounded-full shadow-lg
131
- bg-gradient-to-r from-[var(--color-primary)] to-[var(--color-secondary)]
132
- transition-all duration-[437ms]
133
- hover:shadow-xl hover:scale-105 active:scale-95">
134
- Let's Go!
135
- </button>
136
- ```
137
-
138
- ---
139
-
140
- ## 卡片 (Card)
141
-
142
- ### 参数化生成
143
-
144
- ```typescript
145
- function generateCardStyles(params: StyleParams) {
146
- const radius = Math.round(params.borderRadius * 0.32) + 4; // 卡片圆角稍大
147
- const padding = 16 + params.density * 0.16; // 16-32px
148
- const duration = 80 + params.motionIntensity * 4.2;
149
-
150
- // 边框 vs 阴影
151
- const useShadow = params.contrast > 50;
152
- const borderStyle = useShadow
153
- ? 'border-transparent shadow-md'
154
- : 'border border-gray-100';
155
-
156
- // 悬停效果
157
- const hoverEffect = params.motionIntensity > 40
158
- ? 'hover:shadow-lg hover:-translate-y-1'
159
- : 'hover:border-gray-200';
160
-
161
- return {
162
- container: `
163
- bg-white rounded-[${radius}px] p-[${Math.round(padding)}px]
164
- ${borderStyle}
165
- transition-all duration-[${Math.round(duration)}ms]
166
- ${hoverEffect}
167
- `,
168
- title: `text-lg font-semibold text-gray-900 mb-2`,
169
- description: `text-sm text-gray-500 leading-relaxed`
170
- };
171
- }
172
- ```
173
-
174
- ### 示例输出
175
-
176
- ```html
177
- <!-- 低参数: borderRadius: 25, contrast: 35 -->
178
- <div class="bg-white rounded-[12px] p-5 border border-gray-100
179
- transition-all duration-[185ms]
180
- hover:border-gray-200">
181
- <h3 class="text-lg font-semibold text-gray-900 mb-2">标题</h3>
182
- <p class="text-sm text-gray-500">描述内容</p>
183
- </div>
184
-
185
- <!-- 高参数: borderRadius: 75, contrast: 65, motionIntensity: 60 -->
186
- <div class="bg-white rounded-[28px] p-7 shadow-md
187
- transition-all duration-[332ms]
188
- hover:shadow-lg hover:-translate-y-1">
189
- <h3 class="text-lg font-semibold text-gray-900 mb-2">温暖标题</h3>
190
- <p class="text-sm text-gray-500 leading-relaxed">温暖的描述文字</p>
191
- </div>
192
- ```
193
-
194
- ---
195
-
196
- ## 输入框 (Input)
197
-
198
- ### 参数化生成
199
-
200
- ```typescript
201
- function generateInputStyles(params: StyleParams) {
202
- const radius = Math.round(params.borderRadius * 0.28); // 输入框圆角稍小
203
- const duration = 80 + params.motionIntensity * 4.2;
204
-
205
- // 背景样式
206
- const bgStyle = params.contrast < 40
207
- ? 'bg-transparent border-b border-gray-300' // 下划线风格
208
- : 'bg-gray-50 border border-gray-200'; // 常规风格
209
-
210
- return `
211
- w-full px-4 py-2.5 text-sm text-gray-900
212
- ${bgStyle}
213
- rounded-[${radius}px]
214
- placeholder-gray-400
215
- transition-all duration-[${Math.round(duration)}ms]
216
- focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]/20
217
- focus:border-[var(--color-primary)]
218
- `;
219
- }
220
- ```
221
-
222
- ### 示例输出
223
-
224
- ```html
225
- <!-- 低对比度/极简: borderRadius: 10, contrast: 25 -->
226
- <input class="w-full px-4 py-2.5 text-sm text-gray-900
227
- bg-transparent border-b border-gray-300
228
- rounded-[3px] placeholder-gray-400
229
- transition-all duration-[122ms]
230
- focus:outline-none focus:border-[var(--color-primary)]"
231
- placeholder="请输入...">
232
-
233
- <!-- 高参数: borderRadius: 65, contrast: 55 -->
234
- <input class="w-full px-4 py-2.5 text-sm text-gray-900
235
- bg-gray-50 border border-gray-200
236
- rounded-[18px] placeholder-gray-400
237
- transition-all duration-[311ms]
238
- focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]/20
239
- focus:border-[var(--color-primary)]"
240
- placeholder="请输入...">
241
- ```
242
-
243
- ---
244
-
245
- ## 弹窗 (Modal)
246
-
247
- ### 参数化生成
248
-
249
- ```typescript
250
- function generateModalStyles(params: StyleParams) {
251
- const radius = Math.round(params.borderRadius * 0.32) + 8; // 弹窗圆角更大
252
- const duration = 80 + params.motionIntensity * 4.2;
253
- const padding = 20 + params.density * 0.12;
254
-
255
- // 入场动画
256
- const animation = params.motionIntensity > 60
257
- ? 'animate-pop-in' // 弹性缩放
258
- : 'animate-fade-in'; // 简单淡入
259
-
260
- return {
261
- overlay: `fixed inset-0 bg-black/30 backdrop-blur-sm z-40`,
262
- container: `
263
- fixed inset-0 flex items-center justify-center z-50 p-4
264
- `,
265
- content: `
266
- bg-white rounded-[${radius}px] shadow-xl w-full max-w-md
267
- ${animation}
268
- `,
269
- header: `px-${Math.round(padding / 4)} py-4 border-b border-gray-100`,
270
- body: `px-${Math.round(padding / 4)} py-4`,
271
- footer: `px-${Math.round(padding / 4)} py-4 bg-gray-50 flex justify-end gap-3
272
- rounded-b-[${radius}px]`
273
- };
274
- }
275
- ```
276
-
277
- ---
278
-
279
- ## 导航 (Navigation)
280
-
281
- ### 侧边栏参数化
282
-
283
- ```typescript
284
- function generateSidebarStyles(params: StyleParams) {
285
- const itemRadius = Math.round(params.borderRadius * 0.24);
286
- const duration = 80 + params.motionIntensity * 4.2;
287
-
288
- return {
289
- container: `w-64 h-screen bg-white border-r border-gray-100 p-4`,
290
- navItem: `
291
- flex items-center gap-3 px-3 py-2.5
292
- text-gray-600 text-sm
293
- rounded-[${itemRadius}px]
294
- transition-colors duration-[${Math.round(duration)}ms]
295
- hover:bg-gray-50
296
- `,
297
- navItemActive: `
298
- flex items-center gap-3 px-3 py-2.5
299
- text-[var(--color-primary)] font-medium text-sm
300
- rounded-[${itemRadius}px]
301
- bg-[var(--color-primary)]/5
302
- `
303
- };
304
- }
305
- ```
306
-
307
- ---
308
-
309
- ## 表格 (Table)
310
-
311
- ### 参数化生成
312
-
313
- ```typescript
314
- function generateTableStyles(params: StyleParams) {
315
- const containerRadius = Math.round(params.borderRadius * 0.32);
316
- const duration = 80 + params.motionIntensity * 4.2;
317
-
318
- return {
319
- container: `bg-white rounded-[${containerRadius}px] border border-gray-100 overflow-hidden`,
320
- header: `bg-gray-50 border-b border-gray-100`,
321
- headerCell: `px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider`,
322
- body: `divide-y divide-gray-50`,
323
- row: `hover:bg-gray-50 transition-colors duration-[${Math.round(duration * 0.5)}ms]`,
324
- cell: `px-6 py-4 text-sm text-gray-900`
325
- };
326
- }
327
- ```
328
-
329
- ---
330
-
331
- ## 反馈组件
332
-
333
- ### Toast 参数化
334
-
335
- ```typescript
336
- function generateToastStyles(params: StyleParams) {
337
- const radius = Math.round(params.borderRadius * 0.28);
338
- const duration = 80 + params.motionIntensity * 4.2;
339
-
340
- // 入场动画
341
- const animation = params.motionIntensity > 50
342
- ? 'animate-slide-up'
343
- : 'animate-fade-in';
344
-
345
- return `
346
- flex items-center gap-3 px-4 py-3
347
- bg-white border border-gray-100
348
- rounded-[${radius}px] shadow-lg
349
- ${animation}
350
- `;
351
- }
352
- ```
353
-
354
- ### 空状态参数化
355
-
356
- ```typescript
357
- function generateEmptyStateStyles(params: StyleParams, emotionalTone: number) {
358
- // 根据 emotionalTone 决定是否使用 emoji/插画
359
- const useEmoji = emotionalTone >= 60;
360
- const iconSize = emotionalTone > 70 ? 'text-6xl' : 'text-4xl';
361
-
362
- return {
363
- container: `py-16 text-center`,
364
- icon: useEmoji ? iconSize : 'w-16 h-16 text-gray-300',
365
- title: `text-lg font-medium text-gray-900 mb-2`,
366
- description: `text-sm text-gray-500 mb-6`,
367
- action: `px-4 py-2 bg-[var(--color-primary)] text-white rounded-[var(--radius-md)]`
368
- };
369
- }
370
- ```
371
-
372
- ---
373
-
374
- ## 预设快捷入口
375
-
376
- 预设只是预定义的参数组合:
377
-
378
- ```typescript
379
- const COMPONENT_PRESETS = {
380
- minimal: {
381
- borderRadius: 15, motionIntensity: 15, contrast: 35, density: 40
382
- },
383
- warm: {
384
- borderRadius: 70, motionIntensity: 55, contrast: 45, density: 65
385
- },
386
- playful: {
387
- borderRadius: 85, motionIntensity: 80, contrast: 70, density: 55
388
- },
389
- professional: {
390
- borderRadius: 25, motionIntensity: 35, contrast: 55, density: 45
391
- },
392
- bold: {
393
- borderRadius: 50, motionIntensity: 90, contrast: 95, density: 50
394
- }
395
- };
396
-
397
- // 使用预设
398
- const warmButton = generateButtonStyles({
399
- ...COMPONENT_PRESETS.warm,
400
- colors: { primary: '#E07A5F' }
401
- });
402
- ```
403
-
404
- ---
405
-
406
- ## 人性化细节
407
-
408
- ### 有机形状(高 borderRadius + 微调)
409
-
410
- ```css
411
- /* 当 borderRadius > 70 时,可选择性使用不对称圆角 */
412
- .organic-card {
413
- border-radius: 24px 20px 28px 22px;
414
- }
415
-
416
- /* 或微妙倾斜 */
417
- .playful-tilt {
418
- transform: rotate(-0.5deg);
419
- }
420
- .playful-tilt:hover {
421
- transform: rotate(0.5deg);
422
- }
423
- ```
424
-
425
- ### 渐变与光效(高 contrast)
426
-
427
- ```html
428
- <!-- contrast > 70 时可使用 -->
429
- <div class="relative overflow-hidden">
430
- <div class="absolute -top-40 -right-40 w-80 h-80
431
- bg-[var(--color-primary)]/10 rounded-full blur-3xl"></div>
432
- <!-- 内容 -->
433
- </div>
434
- ```
435
-
436
- ---
437
-
438
- ## 使用工作流
439
-
440
- ```typescript
441
- // 1. 获取风格参数
442
- const params = getStyleParams(); // 从 brand-personality 获取
443
-
444
- // 2. 生成组件样式
445
- const buttonStyles = generateButtonStyles(params);
446
- const cardStyles = generateCardStyles(params);
447
- const inputStyles = generateInputStyles(params);
448
-
449
- // 3. 应用到组件
450
- <button className={buttonStyles.base + buttonStyles.hover}>
451
- 提交
452
- </button>
453
-
454
- <div className={cardStyles.container}>
455
- <h3 className={cardStyles.title}>标题</h3>
456
- <p className={cardStyles.description}>描述</p>
457
- </div>
458
- ```
459
-
460
- ---
461
-
462
- ## 相关技能
463
-
464
- - **brand-personality**: 提供风格维度参数
465
- - **design-tokens**: 提供CSS变量(圆角、颜色、动效)
466
- - **ux-patterns**: 提供文案和动效参数
467
- - **uiux-designer**: 统一调度入口
@@ -1,28 +0,0 @@
1
- {
2
- "domain": "ui.components",
3
- "description": "Parameterized UI component library. Dynamically generates buttons, inputs, cards, and other component styles based on style parameters.",
4
- "inputSchema": {
5
- "type": "object",
6
- "properties": {
7
- "prompt": {
8
- "type": "string"
9
- }
10
- },
11
- "required": []
12
- },
13
- "outputSchema": {
14
- "type": "object",
15
- "properties": {
16
- "result": {
17
- "type": "string"
18
- }
19
- }
20
- },
21
- "dependencies": [],
22
- "version": "0.1.0",
23
- "author": "rotifer-team",
24
- "createdAt": 1771939271216,
25
- "fidelity": "Wrapped",
26
- "transparency": "Open",
27
- "source": "skill"
28
- }
@@ -1,6 +0,0 @@
1
- {
2
- "cloud_id": "0bd85932-8e6f-4046-b635-d85dbaf2f99c",
3
- "owner": "Rotifer Protocol",
4
- "version": "0.1.0",
5
- "published_at": "2026-03-17T14:13:57.223Z"
6
- }
@@ -1,8 +0,0 @@
1
- {
2
- "geneId": "d6813c93b50fe48ae1b43f6aa731c61cf604f79906c1a521b070938383893b61",
3
- "name": "uiux-designer",
4
- "domain": "ui.design",
5
- "fidelity": "Wrapped",
6
- "wrappedAt": "2026-02-24T13:23:04.427Z",
7
- "fromSkill": "../.cursor/skills/uiux-designer/SKILL.md"
8
- }