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