Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ browse/dist/
*.log
bun.lock
*.bun-build
PR_ROADMAP.md
ssd.md
.env
.env.local
.env.*
Expand Down
4 changes: 1 addition & 3 deletions browse/src/buffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<LogEntry>(HIGH_WATER_MARK);
export const networkBuffer = new CircularBuffer<NetworkEntry>(HIGH_WATER_MARK);
export const dialogBuffer = new CircularBuffer<DialogEntry>(HIGH_WATER_MARK);
Expand Down
2 changes: 1 addition & 1 deletion browse/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down