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,765 @@
|
|
|
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: #101326;
|
|
10
|
+
--ink-soft: #262b42;
|
|
11
|
+
--muted: #596174;
|
|
12
|
+
--paper: #fffaf7;
|
|
13
|
+
--surface: #ffffff;
|
|
14
|
+
--surface-warm: #fff3ea;
|
|
15
|
+
--line: rgba(16, 19, 38, 0.12);
|
|
16
|
+
--accent: #ff6b4a;
|
|
17
|
+
--coral: #f45b6c;
|
|
18
|
+
--orange: #ff9f2f;
|
|
19
|
+
--sun: #ffc640;
|
|
20
|
+
--teal: #1dbb9c;
|
|
21
|
+
--cyan: #16b8d8;
|
|
22
|
+
--blue: #1857b8;
|
|
23
|
+
--indigo: #27328f;
|
|
24
|
+
--magenta: #d81b8c;
|
|
25
|
+
--shadow: rgba(255, 107, 74, 0.22);
|
|
26
|
+
--ribbon-strength: 0.86;
|
|
27
|
+
--energy-scale: 1;
|
|
28
|
+
font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Inter", sans-serif;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
* {
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body {
|
|
36
|
+
min-height: 100vh;
|
|
37
|
+
margin: 0;
|
|
38
|
+
color: var(--ink);
|
|
39
|
+
background:
|
|
40
|
+
radial-gradient(circle at 12% 16%, rgba(255, 198, 64, 0.22), transparent 28%),
|
|
41
|
+
radial-gradient(circle at 90% 8%, rgba(22, 184, 216, 0.14), transparent 26%),
|
|
42
|
+
linear-gradient(135deg, #fffaf7 0%, #fff4ec 54%, #fff8e8 100%);
|
|
43
|
+
overflow-x: hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
button,
|
|
47
|
+
input {
|
|
48
|
+
font: inherit;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.page {
|
|
52
|
+
position: relative;
|
|
53
|
+
min-height: 100vh;
|
|
54
|
+
padding: 22px;
|
|
55
|
+
isolation: isolate;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.page::before,
|
|
60
|
+
.page::after {
|
|
61
|
+
content: "";
|
|
62
|
+
position: fixed;
|
|
63
|
+
z-index: -2;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
opacity: var(--ribbon-strength);
|
|
66
|
+
filter: saturate(calc(0.92 + var(--energy-scale) * 0.16));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.page::before {
|
|
70
|
+
width: 960px;
|
|
71
|
+
height: 960px;
|
|
72
|
+
left: -360px;
|
|
73
|
+
top: -260px;
|
|
74
|
+
border-radius: 46% 54% 52% 48%;
|
|
75
|
+
background:
|
|
76
|
+
conic-gradient(from 218deg,
|
|
77
|
+
var(--indigo) 0 12%,
|
|
78
|
+
var(--blue) 12% 26%,
|
|
79
|
+
var(--cyan) 26% 36%,
|
|
80
|
+
var(--teal) 36% 46%,
|
|
81
|
+
var(--coral) 46% 64%,
|
|
82
|
+
var(--sun) 64% 76%,
|
|
83
|
+
var(--orange) 76% 88%,
|
|
84
|
+
var(--magenta) 88% 100%);
|
|
85
|
+
transform: rotate(-18deg) scale(calc(0.86 + var(--energy-scale) * 0.08));
|
|
86
|
+
mask-image: radial-gradient(circle at 58% 56%, transparent 0 33%, #000 34% 63%, transparent 64%);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.page::after {
|
|
90
|
+
width: 1180px;
|
|
91
|
+
height: 620px;
|
|
92
|
+
right: -420px;
|
|
93
|
+
bottom: -270px;
|
|
94
|
+
border-radius: 999px;
|
|
95
|
+
background:
|
|
96
|
+
linear-gradient(120deg,
|
|
97
|
+
transparent 0 8%,
|
|
98
|
+
rgba(255, 198, 64, 0.86) 8% 22%,
|
|
99
|
+
rgba(255, 159, 47, 0.88) 22% 34%,
|
|
100
|
+
rgba(244, 91, 108, 0.86) 34% 50%,
|
|
101
|
+
rgba(216, 27, 140, 0.68) 50% 62%,
|
|
102
|
+
rgba(24, 87, 184, 0.72) 62% 78%,
|
|
103
|
+
rgba(22, 184, 216, 0.64) 78% 92%,
|
|
104
|
+
transparent 92% 100%);
|
|
105
|
+
transform: rotate(-14deg) scale(calc(0.94 + var(--energy-scale) * 0.05));
|
|
106
|
+
filter: blur(0.2px) saturate(1.06);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.shell {
|
|
110
|
+
width: min(1180px, 100%);
|
|
111
|
+
margin: 0 auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.topbar {
|
|
115
|
+
min-height: 70px;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
gap: 18px;
|
|
120
|
+
padding: 12px 14px 12px 18px;
|
|
121
|
+
border: 1px solid var(--line);
|
|
122
|
+
border-radius: 22px;
|
|
123
|
+
background: rgba(255, 255, 255, 0.84);
|
|
124
|
+
box-shadow: 0 18px 50px rgba(255, 107, 74, 0.12);
|
|
125
|
+
backdrop-filter: blur(16px);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.brand {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
gap: 12px;
|
|
132
|
+
min-width: 0;
|
|
133
|
+
font-weight: 880;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.mark {
|
|
137
|
+
position: relative;
|
|
138
|
+
width: 38px;
|
|
139
|
+
height: 38px;
|
|
140
|
+
border-radius: 15px;
|
|
141
|
+
background:
|
|
142
|
+
radial-gradient(circle at 30% 28%, #fff8c8 0 12%, transparent 13%),
|
|
143
|
+
conic-gradient(from 230deg, var(--accent), var(--orange), var(--sun), var(--teal), var(--blue), var(--magenta), var(--accent));
|
|
144
|
+
box-shadow: 0 16px 34px rgba(255, 107, 74, 0.28);
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
flex: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.mark::before {
|
|
150
|
+
content: "";
|
|
151
|
+
position: absolute;
|
|
152
|
+
inset: 10px 5px;
|
|
153
|
+
border: 2px solid rgba(255, 255, 255, 0.9);
|
|
154
|
+
border-left-color: transparent;
|
|
155
|
+
border-radius: 999px;
|
|
156
|
+
transform: rotate(-24deg);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.nav {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
gap: 8px;
|
|
163
|
+
color: var(--muted);
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nav a {
|
|
168
|
+
color: inherit;
|
|
169
|
+
text-decoration: none;
|
|
170
|
+
padding: 10px 12px;
|
|
171
|
+
border-radius: 14px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nav a[aria-current="page"] {
|
|
175
|
+
color: var(--accent);
|
|
176
|
+
background: rgba(255, 107, 74, 0.09);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.status-pill {
|
|
180
|
+
min-height: 40px;
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
gap: 8px;
|
|
184
|
+
padding: 0 14px;
|
|
185
|
+
border: 1px solid rgba(29, 187, 156, 0.26);
|
|
186
|
+
border-radius: 999px;
|
|
187
|
+
color: #0e6b5d;
|
|
188
|
+
background: rgba(235, 255, 248, 0.82);
|
|
189
|
+
font-size: 13px;
|
|
190
|
+
font-weight: 780;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.status-pill::before {
|
|
195
|
+
content: "";
|
|
196
|
+
width: 8px;
|
|
197
|
+
height: 8px;
|
|
198
|
+
border-radius: 50%;
|
|
199
|
+
background: var(--teal);
|
|
200
|
+
box-shadow: 0 0 0 5px rgba(29, 187, 156, 0.13);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.hero {
|
|
204
|
+
display: grid;
|
|
205
|
+
grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.72fr);
|
|
206
|
+
gap: clamp(30px, 6vw, 70px);
|
|
207
|
+
align-items: center;
|
|
208
|
+
padding: clamp(48px, 7vw, 90px) 0 56px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.eyebrow {
|
|
212
|
+
display: inline-flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
gap: 10px;
|
|
215
|
+
margin: 0 0 18px;
|
|
216
|
+
padding: 8px 12px;
|
|
217
|
+
border-radius: 999px;
|
|
218
|
+
border: 1px solid rgba(255, 107, 74, 0.24);
|
|
219
|
+
background: rgba(255, 255, 255, 0.78);
|
|
220
|
+
color: var(--accent);
|
|
221
|
+
font-size: 13px;
|
|
222
|
+
font-weight: 820;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.eyebrow::before {
|
|
226
|
+
content: "";
|
|
227
|
+
width: 28px;
|
|
228
|
+
height: 3px;
|
|
229
|
+
border-radius: 99px;
|
|
230
|
+
background: linear-gradient(90deg, var(--accent), var(--sun), var(--teal));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
h1 {
|
|
234
|
+
max-width: 720px;
|
|
235
|
+
margin: 0;
|
|
236
|
+
color: var(--ink);
|
|
237
|
+
font-size: clamp(40px, 5.4vw, 74px);
|
|
238
|
+
line-height: 1.04;
|
|
239
|
+
letter-spacing: 0;
|
|
240
|
+
text-wrap: balance;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.lead {
|
|
244
|
+
max-width: 650px;
|
|
245
|
+
margin: 22px 0 0;
|
|
246
|
+
color: var(--muted);
|
|
247
|
+
font-size: 17px;
|
|
248
|
+
line-height: 1.62;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.actions {
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-wrap: wrap;
|
|
254
|
+
gap: 12px;
|
|
255
|
+
margin-top: 30px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.button {
|
|
259
|
+
min-height: 46px;
|
|
260
|
+
display: inline-flex;
|
|
261
|
+
align-items: center;
|
|
262
|
+
justify-content: center;
|
|
263
|
+
gap: 8px;
|
|
264
|
+
padding: 0 18px;
|
|
265
|
+
border: 1px solid transparent;
|
|
266
|
+
border-radius: 15px;
|
|
267
|
+
font-weight: 820;
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.button.primary {
|
|
272
|
+
color: #ffffff;
|
|
273
|
+
background: linear-gradient(135deg, var(--accent), var(--orange) 52%, var(--magenta));
|
|
274
|
+
box-shadow: 0 20px 44px rgba(255, 107, 74, 0.28);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.button.secondary {
|
|
278
|
+
color: var(--ink-soft);
|
|
279
|
+
background: rgba(255, 255, 255, 0.82);
|
|
280
|
+
border-color: var(--line);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.metrics {
|
|
284
|
+
display: grid;
|
|
285
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
286
|
+
gap: 12px;
|
|
287
|
+
margin-top: 34px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.metric {
|
|
291
|
+
padding: 16px;
|
|
292
|
+
border: 1px solid var(--line);
|
|
293
|
+
border-radius: 18px;
|
|
294
|
+
background: rgba(255, 255, 255, 0.78);
|
|
295
|
+
box-shadow: 0 16px 36px rgba(255, 107, 74, 0.08);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.metric strong {
|
|
299
|
+
display: block;
|
|
300
|
+
color: var(--ink);
|
|
301
|
+
font-size: 24px;
|
|
302
|
+
line-height: 1;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.metric span {
|
|
306
|
+
display: block;
|
|
307
|
+
margin-top: 8px;
|
|
308
|
+
color: var(--muted);
|
|
309
|
+
font-size: 13px;
|
|
310
|
+
line-height: 1.42;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.phone-wrap {
|
|
314
|
+
display: grid;
|
|
315
|
+
place-items: center;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.phone {
|
|
319
|
+
position: relative;
|
|
320
|
+
width: min(360px, 100%);
|
|
321
|
+
min-height: 670px;
|
|
322
|
+
padding: 14px;
|
|
323
|
+
border-radius: 38px;
|
|
324
|
+
background: #0b102b;
|
|
325
|
+
box-shadow: 0 30px 90px rgba(39, 50, 143, 0.26);
|
|
326
|
+
overflow: hidden;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.phone::before {
|
|
330
|
+
content: "";
|
|
331
|
+
position: absolute;
|
|
332
|
+
inset: 14px;
|
|
333
|
+
border-radius: 28px;
|
|
334
|
+
background:
|
|
335
|
+
radial-gradient(circle at 24% 12%, rgba(255, 198, 64, 0.34), transparent 22%),
|
|
336
|
+
linear-gradient(150deg, var(--blue), var(--indigo) 38%, #0e1d62);
|
|
337
|
+
pointer-events: none;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.phone-screen {
|
|
341
|
+
position: relative;
|
|
342
|
+
z-index: 1;
|
|
343
|
+
min-height: 642px;
|
|
344
|
+
padding: 22px 18px;
|
|
345
|
+
border-radius: 28px;
|
|
346
|
+
color: #ffffff;
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.phone-screen::before {
|
|
351
|
+
content: "";
|
|
352
|
+
position: absolute;
|
|
353
|
+
width: 480px;
|
|
354
|
+
height: 480px;
|
|
355
|
+
left: -170px;
|
|
356
|
+
top: 70px;
|
|
357
|
+
border-radius: 50%;
|
|
358
|
+
background:
|
|
359
|
+
conic-gradient(from 220deg, var(--accent), var(--orange), var(--sun), var(--teal), var(--cyan), var(--blue), var(--magenta), var(--accent));
|
|
360
|
+
opacity: 0.9;
|
|
361
|
+
mask-image: radial-gradient(circle, transparent 0 45%, #000 46% 68%, transparent 69%);
|
|
362
|
+
transform: rotate(-22deg);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.phone-content {
|
|
366
|
+
position: relative;
|
|
367
|
+
z-index: 1;
|
|
368
|
+
display: grid;
|
|
369
|
+
min-height: 590px;
|
|
370
|
+
align-content: space-between;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.app-top {
|
|
374
|
+
display: flex;
|
|
375
|
+
align-items: center;
|
|
376
|
+
justify-content: space-between;
|
|
377
|
+
font-size: 13px;
|
|
378
|
+
font-weight: 760;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.connection {
|
|
382
|
+
margin-top: 58px;
|
|
383
|
+
text-align: center;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.connection h2 {
|
|
387
|
+
margin: 0;
|
|
388
|
+
font-size: 42px;
|
|
389
|
+
line-height: 1;
|
|
390
|
+
letter-spacing: 0;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.connection p {
|
|
394
|
+
max-width: 230px;
|
|
395
|
+
margin: 14px auto 0;
|
|
396
|
+
color: rgba(255, 255, 255, 0.78);
|
|
397
|
+
font-size: 14px;
|
|
398
|
+
line-height: 1.5;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.switch {
|
|
402
|
+
width: 104px;
|
|
403
|
+
height: 58px;
|
|
404
|
+
display: flex;
|
|
405
|
+
align-items: center;
|
|
406
|
+
justify-content: flex-end;
|
|
407
|
+
margin: 28px auto 0;
|
|
408
|
+
padding: 6px;
|
|
409
|
+
border-radius: 999px;
|
|
410
|
+
background: linear-gradient(135deg, var(--accent), var(--orange), var(--magenta));
|
|
411
|
+
box-shadow: 0 14px 34px rgba(244, 91, 108, 0.36);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.switch span {
|
|
415
|
+
width: 46px;
|
|
416
|
+
height: 46px;
|
|
417
|
+
border-radius: 50%;
|
|
418
|
+
background: #fff;
|
|
419
|
+
box-shadow: 0 8px 18px rgba(16, 19, 38, 0.26);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.phone-card {
|
|
423
|
+
padding: 16px;
|
|
424
|
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
425
|
+
border-radius: 20px;
|
|
426
|
+
background: rgba(255, 255, 255, 0.12);
|
|
427
|
+
backdrop-filter: blur(14px);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.phone-card strong {
|
|
431
|
+
display: block;
|
|
432
|
+
font-size: 15px;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.phone-card p {
|
|
436
|
+
margin: 8px 0 0;
|
|
437
|
+
color: rgba(255, 255, 255, 0.72);
|
|
438
|
+
font-size: 13px;
|
|
439
|
+
line-height: 1.48;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.section {
|
|
443
|
+
padding: 20px 0 72px;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.section-title {
|
|
447
|
+
max-width: 720px;
|
|
448
|
+
margin: 0;
|
|
449
|
+
color: var(--ink);
|
|
450
|
+
font-size: clamp(30px, 3.5vw, 46px);
|
|
451
|
+
line-height: 1.12;
|
|
452
|
+
letter-spacing: 0;
|
|
453
|
+
text-wrap: balance;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.section-copy {
|
|
457
|
+
max-width: 700px;
|
|
458
|
+
margin: 14px 0 0;
|
|
459
|
+
color: var(--muted);
|
|
460
|
+
font-size: 16px;
|
|
461
|
+
line-height: 1.6;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.feature-grid {
|
|
465
|
+
display: grid;
|
|
466
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
467
|
+
gap: 16px;
|
|
468
|
+
margin-top: 26px;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.feature {
|
|
472
|
+
min-height: 222px;
|
|
473
|
+
padding: 20px;
|
|
474
|
+
border: 1px solid var(--line);
|
|
475
|
+
border-radius: 22px;
|
|
476
|
+
background: rgba(255, 255, 255, 0.82);
|
|
477
|
+
box-shadow: 0 18px 42px rgba(255, 107, 74, 0.08);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.feature-badge {
|
|
481
|
+
width: 42px;
|
|
482
|
+
height: 42px;
|
|
483
|
+
display: grid;
|
|
484
|
+
place-items: center;
|
|
485
|
+
margin-bottom: 18px;
|
|
486
|
+
border-radius: 15px;
|
|
487
|
+
color: #fff;
|
|
488
|
+
background: linear-gradient(135deg, var(--accent), var(--orange));
|
|
489
|
+
font-weight: 880;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.feature:nth-child(2) .feature-badge {
|
|
493
|
+
background: linear-gradient(135deg, var(--teal), var(--cyan));
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.feature:nth-child(3) .feature-badge {
|
|
497
|
+
background: linear-gradient(135deg, var(--blue), var(--magenta));
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.feature h3 {
|
|
501
|
+
margin: 0;
|
|
502
|
+
color: var(--ink);
|
|
503
|
+
font-size: 18px;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.feature p {
|
|
507
|
+
margin: 10px 0 0;
|
|
508
|
+
color: var(--muted);
|
|
509
|
+
font-size: 14px;
|
|
510
|
+
line-height: 1.58;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.tweaks-panel {
|
|
514
|
+
position: fixed;
|
|
515
|
+
right: 18px;
|
|
516
|
+
bottom: 18px;
|
|
517
|
+
z-index: 30;
|
|
518
|
+
width: min(330px, calc(100vw - 36px));
|
|
519
|
+
display: none;
|
|
520
|
+
gap: 12px;
|
|
521
|
+
padding: 16px;
|
|
522
|
+
border: 1px solid rgba(255, 107, 74, 0.28);
|
|
523
|
+
border-radius: 20px;
|
|
524
|
+
background: rgba(255, 255, 255, 0.94);
|
|
525
|
+
box-shadow: 0 24px 70px rgba(255, 107, 74, 0.22);
|
|
526
|
+
backdrop-filter: blur(18px);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.tweaks-panel[data-open="true"] {
|
|
530
|
+
display: grid;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.tweaks-panel strong {
|
|
534
|
+
color: var(--ink);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.tweaks-panel label {
|
|
538
|
+
display: grid;
|
|
539
|
+
gap: 6px;
|
|
540
|
+
color: var(--muted);
|
|
541
|
+
font-size: 13px;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.tweaks-panel input[type="range"] {
|
|
545
|
+
width: 100%;
|
|
546
|
+
accent-color: var(--accent);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
@media (max-width: 920px) {
|
|
550
|
+
.page {
|
|
551
|
+
padding: 14px;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.nav {
|
|
555
|
+
display: none;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.hero {
|
|
559
|
+
grid-template-columns: 1fr;
|
|
560
|
+
padding-top: 42px;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.phone {
|
|
564
|
+
width: min(340px, 100%);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.metrics,
|
|
568
|
+
.feature-grid {
|
|
569
|
+
grid-template-columns: 1fr;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
@media (max-width: 520px) {
|
|
574
|
+
.topbar {
|
|
575
|
+
border-radius: 18px;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.brand span:last-child {
|
|
579
|
+
max-width: 132px;
|
|
580
|
+
overflow: hidden;
|
|
581
|
+
text-overflow: ellipsis;
|
|
582
|
+
white-space: nowrap;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
h1 {
|
|
586
|
+
font-size: clamp(37px, 11vw, 50px);
|
|
587
|
+
line-height: 1.08;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.lead {
|
|
591
|
+
font-size: 16px;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.actions {
|
|
595
|
+
display: grid;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.button {
|
|
599
|
+
width: 100%;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.phone {
|
|
603
|
+
min-height: 600px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.phone-screen {
|
|
607
|
+
min-height: 572px;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
</style>
|
|
611
|
+
</head>
|
|
612
|
+
<body>
|
|
613
|
+
<main class="page" data-screen-label="01 日冕中继首页">
|
|
614
|
+
<div class="shell">
|
|
615
|
+
<header class="topbar">
|
|
616
|
+
<div class="brand">
|
|
617
|
+
<span class="mark" aria-hidden="true"></span>
|
|
618
|
+
<span>光径加速器</span>
|
|
619
|
+
</div>
|
|
620
|
+
<nav class="nav" aria-label="主导航">
|
|
621
|
+
<a href="#" aria-current="page">加速</a>
|
|
622
|
+
<a href="#">安全</a>
|
|
623
|
+
<a href="#">权益</a>
|
|
624
|
+
<a href="#">节点</a>
|
|
625
|
+
</nav>
|
|
626
|
+
<div class="status-pill">通道已保护</div>
|
|
627
|
+
</header>
|
|
628
|
+
|
|
629
|
+
<section class="hero" aria-labelledby="hero-title">
|
|
630
|
+
<div>
|
|
631
|
+
<p class="eyebrow">日冕中继 · 多彩网络路径</p>
|
|
632
|
+
<h1 id="hero-title">让拥挤网络切换到更快的安全光径</h1>
|
|
633
|
+
<p class="lead">光径加速器为移动端和桌面端自动选择低拥塞中继路径,在公共网络中保护连接,并把延迟、流量和节点状态变成一眼可读的彩色轨迹。</p>
|
|
634
|
+
<div class="actions">
|
|
635
|
+
<button class="button primary" type="button">开启安全加速</button>
|
|
636
|
+
<button class="button secondary" type="button">查看路径状态</button>
|
|
637
|
+
</div>
|
|
638
|
+
<div class="metrics" aria-label="关键指标">
|
|
639
|
+
<div class="metric">
|
|
640
|
+
<strong>37%</strong>
|
|
641
|
+
<span>拥挤时段平均延迟降低</span>
|
|
642
|
+
</div>
|
|
643
|
+
<div class="metric">
|
|
644
|
+
<strong>8 条</strong>
|
|
645
|
+
<span>自动候选中继路径实时评估</span>
|
|
646
|
+
</div>
|
|
647
|
+
<div class="metric">
|
|
648
|
+
<strong>24h</strong>
|
|
649
|
+
<span>公共网络连接保护持续在线</span>
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
</div>
|
|
653
|
+
|
|
654
|
+
<aside class="phone-wrap" aria-label="移动端连接状态">
|
|
655
|
+
<div class="phone">
|
|
656
|
+
<div class="phone-screen">
|
|
657
|
+
<div class="phone-content">
|
|
658
|
+
<div class="app-top">
|
|
659
|
+
<span>光径</span>
|
|
660
|
+
<span>上海 · 中继 04</span>
|
|
661
|
+
</div>
|
|
662
|
+
<div class="connection">
|
|
663
|
+
<h2>已连接</h2>
|
|
664
|
+
<p>当前网络正在通过低拥塞中继路径保护并加速。</p>
|
|
665
|
+
<div class="switch" aria-label="连接开关"><span></span></div>
|
|
666
|
+
</div>
|
|
667
|
+
<div class="phone-card">
|
|
668
|
+
<strong>本次路径</strong>
|
|
669
|
+
<p>入口网络 → 智能中继 → 隐私保护出口,预计节省 42ms。</p>
|
|
670
|
+
</div>
|
|
671
|
+
</div>
|
|
672
|
+
</div>
|
|
673
|
+
</div>
|
|
674
|
+
</aside>
|
|
675
|
+
</section>
|
|
676
|
+
|
|
677
|
+
<section class="section" aria-labelledby="feature-title">
|
|
678
|
+
<h2 class="section-title" id="feature-title">彩色弧带只表达路径,核心信息始终清楚</h2>
|
|
679
|
+
<p class="section-copy">日冕中继把红橙用于加速能量,青蓝用于保护状态,深蓝用于稳定技术背板。彩色是结构语言,不是背景噪声。</p>
|
|
680
|
+
<div class="feature-grid">
|
|
681
|
+
<article class="feature">
|
|
682
|
+
<div class="feature-badge">速</div>
|
|
683
|
+
<h3>拥塞绕行</h3>
|
|
684
|
+
<p>检测当前网络拥堵后,自动选择更顺畅的中继路径,降低等待和卡顿。</p>
|
|
685
|
+
</article>
|
|
686
|
+
<article class="feature">
|
|
687
|
+
<div class="feature-badge">护</div>
|
|
688
|
+
<h3>公共网络保护</h3>
|
|
689
|
+
<p>在咖啡店、机场和共享网络中隐藏敏感连接,让传输状态更安心。</p>
|
|
690
|
+
</article>
|
|
691
|
+
<article class="feature">
|
|
692
|
+
<div class="feature-badge">益</div>
|
|
693
|
+
<h3>流量权益</h3>
|
|
694
|
+
<p>用清楚的权益卡展示加速额度、推荐奖励和订阅状态,避免复杂套餐干扰。</p>
|
|
695
|
+
</article>
|
|
696
|
+
</div>
|
|
697
|
+
</section>
|
|
698
|
+
</div>
|
|
699
|
+
</main>
|
|
700
|
+
|
|
701
|
+
<aside class="tweaks-panel" aria-label="调整">
|
|
702
|
+
<strong>调整</strong>
|
|
703
|
+
<label>
|
|
704
|
+
主红橙
|
|
705
|
+
<input data-tweak-accent type="color" value="#ff6b4a">
|
|
706
|
+
</label>
|
|
707
|
+
<label>
|
|
708
|
+
彩带强度
|
|
709
|
+
<input data-tweak-ribbon type="range" min="0.35" max="1" step="0.05" value="0.86">
|
|
710
|
+
</label>
|
|
711
|
+
<label>
|
|
712
|
+
活力等级
|
|
713
|
+
<input data-tweak-energy type="range" min="0.6" max="1.35" step="0.05" value="1">
|
|
714
|
+
</label>
|
|
715
|
+
</aside>
|
|
716
|
+
|
|
717
|
+
<script>
|
|
718
|
+
const UI_DESIGN_TWEAKS = /*EDITMODE-BEGIN*/{
|
|
719
|
+
"accent": "#ff6b4a",
|
|
720
|
+
"ribbonStrength": 0.86,
|
|
721
|
+
"energyScale": 1
|
|
722
|
+
}/*EDITMODE-END*/;
|
|
723
|
+
|
|
724
|
+
function applyTweaks(nextTweaks) {
|
|
725
|
+
document.documentElement.style.setProperty('--accent', nextTweaks.accent || '#ff6b4a');
|
|
726
|
+
document.documentElement.style.setProperty('--ribbon-strength', String(nextTweaks.ribbonStrength ?? 0.86));
|
|
727
|
+
document.documentElement.style.setProperty('--energy-scale', String(nextTweaks.energyScale ?? 1));
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
function persistTweakPatch(patch) {
|
|
731
|
+
Object.assign(UI_DESIGN_TWEAKS, patch);
|
|
732
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
733
|
+
window.parent.postMessage({ type: '__edit_mode_set_keys', edits: patch }, '*');
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
const tweaksPanel = document.querySelector('.tweaks-panel');
|
|
737
|
+
window.addEventListener('message', (event) => {
|
|
738
|
+
if (event.data?.type === '__activate_edit_mode') {
|
|
739
|
+
tweaksPanel?.setAttribute('data-open', 'true');
|
|
740
|
+
}
|
|
741
|
+
if (event.data?.type === '__deactivate_edit_mode') {
|
|
742
|
+
tweaksPanel?.setAttribute('data-open', 'false');
|
|
743
|
+
}
|
|
744
|
+
if (event.data?.type === '__edit_mode_set_keys') {
|
|
745
|
+
const patch = event.data.edits || event.data.keys || {};
|
|
746
|
+
Object.assign(UI_DESIGN_TWEAKS, patch);
|
|
747
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
|
|
751
|
+
window.parent.postMessage({ type: '__edit_mode_available' }, '*');
|
|
752
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
753
|
+
|
|
754
|
+
document.querySelector('[data-tweak-accent]')?.addEventListener('input', (event) => {
|
|
755
|
+
persistTweakPatch({ accent: event.target.value });
|
|
756
|
+
});
|
|
757
|
+
document.querySelector('[data-tweak-ribbon]')?.addEventListener('input', (event) => {
|
|
758
|
+
persistTweakPatch({ ribbonStrength: Number(event.target.value) });
|
|
759
|
+
});
|
|
760
|
+
document.querySelector('[data-tweak-energy]')?.addEventListener('input', (event) => {
|
|
761
|
+
persistTweakPatch({ energyScale: Number(event.target.value) });
|
|
762
|
+
});
|
|
763
|
+
</script>
|
|
764
|
+
</body>
|
|
765
|
+
</html>
|