-
Notifications
You must be signed in to change notification settings - Fork 1.6k
docs(domain-skill): add ProxyWar browser guide #580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
0xNad
wants to merge
1
commit into
browser-use:main
Choose a base branch
from
0xNad:claude/proxywar-domain-skill
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| # proxywar.xyz / beta.proxywar.xyz | ||
|
|
||
| League/replay origin. Two separate Vite entries, never mixed: | ||
| `public.html`→`PublicApp.ts` (`assets/public-<hash>.js`) and | ||
| `index.html`→`Main.ts` (`assets/main-<hash>.js`). | ||
|
|
||
| ## Routes | ||
|
|
||
| | Route | Shell | | ||
| |---|---| | ||
| | `/` | `public.html` event lobby | | ||
| | `/league` | static mirror `league/index.html` | | ||
| | `/watch` | `public.html` — links to real `/ai-league-replay/<runKey>` and `/match/<id>` | | ||
| | `/agents` | `public.html` | | ||
| | `/build` | `public.html` — self-serve Builder registration wizard | | ||
| | `/ai-league-replay/<runKey>` | `index.html` game shell — replay/clip/panel UI lives here | | ||
|
|
||
| ## `/build` wizard | ||
|
|
||
| Custom element `<build-page>`. Step tabs: `build-page button[aria-current]`, | ||
| a 7-item NodeList, index 2 = Step 3 "Identity" (the registration form). | ||
|
|
||
| Step 3 fields: Agent Name*, Short Code* (2-4 uppercase alphanumeric characters, `/^[A-Z0-9]{2,4}$/`), Tagline, Public | ||
| Strategy Description, Your Builder Name*, GitHub username (optional, | ||
| `[a-zA-Z0-9-]{1,39}`), Short bio, Links (`<textarea>`, one per line), | ||
| Source repository (`<input>`). `*` = required. | ||
|
|
||
| Submit: `POST /api/build/registration-submission`, strict-schema JSON body. | ||
| Success: `{ok:true, proposedAgent, proposedBuilder, profileFileJson, | ||
| githubIssueUrl}`. Failure: `{ok:false, error:"invalid_submission", field, | ||
| reason}` — `field` names the exact bad input; `reason` ∈ | ||
| `format|required|too_short|too_long|invalid`. | ||
|
|
||
| No persistence: this endpoint never writes the identity registry. Success | ||
| only yields a client-rendered draft plus a prefilled GitHub issue URL — | ||
| opening/filing that issue is a separate manual click the wizard never | ||
| triggers. | ||
|
|
||
| Field-error DOM ids (targets of the input's `aria-describedby`, | ||
| `aria-invalid` toggles alongside): `build-step3-github-error`, | ||
| `build-step3-links-error`, `build-step3-repo-error`. Any `body.field` not | ||
| matching `claimedGithub`/`builderLinks`/`sourceRepositoryRef` falls back to | ||
| a generic banner, not tied to any input. | ||
|
|
||
| ## Replay panel collapse | ||
|
|
||
| Shared toggle component, per-overlay state/keys: | ||
|
|
||
| - Full Replay (`/ai-league-replay/<runKey>`): localStorage keys | ||
| `ai-league-broadcast-rail-collapsed-v1` (Competitors rail), | ||
| `ai-league-broadcast-war-room-collapsed-v1` (War Room feed). | ||
| - Premiere overlay: `replay-premiere-broadcast-rail-collapsed-v1`, | ||
| `replay-premiere-broadcast-war-room-collapsed-v1`. | ||
|
|
||
| aria-labels: "Collapse/Expand competitors panel", | ||
| "Collapse/Expand War Room panel"; `aria-expanded` mirrors collapsed state on | ||
| every render including first paint. | ||
|
|
||
| ## Social clip control | ||
|
|
||
| Render button selector: `[data-ai-league-clip-render]` — same component on | ||
| Full Replay and an archived Premiere rewatch. Requires | ||
| `GET /api/clip-capabilities` to report generation enabled, else the whole | ||
| clip section is `hidden`. | ||
|
|
||
| Flow: `POST /api/league-runs/<runKey>/clips` (body `{turn}`) starts a | ||
| render, returns a `schemaVersion:1` `pending`/`ready` status envelope. While | ||
| pending, client polls `GET /api/league-runs/<runKey>/clips/<bucket>?progress=1` | ||
| every 3000ms until terminal. | ||
|
|
||
| Terminal poll outcomes: 404 → `"failed"`; any other non-2xx → `429`/`503` | ||
| maps to `"busy"`, anything else maps to `"failed"`; both stop polling and | ||
| re-enable the render control. Initial selected bucket is not fixed — it can | ||
| track the replay's live playhead rather than a constant, so any mocked | ||
| response must echo back the bucket the page actually requested. | ||
|
|
||
| ## Local dev server | ||
|
|
||
| `npm run dev` (plain Vite + `src/server/Server.ts`) does not serve `/build` | ||
| or any `/api/build/*`/`/api/league-runs/*` route — wrong server entirely. | ||
|
|
||
| Use `src/scripts/ai-agent-demo-server.ts` (`npm run agent:demo-server`) | ||
| instead. It serves a prebuilt `static/` directory, not live Vite HMR — run | ||
| `npm run build-dev` (or `build-prod` for the Full Replay/map asset | ||
| manifest) before starting/restarting it. Boot with | ||
| `PROXYWAR_LEAGUE_WRAPPER_ONLY=true` to match the league-origin posture (also | ||
| skips spawning its own child replay-renderer subprocess). Default port | ||
| `AI_LEAGUE_DEMO_PORT` = 8787. | ||
|
|
||
| ## Verifying a deploy landed | ||
|
|
||
| No `/commit.txt` or version-SHA endpoint exists. Compare content-hashed | ||
| asset filenames instead: `assets/main-<hash>.js` (served at `/`) and | ||
| `assets/public-<hash>.js` (served at `/build`) against the freshly built | ||
| local `static/assets/` output — an exact filename match on both confirms | ||
| the intended commit is live. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: File placed at
domain-skills/proxywar/build-and-deploy.mdbut should be atagent-workspace/domain-skills/proxywar/build-and-deploy.md. The README specifies contributed skills go inagent-workspace/domain-skills/and the agent withBH_DOMAIN_SKILLS=1reads skills only from that path — this file won't be found there.Prompt for AI agents