Run OpenCode 2 from the stable Homebrew formula #16
No files matched your search
+2
-1
@@ -54,7 +54,8 @@
|
|||||||
# resolves on the normal PATH. No server, service, database, or
|
# resolves on the normal PATH. No server, service, database, or
|
||||||
# connection is configured.
|
# connection is configured.
|
||||||
{ name = "libpq"; link = true; }
|
{ name = "libpq"; link = true; }
|
||||||
"node" # required: backpass and acpx are npm globals, not formulae
|
"node" # required: opencode-ai, backpass, and acpx are npm globals,
|
||||||
|
# not formulae
|
||||||
# OpenCode 2 stable. Installed unlinked so it never replaces the
|
# OpenCode 2 stable. Installed unlinked so it never replaces the
|
||||||
# npm-installed OpenCode 1.x CLI at /opt/homebrew/bin/opencode (the crew
|
# npm-installed OpenCode 1.x CLI at /opt/homebrew/bin/opencode (the crew
|
||||||
# harness); home/bin/oc2 runs this keg binary directly. `link = false`
|
# harness); home/bin/oc2 runs this keg binary directly. `link = false`
|
||||||
|
|||||||
@@ -369,10 +369,8 @@ in
|
|||||||
"$HOME/.codex/config.toml"
|
"$HOME/.codex/config.toml"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# OpenCode 2 is the stable Homebrew `opencode` formula declared in
|
# OpenCode 2 is the stable Homebrew `opencode` formula, declared unlinked in
|
||||||
# configuration.nix. It is installed unlinked so the OpenCode 1.x CLI keeps
|
# configuration.nix; home/bin/oc2 runs its keg binary. Nothing to install here.
|
||||||
# /opt/homebrew/bin/opencode; home/bin/oc2 runs the keg binary directly.
|
|
||||||
# Nothing to install here.
|
|
||||||
|
|
||||||
# backpass (kunchenguid/backpass) - gradient descent for agent memory: reads
|
# backpass (kunchenguid/backpass) - gradient descent for agent memory: reads
|
||||||
# the transcript stores of the harnesses this config already declares
|
# the transcript stores of the harnesses this config already declares
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ cfg="${OPENCODE_CONFIG:-$HOME/.config/opencode2/opencode.json}"
|
|||||||
|
|
||||||
if [ ! -x "$bin" ]; then
|
if [ ! -x "$bin" ]; then
|
||||||
echo "oc2: stable opencode not installed. Rebuild, or run:" >&2
|
echo "oc2: stable opencode not installed. Rebuild, or run:" >&2
|
||||||
echo " brew install opencode" >&2
|
echo " brew install opencode && brew unlink opencode" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -e "$cfg" ]; then
|
if [ ! -e "$cfg" ]; then
|
||||||
|
|||||||
+2
-1
@@ -2,7 +2,8 @@
|
|||||||
# Rebuild nix-darwin + home-manager. Rotates stale home-manager *.backup files
|
# Rebuild nix-darwin + home-manager. Rotates stale home-manager *.backup files
|
||||||
# so a second switch never fails with "would be clobbered".
|
# so a second switch never fails with "would be clobbered".
|
||||||
# Also updates flake inputs, upgrades grok-build, installs OpenCode 1.x
|
# Also updates flake inputs, upgrades grok-build, installs OpenCode 1.x
|
||||||
# (stable CLI for free-tier), updates no-mistakes, and updates pi extensions.
|
# (stable CLI for free-tier), removes the retired OpenCode 2 npm beta, updates
|
||||||
|
# no-mistakes, and updates pi extensions.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
||||||
ln -sfn "$DIR" ~/.dotfiles
|
ln -sfn "$DIR" ~/.dotfiles
|
||||||
|
|||||||
Reference in new issue
Block a user