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.
- package/README.md +14 -12
- 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 +3 -1
- package/plugins/workflow-runner/src/agentCommon.js +249 -51
- package/plugins/workflow-runner/src/dslManifest.js +72 -0
- package/plugins/workflow-runner/src/expressions.js +198 -15
- package/plugins/workflow-runner/src/index.js +40 -8
- package/plugins/workflow-runner/src/jsonPayload.js +1 -1
- package/plugins/workflow-runner/src/loader.js +286 -72
- package/plugins/workflow-runner/src/multimodal.js +37 -0
- package/plugins/workflow-runner/src/recovery.js +49 -39
- package/plugins/workflow-runner/src/runner.js +802 -287
- package/plugins/workflow-runner/src/stepExecutors/agent.js +157 -39
- package/plugins/workflow-runner/src/stepExecutors/assert.js +16 -3
- package/plugins/workflow-runner/src/stepExecutors/llm.js +60 -111
- package/plugins/workflow-runner/src/stepExecutors/skill.js +47 -47
- package/plugins/workflow-runner/src/stepExecutors/tool.js +76 -10
- package/plugins/workflow-runner/src/stepExecutors/verify.js +27 -10
- package/plugins/workflow-runner/src/taskIdentity.js +296 -0
- package/plugins/workflow-runner/src/types.js +19 -9
- package/plugins/workflow-runner/src/workflowState.js +516 -33
- package/skills/adversarial-review/SKILL.md +0 -1
- 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 +97 -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 +7 -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 +28 -15
- package/src/llm/client.js +394 -159
- package/src/llm/providers/anthropicFormat.js +241 -0
- package/src/llm/providers/openaiFormat.js +190 -0
- package/src/loop.js +219 -32
- 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/pluginLoader.js +2 -1
- package/src/plugins/pluginRunner.js +49 -21
- package/src/plugins/transcript.js +4 -3
- package/src/prompts/pluginList.js +5 -5
- package/src/prompts/projectInstructions.js +3 -3
- package/src/prompts/promptAssembly.js +133 -144
- package/src/prompts/skillList.js +12 -22
- package/src/prompts/system.js +0 -1
- 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 +29 -10
- package/src/ui/InputBox.js +104 -12
- 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 +358 -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 +13 -5
- package/workflows/book-review-short.yaml +36 -10
- package/workflows/e2e-write-greet.yaml +6 -2
- package/workflows/illustrate.yaml +227 -0
- package/workflows/plan.yaml +460 -179
- package/workflows/ppt.yaml +1659 -0
- package/workflows/ralph-loop.yaml +199 -0
- package/workflows/schema.json +81 -23
- package/workflows/webppt.yaml +496 -0
- package/workflows/word.yaml +710 -0
- package/workflows/youtube-shorts.yaml +46 -15
- package/MINIMAL-TRACE.md +0 -77
- package/plugins/HOW-TO-WRITE-A-PLUGIN.md +0 -186
- package/plugins/ralph-wiggum/.claude-plugin/plugin.json +0 -9
- package/plugins/ralph-wiggum/README.md +0 -197
- package/plugins/ralph-wiggum/commands/cancel-ralph.md +0 -18
- package/plugins/ralph-wiggum/commands/help.md +0 -137
- package/plugins/ralph-wiggum/commands/ralph-loop.md +0 -85
- package/plugins/ralph-wiggum/hooks/hooks.json +0 -15
- package/plugins/ralph-wiggum/hooks/stop-hook.sh +0 -191
- package/plugins/ralph-wiggum/plugin.js +0 -280
- package/plugins/ralph-wiggum/src/goalState.js +0 -258
- package/plugins/ralph-wiggum/src/sentinels.js +0 -76
- package/plugins/ralph-wiggum/src/stopHookRunner.js +0 -104
- package/plugins/ralph-wiggum/src/verificationGate.js +0 -202
- package/plugins/workflow-runner/src/miniReAct.js +0 -223
- 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/src/ui/ProgressPanel.js +0 -54
- package/src/ui/StreamingBlock.js +0 -11
- package/src/ui/ToolStatus.js +0 -11
|
@@ -0,0 +1,534 @@
|
|
|
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: #eef1eb;
|
|
11
|
+
--surface: #fbfaf3;
|
|
12
|
+
--surface-deep: #dfe7df;
|
|
13
|
+
--muted: #627171;
|
|
14
|
+
--line: rgba(16, 32, 34, 0.16);
|
|
15
|
+
--accent: #c85f3d;
|
|
16
|
+
--signal: #1f9eaa;
|
|
17
|
+
--amber: #c89c35;
|
|
18
|
+
--danger: #9f3d36;
|
|
19
|
+
--shadow: rgba(16, 32, 34, 0.16);
|
|
20
|
+
--radius: 8px;
|
|
21
|
+
--density: 1;
|
|
22
|
+
font-family: "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
* {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
body {
|
|
30
|
+
margin: 0;
|
|
31
|
+
min-height: 100vh;
|
|
32
|
+
background:
|
|
33
|
+
linear-gradient(90deg, rgba(16, 32, 34, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
|
|
34
|
+
linear-gradient(0deg, rgba(16, 32, 34, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
|
|
35
|
+
var(--paper);
|
|
36
|
+
color: var(--ink);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
button,
|
|
40
|
+
input {
|
|
41
|
+
font: inherit;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.page {
|
|
45
|
+
min-height: 100vh;
|
|
46
|
+
padding: clamp(18px, 3vw, 40px);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.shell {
|
|
50
|
+
max-width: 1440px;
|
|
51
|
+
margin: 0 auto;
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
|
|
54
|
+
gap: calc(20px * var(--density));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.topbar {
|
|
58
|
+
grid-column: 1 / -1;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
gap: 18px;
|
|
63
|
+
padding: 12px 0 18px;
|
|
64
|
+
border-bottom: 1px solid var(--line);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.brand {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 12px;
|
|
71
|
+
min-width: 240px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.mark {
|
|
75
|
+
width: 42px;
|
|
76
|
+
height: 42px;
|
|
77
|
+
border: 1px solid var(--ink);
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
background:
|
|
80
|
+
radial-gradient(circle at 50% 48%, var(--signal) 0 4px, transparent 5px),
|
|
81
|
+
repeating-linear-gradient(135deg, transparent 0 6px, rgba(16, 32, 34, 0.2) 7px 8px),
|
|
82
|
+
var(--surface);
|
|
83
|
+
box-shadow: inset 0 0 0 6px var(--paper);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.brand strong {
|
|
87
|
+
display: block;
|
|
88
|
+
font-size: 15px;
|
|
89
|
+
letter-spacing: 0.08em;
|
|
90
|
+
text-transform: uppercase;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.brand span,
|
|
94
|
+
.timestamp {
|
|
95
|
+
color: var(--muted);
|
|
96
|
+
font-size: 13px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.status-strip {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-wrap: wrap;
|
|
102
|
+
gap: 8px;
|
|
103
|
+
justify-content: flex-end;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.pill {
|
|
107
|
+
border: 1px solid var(--line);
|
|
108
|
+
border-radius: 999px;
|
|
109
|
+
padding: 8px 11px;
|
|
110
|
+
background: rgba(251, 250, 243, 0.76);
|
|
111
|
+
font-size: 12px;
|
|
112
|
+
letter-spacing: 0.02em;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.panel {
|
|
117
|
+
background: rgba(251, 250, 243, 0.9);
|
|
118
|
+
border: 1px solid var(--line);
|
|
119
|
+
border-radius: var(--radius);
|
|
120
|
+
box-shadow: 0 22px 60px var(--shadow);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.summary {
|
|
124
|
+
padding: clamp(22px, 4vw, 44px);
|
|
125
|
+
display: grid;
|
|
126
|
+
align-content: space-between;
|
|
127
|
+
min-height: 620px;
|
|
128
|
+
position: relative;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.summary::after {
|
|
133
|
+
content: "";
|
|
134
|
+
position: absolute;
|
|
135
|
+
inset: auto -12% -18% 12%;
|
|
136
|
+
height: 260px;
|
|
137
|
+
background:
|
|
138
|
+
repeating-linear-gradient(110deg, rgba(31, 158, 170, 0.18) 0 10px, transparent 10px 24px),
|
|
139
|
+
linear-gradient(90deg, transparent, rgba(200, 95, 61, 0.22), transparent);
|
|
140
|
+
transform: rotate(-4deg);
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.eyebrow {
|
|
145
|
+
margin: 0 0 16px;
|
|
146
|
+
color: var(--accent);
|
|
147
|
+
font-size: 12px;
|
|
148
|
+
font-weight: 800;
|
|
149
|
+
letter-spacing: 0.13em;
|
|
150
|
+
text-transform: uppercase;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
h1 {
|
|
154
|
+
margin: 0;
|
|
155
|
+
max-width: 780px;
|
|
156
|
+
font-size: clamp(48px, 7vw, 112px);
|
|
157
|
+
line-height: 0.89;
|
|
158
|
+
letter-spacing: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.lead {
|
|
162
|
+
max-width: 560px;
|
|
163
|
+
margin: 24px 0 0;
|
|
164
|
+
color: var(--muted);
|
|
165
|
+
font-size: clamp(17px, 1.7vw, 22px);
|
|
166
|
+
line-height: 1.45;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.risk-index {
|
|
170
|
+
display: grid;
|
|
171
|
+
grid-template-columns: 110px 1fr;
|
|
172
|
+
gap: 18px;
|
|
173
|
+
align-items: end;
|
|
174
|
+
position: relative;
|
|
175
|
+
z-index: 1;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.score {
|
|
179
|
+
font-size: 84px;
|
|
180
|
+
line-height: 0.8;
|
|
181
|
+
font-weight: 800;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.score small {
|
|
185
|
+
font-size: 20px;
|
|
186
|
+
color: var(--muted);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.tide {
|
|
190
|
+
display: grid;
|
|
191
|
+
gap: 7px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.tide span {
|
|
195
|
+
display: block;
|
|
196
|
+
height: 13px;
|
|
197
|
+
border-radius: 99px;
|
|
198
|
+
background: linear-gradient(90deg, var(--signal), var(--amber), var(--accent));
|
|
199
|
+
transform-origin: left;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.tide span:nth-child(2) { width: 72%; opacity: 0.72; }
|
|
203
|
+
.tide span:nth-child(3) { width: 48%; opacity: 0.46; }
|
|
204
|
+
|
|
205
|
+
.grid {
|
|
206
|
+
display: grid;
|
|
207
|
+
gap: calc(16px * var(--density));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.matrix {
|
|
211
|
+
display: grid;
|
|
212
|
+
grid-template-columns: repeat(3, 1fr);
|
|
213
|
+
gap: 1px;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.cell {
|
|
218
|
+
min-height: 176px;
|
|
219
|
+
padding: 18px;
|
|
220
|
+
background: rgba(251, 250, 243, 0.94);
|
|
221
|
+
border: 1px solid var(--line);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.cell strong {
|
|
225
|
+
display: block;
|
|
226
|
+
margin-bottom: 8px;
|
|
227
|
+
font-size: 12px;
|
|
228
|
+
letter-spacing: 0.1em;
|
|
229
|
+
text-transform: uppercase;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.metric {
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: baseline;
|
|
235
|
+
gap: 8px;
|
|
236
|
+
margin: 18px 0 8px;
|
|
237
|
+
font-size: 38px;
|
|
238
|
+
font-weight: 800;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.metric span {
|
|
242
|
+
color: var(--muted);
|
|
243
|
+
font-size: 13px;
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.cell p,
|
|
248
|
+
.action p {
|
|
249
|
+
margin: 0;
|
|
250
|
+
color: var(--muted);
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
line-height: 1.5;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.berths,
|
|
256
|
+
.actions {
|
|
257
|
+
padding: 20px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.section-head {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: end;
|
|
263
|
+
justify-content: space-between;
|
|
264
|
+
gap: 16px;
|
|
265
|
+
margin-bottom: 16px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.section-head h2 {
|
|
269
|
+
margin: 0;
|
|
270
|
+
font-size: 20px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.berth-row {
|
|
274
|
+
display: grid;
|
|
275
|
+
grid-template-columns: 90px 1fr 90px;
|
|
276
|
+
gap: 14px;
|
|
277
|
+
align-items: center;
|
|
278
|
+
padding: 13px 0;
|
|
279
|
+
border-top: 1px solid var(--line);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.berth-row:first-of-type {
|
|
283
|
+
border-top: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.track {
|
|
287
|
+
height: 12px;
|
|
288
|
+
border-radius: 999px;
|
|
289
|
+
background: var(--surface-deep);
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.track i {
|
|
294
|
+
display: block;
|
|
295
|
+
height: 100%;
|
|
296
|
+
width: var(--w);
|
|
297
|
+
background: var(--c);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.badge {
|
|
301
|
+
justify-self: end;
|
|
302
|
+
border-radius: 999px;
|
|
303
|
+
padding: 6px 9px;
|
|
304
|
+
background: rgba(16, 32, 34, 0.08);
|
|
305
|
+
font-size: 12px;
|
|
306
|
+
color: var(--ink);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.actions {
|
|
310
|
+
display: grid;
|
|
311
|
+
grid-template-columns: repeat(3, 1fr);
|
|
312
|
+
gap: 12px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.action {
|
|
316
|
+
border-left: 3px solid var(--accent);
|
|
317
|
+
padding: 10px 12px;
|
|
318
|
+
background: rgba(223, 231, 223, 0.45);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.action strong {
|
|
322
|
+
display: block;
|
|
323
|
+
margin-bottom: 6px;
|
|
324
|
+
font-size: 14px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.tweaks-panel {
|
|
328
|
+
position: fixed;
|
|
329
|
+
right: 20px;
|
|
330
|
+
bottom: 20px;
|
|
331
|
+
z-index: 20;
|
|
332
|
+
width: min(320px, calc(100vw - 40px));
|
|
333
|
+
display: none;
|
|
334
|
+
gap: 12px;
|
|
335
|
+
padding: 16px;
|
|
336
|
+
border: 1px solid var(--line);
|
|
337
|
+
border-radius: var(--radius);
|
|
338
|
+
background: var(--surface);
|
|
339
|
+
box-shadow: 0 18px 50px var(--shadow);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.tweaks-panel[data-open="true"] {
|
|
343
|
+
display: grid;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.tweaks-panel label {
|
|
347
|
+
display: grid;
|
|
348
|
+
gap: 7px;
|
|
349
|
+
font-size: 13px;
|
|
350
|
+
color: var(--muted);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@media (max-width: 980px) {
|
|
354
|
+
.shell {
|
|
355
|
+
grid-template-columns: 1fr;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.summary {
|
|
359
|
+
min-height: 500px;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.matrix,
|
|
363
|
+
.actions {
|
|
364
|
+
grid-template-columns: 1fr;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
@media (max-width: 620px) {
|
|
369
|
+
.page {
|
|
370
|
+
padding: 14px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.topbar,
|
|
374
|
+
.section-head,
|
|
375
|
+
.risk-index {
|
|
376
|
+
display: grid;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.berth-row {
|
|
380
|
+
grid-template-columns: 72px 1fr;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.badge {
|
|
384
|
+
justify-self: start;
|
|
385
|
+
grid-column: 2;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
</style>
|
|
389
|
+
</head>
|
|
390
|
+
<body>
|
|
391
|
+
<main class="page" data-screen-label="01 运营界面">
|
|
392
|
+
<div class="shell">
|
|
393
|
+
<header class="topbar">
|
|
394
|
+
<div class="brand">
|
|
395
|
+
<div class="mark" aria-hidden="true"></div>
|
|
396
|
+
<div>
|
|
397
|
+
<strong>舒适视觉</strong>
|
|
398
|
+
<span>韧性运营界面</span>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
<div class="status-strip" aria-label="Operating status">
|
|
402
|
+
<span class="pill">北港池:横风观察</span>
|
|
403
|
+
<span class="pill">队列模型 06:40 更新</span>
|
|
404
|
+
<span class="pill">计划窗口:9 天</span>
|
|
405
|
+
</div>
|
|
406
|
+
</header>
|
|
407
|
+
|
|
408
|
+
<section class="summary panel">
|
|
409
|
+
<div>
|
|
410
|
+
<p class="eyebrow">每周泊位中断风险</p>
|
|
411
|
+
<h1>在风向转变前转移脆弱货流。</h1>
|
|
412
|
+
<p class="lead">未来两个潮汐周期会让 3 号与 4 号集装箱泊位进入狭窄天气窗口。舒适视觉 会在容量下降前排序泊位互换、岸电例外和安全疏浚到港。</p>
|
|
413
|
+
</div>
|
|
414
|
+
<div class="risk-index" aria-label="Risk index">
|
|
415
|
+
<div class="score">72<small>/100</small></div>
|
|
416
|
+
<div class="tide" aria-hidden="true">
|
|
417
|
+
<span></span>
|
|
418
|
+
<span></span>
|
|
419
|
+
<span></span>
|
|
420
|
+
</div>
|
|
421
|
+
</div>
|
|
422
|
+
</section>
|
|
423
|
+
|
|
424
|
+
<section class="grid">
|
|
425
|
+
<div class="matrix panel">
|
|
426
|
+
<article class="cell">
|
|
427
|
+
<strong>船舶队列</strong>
|
|
428
|
+
<div class="metric">18<span>艘到港</span></div>
|
|
429
|
+
<p>6 艘冷链船应在 31 节阵风带抵达外航道前完成调度。</p>
|
|
430
|
+
</article>
|
|
431
|
+
<article class="cell">
|
|
432
|
+
<strong>天气窗口</strong>
|
|
433
|
+
<div class="metric">11h<span>稳定期</span></div>
|
|
434
|
+
<p>安全吊装窗口压缩到周三中午至深夜,周五重新打开。</p>
|
|
435
|
+
</article>
|
|
436
|
+
<article class="cell">
|
|
437
|
+
<strong>排放暴露</strong>
|
|
438
|
+
<div class="metric">4.8t<span>CO2e 风险</span></div>
|
|
439
|
+
<p>将沥青散货船转移到 7 号泊位,可避免两次岸电冲突。</p>
|
|
440
|
+
</article>
|
|
441
|
+
</div>
|
|
442
|
+
|
|
443
|
+
<section class="berths panel">
|
|
444
|
+
<div class="section-head">
|
|
445
|
+
<h2>泊位压力</h2>
|
|
446
|
+
<span class="timestamp">实时模型 06:40 UTC</span>
|
|
447
|
+
</div>
|
|
448
|
+
<div class="berth-row">
|
|
449
|
+
<strong>B3</strong>
|
|
450
|
+
<div class="track"><i style="--w: 86%; --c: var(--danger);"></i></div>
|
|
451
|
+
<span class="badge">关键</span>
|
|
452
|
+
</div>
|
|
453
|
+
<div class="berth-row">
|
|
454
|
+
<strong>B4</strong>
|
|
455
|
+
<div class="track"><i style="--w: 74%; --c: var(--accent);"></i></div>
|
|
456
|
+
<span class="badge">紧张</span>
|
|
457
|
+
</div>
|
|
458
|
+
<div class="berth-row">
|
|
459
|
+
<strong>B6</strong>
|
|
460
|
+
<div class="track"><i style="--w: 48%; --c: var(--amber);"></i></div>
|
|
461
|
+
<span class="badge">观察</span>
|
|
462
|
+
</div>
|
|
463
|
+
<div class="berth-row">
|
|
464
|
+
<strong>B7</strong>
|
|
465
|
+
<div class="track"><i style="--w: 31%; --c: var(--signal);"></i></div>
|
|
466
|
+
<span class="badge">可用</span>
|
|
467
|
+
</div>
|
|
468
|
+
</section>
|
|
469
|
+
|
|
470
|
+
<section class="actions panel" aria-label="计划动作">
|
|
471
|
+
<article class="action">
|
|
472
|
+
<strong>互换冷链船序</strong>
|
|
473
|
+
<p>在冷藏插座负载低于 74% 时,将 Nereid Star 提前到散货之前。</p>
|
|
474
|
+
</article>
|
|
475
|
+
<article class="action">
|
|
476
|
+
<strong>暂缓疏浚通行</strong>
|
|
477
|
+
<p>延后 3.1 小时,避开内航道弯位的横流带。</p>
|
|
478
|
+
</article>
|
|
479
|
+
<article class="action">
|
|
480
|
+
<strong>保护岸电窗口</strong>
|
|
481
|
+
<p>在晚间上限前,为两次低硫例外保留 7 号泊位。</p>
|
|
482
|
+
</article>
|
|
483
|
+
</section>
|
|
484
|
+
</section>
|
|
485
|
+
</div>
|
|
486
|
+
</main>
|
|
487
|
+
|
|
488
|
+
<aside class="tweaks-panel" aria-label="调整">
|
|
489
|
+
<strong>调整</strong>
|
|
490
|
+
<label>强调色 <input data-tweak-primary type="color" value="#c85f3d"></label>
|
|
491
|
+
<label>信息密度 <input data-tweak-density type="range" min="0.8" max="1.2" step="0.05" value="1"></label>
|
|
492
|
+
</aside>
|
|
493
|
+
|
|
494
|
+
<script>
|
|
495
|
+
const UI_DESIGN_TWEAKS = /*EDITMODE-BEGIN*/{
|
|
496
|
+
"primaryColor": "#c85f3d",
|
|
497
|
+
"density": 1,
|
|
498
|
+
"variant": "operations"
|
|
499
|
+
}/*EDITMODE-END*/;
|
|
500
|
+
|
|
501
|
+
const tweaksPanel = document.querySelector('.tweaks-panel');
|
|
502
|
+
|
|
503
|
+
function applyTweaks(nextTweaks) {
|
|
504
|
+
document.documentElement.style.setProperty('--accent', nextTweaks.primaryColor || '#c85f3d');
|
|
505
|
+
document.documentElement.style.setProperty('--density', String(nextTweaks.density || 1));
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
function persistTweakPatch(patch) {
|
|
509
|
+
Object.assign(UI_DESIGN_TWEAKS, patch);
|
|
510
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
511
|
+
window.parent.postMessage({ type: '__edit_mode_set_keys', edits: patch }, '*');
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
window.addEventListener('message', (event) => {
|
|
515
|
+
if (event.data?.type === '__activate_edit_mode') {
|
|
516
|
+
tweaksPanel?.setAttribute('data-open', 'true');
|
|
517
|
+
}
|
|
518
|
+
if (event.data?.type === '__deactivate_edit_mode') {
|
|
519
|
+
tweaksPanel?.setAttribute('data-open', 'false');
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
window.parent.postMessage({ type: '__edit_mode_available' }, '*');
|
|
523
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
524
|
+
|
|
525
|
+
document.querySelector('[data-tweak-primary]')?.addEventListener('input', (event) => {
|
|
526
|
+
persistTweakPatch({ primaryColor: event.target.value });
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
document.querySelector('[data-tweak-density]')?.addEventListener('input', (event) => {
|
|
530
|
+
persistTweakPatch({ density: Number(event.target.value) });
|
|
531
|
+
});
|
|
532
|
+
</script>
|
|
533
|
+
</body>
|
|
534
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"homepage": {
|
|
3
|
+
"path": "homepage.html",
|
|
4
|
+
"desktopInfo": {
|
|
5
|
+
"clientWidth": 1280,
|
|
6
|
+
"h1": "企业 AI 平台,进入实时观测轨道。",
|
|
7
|
+
"h1Height": 215.625,
|
|
8
|
+
"hasHorizontalOverflow": false,
|
|
9
|
+
"lang": "zh-CN",
|
|
10
|
+
"screenLabel": "01 星云控制台官网",
|
|
11
|
+
"scrollWidth": 1280,
|
|
12
|
+
"title": "Nebula Console 星云控制台官网样张",
|
|
13
|
+
"tweakBlock": true,
|
|
14
|
+
"viewport": {
|
|
15
|
+
"height": 900,
|
|
16
|
+
"width": 1280
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"desktopLogs": [],
|
|
20
|
+
"mobileInfo": {
|
|
21
|
+
"clientWidth": 390,
|
|
22
|
+
"h1": "企业 AI 平台,进入实时观测轨道。",
|
|
23
|
+
"h1Height": 127.7578125,
|
|
24
|
+
"hasHorizontalOverflow": false,
|
|
25
|
+
"scrollWidth": 390,
|
|
26
|
+
"viewport": {
|
|
27
|
+
"height": 980,
|
|
28
|
+
"width": 390
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"mobileLogs": []
|
|
32
|
+
},
|
|
33
|
+
"console": {
|
|
34
|
+
"path": "console.html",
|
|
35
|
+
"desktopInfo": {
|
|
36
|
+
"clientWidth": 1280,
|
|
37
|
+
"h1": "模型任务轨道",
|
|
38
|
+
"h1Height": 42.234375,
|
|
39
|
+
"hasHorizontalOverflow": false,
|
|
40
|
+
"lang": "zh-CN",
|
|
41
|
+
"screenLabel": "02 星云控制台产品界面",
|
|
42
|
+
"scrollWidth": 1280,
|
|
43
|
+
"title": "Nebula Console 星云控制台产品样张",
|
|
44
|
+
"tweakBlock": true,
|
|
45
|
+
"viewport": {
|
|
46
|
+
"height": 900,
|
|
47
|
+
"width": 1280
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"desktopLogs": [],
|
|
51
|
+
"mobileInfo": {
|
|
52
|
+
"clientWidth": 390,
|
|
53
|
+
"h1": "模型任务轨道",
|
|
54
|
+
"h1Height": 30.796875,
|
|
55
|
+
"hasHorizontalOverflow": false,
|
|
56
|
+
"scrollWidth": 390,
|
|
57
|
+
"viewport": {
|
|
58
|
+
"height": 980,
|
|
59
|
+
"width": 390
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"mobileLogs": []
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
通过: minimal-agent/skills/ui-design/SKILL.md
|
|
2
|
+
通过: minimal-agent/skills/ui-design/references/vi-nebula-console.md
|
|
3
|
+
通过: minimal-agent/skills/ui-design/evals/evals.json
|
|
4
|
+
通过: minimal-agent/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/prompt.md
|
|
5
|
+
通过: minimal-agent/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/homepage.html
|
|
6
|
+
通过: minimal-agent/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/outputs/console.html
|
|
7
|
+
通过: minimal-agent/skills/ui-design/tests/e2e/runs/nebula-console-iteration-1/review.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Skill is valid!
|