You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(relay,core): add monorepo support to init command and workspace discovery
Introduce domscribe.config.json for monorepo setups where the frontend app
lives in a subdirectory (e.g. apps/web). The init wizard now asks if the
project is a monorepo and writes a config file at the repo root pointing
to the app root.
Updated getWorkspaceRoot() discovery chain to check for config files in
addition to .domscribe/ directories, so all CLI commands (serve, stop,
status) and MCP connections resolve the app root automatically.
Also fixes package manager detection in monorepos by checking lockfiles
at the repo root rather than the app subdirectory.
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -292,6 +292,18 @@ module.exports = {
292
292
293
293
For plugin configuration options, see the [`@domscribe/transform` README](./packages/domscribe-transform/README.md).
294
294
295
+
#### Monorepos
296
+
297
+
If your frontend app is in a subdirectory (e.g. `apps/web`), pass `--app-root` during init:
298
+
299
+
```bash
300
+
npx domscribe init --app-root apps/web
301
+
```
302
+
303
+
Or run `npx domscribe init` and follow the prompts — the wizard asks if you're in a monorepo.
304
+
305
+
This creates a `domscribe.config.json` at your repo root that tells all Domscribe tools where your app lives. CLI commands (`serve`, `stop`, `status`) and agent MCP connections automatically resolve the app root from this config — no extra flags needed.
306
+
295
307
### Agent-Side — Connect Your Coding Agent
296
308
297
309
Domscribe exposes 12 tools and 4 prompts via MCP. Agent plugins bundle the MCP config and a skill file that teaches the agent how to use the tools effectively.
Copy file name to clipboardExpand all lines: packages/domscribe-relay/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ domscribe mcp # Run as MCP server via stdio
24
24
25
25
For use in agent MCP configuration, the standalone `domscribe-mcp` binary runs the MCP server directly over stdio without the HTTP/WebSocket relay.
26
26
27
+
**Monorepo support:** All commands automatically resolve the app root from a `domscribe.config.json` file when run from a monorepo root. Run `domscribe init --app-root <path>` to generate the config, or let the interactive wizard detect it.
28
+
27
29
## Annotation Lifecycle
28
30
29
31
A developer clicks an element in the running app, types an instruction, and submits it. The annotation moves through the following states:
0 commit comments