]> acesimba.cloud Git - StationBuilder.git/commit
StationBuilder v0.3 原型:站点生成工具 UI 与真实模型 AI 聊天
authorwang.yu <wang.yu@advantech.com>
Fri, 14 Aug 2026 12:28:50 +0000 (20:28 +0800)
committerwang.yu <wang.yu@advantech.com>
Fri, 14 Aug 2026 12:37:16 +0000 (20:37 +0800)
commite8c89429d282a4a7fda72a3abed44d690469d80f
treedf121c5b2e524305bf345ae14ce9ea7d976a8a61
StationBuilder v0.3 原型:站点生成工具 UI 与真实模型 AI 聊天

- 框架:Vinext(Next.js 16 + React 19 + Vite + Cloudflare Worker 运行时),纯前端 UI 原型
- 站点生成向导:项目列表 / 基本属性 / Asset 资产 / 功能菜单 / AI 配置 / 生成确认 / 结果预览 / 领域方案库等页面
- Wordbuddy 模型选择器(侧边栏弹出式):单选、仅免费模型 Hy3 可选,其余灰显并标注 免费 / 订阅优先 / 费率
- 右下角浮动 AI 入口:点击打开 1/4 屏宽 × 70% 高对话窗口,可关闭
- AI 对话接通真实模型(CodeBuddy 能力):按所选模型流式返回,渲染为对话气泡
- 后端:Worker 路由 /api/chat 同源代理到本地 Node 旁路 ai-sidecar.mjs,由旁路调用 codebuddy CLI(-p + stream-json)产出干净文本并流式回传;模型/密钥不进前端
- 已忽略 node_modules、.wrangler、.sites-runtime、.openai 及构建产物
32 files changed:
.gitignore [new file with mode: 0644]
.npmrc [new file with mode: 0644]
README.md [new file with mode: 0644]
ai-sidecar.mjs [new file with mode: 0644]
app/api/chat/route.ts [new file with mode: 0644]
app/chatgpt-auth.ts [new file with mode: 0644]
app/globals.css [new file with mode: 0644]
app/layout.tsx [new file with mode: 0644]
app/page.tsx [new file with mode: 0644]
db/index.ts [new file with mode: 0644]
db/schema.ts [new file with mode: 0644]
drizzle.config.ts [new file with mode: 0644]
drizzle/meta/_journal.json [new file with mode: 0644]
eslint.config.mjs [new file with mode: 0644]
examples/d1/app/api/notes/route.ts [new file with mode: 0644]
examples/d1/db/schema.ts [new file with mode: 0644]
next.config.ts [new file with mode: 0644]
package-lock.json [new file with mode: 0644]
package.json [new file with mode: 0644]
postcss.config.mjs [new file with mode: 0644]
public/favicon.svg [new file with mode: 0644]
public/file.svg [new file with mode: 0644]
public/globe.svg [new file with mode: 0644]
public/window.svg [new file with mode: 0644]
scripts/build-verified.sh [new file with mode: 0755]
scripts/install-ci.sh [new file with mode: 0755]
scripts/sites-env.sh [new file with mode: 0755]
scripts/validate-artifact.sh [new file with mode: 0755]
tests/rendered-html.test.mjs [new file with mode: 0644]
tsconfig.json [new file with mode: 0644]
vite.config.ts [new file with mode: 0644]
worker/index.ts [new file with mode: 0644]