TYEclipse/dsh-semver

TYEclipse★ 0TypeScript最后同步: 2026-08-16

在 GitHub 打开

Semantic versioning toolbox for DeepSeek Harness (dsh): parse, compare and range-check semver strings (^ ~ >= <= x-ranges, hyphen, ||) — zero runtime dependencies, pure logic

README 摘要

dsh-semver Semantic versioning toolbox for DeepSeek Harness (dsh) — parse, compare and range-check semver strings. Zero runtime dependencies, pure logic, fully deterministic. Agents are bad at version arithmetic. "Is 2.1.0-rc.1 newer than 2.1.0-beta.11 ?" and "does 1.2.4-beta.1 satisfy ^1.2.3 ?" are exactly the questions LLMs get wrong — prerelease ordering, tuple-lock, and caret/tilde upper bounds are easy to misremember. This plugin turns those questions into deterministic tool calls. Tools Tool Description semver parse Parse a semver 2.0.0 string into major / minor / patch / prerelease / build , with a precise rejection reason for malformed input ( 1.2 , 1.2.3.4 , leading zeros, 1.2.3-01 , …) semver compare Compare two versions → lt / eq / gt plus a human verdict ( 2.1.0 2.0.3 ). Build metadata is ignored for precedence ( 1.0.0+build.1 == 1.0.0 ) semver satisfies Check a version against an npm-style range, with the matched range normalized in the explanation Supported range syntax (npm-compatible subset) - Exact : 1.2.3 , =1.2.3 - Comparisons : 1.2.0 , =1.2.0 , =1.2.3 =0.2.3 =0.0.3 =1.2.3 =1.2.0 =1.0.0 =1.2.0 =3.0.0 Prerelease semantics (npm tuple-lock) - A plain range never mat…

在 GitHub 查看完整 README →
终端/TUIdeepseek-harnessdsh-pluginsemantic-versioningsemverversioningagent

分类