feat(scripts): added script-based setup orchestration with optional cargo native mode
- Replaced the `setup` script in `package.json` with a call to `bun scripts/setup.ts`. - Added `scripts/setup.ts` to run install, native build, coding-agent linking, and `link-omp` steps in order with step-level failure handling. - Extended `scripts/bazel-natives.ts` with a `--cargo` flag, forbidding incompatible `--source`/bazel arg combinations, and using it to force local host backend selection.
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@
|
||||
"@ark/schema": "0.56.2"
|
||||
},
|
||||
"scripts": {
|
||||
"setup": "bun install && bun run build:native && bun --cwd=packages/coding-agent link && sh scripts/link-omp.sh",
|
||||
"setup": "bun scripts/setup.ts",
|
||||
"dev": "bun --cwd=packages/coding-agent src/cli.ts",
|
||||
"dev:timing": "PI_TIMING=x bun --cwd=packages/coding-agent --preload ../utils/src/module-timer.ts src/cli.ts",
|
||||
"stats": "bun --cwd=packages/coding-agent src/cli.ts stats",
|
||||
|
||||
Reference in New Issue
Block a user