@louisultra/dsh-verymath 0.0.0-stage → 0.3.2
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/CHANGELOG.md +133 -0
- package/LICENSE +21 -0
- package/NOTICE.md +35 -0
- package/README.md +108 -2
- package/README_EN.md +105 -0
- package/UPSTREAM.json +106 -0
- package/cordis.patch.yml +12 -0
- package/docs/capability-examples.md +581 -0
- package/docs/examples/README.md +32 -0
- package/docs/examples/bad_scan.md +10 -0
- package/docs/examples/broken-proof.lean +9 -0
- package/docs/examples/claims.md +7 -0
- package/docs/examples/knapsack.json +10 -0
- package/docs/examples/matrix.json +1 -0
- package/docs/examples/points.csv +21 -0
- package/docs/examples/qp.json +8 -0
- package/docs/examples/research-ws/project/GOALS.yaml +4 -0
- package/docs/examples/research-ws/workstreams/ws-lsa/report.md +13 -0
- package/docs/examples/research-ws/workstreams/ws-lsa/reviews/r1.json +1 -0
- package/docs/examples/research-ws/workstreams/ws-lsa/status.yaml +1 -0
- package/docs/examples/source.csv +4 -0
- package/lib/core/error.d.ts +20 -0
- package/lib/core/error.js +25 -0
- package/lib/core/gates.d.ts +42 -0
- package/lib/core/gates.js +217 -0
- package/lib/core/glossary.d.ts +101 -0
- package/lib/core/glossary.js +243 -0
- package/lib/core/graph.d.ts +118 -0
- package/lib/core/graph.js +460 -0
- package/lib/core/index.d.ts +120 -0
- package/lib/core/index.js +197 -0
- package/lib/core/paper.d.ts +163 -0
- package/lib/core/paper.js +73 -0
- package/lib/core/paths.d.ts +2 -0
- package/lib/core/paths.js +12 -0
- package/lib/core/sage.d.ts +61 -0
- package/lib/core/sage.js +212 -0
- package/lib/core/skills.d.ts +11 -0
- package/lib/core/skills.js +110 -0
- package/lib/tool/index.d.ts +21 -0
- package/lib/tool/index.js +1144 -0
- package/package.json +92 -4
- package/skills/after-ocr/SKILL.md +123 -0
- package/skills/after-ocr/references/audit-schema.md +94 -0
- package/skills/after-ocr/references/error-taxonomy.md +179 -0
- package/skills/after-ocr/scripts/merge_audit_logs.py +329 -0
- package/skills/after-ocr/scripts/scan_markdown_ocr.py +350 -0
- package/skills/after-ocr/tests/test_scripts.py +84 -0
- package/skills/discover-math-problems/SKILL.md +115 -0
- package/skills/discover-math-problems/references/artifact-contract.md +93 -0
- package/skills/discover-math-problems/references/autonomous-research-protocol.md +86 -0
- package/skills/discover-math-problems/references/conjecture-generation-protocol.md +63 -0
- package/skills/discover-math-problems/references/extremal-graph-variants.md +53 -0
- package/skills/graph-theory-paper-reading/SKILL.md +600 -0
- package/skills/invariant-computation/SKILL.md +169 -0
- package/skills/invariant-computation/examples/invariant_summary.example.json +51 -0
- package/skills/invariant-computation/manifest.yaml +46 -0
- package/skills/invariant-computation/references/INDEX.md +20 -0
- package/skills/invariant-computation/references/failure_modes.md +40 -0
- package/skills/invariant-computation/references/method_route_map.md +177 -0
- package/skills/invariant-computation/references/source_notes.md +19 -0
- package/skills/invariant-computation/references/tool_catalog.md +65 -0
- package/skills/invariant-computation/references/validation_checks.md +52 -0
- package/skills/invariant-computation/schema/invariant_summary.schema.json +260 -0
- package/skills/lean-formalization/SKILL.md +111 -0
- package/skills/lean-formalization/lean-runtime/config/env.example +5 -0
- package/skills/lean-formalization/lean-runtime/config/lean_agent.example.toml +28 -0
- package/skills/lean-formalization/lean-runtime/config/numina_runtime.example.toml +12 -0
- package/skills/lean-formalization/lean-runtime/examples/smoke/LocalLeanSmoke.lean +7 -0
- package/skills/lean-formalization/lean-runtime/prompts/complete_sorries.md +3 -0
- package/skills/lean-formalization/lean-runtime/prompts/formalize_statement.md +3 -0
- package/skills/lean-formalization/lean-runtime/prompts/prove_theorem.md +3 -0
- package/skills/lean-formalization/lean-runtime/prompts/repair_lean_file.md +3 -0
- package/skills/lean-formalization/lean-runtime/references/backend_adapter_checklist.md +36 -0
- package/skills/lean-formalization/lean-runtime/references/direct_lean_workflow.md +48 -0
- package/skills/lean-formalization/lean-runtime/references/failure_taxonomy.md +17 -0
- package/skills/lean-formalization/lean-runtime/references/interactive_orchestration.md +83 -0
- package/skills/lean-formalization/lean-runtime/references/lean_agent_capability_map.md +116 -0
- package/skills/lean-formalization/lean-runtime/references/lean_lsp_mcp_adapter.md +219 -0
- package/skills/lean-formalization/lean-runtime/references/lean_runtime_configuration.md +92 -0
- package/skills/lean-formalization/lean-runtime/references/numina_reverse_analysis.md +80 -0
- package/skills/lean-formalization/lean-runtime/references/numina_runtime.md +41 -0
- package/skills/lean-formalization/lean-runtime/references/numina_subagent_troubleshooting.md +77 -0
- package/skills/lean-formalization/lean-runtime/references/review_checklist.md +10 -0
- package/skills/lean-formalization/lean-runtime/references/specialist_agent_patterns.md +65 -0
- package/skills/lean-formalization/lean-runtime/schemas/config.schema.json +12 -0
- package/skills/lean-formalization/lean-runtime/schemas/result.schema.json +33 -0
- package/skills/lean-formalization/lean-runtime/schemas/task.schema.json +30 -0
- package/skills/lean-formalization/lean-runtime/scripts/ai4m_lean.py +222 -0
- package/skills/lean-formalization/lean-runtime/scripts/check_lean_project.py +134 -0
- package/skills/lean-formalization/lean-runtime/scripts/common.py +296 -0
- package/skills/lean-formalization/lean-runtime/scripts/configure_lean.py +222 -0
- package/skills/lean-formalization/lean-runtime/scripts/detect_sorry.py +49 -0
- package/skills/lean-formalization/lean-runtime/scripts/direct_task.py +100 -0
- package/skills/lean-formalization/lean-runtime/scripts/extract_minimal_failure.py +74 -0
- package/skills/lean-formalization/lean-runtime/scripts/numina_runtime.py +414 -0
- package/skills/lean-formalization/lean-runtime/scripts/smoke_test.py +75 -0
- package/skills/lean-formalization/lean-runtime/scripts/tool_status.py +79 -0
- package/skills/lean-formalization/lean-runtime/scripts/validate_patch.py +81 -0
- package/skills/lean-formalization/lean-runtime/scripts/verify_delivery.py +484 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/after_bad.lean +4 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/after_statement_changed.lean +4 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/before.lean +4 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/failure.lean +7 -0
- package/skills/lean-formalization/lean-runtime/tests/test_check_lean_project.py +59 -0
- package/skills/lean-formalization/lean-runtime/tests/test_cli.py +377 -0
- package/skills/lean-formalization/lean-runtime/tests/test_common_config.py +84 -0
- package/skills/lean-formalization/lean-runtime/tests/test_configure_lean.py +138 -0
- package/skills/lean-formalization/lean-runtime/tests/test_detect_sorry.py +24 -0
- package/skills/lean-formalization/lean-runtime/tests/test_direct_task.py +69 -0
- package/skills/lean-formalization/lean-runtime/tests/test_numina_runtime.py +168 -0
- package/skills/lean-formalization/lean-runtime/tests/test_validate_patch.py +29 -0
- package/skills/lean-setup/SKILL.md +99 -0
- package/skills/least-squares/README.md +85 -0
- package/skills/least-squares/SKILL.md +613 -0
- package/skills/least-squares/examples.md +380 -0
- package/skills/math-beamer/SKILL.md +325 -0
- package/skills/math-beamer/references/build-and-layout-audit.md +63 -0
- package/skills/math-beamer/references/math-domain-patterns.md +56 -0
- package/skills/math-beamer/references/template-policy.md +43 -0
- package/skills/math-beamer/references/template-source-index.md +51 -0
- package/skills/math-beamer/templates/catalog.yaml +235 -0
- package/skills/math-beamer/templates/packs/algebra-number-theory-talk/main.tex +45 -0
- package/skills/math-beamer/templates/packs/algebra-number-theory-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/algorithm-talk/main.tex +43 -0
- package/skills/math-beamer/templates/packs/algorithm-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/analysis-core-talk/main.tex +49 -0
- package/skills/math-beamer/templates/packs/analysis-core-talk/template.yaml +19 -0
- package/skills/math-beamer/templates/packs/backup-heavy-talk/main.tex +40 -0
- package/skills/math-beamer/templates/packs/backup-heavy-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/beamerposter-a0/main.tex +45 -0
- package/skills/math-beamer/templates/packs/beamerposter-a0/template.yaml +12 -0
- package/skills/math-beamer/templates/packs/combinatorics-graph-talk/main.tex +53 -0
- package/skills/math-beamer/templates/packs/combinatorics-graph-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/control-systems-talk/main.tex +51 -0
- package/skills/math-beamer/templates/packs/control-systems-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/course-lecture-zh/main.tex +43 -0
- package/skills/math-beamer/templates/packs/course-lecture-zh/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/data-experiment-results/main.tex +45 -0
- package/skills/math-beamer/templates/packs/data-experiment-results/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/dynamical-systems-talk/main.tex +42 -0
- package/skills/math-beamer/templates/packs/dynamical-systems-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/geometry-topology-talk/main.tex +43 -0
- package/skills/math-beamer/templates/packs/geometry-topology-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/information-coding-crypto-talk/main.tex +49 -0
- package/skills/math-beamer/templates/packs/information-coding-crypto-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/logic-foundations-category-talk/main.tex +51 -0
- package/skills/math-beamer/templates/packs/logic-foundations-category-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/numerical-analysis-talk/main.tex +51 -0
- package/skills/math-beamer/templates/packs/numerical-analysis-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/optimization-talk/main.tex +58 -0
- package/skills/math-beamer/templates/packs/optimization-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/pde-analysis-talk/main.tex +49 -0
- package/skills/math-beamer/templates/packs/pde-analysis-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/probability-statistics-talk/main.tex +52 -0
- package/skills/math-beamer/templates/packs/probability-statistics-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/reading-group-paper/main.tex +46 -0
- package/skills/math-beamer/templates/packs/reading-group-paper/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-en/main.tex +60 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-en/template.yaml +13 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-zh/main.tex +60 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-zh/template.yaml +13 -0
- package/skills/math-beamer/templates/packs/theorem-proof-talk/main.tex +60 -0
- package/skills/math-beamer/templates/packs/theorem-proof-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/thesis-defense/main.tex +42 -0
- package/skills/math-beamer/templates/packs/thesis-defense/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/workshop-tutorial/main.tex +32 -0
- package/skills/math-beamer/templates/packs/workshop-tutorial/template.yaml +9 -0
- package/skills/math-beamer/templates/preview-gallery.md +32 -0
- package/skills/math-beamer/templates/previews/algebra-number-theory-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/algebra-number-theory-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/algorithm-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/algorithm-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/analysis-core-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/analysis-core-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/backup-heavy-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/backup-heavy-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/beamerposter-a0-content.png +0 -0
- package/skills/math-beamer/templates/previews/beamerposter-a0-cover.png +0 -0
- package/skills/math-beamer/templates/previews/combinatorics-graph-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/combinatorics-graph-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/control-systems-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/control-systems-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/course-lecture-zh-content.png +0 -0
- package/skills/math-beamer/templates/previews/course-lecture-zh-cover.png +0 -0
- package/skills/math-beamer/templates/previews/data-experiment-results-content.png +0 -0
- package/skills/math-beamer/templates/previews/data-experiment-results-cover.png +0 -0
- package/skills/math-beamer/templates/previews/dynamical-systems-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/dynamical-systems-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/geometry-topology-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/geometry-topology-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/information-coding-crypto-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/information-coding-crypto-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/logic-foundations-category-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/logic-foundations-category-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/numerical-analysis-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/numerical-analysis-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/optimization-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/optimization-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/pde-analysis-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/pde-analysis-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/probability-statistics-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/probability-statistics-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/reading-group-paper-content.png +0 -0
- package/skills/math-beamer/templates/previews/reading-group-paper-cover.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-en-content.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-en-cover.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-zh-content.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-zh-cover.png +0 -0
- package/skills/math-beamer/templates/previews/theorem-proof-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/theorem-proof-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/thesis-defense-content.png +0 -0
- package/skills/math-beamer/templates/previews/thesis-defense-cover.png +0 -0
- package/skills/math-beamer/templates/previews/workshop-tutorial-content.png +0 -0
- package/skills/math-beamer/templates/previews/workshop-tutorial-cover.png +0 -0
- package/skills/math-beamer/templates/review-report.md +54 -0
- package/skills/math-beamer/templates/slide-source-ledger.md +22 -0
- package/skills/math-beamer/templates/source-packet.md +50 -0
- package/skills/math-glossary/SKILL.md +347 -0
- package/skills/math-glossary/references/glossary-schema.md +71 -0
- package/skills/math-glossary/references/glossary-usage-guide.md +176 -0
- package/skills/math-glossary/references/glossary-web-template.md +127 -0
- package/skills/math-glossary/references/glossary.schema.json +76 -0
- package/skills/math-glossary/references/user-manual.md +435 -0
- package/skills/math-glossary/requirements-ai.txt +3 -0
- package/skills/math-glossary/requirements.txt +3 -0
- package/skills/math-glossary/scripts/glossary_backup.py +42 -0
- package/skills/math-glossary/scripts/glossary_build.py +467 -0
- package/skills/math-glossary/scripts/glossary_enrich_examples.py +283 -0
- package/skills/math-glossary/scripts/glossary_export.py +333 -0
- package/skills/math-glossary/scripts/glossary_web.py +1265 -0
- package/skills/math-paper-reading/README.md +163 -0
- package/skills/math-paper-reading/SKILL.md +48 -0
- package/skills/math-paper-reading/agent_router.md +36 -0
- package/skills/math-paper-reading/references/proof_pattern_taxonomy.md +123 -0
- package/skills/math-paper-reading/references/quality_rubric.md +36 -0
- package/skills/math-paper-reading/skill_base.md +627 -0
- package/skills/math-paper-reading/skill_literature_search.md +866 -0
- package/skills/math-paper-reading/skill_paper_deep_read.md +1024 -0
- package/skills/math-paper-reading/skill_pathway_proof.md +718 -0
- package/skills/math-paper-reading/skill_reference_manager.md +746 -0
- package/skills/matlab-runner/SKILL.md +217 -0
- package/skills/matlab-runner/examples/README.md +33 -0
- package/skills/matlab-runner/examples/matrix_report.m +28 -0
- package/skills/matlab-runner/examples/plot_damped_sine.m +64 -0
- package/skills/matlab-runner/examples/test_vector_norm.m +12 -0
- package/skills/matlab-runner/references/client-setup.md +24 -0
- package/skills/matlab-runner/references/file-session-safety.md +86 -0
- package/skills/matlab-runner/references/numerical-safety.md +126 -0
- package/skills/matlab-runner/references/resource-safety.md +125 -0
- package/skills/mixed-integer-programming/SKILL.md +119 -0
- package/skills/mixed-integer-programming/lp-examples.md +251 -0
- package/skills/mixed-integer-programming/mip-examples-verified.md +118 -0
- package/skills/open-problem-research-pipeline/SKILL.md +76 -0
- package/skills/open-problem-research-pipeline/skill_literature_analysis.md +201 -0
- package/skills/open-problem-research-pipeline/skill_literature_proof_framework.md +206 -0
- package/skills/open-problem-research-pipeline/skill_literature_search.md +172 -0
- package/skills/open-problem-research-pipeline/skill_qskill.md +177 -0
- package/skills/osqp-solver/SKILL.md +245 -0
- package/skills/osqp-solver/references/citation.md +25 -0
- package/skills/osqp-solver/references/dual-infeasible-example.json +14 -0
- package/skills/osqp-solver/references/feasible-example.json +21 -0
- package/skills/osqp-solver/references/primal-infeasible-example.json +17 -0
- package/skills/osqp-solver/references/python-api.md +95 -0
- package/skills/osqp-solver/references/verification.md +94 -0
- package/skills/osqp-solver/scripts/check_osqp_environment.py +120 -0
- package/skills/osqp-solver/scripts/solve_qp.py +943 -0
- package/skills/paper-writing/SKILL.md +115 -0
- package/skills/paper-writing/skill_claim_evidence_ledger.md +55 -0
- package/skills/paper-writing/skill_formula_environment_and_readability.md +41 -0
- package/skills/paper-writing/skill_latex_build_and_layout_audit.md +73 -0
- package/skills/paper-writing/skill_notation_and_variable_consistency.md +42 -0
- package/skills/paper-writing/skill_paper_skeleton_and_logical_architecture.md +54 -0
- package/skills/paper-writing/skill_proof_obligation_and_assumption_audit.md +57 -0
- package/skills/paper-writing/templates/claim-evidence-ledger.md +23 -0
- package/skills/paper-writing/templates/proof-obligation-ledger.md +22 -0
- package/skills/paper-writing/templates/rapid-prototype-paper-skeleton.md +46 -0
- package/skills/paper-writing/templates/source-packet.md +37 -0
- package/skills/paper-writing/templates/submission-readiness.md +41 -0
- package/skills/proof-blueprint-review/SKILL.md +129 -0
- package/skills/proof-blueprint-review/references/agent-mediated-proof-protocol.md +57 -0
- package/skills/proof-blueprint-review/references/generation-agent.md +45 -0
- package/skills/proof-blueprint-review/references/proof-acceptance-contract.md +41 -0
- package/skills/proof-blueprint-review/references/verification-agent.md +37 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
5
|
+
|
|
6
|
+
## [0.3.2] - 2026-10-19
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- `verymath_research_gate` `goal_approval`: the `details` payload carried an
|
|
11
|
+
`undefined` `goalId`, which the tool output contract rejects as
|
|
12
|
+
"value is not lossless JSON" whenever the gate ran without an explicit
|
|
13
|
+
goalId. Found by a real run during capability-example verification; covered
|
|
14
|
+
by two regression tests.
|
|
15
|
+
- `lean-formalization` DSH notes referenced `verymath_lean_review` and
|
|
16
|
+
`verymath_lean_check`, which do not exist; patch review and environment
|
|
17
|
+
checks go through the bundled `ai4m_lean.py` script instead.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- `docs/capability-examples.md`: all 14 capabilities documented with the
|
|
22
|
+
five-field scenario structure and real verification records (macOS).
|
|
23
|
+
|
|
24
|
+
## [0.3.1] - 2026-10-16
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- `verymath_beamer_check`: TeX toolchain probe for the math-beamer skill
|
|
29
|
+
(latexmk, xelatex, forest/ctex packages via kpsewhich; per-piece detail +
|
|
30
|
+
install hint, installs nothing) — closes the README's promised next step.
|
|
31
|
+
- Paper-to-skill appendix (review decision): `proof_pattern_taxonomy.md` +
|
|
32
|
+
`quality_rubric.md` copied verbatim into `math-paper-reading/references/`
|
|
33
|
+
as deep-read references; L3 consults the proof-pattern taxonomy, L4 can
|
|
34
|
+
score methods with the quality rubric. The full paper-to-skill chain
|
|
35
|
+
stays unbundled (MinerU cloud-API privacy).
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- MATLAB desktop-attachment status: the earlier "existing/auto modes crash"
|
|
40
|
+
claim was a test-client framing artifact (Content-Length framing vs the
|
|
41
|
+
MCP newline-delimited JSON stdio contract), not a server bug. Clean
|
|
42
|
+
reproduction with the official dsh-mcp-client shows desktop attach works
|
|
43
|
+
on v0.14.0 and v0.12.0; docs corrected (`docs/matlab-connection-status.md`).
|
|
44
|
+
The matlab-runner skill now documents the desktop-attach execution path.
|
|
45
|
+
|
|
46
|
+
### Added (0.3.1 round — tools and skills)
|
|
47
|
+
|
|
48
|
+
- Sage environment note: miniforge `sage=10.9` installed on the development
|
|
49
|
+
machine; the upstream runner works via `SAGE_PYTHON` with Python-form
|
|
50
|
+
syntax (preparser constructs like `x^2` are correctly rejected per the
|
|
51
|
+
contract). This package exposes corpus search only; running Sage code is
|
|
52
|
+
the user's own environment.
|
|
53
|
+
|
|
54
|
+
- `verymath_research_gate`: three-gate validation for Co-Mathematician-style
|
|
55
|
+
research workspaces (goal approval / workstream completion / final render),
|
|
56
|
+
ported from the documented upstream file contract (report.md mandatory
|
|
57
|
+
sections, independent-reviewer rule, blocking-review resolution).
|
|
58
|
+
- `verymath_sage_check` / `verymath_sage_search`: clean-room TypeScript corpus
|
|
59
|
+
search over the separately-distributed CC BY-SA SageMath docs (the
|
|
60
|
+
Sagemath-skill repository itself is GPLv3 and is not bundled).
|
|
61
|
+
- `verymath_osqp_check` / `verymath_osqp_solve`: OSQP stack probe + JSON
|
|
62
|
+
contract QP solving with independent verification.
|
|
63
|
+
- Bundled skills: `osqp-solver`, `mixed-integer-programming` (repaired),
|
|
64
|
+
`matlab-runner`, `math-beamer` (23 template packs).
|
|
65
|
+
|
|
66
|
+
## [0.3.0] - 2026-10-15
|
|
67
|
+
|
|
68
|
+
### Added
|
|
69
|
+
|
|
70
|
+
- **13 bundled skills** covering the six issue-#152 directions:
|
|
71
|
+
- Paper reading: `math-paper-reading` (v4.2), `graph-theory-paper-reading`,
|
|
72
|
+
`after-ocr` (all from AI4Math-Paper-Reading).
|
|
73
|
+
- Glossary: `math-glossary` (AI4Math-MathTool v0.1.0).
|
|
74
|
+
- Writing: `paper-writing` with six flattened sub-skill modules
|
|
75
|
+
(AI4Math-Writing).
|
|
76
|
+
- Research workflow: `discover-math-problems`, `proof-blueprint-review`,
|
|
77
|
+
`open-problem-research-pipeline` (AI4Math-Auto-Research).
|
|
78
|
+
- Optimization: `osqp-solver` (AI4Math-Optimization).
|
|
79
|
+
- Computation: `least-squares`, `invariant-computation`
|
|
80
|
+
(AI4Math-Computational-Mathematics).
|
|
81
|
+
- Formalization: `lean-formalization` (with embedded lean-runtime support
|
|
82
|
+
layer), `lean-setup` (AI4Math-Lean-Agents).
|
|
83
|
+
- **10 model-facing tools**: `verymath_glossary_query`,
|
|
84
|
+
`verymath_glossary_upsert`, `verymath_glossary_build`,
|
|
85
|
+
`verymath_python_check`, `verymath_osqp_check`, `verymath_osqp_solve`,
|
|
86
|
+
`verymath_ocr_scan`, `verymath_lean_detect_sorry`, `verymath_paper_validate`,
|
|
87
|
+
`verymath_paper_graph` (with `focus` transitive closure and Mermaid
|
|
88
|
+
rendering). `verymath_sage_check`/`verymath_sage_search`,
|
|
89
|
+
`verymath_research_gate`, and `verymath_beamer_check` followed in the
|
|
90
|
+
0.3.1 round (see above), bringing the current total to 14.
|
|
91
|
+
- Package-hygiene tests ported from upstream `test_course_skills.py`
|
|
92
|
+
(no machine-local paths/secrets in skills, no tool caches).
|
|
93
|
+
|
|
94
|
+
### Fixed
|
|
95
|
+
|
|
96
|
+
- Glossary behavior gaps from the upstream contract: `verymath_glossary_upsert`
|
|
97
|
+
documented in the skill's DSH tool table, translation-agent trigger restored,
|
|
98
|
+
`requirements-ai.txt` shipped, exit 2/3 surfaced as structured outcomes
|
|
99
|
+
(`needs-force` / `partial`) instead of exceptions.
|
|
100
|
+
|
|
101
|
+
## [0.2.0] - 2026-10-15
|
|
102
|
+
|
|
103
|
+
### Added
|
|
104
|
+
|
|
105
|
+
- `verymath_paper_graph`: deterministic dependency-graph engine (batch merge,
|
|
106
|
+
cited_by rebuild, shared_node, cycles, both reading directions, focus
|
|
107
|
+
transitive closure, degraded Mermaid rendering) — replaces the upstream
|
|
108
|
+
model-generated Python scripts on the DSH path.
|
|
109
|
+
- `verymath_glossary_upsert`: invariant-preserving glossary read/write loop.
|
|
110
|
+
- Glossary query: example sentences and subfield disambiguation filter.
|
|
111
|
+
|
|
112
|
+
### Fixed
|
|
113
|
+
|
|
114
|
+
- Glossary cache is invalidated after `verymath_glossary_build` (stale reads).
|
|
115
|
+
- `total` in query results now counts deduplicated candidates before the limit.
|
|
116
|
+
- Bundled skills route to `verymath_paper_graph` first, keeping the Python
|
|
117
|
+
script flow only as a non-DSH fallback.
|
|
118
|
+
|
|
119
|
+
## [0.1.0] - 2026-10-14
|
|
120
|
+
|
|
121
|
+
### Added
|
|
122
|
+
|
|
123
|
+
- VeryMath capability seam (`ctx.verymath`): glossary loading, validation,
|
|
124
|
+
caching, bilingual querying, Python discovery, and script execution.
|
|
125
|
+
- Model-facing tools: `verymath_glossary_query`, `verymath_glossary_build`,
|
|
126
|
+
`verymath_python_check`, and `verymath_paper_validate`.
|
|
127
|
+
- Bundled skills adapted from VeryMath: `math-glossary` (v0.1.0 upstream) and
|
|
128
|
+
`math-paper-reading` (v4.2 upstream), registered through the DSH skill
|
|
129
|
+
registry with directory resource bases.
|
|
130
|
+
- Paper-structure contract aligned with the upstream v4.2
|
|
131
|
+
`<slug>_structure.json` schema, including dependency-integrity validation.
|
|
132
|
+
- Synthetic vitest suite plus a runtime probe against the real DSH
|
|
133
|
+
`0.2.0-rc.2` plugin API surface.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LouisUltra (dsh-verymath)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Notices
|
|
2
|
+
|
|
3
|
+
This package contains code and skill content adapted from third-party sources.
|
|
4
|
+
|
|
5
|
+
## VeryMath AI4Math-MathTool (`math-glossary`)
|
|
6
|
+
|
|
7
|
+
- Source: https://github.com/VeryMath/AI4Math-MathTool
|
|
8
|
+
- Directory adapted: `skills/math-glossary/` (SKILL.md, scripts/, references/, tests/)
|
|
9
|
+
- License: MIT (see the upstream repository)
|
|
10
|
+
- Adapted commit: recorded in `UPSTREAM.json`
|
|
11
|
+
- Changes: SKILL.md trigger text and script invocation guidance adapted for the
|
|
12
|
+
DSH tool surface (`verymath_glossary_*` tools); Python scripts are included
|
|
13
|
+
verbatim. Skill content and scripts remain under the upstream MIT license;
|
|
14
|
+
this NOTICE and UPSTREAM.json record the provenance.
|
|
15
|
+
|
|
16
|
+
## VeryMath AI4Math-Paper-Reading (`math-paper-reading`, `graph-theory-paper-reading`, `after-ocr`)
|
|
17
|
+
|
|
18
|
+
- Source: https://github.com/VeryMath/AI4Math-Paper-Reading
|
|
19
|
+
- Directories adapted: `skills/math-paper-reading/` (agent_router.md, skill_*.md);
|
|
20
|
+
`skills/math-paper-reading/references/` (proof_pattern_taxonomy.md, quality_rubric.md —
|
|
21
|
+
verbatim copies of the upstream `paper-to-skill-extractor/references/` files, bundled as
|
|
22
|
+
deep-read appendix references per the review decision);
|
|
23
|
+
`skills/graph-theory-paper-reading/SKILL.md` (verbatim + DSH notes);
|
|
24
|
+
`skills/after-ocr/` (SKILL.md, scripts/, references/, tests/ verbatim + DSH notes)
|
|
25
|
+
- License: MIT (see the upstream repository)
|
|
26
|
+
- Adapted commit: recorded in `UPSTREAM.json`
|
|
27
|
+
- Changes: routing text adapted for DSH (skill invocation, workspace artifact
|
|
28
|
+
conventions, and the optional `verymath_paper_validate` tool); the analysis
|
|
29
|
+
methodology and output contracts are unchanged and remain under the upstream
|
|
30
|
+
MIT license.
|
|
31
|
+
|
|
32
|
+
## Remaining code
|
|
33
|
+
|
|
34
|
+
All other source files in this package are original work, MIT licensed (see
|
|
35
|
+
`LICENSE`).
|
package/README.md
CHANGED
|
@@ -1,3 +1,109 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-verymath
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**简体中文** | [English](README_EN.md)
|
|
4
|
+
|
|
5
|
+
<p align="center"><strong>VeryMath 数学科研能力接入 DSH / EduWork 的社区插件。</strong><br><sub>双语数学术语库 · 数学论文结构化阅读 · 技能与工具一体</sub></p>
|
|
6
|
+
|
|
7
|
+
`@louisultra/dsh-verymath` 把 [VeryMath](https://github.com/orgs/VeryMath/repositories) 的 AI4Math 技能与工具封装为 [DeepSeek Harness(DSH)](https://github.com/deepseek-ai/deepseek-harness)插件,适用于 [EduWork](https://github.com/ECNU/EduWork) 及其他 DSH 0.2.x 宿主。对应 [ECNU/EduWork#152](https://github.com/ECNU/EduWork/issues/152) 的首批场景。
|
|
8
|
+
|
|
9
|
+
## 提供的能力
|
|
10
|
+
|
|
11
|
+
**模型工具**(安装即用,Agent 自动调用):
|
|
12
|
+
|
|
13
|
+
| 工具 | 用途 |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `verymath_glossary_query` | 查询双语(英中)数学术语库 JSON:精确、前缀、子串、term_id、子领域匹配;返回例句,支持按子领域过滤消歧。 |
|
|
16
|
+
| `verymath_glossary_build` | 运行上游 `math-glossary` Python 脚本,从 CSV/TSV/JSON/YAML 构建或扩充术语库。 |
|
|
17
|
+
| `verymath_glossary_upsert` | 读论文/翻译时顺手存词:自动维护 term_id、排序与连续 idx 等合同不变量,无需手改 JSON。 |
|
|
18
|
+
| `verymath_python_check` | 检查本机 Python 3 可用性并给出安装提示。 |
|
|
19
|
+
| `verymath_paper_validate` | 校验 `math-paper-reading` 产出的 `<slug>_structure.json`(实体类型、依赖完整性)。 |
|
|
20
|
+
| `verymath_paper_graph` | 论文依赖图引擎:批次合并、`cited_by` 重建、`shared_node` 枢纽、环检测、双向阅读路径、`focus` 传递闭包、Mermaid 渲染(>40 实体自动降级)。 |
|
|
21
|
+
| `verymath_ocr_scan` | OCR Markdown 错误候选定位(胶连算符/字体误识/美元失衡/环境失配等 22 类规则;候选仅供 after-ocr 逐段审校,需 Python)。 |
|
|
22
|
+
| `verymath_osqp_check` / `verymath_osqp_solve` | OSQP 求解栈探测(主版本门 >=1,<2)/ JSON 契约 QP 求解:11 态状态门 + 独立 KKT 与不可行证书验证(需 osqp Python 栈)。 |
|
|
23
|
+
| `verymath_lean_detect_sorry` | Lean 文件的 sorry/admit/axiom 禁用词扫描——**无需 Lean 工具链**(需要本机 Python 3,脚本随包),patch 验收安全门。 |
|
|
24
|
+
| `verymath_research_gate` | 研究工作区三道闸门校验(目标批准/工作流完成/最终渲染):report.md 强制三节、独立审阅人、阻断性评审解决状态——纯文件契约校验。 |
|
|
25
|
+
| `verymath_sage_check` / `verymath_sage_search` | SageMath 文档语料 + 二进制探测 / 3196 篇官方文档的**反幻觉 API 查询**。语料取自 SageMath 官方 Sphinx 参考手册(10.9.beta9,CC BY-SA 3.0),默认放 `~/.verymath/sagemath-corpus`,可用 `VERYMATH_SAGE_CORPUS` 覆盖;只查文档、**不提供 Sage 代码执行**。Sagemath-skill 本体(GPLv3)未收录,查询与打分逻辑是干净房间 TS 重实现。 |
|
|
26
|
+
| `verymath_beamer_check` | math-beamer 编译前的 TeX 工具链探测:latexmk、xelatex(中文模板需要)、forest/ctex 宏包(kpsewhich 定位);不安装不编译,缺件时给安装提示并要求只交付 .tex 源码。 |
|
|
27
|
+
|
|
28
|
+
每一项能力的**场景示例**(谁在什么情况下用、可复制的提示词、输入样例、预期产物、运行条件与验证情况)见 [`docs/capability-examples.md`](docs/capability-examples.md)。
|
|
29
|
+
|
|
30
|
+
**随包技能**(注册进 DSH 技能目录,模型与用户均可触发):
|
|
31
|
+
|
|
32
|
+
| 技能 | 用途 | 上游 |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
| `math-glossary` | 从 PDF/词典/表格构建、维护、查询双语术语库的完整工作流。 | [AI4Math-MathTool](https://github.com/VeryMath/AI4Math-MathTool) `math-glossary` v0.1.0 |
|
|
35
|
+
| `math-paper-reading` | 论文结构化提取、定理依赖分析、深读、文献检索、引用管理。 | [AI4Math-Paper-Reading](https://github.com/VeryMath/AI4Math-Paper-Reading) v4.2 |
|
|
36
|
+
| `graph-theory-paper-reading` | 图论论文六维深读与证明树 LaTeX 报告。 | [AI4Math-Paper-Reading](https://github.com/VeryMath/AI4Math-Paper-Reading) |
|
|
37
|
+
| `after-ocr` | 公式密集 OCR Markdown 的通篇审校与修复纪律。 | [AI4Math-Paper-Reading](https://github.com/VeryMath/AI4Math-Paper-Reading) |
|
|
38
|
+
| `paper-writing` | 有源可溯的数学论文写作:骨架、断言-证据台账、义务审计、符号一致性。 | [AI4Math-Writing](https://github.com/VeryMath/AI4Math-Writing) |
|
|
39
|
+
| `discover-math-problems` | 从模糊背景到问题菜单、猜想格与工作订单的数学问题发现。 | [AI4Math-Auto-Research](https://github.com/VeryMath/AI4Math-Auto-Research) |
|
|
40
|
+
| `proof-blueprint-review` | 证明蓝图生成与验证者式审查(生成/验证角色分离)。 | [AI4Math-Auto-Research](https://github.com/VeryMath/AI4Math-Auto-Research) |
|
|
41
|
+
| `open-problem-research-pipeline` | 开放问题的检索→方法分析→证明框架→报告四段工作流。 | [AI4Math-Auto-Research](https://github.com/VeryMath/AI4Math-Auto-Research) |
|
|
42
|
+
| `least-squares` | 最小二乘拟合与参数估计(OLS/WLS/正则化/非线性/贝叶斯,12 级降级链)。 | [AI4Math-Computational-Mathematics](https://github.com/VeryMath/AI4Math-Computational-Mathematics) |
|
|
43
|
+
| `invariant-computation` | 代数/拓扑/几何不变量的计算路由与证据报告(审批式环境安装)。 | [AI4Math-Computational-Mathematics](https://github.com/VeryMath/AI4Math-Computational-Mathematics) |
|
|
44
|
+
| `mixed-integer-programming` | MILP 建模求解:背包/指派等实测示例(PuLP+CBC)+ 恢复的上游 LP 示例。 | [AI4Math-Optimization](https://github.com/VeryMath/AI4Math-Optimization)(已修复错版示例) |
|
|
45
|
+
| `matlab-runner` | MATLAB 执行路由/安全/报告层——经 MathWorks 官方 MCP server 驱动本机 MATLAB(需用户自装 MATLAB + license)。 | [AI4Math-MathTool](https://github.com/VeryMath/AI4Math-MathTool) |
|
|
46
|
+
| `math-beamer` | 数学 Beamer 幻灯片:23 模板包(中英/学科分类)、4 闸门引导流程、slide-source-ledger 溯源。 | [AI4Math-Writing](https://github.com/VeryMath/AI4Math-Writing) |
|
|
47
|
+
| `lean-formalization` | Lean 4 形式化、证明修复、sorry 补全与 patch 审查(编码代理优先,GB 级工具链留在用户机器)。 | [AI4Math-Lean-Agents](https://github.com/VeryMath/AI4Math-Lean-Agents) |
|
|
48
|
+
| `lean-setup` | Lean/elan/lake/mathlib 工作区的检测、安装引导与两级就绪度报告。 | [AI4Math-Lean-Agents](https://github.com/VeryMath/AI4Math-Lean-Agents) |
|
|
49
|
+
|
|
50
|
+
> 暂缓接入(理由与升级路径见 `docs/integration-matrix.md`):Sagemath-skill 技能本体(GPLv3;查询能力已按
|
|
51
|
+
> 评审结论以干净房间 TS 重实现,语料独立分发)、paper-to-skill 全链(MinerU 云 API 隐私考量;本地 mineru 可选)、
|
|
52
|
+
> agent-laboratory-workflow(外部 LLM API+重部署)、scientific-computing-reproduction(Codex 生态耦合,零依赖脚本按需摘取)、
|
|
53
|
+
> co-mathematician(独立 App,仅提炼概念)、textbook-copilot(Apache-2.0 独立应用)。
|
|
54
|
+
|
|
55
|
+
技能承载方法论,工具承载确定性执行;与 DSH 会话、工作区、沙箱和 `literature` 等其他插件天然协作(如用 `literature_fulltext` 下载论文全文,再交给 `math-paper-reading` 分析)。
|
|
56
|
+
|
|
57
|
+
## 安装与使用
|
|
58
|
+
|
|
59
|
+
要求 Node.js `24.18.0+` 与 DSH `0.2.x(从 0.2.0-rc.1 起)`。
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
dsh plugin --profile <你的profile> add @louisultra/dsh-verymath
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
或从源码构建:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
git clone https://github.com/LouisUltra/dsh-verymath.git
|
|
69
|
+
cd dsh-verymath
|
|
70
|
+
npm install && npm run check && npm pack
|
|
71
|
+
dsh plugin --profile <你的profile> add ./louisultra-dsh-verymath-<version>.tgz
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
之后在会话中直接说"帮我查一下 manifold 的中文术语"/"读一下这篇论文的结构"即可。产物(`glossary.json`、`<slug>_structure.json`、结构分析报告)全部写入当前会话工作区。
|
|
75
|
+
|
|
76
|
+
### 依赖说明
|
|
77
|
+
|
|
78
|
+
- **查询与论文校验**:无需任何外部依赖。
|
|
79
|
+
- **术语库构建/导出**(`verymath_glossary_build`):需要本地 Python 3 与上游脚本依赖(`PyYAML`;Excel 导出另需 `openpyxl`,Web 管理界面另需 `Flask`)。缺失时先用 `verymath_python_check` 检查并按提示安装;插件不捆绑 Python。
|
|
80
|
+
- **平台**:仅在 macOS(Apple Silicon)验证过(DSH CLI 沙箱 + EduWork 0.4.3 桌面端实际装载)。**Windows 未测试**:代码依赖 Node 与 Python 的 PATH,但路径与二进制发现逻辑在 Windows 上未验证,涉及 TeX、MATLAB、osqp 等外部环境的场景尤其如此。
|
|
81
|
+
|
|
82
|
+
## 从源码开发
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
npm run typecheck # tsc --noEmit
|
|
86
|
+
npm run build # tsc → lib/
|
|
87
|
+
npm test # vitest 合成测试(不联网)
|
|
88
|
+
npm run test:runtime # 真实 DSH API 探针(合成数据,不调用模型)
|
|
89
|
+
npm run check # 全部
|
|
90
|
+
npm run test:upstream # 上游 math-glossary 离线测试(需把 VeryMath 的 AI4Math-MathTool 仓库
|
|
91
|
+
# 克隆到与本仓库同级的 research/ 下;仅开发机可用,不随 npm 包分发)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## 许可与来源
|
|
95
|
+
|
|
96
|
+
本包 MIT 许可(`LICENSE`)。技能内容与 Python 脚本改编自 VeryMath 的 MIT 项目,来源提交与适配范围见 `UPSTREAM.json`,归属详情见 `NOTICE.md`。感谢 VeryMath 团队与上游贡献者。
|
|
97
|
+
|
|
98
|
+
## 相对上游 VeryMath 的差异
|
|
99
|
+
|
|
100
|
+
- **论文依赖图工具化**:上游 `skill_base`/`skill_pathway_proof` 明文要求"严禁大模型手工遍历拼接 JSON",但上游仓库并未提供合并/拓扑脚本(模型每次现场生成)。本插件用 TypeScript 实现了确定性引擎(`verymath_paper_graph`),论文阅读关键路径不再依赖 Python。
|
|
101
|
+
- **术语读写闭环**:`verymath_glossary_upsert` 自动维护上游合同的不变量(term_id 派生、排序、连续 idx),上游只能靠模型手改 JSON。
|
|
102
|
+
- **消歧支持**:查询返回例句、支持按子领域过滤,对应上游 usage-guide 的消歧策略(上游 DSH 化后原本无法执行)。
|
|
103
|
+
- **验证边界**:本插件做结构层验证(依赖完整性、环检测、断链/孤立节点),不验证数学证明的正确性——这与上游 `skill_base` 的能力边界声明一致。
|
|
104
|
+
|
|
105
|
+
## 已知限制
|
|
106
|
+
|
|
107
|
+
- 术语库的 MDX 词典、OCR 扫描件与 Web 管理界面走技能工作流(shell),未纳入插件工具。
|
|
108
|
+
- 术语库构建/导出仍需 Python(查询、存词、论文图引擎均不需要)。
|
|
109
|
+
- 上游仍在活跃演进;适配的上游版本以 `UPSTREAM.json` 记录为准。
|
package/README_EN.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# dsh-verymath
|
|
2
|
+
|
|
3
|
+
**English** | [简体中文](README.md)
|
|
4
|
+
|
|
5
|
+
<p align="center"><strong>Community plugin bringing VeryMath math-research capabilities to DSH / EduWork.</strong><br><sub>Bilingual math glossary · structured paper reading · skills + tools in one package</sub></p>
|
|
6
|
+
|
|
7
|
+
`@louisultra/dsh-verymath` packages the VeryMath AI4Math skills and tools as a [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) plugin for [EduWork](https://github.com/ECNU/EduWork) and other DSH 0.2.x hosts. It addresses the first-phase scenarios of [ECNU/EduWork#152](https://github.com/ECNU/EduWork/issues/152).
|
|
8
|
+
|
|
9
|
+
## What it provides
|
|
10
|
+
|
|
11
|
+
**Model-facing tools** (available right after install; the Agent calls them automatically):
|
|
12
|
+
|
|
13
|
+
| Tool | Purpose |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `verymath_glossary_query` | Query a bilingual (English-Chinese) math glossary JSON: exact, prefix, substring, term_id, and subfield matching; returns examples and supports subfield disambiguation. |
|
|
16
|
+
| `verymath_glossary_build` | Run the upstream `math-glossary` Python scripts to build or extend a glossary from CSV/TSV/JSON/YAML. |
|
|
17
|
+
| `verymath_glossary_upsert` | Save terms while reading/translating: maintains contract invariants (term_id, ordering, contiguous idx) automatically — no hand-editing of glossary.json. |
|
|
18
|
+
| `verymath_python_check` | Check local Python 3 availability and surface installation hints. |
|
|
19
|
+
| `verymath_paper_validate` | Validate `math-paper-reading` `<slug>_structure.json` artifacts (entity kinds, dependency integrity). |
|
|
20
|
+
| `verymath_paper_graph` | Paper dependency-graph engine: batch merging, `cited_by` reconstruction, `shared_node` hubs, cycle detection, both reading directions, `focus` transitive closure, Mermaid rendering (auto-degrades above 40 entities). |
|
|
21
|
+
| `verymath_ocr_scan` | OCR Markdown error-candidate locator (22 rule categories: glued operators, font misreads, dollar imbalance, environment mismatches; candidates only, for the after-ocr review protocol; needs Python). |
|
|
22
|
+
| `verymath_osqp_check` / `verymath_osqp_solve` | OSQP stack probe (major-version gate >=1,<2) / JSON-contract QP solving with 11-state status gates and independent KKT/certificate verification (needs the osqp Python stack). |
|
|
23
|
+
| `verymath_lean_detect_sorry` | Scans Lean files for sorry/admit/axiom — **no Lean toolchain needed** (requires local Python 3; the script ships with the package), a patch acceptance gate. |
|
|
24
|
+
| `verymath_research_gate` | Three-gate validation for research workspaces (goal approval / workstream completion / final render): mandatory report.md sections, independent-reviewer rule, blocking-review resolution — pure file-contract validation. |
|
|
25
|
+
| `verymath_sage_check` / `verymath_sage_search` | SageMath docs-corpus + binary probe / anti-hallucination API lookup across 3196 official docs. The corpus comes from the official SageMath Sphinx reference manual (10.9.beta9, CC BY-SA 3.0), defaults to `~/.verymath/sagemath-corpus` (override with `VERYMATH_SAGE_CORPUS`); documentation lookup only — **no Sage code execution**. The GPLv3 Sagemath-skill body is not bundled; lookup and scoring are a clean-room TypeScript re-implementation. |
|
|
26
|
+
| `verymath_beamer_check` | TeX toolchain probe for math-beamer compiles: latexmk, xelatex (needed by Chinese/bilingual templates), forest/ctex packages (located via kpsewhich); installs nothing, surfaces an install hint and deliver-.tex-only guidance when pieces are missing. |
|
|
27
|
+
|
|
28
|
+
**Bundled skills** (registered in the DSH skill catalog; model- and user-invocable):
|
|
29
|
+
|
|
30
|
+
| Skill | Purpose | Upstream |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| `math-glossary` | Full workflow to build, maintain, and query bilingual glossaries from PDFs, dictionaries, and tables. | [AI4Math-MathTool](https://github.com/VeryMath/AI4Math-MathTool) `math-glossary` v0.1.0 |
|
|
33
|
+
| `math-paper-reading` | Structured extraction, theorem-dependency analysis, deep reading, literature search, reference management. | [AI4Math-Paper-Reading](https://github.com/VeryMath/AI4Math-Paper-Reading) v4.2 |
|
|
34
|
+
| `graph-theory-paper-reading` | Six-dimension deep reading of graph-theory papers with proof-tree LaTeX reports. | [AI4Math-Paper-Reading](https://github.com/VeryMath/AI4Math-Paper-Reading) |
|
|
35
|
+
| `after-ocr` | Whole-document review and repair discipline for formula-dense OCR Markdown. | [AI4Math-Paper-Reading](https://github.com/VeryMath/AI4Math-Paper-Reading) |
|
|
36
|
+
| `paper-writing` | Source-grounded mathematical paper writing: skeletons, claim-evidence ledgers, obligation audits, notation consistency. | [AI4Math-Writing](https://github.com/VeryMath/AI4Math-Writing) |
|
|
37
|
+
| `discover-math-problems` | Math-problem discovery: from vague background to problem menus, conjecture lattices, and work orders. | [AI4Math-Auto-Research](https://github.com/VeryMath/AI4Math-Auto-Research) |
|
|
38
|
+
| `proof-blueprint-review` | Proof blueprint generation with verifier-style review (generator/verifier role separation). | [AI4Math-Auto-Research](https://github.com/VeryMath/AI4Math-Auto-Research) |
|
|
39
|
+
| `open-problem-research-pipeline` | Open-problem workflow: literature search → method analysis → proof framework → report. | [AI4Math-Auto-Research](https://github.com/VeryMath/AI4Math-Auto-Research) |
|
|
40
|
+
| `least-squares` | Least-squares fitting and parameter estimation (OLS/WLS/regularized/nonlinear/Bayesian, 12-tier degradation). | [AI4Math-Computational-Mathematics](https://github.com/VeryMath/AI4Math-Computational-Mathematics) |
|
|
41
|
+
| `invariant-computation` | Routing and evidence reporting for algebraic/topological/geometric invariant computation (approval-gated installs). | [AI4Math-Computational-Mathematics](https://github.com/VeryMath/AI4Math-Computational-Mathematics) |
|
|
42
|
+
| `mixed-integer-programming` | MILP modeling and solving: tested knapsack/assignment examples (PuLP+CBC) + restored upstream LP examples. | [AI4Math-Optimization](https://github.com/VeryMath/AI4Math-Optimization) (broken examples repaired) |
|
|
43
|
+
| `matlab-runner` | MATLAB execution routing/safety/reporting layer — drives local MATLAB via the official MathWorks MCP server (requires user-installed MATLAB + license). | [AI4Math-MathTool](https://github.com/VeryMath/AI4Math-MathTool) |
|
|
44
|
+
| `math-beamer` | Mathematical Beamer slide decks: 23 template packs (bilingual, per-field), 4-gate guided workflow, slide-source-ledger provenance. | [AI4Math-Writing](https://github.com/VeryMath/AI4Math-Writing) |
|
|
45
|
+
| `lean-formalization` | Lean 4 formalization, proof repair, sorry completion, and patch review (coding-agent-first; the GB-scale toolchain stays on the user machine). | [AI4Math-Lean-Agents](https://github.com/VeryMath/AI4Math-Lean-Agents) |
|
|
46
|
+
| `lean-setup` | Lean/elan/lake/mathlib workspace detection, install guidance, and two-level readiness reporting. | [AI4Math-Lean-Agents](https://github.com/VeryMath/AI4Math-Lean-Agents) |
|
|
47
|
+
|
|
48
|
+
> Deferred (rationale and upgrade paths in `docs/integration-matrix.md`): Sagemath-skill skill body (GPLv3; route-a
|
|
49
|
+
> clean-room TS lookup shipped, corpus distributed separately), paper-to-skill chain (MinerU cloud-API privacy; local mineru optional), agent-laboratory-workflow (external LLM API + heavy deploy),
|
|
50
|
+
> scientific-computing-reproduction (Codex ecosystem coupling; zero-dep scripts extractable on demand),
|
|
51
|
+
> co-mathematician (standalone app; concepts only), textbook-copilot (Apache-2.0 standalone app).
|
|
52
|
+
|
|
53
|
+
Skills carry the methodology; tools carry deterministic execution. The plugin cooperates naturally with DSH sessions, workspaces, sandboxing, and other plugins such as `literature` (e.g. fetch full text with `literature_fulltext`, then analyze it with `math-paper-reading`).
|
|
54
|
+
|
|
55
|
+
## Installation and usage
|
|
56
|
+
|
|
57
|
+
Requires Node.js `24.18.0+` and DSH `0.2.x (since 0.2.0-rc.1)`.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
dsh plugin --profile <your-profile> add @louisultra/dsh-verymath
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Or build from source:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
git clone https://github.com/LouisUltra/dsh-verymath.git
|
|
67
|
+
cd dsh-verymath
|
|
68
|
+
npm install && npm run check && npm pack
|
|
69
|
+
dsh plugin --profile <your-profile> add ./louisultra-dsh-verymath-<version>.tgz
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Then just ask in a session, e.g. "look up the Chinese term for manifold" or "read the structure of this paper". Artifacts (`glossary.json`, `<slug>_structure.json`, structure reports) are written into the current session workspace.
|
|
73
|
+
|
|
74
|
+
### Dependencies
|
|
75
|
+
|
|
76
|
+
- **Query and paper validation**: no external dependencies.
|
|
77
|
+
- **Glossary build/export** (`verymath_glossary_build`): requires a local Python 3 plus the upstream script dependencies (`PyYAML`; Excel export additionally needs `openpyxl`, the web UI needs `Flask`). Check availability with `verymath_python_check` first and install per its hints; the plugin does not bundle Python.
|
|
78
|
+
- **Platforms**: verified on macOS (Apple Silicon) (DSH CLI sandbox + the EduWork 0.4.3 desktop app itself); Windows should work (Node and Python on PATH) but is not yet tested — feedback welcome.
|
|
79
|
+
|
|
80
|
+
## Developing from source
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
npm run typecheck # tsc --noEmit
|
|
84
|
+
npm run build # tsc → lib/
|
|
85
|
+
npm test # vitest synthetic tests (no network)
|
|
86
|
+
npm run test:runtime # real DSH API probe (synthetic data, no model calls)
|
|
87
|
+
npm run check # all of the above
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## License and provenance
|
|
91
|
+
|
|
92
|
+
This package is MIT licensed (`LICENSE`). Skill content and Python scripts are adapted from VeryMath's MIT projects; the adapted commits and paths are recorded in `UPSTREAM.json`, with attribution details in `NOTICE.md`. Thanks to the VeryMath team and upstream contributors.
|
|
93
|
+
|
|
94
|
+
## Differences from upstream VeryMath
|
|
95
|
+
|
|
96
|
+
- **Paper dependency graph as a tool**: upstream `skill_base`/`skill_pathway_proof` explicitly forbid model-side manual graph traversal but ship no merge/topology scripts (the model regenerates one each time). This plugin implements a deterministic TypeScript engine (`verymath_paper_graph`); the paper-reading critical path no longer requires Python.
|
|
97
|
+
- **Glossary read/write loop**: `verymath_glossary_upsert` maintains the upstream contract invariants (term_id derivation, ordering, contiguous idx) that upstream leaves to hand-edits.
|
|
98
|
+
- **Disambiguation**: queries return examples and support subfield filtering, implementing the upstream usage-guide strategies that could not execute in DSH before.
|
|
99
|
+
- **Validation scope**: this plugin performs structural validation (dependency integrity, cycles, dangling/isolated nodes) and does not verify mathematical proof correctness — consistent with the upstream `skill_base` capability boundary.
|
|
100
|
+
|
|
101
|
+
## Known limitations
|
|
102
|
+
|
|
103
|
+
- MDX dictionaries, OCR scans, and the web management UI follow the skill workflow (shell) and are not exposed as plugin tools.
|
|
104
|
+
- Glossary build/export still requires Python (query, upsert, and the paper-graph engine do not).
|
|
105
|
+
- Upstream remains under active development; the adapted upstream versions are recorded in `UPSTREAM.json`.
|
package/UPSTREAM.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"sources": [
|
|
4
|
+
{
|
|
5
|
+
"repository": "https://github.com/VeryMath/AI4Math-MathTool",
|
|
6
|
+
"commit": "a51dd41e69b17c6fac60303bfc02e5191acbb1b2",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"adaptedPaths": [
|
|
9
|
+
"skills/math-glossary/SKILL.md",
|
|
10
|
+
"skills/math-glossary/scripts/",
|
|
11
|
+
"skills/math-glossary/references/",
|
|
12
|
+
"skills/math-glossary/tests/",
|
|
13
|
+
"skills/matlab-runner/ (SKILL.md + references + examples, with DSH MCP setup notes)"
|
|
14
|
+
],
|
|
15
|
+
"adaptationNotes": "SKILL.md routing and script-invocation text adapted for DSH tool names (verymath_glossary_*); Python scripts included verbatim; tests adapted to run from the skill directory. matlab-runner bundled after user installed MATLAB R2025b; MathWorks official MCP server v0.14.0 wired via dsh-mcp-client (5 tools match the skill capability list)."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"repository": "https://github.com/VeryMath/AI4Math-Paper-Reading",
|
|
19
|
+
"commit": "991f7053220bbebfd8826a3fa439c656b2e0905f",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"adaptedPaths": [
|
|
22
|
+
"skills/math-paper-reading/SKILL.md",
|
|
23
|
+
"skills/math-paper-reading/agent_router.md",
|
|
24
|
+
"skills/math-paper-reading/skill_base.md",
|
|
25
|
+
"skills/math-paper-reading/skill_pathway_proof.md",
|
|
26
|
+
"skills/math-paper-reading/skill_paper_deep_read.md",
|
|
27
|
+
"skills/math-paper-reading/skill_reference_manager.md",
|
|
28
|
+
"skills/math-paper-reading/skill_literature_search.md",
|
|
29
|
+
"skills/math-paper-reading/references/proof_pattern_taxonomy.md (verbatim from paper-to-skill-extractor/references/)",
|
|
30
|
+
"skills/math-paper-reading/references/quality_rubric.md (verbatim from paper-to-skill-extractor/references/)",
|
|
31
|
+
"skills/graph-theory-paper-reading/SKILL.md",
|
|
32
|
+
"skills/after-ocr/SKILL.md",
|
|
33
|
+
"skills/after-ocr/scripts/",
|
|
34
|
+
"skills/after-ocr/references/",
|
|
35
|
+
"skills/after-ocr/tests/"
|
|
36
|
+
],
|
|
37
|
+
"adaptationNotes": "Skill routing adapted for DSH invocation and workspace artifact conventions; analysis methodology and the v4.2 structure JSON contract unchanged; optional verymath_paper_validate tool references added. graph-theory-paper-reading bundled verbatim with a DSH Integration Notes section added; after-ocr bundled with scripts/tests/references verbatim plus DSH notes. Both registered as independent bundled skills alongside math-paper-reading. The paper-to-skill appendix (0.3.1): only proof_pattern_taxonomy.md + quality_rubric.md copied verbatim as deep-read references (per council P3 verdict); the full paper-to-skill chain stays unbundled (MinerU cloud-API privacy); skill_paper_deep_read.md carries the appendix routing in its DSH Integration Notes."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"repository": "https://github.com/VeryMath/AI4Math-Writing",
|
|
41
|
+
"commit": "418eb2e0c9cad7f259d114d7acfe6043971f4b94",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"adaptedPaths": [
|
|
44
|
+
"skills/paper-writing/SKILL.md",
|
|
45
|
+
"skills/paper-writing/skills/*/SKILL.md (flattened to skill_*.md modules)",
|
|
46
|
+
"skills/paper-writing/templates/",
|
|
47
|
+
"skills/math-beamer/ (SKILL.md + templates/ catalog+23 packs+previews + references/, verbatim with DSH notes)"
|
|
48
|
+
],
|
|
49
|
+
"adaptationNotes": "paper-writing bundled with sub-skills flattened to module files (plugin skill-discovery layout) and DSH Integration Notes added; templates verbatim. math-beamer bundled after verifying local TeX Live 2025 compiles the seminar-minimal-zh template end-to-end; ECNU third-party template index NOT vendored (upstream policy)."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"repository": "https://github.com/VeryMath/AI4Math-Auto-Research",
|
|
53
|
+
"commit": "4d93ba665a448caef9b0b963108a77803b1483da",
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"adaptedPaths": [
|
|
56
|
+
"skills/discover-math-problems/ (SKILL.md + references)",
|
|
57
|
+
"skills/proof-blueprint-review/ (SKILL.md + references)",
|
|
58
|
+
"skills/open-problem-research-pipeline/ (SKILL.md + 4 nested skills flattened to skill_*.md + references)"
|
|
59
|
+
],
|
|
60
|
+
"adaptationNotes": "Three pure-methodology research-workflow skills bundled with DSH integration notes; agent-laboratory-workflow/danus/graph-theory-researcher NOT bundled (version gaps, overlap with math-paper-reading, external API deployment)."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"repository": "https://github.com/VeryMath/AI4Math-Computational-Mathematics",
|
|
64
|
+
"commit": "e9a3a7c0738106c4d923dd6fb6253072365b0023",
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"adaptedPaths": [
|
|
67
|
+
"skills/least-squares/ (SKILL.md + examples.md + README.md)",
|
|
68
|
+
"skills/invariant-computation/ (SKILL.md + references + schema + examples + manifest.yaml)"
|
|
69
|
+
],
|
|
70
|
+
"adaptationNotes": "least-squares frontmatter flattened to single-line description (author attribution moved to comment); both skills carry DSH integration notes. scientific-computing-reproduction NOT bundled (Codex ecosystem coupling)."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"repository": "https://github.com/VeryMath/AI4Math-Optimization",
|
|
74
|
+
"commit": "a054d39a6be36a539eb511336af5a6b8c6c466b7",
|
|
75
|
+
"license": "MIT",
|
|
76
|
+
"adaptedPaths": [
|
|
77
|
+
"skills/osqp-solver/ (SKILL.md + scripts/, scripts verbatim)",
|
|
78
|
+
"skills/mixed-integer-programming/ (SKILL.md + examples: lp-examples.md restored from upstream history, mip-examples-verified.md original with PuLP verification)"
|
|
79
|
+
],
|
|
80
|
+
"adaptationNotes": "osqp-solver bundled with scripts verbatim (frontmatter description flattened to a single line for the plugin parser); mixed-integer-programming bundles the upstream LP examples restored from 191a4e3^ (the upstream examples.md was a SOCP copy-paste error since creation) plus newly written, PuLP-verified MILP examples (knapsack + assignment, cross-checked by enumeration / Hungarian algorithm); the upstream unverifiable benchmark claims (100-problem 100% pass rate, no reproduction script) are deliberately NOT quoted."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"repository": "https://github.com/VeryMath/AI4Math-Lean-Agents",
|
|
84
|
+
"commit": "7aed4db687e7c5b1cd50b843454107d1042c5a10",
|
|
85
|
+
"license": "MIT",
|
|
86
|
+
"adaptedPaths": [
|
|
87
|
+
"skills/lean-formalization/ (SKILL.md + lean-runtime/ support layer embedded)",
|
|
88
|
+
"skills/lean-setup/SKILL.md"
|
|
89
|
+
],
|
|
90
|
+
"adaptationNotes": "Both public entry skills bundled; lean-runtime embedded inside lean-formalization (DSH discovery layout) with ../lean-runtime/ refs rewritten; DSH notes carry the elan-shim no---version rule and two-level readiness contract. Numina/Archon backends not configured (optional upstream path)."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"repository": "https://github.com/VeryMath/AI4Math-Sagemath-skill",
|
|
94
|
+
"commit": "405293656b11aa22e70de5fe5b6e55f91b984901",
|
|
95
|
+
"license": "GPLv3 (scripts/SKILL.md); corpus is SageMath official docs under CC BY-SA 3.0",
|
|
96
|
+
"adaptedPaths": [
|
|
97
|
+
"NONE bundled (GPLv3 isolation per the review decision, user-approved route)",
|
|
98
|
+
"scoring/lookup behavior re-implemented from scratch in TypeScript (src/core/sage.ts)"
|
|
99
|
+
],
|
|
100
|
+
"adaptationNotes": "Clean-room TS implementation of the documented lookup scoring contract; no GPLv3 code copied. Corpus (CC BY-SA) distributed separately at ~/.verymath/sagemath-corpus; no GPL files in this MIT package."
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"packageLicense": "MIT",
|
|
104
|
+
"packageLicenseFile": "LICENSE",
|
|
105
|
+
"attributionFile": "NOTICE.md"
|
|
106
|
+
}
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# yaml-language-server: $schema=./cordis-patch.schema.json
|
|
2
|
+
---
|
|
3
|
+
# @louisultra/dsh-verymath: stable entry IDs.
|
|
4
|
+
# Cordis patch-list manifest (see cordis-patch.schema.json); NOT JSON-Patch
|
|
5
|
+
# (RFC 6902). JSONPatch diagnostics on this file are a known yaml-language-
|
|
6
|
+
# server false positive for Cordis bundle patch manifests.
|
|
7
|
+
- insert:
|
|
8
|
+
- id: verymath
|
|
9
|
+
name: '@louisultra/dsh-verymath/core'
|
|
10
|
+
|
|
11
|
+
- id: tool-verymath
|
|
12
|
+
name: '@louisultra/dsh-verymath/tool'
|