Skip to content

Plugin-scoped binary install dir (.bin-cache) replaces shared ~/bin#126

Merged
kiki830621 merged 2 commits into
mainfrom
idd/117-plugin-scoped-install
Jul 2, 2026
Merged

Plugin-scoped binary install dir (.bin-cache) replaces shared ~/bin#126
kiki830621 merged 2 commits into
mainfrom
idd/117-plugin-scoped-install

Conversation

@kiki830621

Copy link
Copy Markdown
Collaborator

Refs #117

接替 #122(其 base branch 於 stacked-train merge 時被刪、GitHub auto-close 且無法 reopen — 內容相同,已 rebase 到 main)。Verify 6-AI PASS 見 issue #117 Verify comment。

Checklist

  • Diagnose / Implement / Verify PASS(6-AI,含 DA-1 修訂 kill test)
  • Verify-gated: ready to merge → after merge, run /idd-close (manual gate; no auto-close trailer)

🤖 Generated by /idd-all. Do NOT add a GitHub close trailer.

…/bin (#117)

- wrappers x3: INSTALL_DIR = $PLUGIN_ROOT/.bin-cache — cross-marketplace
  same-name collisions impossible by construction; plugin updates recycle
  the cache (re-download passes the full verification chain)
- legacy ~/bin/<Binary> copy left untouched (may be a manual install);
  one-line stderr note on first spawn
- shells bumped (word 3.20.2, pdf/pptx 0.1.2) via #116 decoupling;
  CHANGELOG + marketplace.json synced; .gitignore rule for .bin-cache

E2E: fresh install into .bin-cache + legacy note; fast path; dual-
marketplace simulation (two PLUGIN_ROOTs coexist, no interference).

Refs #117
…117)

Verify DA-1 (refuting three sibling reviews with cache-layout evidence):
a version-scoped .bin-cache re-downloads the byte-identical binary on
EVERY shell-only version bump (new version dir = fresh gitignored cache),
nullifying #116's sidecar short-circuit and multiplying disk per retained
version dir. INSTALL_DIR is now dirname(PLUGIN_ROOT)/.bin-cache —
<marketplace>/<plugin>/.bin-cache — keeping cross-marketplace/cross-plugin
isolation (both in path) while binary + sidecar persist across shell bumps.
Dev-checkout context degrades to plugins/.bin-cache with BINARY_NAME
scoping. Also: wrapper header sidecar-path comment fixed x3 (logic LOW-2),
pdf/pptx README install-path wording (logic LOW-3, own files).

E2E: two-version marketplace simulation — v0.1.2 installs, v0.1.3 shell
bump fast-paths with ZERO re-download; cross-marketplace dual .bin-cache
coexistence; dev-checkout install + gitignore clean tree.

Refs #117
@kiki830621 kiki830621 merged commit c51b6ca into main Jul 2, 2026
1 check passed
@kiki830621 kiki830621 deleted the idd/117-plugin-scoped-install branch July 2, 2026 12:57
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