Skip to content
Merged
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
188 changes: 0 additions & 188 deletions .devcontainer/command-server-proxy.js

This file was deleted.

21 changes: 4 additions & 17 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,17 @@
"extensions": [
"ms-python.python",
"-github.copilot-chat",
"github.vscode-github-actions",
"crimson206.vscode-command-server"
"github.vscode-github-actions"
]
}
},

// Port forwarding for vscode-command-server (required for Simple Browser link opening)
"forwardPorts": [3000, 3001],
"portsAttributes": {
"3000": {
"label": "VS Code Command Server",
"onAutoForward": "silent",
"visibility": "public"
},
"3001": {
"label": "Command Server CORS Proxy",
"onAutoForward": "silent",
"visibility": "public"
}
},

// Run during prebuild - installs Python dependencies (cached!)
"onCreateCommand": "bash .devcontainer/install-deps.sh",

// Install ChipFlow VS Code extension after container attach
"postAttachCommand": "code --install-extension .devcontainer/extensions/chipflow-workbench-0.1.0.vsix --force 2>/dev/null || true",

// Container optimizations
"containerEnv": {
"PYTHONUNBUFFERED": "1",
Expand Down
Binary file not shown.
61 changes: 12 additions & 49 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ EOF
export PATH="/home/user/.local/bin:$PATH"
eval "$(pdm venv activate in-project 2>/dev/null || true)"

# Start CORS proxy for vscode-command-server (enables Simple Browser link opening)
echo "🔧 Starting command server CORS proxy..."
node .devcontainer/command-server-proxy.js > /tmp/command-server-proxy.log 2>&1 &
echo "✅ CORS proxy started on port 3001"

# Configurator API base URL (will be set from design config if in codespace)
CONFIGURATOR_API="${CHIPFLOW_CONFIGURATOR_API:-https://configurator.chipflow.io}"

Expand Down Expand Up @@ -183,50 +178,18 @@ if [ -f ".venv/bin/activate" ]; then
echo ""
fi

# Display welcome page URL if available
if [ -n "$CHIPFLOW_WELCOME_URL" ]; then
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "📖 Getting Started Guide"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "🌐 Opening welcome page in browser..."
echo " $CHIPFLOW_WELCOME_URL"
echo ""
echo " The page includes:"
echo " • Your design configuration"
echo " • Copy-paste commands to get started"
echo " • Links to documentation"
echo ""

# Auto-open in VS Code Simple Browser (embeds in editor instead of new tab)
# Use vscode-command-server extension to execute simpleBrowser.api.open command
# This avoids creating a new codespace which happens with code --open-url

# Wait for command server to be ready (max 10 seconds)
echo " Waiting for VS Code command server..."
for i in $(seq 1 10); do
if curl -s http://localhost:3000/health >/dev/null 2>&1; then
break
fi
sleep 1
done

# Try to open in Simple Browser via command server API
if curl -s -X POST -H "Content-Type: application/json" \
-d "{\"command\":\"simpleBrowser.api.open\", \"args\": [\"$CHIPFLOW_WELCOME_URL\"]}" \
http://localhost:3000/execute >/dev/null 2>&1; then
echo " ✓ Opened in VS Code Simple Browser"
elif command -v gp >/dev/null 2>&1; then
# Fallback: Gitpod/Codespaces browser opener (opens in new tab)
gp preview "$CHIPFLOW_WELCOME_URL" >/dev/null 2>&1 &
elif command -v python3 >/dev/null 2>&1; then
# Fallback: use python webbrowser module (opens in new tab)
python3 -c "import webbrowser; webbrowser.open('$CHIPFLOW_WELCOME_URL')" >/dev/null 2>&1 &
fi

echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
fi
# Display getting started info
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "📖 Getting Started"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo " Click the ChipFlow icon in the activity bar to see:"
echo " • Your design configuration"
echo " • Build, Run, and Submit buttons"
echo " • Links to documentation"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""

echo "Quick commands:"
echo " • F5 or Cmd/Ctrl+Shift+B - Build and run simulation"
Expand Down
9 changes: 2 additions & 7 deletions .env.toolchain
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# ChipFlow Toolchain Environment Variables
# Temporary staging configuration for v0.3 platform release
# TODO: Revert to production when v0.3 is complete

# Use staging backend branch with sky130 CFSRAM support
CHIPFLOW_BACKEND_VERSION=branch-sky130-cfsram

# Use staging API instead of production
CHIPFLOW_API_ORIGIN=https://build-staging.chipflow.org
CHIPFLOW_BACKEND_VERSION=branch-main
CHIPFLOW_API_ORIGIN=https://build.chipflow.com
Loading