Skip to content

Releases: dhaern/better-opencode-tools

v0.2.2

Choose a tag to compare

@dhaern dhaern released this 10 Jun 20:35

v0.2.2

  • betterread: allow scoped package paths containing @ while keeping unsafe glob metacharacters blocked.
  • bettergrep: add explicit paths: string[] support for multi-target searches, with clear validation for accidental path arrays.
  • Align plugin dependencies with OpenCode 1.17.3 and effect 4.0.0-beta.74.

Validation:

  • bun test packages/opencode-betterread/src/tools/read/permissions.test.ts packages/opencode-bettergrep/src/tools/grep/normalize.test.ts
  • bun run build for betterread, bettergrep and betterglob

Better OpenCode Tools v0.2.1

Choose a tag to compare

@dhaern dhaern released this 29 May 02:12
8734c86

Better OpenCode Tools v0.2.1

This release contains the three standalone OpenCode plugin folders:

  • opencode-betterread
  • opencode-bettergrep
  • opencode-betterglob

Download the attached ZIP and copy the plugin folders into your OpenCode plugins directory.

Changes since v0.2.0

opencode-betterread

  • Relaxed safe permission path validation to reject only actual glob metacharacters, preserving Unicode paths and safe punctuation.
  • Switched file attachment URLs to pathToFileURL() for portable file:// generation.
  • Uses the resolved absolute inspection.accessPath for image/PDF attachments.
  • Keeps image/PDF text and metadata output while adding plugin attachments where supported.

opencode-bettergrep

  • Resolves relative worktree paths against the tool directory instead of process.cwd().
  • Keeps worktree canonicalization robust with fallback behavior when realpathSync fails.
  • Removes unused Effect bridge helper export.
  • Preserves the existing automatic internal behavior: no extra prompts for symlink following or ripgrep auto-install.

opencode-betterglob

  • Fixes containsPath() so nested entries beginning with .. (for example ..bar) are not treated as parent-directory escapes.
  • Keeps the previous v0.2.0 glob fixes for brace/bracket patterns and leading ./ patterns.

Validation

Validated on main after merging the 0.2.1 follow-ups:

  • bun run test
  • bun run typecheck
  • bun run build
  • bun run check
  • git diff --check

All checks passed.