Commit Graph

1965 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 83acd0e7c1 log and doc 2026-07-10 20:47:04 +08:00
k88936 88368cd900 prepare info display to user for review 2026-07-10 20:46:27 +08:00
k88936 ffde522b1e 合并画布 Agent 工具计价实现 2026-07-10 20:27:52 +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 7077557d8c update video component to use poster attribute 2026-07-10 19:48:57 +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 79b21bc073 adjust toolLabel 2026-07-10 16:25:09 +08:00
kdletters 3462c1efe1 修复 Pingora 部署检查误报
显式传播 systemd 与 EnvironmentFile 提取失败,首错后立即终止部署检查
补充 direct-entry 与 systemctl cat 失败回归,阻止空环境连带误报
同步记录旧 release 残留 capability 的安全清理与验收口径
2026-07-10 16:20:21 +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 e5eee1dd4e impl confirm cancel flow 2026-07-10 11:51:13 +08:00
k88936 74361af6bd replace onEditorAgentGenerationResult with onEditorAgentCanvasRefreshRequested and update related logic 2026-07-10 11:42:41 +08:00
k88936 365ada84e3 remove SSE-based implementation for editor agent 2026-07-10 11:42:36 +08:00
k88936 084214e2ed provide thumbnail for audio and adjust style 2026-07-10 11:42:12 +08:00
k88936 48f165c16c Refactor: move editor agent hook 2026-07-10 11:40:20 +08:00
k88936 eeaa0f4766 Refactor: reuse existing ResolvedAssetVideo 2026-07-10 11:40:04 +08:00
k88936 5fb7ec03d1 Refactor: split EditorAgent conversation components 2026-07-10 11:39:47 +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
kdletters e464e62697 修复创作页滚动与画布生成状态同步
为创作页恢复可见滚动条并补充样式测试
普通点击画布对象时收敛多选状态,避免批量拖动
裁扩结果先资源化,并在去背完成时保留源图层
队列完成后重读未决项目快照并补充回归测试
同步图片画布持久化文档与长期排障记录
2026-07-10 08:46:17 +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