@sema-agent/client-core 0.27.0 → 0.29.0

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.
@@ -20,6 +20,19 @@ export function registerLocalQuestionResponder(id, fn) {
20
20
  localResponders.delete(id);
21
21
  };
22
22
  }
23
+ /**
24
+ * Unregister a local responder **by id**(A-028.4 复审二轮收紧,2026-08-12)。
25
+ *
26
+ * 为什么需要按 id 注销:`registerLocalQuestionResponder` 的注销钩只回到注册方手里,而重开腿
27
+ * (`planReviewWire.reopenPlanReviewCard`)要退役的是**别的注册方**(arm 臂)登记的 canonical
28
+ * responder —— 只发 `question_complete` 撤帧撤不掉表里的 responder,一个在途的迟到作答仍能经
29
+ * 它投递决断,与新卡的投递构成同一 gate 的双决断面。返回是否真删了一条(调用方留痕用)。
30
+ * 🔴 只删表项,不通知原注册方 —— 原注册方的自愈臂(如 arm 的陈旧武装态分支)按
31
+ * `hasLocalQuestionResponder` 探询真相,不依赖回调。
32
+ */
33
+ export function unregisterLocalQuestionResponder(id) {
34
+ return localResponders.delete(id);
35
+ }
23
36
  /**
24
37
  * Is a local responder for this synthetic questionId still bound?([2393] hitl-F3,2026-08-02)
25
38
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/client-core",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "description": "Client-side session runtime shared by every sema human client (TUI / web / desktop): sema wire frames (AgentEvent) -> CC session vocabulary (SDKMessage) with dual-plane output (transcript/chrome), deterministic transcript ids, lane discipline as a type, and the notification/dedup ledgers. Every CC-skin shape is collected here so the wire itself stays neutral. Blackboard [1832] design axioms; [1651]/[1652]/[1653] signed seam design. Renamed from @sema-agent/wire-cc-adapter (0.1.x).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@sema-agent/agent-types": ">=0.2.0",
31
- "@sema-agent/sdk": ">=6.14.0"
31
+ "@sema-agent/sdk": ">=6.16.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@sema-agent/agent-types": "^0.2.0",
35
35
  "@sema-agent/core": "^5.20.0",
36
- "@sema-agent/sdk": "^6.14.0",
36
+ "@sema-agent/sdk": "^6.16.0",
37
37
  "esbuild": "^0.27.4",
38
38
  "typescript": "^6.0.2"
39
39
  }