Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
cb1fd85
refactor: remove UE4/AI-man/TCP-UDP message actions and control encodes
Onweekendd Sep 17, 2026
bd1e52e
refactor(material): rebuild scroll table with structured columns/head…
Onweekendd Sep 17, 2026
5eac332
feat(types): add cross-field superRefine checks for component validation
Onweekendd Sep 17, 2026
071c08d
fix(sw): harden minio cache preload and force-cache strategy
Onweekendd Sep 17, 2026
a1ff1e6
feat(server): add in-memory job runner with tests
Onweekendd Sep 17, 2026
3a679dc
chore: rust formatter setting and diagram update
Onweekendd Sep 17, 2026
92ea0cf
feat(server): 新增生图模型角色与 GeneratedImage 表
Onweekendd Sep 18, 2026
9f26398
feat(server): 新增效果图落屏工作流 screenFromEffectImageWorkflow
Onweekendd Sep 18, 2026
147125d
chore: 统一 import 排序与格式化
Onweekendd Sep 18, 2026
a314e97
feat(build): 生图工具结果预览 + agent 编辑组件时的扫光提示
Onweekendd Sep 18, 2026
45945cd
fix(alignment-wasm): rbush 范围查询提前处理叶子节点
Onweekendd Sep 29, 2026
8cf9aa0
feat(types): swtext/swimg 升级为 v2 CSS 语义 schema,新增 swBox 与自动迁移函数
Onweekendd Sep 29, 2026
4e3af86
feat(material): swtext v2 渲染与配置面板重写
Onweekendd Sep 29, 2026
61b984c
feat(material): swimg v2 渲染重写,新增矩形 swBox 组件与配置面板
Onweekendd Sep 29, 2026
740b6f6
feat(app): 编辑器接入原子组件 v2(echartcommon 双通道、面板通用渲染适配)
Onweekendd Sep 29, 2026
362eaef
feat(server): 生图落屏工作流按原子组件 v2 改造
Onweekendd Sep 29, 2026
2c59341
docs: 新增原子组件(文字/图片/矩形/通用图表)迁移方案
Onweekendd Sep 29, 2026
a44245a
refactor(server): 存储层 SQLite → PostgreSQL/pgvector(P0 B/S 改造)
Onweekendd Oct 18, 2026
b7e3568
chore: 移除 Tauri 桌面端与 sidecar,回到 B/S 形态
Onweekendd Oct 18, 2026
12eb6cc
feat(server): 恢复登录鉴权(scrypt + JWT)
Onweekendd Oct 18, 2026
c183555
feat(app): 登录页、路由守卫与 token 贯通(B/S 登录闭环)
Onweekendd Oct 18, 2026
e81d076
feat(server): 按角色拆分 api/ai/worker 进程,生图迁入 BullMQ 队列
Onweekendd Oct 19, 2026
f5a97f2
feat(deploy): Dockerfile 与 docker compose 完整编排(P2)
Onweekendd Oct 19, 2026
782333c
fix(agent-trace): 适配后端登录鉴权,服务端用环境变量账号自动登录
Onweekendd Oct 22, 2026
94b3a7f
refactor(agent-trace): 删除空首页,会话记录作为首页(/)
Onweekendd Oct 22, 2026
dfa8b2e
feat(app): 编辑器改为无限画布,移除标尺与画布阴影
Onweekendd Oct 22, 2026
78f9171
fix(swtext): 渐变文字不再被 background 简写覆盖
Onweekendd Oct 22, 2026
1653325
fix: 大屏宽高写成数字导致 info.json 校验失败、所有组件改不动
Onweekendd Oct 22, 2026
424ce85
feat(agent): 主模型直接看图,新增画布截图、设计蓝图与批量准备素材
Onweekendd Oct 22, 2026
24b0efb
refactor: 移除 Codia 图片转大屏流程
Onweekendd Oct 22, 2026
cac4a80
feat(ai-model): 嵌入模型支持向量维度配置,模型缓存刷新改为整体替换
Onweekendd Oct 22, 2026
4f6f522
feat(image): 生图支持多张参考图 seedImages
Onweekendd Oct 22, 2026
3c78d13
feat(blueprint): 保存蓝图后生成标注图,增强蓝图校验
Onweekendd Oct 22, 2026
4e6460b
fix(chat): resume 时按 toolCallId 回执挂起调用
Onweekendd Oct 22, 2026
187a51a
fix(agent): 建组件/移动组件/改 title 的参数与 id 处理
Onweekendd Oct 22, 2026
f9fff60
refactor(prompts): 合并精简 agent 提示词,拆出 workspace-guide / component-sche…
Onweekendd Oct 22, 2026
f6afa10
feat(agentBI): 审批弹窗顶替输入框,支持仅附件发送
Onweekendd Oct 22, 2026
e9cefe0
feat(core): zIndex 改为字符串排序键,新增视口裁剪与相机存档编解码
Onweekendd Oct 23, 2026
070e152
refactor(server): agent 工作区的 zIndex 改为字符串排序键
Onweekendd Oct 23, 2026
0a94586
refactor(app): 组件 zIndex 改为字符串排序键
Onweekendd Oct 23, 2026
a5b68c0
feat(app): 画布可视窗口裁剪、对齐线限定可视范围、相机位置记忆
Onweekendd Oct 23, 2026
d548ddd
refactor(agent): 画布写操作合并为 canvas_ops 挂起协议(第 1 步:移动/成组/解组/加面板状态)
Onweekendd Oct 23, 2026
ba3de02
refactor(agent): 画布写操作合并为 canvas_ops(第 2 步:创建/复制/删除组件)
Onweekendd Oct 23, 2026
72974f2
refactor(agent): 画布写操作合并为 canvas_ops(第 3 步:改组件/过滤器/屏幕配置)
Onweekendd Oct 23, 2026
504a7ea
docs(agent): canvas_ops 合并方案标记已实施,补实施记录;清理旧挂起类型的残留注释
Onweekendd Oct 23, 2026
d8dfa28
feat(agent): 生成的图自动放进用户素材库的「AI 生成」分组
Onweekendd Oct 23, 2026
a16bf60
refactor(agent): 删除设计蓝图(save_blueprint / read_blueprint / prepare_ass…
Onweekendd Oct 23, 2026
caa84d0
fix(agent): 删除过滤器的审批框带上过滤器名
Onweekendd Oct 23, 2026
4f8a450
fix(agent): 将后台任务结果和参考图注入续接上下文
Onweekendd Oct 24, 2026
7d9141e
chore(mastra): 关闭可观测性追踪及持久化导出
Onweekendd Oct 24, 2026
5bda896
fix(core): 忽略非法层级排序键并提示 Agent 修正
Onweekendd Oct 24, 2026
4fe1405
fix(agent): 画布截图捕获视频当前帧并还原播放状态
Onweekendd Oct 24, 2026
4de0ab1
feat(chat): 支持素材库和本地图片视频上传及分页预览
Onweekendd Oct 24, 2026
55191e7
feat(agent): 支持工作区素材下载上传和素材库去重
Onweekendd Oct 24, 2026
57ce4e1
feat(media): 接入 MiniMax 视频生成并展示批量生成进度
Onweekendd Oct 24, 2026
94b2143
feat(agent): read_file 支持读取图片并传给视觉模型
Onweekendd Oct 24, 2026
12b0fde
feat(assets): 通过 Mastra MCP 搜索导入联网图片视频
Onweekendd Oct 24, 2026
067ab6b
refactor(agent): 以概念图驱动可编辑大屏并移除旧建屏工作流
Onweekendd Oct 24, 2026
8f15ccc
fix(material): 统一装饰容器输入控件并补充组件文档
Onweekendd Oct 24, 2026
a4eefce
feat(chat): 合并折叠工具思考过程并添加同步伸缩动画
Onweekendd Oct 24, 2026
d3f5b6e
docs: 整理图层拆分和素材血缘追踪方案
Onweekendd Oct 24, 2026
600c57f
refactor: remove deprecated chart components
Onweekendd Oct 24, 2026
6c7da6c
feat: capture canvas edits for agent BI
Onweekendd Oct 24, 2026
0de895d
refactor: remove map widgets and add rectangle panel background
Onweekendd Oct 24, 2026
cdf1d8e
chore: refresh generated SDK declarations
Onweekendd Oct 24, 2026
5221fed
fix: omit rectangle option background
Onweekendd Oct 24, 2026
e916aa0
fix: keep rectangle template name
Onweekendd Oct 24, 2026
4cc5b56
feat(agent-bi): group assistant messages and refresh welcome examples
Onweekendd Oct 24, 2026
01c404c
fix(mastra): resume suspended foreground tools promptly
Onweekendd Oct 24, 2026
c161cdf
refactor(server): organize mastra services by domain
Onweekendd Oct 24, 2026
5053f50
fix(server): load static worker without ts extension
Onweekendd Oct 24, 2026
4a4577c
style(material): format swImg component
Onweekendd Oct 24, 2026
1ff9c6b
feat(db): persist multimodal video generation inputs
Onweekendd Oct 25, 2026
9fbb28d
feat(video): support frame and multimodal reference inputs
Onweekendd Oct 25, 2026
cebbb33
build: support prebuilt image deployment over SSH
Onweekendd Oct 25, 2026
ac4443f
fix(ci): refresh service fixtures and remove unused job exercise
Onweekendd Oct 25, 2026
87819d3
ci: publish application images and deploy manually over SSH
Onweekendd Oct 25, 2026
86da544
build: include pnpm in server runtime and verify image tools
Onweekendd Oct 25, 2026
4da8d22
fix(ci): initialize isolated database for service integration tests
Onweekendd Oct 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 版本库与依赖
.git
**/node_modules
.pnpm-store

# 构建产物与缓存
**/dist
**/.turbo
**/.mastra
**/.next
**/.eslintcache
**/*.log
packages/alignment-wasm/target
.codex-tmp
temp
funbi-release.tar*

# 本地运行数据(含密钥 / 体积大)
.env
servers/server/.env
**/.env.local
servers/server/.data
servers/server/blob-storage
servers/server/evals/runs
servers/server/agent-workspace/screen_*
servers/server/agent-workspace/tasks
servers/server/agent-workspace/plan
servers/server/agent-workspace/echart-options
servers/server/agent-workspace/api-registry
servers/server/agent-workspace/artifact-app
servers/server/agent-workspace/.tmp*
servers/server/agent-workspace/assets

# 编辑器 / 工具
.vscode
.idea
.claude
.playwright-mcp

# 与镜像无关的大文件
images
docs
artifact.png
artifact.excalidraw
40 changes: 40 additions & 0 deletions .env.compose.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# docker compose 部署用的环境变量。复制成 .env 后修改:
# cp .env.compose.example .env

# ── 必填 ──
# 数据库口令
POSTGRES_PASSWORD=change-me
# JWT 签名密钥(api / ai 共用,必须一致)。生成:node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
JWT_SECRET=
# MinIO 管理口令(至少 8 位)
MINIO_ROOT_PASSWORD=change-me-too

# ── 站点地址 ──
# 浏览器访问站点用的地址,素材直链会用它拼接。对外用域名 / HTTPS 时改成对应地址,如 https://bi.example.com
PUBLIC_ORIGIN=http://localhost:8080
# 宿主机对外端口
HTTP_PORT=8080

# ── 初始管理员 ──
SEED_ADMIN_NAME=admin
# 留空则随机生成,并只在 migrate 容器日志里打印一次:docker compose logs migrate
SEED_ADMIN_PASSWORD=

# ── 构建 ──
# 国内网络可改用镜像:https://registry.npmmirror.com
NPM_REGISTRY=https://registry.npmjs.org

# ── 模型(可选)──
# 只是首启兜底,之后在编辑器「设置」页维护。全部留空也能启动。
# REASONING_MODEL_BASE_URL=
# REASONING_MODEL_API_KEY=
# REASONING_MODEL_ID=
# VISION_MODEL_BASE_URL=
# VISION_MODEL_API_KEY=
# VISION_MODEL_ID=
# EMBEDDING_MODEL_BASE_URL=
# EMBEDDING_MODEL_API_KEY=
# EMBEDDING_MODEL_ID=
# IMAGE_MODEL_BASE_URL=
# IMAGE_MODEL_API_KEY=
# IMAGE_MODEL_ID=
76 changes: 69 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,93 @@
name: CI

on:
push:
branches: [main]
pull_request:
workflow_dispatch:
workflow_call:

permissions:
contents: read

env:
# prisma.config.ts 的 env() 缺失即抛错,postinstall 的 prisma generate 需要
PRISMA_DATABASE_URL: file:./.data/screenwright.db
PRISMA_DATABASE_URL: postgresql://ci:ci@localhost:5432/screenwright_ci
MASTRA_DATABASE_URL: postgresql://ci:ci@localhost:5432/screenwright_ci
CI: "true"

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 30
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: ci
POSTGRES_PASSWORD: ci
POSTGRES_DB: screenwright_ci
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U ci -d screenwright_ci"
--health-interval 5s --health-timeout 3s --health-retries 20
redis:
image: redis:7-alpine
ports: ["6379:6379"]
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s --health-timeout 3s --health-retries 20
env:
TEST_REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7.0.1

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v6.1.0

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7.1.0
with:
node-version: 22
cache: pnpm

- name: Install
run: pnpm install --frozen-lockfile

- name: Validate database migrations
run: pnpm --filter @screenwright/server exec prisma migrate deploy

- name: Seed component catalog for integration tests
run: pnpm --filter @screenwright/server exec tsx scripts/seed-modules.ts

- name: Test deployment success and rollback
run: node --test docker/tests/deploy-registry.test.mjs

# turbo pipeline:test 依赖 check-types,check-types 依赖上游包 build
- name: Type check & test
run: pnpm turbo run test --output-logs=errors-only
run: pnpm turbo run test --concurrency=2 --output-logs=errors-only

images:
if: github.event_name == 'pull_request'
needs: check
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
target: [server, web]
steps:
- uses: actions/checkout@v7.0.1
- uses: docker/setup-buildx-action@v4.4.1
- name: Build ${{ matrix.target }} image
uses: docker/build-push-action@v7.4.0
with:
context: .
target: ${{ matrix.target }}
platforms: linux/amd64
push: false
load: true
tags: funbi-ci:${{ matrix.target }}
cache-from: type=gha,scope=funbi-${{ matrix.target }}
cache-to: type=gha,mode=max,scope=funbi-${{ matrix.target }}
- name: Check server runtime tools
if: matrix.target == 'server'
run: |
docker run --rm --entrypoint /bin/sh funbi-ci:server -c \
'pnpm --version && ffmpeg -version >/dev/null && ffprobe -version >/dev/null'
59 changes: 0 additions & 59 deletions .github/workflows/release-desktop.yml

This file was deleted.

107 changes: 107 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Release

on:
push:
branches: [main]
workflow_dispatch:
inputs:
deploy:
description: "检查和镜像发布成功后,更新生产服务器(仅 main)"
type: boolean
default: false

permissions:
contents: read

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
check:
uses: ./.github/workflows/ci.yml

publish:
needs: check
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
target: [server, web]
steps:
- uses: actions/checkout@v7.0.1
- id: image
name: Image coordinates
run: |
echo "namespace=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
echo "tag=sha-$GITHUB_SHA" >> "$GITHUB_OUTPUT"
- uses: docker/setup-buildx-action@v4.4.1
- uses: docker/login-action@v4.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish ${{ matrix.target }} image
uses: docker/build-push-action@v7.4.0
with:
context: .
target: ${{ matrix.target }}
platforms: linux/amd64
push: true
tags: ghcr.io/${{ steps.image.outputs.namespace }}/${{ matrix.target }}:${{ steps.image.outputs.tag }}
labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=gha,scope=funbi-${{ matrix.target }}
cache-to: type=gha,mode=max,scope=funbi-${{ matrix.target }}

deploy:
if: github.event_name == 'workflow_dispatch' && inputs.deploy && github.ref == 'refs/heads/main'
needs: publish
runs-on: ubuntu-latest
timeout-minutes: 60
environment: production
permissions:
contents: read
packages: read
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
DEPLOY_HOST_FINGERPRINT: ${{ secrets.DEPLOY_HOST_FINGERPRINT }}
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v7.0.1
- name: Configure SSH and verify server identity
shell: bash
run: |
set -euo pipefail
: "${DEPLOY_HOST:?Missing DEPLOY_HOST}"
: "${DEPLOY_USER:?Missing DEPLOY_USER}"
: "${DEPLOY_SSH_KEY:?Missing DEPLOY_SSH_KEY}"
: "${DEPLOY_HOST_FINGERPRINT:?Missing DEPLOY_HOST_FINGERPRINT}"
install -m 700 -d ~/.ssh
printf '%s\n' "$DEPLOY_SSH_KEY" | tr -d '\r' > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh-keyscan -T 10 -t ecdsa "$DEPLOY_HOST" > ~/.ssh/known_hosts
actual="$(ssh-keygen -lf ~/.ssh/known_hosts -E sha256 | awk '{print $2}')"
test "$actual" = "$DEPLOY_HOST_FINGERPRINT" || { echo 'SSH host fingerprint mismatch' >&2; exit 1; }
- name: Upload deployment files and activate release
shell: bash
run: |
set -euo pipefail
tag="sha-$GITHUB_SHA"
namespace="${GITHUB_REPOSITORY,,}"
remote="$DEPLOY_USER@$DEPLOY_HOST"
options=(-i ~/.ssh/deploy_key -o BatchMode=yes -o StrictHostKeyChecking=yes -o ServerAliveInterval=15)
ssh "${options[@]}" "$remote" "mkdir -p /root/funbi/releases/$tag"
scp "${options[@]}" docker-compose.yml docker/deploy-registry.sh docker/backup.sh "$remote:/root/funbi/releases/$tag/"
printf '%s\n' "$GHCR_TOKEN" | ssh "${options[@]}" "$remote" \
"cd /root/funbi && bash releases/$tag/deploy-registry.sh '$namespace' '$tag' '$GITHUB_ACTOR'"
- name: Remove SSH credentials
if: always()
run: rm -f ~/.ssh/deploy_key
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ apps/agentTrace/.next/
# Scratch / debugging artifacts
temp*.json
agentbi-architecture.html
funbi-release.tar*

# 个人 / 开源改造工作笔记(不进开源仓库)
开源改造TODO.md
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@
"rust-analyzer.linkedProjects": [
"apps/desktop/src-tauri/Cargo.toml",
"packages/alignment-wasm/Cargo.toml"
]
],
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
}
}
Loading
Loading