@xh/hoist-chat-kit 2.0.0-SNAPSHOT.1793930870434 → 2.1.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
@@ -12,7 +12,16 @@
12
12
  3. Plain ASCII punctuation only. Use " - " for in-sentence breaks, never an em dash.
13
13
  -->
14
14
 
15
- ## 2.0.0-SNAPSHOT - unreleased
15
+ ## 2.1.0 - 2026-11-16
16
+
17
+ ### ⚙️ Technical
18
+
19
+ * Updated the kit to build and test against `@xh/hoist` 90.1. It still supports `@xh/hoist` 89.3.1
20
+ or later.
21
+ * `chatMarkdown` with a table or a code fence, rendered on its own outside a chat, needs
22
+ `@xh/hoist` 90 or later. On 89 it shows "No model found", from a Hoist bug fixed in 90.
23
+
24
+ ## 2.0.0 - 2026-11-16
16
25
 
17
26
  ### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW - remove the busy-line settings)
18
27
 
@@ -30,19 +39,21 @@ detailed, step-by-step upgrade instructions with before/after code examples.
30
39
 
31
40
  ### 🎁 New Features
32
41
 
33
- * `ChatThreadsModel` now blocks sends while the store lists a thread as running and its history has
34
- no settled reply to that turn yet. The status region shows the block only with Refresh Status,
35
- once the automatic checks below stop.
36
-
37
42
  * `ChatThreadsModel` now checks on a turn that runs on the server while its chat does not follow
38
43
  it, and loads the reply once the thread list shows the run done. Set the interval with
39
- `ChatKit.defaults.statusRefreshMs` or `ChatThreadsConfig.statusRefreshMs`, null for none.
40
- * Added `chatAnnouncer.withdraw()`, to take back an announcement whose news no longer holds. The
41
- status region withdraws a status's announcement once it passes.
44
+ `ChatKit.defaults.statusRefreshMs` or `ChatThreadsConfig.statusRefreshMs`, null for none. The
45
+ checks stop after `statusRefreshTimeoutMs`, which both also take.
46
+ * `ChatThreadsModel` now blocks sends while the store lists a thread as running and its history has
47
+ no settled reply to that turn yet. The status region shows the block only with Refresh Status,
48
+ once the automatic checks stop.
42
49
  * `ChatMessageList` now shows "Still working on the server" for such a turn with no reply saved
43
50
  yet, in place of the empty state or after the user's question. The composer's start items breathe
44
51
  while it runs.
45
-
52
+ * `ChatModel.setStatusRefresher()` now takes `ChatStatusRefresherOptions`, for an app with a thread
53
+ layer of its own. They drive the new `ChatModel.isRunningOnServer` and
54
+ `ChatModel.isStatusRefreshAutomatic` getters.
55
+ * Added `chatAnnouncer.withdraw()`, to take back an announcement whose news no longer holds. The
56
+ status region withdraws a status's announcement once it passes.
46
57
  * Added `ChatThreadsModel.showThreadTitle()`, to show a title the backend already holds, such as
47
58
  one it wrote in the background. The list and the workspace header show it at once, with no
48
59
  store call and no list reload.
@@ -76,9 +87,15 @@ detailed, step-by-step upgrade instructions with before/after code examples.
76
87
  * `isChatRetrySafe` now takes `metadata.retrySafe: true` over the kit's own unsafe error codes.
77
88
  Before, only `false` decided.
78
89
  * Fixed `replayChatEvents` to record no times for events with no `timestamp`. Before, it timed
79
- every tool call, sub-agent and reasoning part by the load, so each showed "<0.1s". The timeline,
80
- its screen reader labels and the reasoning label now show no time for them. A backend that
81
- stores events should stamp each one as the agent emits it.
90
+ every tool call, sub-agent and reasoning part by the load, so each showed "<0.1s". Such parts now
91
+ carry null `startedAt` and `endedAt`, and the timeline, its screen reader labels and the
92
+ reasoning label show no time for them. A backend that stores events should stamp each one as the
93
+ agent emits it.
94
+
95
+ ### ⚙️ Technical
96
+
97
+ * Added Zod 4 as a dependency of the kit. AG-UI 1.0.4 takes Zod as a peer, so the kit supplies it.
98
+ Apps no longer need the `zod` override that the 1.0.0 README advised, and can remove it.
82
99
 
