@webmcp-auto-ui/agent 2.5.27 → 2.5.28

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.
@@ -1,94 +0,0 @@
1
- ---
2
- widget: notebook-workspace
3
- description: Dense analyst workspace with a header bar (title, draft/published tag, run all, publish) and a left sidebar listing data sources and cells for navigation. Cells display their name, execution time, and row counts. Targets data-team workflows with a publishable deliverable.
4
- schema:
5
- type: object
6
- properties:
7
- id:
8
- type: string
9
- title:
10
- type: string
11
- mode:
12
- type: string
13
- enum: [edit, view]
14
- cells:
15
- type: array
16
- items:
17
- type: object
18
- required: [type, content]
19
- properties:
20
- type:
21
- type: string
22
- enum: [md, sql, js]
23
- content:
24
- type: string
25
- name:
26
- type: string
27
- description: Cell name shown in sidebar navigation (e.g. "intro", "sql_sales", "plot")
28
- hideSource:
29
- type: boolean
30
- hideResult:
31
- type: boolean
32
- ---
33
-
34
- ## When to use
35
-
36
- Use `notebook-workspace` for analyst-oriented work that needs:
37
- - Multi-cell analyses with named, navigable cells (sidebar)
38
- - A clear separation between the editing context and a publishable "app" view
39
- - A data source reference permanently visible (even as placeholder: "no source connected")
40
- - Team workflows where "run all" and "publish" are distinct actions
41
-
42
- This layout is more enterprise-flavoured than `notebook-compact`. Prefer it when the user is building something to hand off, not just exploring.
43
-
44
- ## How to use
45
-
46
- 1. **Create with named cells** so the sidebar navigation is meaningful:
47
- ```
48
- widget_display({name: "notebook-workspace", params: {
49
- title: "My analysis",
50
- cells: [
51
- {type: "md", name: "intro", content: "What we are investigating."},
52
- {type: "sql", name: "fetch_rows", content: "select * from source limit 100"},
53
- {type: "js", name: "visualize", content: "// chart the rows"}
54
- ]
55
- }})
56
- ```
57
-
58
- 2. **The sidebar shows** data sources (when connected) and the numbered list of cells. Clicking a cell item in the sidebar focuses that cell.
59
-
60
- 3. **The header has** run all / share / publish buttons. Publish is the primary (accent-coloured) CTA — it represents the transition from draft to read-only app view.
61
-
62
- ## Notes
63
-
64
- - Cells are added via buttons in the sidebar (not in the header).
65
- - Run controls (green/red pill) sit at the left of each cell's header, right after the drag handle.
66
- - Each cell head can be renamed inline in the sidebar (click the "N · name" item).
67
- - The sidebar under "sources" shows a placeholder when no MCP source is connected — a gentle nudge toward the connect flow.
68
-
69
- ## Integration with connected data servers
70
-
71
- If a MCP **data** server is currently connected (the user has linked one, e.g. `tricoteuses`, `metmuseum`), BEFORE seeding cells the agent MUST:
72
-
73
- 1. Call `{server}_list_recipes()` or `{server}_search_recipes(query)` to discover data recipes relevant to the user's intent.
74
- 2. Call `{server}_list_tools()` to see available tables and endpoints.
75
- 3. For each high-signal recipe or table, seed ONE named cell that demonstrates it — typical shapes:
76
- - an SQL `SELECT ... LIMIT 10` with a meaningful cell name (e.g. `fetch_amendments`)
77
- - a `run_script` invocation for recipes requiring code
78
- - a short markdown cell describing the recipe and its parameters
79
- 4. Pass the server metadata via the `servers:` param so the sidebar "sources" section and server menu modal render correctly:
80
-
81
- ```ts
82
- widget_display({
83
- name: 'notebook-workspace',
84
- params: {
85
- title: '...',
86
- cells: [...],
87
- servers: [{ name: 'tricoteuses', url: 'https://...', kind: 'data' }]
88
- }
89
- })
90
- ```
91
-
92
- If NO data server is connected, seed generic markdown-only cells that describe the intended analysis and invite the user to connect an MCP server — this matches the "no source connected" sidebar placeholder.
93
-
94
- **Filter rule**: only MCP *data* servers (`kind: 'data'`) belong in `servers:`. Do NOT include WebMCP UI servers such as `autoui` — they expose no queryable data and would clutter the sources sidebar.