Skip to content

Fix --version reporting and upgrade the agent skill#2

Merged
pinkhasn merged 2 commits into
mainfrom
version-and-skill-updates
Jun 6, 2026
Merged

Fix --version reporting and upgrade the agent skill#2
pinkhasn merged 2 commits into
mainfrom
version-and-skill-updates

Conversation

@pinkhasn

@pinkhasn pinkhasn commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

Two independent improvements, bundled per request:

1. --version reporting (57f6871)

The version line hardcoded 0.1.0 and hyperscan — both stale since the Vectorscan switch (#1) and the v0.2.1 release.

  • Makefile derives VERSION from git describe --tags (with a fallback for tarball builds) and injects it via -DHPRSCRIPT_VERSION; main.o always rebuilds so the stamp can't 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).
- hprscript 0.1.0 (hyperscan 5.4.12 2026-05-18)
+ hprscript v0.2.1 (vectorscan 5.4.12 2026-05-18)

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 -s script 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 testall 169 tests pass (version smoke test updated to assert vectorscan).

🤖 Generated with Claude Code

pinkhasn and others added 2 commits June 6, 2026 19:05
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>
@pinkhasn pinkhasn merged commit 1251bf6 into main Jun 6, 2026
1 check passed
@pinkhasn pinkhasn deleted the version-and-skill-updates branch June 6, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant