@object-ui/plugin-chatbot 6.1.0 → 6.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # @object-ui/plugin-chatbot
2
2
 
3
+ ## 6.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @object-ui/types@6.2.1
8
+ - @object-ui/core@6.2.1
9
+ - @object-ui/react@6.2.1
10
+ - @object-ui/components@6.2.1
11
+
12
+ ## 6.2.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 0335ec4: Polish the AI chat surface based on real-world dogfooding feedback.
17
+
18
+ **`@object-ui/plugin-chatbot`** — new display helpers shared by `ChatbotEnhanced`:
19
+ - `unwrapToolResult(value)` peels the MCP-style `{ type: 'text', value: '<json>' }`
20
+ envelope that backend tools emit (`@objectstack/service-ai`'s data/metadata
21
+ tools, in particular), and JSON-parses the inner payload. The result panel
22
+ now renders a structured object tree instead of a doubly-escaped wall of
23
+ `\\\"objects\\\":[…]`.
24
+ - `humanizeToolName(name)` converts snake_case / kebab-case / camelCase tool
25
+ ids into sentence case ("list_objects" → "List objects"), preserving known
26
+ acronyms (API, ID, SQL, …). Tool-call cards now show the friendly title with
27
+ the raw id as a small monospace badge for power users.
28
+ - `summarizeChatError(err)` strips the AI SDK's
29
+ `"Failed after N attempts. Last error: "` prefix and keeps the first
30
+ sentence as a headline; the full text is exposed via an optional `details`
31
+ field so the new error banner can render a "Details" disclosure plus a
32
+ prominent Retry button instead of a 300-character single-line wall.
33
+
34
+ A new `⌘⏎ to send` hint is shown in the prompt footer (hidden on narrow
35
+ screens). `ToolHeader.title` now accepts `ReactNode` (previously `string`)
36
+ so wrappers can compose richer titles.
37
+
38
+ **`@object-ui/app-shell`** — `AiChatPage`:
39
+ - Removes the fake "Hello! I'm X" assistant welcome bubble so the empty-state
40
+ suggestion chips can actually render.
41
+ - Adds per-agent default suggestion sets (`data_chat`, `metadata_assistant`)
42
+ with a generic fallback. New conversations open with three actionable
43
+ starter prompts tailored to the selected agent.
44
+ - Surfaces agent-fetch failures as an inline warning on the agent picker
45
+ instead of hijacking the welcome message.
46
+ - Placeholder text now hints at the first suggestion (e.g. `Ask Data
47
+ Assistant… (try "系统里有多少个用户?")`).
48
+
49
+ ### Patch Changes
50
+
51
+ - @object-ui/react@6.2.0
52
+ - @object-ui/components@6.2.0
53
+ - @object-ui/types@6.2.0
54
+ - @object-ui/core@6.2.0
55
+
3
56
  ## 6.1.0
4
57
 
5
58
  ### Patch Changes