Commit Graph

566 Commits

Author SHA1 Message Date
k88936 6edb826324 兼容旧版本,新增字段 id 的反序列化逻辑 2026-07-13 14:29:17 +08:00
k88936 6beaab0454 更新编辑器代理消息文档版本为 2 2026-07-13 14:25:19 +08:00
k88936 f774a791e8 画布Agent关联外部生成任务
工具消息改为保存外部任务 ID 与取消事实,不再复制执行状态。

确认请求以稳定身份提交外部任务,并由前端查询任务状态和结果。

同步更新画布 Agent 测试与执行契约文档。
2026-07-13 14:24:24 +08:00
k88936 04654bf760 扩展外部生成任务结果与稳定入队
支持调用方提供任务 ID 和去重键,复用既有外部任务队列。

保存并投影编辑器生成结果,供任务消费者恢复展示。
2026-07-13 14:21:09 +08:00
k88936 4f64e945e3 preset executing status for all in tool calls 2026-07-13 11:30:57 +08:00
k88936 9d28d7f2b9 Merge branch 'master' into editor-agent-refactored
# Conflicts:
#	docs/project-memory/shared-memory/decision-log.md
2026-07-10 20:52:03 +08:00
k88936 88368cd900 prepare info display to user for review 2026-07-10 20:46:27 +08:00
k88936 c623ffed9c price compute 2026-07-10 20:25:21 +08:00
kdletters f848cbf78b 修复模型定价运行时身份边界
仅允许 HTTP 角色初始化定价,非 HTTP 角色改用队列只读鉴权
移除定价 procedure 快照中的 writer identity 并同步 bindings
后台保存复用受保护 bootstrap secret 支持缺失配置自愈
补充回归测试与架构运维文档
2026-07-10 19:50:55 +08:00
k88936 c55a90d23e centralize data key query instead of using obj key. 2026-07-10 19:06:39 +08:00
kdletters 187d7735b9 修复编辑器定价持久化与资源预览
将模型定价改为 SpacetimeDB 强类型持久化并兼容旧配置种子迁移
修复快速编辑支付弹窗期间框选显示和交互冻结
补齐后台图片放大以及视频音频资源预览
收紧主站和 External 资源换签授权并记录管理员跨用户审计
固化外部生成入队价格、attempt 钱包结算和最终 lease 失败收口
加固运行时身份轮换、bootstrap secret 与生产构建发布门禁
同步生成绑定、定向测试、运维脚本和项目文档
2026-07-10 18:28:06 +08:00
lhk229 5c9b5ef69e 动作视频/生图背景色链路升级 + 阿里云抠图接入 (#75)
主要改动
1. 阿里云通用抠图接入(新增 platform-matting crate)

手搓阿里云 VIAPI 通用抠图接口(ACS3-HMAC-SHA256 签名),跨区输入走临时桶通道。
图片抠图升级为三档降级:BgFilter → 阿里云 → 本地键色兜底。
动作视频逐帧抠图改用阿里云,remove_editor_generated_green_screen_background 降为最后兜底。
2. 背景色不再写死绿色,改多背景色自动决策

动作视频背景色和生图一样从候选调色板自动选,选项继承。
3. 视觉背景色决策(修"蓝撞蓝")

让 LLM 看参考图选背景色(gpt-4o-mini 视觉模型,路由到 VectorEngine 视觉客户端),修复原纯文本盲选。
4. 背景色候选硬过滤器(新增 editor_screen_background_filter)

按参考图前景配色算 Lab 危险质量 + 皮肤专属三判据(ΔE 距离 / 色调投影 / RGB 分离)剔除撞色候选,LLM 只在安全集合里审美选。露肤角色自动收敛到冷区。新增"灰竹绿"候选补齐安全弧绿色段。
5. 源图合成到背景色(修视频背景变白)

透明源图先填成选定实色再发给 Ark,视频背景确定性等于抠图键色,不再赌模型服从提示词。
6. screenColorHex 结构化记录 + 死代码清理

四条链路统一把实际背景色写进 generation_inputs,修复生图链路"抠图背景色"字段从未生效的旧逻辑。
清理前端抠绿 + qwenSprite 死代码,移除一次性探针示例。

Reviewed-on: https://git.genarrative.world/git/GenarrativeAI/Genarrative/pulls/75
Reviewed-by: kdletters <kdletters@qq.com>
Co-authored-by: Linghong <ink29535@proton.me>
Co-committed-by: Linghong <ink29535@proton.me>
2026-07-10 18:22:17 +08:00
k88936 532b6434bd fix context logic 2026-07-10 18:04:05 +08:00
k88936 5411965762 fix mut borrow 2026-07-10 17:50:10 +08:00
k88936 a3f7332dfe extend media display 2026-07-10 17:35:08 +08:00
k88936 0911c825d4 inject prompt 2026-07-10 17:32:47 +08:00
k88936 e652563c23 impl image gen tools 2026-07-10 17:32:43 +08:00
k88936 5444b5cb39 fix title display mistake 2026-07-10 17:16:04 +08:00
k88936 10d7f09cbf impl image gen tool 2026-07-10 16:15:38 +08:00
k88936 e1ae49f114 fix re enter problem 2026-07-10 15:56:41 +08:00
k88936 c077767e0d include attachments 2026-07-10 15:38:52 +08:00
k88936 2b7f4ffe19 fix terminate cond 2026-07-10 15:07:32 +08:00
k88936 337d358ede move context to tool own. fix memory not update. 2026-07-10 14:21:58 +08:00
k88936 19e6da8ff3 clean code 2026-07-10 11:36:04 +08:00
k88936 d7d888a20d update prompt logic in editor_agent to clarify tool call behavior and user interaction 2026-07-10 10:57:46 +08:00
k88936 2709563c60 clean data structure 2026-07-10 10:45:20 +08:00
k88936 37b4329fee remove old editor_agent.rs 2026-07-10 10:26:08 +08:00
k88936 c2b25e9ca0 confirm / cancel api 2026-07-10 10:25:42 +08:00
k88936 a2babca6a6 migrate the api usage 2026-07-10 09:10:33 +08:00
k88936 db2e8cca8d reimpl the agent 2026-07-10 08:46:58 +08:00
k88936 97d340ad4c change EditorAgentMessage.id type from String to usize 2026-07-10 08:40:51 +08:00
k88936 5499af9ac1 remove llm_chat_agent example and unused dependencies from module-editor-agent 2026-07-10 06:02:18 +08:00
k88936 73d2b07d52 refactor: simplify agent memory handling and improve message flow logic 2026-07-10 05:43:06 +08:00
kdletters 2de9b79e69 修复充值过期补偿确认竞态
调整微信充值确认终态判断,未完成补偿查单的 expired 不再提前结束。

让 SSE 客户端和前端确认流程等待补偿后的 paid 或已检查 expired。

补充 unchecked expired 到 paid 的回归测试。
2026-07-10 02:09:59 +08:00
kdletters 00ff425e03 改造充值订单过期补偿流程
新增 SpacetimeDB 原生充值订单过期 timer 与 expired 状态。

移除 api-server 轮询 worker,改为 HTTP 角色订阅 Pending 到 Expired 事件并查单补偿。

统一微信下单 5 分钟 time_expire,并恢复前端支付通道选择与 expired 展示。

补齐生成绑定、前后端契约、测试和项目文档。
2026-07-10 01:37:53 +08:00
k88936 36ac392fdc fix return value 2026-07-09 22:16:16 +08:00
k88936 476a555f22 refactor: rename flow enums and improve tool interaction logic 2026-07-09 21:55:23 +08:00
kdletters 6ddde830ef 修复钱包流水枚举追加顺序
将会员周期流水枚举追加到已发布枚举末尾

重新生成 SpacetimeDB Rust 绑定保持枚举判别序号兼容

补充 SpacetimeDB 持久化枚举追加约束文档
2026-07-09 20:12:16 +08:00
k88936 71a00056bf improve tool call logging and error messaging 2026-07-09 20:02:59 +08:00
k88936 4149d35e2d add "System" role to EditorAgentMessageRole enum 2026-07-09 19:52:14 +08:00
k88936 d3c4b3fe0c refactor: simplify memory trait requirements and remove unused tool hooks 2026-07-09 19:40:36 +08:00
k88936 c3493d5458 refactor: enhance system prompt handling and tool integration in LlmChatAgent 2026-07-09 18:24:33 +08:00
kdletters 12ba0e95f3 修复会员旧档迁移与周期权益
修正旧月季年会员迁移到新同级档位的购买判定

修正 active 升级后续周期天数切换为新商品配置

修正 mock 立即结算订单先按支付前会员状态定价

修正会员商品周期泥点文案按周期天数展示

补充会员迁移升级与前端周期文案测试
2026-07-09 18:16:34 +08:00
k88936 ae4538a59a refactor editor agent structures 2026-07-09 18:06:40 +08:00
k88936 b1851c0ab8 improve error handling for tools: add classification and handling for recoverable and fatal tool failures 2026-07-09 17:51:16 +08:00
k88936 d0a4581683 continue and retry instead of crash encounter invalid json output 2026-07-09 16:49:50 +08:00
k88936 6d13239c1c tool out put include id 2026-07-09 16:49:25 +08:00
k88936 d639f0207f agent module 2026-07-09 16:43:07 +08:00
kdletters 5f6f4d0ba6 接入会员周期泥点制度
新增 Starter、Basic、Pro、Ultimate 会员商品配置与权益字段。

拆分会员有效期、周期重置时间、周期限时泥点和永久泥点余额。

实现升级补价补点但不延长有效期或移动重置时间,同级购买只延长有效期。

补齐钱包扣费与退款中的会员周期泥点消耗、重置和流水记录。

同步后台商品配置、前端充值展示、共享契约、SpacetimeDB 迁移与生成绑定。
2026-07-09 14:48:26 +08:00
k88936 964e7e040a at least it runs 2026-07-09 11:49:28 +08:00