@peer-agent/protocol 0.0.5-beta.2 → 0.0.5-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -339,6 +339,8 @@ export declare function projectConversation(snapshot: ConversationProjectionSnap
339
339
  * 13. runner paused → paused
340
340
  * 14. runner idle 且 plan executing → paused(异常态,提示诊断)
341
341
  * 16. plan completed(已验收)/cancelled/failed → terminal
342
+ * 已验收但交回仍在进行(delivering / idle)或失败(stopped)时
343
+ * 暂不进终态;仅有 deliveryRoute 不算正在交回。
342
344
  *
343
345
  * 注意 rule 14 在 rule 8 之前不会命中(executing 已被 rule 8 拦截),
344
346
  * 因此实现时将 rule 14 放在 rule 8 之后、仅当 runner 显式 idle 时生效。
@@ -86,6 +86,8 @@ export function projectConversation(snapshot) {
86
86
  * 13. runner paused → paused
87
87
  * 14. runner idle 且 plan executing → paused(异常态,提示诊断)
88
88
  * 16. plan completed(已验收)/cancelled/failed → terminal
89
+ * 已验收但交回仍在进行(delivering / idle)或失败(stopped)时
90
+ * 暂不进终态;仅有 deliveryRoute 不算正在交回。
89
91
  *
90
92
  * 注意 rule 14 在 rule 8 之前不会命中(executing 已被 rule 8 拦截),
91
93
  * 因此实现时将 rule 14 放在 rule 8 之后、仅当 runner 显式 idle 时生效。
@@ -210,9 +212,8 @@ function decideGoalPlan(snapshot) {
210
212
  actionLabel: '查看结果',
211
213
  };
212
214
  }
213
- if (deliveryHandoffStatus === 'delivering'
214
- || deliveryHandoffStatus === 'idle'
215
- || Boolean(snapshot.deliveryRoute)) {
215
+ // 只有真实交回进行中才占工作台。仅有 deliveryRoute 不算正在交回。
216
+ if (deliveryHandoffStatus === 'delivering' || deliveryHandoffStatus === 'idle') {
216
217
  return {
217
218
  actionRight: 'result_ready',
218
219
  nextAction: 'none',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peer-agent/protocol",
3
- "version": "0.0.5-beta.2",
3
+ "version": "0.0.5-beta.3",
4
4
  "description": "Shared host-neutral protocol contracts for Peer Agent runtimes and clients.",
5
5
  "type": "module",
6
6
  "license": "MIT",