Skip to content

Commit 1909b2f

Browse files
authored
Merge pull request #216 from ProverCoderAI/feat/bun-gridland-bun-first
feat(runtime): migrate docker-git to bun and gridland
2 parents 27f238d + 8db6918 commit 1909b2f

294 files changed

Lines changed: 17441 additions & 12582 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ HOOK_DIR="$(cd "$(dirname "$0")" && pwd)"
55
REPO_ROOT="$(cd "$HOOK_DIR/.." && pwd)"
66
cd "$REPO_ROOT"
77

8-
node scripts/split-knowledge-large-files.js
8+
bun scripts/split-knowledge-large-files.js
99
while IFS= read -r -d '' knowledge_dir; do
1010
git add -A -- "$knowledge_dir"
1111
done < <(

.githooks/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ "${DOCKER_GIT_SKIP_KNOWLEDGE_GUARD:-}" = "1" ]; then
99
exit 0
1010
fi
1111

12-
node scripts/pre-push-knowledge-guard.js "$@"
12+
bun scripts/pre-push-knowledge-guard.js "$@"
1313

1414
# CHANGE: backup AI session to a private session repository on push (supports Claude, Codex, Gemini)
1515
# WHY: allows returning to old AI sessions and provides PR context without gist limits
@@ -18,6 +18,6 @@ node scripts/pre-push-knowledge-guard.js "$@"
1818
# PURITY: SHELL
1919
if [ "${DOCKER_GIT_SKIP_SESSION_BACKUP:-}" != "1" ]; then
2020
if command -v gh >/dev/null 2>&1; then
21-
node scripts/session-backup-gist.js --verbose || echo "[session-backup] Warning: session backup failed (non-fatal)"
21+
bun scripts/session-backup-gist.js --verbose || echo "[session-backup] Warning: session backup failed (non-fatal)"
2222
fi
2323
fi

.github/actions/setup/action.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
name: Setup
2-
description: Perform standard setup and install dependencies using pnpm.
2+
description: Perform standard setup and install dependencies using Bun.
33
inputs:
4+
bun-version:
5+
description: The version of Bun to install
6+
required: true
7+
default: 1.3.11
48
node-version:
5-
description: The version of Node.js to install
9+
description: The version of Node.js to install for compatibility/native builds
610
required: true
711
default: 24
812

913
runs:
1014
using: composite
1115
steps:
12-
- name: Install pnpm
13-
uses: pnpm/action-setup@v5
14-
- name: Install node
16+
- name: Install Bun
17+
uses: oven-sh/setup-bun@v2
18+
with:
19+
bun-version: ${{ inputs.bun-version }}
20+
- name: Install Node
1521
uses: actions/setup-node@v6
1622
with:
17-
cache: pnpm
1823
node-version: ${{ inputs.node-version }}
24+
- name: Install OpenSSH client
25+
shell: bash
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y openssh-client
29+
- name: Install node-gyp
30+
shell: bash
31+
run: npm install -g node-gyp
1932
- name: Install dependencies
2033
shell: bash
21-
run: pnpm install --frozen-lockfile
34+
run: bun install --frozen-lockfile

.github/workflows/check.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
uses: ./.github/actions/setup
2626
- name: Build (docker-git package)
27-
run: pnpm --filter ./packages/app build
27+
run: bun run --cwd packages/app build
2828

2929
types:
3030
name: Types
@@ -35,9 +35,9 @@ jobs:
3535
- name: Install dependencies
3636
uses: ./.github/actions/setup
3737
- name: Typecheck (app)
38-
run: pnpm --filter ./packages/app check
38+
run: bun run --cwd packages/app check
3939
- name: Typecheck (lib)
40-
run: pnpm --filter ./packages/lib typecheck
40+
run: bun run --cwd packages/lib typecheck
4141

4242
lint:
4343
name: Lint
@@ -47,16 +47,10 @@ jobs:
4747
- uses: actions/checkout@v6
4848
- name: Install dependencies
4949
uses: ./.github/actions/setup
50-
# vibecode-linter uses npx internally for dependency checks
51-
# In pnpm workspaces, npx doesn't find local packages correctly
52-
# Install TypeScript and Biome globally as a workaround
53-
# See: https://github.com/ton-ai-core/vibecode-linter/issues (pending issue)
54-
- name: Install global linter dependencies
55-
run: npm install -g typescript @biomejs/biome
5650
- name: Lint (app)
57-
run: pnpm --filter ./packages/app lint
51+
run: bun run --cwd packages/app lint
5852
- name: Lint (lib)
59-
run: pnpm --filter ./packages/lib lint
53+
run: bun run --cwd packages/lib lint
6054

6155
test:
6256
name: Test
@@ -66,13 +60,10 @@ jobs:
6660
- uses: actions/checkout@v6
6761
- name: Install dependencies
6862
uses: ./.github/actions/setup
69-
# vibecode-linter uses npx internally for dependency checks (lint:tests runs first)
70-
- name: Install global linter dependencies
71-
run: npm install -g typescript @biomejs/biome
7263
- name: Test (app)
73-
run: pnpm --filter ./packages/app test
64+
run: bun run --cwd packages/app test
7465
- name: Test (lib)
75-
run: pnpm --filter ./packages/lib test
66+
run: bun run --cwd packages/lib test
7667

7768
lint-effect:
7869
name: Lint Effect-TS
@@ -83,9 +74,9 @@ jobs:
8374
- name: Install dependencies
8475
uses: ./.github/actions/setup
8576
- name: Lint Effect-TS (app)
86-
run: pnpm --filter ./packages/app lint:effect
77+
run: bun run --cwd packages/app lint:effect
8778
- name: Lint Effect-TS (lib)
88-
run: pnpm --filter ./packages/lib lint:effect
79+
run: bun run --cwd packages/lib lint:effect
8980

9081
e2e-local-package:
9182
name: E2E (Local package CLI)
@@ -95,7 +86,7 @@ jobs:
9586
- uses: actions/checkout@v6
9687
- name: Install dependencies
9788
uses: ./.github/actions/setup
98-
- name: Pack and run local package via pnpm
89+
- name: Pack and run local package via Bun
9990
run: bash scripts/e2e/local-package-cli.sh
10091

10192
e2e-opencode:

.github/workflows/checking-dependencies.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15-
- uses: pnpm/action-setup@v5
16-
- uses: actions/setup-node@v6
15+
- uses: ./.github/actions/setup
1716
with:
1817
node-version: 24.14.0
19-
cache: pnpm
20-
21-
- run: pnpm install --frozen-lockfile
22-
- run: pnpm -C packages/app build
18+
- run: bun run --cwd packages/app build
2319

2420
- name: Dist deps prune (lint)
25-
run: |
26-
pnpm dlx @prover-coder-ai/dist-deps-prune scan \
27-
--package ./packages/app/package.json \
28-
--prune-dev true \
29-
--silent
21+
run: bun run check:dist-deps-prune

0 commit comments

Comments
 (0)