minimal-agent 0.9.0 → 0.10.0

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 (467) hide show
  1. package/README.md +11 -8
  2. package/package.json +34 -1
  3. package/plugins/cron-runner/.claude-plugin/plugin.json +5 -0
  4. package/plugins/cron-runner/commands/cron.md +26 -0
  5. package/plugins/cron-runner/commands/crons.md +7 -0
  6. package/plugins/cron-runner/plugin.js +34 -0
  7. package/plugins/cron-runner/src/commands.js +348 -0
  8. package/plugins/cron-runner/src/cronTime.js +148 -0
  9. package/plugins/cron-runner/src/lock.js +68 -0
  10. package/plugins/cron-runner/src/runs.js +89 -0
  11. package/plugins/cron-runner/src/scheduleEngine.js +72 -0
  12. package/plugins/cron-runner/src/scheduler.js +355 -0
  13. package/plugins/cron-runner/src/schema.js +140 -0
  14. package/plugins/cron-runner/src/service.js +167 -0
  15. package/plugins/cron-runner/src/store.js +298 -0
  16. package/plugins/cron-runner/src/types.js +1 -0
  17. package/plugins/workflow-runner/commands/workflow.md +4 -4
  18. package/plugins/workflow-runner/commands/workflows.md +1 -1
  19. package/plugins/workflow-runner/plugin.js +2 -1
  20. package/plugins/workflow-runner/src/agentCommon.js +172 -9
  21. package/plugins/workflow-runner/src/dslManifest.js +72 -0
  22. package/plugins/workflow-runner/src/expressions.js +150 -13
  23. package/plugins/workflow-runner/src/index.js +39 -8
  24. package/plugins/workflow-runner/src/loader.js +216 -64
  25. package/plugins/workflow-runner/src/multimodal.js +37 -0
  26. package/plugins/workflow-runner/src/recovery.js +26 -24
  27. package/plugins/workflow-runner/src/runner.js +693 -287
  28. package/plugins/workflow-runner/src/stepExecutors/agent.js +126 -37
  29. package/plugins/workflow-runner/src/stepExecutors/assert.js +3 -2
  30. package/plugins/workflow-runner/src/stepExecutors/llm.js +38 -30
  31. package/plugins/workflow-runner/src/stepExecutors/skill.js +27 -38
  32. package/plugins/workflow-runner/src/stepExecutors/tool.js +56 -3
  33. package/plugins/workflow-runner/src/stepExecutors/verify.js +19 -10
  34. package/plugins/workflow-runner/src/taskIdentity.js +185 -30
  35. package/plugins/workflow-runner/src/types.js +18 -7
  36. package/plugins/workflow-runner/src/workflowState.js +355 -55
  37. package/skills/ai-image/SKILL.md +89 -0
  38. package/skills/ai-image/scripts/generate.mjs +497 -0
  39. package/skills/ai-image/scripts/generate_from_plan.mjs +469 -0
  40. package/skills/ai-image/scripts/generate_from_plan_test.mjs +223 -0
  41. package/skills/ai-image/scripts/generate_test.mjs +74 -0
  42. package/skills/browser-automation/SKILL.md +47 -0
  43. package/skills/docx/SKILL.md +25 -3
  44. package/skills/docx/scripts/office/helpers/__pycache__/__init__.cpython-314.pyc +0 -0
  45. package/skills/docx/scripts/office/helpers/__pycache__/merge_runs.cpython-314.pyc +0 -0
  46. package/skills/docx/scripts/office/helpers/__pycache__/simplify_redlines.cpython-314.pyc +0 -0
  47. package/skills/docx/scripts/office/validators/__pycache__/__init__.cpython-314.pyc +0 -0
  48. package/skills/docx/scripts/office/validators/__pycache__/base.cpython-314.pyc +0 -0
  49. package/skills/docx/scripts/office/validators/__pycache__/docx.cpython-314.pyc +0 -0
  50. package/skills/docx/scripts/office/validators/__pycache__/pptx.cpython-314.pyc +0 -0
  51. package/skills/docx/scripts/office/validators/__pycache__/redlining.cpython-314.pyc +0 -0
  52. package/skills/docx/scripts/opc_check.py +253 -0
  53. package/skills/image-gen-openrouter/SKILL.md +10 -2
  54. package/skills/image-stats/SKILL.md +65 -0
  55. package/skills/image-stats/scripts/__pycache__/image_stats.cpython-314.pyc +0 -0
  56. package/skills/image-stats/scripts/__pycache__/image_stats_test.cpython-314.pyc +0 -0
  57. package/skills/image-stats/scripts/image_stats.py +368 -0
  58. package/skills/image-stats/scripts/image_stats_test.py +181 -0
  59. package/skills/pptx/SKILL.md +123 -95
  60. package/skills/pptx/design.md +82 -0
  61. package/skills/pptx/examples/README.md +29 -0
  62. package/skills/pptx/examples/hybrid_example.mjs +107 -0
  63. package/skills/pptx/examples/hybrid_example.pptx +0 -0
  64. package/skills/pptx/pptxgenjs.md +41 -0
  65. package/skills/pptx/scripts/deck_helpers.mjs +224 -0
  66. package/skills/pptx/scripts/layout_lint.py +293 -0
  67. package/skills/pptx/scripts/layout_lint_test.py +160 -0
  68. package/skills/pptx/scripts/opc_check.py +339 -0
  69. package/skills/pptx/scripts/svg_fallback.mjs +145 -0
  70. package/skills/pptx/svg.md +67 -0
  71. package/skills/tts-zh/SKILL.md +19 -2
  72. package/skills/ui-design/SKILL.md +158 -0
  73. package/skills/ui-design/claude_design.md +309 -0
  74. package/skills/ui-design/evals/evals.json +254 -0
  75. package/skills/ui-design/references/aesthetic-direction.md +83 -0
  76. package/skills/ui-design/references/claude-design-protocol.md +36 -0
  77. package/skills/ui-design/references/design-context.md +53 -0
  78. package/skills/ui-design/references/design-execution-playbook.md +82 -0
  79. package/skills/ui-design/references/export-pptx.md +124 -0
  80. package/skills/ui-design/references/layout-composition.md +654 -0
  81. package/skills/ui-design/references/preview-feedback.md +37 -0
  82. package/skills/ui-design/references/source-image-layout.md +189 -0
  83. package/skills/ui-design/references/starter-components.md +78 -0
  84. package/skills/ui-design/references/vi-aegis-vector.md +144 -0
  85. package/skills/ui-design/references/vi-amber-prism.md +133 -0
  86. package/skills/ui-design/references/vi-aqua-glass.md +200 -0
  87. package/skills/ui-design/references/vi-comfort-vision.md +147 -0
  88. package/skills/ui-design/references/vi-ember-prism.md +140 -0
  89. package/skills/ui-design/references/vi-nebula-console.md +151 -0
  90. package/skills/ui-design/references/vi-obsidian-optics.md +139 -0
  91. package/skills/ui-design/references/vi-obsidian-xui.md +143 -0
  92. package/skills/ui-design/references/vi-precision-horizon-dark.md +117 -0
  93. package/skills/ui-design/references/vi-precision-horizon.md +215 -0
  94. package/skills/ui-design/references/vi-solar-relay.md +130 -0
  95. package/skills/ui-design/references/vi-template-workflow.md +48 -0
  96. package/skills/ui-design/references/vi-verdant-grid.md +141 -0
  97. package/skills/ui-design/references/vi-violet-meridian.md +172 -0
  98. package/skills/ui-design/scripts/__pycache__/assemble_material.cpython-314.pyc +0 -0
  99. package/skills/ui-design/scripts/__pycache__/assemble_material_test.cpython-314.pyc +0 -0
  100. package/skills/ui-design/scripts/__pycache__/chart_sanity_check.cpython-314.pyc +0 -0
  101. package/skills/ui-design/scripts/__pycache__/check_language_policy.cpython-314.pyc +0 -0
  102. package/skills/ui-design/scripts/__pycache__/check_ui_artifact.cpython-314.pyc +0 -0
  103. package/skills/ui-design/scripts/__pycache__/check_ui_artifact_pptx_test.cpython-314.pyc +0 -0
  104. package/skills/ui-design/scripts/__pycache__/deck_pages_check.cpython-314.pyc +0 -0
  105. package/skills/ui-design/scripts/__pycache__/deck_pages_check_test.cpython-314.pyc +0 -0
  106. package/skills/ui-design/scripts/__pycache__/deck_visual_style_check.cpython-314.pyc +0 -0
  107. package/skills/ui-design/scripts/__pycache__/deck_visual_style_check_test.cpython-314.pyc +0 -0
  108. package/skills/ui-design/scripts/__pycache__/design_budget_check.cpython-314.pyc +0 -0
  109. package/skills/ui-design/scripts/__pycache__/design_budget_check_test.cpython-314.pyc +0 -0
  110. package/skills/ui-design/scripts/__pycache__/design_repair_hints.cpython-314.pyc +0 -0
  111. package/skills/ui-design/scripts/__pycache__/design_repair_hints_test.cpython-314.pyc +0 -0
  112. package/skills/ui-design/scripts/__pycache__/design_style_check.cpython-314.pyc +0 -0
  113. package/skills/ui-design/scripts/__pycache__/design_style_check_test.cpython-314.pyc +0 -0
  114. package/skills/ui-design/scripts/__pycache__/draft_coverage_check.cpython-314.pyc +0 -0
  115. package/skills/ui-design/scripts/__pycache__/extract_source_assets.cpython-314.pyc +0 -0
  116. package/skills/ui-design/scripts/__pycache__/extract_source_assets_test.cpython-314.pyc +0 -0
  117. package/skills/ui-design/scripts/__pycache__/generated_image_review_collect.cpython-314.pyc +0 -0
  118. package/skills/ui-design/scripts/__pycache__/generated_image_review_collect_test.cpython-314.pyc +0 -0
  119. package/skills/ui-design/scripts/__pycache__/image_plan_lint.cpython-314.pyc +0 -0
  120. package/skills/ui-design/scripts/__pycache__/image_plan_lint_test.cpython-314.pyc +0 -0
  121. package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite.cpython-314.pyc +0 -0
  122. package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite_test.cpython-314.pyc +0 -0
  123. package/skills/ui-design/scripts/__pycache__/layout_balance.cpython-314.pyc +0 -0
  124. package/skills/ui-design/scripts/__pycache__/layout_balance_test.cpython-314.pyc +0 -0
  125. package/skills/ui-design/scripts/__pycache__/normalize_design_json.cpython-314.pyc +0 -0
  126. package/skills/ui-design/scripts/__pycache__/normalize_design_json_test.cpython-314.pyc +0 -0
  127. package/skills/ui-design/scripts/__pycache__/plan_source_layout.cpython-314.pyc +0 -0
  128. package/skills/ui-design/scripts/__pycache__/plan_source_layout_test.cpython-314.pyc +0 -0
  129. package/skills/ui-design/scripts/__pycache__/resolve_source_hint.cpython-314.pyc +0 -0
  130. package/skills/ui-design/scripts/__pycache__/resolve_source_hint_test.cpython-314.pyc +0 -0
  131. package/skills/ui-design/scripts/__pycache__/resolve_source_input.cpython-314.pyc +0 -0
  132. package/skills/ui-design/scripts/__pycache__/resolve_source_input_test.cpython-314.pyc +0 -0
  133. package/skills/ui-design/scripts/__pycache__/scaffold_ui_artifact.cpython-314.pyc +0 -0
  134. package/skills/ui-design/scripts/__pycache__/source_usage_check.cpython-314.pyc +0 -0
  135. package/skills/ui-design/scripts/__pycache__/source_usage_check_test.cpython-314.pyc +0 -0
  136. package/skills/ui-design/scripts/__pycache__/text_readability_pixel.cpython-314.pyc +0 -0
  137. package/skills/ui-design/scripts/__pycache__/visual_quality_gate.cpython-314.pyc +0 -0
  138. package/skills/ui-design/scripts/__pycache__/visual_quality_gate_test.cpython-314.pyc +0 -0
  139. package/skills/ui-design/scripts/assemble_material.py +217 -0
  140. package/skills/ui-design/scripts/assemble_material_test.py +149 -0
  141. package/skills/ui-design/scripts/browser_check_ui_artifact.mjs +221 -0
  142. package/skills/ui-design/scripts/chart_sanity_check.py +261 -0
  143. package/skills/ui-design/scripts/chart_sanity_check_test.py +165 -0
  144. package/skills/ui-design/scripts/check_language_policy.py +351 -0
  145. package/skills/ui-design/scripts/check_ui_artifact.py +435 -0
  146. package/skills/ui-design/scripts/check_ui_artifact_pptx_test.py +251 -0
  147. package/skills/ui-design/scripts/deck_pages_check.py +158 -0
  148. package/skills/ui-design/scripts/deck_pages_check_test.py +134 -0
  149. package/skills/ui-design/scripts/deck_visual_style_check.py +767 -0
  150. package/skills/ui-design/scripts/deck_visual_style_check_test.py +713 -0
  151. package/skills/ui-design/scripts/design_budget_check.py +271 -0
  152. package/skills/ui-design/scripts/design_budget_check_test.py +183 -0
  153. package/skills/ui-design/scripts/design_repair_hints.py +162 -0
  154. package/skills/ui-design/scripts/design_repair_hints_test.py +54 -0
  155. package/skills/ui-design/scripts/design_style_check.py +397 -0
  156. package/skills/ui-design/scripts/design_style_check_test.py +233 -0
  157. package/skills/ui-design/scripts/draft_coverage_check.py +184 -0
  158. package/skills/ui-design/scripts/draft_coverage_check_test.py +131 -0
  159. package/skills/ui-design/scripts/export_pptx_from_html.mjs +2367 -0
  160. package/skills/ui-design/scripts/extract_source_assets.py +607 -0
  161. package/skills/ui-design/scripts/extract_source_assets_test.py +256 -0
  162. package/skills/ui-design/scripts/generated_image_review_collect.py +206 -0
  163. package/skills/ui-design/scripts/generated_image_review_collect_test.py +91 -0
  164. package/skills/ui-design/scripts/image_plan_lint.py +571 -0
  165. package/skills/ui-design/scripts/image_plan_lint_test.py +515 -0
  166. package/skills/ui-design/scripts/image_prompt_rewrite.py +713 -0
  167. package/skills/ui-design/scripts/image_prompt_rewrite_test.py +966 -0
  168. package/skills/ui-design/scripts/layout_balance.py +881 -0
  169. package/skills/ui-design/scripts/layout_balance_test.py +927 -0
  170. package/skills/ui-design/scripts/normalize_design_json.py +272 -0
  171. package/skills/ui-design/scripts/normalize_design_json_test.py +119 -0
  172. package/skills/ui-design/scripts/plan_source_layout.py +1450 -0
  173. package/skills/ui-design/scripts/plan_source_layout_test.py +1136 -0
  174. package/skills/ui-design/scripts/resolve_source_input.py +270 -0
  175. package/skills/ui-design/scripts/resolve_source_input_test.py +98 -0
  176. package/skills/ui-design/scripts/scaffold_ui_artifact.py +377 -0
  177. package/skills/ui-design/scripts/source_usage_check.py +581 -0
  178. package/skills/ui-design/scripts/source_usage_check_test.py +427 -0
  179. package/skills/ui-design/scripts/text_readability_pixel.py +340 -0
  180. package/skills/ui-design/scripts/text_readability_pixel_test.py +219 -0
  181. package/skills/ui-design/scripts/visual_quality_gate.py +301 -0
  182. package/skills/ui-design/scripts/visual_quality_gate_test.py +233 -0
  183. package/skills/ui-design/tests/e2e/prompts/deck.md +19 -0
  184. package/skills/ui-design/tests/e2e/prompts/webpage.md +17 -0
  185. package/skills/ui-design/tests/e2e/render_check.mjs +101 -0
  186. package/skills/ui-design/tests/e2e/rubric.json +54 -0
  187. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/browser-check.json +49 -0
  188. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/language-check.txt +12 -0
  189. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/static-check.txt +15 -0
  190. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/outputs/index.html +837 -0
  191. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/prompt.md +12 -0
  192. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/review.md +21 -0
  193. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/screenshots/desktop.png +0 -0
  194. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/screenshots/mobile.png +0 -0
  195. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/outputs/homepage.html +373 -0
  196. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/outputs/platform.html +378 -0
  197. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/prompt.md +13 -0
  198. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/review.md +26 -0
  199. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/browser-check.json +49 -0
  200. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/desktop.png +0 -0
  201. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/mobile.png +0 -0
  202. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/browser-check.json +49 -0
  203. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/desktop.png +0 -0
  204. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/mobile.png +0 -0
  205. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/checks/static-check.txt +2 -0
  206. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/outputs/index.html +656 -0
  207. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/prompt.md +12 -0
  208. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/render_check.mjs +67 -0
  209. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/checks/static-check.txt +2 -0
  210. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/outputs/index.html +587 -0
  211. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/prompt.md +12 -0
  212. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/review.md +36 -0
  213. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/browser-check.json +49 -0
  214. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/language-check.txt +8 -0
  215. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/static-check.txt +16 -0
  216. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/outputs/index.html +739 -0
  217. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/prompt.md +11 -0
  218. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/review.md +22 -0
  219. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/screenshots/desktop.png +0 -0
  220. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/screenshots/mobile.png +0 -0
  221. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/checks/browser-check.json +52 -0
  222. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/outputs/index.html +641 -0
  223. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/screenshots/desktop.png +0 -0
  224. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/screenshots/mobile.png +0 -0
  225. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/outputs/index.html +467 -0
  226. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/browser-check.json +49 -0
  227. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/desktop.png +0 -0
  228. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/mobile.png +0 -0
  229. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/outputs/homepage.html +373 -0
  230. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/outputs/platform.html +378 -0
  231. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/prompt.md +13 -0
  232. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/review.md +26 -0
  233. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/browser-check.json +49 -0
  234. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/desktop.png +0 -0
  235. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/mobile.png +0 -0
  236. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/browser-check.json +49 -0
  237. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/desktop.png +0 -0
  238. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/mobile.png +0 -0
  239. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/browser-check.json +49 -0
  240. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/language-check.txt +4 -0
  241. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/static-check.txt +2 -0
  242. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/execution_notes.md +10 -0
  243. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/outputs/index.html +587 -0
  244. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/prompt.md +14 -0
  245. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/review.md +13 -0
  246. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/screenshots/desktop.png +0 -0
  247. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/screenshots/mobile.png +0 -0
  248. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/checks/browser-check.json +24 -0
  249. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/checks/static-check.txt +2 -0
  250. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/execution_notes.md +21 -0
  251. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/outputs/deck.html +451 -0
  252. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/screenshots/slide-01.png +0 -0
  253. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/screenshots/slide-02.png +0 -0
  254. package/skills/ui-design/tests/e2e/runs/iteration-1/review.md +79 -0
  255. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/checks/browser-check.json +26 -0
  256. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/checks/static-check.txt +2 -0
  257. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/execution_notes.md +20 -0
  258. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/outputs/index.html +534 -0
  259. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/screenshots/desktop.png +0 -0
  260. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/screenshots/mobile.png +0 -0
  261. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/browser-check.json +64 -0
  262. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/language-check.txt +7 -0
  263. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/quick-validate.txt +1 -0
  264. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/static-console.txt +2 -0
  265. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/static-homepage.txt +2 -0
  266. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/console.html +600 -0
  267. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/homepage.html +556 -0
  268. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/prompt.md +29 -0
  269. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/review.md +57 -0
  270. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/console-desktop.png +0 -0
  271. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/console-mobile.png +0 -0
  272. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/homepage-desktop.png +0 -0
  273. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/homepage-mobile.png +0 -0
  274. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/browser-check.json +33 -0
  275. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/language-check.txt +6 -0
  276. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/quick-validate.txt +1 -0
  277. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/static-check.txt +2 -0
  278. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/outputs/index.html +682 -0
  279. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/prompt.md +13 -0
  280. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/review.md +59 -0
  281. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/screenshots/desktop.png +0 -0
  282. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/screenshots/mobile.png +0 -0
  283. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/outputs/page-01.html +466 -0
  284. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/outputs/page-02.html +433 -0
  285. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/prompt.md +13 -0
  286. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/browser-check.json +49 -0
  287. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/desktop.png +0 -0
  288. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/mobile.png +0 -0
  289. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/browser-check.json +49 -0
  290. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/desktop.png +0 -0
  291. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/mobile.png +0 -0
  292. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/browser-check.json +49 -0
  293. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/language-check.txt +3 -0
  294. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/static-check.txt +2 -0
  295. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/execution_notes.md +24 -0
  296. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/outputs/index.html +723 -0
  297. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/prompt.md +15 -0
  298. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/review.md +26 -0
  299. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/screenshots/desktop.png +0 -0
  300. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/screenshots/mobile.png +0 -0
  301. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/browser-dark.json +49 -0
  302. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/browser-light.json +49 -0
  303. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/language-check.txt +11 -0
  304. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/static-dark.txt +2 -0
  305. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/static-light.txt +3 -0
  306. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/execution_notes.md +23 -0
  307. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/outputs/dark.html +392 -0
  308. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/outputs/light.html +476 -0
  309. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/prompt.md +23 -0
  310. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/review.md +41 -0
  311. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/dark/desktop.png +0 -0
  312. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/dark/mobile.png +0 -0
  313. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/light/desktop.png +0 -0
  314. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/light/mobile.png +0 -0
  315. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/browser-check.json +54 -0
  316. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/language-check.txt +5 -0
  317. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/quick-validate.txt +1 -0
  318. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/static-check.txt +2 -0
  319. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/outputs/index.html +765 -0
  320. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/prompt.md +15 -0
  321. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/review.md +59 -0
  322. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/screenshots/desktop.png +0 -0
  323. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/screenshots/mobile.png +0 -0
  324. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/outputs/index.html +508 -0
  325. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/browser-check.json +49 -0
  326. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/desktop.png +0 -0
  327. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/mobile.png +0 -0
  328. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/browser-check.json +54 -0
  329. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/language-check.txt +6 -0
  330. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/quick-validate.txt +1 -0
  331. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/static-check.txt +2 -0
  332. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/outputs/index.html +788 -0
  333. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/prompt.md +14 -0
  334. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/review.md +60 -0
  335. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/screenshots/desktop.png +0 -0
  336. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/screenshots/mobile.png +0 -0
  337. package/skills/video-compose/SKILL.md +8 -1
  338. package/skills/web-crawler/SKILL.md +70 -0
  339. package/skills/web-crawler/scripts/crawl.mjs +538 -0
  340. package/skills/web-crawler/scripts/crawl.test.mjs +204 -0
  341. package/skills/xlsx/SKILL.md +12 -0
  342. package/skills/xlsx/scripts/opc_check.py +253 -0
  343. package/src/advisorState.js +22 -0
  344. package/src/askBridge.js +87 -3
  345. package/src/bootstrap/workingDir.js +12 -1
  346. package/src/cli/args.js +17 -1
  347. package/src/cli/configMenu.js +236 -0
  348. package/src/cli/configWizard.js +7 -5
  349. package/src/cli/print.js +37 -4
  350. package/src/cli/streamJson.js +77 -24
  351. package/src/cli/wizards/advisorWizard.js +147 -0
  352. package/src/cli/wizards/fieldForm.js +149 -0
  353. package/src/cli/wizards/imageWizard.js +60 -0
  354. package/src/cli/wizards/openRouterWizard.js +23 -0
  355. package/src/cli/wizards/providerPresets.js +95 -0
  356. package/src/cli/wizards/providerWizard.js +219 -0
  357. package/src/cli/wizards/searchWizard.js +23 -0
  358. package/src/cli/wizards/ttsWizard.js +34 -0
  359. package/src/config/configFile.js +441 -83
  360. package/src/config/configService.js +446 -0
  361. package/src/config.js +24 -64
  362. package/src/context/agentHome.js +9 -0
  363. package/src/context/archive.js +3 -2
  364. package/src/context/compact.js +8 -5
  365. package/src/context/contextLock.js +81 -0
  366. package/src/context/persistContext.js +30 -11
  367. package/src/context/reactiveCompact.js +4 -2
  368. package/src/context/recentDirs.js +21 -61
  369. package/src/context/sessionPath.js +97 -23
  370. package/src/context/sessionRegistry.js +303 -24
  371. package/src/context/tokenCounter.js +18 -0
  372. package/src/context/workspaceIndex.js +731 -0
  373. package/src/infra/verification.js +3 -2
  374. package/src/llm/client.js +293 -206
  375. package/src/llm/providers/anthropicFormat.js +241 -0
  376. package/src/llm/providers/openaiFormat.js +190 -0
  377. package/src/loop.js +211 -27
  378. package/src/main.js +61 -11
  379. package/src/messageQueue.js +97 -0
  380. package/src/multimodal.js +203 -0
  381. package/src/plugin-sdk.js +15 -0
  382. package/src/plugins/commandRouter.js +3 -0
  383. package/src/plugins/hookEngine.js +5 -1
  384. package/src/plugins/pluginLifecycle.js +28 -0
  385. package/src/plugins/pluginRunner.js +40 -0
  386. package/src/plugins/transcript.js +4 -3
  387. package/src/prompts/pluginList.js +2 -2
  388. package/src/prompts/projectInstructions.js +3 -3
  389. package/src/prompts/promptAssembly.js +133 -109
  390. package/src/prompts/skillList.js +12 -22
  391. package/src/session/runAgentTurn.js +70 -0
  392. package/src/session/runTurn.js +41 -6
  393. package/src/toolGate.js +17 -0
  394. package/src/tools/advisor/advisor.js +379 -0
  395. package/src/tools/agent/agent.js +555 -0
  396. package/src/tools/agent/agentTypes.js +59 -0
  397. package/src/tools/agent/coordinator.js +93 -0
  398. package/src/tools/agent/worktree.js +270 -0
  399. package/src/tools/ask/ask.js +7 -2
  400. package/src/tools/bash/bash.js +112 -18
  401. package/src/tools/download/download.js +144 -0
  402. package/src/tools/edit/edit.js +1 -0
  403. package/src/tools/edit/multi-edit.js +1 -0
  404. package/src/tools/genimage/genimage.js +242 -0
  405. package/src/tools/genspeech/genspeech.js +67 -0
  406. package/src/tools/glob/glob.js +1 -0
  407. package/src/tools/grep/grep.js +3 -0
  408. package/src/tools/grep/rgPath.js +2 -0
  409. package/src/tools/index.js +25 -2
  410. package/src/tools/read/read.js +1 -0
  411. package/src/tools/shared/killTree.js +52 -0
  412. package/src/tools/toolProgressBridge.js +48 -0
  413. package/src/tools/webbrowser/agentBrowserPath.js +258 -0
  414. package/src/tools/webbrowser/browser.js +59 -42
  415. package/src/tools/webbrowser/browserControl.js +118 -0
  416. package/src/tools/webbrowser/browserDaemon.js +97 -0
  417. package/src/tools/webbrowser/browserService.js +27 -0
  418. package/src/tools/webbrowser/browserStream.js +119 -0
  419. package/src/tools/webbrowser/webbrowser.js +699 -130
  420. package/src/tools/webfetch/webfetch.js +1 -0
  421. package/src/tools/websearch/websearch.js +134 -51
  422. package/src/tools/write/write.js +1 -0
  423. package/src/ui/App.js +249 -22
  424. package/src/ui/AskQuestion.js +19 -17
  425. package/src/ui/InputBox.js +34 -9
  426. package/src/ui/LiveArea.js +112 -19
  427. package/src/ui/MessageList.js +100 -14
  428. package/src/ui/ModelPicker.js +56 -0
  429. package/src/ui/QueuedMessagesBanner.js +14 -0
  430. package/src/ui/Root.js +18 -10
  431. package/src/ui/SessionPicker.js +102 -0
  432. package/src/ui/StatusLine.js +13 -4
  433. package/src/ui/WorkspacePicker.js +55 -0
  434. package/src/ui/figures.js +44 -0
  435. package/src/ui/hooks/askSlot.js +82 -0
  436. package/src/ui/hooks/useChat.js +345 -64
  437. package/src/ui/hooks/usePasteHandler.js +11 -1
  438. package/src/ui/hooks/useTextBuffer.js +1 -3
  439. package/src/ui/liveViewport.js +5 -1
  440. package/src/ui/markdown.js +206 -0
  441. package/src/ui/textBuffer.js +0 -7
  442. package/src/ui/theme.js +32 -0
  443. package/src/utils/debugLog.js +0 -4
  444. package/src/utils/resourcePaths.js +2 -2
  445. package/src/utils/stripThink.js +50 -0
  446. package/src/web/browserBridge.js +447 -0
  447. package/src/web/protocol.js +19 -0
  448. package/workflows/adaptive-research.yaml +9 -2
  449. package/workflows/book-review-short.yaml +31 -7
  450. package/workflows/e2e-write-greet.yaml +3 -0
  451. package/workflows/illustrate.yaml +227 -0
  452. package/workflows/plan.yaml +437 -207
  453. package/workflows/ppt.yaml +1659 -0
  454. package/workflows/ralph-loop.yaml +142 -112
  455. package/workflows/schema.json +81 -23
  456. package/workflows/webppt.yaml +496 -0
  457. package/workflows/word.yaml +710 -0
  458. package/workflows/youtube-shorts.yaml +38 -10
  459. package/MINIMAL-TRACE.md +0 -77
  460. package/plugins/workflow-runner/src/voteHelpers.js +0 -110
  461. package/skills/config/SKILL.md +0 -123
  462. package/skills/frontend-design/LICENSE.txt +0 -177
  463. package/skills/frontend-design/SKILL.md +0 -42
  464. package/skills/pptx/scripts/office/__pycache__/soffice.cpython-314.pyc +0 -0
  465. package/src/ui/ProgressPanel.js +0 -54
  466. package/src/ui/StreamingBlock.js +0 -11
  467. package/src/ui/ToolStatus.js +0 -11
