Commit defd4e3
chore: migrate toolchain to Bun (#599)
* chore: migrate toolchain from pnpm/Node.js/tsdown/vitest to Bun
Unify the entire toolchain under Bun: package manager, runtime,
test runner, script runner, and build system. Turborepo is retained
for build orchestration and caching.
**Package manager (pnpm → bun)**
- Replace pnpm with bun workspaces, delete pnpm-lock.yaml/pnpm-workspace.yaml
- Generate bun.lock, update all scripts from pnpm to bun
**Runtime (Node.js → Bun)**
- Change shebangs from #!/usr/bin/env node to #!/usr/bin/env bun
- Update engines field to bun >= 1.2.0 across all packages
**Build system (tsdown → tsc)**
- Replace tsdown with tsc -p tsconfig.build.json for all 23 packages
- Create per-package tsconfig.build.json with appropriate templates
- Delete all tsdown config files
**Test runner (vitest → bun:test)**
- Migrate all 117 test files from vitest to bun:test API
- Handle bun:test limitations: mock.module() cross-file leaking via
per-package process isolation (turbo run test) and per-file isolation
for @perstack/runtime
- Create types/bun-test.d.ts for TypeScript support
- Set up happy-dom for React component tests
**Script runner (tsx → bun)**
- Replace tsx with bun for validation scripts
**CI/CD**
- Update all GitHub Actions workflows to use oven-sh/setup-bun
- Keep Node.js setup in release workflow for npm registry publishing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): use turbo for test isolation and fix knip config
- CI test step: use `bun run test` (turbo) instead of `bun test` directly
to get per-package process isolation (prevents mock.module leaks)
- knip: add entry points for create-expert-skill and runtime test files
(previously discovered via tsdown/vitest plugins)
- Remove unused smol-toml from root devDependencies (was used in deleted
vitest.config.ts)
- Add empty changeset
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(knip): add explicit entry points for create-expert apps
CI knip may not auto-discover entries from package.json bin/exports
fields. Add explicit entries to ensure consistent behavior.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(knip): mark public API export and fix entry discovery
- Mark collectToolDefinitionsForExpert as @public (part of runtime's
public API, documented in README, but not imported internally)
- Previously the vitest plugin traced this through test files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: remove unnecessary bunfig.toml files
- Root bunfig.toml: only had coverageSkipTestFiles, but CI doesn't use
--coverage
- packages/react/bunfig.toml: happydom preload is redundant since hook
test files already import happydom directly
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: remove unused bun-test.d.ts type declarations
Test files are excluded from tsconfig.json in all packages, so tsc
never resolves bun:test imports. The type declarations are unnecessary.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent faa66cc commit defd4e3
File tree
216 files changed
+2548
-7790
lines changed- .changeset
- .github/workflows
- apps
- base
- bin
- src
- lib
- tools
- create-expert-skill
- bin
- create-expert
- bin
- perstack
- bin
- e2e
- create-expert
- fixtures
- lib
- perstack-cli
- packages
- core
- src
- adapters
- schemas
- utils
- filesystem
- src
- installer
- log
- src
- perstack-toml
- src
- providers
- anthropic
- src
- azure-openai
- src
- bedrock
- src
- core
- src
- deepseek
- src
- google
- src
- ollama
- src
- openai
- src
- vertex
- src
- react
- src
- hooks
- utils
- runtime
- src
- events
- helpers
- llm
- messages
- orchestration
- state-machine
- states
- tool-execution
- skill-manager
- src
- adapters
- utils
- tui-components
- src/execution/hooks
- tui
- src/lib
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
216 files changed
+2548
-7790
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 31 | + | |
39 | 32 | | |
40 | 33 | | |
41 | | - | |
| 34 | + | |
42 | 35 | | |
43 | 36 | | |
44 | | - | |
| 37 | + | |
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
| |||
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
53 | | - | |
54 | | - | |
| 46 | + | |
| 47 | + | |
55 | 48 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 49 | + | |
63 | 50 | | |
64 | 51 | | |
65 | | - | |
| 52 | + | |
66 | 53 | | |
67 | 54 | | |
68 | 55 | | |
69 | 56 | | |
70 | 57 | | |
71 | | - | |
| 58 | + | |
72 | 59 | | |
73 | 60 | | |
74 | 61 | | |
75 | 62 | | |
76 | | - | |
| 63 | + | |
77 | 64 | | |
78 | 65 | | |
79 | 66 | | |
| |||
82 | 69 | | |
83 | 70 | | |
84 | 71 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 72 | + | |
| 73 | + | |
92 | 74 | | |
93 | | - | |
94 | | - | |
| 75 | + | |
95 | 76 | | |
96 | 77 | | |
97 | | - | |
| 78 | + | |
98 | 79 | | |
99 | 80 | | |
100 | | - | |
| 81 | + | |
101 | 82 | | |
102 | 83 | | |
103 | 84 | | |
| |||
106 | 87 | | |
107 | 88 | | |
108 | 89 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 90 | + | |
| 91 | + | |
116 | 92 | | |
117 | | - | |
118 | | - | |
| 93 | + | |
119 | 94 | | |
120 | 95 | | |
121 | | - | |
| 96 | + | |
122 | 97 | | |
123 | 98 | | |
124 | | - | |
| 99 | + | |
125 | 100 | | |
126 | 101 | | |
127 | 102 | | |
| |||
130 | 105 | | |
131 | 106 | | |
132 | 107 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 108 | + | |
| 109 | + | |
140 | 110 | | |
141 | | - | |
142 | | - | |
| 111 | + | |
143 | 112 | | |
144 | 113 | | |
145 | | - | |
| 114 | + | |
146 | 115 | | |
147 | 116 | | |
148 | | - | |
| 117 | + | |
149 | 118 | | |
150 | 119 | | |
151 | 120 | | |
| |||
154 | 123 | | |
155 | 124 | | |
156 | 125 | | |
157 | | - | |
158 | | - | |
| 126 | + | |
| 127 | + | |
159 | 128 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 129 | + | |
167 | 130 | | |
168 | 131 | | |
169 | | - | |
| 132 | + | |
170 | 133 | | |
171 | 134 | | |
172 | | - | |
| 135 | + | |
173 | 136 | | |
174 | 137 | | |
175 | 138 | | |
| |||
178 | 141 | | |
179 | 142 | | |
180 | 143 | | |
181 | | - | |
182 | | - | |
| 144 | + | |
| 145 | + | |
183 | 146 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 147 | + | |
191 | 148 | | |
192 | 149 | | |
193 | | - | |
| 150 | + | |
194 | 151 | | |
195 | 152 | | |
196 | | - | |
| 153 | + | |
197 | 154 | | |
198 | | - | |
199 | | - | |
| 155 | + | |
| 156 | + | |
200 | 157 | | |
201 | 158 | | |
202 | 159 | | |
| |||
207 | 164 | | |
208 | 165 | | |
209 | 166 | | |
210 | | - | |
211 | | - | |
| 167 | + | |
| 168 | + | |
212 | 169 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 170 | + | |
220 | 171 | | |
221 | 172 | | |
222 | | - | |
| 173 | + | |
223 | 174 | | |
224 | 175 | | |
225 | 176 | | |
226 | 177 | | |
227 | 178 | | |
228 | | - | |
| 179 | + | |
229 | 180 | | |
230 | 181 | | |
231 | 182 | | |
232 | 183 | | |
233 | | - | |
| 184 | + | |
234 | 185 | | |
235 | 186 | | |
236 | 187 | | |
| |||
255 | 206 | | |
256 | 207 | | |
257 | 208 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 209 | + | |
265 | 210 | | |
266 | | - | |
| 211 | + | |
267 | 212 | | |
268 | | - | |
269 | | - | |
| 213 | + | |
270 | 214 | | |
271 | 215 | | |
272 | 216 | | |
273 | | - | |
| 217 | + | |
274 | 218 | | |
275 | 219 | | |
276 | 220 | | |
277 | | - | |
| 221 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
| 56 | + | |
| 57 | + | |
59 | 58 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 59 | + | |
67 | 60 | | |
68 | 61 | | |
69 | | - | |
| 62 | + | |
70 | 63 | | |
71 | 64 | | |
72 | | - | |
| 65 | + | |
73 | 66 | | |
74 | 67 | | |
75 | | - | |
| 68 | + | |
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments