@switchboard-host/cli 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/dist/switchboard.mjs +73 -59
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -128,10 +128,22 @@ Check what will be uploaded with `npm pack --dry-run` (it should be `dist/switch
|
|
|
128
128
|
`login`, `logout`, `whoami`, `apps`, `init <slug> [dir]`, `link [slug]`,
|
|
129
129
|
`deploy [-m msg] [--no-follow]`, `status`, `logs [-f] [--role frontend|backend] [-n N]`,
|
|
130
130
|
`env list|set KEY VALUE|- [--secret] [--allow-empty]|unset KEY`, `open [--dashboard]`, `domains`,
|
|
131
|
-
`rollback [number]`, `restart`, `
|
|
131
|
+
`rollback [number]`, `restart`, `errors [--status open|resolved|ignored|all] | show <id> |
|
|
132
|
+
resolve <id…|all> | ignore <id…> | reopen <id…>`, `doctor [--fix]`, `git-credential`, `mcp`.
|
|
132
133
|
Every command accepts `--json` (exactly one JSON document on stdout), `--app <slug>`,
|
|
133
134
|
`--lang`, `--api-url`, `--verbose`.
|
|
134
135
|
|
|
135
136
|
MCP tools: `deploy`, `deployment_status`, `deployment_log`, `app_logs`, `app_status`,
|
|
136
|
-
`
|
|
137
|
-
website from `.switchboard/app.json` in the agent's
|
|
137
|
+
`browser_errors`, `browser_errors_resolve`, `list_apps`, `env_list`, `env_set`, `env_unset`,
|
|
138
|
+
`domains_list`, `restart`. They resolve the website from `.switchboard/app.json` in the agent's
|
|
139
|
+
working folder, or take a `slug` argument.
|
|
140
|
+
|
|
141
|
+
### Browser errors (CLI ≥ 0.3.0)
|
|
142
|
+
|
|
143
|
+
Switchboard adds a small script to every page of a hosted website that reports JavaScript errors
|
|
144
|
+
from visitors' browsers (uncaught errors, unhandled promise rejections, files that fail to load,
|
|
145
|
+
`console.error`, CSP violations). `switchboard errors` lists the open ones, grouped, with the pages
|
|
146
|
+
(paths without query string), browsers, file/line and the top stack frame; `errors show <id>` prints
|
|
147
|
+
the full stack; `errors resolve <id|all>` marks them fixed after a deploy (a resolved error reopens by
|
|
148
|
+
itself when it happens again). With `--json` the output also carries a ready-made `markdown` block.
|
|
149
|
+
The MCP tools `browser_errors` / `browser_errors_resolve` do the same for an agent.
|