Repository navigation
2.0.1 - localized migration drafts, index freshness, and a js-yaml security bump
OSpec 2.0.1 fixes three defects found while migrating real projects to 2.0, and bumps js-yaml past a CPU-exhaustion advisory. No breaking changes; upgrade with npm install -g @clawplays/ospec-cli@2.0.1 and re-run ospec update in each project to refresh the protocol documents.
Fixed
ospec docs migrate --plannow writes its draft-skeleton guidance in the project'sdocumentLanguage(zh-CN, ja-JP, ar, en-US) instead of hardcoded English, following the same rule as the feature catalogue and the obligation copy. Thestatus: draftline and theospec:migration-draftmarker stay machine strings, so--verifydetection is unchanged.- Index rebuilds stamp
generatedafter writingdocs/project/feature-catalog.md, not before. Previously the catalogue's mtime landed a few milliseconds after the stamp, soospec index checkreportedsource:newerforever afterdocs migrate --finalize— content-identical rebuilds keep the old stamp by design, so nothing ever cleared the flag, and a project withindex-check: errorhad its pre-commit hook blocked. Archive and finalize share the fixed path. - js-yaml is bumped to
^4.3.1(declared floor and committed lockfile), past GHSA-5p4m-2wfm-xmqj — quadratic CPU consumption when resolving!!omapduplicate keys, a denial-of-service vector for CLI/agent runs that parse.skillrcor frontmatter from untrusted repositories. Fresh installs already resolved 4.3.1 through the caret range; lockfile-driven environments now do too. Thanks to the first-time contributor whose automated-scan PR on the release mirror flagged the advisory.npm auditon the source tree is now zero findings.
Docs
- The change protocol now states the feature-document language rule explicitly, in all four languages: section headings and prose follow the project's
documentLanguage(slugs andcode:paths stay English kebab-case), and phase-2 rewrites underospec docs migratefollow the same rule.
Upgrade
npm install -g @clawplays/ospec-cli@2.0.1
ospec updateFull Changelog: 2.0.0...2.0.1