@tbox.cn/app-template-agent 1.0.0-alpha.21 → 1.0.0-alpha.22
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/._.gitignore +0 -0
- package/._.ignore +0 -0
- package/._.nvmrc +0 -0
- package/._AGENTS.md +0 -0
- package/._ENV.md +0 -0
- package/._LEGAL.md +0 -0
- package/._LICENSE +0 -0
- package/._README.md +0 -0
- package/._eslint.config.mjs +0 -0
- package/._package.json +0 -0
- package/._pnpm-lock.template.yaml +0 -0
- package/._pnpm-workspace.template.yaml +0 -0
- package/._tsconfig.base.json +0 -0
- package/.tbox/._app.json +0 -0
- package/.tbox/._default-modules.json +0 -0
- package/.tbox/._miniapp-containers.json +0 -0
- package/.tbox/app.json +1 -1
- package/.tbox/cache/._.eslintcache +0 -0
- package/.tbox/cache/._apps-client.tsbuildinfo +0 -0
- package/.tbox/cache/._apps-server.tsbuildinfo +0 -0
- package/.tbox/cache/._packages-agent-ui-kit.tsbuildinfo +0 -0
- package/.tbox/cache/._packages-shared.tsbuildinfo +0 -0
- package/.tbox/cache/.eslintcache +1 -1
- package/.tbox/cache/apps-client.tsbuildinfo +1 -1
- package/.tbox/cache/apps-server.tsbuildinfo +1 -1
- package/.tbox/cache/packages-agent-ui-kit.tsbuildinfo +1 -1
- package/.tbox/default-modules.json +1 -1
- package/.tbox/factory/._chat.json +0 -0
- package/.tbox/miniapp-containers.json +1 -1
- package/apps/._AGENTS.md +0 -0
- package/apps/client/._index.html +0 -0
- package/apps/client/._package.json +0 -0
- package/apps/client/._tsconfig.json +0 -0
- package/apps/client/._vite.config.ts +0 -0
- package/apps/client/scripts/._acceptance-changes.test.mjs +0 -0
- package/apps/client/scripts/._check-evidence.mjs +0 -0
- package/apps/client/scripts/._color-scan.mjs +0 -0
- package/apps/client/scripts/._color-scan.test.mjs +0 -0
- package/apps/client/scripts/._evidence-gate.mjs +0 -0
- package/apps/client/scripts/._evidence-gate.test.mjs +0 -0
- package/apps/client/scripts/._experience-checks.mjs +0 -0
- package/apps/client/scripts/._geometry-kernel.test.mjs +0 -0
- package/apps/client/scripts/._home-preset-wiring.test.ts +0 -0
- package/apps/client/scripts/._home-preset-wiring.ts +0 -0
- package/apps/client/scripts/._in-process-checks.mjs +0 -0
- package/apps/client/scripts/._probe-checks.mjs +0 -0
- package/apps/client/scripts/._render-card.mjs +0 -0
- package/apps/client/scripts/._sample-entries.test.mjs +0 -0
- package/apps/client/scripts/._static-checks.test.mjs +0 -0
- package/apps/client/scripts/._storyboard.test.mjs +0 -0
- package/apps/client/scripts/._surface-css.mjs +0 -0
- package/apps/client/scripts/._theme-kernel.mjs +0 -0
- package/apps/client/scripts/._theme-kernel.test.mjs +0 -0
- package/apps/client/scripts/lib/._card-registry.mjs +0 -0
- package/apps/client/scripts/lib/._card-registry.test.mjs +0 -0
- package/apps/client/scripts/lib/._evidence-inputs.mjs +0 -0
- package/apps/client/scripts/lib/._evidence-inputs.test.mjs +0 -0
- package/apps/client/scripts/lib/._static-render.mjs +0 -0
- package/apps/client/scripts/lib/._static-render.test.mjs +0 -0
- package/apps/client/scripts/lib/._tool-cards-static.mjs +0 -0
- package/apps/client/src/._app.config.ts +0 -0
- package/apps/client/src/._vite-env.d.ts +0 -0
- package/apps/client/src/cards/._AGENTS.md +0 -0
- package/apps/client/src/cards/._home-preset.test.ts +0 -0
- package/apps/client/src/cards/._home-preset.ts +0 -0
- package/apps/client/src/cards/._registry.ts +0 -0
- package/apps/client/src/pages/._page.tsx +0 -0
- package/apps/client/src/pages/index/._index.tsx +0 -0
- package/apps/client/src/store/._chat.ts +0 -0
- package/apps/client/src/styles/._brand.css +0 -0
- package/apps/client/src/styles/._tailwind.css +0 -0
- package/apps/client/src/test/._setup.ts +0 -0
- package/apps/server/._package.json +0 -0
- package/apps/server/._tsconfig.json +0 -0
- package/apps/server/._tsup.config.ts +0 -0
- package/apps/server/._vitest.config.ts +0 -0
- package/apps/server/scripts/._probe.mjs +0 -0
- package/apps/server/scripts/._scenario-lib.mjs +0 -0
- package/apps/server/scripts/._scenario.mjs +0 -0
- package/apps/server/src/._app.ts +0 -0
- package/apps/server/src/._dev.ts +0 -0
- package/apps/server/src/._index.ts +0 -0
- package/apps/server/src/._intent-routes.ts +0 -0
- package/apps/server/src/._pre-tools.ts +0 -0
- package/apps/server/src/actions/._AGENTS.md +0 -0
- package/apps/server/src/cards/._AGENTS.md +0 -0
- package/apps/server/src/cli/._collect-registry.ts +0 -0
- package/apps/server/src/cli/._plugin-doctor.ts +0 -0
- package/apps/server/src/cli/._plugin-inspect.ts +0 -0
- package/apps/server/src/config/._integration.ts +0 -0
- package/apps/server/src/tools/._AGENTS.md +0 -0
- package/apps/server/tests/._agent-prompt.test.ts +0 -0
- package/apps/server/tests/._cards-registry.test.ts +0 -0
- package/apps/server/tests/._deployment-loader.test.ts +0 -0
- package/apps/server/tests/._intent-dispatcher.test.ts +0 -0
- package/apps/server/tests/._tool-runtime.test.ts +0 -0
- package/apps/server/tests/helpers/._register.ts +0 -0
- package/config/._AGENTS.md +0 -0
- package/config/._README.md +0 -0
- package/config/._agent.jsonc +0 -0
- package/config/._chat.json +0 -0
- package/config/._integrations.json +0 -0
- package/config/._llm_provider.json +0 -0
- package/config/._plugins.json +0 -0
- package/docs/agent/._agent-prompt.md +0 -0
- package/docs/agent/._card-action.md +0 -0
- package/docs/agent/._card.md +0 -0
- package/docs/agent/._conversation.md +0 -0
- package/docs/agent/._errors.md +0 -0
- package/docs/agent/._kit.md +0 -0
- package/docs/agent/._shell.md +0 -0
- package/docs/agent/._state.md +0 -0
- package/docs/agent/._style.md +0 -0
- package/docs/agent/._tool-emits-card.md +0 -0
- package/docs/agent/._tool.md +0 -0
- package/docs/agent/._verify.md +0 -0
- package/docs/agent/kit.md +2 -2
- package/modules/provider-custom/._AGENTS.md +0 -0
- package/modules/provider-custom/._INTEGRATION.md +0 -0
- package/modules/provider-custom/._LICENSE +0 -0
- package/modules/provider-custom/._README.md +0 -0
- package/modules/provider-custom/._package.json +0 -0
- package/modules/provider-custom/._tbox.module.json +0 -0
- package/modules/provider-custom/._tsconfig.json +0 -0
- package/modules/provider-custom/._tsup.config.ts +0 -0
- package/modules/provider-custom/src/._index.ts +0 -0
- package/modules/provider-custom/src/server/._example-adapter.ts +0 -0
- package/modules/provider-custom/src/server/._index.ts +0 -0
- package/modules/provider-custom/tests/._provider-custom.test.ts +0 -0
- package/package.json +4 -4
- package/packages/agent-ui-kit/._AGENTS.md +0 -0
- package/packages/agent-ui-kit/._LICENSE +0 -0
- package/packages/agent-ui-kit/._README.md +0 -0
- package/packages/agent-ui-kit/._catalog.json +0 -0
- package/packages/agent-ui-kit/._package.json +0 -0
- package/packages/agent-ui-kit/._tsconfig.json +0 -0
- package/packages/agent-ui-kit/._vitest.config.ts +0 -0
- package/packages/agent-ui-kit/assets/._keyboard-circle.svg +0 -0
- package/packages/agent-ui-kit/assets/._more-circle.svg +0 -0
- package/packages/agent-ui-kit/assets/._new-chat.svg +0 -0
- package/packages/agent-ui-kit/assets/._quick-command-star.svg +0 -0
- package/packages/agent-ui-kit/assets/._send-gradient.svg +0 -0
- package/packages/agent-ui-kit/assets/._stop@2x.png +0 -0
- package/packages/agent-ui-kit/assets/._voice-circle.svg +0 -0
- package/packages/agent-ui-kit/catalog.json +4 -2
- package/packages/agent-ui-kit/package.json +1 -1
- package/packages/agent-ui-kit/src/._ChatPage.tsx +0 -0
- package/packages/agent-ui-kit/src/._chat-config.test.ts +0 -0
- package/packages/agent-ui-kit/src/._chat-config.ts +0 -0
- package/packages/agent-ui-kit/src/._contract.test.tsx +0 -0
- package/packages/agent-ui-kit/src/._icons.ts +0 -0
- package/packages/agent-ui-kit/src/._index.ts +0 -0
- package/packages/agent-ui-kit/src/._preview-provider.tsx +0 -0
- package/packages/agent-ui-kit/src/._shell.contract.json +0 -0
- package/packages/agent-ui-kit/src/._shell.test.ts +0 -0
- package/packages/agent-ui-kit/src/._shell.ts +0 -0
- package/packages/agent-ui-kit/src/._store-context.tsx +0 -0
- package/packages/agent-ui-kit/src/._surface.test.tsx +0 -0
- package/packages/agent-ui-kit/src/._surface.tsx +0 -0
- package/packages/agent-ui-kit/src/._types.ts +0 -0
- package/packages/agent-ui-kit/src/._vite-env.d.ts +0 -0
- package/packages/agent-ui-kit/src/ChatPage.tsx +3 -2
- package/packages/agent-ui-kit/src/card/._action-list-pending.test.tsx +0 -0
- package/packages/agent-ui-kit/src/card/._confirm-fields.test.tsx +0 -0
- package/packages/agent-ui-kit/src/card/._define-card.test.ts +0 -0
- package/packages/agent-ui-kit/src/card/._define-card.ts +0 -0
- package/packages/agent-ui-kit/src/card/._primitives.test.tsx +0 -0
- package/packages/agent-ui-kit/src/card/._primitives.tsx +0 -0
- package/packages/agent-ui-kit/src/card/._use-card-actions.ts +0 -0
- package/packages/agent-ui-kit/src/card/._view-card-inline.test.tsx +0 -0
- package/packages/agent-ui-kit/src/card/._view-card.test.tsx +0 -0
- package/packages/agent-ui-kit/src/card/._view-card.tsx +0 -0
- package/packages/agent-ui-kit/src/components/._CardRenderer.tsx +0 -0
- package/packages/agent-ui-kit/src/components/._HistoryList.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ActionBar/._DebugButton.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ActionBar/._DebugButton.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ActionBar/._index.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ActionBar/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/BottomSheet/._index.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/BottomSheet/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/._index.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/._use-auto-rows.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/._use-auto-rows.ts +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/index.tsx +1 -1
- package/packages/agent-ui-kit/src/components/ChatInput/voice/._VoicePressField.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/voice/._VoiceRecordingOverlay.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/voice/._machine.ts +0 -0
- package/packages/agent-ui-kit/src/components/ChatInput/voice/._useVoicePress.ts +0 -0
- package/packages/agent-ui-kit/src/components/HistoryEntry/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/HistoryEntry/index.tsx +3 -1
- package/packages/agent-ui-kit/src/components/MediaList/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/MessageBubble/._index.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/MessageBubble/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/PullDownIndicator/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/QuickCommands/._index.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/QuickCommands/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/QuickCommands/index.tsx +1 -1
- package/packages/agent-ui-kit/src/components/ReasoningBlock/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ScrollToBottomButton/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/StarterQuestions/._index.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/StarterQuestions/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ToolCallBlock/._detail.test.ts +0 -0
- package/packages/agent-ui-kit/src/components/ToolCallBlock/._detail.ts +0 -0
- package/packages/agent-ui-kit/src/components/ToolCallBlock/._index.test.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ToolCallBlock/._index.tsx +0 -0
- package/packages/agent-ui-kit/src/components/ToolCallBlock/._titles.ts +0 -0
- package/packages/agent-ui-kit/src/hooks/._use-drag-gesture.test.ts +0 -0
- package/packages/agent-ui-kit/src/hooks/._use-drag-gesture.ts +0 -0
- package/packages/agent-ui-kit/src/hooks/._use-pull-down-history.ts +0 -0
- package/packages/agent-ui-kit/src/hooks/._use-pull-down-wheel-native.test.ts +0 -0
- package/packages/agent-ui-kit/src/hooks/._use-stick-to-bottom.test.tsx +0 -0
- package/packages/agent-ui-kit/src/hooks/._use-stick-to-bottom.ts +0 -0
- package/packages/agent-ui-kit/src/hooks/._useMediaUpload.ts +0 -0
- package/packages/agent-ui-kit/src/hooks/._useTTSAutoPlay.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._Overlay.tsx +0 -0
- package/packages/agent-ui-kit/src/overlay/._focus.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._index.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._inert.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._layers.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._overlay.ssr.test.tsx +0 -0
- package/packages/agent-ui-kit/src/overlay/._overlay.test.tsx +0 -0
- package/packages/agent-ui-kit/src/overlay/._presence.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._scroll-lock.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._stack.ts +0 -0
- package/packages/agent-ui-kit/src/overlay/._use-overlay.ts +0 -0
- package/packages/agent-ui-kit/src/shell.contract.json +2 -2
- package/packages/agent-ui-kit/src/shell.test.ts +8 -5
- package/packages/agent-ui-kit/src/test/._setup.ts +0 -0
- package/packages/agent-ui-kit/src/theme/._base.css +0 -0
- package/packages/agent-ui-kit/src/theme/._contract.json +0 -0
- package/packages/agent-ui-kit/src/theme/._motion.css +0 -0
- package/packages/agent-ui-kit/src/theme/._theme-contract.test.ts +0 -0
- package/packages/agent-ui-kit/src/theme/._theme.ts +0 -0
- package/packages/agent-ui-kit/src/theme/._tokens.css +0 -0
- package/packages/agent-ui-kit/src/utils/._copyText.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._haptics.test.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._haptics.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._image-preview-host.tsx +0 -0
- package/packages/agent-ui-kit/src/utils/._imagePreview.test.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._imagePreview.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._pull-down-machine.test.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._pull-down-machine.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._session-error.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._toast.test.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._toast.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._tool-call-display.test.ts +0 -0
- package/packages/agent-ui-kit/src/utils/._tool-call-display.ts +0 -0
- package/packages/contracts-mall/._package.json +0 -0
- package/packages/contracts-mall/._tsconfig.json +0 -0
- package/packages/contracts-mall/src/._index.ts +0 -0
- package/packages/contracts-mall/src/._runtime.ts +0 -0
- package/packages/contracts-mall/src/server/._index.ts +0 -0
- package/packages/shared/._AGENTS.md +0 -0
- package/packages/shared/._package.json +0 -0
- package/packages/shared/._tsconfig.json +0 -0
- package/packages/shared/src/._index.ts +0 -0
- package/pnpm-lock.template.yaml +241 -245
- package/pnpm-workspace.template.yaml +11 -11
- package/profiles/._mall.json +0 -0
- package/profiles/mall/._TEMPLATE.md +0 -0
- package/profiles/mall/._chat.overrides.json +0 -0
- package/profiles/mall/config/._agent.jsonc +0 -0
- package/profiles/mall/config/._chat.json +0 -0
- package/profiles/mall/config/._knowledge.json +0 -0
- package/profiles/mall.json +9 -0
- package/scenarios/._README.md +0 -0
- package/scripts/._assert-pack.mjs +0 -0
- package/scripts/._build.sh +0 -0
- package/scripts/._check-css-target.mjs +0 -0
- package/scripts/._check-fast.mjs +0 -0
- package/scripts/._check-workspace.mjs +0 -0
- package/scripts/._checks.json +0 -0
- package/scripts/._deliver.mjs +0 -0
- package/scripts/._dev-alipay.mjs +0 -0
- package/scripts/._dev.sh +0 -0
- package/scripts/._generate.mjs +0 -0
- package/scripts/._interaction-probe.mjs +0 -0
- package/scripts/._prepare.sh +0 -0
- package/scripts/._shell-probe.mjs +0 -0
- package/scripts/._smoke.mjs +0 -0
- package/scripts/._start.sh +0 -0
- package/scripts/._stop.sh +0 -0
- package/scripts/._storyboard.mjs +0 -0
- package/scripts/._verify-generated.mjs +0 -0
- package/scripts/lib/._chrome-pipe.mjs +0 -0
- package/scripts/lib/._geometry-kernel.mjs +0 -0
- package/.tbox/cache/._apps-client-strict.tsbuildinfo +0 -0
- package/.tbox/cache/._apps-server-strict.tsbuildinfo +0 -0
- package/.tbox/cache/._packages-agent-ui-kit-strict.tsbuildinfo +0 -0
- package/.tbox/cache/._packages-shared-strict.tsbuildinfo +0 -0
- package/.tbox/cache/apps-client-strict.tsbuildinfo +0 -1
- package/.tbox/cache/apps-server-strict.tsbuildinfo +0 -1
- package/.tbox/cache/packages-agent-ui-kit-strict.tsbuildinfo +0 -1
- package/.tbox/cache/packages-shared-strict.tsbuildinfo +0 -1
|
Binary file
|
package/apps/._AGENTS.md
CHANGED
|
Binary file
|
package/apps/client/._index.html
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/apps/server/src/._app.ts
CHANGED
|
Binary file
|
package/apps/server/src/._dev.ts
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/config/._AGENTS.md
CHANGED
|
Binary file
|
package/config/._README.md
CHANGED
|
Binary file
|
package/config/._agent.jsonc
CHANGED
|
Binary file
|
package/config/._chat.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/config/._plugins.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/agent/._card.md
CHANGED
|
Binary file
|
|
Binary file
|
package/docs/agent/._errors.md
CHANGED
|
Binary file
|
package/docs/agent/._kit.md
CHANGED
|
Binary file
|
package/docs/agent/._shell.md
CHANGED
|
Binary file
|
package/docs/agent/._state.md
CHANGED
|
Binary file
|
package/docs/agent/._style.md
CHANGED
|
Binary file
|
|
Binary file
|
package/docs/agent/._tool.md
CHANGED
|
Binary file
|
package/docs/agent/._verify.md
CHANGED
|
Binary file
|
package/docs/agent/kit.md
CHANGED
|
@@ -81,11 +81,11 @@ ChatPage 渲染的区域如下;`可覆写` 为 true 的选择器可以在 `bra
|
|
|
81
81
|
|---|---|---|---|
|
|
82
82
|
| `welcome` | `.chat-page__welcome` | chat.json welcome.title;chat.json welcome.subtitle;chat.json welcome.badge | 是 |
|
|
83
83
|
| `messages` | `.chat-page__body` | chat store messages / historyMessages,历史分页保留当前阅读位置 | 否 |
|
|
84
|
-
| `history-entry` | `.history-entry` | chat store historyHasMore / isLoadingHistory | 否 |
|
|
84
|
+
| `history-entry` | `.history-entry` | chat store historyHasMore / isLoadingHistory;常驻 home 槽或 --tbox-compact-chat(紧凑胶囊) | 否 |
|
|
85
85
|
| `home-slot` | `.chat-page__home-slot` | 客户端槽 home;HomeSlotMeta(register 第三参数:lifecycle home-only\|persistent / gutter inset\|bleed / hideBottomQuickCommands) | 否 |
|
|
86
86
|
| `conversation-overlay` | `.chat-page__conversation-overlay` | 客户端槽 conversationOverlay | 否 |
|
|
87
87
|
| `starter-questions` | `.chat-page__starter-questions` | chat.json starterQuestions.title;chat.json starterQuestions.pageSize;chat.json starterQuestions.items[].label/query | 是 |
|
|
88
|
-
| `quick-commands` | `.quick-commands` | HELLO_ACK chatConfig.quickCommands(缺省回落 chat.json);chat.json quickCommands[].icon(图片或 icon:calendar
|
|
88
|
+
| `quick-commands` | `.quick-commands` | HELLO_ACK chatConfig.quickCommands(缺省回落 chat.json);chat.json quickCommands[].icon(图片或 icon:calendar);常驻 home 槽或 --tbox-compact-chat(底部紧凑胶囊) | 是 |
|
|
89
89
|
| `input` | `.tbox-chat-input` | chat.json(enableTTS / input.minRows / input.maxRows);chat store runtimeStatus / isGenerating | 否 |
|
|
90
90
|
|
|
91
91
|
不承诺稳定(不要覆写):
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-template-agent",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"description": "tbox AI Agent 全栈模板(多包 pnpm workspace):apps/client + apps/server。唯一模板(W4 单一模板统一化:缺省带 AI 支付体验的 chat 形态;mall 能力经 profiles/mall 加装),能力经 CLI module add 模块扩展(shopping-guide/member 等)。",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0 <25.0.0",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"typescript-eslint": "8.67.0",
|
|
51
51
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
52
52
|
"vite": "6.4.3",
|
|
53
|
-
"@tbox.cn/app-sdk-server": "1.0.0-alpha.
|
|
54
|
-
"@tbox.cn/app-build": "1.0.0-alpha.
|
|
55
|
-
"@tbox.cn/app-cli": "1.0.0-alpha.
|
|
53
|
+
"@tbox.cn/app-sdk-server": "1.0.0-alpha.22",
|
|
54
|
+
"@tbox.cn/app-build": "1.0.0-alpha.22",
|
|
55
|
+
"@tbox.cn/app-cli": "1.0.0-alpha.22"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
58
|
"publishConfig": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -937,7 +937,8 @@
|
|
|
937
937
|
"area": "history",
|
|
938
938
|
"selector": ".history-entry",
|
|
939
939
|
"drivenBy": [
|
|
940
|
-
"chat store historyHasMore / isLoadingHistory"
|
|
940
|
+
"chat store historyHasMore / isLoadingHistory",
|
|
941
|
+
"常驻 home 槽或 --tbox-compact-chat(紧凑胶囊)"
|
|
941
942
|
],
|
|
942
943
|
"brandable": false
|
|
943
944
|
},
|
|
@@ -977,7 +978,8 @@
|
|
|
977
978
|
"selector": ".quick-commands",
|
|
978
979
|
"drivenBy": [
|
|
979
980
|
"HELLO_ACK chatConfig.quickCommands(缺省回落 chat.json)",
|
|
980
|
-
"chat.json quickCommands[].icon(图片或 icon:calendar)"
|
|
981
|
+
"chat.json quickCommands[].icon(图片或 icon:calendar)",
|
|
982
|
+
"常驻 home 槽或 --tbox-compact-chat(底部紧凑胶囊)"
|
|
981
983
|
],
|
|
982
984
|
"brandable": true
|
|
983
985
|
},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -139,6 +139,7 @@ function ChatPageInner() {
|
|
|
139
139
|
// 主题在应用挂载前就位,布局从首帧起固定。
|
|
140
140
|
const [compactLayout] = useState(() => typeof window !== 'undefined'
|
|
141
141
|
&& window.getComputedStyle(document.documentElement).getPropertyValue('--tbox-compact-chat').trim() === '1');
|
|
142
|
+
const compactControls = compactLayout || (homeSlot != null && homeLifecycle === 'persistent');
|
|
142
143
|
const conversationOverlay = slots?.resolve('conversationOverlay');
|
|
143
144
|
const welcome = useChatConfigStore((s) => s.welcome);
|
|
144
145
|
|
|
@@ -408,7 +409,7 @@ function ChatPageInner() {
|
|
|
408
409
|
{/* 内容容器:贴底跟随观察它的尺寸变化(流式文字 / 卡片挂载 / 图片加载) */}
|
|
409
410
|
<div className="chat-page__content" ref={contentRef}>
|
|
410
411
|
<HistoryEntry
|
|
411
|
-
compact={
|
|
412
|
+
compact={compactControls}
|
|
412
413
|
visible={showHistoryEntry}
|
|
413
414
|
loading={isLoadingHistory}
|
|
414
415
|
disabled={runtimeStatus !== 'ready' || isLoadingHistory}
|
|
@@ -508,7 +509,7 @@ function ChatPageInner() {
|
|
|
508
509
|
首页声明 hideBottomQuickCommands(home-only 缺省 true)时空态不双显——
|
|
509
510
|
首页服务卡与底部胶囊内容高度重叠是真实构建实测的体验缺陷。 */}
|
|
510
511
|
<div ref={chatBottomRef}>
|
|
511
|
-
{!blocked && !showGridCommands && !(showHome && homeHideBottomQuickCommands) && <QuickCommands variant={
|
|
512
|
+
{!blocked && !showGridCommands && !(showHome && homeHideBottomQuickCommands) && <QuickCommands variant={compactControls ? 'compact' : 'row'} hidden={voiceActive} onCommand={send} />}
|
|
512
513
|
<ChatInput
|
|
513
514
|
compact={compactLayout}
|
|
514
515
|
generating={isGenerating}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -295,7 +295,7 @@ export function ChatInput({
|
|
|
295
295
|
</div>
|
|
296
296
|
)}
|
|
297
297
|
|
|
298
|
-
{disclaimer && <div className="tbox-chat-input__disclaimer mt-[5px] text-center
|
|
298
|
+
{disclaimer && <div className="tbox-chat-input__disclaimer mt-[5px] text-center leading-[15px] text-muted-foreground" style={{ fontSize: 10 }}>{disclaimer}</div>}
|
|
299
299
|
|
|
300
300
|
<VoiceRecordingOverlay
|
|
301
301
|
visible={voice.overlayVisible}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -32,7 +32,9 @@ export default function HistoryEntry({
|
|
|
32
32
|
<button
|
|
33
33
|
type="button"
|
|
34
34
|
data-tbox-control="history"
|
|
35
|
-
|
|
35
|
+
// 紧凑胶囊的可见高度为 22px,按钮上下各保留 11px 点击区。
|
|
36
|
+
className={`history-entry__button inline-flex min-h-11 appearance-none items-center gap-[5px] rounded-full border-0 font-normal text-muted-foreground transition-colors duration-[var(--tbox-motion-duration-fast)] ease-[var(--tbox-motion-easing-standard)] [font-family:inherit] disabled:cursor-default ${compact ? 'relative isolate -my-[11px] bg-transparent px-3 leading-4 before:pointer-events-none before:absolute before:inset-x-0 before:inset-y-[11px] before:-z-10 before:rounded-full before:bg-muted active:before:bg-border' : 'bg-muted px-4 py-1 text-sm leading-[18px] active:bg-border'}`}
|
|
37
|
+
style={compact ? { fontSize: 11.5 } : undefined}
|
|
36
38
|
disabled={disabled}
|
|
37
39
|
onClick={onLoad}
|
|
38
40
|
>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -150,7 +150,7 @@ export function QuickCommands({
|
|
|
150
150
|
) : (
|
|
151
151
|
<>
|
|
152
152
|
<QuickCommandIcon icon={cmd.icon} />
|
|
153
|
-
<span className={`quick-commands__label text-sm font-medium leading-[18px] text-foreground ${grid ? 'line-clamp-2 text-left' : 'whitespace-nowrap'}`}>{cmd.label}</span>
|
|
153
|
+
<span className={`quick-commands__label text-sm font-medium leading-[18px] text-foreground ${grid ? 'line-clamp-2 text-left' : 'whitespace-nowrap'}`} style={compact ? { fontSize: 13 } : undefined}>{cmd.label}</span>
|
|
154
154
|
</>
|
|
155
155
|
)}
|
|
156
156
|
</button>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|