feat: drive the studio from MCP agents (Trace Recorder hook and options, camera choice)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- playwright, typescript
- Ambito
- developer-experience, frontend
Direzione di ricerca
Start with the debug.trace and source.camera nodes and RuntimeContext.studio, then locate their unit and end-to-end coverage plus the tracking-debugger skill. Implement the studio-only trace hook, recorder options, and camera selection behind the API proposed in the issue. Done means an agent can record and read JSONL through window.webarkitStudio.trace, a camera can be chosen by label or deviceId, new logic is unit-tested, and the README node table and CHANGELOG are updated.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up of #9 (tracking traces and the MCP servers in .mcp.json).
Context
Testing #9 showed two frictions.
- Getting a browser trace: the Trace Recorder (
debug.trace) delivers its trace as a file download. An agent driving the studio through Playwright MCP or Chrome DevTools MCP has to catch that download, when it could simply read the trace from the page. - Choosing a camera: the Camera node (
source.camera) picks a device only by facing mode. On a machine with several cameras (a webcam and virtual cameras), the browser opens the default one. Today the only way to choose is a Chrome flag or a permission prompt.
MCP servers cannot run from a graph node: they drive the browser from outside, and the graph also runs in exported apps. The other direction works: make the page easy to drive.
Proposal
- Agent hook in the studio, not in the player. A small page API, for example
window.webarkitStudio.trace, that can start and stop a Trace Recorder and return its JSONL as text. Playwright and DevTools can then read the trace with anevaluatecall. It does nothing in exported apps, like the Trace Recorder itself (RuntimeContext.studio). - Trace Recorder options.
- A duration in seconds, next to Max frames.
- A label, written to the trace header, for example "One Euro, beta 0.02", to tell traces apart in
trace:diff. This adds an optional header field: decide whether it bumpsTRACE_VERSION.
- Camera node: device choice. A param that selects a camera by label or
deviceId, falling back to the facing mode. The camera param is not live today: say whether this one should be.
To decide
- Whether the hook belongs on
windowor behind a query flag (?debug). - Whether the camera param is a format change. Adding a param is not; renaming
facingModewould be. - Updating the
tracking-debuggerskill to use the hook instead of downloads.
Acceptance
- Through Playwright MCP, an agent records a trace from the studio and reads it without a download.
- The Camera node opens a chosen camera on a machine with several.
- Unit tests for the new logic; the e2e tests still pass; the README node table and CHANGELOG are updated.
Generated by Claude Code
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 0
- Merge medio
- 2h 36m
- PR unite (30g)
- 92
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webarkit/webarkit-studio
-
editor good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
webarkit/webarkit-studio#16 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(editor): Escape closes the toolbar menus, and focus returns to the menu's buttonForse già presa @kalwalt l’ha presa oggi. Apertaeditor enhancement node-graph
webarkit/webarkit-studio#190 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
fix(babylon): an environment whose prefiltering fails never settlesForse già presa @kalwalt l’ha presa 1 giorno fa. ApertaBabylonjs bug
webarkit/webarkit-studio#188 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
fix(babylon): a texture or environment that fails to load stays in the scene until StopForse già presa @kalwalt l’ha presa 4 giorni fa. ApertaBabylonjs bug runtime
webarkit/webarkit-studio#185 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
fix(editor): on a narrow screen the graph editor has no width; below 900 px the panels become tabsForse già presa @kalwalt l’ha presa 4 giorni fa. Apertabug editor
webarkit/webarkit-studio#182 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webarkit/webarkit-studio
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
External sources always come back in English: `lc` isn't passed to `/api/v3/external_sources`Forse già presa @Anurag1428 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
openfoodfacts/openfoodfacts-explorer#2264 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
cloudflare/workers-sdk#17139 ·
I maintainer di solito rispondono entro 1 giorno
-
area: editor P3 type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
halisonworks/mod-codeling#290 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
colinhacks/zod#6776 ·
I maintainer di solito rispondono entro 1 giorno