Skip to content

Commit 02083fd

Browse files
committed
support: simplify version.sh — patch/minor/major auto-bump
- patch/minor/major: auto-detect version, bump, tag, update env/pins - No manual version entry needed - Uses sed instead of grep -P for portability - Validates repo state (branches, git tracking) - Updated .gitignore for workspace/ (ignored, recreatable)
1 parent bed8484 commit 02083fd

25 files changed

Lines changed: 1005 additions & 250 deletions

.env

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# LocalPibox Devstack — environment variables
2+
# All variables use the LPB_ (LocalPibox) prefix to avoid conflicts with
3+
# user environment variables. Loaded by start.sh from workspace directory.
4+
5+
# ─── API Keys ────────────────────────────────────────────────────────────────
6+
7+
# Exa MCP search API key
8+
LPB_EXA_API_KEY=57cd21c4-35e6-4965-8b03-49c2c56416de
9+
10+
# ─── Editor ──────────────────────────────────────────────────────────────────
11+
12+
# OpenVSCode connection token
13+
LPB_CONNECTION_TOKEN=rvKp8xMq2vNd7Jc4WzFg9Ht3Yb5EsL6A
14+
15+
# Editor host — 0.0.0.0 = LAN access, 127.0.0.1 = local-only
16+
LPB_EDITOR_HOST=0.0.0.0
17+
18+
# Editor port
19+
LPB_ED_PORT=3000
20+
21+
# ─── Browser ─────────────────────────────────────────────────────────────────
22+
23+
# Agent-browser session — uses PI_WORKTREE_ID for worktree isolation
24+
LPB_AGENT_BROWSER_SESSION=${PI_WORKTREE_ID}
25+
26+
# Chrome launch args (container-safe defaults)
27+
LPB_AGENT_BROWSER_ARGS="--no-sandbox,--no-first-run,--disable-gpu,--disable-crashpad"
28+
29+
# Max output length to prevent context flooding
30+
LPB_AGENT_BROWSER_MAX_OUTPUT=4000
31+
32+
# LLM safety markers in content extraction
33+
LPB_AGENT_BROWSER_CONTENT_BOUNDARIES=true
34+
35+
# Action categories requiring approval
36+
LPB_AGENT_BROWSER_CONFIRM_ACTIONS="delete,download,cookie_delete,file_access"
37+
38+
# Daemon idle timeout (5 minutes) — auto-cleanup after inactivity
39+
LPB_AGENT_BROWSER_IDLE_TIMEOUT_MS=300000
40+
41+
# ─── Context window / max tokens ratio ──────────────────────────────────────
42+
# max_tokens = context_window × LPB_MAX_TOKENS_CONTEXT_RATIO
43+
# 0.06 (6%) — reduced from 0.125 for Qwen thinking models.
44+
# At 0.125, Qwen thinking models generate 10-20k-token thinking blocks
45+
# that push prompt+max_tokens past the 262k window limit.
46+
# 0.06 × 262k = ~15.7k maxTokens — leaves room for thinking within window.
47+
LPB_MAX_TOKENS_CONTEXT_RATIO=0.06
48+
49+
# ─── Persistence ─────────────────────────────────────────────────────────────
50+
51+
# Persist gh CLI auth to ~/.config/gh inside container, stored in
52+
# ~/.localpibox/state/gh-config on the host (in the state volume).
53+
LPB_PERSIST_GH_CONFIG=true

.pi/mcp.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

PRODUCTION-VALIDATION-CHECKLIST.md

Lines changed: 766 additions & 0 deletions
Large diffs are not rendered by default.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.0-lpb
1+
1.0.0-lpb

lpb.stack.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Fork URL — cumulative patches on top of earendil-works/pi
1515
LPB_PI_FORK=https://github.com/localpibox/pi.git
1616
# Branch — which branch to build from (the lpb branch is the stable base)
17-
LPB_PI_REF=lpb
17+
LPB_PI_REF=1.0.0-lpb
1818
# Upstream — original repo (for reference / rebasing)
1919
LPB_PI_UPSTREAM=https://github.com/earendil-works/pi.git
2020

7.31 KB
Binary file not shown.
67.8 KB
Binary file not shown.
57.7 KB
Binary file not shown.
36.8 KB
Binary file not shown.
1.13 KB
Binary file not shown.

0 commit comments

Comments
 (0)