minimal-agent 0.8.2 → 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 (484) hide show
  1. package/README.md +14 -12
  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 +3 -1
  20. package/plugins/workflow-runner/src/agentCommon.js +249 -51
  21. package/plugins/workflow-runner/src/dslManifest.js +72 -0
  22. package/plugins/workflow-runner/src/expressions.js +198 -15
  23. package/plugins/workflow-runner/src/index.js +40 -8
  24. package/plugins/workflow-runner/src/jsonPayload.js +1 -1
  25. package/plugins/workflow-runner/src/loader.js +286 -72
  26. package/plugins/workflow-runner/src/multimodal.js +37 -0
  27. package/plugins/workflow-runner/src/recovery.js +49 -39
  28. package/plugins/workflow-runner/src/runner.js +802 -287
  29. package/plugins/workflow-runner/src/stepExecutors/agent.js +157 -39
  30. package/plugins/workflow-runner/src/stepExecutors/assert.js +16 -3
  31. package/plugins/workflow-runner/src/stepExecutors/llm.js +60 -111
  32. package/plugins/workflow-runner/src/stepExecutors/skill.js +47 -47
  33. package/plugins/workflow-runner/src/stepExecutors/tool.js +76 -10
  34. package/plugins/workflow-runner/src/stepExecutors/verify.js +27 -10
  35. package/plugins/workflow-runner/src/taskIdentity.js +296 -0
  36. package/plugins/workflow-runner/src/types.js +19 -9
  37. package/plugins/workflow-runner/src/workflowState.js +516 -33
  38. package/skills/adversarial-review/SKILL.md +0 -1
  39. package/skills/ai-image/SKILL.md +89 -0
  40. package/skills/ai-image/scripts/generate.mjs +497 -0
  41. package/skills/ai-image/scripts/generate_from_plan.mjs +469 -0
  42. package/skills/ai-image/scripts/generate_from_plan_test.mjs +223 -0
  43. package/skills/ai-image/scripts/generate_test.mjs +74 -0
  44. package/skills/browser-automation/SKILL.md +47 -0
  45. package/skills/docx/SKILL.md +25 -3
  46. package/skills/docx/scripts/office/helpers/__pycache__/__init__.cpython-314.pyc +0 -0
  47. package/skills/docx/scripts/office/helpers/__pycache__/merge_runs.cpython-314.pyc +0 -0
  48. package/skills/docx/scripts/office/helpers/__pycache__/simplify_redlines.cpython-314.pyc +0 -0
  49. package/skills/docx/scripts/office/validators/__pycache__/__init__.cpython-314.pyc +0 -0
  50. package/skills/docx/scripts/office/validators/__pycache__/base.cpython-314.pyc +0 -0
  51. package/skills/docx/scripts/office/validators/__pycache__/docx.cpython-314.pyc +0 -0
  52. package/skills/docx/scripts/office/validators/__pycache__/pptx.cpython-314.pyc +0 -0
  53. package/skills/docx/scripts/office/validators/__pycache__/redlining.cpython-314.pyc +0 -0
  54. package/skills/docx/scripts/opc_check.py +253 -0
  55. package/skills/image-gen-openrouter/SKILL.md +10 -2
  56. package/skills/image-stats/SKILL.md +65 -0
  57. package/skills/image-stats/scripts/__pycache__/image_stats.cpython-314.pyc +0 -0
  58. package/skills/image-stats/scripts/__pycache__/image_stats_test.cpython-314.pyc +0 -0
  59. package/skills/image-stats/scripts/image_stats.py +368 -0
  60. package/skills/image-stats/scripts/image_stats_test.py +181 -0
  61. package/skills/pptx/SKILL.md +123 -95
  62. package/skills/pptx/design.md +82 -0
  63. package/skills/pptx/examples/README.md +29 -0
  64. package/skills/pptx/examples/hybrid_example.mjs +107 -0
  65. package/skills/pptx/examples/hybrid_example.pptx +0 -0
  66. package/skills/pptx/pptxgenjs.md +41 -0
  67. package/skills/pptx/scripts/deck_helpers.mjs +224 -0
  68. package/skills/pptx/scripts/layout_lint.py +293 -0
  69. package/skills/pptx/scripts/layout_lint_test.py +160 -0
  70. package/skills/pptx/scripts/opc_check.py +339 -0
  71. package/skills/pptx/scripts/svg_fallback.mjs +145 -0
  72. package/skills/pptx/svg.md +67 -0
  73. package/skills/tts-zh/SKILL.md +19 -2
  74. package/skills/ui-design/SKILL.md +158 -0
  75. package/skills/ui-design/claude_design.md +309 -0
  76. package/skills/ui-design/evals/evals.json +254 -0
  77. package/skills/ui-design/references/aesthetic-direction.md +83 -0
  78. package/skills/ui-design/references/claude-design-protocol.md +36 -0
  79. package/skills/ui-design/references/design-context.md +53 -0
  80. package/skills/ui-design/references/design-execution-playbook.md +82 -0
  81. package/skills/ui-design/references/export-pptx.md +124 -0
  82. package/skills/ui-design/references/layout-composition.md +654 -0
  83. package/skills/ui-design/references/preview-feedback.md +37 -0
  84. package/skills/ui-design/references/source-image-layout.md +189 -0
  85. package/skills/ui-design/references/starter-components.md +78 -0
  86. package/skills/ui-design/references/vi-aegis-vector.md +144 -0
  87. package/skills/ui-design/references/vi-amber-prism.md +133 -0
  88. package/skills/ui-design/references/vi-aqua-glass.md +200 -0
  89. package/skills/ui-design/references/vi-comfort-vision.md +147 -0
  90. package/skills/ui-design/references/vi-ember-prism.md +140 -0
  91. package/skills/ui-design/references/vi-nebula-console.md +151 -0
  92. package/skills/ui-design/references/vi-obsidian-optics.md +139 -0
  93. package/skills/ui-design/references/vi-obsidian-xui.md +143 -0
  94. package/skills/ui-design/references/vi-precision-horizon-dark.md +117 -0
  95. package/skills/ui-design/references/vi-precision-horizon.md +215 -0
  96. package/skills/ui-design/references/vi-solar-relay.md +130 -0
  97. package/skills/ui-design/references/vi-template-workflow.md +48 -0
  98. package/skills/ui-design/references/vi-verdant-grid.md +141 -0
  99. package/skills/ui-design/references/vi-violet-meridian.md +172 -0
  100. package/skills/ui-design/scripts/__pycache__/assemble_material.cpython-314.pyc +0 -0
  101. package/skills/ui-design/scripts/__pycache__/assemble_material_test.cpython-314.pyc +0 -0
  102. package/skills/ui-design/scripts/__pycache__/chart_sanity_check.cpython-314.pyc +0 -0
  103. package/skills/ui-design/scripts/__pycache__/check_language_policy.cpython-314.pyc +0 -0
  104. package/skills/ui-design/scripts/__pycache__/check_ui_artifact.cpython-314.pyc +0 -0
  105. package/skills/ui-design/scripts/__pycache__/check_ui_artifact_pptx_test.cpython-314.pyc +0 -0
  106. package/skills/ui-design/scripts/__pycache__/deck_pages_check.cpython-314.pyc +0 -0
  107. package/skills/ui-design/scripts/__pycache__/deck_pages_check_test.cpython-314.pyc +0 -0
  108. package/skills/ui-design/scripts/__pycache__/deck_visual_style_check.cpython-314.pyc +0 -0
  109. package/skills/ui-design/scripts/__pycache__/deck_visual_style_check_test.cpython-314.pyc +0 -0
  110. package/skills/ui-design/scripts/__pycache__/design_budget_check.cpython-314.pyc +0 -0
  111. package/skills/ui-design/scripts/__pycache__/design_budget_check_test.cpython-314.pyc +0 -0
  112. package/skills/ui-design/scripts/__pycache__/design_repair_hints.cpython-314.pyc +0 -0
  113. package/skills/ui-design/scripts/__pycache__/design_repair_hints_test.cpython-314.pyc +0 -0
  114. package/skills/ui-design/scripts/__pycache__/design_style_check.cpython-314.pyc +0 -0
  115. package/skills/ui-design/scripts/__pycache__/design_style_check_test.cpython-314.pyc +0 -0
  116. package/skills/ui-design/scripts/__pycache__/draft_coverage_check.cpython-314.pyc +0 -0
  117. package/skills/ui-design/scripts/__pycache__/extract_source_assets.cpython-314.pyc +0 -0
  118. package/skills/ui-design/scripts/__pycache__/extract_source_assets_test.cpython-314.pyc +0 -0
  119. package/skills/ui-design/scripts/__pycache__/generated_image_review_collect.cpython-314.pyc +0 -0
  120. package/skills/ui-design/scripts/__pycache__/generated_image_review_collect_test.cpython-314.pyc +0 -0
  121. package/skills/ui-design/scripts/__pycache__/image_plan_lint.cpython-314.pyc +0 -0
  122. package/skills/ui-design/scripts/__pycache__/image_plan_lint_test.cpython-314.pyc +0 -0
  123. package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite.cpython-314.pyc +0 -0
  124. package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite_test.cpython-314.pyc +0 -0
  125. package/skills/ui-design/scripts/__pycache__/layout_balance.cpython-314.pyc +0 -0
  126. package/skills/ui-design/scripts/__pycache__/layout_balance_test.cpython-314.pyc +0 -0
  127. package/skills/ui-design/scripts/__pycache__/normalize_design_json.cpython-314.pyc +0 -0
  128. package/skills/ui-design/scripts/__pycache__/normalize_design_json_test.cpython-314.pyc +0 -0
  129. package/skills/ui-design/scripts/__pycache__/plan_source_layout.cpython-314.pyc +0 -0
  130. package/skills/ui-design/scripts/__pycache__/plan_source_layout_test.cpython-314.pyc +0 -0
  131. package/skills/ui-design/scripts/__pycache__/resolve_source_hint.cpython-314.pyc +0 -0
  132. package/skills/ui-design/scripts/__pycache__/resolve_source_hint_test.cpython-314.pyc +0 -0
  133. package/skills/ui-design/scripts/__pycache__/resolve_source_input.cpython-314.pyc +0 -0
  134. package/skills/ui-design/scripts/__pycache__/resolve_source_input_test.cpython-314.pyc +0 -0
  135. package/skills/ui-design/scripts/__pycache__/scaffold_ui_artifact.cpython-314.pyc +0 -0
  136. package/skills/ui-design/scripts/__pycache__/source_usage_check.cpython-314.pyc +0 -0
  137. package/skills/ui-design/scripts/__pycache__/source_usage_check_test.cpython-314.pyc +0 -0
  138. package/skills/ui-design/scripts/__pycache__/text_readability_pixel.cpython-314.pyc +0 -0
  139. package/skills/ui-design/scripts/__pycache__/visual_quality_gate.cpython-314.pyc +0 -0
  140. package/skills/ui-design/scripts/__pycache__/visual_quality_gate_test.cpython-314.pyc +0 -0
  141. package/skills/ui-design/scripts/assemble_material.py +217 -0
  142. package/skills/ui-design/scripts/assemble_material_test.py +149 -0
  143. package/skills/ui-design/scripts/browser_check_ui_artifact.mjs +221 -0
  144. package/skills/ui-design/scripts/chart_sanity_check.py +261 -0
  145. package/skills/ui-design/scripts/chart_sanity_check_test.py +165 -0
  146. package/skills/ui-design/scripts/check_language_policy.py +351 -0
  147. package/skills/ui-design/scripts/check_ui_artifact.py +435 -0
  148. package/skills/ui-design/scripts/check_ui_artifact_pptx_test.py +251 -0
  149. package/skills/ui-design/scripts/deck_pages_check.py +158 -0
  150. package/skills/ui-design/scripts/deck_pages_check_test.py +134 -0
  151. package/skills/ui-design/scripts/deck_visual_style_check.py +767 -0
  152. package/skills/ui-design/scripts/deck_visual_style_check_test.py +713 -0
  153. package/skills/ui-design/scripts/design_budget_check.py +271 -0
  154. package/skills/ui-design/scripts/design_budget_check_test.py +183 -0
  155. package/skills/ui-design/scripts/design_repair_hints.py +162 -0
  156. package/skills/ui-design/scripts/design_repair_hints_test.py +54 -0
  157. package/skills/ui-design/scripts/design_style_check.py +397 -0
  158. package/skills/ui-design/scripts/design_style_check_test.py +233 -0
  159. package/skills/ui-design/scripts/draft_coverage_check.py +184 -0
  160. package/skills/ui-design/scripts/draft_coverage_check_test.py +131 -0
  161. package/skills/ui-design/scripts/export_pptx_from_html.mjs +2367 -0
  162. package/skills/ui-design/scripts/extract_source_assets.py +607 -0
  163. package/skills/ui-design/scripts/extract_source_assets_test.py +256 -0
  164. package/skills/ui-design/scripts/generated_image_review_collect.py +206 -0
  165. package/skills/ui-design/scripts/generated_image_review_collect_test.py +91 -0
  166. package/skills/ui-design/scripts/image_plan_lint.py +571 -0
  167. package/skills/ui-design/scripts/image_plan_lint_test.py +515 -0
  168. package/skills/ui-design/scripts/image_prompt_rewrite.py +713 -0
  169. package/skills/ui-design/scripts/image_prompt_rewrite_test.py +966 -0
  170. package/skills/ui-design/scripts/layout_balance.py +881 -0
  171. package/skills/ui-design/scripts/layout_balance_test.py +927 -0
  172. package/skills/ui-design/scripts/normalize_design_json.py +272 -0
  173. package/skills/ui-design/scripts/normalize_design_json_test.py +119 -0
  174. package/skills/ui-design/scripts/plan_source_layout.py +1450 -0
  175. package/skills/ui-design/scripts/plan_source_layout_test.py +1136 -0
  176. package/skills/ui-design/scripts/resolve_source_input.py +270 -0
  177. package/skills/ui-design/scripts/resolve_source_input_test.py +98 -0
  178. package/skills/ui-design/scripts/scaffold_ui_artifact.py +377 -0
  179. package/skills/ui-design/scripts/source_usage_check.py +581 -0
  180. package/skills/ui-design/scripts/source_usage_check_test.py +427 -0
  181. package/skills/ui-design/scripts/text_readability_pixel.py +340 -0
  182. package/skills/ui-design/scripts/text_readability_pixel_test.py +219 -0
  183. package/skills/ui-design/scripts/visual_quality_gate.py +301 -0
  184. package/skills/ui-design/scripts/visual_quality_gate_test.py +233 -0
  185. package/skills/ui-design/tests/e2e/prompts/deck.md +19 -0
  186. package/skills/ui-design/tests/e2e/prompts/webpage.md +17 -0
  187. package/skills/ui-design/tests/e2e/render_check.mjs +101 -0
  188. package/skills/ui-design/tests/e2e/rubric.json +54 -0
  189. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/browser-check.json +49 -0
  190. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/language-check.txt +12 -0
  191. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/static-check.txt +15 -0
  192. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/outputs/index.html +837 -0
  193. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/prompt.md +12 -0
  194. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/review.md +21 -0
  195. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/screenshots/desktop.png +0 -0
  196. package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/screenshots/mobile.png +0 -0
  197. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/outputs/homepage.html +373 -0
  198. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/outputs/platform.html +378 -0
  199. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/prompt.md +13 -0
  200. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/review.md +26 -0
  201. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/browser-check.json +49 -0
  202. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/desktop.png +0 -0
  203. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/mobile.png +0 -0
  204. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/browser-check.json +49 -0
  205. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/desktop.png +0 -0
  206. package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/mobile.png +0 -0
  207. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/checks/static-check.txt +2 -0
  208. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/outputs/index.html +656 -0
  209. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/prompt.md +12 -0
  210. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/render_check.mjs +67 -0
  211. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/checks/static-check.txt +2 -0
  212. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/outputs/index.html +587 -0
  213. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/prompt.md +12 -0
  214. package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/review.md +36 -0
  215. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/browser-check.json +49 -0
  216. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/language-check.txt +8 -0
  217. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/static-check.txt +16 -0
  218. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/outputs/index.html +739 -0
  219. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/prompt.md +11 -0
  220. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/review.md +22 -0
  221. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/screenshots/desktop.png +0 -0
  222. package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/screenshots/mobile.png +0 -0
  223. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/checks/browser-check.json +52 -0
  224. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/outputs/index.html +641 -0
  225. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/screenshots/desktop.png +0 -0
  226. package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/screenshots/mobile.png +0 -0
  227. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/outputs/index.html +467 -0
  228. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/browser-check.json +49 -0
  229. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/desktop.png +0 -0
  230. package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/mobile.png +0 -0
  231. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/outputs/homepage.html +373 -0
  232. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/outputs/platform.html +378 -0
  233. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/prompt.md +13 -0
  234. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/review.md +26 -0
  235. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/browser-check.json +49 -0
  236. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/desktop.png +0 -0
  237. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/mobile.png +0 -0
  238. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/browser-check.json +49 -0
  239. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/desktop.png +0 -0
  240. package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/mobile.png +0 -0
  241. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/browser-check.json +49 -0
  242. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/language-check.txt +4 -0
  243. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/static-check.txt +2 -0
  244. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/execution_notes.md +10 -0
  245. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/outputs/index.html +587 -0
  246. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/prompt.md +14 -0
  247. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/review.md +13 -0
  248. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/screenshots/desktop.png +0 -0
  249. package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/screenshots/mobile.png +0 -0
  250. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/checks/browser-check.json +24 -0
  251. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/checks/static-check.txt +2 -0
  252. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/execution_notes.md +21 -0
  253. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/outputs/deck.html +451 -0
  254. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/screenshots/slide-01.png +0 -0
  255. package/skills/ui-design/tests/e2e/runs/iteration-1/deck/screenshots/slide-02.png +0 -0
  256. package/skills/ui-design/tests/e2e/runs/iteration-1/review.md +79 -0
  257. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/checks/browser-check.json +26 -0
  258. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/checks/static-check.txt +2 -0
  259. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/execution_notes.md +20 -0
  260. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/outputs/index.html +534 -0
  261. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/screenshots/desktop.png +0 -0
  262. package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/screenshots/mobile.png +0 -0
  263. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/browser-check.json +64 -0
  264. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/language-check.txt +7 -0
  265. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/quick-validate.txt +1 -0
  266. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/static-console.txt +2 -0
  267. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/static-homepage.txt +2 -0
  268. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/console.html +600 -0
  269. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/homepage.html +556 -0
  270. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/prompt.md +29 -0
  271. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/review.md +57 -0
  272. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/console-desktop.png +0 -0
  273. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/console-mobile.png +0 -0
  274. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/homepage-desktop.png +0 -0
  275. package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/homepage-mobile.png +0 -0
  276. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/browser-check.json +33 -0
  277. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/language-check.txt +6 -0
  278. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/quick-validate.txt +1 -0
  279. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/static-check.txt +2 -0
  280. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/outputs/index.html +682 -0
  281. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/prompt.md +13 -0
  282. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/review.md +59 -0
  283. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/screenshots/desktop.png +0 -0
  284. package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/screenshots/mobile.png +0 -0
  285. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/outputs/page-01.html +466 -0
  286. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/outputs/page-02.html +433 -0
  287. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/prompt.md +13 -0
  288. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/browser-check.json +49 -0
  289. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/desktop.png +0 -0
  290. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/mobile.png +0 -0
  291. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/browser-check.json +49 -0
  292. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/desktop.png +0 -0
  293. package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/mobile.png +0 -0
  294. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/browser-check.json +49 -0
  295. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/language-check.txt +3 -0
  296. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/static-check.txt +2 -0
  297. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/execution_notes.md +24 -0
  298. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/outputs/index.html +723 -0
  299. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/prompt.md +15 -0
  300. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/review.md +26 -0
  301. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/screenshots/desktop.png +0 -0
  302. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/screenshots/mobile.png +0 -0
  303. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/browser-dark.json +49 -0
  304. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/browser-light.json +49 -0
  305. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/language-check.txt +11 -0
  306. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/static-dark.txt +2 -0
  307. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/static-light.txt +3 -0
  308. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/execution_notes.md +23 -0
  309. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/outputs/dark.html +392 -0
  310. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/outputs/light.html +476 -0
  311. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/prompt.md +23 -0
  312. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/review.md +41 -0
  313. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/dark/desktop.png +0 -0
  314. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/dark/mobile.png +0 -0
  315. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/light/desktop.png +0 -0
  316. package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/light/mobile.png +0 -0
  317. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/browser-check.json +54 -0
  318. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/language-check.txt +5 -0
  319. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/quick-validate.txt +1 -0
  320. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/static-check.txt +2 -0
  321. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/outputs/index.html +765 -0
  322. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/prompt.md +15 -0
  323. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/review.md +59 -0
  324. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/screenshots/desktop.png +0 -0
  325. package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/screenshots/mobile.png +0 -0
  326. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/outputs/index.html +508 -0
  327. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/browser-check.json +49 -0
  328. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/desktop.png +0 -0
  329. package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/mobile.png +0 -0
  330. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/browser-check.json +54 -0
  331. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/language-check.txt +6 -0
  332. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/quick-validate.txt +1 -0
  333. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/static-check.txt +2 -0
  334. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/outputs/index.html +788 -0
  335. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/prompt.md +14 -0
  336. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/review.md +60 -0
  337. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/screenshots/desktop.png +0 -0
  338. package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/screenshots/mobile.png +0 -0
  339. package/skills/video-compose/SKILL.md +8 -1
  340. package/skills/web-crawler/SKILL.md +70 -0
  341. package/skills/web-crawler/scripts/crawl.mjs +538 -0
  342. package/skills/web-crawler/scripts/crawl.test.mjs +204 -0
  343. package/skills/xlsx/SKILL.md +12 -0
  344. package/skills/xlsx/scripts/opc_check.py +253 -0
  345. package/src/advisorState.js +22 -0
  346. package/src/askBridge.js +97 -3
  347. package/src/bootstrap/workingDir.js +12 -1
  348. package/src/cli/args.js +17 -1
  349. package/src/cli/configMenu.js +236 -0
  350. package/src/cli/configWizard.js +7 -5
  351. package/src/cli/print.js +37 -4
  352. package/src/cli/streamJson.js +77 -24
  353. package/src/cli/wizards/advisorWizard.js +147 -0
  354. package/src/cli/wizards/fieldForm.js +149 -0
  355. package/src/cli/wizards/imageWizard.js +60 -0
  356. package/src/cli/wizards/openRouterWizard.js +23 -0
  357. package/src/cli/wizards/providerPresets.js +95 -0
  358. package/src/cli/wizards/providerWizard.js +219 -0
  359. package/src/cli/wizards/searchWizard.js +23 -0
  360. package/src/cli/wizards/ttsWizard.js +34 -0
  361. package/src/config/configFile.js +441 -83
  362. package/src/config/configService.js +446 -0
  363. package/src/config.js +24 -64
  364. package/src/context/agentHome.js +9 -0
  365. package/src/context/archive.js +7 -2
  366. package/src/context/compact.js +8 -5
  367. package/src/context/contextLock.js +81 -0
  368. package/src/context/persistContext.js +30 -11
  369. package/src/context/reactiveCompact.js +4 -2
  370. package/src/context/recentDirs.js +21 -61
  371. package/src/context/sessionPath.js +97 -23
  372. package/src/context/sessionRegistry.js +303 -24
  373. package/src/context/tokenCounter.js +18 -0
  374. package/src/context/workspaceIndex.js +731 -0
  375. package/src/infra/verification.js +28 -15
  376. package/src/llm/client.js +394 -159
  377. package/src/llm/providers/anthropicFormat.js +241 -0
  378. package/src/llm/providers/openaiFormat.js +190 -0
  379. package/src/loop.js +219 -32
  380. package/src/main.js +61 -11
  381. package/src/messageQueue.js +97 -0
  382. package/src/multimodal.js +203 -0
  383. package/src/plugin-sdk.js +15 -0
  384. package/src/plugins/commandRouter.js +3 -0
  385. package/src/plugins/hookEngine.js +5 -1
  386. package/src/plugins/pluginLifecycle.js +28 -0
  387. package/src/plugins/pluginLoader.js +2 -1
  388. package/src/plugins/pluginRunner.js +49 -21
  389. package/src/plugins/transcript.js +4 -3
  390. package/src/prompts/pluginList.js +5 -5
  391. package/src/prompts/projectInstructions.js +3 -3
  392. package/src/prompts/promptAssembly.js +133 -144
  393. package/src/prompts/skillList.js +12 -22
  394. package/src/prompts/system.js +0 -1
  395. package/src/session/runAgentTurn.js +70 -0
  396. package/src/session/runTurn.js +41 -6
  397. package/src/toolGate.js +17 -0
  398. package/src/tools/advisor/advisor.js +379 -0
  399. package/src/tools/agent/agent.js +555 -0
  400. package/src/tools/agent/agentTypes.js +59 -0
  401. package/src/tools/agent/coordinator.js +93 -0
  402. package/src/tools/agent/worktree.js +270 -0
  403. package/src/tools/ask/ask.js +7 -2
  404. package/src/tools/bash/bash.js +112 -18
  405. package/src/tools/download/download.js +144 -0
  406. package/src/tools/edit/edit.js +1 -0
  407. package/src/tools/edit/multi-edit.js +1 -0
  408. package/src/tools/genimage/genimage.js +242 -0
  409. package/src/tools/genspeech/genspeech.js +67 -0
  410. package/src/tools/glob/glob.js +1 -0
  411. package/src/tools/grep/grep.js +3 -0
  412. package/src/tools/grep/rgPath.js +2 -0
  413. package/src/tools/index.js +25 -2
  414. package/src/tools/read/read.js +1 -0
  415. package/src/tools/shared/killTree.js +52 -0
  416. package/src/tools/toolProgressBridge.js +48 -0
  417. package/src/tools/webbrowser/agentBrowserPath.js +258 -0
  418. package/src/tools/webbrowser/browser.js +59 -42
  419. package/src/tools/webbrowser/browserControl.js +118 -0
  420. package/src/tools/webbrowser/browserDaemon.js +97 -0
  421. package/src/tools/webbrowser/browserService.js +27 -0
  422. package/src/tools/webbrowser/browserStream.js +119 -0
  423. package/src/tools/webbrowser/webbrowser.js +699 -130
  424. package/src/tools/webfetch/webfetch.js +1 -0
  425. package/src/tools/websearch/websearch.js +134 -51
  426. package/src/tools/write/write.js +1 -0
  427. package/src/ui/App.js +249 -22
  428. package/src/ui/AskQuestion.js +29 -10
  429. package/src/ui/InputBox.js +104 -12
  430. package/src/ui/LiveArea.js +112 -19
  431. package/src/ui/MessageList.js +100 -14
  432. package/src/ui/ModelPicker.js +56 -0
  433. package/src/ui/QueuedMessagesBanner.js +14 -0
  434. package/src/ui/Root.js +18 -10
  435. package/src/ui/SessionPicker.js +102 -0
  436. package/src/ui/StatusLine.js +13 -4
  437. package/src/ui/WorkspacePicker.js +55 -0
  438. package/src/ui/figures.js +44 -0
  439. package/src/ui/hooks/askSlot.js +82 -0
  440. package/src/ui/hooks/useChat.js +358 -64
  441. package/src/ui/hooks/usePasteHandler.js +11 -1
  442. package/src/ui/hooks/useTextBuffer.js +1 -3
  443. package/src/ui/liveViewport.js +5 -1
  444. package/src/ui/markdown.js +206 -0
  445. package/src/ui/textBuffer.js +0 -7
  446. package/src/ui/theme.js +32 -0
  447. package/src/utils/debugLog.js +0 -4
  448. package/src/utils/resourcePaths.js +2 -2
  449. package/src/utils/stripThink.js +50 -0
  450. package/src/web/browserBridge.js +447 -0
  451. package/src/web/protocol.js +19 -0
  452. package/workflows/adaptive-research.yaml +13 -5
  453. package/workflows/book-review-short.yaml +36 -10
  454. package/workflows/e2e-write-greet.yaml +6 -2
  455. package/workflows/illustrate.yaml +227 -0
  456. package/workflows/plan.yaml +460 -179
  457. package/workflows/ppt.yaml +1659 -0
  458. package/workflows/ralph-loop.yaml +199 -0
  459. package/workflows/schema.json +81 -23
  460. package/workflows/webppt.yaml +496 -0
  461. package/workflows/word.yaml +710 -0
  462. package/workflows/youtube-shorts.yaml +46 -15
  463. package/MINIMAL-TRACE.md +0 -77
  464. package/plugins/HOW-TO-WRITE-A-PLUGIN.md +0 -186
  465. package/plugins/ralph-wiggum/.claude-plugin/plugin.json +0 -9
  466. package/plugins/ralph-wiggum/README.md +0 -197
  467. package/plugins/ralph-wiggum/commands/cancel-ralph.md +0 -18
  468. package/plugins/ralph-wiggum/commands/help.md +0 -137
  469. package/plugins/ralph-wiggum/commands/ralph-loop.md +0 -85
  470. package/plugins/ralph-wiggum/hooks/hooks.json +0 -15
  471. package/plugins/ralph-wiggum/hooks/stop-hook.sh +0 -191
  472. package/plugins/ralph-wiggum/plugin.js +0 -280
  473. package/plugins/ralph-wiggum/src/goalState.js +0 -258
  474. package/plugins/ralph-wiggum/src/sentinels.js +0 -76
  475. package/plugins/ralph-wiggum/src/stopHookRunner.js +0 -104
  476. package/plugins/ralph-wiggum/src/verificationGate.js +0 -202
  477. package/plugins/workflow-runner/src/miniReAct.js +0 -223
  478. package/plugins/workflow-runner/src/voteHelpers.js +0 -110
  479. package/skills/config/SKILL.md +0 -123
  480. package/skills/frontend-design/LICENSE.txt +0 -177
  481. package/skills/frontend-design/SKILL.md +0 -42
  482. package/src/ui/ProgressPanel.js +0 -54
  483. package/src/ui/StreamingBlock.js +0 -11
  484. package/src/ui/ToolStatus.js +0 -11