83
100
  ### ✨ Styles
84
101
 
package/README.md CHANGED
@@ -85,13 +85,8 @@ as peer dependencies.
85
85
 
86
86
  The package ships as TypeScript and SCSS source, as `@xh/hoist` does, and your app compiles it
87
87
  with the rest of its code. It depends on the official AG-UI packages, `@ag-ui/core` and
88
- `@ag-ui/client`, which bring RxJS and Zod 3 with them.
89
-
90
- Every Zod 3 release carries advisory
91
- [GHSA-mrhx-c7xc-m3w5](https://github.com/advisories/GHSA-mrhx-c7xc-m3w5), fixed in Zod 4.6.6. The
92
- AG-UI packages import Zod's `zod/v4` entry point, which Zod 4 also serves, so they run on Zod 4.
93
- To clear the advisory, override `zod` to `^4.6.6` with your package manager, as the kit does in its
94
- own `pnpm-workspace.yaml`. Drop the override once an AG-UI release accepts Zod 4.
88
+ `@ag-ui/client`. They bring RxJS with them, and take Zod 4 as a peer, which the kit and
89
+ `@xh/hoist` both supply.
95
90
 
96
91
  1. Add the package: `pnpm add @xh/hoist-chat-kit`.
97
92
  2. Add it to `extraIncludePaths` in your app's `rsbuild.config.mjs`, so the build transpiles it:
@@ -17,8 +17,9 @@
17
17
  }
18
18
 
19
19
  // The sidebar and the side panel are resizable Hoist panels, siblings of the conversation. The
20
- // layout may show one narrower than its saved size, to leave the conversation its minimum.
21
- &__sidebar > :not(.xh-resizable-splitter, .xh-resizable-dragger) {
20
+ // layout may show one narrower than its saved size, to leave the conversation its minimum. The
21
+ // cap skips the splitter, named `xh-panel-splitter` from Hoist 90 and `xh-resizable-*` before.
22
+ &__sidebar > :not(.xh-panel-splitter, .xh-resizable-splitter, .xh-resizable-dragger) {
22
23
  max-width: var(--xh-chat-workspace-sidebar-width, none);
23
24
  }
24
25
 
@@ -26,7 +27,7 @@
26
27
  min-height: 0;
27
28
  }
28
29
 
