@webmcp-auto-ui/agent 2.5.25 → 2.5.27
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/package.json +1 -1
- package/src/autoui-server.ts +44 -0
- package/src/diagnostics.ts +6 -6
- package/src/discovery-cache.ts +17 -3
- package/src/index.ts +18 -4
- package/src/loop.ts +31 -34
- package/src/notebook-widgets/compact.ts +312 -0
- package/src/notebook-widgets/document.ts +372 -0
- package/src/notebook-widgets/editorial.ts +348 -0
- package/src/notebook-widgets/recipes/compact.md +104 -0
- package/src/notebook-widgets/recipes/document.md +100 -0
- package/src/notebook-widgets/recipes/editorial.md +104 -0
- package/src/notebook-widgets/recipes/workspace.md +94 -0
- package/src/notebook-widgets/shared.ts +1064 -0
- package/src/notebook-widgets/workspace.ts +328 -0
- package/src/prompts/claude-prompt-builder.ts +81 -0
- package/src/prompts/gemma4-prompt-builder.ts +205 -0
- package/src/prompts/index.ts +55 -0
- package/src/prompts/mistral-prompt-builder.ts +90 -0
- package/src/prompts/qwen-prompt-builder.ts +90 -0
- package/src/prompts/tool-call-parsers.ts +322 -0
- package/src/prompts/tool-refs.ts +196 -0
- package/src/providers/factory.ts +20 -3
- package/src/providers/transformers-models.ts +143 -0
- package/src/providers/transformers-serialize.ts +81 -0
- package/src/providers/transformers.ts +329 -0
- package/src/providers/transformers.worker.ts +667 -0
- package/src/providers/wasm.ts +150 -510
- package/src/recipes/_generated.ts +515 -0
- package/src/recipes/canary-data.md +50 -0
- package/src/recipes/canary-display.md +99 -0
- package/src/recipes/canary-middle.md +32 -0
- package/src/recipes/hackathon-assemblee-nationale.md +111 -0
- package/src/recipes/hummingbird-data.md +32 -0
- package/src/recipes/hummingbird-display.md +36 -0
- package/src/recipes/hummingbird-middle.md +18 -0
- package/src/recipes/notebook-playbook.md +129 -0
- package/src/tool-layers.ts +33 -157
- package/src/trace-observer.ts +669 -0
- package/src/types.ts +20 -5
- package/src/util/opfs-cache.ts +265 -0
- package/tests/gemma-prompt.test.ts +472 -0
- package/tests/loop.test.ts +5 -5
- package/tests/transformers-serialize.test.ts +103 -0
- package/src/providers/gemma.worker.legacy.ts +0 -123
- package/src/providers/litert.worker.ts +0 -294
- package/src/recipes/widgets/actions.md +0 -28
- package/src/recipes/widgets/alert.md +0 -27
- package/src/recipes/widgets/cards.md +0 -41
- package/src/recipes/widgets/carousel.md +0 -39
- package/src/recipes/widgets/chart-rich.md +0 -51
- package/src/recipes/widgets/chart.md +0 -32
- package/src/recipes/widgets/code.md +0 -21
- package/src/recipes/widgets/d3.md +0 -36
- package/src/recipes/widgets/data-table.md +0 -46
- package/src/recipes/widgets/gallery.md +0 -39
- package/src/recipes/widgets/grid-data.md +0 -57
- package/src/recipes/widgets/hemicycle.md +0 -43
- package/src/recipes/widgets/js-sandbox.md +0 -32
- package/src/recipes/widgets/json-viewer.md +0 -27
- package/src/recipes/widgets/kv.md +0 -31
- package/src/recipes/widgets/list.md +0 -24
- package/src/recipes/widgets/log.md +0 -39
- package/src/recipes/widgets/map.md +0 -49
- package/src/recipes/widgets/profile.md +0 -49
- package/src/recipes/widgets/recipe-browser.md +0 -102
- package/src/recipes/widgets/sankey.md +0 -54
- package/src/recipes/widgets/stat-card.md +0 -43
- package/src/recipes/widgets/stat.md +0 -35
- package/src/recipes/widgets/tags.md +0 -30
- package/src/recipes/widgets/text.md +0 -19
- package/src/recipes/widgets/timeline.md +0 -38
- package/src/recipes/widgets/trombinoscope.md +0 -39
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
widget: stat
|
|
3
|
-
description: Key statistic (KPI, counter, total)
|
|
4
|
-
group: simple
|
|
5
|
-
schema:
|
|
6
|
-
type: object
|
|
7
|
-
required:
|
|
8
|
-
- label
|
|
9
|
-
- value
|
|
10
|
-
properties:
|
|
11
|
-
label:
|
|
12
|
-
type: string
|
|
13
|
-
value:
|
|
14
|
-
type: string
|
|
15
|
-
trend:
|
|
16
|
-
type: string
|
|
17
|
-
trendDir:
|
|
18
|
-
type: string
|
|
19
|
-
enum:
|
|
20
|
-
- up
|
|
21
|
-
- down
|
|
22
|
-
- neutral
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## When to use
|
|
26
|
-
Display a single key figure — KPI, counter, total, score. Ideal when the user asks "how many…" or requests a numerical summary.
|
|
27
|
-
|
|
28
|
-
## How to use
|
|
29
|
-
1. Fetch the data via the appropriate MCP tool (e.g. SQL query, API call)
|
|
30
|
-
2. Call `autoui_webmcp_widget_display('stat', { label: 'Active users', value: '1,247' })`
|
|
31
|
-
3. Optional: add `trend` (e.g. '+12%') and `trendDir` ('up'/'down'/'neutral') to show the trend
|
|
32
|
-
|
|
33
|
-
## Common mistakes
|
|
34
|
-
- Passing `value` as a number instead of a string — always convert to string
|
|
35
|
-
- Forgetting to format the number (thousand separators, units)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
widget: tags
|
|
3
|
-
description: Group of tags/badges
|
|
4
|
-
group: simple
|
|
5
|
-
schema:
|
|
6
|
-
type: object
|
|
7
|
-
required:
|
|
8
|
-
- tags
|
|
9
|
-
properties:
|
|
10
|
-
label:
|
|
11
|
-
type: string
|
|
12
|
-
tags:
|
|
13
|
-
type: array
|
|
14
|
-
items:
|
|
15
|
-
type: object
|
|
16
|
-
required:
|
|
17
|
-
- text
|
|
18
|
-
properties:
|
|
19
|
-
text:
|
|
20
|
-
type: string
|
|
21
|
-
active:
|
|
22
|
-
type: boolean
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## When to use
|
|
26
|
-
Display categories, labels, filters, or badges. Useful for showing tags associated with an item or presenting visual filters.
|
|
27
|
-
|
|
28
|
-
## How to use
|
|
29
|
-
1. Fetch the tags or categories from MCP
|
|
30
|
-
2. Call `autoui_webmcp_widget_display('tags', { label: 'Categories', tags: [{ text: 'Finance', active: true }, { text: 'Tech' }] })`
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
widget: text
|
|
3
|
-
description: Free-form text paragraph
|
|
4
|
-
group: simple
|
|
5
|
-
schema:
|
|
6
|
-
type: object
|
|
7
|
-
required:
|
|
8
|
-
- content
|
|
9
|
-
properties:
|
|
10
|
-
content:
|
|
11
|
-
type: string
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## When to use
|
|
15
|
-
Display an explanatory paragraph, a summary, or a long description. Prefer `stat` for a single figure, `kv` for structured pairs.
|
|
16
|
-
|
|
17
|
-
## How to use
|
|
18
|
-
1. Write or fetch the text to display
|
|
19
|
-
2. Call `autoui_webmcp_widget_display('text', { content: 'Here is the summary of the analysis...' })`
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
widget: timeline
|
|
3
|
-
description: Event timeline with status
|
|
4
|
-
group: rich
|
|
5
|
-
schema:
|
|
6
|
-
type: object
|
|
7
|
-
required:
|
|
8
|
-
- events
|
|
9
|
-
properties:
|
|
10
|
-
title:
|
|
11
|
-
type: string
|
|
12
|
-
events:
|
|
13
|
-
type: array
|
|
14
|
-
items:
|
|
15
|
-
type: object
|
|
16
|
-
required:
|
|
17
|
-
- title
|
|
18
|
-
properties:
|
|
19
|
-
date:
|
|
20
|
-
type: string
|
|
21
|
-
title:
|
|
22
|
-
type: string
|
|
23
|
-
description:
|
|
24
|
-
type: string
|
|
25
|
-
status:
|
|
26
|
-
type: string
|
|
27
|
-
enum:
|
|
28
|
-
- done
|
|
29
|
-
- active
|
|
30
|
-
- pending
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## When to use
|
|
34
|
-
Display a sequence of chronological events — history, process steps, activity log. Each event can have a status (done/active/pending).
|
|
35
|
-
|
|
36
|
-
## How to use
|
|
37
|
-
1. Fetch events via MCP, sort them chronologically
|
|
38
|
-
2. Call `autoui_webmcp_widget_display('timeline', { title: 'Order History', events: [{ date: '2024-01-15', title: 'Order placed', status: 'done' }, { date: '2024-01-16', title: 'Shipped', status: 'active' }] })`
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
widget: trombinoscope
|
|
3
|
-
description: People grid with badges
|
|
4
|
-
group: rich
|
|
5
|
-
schema:
|
|
6
|
-
type: object
|
|
7
|
-
required:
|
|
8
|
-
- people
|
|
9
|
-
properties:
|
|
10
|
-
title:
|
|
11
|
-
type: string
|
|
12
|
-
people:
|
|
13
|
-
type: array
|
|
14
|
-
items:
|
|
15
|
-
type: object
|
|
16
|
-
required:
|
|
17
|
-
- name
|
|
18
|
-
properties:
|
|
19
|
-
name:
|
|
20
|
-
type: string
|
|
21
|
-
subtitle:
|
|
22
|
-
type: string
|
|
23
|
-
badge:
|
|
24
|
-
type: string
|
|
25
|
-
color:
|
|
26
|
-
type: string
|
|
27
|
-
columns:
|
|
28
|
-
type: number
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## When to use
|
|
32
|
-
Display a grid of people — team, group members, participants. Each person can have a badge and a distinctive color.
|
|
33
|
-
|
|
34
|
-
## How to use
|
|
35
|
-
1. Retrieve the list of people via MCP
|
|
36
|
-
2. Call `autoui_webmcp_widget_display('trombinoscope', { title: 'Dev Team', people: [{ name: 'Alice', subtitle: 'Lead', badge: 'PM', color: '#4CAF50' }], columns: 3 })`
|
|
37
|
-
|
|
38
|
-
## Common mistakes
|
|
39
|
-
- NEVER fabricate image URLs for the `avatar` field. Use ONLY the URLs returned by MCP tools. If no URL is available, do not include an avatar field — the widget will display initials automatically.
|