@brickkit/cli 0.16.0-beta.2 → 0.16.0-beta.4
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 +22 -0
- package/dashboard-dist/{api-reference-FojtkYBA.js → api-reference-CA1ejOhs.js} +71 -71
- package/dashboard-dist/app.css +1 -1
- package/dashboard-dist/app.js +12 -12
- package/dashboard-dist/{client-Cnm0Im6o.js → client-C0YCIB2j.js} +1 -1
- package/dashboard-dist/{core-SiSejpN2.js → core-CPETvDaW.js} +1 -1
- package/dashboard-dist/{docs-D1HrRL0z.js → docs-e44llMgQ.js} +2 -2
- package/dashboard-dist/kit.js +1 -1
- package/dashboard-dist/popover-CPp8Bc7H.js +1 -0
- package/dashboard-dist/theme.css +51 -39
- package/dist/bin.js +2 -1
- package/dist/bin.js.map +1 -1
- package/dist/build.js +6 -1
- package/dist/build.js.map +1 -1
- package/dist/dashboard-host.js +2595 -898
- package/dist/dashboard-host.js.map +1 -1
- package/dist/dashboard-protocol.js +4 -0
- package/dist/dashboard-protocol.js.map +1 -1
- package/dist/dashboard.d.ts +3 -3
- package/dist/dev-telemetry.js +2 -2
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/package.js +5 -0
- package/dist/package.js.map +1 -0
- package/dist/production-dashboard.js +1 -0
- package/dist/production-dashboard.js.map +1 -1
- package/dist/project.js +2 -3
- package/dist/project.js.map +1 -1
- package/dist/vite.js +1 -0
- package/dist/vite.js.map +1 -1
- package/inspector-dist/client/assets/{app-Wfnqu2Ic.css → app-Dla3cd5X.css} +51 -40
- package/inspector-dist/client/assets/{manifest-cfc09adc.js → manifest-3c342844.js} +1 -1
- package/inspector-dist/client/assets/{root-CVescmwt.css → root-Cnc-DXen.css} +51 -40
- package/inspector-dist/server/assets/{app-DUrMEdTr.js → app-p2-vDk3q.js} +51 -17
- package/inspector-dist/server/assets/{functions-CvYRS9L5.js → functions-BIXA0YFQ.js} +2 -2
- package/inspector-dist/server/assets/{serialization-BMjuH1Dy.js → serialization-D4H52Sdp.js} +1 -1
- package/inspector-dist/server/assets/{token-CXQG49kq.js → token-70XLMYnj.js} +1 -1
- package/inspector-dist/server/assets/{token-B03I2FMb.js → token-Bro5a25u.js} +1 -1
- package/inspector-dist/server/assets/token-util-9OFaOQxs.js +3 -0
- package/inspector-dist/server/assets/{ws-transport-CMidAEKi.js → ws-transport-DALQS5qP.js} +1 -1
- package/inspector-dist/server/index.js +1 -1
- package/package.json +2 -2
- package/dashboard-dist/PopoverPopup-CiI2avT_.js +0 -1
- package/dashboard-dist/popover-Da7zBKDq.js +0 -1
- package/inspector-dist/server/assets/token-util-DQqrmFHy.js +0 -3
- /package/inspector-dist/client/assets/{root-CVhM1JOR.js → root-C12dyylt.js} +0 -0
package/README.md
CHANGED
|
@@ -181,6 +181,23 @@ delete `.brick/` to start over.
|
|
|
181
181
|
Requests that send a W3C `traceparent` header join the caller's trace, and the
|
|
182
182
|
dashboard shows them under that trace id.
|
|
183
183
|
|
|
184
|
+
`brick dev` also serves `/mcp` on the dashboard's port, an MCP endpoint
|
|
185
|
+
for coding agents (Claude Code, Cursor, Codex) with read-only tools for every
|
|
186
|
+
view: `summary`, `list_requests`, `get_trace`, `search_logs`, `list_errors`,
|
|
187
|
+
`list_reloads` and `app_overview`; `list_schedules`, `list_runs` and `get_run`
|
|
188
|
+
while the workflow inspector is served; and, under `brick dev` only,
|
|
189
|
+
`get_openapi`, `list_docs` and `read_doc`. A tool whose data is not there is left
|
|
190
|
+
out of the list. It prints the address on start; connect with
|
|
191
|
+
`claude mcp add --transport http brick http://127.0.0.1:9400/mcp`. They only
|
|
192
|
+
read, a hook's token is never sent, there is no live stream (each call is a
|
|
193
|
+
plain request and response), and a request from another origin is refused. Tools of
|
|
194
|
+
the app's own marked `dashboard: true` (`service.tool`, or a plugin's) are
|
|
195
|
+
listed beside them; one without `readOnlyHint: true` can change data and is
|
|
196
|
+
advertised as destructive. `list_errors` reads only the failures held in memory
|
|
197
|
+
since the process started (the last 200), even when history is kept on disk;
|
|
198
|
+
older ones are found with `list_requests` and `outcome: "server"`. What an agent reads (paths, errors, SQL text, log lines) goes to its
|
|
199
|
+
model provider.
|
|
200
|
+
|
|
184
201
|
### Monitoring dashboard for production
|
|
185
202
|
|
|
186
203
|
`brick start` serves a read-only dashboard of the running app when the app,
|
|
@@ -203,6 +220,11 @@ address, and it answers while the app's routes do not. It shows Requests, Logs,
|
|
|
203
220
|
Errors, Overview, and Reloads; there is no restart, API proxy, APIs, or Docs, and
|
|
204
221
|
OpenAPI documents are not served. `dashboard: { inspector: true }` adds
|
|
205
222
|
Schedules and Workflows, where only a signed-in user can change anything.
|
|
223
|
+
`dashboard: { mcp: true }` serves `/mcp` for coding agents behind the same
|
|
224
|
+
`auth` (agents send `Authorization: Bearer <token>`); it is off otherwise. The
|
|
225
|
+
dashboard's own tools only read; the app's `dashboard: true` tools that can
|
|
226
|
+
change data are offered only to a signed-in user (`authorize` returned
|
|
227
|
+
`{ user }`).
|
|
206
228
|
Setting it turns `telemetry` on, and from then `ctx.logger` and `console`
|
|
207
229
|
lines written during a request go to the dashboard and not to the container's
|
|
208
230
|
console.
|