mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
chore(justfile): use debug profile for dev sidecar/agent builds
`just staging`, `goose`, and `goose-bg` built their sidecar/agent binaries with `--release` on every invocation. These are short-lived sidecar and local-agent processes, not perf-critical paths, so opt-3 codegen buys nothing while tripling compile time (debug ~35s vs release ~106s for the four sidecar crates locally). Drop `--release` and point the run/copy paths at `target/debug/` to match. Release variants (`build-release`, `relay-release`, `proxy-release`, `reindex-kind0`, `desktop-release-build`) are unchanged — they are intentional release builds. Follow-up (not in this change): `just dev` only creates 0-byte sidecar stubs to satisfy Tauri's externalBin validation, so agent/acp/cli features don't actually run under `dev`. Whether that's intended or a gap deserves its own review. Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co> Signed-off-by: Wes <wesbillman@users.noreply.github.com>
This commit is contained in:
@@ -282,10 +282,10 @@ staging *ARGS: _ensure-sidecar-stubs
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
pnpm install
|
||||
cargo build --release -p sprout-acp -p sprout-agent -p sprout-dev-mcp -p sprout-cli
|
||||
cargo build -p sprout-acp -p sprout-agent -p sprout-dev-mcp -p sprout-cli
|
||||
# Replace the 0-byte sidecar stub with the real CLI binary so tauri dev picks it up.
|
||||
TARGET=$(rustc -vV | sed -n 's|host: ||p')
|
||||
cp target/release/sprout "desktop/src-tauri/binaries/sprout-${TARGET}"
|
||||
cp target/debug/sprout "desktop/src-tauri/binaries/sprout-${TARGET}"
|
||||
chmod +x "desktop/src-tauri/binaries/sprout-${TARGET}"
|
||||
cd {{desktop_dir}}
|
||||
source ../scripts/instance-env.sh
|
||||
@@ -534,7 +534,7 @@ release *ARGS:
|
||||
goose relay="ws://localhost:3000" agents="1" heartbeat="0" prompt="" key="$SPROUT_PRIVATE_KEY":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cargo build --release -p sprout-acp -p sprout-cli
|
||||
cargo build -p sprout-acp -p sprout-cli
|
||||
env_args=(
|
||||
SPROUT_RELAY_URL="{{relay}}"
|
||||
SPROUT_PRIVATE_KEY="{{key}}"
|
||||
@@ -547,13 +547,13 @@ goose relay="ws://localhost:3000" agents="1" heartbeat="0" prompt="" key="$SPROU
|
||||
if [[ "{{heartbeat}}" != "0" ]]; then
|
||||
env_args+=(SPROUT_ACP_HEARTBEAT_INTERVAL={{heartbeat}})
|
||||
fi
|
||||
exec env "${env_args[@]}" ./target/release/sprout-acp
|
||||
exec env "${env_args[@]}" ./target/debug/sprout-acp
|
||||
|
||||
# Run a goose agent in the background (screen session named 'goose-agent-N')
|
||||
goose-bg relay="ws://localhost:3000" agents="1" heartbeat="0" prompt="" key="$SPROUT_PRIVATE_KEY":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cargo build --release -p sprout-acp -p sprout-cli
|
||||
cargo build -p sprout-acp -p sprout-cli
|
||||
env_args=(
|
||||
SPROUT_RELAY_URL="{{relay}}"
|
||||
SPROUT_PRIVATE_KEY="{{key}}"
|
||||
@@ -566,5 +566,5 @@ goose-bg relay="ws://localhost:3000" agents="1" heartbeat="0" prompt="" key="$SP
|
||||
if [[ "{{heartbeat}}" != "0" ]]; then
|
||||
env_args+=(SPROUT_ACP_HEARTBEAT_INTERVAL={{heartbeat}})
|
||||
fi
|
||||
screen -dmS goose-agent-{{agents}} bash -c "$(printf '%q ' env "${env_args[@]}") ./target/release/sprout-acp"
|
||||
screen -dmS goose-agent-{{agents}} bash -c "$(printf '%q ' env "${env_args[@]}") ./target/debug/sprout-acp"
|
||||
echo "Agent running in screen session 'goose-agent-{{agents}}'. Attach with: screen -r goose-agent-{{agents}}"
|
||||
|
||||
Reference in New Issue
Block a user