Skip to content

Commit 8f47ac9

Browse files
fix: install patched spinosa shim on PATH and document beta.2
Local patch now writes the user-facing shim to SPINOSA_BIN_DIR (~/.local/bin) and CHANGELOG covers the theater/CLI cleanup for the next beta. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f7f4b2b commit 8f47ac9

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,26 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
3636
- Shellcheck passes on `install.sh` (legacy shim detection uses explicit disable comments).
3737
- `bun install` catalog entry for `@effect/platform-node-shared` restored.
3838

39+
## [1.0.3-beta.2] — 2026-07-30
40+
41+
### Changed
42+
43+
- Settings writes real `auto_upgrade` in `~/.spinosa/metadata/config.yaml` (removed unused `autoupdate` / skipped-version theater).
44+
- Product identity leftovers rebranded to Spinosa; OpenCode Zen and OpenCode Go providers kept as-is.
45+
- Worktree branch prefix is `spinosa/` instead of `opencode/`.
46+
- Local patch installer also installs the user-facing shim into `SPINOSA_BIN_DIR` (default `~/.local/bin`).
47+
48+
### Removed
49+
50+
- `spinosa github` and `spinosa acp` from the product CLI (quarantined under `script/orphan/`).
51+
- Fake tips for github install, `/review`, and related OpenCode leftovers.
52+
53+
### Fixed
54+
55+
- TUI picker Escape restores the previous route; failed workspace opens roll back path/KV.
56+
- Skills and docs use `spinosa export` (no unsupported `--session`/`--last`).
57+
- Stable channel UI notes that the rolling channel may be unavailable until published.
58+
3959
## [1.0.3-beta.1] — 2026-07-30
4060

4161
### Changed

‎script/patch-local-install.sh‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,30 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
77
VERSION="$(awk -F'"' '/"version":/ { print $4; exit }' "$ROOT/package.json")"
88
SPINOSA_HOME="${SPINOSA_HOME:-$HOME/.spinosa}"
99
TARGET="${SPINOSA_HOME}/versions/${VERSION}"
10+
# Real installs put the user-facing shim in ~/.local/bin (see env.sh / install.sh).
11+
# ~/.spinosa/bin/spinosa is the home-local copy; PATH uses SPINOSA_BIN_DIR.
12+
if [[ -z "${SPINOSA_BIN_DIR:-}" && -f "${SPINOSA_HOME}/env.sh" ]]; then
13+
# shellcheck disable=SC1090
14+
# Only pull BIN_DIR — do not source the whole file (would mutate caller PATH).
15+
SPINOSA_BIN_DIR="$(
16+
awk -F= '/^export SPINOSA_BIN_DIR=/ {
17+
gsub(/"/, "", $2)
18+
print $2
19+
exit
20+
}' "${SPINOSA_HOME}/env.sh"
21+
)"
22+
fi
23+
SPINOSA_BIN_DIR="${SPINOSA_BIN_DIR:-$HOME/.local/bin}"
1024
BUN="${SPINOSA_HOME}/bin/bun"
1125
if [[ ! -x "$BUN" ]]; then
1226
BUN="$(command -v bun)"
1327
fi
1428
[[ -n "$BUN" && -x "$BUN" ]] || { echo "Error: bun not found" >&2; exit 1; }
1529

1630
echo "→ Patching ${SPINOSA_HOME} with local repo v${VERSION}"
31+
echo " Shim dir: ${SPINOSA_BIN_DIR}"
1732

18-
mkdir -p "${SPINOSA_HOME}/versions" "${SPINOSA_HOME}/bin" "${SPINOSA_HOME}/metadata"
33+
mkdir -p "${SPINOSA_HOME}/versions" "${SPINOSA_HOME}/bin" "${SPINOSA_HOME}/metadata" "${SPINOSA_BIN_DIR}"
1934
rsync -a --delete \
2035
--exclude '.git/' \
2136
--exclude 'node_modules/' \
@@ -29,6 +44,7 @@ mkdir -p "${TARGET}/metadata" "${TARGET}/workspace-template/.bin"
2944
printf '%s\n' "$VERSION" > "${TARGET}/metadata/version"
3045
install -m 755 "${ROOT}/workspace-template/.bin/spinosa" "${TARGET}/workspace-template/.bin/spinosa"
3146
install -m 755 "${ROOT}/workspace-template/.bin/spinosa" "${SPINOSA_HOME}/bin/spinosa"
47+
install -m 755 "${ROOT}/workspace-template/.bin/spinosa" "${SPINOSA_BIN_DIR}/spinosa"
3248

3349
link_workspace_packages() {
3450
local root="$1" nm="${1}/node_modules/@spinosa"
@@ -55,5 +71,7 @@ SPINOSA_HOME="$SPINOSA_HOME" SPINOSA_TEMPLATE_ROOT="$TARGET" \
5571
"$BUN" run "${TARGET}/packages/spinosa-kernel/src/index.ts" version
5672

5773
echo "✓ Patched ${SPINOSA_HOME} to local v${VERSION}"
74+
echo " Shim: ${SPINOSA_BIN_DIR}/spinosa"
5875
echo " Run: spinosa version"
5976
echo " Run: spinosa upgrade --check"
77+
echo " If command not found: source ${SPINOSA_HOME}/env.sh (or open a new shell)"

0 commit comments

Comments
 (0)