Fix --version reporting and upgrade the agent skill#2
Merged
Conversation
The --version output hardcoded "0.1.0" and "hyperscan" — both stale since the Vectorscan switch and the v0.2.1 release. Now: - Makefile derives VERSION from `git describe --tags` (with a fallback for tarball builds) and passes -DHPRSCRIPT_VERSION; main.o always rebuilds so the stamp cannot drift between tags. - main.cpp prints the injected version; `--version` and the `-h` banner now report "vectorscan". - Swept the stale "Hyperscan" engine label across source comments and the compile-error fallback string (hs_*/HS_* API symbols left untouched). - Updated the version smoke test. All 169 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- skills/hprscript/SKILL.md: expand to full-power CLI coverage — output modes, block extraction, -scope, -extract, -near/-far, -sample, byte budgets, and the -s script DSL (variables, actions, rank/group_by/phases/submatch). - README.md: replace the Claude-Code-only section with multi-agent setup (Claude Code, opencode, other agents). opencode reads the same .claude/skills paths, so a single install serves both. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two independent improvements, bundled per request:
1.
--versionreporting (57f6871)The version line hardcoded
0.1.0andhyperscan— both stale since the Vectorscan switch (#1) and thev0.2.1release.VERSIONfromgit describe --tags(with a fallback for tarball builds) and injects it via-DHPRSCRIPT_VERSION;main.oalways rebuilds so the stamp can't drift between tags.main.cppprints the injected version;--versionand the-hbanner now reportvectorscan.hs_*/HS_*API symbols left untouched).2. Agent skill upgrade + docs (
cc1a1b3)skills/hprscript/SKILL.md— expanded to full-power CLI coverage: output modes, block extraction,-scope,-extract,-near/-far,-sample, byte budgets, and the-sscript DSL (variables, actions, rank/group_by/phases/submatch).README.md— replaced the Claude-Code-only section with multi-agent setup (Claude Code, opencode, and other agents). opencode discovers skills from the same.claude/skills/paths, so a single install serves both.Testing
make test→ all 169 tests pass (version smoke test updated to assertvectorscan).🤖 Generated with Claude Code