Commit Graph

909 Commits

Author SHA1 Message Date
kdletters ac3befdadf 限制创作主页精选素材来源
只从项目内画布生成资源构建陶泥儿精选

移除公开作品和账号素材库精选回退

补充精选数据边界测试和项目记忆文档
2026-06-22 23:25:38 +08:00
JenkenB 7830d201c4 Server-side billing for editor generation
Move editor generation pricing to backend: remove priceMudPoints from public request schemas and docs, require backend to compute model prices and perform pre-charge via execute_billable_asset_operation_with_cost. Update character animation and video handlers to use authenticated owner IDs and wrap generation requests in billing; remove client-side price validation. Adjust OpenAPI, project-memory docs, pricing management docs, and related tests to reflect that front-end only displays prices and must not submit priceMudPoints. Also document new user registration reward and wallet refund outbox behavior. Code and test changes applied across api-server handlers, shared contracts, and image-editor client/tests.
2026-06-22 23:11:23 +08:00
wuxiangwanzi 6caf349992 锁定画布UI设计图模型选择
固定生成UI设计图模型展示为gpt-image-2

对齐角色规范面板的只读模型展示样式

提交层兜底强制UI设计图使用gpt-image-2

补充模型锁定与旧草稿兜底测试
2026-06-22 21:51:59 +08:00
JenkenB dfd567fe2c Add Agent execution guidelines & trim AGENTS.md
Introduce a new detailed Agent handbook (docs/【协作规范】Agent工作入口与执行准则-2026-06-22.md) and refactor AGENTS.md to be an entry-only navigation page. Update documentation cross-references (docs/README.md, project-memory README, document-map, team-conventions, development-workflow, decision-log and project-overview) to point to the new file and clarify reading/order rules, submission/validation constraints, and SpacetimeDB/back-end wording. Also adjust image canvas generation placement rules in the frontend doc and apply related changes to image-editor hooks/tests (src/components/image-editor/*). Purpose: separate high-level entry rules from complex execution details to reduce startup cost for complex tasks and centralize execution practices in a single guideline document.
2026-06-22 21:44:07 +08:00
JenkenB 75e1ac93db Refactor UI asset extraction overlay and handlers
Remove explicit cancel callback and centralize dismissal: clicking the canvas now dismisses active UI extraction (handled in ImageCanvasEditorView) instead of relying on an onCancel prop. Simplify ImageCanvasStageView and ImageCanvasUiAssetExtractionOverlayView APIs by removing onCancel and related UI. Improve preview bounds and rendering: add normalization to mark bounds, clamp to source dimensions, and render crop previews using an absolutely-positioned <img> for accurate, coordinate-based previews. Update styles for toolbar active states and preview image layout, and reduce SVG stroke width. Update tests and docs to reflect new behaviors and UI wording (tool highlight, accurate crop preview, and dismissal behavior).
2026-06-22 21:37:39 +08:00
JenkenB a1677027f3 Merge branch 'codex/editor-asset-library' of https://git.genarrative.world/git/GenarrativeAI/Genarrative into codex/editor-asset-library 2026-06-22 21:27:54 +08:00
JenkenB 2007f1f9ce Update editor generation pricing defaults
Unify and lower default mud-point prices across editor generation features and update related API/schema, docs and tests. Changes set gpt-image-2 to 1K=3 / 2K=5, audio1.0 to 5, and chirp-v5 to 12, and update server default JSON, frontend models/workflows, OpenAPI schema (require aspectRatio/imageSize/priceMudPoints for UI extraction), multiple UX docs (quick-edit viewport, UI extraction panel, pricing guidance) and accompanying tests to match the new defaults and validation rules.
2026-06-22 21:10:43 +08:00
wuxiangwanzi 25421140bf 优化画布泥点入口
让画布顶部泥点余额按钮复用创作页充值和兑换码入口

抽取账户充值支付结果与确认弹窗组件供创作页和画布页共用

补充画布泥点入口回归测试和编辑器技术文档
2026-06-22 21:08:33 +08:00
wuxiangwanzi 7fe4a10d19 优化画布顶部栏布局
收窄画布顶部栏高度和按钮间距

移除未命名画布下方的画布副标题

将画布标题和重命名入口贴近返回按钮

在顶部栏右端展示当前泥点余额

补充画布顶部栏测试和技术方案说明
2026-06-22 21:04:43 +08:00
kdletters 1176c71f72 角色动作素材改为序列帧
将角色动作结果图层主类型改为 image-sequence,并持久化完整帧列表与预览视频来源

在画布中增加序列帧播放器,展示透明 PNG 帧而不是预览视频

将角色动作单素材下载和画布素材导出改为序列帧 ZIP/frames 目录

更新角色动作、导出方案和项目记忆文档,补齐相关前端测试
2026-06-22 20:49:51 +08:00
wuxiangwanzi d9cd2edf92 改造时隐藏系统提示词
改造和重绘面板只从用户可见输入快照恢复提示词。

没有用户输入快照的旧资源打开改造时保持输入框为空。

补充图片、音频、视频、规范和宣发素材改造提示词恢复测试。

更新图片画布编辑器文档中的系统提示词隐藏规则。
2026-06-22 20:13:23 +08:00
kdletters 97edb5cb1a 改为 Jenkins 上传 provision 脚本
移除 Server-Provision 的 SOURCE_GIT_REMOTE_URL 参数和目标机 Git checkout

新增 Jenkins 构建节点准备 provision 文件并上传到目标 agent 执行

同步生产运维文档和共享记忆中的 provision 执行口径
2026-06-22 19:53:26 +08:00
kdletters b03b6b0c13 引导移动端创作主页使用桌面端
移动端直达 /creation 时展示桌面端打开引导

补充移动端创作主页回归测试

同步创作主页与玩法链路文档口径
2026-06-22 19:53:26 +08:00
kdletters 7b2903496e 补齐 API 发布归档中的 Pingora TLS 同步脚本
API Build 归档加入 pingora-tls-cert-sync.mjs
API Deploy 复制并授权 Pingora TLS 证书同步脚本
生产运维门禁覆盖 TLS 同步脚本归档要求
共享记忆记录 Jenkins 归档清单漏项排障经验
2026-06-22 19:53:26 +08:00
wuxiangwanzi 6e475af269 音效元素的时长选择换成滑动条,和视频元素的形式保持一致
将音效时长弹层从独立秒数按钮改为 2-10 秒滑动条。

复用视频时长滑动条样式并移除旧音效按钮网格样式。

更新音效时长控件测试和音乐生成入口设计文档。
2026-06-22 19:20:34 +08:00
JenkenB e91a46a419 Merge branch 'codex/editor-asset-library' of https://git.genarrative.world/git/GenarrativeAI/Genarrative into codex/editor-asset-library 2026-06-22 19:18:31 +08:00
JenkenB 55469a2198 UI extraction selection + local FFmpeg dev env
Require an explicit red-box selection before extracting UI-design assets: add rectangular/ellipse/brush selection UI, render red-outline marks into a marked Data URL on the client, and update the extraction prompt to "仅提取被红色框框选的素材并整理成spritesheet". Add frontend overlay/raster models and tests to support the selection flow and adjust numerous image-editor tests and views to wire up the selection lifecycle. On the dev ops side, enhance scripts/dev to detect a local %LOCALAPPDATA%/Genarrative/ffmpeg/bin installation on Windows, prepend it to PATH and inject CHARACTER_ANIMATION_FFMPEG_PATH/FFPROBE_PATH (with tests), and export the helper. Server config now prefers GENARRATIVE_*-prefixed FFmpeg env vars and includes a Rust test to validate reading the prefixed variables. Update docs to describe the new UI extraction behavior and local FFmpeg handling.
2026-06-22 19:13:37 +08:00
kdletters 820e179be5 新增画布快捷键弹窗
添加画布右上角快捷键入口和独立弹窗

补齐 Windows 画布快捷键与选中图层命令

更新快捷键单测和画布文档
2026-06-22 17:58:00 +08:00
wuxiangwanzi 8b18a654eb 增加画布元素吸附功能
新增画布元素边缘、中心线与等距吸附计算。

接入图层与生成占位拖拽吸附,并保持多选队形同步偏移。

补充画布吸附模型和交互测试。

更新图片画布编辑器方案文档中的吸附验收口径。
2026-06-22 17:22:25 +08:00
wuxiangwanzi 139ef3b3fa 同步平台桌面界面风格
同步推荐、发现、我的等桌面一级页的左侧栏和顶部搜索栏结构。

复用创作和项目页的陶土工作台背景、导航图标和顶部按钮规格。

补充桌面推荐页结构测试和样式保护测试。

更新创作主页与项目入口改版文档的桌面 chrome 口径。

修复图片画布生成完成态标题和占位框的类型门禁。
2026-06-22 17:22:25 +08:00
JenkenB 163b2fa077 Add editor generation model pricing admin UI & API
Introduce centralized model pricing for editor generations: add EditorGenerationPricing types and admin API client methods (GET/POST), backend default config and runtime override support, and server route/handler changes to expose admin editor-generation-pricing. Add an AdminEditorGenerationPricingPage component, styles, route entry, icon, and tests, plus a test for admin routes. Update docs and decision log to describe the pricing contract and management workflow. This enables managing per-model pricing (perGeneration / perSecond, flat or tiered) from the admin panel and exposes runtime pricing to the main site.
2026-06-22 16:57:29 +08:00
kdletters c206ca7c33 固定绿幕提示词颜色
统一绿幕生成提示词使用 #00FF00 / RGB(0,255,0)

补充暗绿绿幕去背兜底并覆盖聚焦测试

同步玩法、后端与项目记忆文档口径
2026-06-22 15:11:33 +08:00
kdletters d19f8ba1da 为项目页增加返回主站入口
在项目页头部增加返回主站按钮。

将返回动作接入平台首页路由。

补充项目页返回主站测试与文档说明。
2026-06-22 15:11:33 +08:00
wuxiangwanzi 13a1044cf2 优化创作主页ui表现
收窄创作主页和项目页共用的左侧导航栏与顶部搜索栏

压缩导航按钮、搜索框、泥点入口和账号入口的内部间距

修复项目页切换后创作入口仍保留主按钮样式的问题

补充项目页导航默认态的文档与回归测试
2026-06-22 15:05:15 +08:00
JenkenB 0c78a6dc21 Merge branch 'codex/editor-asset-library' of https://git.genarrative.world/git/GenarrativeAI/Genarrative into codex/editor-asset-library 2026-06-22 13:52:43 +08:00
JenkenB c836ac604d Treat character-action generations as video & UI tweaks
Handle character-action generation results as real video assets: use backend previewVideoPath as layer src, set mediaType="video" and assetKind="character-animation", and store the first frame only as thumbnail/poster. Update docs to document the new behavior and preserve backend frame extraction/green-screen workflows. Update UI/UX: compact parameter labels (e.g. "16:9·1K"), quick-edit treats original image as an implicit last reference (hidden from the reference bar) and allows editable bottom capsules, and ensure exports preserve true media file types. Change upload toolbar icon to Upload and add tests to cover the icon and video-layer behavior; also add serialization/hydration test for video thumbnails and adjust many integration/unit tests to reflect new labels, sizes and generation semantics. Files touched include multiple docs under docs/, edited components and tests under src/components/image-editor/, and minor stylesheet updates.
2026-06-22 13:45:20 +08:00
kdletters f67d228c02 完善创作主页精选素材预览
新增精选素材分组模型,按素材包、角色、UI、音乐、美宣等分类组合展示素材

补齐素材卡片和预览弹窗中的提示词、作者与生成总成本展示

新增接近全屏的素材预览弹窗,支持底部外置缩略图导航切换

让私有图片、视频和音频预览携带 objectKey 换签读取

补充创作主页素材展示文档和聚焦测试
2026-06-22 11:00:05 +08:00
kdletters fc49ba2a61 后端写入画布生成完成态
后端在图片生成完成后直接写入画布布局和生成器状态

前端提交canvasCompletion并只应用后端项目快照刷新显示

移除项目加载时根据资源行推断生成完成态的路径

更新OpenAPI、图片画布文档和共享排障记忆
2026-06-21 22:30:03 +08:00
kdletters 9914e9f23c 修复角色动画尾帧抽帧失败
调整角色动画抽帧采样,避免采到视频尾点

补充 FFmpeg 无输出文件时的诊断字段

新增角色动画抽帧回归测试

更新角色动画抽帧文档和踩坑记录
2026-06-21 21:08:47 +08:00
kdletters 47023cd9be 调整桌面首页进入创作主页
桌面端打开根路径默认进入创作主页

移动端根路径继续保持推荐首页

补充首页初始路由测试与创作主页文档说明
2026-06-21 20:37:01 +08:00
kdletters 928aecdcb1 扩展画布生成视频参数
生成视频面板支持多比例、4到15秒时长滑杆和静音开关
生成视频清晰度增加1080p并限制Fast模型不可选
生成视频请求默认携带联网搜索标记但不在前端展示
后端校验视频比例、时长、清晰度和声音参数并映射音频生成
更新编辑器视频参数文档和项目决策记录
2026-06-21 20:16:22 +08:00
wuxiangwanzi 976561d385 项目界面无法跳转的问题修复
让 /project 复用创作主页桌面导航壳

为项目页补充保留左侧导航并切回推荐页的回归测试

同步项目入口文档约束
2026-06-21 19:39:52 +08:00
wuxiangwanzi da34d19b46 优化了创作界面结构
调整创作主页桌面端为左侧完整栏与右侧内容区的真实布局

恢复创作主页主内容滚动能力,避免隐藏下方功能

同步更新创作主页改版文档中的结构约束
2026-06-21 18:01:36 +08:00
kdletters de9eaef28f 改为行引用保存画布参考图元数据
生成输入参考图只保存 refType/refId 行引用
生成器布局快照只保存参考图行指针并在加载时恢复临时源
上传参考图优先创建项目资源行并回写 resourceId
元数据弹窗改为展示参考图行引用信息
更新图片画布技术文档和项目决策记录
2026-06-21 17:27:23 +08:00
kdletters 29d9c9ff5b 支持画布多选生成器
新增画布生成器选择 ID 模型,支持图层与生成器混合选择
补齐框选、Shift 点选、拖拽和删除对生成器占位的批量操作
修复音频控件焦点删除和手动素材标签资源持久化
更新图片画布编辑器多选语义文档
2026-06-21 15:59:34 +08:00
kdletters afe78a72f2 Merge remote-tracking branch 'origin/codex/editor-asset-library' into codex/editor-asset-library 2026-06-21 14:06:52 +08:00
kdletters eecef8c133 Merge commit 'd8dd2f18' into codex/editor-asset-library 2026-06-21 14:00:24 +08:00
kdletters d8dd2f1857 补齐外部OpenAPI编辑器素材能力
移除外部OpenAPI中的API Key管理接口暴露
补齐编辑器项目列表、最近项目、重命名和删除外部接口
补齐素材直传凭证、素材对象确认和签名读取外部接口
复用站内编辑器生成、素材库和项目资源链路并按API Key账号归属
更新外部OpenAPI、后端契约和项目共享记忆文档
2026-06-21 13:40:09 +08:00
JenkenB 4677eb60dc Merge branch 'codex/editor-asset-library' of https://git.genarrative.world/git/GenarrativeAI/Genarrative into codex/editor-asset-library 2026-06-20 00:04:22 +08:00
JenkenB 8887e4c3a7 1 2026-06-20 00:02:01 +08:00
kdletters 10dcc2b403 修复图片画布素材与宣发尺寸问题
修复画布上传素材持久化回填和项目重进资源元数据恢复

修复图片、音频、视频图层的私有资源换签与视频裸路径回退

修复宣发素材切换模型后卡片尺寸变成1024x1024的问题

修复音视频预览、媒体导出格式、音频默认提示词和前端去背边界

修复角色动作生成在编辑器路径缺少ffprobe时的已知时长兜底

补充图片画布、资源换签、宣发尺寸、媒体导出和chromaKey回归测试

更新图片画布编辑器技术文档
2026-06-19 23:16:59 +08:00
kdletters 2be7eab8a7 改用 SSH 访问 Jenkins Git 源
将生产构建和导入导出流水线的主 Git 源改为内网 SSH 地址。

统一使用 genarrative-local-gitea-ssh 凭据完成 GitSCM checkout 和脚本加深 fetch。

移除常规流水线对 genarrative-station HTTP Git 源和 HTTP 凭据的默认依赖。

同步生产运维文档和项目共享记忆。
2026-06-19 21:48:54 +08:00
kdletters f233212ed6 修复 Jenkins 内部 Git checkout 鉴权
为生产构建和导入导出流水线的 GitSCM checkout 增加 Jenkins 凭据。

保留 genarrative-station HTTP 主源,并增加本地 Gitea SSH 凭据备用源。

让 jenkins-checkout-source.sh 可复用已鉴权的浅克隆结果。

同步生产运维文档和项目共享记忆。
2026-06-19 21:38:07 +08:00
kdletters 58290f9ffa 统一 Jenkins 流水线 Git 源
将生产构建与数据库流水线的源码 checkout 切到 genarrative-station。

移除旧公网 Git fallback,主地址失败时直接失败。

同步生产运维文档和项目记忆中的流水线 Git 源口径。
2026-06-19 21:14:55 +08:00
wuxiangwanzi e13f7e99c2 调整创作主页顶部与左侧栏
更新 /creation 顶部栏和左侧功能栏的参考图规格

接入创作主页 image2 陶土风背景、图标和按钮素材

保留创作主页现有文案、搜索、登录、钱包、导航与项目创建逻辑

补充创作主页改版文档和移动端直达验证
2026-06-19 17:39:29 +08:00
kdletters 98545d74d1 修复画布底部上传入画布尺寸
底部工具栏上传图片后直接创建画布图层

上传图片在创建素材和图层前读取原始分辨率

补充上传尺寸解析与素材库集成回归测试

同步图片画布上传语义文档和共享决策记录
2026-06-19 17:36:20 +08:00
kdletters 05758775e8 角色重绘复用角色提示词限定
角色图层重绘提交为角色生成类型
补充角色重绘请求契约测试
更新图片画布重绘链路文档
2026-06-19 17:24:00 +08:00
kdletters aa67e72ec5 修复宣发素材生成器刷新恢复
恢复画布布局中的 publication 生成器快照

补齐宣发素材卡片类型、游戏信息和参考图 hydrate

增加模型、面板和编辑器加载链路回归测试

更新图片画布持久化文档和共享踩坑记录
2026-06-19 17:23:34 +08:00
kdletters 1b1caf13b8 编辑器角色形象改用通用抠图
将编辑器角色形象回填切到通用绿幕去背能力

保留内部镂空清理并补充回归测试

同步角色形象设计文档和项目决策记录
2026-06-19 17:15:53 +08:00
kdletters f615fcd770 合并 master 到图片画布素材分支
保留图片画布素材元数据迁移记录

合入 Pingora 网关与生产运维更新

解决外部生成 worker 测试夹具时间戳冲突
2026-06-19 17:01:31 +08:00