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,59 @@
|
|
|
1
|
+
# 黑曜影像首轮端到端评审
|
|
2
|
+
|
|
3
|
+
## 测试目标
|
|
4
|
+
|
|
5
|
+
本轮验证第三个 VI 模板 `Obsidian Optics`,中文名“黑曜影像”。目标是把“深色摄影器材、电影机、黑白红、精密工业、少量录制信号红”沉淀成原创模板,并用它生成一个中文 HTML 页面样张。
|
|
6
|
+
|
|
7
|
+
## 执行结果
|
|
8
|
+
|
|
9
|
+
- 已新增 `references/vi-obsidian-optics.md`。
|
|
10
|
+
- 已更新 `SKILL.md` 的视觉模板库,加入黑曜影像模板,并明确不要复制真实影像品牌。
|
|
11
|
+
- 已在 `evals/evals.json` 增加黑曜影像测试题。
|
|
12
|
+
- 已生成样张:`outputs/index.html`。
|
|
13
|
+
- 已保存桌面截图和移动端首屏截图。
|
|
14
|
+
|
|
15
|
+
## 自动检查
|
|
16
|
+
|
|
17
|
+
- `quick_validate.py`:通过。
|
|
18
|
+
- `check_ui_artifact.py`:通过,无阻断问题。
|
|
19
|
+
- `check_language_policy.py`:通过,用户可见说明和界面默认简体中文。
|
|
20
|
+
- 浏览器渲染:无控制台错误。
|
|
21
|
+
- 响应式检查:桌面和 390px 移动视口均无横向溢出。
|
|
22
|
+
|
|
23
|
+
## 视觉评分
|
|
24
|
+
|
|
25
|
+
| 维度 | 分数 | 说明 |
|
|
26
|
+
| --- | ---: | --- |
|
|
27
|
+
| 指令对齐 | 9 | 黑白红、电影机、参数模块、原创边界都明确体现。 |
|
|
28
|
+
| 中文排版 | 8 | 中文标题硬朗、醒目,没有负字距;移动端仍清楚。桌面标题略大,但符合硬件官网气质。 |
|
|
29
|
+
| 配色控制 | 9 | 深黑、石墨、冷白、冷蓝灰和信号红层次清楚,红色用量克制。 |
|
|
30
|
+
| 工业科技感 | 9 | 镜头圆环、参数条、录制状态和细边框建立了高端影像器材感。 |
|
|
31
|
+
| 轻量感 | 8 | 没有压成纯黑大块,背景网格和冷光让画面更透气。仍可在更大屏上增加一点留白。 |
|
|
32
|
+
| 组件完整度 | 8 | 有导航、主行动、参数、色板、状态面板、模块卡和调整面板。 |
|
|
33
|
+
| 移动端 | 8 | 首屏清楚,无溢出;色板区在长页中会比较长,后续可做更紧凑排列。 |
|
|
34
|
+
|
|
35
|
+
综合评分:8.4 / 10。
|
|
36
|
+
|
|
37
|
+
## 结论
|
|
38
|
+
|
|
39
|
+
这版可以作为第三个可复用 VI 模板进入模板库。它不像简单的“黑底红按钮”,而是有石墨暗面、冷白文字、镜头冷光、细线边界和红色信号点,方向是成立的。
|
|
40
|
+
|
|
41
|
+
需要保留的关键美学规则:
|
|
42
|
+
|
|
43
|
+
- 黑色必须分层,不能用一整片纯黑。
|
|
44
|
+
- 红色只做录制、选中、进度和关键行动,不做大面积主题色。
|
|
45
|
+
- 中文标题要硬朗但不要过粗,不使用负字距。
|
|
46
|
+
- 参数和规格可以有等宽感,但正文仍以中文可读性优先。
|
|
47
|
+
|
|
48
|
+
## 已发现并修正的问题
|
|
49
|
+
|
|
50
|
+
- 语言守卫最初抓到 `Logo`,已全部改为“标识”。
|
|
51
|
+
- 静态检查最初提醒中文标题上限偏大,已把模板和样张中的 H1 上限从 84px 收到 76px。
|
|
52
|
+
- 样张最初的 Tweaks 只满足静态结构,后来改成先定义初始配置再挂到全局对象。当前浏览器只读探测环境无法读取自定义全局属性,但静态检查确认 `EDITMODE` JSON 块唯一合法。
|
|
53
|
+
- 移动端完整长截图在当前浏览器中出现拼接重复,因此最终保存移动端首屏截图作为视觉判断依据。
|
|
54
|
+
|
|
55
|
+
## 下一轮建议
|
|
56
|
+
|
|
57
|
+
- 给黑曜影像再做一个 deck 样张,验证它是否适合发布会或硬件规格演示。
|
|
58
|
+
- 给样张增加更明显的“浅一点的暗色模式”变体,测试模板是否能避免过重。
|
|
59
|
+
- 检查脚本未来可以增加“红色面积比例”启发式规则,防止黑白红模板被误用成大面积红黑游戏风。
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,466 @@
|
|
|
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>黑曜界面测试 01</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--ink: #f2f7ff;
|
|
10
|
+
--ink-soft: #d5e2f2;
|
|
11
|
+
--muted: #91a3b7;
|
|
12
|
+
--paper: #03050a;
|
|
13
|
+
--paper-blue: #060d18;
|
|
14
|
+
--surface: rgba(10, 18, 30, 0.84);
|
|
15
|
+
--surface-glass: rgba(16, 32, 52, 0.62);
|
|
16
|
+
--surface-raised: rgba(24, 42, 66, 0.88);
|
|
17
|
+
--line: rgba(148, 213, 255, 0.20);
|
|
18
|
+
--line-strong: rgba(148, 213, 255, 0.42);
|
|
19
|
+
--accent: #33b8ff;
|
|
20
|
+
--signal: #2ee8d6;
|
|
21
|
+
--matrix: #8dffb4;
|
|
22
|
+
--violet: #8b5cf6;
|
|
23
|
+
--amber: #f5b84b;
|
|
24
|
+
--danger: #ff4d5e;
|
|
25
|
+
--shadow: rgba(0, 10, 28, 0.62);
|
|
26
|
+
color-scheme: dark;
|
|
27
|
+
font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Inter, sans-serif;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
* { box-sizing: border-box; }
|
|
31
|
+
|
|
32
|
+
body {
|
|
33
|
+
margin: 0;
|
|
34
|
+
min-height: 100vh;
|
|
35
|
+
color: var(--ink);
|
|
36
|
+
background:
|
|
37
|
+
radial-gradient(circle at 68% 18%, rgba(51, 184, 255, 0.34), transparent 30%),
|
|
38
|
+
radial-gradient(circle at 14% 78%, rgba(139, 92, 246, 0.24), transparent 28%),
|
|
39
|
+
linear-gradient(135deg, #020308 0%, var(--paper-blue) 46%, var(--paper) 100%);
|
|
40
|
+
overflow-x: hidden;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body::before {
|
|
44
|
+
content: "";
|
|
45
|
+
position: fixed;
|
|
46
|
+
inset: 0;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
opacity: 0.52;
|
|
49
|
+
background-image:
|
|
50
|
+
linear-gradient(rgba(148, 213, 255, 0.055) 1px, transparent 1px),
|
|
51
|
+
linear-gradient(90deg, rgba(148, 213, 255, 0.055) 1px, transparent 1px);
|
|
52
|
+
background-size: 44px 44px;
|
|
53
|
+
mask-image: radial-gradient(circle at center, black, transparent 78%);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.screen {
|
|
57
|
+
position: relative;
|
|
58
|
+
width: min(1440px, 100%);
|
|
59
|
+
min-height: 100vh;
|
|
60
|
+
margin: 0 auto;
|
|
61
|
+
padding: 34px clamp(18px, 4vw, 64px) 40px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.topbar,
|
|
65
|
+
.glass,
|
|
66
|
+
.control,
|
|
67
|
+
.map,
|
|
68
|
+
.rail,
|
|
69
|
+
.action {
|
|
70
|
+
border: 1px solid var(--line);
|
|
71
|
+
background: linear-gradient(145deg, rgba(24, 42, 66, 0.74), rgba(7, 14, 25, 0.68));
|
|
72
|
+
box-shadow: 0 24px 80px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
73
|
+
backdrop-filter: blur(20px);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.topbar {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
gap: 18px;
|
|
81
|
+
min-height: 66px;
|
|
82
|
+
padding: 12px 16px;
|
|
83
|
+
border-radius: 16px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.brand {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 12px;
|
|
90
|
+
min-width: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.brand-mark {
|
|
94
|
+
width: 42px;
|
|
95
|
+
height: 42px;
|
|
96
|
+
border-radius: 12px;
|
|
97
|
+
background:
|
|
98
|
+
linear-gradient(135deg, rgba(51, 184, 255, 0.96), rgba(46, 232, 214, 0.52)),
|
|
99
|
+
radial-gradient(circle at 72% 24%, white, transparent 18%);
|
|
100
|
+
box-shadow: 0 0 28px rgba(51, 184, 255, 0.45);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.brand strong {
|
|
104
|
+
display: block;
|
|
105
|
+
font-size: 18px;
|
|
106
|
+
letter-spacing: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.brand span {
|
|
110
|
+
display: block;
|
|
111
|
+
margin-top: 3px;
|
|
112
|
+
color: var(--muted);
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.status-row {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
justify-content: flex-end;
|
|
120
|
+
gap: 10px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.pill {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
min-height: 36px;
|
|
127
|
+
padding: 0 13px;
|
|
128
|
+
border: 1px solid rgba(148, 213, 255, 0.22);
|
|
129
|
+
border-radius: 999px;
|
|
130
|
+
color: var(--ink-soft);
|
|
131
|
+
background: rgba(7, 14, 25, 0.52);
|
|
132
|
+
font-size: 13px;
|
|
133
|
+
white-space: nowrap;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.pill i {
|
|
137
|
+
width: 8px;
|
|
138
|
+
height: 8px;
|
|
139
|
+
margin-right: 8px;
|
|
140
|
+
border-radius: 50%;
|
|
141
|
+
background: var(--matrix);
|
|
142
|
+
box-shadow: 0 0 16px var(--matrix);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.hero {
|
|
146
|
+
display: grid;
|
|
147
|
+
grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
|
|
148
|
+
gap: 24px;
|
|
149
|
+
align-items: stretch;
|
|
150
|
+
margin-top: 28px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.glass {
|
|
154
|
+
position: relative;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
border-radius: 22px;
|
|
157
|
+
padding: clamp(26px, 4vw, 46px);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.glass::before {
|
|
161
|
+
content: "";
|
|
162
|
+
position: absolute;
|
|
163
|
+
inset: 0;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
background:
|
|
166
|
+
linear-gradient(90deg, rgba(51, 184, 255, 0.16), transparent 28%),
|
|
167
|
+
radial-gradient(circle at 86% 18%, rgba(46, 232, 214, 0.18), transparent 26%);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.eyebrow {
|
|
171
|
+
position: relative;
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: 8px;
|
|
175
|
+
min-height: 34px;
|
|
176
|
+
padding: 0 12px;
|
|
177
|
+
border: 1px solid rgba(46, 232, 214, 0.28);
|
|
178
|
+
border-radius: 999px;
|
|
179
|
+
color: #bffefa;
|
|
180
|
+
background: rgba(46, 232, 214, 0.08);
|
|
181
|
+
font-size: 13px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
h1 {
|
|
185
|
+
position: relative;
|
|
186
|
+
margin: 22px 0 18px;
|
|
187
|
+
max-width: 720px;
|
|
188
|
+
font-size: clamp(42px, 6vw, 74px);
|
|
189
|
+
line-height: 1.05;
|
|
190
|
+
letter-spacing: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.lead {
|
|
194
|
+
position: relative;
|
|
195
|
+
max-width: 620px;
|
|
196
|
+
color: var(--ink-soft);
|
|
197
|
+
font-size: clamp(16px, 1.6vw, 19px);
|
|
198
|
+
line-height: 1.65;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.actions {
|
|
202
|
+
position: relative;
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-wrap: wrap;
|
|
205
|
+
gap: 12px;
|
|
206
|
+
margin-top: 30px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
button,
|
|
210
|
+
.action {
|
|
211
|
+
min-height: 48px;
|
|
212
|
+
border-radius: 14px;
|
|
213
|
+
color: var(--ink);
|
|
214
|
+
font: inherit;
|
|
215
|
+
font-weight: 700;
|
|
216
|
+
cursor: default;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.primary {
|
|
220
|
+
border: 1px solid rgba(111, 217, 255, 0.7);
|
|
221
|
+
padding: 0 22px;
|
|
222
|
+
background: linear-gradient(135deg, var(--accent), #2166ff 48%, var(--signal));
|
|
223
|
+
box-shadow: 0 0 34px rgba(51, 184, 255, 0.38);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.ghost {
|
|
227
|
+
border: 1px solid rgba(148, 213, 255, 0.28);
|
|
228
|
+
padding: 0 18px;
|
|
229
|
+
background: rgba(16, 32, 52, 0.48);
|
|
230
|
+
backdrop-filter: blur(18px);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.map {
|
|
234
|
+
position: relative;
|
|
235
|
+
min-height: 590px;
|
|
236
|
+
overflow: hidden;
|
|
237
|
+
border-radius: 24px;
|
|
238
|
+
padding: 22px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.map::before {
|
|
242
|
+
content: "";
|
|
243
|
+
position: absolute;
|
|
244
|
+
inset: 20px;
|
|
245
|
+
border: 1px solid rgba(148, 213, 255, 0.16);
|
|
246
|
+
background:
|
|
247
|
+
radial-gradient(circle at 50% 50%, rgba(51, 184, 255, 0.12), transparent 34%),
|
|
248
|
+
repeating-linear-gradient(90deg, transparent 0 42px, rgba(148, 213, 255, 0.045) 43px 44px),
|
|
249
|
+
repeating-linear-gradient(0deg, transparent 0 42px, rgba(148, 213, 255, 0.045) 43px 44px);
|
|
250
|
+
clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.orbit {
|
|
254
|
+
position: absolute;
|
|
255
|
+
inset: 88px 80px;
|
|
256
|
+
border: 1px solid rgba(46, 232, 214, 0.20);
|
|
257
|
+
border-radius: 48%;
|
|
258
|
+
transform: rotate(-12deg);
|
|
259
|
+
box-shadow: inset 0 0 34px rgba(51, 184, 255, 0.08);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.orbit.second {
|
|
263
|
+
inset: 134px 120px;
|
|
264
|
+
transform: rotate(18deg);
|
|
265
|
+
border-color: rgba(139, 92, 246, 0.26);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.node {
|
|
269
|
+
position: absolute;
|
|
270
|
+
width: 16px;
|
|
271
|
+
height: 16px;
|
|
272
|
+
border-radius: 50%;
|
|
273
|
+
background: var(--signal);
|
|
274
|
+
box-shadow: 0 0 0 7px rgba(46, 232, 214, 0.08), 0 0 24px rgba(46, 232, 214, 0.8);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.node.a { left: 20%; top: 32%; }
|
|
278
|
+
.node.b { right: 18%; top: 27%; background: var(--accent); }
|
|
279
|
+
.node.c { right: 28%; bottom: 24%; background: var(--violet); }
|
|
280
|
+
.node.d { left: 28%; bottom: 20%; background: var(--matrix); }
|
|
281
|
+
|
|
282
|
+
.window {
|
|
283
|
+
position: absolute;
|
|
284
|
+
right: 34px;
|
|
285
|
+
bottom: 34px;
|
|
286
|
+
width: min(410px, calc(100% - 68px));
|
|
287
|
+
border: 1px solid var(--line-strong);
|
|
288
|
+
border-radius: 18px;
|
|
289
|
+
background: rgba(3, 5, 10, 0.74);
|
|
290
|
+
box-shadow: 0 18px 50px rgba(0, 10, 28, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
291
|
+
backdrop-filter: blur(22px);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.window-head {
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: center;
|
|
297
|
+
justify-content: space-between;
|
|
298
|
+
padding: 14px 16px;
|
|
299
|
+
border-bottom: 1px solid rgba(148, 213, 255, 0.16);
|
|
300
|
+
color: var(--ink-soft);
|
|
301
|
+
font-weight: 750;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.meter {
|
|
305
|
+
padding: 16px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.meter-row {
|
|
309
|
+
display: grid;
|
|
310
|
+
grid-template-columns: 88px 1fr 54px;
|
|
311
|
+
gap: 12px;
|
|
312
|
+
align-items: center;
|
|
313
|
+
margin: 14px 0;
|
|
314
|
+
color: var(--muted);
|
|
315
|
+
font-size: 13px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.bar {
|
|
319
|
+
height: 8px;
|
|
320
|
+
overflow: hidden;
|
|
321
|
+
border-radius: 999px;
|
|
322
|
+
background: rgba(148, 213, 255, 0.10);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.bar span {
|
|
326
|
+
display: block;
|
|
327
|
+
height: 100%;
|
|
328
|
+
border-radius: inherit;
|
|
329
|
+
background: linear-gradient(90deg, var(--accent), var(--signal));
|
|
330
|
+
box-shadow: 0 0 18px rgba(51, 184, 255, 0.42);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.metrics {
|
|
334
|
+
display: grid;
|
|
335
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
336
|
+
gap: 14px;
|
|
337
|
+
margin-top: 24px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.control {
|
|
341
|
+
min-height: 150px;
|
|
342
|
+
border-radius: 18px;
|
|
343
|
+
padding: 18px;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.control span {
|
|
347
|
+
display: block;
|
|
348
|
+
color: var(--muted);
|
|
349
|
+
font-size: 13px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.control strong {
|
|
353
|
+
display: block;
|
|
354
|
+
margin-top: 18px;
|
|
355
|
+
font-size: clamp(27px, 3vw, 40px);
|
|
356
|
+
line-height: 1;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.control small {
|
|
360
|
+
display: block;
|
|
361
|
+
margin-top: 13px;
|
|
362
|
+
color: var(--matrix);
|
|
363
|
+
font-size: 13px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@media (max-width: 980px) {
|
|
367
|
+
.topbar { align-items: flex-start; flex-direction: column; }
|
|
368
|
+
.status-row { justify-content: flex-start; }
|
|
369
|
+
.hero { grid-template-columns: 1fr; }
|
|
370
|
+
.map { min-height: 520px; }
|
|
371
|
+
.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@media (max-width: 560px) {
|
|
375
|
+
.screen { padding: 18px 14px 26px; }
|
|
376
|
+
.glass { padding: 24px 18px; border-radius: 18px; }
|
|
377
|
+
h1 { font-size: clamp(37px, 12vw, 48px); line-height: 1.08; }
|
|
378
|
+
.lead { font-size: 15px; }
|
|
379
|
+
.actions { flex-direction: column; }
|
|
380
|
+
button { width: 100%; }
|
|
381
|
+
.map { min-height: 430px; padding: 14px; }
|
|
382
|
+
.orbit { inset: 94px 34px; }
|
|
383
|
+
.orbit.second { inset: 132px 52px; }
|
|
384
|
+
.window { left: 16px; right: 16px; bottom: 18px; width: auto; }
|
|
385
|
+
.metrics { grid-template-columns: 1fr; }
|
|
386
|
+
.pill { font-size: 12px; }
|
|
387
|
+
}
|
|
388
|
+
</style>
|
|
389
|
+
</head>
|
|
390
|
+
<body>
|
|
391
|
+
<main class="screen" data-screen-label="01 深空指挥窗口">
|
|
392
|
+
<nav class="topbar" aria-label="主导航">
|
|
393
|
+
<div class="brand">
|
|
394
|
+
<div class="brand-mark" aria-hidden="true"></div>
|
|
395
|
+
<div>
|
|
396
|
+
<strong>玄穹控制中枢</strong>
|
|
397
|
+
<span>空间智能任务界面</span>
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
<div class="status-row">
|
|
401
|
+
<span class="pill"><i></i>主链路在线</span>
|
|
402
|
+
<span class="pill">延迟 18 毫秒</span>
|
|
403
|
+
<span class="pill">巡航模式</span>
|
|
404
|
+
</div>
|
|
405
|
+
</nav>
|
|
406
|
+
|
|
407
|
+
<section class="hero">
|
|
408
|
+
<div>
|
|
409
|
+
<article class="glass">
|
|
410
|
+
<span class="eyebrow">透明装甲界面 · 实时任务态势</span>
|
|
411
|
+
<h1>把轨道、设备和风险压进一个可读窗口。</h1>
|
|
412
|
+
<p class="lead">黑曜界面用深色阅读面承载关键文字,玻璃层负责空间深度,青蓝光路只提示系统连接与行动方向。</p>
|
|
413
|
+
<div class="actions">
|
|
414
|
+
<button class="primary">启动同步扫描</button>
|
|
415
|
+
<button class="ghost">查看节点拓扑</button>
|
|
416
|
+
</div>
|
|
417
|
+
</article>
|
|
418
|
+
|
|
419
|
+
<section class="metrics" aria-label="核心指标">
|
|
420
|
+
<div class="control"><span>节点健康</span><strong>98.7%</strong><small>12 个节点通过校验</small></div>
|
|
421
|
+
<div class="control"><span>轨道偏移</span><strong>0.03°</strong><small>处于安全阈值</small></div>
|
|
422
|
+
<div class="control"><span>数据吞吐</span><strong>4.8 TB</strong><small>过去 24 小时</small></div>
|
|
423
|
+
<div class="control"><span>风险事件</span><strong>02</strong><small style="color: var(--amber)">需要复核</small></div>
|
|
424
|
+
</section>
|
|
425
|
+
</div>
|
|
426
|
+
|
|
427
|
+
<div class="map" aria-label="轨道态势图">
|
|
428
|
+
<div class="orbit"></div>
|
|
429
|
+
<div class="orbit second"></div>
|
|
430
|
+
<i class="node a"></i>
|
|
431
|
+
<i class="node b"></i>
|
|
432
|
+
<i class="node c"></i>
|
|
433
|
+
<i class="node d"></i>
|
|
434
|
+
<section class="window">
|
|
435
|
+
<div class="window-head">
|
|
436
|
+
<span>透明状态窗口</span>
|
|
437
|
+
<span style="color: var(--signal)">同步中</span>
|
|
438
|
+
</div>
|
|
439
|
+
<div class="meter">
|
|
440
|
+
<div class="meter-row"><span>通信质量</span><div class="bar"><span style="width: 86%"></span></div><b>86%</b></div>
|
|
441
|
+
<div class="meter-row"><span>能量余量</span><div class="bar"><span style="width: 74%"></span></div><b>74%</b></div>
|
|
442
|
+
<div class="meter-row"><span>预测置信</span><div class="bar"><span style="width: 91%"></span></div><b>91%</b></div>
|
|
443
|
+
<div class="meter-row"><span>告警抑制</span><div class="bar"><span style="width: 64%; background: linear-gradient(90deg, var(--amber), var(--accent));"></span></div><b>64%</b></div>
|
|
444
|
+
</div>
|
|
445
|
+
</section>
|
|
446
|
+
</div>
|
|
447
|
+
</section>
|
|
448
|
+
</main>
|
|
449
|
+
<script>
|
|
450
|
+
window.addEventListener("message", (event) => {
|
|
451
|
+
if (event.data && event.data.type === "__edit_mode_set_keys") {
|
|
452
|
+
const edits = event.data.edits || {};
|
|
453
|
+
if (edits.accent) document.documentElement.style.setProperty("--accent", edits.accent);
|
|
454
|
+
if (edits.glass) document.documentElement.style.setProperty("--surface-glass", edits.glass);
|
|
455
|
+
if (edits.grid) document.body.style.setProperty("--grid-opacity", edits.grid);
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
const UI_DESIGN_TWEAKS = /*EDITMODE-BEGIN*/{
|
|
459
|
+
"accent": "#33b8ff",
|
|
460
|
+
"glass": "rgba(16, 32, 52, 0.62)",
|
|
461
|
+
"grid": "0.52"
|
|
462
|
+
}/*EDITMODE-END*/;
|
|
463
|
+
window.parent.postMessage({ type: "__edit_mode_available", edits: UI_DESIGN_TWEAKS }, "*");
|
|
464
|
+
</script>
|
|
465
|
+
</body>
|
|
466
|
+
</html>
|