



























@@ -17,30 +17,28 @@ runner class, reusable warm state, or a Blacksmith alternative.
1717- Use Crabbox for broad OpenClaw gates when owned AWS/Hetzner capacity is the
1818 right remote lane.
1919- Check `.crabbox.yaml` for repo defaults before adding flags.
20+- Sanity-check the selected binary before remote work. OpenClaw scripts prefer
21+`../crabbox/bin/crabbox` when present; the user PATH shim can be stale:
22+`command -v crabbox; ../crabbox/bin/crabbox --version; ../crabbox/bin/crabbox --help | sed -n '1,90p'`.
2023- Install with `brew install openclaw/tap/crabbox`; auth is required before use:
2124`printf '%s' "$CRABBOX_COORDINATOR_TOKEN" | crabbox login --url https://crabbox-coordinator.steipete.workers.dev --provider aws --token-stdin`.
2225- On macOS the user config is `~/Library/Application Support/crabbox/config.yaml`;
2326 it must include `broker.url`, `broker.token`, and usually `provider: aws`.
24272528## OpenClaw Flow
262927-Warm a reusable box:
30+AWS/owned-capacity flow for `pnpm` tests:
28312932```sh
3033pnpm crabbox:warmup -- --idle-timeout 90m
31-```
32-33-Hydrate it through the repository workflow:
34-35-```sh
3634pnpm crabbox:hydrate -- --id <cbx_id-or-slug>
35+pnpm crabbox:run -- --id <cbx_id-or-slug> --timing-json --shell -- "env NODE_OPTIONS=--max-old-space-size=4096 OPENCLAW_TEST_PROJECTS_PARALLEL=6 OPENCLAW_VITEST_MAX_WORKERS=1 OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=900000 pnpm test:changed"
3736```
383739-Run broad proof:
38+Blacksmith-backed Crabbox flow can delegate setup to the Testbox workflow:
40394140```sh
42-pnpm crabbox:run -- --id <cbx_id-or-slug> --shell "OPENCLAW_TESTBOX=1 pnpm check:changed"
43-pnpm crabbox:run -- --id <cbx_id-or-slug> --shell "corepack enable && pnpm install --frozen-lockfile && pnpm test"
41+pnpm crabbox:run -- --provider blacksmith-testbox --blacksmith-org openclaw --blacksmith-workflow .github/workflows/ci-check-testbox.yml --blacksmith-job check --blacksmith-ref main --idle-timeout 90m --timing-json --shell -- "env NODE_OPTIONS=--max-old-space-size=4096 OPENCLAW_TEST_PROJECTS_PARALLEL=6 OPENCLAW_VITEST_MAX_WORKERS=1 OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=900000 pnpm test:changed"
4442```
45434644Stop boxes you created before handoff:
@@ -63,6 +61,8 @@ crabbox ssh --id <id-or-slug>
6361```
64626563Use `--debug` on `run` when measuring sync timing.
64+Use `--timing-json` on warmup, hydrate, and run when comparing AWS and
65+blacksmith-testbox timings.
66666767## Hydration Boundary
6868此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。