@sema-agent/client-core 0.59.0 → 0.59.1
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.
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/dist/hitl/parkRowBirthWait.js +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -49,6 +49,19 @@
|
|
|
49
49
|
> 挡住 ⇒ 本批把它机械化——④a0 对 `pending` 行**要求段头已是日期形**(`(未发布)` 直接红),阶段一
|
|
50
50
|
> commit 漏转在发布前就红,不再靠人记。
|
|
51
51
|
|
|
52
|
+
## 0.59.1(2026-09-06)
|
|
53
|
+
|
|
54
|
+
> 补丁批(主会话亲做):B-005 修根,零新公面、零型面变更。
|
|
55
|
+
|
|
56
|
+
### 修复 —— `parkRowBirthWait` 窗尾「注定超时」的末次 probe(B-005;test [6497] 异源复审轨)
|
|
57
|
+
|
|
58
|
+
有界重查环在窗内剩余已不足上一拍**实测时延**时仍起最后一拍,它必被内部 deadline 切成 `'deadline'` 出站——
|
|
59
|
+
那一拍一个字都没读到,而宿主(cli `askParkReopen`)每拍先把 evidence 清成 `answered:false`,于是此前成立的
|
|
60
|
+
「读面答了、零属主行」证据被最后这拍抹掉 ⇒ `pendingRowGone` 不置 ⇒ 陈旧 park 两选卡不出(异源轨 31 次探测 / 15s
|
|
61
|
+
未出现一次)。修=记录上一拍实测时延,剩余窗小于它就不再起探测,按已有证据出站(`unborn`,reason 不带
|
|
62
|
+
「did not answer」);瞬答读面(时延 0)不设闸,零窗形(`budgetMs:0`)语义不变。门 `run-park-decision-layer-test`
|
|
63
|
+
+G1⑥i/i2/i3(红先绿后)。宿主消费指引不变(§16b)。
|
|
64
|
+
|
|
52
65
|
## 0.59.0(2026-09-06)
|
|
53
66
|
|
|
54
67
|
> 内容批(2026-09-06,隔离树交付):三件 —— ①`@sema-agent/sdk` **8.3.0 提货** + 审批帧键镜像与
|
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Renamed from **`@sema-agent/wire-cc-adapter`** (0.1.x, deprecated — see *Migra
|
|
|
35
35
|
|
|
36
36
|
## Scope
|
|
37
37
|
|
|
38
|
-
**Version:** 0.59.
|
|
38
|
+
**Version:** 0.59.1
|
|
39
39
|
|
|
40
40
|
- **Today** — the adapter seam, the whole `adapt()` pipeline (all 14 A-layer arms plus the
|
|
41
41
|
B/D/E tool-card layers), the notification/caps/model families, the adapter kernel (stream driver
|
|
@@ -159,11 +159,24 @@ export async function waitForParkRowBirth(deps) {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
+
// B-005(test [6497] 异源复审轨,cli 1.0.101 定谳):上一拍读面的**实测时延**。窗尾剩余若已不够再答一次
|
|
163
|
+
// (remaining < lastProbeMs),再起一拍只会被内部 deadline 切成 'deadline' 出站——那一拍一个字都没读到,
|
|
164
|
+
// 却让宿主(每拍先清 evidence 的形,cli askParkReopen)把此前成立的「读面答了、零属主行」证据抹掉
|
|
165
|
+
// ⇒ pendingRowGone 不置 ⇒ 陈旧 park 两选卡不出。窗尾不起注定超时的探测,按已有证据出站。
|
|
166
|
+
let lastProbeMs = 0;
|
|
162
167
|
for (;;) {
|
|
163
168
|
if (aborted())
|
|
164
169
|
return { kind: 'aborted', waitedMs: now() - startedAt, probes };
|
|
170
|
+
{
|
|
171
|
+
const remainingBeforeProbe = budgetMs - (now() - startedAt);
|
|
172
|
+
if (budgetMs > 0 && probes > 0 && lastProbeMs > 0 && remainingBeforeProbe < lastProbeMs) {
|
|
173
|
+
return { kind: 'unborn', reason: lastReason, waitedMs: now() - startedAt, probes };
|
|
174
|
+
}
|
|
175
|
+
}
|
|
165
176
|
probes += 1;
|
|
177
|
+
const probeStartedAt = now();
|
|
166
178
|
const outcome = await probeWithinRemaining(probes, budgetMs - (now() - startedAt));
|
|
179
|
+
lastProbeMs = now() - probeStartedAt; // 瞬答(0)不设闸:只有真有时延的读面才可能在窗尾被切
|
|
167
180
|
// 读面挂着的时候用户按了 Esc ⇒ 当拍停(判决优先于窗尽,两者都成立时中断更准确)。
|
|
168
181
|
if (outcome === 'aborted' || aborted())
|
|
169
182
|
return { kind: 'aborted', waitedMs: now() - startedAt, probes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/client-core",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.1",
|
|
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. Renamed from @sema-agent/wire-cc-adapter (0.1.x).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|