macdoc CLI binary auto-install via registered session-start hook#125
Merged
Conversation
cac89dd to
bc0e374
Compare
- CLI v0.5.0 released (Developer ID signed + notarized, arm64-only — the CLI depends on MLX which is Apple Silicon exclusive; universal build is structurally impossible, not a compromise) - scripts/release-cli.sh: #119 hardened template adapted (single-arch gate) for future CLI releases - plugins/macdoc/hooks/session-start.sh: compares macdoc --version to plugin.json binary_version; missing/mismatch -> download + MANDATORY sha256 + Developer ID requirement verify (same ruler as wrappers and release gate) -> install to ~/bin (deliberate: CLI is a PATH tool, #117's .bin-cache rationale doesn't apply). Session fail-soft, artifact fail-closed. E2E: fresh install / 44ms fast path / fail-soft - shell 1.1.0 -> 1.2.0 + binary_version 0.5.0; CHANGELOG; SKILL.md; marketplace sync Refs #114
Verify requirements BLOCKING: hooks are NOT auto-discovered by filename — without hooks/hooks.json the auto-install hook was dead code (format per che-ical-mcp precedent, the plugin whose SessionStart demonstrably fires). Also release-cli.sh notes self-reference nit. Refs #114
Codex V114 findings: HIGH-1 --version probe now runs under a 5s perl alarm writing to a FILE (a killed probe's grandchildren holding an inherited pipe fd stalled command substitution far past the alarm — empirically reproduced with a sleep-300 plant; file redirection makes the hang self-heal into a verified reinstall). M-2 semver-token normalize + loop-guard sidecar prevents banner-format re-download loops. M-3 hooks.json command quoted. M-4 release-cli.sh header pipeline text aligned to arm64. M-5 unset-HOME guard before set -u expansion. Job-control alarm noise suppressed. Refs #114
556f122 to
bcb08fd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #114
Summary
plugins/macdoc/hooks/session-start.sh+ hooks.json 註冊(verify 抓到死 hook BLOCKING):版本比對(5s alarm probe、檔案重導向防 pipe 卡死)→ 強制 sha256 + Developer ID 驗證 → 裝~/bin;session fail-soft / artifact fail-closedscripts/release-cli.sh(MCP release pipelines: add pre-upload signature-verification gate (verify follow-up from #112) #119 模板 arm64 改編);shell 1.2.0 + binary_version 0.5.0 + CHANGELOG/SKILL/marketplace 同步Verification
DEGRADED engine(Opus quota 撞頂:requirements + Codex + coordinator fallback ×4 — 詳見 issue #114 Verify comment 的 Process Gaps)。BLOCKING 與 HIGH 均已修復並實測(hang 自癒、快路徑 69ms)。quota 重置後可補跑完整 ensemble。
Checklist
🤖 Generated by /idd-all. Do NOT add a GitHub close trailer (Closes/Fixes/Resolves).