@kealthas-dev/opencode-gitbash-edit-path-fix 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,6 +8,6 @@ Works around an opencode bug on Windows + Git Bash: `edit` and `write` never re-
8
8
  - `apply_patch`: rewrites the `*** Add File:` / `*** Delete File:` / `*** Update File:` / `*** Move to:` header paths in `args.patchText`.
9
9
  - It mutates the existing `args` object in place rather than reassigning `output.args`, because the real tool reads the same `args` object right after the hook (source citation in the file's header comment). No-op off `win32`.
10
10
  - The helpers live in `path-convert.ts` rather than the plugin entry file: opencode 1.19.x calls every exported function of a plugin module as a plugin factory, so exporting them from the entry file breaks loading. Tests import them from `path-convert.ts`.
11
- - Not yet published and not in `deploy/opencode.json.example`, see `TODO.md`.
11
+ - Not yet published and not in `deploy/opencode.jsonc.example`, see `TODO.md`.
12
12
 
13
13
  Tests: `tests/unit/gitbash-edit-path-fix.test.mjs` covers the conversion for all four path forms plus negatives, the in-place rewrite for `edit`/`write`, the `apply_patch` header rewrite, and an end-to-end reproduction of `edit.ts`'s branch via `path.win32`. It overrides `process.platform` because the sandbox is Linux, so it proves the plugin's logic, not that real Windows opencode honours the mutation. `tests/capability-probes/gitbash-edit-path-fix.probe.mjs` is the real check (Windows only) and `.github/workflows/probe-gitbash-path-bug.yml` runs it on a Windows runner.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kealthas-dev/opencode-gitbash-edit-path-fix",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "description": "gitbash-edit-path-fix.ts opencode plugin (rewrites Git-Bash/MSYS/Cygwin/WSL-style absolute paths like \"/c/Users/x\" to \"C:/Users/x\" before the built-in edit/write/apply_patch tools run on Windows, working around anomalyco/opencode#22799 whose fix in #22800 was closed without merging), published to npm so opencode's own npm-plugin loader can install it directly from a bare package name in opencode.json's plugin array - see CLAUDE.md. Written in TypeScript against @opencode-ai/plugin's Plugin type.",
6
6
  "main": "gitbash-edit-path-fix.ts",