Skip to content

feat: add opt-in Homebrew distribution through a third-party tap #42

Open

Description

@abruption

Summary

Add an optional Homebrew installation channel for codex-unlock, initially through a maintainer-controlled third-party tap such as abruption/homebrew-tap. npm remains supported. Defer a direct homebrew/core submission for now; reassess it separately when project age, adoption/notability, and Homebrew maintainer expectations make it appropriate.

Verified baseline (2026-09-24)

  • Latest GitHub release and npm latest are [email protected] (release commit aaa7e7c7138d3f27c1fa7b41cf627841c386193b).
  • package.json supports Node ^22.13.0 || ^24.0.0, macOS and Linux, and depends on native fs-ext-extra-prebuilt@^2.2.14.
  • docs/platform-support.md currently verifies macOS 15 and Ubuntu 24.04 on both x64 and arm64, with real advisory-lock evidence. The CLI also requires lsof for owner correlation.
  • Homebrew's default node formula currently resolves to Node 26.x, outside this package's engine range; Homebrew also provides node@24. The formula must explicitly use node@24, not assume the ambient node is compatible.
  • The published npm tarball is https://registry.npmjs.org/codex-unlock/-/codex-unlock-0.3.0.tgz (registry SRI: sha512-tJ8PinnHH2kaJ8OeCSzQVkLPmyM8HeW4uItplUOfotcoNewoReQxw2XA4qj9vQpewKzwp99DsFg0o9n+jWuPiQ==).

Acceptance criteria

  • Provide a documented opt-in third-party tap install, upgrade, and uninstall path; do not submit to homebrew/core as part of this work.
  • Formula explicitly depends on and runs with node@24, even when a different/default Node is earlier on the user's PATH.
  • Verify the actual native addon load and lock-probe/owner-correlation path on every currently supported OS/architecture pair: macOS arm64 and x64, Linux arm64 and x64. Tests must use a real advisory lock plus lsof evidence, not only --version or file-existence checks; unsupported or missing evidence remains fail-closed.
  • Ensure lsof is available to the installed formula on both macOS and Linux, declaring a dependency where the platform does not provide a supported system executable.
  • Pin the immutable npm release tarball and record/verify its SHA-256. Make the full runtime dependency resolution reproducible as well (e.g. pinned, checksummed resources or a verified vendored dependency set); do not build from a mutable branch or resolve floating dependency ranges at install time.
  • brew test exercises the installed CLI and native lock-probe path. The formula passes brew audit --strict and is covered by CI for the supported platform matrix.
  • Document package-manager ownership and avoid overwriting or silently shadowing an existing npm-global codex-unlock executable. Give clear manager-specific upgrade/uninstall instructions and test the collision behavior; never modify npm's global prefix or installation automatically.
  • Update installation/platform documentation without implying Windows support or changing npm's supported engine contract.

Non-goals

  • Direct homebrew/core submission now.
  • Creating or publishing a formula/tap as part of the request that opened this issue; those are implementation/release work tracked here for a later explicit development step.
  • Automatically switching package managers, changing PATH, or self-updating either installation.

Related: session-peer issue #185.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions