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.
- package/README.md +11 -8
- package/package.json +34 -1
- package/plugins/cron-runner/.claude-plugin/plugin.json +5 -0
- package/plugins/cron-runner/commands/cron.md +26 -0
- package/plugins/cron-runner/commands/crons.md +7 -0
- package/plugins/cron-runner/plugin.js +34 -0
- package/plugins/cron-runner/src/commands.js +348 -0
- package/plugins/cron-runner/src/cronTime.js +148 -0
- package/plugins/cron-runner/src/lock.js +68 -0
- package/plugins/cron-runner/src/runs.js +89 -0
- package/plugins/cron-runner/src/scheduleEngine.js +72 -0
- package/plugins/cron-runner/src/scheduler.js +355 -0
- package/plugins/cron-runner/src/schema.js +140 -0
- package/plugins/cron-runner/src/service.js +167 -0
- package/plugins/cron-runner/src/store.js +298 -0
- package/plugins/cron-runner/src/types.js +1 -0
- package/plugins/workflow-runner/commands/workflow.md +4 -4
- package/plugins/workflow-runner/commands/workflows.md +1 -1
- package/plugins/workflow-runner/plugin.js +2 -1
- package/plugins/workflow-runner/src/agentCommon.js +172 -9
- package/plugins/workflow-runner/src/dslManifest.js +72 -0
- package/plugins/workflow-runner/src/expressions.js +150 -13
- package/plugins/workflow-runner/src/index.js +39 -8
- package/plugins/workflow-runner/src/loader.js +216 -64
- package/plugins/workflow-runner/src/multimodal.js +37 -0
- package/plugins/workflow-runner/src/recovery.js +26 -24
- package/plugins/workflow-runner/src/runner.js +693 -287
- package/plugins/workflow-runner/src/stepExecutors/agent.js +126 -37
- package/plugins/workflow-runner/src/stepExecutors/assert.js +3 -2
- package/plugins/workflow-runner/src/stepExecutors/llm.js +38 -30
- package/plugins/workflow-runner/src/stepExecutors/skill.js +27 -38
- package/plugins/workflow-runner/src/stepExecutors/tool.js +56 -3
- package/plugins/workflow-runner/src/stepExecutors/verify.js +19 -10
- package/plugins/workflow-runner/src/taskIdentity.js +185 -30
- package/plugins/workflow-runner/src/types.js +18 -7
- package/plugins/workflow-runner/src/workflowState.js +355 -55
- package/skills/ai-image/SKILL.md +89 -0
- package/skills/ai-image/scripts/generate.mjs +497 -0
- package/skills/ai-image/scripts/generate_from_plan.mjs +469 -0
- package/skills/ai-image/scripts/generate_from_plan_test.mjs +223 -0
- package/skills/ai-image/scripts/generate_test.mjs +74 -0
- package/skills/browser-automation/SKILL.md +47 -0
- package/skills/docx/SKILL.md +25 -3
- package/skills/docx/scripts/office/helpers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/helpers/__pycache__/merge_runs.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/helpers/__pycache__/simplify_redlines.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/base.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/docx.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/pptx.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/redlining.cpython-314.pyc +0 -0
- package/skills/docx/scripts/opc_check.py +253 -0
- package/skills/image-gen-openrouter/SKILL.md +10 -2
- package/skills/image-stats/SKILL.md +65 -0
- package/skills/image-stats/scripts/__pycache__/image_stats.cpython-314.pyc +0 -0
- package/skills/image-stats/scripts/__pycache__/image_stats_test.cpython-314.pyc +0 -0
- package/skills/image-stats/scripts/image_stats.py +368 -0
- package/skills/image-stats/scripts/image_stats_test.py +181 -0
- package/skills/pptx/SKILL.md +123 -95
- package/skills/pptx/design.md +82 -0
- package/skills/pptx/examples/README.md +29 -0
- package/skills/pptx/examples/hybrid_example.mjs +107 -0
- package/skills/pptx/examples/hybrid_example.pptx +0 -0
- package/skills/pptx/pptxgenjs.md +41 -0
- package/skills/pptx/scripts/deck_helpers.mjs +224 -0
- package/skills/pptx/scripts/layout_lint.py +293 -0
- package/skills/pptx/scripts/layout_lint_test.py +160 -0
- package/skills/pptx/scripts/opc_check.py +339 -0
- package/skills/pptx/scripts/svg_fallback.mjs +145 -0
- package/skills/pptx/svg.md +67 -0
- package/skills/tts-zh/SKILL.md +19 -2
- package/skills/ui-design/SKILL.md +158 -0
- package/skills/ui-design/claude_design.md +309 -0
- package/skills/ui-design/evals/evals.json +254 -0
- package/skills/ui-design/references/aesthetic-direction.md +83 -0
- package/skills/ui-design/references/claude-design-protocol.md +36 -0
- package/skills/ui-design/references/design-context.md +53 -0
- package/skills/ui-design/references/design-execution-playbook.md +82 -0
- package/skills/ui-design/references/export-pptx.md +124 -0
- package/skills/ui-design/references/layout-composition.md +654 -0
- package/skills/ui-design/references/preview-feedback.md +37 -0
- package/skills/ui-design/references/source-image-layout.md +189 -0
- package/skills/ui-design/references/starter-components.md +78 -0
- package/skills/ui-design/references/vi-aegis-vector.md +144 -0
- package/skills/ui-design/references/vi-amber-prism.md +133 -0
- package/skills/ui-design/references/vi-aqua-glass.md +200 -0
- package/skills/ui-design/references/vi-comfort-vision.md +147 -0
- package/skills/ui-design/references/vi-ember-prism.md +140 -0
- package/skills/ui-design/references/vi-nebula-console.md +151 -0
- package/skills/ui-design/references/vi-obsidian-optics.md +139 -0
- package/skills/ui-design/references/vi-obsidian-xui.md +143 -0
- package/skills/ui-design/references/vi-precision-horizon-dark.md +117 -0
- package/skills/ui-design/references/vi-precision-horizon.md +215 -0
- package/skills/ui-design/references/vi-solar-relay.md +130 -0
- package/skills/ui-design/references/vi-template-workflow.md +48 -0
- package/skills/ui-design/references/vi-verdant-grid.md +141 -0
- package/skills/ui-design/references/vi-violet-meridian.md +172 -0
- package/skills/ui-design/scripts/__pycache__/assemble_material.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/assemble_material_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/chart_sanity_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/check_language_policy.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/check_ui_artifact.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/check_ui_artifact_pptx_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_pages_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_pages_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_visual_style_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_visual_style_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_budget_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_budget_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_repair_hints.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_repair_hints_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_style_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_style_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/draft_coverage_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/extract_source_assets.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/extract_source_assets_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/generated_image_review_collect.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/generated_image_review_collect_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_plan_lint.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_plan_lint_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/layout_balance.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/layout_balance_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/normalize_design_json.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/normalize_design_json_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/plan_source_layout.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/plan_source_layout_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_hint.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_hint_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_input.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_input_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/scaffold_ui_artifact.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/source_usage_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/source_usage_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/text_readability_pixel.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/visual_quality_gate.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/visual_quality_gate_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/assemble_material.py +217 -0
- package/skills/ui-design/scripts/assemble_material_test.py +149 -0
- package/skills/ui-design/scripts/browser_check_ui_artifact.mjs +221 -0
- package/skills/ui-design/scripts/chart_sanity_check.py +261 -0
- package/skills/ui-design/scripts/chart_sanity_check_test.py +165 -0
- package/skills/ui-design/scripts/check_language_policy.py +351 -0
- package/skills/ui-design/scripts/check_ui_artifact.py +435 -0
- package/skills/ui-design/scripts/check_ui_artifact_pptx_test.py +251 -0
- package/skills/ui-design/scripts/deck_pages_check.py +158 -0
- package/skills/ui-design/scripts/deck_pages_check_test.py +134 -0
- package/skills/ui-design/scripts/deck_visual_style_check.py +767 -0
- package/skills/ui-design/scripts/deck_visual_style_check_test.py +713 -0
- package/skills/ui-design/scripts/design_budget_check.py +271 -0
- package/skills/ui-design/scripts/design_budget_check_test.py +183 -0
- package/skills/ui-design/scripts/design_repair_hints.py +162 -0
- package/skills/ui-design/scripts/design_repair_hints_test.py +54 -0
- package/skills/ui-design/scripts/design_style_check.py +397 -0
- package/skills/ui-design/scripts/design_style_check_test.py +233 -0
- package/skills/ui-design/scripts/draft_coverage_check.py +184 -0
- package/skills/ui-design/scripts/draft_coverage_check_test.py +131 -0
- package/skills/ui-design/scripts/export_pptx_from_html.mjs +2367 -0
- package/skills/ui-design/scripts/extract_source_assets.py +607 -0
- package/skills/ui-design/scripts/extract_source_assets_test.py +256 -0
- package/skills/ui-design/scripts/generated_image_review_collect.py +206 -0
- package/skills/ui-design/scripts/generated_image_review_collect_test.py +91 -0
- package/skills/ui-design/scripts/image_plan_lint.py +571 -0
- package/skills/ui-design/scripts/image_plan_lint_test.py +515 -0
- package/skills/ui-design/scripts/image_prompt_rewrite.py +713 -0
- package/skills/ui-design/scripts/image_prompt_rewrite_test.py +966 -0
- package/skills/ui-design/scripts/layout_balance.py +881 -0
- package/skills/ui-design/scripts/layout_balance_test.py +927 -0
- package/skills/ui-design/scripts/normalize_design_json.py +272 -0
- package/skills/ui-design/scripts/normalize_design_json_test.py +119 -0
- package/skills/ui-design/scripts/plan_source_layout.py +1450 -0
- package/skills/ui-design/scripts/plan_source_layout_test.py +1136 -0
- package/skills/ui-design/scripts/resolve_source_input.py +270 -0
- package/skills/ui-design/scripts/resolve_source_input_test.py +98 -0
- package/skills/ui-design/scripts/scaffold_ui_artifact.py +377 -0
- package/skills/ui-design/scripts/source_usage_check.py +581 -0
- package/skills/ui-design/scripts/source_usage_check_test.py +427 -0
- package/skills/ui-design/scripts/text_readability_pixel.py +340 -0
- package/skills/ui-design/scripts/text_readability_pixel_test.py +219 -0
- package/skills/ui-design/scripts/visual_quality_gate.py +301 -0
- package/skills/ui-design/scripts/visual_quality_gate_test.py +233 -0
- package/skills/ui-design/tests/e2e/prompts/deck.md +19 -0
- package/skills/ui-design/tests/e2e/prompts/webpage.md +17 -0
- package/skills/ui-design/tests/e2e/render_check.mjs +101 -0
- package/skills/ui-design/tests/e2e/rubric.json +54 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/language-check.txt +12 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/checks/static-check.txt +15 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/outputs/index.html +837 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/prompt.md +12 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/review.md +21 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/aegis-vector-preview-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/outputs/homepage.html +373 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/outputs/platform.html +378 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/prompt.md +13 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/review.md +26 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/homepage/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/amber-prism-screenshot-check-1/screenshots/platform/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/outputs/index.html +656 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/prompt.md +12 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-1/render_check.mjs +67 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/outputs/index.html +587 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/prompt.md +12 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-iteration-2/review.md +36 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/language-check.txt +8 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/checks/static-check.txt +16 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/outputs/index.html +739 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/prompt.md +11 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/review.md +22 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/aqua-glass-volcano-refresh-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/checks/browser-check.json +52 -0
- package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/outputs/index.html +641 -0
- package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/comfort-vision-preview-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/outputs/index.html +467 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-red-preview-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/outputs/homepage.html +373 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/outputs/platform.html +378 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/prompt.md +13 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/review.md +26 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/homepage/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/ember-prism-screenshot-check-1/screenshots/platform/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/language-check.txt +4 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/execution_notes.md +10 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/outputs/index.html +587 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/prompt.md +14 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/review.md +13 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/empty-agent-protocol-check/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/deck/checks/browser-check.json +24 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/deck/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/deck/execution_notes.md +21 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/deck/outputs/deck.html +451 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/deck/screenshots/slide-01.png +0 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/deck/screenshots/slide-02.png +0 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/review.md +79 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/checks/browser-check.json +26 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/execution_notes.md +20 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/outputs/index.html +534 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/iteration-1/webpage/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/browser-check.json +64 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/language-check.txt +7 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/quick-validate.txt +1 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/static-console.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/checks/static-homepage.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/console.html +600 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/homepage.html +556 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/prompt.md +29 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/review.md +57 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/console-desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/console-mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/homepage-desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/screenshots/homepage-mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/browser-check.json +33 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/language-check.txt +6 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/quick-validate.txt +1 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/outputs/index.html +682 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/prompt.md +13 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/review.md +59 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-optics-iteration-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/outputs/page-01.html +466 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/outputs/page-02.html +433 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/prompt.md +13 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-01/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/obsidian-xui-screenshot-check-1/screenshots/page-02/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/language-check.txt +3 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/execution_notes.md +24 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/outputs/index.html +723 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/prompt.md +15 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/review.md +26 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/browser-dark.json +49 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/browser-light.json +49 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/language-check.txt +11 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/static-dark.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/checks/static-light.txt +3 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/execution_notes.md +23 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/outputs/dark.html +392 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/outputs/light.html +476 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/prompt.md +23 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/review.md +41 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/dark/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/dark/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/light/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/precision-horizon-iteration-2/screenshots/light/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/browser-check.json +54 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/language-check.txt +5 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/quick-validate.txt +1 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/outputs/index.html +765 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/prompt.md +15 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/review.md +59 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/solar-relay-iteration-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/outputs/index.html +508 -0
- package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/browser-check.json +49 -0
- package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/verdant-grid-preview-1/screenshots/mobile.png +0 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/browser-check.json +54 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/language-check.txt +6 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/quick-validate.txt +1 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/checks/static-check.txt +2 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/outputs/index.html +788 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/prompt.md +14 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/review.md +60 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/screenshots/desktop.png +0 -0
- package/skills/ui-design/tests/e2e/runs/violet-meridian-iteration-1/screenshots/mobile.png +0 -0
- package/skills/video-compose/SKILL.md +8 -1
- package/skills/web-crawler/SKILL.md +70 -0
- package/skills/web-crawler/scripts/crawl.mjs +538 -0
- package/skills/web-crawler/scripts/crawl.test.mjs +204 -0
- package/skills/xlsx/SKILL.md +12 -0
- package/skills/xlsx/scripts/opc_check.py +253 -0
- package/src/advisorState.js +22 -0
- package/src/askBridge.js +87 -3
- package/src/bootstrap/workingDir.js +12 -1
- package/src/cli/args.js +17 -1
- package/src/cli/configMenu.js +236 -0
- package/src/cli/configWizard.js +7 -5
- package/src/cli/print.js +37 -4
- package/src/cli/streamJson.js +77 -24
- package/src/cli/wizards/advisorWizard.js +147 -0
- package/src/cli/wizards/fieldForm.js +149 -0
- package/src/cli/wizards/imageWizard.js +60 -0
- package/src/cli/wizards/openRouterWizard.js +23 -0
- package/src/cli/wizards/providerPresets.js +95 -0
- package/src/cli/wizards/providerWizard.js +219 -0
- package/src/cli/wizards/searchWizard.js +23 -0
- package/src/cli/wizards/ttsWizard.js +34 -0
- package/src/config/configFile.js +441 -83
- package/src/config/configService.js +446 -0
- package/src/config.js +24 -64
- package/src/context/agentHome.js +9 -0
- package/src/context/archive.js +3 -2
- package/src/context/compact.js +8 -5
- package/src/context/contextLock.js +81 -0
- package/src/context/persistContext.js +30 -11
- package/src/context/reactiveCompact.js +4 -2
- package/src/context/recentDirs.js +21 -61
- package/src/context/sessionPath.js +97 -23
- package/src/context/sessionRegistry.js +303 -24
- package/src/context/tokenCounter.js +18 -0
- package/src/context/workspaceIndex.js +731 -0
- package/src/infra/verification.js +3 -2
- package/src/llm/client.js +293 -206
- package/src/llm/providers/anthropicFormat.js +241 -0
- package/src/llm/providers/openaiFormat.js +190 -0
- package/src/loop.js +211 -27
- package/src/main.js +61 -11
- package/src/messageQueue.js +97 -0
- package/src/multimodal.js +203 -0
- package/src/plugin-sdk.js +15 -0
- package/src/plugins/commandRouter.js +3 -0
- package/src/plugins/hookEngine.js +5 -1
- package/src/plugins/pluginLifecycle.js +28 -0
- package/src/plugins/pluginRunner.js +40 -0
- package/src/plugins/transcript.js +4 -3
- package/src/prompts/pluginList.js +2 -2
- package/src/prompts/projectInstructions.js +3 -3
- package/src/prompts/promptAssembly.js +133 -109
- package/src/prompts/skillList.js +12 -22
- package/src/session/runAgentTurn.js +70 -0
- package/src/session/runTurn.js +41 -6
- package/src/toolGate.js +17 -0
- package/src/tools/advisor/advisor.js +379 -0
- package/src/tools/agent/agent.js +555 -0
- package/src/tools/agent/agentTypes.js +59 -0
- package/src/tools/agent/coordinator.js +93 -0
- package/src/tools/agent/worktree.js +270 -0
- package/src/tools/ask/ask.js +7 -2
- package/src/tools/bash/bash.js +112 -18
- package/src/tools/download/download.js +144 -0
- package/src/tools/edit/edit.js +1 -0
- package/src/tools/edit/multi-edit.js +1 -0
- package/src/tools/genimage/genimage.js +242 -0
- package/src/tools/genspeech/genspeech.js +67 -0
- package/src/tools/glob/glob.js +1 -0
- package/src/tools/grep/grep.js +3 -0
- package/src/tools/grep/rgPath.js +2 -0
- package/src/tools/index.js +25 -2
- package/src/tools/read/read.js +1 -0
- package/src/tools/shared/killTree.js +52 -0
- package/src/tools/toolProgressBridge.js +48 -0
- package/src/tools/webbrowser/agentBrowserPath.js +258 -0
- package/src/tools/webbrowser/browser.js +59 -42
- package/src/tools/webbrowser/browserControl.js +118 -0
- package/src/tools/webbrowser/browserDaemon.js +97 -0
- package/src/tools/webbrowser/browserService.js +27 -0
- package/src/tools/webbrowser/browserStream.js +119 -0
- package/src/tools/webbrowser/webbrowser.js +699 -130
- package/src/tools/webfetch/webfetch.js +1 -0
- package/src/tools/websearch/websearch.js +134 -51
- package/src/tools/write/write.js +1 -0
- package/src/ui/App.js +249 -22
- package/src/ui/AskQuestion.js +19 -17
- package/src/ui/InputBox.js +34 -9
- package/src/ui/LiveArea.js +112 -19
- package/src/ui/MessageList.js +100 -14
- package/src/ui/ModelPicker.js +56 -0
- package/src/ui/QueuedMessagesBanner.js +14 -0
- package/src/ui/Root.js +18 -10
- package/src/ui/SessionPicker.js +102 -0
- package/src/ui/StatusLine.js +13 -4
- package/src/ui/WorkspacePicker.js +55 -0
- package/src/ui/figures.js +44 -0
- package/src/ui/hooks/askSlot.js +82 -0
- package/src/ui/hooks/useChat.js +345 -64
- package/src/ui/hooks/usePasteHandler.js +11 -1
- package/src/ui/hooks/useTextBuffer.js +1 -3
- package/src/ui/liveViewport.js +5 -1
- package/src/ui/markdown.js +206 -0
- package/src/ui/textBuffer.js +0 -7
- package/src/ui/theme.js +32 -0
- package/src/utils/debugLog.js +0 -4
- package/src/utils/resourcePaths.js +2 -2
- package/src/utils/stripThink.js +50 -0
- package/src/web/browserBridge.js +447 -0
- package/src/web/protocol.js +19 -0
- package/workflows/adaptive-research.yaml +9 -2
- package/workflows/book-review-short.yaml +31 -7
- package/workflows/e2e-write-greet.yaml +3 -0
- package/workflows/illustrate.yaml +227 -0
- package/workflows/plan.yaml +437 -207
- package/workflows/ppt.yaml +1659 -0
- package/workflows/ralph-loop.yaml +142 -112
- package/workflows/schema.json +81 -23
- package/workflows/webppt.yaml +496 -0
- package/workflows/word.yaml +710 -0
- package/workflows/youtube-shorts.yaml +38 -10
- package/MINIMAL-TRACE.md +0 -77
- package/plugins/workflow-runner/src/voteHelpers.js +0 -110
- package/skills/config/SKILL.md +0 -123
- package/skills/frontend-design/LICENSE.txt +0 -177
- package/skills/frontend-design/SKILL.md +0 -42
- package/skills/pptx/scripts/office/__pycache__/soffice.cpython-314.pyc +0 -0
- package/src/ui/ProgressPanel.js +0 -54
- package/src/ui/StreamingBlock.js +0 -11
- package/src/ui/ToolStatus.js +0 -11
|
@@ -0,0 +1,451 @@
|
|
|
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: #102022;
|
|
10
|
+
--paper: #101819;
|
|
11
|
+
--surface: #f4f1e7;
|
|
12
|
+
--fog: #dfe7df;
|
|
13
|
+
--muted: #687675;
|
|
14
|
+
--line: rgba(16, 32, 34, 0.18);
|
|
15
|
+
--accent: #c85f3d;
|
|
16
|
+
--signal: #1f9eaa;
|
|
17
|
+
--amber: #c89c35;
|
|
18
|
+
--danger: #9f3d36;
|
|
19
|
+
--radius: 8px;
|
|
20
|
+
font-family: "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
* {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
body {
|
|
28
|
+
margin: 0;
|
|
29
|
+
min-height: 100vh;
|
|
30
|
+
background: var(--paper);
|
|
31
|
+
color: var(--ink);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
button,
|
|
36
|
+
input {
|
|
37
|
+
font: inherit;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.stage-shell {
|
|
41
|
+
width: 100vw;
|
|
42
|
+
height: 100vh;
|
|
43
|
+
display: grid;
|
|
44
|
+
place-items: center;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
background:
|
|
47
|
+
radial-gradient(circle at 20% 12%, rgba(31, 158, 170, 0.2), transparent 28%),
|
|
48
|
+
#101819;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.stage-frame {
|
|
52
|
+
width: min(100vw, calc(100vh * 16 / 9));
|
|
53
|
+
aspect-ratio: 16 / 9;
|
|
54
|
+
position: relative;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.scaled-stage {
|
|
58
|
+
width: 1920px;
|
|
59
|
+
height: 1080px;
|
|
60
|
+
transform-origin: top left;
|
|
61
|
+
background: var(--surface);
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
position: absolute;
|
|
64
|
+
left: 0;
|
|
65
|
+
top: 0;
|
|
66
|
+
box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.slide {
|
|
70
|
+
position: absolute;
|
|
71
|
+
inset: 0;
|
|
72
|
+
display: grid;
|
|
73
|
+
padding: 86px 104px;
|
|
74
|
+
background:
|
|
75
|
+
linear-gradient(90deg, rgba(16, 32, 34, 0.04) 1px, transparent 1px) 0 0 / 80px 80px,
|
|
76
|
+
var(--surface);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.slide[hidden] {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.kicker {
|
|
84
|
+
margin: 0 0 20px;
|
|
85
|
+
color: var(--accent);
|
|
86
|
+
font-size: 24px;
|
|
87
|
+
font-weight: 800;
|
|
88
|
+
letter-spacing: 0.14em;
|
|
89
|
+
text-transform: uppercase;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
h1,
|
|
93
|
+
h2 {
|
|
94
|
+
margin: 0;
|
|
95
|
+
letter-spacing: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
h1 {
|
|
99
|
+
max-width: 1180px;
|
|
100
|
+
font-size: 124px;
|
|
101
|
+
line-height: 0.9;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
h2 {
|
|
105
|
+
font-size: 84px;
|
|
106
|
+
line-height: 0.96;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
p {
|
|
110
|
+
margin: 0;
|
|
111
|
+
color: var(--muted);
|
|
112
|
+
font-size: 32px;
|
|
113
|
+
line-height: 1.28;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.title-slide {
|
|
117
|
+
grid-template-columns: 1.2fr 0.8fr;
|
|
118
|
+
align-items: end;
|
|
119
|
+
gap: 80px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.seal {
|
|
123
|
+
align-self: center;
|
|
124
|
+
justify-self: center;
|
|
125
|
+
width: 520px;
|
|
126
|
+
height: 520px;
|
|
127
|
+
border: 2px solid var(--ink);
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
background:
|
|
130
|
+
radial-gradient(circle, var(--signal) 0 16px, transparent 17px),
|
|
131
|
+
repeating-linear-gradient(135deg, transparent 0 17px, rgba(16, 32, 34, 0.24) 18px 20px),
|
|
132
|
+
var(--fog);
|
|
133
|
+
box-shadow: inset 0 0 0 48px var(--surface), inset 0 0 0 50px var(--ink);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.footer-line {
|
|
137
|
+
position: absolute;
|
|
138
|
+
left: 104px;
|
|
139
|
+
right: 104px;
|
|
140
|
+
bottom: 58px;
|
|
141
|
+
display: flex;
|
|
142
|
+
justify-content: space-between;
|
|
143
|
+
color: var(--muted);
|
|
144
|
+
font-size: 22px;
|
|
145
|
+
border-top: 1px solid var(--line);
|
|
146
|
+
padding-top: 18px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.two-col {
|
|
150
|
+
grid-template-columns: 0.8fr 1.2fr;
|
|
151
|
+
gap: 72px;
|
|
152
|
+
align-items: center;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.metric-stack {
|
|
156
|
+
display: grid;
|
|
157
|
+
gap: 18px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.metric {
|
|
161
|
+
border-left: 8px solid var(--accent);
|
|
162
|
+
padding: 22px 28px;
|
|
163
|
+
background: rgba(223, 231, 223, 0.58);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.metric strong {
|
|
167
|
+
display: block;
|
|
168
|
+
font-size: 70px;
|
|
169
|
+
line-height: 0.95;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.metric span {
|
|
173
|
+
display: block;
|
|
174
|
+
margin-top: 10px;
|
|
175
|
+
color: var(--muted);
|
|
176
|
+
font-size: 24px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.risk-map {
|
|
180
|
+
display: grid;
|
|
181
|
+
grid-template-columns: repeat(3, 1fr);
|
|
182
|
+
grid-template-rows: repeat(3, 1fr);
|
|
183
|
+
min-height: 620px;
|
|
184
|
+
border: 1px solid var(--line);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.risk-map div {
|
|
188
|
+
padding: 24px;
|
|
189
|
+
border: 1px solid var(--line);
|
|
190
|
+
display: grid;
|
|
191
|
+
align-content: space-between;
|
|
192
|
+
background: rgba(251, 250, 243, 0.8);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.risk-map strong {
|
|
196
|
+
font-size: 24px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.risk-map span {
|
|
200
|
+
width: 44px;
|
|
201
|
+
height: 44px;
|
|
202
|
+
border-radius: 50%;
|
|
203
|
+
background: var(--signal);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.risk-map .hot span { background: var(--danger); }
|
|
207
|
+
.risk-map .warm span { background: var(--amber); }
|
|
208
|
+
.timeline {
|
|
209
|
+
display: grid;
|
|
210
|
+
grid-template-columns: repeat(4, 1fr);
|
|
211
|
+
gap: 18px;
|
|
212
|
+
align-self: end;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.step {
|
|
216
|
+
min-height: 430px;
|
|
217
|
+
padding: 28px;
|
|
218
|
+
border: 1px solid var(--line);
|
|
219
|
+
background: rgba(251, 250, 243, 0.75);
|
|
220
|
+
display: grid;
|
|
221
|
+
align-content: space-between;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.step b {
|
|
225
|
+
font-size: 30px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.step p {
|
|
229
|
+
font-size: 26px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.decision {
|
|
233
|
+
grid-template-columns: 1fr 1fr;
|
|
234
|
+
gap: 34px;
|
|
235
|
+
align-items: stretch;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.decision-card {
|
|
239
|
+
padding: 42px;
|
|
240
|
+
background: var(--ink);
|
|
241
|
+
color: var(--surface);
|
|
242
|
+
border-radius: var(--radius);
|
|
243
|
+
display: grid;
|
|
244
|
+
align-content: space-between;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.decision-card p {
|
|
248
|
+
color: rgba(244, 241, 231, 0.76);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.controls {
|
|
252
|
+
position: fixed;
|
|
253
|
+
left: 40px;
|
|
254
|
+
bottom: 10px;
|
|
255
|
+
z-index: 30;
|
|
256
|
+
display: flex;
|
|
257
|
+
gap: 8px;
|
|
258
|
+
align-items: center;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.controls button {
|
|
262
|
+
border: 1px solid rgba(244, 241, 231, 0.32);
|
|
263
|
+
border-radius: 999px;
|
|
264
|
+
background: rgba(16, 24, 25, 0.86);
|
|
265
|
+
color: var(--surface);
|
|
266
|
+
padding: 10px 14px;
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.counter {
|
|
271
|
+
color: var(--surface);
|
|
272
|
+
min-width: 58px;
|
|
273
|
+
text-align: center;
|
|
274
|
+
font-size: 14px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.tweaks-panel {
|
|
278
|
+
position: fixed;
|
|
279
|
+
right: 20px;
|
|
280
|
+
bottom: 20px;
|
|
281
|
+
z-index: 40;
|
|
282
|
+
width: min(320px, calc(100vw - 40px));
|
|
283
|
+
display: none;
|
|
284
|
+
gap: 12px;
|
|
285
|
+
padding: 16px;
|
|
286
|
+
border: 1px solid var(--line);
|
|
287
|
+
border-radius: var(--radius);
|
|
288
|
+
background: var(--surface);
|
|
289
|
+
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.tweaks-panel[data-open="true"] {
|
|
293
|
+
display: grid;
|
|
294
|
+
}
|
|
295
|
+
</style>
|
|
296
|
+
</head>
|
|
297
|
+
<body>
|
|
298
|
+
<div class="stage-shell">
|
|
299
|
+
<div class="stage-frame">
|
|
300
|
+
<main class="scaled-stage" id="scaled-stage">
|
|
301
|
+
<section class="slide title-slide" data-screen-label="01 标题">
|
|
302
|
+
<div>
|
|
303
|
+
<p class="kicker">第三季度港口韧性简报</p>
|
|
304
|
+
<h1>港口容量已经变成一套天气系统。</h1>
|
|
305
|
+
<p style="margin-top: 34px; max-width: 860px;">面向管理层的泊位压力、排放暴露和两项关键运营决策简报,用于保护九月计划。</p>
|
|
306
|
+
</div>
|
|
307
|
+
<div class="seal" aria-hidden="true"></div>
|
|
308
|
+
<div class="footer-line"><span>舒适视觉</span><span>管理层材料</span></div>
|
|
309
|
+
</section>
|
|
310
|
+
|
|
311
|
+
<section class="slide two-col" data-screen-label="02 运营态势">
|
|
312
|
+
<div>
|
|
313
|
+
<p class="kicker">运营态势</p>
|
|
314
|
+
<h2>三项约束正在压缩同一个 36 小时窗口。</h2>
|
|
315
|
+
</div>
|
|
316
|
+
<div class="metric-stack">
|
|
317
|
+
<div class="metric"><strong>18</strong><span>周五重新开放前的到港船舶</span></div>
|
|
318
|
+
<div class="metric"><strong>11h</strong><span>横风观察前的稳定吊装天气</span></div>
|
|
319
|
+
<div class="metric"><strong>4.8t</strong><span>岸电顺序错失后的 CO2e 暴露</span></div>
|
|
320
|
+
</div>
|
|
321
|
+
<div class="footer-line"><span>02 / 05</span><span>队列、天气、排放</span></div>
|
|
322
|
+
</section>
|
|
323
|
+
|
|
324
|
+
<section class="slide two-col" data-screen-label="03 风险网格">
|
|
325
|
+
<div>
|
|
326
|
+
<p class="kicker">风险网格</p>
|
|
327
|
+
<h2>3 号泊位是承重决策。</h2>
|
|
328
|
+
<p style="margin-top: 28px;">最高风险单元同时承受冷链队列压力和最窄的安全吊装天气窗口。</p>
|
|
329
|
+
</div>
|
|
330
|
+
<div class="risk-map" aria-label="风险网格">
|
|
331
|
+
<div><strong>B1 散货</strong><span></span></div>
|
|
332
|
+
<div class="warm"><strong>B2 谷物</strong><span></span></div>
|
|
333
|
+
<div class="hot"><strong>B3 冷链</strong><span></span></div>
|
|
334
|
+
<div><strong>B4 混合</strong><span></span></div>
|
|
335
|
+
<div class="warm"><strong>B5 维修</strong><span></span></div>
|
|
336
|
+
<div><strong>B6 燃油</strong><span></span></div>
|
|
337
|
+
<div><strong>B7 预留</strong><span></span></div>
|
|
338
|
+
<div class="warm"><strong>航道</strong><span></span></div>
|
|
339
|
+
<div><strong>堆场闸口</strong><span></span></div>
|
|
340
|
+
</div>
|
|
341
|
+
<div class="footer-line"><span>03 / 05</span><span>风险集中</span></div>
|
|
342
|
+
</section>
|
|
343
|
+
|
|
344
|
+
<section class="slide" data-screen-label="04 行动窗口">
|
|
345
|
+
<div>
|
|
346
|
+
<p class="kicker">行动窗口</p>
|
|
347
|
+
<h2>用四个动作保护计划。</h2>
|
|
348
|
+
</div>
|
|
349
|
+
<div class="timeline">
|
|
350
|
+
<article class="step"><b>现在</b><p>在阵风阈值前提前 Nereid Star 与冷链货流。</p></article>
|
|
351
|
+
<article class="step"><b>+3h</b><p>暂缓疏浚通行,直到内航道水流转向。</p></article>
|
|
352
|
+
<article class="step"><b>+8h</b><p>为岸电例外保留 7 号泊位。</p></article>
|
|
353
|
+
<article class="step"><b>周五</b><p>吊装天气恢复后重新开放散货序列。</p></article>
|
|
354
|
+
</div>
|
|
355
|
+
<div class="footer-line"><span>04 / 05</span><span>执行序列</span></div>
|
|
356
|
+
</section>
|
|
357
|
+
|
|
358
|
+
<section class="slide decision" data-screen-label="05 决策">
|
|
359
|
+
<div>
|
|
360
|
+
<p class="kicker">管理层决策</p>
|
|
361
|
+
<h2>两项批准可以解锁韧性计划。</h2>
|
|
362
|
+
</div>
|
|
363
|
+
<div class="decision-card">
|
|
364
|
+
<h2 style="font-size: 70px;">批准泊位互换</h2>
|
|
365
|
+
<p>在风带关闭安全吊装窗口前,将冷链船序提前到低优先级散货之前。</p>
|
|
366
|
+
</div>
|
|
367
|
+
<div class="decision-card">
|
|
368
|
+
<h2 style="font-size: 70px;">预留岸电例外</h2>
|
|
369
|
+
<p>保留 7 号泊位,作为避免船舶使用辅机时间的排放缓冲阀。</p>
|
|
370
|
+
</div>
|
|
371
|
+
<div class="footer-line"><span>05 / 05</span><span>决策记录</span></div>
|
|
372
|
+
</section>
|
|
373
|
+
</main>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
|
|
377
|
+
<nav class="controls" aria-label="幻灯片控制">
|
|
378
|
+
<button type="button" id="prev-slide">上一页</button>
|
|
379
|
+
<span class="counter" id="slide-counter">1 / 5</span>
|
|
380
|
+
<button type="button" id="next-slide">下一页</button>
|
|
381
|
+
</nav>
|
|
382
|
+
|
|
383
|
+
<aside class="tweaks-panel" aria-label="调整">
|
|
384
|
+
<strong>调整</strong>
|
|
385
|
+
<label>强调色 <input data-tweak-primary type="color" value="#c85f3d"></label>
|
|
386
|
+
</aside>
|
|
387
|
+
|
|
388
|
+
<script>
|
|
389
|
+
const UI_DESIGN_TWEAKS = /*EDITMODE-BEGIN*/{
|
|
390
|
+
"primaryColor": "#c85f3d",
|
|
391
|
+
"variant": "executive"
|
|
392
|
+
}/*EDITMODE-END*/;
|
|
393
|
+
|
|
394
|
+
const stage = document.getElementById('scaled-stage');
|
|
395
|
+
const slides = Array.from(document.querySelectorAll('.slide'));
|
|
396
|
+
const counter = document.getElementById('slide-counter');
|
|
397
|
+
const tweaksPanel = document.querySelector('.tweaks-panel');
|
|
398
|
+
let activeSlide = Number(localStorage.getItem('comfort-vision-active-slide') || 0);
|
|
399
|
+
|
|
400
|
+
function fitStage() {
|
|
401
|
+
const frame = document.querySelector('.stage-frame');
|
|
402
|
+
const scale = frame.getBoundingClientRect().width / 1920;
|
|
403
|
+
stage.style.transform = `scale(${scale})`;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
function setActiveSlide(index) {
|
|
407
|
+
activeSlide = Math.max(0, Math.min(index, slides.length - 1));
|
|
408
|
+
slides.forEach((slide, slideIndex) => {
|
|
409
|
+
slide.hidden = slideIndex !== activeSlide;
|
|
410
|
+
});
|
|
411
|
+
localStorage.setItem('comfort-vision-active-slide', String(activeSlide));
|
|
412
|
+
counter.textContent = `${activeSlide + 1} / ${slides.length}`;
|
|
413
|
+
window.parent.postMessage({ slideIndexChanged: activeSlide }, '*');
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
function applyTweaks(nextTweaks) {
|
|
417
|
+
document.documentElement.style.setProperty('--accent', nextTweaks.primaryColor || '#c85f3d');
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
function persistTweakPatch(patch) {
|
|
421
|
+
Object.assign(UI_DESIGN_TWEAKS, patch);
|
|
422
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
423
|
+
window.parent.postMessage({ type: '__edit_mode_set_keys', edits: patch }, '*');
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
window.addEventListener('resize', fitStage);
|
|
427
|
+
document.getElementById('prev-slide')?.addEventListener('click', () => setActiveSlide(activeSlide - 1));
|
|
428
|
+
document.getElementById('next-slide')?.addEventListener('click', () => setActiveSlide(activeSlide + 1));
|
|
429
|
+
window.addEventListener('keydown', (event) => {
|
|
430
|
+
if (event.key === 'ArrowLeft') setActiveSlide(activeSlide - 1);
|
|
431
|
+
if (event.key === 'ArrowRight') setActiveSlide(activeSlide + 1);
|
|
432
|
+
});
|
|
433
|
+
window.addEventListener('message', (event) => {
|
|
434
|
+
if (event.data?.type === '__activate_edit_mode') {
|
|
435
|
+
tweaksPanel?.setAttribute('data-open', 'true');
|
|
436
|
+
}
|
|
437
|
+
if (event.data?.type === '__deactivate_edit_mode') {
|
|
438
|
+
tweaksPanel?.setAttribute('data-open', 'false');
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
document.querySelector('[data-tweak-primary]')?.addEventListener('input', (event) => {
|
|
442
|
+
persistTweakPatch({ primaryColor: event.target.value });
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
window.parent.postMessage({ type: '__edit_mode_available' }, '*');
|
|
446
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
447
|
+
fitStage();
|
|
448
|
+
setActiveSlide(activeSlide);
|
|
449
|
+
</script>
|
|
450
|
+
</body>
|
|
451
|
+
</html>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# UI 设计技能端到端评审 — 第 1 轮
|
|
2
|
+
|
|
3
|
+
## 测试摘要
|
|
4
|
+
|
|
5
|
+
本轮测试 `ui-design` 技能是否能支撑完整设计流程:
|
|
6
|
+
|
|
7
|
+
1. 创建带足领域语境的真实测试题。
|
|
8
|
+
2. 按 `SKILL.md` 生成一个 Web 页面和一个 PPT 风格 HTML deck。
|
|
9
|
+
3. 运行配套静态检查。
|
|
10
|
+
4. 用 Chromium 渲染产物。
|
|
11
|
+
5. 保存截图并检查 console/runtime 状态。
|
|
12
|
+
6. 使用 `tests/e2e/rubric.json` 评分。
|
|
13
|
+
7. 检查用户可见文案是否默认使用简体中文。
|
|
14
|
+
|
|
15
|
+
in-app Browser 无法打开 `file://`,临时本地 HTTP 服务也无法被该浏览器会话访问。为保证可复现,本轮使用 `playwright-core` 直接打开生成的 HTML,收集 console 状态并保存截图。
|
|
16
|
+
|
|
17
|
+
## 自动检查
|
|
18
|
+
|
|
19
|
+
| 产物 | 静态检查 | 浏览器 console | 运行时检查 | 结果 |
|
|
20
|
+
|---|---:|---:|---:|---|
|
|
21
|
+
| Web 页面 | 通过 | 无错误 | 桌面 + 移动截图、一个 edit-mode block、移动端无横向溢出 | 通过 |
|
|
22
|
+
| HTML deck | 通过 | 无错误 | 第 1/2 页截图、`localStorage` slide 状态、可见标签 `02 运营态势` | 通过 |
|
|
23
|
+
|
|
24
|
+
证据:
|
|
25
|
+
- `webpage/checks/static-check.txt`
|
|
26
|
+
- `webpage/checks/browser-check.json`
|
|
27
|
+
- `deck/checks/static-check.txt`
|
|
28
|
+
- `deck/checks/browser-check.json`
|
|
29
|
+
- `webpage/screenshots/desktop.png`
|
|
30
|
+
- `webpage/screenshots/mobile.png`
|
|
31
|
+
- `deck/screenshots/slide-01.png`
|
|
32
|
+
- `deck/screenshots/slide-02.png`
|
|
33
|
+
|
|
34
|
+
## Rubric 评分
|
|
35
|
+
|
|
36
|
+
| 维度 | 权重 | Web 页面 | Deck |
|
|
37
|
+
|---|---:|---:|---:|
|
|
38
|
+
| 指令对齐 | 0.16 | 9.0 | 9.0 |
|
|
39
|
+
| 信息架构 | 0.14 | 8.5 | 8.0 |
|
|
40
|
+
| 配色系统 | 0.12 | 8.0 | 8.0 |
|
|
41
|
+
| 字体排版 | 0.12 | 7.5 | 8.0 |
|
|
42
|
+
| 空间结构 | 0.12 | 8.0 | 8.2 |
|
|
43
|
+
| 视觉完成度 | 0.14 | 8.0 | 8.0 |
|
|
44
|
+
| 交互与 Tweaks | 0.10 | 8.0 | 8.5 |
|
|
45
|
+
| 机械质量 | 0.10 | 9.0 | 9.0 |
|
|
46
|
+
|
|
47
|
+
加权分:
|
|
48
|
+
- Web 页面:**8.28 / 10**
|
|
49
|
+
- Deck:**8.35 / 10**
|
|
50
|
+
|
|
51
|
+
质量档位:**良好**,接近优秀,但还没有稳定达到优秀。
|
|
52
|
+
|
|
53
|
+
## 设计评估
|
|
54
|
+
|
|
55
|
+
### Web 页面
|
|
56
|
+
|
|
57
|
+
Web 页面更像真实产品运营台,而不是泛泛落地页。它有连贯的海事运营色盘、明确首屏信号、领域化内容、清晰的泊位压力层级,以及可记忆的潮汐/信号母题。桌面端结构密集但可读,移动端没有横向溢出。
|
|
58
|
+
|
|
59
|
+
主要不足在细节打磨。移动端 hero 区域的斜纹装饰会和正文争抢注意力。字体整体可靠,但仍偏常见系统字体,作者感不够强。它是好的前端设计,但第二轮可以让排版更有独特性。
|
|
60
|
+
|
|
61
|
+
### HTML Deck
|
|
62
|
+
|
|
63
|
+
Deck 满足 PPT 风格要求:固定 16:9 舞台、1 起始 slide 标签、上一页/下一页控件、键盘导航、`localStorage` 状态和 viewport scaling。视觉语言与 Web artifact 连接,同时转化为更适合演示的节奏:稀疏标题页、管理层指标、风险矩阵、行动时间线和决策页。
|
|
64
|
+
|
|
65
|
+
第一轮渲染发现过一个重要问题:页面有 `transform: scale()`,但舞台仍被裁切,因为布局盒没有跟随缩放。e2e 截图捕捉到了这个静态检查没发现的问题。之后通过 scale frame 修复。这个结果说明测试方法是有效的:静态检查不能替代真实渲染。
|
|
66
|
+
|
|
67
|
+
## 是否属于优质前端设计
|
|
68
|
+
|
|
69
|
+
是。作为第一轮 skill 驱动测试,两个产物都明显高于通用输出。它们有具体产品语境、连贯配色、可用布局、实时控制和机械正确性,不像默认紫色渐变 SaaS 页面或模板幻灯片。
|
|
70
|
+
|
|
71
|
+
但还不是严格意义上的优秀。Web 页面需要更细的移动端层级处理和更有辨识度的字体策略;Deck 需要更强的页间变化和控制区打磨。skill 的方向有效,但测试流程应该继续要求截图评审,因为代码和静态检查会漏掉真实视觉缺陷。
|
|
72
|
+
|
|
73
|
+
## 改进建议
|
|
74
|
+
|
|
75
|
+
1. 在 `SKILL.md` 中强化说明:固定舞台 deck 必须截图验证,因为静态 `transform: scale()` 检查不够。
|
|
76
|
+
2. 后续如果允许依赖,可给 `check_ui_artifact.py` 增加可选浏览器模式,验证 viewport fit 和 slide 可见性。
|
|
77
|
+
3. 在 `SKILL.md` 中增加设计质量二次检查:移动端视觉层级、字体辨识度、控制区位置。
|
|
78
|
+
4. 保留当前轻量静态检查,但把它视为协议门禁,而不是设计质量裁判。
|
|
79
|
+
5. 所有后续评审和示例产物默认使用简体中文,必要英文名称除外。
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"console": [],
|
|
3
|
+
"desktop": {
|
|
4
|
+
"title": "舒适视觉 运营界面",
|
|
5
|
+
"screenLabels": [
|
|
6
|
+
"01 运营界面"
|
|
7
|
+
],
|
|
8
|
+
"editModeBlocks": 1,
|
|
9
|
+
"hasEditModeAvailable": true,
|
|
10
|
+
"bodyOverflowX": "visible",
|
|
11
|
+
"documentWidth": 1440,
|
|
12
|
+
"viewportWidth": 1440
|
|
13
|
+
},
|
|
14
|
+
"mobile": {
|
|
15
|
+
"title": "舒适视觉 运营界面",
|
|
16
|
+
"screenLabels": [
|
|
17
|
+
"01 运营界面"
|
|
18
|
+
],
|
|
19
|
+
"editModeBlocks": 1,
|
|
20
|
+
"hasEditModeAvailable": true,
|
|
21
|
+
"bodyOverflowX": "visible",
|
|
22
|
+
"documentWidth": 390,
|
|
23
|
+
"viewportWidth": 390
|
|
24
|
+
},
|
|
25
|
+
"pass": true
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Web 页面执行记录
|
|
2
|
+
|
|
3
|
+
技能路径:`minimal-agent/skills/ui-design`
|
|
4
|
+
|
|
5
|
+
测试题:`tests/e2e/prompts/webpage.md`
|
|
6
|
+
|
|
7
|
+
已应用的 `ui-design` 约束:
|
|
8
|
+
- 将任务路由为 Web/产品运营页面,而不是通用 landing page。
|
|
9
|
+
- 使用具体产品语境和领域内容,让设计可以从信息结构和视觉完成度两方面被评估。
|
|
10
|
+
- 构建单文件 HTML artifact,包含 `data-screen-label`、合法 edit-mode JSON block 和实时 tweak 控件。
|
|
11
|
+
- 使用原生 HTML/CSS/JS,避免引入未固定版本的 React/Babel。
|
|
12
|
+
- 避免 `scrollIntoView`、填充文案和模板残留。
|
|
13
|
+
- 所有用户可见文案使用简体中文,保留 舒适视觉 作为品牌名。
|
|
14
|
+
- 通过 `scripts/check_ui_artifact.py`、浏览器渲染、截图和 rubric 评审进行验证。
|
|
15
|
+
|
|
16
|
+
采用的设计系统:
|
|
17
|
+
- 海事运营色盘:深港墨绿、雾灰纸色、信号青、警示琥珀、铁锈橙 accent。
|
|
18
|
+
- 高密度管理界面结构:潮汐带、泊位行、行动队列和风险台账。
|
|
19
|
+
- 紧凑排版和 8px 以下圆角,让界面保持运营工具感,而不是装饰卡片页。
|
|
20
|
+
|