@@ -0,0 +1,15 @@
1
+ # 日冕中继首轮测试题
2
+
3
+ 使用 `Solar Relay / 日冕中继` VI,为一个原创中文网络加速与隐私连接工具设计官网首页 HTML。
4
+
5
+ 要求:
6
+
7
+ - 主题是“光径加速器”:帮助移动用户在公共网络、跨区访问和拥挤线路中获得更快、更安全的连接。
8
+ - 使用红橙主导、多彩弧带、轻快安全、移动互联网产品感。
9
+ - 可以借鉴多彩网络加速产品的活力气质,但不能出现 `Cloudflare`、`WARP+`、`1.1.1.1` 或任何真实品牌内容。
10
+ - 所有用户可见文案使用简体中文,必要技术缩写除外。
11
+ - 包含首屏、连接状态卡、加速路径弧带、权益/套餐模块、安全说明和移动端模拟界面。
12
+ - 包含 `data-screen-label="01 中文标题"`。
13
+ - 包含唯一合法的 `EDITMODE` JSON block。
14
+ - Tweaks 使用 `{ edits: patch }` 持久化,可调主红橙、彩带强度和界面活力等级。
15
+ - 运行静态检查、语言检查和浏览器截图检查。
@@ -0,0 +1,59 @@
1
+ # 日冕中继首轮端到端评审
2
+
3
+ ## 测试目标
4
+
5
+ 本轮验证第六个 VI 模板 `Solar Relay`,中文名“日冕中继”。目标是把“红橙、多彩弧带、网络加速、轻快安全、移动互联网产品感”转译成原创中文网络加速产品视觉系统,而不是复刻真实品牌或原广告样式。
6
+
7
+ ## 执行结果
8
+
9
+ - 已新增 `references/vi-solar-relay.md`。
10
+ - 已更新 `SKILL.md` 的视觉模板库,加入日冕中继模板。
11
+ - 已在 `evals/evals.json` 增加日冕中继测试题。
12
+ - 已生成样张:`outputs/index.html`。
13
+
14
+ ## 自动检查
15
+
16
+ - `quick_validate.py`:通过。
17
+ - `check_ui_artifact.py`:通过,无阻断问题;提示低透明白色面板需复核可读性,截图确认文字仍清楚。
18
+ - `check_language_policy.py`:通过,文档、提示词、评审和 HTML 均符合默认简体中文规则。
19
+ - 浏览器渲染:通过,控制台错误为 0。
20
+ - 响应式检查:桌面 1440px 和移动端 390px 均无横向溢出。
21
+ - 按钮命中区域:桌面与移动端主按钮高度均为 46px,满足 44px 底线。
22
+
23
+ ## 视觉评审
24
+
25
+ | 维度 | 分数 | 说明 |
26
+ | --- | ---: | --- |
27
+ | 指令对齐 | 9 | 红橙、多彩弧带、网络加速、隐私连接和移动端产品感都明确体现。 |
28
+ | 原创边界 | 9 | 没有出现真实品牌名称、标识、图标轮廓、原广告结构或原 App 文案。 |
29
+ | 配色控制 | 8 | 彩色强、记忆点足;移动端彩带接近上限,但主要文字仍清楚。 |
30
+ | 信息结构 | 8 | 首屏、连接状态、指标、手机界面和功能卡形成完整产品叙事。 |
31
+ | 中文排版 | 8 | 标题有冲击力,移动端断行自然;局部说明文字可在下一轮继续压缩。 |
32
+ | 移动端 | 9 | 无溢出,按钮可点,手机展示区清楚,彩带没有遮挡核心行动。 |
33
+
34
+ 综合评分:8.5 / 10。
35
+
36
+ 方向成立:
37
+
38
+ - 红橙、金黄、珊瑚和青蓝构成了明显的网络加速活力。
39
+ - 彩色弧带用于表达流量路径和中继轨迹,而不是单纯装饰。
40
+ - 主信息放在白底和深蓝移动端屏幕中,保证文字可读。
41
+ - 青蓝状态与红橙主行动有层级区分。
42
+ - 页面避免出现真实品牌内容,图标和移动端界面均为原创。
43
+
44
+ ## 已确认截图表现
45
+
46
+ - 桌面首屏明快、有速度感,红橙与青蓝弧带形成强识别。
47
+ - 移动端彩带较强,但没有压住标题、按钮、指标或手机屏幕。
48
+ - 手机模拟界面是原创连接状态表达,没有复刻真实产品。
49
+ - 权益、安全和路径模块有明确产品语义,不只是空泛营销卡片。
50
+
51
+ ## 初步结论
52
+
53
+ 日冕中继可以作为第六个 VI 模板进入模板库。它与 Aqua Glass 的区别在于:Aqua 强调浅色通透和玻璃层级,日冕中继强调红橙多彩路径和移动网络产品活力;与 Nebula Console 的区别在于:Nebula 是深色科技半透明,日冕中继是明亮消费级网络加速风格。
54
+
55
+ 下一轮可继续优化:
56
+
57
+ - 为套餐/权益模块增加更真实的价格、流量或推荐机制,验证模板是否适合商业页。
58
+ - 为 deck 场景做一次样张,测试大面积彩带在演示页中的可读性。
59
+ - 如果用于更严肃的网络安全产品,可降低彩带强度,提高白底信息区比例。
@@ -0,0 +1,508 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>绿脉电网预览</title>
7
+ <style>
8
+ :root {
9
+ --ink: #111513;
10
+ --ink-soft: #27302b;
11
+ --muted: #5f6b64;
12
+ --paper: #fbfdfb;
13
+ --paper-green: #eef8f1;
14
+ --surface: #ffffff;
15
+ --surface-soft: #f7fbf8;
16
+ --line: rgba(17, 21, 19, 0.10);
17
+ --line-green: rgba(0, 122, 61, 0.22);
18
+ --grid-green: #007a3d;
19
+ --energy-green: #0b9b55;
20
+ --leaf-green: #74c88a;
21
+ --pale-green: #dff3e5;
22
+ --blue: #1769d1;
23
+ --amber: #d99722;
24
+ --danger: #c93d3d;
25
+ --shadow: rgba(0, 122, 61, 0.12);
26
+ font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Inter, sans-serif;
27
+ color: var(--ink);
28
+ background: var(--paper);
29
+ }
30
+
31
+ * { box-sizing: border-box; }
32
+
33
+ body {
34
+ margin: 0;
35
+ min-height: 100vh;
36
+ overflow-x: hidden;
37
+ background:
38
+ radial-gradient(circle at 76% 22%, rgba(116, 200, 138, 0.18), transparent 28%),
39
+ linear-gradient(135deg, #fbfdfb 0%, #f5fbf7 52%, #eef8f1 100%);
40
+ }
41
+
42
+ body::before {
43
+ content: "";
44
+ position: fixed;
45
+ inset: 0;
46
+ pointer-events: none;
47
+ background-image:
48
+ linear-gradient(rgba(0, 122, 61, 0.035) 1px, transparent 1px),
49
+ linear-gradient(90deg, rgba(0, 122, 61, 0.035) 1px, transparent 1px);
50
+ background-size: 54px 54px;
51
+ mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
52
+ }
53
+
54
+ .page {
55
+ position: relative;
56
+ width: min(1440px, 100%);
57
+ min-height: 100vh;
58
+ margin: 0 auto;
59
+ padding: 26px clamp(18px, 4vw, 64px) 56px;
60
+ }
61
+
62
+ .topbar {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: space-between;
66
+ gap: 18px;
67
+ min-height: 66px;
68
+ padding-bottom: 18px;
69
+ border-bottom: 1px solid var(--line);
70
+ }
71
+
72
+ .brand {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: 12px;
76
+ font-weight: 850;
77
+ color: var(--ink);
78
+ }
79
+
80
+ .mark {
81
+ display: grid;
82
+ place-items: center;
83
+ width: 44px;
84
+ height: 44px;
85
+ border-radius: 13px;
86
+ color: #fff;
87
+ background:
88
+ linear-gradient(135deg, var(--grid-green), var(--energy-green)),
89
+ radial-gradient(circle at 70% 28%, rgba(255,255,255,0.7), transparent 20%);
90
+ box-shadow: 0 16px 34px var(--shadow);
91
+ }
92
+
93
+ .mark::before {
94
+ content: "";
95
+ width: 22px;
96
+ height: 22px;
97
+ border: 2px solid currentColor;
98
+ border-radius: 50%;
99
+ box-shadow: 0 0 0 6px rgba(255,255,255,0.16);
100
+ }
101
+
102
+ .nav {
103
+ display: flex;
104
+ align-items: center;
105
+ gap: 24px;
106
+ color: var(--ink-soft);
107
+ font-size: 14px;
108
+ font-weight: 720;
109
+ }
110
+
111
+ .nav .cta {
112
+ display: inline-flex;
113
+ align-items: center;
114
+ min-height: 44px;
115
+ padding: 0 18px;
116
+ border-radius: 999px;
117
+ color: #fff;
118
+ background: var(--grid-green);
119
+ box-shadow: 0 16px 32px var(--shadow);
120
+ }
121
+
122
+ .hero {
123
+ display: grid;
124
+ grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
125
+ gap: clamp(26px, 5vw, 76px);
126
+ align-items: center;
127
+ padding: 54px 0 32px;
128
+ }
129
+
130
+ .eyebrow {
131
+ display: inline-flex;
132
+ align-items: center;
133
+ gap: 8px;
134
+ min-height: 34px;
135
+ padding: 0 12px;
136
+ border: 1px solid var(--line-green);
137
+ border-radius: 999px;
138
+ color: var(--grid-green);
139
+ background: rgba(223, 243, 229, 0.76);
140
+ font-size: 13px;
141
+ font-weight: 780;
142
+ }
143
+
144
+ h1 {
145
+ margin: 22px 0 18px;
146
+ max-width: 720px;
147
+ font-size: clamp(46px, 6vw, 76px);
148
+ line-height: 1.06;
149
+ letter-spacing: 0;
150
+ color: var(--ink);
151
+ }
152
+
153
+ .green-word {
154
+ color: var(--grid-green);
155
+ white-space: nowrap;
156
+ }
157
+
158
+ .lead {
159
+ max-width: 620px;
160
+ margin: 0;
161
+ color: var(--muted);
162
+ font-size: clamp(16px, 1.55vw, 19px);
163
+ line-height: 1.68;
164
+ }
165
+
166
+ .actions {
167
+ display: flex;
168
+ flex-wrap: wrap;
169
+ gap: 12px;
170
+ margin-top: 30px;
171
+ }
172
+
173
+ button {
174
+ min-height: 48px;
175
+ border-radius: 12px;
176
+ padding: 0 20px;
177
+ font: inherit;
178
+ font-weight: 780;
179
+ }
180
+
181
+ .primary {
182
+ border: 0;
183
+ color: #fff;
184
+ background: linear-gradient(135deg, var(--grid-green), var(--energy-green));
185
+ box-shadow: 0 18px 36px var(--shadow);
186
+ }
187
+
188
+ .secondary {
189
+ border: 1px solid var(--line);
190
+ color: var(--ink);
191
+ background: #fff;
192
+ }
193
+
194
+ .metrics {
195
+ display: grid;
196
+ grid-template-columns: repeat(3, minmax(0, 1fr));
197
+ gap: 12px;
198
+ margin-top: 34px;
199
+ }
200
+
201
+ .metric {
202
+ min-height: 126px;
203
+ padding: 18px;
204
+ border: 1px solid var(--line);
205
+ border-radius: 14px;
206
+ background: rgba(255,255,255,0.86);
207
+ box-shadow: 0 18px 42px rgba(17,21,19,0.05);
208
+ }
209
+
210
+ .metric span {
211
+ display: block;
212
+ color: var(--muted);
213
+ font-size: 13px;
214
+ }
215
+
216
+ .metric strong {
217
+ display: block;
218
+ margin-top: 16px;
219
+ font-size: 32px;
220
+ line-height: 1;
221
+ color: var(--ink);
222
+ }
223
+
224
+ .metric small {
225
+ display: block;
226
+ margin-top: 12px;
227
+ color: var(--energy-green);
228
+ font-size: 13px;
229
+ font-weight: 780;
230
+ }
231
+
232
+ .panel {
233
+ position: relative;
234
+ min-height: 620px;
235
+ overflow: hidden;
236
+ border: 1px solid var(--line-green);
237
+ border-radius: 28px;
238
+ background:
239
+ linear-gradient(145deg, rgba(255,255,255,0.95), rgba(238,248,241,0.88)),
240
+ radial-gradient(circle at 62% 36%, rgba(11,155,85,0.12), transparent 28%);
241
+ box-shadow: 0 30px 80px rgba(0,122,61,0.12);
242
+ }
243
+
244
+ .panel::before {
245
+ content: "";
246
+ position: absolute;
247
+ inset: 24px;
248
+ border: 1px solid rgba(0, 122, 61, 0.12);
249
+ border-radius: 22px;
250
+ background:
251
+ linear-gradient(rgba(0,122,61,0.04) 1px, transparent 1px),
252
+ linear-gradient(90deg, rgba(0,122,61,0.04) 1px, transparent 1px);
253
+ background-size: 42px 42px;
254
+ }
255
+
256
+ .green-strip {
257
+ position: absolute;
258
+ left: 0;
259
+ top: 0;
260
+ width: 100%;
261
+ height: 82px;
262
+ background: linear-gradient(90deg, var(--grid-green), var(--energy-green));
263
+ clip-path: polygon(0 0, 100% 0, 100% 68%, 82% 100%, 0 100%);
264
+ }
265
+
266
+ .strip-title {
267
+ position: absolute;
268
+ left: 28px;
269
+ top: 22px;
270
+ color: #fff;
271
+ font-size: 18px;
272
+ font-weight: 850;
273
+ }
274
+
275
+ .map {
276
+ position: absolute;
277
+ inset: 122px 42px 150px;
278
+ }
279
+
280
+ .line {
281
+ position: absolute;
282
+ height: 2px;
283
+ transform-origin: left center;
284
+ background: linear-gradient(90deg, rgba(0,122,61,0.18), rgba(0,122,61,0.58), rgba(23,105,209,0.44));
285
+ }
286
+
287
+ .line.a { left: 12%; top: 25%; width: 58%; transform: rotate(11deg); }
288
+ .line.b { left: 18%; top: 62%; width: 52%; transform: rotate(-18deg); }
289
+ .line.c { left: 33%; top: 38%; width: 36%; transform: rotate(62deg); }
290
+ .line.d { left: 48%; top: 22%; width: 30%; transform: rotate(110deg); }
291
+
292
+ .node {
293
+ position: absolute;
294
+ display: grid;
295
+ place-items: center;
296
+ width: 62px;
297
+ height: 62px;
298
+ border: 2px solid rgba(0,122,61,0.28);
299
+ border-radius: 50%;
300
+ color: var(--grid-green);
301
+ background: #fff;
302
+ box-shadow: 0 16px 34px rgba(0,122,61,0.12);
303
+ font-size: 13px;
304
+ font-weight: 850;
305
+ }
306
+
307
+ .node::after {
308
+ content: "";
309
+ position: absolute;
310
+ width: 10px;
311
+ height: 10px;
312
+ right: 6px;
313
+ top: 8px;
314
+ border-radius: 50%;
315
+ background: var(--energy-green);
316
+ box-shadow: 0 0 0 5px rgba(11,155,85,0.12);
317
+ }
318
+
319
+ .node.one { left: 8%; top: 18%; }
320
+ .node.two { left: 38%; top: 2%; }
321
+ .node.three { right: 10%; top: 28%; }
322
+ .node.four { left: 22%; bottom: 12%; }
323
+ .node.five { right: 25%; bottom: 8%; }
324
+
325
+ .node.warn {
326
+ border-color: rgba(217,151,34,0.44);
327
+ color: var(--amber);
328
+ }
329
+
330
+ .node.warn::after { background: var(--amber); box-shadow: 0 0 0 5px rgba(217,151,34,0.15); }
331
+
332
+ .recommend {
333
+ position: absolute;
334
+ left: 28px;
335
+ right: 28px;
336
+ bottom: 24px;
337
+ display: grid;
338
+ grid-template-columns: 1.2fr 0.8fr;
339
+ gap: 12px;
340
+ }
341
+
342
+ .card {
343
+ padding: 18px;
344
+ border: 1px solid var(--line);
345
+ border-radius: 16px;
346
+ background: rgba(255,255,255,0.94);
347
+ box-shadow: 0 18px 40px rgba(17,21,19,0.06);
348
+ }
349
+
350
+ .card h2 {
351
+ margin: 0 0 8px;
352
+ font-size: 18px;
353
+ line-height: 1.25;
354
+ }
355
+
356
+ .card p {
357
+ margin: 0;
358
+ color: var(--muted);
359
+ font-size: 14px;
360
+ line-height: 1.55;
361
+ }
362
+
363
+ .risk {
364
+ display: flex;
365
+ align-items: center;
366
+ justify-content: space-between;
367
+ gap: 12px;
368
+ }
369
+
370
+ .risk b {
371
+ color: var(--amber);
372
+ font-size: 30px;
373
+ }
374
+
375
+ .bottom-grid {
376
+ display: grid;
377
+ grid-template-columns: repeat(4, minmax(0, 1fr));
378
+ gap: 14px;
379
+ margin-top: 20px;
380
+ }
381
+
382
+ .mini {
383
+ min-height: 116px;
384
+ padding: 18px;
385
+ border: 1px solid var(--line);
386
+ border-radius: 14px;
387
+ background: var(--surface);
388
+ }
389
+
390
+ .mini::before {
391
+ content: "";
392
+ display: block;
393
+ width: 38px;
394
+ height: 6px;
395
+ margin-bottom: 16px;
396
+ border-radius: 999px;
397
+ background: var(--grid-green);
398
+ }
399
+
400
+ .mini:nth-child(2)::before { background: var(--blue); }
401
+ .mini:nth-child(3)::before { background: var(--energy-green); }
402
+ .mini:nth-child(4)::before { background: var(--amber); }
403
+
404
+ .mini b {
405
+ display: block;
406
+ font-size: 18px;
407
+ margin-bottom: 8px;
408
+ }
409
+
410
+ .mini span {
411
+ display: block;
412
+ color: var(--muted);
413
+ font-size: 13px;
414
+ line-height: 1.5;
415
+ }
416
+
417
+ @media (max-width: 980px) {
418
+ .nav span:not(.cta) { display: none; }
419
+ .hero { grid-template-columns: 1fr; }
420
+ .panel { min-height: 580px; }
421
+ .bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
422
+ }
423
+
424
+ @media (max-width: 560px) {
425
+ .page { padding: 18px 14px 42px; }
426
+ .topbar { align-items: flex-start; flex-direction: column; }
427
+ h1 { font-size: clamp(38px, 12vw, 50px); line-height: 1.08; }
428
+ .lead { font-size: 15px; }
429
+ .actions { flex-direction: column; }
430
+ button { width: 100%; }
431
+ .metrics { grid-template-columns: 1fr; }
432
+ .panel { min-height: 620px; border-radius: 22px; }
433
+ .map { inset: 116px 18px 210px; }
434
+ .node { width: 54px; height: 54px; font-size: 12px; }
435
+ .recommend { grid-template-columns: 1fr; left: 16px; right: 16px; }
436
+ .bottom-grid { grid-template-columns: 1fr; }
437
+ }
438
+ </style>
439
+ </head>
440
+ <body>
441
+ <main class="page" data-screen-label="01 绿脉电网调度首页">
442
+ <header class="topbar">
443
+ <div class="brand"><span class="mark" aria-hidden="true"></span><span>绿脉电网</span></div>
444
+ <nav class="nav" aria-label="主导航">
445
+ <span>负荷预测</span><span>储能调度</span><span>线路风险</span><span>低碳指标</span><span class="cta">进入调度台</span>
446
+ </nav>
447
+ </header>
448
+
449
+ <section class="hero">
450
+ <div>
451
+ <span class="eyebrow">智能电网 · 源网荷储协同</span>
452
+ <h1>把负荷、储能和线路风险放进<span class="green-word">一张调度图</span>。</h1>
453
+ <p class="lead">面向城市能源平台的调度首页,用白底保证阅读,深绿建立行业识别,浅绿分区表达安全运行,蓝色只用于数字化链路。</p>
454
+ <div class="actions">
455
+ <button class="primary">生成调度建议</button>
456
+ <button class="secondary">查看风险清单</button>
457
+ </div>
458
+
459
+ <section class="metrics" aria-label="核心指标">
460
+ <article class="metric"><span>今日预测负荷</span><strong>8.42 GW</strong><small>较昨日 +3.1%</small></article>
461
+ <article class="metric"><span>储能可调容量</span><strong>426 MWh</strong><small>峰时段可调用</small></article>
462
+ <article class="metric"><span>供电可靠性</span><strong>99.96%</strong><small>主网运行稳定</small></article>
463
+ </section>
464
+ </div>
465
+
466
+ <section class="panel" aria-label="电网拓扑面板">
467
+ <div class="green-strip"></div>
468
+ <div class="strip-title">区域电网拓扑与实时状态</div>
469
+ <div class="map">
470
+ <i class="line a"></i><i class="line b"></i><i class="line c"></i><i class="line d"></i>
471
+ <div class="node one">北站</div>
472
+ <div class="node two">光伏</div>
473
+ <div class="node three warn">东线</div>
474
+ <div class="node four">储能</div>
475
+ <div class="node five">主网</div>
476
+ </div>
477
+ <div class="recommend">
478
+ <article class="card"><h2>调度建议</h2><p>18:00 前释放 82 MWh 储能,东线负荷转移 6%,优先保障工业园区连续供电。</p></article>
479
+ <article class="card risk"><div><h2>风险状态</h2><p>东线温升接近阈值</p></div><b>Ⅱ</b></article>
480
+ </div>
481
+ </section>
482
+ </section>
483
+
484
+ <section class="bottom-grid" aria-label="行动模块">
485
+ <article class="mini"><b>负荷预测</b><span>按区域、时段和天气修正峰谷曲线。</span></article>
486
+ <article class="mini"><b>数字链路</b><span>蓝色只表达数据采集、云端计算和 AI 预测。</span></article>
487
+ <article class="mini"><b>低碳优化</b><span>优先消纳新能源,输出可追踪减排指标。</span></article>
488
+ <article class="mini"><b>风险处置</b><span>按线路、责任班组和处理时限生成清单。</span></article>
489
+ </section>
490
+ </main>
491
+ <script>
492
+ window.addEventListener("message", (event) => {
493
+ if (event.data && event.data.type === "__edit_mode_set_keys") {
494
+ const edits = event.data.edits || {};
495
+ if (edits.green) document.documentElement.style.setProperty("--grid-green", edits.green);
496
+ if (edits.light) document.documentElement.style.setProperty("--paper-green", edits.light);
497
+ if (edits.blue) document.documentElement.style.setProperty("--blue", edits.blue);
498
+ }
499
+ });
500
+ const UI_DESIGN_TWEAKS = /*EDITMODE-BEGIN*/{
501
+ "green": "#007a3d",
502
+ "light": "#eef8f1",
503
+ "blue": "#1769d1"
504
+ }/*EDITMODE-END*/;
505
+ window.parent.postMessage({ type: "__edit_mode_available", edits: UI_DESIGN_TWEAKS }, "*");
506
+ </script>
507
+ </body>
508
+ </html>
@@ -0,0 +1,49 @@
1
+ {
2
+ "html": "/Volumes/D 1/code/kakadeai/minimal-agent/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/outputs/index.html",
3
+ "desktop": {
4
+ "viewport": {
5
+ "width": 1440,
6
+ "height": 980
7
+ },
8
+ "screenshot": "/Volumes/D 1/code/kakadeai/minimal-agent/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/desktop.png",
9
+ "console": [],
10
+ "inspection": {
11
+ "title": "绿脉电网预览",
12
+ "screenLabels": [
13
+ "01 绿脉电网调度首页"
14
+ ],
15
+ "editModeBlocks": 1,
16
+ "hasEditModeAvailable": true,
17
+ "hasEditModeSetKeys": true,
18
+ "hasEditsPayload": true,
19
+ "documentWidth": 1440,
20
+ "viewportWidth": 1440,
21
+ "horizontalOverflow": false,
22
+ "smallTargets": []
23
+ }
24
+ },
25
+ "mobile": {
26
+ "viewport": {
27
+ "width": 390,
28
+ "height": 844
29
+ },
30
+ "screenshot": "/Volumes/D 1/code/kakadeai/minimal-agent/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/mobile.png",
31
+ "console": [],
32
+ "inspection": {
33
+ "title": "绿脉电网预览",
34
+ "screenLabels": [
35
+ "01 绿脉电网调度首页"
36
+ ],
37
+ "editModeBlocks": 1,
38
+ "hasEditModeAvailable": true,
39
+ "hasEditModeSetKeys": true,
40
+ "hasEditsPayload": true,
41
+ "documentWidth": 390,
42
+ "viewportWidth": 390,
43
+ "horizontalOverflow": false,
44
+ "smallTargets": []
45
+ }
46
+ },
47
+ "issues": [],
48
+ "pass": true
49
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "pass": true,
3
+ "console": [],
4
+ "desktop": {
5
+ "title": "智轨工作台 - 紫曜经线样张",
6
+ "labels": [
7
+ "01 紫曜经线首页"
8
+ ],
9
+ "viewport": {
10
+ "width": 1440,
11
+ "height": 980
12
+ },
13
+ "scrollWidth": 1440,
14
+ "hasHorizontalOverflow": false,
15
+ "buttons": [
16
+ {
17
+ "text": "创建交付路径",
18
+ "width": 134,
19
+ "height": 46
20
+ },
21
+ {
22
+ "text": "查看工作台示例",
23
+ "width": 150,
24
+ "height": 46
25
+ }
26
+ ],
27
+ "errors": []
28
+ },
29
+ "mobile": {
30
+ "title": "智轨工作台 - 紫曜经线样张",
31
+ "labels": [
32
+ "01 紫曜经线首页"
33
+ ],
34
+ "viewport": {
35
+ "width": 390,
36
+ "height": 844
37
+ },
38
+ "scrollWidth": 390,
39
+ "hasHorizontalOverflow": false,
40
+ "buttons": [
41
+ {
42
+ "text": "创建交付路径",
43
+ "width": 362,
44
+ "height": 46
45
+ },
46
+ {
47
+ "text": "查看工作台示例",
48
+ "width": 362,
49
+ "height": 46
50
+ }
51
+ ],
52
+ "errors": []
53
+ }
54
+ }