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,788 @@
|
|
|
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: #11121a;
|
|
10
|
+
--ink-soft: #27243a;
|
|
11
|
+
--muted: #5d6274;
|
|
12
|
+
--paper: #fbfbff;
|
|
13
|
+
--paper-violet: #f4f0ff;
|
|
14
|
+
--surface: #ffffff;
|
|
15
|
+
--surface-soft: rgba(255, 255, 255, 0.86);
|
|
16
|
+
--line: rgba(30, 25, 70, 0.12);
|
|
17
|
+
--line-violet: rgba(124, 58, 237, 0.22);
|
|
18
|
+
--accent: #7c3aed;
|
|
19
|
+
--accent-blue: #5865f2;
|
|
20
|
+
--glow: #a78bfa;
|
|
21
|
+
--signal: #22c7d8;
|
|
22
|
+
--amber: #d89a24;
|
|
23
|
+
--danger: #d9485f;
|
|
24
|
+
--shadow: rgba(80, 60, 180, 0.16);
|
|
25
|
+
--track-opacity: 0.78;
|
|
26
|
+
--density-gap: 18px;
|
|
27
|
+
font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Inter", sans-serif;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
* {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
html {
|
|
35
|
+
background: var(--paper);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
body {
|
|
39
|
+
min-height: 100vh;
|
|
40
|
+
margin: 0;
|
|
41
|
+
color: var(--ink);
|
|
42
|
+
background:
|
|
43
|
+
radial-gradient(circle at 14% 10%, rgba(124, 58, 237, 0.13), transparent 28%),
|
|
44
|
+
radial-gradient(circle at 88% 14%, rgba(88, 101, 242, 0.12), transparent 30%),
|
|
45
|
+
radial-gradient(circle at 62% 76%, rgba(34, 199, 216, 0.08), transparent 34%),
|
|
46
|
+
linear-gradient(135deg, #ffffff 0%, #fbfbff 44%, #f4f0ff 100%);
|
|
47
|
+
overflow-x: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
button,
|
|
51
|
+
input {
|
|
52
|
+
font: inherit;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.page {
|
|
56
|
+
position: relative;
|
|
57
|
+
min-height: 100vh;
|
|
58
|
+
padding: 22px;
|
|
59
|
+
isolation: isolate;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.page::before {
|
|
63
|
+
content: "";
|
|
64
|
+
position: fixed;
|
|
65
|
+
inset: 0;
|
|
66
|
+
z-index: -2;
|
|
67
|
+
opacity: 0.45;
|
|
68
|
+
background-image:
|
|
69
|
+
linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
|
|
70
|
+
linear-gradient(90deg, rgba(88, 101, 242, 0.07) 1px, transparent 1px);
|
|
71
|
+
background-size: 72px 72px;
|
|
72
|
+
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.page::after {
|
|
76
|
+
content: "";
|
|
77
|
+
position: fixed;
|
|
78
|
+
inset: auto -10% -24% 18%;
|
|
79
|
+
z-index: -1;
|
|
80
|
+
height: 360px;
|
|
81
|
+
background: linear-gradient(90deg, rgba(124, 58, 237, 0), rgba(124, 58, 237, 0.18), rgba(34, 199, 216, 0));
|
|
82
|
+
filter: blur(42px);
|
|
83
|
+
transform: rotate(-7deg);
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.shell {
|
|
88
|
+
width: min(1180px, 100%);
|
|
89
|
+
margin: 0 auto;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.topbar {
|
|
93
|
+
min-height: 68px;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: space-between;
|
|
97
|
+
gap: 18px;
|
|
98
|
+
padding: 12px 14px 12px 18px;
|
|
99
|
+
border: 1px solid var(--line);
|
|
100
|
+
border-radius: 18px;
|
|
101
|
+
background: rgba(255, 255, 255, 0.78);
|
|
102
|
+
box-shadow: 0 18px 50px rgba(80, 60, 180, 0.10);
|
|
103
|
+
backdrop-filter: blur(18px);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.brand {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 12px;
|
|
110
|
+
min-width: 0;
|
|
111
|
+
font-weight: 850;
|
|
112
|
+
color: var(--ink);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.mark {
|
|
116
|
+
width: 36px;
|
|
117
|
+
height: 36px;
|
|
118
|
+
border-radius: 12px;
|
|
119
|
+
position: relative;
|
|
120
|
+
background:
|
|
121
|
+
linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(88, 101, 242, 0.92)),
|
|
122
|
+
#7c3aed;
|
|
123
|
+
box-shadow: 0 16px 36px rgba(124, 58, 237, 0.30);
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
flex: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.mark::before,
|
|
129
|
+
.mark::after {
|
|
130
|
+
content: "";
|
|
131
|
+
position: absolute;
|
|
132
|
+
border: 1.5px solid rgba(255, 255, 255, 0.76);
|
|
133
|
+
border-radius: 999px;
|
|
134
|
+
transform: rotate(-28deg);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.mark::before {
|
|
138
|
+
inset: 8px 6px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.mark::after {
|
|
142
|
+
inset: 15px -3px 9px 10px;
|
|
143
|
+
opacity: 0.72;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.nav {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
gap: 8px;
|
|
150
|
+
color: var(--muted);
|
|
151
|
+
font-size: 14px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.nav a {
|
|
155
|
+
color: inherit;
|
|
156
|
+
text-decoration: none;
|
|
157
|
+
padding: 10px 12px;
|
|
158
|
+
border-radius: 12px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.nav a[aria-current="page"] {
|
|
162
|
+
color: var(--accent);
|
|
163
|
+
background: rgba(124, 58, 237, 0.08);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.status-pill {
|
|
167
|
+
display: inline-flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: 8px;
|
|
170
|
+
min-height: 40px;
|
|
171
|
+
padding: 0 13px;
|
|
172
|
+
border: 1px solid rgba(34, 199, 216, 0.26);
|
|
173
|
+
border-radius: 999px;
|
|
174
|
+
color: #12616b;
|
|
175
|
+
background: rgba(234, 254, 255, 0.72);
|
|
176
|
+
font-size: 13px;
|
|
177
|
+
font-weight: 720;
|
|
178
|
+
white-space: nowrap;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.status-pill::before {
|
|
182
|
+
content: "";
|
|
183
|
+
width: 8px;
|
|
184
|
+
height: 8px;
|
|
185
|
+
border-radius: 50%;
|
|
186
|
+
background: var(--signal);
|
|
187
|
+
box-shadow: 0 0 0 5px rgba(34, 199, 216, 0.12);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.hero {
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
|
|
193
|
+
gap: clamp(28px, 5vw, 58px);
|
|
194
|
+
align-items: center;
|
|
195
|
+
padding: clamp(46px, 7vw, 86px) 0 54px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.eyebrow {
|
|
199
|
+
display: inline-flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 9px;
|
|
202
|
+
margin: 0 0 18px;
|
|
203
|
+
padding: 8px 12px;
|
|
204
|
+
border: 1px solid var(--line-violet);
|
|
205
|
+
border-radius: 999px;
|
|
206
|
+
color: var(--accent);
|
|
207
|
+
background: rgba(255, 255, 255, 0.72);
|
|
208
|
+
font-size: 13px;
|
|
209
|
+
font-weight: 780;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.eyebrow::before {
|
|
213
|
+
content: "";
|
|
214
|
+
width: 26px;
|
|
215
|
+
height: 2px;
|
|
216
|
+
border-radius: 99px;
|
|
217
|
+
background: linear-gradient(90deg, var(--accent), var(--signal));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
h1 {
|
|
221
|
+
max-width: 720px;
|
|
222
|
+
margin: 0;
|
|
223
|
+
color: var(--ink);
|
|
224
|
+
font-size: clamp(38px, 5.2vw, 72px);
|
|
225
|
+
line-height: 1.06;
|
|
226
|
+
letter-spacing: 0;
|
|
227
|
+
text-wrap: balance;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.lead {
|
|
231
|
+
max-width: 650px;
|
|
232
|
+
margin: 22px 0 0;
|
|
233
|
+
color: var(--muted);
|
|
234
|
+
font-size: 17px;
|
|
235
|
+
line-height: 1.64;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.actions {
|
|
239
|
+
display: flex;
|
|
240
|
+
flex-wrap: wrap;
|
|
241
|
+
gap: 12px;
|
|
242
|
+
margin-top: 30px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.button {
|
|
246
|
+
min-height: 46px;
|
|
247
|
+
display: inline-flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
justify-content: center;
|
|
250
|
+
gap: 9px;
|
|
251
|
+
padding: 0 18px;
|
|
252
|
+
border: 1px solid transparent;
|
|
253
|
+
border-radius: 14px;
|
|
254
|
+
font-weight: 780;
|
|
255
|
+
cursor: pointer;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.button.primary {
|
|
259
|
+
color: #ffffff;
|
|
260
|
+
background: linear-gradient(135deg, var(--accent), var(--accent-blue));
|
|
261
|
+
box-shadow: 0 18px 42px rgba(124, 58, 237, 0.28);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.button.secondary {
|
|
265
|
+
color: var(--ink-soft);
|
|
266
|
+
background: rgba(255, 255, 255, 0.76);
|
|
267
|
+
border-color: var(--line);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.proof {
|
|
271
|
+
display: grid;
|
|
272
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
273
|
+
gap: 12px;
|
|
274
|
+
margin-top: 34px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.proof-card {
|
|
278
|
+
min-height: 92px;
|
|
279
|
+
padding: 16px;
|
|
280
|
+
border: 1px solid var(--line);
|
|
281
|
+
border-radius: 16px;
|
|
282
|
+
background: rgba(255, 255, 255, 0.72);
|
|
283
|
+
box-shadow: 0 16px 36px rgba(80, 60, 180, 0.08);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.proof-card strong {
|
|
287
|
+
display: block;
|
|
288
|
+
color: var(--ink);
|
|
289
|
+
font-size: 22px;
|
|
290
|
+
line-height: 1;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.proof-card span {
|
|
294
|
+
display: block;
|
|
295
|
+
margin-top: 8px;
|
|
296
|
+
color: var(--muted);
|
|
297
|
+
font-size: 13px;
|
|
298
|
+
line-height: 1.42;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.workbench {
|
|
302
|
+
position: relative;
|
|
303
|
+
min-height: 600px;
|
|
304
|
+
padding: 18px;
|
|
305
|
+
border: 1px solid rgba(124, 58, 237, 0.20);
|
|
306
|
+
border-radius: 28px;
|
|
307
|
+
background:
|
|
308
|
+
linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 255, 0.80)),
|
|
309
|
+
var(--surface);
|
|
310
|
+
box-shadow:
|
|
311
|
+
0 30px 80px rgba(80, 60, 180, 0.18),
|
|
312
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.88);
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.workbench::before {
|
|
317
|
+
content: "";
|
|
318
|
+
position: absolute;
|
|
319
|
+
inset: 52px 54px 92px;
|
|
320
|
+
opacity: var(--track-opacity);
|
|
321
|
+
background:
|
|
322
|
+
linear-gradient(90deg, transparent 0 8%, rgba(124, 58, 237, 0.30) 8% 9%, transparent 9% 100%),
|
|
323
|
+
linear-gradient(180deg, transparent 0 22%, rgba(88, 101, 242, 0.22) 22% 23%, transparent 23% 100%),
|
|
324
|
+
radial-gradient(circle at 22% 28%, rgba(124, 58, 237, 0.26), transparent 8%),
|
|
325
|
+
radial-gradient(circle at 66% 40%, rgba(88, 101, 242, 0.22), transparent 9%),
|
|
326
|
+
radial-gradient(circle at 48% 76%, rgba(34, 199, 216, 0.20), transparent 10%);
|
|
327
|
+
mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
|
|
328
|
+
pointer-events: none;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.panel-head {
|
|
332
|
+
position: relative;
|
|
333
|
+
z-index: 1;
|
|
334
|
+
display: flex;
|
|
335
|
+
justify-content: space-between;
|
|
336
|
+
align-items: center;
|
|
337
|
+
gap: 14px;
|
|
338
|
+
padding: 14px;
|
|
339
|
+
border: 1px solid var(--line);
|
|
340
|
+
border-radius: 18px;
|
|
341
|
+
background: rgba(255, 255, 255, 0.72);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.panel-title {
|
|
345
|
+
margin: 0;
|
|
346
|
+
font-weight: 850;
|
|
347
|
+
color: var(--ink);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.panel-subtitle {
|
|
351
|
+
margin: 4px 0 0;
|
|
352
|
+
color: var(--muted);
|
|
353
|
+
font-size: 13px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.run-state {
|
|
357
|
+
padding: 8px 10px;
|
|
358
|
+
border-radius: 999px;
|
|
359
|
+
color: var(--accent);
|
|
360
|
+
background: rgba(124, 58, 237, 0.09);
|
|
361
|
+
font-size: 12px;
|
|
362
|
+
font-weight: 780;
|
|
363
|
+
white-space: nowrap;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.path-board {
|
|
367
|
+
position: relative;
|
|
368
|
+
z-index: 1;
|
|
369
|
+
display: grid;
|
|
370
|
+
gap: var(--density-gap);
|
|
371
|
+
margin-top: 18px;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.node-card {
|
|
375
|
+
display: grid;
|
|
376
|
+
grid-template-columns: 44px minmax(0, 1fr) auto;
|
|
377
|
+
gap: 14px;
|
|
378
|
+
align-items: center;
|
|
379
|
+
padding: 16px;
|
|
380
|
+
border: 1px solid var(--line);
|
|
381
|
+
border-radius: 18px;
|
|
382
|
+
background: rgba(255, 255, 255, 0.82);
|
|
383
|
+
box-shadow: 0 14px 36px rgba(80, 60, 180, 0.08);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.node-icon {
|
|
387
|
+
width: 44px;
|
|
388
|
+
height: 44px;
|
|
389
|
+
display: grid;
|
|
390
|
+
place-items: center;
|
|
391
|
+
border-radius: 14px;
|
|
392
|
+
color: var(--accent);
|
|
393
|
+
background:
|
|
394
|
+
linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(88, 101, 242, 0.08)),
|
|
395
|
+
#fff;
|
|
396
|
+
border: 1px solid rgba(124, 58, 237, 0.18);
|
|
397
|
+
font-weight: 850;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.node-card h2 {
|
|
401
|
+
margin: 0;
|
|
402
|
+
color: var(--ink);
|
|
403
|
+
font-size: 16px;
|
|
404
|
+
line-height: 1.35;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.node-card p {
|
|
408
|
+
margin: 5px 0 0;
|
|
409
|
+
color: var(--muted);
|
|
410
|
+
font-size: 13px;
|
|
411
|
+
line-height: 1.45;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.node-meta {
|
|
415
|
+
min-width: 96px;
|
|
416
|
+
color: var(--accent-blue);
|
|
417
|
+
font-size: 12px;
|
|
418
|
+
font-weight: 780;
|
|
419
|
+
text-align: right;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.insight {
|
|
423
|
+
position: relative;
|
|
424
|
+
z-index: 1;
|
|
425
|
+
margin-top: 18px;
|
|
426
|
+
padding: 18px;
|
|
427
|
+
border: 1px solid rgba(124, 58, 237, 0.18);
|
|
428
|
+
border-radius: 20px;
|
|
429
|
+
background:
|
|
430
|
+
linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(34, 199, 216, 0.06)),
|
|
431
|
+
rgba(255, 255, 255, 0.78);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.insight strong {
|
|
435
|
+
display: block;
|
|
436
|
+
color: var(--ink);
|
|
437
|
+
font-size: 15px;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.insight p {
|
|
441
|
+
margin: 8px 0 0;
|
|
442
|
+
color: var(--muted);
|
|
443
|
+
font-size: 13px;
|
|
444
|
+
line-height: 1.55;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.section {
|
|
448
|
+
padding: 22px 0 70px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.section-title {
|
|
452
|
+
max-width: 720px;
|
|
453
|
+
margin: 0;
|
|
454
|
+
font-size: clamp(28px, 3.2vw, 44px);
|
|
455
|
+
line-height: 1.12;
|
|
456
|
+
color: var(--ink);
|
|
457
|
+
letter-spacing: 0;
|
|
458
|
+
text-wrap: balance;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.section-copy {
|
|
462
|
+
max-width: 700px;
|
|
463
|
+
margin: 14px 0 0;
|
|
464
|
+
color: var(--muted);
|
|
465
|
+
font-size: 16px;
|
|
466
|
+
line-height: 1.6;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.feature-grid {
|
|
470
|
+
display: grid;
|
|
471
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
472
|
+
gap: 16px;
|
|
473
|
+
margin-top: 24px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.feature {
|
|
477
|
+
min-height: 210px;
|
|
478
|
+
padding: 20px;
|
|
479
|
+
border: 1px solid var(--line);
|
|
480
|
+
border-radius: 20px;
|
|
481
|
+
background: rgba(255, 255, 255, 0.78);
|
|
482
|
+
box-shadow: 0 16px 40px rgba(80, 60, 180, 0.08);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.feature-icon {
|
|
486
|
+
width: 38px;
|
|
487
|
+
height: 38px;
|
|
488
|
+
display: grid;
|
|
489
|
+
place-items: center;
|
|
490
|
+
margin-bottom: 18px;
|
|
491
|
+
border-radius: 13px;
|
|
492
|
+
color: #fff;
|
|
493
|
+
background: linear-gradient(135deg, var(--accent), var(--accent-blue));
|
|
494
|
+
font-weight: 850;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.feature h3 {
|
|
498
|
+
margin: 0;
|
|
499
|
+
color: var(--ink);
|
|
500
|
+
font-size: 18px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.feature p {
|
|
504
|
+
margin: 10px 0 0;
|
|
505
|
+
color: var(--muted);
|
|
506
|
+
font-size: 14px;
|
|
507
|
+
line-height: 1.58;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.tweaks-panel {
|
|
511
|
+
position: fixed;
|
|
512
|
+
right: 18px;
|
|
513
|
+
bottom: 18px;
|
|
514
|
+
z-index: 30;
|
|
515
|
+
width: min(328px, calc(100vw - 36px));
|
|
516
|
+
display: none;
|
|
517
|
+
gap: 12px;
|
|
518
|
+
padding: 16px;
|
|
519
|
+
border: 1px solid var(--line-violet);
|
|
520
|
+
border-radius: 18px;
|
|
521
|
+
background: rgba(255, 255, 255, 0.92);
|
|
522
|
+
box-shadow: 0 24px 70px rgba(80, 60, 180, 0.22);
|
|
523
|
+
backdrop-filter: blur(18px);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.tweaks-panel[data-open="true"] {
|
|
527
|
+
display: grid;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.tweaks-panel strong {
|
|
531
|
+
color: var(--ink);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.tweaks-panel label {
|
|
535
|
+
display: grid;
|
|
536
|
+
gap: 6px;
|
|
537
|
+
color: var(--muted);
|
|
538
|
+
font-size: 13px;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.tweaks-panel input[type="range"] {
|
|
542
|
+
width: 100%;
|
|
543
|
+
accent-color: var(--accent);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
@media (max-width: 900px) {
|
|
547
|
+
.page {
|
|
548
|
+
padding: 14px;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.topbar {
|
|
552
|
+
align-items: flex-start;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.nav {
|
|
556
|
+
display: none;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.hero {
|
|
560
|
+
grid-template-columns: 1fr;
|
|
561
|
+
padding-top: 42px;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.workbench {
|
|
565
|
+
min-height: auto;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.proof,
|
|
569
|
+
.feature-grid {
|
|
570
|
+
grid-template-columns: 1fr;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@media (max-width: 520px) {
|
|
575
|
+
.topbar {
|
|
576
|
+
border-radius: 16px;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.brand span {
|
|
580
|
+
max-width: 130px;
|
|
581
|
+
overflow: hidden;
|
|
582
|
+
text-overflow: ellipsis;
|
|
583
|
+
white-space: nowrap;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
h1 {
|
|
587
|
+
font-size: clamp(36px, 11vw, 48px);
|
|
588
|
+
line-height: 1.1;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.lead {
|
|
592
|
+
font-size: 16px;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.actions {
|
|
596
|
+
display: grid;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.button {
|
|
600
|
+
width: 100%;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.node-card {
|
|
604
|
+
grid-template-columns: 40px minmax(0, 1fr);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.node-meta {
|
|
608
|
+
grid-column: 2;
|
|
609
|
+
min-width: 0;
|
|
610
|
+
text-align: left;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
</style>
|
|
614
|
+
</head>
|
|
615
|
+
<body>
|
|
616
|
+
<main class="page" data-screen-label="01 紫曜经线首页">
|
|
617
|
+
<div class="shell">
|
|
618
|
+
<header class="topbar">
|
|
619
|
+
<div class="brand">
|
|
620
|
+
<span class="mark" aria-hidden="true"></span>
|
|
621
|
+
<span>智轨工作台</span>
|
|
622
|
+
</div>
|
|
623
|
+
<nav class="nav" aria-label="主导航">
|
|
624
|
+
<a href="#" aria-current="page">产品</a>
|
|
625
|
+
<a href="#">路径</a>
|
|
626
|
+
<a href="#">协作</a>
|
|
627
|
+
<a href="#">安全</a>
|
|
628
|
+
</nav>
|
|
629
|
+
<div class="status-pill">运行状态良好</div>
|
|
630
|
+
</header>
|
|
631
|
+
|
|
632
|
+
<section class="hero" aria-labelledby="hero-title">
|
|
633
|
+
<div>
|
|
634
|
+
<p class="eyebrow">紫曜经线 · 智能开发路径</p>
|
|
635
|
+
<h1 id="hero-title">把需求、代码和检查串成一条清晰交付路径</h1>
|
|
636
|
+
<p class="lead">智轨工作台帮助研发团队把模糊需求拆成任务节点,自动汇总上下文、生成检查建议,并在每次交付前给出可追踪的质量路径。</p>
|
|
637
|
+
<div class="actions">
|
|
638
|
+
<button class="button primary" type="button">创建交付路径</button>
|
|
639
|
+
<button class="button secondary" type="button">查看工作台示例</button>
|
|
640
|
+
</div>
|
|
641
|
+
<div class="proof" aria-label="关键指标">
|
|
642
|
+
<div class="proof-card">
|
|
643
|
+
<strong>42%</strong>
|
|
644
|
+
<span>需求到首个方案的平均时间缩短</span>
|
|
645
|
+
</div>
|
|
646
|
+
<div class="proof-card">
|
|
647
|
+
<strong>3.8x</strong>
|
|
648
|
+
<span>代码、文档和检查结果关联速度提升</span>
|
|
649
|
+
</div>
|
|
650
|
+
<div class="proof-card">
|
|
651
|
+
<strong>98%</strong>
|
|
652
|
+
<span>交付路径节点保持可追踪状态</span>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
|
|
657
|
+
<aside class="workbench" aria-label="智能路径工作台">
|
|
658
|
+
<div class="panel-head">
|
|
659
|
+
<div>
|
|
660
|
+
<p class="panel-title">本次交付路径</p>
|
|
661
|
+
<p class="panel-subtitle">从需求理解到验证结论的实时经线</p>
|
|
662
|
+
</div>
|
|
663
|
+
<div class="run-state">正在同步</div>
|
|
664
|
+
</div>
|
|
665
|
+
|
|
666
|
+
<div class="path-board">
|
|
667
|
+
<article class="node-card">
|
|
668
|
+
<div class="node-icon">01</div>
|
|
669
|
+
<div>
|
|
670
|
+
<h2>理解目标与边界</h2>
|
|
671
|
+
<p>整理需求、受众、约束和不可触碰的品牌边界。</p>
|
|
672
|
+
</div>
|
|
673
|
+
<div class="node-meta">已完成</div>
|
|
674
|
+
</article>
|
|
675
|
+
<article class="node-card">
|
|
676
|
+
<div class="node-icon">02</div>
|
|
677
|
+
<div>
|
|
678
|
+
<h2>生成任务经线</h2>
|
|
679
|
+
<p>把页面、组件、检查脚本和评审动作连成一条路径。</p>
|
|
680
|
+
</div>
|
|
681
|
+
<div class="node-meta">运行中</div>
|
|
682
|
+
</article>
|
|
683
|
+
<article class="node-card">
|
|
684
|
+
<div class="node-icon">03</div>
|
|
685
|
+
<div>
|
|
686
|
+
<h2>校验交付质量</h2>
|
|
687
|
+
<p>聚合静态检查、语言守卫、截图和人工评审。</p>
|
|
688
|
+
</div>
|
|
689
|
+
<div class="node-meta">待确认</div>
|
|
690
|
+
</article>
|
|
691
|
+
</div>
|
|
692
|
+
|
|
693
|
+
<div class="insight">
|
|
694
|
+
<strong>智能建议</strong>
|
|
695
|
+
<p>当前路径缺少移动端首屏检查,建议在交付前补充 390px 视口截图并确认标题断行。</p>
|
|
696
|
+
</div>
|
|
697
|
+
</aside>
|
|
698
|
+
</section>
|
|
699
|
+
|
|
700
|
+
<section class="section" aria-labelledby="feature-title">
|
|
701
|
+
<h2 class="section-title" id="feature-title">为复杂研发协作保留清晰的视觉秩序</h2>
|
|
702
|
+
<p class="section-copy">紫曜经线不是把页面染成紫色,而是用紫蓝路径、白色信息面和青蓝状态,把任务从输入、拆解、执行到验证的关系表达清楚。</p>
|
|
703
|
+
<div class="feature-grid">
|
|
704
|
+
<article class="feature">
|
|
705
|
+
<div class="feature-icon">径</div>
|
|
706
|
+
<h3>路径化任务</h3>
|
|
707
|
+
<p>每个需求都会生成输入、方案、实现、检查和结论节点,团队可以直接看到下一步。</p>
|
|
708
|
+
</article>
|
|
709
|
+
<article class="feature">
|
|
710
|
+
<div class="feature-icon">联</div>
|
|
711
|
+
<h3>上下文连接</h3>
|
|
712
|
+
<p>文件、讨论、设计约束和验证日志会被串到同一条经线里,减少遗漏。</p>
|
|
713
|
+
</article>
|
|
714
|
+
<article class="feature">
|
|
715
|
+
<div class="feature-icon">验</div>
|
|
716
|
+
<h3>交付前复核</h3>
|
|
717
|
+
<p>在提交前检查语言、结构、响应式和可见问题,让结果更稳定。</p>
|
|
718
|
+
</article>
|
|
719
|
+
</div>
|
|
720
|
+
</section>
|
|
721
|
+
</div>
|
|
722
|
+
</main>
|
|
723
|
+
|
|
724
|
+
<aside class="tweaks-panel" aria-label="调整">
|
|
725
|
+
<strong>调整</strong>
|
|
726
|
+
<label>
|
|
727
|
+
主紫色
|
|
728
|
+
<input data-tweak-accent type="color" value="#7c3aed">
|
|
729
|
+
</label>
|
|
730
|
+
<label>
|
|
731
|
+
光轨强度
|
|
732
|
+
<input data-tweak-track type="range" min="0.35" max="1" step="0.05" value="0.78">
|
|
733
|
+
</label>
|
|
734
|
+
<label>
|
|
735
|
+
界面密度
|
|
736
|
+
<input data-tweak-density type="range" min="12" max="24" step="1" value="18">
|
|
737
|
+
</label>
|
|
738
|
+
</aside>
|
|
739
|
+
|
|
740
|
+
<script>
|
|
741
|
+
const UI_DESIGN_TWEAKS = /*EDITMODE-BEGIN*/{
|
|
742
|
+
"accent": "#7c3aed",
|
|
743
|
+
"trackOpacity": 0.78,
|
|
744
|
+
"densityGap": 18
|
|
745
|
+
}/*EDITMODE-END*/;
|
|
746
|
+
|
|
747
|
+
function applyTweaks(nextTweaks) {
|
|
748
|
+
document.documentElement.style.setProperty('--accent', nextTweaks.accent || '#7c3aed');
|
|
749
|
+
document.documentElement.style.setProperty('--track-opacity', String(nextTweaks.trackOpacity ?? 0.78));
|
|
750
|
+
document.documentElement.style.setProperty('--density-gap', `${nextTweaks.densityGap ?? 18}px`);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
function persistTweakPatch(patch) {
|
|
754
|
+
Object.assign(UI_DESIGN_TWEAKS, patch);
|
|
755
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
756
|
+
window.parent.postMessage({ type: '__edit_mode_set_keys', edits: patch }, '*');
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
const tweaksPanel = document.querySelector('.tweaks-panel');
|
|
760
|
+
window.addEventListener('message', (event) => {
|
|
761
|
+
if (event.data?.type === '__activate_edit_mode') {
|
|
762
|
+
tweaksPanel?.setAttribute('data-open', 'true');
|
|
763
|
+
}
|
|
764
|
+
if (event.data?.type === '__deactivate_edit_mode') {
|
|
765
|
+
tweaksPanel?.setAttribute('data-open', 'false');
|
|
766
|
+
}
|
|
767
|
+
if (event.data?.type === '__edit_mode_set_keys') {
|
|
768
|
+
const patch = event.data.edits || event.data.keys || {};
|
|
769
|
+
Object.assign(UI_DESIGN_TWEAKS, patch);
|
|
770
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
|
|
774
|
+
window.parent.postMessage({ type: '__edit_mode_available' }, '*');
|
|
775
|
+
applyTweaks(UI_DESIGN_TWEAKS);
|
|
776
|
+
|
|
777
|
+
document.querySelector('[data-tweak-accent]')?.addEventListener('input', (event) => {
|
|
778
|
+
persistTweakPatch({ accent: event.target.value });
|
|
779
|
+
});
|
|
780
|
+
document.querySelector('[data-tweak-track]')?.addEventListener('input', (event) => {
|
|
781
|
+
persistTweakPatch({ trackOpacity: Number(event.target.value) });
|
|
782
|
+
});
|
|
783
|
+
document.querySelector('[data-tweak-density]')?.addEventListener('input', (event) => {
|
|
784
|
+
persistTweakPatch({ densityGap: Number(event.target.value) });
|
|
785
|
+
});
|
|
786
|
+
</script>
|
|
787
|
+
</body>
|
|
788
|
+
</html>
|