Version Packages (next) - #93
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
mainis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmain.Releases
@rei-standard/amsg-server@2.6.0-next.33
Minor Changes
e53230e: onBeforeFire 新增
{ defer: { afterMs } }出口:现在不合适,过一会儿再来问任务到点时宿主这会儿不方便生成(比如同一段对话里正有另一轮回复在生成),
onBeforeFire返回{ defer: { afterMs } }即可把这次触发往后推。这一次不调 LLM、不推送,也不调onLLMOutput/onAfterSend;任务行只把retry_after写成现在 +afterMs并放掉租约,retry_count、last_error、next_send_at、status都不动,循环任务不推进。到点之后 cron 把它重新捞起来,从onBeforeFire再走一遍,可以继续推迟。它不是失败:抛错会占一格重试、写
last_error、按 2 / 4 / 6 分钟退避,推迟这三样都没有。afterMs必须是有限正数,最大 24 小时(导出为MAX_DEFER_AFTER_MS);不合法按AGENTIC_BAD_BEFORE_FIRE一跳终审。onFireSettled的status多一种deferred,载荷新增retryAfter(ISO 时刻,其余结局为null)。details.deferredTasks({ taskId, retryAfter }),不计入成功或失败;runTask在到点之前再调会回retry_pending。staleAfterMs的任务按过期处理;某次推迟的唤醒时刻已经越过这条线时当场按过期收场,重试链上的任务也一样。runScheduledTick/runTask)且适配器实现了claimTask时可用。请求内当场投递的instant任务、没实现claimTask的自定义适配器返回{ defer }会得到AGENTIC_DEFER_UNSUPPORTED配置错误。GET /capabilities的 features 新增before-fire-defer。