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,600 @@
|
|
|
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>Nebula Console 星云控制台产品样张</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--ink: #eef6ff;
|
|
10
|
+
--ink-soft: #d9e8f7;
|
|
11
|
+
--muted: #9fb3c8;
|
|
12
|
+
--paper: #050812;
|
|
13
|
+
--paper-blue: #08111f;
|
|
14
|
+
--surface: rgba(13, 27, 48, 0.74);
|
|
15
|
+
--surface-raised: rgba(24, 45, 76, 0.8);
|
|
16
|
+
--line: rgba(174, 219, 255, 0.18);
|
|
17
|
+
--line-strong: rgba(174, 219, 255, 0.34);
|
|
18
|
+
--accent: #3aa7ff;
|
|
19
|
+
--signal: #39d6d6;
|
|
20
|
+
--violet: #7b61ff;
|
|
21
|
+
--amber: #f2b84b;
|
|
22
|
+
--shadow: rgba(0, 8, 24, 0.5);
|
|
23
|
+
--glass-alpha: 0.74;
|
|
24
|
+
--grid-alpha: 0.16;
|
|
25
|
+
--glow-strength: 0.28;
|
|
26
|
+
--mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
|
|
27
|
+
font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Inter", sans-serif;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
* { box-sizing: border-box; }
|
|
31
|
+
|
|
32
|
+
body {
|
|
33
|
+
margin: 0;
|
|
34
|
+
min-height: 100vh;
|
|
35
|
+
color: var(--ink);
|
|
36
|
+
background:
|
|
37
|
+
radial-gradient(circle at 76% 12%, rgba(58,167,255,var(--glow-strength)), transparent 28%),
|
|
38
|
+
radial-gradient(circle at 18% 78%, rgba(57,214,214,0.14), transparent 30%),
|
|
39
|
+
linear-gradient(135deg, var(--paper) 0%, #07101f 48%, #0c1830 100%);
|
|
40
|
+
overflow-x: hidden;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body::before {
|
|
44
|
+
content: "";
|
|
45
|
+
position: fixed;
|
|
46
|
+
inset: 0;
|
|
47
|
+
z-index: -1;
|
|
48
|
+
background:
|
|
49
|
+
linear-gradient(rgba(174,219,255,var(--grid-alpha)) 1px, transparent 1px),
|
|
50
|
+
linear-gradient(90deg, rgba(174,219,255,calc(var(--grid-alpha) * 0.65)) 1px, transparent 1px);
|
|
51
|
+
background-size: 64px 64px;
|
|
52
|
+
mask-image: linear-gradient(180deg, rgba(0,0,0,0.78), transparent 92%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
button, input { font: inherit; }
|
|
56
|
+
|
|
57
|
+
.app {
|
|
58
|
+
display: grid;
|
|
59
|
+
grid-template-columns: 240px minmax(0, 1fr);
|
|
60
|
+
gap: 18px;
|
|
61
|
+
width: min(1360px, calc(100vw - 28px));
|
|
62
|
+
margin: 0 auto;
|
|
63
|
+
padding: 18px 0 42px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.glass {
|
|
67
|
+
border: 1px solid var(--line);
|
|
68
|
+
background:
|
|
69
|
+
linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)),
|
|
70
|
+
rgba(13, 27, 48, var(--glass-alpha));
|
|
71
|
+
box-shadow: 0 22px 72px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
|
|
72
|
+
backdrop-filter: blur(16px);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sidebar {
|
|
76
|
+
position: sticky;
|
|
77
|
+
top: 18px;
|
|
78
|
+
height: calc(100vh - 36px);
|
|
79
|
+
min-height: 680px;
|
|
80
|
+
padding: 16px;
|
|
81
|
+
border-radius: 20px;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.brand {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: 12px;
|
|
89
|
+
margin-bottom: 24px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.mark {
|
|
93
|
+
width: 38px;
|
|
94
|
+
height: 38px;
|
|
95
|
+
border-radius: 13px;
|
|
96
|
+
border: 1px solid var(--line-strong);
|
|
97
|
+
background:
|
|
98
|
+
radial-gradient(circle at 62% 34%, rgba(238,246,255,0.9), transparent 10%),
|
|
99
|
+
conic-gradient(from 220deg, var(--accent), var(--signal), rgba(123,97,255,0.42), var(--accent));
|
|
100
|
+
box-shadow: 0 0 26px rgba(58,167,255,0.28);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.brand strong { display: block; font-size: 15px; }
|
|
104
|
+
.brand span, .nav-item, .label, .mono {
|
|
105
|
+
color: var(--muted);
|
|
106
|
+
font-family: var(--mono);
|
|
107
|
+
font-size: 12px;
|
|
108
|
+
letter-spacing: 0.08em;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.nav-list {
|
|
112
|
+
display: grid;
|
|
113
|
+
gap: 8px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.nav-item {
|
|
117
|
+
display: flex;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
gap: 10px;
|
|
120
|
+
padding: 12px;
|
|
121
|
+
border: 1px solid transparent;
|
|
122
|
+
border-radius: 12px;
|
|
123
|
+
background: rgba(255,255,255,0.025);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.nav-item.active {
|
|
127
|
+
color: var(--ink);
|
|
128
|
+
border-color: rgba(58,167,255,0.35);
|
|
129
|
+
background: rgba(58,167,255,0.1);
|
|
130
|
+
box-shadow: inset 3px 0 0 var(--accent);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.side-status {
|
|
134
|
+
position: absolute;
|
|
135
|
+
left: 16px;
|
|
136
|
+
right: 16px;
|
|
137
|
+
bottom: 16px;
|
|
138
|
+
padding: 14px;
|
|
139
|
+
border: 1px solid var(--line);
|
|
140
|
+
border-radius: 14px;
|
|
141
|
+
background: rgba(255,255,255,0.035);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.side-status strong {
|
|
145
|
+
display: block;
|
|
146
|
+
margin-bottom: 8px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.scan {
|
|
150
|
+
height: 7px;
|
|
151
|
+
margin-top: 12px;
|
|
152
|
+
border-radius: 999px;
|
|
153
|
+
background: rgba(255,255,255,0.07);
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.scan span {
|
|
158
|
+
display: block;
|
|
159
|
+
width: 68%;
|
|
160
|
+
height: 100%;
|
|
161
|
+
border-radius: inherit;
|
|
162
|
+
background: linear-gradient(90deg, transparent, var(--accent), var(--signal));
|
|
163
|
+
box-shadow: 0 0 20px rgba(58,167,255,0.42);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.main {
|
|
167
|
+
min-width: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.topbar {
|
|
171
|
+
display: flex;
|
|
172
|
+
justify-content: space-between;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: 16px;
|
|
175
|
+
padding: 14px;
|
|
176
|
+
border-radius: 20px;
|
|
177
|
+
margin-bottom: 18px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.topbar h1 {
|
|
181
|
+
margin: 0;
|
|
182
|
+
font-size: clamp(28px, 3vw, 44px);
|
|
183
|
+
line-height: 1.1;
|
|
184
|
+
letter-spacing: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.filters {
|
|
188
|
+
display: flex;
|
|
189
|
+
flex-wrap: wrap;
|
|
190
|
+
justify-content: flex-end;
|
|
191
|
+
gap: 8px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.pill {
|
|
195
|
+
padding: 8px 10px;
|
|
196
|
+
border: 1px solid var(--line);
|
|
197
|
+
border-radius: 999px;
|
|
198
|
+
color: var(--muted);
|
|
199
|
+
background: rgba(255,255,255,0.035);
|
|
200
|
+
font-family: var(--mono);
|
|
201
|
+
font-size: 12px;
|
|
202
|
+
letter-spacing: 0.06em;
|
|
203
|
+
white-space: nowrap;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.pill.online {
|
|
207
|
+
color: var(--signal);
|
|
208
|
+
border-color: rgba(57,214,214,0.38);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.dashboard {
|
|
212
|
+
display: grid;
|
|
213
|
+
grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
|
|
214
|
+
gap: 18px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.panel {
|
|
218
|
+
position: relative;
|
|
219
|
+
overflow: hidden;
|
|
220
|
+
border-radius: 20px;
|
|
221
|
+
padding: 20px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
h2, h3, p { margin-top: 0; }
|
|
225
|
+
|
|
226
|
+
h2 {
|
|
227
|
+
margin-bottom: 8px;
|
|
228
|
+
font-size: 24px;
|
|
229
|
+
line-height: 1.18;
|
|
230
|
+
letter-spacing: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.panel > p {
|
|
234
|
+
color: var(--muted);
|
|
235
|
+
line-height: 1.58;
|
|
236
|
+
font-weight: 600;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.map {
|
|
240
|
+
height: 350px;
|
|
241
|
+
margin-top: 18px;
|
|
242
|
+
border: 1px solid rgba(174,219,255,0.18);
|
|
243
|
+
border-radius: 18px;
|
|
244
|
+
background:
|
|
245
|
+
radial-gradient(circle at 50% 50%, rgba(58,167,255,0.26), transparent 18%),
|
|
246
|
+
radial-gradient(circle at 50% 50%, rgba(57,214,214,0.12), transparent 42%),
|
|
247
|
+
linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
position: relative;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.map::before {
|
|
253
|
+
content: "";
|
|
254
|
+
position: absolute;
|
|
255
|
+
inset: 44px;
|
|
256
|
+
border: 1px solid rgba(174,219,255,0.2);
|
|
257
|
+
border-radius: 50%;
|
|
258
|
+
box-shadow:
|
|
259
|
+
0 0 0 56px rgba(174,219,255,0.035),
|
|
260
|
+
0 0 0 112px rgba(174,219,255,0.02);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.map::after {
|
|
264
|
+
content: "";
|
|
265
|
+
position: absolute;
|
|
266
|
+
left: -20%;
|
|
267
|
+
right: -20%;
|
|
268
|
+
top: 46%;
|
|
269
|
+
height: 2px;
|
|
270
|
+
background: linear-gradient(90deg, transparent, rgba(57,214,214,0.75), transparent);
|
|
271
|
+
box-shadow: 0 0 18px rgba(57,214,214,0.52);
|
|
272
|
+
transform: rotate(-14deg);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.map-node {
|
|
276
|
+
position: absolute;
|
|
277
|
+
width: 12px;
|
|
278
|
+
height: 12px;
|
|
279
|
+
border-radius: 50%;
|
|
280
|
+
background: var(--signal);
|
|
281
|
+
box-shadow: 0 0 18px rgba(57,214,214,0.72);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.map-node:nth-child(1) { left: 22%; top: 30%; }
|
|
285
|
+
.map-node:nth-child(2) { right: 24%; top: 22%; background: var(--accent); }
|
|
286
|
+
.map-node:nth-child(3) { left: 57%; bottom: 20%; }
|
|
287
|
+
.map-node:nth-child(4) { left: 34%; bottom: 24%; background: var(--amber); }
|
|
288
|
+
|
|
289
|
+
.stats {
|
|
290
|
+
display: grid;
|
|
291
|
+
grid-template-columns: repeat(4, 1fr);
|
|
292
|
+
gap: 12px;
|
|
293
|
+
margin-top: 18px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.stat {
|
|
297
|
+
padding: 15px;
|
|
298
|
+
border: 1px solid var(--line);
|
|
299
|
+
border-radius: 14px;
|
|
300
|
+
background: rgba(255,255,255,0.035);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.stat strong {
|
|
304
|
+
display: block;
|
|
305
|
+
margin-bottom: 6px;
|
|
306
|
+
font-size: 24px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.queue {
|
|
310
|
+
display: grid;
|
|
311
|
+
gap: 10px;
|
|
312
|
+
margin-top: 18px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.task {
|
|
316
|
+
display: grid;
|
|
317
|
+
grid-template-columns: 1fr auto;
|
|
318
|
+
gap: 12px;
|
|
319
|
+
padding: 14px;
|
|
320
|
+
border: 1px solid var(--line);
|
|
321
|
+
border-radius: 14px;
|
|
322
|
+
background: rgba(255,255,255,0.035);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.task strong {
|
|
326
|
+
display: block;
|
|
327
|
+
margin-bottom: 6px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.task small {
|
|
331
|
+
color: var(--muted);
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.badge {
|
|
336
|
+
align-self: start;
|
|
337
|
+
padding: 6px 9px;
|
|
338
|
+
border: 1px solid rgba(57,214,214,0.34);
|
|
339
|
+
border-radius: 999px;
|
|
340
|
+
color: var(--signal);
|
|
341
|
+
background: rgba(57,214,214,0.08);
|
|
342
|
+
font-family: var(--mono);
|
|
343
|
+
font-size: 11px;
|
|
344
|
+
letter-spacing: 0.08em;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.badge.warn {
|
|
348
|
+
color: var(--amber);
|
|
349
|
+
border-color: rgba(242,184,75,0.34);
|
|
350
|
+
background: rgba(242,184,75,0.08);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.lower {
|
|
354
|
+
display: grid;
|
|
355
|
+
grid-template-columns: repeat(3, 1fr);
|
|
356
|
+
gap: 18px;
|
|
357
|
+
margin-top: 18px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.mini {
|
|
361
|
+
min-height: 220px;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.bars {
|
|
365
|
+
display: grid;
|
|
366
|
+
gap: 12px;
|
|
367
|
+
margin-top: 18px;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.bar {
|
|
371
|
+
display: grid;
|
|
372
|
+
grid-template-columns: 74px 1fr 46px;
|
|
373
|
+
gap: 10px;
|
|
374
|
+
align-items: center;
|
|
375
|
+
color: var(--muted);
|
|
376
|
+
font-size: 13px;
|
|
377
|
+
font-weight: 700;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.track {
|
|
381
|
+
height: 7px;
|
|
382
|
+
border-radius: 999px;
|
|
383
|
+
background: rgba(255,255,255,0.07);
|
|
384
|
+
overflow: hidden;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.track span {
|
|
388
|
+
display: block;
|
|
389
|
+
height: 100%;
|
|
390
|
+
border-radius: inherit;
|
|
391
|
+
background: linear-gradient(90deg, var(--accent), var(--signal));
|
|
392
|
+
box-shadow: 0 0 18px rgba(58,167,255,0.34);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.notice {
|
|
396
|
+
border-color: rgba(242,184,75,0.28);
|
|
397
|
+
background:
|
|
398
|
+
linear-gradient(145deg, rgba(242,184,75,0.08), rgba(255,255,255,0.018)),
|
|
399
|
+
rgba(13, 27, 48, var(--glass-alpha));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.tweaks-panel {
|
|
403
|
+
position: fixed;
|
|
404
|
+
right: 18px;
|
|
405
|
+
bottom: 18px;
|
|
406
|
+
z-index: 20;
|
|
407
|
+
display: none;
|
|
408
|
+
gap: 10px;
|
|
409
|
+
width: 250px;
|
|
410
|
+
padding: 14px;
|
|
411
|
+
border: 1px solid var(--line-strong);
|
|
412
|
+
border-radius: 16px;
|
|
413
|
+
color: var(--ink);
|
|
414
|
+
background: rgba(5, 8, 18, 0.9);
|
|
415
|
+
box-shadow: 0 18px 60px rgba(0,0,0,0.42);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.tweaks-panel label {
|
|
419
|
+
display: grid;
|
|
420
|
+
gap: 6px;
|
|
421
|
+
color: var(--muted);
|
|
422
|
+
font-size: 13px;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
@media (max-width: 980px) {
|
|
426
|
+
.app { grid-template-columns: 1fr; width: min(100vw - 24px, 760px); padding-top: 12px; }
|
|
427
|
+
.sidebar { position: relative; top: auto; height: auto; min-height: auto; }
|
|
428
|
+
.side-status { position: relative; left: auto; right: auto; bottom: auto; margin-top: 18px; }
|
|
429
|
+
.dashboard, .lower { grid-template-columns: 1fr; }
|
|
430
|
+
.stats { grid-template-columns: repeat(2, 1fr); }
|
|
431
|
+
.topbar { align-items: flex-start; flex-direction: column; }
|
|
432
|
+
.filters { justify-content: flex-start; }
|
|
433
|
+
.map { height: 280px; }
|
|
434
|
+
body::before { background-size: 52px 52px; opacity: 0.62; }
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
@media (max-width: 520px) {
|
|
438
|
+
.stats { grid-template-columns: 1fr; }
|
|
439
|
+
.task { grid-template-columns: 1fr; }
|
|
440
|
+
.bar { grid-template-columns: 58px 1fr 40px; }
|
|
441
|
+
.panel { padding: 18px; }
|
|
442
|
+
}
|
|
443
|
+
</style>
|
|
444
|
+
</head>
|
|
445
|
+
<body>
|
|
446
|
+
<main class="app" data-screen-label="02 星云控制台产品界面">
|
|
447
|
+
<aside class="sidebar glass" aria-label="侧边导航">
|
|
448
|
+
<div class="brand">
|
|
449
|
+
<div class="mark" aria-hidden="true"></div>
|
|
450
|
+
<div>
|
|
451
|
+
<strong>澜核智能</strong>
|
|
452
|
+
<span>AI 控制台</span>
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
<nav class="nav-list">
|
|
456
|
+
<div class="nav-item active"><span>任务轨道</span><span>01</span></div>
|
|
457
|
+
<div class="nav-item"><span>模型部署</span><span>02</span></div>
|
|
458
|
+
<div class="nav-item"><span>数据入口</span><span>03</span></div>
|
|
459
|
+
<div class="nav-item"><span>安全策略</span><span>04</span></div>
|
|
460
|
+
<div class="nav-item"><span>审计记录</span><span>05</span></div>
|
|
461
|
+
</nav>
|
|
462
|
+
<div class="side-status">
|
|
463
|
+
<strong>系统健康</strong>
|
|
464
|
+
<span class="label">在线节点 128 / 异常 2</span>
|
|
465
|
+
<div class="scan"><span></span></div>
|
|
466
|
+
</div>
|
|
467
|
+
</aside>
|
|
468
|
+
|
|
469
|
+
<section class="main">
|
|
470
|
+
<header class="topbar glass">
|
|
471
|
+
<div>
|
|
472
|
+
<span class="label">实时推理网络</span>
|
|
473
|
+
<h1>模型任务轨道</h1>
|
|
474
|
+
</div>
|
|
475
|
+
<div class="filters">
|
|
476
|
+
<span class="pill online">在线</span>
|
|
477
|
+
<span class="pill">华东一区</span>
|
|
478
|
+
<span class="pill">最近 15 分钟</span>
|
|
479
|
+
<span class="pill">自动扩容</span>
|
|
480
|
+
</div>
|
|
481
|
+
</header>
|
|
482
|
+
|
|
483
|
+
<div class="dashboard">
|
|
484
|
+
<section class="panel glass">
|
|
485
|
+
<h2>节点拓扑</h2>
|
|
486
|
+
<p>控制台样张验证半透明深玻璃能否承载真实产品信息:背景有空间感,但主数据仍有稳定阅读面。</p>
|
|
487
|
+
<div class="map" aria-label="节点拓扑图">
|
|
488
|
+
<span class="map-node"></span>
|
|
489
|
+
<span class="map-node"></span>
|
|
490
|
+
<span class="map-node"></span>
|
|
491
|
+
<span class="map-node"></span>
|
|
492
|
+
</div>
|
|
493
|
+
<div class="stats">
|
|
494
|
+
<div class="stat"><strong>128</strong><span class="label">推理节点</span></div>
|
|
495
|
+
<div class="stat"><strong>42ms</strong><span class="label">链路延迟</span></div>
|
|
496
|
+
<div class="stat"><strong>7.8K</strong><span class="label">分钟任务</span></div>
|
|
497
|
+
<div class="stat"><strong>2</strong><span class="label">待处理风险</span></div>
|
|
498
|
+
</div>
|
|
499
|
+
</section>
|
|
500
|
+
|
|
501
|
+
<section class="panel glass">
|
|
502
|
+
<h2>任务队列</h2>
|
|
503
|
+
<p>状态标签、扫描条和蓝青信号只用于帮助判断,不把界面推向电影道具。</p>
|
|
504
|
+
<div class="queue">
|
|
505
|
+
<article class="task">
|
|
506
|
+
<div><strong>知识库重排模型</strong><small>正在扩容 4 个节点,预计 48 秒完成。</small></div>
|
|
507
|
+
<span class="badge">同步中</span>
|
|
508
|
+
</article>
|
|
509
|
+
<article class="task">
|
|
510
|
+
<div><strong>客服摘要链路</strong><small>延迟稳定,已完成新策略灰度。</small></div>
|
|
511
|
+
<span class="badge">健康</span>
|
|
512
|
+
</article>
|
|
513
|
+
<article class="task">
|
|
514
|
+
<div><strong>合同解析队列</strong><small>发现输入峰值,建议开启临时缓存。</small></div>
|
|
515
|
+
<span class="badge warn">提醒</span>
|
|
516
|
+
</article>
|
|
517
|
+
<article class="task">
|
|
518
|
+
<div><strong>图像标签服务</strong><small>冷启动完成,等待人工确认发布。</small></div>
|
|
519
|
+
<span class="badge">待发布</span>
|
|
520
|
+
</article>
|
|
521
|
+
</div>
|
|
522
|
+
</section>
|
|
523
|
+
</div>
|
|
524
|
+
|
|
525
|
+
<div class="lower">
|
|
526
|
+
<section class="panel glass mini">
|
|
527
|
+
<h3>资源利用</h3>
|
|
528
|
+
<div class="bars">
|
|
529
|
+
<div class="bar"><span>算力</span><div class="track"><span style="width: 74%"></span></div><strong>74%</strong></div>
|
|
530
|
+
<div class="bar"><span>缓存</span><div class="track"><span style="width: 58%"></span></div><strong>58%</strong></div>
|
|
531
|
+
<div class="bar"><span>带宽</span><div class="track"><span style="width: 66%"></span></div><strong>66%</strong></div>
|
|
532
|
+
</div>
|
|
533
|
+
</section>
|
|
534
|
+
|
|
535
|
+
<section class="panel glass mini notice">
|
|
536
|
+
<h3>风险提示</h3>
|
|
537
|
+
<p>一个外部数据源出现波动,建议在下一次任务合并前启用缓冲策略,避免摘要结果延迟。</p>
|
|
538
|
+
<span class="pill">建议处理</span>
|
|
539
|
+
</section>
|
|
540
|
+
|
|
541
|
+
<section class="panel glass mini">
|
|
542
|
+
<h3>视觉边界</h3>
|
|
543
|
+
<p>本界面使用网格、轨道和扫描光带建立科技感,但主要阅读区不直接叠在复杂背景上。</p>
|
|
544
|
+
<span class="pill online">可读优先</span>
|
|
545
|
+
</section>
|
|
546
|
+
</div>
|
|
547
|
+
</section>
|
|
548
|
+
</main>
|
|
549
|
+
|
|
550
|
+
<aside class="tweaks-panel" aria-label="调整">
|
|
551
|
+
<strong>调整</strong>
|
|
552
|
+
<label>主蓝色 <input data-tweak-accent type="color" value="#3aa7ff"></label>
|
|
553
|
+
<label>透明层级 <input data-tweak-glass type="range" min="60" max="88" value="74"></label>
|
|
554
|
+
<label>发光强度 <input data-tweak-glow type="range" min="12" max="42" value="28"></label>
|
|
555
|
+
</aside>
|
|
556
|
+
|
|
557
|
+
<script>
|
|
558
|
+
const initialTweaks = /*EDITMODE-BEGIN*/{
|
|
559
|
+
"accentColor": "#3aa7ff",
|
|
560
|
+
"glassAlpha": 74,
|
|
561
|
+
"glowStrength": 28
|
|
562
|
+
}/*EDITMODE-END*/;
|
|
563
|
+
window.UI_DESIGN_TWEAKS = initialTweaks;
|
|
564
|
+
|
|
565
|
+
const root = document.documentElement;
|
|
566
|
+
const panel = document.querySelector('.tweaks-panel');
|
|
567
|
+
|
|
568
|
+
function applyTweaks(values) {
|
|
569
|
+
if (values.accentColor) root.style.setProperty('--accent', values.accentColor);
|
|
570
|
+
if (values.glassAlpha) root.style.setProperty('--glass-alpha', String(Number(values.glassAlpha) / 100));
|
|
571
|
+
if (values.glowStrength) root.style.setProperty('--glow-strength', String(Number(values.glowStrength) / 100));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
window.addEventListener('message', (event) => {
|
|
575
|
+
const data = event.data || {};
|
|
576
|
+
if (data.type === '__activate_edit_mode') panel.style.display = 'grid';
|
|
577
|
+
if (data.type === '__deactivate_edit_mode') panel.style.display = 'none';
|
|
578
|
+
if (data.type === '__edit_mode_set_keys' && data.keys) applyTweaks(data.keys);
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
document.querySelector('[data-tweak-accent]').addEventListener('input', (event) => {
|
|
582
|
+
const keys = { accentColor: event.target.value };
|
|
583
|
+
applyTweaks(keys);
|
|
584
|
+
window.parent.postMessage({ type: '__edit_mode_set_keys', keys }, '*');
|
|
585
|
+
});
|
|
586
|
+
document.querySelector('[data-tweak-glass]').addEventListener('input', (event) => {
|
|
587
|
+
const keys = { glassAlpha: Number(event.target.value) };
|
|
588
|
+
applyTweaks(keys);
|
|
589
|
+
window.parent.postMessage({ type: '__edit_mode_set_keys', keys }, '*');
|
|
590
|
+
});
|
|
591
|
+
document.querySelector('[data-tweak-glow]').addEventListener('input', (event) => {
|
|
592
|
+
const keys = { glowStrength: Number(event.target.value) };
|
|
593
|
+
applyTweaks(keys);
|
|
594
|
+
window.parent.postMessage({ type: '__edit_mode_set_keys', keys }, '*');
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
window.parent.postMessage({ type: '__edit_mode_available' }, '*');
|
|
598
|
+
</script>
|
|
599
|
+
</body>
|
|
600
|
+
</html>
|