diff --git a/.gitignore b/.gitignore index cc41a3e..3363bab 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ browse/dist/ *.log bun.lock *.bun-build +PR_ROADMAP.md +ssd.md .env .env.local .env.* diff --git a/browse/src/buffers.ts b/browse/src/buffers.ts index 27d3796..c8549f7 100644 --- a/browse/src/buffers.ts +++ b/browse/src/buffers.ts @@ -113,11 +113,9 @@ export interface DialogEntry { action: string; // 'accepted' | 'dismissed' response?: string; // text provided for prompt } - // ─── Buffer Instances ─────────────────────────────────────── -const HIGH_WATER_MARK = 50_000; - +const HIGH_WATER_MARK = parseInt(process.env.BROWSE_BUFFER_SIZE || '50000', 10); export const consoleBuffer = new CircularBuffer(HIGH_WATER_MARK); export const networkBuffer = new CircularBuffer(HIGH_WATER_MARK); export const dialogBuffer = new CircularBuffer(HIGH_WATER_MARK); diff --git a/browse/src/cli.ts b/browse/src/cli.ts index f8b7902..3c58396 100644 --- a/browse/src/cli.ts +++ b/browse/src/cli.ts @@ -217,7 +217,7 @@ async function sendCommand(state: ServerState, command: string, args: string[], 'Authorization': `Bearer ${state.token}`, }, body, - signal: AbortSignal.timeout(30000), + signal: AbortSignal.timeout(parseInt(process.env.BROWSE_TIMEOUT || '30000', 10)), }); if (resp.status === 401) { diff --git a/setup b/setup index 0bf2736..2ff7449 100755 --- a/setup +++ b/setup @@ -21,7 +21,8 @@ elif [ -n "$(find "$GSTACK_DIR/browse/src" -type f -newer "$BROWSE_BIN" -print - NEEDS_BUILD=1 elif [ "$GSTACK_DIR/package.json" -nt "$BROWSE_BIN" ]; then NEEDS_BUILD=1 -elif [ -f "$GSTACK_DIR/bun.lock" ] && [ "$GSTACK_DIR/bun.lock" -nt "$BROWSE_BIN" ]; then +elif { [ -f "$GSTACK_DIR/bun.lock" ] && [ "$GSTACK_DIR/bun.lock" -nt "$BROWSE_BIN" ]; } || \ + { [ -f "$GSTACK_DIR/bun.lockb" ] && [ "$GSTACK_DIR/bun.lockb" -nt "$BROWSE_BIN" ]; }; then NEEDS_BUILD=1 fi