29
- &__side-panel > :not(.xh-resizable-splitter, .xh-resizable-dragger) {
30
+ &__side-panel > :not(.xh-panel-splitter, .xh-resizable-splitter, .xh-resizable-dragger) {
30
31
  max-width: var(--xh-chat-workspace-side-panel-width, none);
31
32
  }
32
33
 
@@ -77,15 +77,17 @@ be repeated once the configuration is fixed.
77
77
  ### Cut a release
78
78
 
79
79
  `develop` always holds the next major version as a snapshot, in the Maven style that all XH
80
- libraries use. After 1.0.0 ships, `package.json` reads `2.0.0-SNAPSHOT`. A release without
81
- breaking changes still goes out as the next minor or patch version, and `develop` stays on the
82
- same snapshot.
80
+ libraries use. Each major release moves `develop` to the major after it. A release without
81
+ breaking changes goes out as the next minor or patch version, and `develop` stays on the same
82
+ snapshot. For example, once 1.0.0 ships, `package.json` reads `2.0.0-SNAPSHOT`. A later 1.1.0
83
+ leaves it there, and 2.0.0 moves it to `3.0.0-SNAPSHOT`.
83
84
 
84
85
  1. Make sure `develop` is green in CI and holds everything the release needs.
85
86
  2. Pick the version. A release with breaking changes is the major version that `develop` holds.
86
87
  Any other release is the next minor or patch from the latest `v*` tag, such as `1.1.0`.
87
88
  3. On `develop`, set the topmost `CHANGELOG.md` heading to the release version and today's date,
88
- as in `## 1.1.0 - 2026-11-20`. Commit and push.
89
+ as in `## 1.1.0 - 2026-11-20`. For a major release, also set the `Released` date in that
90
+ version's upgrade notes. Commit and push.
89
91
  4. Fast-forward `main` to `develop` and push it:
90
92
  ```bash
91
93
  git switch main && git merge --ff-only develop && git push
@@ -95,10 +97,10 @@ same snapshot.
95
97
  gh workflow run deployRelease.yml --ref main -f version=1.1.0 -f is-hotfix=false
96
98
  ```
97
99
  6. Back on `develop`, put a snapshot heading back on top of `CHANGELOG.md`, then push:
98
- - After a major release, bump `package.json` to the next major, such as `3.0.0-SNAPSHOT`, and
99
- add a matching `## 3.0.0-SNAPSHOT - unreleased` heading.
100
- - After a minor or patch release, leave `package.json` as it is, and add back the
101
- `## 2.0.0-SNAPSHOT - unreleased` heading above the new release entry.
100
+ - After a major release, bump `package.json` to the next major `-SNAPSHOT` version, and add a
101
+ matching `## {version} - unreleased` heading.
102
+ - After a minor or patch release, leave `package.json` as it is, and add back the heading for
103
+ the snapshot it holds, above the new release entry.
102
104
 
103
105
  ### Cut a hotfix
104
106
 
@@ -1,6 +1,6 @@
1
1
  # Hoist Chat Kit v2 Upgrade Notes
2
2
 
3
- > **From:** v1.x → v2.0.0 | **Released:** unreleased | **Difficulty:** 🟢 LOW
3
+ > **From:** v1.x → v2.0.0 | **Released:** 2026-11-16 | **Difficulty:** 🟢 LOW
4
4
 
5
5
  ## Overview
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-chat-kit",
3
- "version": "2.0.0-SNAPSHOT.1793930870434",
3
+ "version": "2.1.0",
4
4
  "description": "Chat with LLMs and agents in Hoist React apps: models, streaming transports, desktop components and generative UI.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,34 +52,35 @@
52
52
  "@types/node": "^26.6.6",
53
53
  "@types/react": "^19.3.0",
54
54
  "@types/react-dom": "^19.3.0",
55
- "@vitest/ui": "^5.0.5",
55
+ "@vitest/ui": "^5.1.0",
56
56
  "@xh/eslint-config": "^8.1.0",
57
- "@xh/hoist": "^89.3.1",
58
- "@xh/hoist-dev-utils": "^16.1.1",
59
- "ag-grid-community": "~36.2.0",
60
- "ag-grid-react": "~36.2.0",
61
- "eslint": "^10.13.0",
57
+ "@xh/hoist": "^90.1.0",
58
+ "@xh/hoist-dev-utils": "^16.3.0",
59
+ "ag-grid-community": "~36.3.0",
60
+ "ag-grid-react": "~36.3.0",
61
+ "eslint": "^10.15.0",
62
62
  "eslint-config-prettier": "^10.1.8",
63
- "globals": "^17.13.0",
63
+ "globals": "^17.14.0",
64
64
  "husky": "^9.1.7",
65
65
  "jsdom": "^30.1.3",
66
- "lint-staged": "^17.6.0",
67
- "msw": "^3.0.3",
68
- "prettier": "^3.9.10",
66
+ "lint-staged": "^17.6.1",
67
+ "msw": "^3.0.6",
68
+ "prettier": "^3.10.1",
69
69
  "react": "^19.3.1",
70
70
  "react-dom": "^19.3.1",
71
71
  "stylelint": "^17.16.0",
72
72
  "stylelint-config-recommended-scss": "^17.0.1",
73
73
  "type-fest": "^5.10.0",
74
74
  "typescript": "^7.0.2",
75
- "vitest": "^5.0.5"
75
+ "vitest": "^5.1.0"
76
76
  },
77
77
  "dependencies": {
78
- "@ag-ui/client": "1.0.3",
79
- "@ag-ui/core": "1.0.3",
78
+ "@ag-ui/client": "1.0.4",
79
+ "@ag-ui/core": "1.0.4",
80
80
  "classnames": "^2.5.1",
81
81
  "lodash": "^4.18.1",
82
- "rxjs": "7.8.1"
82
+ "rxjs": "7.8.1",
83
+ "zod": "^4.6.7"
83
84
  },
84
85
  "scripts": {
85
86
  "lint": "pnpm lint:all",