oh-my-claudecode v4.6.6: Agent Discovery Path Resolution Hotfix
Release Notes
Critical hotfix for agent prompt file discovery in test environments and bundled builds.
Bug Fixes
- Agent Discovery Path Resolution: Fixed
getPackageDir()inprompt-helpers.tsandutils.tsto correctly resolve agent files.- Root cause: In vitest,
typeof __dirnamereturns"string"but the value isundefined - This caused
join(__dirname, "..")to resolve to".."instead of the package root - Solution: Prioritize ESM path (
import.meta.url) over CJS path and add truthy check for__dirname - All 5839 tests now pass
- Fixes CI failures in v4.6.4 and v4.6.5
- Root cause: In vitest,
Version Updates
- Bumped all version references to 4.6.6:
package.json: 4.6.5 → 4.6.6.claude-plugin/plugin.json: 4.6.3 → 4.6.6.claude-plugin/marketplace.json: 4.6.3 → 4.6.6
Full Changelog: v4.6.5...v4.6.6