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:
can1357
2026-08-16 09:37:15 +03:00
parent ca1f184823
commit d4587e318e
3 changed files with 80 additions and 5 deletions
+1 -1
View File
@@ -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",