mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(portless): upgrade local dev URLs
This commit is contained in:
@@ -19,7 +19,7 @@ If either is missing, report back asking for the missing information.
|
||||
|
||||
### Step 1: Use the Existing Dev Server
|
||||
|
||||
Use the already-running Portless dev server at `http://5chan.localhost:1355` unless the parent agent gives you a different URL.
|
||||
Use the already-running Portless dev server at `https://5chan.localhost` unless the parent agent gives you a different URL.
|
||||
|
||||
Do not start, restart, or stop the dev server yourself. If the app is unreachable, report the failure and stop.
|
||||
|
||||
@@ -30,9 +30,9 @@ Default to a fresh isolated `playwright-cli` browser session. If the requested v
|
||||
Use playwright-cli to check the relevant page in all three browser engines with separate sessions:
|
||||
|
||||
```bash
|
||||
playwright-cli -s=verify-chrome open http://5chan.localhost:1355 --browser=chrome
|
||||
playwright-cli -s=verify-firefox open http://5chan.localhost:1355 --browser=firefox
|
||||
playwright-cli -s=verify-webkit open http://5chan.localhost:1355 --browser=webkit
|
||||
playwright-cli -s=verify-chrome open https://5chan.localhost --browser=chrome
|
||||
playwright-cli -s=verify-firefox open https://5chan.localhost --browser=firefox
|
||||
playwright-cli -s=verify-webkit open https://5chan.localhost --browser=webkit
|
||||
```
|
||||
|
||||
Navigate each engine session to the specific page/route where the change should be visible.
|
||||
@@ -62,7 +62,7 @@ playwright-cli -s=verify-webkit snapshot
|
||||
## Browser Check Results
|
||||
|
||||
### Page Tested
|
||||
- URL: http://5chan.localhost:1355/...
|
||||
- URL: https://5chan.localhost/...
|
||||
|
||||
### What Was Checked
|
||||
- description of each verification
|
||||
|
||||
@@ -4,7 +4,7 @@ model: composer-2
|
||||
description: Performance profiler that browses 5chan routes via playwright-cli, collecting Web Vitals and React rerender data via react-scan. Returns a structured issues list for a batch of routes. Use proactively when profiling browsing performance, finding bottlenecks, or diagnosing excessive React rerenders.
|
||||
---
|
||||
|
||||
You are a performance profiling agent for the 5chan React app at http://5chan.localhost:1355. You use playwright-cli to automate browsing and collect both browser-level (Web Vitals) and React-level (commit counts, per-component render data via react-scan) performance metrics.
|
||||
You are a performance profiling agent for the 5chan React app at https://5chan.localhost. You use playwright-cli to automate browsing and collect both browser-level (Web Vitals) and React-level (commit counts, per-component render data via react-scan) performance metrics.
|
||||
|
||||
**MUST: Never start a dev server.** The orchestrator guarantees one is already running. If the app is unreachable, report the error and stop — do not run `yarn start` or any other server command.
|
||||
|
||||
@@ -49,7 +49,7 @@ playwright-cli -s=SESSION run-code "async page => await page.addInitScript(() =>
|
||||
`window.__PROFILING__=true` tells react-scan to disable its toolbar and sounds during automated profiling.
|
||||
|
||||
```bash
|
||||
playwright-cli -s=SESSION goto http://5chan.localhost:1355
|
||||
playwright-cli -s=SESSION goto https://5chan.localhost
|
||||
playwright-cli -s=SESSION tracing-start
|
||||
```
|
||||
|
||||
@@ -62,7 +62,7 @@ For each route, navigate, interact, and **collect data before moving to the next
|
||||
```bash
|
||||
# Navigate
|
||||
playwright-cli -s=SESSION eval "performance.mark('pre-ROUTE')"
|
||||
playwright-cli -s=SESSION goto http://5chan.localhost:1355/ROUTE
|
||||
playwright-cli -s=SESSION goto https://5chan.localhost/ROUTE
|
||||
playwright-cli -s=SESSION snapshot
|
||||
playwright-cli -s=SESSION eval "performance.mark('post-ROUTE');performance.measure('ROUTE','pre-ROUTE','post-ROUTE')"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Use this skill to jump from a concrete DOM node in the running 5chan app to the
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Dev server running at `http://5chan.localhost:1355`
|
||||
- Dev server running at `https://5chan.localhost`
|
||||
- `playwright-cli` installed
|
||||
- Use the local dev app, not production. The element-source helpers are only exposed in dev mode.
|
||||
|
||||
@@ -33,8 +33,8 @@ The result includes:
|
||||
## Session setup
|
||||
|
||||
```bash
|
||||
playwright-cli -s=inspect open http://5chan.localhost:1355
|
||||
playwright-cli -s=inspect goto http://5chan.localhost:1355/all
|
||||
playwright-cli -s=inspect open https://5chan.localhost
|
||||
playwright-cli -s=inspect goto https://5chan.localhost/all
|
||||
playwright-cli -s=inspect eval "window.__ELEMENT_SOURCE__?.ready ?? false"
|
||||
playwright-cli -s=inspect snapshot
|
||||
```
|
||||
|
||||
@@ -9,7 +9,7 @@ Two-layer profiling: browser-level symptoms (Web Vitals, long tasks, scroll jank
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Dev server running at http://5chan.localhost:1355 (`yarn start` via Portless)
|
||||
- Dev server running at https://5chan.localhost (`yarn start` via Portless)
|
||||
- `playwright-cli` installed (`npm install -g @playwright/cli@latest`)
|
||||
|
||||
**IMPORTANT:** The orchestrator (you) is responsible for ensuring exactly ONE dev server is running. Profiler subagents must NEVER start a dev server themselves.
|
||||
@@ -31,7 +31,7 @@ Before spawning any profiler subagents, verify exactly one dev server is availab
|
||||
|
||||
```bash
|
||||
# Check if the dev server is reachable
|
||||
curl -sf http://5chan.localhost:1355 -o /dev/null && echo "OK" || echo "NOT RUNNING"
|
||||
curl -sf https://5chan.localhost -o /dev/null && echo "OK" || echo "NOT RUNNING"
|
||||
```
|
||||
|
||||
- If **OK**: proceed to Step 1.
|
||||
|
||||
Reference in New Issue
Block a user