Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2a6a072
feat(chatbot): reactify diff reactdom
carolin913 Jan 6, 2026
a48e093
fix(reactify): fix slot render and attributes filter
LeonardoSya Jan 6, 2026
05a9281
chore(gitignore): update gitignore
carolin913 Jan 12, 2026
13130a6
feat(chatengine): support agui activity egent
carolin913 Jan 13, 2026
ff04bec
feat(chatengine): support activity history
carolin913 Jan 16, 2026
44f495e
feat(chatengine): support json-render and a2ui
carolin913 Jan 26, 2026
26b6af3
feat(chatengine): add json-render react for dataprovider
carolin913 Jan 27, 2026
36c0c66
feat(chatengine): refine demo
carolin913 Jan 27, 2026
7ccdcd8
feat(chatengin): add generate system prompt
carolin913 Jan 27, 2026
5406a50
feat(chatengine): support jsonpatch append op
carolin913 Jan 27, 2026
a2a4384
feat(chatengine): refactor filename and order
carolin913 Jan 28, 2026
8663de3
feat(chatengine): remove useless file
carolin913 Jan 28, 2026
4157f0c
feat(chatengine): jsonrender deep child props render
carolin913 Jan 29, 2026
6af4d93
feat(chatengine): upgrade performace json-render
carolin913 Jan 29, 2026
8a9834a
feat(chatengine): performace json-render
carolin913 Jan 29, 2026
6719856
Merge pull request #4063 from Tencent/fix/fix-slot-render_and_attribu…
LeonardoSya Feb 1, 2026
ce741fd
Merge pull request #4106 from Tencent/feat/action-bar
LeonardoSya Feb 1, 2026
85aabf1
feat(chatengine): add genui doc
carolin913 Feb 3, 2026
6668909
feat(chagengine): sync
carolin913 Feb 3, 2026
af8a0db
feat(chatengine): add docs
carolin913 Feb 4, 2026
1934f08
feat(chatengine): change endpoint
carolin913 Feb 5, 2026
4d1c015
feat(chatengine): change endpoint
carolin913 Feb 5, 2026
d51d1dd
feat(chatengine): agui history usermessage
carolin913 Feb 6, 2026
da7de60
ci: sync develop
carolin913 Feb 6, 2026
2262dc3
feat(chatengine): webc deps
carolin913 Feb 12, 2026
ddf79f3
feat(chatengine): refactor toolcall and activity registry
carolin913 Feb 12, 2026
44a1354
feat(chatengine): add openclaw adapter
carolin913 Mar 10, 2026
60373e5
feat(chatengine): support openclaw history
carolin913 Mar 11, 2026
1967c43
feat(chatengine): refactory entry
carolin913 Mar 11, 2026
0262839
feat(chatengint): resume and restore
carolin913 Mar 11, 2026
737e092
feat(chatengine): init ws connet asyn
carolin913 Mar 12, 2026
28d25e8
feat(chatengine): openclaw stream tool
carolin913 Mar 13, 2026
e062820
Merge branch 'develop' into feat/chat-reactify
LzhengH Jun 11, 2026
f624681
feat(json-render): update json-render 0.19
LzhengH Jun 11, 2026
7dfa82f
refactor(ai-core): use ai-core, del core dir
LzhengH Jun 11, 2026
9f4a622
feat(a2ui): support v0.9.1 a2ui protocol
LzhengH Jun 11, 2026
913d9af
chore(a2ui): change import
LzhengH Jun 22, 2026
27a9c94
feat(core): upgrage ai-core
LzhengH Jun 29, 2026
52bc31d
chore(a2ui): 兼容action用法
LzhengH Jun 29, 2026
4e5f14d
feat(a2ui): use json-render replace a2ui-adapter
LzhengH Jun 30, 2026
928427e
Merge branch 'develop' into feat/chat-a2ui
LzhengH Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,21 @@ pnpm-lock.yaml

## analysis files
bundle-analysis

## mock files
packages/**/chat-engine/core
packages/**/chat-engine/docs
packages/**/chatbot/docs
*.zip
.codebuddy/memory
.codebuddy/plans
mock-server
packages/**/docs
packages/pro-components/chat/**/docs/
.codebuddy

.zip
openspec
.fue
*.d.ts
*.zip
.fue
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker"
"streetsidesoftware.code-spell-checker",
"gongfeng.gongfeng-copilot"
]
}
251 changes: 251 additions & 0 deletions docs/agentic-architecture.md

Large diffs are not rendered by default.

91 changes: 91 additions & 0 deletions docs/ai-infra-migrate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
## 一、当前现状梳理

### 已有规范文档资产

| 文档 | 位置 | 内容概要 | 状态 |
|------|------|---------|------|
| **develop-install.md** | `packages/common/` | 6 种构建产物规范(dist/es/esm/lib/ejs)、package.json 入口配置标准 | ✅ 完整,可直接引用 |
| **api.md** | `packages/common/` | API 设计规范:TNode 类型、事件命名、v-model、size 默认值等 | ✅ 完整,可直接引用 |
| **css-naming.md** | `packages/common/` | BEM 命名规范、状态类名 `t-is-*`、尺寸类 `t-size-*` | ✅ 完整,可直接引用 |
| **naming.md** | `packages/common/` | 组件命名规范(被 css-naming.md 引用) | ✅ 存在 |
| **tdesign-react-spec-coding-guide.md** | `.codebuddy/` | React 编码指导概述(forwardRef、useDefaultProps 等) | ⚠️ 概述性,缺少可执行的 SOP |
| **CONTRIBUTING.md** | 根目录 | 贡献指南(分支策略、PR 流程) | ✅ 完整 |
| **PUBLISH.md** | 根目录 | 发布流程说明 | ✅ 完整 |