@@ -0,0 +1,2 @@
1
+ ui-design artifact check: minimal-agent/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/outputs/index.html
2
+ OK: no issues found.
@@ -0,0 +1,682 @@
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>Obsidian Optics 黑曜影像样张</title>
7
+ <style>
8
+ :root {
9
+ --ink: #f4f5f6;
10
+ --ink-soft: #d8dde3;
11
+ --muted: #8c939d;
12
+ --paper: #07080a;
13
+ --surface: #101216;
14
+ --surface-raised: #171a20;
15
+ --surface-metal: #20242b;
16
+ --line: rgba(244, 245, 246, 0.12);
17
+ --line-strong: rgba(244, 245, 246, 0.22);
18
+ --accent: #e21b2d;
19
+ --accent-deep: #7b0f18;
20
+ --optic: #b9c7d6;
21
+ --shadow: rgba(0, 0, 0, 0.42);
22
+ --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
23
+ font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Inter", sans-serif;
24
+ }
25
+
26
+ * {
27
+ box-sizing: border-box;
28
+ }
29
+
30
+ body {
31
+ margin: 0;
32
+ min-height: 100vh;
33
+ color: var(--ink);
34
+ background:
35
+ radial-gradient(circle at 78% 18%, rgba(185, 199, 214, 0.16), transparent 28%),
36
+ radial-gradient(circle at 18% 6%, rgba(226, 27, 45, 0.12), transparent 22%),
37
+ linear-gradient(135deg, #050607 0%, #0b0d10 42%, #141820 100%);
38
+ }
39
+
40
+ body::before {
41
+ content: "";
42
+ position: fixed;
43
+ inset: 0;
44
+ z-index: -1;
45
+ background:
46
+ linear-gradient(rgba(244, 245, 246, 0.035) 1px, transparent 1px),
47
+ linear-gradient(90deg, rgba(244, 245, 246, 0.026) 1px, transparent 1px);
48
+ background-size: 64px 64px;
49
+ mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 86%);
50
+ }
51
+
52
+ button,
53
+ input {
54
+ font: inherit;
55
+ }
56
+
57
+ .page {
58
+ width: min(1180px, calc(100vw - 32px));
59
+ margin: 0 auto;
60
+ padding: 28px 0 56px;
61
+ }
62
+
63
+ .panel {
64
+ border: 1px solid var(--line);
65
+ background:
66
+ linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
67
+ linear-gradient(180deg, var(--surface-raised), var(--surface));
68
+ box-shadow: 0 24px 72px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
69
+ }
70
+
71
+ .nav {
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: space-between;
75
+ gap: 18px;
76
+ padding: 12px 14px;
77
+ border-radius: 16px;
78
+ }
79
+
80
+ .brand {
81
+ display: flex;
82
+ align-items: center;
83
+ gap: 12px;
84
+ min-width: 0;
85
+ }
86
+
87
+ .mark {
88
+ position: relative;
89
+ width: 42px;
90
+ height: 42px;
91
+ border: 1px solid var(--line-strong);
92
+ border-radius: 50%;
93
+ background:
94
+ radial-gradient(circle at 50% 50%, rgba(185, 199, 214, 0.45), transparent 18%),
95
+ conic-gradient(from 18deg, rgba(226, 27, 45, 0.9), rgba(244, 245, 246, 0.18), rgba(185, 199, 214, 0.28), rgba(226, 27, 45, 0.9));
96
+ box-shadow: 0 0 28px rgba(226, 27, 45, 0.12);
97
+ }
98
+
99
+ .mark::after {
100
+ content: "";
101
+ position: absolute;
102
+ inset: 12px;
103
+ border-radius: 50%;
104
+ background: var(--paper);
105
+ border: 1px solid var(--line);
106
+ }
107
+
108
+ .brand strong {
109
+ display: block;
110
+ font-size: 15px;
111
+ }
112
+
113
+ .brand span,
114
+ .tag,
115
+ .spec-label {
116
+ color: var(--muted);
117
+ font-family: var(--mono);
118
+ font-size: 12px;
119
+ letter-spacing: 0.08em;
120
+ }
121
+
122
+ .nav-tags {
123
+ display: flex;
124
+ flex-wrap: wrap;
125
+ justify-content: flex-end;
126
+ gap: 8px;
127
+ }
128
+
129
+ .tag {
130
+ border: 1px solid var(--line);
131
+ border-radius: 999px;
132
+ padding: 8px 11px;
133
+ background: rgba(255, 255, 255, 0.035);
134
+ white-space: nowrap;
135
+ }
136
+
137
+ .tag.record {
138
+ color: var(--ink);
139
+ border-color: rgba(226, 27, 45, 0.46);
140
+ }
141
+
142
+ .tag.record::before {
143
+ content: "";
144
+ display: inline-block;
145
+ width: 7px;
146
+ height: 7px;
147
+ margin-right: 7px;
148
+ border-radius: 50%;
149
+ background: var(--accent);
150
+ box-shadow: 0 0 16px rgba(226, 27, 45, 0.75);
151
+ vertical-align: 1px;
152
+ }
153
+
154
+ .hero {
155
+ display: grid;
156
+ grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
157
+ gap: 24px;
158
+ margin-top: 26px;
159
+ }
160
+
161
+ .hero-main,
162
+ .camera-card,
163
+ .section {
164
+ border-radius: 18px;
165
+ overflow: hidden;
166
+ position: relative;
167
+ }
168
+
169
+ .hero-main {
170
+ padding: clamp(30px, 5vw, 58px);
171
+ min-height: 590px;
172
+ }
173
+
174
+ .hero-main::after {
175
+ content: "";
176
+ position: absolute;
177
+ right: -92px;
178
+ bottom: -118px;
179
+ width: 360px;
180
+ height: 360px;
181
+ border-radius: 50%;
182
+ border: 1px solid rgba(185, 199, 214, 0.22);
183
+ background:
184
+ radial-gradient(circle, transparent 0 34%, rgba(185, 199, 214, 0.11) 35% 36%, transparent 37%),
185
+ repeating-conic-gradient(from 0deg, rgba(244, 245, 246, 0.13) 0deg 2deg, transparent 2deg 9deg);
186
+ opacity: 0.78;
187
+ }
188
+
189
+ .kicker {
190
+ margin: 0 0 18px;
191
+ color: var(--accent);
192
+ font-family: var(--mono);
193
+ font-size: 12px;
194
+ font-weight: 800;
195
+ letter-spacing: 0.12em;
196
+ }
197
+
198
+ h1,
199
+ h2,
200
+ h3,
201
+ p {
202
+ margin-top: 0;
203
+ }
204
+
205
+ h1 {
206
+ position: relative;
207
+ z-index: 1;
208
+ max-width: 760px;
209
+ margin-bottom: 22px;
210
+ font-size: clamp(42px, 6vw, 76px);
211
+ line-height: 0.99;
212
+ letter-spacing: 0;
213
+ text-wrap: balance;
214
+ }
215
+
216
+ .lead {
217
+ position: relative;
218
+ z-index: 1;
219
+ max-width: 620px;
220
+ margin-bottom: 30px;
221
+ color: var(--ink-soft);
222
+ font-size: clamp(16px, 1.7vw, 19px);
223
+ line-height: 1.62;
224
+ font-weight: 600;
225
+ }
226
+
227
+ .actions {
228
+ position: relative;
229
+ z-index: 1;
230
+ display: flex;
231
+ flex-wrap: wrap;
232
+ align-items: center;
233
+ gap: 12px;
234
+ }
235
+
236
+ .button {
237
+ border: 0;
238
+ border-radius: 10px;
239
+ padding: 13px 18px;
240
+ cursor: pointer;
241
+ font-weight: 800;
242
+ }
243
+
244
+ .button.primary {
245
+ color: white;
246
+ background:
247
+ linear-gradient(135deg, var(--accent), #ff4050 58%, var(--accent-deep));
248
+ box-shadow: 0 16px 34px rgba(226, 27, 45, 0.24);
249
+ }
250
+
251
+ .button.secondary {
252
+ color: var(--ink);
253
+ border: 1px solid var(--line-strong);
254
+ background: rgba(255, 255, 255, 0.045);
255
+ }
256
+
257
+ .spec-strip {
258
+ position: relative;
259
+ z-index: 1;
260
+ display: grid;
261
+ grid-template-columns: repeat(4, 1fr);
262
+ gap: 10px;
263
+ margin-top: 42px;
264
+ }
265
+
266
+ .spec {
267
+ border: 1px solid var(--line);
268
+ border-radius: 12px;
269
+ padding: 15px;
270
+ background: rgba(255, 255, 255, 0.035);
271
+ }
272
+
273
+ .spec b {
274
+ display: block;
275
+ color: var(--ink);
276
+ font-family: var(--mono);
277
+ font-size: 22px;
278
+ line-height: 1;
279
+ }
280
+
281
+ .spec span {
282
+ display: block;
283
+ margin-top: 8px;
284
+ color: var(--muted);
285
+ font-size: 12px;
286
+ font-weight: 700;
287
+ }
288
+
289
+ .camera-card {
290
+ padding: 24px;
291
+ display: grid;
292
+ align-content: space-between;
293
+ gap: 18px;
294
+ }
295
+
296
+ .device {
297
+ border: 1px solid var(--line-strong);
298
+ border-radius: 18px;
299
+ min-height: 250px;
300
+ background:
301
+ linear-gradient(145deg, rgba(244, 245, 246, 0.08), transparent 34%),
302
+ linear-gradient(180deg, #1b1f26, #0b0d10);
303
+ position: relative;
304
+ overflow: hidden;
305
+ }
306
+
307
+ .device::before {
308
+ content: "";
309
+ position: absolute;
310
+ inset: 42px auto auto 50%;
311
+ width: 156px;
312
+ height: 156px;
313
+ transform: translateX(-50%);
314
+ border-radius: 50%;
315
+ border: 1px solid rgba(185, 199, 214, 0.38);
316
+ background:
317
+ radial-gradient(circle, rgba(185, 199, 214, 0.48) 0 10%, #07080a 11% 34%, rgba(185, 199, 214, 0.16) 35% 36%, transparent 37%),
318
+ conic-gradient(from 12deg, rgba(226, 27, 45, 0.28), rgba(244, 245, 246, 0.08), rgba(185, 199, 214, 0.2), rgba(226, 27, 45, 0.28));
319
+ box-shadow: inset 0 0 40px rgba(185, 199, 214, 0.12), 0 0 52px rgba(185, 199, 214, 0.08);
320
+ }
321
+
322
+ .device::after {
323
+ content: "REC";
324
+ position: absolute;
325
+ left: 18px;
326
+ top: 18px;
327
+ color: var(--accent);
328
+ font-family: var(--mono);
329
+ font-size: 12px;
330
+ font-weight: 800;
331
+ letter-spacing: 0.16em;
332
+ }
333
+
334
+ .readout {
335
+ display: grid;
336
+ gap: 10px;
337
+ }
338
+
339
+ .readout-row {
340
+ display: flex;
341
+ justify-content: space-between;
342
+ gap: 16px;
343
+ border-bottom: 1px solid var(--line);
344
+ padding: 10px 0;
345
+ font-family: var(--mono);
346
+ font-size: 13px;
347
+ }
348
+
349
+ .readout-row span:first-child {
350
+ color: var(--muted);
351
+ }
352
+
353
+ .readout-row span:last-child {
354
+ color: var(--ink);
355
+ }
356
+
357
+ .record-line {
358
+ height: 8px;
359
+ border-radius: 999px;
360
+ background: rgba(244, 245, 246, 0.08);
361
+ overflow: hidden;
362
+ }
363
+
364
+ .record-line span {
365
+ display: block;
366
+ width: 68%;
367
+ height: 100%;
368
+ border-radius: inherit;
369
+ background: linear-gradient(90deg, var(--accent-deep), var(--accent), #ff5a66);
370
+ }
371
+
372
+ .section {
373
+ margin-top: 24px;
374
+ padding: clamp(22px, 3vw, 32px);
375
+ }
376
+
377
+ .section-head {
378
+ display: grid;
379
+ grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
380
+ gap: 24px;
381
+ align-items: end;
382
+ margin-bottom: 20px;
383
+ }
384
+
385
+ .section-head h2 {
386
+ margin-bottom: 0;
387
+ font-size: clamp(26px, 3.2vw, 42px);
388
+ line-height: 1.12;
389
+ text-wrap: balance;
390
+ }
391
+
392
+ .section-head p {
393
+ margin-bottom: 0;
394
+ color: var(--muted);
395
+ line-height: 1.55;
396
+ font-weight: 650;
397
+ }
398
+
399
+ .swatches,
400
+ .cards {
401
+ display: grid;
402
+ gap: 14px;
403
+ }
404
+
405
+ .swatches {
406
+ grid-template-columns: repeat(6, 1fr);
407
+ }
408
+
409
+ .swatch,
410
+ .card {
411
+ border: 1px solid var(--line);
412
+ border-radius: 14px;
413
+ padding: 16px;
414
+ background: rgba(255, 255, 255, 0.035);
415
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
416
+ }
417
+
418
+ .swatch {
419
+ min-height: 138px;
420
+ display: grid;
421
+ align-content: end;
422
+ }
423
+
424
+ .swatch b,
425
+ .card h3 {
426
+ margin-bottom: 8px;
427
+ color: var(--ink);
428
+ }
429
+
430
+ .swatch span,
431
+ .card p {
432
+ color: var(--muted);
433
+ line-height: 1.55;
434
+ font-weight: 650;
435
+ }
436
+
437
+ .cards {
438
+ grid-template-columns: repeat(3, 1fr);
439
+ }
440
+
441
+ .card {
442
+ min-height: 220px;
443
+ background:
444
+ linear-gradient(145deg, rgba(244, 245, 246, 0.06), rgba(244, 245, 246, 0.02)),
445
+ #101216;
446
+ }
447
+
448
+ .status-grid {
449
+ display: grid;
450
+ gap: 10px;
451
+ }
452
+
453
+ .status-line {
454
+ display: grid;
455
+ grid-template-columns: 84px 1fr;
456
+ gap: 12px;
457
+ align-items: center;
458
+ font-family: var(--mono);
459
+ font-size: 12px;
460
+ }
461
+
462
+ .bar {
463
+ height: 8px;
464
+ border-radius: 999px;
465
+ background: rgba(244, 245, 246, 0.08);
466
+ overflow: hidden;
467
+ }
468
+
469
+ .bar span {
470
+ display: block;
471
+ height: 100%;
472
+ border-radius: inherit;
473
+ background: linear-gradient(90deg, var(--optic), var(--accent));
474
+ }
475
+
476
+ .tweaks-panel {
477
+ position: fixed;
478
+ right: 18px;
479
+ bottom: 18px;
480
+ z-index: 20;
481
+ width: min(300px, calc(100vw - 36px));
482
+ display: none;
483
+ gap: 12px;
484
+ padding: 16px;
485
+ border-radius: 14px;
486
+ border: 1px solid var(--line);
487
+ background: var(--surface-raised);
488
+ box-shadow: 0 18px 52px var(--shadow);
489
+ }
490
+
491
+ .tweaks-panel label {
492
+ display: grid;
493
+ gap: 6px;
494
+ color: var(--muted);
495
+ font-size: 13px;
496
+ font-weight: 700;
497
+ }
498
+
499
+ @media (max-width: 900px) {
500
+ .page {
501
+ width: min(100% - 24px, 680px);
502
+ padding-top: 14px;
503
+ }
504
+
505
+ .nav,
506
+ .hero,
507
+ .section-head,
508
+ .cards {
509
+ grid-template-columns: 1fr;
510
+ }
511
+
512
+ .nav {
513
+ display: grid;
514
+ }
515
+
516
+ .nav-tags {
517
+ justify-content: flex-start;
518
+ }
519
+
520
+ .hero {
521
+ display: grid;
522
+ }
523
+
524
+ .spec-strip,
525
+ .swatches {
526
+ grid-template-columns: repeat(2, 1fr);
527
+ }
528
+ }
529
+
530
+ @media (max-width: 520px) {
531
+ h1 {
532
+ font-size: clamp(38px, 12vw, 56px);
533
+ line-height: 1.04;
534
+ }
535
+
536
+ .hero-main {
537
+ min-height: auto;
538
+ }
539
+
540
+ .spec-strip,
541
+ .swatches {
542
+ grid-template-columns: 1fr;
543
+ }
544
+ }
545
+ </style>
546
+ </head>
547
+ <body>
548
+ <main class="page" data-screen-label="01 黑曜影像样张">
549
+ <nav class="nav panel" aria-label="主导航">
550
+ <div class="brand">
551
+ <div class="mark" aria-hidden="true"></div>
552
+ <div>
553
+ <strong>影澈 X1</strong>
554
+ <span>Obsidian Optics 黑曜影像</span>
555
+ </div>
556
+ </div>
557
+ <div class="nav-tags">
558
+ <span class="tag record">待录制</span>
559
+ <span class="tag">8K RAW</span>
560
+ <span class="tag">120 FPS</span>
561
+ <span class="tag">16 档动态范围</span>
562
+ </div>
563
+ </nav>
564
+
565
+ <section class="hero">
566
+ <div class="hero-main panel">
567
+ <p class="kicker">黑白红 / 精密影像硬件</p>
568
+ <h1>轻量机身,保留电影级画面控制。</h1>
569
+ <p class="lead">这张样张测试黑曜影像 VI:黑色必须有石墨层次,白字必须清楚,红色只作为录制信号和关键行动,而不是沉重的情绪涂层。</p>
570
+ <div class="actions">
571
+ <button class="button primary" type="button">查看机身规格</button>
572
+ <button class="button secondary" type="button">进入控制台</button>
573
+ <span class="tag">冷白文字 / 石墨暗面 / 信号红</span>
574
+ </div>
575
+ <div class="spec-strip" aria-label="核心规格">
576
+ <div class="spec"><b>8K</b><span>开放格式 RAW</span></div>
577
+ <div class="spec"><b>120</b><span>最高帧率 FPS</span></div>
578
+ <div class="spec"><b>16+</b><span>动态范围</span></div>
579
+ <div class="spec"><b>640</b><span>原生 ISO</span></div>
580
+ </div>
581
+ </div>
582
+
583
+ <aside class="camera-card panel" aria-label="电影机控制面板">
584
+ <div class="device" aria-hidden="true"></div>
585
+ <div class="readout">
586
+ <div class="readout-row"><span>时间码</span><span>01:24:18:06</span></div>
587
+ <div class="readout-row"><span>快门角度</span><span>180°</span></div>
588
+ <div class="readout-row"><span>色彩空间</span><span>影像宽容模式</span></div>
589
+ <div class="readout-row"><span>存储</span><span>双卡冗余写入</span></div>
590
+ </div>
591
+ <div class="record-line" aria-label="录制缓存"><span></span></div>
592
+ </aside>
593
+ </section>
594
+
595
+ <section class="section panel" aria-label="色彩识别">
596
+ <div class="section-head">
597
+ <h2>黑白红要像设备信号,而不是沉重主题色。</h2>
598
+ <p>红色只用于录制、选中和关键行动;主体依靠石墨渐变、冷白文字、镜头冷光和细线建立专业感。</p>
599
+ </div>
600
+ <div class="swatches">
601
+ <div class="swatch" style="background:#07080a"><b>深背景</b><span>#07080a</span></div>
602
+ <div class="swatch" style="background:#101216"><b>主面板</b><span>#101216</span></div>
603
+ <div class="swatch" style="background:#171a20"><b>抬升面板</b><span>#171a20</span></div>
604
+ <div class="swatch" style="background:#f4f5f6;color:#07080a"><b style="color:#07080a">冷白文字</b><span style="color:#30343a">#f4f5f6</span></div>
605
+ <div class="swatch" style="background:#e21b2d"><b>信号红</b><span>#e21b2d</span></div>
606
+ <div class="swatch" style="background:#b9c7d6;color:#07080a"><b style="color:#07080a">镜头冷光</b><span style="color:#30343a">#b9c7d6</span></div>
607
+ </div>
608
+ </section>
609
+
610
+ <section class="section panel" aria-label="组件识别">
611
+ <div class="section-head">
612
+ <h2>参数模块、录制状态和光学母题建立器材识别。</h2>
613
+ <p>模板要科技一点但不沉重:用空间、细线、模块拼接和冷光高光,而不是满屏黑红或厚重金属纹理。</p>
614
+ </div>
615
+ <div class="cards">
616
+ <article class="card">
617
+ <h3>参数清晰</h3>
618
+ <p>规格信息用等宽感标签和分组面板呈现,适合展示帧率、动态范围、编码、接口和电源状态。</p>
619
+ </article>
620
+ <article class="card">
621
+ <h3>录制纪律</h3>
622
+ <div class="status-grid">
623
+ <div class="status-line"><span>缓存</span><div class="bar"><span style="width:68%"></span></div></div>
624
+ <div class="status-line"><span>温度</span><div class="bar"><span style="width:42%"></span></div></div>
625
+ <div class="status-line"><span>电量</span><div class="bar"><span style="width:82%"></span></div></div>
626
+ </div>
627
+ </article>
628
+ <article class="card">
629
+ <h3>原创边界</h3>
630
+ <p>这个方向只借鉴高端影像硬件的工业科技感,不使用真实品牌名称、标识、机身造型或专有排版。</p>
631
+ </article>
632
+ </div>
633
+ </section>
634
+ </main>
635
+
636
+ <aside class="tweaks-panel" aria-label="调整">
637
+ <strong>调整</strong>
638
+ <label>信号红 <input data-tweak-primary type="color" value="#e21b2d"></label>
639
+ <label>暗面亮度 <input data-tweak-lift type="range" min="8" max="24" value="16"></label>
640
+ </aside>
641
+
642
+ <script>
643
+ const initialTweaks = /*EDITMODE-BEGIN*/{
644
+ "primaryColor": "#e21b2d",
645
+ "surfaceLift": 16
646
+ }/*EDITMODE-END*/;
647
+ window.UI_DESIGN_TWEAKS = initialTweaks;
648
+
649
+ const root = document.documentElement;
650
+ const panel = document.querySelector('.tweaks-panel');
651
+
652
+ function applyTweaks(values) {
653
+ if (values.primaryColor) root.style.setProperty('--accent', values.primaryColor);
654
+ if (values.surfaceLift) {
655
+ const lift = Math.max(8, Math.min(24, Number(values.surfaceLift)));
656
+ root.style.setProperty('--surface-raised', `rgb(${lift + 7}, ${lift + 10}, ${lift + 16})`);
657
+ }
658
+ }
659
+
660
+ window.addEventListener('message', (event) => {
661
+ const data = event.data || {};
662
+ if (data.type === '__activate_edit_mode') panel.style.display = 'grid';
663
+ if (data.type === '__deactivate_edit_mode') panel.style.display = 'none';
664
+ if (data.type === '__edit_mode_set_keys' && data.keys) applyTweaks(data.keys);
665
+ });
666
+
667
+ document.querySelector('[data-tweak-primary]').addEventListener('input', (event) => {
668
+ const keys = { primaryColor: event.target.value };
669
+ applyTweaks(keys);
670
+ window.parent.postMessage({ type: '__edit_mode_set_keys', keys }, '*');
671
+ });
672
+
673
+ document.querySelector('[data-tweak-lift]').addEventListener('input', (event) => {
674
+ const keys = { surfaceLift: Number(event.target.value) };
675
+ applyTweaks(keys);
676
+ window.parent.postMessage({ type: '__edit_mode_set_keys', keys }, '*');
677
+ });
678
+
679
+ window.parent.postMessage({ type: '__edit_mode_available' }, '*');
680
+ </script>
681
+ </body>
682
+ </html>
@@ -0,0 +1,13 @@
1
+ # Obsidian Optics 黑曜影像测试题
2
+
3
+ 使用 `ui-design` skill 和 `references/vi-obsidian-optics.md`,为一款原创电影机或影像控制台创建一个中文 HTML 页面,用来测试深色摄影器材黑白红 VI 的视觉识别效果。
4
+
5
+ 要求:
6
+
7
+ - 页面必须使用简体中文,保留必要英文名称 `Obsidian Optics`、`RAW`、`ISO`、`FPS`。
8
+ - 整体黑白为主,少量红色作为录制信号、选中状态和关键行动。
9
+ - 视觉要像高端影像硬件,但不能沉重、压抑或游戏化。
10
+ - 不出现 RED、红龙或任何真实摄影品牌内容。
11
+ - 页面需要包含首屏、参数面板、色彩识别、组件样张、录制状态和镜头/规格视觉母题。
12
+ - 暴露至少一个 Tweaks 设计维度,用于调整红色强调色或暗面亮度。
13
+ - 运行 `check_ui_artifact.py`、`check_language_policy.py`,并用浏览器截图检查桌面和移动端。