diff --git a/.vitepress/config.mts b/.vitepress/config.mts
index 477637e..0f6f4d3 100644
--- a/.vitepress/config.mts
+++ b/.vitepress/config.mts
@@ -6,6 +6,7 @@ import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
import { isMermaidFence, renderMermaidFence } from './theme/markdown/mermaid'
import { tinyEditorDemoPlugin } from './theme/markdown/tiny-editor-demo'
import { tinyproDocsPlugin } from './theme/markdown/tinypro-docs'
+import { tinyRobotLinks } from './theme/markdown/tiny-robot-links'
import path from 'path'
import fs from 'node:fs'
import { fileURLToPath } from 'url'
@@ -128,6 +129,7 @@ export default defineConfig({
// tiny-editor 的 :::demo src=... 转成 ,再交给 vitepress-demo-plugin
md.use(tinyEditorDemoPlugin)
md.use(tinyproDocsPlugin)
+ md.use(tinyRobotLinks)
md.use(vitepressDemoPlugin, {
playground: { show: true },
codeTransformer: (code) => {
@@ -168,12 +170,12 @@ export default defineConfig({
},
{
text: '演示',
- link: '/tiny-robot/examples/assistant',
+ link: '/tiny-robot/examples/chat-tiny-robot',
activeMatch: '/examples/'
},
{
text: '迁移指南',
- link: '/tiny-robot/migration/bubble-migration',
+ link: '/tiny-robot/migration/',
activeMatch: '/migration/'
}
],
diff --git a/.vitepress/theme/Layout.vue b/.vitepress/theme/Layout.vue
index 8720055..4d414d6 100644
--- a/.vitepress/theme/Layout.vue
+++ b/.vitepress/theme/Layout.vue
@@ -80,7 +80,7 @@ const redirectMap = [
},
{
patterns: ['/tiny-robot/components.html', '/tiny-robot/components/'],
- target: '/tiny-robot/components/container'
+ target: '/tiny-robot/components/layout'
},
{
patterns: ['/tiny-robot/tools.html', '/tiny-robot/tools/'],
@@ -88,7 +88,7 @@ const redirectMap = [
},
{
patterns: ['/tiny-robot/examples/', '/tiny-robot/examples.html'],
- target: '/tiny-robot/examples/assistant'
+ target: '/tiny-robot/examples/chat-tiny-robot'
},
{
patterns: ['/next-sdk.html', '/next-sdk/', '/next-sdk/guide.html', '/next-sdk/guide/'],
diff --git a/.vitepress/theme/components/CustomHeader.vue b/.vitepress/theme/components/CustomHeader.vue
index 99f56c8..f05151e 100644
--- a/.vitepress/theme/components/CustomHeader.vue
+++ b/.vitepress/theme/components/CustomHeader.vue
@@ -325,7 +325,7 @@ const getActiveNavTab = () => {
const productPathMap: Record = {
"next-sdk": ["/next-sdk/"],
- "tiny-robot": ["/components/", "/tools/"],
+ "tiny-robot": ["/components/", "/tools/", "/suites/", "/best-practices/"],
"tiny-editor": ["/demo/", "/api/", "/modules/"],
"web-agent": ["/web-agent/"],
"tiny-pro": ["/tiny-pro/"],
diff --git a/.vitepress/theme/home/components/HeroSection.vue b/.vitepress/theme/home/components/HeroSection.vue
index 3b5fae8..9bd8094 100644
--- a/.vitepress/theme/home/components/HeroSection.vue
+++ b/.vitepress/theme/home/components/HeroSection.vue
@@ -196,7 +196,7 @@ const categoryCards = [
links: [
{ text: "NEXT-SDKs WebMCP API", url: "/next-sdk/guide/webmcp-article.html" },
{ text: "TinyEditor API", url: "/tiny-editor/api/fluent-editor-instance.html" },
- { text: "TinyRobot API", url: "/tiny-robot/tools/ai-client.html#api" },
+ { text: "TinyRobot API", url: "/tiny-robot/suites/chat.html#trchat-api" },
{ text: "WebAgent API", url: "/web-agent/guide/api-reference.html" },
],
},
@@ -207,7 +207,7 @@ const categoryCards = [
links: [
{ text: "NEXT-SDKs WebMCP", url: "/next-sdk/guide/quick-start.html" },
{ text: "TinyEditor", url: "/tiny-editor/guide/quick-start.html" },
- { text: "TinyRobot", url: "/tiny-robot/components/container.html" },
+ { text: "TinyRobot", url: "/tiny-robot/suites/quick-start.html" },
{ text: "WebAgent API", url: "/web-agent/guide/api-reference.html" },
],
},
@@ -218,7 +218,7 @@ const categoryCards = [
links: [
{ text: "NEXT-SDKs", url: "/next-sdk/guide/quick-start.html" },
{ text: "GenUI SDK", url: "/genui-sdk/guide/quick-start.html" },
- { text: "TinyRobot", url: "/tiny-robot/guide/quick-start.html" },
+ { text: "TinyRobot", url: "/tiny-robot/best-practices/extension-manager-integration.html" },
{ text: "AI Extension", url: "/tiny-robot-ai/quick-start.html" },
{ text: "TinyVue", url: "/tiny-vue/guide/installation.html" },
{ text: "TinyEditor", url: "/tiny-editor/guide/quick-start.html" },
@@ -232,7 +232,7 @@ const categoryCards = [
subtitle: "体验各产品功能与示例",
icon: `${prefix}images/icon-demo.svg`,
links: [
- { text: "TinyRobot", url: "/tiny-robot/examples/assistant.html" },
+ { text: "TinyRobot", url: "/tiny-robot/examples/chat-tiny-robot.html" },
{ text: "TinyEditor", url: "/tiny-editor/demo/basic-usage.html" },
{ text: "TinyEngine", url: "https://opentiny.design/tiny-engine#/tiny-engine-editor" },
],
diff --git a/.vitepress/theme/home/components/ProductSection.vue b/.vitepress/theme/home/components/ProductSection.vue
index 9ad2632..794cec1 100644
--- a/.vitepress/theme/home/components/ProductSection.vue
+++ b/.vitepress/theme/home/components/ProductSection.vue
@@ -76,8 +76,8 @@ const productCards = [
desc: "AI 对话组件库",
icon: `${prefix}images/icon-tiny-robot.svg`,
links: [
- { text: "综合示例", url: "/tiny-robot/examples/assistant" },
- { text: "迁移指南", url: "/tiny-robot/migration/bubble-migration" },
+ { text: "产品演示", url: "/tiny-robot/examples/chat-tiny-robot" },
+ { text: "迁移指南", url: "/tiny-robot/migration/" },
],
},
{
diff --git a/.vitepress/theme/markdown/tiny-robot-links.ts b/.vitepress/theme/markdown/tiny-robot-links.ts
new file mode 100644
index 0000000..1a69f39
--- /dev/null
+++ b/.vitepress/theme/markdown/tiny-robot-links.ts
@@ -0,0 +1,19 @@
+import type { MarkdownRenderer } from 'vitepress'
+
+const tinyRobotSection = /^\/(?:guide|suites|components|tools|best-practices|icons|examples|migration)(?=\/|[?#]|$)/
+
+export function tinyRobotLinks(md: MarkdownRenderer) {
+ md.core.ruler.after('inline', 'tiny-robot-links', (state) => {
+ if (!state.env.relativePath?.startsWith('tiny-robot/')) return
+
+ for (const token of state.tokens) {
+ for (const child of token.children ?? []) {
+ if (child.type !== 'link_open') continue
+ const href = child.attrGet('href')
+ if (href && tinyRobotSection.test(href)) {
+ child.attrSet('href', `/tiny-robot${href}`)
+ }
+ }
+ }
+ })
+}
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 8a5697f..fcd728f 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,5 +1,6 @@
packages:
- tiny-robot/**
+ - '!tiny-robot/packages/cli/templates/**'
- genui
- genui/genui-sdk/packages/frameworks/angular
- genui/genui-sdk/packages/core
diff --git a/tiny-robot b/tiny-robot
index 2cb6596..088a52b 160000
--- a/tiny-robot
+++ b/tiny-robot
@@ -1 +1 @@
-Subproject commit 2cb6596e8c02593ddf98851b18aae7a07fc98af1
+Subproject commit 088a52b5ecfc96d1566592b338139ddceb16cfd7