Skip to content

Commit 5aa796a

Browse files
committed
♻️ Migrate codex from npm to bun and add install recipe
1 parent 2ec2983 commit 5aa796a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

home/.justfiles/codex.justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ justfile := justfile_directory() + "/.justfiles/codex.justfile"
2121
@config:
2222
command codex --config
2323

24-
# check for outdated Codex npm package
25-
@outdated:
26-
npm outdated @openai/codex
24+
# install Codex CLI
25+
@install:
26+
bun install -g @openai/codex
2727

2828
# update Codex CLI to the latest version
2929
@upgrade:
3030
just --justfile {{ justfile }} version
31-
npm install -g @openai/codex
31+
bun install -g @openai/codex
3232
just --justfile {{ justfile }} version
3333

3434
# see Codex CLI usage

home/.justfiles/llm.justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ mod pi-coding-agent 'pi-coding-agent.justfile'
4343
outdated:
4444
#!/usr/bin/env bash
4545
echo "==> Checking npm packages..."
46-
npm outdated -g @github/copilot @openai/codex 2>/dev/null || true
46+
npm outdated -g @github/copilot 2>/dev/null || true
4747

4848
echo ""
4949
echo "==> Checking bun packages..."
50-
for pkg in clawdbot clawdhub cc-x10ded happy-coder moltbot @mariozechner/pi-coding-agent; do
50+
for pkg in @openai/codex clawdbot clawdhub cc-x10ded happy-coder moltbot @mariozechner/pi-coding-agent; do
5151
installed=$(bun pm ls -g 2>/dev/null | grep "$pkg" | sed 's/.*@//' | head -1)
5252
latest=$(npm view "$pkg" version 2>/dev/null)
5353
if [ -n "$installed" ] && [ -n "$latest" ]; then

0 commit comments

Comments
 (0)