@galaxycore/ai-chat 0.5.0 → 0.6.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 +10 -0
- package/README.md +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/targeting.css +205 -0
- package/dist/targeting.d.ts +101 -0
- package/dist/targeting.js +585 -0
- package/dist/targeting.js.map +1 -0
- package/docs/publishing.md +8 -8
- package/docs/validation.md +10 -0
- package/package.json +5 -1
package/docs/publishing.md
CHANGED
|
@@ -36,7 +36,7 @@ mkdir -p artifacts
|
|
|
36
36
|
npm pack --pack-destination artifacts
|
|
37
37
|
|
|
38
38
|
# 消费项目:替换为真实文件的绝对路径
|
|
39
|
-
npm install /absolute/path/to/galaxycore-ai-chat-0.
|
|
39
|
+
npm install /absolute/path/to/galaxycore-ai-chat-0.6.0.tgz
|
|
40
40
|
npm install ai@^7.0.137 @ai-sdk/react@^4.0.140
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -53,7 +53,7 @@ npm run check
|
|
|
53
53
|
npm pack --dry-run
|
|
54
54
|
mkdir -p artifacts
|
|
55
55
|
npm pack --pack-destination artifacts
|
|
56
|
-
tar -tzf artifacts/galaxycore-ai-chat-0.
|
|
56
|
+
tar -tzf artifacts/galaxycore-ai-chat-0.6.0.tgz
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
`check` 执行类型检查、组件与网关测试、库构建和可部署示例构建;示例构建包含文档站。`prepack` 构建库,`prepublishOnly` 执行完整检查。tarball 应包含公开 JS 入口、声明、CSS、README 和文档,不应包含模型凭据、认证配置或业务数据。
|
|
@@ -85,12 +85,12 @@ CI 构建和测试步骤无需发布凭据。发布 job 可使用 CI secret 注
|
|
|
85
85
|
|
|
86
86
|
## 版本与发布
|
|
87
87
|
|
|
88
|
-
当前组件版本为 `0.
|
|
88
|
+
当前组件版本为 `0.6.0`,网关版本为 `0.2.0`,两者独立升级。0.x 阶段,修复使用 patch,新增功能和未冻结接口调整使用 minor,并在 changelog 说明兼容性。稳定 API 后再发布 1.0。
|
|
89
89
|
|
|
90
90
|
下面以 npmjs.org 公开发布为例。命令会实际上传产物,应在完成验收后由发布负责人执行;发布私有 registry 时替换地址,并按该服务调整可见性参数:
|
|
91
91
|
|
|
92
92
|
```sh
|
|
93
|
-
npm publish ./artifacts/galaxycore-ai-chat-0.
|
|
93
|
+
npm publish ./artifacts/galaxycore-ai-chat-0.6.0.tgz \
|
|
94
94
|
--access public --tag latest \
|
|
95
95
|
--registry=https://registry.npmjs.org/
|
|
96
96
|
```
|
|
@@ -98,7 +98,7 @@ npm publish ./artifacts/galaxycore-ai-chat-0.5.0.tgz \
|
|
|
98
98
|
使用 tarball 发布时,先显式执行完整检查,不依赖源仓库的生命周期脚本一定被触发。`latest` 是不指定版本安装时使用的标签,不代表 API 已冻结。需要独立试用通道时,可以采用预发布版本及 `next` 标签。发布后检查远端版本和完整性:
|
|
99
99
|
|
|
100
100
|
```sh
|
|
101
|
-
npm view @galaxycore/ai-chat@0.
|
|
101
|
+
npm view @galaxycore/ai-chat@0.6.0 version dist.integrity \
|
|
102
102
|
--registry=https://registry.npmjs.org/
|
|
103
103
|
npm dist-tag ls @galaxycore/ai-chat \
|
|
104
104
|
--registry=https://registry.npmjs.org/
|
|
@@ -113,16 +113,16 @@ npm dist-tag ls @galaxycore/ai-chat \
|
|
|
113
113
|
```sh
|
|
114
114
|
npm run check:gateway
|
|
115
115
|
npm pack --workspace=@galaxycore/ai-chat-gateway --pack-destination artifacts
|
|
116
|
-
tar -tzf artifacts/galaxycore-ai-chat-gateway-0.
|
|
116
|
+
tar -tzf artifacts/galaxycore-ai-chat-gateway-0.2.0.tgz
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
验收后公开发布网关包:
|
|
120
120
|
|
|
121
121
|
```sh
|
|
122
|
-
npm publish ./artifacts/galaxycore-ai-chat-gateway-0.
|
|
122
|
+
npm publish ./artifacts/galaxycore-ai-chat-gateway-0.2.0.tgz \
|
|
123
123
|
--access public --tag latest \
|
|
124
124
|
--registry=https://registry.npmjs.org/
|
|
125
|
-
npm view @galaxycore/ai-chat-gateway@0.
|
|
125
|
+
npm view @galaxycore/ai-chat-gateway@0.2.0 version dist.integrity \
|
|
126
126
|
--registry=https://registry.npmjs.org/
|
|
127
127
|
```
|
|
128
128
|
|
package/docs/validation.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# 0.4.0 发布验收 · 2026-10-13
|
|
2
2
|
|
|
3
|
+
## 0.5.0 — Default Markdown (2026-10-20)
|
|
4
|
+
|
|
5
|
+
- Assistant text uses the existing safe Streamdown renderer by default; user input remains literal and host renderers retain precedence. Streamdown is installed as a runtime dependency.
|
|
6
|
+
- Verified with Node 24.19.0: `npm run check` passed (194 component tests, 11 gateway tests, 9 playground tests, type checks, library/demo/docs/server builds).
|
|
7
|
+
- The new default-rendering regression failed on 0.4.0 and passed after the fix. Existing Markdown security, streaming, focus and scroll coverage passed. The scroll fixture now supports multiple ResizeObserver instances.
|
|
8
|
+
- The built public entry passed an SSR smoke check for headings and emphasis. The 0.5.0 tarball contains 57 allowlisted files and no environment files or credentials.
|
|
9
|
+
- `npm publish` accepted `@galaxycore/ai-chat@0.5.0` for public npmjs.org distribution with the `latest` tag. Registry propagation is verified separately in `artifacts/npm-publication-0.5.json` when available.
|
|
10
|
+
- No new browser screenshot review or live model integration was performed for this change. Earlier validation records below apply to their named versions.
|
|
11
|
+
|
|
12
|
+
|
|
3
13
|
本次版本:`@galaxycore/ai-chat@0.4.0` 与 `@galaxycore/ai-chat-gateway@0.1.0`,两个包独立分发。前端新增 `ChatHistoryMenu` 与 `smoothStreaming`,并包含主动发送后恢复滚动跟随、短列表向上滑动不误暂停跟随的修复。
|
|
4
14
|
|
|
5
15
|
- Node 24.21.0 下执行 `npm run check` 全部通过:前端及文档示例 183 项、网关 11 项、示例 HTTP 服务 9 项,共 **203 项测试**;类型检查、组件库、Rspress、前端工作台和示例服务构建均通过。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galaxycore/ai-chat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Composable React AI chat for GalaxyCore, powered by Vercel AI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"./voice": {
|
|
53
53
|
"types": "./dist/voice.d.ts",
|
|
54
54
|
"import": "./dist/voice.js"
|
|
55
|
+
},
|
|
56
|
+
"./targeting": {
|
|
57
|
+
"types": "./dist/targeting.d.ts",
|
|
58
|
+
"import": "./dist/targeting.js"
|
|
55
59
|
}
|
|
56
60
|
},
|
|
57
61
|
"scripts": {
|