### 已有工程工具

| 工具 | 位置 | 状态 |
|------|------|------|
| 组件脚手架 | `script/init-component/` | ⚠️ 旧版,路径写死 `src/`,不支持 monorepo |
| CSS 变量生成 | `packages/common/scripts/generate-css-vars.mjs` | ✅ 可用 |
| Rollup 构建配置 | `script/rollup.config.js` | ✅ 支持 6 种产物 |
| 快照测试框架 | `test/snap/` | ✅ CSR + SSR |

### 缺失/待建设

| 项目 | 说明 |
|------|------|
| **Specs 体系** | 无结构化的 spec 定义目录 |
| **Skills 体系** | 无 AI 可执行的 SKILL.md SOP |
| **错误知识库** | 无 common-errors.md 类型的知识修正文档 |
| **模式库** | 组件开发模式散落在代码注释中,未系统化 |

---

## 二、重要 Specs 规划

Specs 定义"**是什么**"——标准、规范、架构约束。

| Spec 名称 | 内容来源 | 核心内容 |
|-----------|---------|---------|
| **build-output-spec** | develop-install.md | 6 种产物格式定义(dist/es/esm/lib/ejs/umd)、package.json 入口字段标准、sideEffects 配置 |
| **api-design-spec** | api.md | TNode 类型系统、事件命名规范(on 前缀)、size 三档默认值、v-model 双向绑定 |
| **css-naming-spec** | css-naming.md | BEM `t-[block]__[element]--[modifier]`、状态类 `t-is-*`、尺寸类 `t-size-*` |
| **component-architecture-spec** | 散落规范整合 | 组件目录结构标准、type.ts/defaultProps.ts 生成规则、forwardRef 模式、入口导出规范 |
| **testing-strategy-spec** | test/ 目录分析 | 单测覆盖率标准、CSR/SSR 快照策略、Vitest 配置规范 |
| **aigc-component-spec** | pro-components 分析 | Chat 组件体系架构、独立构建链、`@tdesign-react/chat` 发布规范 |

---

## 三、重要 Skills 规划

Skills 定义"**怎么做**"——可执行的 SOP 流程。

### A. 开发规范类(最高优先级)

| Skill 名称 | 用途 | SOP 要点 |
|------------|------|---------|
| **`tdesign-create-component`** | 新组件脚手架 | 1) 选择目标包(components/pro-components) 2) 生成完整目录结构 3) 自动注册到 index.ts 和 site.config.mjs 4) 遵循 forwardRef + useDefaultProps 模式 |
| **`tdesign-component-style`** | 组件样式开发 | 1) BEM 类名生成 2) Less 变量引用路径 3) `t-is-*` 状态类使用 4) CSS Variables 文档生成 |
| **`tdesign-api-type-sync`** | API 类型同步 | 1) type.ts 生成规范 2) TNode 类型定义标准 3) 事件 Props `onXxx` 命名 4) defaultProps.ts 对齐 |

### B. 测试辅助类

| Skill 名称 | 用途 | SOP 要点 |
|------------|------|---------|
| **`tdesign-test-component`** | 组件单元测试 | 1) Vitest + @testing-library/react 2) `__tests__/vitest-*.test.jsx` 命名 3) 渲染/事件/异步断言模式 |
| **`tdesign-snapshot-update`** | 快照维护 | 1) CSR/SSR 快照更新流程 2) 何时更新快照 vs 修复代码的决策 |

### C. 发布运维类

| Skill 名称 | 用途 | SOP 要点 |
|------------|------|---------|
| **`tdesign-release`** | 版本发布 | 1) release 分支创建 2) CHANGELOG 生成 3) 6 种产物校验 4) npm publish 流程 |
| **`tdesign-build-verify`** | 构建验证 | 1) 6 种产物格式检查清单 2) package.json 入口字段验证 3) sideEffects 配置验证 |

### D. 知识修正类

| Skill 名称 | 用途 | SOP 要点 |
|------------|------|---------|
| **`tdesign-common-errors`** | 常见错误参考 | lodash→lodash-es、type.ts 不可手动编辑、`useConfig()` vs 硬编码前缀、React 19 适配等 |
| **`tdesign-pattern-reference`** | 组件模式库 | forwardRef 标准模式、受控/非受控(useControlled)、TNode 渲染、虚拟滚动模式 |

---

## 四、优先级建议

| 优先级 | Specs | Skills |
|--------|-------|--------|
| **P0** | build-output-spec, api-design-spec, css-naming-spec | `tdesign-create-component`, `tdesign-common-errors`, `tdesign-test-component` |
| **P1** | component-architecture-spec, aigc-component-spec | `tdesign-component-style`, `tdesign-pattern-reference`, `tdesign-release` |
| **P2** | testing-strategy-spec | `tdesign-monorepo-migrate`, `tdesign-api-type-sync`, `tdesign-build-verify` |
2 changes: 2 additions & 0 deletions packages/components/checkbox/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import './style/index.js';

import _Checkbox from './Checkbox';
import _CheckboxGroup from './CheckboxGroup';

export type { CheckboxProps } from './Checkbox';
export type { CheckboxGroupProps } from './CheckboxGroup';
export * from './type';

export const Checkbox = _Checkbox;
export const CheckboxGroup = _CheckboxGroup;
export default Checkbox;
Loading
Loading