dsh-aris-panel 0.1.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/LICENSE +21 -0
- package/README.md +98 -0
- package/README_CN.md +87 -0
- package/dsh/checkout.patch.yml +38 -0
- package/dsh/client.js +634 -0
- package/dsh/cordis.patch.yml +44 -0
- package/dsh/index.mjs +76 -0
- package/dsh/run-status.mjs +182 -0
- package/dsh/scope-limits.mjs +50 -0
- package/dsh/workbench.mjs +291 -0
- package/mcp-servers/claude-review/README.md +93 -0
- package/mcp-servers/claude-review/run_with_claude_aws.sh +49 -0
- package/mcp-servers/claude-review/server.py +718 -0
- package/mcp-servers/codex-image2/README.md +65 -0
- package/mcp-servers/codex-image2/server.py +893 -0
- package/mcp-servers/feishu-bridge/requirements.txt +1 -0
- package/mcp-servers/feishu-bridge/server.py +240 -0
- package/mcp-servers/gemini-review/README.md +171 -0
- package/mcp-servers/gemini-review/server.py +1856 -0
- package/mcp-servers/llm-chat/requirements.txt +1 -0
- package/mcp-servers/llm-chat/server.py +664 -0
- package/mcp-servers/manual-review/README.md +133 -0
- package/mcp-servers/manual-review/server.py +910 -0
- package/mcp-servers/manual-review/ui.html +279 -0
- package/mcp-servers/minimax-chat/requirements.txt +1 -0
- package/mcp-servers/minimax-chat/server.py +381 -0
- package/package.json +51 -0
- package/skills/ablation-planner/SKILL.md +123 -0
- package/skills/alphaxiv/SKILL.md +196 -0
- package/skills/analyze-results/SKILL.md +46 -0
- package/skills/arxiv/SKILL.md +248 -0
- package/skills/auto-paper-improvement-loop/SKILL.md +651 -0
- package/skills/auto-review-loop/SKILL.md +1137 -0
- package/skills/auto-review-loop-llm/SKILL.md +259 -0
- package/skills/auto-review-loop-minimax/SKILL.md +302 -0
- package/skills/citation-audit/SKILL.md +502 -0
- package/skills/claims-drafting/SKILL.md +227 -0
- package/skills/comm-lit-review/SKILL.md +297 -0
- package/skills/deepxiv/SKILL.md +263 -0
- package/skills/dse-loop/SKILL.md +296 -0
- package/skills/embodiment-description/SKILL.md +129 -0
- package/skills/exa-search/SKILL.md +205 -0
- package/skills/experiment-audit/SKILL.md +311 -0
- package/skills/experiment-bridge/SKILL.md +376 -0
- package/skills/experiment-plan/SKILL.md +249 -0
- package/skills/experiment-queue/SKILL.md +431 -0
- package/skills/experiment-queue/scripts/build_manifest.py +142 -0
- package/skills/experiment-queue/scripts/queue_manager.py +433 -0
- package/skills/feishu-notify/SKILL.md +156 -0
- package/skills/figure-description/SKILL.md +138 -0
- package/skills/figure-spec/SKILL.md +262 -0
- package/skills/figure-spec/scripts/figure_renderer.py +799 -0
- package/skills/formula-derivation/SKILL.md +280 -0
- package/skills/gemini-search/SKILL.md +231 -0
- package/skills/grant-proposal/SKILL.md +698 -0
- package/skills/idea-creator/SKILL.md +542 -0
- package/skills/idea-discovery/SKILL.md +521 -0
- package/skills/idea-discovery-robot/SKILL.md +363 -0
- package/skills/integrity-forensics/SKILL.md +284 -0
- package/skills/interview-cheatsheet/SKILL.md +245 -0
- package/skills/invention-structuring/SKILL.md +188 -0
- package/skills/jurisdiction-format/SKILL.md +192 -0
- package/skills/kill-argument/SKILL.md +437 -0
- package/skills/mermaid-diagram/SKILL.md +419 -0
- package/skills/meta-apply/SKILL.md +141 -0
- package/skills/meta-optimize/SKILL.md +437 -0
- package/skills/monitor-experiment/SKILL.md +140 -0
- package/skills/novelty-check/SKILL.md +101 -0
- package/skills/openalex/SKILL.md +237 -0
- package/skills/overleaf-sync/SKILL.md +220 -0
- package/skills/paper-claim-audit/SKILL.md +348 -0
- package/skills/paper-compile/SKILL.md +266 -0
- package/skills/paper-figure/SKILL.md +312 -0
- package/skills/paper-illustration/SKILL.md +736 -0
- package/skills/paper-illustration-image2/SKILL.md +391 -0
- package/skills/paper-illustration-image2/scripts/paper_illustration_image2.py +255 -0
- package/skills/paper-plan/SKILL.md +386 -0
- package/skills/paper-poster/SKILL.md +19 -0
- package/skills/paper-poster-html/DESIGN_FINAL.md +176 -0
- package/skills/paper-poster-html/IMPLEMENTATION_CONVENTIONS.md +161 -0
- package/skills/paper-poster-html/LICENSES/posterly-MIT.txt +21 -0
- package/skills/paper-poster-html/NOTICE.md +57 -0
- package/skills/paper-poster-html/SKILL.md +323 -0
- package/skills/paper-poster-html/scripts/_posterly/__init__.py +0 -0
- package/skills/paper-poster-html/scripts/_posterly/canvas.py +200 -0
- package/skills/paper-poster-html/scripts/_posterly/measure.py +588 -0
- package/skills/paper-poster-html/scripts/_posterly/polish.py +498 -0
- package/skills/paper-poster-html/scripts/_posterly/preflight.py +489 -0
- package/skills/paper-poster-html/scripts/_posterly/render.py +215 -0
- package/skills/paper-poster-html/scripts/_posterly/textutil.py +16 -0
- package/skills/paper-poster-html/scripts/_posterly/verify_final.py +171 -0
- package/skills/paper-poster-html/scripts/asset_check.py +897 -0
- package/skills/paper-poster-html/scripts/extract_pdf_figures.py +666 -0
- package/skills/paper-poster-html/scripts/poster_check.py +251 -0
- package/skills/paper-poster-html/scripts/preprocess_figures.py +238 -0
- package/skills/paper-poster-html/scripts/render_preview.py +217 -0
- package/skills/paper-poster-html/scripts/run_gates.py +556 -0
- package/skills/paper-poster-html/scripts/style_check.py +1324 -0
- package/skills/paper-poster-html/templates/COMPONENTS.md +462 -0
- package/skills/paper-poster-html/templates/README.md +170 -0
- package/skills/paper-poster-html/templates/landscape_4col.html +1032 -0
- package/skills/paper-poster-html/templates/landscape_hero.html +1046 -0
- package/skills/paper-poster-html/templates/portrait_2col.html +947 -0
- package/skills/paper-poster-html/templates/tokens/acl.json +9 -0
- package/skills/paper-poster-html/templates/tokens/cvpr.json +9 -0
- package/skills/paper-poster-html/templates/tokens/generic.json +9 -0
- package/skills/paper-poster-html/templates/tokens/iclr.json +9 -0
- package/skills/paper-poster-html/templates/tokens/icml.json +9 -0
- package/skills/paper-poster-html/templates/tokens/neurips.json +9 -0
- package/skills/paper-slides/SKILL.md +635 -0
- package/skills/paper-talk/SKILL.md +381 -0
- package/skills/paper-write/SKILL.md +604 -0
- package/skills/paper-write/templates/IEEEtran.bst +2409 -0
- package/skills/paper-write/templates/IEEEtran.cls +6347 -0
- package/skills/paper-write/templates/iclr2026.tex +84 -0
- package/skills/paper-write/templates/icml2025.tex +87 -0
- package/skills/paper-write/templates/ieee_conference.tex +89 -0
- package/skills/paper-write/templates/ieee_journal.tex +93 -0
- package/skills/paper-write/templates/math_commands.tex +48 -0
- package/skills/paper-write/templates/neurips2025.tex +80 -0
- package/skills/paper-writing/SKILL.md +916 -0
- package/skills/patent-novelty-check/SKILL.md +153 -0
- package/skills/patent-pipeline/SKILL.md +344 -0
- package/skills/patent-review/SKILL.md +203 -0
- package/skills/pixel-art/SKILL.md +137 -0
- package/skills/prior-art-search/SKILL.md +146 -0
- package/skills/proof-checker/SKILL.md +866 -0
- package/skills/proof-orchestrator/NOTICE.md +24 -0
- package/skills/proof-orchestrator/SKILL.md +254 -0
- package/skills/proof-orchestrator/references/audit-output-contract.md +126 -0
- package/skills/proof-orchestrator/references/deepseek-routing.md +74 -0
- package/skills/proof-orchestrator/references/dispatch-prompts.md +227 -0
- package/skills/proof-orchestrator/references/notation-audit.md +135 -0
- package/skills/proof-orchestrator/references/proof-audit-rubric.md +70 -0
- package/skills/proof-orchestrator/references/stress-tests.md +38 -0
- package/skills/proof-writer/SKILL.md +223 -0
- package/skills/qzcli/SKILL.md +324 -0
- package/skills/rebuttal/SKILL.md +376 -0
- package/skills/render-html/SKILL.md +316 -0
- package/skills/render-html/scripts/render_html.py +1006 -0
- package/skills/render-html/scripts/templates/academic.html +703 -0
- package/skills/render-html/scripts/templates/dashboard.html +333 -0
- package/skills/research-lit/SKILL.md +756 -0
- package/skills/research-pipeline/SKILL.md +384 -0
- package/skills/research-refine/SKILL.md +770 -0
- package/skills/research-refine-pipeline/SKILL.md +186 -0
- package/skills/research-review/SKILL.md +198 -0
- package/skills/research-wiki/SKILL.md +461 -0
- package/skills/resubmit-pipeline/SKILL.md +447 -0
- package/skills/result-to-claim/SKILL.md +311 -0
- package/skills/run-experiment/SKILL.md +313 -0
- package/skills/semantic-scholar/SKILL.md +236 -0
- package/skills/serverless-modal/SKILL.md +335 -0
- package/skills/shared-references/acceptance-gate.md +324 -0
- package/skills/shared-references/assurance-contract.md +248 -0
- package/skills/shared-references/capture-antipatterns.md +78 -0
- package/skills/shared-references/citation-discipline.md +583 -0
- package/skills/shared-references/compute-env-contract.md +163 -0
- package/skills/shared-references/effort-contract.md +183 -0
- package/skills/shared-references/evidence-precheck.md +65 -0
- package/skills/shared-references/experiment-integrity.md +49 -0
- package/skills/shared-references/external-cadence.md +326 -0
- package/skills/shared-references/fan-out-pattern.md +366 -0
- package/skills/shared-references/injection-hygiene.md +127 -0
- package/skills/shared-references/integration-contract.md +461 -0
- package/skills/shared-references/output-composition.md +93 -0
- package/skills/shared-references/output-language.md +45 -0
- package/skills/shared-references/output-manifest.md +49 -0
- package/skills/shared-references/output-versioning.md +111 -0
- package/skills/shared-references/patent-format-cn.md +199 -0
- package/skills/shared-references/patent-format-ep.md +173 -0
- package/skills/shared-references/patent-format-us.md +161 -0
- package/skills/shared-references/patent-writing-principles.md +197 -0
- package/skills/shared-references/prior-art-databases.md +141 -0
- package/skills/shared-references/resumable-runs.md +109 -0
- package/skills/shared-references/review-scope-limits.md +81 -0
- package/skills/shared-references/review-tracing.md +391 -0
- package/skills/shared-references/reviewer-independence.md +79 -0
- package/skills/shared-references/reviewer-routing.md +852 -0
- package/skills/shared-references/skill-governance.md +104 -0
- package/skills/shared-references/taste-calibration.md +85 -0
- package/skills/shared-references/venue-checklists.md +114 -0
- package/skills/shared-references/wiki-helper-resolution.md +134 -0
- package/skills/shared-references/writing-principles.md +525 -0
- package/skills/skills-codex/README.md +102 -0
- package/skills/skills-codex/README_CN.md +100 -0
- package/skills/skills-codex/ablation-planner/SKILL.md +126 -0
- package/skills/skills-codex/alphaxiv/SKILL.md +186 -0
- package/skills/skills-codex/analyze-results/SKILL.md +45 -0
- package/skills/skills-codex/arxiv/SKILL.md +210 -0
- package/skills/skills-codex/auto-paper-improvement-loop/SKILL.md +574 -0
- package/skills/skills-codex/auto-review-loop/SKILL.md +500 -0
- package/skills/skills-codex/auto-review-loop-llm/SKILL.md +247 -0
- package/skills/skills-codex/auto-review-loop-minimax/SKILL.md +290 -0
- package/skills/skills-codex/citation-audit/SKILL.md +504 -0
- package/skills/skills-codex/claims-drafting/SKILL.md +239 -0
- package/skills/skills-codex/comm-lit-review/SKILL.md +299 -0
- package/skills/skills-codex/comm-lit-review/references/domain-taxonomy.md +57 -0
- package/skills/skills-codex/comm-lit-review/references/output-template.md +37 -0
- package/skills/skills-codex/comm-lit-review/references/source-policy.md +99 -0
- package/skills/skills-codex/comm-lit-review/references/venue-tiering.md +112 -0
- package/skills/skills-codex/deepxiv/SKILL.md +142 -0
- package/skills/skills-codex/dse-loop/SKILL.md +285 -0
- package/skills/skills-codex/embodiment-description/SKILL.md +129 -0
- package/skills/skills-codex/exa-search/SKILL.md +192 -0
- package/skills/skills-codex/experiment-audit/SKILL.md +286 -0
- package/skills/skills-codex/experiment-bridge/SKILL.md +356 -0
- package/skills/skills-codex/experiment-plan/SKILL.md +249 -0
- package/skills/skills-codex/experiment-queue/SKILL.md +401 -0
- package/skills/skills-codex/feishu-notify/SKILL.md +155 -0
- package/skills/skills-codex/figure-description/SKILL.md +138 -0
- package/skills/skills-codex/figure-spec/SKILL.md +252 -0
- package/skills/skills-codex/formula-derivation/SKILL.md +280 -0
- package/skills/skills-codex/gemini-search/SKILL.md +205 -0
- package/skills/skills-codex/grant-proposal/SKILL.md +626 -0
- package/skills/skills-codex/idea-creator/SKILL.md +405 -0
- package/skills/skills-codex/idea-discovery/SKILL.md +475 -0
- package/skills/skills-codex/idea-discovery-robot/SKILL.md +362 -0
- package/skills/skills-codex/integrity-forensics/SKILL.md +106 -0
- package/skills/skills-codex/interview-cheatsheet/SKILL.md +245 -0
- package/skills/skills-codex/invention-structuring/SKILL.md +188 -0
- package/skills/skills-codex/jurisdiction-format/SKILL.md +192 -0
- package/skills/skills-codex/kill-argument/SKILL.md +403 -0
- package/skills/skills-codex/mermaid-diagram/SKILL.md +379 -0
- package/skills/skills-codex/meta-apply/SKILL.md +154 -0
- package/skills/skills-codex/meta-optimize/SKILL.md +348 -0
- package/skills/skills-codex/monitor-experiment/SKILL.md +98 -0
- package/skills/skills-codex/novelty-check/SKILL.md +89 -0
- package/skills/skills-codex/openalex/SKILL.md +228 -0
- package/skills/skills-codex/overleaf-sync/SKILL.md +220 -0
- package/skills/skills-codex/paper-claim-audit/SKILL.md +350 -0
- package/skills/skills-codex/paper-compile/SKILL.md +253 -0
- package/skills/skills-codex/paper-figure/SKILL.md +311 -0
- package/skills/skills-codex/paper-illustration/SKILL.md +690 -0
- package/skills/skills-codex/paper-illustration-image2/SKILL.md +383 -0
- package/skills/skills-codex/paper-illustration-image2/scripts/paper_illustration_image2.py +255 -0
- package/skills/skills-codex/paper-plan/SKILL.md +278 -0
- package/skills/skills-codex/paper-poster/SKILL.md +19 -0
- package/skills/skills-codex/paper-poster-html/SKILL.md +377 -0
- package/skills/skills-codex/paper-slides/SKILL.md +571 -0
- package/skills/skills-codex/paper-talk/SKILL.md +381 -0
- package/skills/skills-codex/paper-write/SKILL.md +411 -0
- package/skills/skills-codex/paper-write/templates/IEEEtran.bst +2409 -0
- package/skills/skills-codex/paper-write/templates/IEEEtran.cls +6347 -0
- package/skills/skills-codex/paper-write/templates/aaai2026.bst +1493 -0
- package/skills/skills-codex/paper-write/templates/aaai2026.sty +315 -0
- package/skills/skills-codex/paper-write/templates/aaai2026.tex +952 -0
- package/skills/skills-codex/paper-write/templates/acl.sty +312 -0
- package/skills/skills-codex/paper-write/templates/acl2026.tex +377 -0
- package/skills/skills-codex/paper-write/templates/acl_natbib.bst +1940 -0
- package/skills/skills-codex/paper-write/templates/acm.bst +3081 -0
- package/skills/skills-codex/paper-write/templates/acm_mm2026.tex +204 -0
- package/skills/skills-codex/paper-write/templates/acmart.cls +3520 -0
- package/skills/skills-codex/paper-write/templates/cvpr.bst +1448 -0
- package/skills/skills-codex/paper-write/templates/cvpr.sty +508 -0
- package/skills/skills-codex/paper-write/templates/cvpr2026.tex +63 -0
- package/skills/skills-codex/paper-write/templates/iclr2026.tex +84 -0
- package/skills/skills-codex/paper-write/templates/iclr2026_conference.bst +1440 -0
- package/skills/skills-codex/paper-write/templates/iclr2026_conference.sty +246 -0
- package/skills/skills-codex/paper-write/templates/icml2026.sty +767 -0
- package/skills/skills-codex/paper-write/templates/icml2026.tex +662 -0
- package/skills/skills-codex/paper-write/templates/ieee_conference.tex +89 -0
- package/skills/skills-codex/paper-write/templates/ieee_journal.tex +93 -0
- package/skills/skills-codex/paper-write/templates/math_commands.tex +48 -0
- package/skills/skills-codex/paper-write/templates/neurips2026.tex +493 -0
- package/skills/skills-codex/paper-write/templates/neurips_2026.sty +437 -0
- package/skills/skills-codex/paper-writing/SKILL.md +731 -0
- package/skills/skills-codex/patent-novelty-check/SKILL.md +153 -0
- package/skills/skills-codex/patent-pipeline/SKILL.md +344 -0
- package/skills/skills-codex/patent-review/SKILL.md +202 -0
- package/skills/skills-codex/pixel-art/SKILL.md +139 -0
- package/skills/skills-codex/prior-art-search/SKILL.md +146 -0
- package/skills/skills-codex/proof-checker/SKILL.md +554 -0
- package/skills/skills-codex/proof-orchestrator/SKILL.md +260 -0
- package/skills/skills-codex/proof-orchestrator/references/audit-output-contract.md +126 -0
- package/skills/skills-codex/proof-orchestrator/references/deepseek-routing.md +76 -0
- package/skills/skills-codex/proof-orchestrator/references/dispatch-prompts.md +227 -0
- package/skills/skills-codex/proof-orchestrator/references/notation-audit.md +135 -0
- package/skills/skills-codex/proof-orchestrator/references/proof-audit-rubric.md +70 -0
- package/skills/skills-codex/proof-orchestrator/references/stress-tests.md +38 -0
- package/skills/skills-codex/proof-writer/SKILL.md +222 -0
- package/skills/skills-codex/qzcli/SKILL.md +324 -0
- package/skills/skills-codex/rebuttal/SKILL.md +305 -0
- package/skills/skills-codex/render-html/SKILL.md +305 -0
- package/skills/skills-codex/render-html/scripts/__pycache__/render_html.cpython-314.pyc +0 -0
- package/skills/skills-codex/render-html/scripts/render_html.py +909 -0
- package/skills/skills-codex/render-html/scripts/templates/academic.html +342 -0
- package/skills/skills-codex/render-html/scripts/templates/dashboard.html +333 -0
- package/skills/skills-codex/research-lit/SKILL.md +464 -0
- package/skills/skills-codex/research-pipeline/SKILL.md +340 -0
- package/skills/skills-codex/research-refine/SKILL.md +721 -0
- package/skills/skills-codex/research-refine-pipeline/SKILL.md +186 -0
- package/skills/skills-codex/research-review/SKILL.md +135 -0
- package/skills/skills-codex/research-wiki/SKILL.md +421 -0
- package/skills/skills-codex/resubmit-pipeline/SKILL.md +444 -0
- package/skills/skills-codex/result-to-claim/SKILL.md +246 -0
- package/skills/skills-codex/run-experiment/SKILL.md +236 -0
- package/skills/skills-codex/semantic-scholar/SKILL.md +219 -0
- package/skills/skills-codex/serverless-modal/SKILL.md +335 -0
- package/skills/skills-codex/shared-references/acceptance-gate.md +336 -0
- package/skills/skills-codex/shared-references/assurance-contract.md +139 -0
- package/skills/skills-codex/shared-references/capture-antipatterns.md +84 -0
- package/skills/skills-codex/shared-references/citation-discipline.md +452 -0
- package/skills/skills-codex/shared-references/compute-env-contract.md +163 -0
- package/skills/skills-codex/shared-references/effort-contract.md +143 -0
- package/skills/skills-codex/shared-references/evidence-precheck.md +73 -0
- package/skills/skills-codex/shared-references/experiment-integrity.md +49 -0
- package/skills/skills-codex/shared-references/external-cadence.md +334 -0
- package/skills/skills-codex/shared-references/fan-out-pattern.md +375 -0
- package/skills/skills-codex/shared-references/injection-hygiene.md +132 -0
- package/skills/skills-codex/shared-references/integration-contract.md +372 -0
- package/skills/skills-codex/shared-references/output-composition.md +98 -0
- package/skills/skills-codex/shared-references/output-language.md +45 -0
- package/skills/skills-codex/shared-references/output-manifest.md +40 -0
- package/skills/skills-codex/shared-references/output-versioning.md +111 -0
- package/skills/skills-codex/shared-references/patent-format-cn.md +199 -0
- package/skills/skills-codex/shared-references/patent-format-ep.md +173 -0
- package/skills/skills-codex/shared-references/patent-format-us.md +161 -0
- package/skills/skills-codex/shared-references/patent-writing-principles.md +197 -0
- package/skills/skills-codex/shared-references/prior-art-databases.md +141 -0
- package/skills/skills-codex/shared-references/resumable-runs.md +125 -0
- package/skills/skills-codex/shared-references/review-scope-limits.md +81 -0
- package/skills/skills-codex/shared-references/review-tracing.md +144 -0
- package/skills/skills-codex/shared-references/reviewer-independence.md +66 -0
- package/skills/skills-codex/shared-references/reviewer-routing.md +128 -0
- package/skills/skills-codex/shared-references/skill-governance.md +119 -0
- package/skills/skills-codex/shared-references/taste-calibration.md +90 -0
- package/skills/skills-codex/shared-references/venue-checklists.md +73 -0
- package/skills/skills-codex/shared-references/wiki-helper-resolution.md +69 -0
- package/skills/skills-codex/shared-references/writing-principles.md +525 -0
- package/skills/skills-codex/slides-polish/SKILL.md +563 -0
- package/skills/skills-codex/specification-writing/SKILL.md +211 -0
- package/skills/skills-codex/system-profile/SKILL.md +103 -0
- package/skills/skills-codex/training-check/SKILL.md +83 -0
- package/skills/skills-codex/vast-gpu/SKILL.md +394 -0
- package/skills/skills-codex/web-debug-search/SKILL.md +334 -0
- package/skills/skills-codex/wiki-enrich/SKILL.md +255 -0
- package/skills/skills-codex/writing-systems-papers/SKILL.md +184 -0
- package/skills/skills-codex-claude-review/README.md +79 -0
- package/skills/skills-codex-claude-review/README_CN.md +78 -0
- package/skills/skills-codex-claude-review/auto-paper-improvement-loop/SKILL.md +581 -0
- package/skills/skills-codex-claude-review/auto-review-loop/SKILL.md +510 -0
- package/skills/skills-codex-claude-review/novelty-check/SKILL.md +102 -0
- package/skills/skills-codex-claude-review/paper-figure/SKILL.md +319 -0
- package/skills/skills-codex-claude-review/paper-plan/SKILL.md +287 -0
- package/skills/skills-codex-claude-review/paper-write/SKILL.md +420 -0
- package/skills/skills-codex-claude-review/research-refine/SKILL.md +732 -0
- package/skills/skills-codex-claude-review/research-review/SKILL.md +149 -0
- package/skills/skills-codex-gemini-review/README.md +176 -0
- package/skills/skills-codex-gemini-review/README_CN.md +175 -0
- package/skills/skills-codex-gemini-review/auto-paper-improvement-loop/SKILL.md +331 -0
- package/skills/skills-codex-gemini-review/auto-review-loop/SKILL.md +304 -0
- package/skills/skills-codex-gemini-review/grant-proposal/SKILL.md +630 -0
- package/skills/skills-codex-gemini-review/idea-creator/SKILL.md +263 -0
- package/skills/skills-codex-gemini-review/idea-discovery/SKILL.md +275 -0
- package/skills/skills-codex-gemini-review/idea-discovery-robot/SKILL.md +365 -0
- package/skills/skills-codex-gemini-review/novelty-check/SKILL.md +92 -0
- package/skills/skills-codex-gemini-review/paper-figure/SKILL.md +289 -0
- package/skills/skills-codex-gemini-review/paper-plan/SKILL.md +265 -0
- package/skills/skills-codex-gemini-review/paper-poster-html/SKILL.md +102 -0
- package/skills/skills-codex-gemini-review/paper-slides/SKILL.md +582 -0
- package/skills/skills-codex-gemini-review/paper-write/SKILL.md +346 -0
- package/skills/skills-codex-gemini-review/paper-writing/SKILL.md +312 -0
- package/skills/skills-codex-gemini-review/research-refine/SKILL.md +674 -0
- package/skills/skills-codex-gemini-review/research-review/SKILL.md +112 -0
- package/skills/slides-polish/SKILL.md +565 -0
- package/skills/specification-writing/SKILL.md +211 -0
- package/skills/system-profile/SKILL.md +103 -0
- package/skills/training-check/SKILL.md +132 -0
- package/skills/vast-gpu/SKILL.md +394 -0
- package/skills/web-debug-search/SKILL.md +334 -0
- package/skills/wiki-enrich/SKILL.md +257 -0
- package/skills/writing-systems-papers/SKILL.md +184 -0
- package/templates/CLAUDE_MD_TEMPLATE.md +29 -0
- package/templates/EXPERIMENT_LOG_TEMPLATE.md +47 -0
- package/templates/EXPERIMENT_PLAN_TEMPLATE.md +51 -0
- package/templates/EXPERIMENT_PLAN_TEMPLATE_CN.md +53 -0
- package/templates/FINDINGS_TEMPLATE.md +52 -0
- package/templates/IDEA_CANDIDATES_TEMPLATE.md +47 -0
- package/templates/IDEA_CANDIDATES_TEMPLATE_CN.md +47 -0
- package/templates/INVENTION_BRIEF_TEMPLATE.md +87 -0
- package/templates/MANIFEST_TEMPLATE.md +7 -0
- package/templates/NARRATIVE_REPORT_TEMPLATE.md +49 -0
- package/templates/PAPER_PLAN_TEMPLATE.md +47 -0
- package/templates/PATENT_CLAIMS_TEMPLATE.md +78 -0
- package/templates/PATENT_SPECIFICATION_TEMPLATE.md +68 -0
- package/templates/README.md +57 -0
- package/templates/RESEARCH_BRIEF_TEMPLATE.md +35 -0
- package/templates/RESEARCH_BRIEF_TEMPLATE_CN.md +41 -0
- package/templates/RESEARCH_CONTRACT_TEMPLATE.md +60 -0
- package/templates/claude-hooks/corpus_write_guard.json +16 -0
- package/templates/claude-hooks/corpus_write_guard.py +85 -0
- package/templates/claude-hooks/meta_logging.json +74 -0
- package/templates/gitignore-trace.txt +3 -0
- package/tools/__pycache__/check_skills_inventory.cpython-314.pyc +0 -0
- package/tools/arxiv_fetch.py +311 -0
- package/tools/capture_filter.py +126 -0
- package/tools/check_skills_inventory.py +273 -0
- package/tools/convert_skills_to_llm_chat.py +282 -0
- package/tools/copilot_native_evidence.py +818 -0
- package/tools/deepxiv_fetch.py +213 -0
- package/tools/evidence_check.py +212 -0
- package/tools/exa_search.py +425 -0
- package/tools/experiment_queue/README.md +118 -0
- package/tools/experiment_queue/build_manifest.py +44 -0
- package/tools/experiment_queue/queue_manager.py +44 -0
- package/tools/extract_paper_style.py +560 -0
- package/tools/figure_renderer.py +69 -0
- package/tools/forensics_gate.py +669 -0
- package/tools/generate_codex_claude_review_overrides.py +299 -0
- package/tools/idea_discovery_gate.py +256 -0
- package/tools/install_aris.ps1 +1372 -0
- package/tools/install_aris.sh +1370 -0
- package/tools/install_aris_codex.sh +1023 -0
- package/tools/install_aris_copilot.sh +1052 -0
- package/tools/iteration_log.py +143 -0
- package/tools/lint_skills_helpers.sh +84 -0
- package/tools/meta_opt/check_ready.sh +80 -0
- package/tools/meta_opt/log_event.sh +91 -0
- package/tools/meta_opt/trigger_eval.py +280 -0
- package/tools/meta_opt/trigger_evals.sample.json +28 -0
- package/tools/openalex_fetch.py +326 -0
- package/tools/overleaf_audit.sh +104 -0
- package/tools/overleaf_setup.sh +150 -0
- package/tools/paper_illustration_image2.py +62 -0
- package/tools/provenance.py +294 -0
- package/tools/research_wiki.py +1720 -0
- package/tools/review_gate.py +502 -0
- package/tools/run_state.py +399 -0
- package/tools/save_trace.sh +477 -0
- package/tools/semantic_scholar_fetch.py +438 -0
- package/tools/skill-groups.tsv +116 -0
- package/tools/skill_picker.py +238 -0
- package/tools/smart_update.ps1 +521 -0
- package/tools/smart_update.sh +591 -0
- package/tools/smart_update_codex.sh +419 -0
- package/tools/smart_update_copilot.sh +605 -0
- package/tools/threat_scan.py +222 -0
- package/tools/verify_paper_audits.sh +487 -0
- package/tools/verify_papers.py +613 -0
- package/tools/verify_wiki_coverage.sh +176 -0
- package/tools/watchdog.py +485 -0
package/dsh/client.js
ADDED
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
// ARIS run status — browser half.
|
|
2
|
+
//
|
|
3
|
+
// One read-only conversation tab showing what the independent reviewer and the
|
|
4
|
+
// loop's own artifacts say. It never writes, never advances a round, and never
|
|
5
|
+
// converts a score, verdict, or `completed` status into a completion decision:
|
|
6
|
+
// a loop can DRIVE but cannot ACQUIT, and neither can a dashboard.
|
|
7
|
+
//
|
|
8
|
+
// Handwritten on purpose — the file is small and fixed, so the package stays
|
|
9
|
+
// build-free. A second view or any interactive mutation should move this to a
|
|
10
|
+
// normal source-and-build setup instead of growing here.
|
|
11
|
+
|
|
12
|
+
window.__ModuleLoader__.load({
|
|
13
|
+
id: 'dsh-aris',
|
|
14
|
+
factory(require) {
|
|
15
|
+
const React = require('react')
|
|
16
|
+
const h = React.createElement
|
|
17
|
+
|
|
18
|
+
const POLL_MS = 5000
|
|
19
|
+
|
|
20
|
+
/** Fields that answer "is the reviewer genuinely independent right now". */
|
|
21
|
+
const INDEPENDENCE = [
|
|
22
|
+
['Executor', s => label(s.executor_model, s.executor_family)],
|
|
23
|
+
['Reviewer', s => label(s.reported_reviewer_model ?? s.requested_reviewer_model, s.reviewer_family)],
|
|
24
|
+
['Families', s => s.family_relation],
|
|
25
|
+
['Independence verified', s => format(s.independence_verified)],
|
|
26
|
+
['External acquittal owed', s => format(s.requires_external_acquittal)],
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
/** Fields describing where the loop stands. */
|
|
30
|
+
const PROGRESS = [
|
|
31
|
+
['Round', s => s.round === undefined ? undefined : `Round ${s.round}`],
|
|
32
|
+
['Loop status', s => s.status === 'completed' ? 'ended (positive assessment or max rounds)' : s.status],
|
|
33
|
+
['Difficulty', s => s.difficulty],
|
|
34
|
+
['Reviewer backend (next round)', s => s.reviewer_backend],
|
|
35
|
+
['Last score', s => s.last_score === undefined ? undefined : String(s.last_score)],
|
|
36
|
+
['Last verdict', s => s.last_verdict],
|
|
37
|
+
['Run id', s => s.run_id],
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
function label(model, family) {
|
|
41
|
+
if (model === undefined || model === null) return family
|
|
42
|
+
return family === undefined || family === null ? String(model) : `${model} (${family})`
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function format(value) {
|
|
46
|
+
if (value === true) return 'yes'
|
|
47
|
+
if (value === false) return 'no'
|
|
48
|
+
return value === undefined || value === null ? undefined : String(value)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function when(ms) {
|
|
52
|
+
if (typeof ms !== 'number') return ''
|
|
53
|
+
const seconds = Math.max(0, Math.round((Date.now() - ms) / 1000))
|
|
54
|
+
if (seconds < 90) return `${seconds}s ago`
|
|
55
|
+
const minutes = Math.round(seconds / 60)
|
|
56
|
+
return minutes < 90 ? `${minutes}m ago` : `${Math.round(minutes / 60)}h ago`
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function rows(spec, state) {
|
|
60
|
+
const present = []
|
|
61
|
+
for (const [name, read] of spec) {
|
|
62
|
+
let value
|
|
63
|
+
try {
|
|
64
|
+
value = read(state)
|
|
65
|
+
} catch {
|
|
66
|
+
value = undefined
|
|
67
|
+
}
|
|
68
|
+
if (value !== undefined && value !== null && value !== '') {
|
|
69
|
+
present.push(h('div', { className: 'aris-row', key: name },
|
|
70
|
+
h('span', { className: 'aris-key' }, name),
|
|
71
|
+
h('span', { className: 'aris-value' }, String(value))))
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return present
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function Section(props) {
|
|
78
|
+
return h('section', { className: 'aris-section' },
|
|
79
|
+
h('h3', null, props.title),
|
|
80
|
+
props.children)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* One pipeline phase. `accepted` is the only status an independent reviewer
|
|
85
|
+
* can produce; `done` is the executor's own claim, so a done-but-unaccepted
|
|
86
|
+
* phase is shown as the open acceptance obligation it is.
|
|
87
|
+
*/
|
|
88
|
+
function Phase(props) {
|
|
89
|
+
const p = props.phase
|
|
90
|
+
const accepted = p.status === 'accepted'
|
|
91
|
+
const owed = p.status === 'done'
|
|
92
|
+
const detail = accepted
|
|
93
|
+
? [p.reviewer, p.reviewerFamily && `(${p.reviewerFamily})`, p.independence]
|
|
94
|
+
.filter(Boolean).join(' ')
|
|
95
|
+
: owed ? 'executor self-report — not yet accepted by a reviewer' : undefined
|
|
96
|
+
return h('div', { className: 'aris-phase' },
|
|
97
|
+
h('span', { className: 'aris-phase-name' }, p.phase),
|
|
98
|
+
h('span', { className: 'aris-phase-status aris-status-' + p.status }, p.status),
|
|
99
|
+
h('span', { className: 'aris-phase-detail' },
|
|
100
|
+
detail,
|
|
101
|
+
p.artifact === undefined ? null : h('code', { className: 'aris-phase-artifact' }, p.artifact)))
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function ArisRunView(props) {
|
|
105
|
+
const [data, setData] = React.useState(undefined)
|
|
106
|
+
const [error, setError] = React.useState(undefined)
|
|
107
|
+
const connection = props.connection
|
|
108
|
+
|
|
109
|
+
React.useEffect(() => {
|
|
110
|
+
let live = true
|
|
111
|
+
const controller = new AbortController()
|
|
112
|
+
const poll = () => {
|
|
113
|
+
connection.rpc.call('/aris', 'state', { sessionId: props.sessionId }, controller.signal)
|
|
114
|
+
.then((result) => {
|
|
115
|
+
if (!live) return
|
|
116
|
+
if (result.ok) {
|
|
117
|
+
setData(result.value)
|
|
118
|
+
setError(undefined)
|
|
119
|
+
} else {
|
|
120
|
+
setError(result.error && result.error.message ? result.error.message : 'RPC failed')
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
.catch((cause) => { if (live) setError(String(cause)) })
|
|
124
|
+
}
|
|
125
|
+
poll()
|
|
126
|
+
const timer = setInterval(poll, POLL_MS)
|
|
127
|
+
return () => { live = false; clearInterval(timer); controller.abort() }
|
|
128
|
+
}, [connection, props.sessionId])
|
|
129
|
+
|
|
130
|
+
if (error !== undefined) {
|
|
131
|
+
return h('div', { className: 'aris-view' }, h('p', { className: 'aris-note' }, error))
|
|
132
|
+
}
|
|
133
|
+
if (data === undefined) {
|
|
134
|
+
return h('div', { className: 'aris-view' }, h('p', { className: 'aris-note' }, 'Reading run artifacts…'))
|
|
135
|
+
}
|
|
136
|
+
if (data.workspace === undefined) {
|
|
137
|
+
return h('div', { className: 'aris-view' },
|
|
138
|
+
h('p', { className: 'aris-note' }, 'This session has no workspace directory, so there are no ARIS artifacts to read.'))
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const state = data.state
|
|
142
|
+
const children = []
|
|
143
|
+
|
|
144
|
+
const pipeline = data.pipeline
|
|
145
|
+
const pipelineSection = pipeline === undefined ? undefined : (() => {
|
|
146
|
+
const owed = pipeline.phases.filter(p => p.status === 'done').length
|
|
147
|
+
return h(Section, { title: 'Pipeline', key: 'pipeline' },
|
|
148
|
+
h('p', { className: 'aris-note aris-run' },
|
|
149
|
+
[pipeline.runId, pipeline.updated && `updated ${pipeline.updated}`]
|
|
150
|
+
.filter(Boolean).join(' · ')),
|
|
151
|
+
pipeline.phases.map(p => h(Phase, { phase: p, key: p.phase })),
|
|
152
|
+
h('p', { className: 'aris-note' },
|
|
153
|
+
owed === 0
|
|
154
|
+
? 'Only "accepted" means an independent reviewer or a deterministic verifier signed off; "done" is the executor\'s own claim.'
|
|
155
|
+
: `${owed} phase${owed === 1 ? '' : 's'} marked done by the executor but never accepted by a reviewer — an open acceptance obligation.`))
|
|
156
|
+
})()
|
|
157
|
+
|
|
158
|
+
if (data.stateError !== undefined) {
|
|
159
|
+
children.push(h('p', { className: 'aris-note', key: 'state-error' }, data.stateError))
|
|
160
|
+
} else if (state === undefined) {
|
|
161
|
+
children.push(h('p', { className: 'aris-note', key: 'no-state' },
|
|
162
|
+
'No review-stage/REVIEW_STATE.json yet — no auto-review-loop run has completed a round in this workspace.'))
|
|
163
|
+
} else {
|
|
164
|
+
// Independence leads: it is the property ARIS rests on, and the reason
|
|
165
|
+
// this tab exists at all.
|
|
166
|
+
children.push(h(Section, { title: 'Reviewer independence', key: 'independence' }, rows(INDEPENDENCE, state)))
|
|
167
|
+
if (pipelineSection !== undefined) children.push(pipelineSection)
|
|
168
|
+
children.push(h(Section, { title: 'Loop', key: 'loop' },
|
|
169
|
+
rows(PROGRESS, state),
|
|
170
|
+
data.criticisms === undefined ? null : h('div', { className: 'aris-criticisms' },
|
|
171
|
+
h('div', { className: 'aris-key' }, 'Last assessment'),
|
|
172
|
+
h('ul', { className: 'aris-list' },
|
|
173
|
+
data.criticisms.map((item, index) => h('li', { key: index }, item))))))
|
|
174
|
+
if (Array.isArray(state.pending_experiments) && state.pending_experiments.length > 0) {
|
|
175
|
+
children.push(h(Section, { title: 'Pending experiments', key: 'pending' },
|
|
176
|
+
h('ul', { className: 'aris-list' },
|
|
177
|
+
state.pending_experiments.map((item, index) =>
|
|
178
|
+
h('li', { key: index }, String(item))))))
|
|
179
|
+
}
|
|
180
|
+
children.push(h('p', { className: 'aris-note', key: 'staleness' },
|
|
181
|
+
`State is written when a round finishes, not continuously — this reflects the last completed round${
|
|
182
|
+
state.timestamp === undefined ? '' : ` (recorded ${state.timestamp})`}.`))
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
children.push(h(Section, { title: 'Artifacts', key: 'artifacts' },
|
|
186
|
+
h('ul', { className: 'aris-list' }, data.artifacts.map(item =>
|
|
187
|
+
h('li', { key: item.path },
|
|
188
|
+
h('span', { className: item.exists ? 'aris-ok' : 'aris-missing' }, item.exists ? '●' : '○'),
|
|
189
|
+
' ',
|
|
190
|
+
h('code', null, item.path),
|
|
191
|
+
item.exists ? h('span', { className: 'aris-when' }, ' ' + when(item.mtime)) : null)))))
|
|
192
|
+
|
|
193
|
+
if (state === undefined && pipelineSection !== undefined) children.push(pipelineSection)
|
|
194
|
+
children.push(h('p', { className: 'aris-note', key: 'workspace' }, data.workspace))
|
|
195
|
+
|
|
196
|
+
return h('div', { className: 'aris-view' }, children)
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
// ================= ARIS Workbench (interactive research console) =================
|
|
201
|
+
// Extension of the official dsh-aris run-status tab into a full workbench:
|
|
202
|
+
// pipeline/review state, idea board, experiments, research-wiki graph.
|
|
203
|
+
// Read-only projections via the /aris-wb RPC channel; artifacts stay canonical.
|
|
204
|
+
|
|
205
|
+
const WB_CHANNEL = '/aris-wb'
|
|
206
|
+
const WB_TICK = String.fromCharCode(96)
|
|
207
|
+
const FLOW_STAGES = [
|
|
208
|
+
{ id: 1, title: '课题现状与可行性', desc: '提出方向,调研现状与可行性', skills: ['research-lit', 'idea-discovery', 'arxiv', 'deepxiv'], next: '用 research-lit 调研现状,或用 idea-discovery 一次跑完「现状→想法→排名」' },
|
|
209
|
+
{ id: 2, title: '细化理解形成思路', desc: '来回交流,打磨出研究思路', skills: ['idea-creator', 'novelty-check', 'kill-argument', 'research-review'], next: 'idea-creator 补新想法、novelty-check 查新、kill-argument 对抗检验后敲定思路' },
|
|
210
|
+
{ id: 3, title: '敲定研究方案', desc: '固化方法 + 文章框架 + 实验设计', skills: ['research-refine', 'research-refine-pipeline', 'experiment-plan', 'paper-plan'], next: 'research-refine 固化方案,experiment-plan 出实验路线图,paper-plan 出文章框架' },
|
|
211
|
+
{ id: 4, title: '文章与实验', desc: '实现代码、跑实验、写论文', skills: ['experiment-bridge', 'run-experiment', 'analyze-results', 'paper-writing', 'auto-review-loop'], next: 'experiment-bridge 落地代码,run-experiment 跑实验,paper-writing 写论文,auto-review-loop 迭代打磨' },
|
|
212
|
+
{ id: 5, title: '整合研究成果', desc: '沉淀知识、包装输出成果', skills: ['research-wiki', 'paper-talk', 'paper-poster-html', 'rebuttal', 'resubmit-pipeline'], next: 'research-wiki 沉淀知识,paper-talk/paper-poster-html 做演讲/海报,rebuttal 应对审稿意见' },
|
|
213
|
+
]
|
|
214
|
+
|
|
215
|
+
function inferStage(ov) {
|
|
216
|
+
const a = (ov && ov.artifacts) || {}
|
|
217
|
+
const has = function (p) { const e = a[p]; return !!e && e.exists }
|
|
218
|
+
if (has('refine-logs/EXPERIMENT_PLAN.md')) return 4
|
|
219
|
+
if (has('refine-logs/FINAL_PROPOSAL.md')) return 3
|
|
220
|
+
if (has('IDEA_REPORT.md') || has('idea-stage/IDEA_REPORT.md')) return 2
|
|
221
|
+
return 1
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function WbGuide(props) {
|
|
225
|
+
const stage = props.stage
|
|
226
|
+
const onPick = props.onPick
|
|
227
|
+
const items = FLOW_STAGES.map(function (s) {
|
|
228
|
+
const cls = 'wb-stage' + (s.id === stage ? ' wb-stage-cur' : (s.id < stage ? ' wb-stage-done' : ''))
|
|
229
|
+
const mark = s.id < stage ? '✓' : (s.id === stage ? '▶' : String(s.id))
|
|
230
|
+
return h('div', { className: cls, key: s.id },
|
|
231
|
+
h('div', { className: 'wb-stage-head' }, h('span', { className: 'wb-stage-mark' }, mark), h('span', { className: 'wb-stage-title' }, s.title)),
|
|
232
|
+
h('div', { className: 'wb-stage-desc' }, s.desc),
|
|
233
|
+
h('div', { className: 'wb-stage-skills' }, s.skills.map(function (k) {
|
|
234
|
+
return h('button', { className: 'wb-skill-chip', key: k, onClick: function () { onPick(k) } }, k)
|
|
235
|
+
})))
|
|
236
|
+
})
|
|
237
|
+
const cur = FLOW_STAGES.find(function (s) { return s.id === stage })
|
|
238
|
+
return h('div', { className: 'wb-guide' },
|
|
239
|
+
h('div', { className: 'wb-guide-title' }, (props.title || '工作流向导') + (cur ? ' — 当前阶段:' + cur.title : '')),
|
|
240
|
+
h('div', { className: 'wb-stages' }, items),
|
|
241
|
+
cur ? h('div', { className: 'wb-guide-next' }, '下一步建议:' + cur.next) : null)
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function WbTrigger(props) {
|
|
245
|
+
const connection = props.connection
|
|
246
|
+
const sessionId = props.sessionId
|
|
247
|
+
const skills = props.skills
|
|
248
|
+
const skill = props.skill
|
|
249
|
+
const args = props.args
|
|
250
|
+
const [status, setStatus] = React.useState(undefined)
|
|
251
|
+
const skillError = props.skillError
|
|
252
|
+
const [busy, setBusy] = React.useState(false)
|
|
253
|
+
|
|
254
|
+
const doLaunch = function () {
|
|
255
|
+
if (!skill) { setStatus('请先选择技能'); return }
|
|
256
|
+
setBusy(true)
|
|
257
|
+
connection.rpc.call(WB_CHANNEL, 'launch', { sessionId: sessionId, skill: skill, args: args })
|
|
258
|
+
.then(function (res) {
|
|
259
|
+
if (res.ok) {
|
|
260
|
+
setStatus(res.value.injected ? '已注入会话(' + res.value.method + '),执行已唤醒,请到会话窗口查看进度' : '未能注入,请复制提示词手动发送:' + res.value.prompt)
|
|
261
|
+
} else {
|
|
262
|
+
setStatus('触发失败:' + (res.error ? res.error.message : 'RPC error'))
|
|
263
|
+
}
|
|
264
|
+
})
|
|
265
|
+
.catch(function (e) { setStatus('触发失败:' + String(e)) })
|
|
266
|
+
.finally(function () { setBusy(false) })
|
|
267
|
+
}
|
|
268
|
+
const doCopy = function () {
|
|
269
|
+
if (!skill) { setStatus('请先选择技能'); return }
|
|
270
|
+
const text = '请使用 ARIS 技能 ' + WB_TICK + skill + WB_TICK + ' 完成对应工作流。' + (args ? ' 参数/方向:' + args : '')
|
|
271
|
+
navigator.clipboard.writeText(text).then(function () { setStatus('提示词已复制,粘贴到会话发送即可') }).catch(function () { setStatus('复制失败,请手动复制:' + text) })
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
const selectOptions = [h('option', { value: '', key: '' }, '— 选择 ARIS 技能 —')]
|
|
275
|
+
;(skills || []).forEach(function (s) {
|
|
276
|
+
selectOptions.push(h('option', { key: s.name, value: s.name }, s.name + (s.description ? ' — ' + s.description.slice(0, 60) : '')))
|
|
277
|
+
})
|
|
278
|
+
|
|
279
|
+
return h('div', { className: 'wb-trigger' },
|
|
280
|
+
h('div', { className: 'wb-guide-title' }, '技能触发'),
|
|
281
|
+
h('div', { className: 'wb-trigger-row' },
|
|
282
|
+
h('select', { className: 'wb-skill-select', value: skill, onChange: function (e) { props.onSkill(e.target.value) } }, selectOptions),
|
|
283
|
+
h('input', { className: 'wb-args', placeholder: '参数 / 研究方向(可选)', value: args, onChange: function (e) { props.onArgs(e.target.value) } })),
|
|
284
|
+
h('div', { className: 'wb-trigger-row' },
|
|
285
|
+
h('button', { className: 'wb-btn', onClick: doLaunch, disabled: busy }, busy ? '触发中…' : '触发'),
|
|
286
|
+
h('button', { className: 'wb-btn wb-btn-copy', onClick: doCopy }, '复制提示词')),
|
|
287
|
+
(skillError ? h('div', { className: 'wb-error wb-skill-err' }, '技能列表:' + skillError) : null),
|
|
288
|
+
status ? h('div', { className: 'wb-status' }, status) : null)
|
|
289
|
+
}
|
|
290
|
+
function wbNote(text) { return h('p', { className: 'wb-note' }, text) }
|
|
291
|
+
function wbKey(label, value) {
|
|
292
|
+
return h('div', { className: 'wb-row' }, h('span', { className: 'wb-key' }, label), h('span', { className: 'wb-val' }, value))
|
|
293
|
+
}
|
|
294
|
+
function WbSection(props) {
|
|
295
|
+
return h('section', { className: 'wb-section' }, h('h3', null, props.title), props.children)
|
|
296
|
+
}
|
|
297
|
+
function WbPre(props) {
|
|
298
|
+
return h('pre', { className: 'wb-pre' }, props.text)
|
|
299
|
+
}
|
|
300
|
+
function WbArtifacts(props) {
|
|
301
|
+
const items = props.items
|
|
302
|
+
if (!items || items.length === 0) return wbNote('(no artifacts tracked)')
|
|
303
|
+
return h('ul', { className: 'wb-list' }, items.map(function (item) {
|
|
304
|
+
return h('li', { key: item.path },
|
|
305
|
+
h('span', { className: item.exists ? 'wb-dot-ok' : 'wb-dot-missing' }, item.exists ? '●' : '○'),
|
|
306
|
+
' ', h('code', null, item.path))
|
|
307
|
+
}))
|
|
308
|
+
}
|
|
309
|
+
function renderIdeaBoard(ideas) {
|
|
310
|
+
if (!ideas) return wbNote('(no data)')
|
|
311
|
+
const out = []
|
|
312
|
+
let any = false
|
|
313
|
+
const keys = ['IDEA_REPORT.md', 'idea-stage/IDEA_REPORT.md', 'refine-logs/FINAL_PROPOSAL.md', 'refine-logs/EXPERIMENT_PLAN.md']
|
|
314
|
+
keys.forEach(function (key) {
|
|
315
|
+
const doc = ideas[key]
|
|
316
|
+
if (doc === undefined) return
|
|
317
|
+
any = true
|
|
318
|
+
out.push(h('div', { className: 'wb-file', key: key },
|
|
319
|
+
h('span', { className: 'wb-file-name' }, key),
|
|
320
|
+
h('span', { className: 'wb-meta' }, doc.totalLines + ' lines'),
|
|
321
|
+
h(WbPre, { text: doc.head.join(String.fromCharCode(10)).slice(0, 900) })))
|
|
322
|
+
})
|
|
323
|
+
if (ideas.refineLogsDir && ideas.refineLogsDir.length > 0) {
|
|
324
|
+
any = true
|
|
325
|
+
out.push(h('div', { key: 'refine-dir' }, h('span', { className: 'wb-file-name' }, 'refine-logs/'), ' ', h('span', { className: 'wb-meta' }, ideas.refineLogsDir.join(', '))))
|
|
326
|
+
}
|
|
327
|
+
if (!any) out.push(wbNote('尚无 idea 产物 — 运行 /idea-discovery 或 /research-refine 后这里会出现 IDEA_REPORT / FINAL_PROPOSAL / EXPERIMENT_PLAN'))
|
|
328
|
+
return out
|
|
329
|
+
}
|
|
330
|
+
function renderExperiments(exps) {
|
|
331
|
+
if (!exps) return wbNote('(no data)')
|
|
332
|
+
const out = []
|
|
333
|
+
if (exps.runs && exps.runs.length > 0) {
|
|
334
|
+
out.push(h('ul', { className: 'wb-list' }, exps.runs.map(function (run) {
|
|
335
|
+
return h('li', { key: run.name },
|
|
336
|
+
h('code', null, run.name),
|
|
337
|
+
' — ' + (run.runId || '(unnamed run)'),
|
|
338
|
+
run.updated ? ' · ' + run.updated : '',
|
|
339
|
+
run.phases ? ' · ' + run.phases.map(function (p) { return p.phase + ':' + p.status }).join(', ') : '')
|
|
340
|
+
})))
|
|
341
|
+
} else {
|
|
342
|
+
out.push(wbNote('尚无 .aris/runs 实验记录 — /experiment-bridge 或 /run-experiment 后出现'))
|
|
343
|
+
}
|
|
344
|
+
if (exps.wikiExperiments && exps.wikiExperiments.length > 0) {
|
|
345
|
+
out.push(h('div', { key: 'wiki-exps' },
|
|
346
|
+
h('span', { className: 'wb-file-name' }, 'research-wiki/experiments: '),
|
|
347
|
+
h('span', { className: 'wb-meta' }, exps.wikiExperiments.join(', '))))
|
|
348
|
+
}
|
|
349
|
+
return out
|
|
350
|
+
}
|
|
351
|
+
function renderWiki(wiki) {
|
|
352
|
+
if (!wiki) return wbNote('(no data)')
|
|
353
|
+
const out = []
|
|
354
|
+
const kinds = ['papers', 'ideas', 'experiments', 'claims']
|
|
355
|
+
const counts = {}
|
|
356
|
+
kinds.forEach(function (kind) {
|
|
357
|
+
counts[kind] = wiki.entities && wiki.entities[kind] ? wiki.entities[kind].length : 0
|
|
358
|
+
})
|
|
359
|
+
out.push(h('div', { className: 'wb-row', key: 'counts' },
|
|
360
|
+
h('span', { className: 'wb-key' }, '实体数'),
|
|
361
|
+
h('span', { className: 'wb-val' },
|
|
362
|
+
kinds.map(function (k) { return h('span', { className: 'wb-badge', key: k }, k + ' ' + counts[k]) }))))
|
|
363
|
+
out.push(wbKey('图谱边数', String(wiki.edgeCount || 0)))
|
|
364
|
+
if (wiki.edges && wiki.edges.length > 0) {
|
|
365
|
+
out.push(h('ul', { className: 'wb-list', key: 'edges' }, wiki.edges.slice(0, 40).map(function (e, i) {
|
|
366
|
+
return h('li', { key: i },
|
|
367
|
+
h('code', null, e.source || '?'),
|
|
368
|
+
' --' + (e.type || e.relation || 'relates') + '--> ',
|
|
369
|
+
h('code', null, e.target || '?'))
|
|
370
|
+
})))
|
|
371
|
+
}
|
|
372
|
+
kinds.forEach(function (kind) {
|
|
373
|
+
const files = wiki.entities && wiki.entities[kind]
|
|
374
|
+
if (files && files.length > 0) {
|
|
375
|
+
out.push(h('div', { key: kind },
|
|
376
|
+
h('span', { className: 'wb-file-name' }, kind + '/: '),
|
|
377
|
+
h('span', { className: 'wb-meta' }, files.map(function (f) { return f.name }).join(', '))))
|
|
378
|
+
}
|
|
379
|
+
})
|
|
380
|
+
if (wiki.edgeCount === 0 && counts.papers === 0 && counts.ideas === 0) {
|
|
381
|
+
out.push(wbNote('research-wiki 已初始化但暂无实体 — /research-lit 或 /research-wiki ingest 后填充'))
|
|
382
|
+
}
|
|
383
|
+
return out
|
|
384
|
+
}
|
|
385
|
+
function ArisWorkbenchView(props) {
|
|
386
|
+
const connection = props.connection
|
|
387
|
+
const [sessionId, setSessionId] = React.useState(props.sessionId)
|
|
388
|
+
const [workspaces, setWorkspaces] = React.useState(undefined)
|
|
389
|
+
const [data, setData] = React.useState(undefined)
|
|
390
|
+
const [error, setError] = React.useState(undefined)
|
|
391
|
+
const [busy, setBusy] = React.useState(false)
|
|
392
|
+
const [skills, setSkills] = React.useState(undefined)
|
|
393
|
+
const [skillError, setSkillError] = React.useState(undefined)
|
|
394
|
+
const [skill, setSkill] = React.useState('')
|
|
395
|
+
const [args, setArgs] = React.useState('')
|
|
396
|
+
|
|
397
|
+
React.useEffect(function () {
|
|
398
|
+
let live = true
|
|
399
|
+
connection.rpc.call(WB_CHANNEL, 'sessions', {})
|
|
400
|
+
.then(function (res) {
|
|
401
|
+
if (!live) return
|
|
402
|
+
const ws = res.ok && res.value ? res.value.sessions : undefined
|
|
403
|
+
if (Array.isArray(ws)) {
|
|
404
|
+
setWorkspaces(ws)
|
|
405
|
+
if (sessionId === undefined && ws.length > 0) setSessionId(ws[0].id)
|
|
406
|
+
} else {
|
|
407
|
+
setWorkspaces([])
|
|
408
|
+
setError(res.error ? res.error.message : 'sessions RPC failed')
|
|
409
|
+
}
|
|
410
|
+
})
|
|
411
|
+
.catch(function (cause) { if (live) { setError(String(cause)); setWorkspaces([]) } })
|
|
412
|
+
return function () { live = false }
|
|
413
|
+
}, [connection])
|
|
414
|
+
|
|
415
|
+
const fetchSkills = React.useCallback(function () {
|
|
416
|
+
connection.rpc.call(WB_CHANNEL, 'skills', {})
|
|
417
|
+
.then(function (res) {
|
|
418
|
+
const list = res.ok && res.value ? res.value.skills : undefined
|
|
419
|
+
if (Array.isArray(list)) {
|
|
420
|
+
setSkills(list)
|
|
421
|
+
setSkillError(undefined)
|
|
422
|
+
} else {
|
|
423
|
+
setSkillError(res.error ? res.error.message : 'skills RPC 返回异常')
|
|
424
|
+
}
|
|
425
|
+
})
|
|
426
|
+
.catch(function (e) { setSkillError('技能列表加载失败:' + String(e)) })
|
|
427
|
+
}, [connection])
|
|
428
|
+
|
|
429
|
+
React.useEffect(function () { fetchSkills() }, [fetchSkills])
|
|
430
|
+
|
|
431
|
+
const load = React.useCallback(function () {
|
|
432
|
+
if (!sessionId) return
|
|
433
|
+
setBusy(true)
|
|
434
|
+
const timeout = new Promise(function (_, reject) {
|
|
435
|
+
setTimeout(function () { reject(new Error('RPC 超时(6s)')) }, 6000)
|
|
436
|
+
})
|
|
437
|
+
Promise.race([
|
|
438
|
+
Promise.all([
|
|
439
|
+
connection.rpc.call(WB_CHANNEL, 'overview', { sessionId: sessionId }),
|
|
440
|
+
connection.rpc.call(WB_CHANNEL, 'wiki', { sessionId: sessionId }),
|
|
441
|
+
connection.rpc.call(WB_CHANNEL, 'ideas', { sessionId: sessionId }),
|
|
442
|
+
connection.rpc.call(WB_CHANNEL, 'experiments', { sessionId: sessionId }),
|
|
443
|
+
]),
|
|
444
|
+
timeout,
|
|
445
|
+
]).then(function (results) {
|
|
446
|
+
const bad = results.find(function (r) { return !r.ok })
|
|
447
|
+
if (bad) {
|
|
448
|
+
setError(bad.error ? bad.error.message : 'RPC failed')
|
|
449
|
+
setData(undefined)
|
|
450
|
+
return
|
|
451
|
+
}
|
|
452
|
+
setData({ overview: results[0].value, wiki: results[1].value, ideas: results[2].value, experiments: results[3].value })
|
|
453
|
+
setError(undefined)
|
|
454
|
+
}).catch(function (cause) {
|
|
455
|
+
setError(String(cause))
|
|
456
|
+
setData(undefined)
|
|
457
|
+
}).finally(function () { setBusy(false) })
|
|
458
|
+
}, [connection, sessionId])
|
|
459
|
+
|
|
460
|
+
React.useEffect(function () { load() }, [load])
|
|
461
|
+
|
|
462
|
+
const ov = data && data.overview
|
|
463
|
+
const wiki = data && data.wiki
|
|
464
|
+
const ideas = data && data.ideas
|
|
465
|
+
const exps = data && data.experiments
|
|
466
|
+
const stage = ov ? inferStage(ov) : 1
|
|
467
|
+
|
|
468
|
+
const children = []
|
|
469
|
+
children.push(h('div', { className: 'wb-header', key: 'head' },
|
|
470
|
+
h('div', { className: 'wb-title' }, 'ARIS 研究工作台'),
|
|
471
|
+
h('div', { className: 'wb-actions' },
|
|
472
|
+
h('button', { className: 'wb-btn', onClick: function () { load(); fetchSkills() }, disabled: busy }, busy ? '加载中…' : '刷新'),
|
|
473
|
+
h('button', { className: 'wb-btn wb-btn-close', onClick: props.onClose }, '关闭'))))
|
|
474
|
+
if (workspaces && workspaces.length > 1) {
|
|
475
|
+
children.push(h('div', { className: 'wb-picker', key: 'picker' },
|
|
476
|
+
h('label', null, '工作区: '),
|
|
477
|
+
h('select', { value: sessionId, onChange: function (e) { setSessionId(e.target.value) } },
|
|
478
|
+
workspaces.map(function (s) { return h('option', { key: s.id, value: s.id }, s.cwd || s.id) }))))
|
|
479
|
+
}
|
|
480
|
+
if (workspaces && workspaces.length === 0) {
|
|
481
|
+
children.push(wbNote('无活动会话 — 请先在 DSH 中打开/新建一个工作区会话,然后点「刷新」'))
|
|
482
|
+
}
|
|
483
|
+
if (error) children.push(h('div', { className: 'wb-error', key: 'err' }, error))
|
|
484
|
+
if (sessionId === undefined && workspaces === undefined) children.push(wbNote('正在连接工作区…'))
|
|
485
|
+
if (sessionId !== undefined) {
|
|
486
|
+
children.push(h(WbGuide, { key: 'guide', stage: stage, onPick: function (name) { setSkill(name) } }))
|
|
487
|
+
children.push(h(WbTrigger, { key: 'trigger', connection: connection, sessionId: sessionId, skills: skills, skill: skill, args: args, skillError: skillError, onSkill: setSkill, onArgs: setArgs }))
|
|
488
|
+
}
|
|
489
|
+
if (sessionId !== undefined && data === undefined && !error) children.push(wbNote('加载中…'))
|
|
490
|
+
if (data) {
|
|
491
|
+
children.push(h(WbSection, { title: '流水线 / 审稿状态', key: 'pl' },
|
|
492
|
+
ov.workspace ? wbKey('工作区', ov.workspace) : wbNote('该会话没有工作区目录'),
|
|
493
|
+
ov.pipeline ? h('div', { key: 'pipe' },
|
|
494
|
+
wbKey('Run', ov.pipeline.runId || '(unnamed)'),
|
|
495
|
+
wbKey('Executor', ov.pipeline.executor || '(unknown)'),
|
|
496
|
+
h('ul', { className: 'wb-list' }, (ov.pipeline.phases || []).map(function (p) {
|
|
497
|
+
return h('li', { key: p.phase }, p.phase + ': ' + p.status + (p.artifact ? ' → ' + p.artifact : '') + (p.reviewer ? ' [' + p.reviewer + ']' : ''))
|
|
498
|
+
}))) : wbNote('暂无 .aris/runs 流水线记录'),
|
|
499
|
+
ov.state ? h('div', { key: 'state' },
|
|
500
|
+
wbKey('Round', ov.state.round === undefined ? '(n/a)' : 'Round ' + ov.state.round),
|
|
501
|
+
wbKey('Loop status', ov.state.status || '(n/a)'),
|
|
502
|
+
wbKey('Last score', ov.state.last_score === undefined ? '(n/a)' : String(ov.state.last_score)),
|
|
503
|
+
wbKey('Last verdict', ov.state.last_verdict || '(n/a)')) : wbNote('尚无 review-stage/REVIEW_STATE.json(未跑过 auto-review-loop)'),
|
|
504
|
+
h(WbArtifacts, (ov.artifacts && Object.keys(ov.artifacts).map(function (k) { return { path: k, exists: ov.artifacts[k].exists } })) || [])))
|
|
505
|
+
children.push(h('div', { className: 'wb-grid2', key: 'status' }, [
|
|
506
|
+
h(WbSection, { title: 'Idea 看板', key: 'id' }, renderIdeaBoard(ideas)),
|
|
507
|
+
h(WbSection, { title: '实验', key: 'ex' }, renderExperiments(exps)),
|
|
508
|
+
h(WbSection, { title: 'Wiki 图谱', key: 'wk' }, renderWiki(wiki)),
|
|
509
|
+
]))
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
return h('div', { className: 'wb-overlay' }, children)
|
|
513
|
+
}
|
|
514
|
+
function ArisWorkbenchButton(props) {
|
|
515
|
+
const [open, setOpen] = React.useState(false)
|
|
516
|
+
return h('div', { className: 'wb-sidebar-entry' },
|
|
517
|
+
h('button', { className: 'wb-sidebar-toggle', onClick: function () { setOpen(function (v) { return !v }) } }, 'ARIS 工作台'),
|
|
518
|
+
open ? h(ArisWorkbenchView, { connection: props.connection, sessions: props.sessions, sessionId: props.sessionId, onClose: function () { setOpen(false) } }) : null)
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
const WB_CSS = `.wb-overlay { position: fixed; inset: 0; z-index: 9999; background: #ffffff; color: #1f1f1f; padding: 20px 28px; overflow-y: auto; font-size: 13px; line-height: 1.6; font-family: ui-sans-serif, system-ui, sans-serif; }
|
|
522
|
+
.wb-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 14px; }
|
|
523
|
+
.wb-title { font-size: 17px; font-weight: 700; letter-spacing: .02em; color: #1f1f1f; }
|
|
524
|
+
.wb-actions { display: flex; gap: 8px; }
|
|
525
|
+
.wb-btn { background: #007acc; color: #fff; border: 0; border-radius: 4px; padding: 5px 14px; font-size: 12px; cursor: pointer; }
|
|
526
|
+
.wb-btn:disabled { opacity: .55; cursor: default; }
|
|
527
|
+
.wb-btn-close { background: #e8e8e8; color: #333333; }
|
|
528
|
+
.wb-btn-copy { background: #e8e8e8; color: #333333; }
|
|
529
|
+
.wb-picker { margin-bottom: 12px; }
|
|
530
|
+
.wb-picker label { color: #333333; }
|
|
531
|
+
.wb-picker select { background: #ffffff; color: #1f1f1f; border: 1px solid #c8c8c8; border-radius: 4px; padding: 4px 8px; font-size: 12px; max-width: 70%; }
|
|
532
|
+
.wb-section { margin-bottom: 20px; border: 1px solid #e4e4e4; border-radius: 6px; padding: 12px 16px; background: #fafafa; }
|
|
533
|
+
.wb-section h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; opacity: .6; font-weight: 700; color: #1f1f1f; }
|
|
534
|
+
.wb-row { display: flex; gap: 12px; padding: 2px 0; }
|
|
535
|
+
.wb-key { flex: 0 0 150px; opacity: .7; }
|
|
536
|
+
.wb-val { flex: 1; word-break: break-word; }
|
|
537
|
+
.wb-note { opacity: .55; font-size: 12px; margin: 6px 0; }
|
|
538
|
+
.wb-list { margin: 6px 0; padding-left: 18px; }
|
|
539
|
+
.wb-list li { padding: 1px 0; font-size: 12px; }
|
|
540
|
+
.wb-dot-ok { color: #107c10; }
|
|
541
|
+
.wb-dot-missing { opacity: .35; }
|
|
542
|
+
.wb-error { color: #c42b1c; background: #fdeeee; border: 1px solid #e5b9b5; border-radius: 6px; padding: 8px 12px; margin: 10px 0; font-size: 12px; }
|
|
543
|
+
.wb-pre { background: #f5f5f5; border-radius: 4px; padding: 8px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow-y: auto; margin: 6px 0; color: #24292e; }
|
|
544
|
+
.wb-file { margin: 6px 0; }
|
|
545
|
+
.wb-file-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #0066b8; }
|
|
546
|
+
.wb-meta { opacity: .55; font-size: 11px; margin-left: 8px; }
|
|
547
|
+
.wb-sidebar-entry { padding: 4px 6px; }
|
|
548
|
+
.wb-sidebar-toggle { width: 100%; background: transparent; color: inherit; border: 1px solid transparent; border-radius: 4px; padding: 5px 8px; font-size: 12px; cursor: pointer; text-align: left; }
|
|
549
|
+
.wb-sidebar-toggle:hover { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); }
|
|
550
|
+
.wb-badge { display: inline-block; border-radius: 10px; padding: 1px 8px; font-size: 10px; margin-left: 6px; background: #e8e8e8; border: 1px solid #d0d0d0; color: #1f1f1f; }
|
|
551
|
+
.wb-guide { margin-bottom: 18px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px 16px; background: #f7f7f7; }
|
|
552
|
+
.wb-guide-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: #1f1f1f; }
|
|
553
|
+
.wb-stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
|
|
554
|
+
.wb-stage { border: 1px solid #e6e6e6; border-radius: 6px; padding: 8px 10px; opacity: .55; background: #ffffff; }
|
|
555
|
+
.wb-stage-done { opacity: .8; }
|
|
556
|
+
.wb-stage-cur { opacity: 1; border-color: #007acc; background: #e8f4ff; }
|
|
557
|
+
.wb-stage-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
|
|
558
|
+
.wb-stage-mark { flex: 0 0 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: #e8e8e8; font-size: 11px; color: #1f1f1f; }
|
|
559
|
+
.wb-stage-done .wb-stage-mark { background: #107c10; color: #ffffff; }
|
|
560
|
+
.wb-stage-cur .wb-stage-mark { background: #007acc; color: #ffffff; }
|
|
561
|
+
.wb-stage-title { font-size: 13px; font-weight: 600; }
|
|
562
|
+
.wb-stage-desc { font-size: 11px; opacity: .7; margin-bottom: 6px; }
|
|
563
|
+
.wb-stage-skills { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
564
|
+
.wb-skill-chip { background: #eef4fb; color: #0066b8; border: 1px solid #99c9f0; border-radius: 12px; padding: 2px 10px; font-size: 11px; cursor: pointer; }
|
|
565
|
+
.wb-skill-chip:hover { background: #007acc; color: #ffffff; }
|
|
566
|
+
.wb-guide-next { margin-top: 10px; font-size: 12px; opacity: .85; }
|
|
567
|
+
.wb-trigger { margin-bottom: 18px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px 16px; background: #f7f7f7; }
|
|
568
|
+
.wb-trigger-row { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
|
|
569
|
+
.wb-skill-select { flex: 1 1 420px; background: #ffffff; color: #1f1f1f; border: 1px solid #c8c8c8; border-radius: 4px; padding: 6px 10px; font-size: 12px; min-width: 260px; }
|
|
570
|
+
.wb-args { flex: 1 1 280px; background: #ffffff; color: #1f1f1f; border: 1px solid #c8c8c8; border-radius: 4px; padding: 6px 10px; font-size: 12px; min-width: 200px; }
|
|
571
|
+
.wb-status { font-size: 12px; color: #107c10; margin-top: 4px; }`
|
|
572
|
+
|
|
573
|
+
const CSS = `
|
|
574
|
+
.aris-view { padding: 16px 20px; overflow-y: auto; font-size: 13px; line-height: 1.6; }
|
|
575
|
+
.aris-section { margin-bottom: 18px; }
|
|
576
|
+
.aris-section h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .6; font-weight: 600; }
|
|
577
|
+
.aris-row { display: flex; gap: 12px; padding: 2px 0; }
|
|
578
|
+
.aris-key { flex: 0 0 190px; opacity: .7; }
|
|
579
|
+
.aris-value { flex: 1; word-break: break-word; }
|
|
580
|
+
.aris-list { margin: 0; padding-left: 18px; }
|
|
581
|
+
.aris-list li { padding: 1px 0; }
|
|
582
|
+
.aris-note { opacity: .6; font-size: 12px; margin: 8px 0 0; }
|
|
583
|
+
.aris-ok { color: #2ea043; }
|
|
584
|
+
.aris-missing { opacity: .4; }
|
|
585
|
+
.aris-when { opacity: .55; font-size: 12px; }
|
|
586
|
+
.aris-phase { display: flex; gap: 10px; align-items: baseline; padding: 2px 0; }
|
|
587
|
+
.aris-phase-name { flex: 0 0 60px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
588
|
+
.aris-phase-status { flex: 0 0 90px; font-size: 12px; }
|
|
589
|
+
.aris-phase-detail { flex: 1; opacity: .65; font-size: 12px; }
|
|
590
|
+
.aris-phase-artifact { margin-left: 8px; opacity: .8; }
|
|
591
|
+
.aris-run { margin: 0 0 6px; }
|
|
592
|
+
.aris-criticisms { margin-top: 10px; }
|
|
593
|
+
.aris-criticisms .aris-key { margin-bottom: 3px; }
|
|
594
|
+
.aris-status-accepted { color: #2ea043; font-weight: 600; }
|
|
595
|
+
.aris-status-done { color: #bf8700; }
|
|
596
|
+
.aris-status-running { color: #0969da; }
|
|
597
|
+
.aris-status-failed { color: #cf222e; }
|
|
598
|
+
.aris-status-pending, .aris-status-skipped { opacity: .5; }
|
|
599
|
+
`
|
|
600
|
+
|
|
601
|
+
return {
|
|
602
|
+
inject: ['slots', 'connection', 'sessions'],
|
|
603
|
+
apply(ctx) {
|
|
604
|
+
ctx.effect(() => {
|
|
605
|
+
const style = document.createElement('style')
|
|
606
|
+
style.textContent = CSS + WB_CSS
|
|
607
|
+
document.head.append(style)
|
|
608
|
+
return () => { style.remove() }
|
|
609
|
+
}, 'ARIS run-status styles')
|
|
610
|
+
|
|
611
|
+
ctx.slots.inject('conversation.view', () => ctx.slots.register({
|
|
612
|
+
name: 'conversation.view',
|
|
613
|
+
id: 'aris',
|
|
614
|
+
order: 100,
|
|
615
|
+
label: () => 'ARIS',
|
|
616
|
+
}, (props) => h(ArisRunView, {
|
|
617
|
+
sessionId: props.sessionId,
|
|
618
|
+
connection: ctx.connection,
|
|
619
|
+
})))
|
|
620
|
+
|
|
621
|
+
ctx.slots.inject('sidebar.footer.action', () => ctx.slots.register({
|
|
622
|
+
name: 'sidebar.footer.action',
|
|
623
|
+
id: 'aris-workbench',
|
|
624
|
+
label: () => 'ARIS 工作台',
|
|
625
|
+
inject: () => ({ connection: ctx.connection, sessions: ctx.sessions }),
|
|
626
|
+
}, (props) => h(ArisWorkbenchButton, {
|
|
627
|
+
connection: ctx.connection,
|
|
628
|
+
sessions: ctx.sessions,
|
|
629
|
+
sessionId: props.sessionId,
|
|
630
|
+
})))
|
|
631
|
+
},
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
})
|