Repository navigation
feat(amsg): task inputs, attachments and state sync queue (next) - #103
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
给下一版(next 预发布)加任务输入、后台任务视图、附件和客户端同步队列,并修掉评审时发现的问题。server、client 各升一个 minor,进入
next预发布模式,合并后的 Version Packages PR 会发-next.0,不动latest。server
taskInput:和任务一起加密保存,子任务不继承父任务的输入,更新接口带这个字段会整笔拒绝,任务列表和详情里不出现它。listTasks分页查看当前用户的任务、allowedToolNames工具白名单。格式坏掉的工具调用会被修正,不会让整次触发失败。storeAttachment附件(只有 D1 支持;pg / neon 上报ATTACHMENT_STORAGE_UNSUPPORTED)。附件默认保留 30 天,宿主配置的保留期优先。task-input、client-state-key、agentic-list-tasks、agentic-tool-allowlist、attachments。client
createLatestStateSync同步队列:可持久化,冲突和拒绝交给宿主用discard处理,按条数和字节数分批。多条合批时每批约 1 MiB,免费计划的 Worker 也能在 CPU 限额内处理完;单条大值仍可单独发送。getAttachment(ref)。文档:契约并进各包 README。附件一节写明推送里要照样带要显示的文字,附件只放打开应用后才读的完整内容,保证应用被关掉时通知照常有内容。
验证
npm run ci:1,487 项全过。