@sema-agent/sdk 41.1.1 → 43.0.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.
Files changed (176) hide show
  1. package/README.md +155 -2
  2. package/dist/bitless-surfaces.d.ts +18 -2
  3. package/dist/bitless-surfaces.d.ts.map +1 -1
  4. package/dist/bitless-surfaces.js +27 -5
  5. package/dist/bitless-surfaces.js.map +1 -1
  6. package/dist/client.d.ts +14 -11
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +5 -5
  9. package/dist/client.js.map +1 -1
  10. package/dist/errors.d.ts +61 -10
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +68 -19
  13. package/dist/errors.js.map +1 -1
  14. package/dist/events.d.ts +230 -18
  15. package/dist/events.d.ts.map +1 -1
  16. package/dist/events.js +6 -0
  17. package/dist/events.js.map +1 -1
  18. package/dist/health.d.ts +9 -2
  19. package/dist/health.d.ts.map +1 -1
  20. package/dist/health.js +15 -3
  21. package/dist/health.js.map +1 -1
  22. package/dist/index.d.ts +11 -5
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +4 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/model-route-env/index.d.ts +2 -2
  27. package/dist/model-route-env/index.js +1 -1
  28. package/dist/model-route-env/index.js.map +1 -1
  29. package/dist/registry-conflict.d.ts +23 -2
  30. package/dist/registry-conflict.d.ts.map +1 -1
  31. package/dist/registry-conflict.js +37 -6
  32. package/dist/registry-conflict.js.map +1 -1
  33. package/dist/resources/adoption.d.ts +2 -4
  34. package/dist/resources/adoption.d.ts.map +1 -1
  35. package/dist/resources/adoption.js +30 -1
  36. package/dist/resources/adoption.js.map +1 -1
  37. package/dist/resources/approvals.d.ts +24 -11
  38. package/dist/resources/approvals.d.ts.map +1 -1
  39. package/dist/resources/approvals.js +19 -4
  40. package/dist/resources/approvals.js.map +1 -1
  41. package/dist/resources/assistant.d.ts +3 -5
  42. package/dist/resources/assistant.d.ts.map +1 -1
  43. package/dist/resources/assistant.js +23 -2
  44. package/dist/resources/assistant.js.map +1 -1
  45. package/dist/resources/attachments.d.ts +2 -4
  46. package/dist/resources/attachments.d.ts.map +1 -1
  47. package/dist/resources/attachments.js +27 -1
  48. package/dist/resources/attachments.js.map +1 -1
  49. package/dist/resources/control/auth-providers.d.ts +2 -4
  50. package/dist/resources/control/auth-providers.d.ts.map +1 -1
  51. package/dist/resources/control/auth-providers.js +13 -1
  52. package/dist/resources/control/auth-providers.js.map +1 -1
  53. package/dist/resources/control/config.d.ts +5 -12
  54. package/dist/resources/control/config.d.ts.map +1 -1
  55. package/dist/resources/control/config.js +13 -4
  56. package/dist/resources/control/config.js.map +1 -1
  57. package/dist/resources/control/fleet.d.ts +6 -16
  58. package/dist/resources/control/fleet.d.ts.map +1 -1
  59. package/dist/resources/control/fleet.js +13 -5
  60. package/dist/resources/control/fleet.js.map +1 -1
  61. package/dist/resources/control/images.d.ts +4 -10
  62. package/dist/resources/control/images.d.ts.map +1 -1
  63. package/dist/resources/control/images.js +14 -3
  64. package/dist/resources/control/images.js.map +1 -1
  65. package/dist/resources/control/publish.d.ts +2 -4
  66. package/dist/resources/control/publish.d.ts.map +1 -1
  67. package/dist/resources/control/publish.js +8 -1
  68. package/dist/resources/control/publish.js.map +1 -1
  69. package/dist/resources/control/secrets.d.ts +3 -6
  70. package/dist/resources/control/secrets.d.ts.map +1 -1
  71. package/dist/resources/control/secrets.js +16 -2
  72. package/dist/resources/control/secrets.js.map +1 -1
  73. package/dist/resources/control/users.d.ts +2 -4
  74. package/dist/resources/control/users.d.ts.map +1 -1
  75. package/dist/resources/control/users.js +12 -1
  76. package/dist/resources/control/users.js.map +1 -1
  77. package/dist/resources/control/versioning.d.ts +3 -6
  78. package/dist/resources/control/versioning.d.ts.map +1 -1
  79. package/dist/resources/control/versioning.js +10 -2
  80. package/dist/resources/control/versioning.js.map +1 -1
  81. package/dist/resources/control/workers.d.ts +2 -4
  82. package/dist/resources/control/workers.d.ts.map +1 -1
  83. package/dist/resources/control/workers.js +9 -1
  84. package/dist/resources/control/workers.js.map +1 -1
  85. package/dist/resources/devices.d.ts +2 -4
  86. package/dist/resources/devices.d.ts.map +1 -1
  87. package/dist/resources/devices.js +59 -1
  88. package/dist/resources/devices.js.map +1 -1
  89. package/dist/resources/fleet.d.ts +5 -4
  90. package/dist/resources/fleet.d.ts.map +1 -1
  91. package/dist/resources/fleet.js +2 -1
  92. package/dist/resources/fleet.js.map +1 -1
  93. package/dist/resources/images.d.ts +5 -12
  94. package/dist/resources/images.d.ts.map +1 -1
  95. package/dist/resources/images.js +13 -4
  96. package/dist/resources/images.js.map +1 -1
  97. package/dist/resources/leader.d.ts +3 -7
  98. package/dist/resources/leader.d.ts.map +1 -1
  99. package/dist/resources/leader.js +9 -2
  100. package/dist/resources/leader.js.map +1 -1
  101. package/dist/resources/memory.d.ts +3 -7
  102. package/dist/resources/memory.d.ts.map +1 -1
  103. package/dist/resources/memory.js +32 -4
  104. package/dist/resources/memory.js.map +1 -1
  105. package/dist/resources/models.d.ts +4 -5
  106. package/dist/resources/models.d.ts.map +1 -1
  107. package/dist/resources/models.js +13 -2
  108. package/dist/resources/models.js.map +1 -1
  109. package/dist/resources/ops.d.ts +8 -20
  110. package/dist/resources/ops.d.ts.map +1 -1
  111. package/dist/resources/ops.js +16 -7
  112. package/dist/resources/ops.js.map +1 -1
  113. package/dist/resources/policy.d.ts +2 -4
  114. package/dist/resources/policy.d.ts.map +1 -1
  115. package/dist/resources/policy.js +9 -1
  116. package/dist/resources/policy.js.map +1 -1
  117. package/dist/resources/projects.d.ts +3 -6
  118. package/dist/resources/projects.d.ts.map +1 -1
  119. package/dist/resources/projects.js +8 -2
  120. package/dist/resources/projects.js.map +1 -1
  121. package/dist/resources/rules.d.ts +2 -4
  122. package/dist/resources/rules.d.ts.map +1 -1
  123. package/dist/resources/rules.js +67 -1
  124. package/dist/resources/rules.js.map +1 -1
  125. package/dist/resources/runs.d.ts +9 -12
  126. package/dist/resources/runs.d.ts.map +1 -1
  127. package/dist/resources/runs.js +12 -7
  128. package/dist/resources/runs.js.map +1 -1
  129. package/dist/resources/session-sync.d.ts +6 -11
  130. package/dist/resources/session-sync.d.ts.map +1 -1
  131. package/dist/resources/session-sync.js +45 -4
  132. package/dist/resources/session-sync.js.map +1 -1
  133. package/dist/resources/sessions.d.ts +42 -39
  134. package/dist/resources/sessions.d.ts.map +1 -1
  135. package/dist/resources/sessions.js +47 -15
  136. package/dist/resources/sessions.js.map +1 -1
  137. package/dist/resources/tasks.d.ts +5 -2
  138. package/dist/resources/tasks.d.ts.map +1 -1
  139. package/dist/resources/tasks.js +5 -2
  140. package/dist/resources/tasks.js.map +1 -1
  141. package/dist/resources/tool-approvals.d.ts +25 -17
  142. package/dist/resources/tool-approvals.d.ts.map +1 -1
  143. package/dist/resources/tool-approvals.js +22 -1
  144. package/dist/resources/tool-approvals.js.map +1 -1
  145. package/dist/resources/trace.d.ts +6 -12
  146. package/dist/resources/trace.d.ts.map +1 -1
  147. package/dist/resources/trace.js +9 -5
  148. package/dist/resources/trace.js.map +1 -1
  149. package/dist/resources/usage.d.ts +9 -12
  150. package/dist/resources/usage.d.ts.map +1 -1
  151. package/dist/resources/usage.js +13 -4
  152. package/dist/resources/usage.js.map +1 -1
  153. package/dist/resources/workflows.d.ts +7 -10
  154. package/dist/resources/workflows.d.ts.map +1 -1
  155. package/dist/resources/workflows.js +13 -3
  156. package/dist/resources/workflows.js.map +1 -1
  157. package/dist/settings.d.ts +8 -0
  158. package/dist/settings.d.ts.map +1 -1
  159. package/dist/sse.d.ts +2 -0
  160. package/dist/sse.d.ts.map +1 -1
  161. package/dist/sse.js +2 -1
  162. package/dist/sse.js.map +1 -1
  163. package/dist/sync.d.ts +16 -27
  164. package/dist/sync.d.ts.map +1 -1
  165. package/dist/sync.js +40 -44
  166. package/dist/sync.js.map +1 -1
  167. package/dist/transport.d.ts +34 -2
  168. package/dist/transport.d.ts.map +1 -1
  169. package/dist/transport.js +26 -9
  170. package/dist/transport.js.map +1 -1
  171. package/dist/types.d.ts +415 -37
  172. package/dist/types.d.ts.map +1 -1
  173. package/dist/types.js +37 -1
  174. package/dist/types.js.map +1 -1
  175. package/openapi.yaml +770 -69
  176. package/package.json +1 -1
package/README.md CHANGED
@@ -107,18 +107,28 @@ for await (const ev of client.runs.events(task.taskId)) {
107
107
  (`"none"` means a resend is a second real delete), and do not put an automatic retry policy on it.
108
108
  - `client.workflows`, `client.fleet`, `client.models`, `client.usage`, `client.trace`, … — see the typed exports in `dist/index.d.ts` and the bundled `openapi.yaml`.
109
109
 
110
+ ### Moving a session between peers — `pushSessionBundle` / `importSessionBundle`
111
+
112
+ Both orchestration verbs move the entry log, the file-history envelope and the session row's two writable bits (`title` / `pinned`, read from `manifest.title` / `manifest.pinned`, server >= 7.125.0). The two bits ride the **import body** of Phase A: present keys only, as written (`title: null` and `pinned: false` are sent as they are), in the very same Phase A body an ordinary push sends (the real `policy` / `anchors`, the file-history envelope, `logDigest` when given). A manifest without the keys — a delegated-transcript session is not a list row, or the source is a server <= 7.124.x — sends none and costs no request. There is **no closing `PATCH`**: the import body is the one write door for the two bits, and it is the only door on a read-only mirror (a server >= 7.139.0 refuses `PATCH` on a mirror row, and the import replays the bits through the writer that is the mirror name's only writer).
113
+
114
+ A plan that says `identical` is skipped locally — no Phase A — only when the entry sets are equal **and** the two bits are equal: the verb reads the destination's manifest (server >= 7.125.0 carries `title` / `pinned` there too) and compares every key the source manifest carries. Equal means there is nothing to do, so a steady-state sync does no write and never meets a writer destination's refusal. A difference sends the very same Phase A body (a rename with an unchanged entry set is not a second path, only the path that must not be skipped), and an answer other than `identical` there is simply followed into Phase B. A destination manifest that carries neither key (a server below 7.125.0, or a delegated-transcript session) can be neither compared nor written, so the plan is skipped locally. With neither key on the source, the destination's manifest is not read at all. A failed read of the destination's manifest throws; it is never read as "nothing to do".
115
+
116
+ The result has no field for the bits: read `manifest.title` / `manifest.pinned` of the result's `manifest` for what was sent. A destination below 7.125.0 (inside the supported floor 7.52.0) ignores the two keys as unknown keys and its answer does not echo them, so the SDK cannot tell whether they landed; the table below has a row for exactly this, `session_import_row_bits`, and the reader `serverHasBitlessSurface` answers it from the destination's version: `serverHasBitlessSurface(destinationVersion, "session_import_row_bits")`. A title the destination's reader refuses (leading or trailing whitespace, over 120 characters, control characters) answers `400 request.field_invalid` on Phase A, judged before any staging opens: nothing is imported and the call throws. A rename onto a destination that is the session's writer is refused like every import into a writer (`409 conflict.session_writer`); read `sessions.executionPlacement` first where that can happen. Any import, a rename included, also marks a destination whose execution placement is `absent` (for example a forked session with no run row) as a read-only `mirror`.
117
+
110
118
  ### Server surfaces without a capability bit — `BITLESS_SURFACES`
111
119
 
112
120
  A frozen table of the few shipped server doors and behaviours that carry **no capability bit**, each with the first server version that has it, plus one reader: `serverHasBitlessSurface(serverVersion, id)` answers `true` (the version is at or above the row's `since`), `false` (below it) or `"unknown"` (the version is `null` / `undefined` or not a bare `x.y.z[-pre]` string; a leading `v` is not accepted, and an anonymous `GET /health` on a server that narrows anonymous reads carries no `version` at all). It uses the package's one semver comparison, so a pre-release orders below its release. An `id` that is not in the table throws a `RangeError`.
113
121
 
114
- Read a **capability bit first** (`GET /v1/capabilities`, the `Capabilities` type): a bit is the server speaking for itself, and it stays right on a deployment that differs from its version's default. Read this table only for a surface it lists; it exists so that nobody hand-copies those version numbers. The table is **frozen and only shrinks**: a row is deleted when its surface gains a capability bit (a deleted `id` is a compile error for whoever still names it), and a new surface is expected to ship with its own bit rather than get a row. A row is `{ id, since, kind, what }`; `kind` is `retirable` (a bit will exist, or a successor door that carries one replaces the surface, and the row goes then) or `version_only` (a start-up behaviour: a server that refuses to start is not online to answer a capability query, so the version is the only possible reading and the row never retires).
122
+ Read a **capability bit first** (`GET /v1/capabilities`, the `Capabilities` type): a bit is the server speaking for itself, and it stays right on a deployment that differs from its version's default. Read this table only for a surface it lists; it exists so that nobody hand-copies those version numbers. The table is **frozen and only shrinks**: a row is deleted when its surface gains a capability bit (a deleted `id` is a compile error for whoever still names it), and a new surface is expected to ship with its own bit rather than get a row — except a fact that no server-level bit can speak for, which is a `version_only` row (`run_ledger_message_committed` below). A row is `{ id, since, kind, what }`; `kind` is `retirable` (a bit will exist, or a successor door that carries one replaces the surface, and the row goes then) or `version_only` (a start-up behaviour or a fact about stored data: a server that refuses to start is not online to answer a capability query, and a bit speaks for the running server, not for what an older ledger holds, so the version is the only possible reading and the row never retires).
115
123
 
116
124
  | `id` | `since` | `kind` | What starts there |
117
125
  |---|---|---|---|
118
126
  | `approval_ask_pair` | 7.152.0 | `retirable` | The read door `GET /v1/tasks/:taskId/asks/:askId` and the decision body keys `remember` / `persistRule` / `readRootGrant` on `POST /v1/tasks/:taskId/asks/:askId/decision`; the old live pair (`POST /v1/tool-approvals/:id/respond`, `GET /v1/tool-approvals/:id`) is gone from the same version. |
127
+ | `session_import_row_bits` | 7.125.0 | `retirable` | The session-sync import door (`POST /v1/sessions/:id/sync/import`, Phase A) accepts the body keys `title` and `pinned` and replays them onto the session row after the log has landed (on the `identical` arm and after the Phase B commit), a read-only mirror included; a server below 7.125.0 ignores both keys as unknown keys and its answer does not echo them. |
119
128
  | `anthropic_lane_refusal` | 7.148.0 | `version_only` | A server with `MODEL_PROVIDER=anthropic` and no Anthropic route mounted (`ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN` both unset) refuses to start when the env model table is the one served, even if an OpenAI-compatible gateway is configured (gap word `lane_credential_missing`, code `config.model_route_endpoint_missing`). |
129
+ | `run_ledger_message_committed` | 7.154.0 | `version_only` | The run event ledger (`GET /v1/runs/:id/events`) carries the `message_committed` frame, the same projection in the same order as the live stream; a ledger written by an earlier server has none and replays as written, so whether a given message has a commit frame is judged per message, never per run. |
120
130
 
121
- What the two rows mean for a consumer. **`approval_ask_pair`**: below 7.152.0 there is no `readAsk` door and `decideAsk` refuses a body that carries `remember`, `persistRule` or `readRootGrant` (400 `request.body_shape`), so call `readAsk` and send those keys only when the row reads `true` (for `readRootGrant` also check `Capabilities.approvalReadRootGrant`); since 41.0.0 the SDK has no verb for the old live pair, which on a server below 7.152.0 is reachable only through your own HTTP. **`anthropic_lane_refusal`** is for whoever *starts* a server (a launcher, an installer, an operator tool): from 7.148.0 start such a deployment only with one of the two Anthropic keys set, or with a gateway-lane provider word; nothing can be read from the refusing server itself, because it never comes online.
131
+ What the rows mean for a consumer. **`approval_ask_pair`**: below 7.152.0 there is no `readAsk` door and `decideAsk` refuses a body that carries `remember`, `persistRule` or `readRootGrant` (400 `request.body_shape`), so call `readAsk` and send those keys only when the row reads `true` (for `readRootGrant` also check `Capabilities.approvalReadRootGrant`); since 41.0.0 the SDK has no verb for the old live pair, which on a server below 7.152.0 is reachable only through your own HTTP. **`anthropic_lane_refusal`** is for whoever *starts* a server (a launcher, an installer, an operator tool): from 7.148.0 start such a deployment only with one of the two Anthropic keys set, or with a gateway-lane provider word; nothing can be read from the refusing server itself, because it never comes online. **`session_import_row_bits`** is for whoever pushes sessions: a destination below 7.125.0 takes the log but not the session row's name or pin, and the push verbs send the keys anyway and cannot tell, so call `serverHasBitlessSurface(destinationVersion, "session_import_row_bits")` when you must know (`"unknown"` when the destination's `GET /health` carries no `version`). **`run_ledger_message_committed`** is for whoever replays a run's ledger (a reconnect, a resumed leg, a reader of `GET /v1/runs/:id/events`): from 7.154.0 the server writes `message_committed` into it, so whether a ledger holds the frame depends on which server version wrote it (a ledger written by an earlier version has none, and the replaying server's own version does not change that), so decide per message (the read rule is under "43.0.0 — BREAKING changes" → "读法订正"), not from this row alone.
122
132
 
123
133
  ### `@sema-agent/sdk/model-route-env` — the model-route environment transit
124
134
 
@@ -161,6 +171,149 @@ The registry's 409 carries two opposite meanings, split by one reader (`classify
161
171
  `ScopeGoneError` on the registry subpath — the target scope was deleted or re-created under the same name, nothing was
162
172
  written, **never** retry it as a conflict).
163
173
 
174
+ ## 43.0.0 — BREAKING changes(锁步 server **7.154.0**:对表该版 **registry 发布字节**〔dist.shasum `9dc21a309f2d4b0f4cf7e67a43b4e45f0973c54b`、gitHead `8e7211dbbca4324edd3fd501febcb49ac15573be`、7,233,559 字节;随装 core 7.68.2 / 契约包 settings-schema 28.0.0;`wire-changes/server@7.154.0.json` added 59 / removed 1 / changed 18 / narrowed 23 / excluded 1 / `breaking: 24`〕;`CALIBRATED_SERVER_HEAD` = 7.154.0;根 devDep `@sema-agent/server` 仍精确钉 7.148.0)—— 唯一 server 支持底线 **`7.52.0`**(不抬)
175
+
176
+ **判 major 的依据**(按 semver 字面逐条写;`docs/RELEASE.md` 的 major 判据:删 / 改名导出符号或字段、导出函数在原先可答的输入上改答、输出型放宽):
177
+
178
+ 1. **删公开型成员**:`AgentEvent` 里 `task_notification` 臂的 `injected?: boolean` 删除(server 不再铸这只键)—— 读它的消费方的写法编不过 / 读到的值恒 `undefined`,**不兼容的改动**。
179
+ 2. **导出函数在原先可答的输入上改答**:`resendIsMeaningless({ status: 503, errorCode: "rewind.restore_failed" })` 原先(体缺席 / `permanence: "transient"`)答 `false`,现在恒答 `true`(`NON_RETRYABLE_CODES` 多一员);同一个码在 `tasks.submit` 的自动幂等键重试臂上由「重试」变「一发即止」。
180
+ 3. **导出函数在原先可答的输入上改答**:`readModelRouteEnv({ MODEL_API_KEY: "" }).gatewayApiKey` 原先是 `""`,现在是 `undefined`(空串读作未设,与 server 7.154.0 同读);按 `=== ""` 判「无钥部署」的写法读不到了。
181
+ 4. **输出型放宽**:`ENGINE_CAPABILITY_WORDS` / `EngineCapabilityWord` 由四词变六词(多 `task.wake` · `file_history.recorded_place`)· `TOOL_END_REDACTED_KEYS` / `ToolEndRedactedKey` 由四词变五词(多 `structuredSkeleton`)· `SUSPEND_LANE_REASONS` / `SuspendLaneReason` 由五词变六词(多 `leg_not_resumable`:这条腿所在的车道不持有停驻)· `AgentEvent` 联合多 run 流 `hook_notice` 臂 · `BitlessSurfaceId` / `BITLESS_SURFACES` 由三行变四行(多 `run_ledger_message_committed`)—— 按旧集合写的穷举 `Record` / `switch` 编不过。
182
+ 其余全是加性面与文字订正(各自单看是 minor)。**不抬 server 支持底线**:新口 / 新键在老 server 上是路由 404 / 位缺席,按「先读位再带键」用。
183
+
184
+ ### 迁移表(BREAKING)
185
+
186
+ | # | 面 | 之前 | 现在 | 迁移句 |
187
+ |---|---|---|---|---|
188
+ | 1 | `task_notification` 帧的 `injected` | 型成员 `injected?: boolean`(恒 `false`,从不携带信息) | **删**,零别名;server 任何一条腿都不再铸它(7.154.0 之前写下的账本行回放仍带 `injected: false`:旧字节、不是型成员) | 删掉对它的读;「这条通知进模型没有」读 `message_committed` 的 `origin: "queued_note"` + `noteKey`(见「加」) |
189
+ | 2 | `resendIsMeaningless` / `NON_RETRYABLE_CODES` 与 `rewind.restore_failed`(`503`) | 同步提交腿 / 回退口的 `503` 按状态或 `permanence` 判是否重发 | 码在 `NON_RETRYABLE_CODES` 里 ⇒ **不看 `permanence`**,一律「重发无意义」(同步 `503` 不占提交幂等键:自动重发 = 把还原再跑一遍,文件可能已部分改写);server 7.154.0 的这只 `503` 体根 `permanence` 只在文件历史店判了故障时才带,**可能不带**,带了本包也不据它重试 | 读失败句里的台账摘要后由调用方决定是否再来一遍;别靠 `permanence: "transient"` 放行 |
190
+ | 3 | `readModelRouteEnv` 的 `gatewayApiKey` | `MODEL_API_KEY=""` ⇒ `""`(原样保留空串) | 空串 ⇒ `undefined`(与 `MODEL_GATEWAY_BASEURL` 同一只 `declaredValue`);只含空白的值照旧原样交出 | 判「这把钥设了没有」读 `laneAndEndpointFor(...).apiKeyEnvName`(空白也算没有),别判 `=== ""` |
191
+ | 4 | 输出型放宽:`ENGINE_CAPABILITY_WORDS` / `EngineCapabilityWord` · `TOOL_END_REDACTED_KEYS` / `ToolEndRedactedKey` · `SUSPEND_LANE_REASONS` / `SuspendLaneReason` · `AgentEvent` 联合 · `BITLESS_SURFACES` / `BitlessSurfaceId` | 四词 · 四词 · 五词 · 无 `hook_notice` 臂 · 三行 | 六词:多 `task.wake` · `file_history.recorded_place`(按整串取:`caps["task.wake"]`)· 五词:多 `structuredSkeleton` · 六词:多 `leg_not_resumable`(`wiring_manifest.suspendLane.reasons`)· 联合多 run 流 `hook_notice` 臂(见「加」)· 四行:多 `run_ledger_message_committed`(`version_only`,since 7.154.0) | 穷举它们的 `Record<…>` / `switch` 补臂 |
192
+ | 5 | 同步 `POST /v1/tasks` 腿上引擎在开跑前拒的请求(**无编译信号**) | `rewind.invalid_spec` · `rewind.conflicting_targets` · `prompt.snapshot_unavailable` · `workspace.checkout_unavailable` · 受理门之后才见窗满的 `usage.window_exhausted` · `conflict.fork_in_progress` / `conflict.session_deleting`:`200` + 终态 `failed` | **按码答**:`422`(前两码)· `503`(`prompt.snapshot_unavailable` / `workspace.checkout_unavailable` / `rewind.restore_failed`,不带等待提示)· `429` + `retryAfterSec` / `Retry-After`(窗满)· `409`(两只会话冲突码);体 `{ error, errorCode }`,三条腿都不占提交幂等键;流式 / 异步腿状态与码不变,带幂等键的同键重发由「回放」变「重跑」 | 按状态 + `errorCode` 判失败;整次提交零工作才答错误体,带 `verify` / `cascade` 且前几级跑过的同码终局仍是 `200` + failed(`terminal.code`) |
193
+ | 6 | 提交体同带 `resumeAt` 与 `rewindFilesTo` / `rewindFilesTo` 与 `verify: true`(**无编译信号**) | 静默只做 `resumeAt`(丢后者)/ `200` | 引擎在开跑前拒 `rewind.conflicting_targets`(同步腿 `422`)/ 受理时 `400 request.field_conflict`(`reason: "cascade_verify"`) | 两键别同给;`rewindFilesTo` 与 `verify` 不同给 |
194
+ | 7 | 持久层(店)故障的 HTTP 错误体(**无编译信号**) | `500 internal.error` | `500 internal.store_error`(状态不变;体根多 `permanence`:连接类 `transient` · 缺表 / 权限拒类 `terminal` · 其余缺席);`internal.` 前缀 ⇒ 仍落 `InternalServerError` | 按 `internal.error` 精确匹配认店故障的分支并上 `internal.store_error`;本包重试臂照旧只读 `permanence`(`terminal` 不重试,其余按状态)—— 部署错配类此前被重试、此后不重试;调用方自己的重试环读 `err.extra.permanence`(`transient` 可重试、`terminal` 不重试),该码**不在** `NON_RETRYABLE_CODES` 里(按体上的 `permanence` 判,不按码) |
195
+ | 8 | 会话行读不出(**无编译信号**) | 通用 `500 internal.error` / 续跑族 `503 state.resume_context_unreadable` | `500 corrupt_session`(与存档读不出同一个词;确定性,本包不重试);`PATCH /v1/sessions/:id` 在文件后端「存档读不出而会话行读得出」上 `500` → `200` | 按 `corrupt_session` 分支;改名 / 置顶不再为读不出的存档拒 |
196
+ | 9 | 多租部署上无属主的会话行(**无编译信号**) | 别的主体拿到 id 可读写 | 对任何带主体的非运维调用方关闭:读 / 写口答与「没有这只会话」同体的 `404`(策略两口 `409 conflict.session_ownerless` → `404`) | 工作流成员的会话改读 `GET /v1/workflows/:id`;取消 / steer 只落在这条 run 属主的卡上 |
197
+ | 10 | 遮蔽记号(**无编译信号**) | 方括号形 `[redacted]` / `[redacted-url]` / `[redacted-path]` / `[redacted-credentials]` 与几枚表外占位 | 一张表(引擎 `REDACTION_MARKS`):裸 `«redacted»` · `«redacted:<种类>»` · `«redacted:<种类>:partial»`;拒句 `[redacted] (N characters)` → `«redacted» (N characters)` | 按字面匹配旧记号的壳 / 钉按版本分支(≥7.154.0 新记号);按码与点名的键路径读,别匹配句子 |
198
+ | 11 | 其余状态换答(**无编译信号**) | 流内问的持有者被判死后仍待决 ⇒ 可答;工作流停驻卡点错输入摘要的决定 ⇒ `200`;`GET /v1/capabilities/scenarios/:name` 原型链上的名字(`constructor` 等)⇒ 不按「目录自有」判 | 同拍作废 `410 gone.ask`(读口 `200` + `state: void`);当场 `409 approval_binding_mismatch`;`404 scenario_not_found` | 按状态 + 码分支;逐条的体形见 server 7.154.0 迁移说明 |
199
+
200
+ ### 加(additive;老 server 缺席合法)
201
+
202
+ - **回退口两只型**:`SessionRewindFilesDiffStats.files` / `SessionRewindLedger.files`(逐只文件行 `SessionRewindFileRow`:`path` · `targetPath` · `action?: "write" | "delete"` · `refused?: { class, reason, recordedUnder? }` · `failed?: { reason }`)· 台账拒行多 `recordedUnder` / `action` · 拒因类多 `recorded_elsewhere` / `place_unrecorded`。预览体只有 `filesChanged` / `insertions` / `deletions` / `files` 四键,被拒的文件只以 `files` 里的拒行出现;判为相同的不进 `files`;`files` 缺席 = 老 server,不是「没有文件被拒」。
203
+ - **能力位**:引擎词 `task.wake`(带点的顶层键,按整串取;与旧 `wake` 位同读一只事实,旧位在 server 下一版起退役 —— 型上标 `@deprecated`)· `file_history.recorded_place`(本版恒 `false`:回退时写明「没有记下目录的版本录在哪」的入参本版不受理;逐只拒不看这一位)· 顶层 `checkpointIdMissing` · `taskSettings.runStreamHookFrames`;`sessionRewindFilesPreview` 与 `sessionRewindFiles` 读同一只事实(≤7.153.x 是「上一位 ∧ 店有 `diffStats`」)。
204
+ - **结果成员**:`TaskResult.resultDisplayedBy`(改写过答案显示窗的扩展注册名;`result` 此时是流上显示出来的文本)· `intake`(两臂:`{ committed: true, sessionId, entryId }` / `{ committed: false }`,缺席 = 不知道)· `turnAbortedBy` · `placementRoot` · `limitCrossed`(`axis` 闭三词 `budget_tokens` / `budget_cost` / `walltime`)· `refusedAsks`(`RefusedAsk[]`)· `degraded.skipped` / `outcome` / `answeredBy` · `PausedCause.planContentHash`。每只成员在发布字节的 `dist/observability/run-terminal.js` 结果文本叶表里有投影点(`test/server-7154-surface.test.ts` D5)。
205
+ 另:**`TaskResult.effectiveReasoning`**(型 `ResolvedReasoning`:`requested` · `effective` · `graded` · `clamped` · `format` · `endpoint` · `dropped?`)—— 这一跑的推理档位记录。键本身早已逐字过境、本包此前没有它的型;server ≥7.154.0 起 `effective` 多 `on` / `provider_default` 两词(九词 = 七档 + 两词),`off` 只说线上带了关思考的键:「思考确定关了」只认 `requested: "off"` 且 `effective: "off"`(`dropped: true` 与 `provider_default` 同在;键缺席 = 引擎没说;`format` 开集读)。词表与键集在发布字节上逐位对过(同文件 D6)。
206
+ - **帧键**:`message_committed` 进耐久账本(`GET /v1/runs/:id/events` 回放同一投影)+ 三只可选键 `origin` / `inputId` / `noteKey` · `tool_end.structuredSkeleton` · `task_notification.refusedAsks`。
207
+ - **请求键与帧**:`SemaSettings.runStreamHookFrames?: "failures"`(要了才在这条 run 的事件流上看见四族 `hook_notice`;先读 `capabilities.taskSettings.runStreamHookFrames`)+ `AgentEvent` 的 `hook_notice` 臂(载荷同舰队流 `FleetHookNotice`,另带 `eventId`;按 `kind` 分派、未知 kind 别崩)。
208
+ - **门身份读不出**:`checkpointIdMissing`(`CheckpointIdMissingWord` = `absent` / `untrusted`,与 `checkpointId` 恒只出其一)在 `tool_start` / `tool_end` · `suspended` / `needs_review` · park 账本行 · 队列行 / 收件行 · 结清证据 · `PausedCause` · `PendingGateMaterial` 上,计划审阅 `409 approval_stale` 体根 ⇒ `ApprovalStaleError.checkpointIdMissing`(闭集外的词按缺席)。`CHECKPOINT_ID_MISSING_WORDS` 包根导出。
209
+ - **审批队列**:`PendingCheckpoint.hostSessionId` + 审批流 `pending` / `resolved` 帧(一张停在别的会话里的卡指回起它的那只会话)。
210
+ - **店形拒体**:`MemoryStoreFormRefusalExtra.outsideReason`(`act_outside` / `root_moved` / `root_gone` / `root_reanchored`,按它分支)。
211
+ - **起始版本表**:`BITLESS_SURFACES` 多一行 `run_ledger_message_committed`(`version_only`,since 7.154.0):运行事件账本(`GET /v1/runs/:id/events`)里的 `message_committed` 帧 —— server 文书写明这一帧进账本**没有**能力位(位说的是这台 server,说不出一本老账);`serverHasBitlessSurface(服务端版本, "run_ledger_message_committed")` 只答「这台 server 会不会写」,「某条消息有没有提交帧」仍按消息判(见「读法订正」)。
212
+ - **其余**:`RefusedAsk` · `SessionRewindFileRow` 包根导出;spec 对应 schema / 属性同批。
213
+
214
+ ### 读法订正(不改公开型)
215
+
216
+ - **取消受理之后**:`POST /v1/runs/:id/cancel` 受理(`cancelling`)**不承诺**终局词一定是 `failed` + `cancelled`。以 `GET /v1/runs/:id` 读到的**终局词**为准(终局是吸收态),取消落地的主判据是 `errorCode: "cancelled"`;受理之后的另外三形:腿自己在取消生效前跑完 · 被取消的续跑腿保留引擎码 `resume.reopened_unstarted` · 持有者失联(`failed` + `run.stalled` / `run.orphaned`,7.154.0 起凡投出判决码的面旗在则同带 `cancelRequested: true`)。不要等事件流终帧:停驻臂的取消不写账本终帧、流在停驻时就关了。`cancelRequested` 翻回 `false` 不等于取消完成。
217
+ - **steer 的送达形**:停驻 / 唤醒腿续跑首轮上的用户源插话,server ≥7.153.0 起与回合在飞时同一只框架(用户消息形),不再是「仅为数据」的围栏数据段。
218
+ - **`message_committed` 判「账本上有没有」**:升级前写下的账本没有这一帧(回放原样、不补造)。判据按消息:一条助手消息的正文行走到该轮 `turn_end`(或腿的终局 / 停驻行)还没等到它的提交行 ⇒ 这条消息没有提交帧;没有能力位(位说的是这台 server,说不出一本老账)。活流上 `reasoning_end` 移到提交帧之前。
219
+ - **遮蔽记号**:新旧写法按版本分支(见迁移表第 10 行);`detail` 里凭据名下的成员在 ≥7.154.0 是 `"«redacted»"`。
220
+ - **重发判官**:`rewind.restore_failed` 按码豁免(见迁移表第 2 行);`internal.store_error` 不在码表里,按 `permanence` 判。
221
+
222
+ ### 对账表
223
+
224
+ `test/server-7154-surface.test.ts` 对 `wire-changes/server@7.154.0.json` 的 **102 行**(added 59 + removed 1 + changed 18 + narrowed 23 + excluded 1;`registered` 0;`breaking` 24)**逐行判**:每一行解析得到一个落点(组落点 = `桶 | 来源`,或逐 id 例外),落点五类:`typed` 25 · `doc` 40 · `present` 18 · `none` 11 · `debt` 8(`debt` 逐组在下面「未闭环」点名)。另对每一组的**行集指纹**(`id=成员头` 排序后的摘要):同组内某行的成员被换 / 多一行 / 少一行都红,逼着逐行重读再改落点。判别力自证(换桶 / 换来源 / 多一组 / 例外消失 / 例外换成员 / 例外换来源 / 同组内换成员都红)。发布字节腿(`SEMA_SERVER_DIST_DIR` 指 7.154.0 的发布字节)另对:引擎能力词逐位 · 能力位真发 · 回退口投影键 · 拒因类词表 · 提交帧投影键 · 结果成员的投影点。
225
+
226
+ ### 升级须知(三问)
227
+
228
+ - **谁需要**:读 `task_notification.injected` 的壳 / 网关、对 `503` 一律自动重发的调用方(同步提交腿的 `rewind.restore_failed`)、自己调 `readModelRouteEnv` 判「无钥部署」的客户端、穷举引擎能力词 / `BitlessSurfaceId` 的 `Record` / `switch`、按 `200` + `failed` 判同步提交腿请求写错的壳、按字面匹配旧遮蔽记号的壳 / 钉。
229
+ - **谁受伤**:不换 sdk 的消费方 —— 7.154.0 上同步提交腿对上面几码答 `4xx` / `5xx`(不再是 `200` + failed)、店故障码换名、遮蔽记号换写法;换 sdk 后上面三个编译 / 运行期信号(迁移表第 1 – 4 行)。
230
+ - **补偿**:本版同班车(sdk 43.0.0 与 server 7.154.0 同版锁步);迁移表逐行带迁移句;`≤7.153.x` 的 server 上新口 / 新键缺席合法,先读能力位。
231
+
232
+ ### 门 6
233
+
234
+ 对 7.154.0 发布字节的契约套(`scripts/run-live-contract.mjs`):门 6 在 server 发车时读到 **3 红**(3 个文件各 1:`fence-calibration` · `model-route-env-mirror` · `server-k188-faces`),**三条全归 sdk、零条归 server**:① `fence-calibration` —— 校准头 7.153.0 → 7.154.0(本版逐行对账);② `model-route-env-mirror` 格③a —— server 发布字节 `dist/model-route-gap.js` 的 `gatewayApiKey: declaredValue(env[K.gatewayApiKey])`(`dist/env-scalar.js` 的 `declaredValue`:缺席 / 空串 ⇒ `undefined`)而镜像原样交出,镜像跟(server 文书「配置值一类一种读法」已成文,迁移表第 3 行);另六只取值型旋钮(`SERVICE_AUTH_TOKEN` · `GIT_API_TOKEN` · `GIT_API_BASEURL` · 两只快照桶 · `ANTHROPIC_VERSION`)不在镜像读的九把键里,零改动;③ `server-k188-faces` —— 拒句里的遮蔽记号 `[redacted] (N characters)` → `«redacted» (N characters)`(server 文书「遮蔽记号一张表」已成文,迁移表第 10 行),钉按版本分支。改后三个文件对 7.154.0 发布字节全绿,契约套其余 27 个文件不动。
235
+
236
+ ### 未闭环
237
+
238
+ 1. **三个新通告码的 detail 型**(`permission.allow_rule_not_used_in_auto` · `route.credential_mismatch` · `task.undelivered_input_dropped`):`engine_notice.code` 是开集串,帧照常到,本版没为它们造 `detail` 型。
239
+ 2. **判死相关的五只加性键**(五只动词口 `409` 体的 `verdictDueAtMs` / `verdictDueInMs`,判死终帧与续跑腿 `200` 体的 `cancelRequested`):经 `APIError.extra` 开读到,没有具名型成员。
240
+ 3. **引擎 7.69.0 的等待帧 / 规则文法戳词**(`BrainStatusPhase` 闭集退 `waiting_first_token`、规则重写出路词 `rewrite_in_current_grammar` 取代 `operator_write_without_rev`):7.154.0 随装的引擎(7.68.2)仍发旧词,本版**没有**改 `BrainStatusPhase` 与规则写入用法建议,随提货 7.69.0 的那一版收。
241
+ 4. **`PausedCause.requestedByCallId` 与结果上 `verifierPause`**:本包一直没有这两处的型(开集读),不在本版面。
242
+ 5. **`docs/manual/`(冻结在 4.0.0 的审计册)**:未移出手册目录、未订正;不是随包文件。
243
+ 6. **`fleet.snapshot`(有界读,走 SSE 门)**:读首帧就收,按判据它是读,但它建在 `fleet.stream` 的单发门上,本版 `opts` **没有** `maxRetries`;要给它请求级重试得把选项穿过 `stream`,是新能力。
244
+ 7. 带旋钮(`SEMA_SERVER_DIST_DIR` 指 7.154.0 的发布字节)才跑的既有红与 7.150.0 – 7.153.0 的旋钮基线同形(读 server 源文本 / 老字节写法的钉);默认套对钉版 7.148.0 字节不受影响。
245
+
246
+ ## 42.0.0 — BREAKING changes(锁步 server **7.153.0**:对表该版 **registry 发布字节**〔dist.shasum `b8640352d73ca40d062b435c7a898cc62f60febb`、gitHead `027f7b3e4a3b2652d990ccd0e81140d91a1a8247`;随装 core 7.67.3 / 契约包 settings-schema 27.2.0;`wire-changes/server@7.153.0.json` added 120 / removed 7 / changed 10 / narrowed 14 / excluded 4 / `breaking: 21`〕;`CALIBRATED_SERVER_HEAD` = 7.153.0;根 devDep `@sema-agent/server` 仍精确钉 7.148.0)—— 唯一 server 支持底线 **`7.52.0`**(不抬)
247
+
248
+ **判 major 的依据**(`docs/RELEASE.md` 的 major 判据:「删/改名导出符号或字段」「收窄类型」「输出型放宽」):删型 `WiringManifestInstructionFile`、删结果位 `rowBits` / 型 `RowBitsOutcome` / 接口成员 `SessionSyncPeer.sessions.patch`;**必填化** `PlanReviewRequest.checkpointId`(放行词臂)与 `putPolicy` 的 `rules.grammar`;输出型改形 `workflows.list()` 的元素(两臂并集)、`WiringManifestInstructions.selected`(闭集四词 → 开集 `string[]`);输出闭集放宽(`DecideRequiresBindingExtra.missingKeys` 多一员、`STEER_REPLAY_FACETS` 第六面、`ProbeHealthResult` 多一个 `reason`、`EngineCapabilityWord` 第四词、`BitlessSurfaceId` 多一员)。消费方 tsc 红即通知(零别名、零过渡成员)。
249
+
250
+ ### 迁移表(BREAKING)
251
+
252
+ | # | 面 | 之前 | 现在 | 迁移句 |
253
+ |---|---|---|---|---|
254
+ | 1 | `assistant.planReview` 的体 | `approve` / `edit` 的 `checkpointId` 可缺(缺 ⇒ 没有陈旧保护) | `PlanReviewRequest` 是两臂联合:`approve` / `edit` **必带** `checkpointId`,`reject` 可缺;缺 ⇒ `400 decide_requires_binding`(`missingKeys: ["checkpointId"]`,判在认领之前、计划未批、零状态改动) | 带上从 run 结果(`terminal.checkpointId`)/ 队列行 / 收件行读到的 `checkpointId`;读不到(门编号读不出的行)⇒ 只能 `reject`、取消 run 或请运维修行 |
255
+ | 2 | `sessions.putPolicy` 的 `rules` | 三只桶即可(服务端代盖文法) | 型 `SessionRulesWrite`:**`grammar` 必带**(写者声明文法,引擎与服务端都不代填);缺 ⇒ `400 rules.grammar_required`、零写 | 首写读 `capabilities().sessionRulesGrammar`(7.153.0 上是 `7`);有行时把读回行的 `grammar` 带回(缺席 = 文法 0)。7.152.x 及以前同样收下带 `grammar` 的体 ⇒ 一律带,先改客户端再升 server |
256
+ | 3 | `workflows.list()` 的元素 | `WorkflowRunSummary` | `WorkflowListRow` = 摘要 ∪ `{ id, unreadable: { errorCode } }`(引擎读不出的行**照列**,此前被丢);按 id 读同一行仍是与「没有这行」逐字同体的 404 | 读必填键(`status` / `phaseCount` …)之前先判 `isWorkflowListRowUnreadable(row)` |
257
+ | 4 | `wiring_manifest.instructions` | server 自铸、`selected` 是闭集四词(首中即选);型 `WiringManifestInstructionFile` | **引擎铸**:`selected` = 这条腿开跑时持有的**全部**成员(相对任务根、开集 `string[]`,同族两份都读);**`WiringManifestInstructionFile` 删除**、spec 删 `items.enum`;远端执行环境与多租部署上的腿也陈述 | `selected` 按 `string` 读(别 `switch` 四词);「选中的那一份」改读「持有的全部」。🔴 **安全放宽**:指令文件正文不再经服务端脱敏、委派子代拿整份(不再截 4 KiB) |
258
+ | 5 | 通告码 `instructions.source_changed` | 项目指令文件换源时发 | **退役**(不再铸):换源由引擎自己说,读不了的根由新码 `instructions.withheld` 说 | 按它渲换源提示的壳改读引擎的说法与 `instructions.withheld`(`InstructionsWithheldDetail`) |
259
+ | 6 | 同步 `POST /v1/tasks` 腿上引擎在开跑前拒的请求值码 | `config.output_style_invalid` · `config.invalid_output_schema` · `config.agent.reserved_name`:`200` + 终态 `failed` | **开跑前即拒 `400`** + `{ error, errorCode }`(体没有 run 信封、不占提交幂等键、模型零调用);`wake` 来路的 `config.invalid_argument` 同版新入、首发即 `400`。流式腿(`200` 流 + 终帧)与异步腿(`202` + 终态 run 行)**状态与码不变** | 同步腿按 `APIError.status` / `errorCode` 判「请求写错了」(三码 `config.*` 不是前缀族 ⇒ 带码裸 `APIError`);不再读体里的 `terminal.kind === "failed"`;带 `Idempotency-Key` 的流式 / 异步腿同键重发由「回放」变「重跑一次、同样被拒」 |
260
+ | 7 | `runs.compact`(run 级手动压缩口) | 体开(数组体当空体、表外键静默忽略);run 刚结束的首拍可读的两形答 `202`;409 无机读成因 | 体闭集 `{ instructions? }`(非对象 ⇒ `400 request.invalid_json` + `reason: "not_object"`;表外键 ⇒ `400 request.body_shape` + `unknownKeys`);「这条腿已结束」两形 `202` → **`409 compact.not_running`**;409 恒带体根 `cause`(`RunNotLiveError.cause`:`run_terminal` / `run_parked` / `run_on_other_replica` / `run_not_steerable`) | 不再把 `202` 读成「压缩会发生」(没有 `compacted{trigger:"manual"}` 帧才是真相);按 `cause` 分下一步,别按句子判位置;提交体 `compaction.clampTolerance` 出 `[0,1]` ⇒ `400 request.field_invalid`(此前受理、键丢) |
261
+ | 8 | `rewind.restore_failed`(文件历史店在恢复里答 `failed`) | 同步提交腿 `200` + 终态 `failed`;立即回退口通用 `500 internal.error` | 两条腿同答 **`503`** + 码原样 + 体根 `permanence`(`transient` / `terminal`,店判了才带) | 按状态 / 码判失败;`ServiceStateError`,本包重试臂读 `permanence`(`terminal` ⇒ 不重试);原样重发会继续收敛(文件可能已部分改写,台账摘要在句子里) |
262
+ | 9 | `sessions.memorySync` 的栅栏读 | 易主 / 行被删 ⇒ `200` + `refused.code: "session_active"`(假话:没有在飞 run) | 栅栏读时调用方此刻**看不见**这只会话 ⇒ **`404 not_found.session`**(与「没有这只会话」逐字节同体);`session_active` 只意味着「看得见而不静」 | `404` 即止(按未知会话处理,别重试);后检的 404 之前这一轮的同步写已经落下(幂等) |
263
+ | 10 | 同步编排口 `pushSessionBundle` / `importSessionBundle`(镜像目标) | 会话行两位 `title` / `pinned` 经收尾 `PATCH` 写(镜像目标 ≥7.139.0 上必拒 `409 conflict.session_mirror`、被读成 `writer_side`) | 两位随 Phase A 导入体带过去,**删收尾 PATCH**;**删** 结果位 `rowBits`、型 `RowBitsOutcome`(及 `writer_side` / `unsupported` 两词)、接口成员 `SessionSyncPeer.sessions.patch` | 要知道送了什么读 `result.manifest.title` / `pinned`;要知道目的端会不会应用读 `serverHasBitlessSurface(目的端版本, "session_import_row_bits")`(7.125.0 起);自己实现 `SessionSyncPeer` 的嵌入方:`sessions` 不再需要 `patch`,但「plan 判 identical ∧ 源 manifest 有两位」时会对**目的端**多读一次 `sessions.sync.manifest` |
264
+ | 11 | 终局 / 流上 `Agent` 工具卡(`tool_end.structured`,本包不立型) | 失败的委派子代卡码位 `errorCode`;后台子代 `agentState.approval` | 码位改名 **`code`**(只写引擎的码,平台 / 库驱动的原码如 `ER_*` 不再上卡、只留在 `errorMessage` 句尾);`agentState.approval` → **`park`** 并多一位 `gate`(停驻等的是人的审批 `{ kind: "human" }` 还是资源上限 `{ kind: "resource_limit", reason }` …),`state:` 文本行首词随之变 | 读卡的壳改读 `code` / `agentState.park.gate.kind`(旧键缺席);按 `ER_*` 分支的读 `errorMessage` 尾注或同一子代的 run 行 |
265
+ | 12 | 输出型放宽(只在你穷举它们时才红) | `DecideRequiresBindingExtra.missingKeys` 两词 · `STEER_REPLAY_FACETS` 五面 · `ProbeHealthResult` 的 `reason` 四词(`timeout` / `network` / `http` / `not_ok`)· `EngineCapabilityWord` 三词 · `BitlessSurfaceId` 两词 | `missingKeys` 多一员 `checkpointId`(只在计划审阅口)· `STEER_REPLAY_FACETS` 第六面 `source`(引擎 7.67.0)· `ProbeHealthResult` 多 `"aborted"`(调用方自己的取消,见「加」)· `EngineCapabilityWord` 第四词 `user_attachments.read_state`(`Capabilities` 上多一个可选键、`EngineCapabilityBits` 多一员)· `BitlessSurfaceId` 多 `session_import_row_bits`(随同步编排口那一行) | 穷举 `switch` 加臂;`Record<SteerReplayFacet, …>` / `Record<EngineCapabilityWord, …>` / `Record<BitlessSurfaceId, …>` 补新键 |
266
+ | 13 | 停驻 run 的续跑腿在一条窄形上的成功答收回 —— **只影响提交时带了 `verify` / `cascade` 的 run 的续跑**(这类续跑是「只回结果的组合腿」,等腿收场才作答;普通续跑在引擎受理时就已作答,取消与写故障落在作答之后,不受影响) | 引擎结果已到手、**之后才到**取消、随后一笔簿记写抛:答零用量的取消体 `200` | 腿抛照旧上抛,答全局兜底的 `500`(行落「结局到手而没记下来」)| 这一窄形上读到 `5xx` 按状态矩阵读(这些口是非提交 POST,本包不自动重试;重发由调用方定);读零用量 `200` 体判「取消成功」的壳改读 run 行的终态 |
267
+
268
+ **规格里的条件必填**:行 1 的「`approve` / `edit` 必带 `checkpointId`」在随包 spec 里写成 OpenAPI 3.1 的 `if` / `then`(`PlanReviewRequest`)。**用规格生成客户端、而生成器不支持条件必填的工具会丢掉这条 `if` / `then`**(生成出来的体里 `checkpointId` 就是可缺的)——这时**以本包的类型为准**:两臂联合在编译期就拦住缺 `checkpointId` 的 `approve` / `edit`;运行期缺了也由 server 以 `400 decide_requires_binding` 拒(判在认领之前,什么都不落)。
269
+
270
+ ### 加(additive;老 server 缺席合法)
271
+
272
+ - **能力位**(先读位再带键;位缺席 = 更早的 server):`wake` · `language` · `resumeCursorNotice` · `lastWireBreakingVersion`(这台服务端最近一次带硬破坏 wire 变更的版本;按 semver **数值序**比,不按串序)· `sessionRulesGrammar`(整数)· `sessionCompact` · `sessionRewindFilesCwd` · `sessionKinds` · 引擎能力词 `user_attachments.read_state`(`ENGINE_CAPABILITY_WORDS` 第四词)。新口 / 新体键自 7.153.0 起同版带位,所以**起始版本表没有 7.153.0 的新口行**(相对 41.1.1 多出的一行是合并带进来的存量行,见下「读法订正」)。
273
+ - **请求键**:`TaskRequest.wake`(唤醒腿:开在会话住客闲着时停驻下来的任务通知上,词的闭集属主是引擎,今天 `"parked_notifications"`;`wake` 与非空目标 / `images` / `userAttachments` 同体 ⇒ `config.invalid_argument`,没有停驻通知 ⇒ `409 config.nothing_to_wake`)· `TaskRequest.language`(回复语言,原样交引擎,**每条提交都带**:缺席而此前告知过 ⇒ 引擎对模型陈述「偏好被清除」)· `TaskRequest.sessionKind: "sidechain"` + `sessions.list({ sessionKind })` + `SessionSummary.sessionKind` + `Capabilities.sessionKinds`(server 7.151.0 起就有,本版才声明;**7.153.0 的字节真发**:`sidechain` 会话的列表行带 `sessionKind: "sidechain"`,顶层会话行不带这一键,所以型是可选的 —— 真进程读数钉在 `test/live/server-7153-faces.test.ts`)。
274
+ - **闲时压缩**:`sessions.compact(sessionId, body?)` → `{ outcome, events, usage? }`(`POST /v1/sessions/:id/compact`,同步;有 run 在跑 / 停在门上 ⇒ `409 conflict.session_active_run`;只落在它摘要过的那片叶子上,叶子被挪 ⇒ `outcome: "failed"` + `compaction_outcome.cause: "leaf_moved"`)· 型 `SessionCompactRequest` / `SessionCompactResult` / `SessionCompactEvent` / `SessionCompactUsage` · `COMPACT_OUTCOMES` 六词。
275
+ - **回退口**:`SessionRewindFilesRequest.cwd`(先读 `sessionRewindFilesCwd`;server 重启之后「打完即退」的调用方用)。
276
+ - **帧键**:`tool_start` / `tool_end.resumesCheckpoint` · `tool_end.refusedInput` / `redactedKeys`(`TOOL_END_REDACTED_KEYS` 闭四词)· `tool_progress.gate`(`TOOL_GATE_PHASES`)· `status.providerMessage`(服务商原话,**不可信、只展示**)/ `status.toolCallId` · `turn_end.answeredBy` / `cacheReadUnreported` / `cacheWriteUnreported` · `compacted.restoreOutcomes`(与 `human_input.attachments[]` 同一条记录,多 `reason`)· `compaction_outcome.cause`(`COMPACTION_FAILURE_CAUSES`)· `PromptManifest.selectors.locale` · `wiring_manifest` 的 operator 三段 `suspendLane` / `commandSandbox` / `toolPlan`。
277
+ - **审批面**:`deploymentListQuestion`(卡 · `livePending[]` 行 · 队列行,只记真)· `cardMessage`(队列行 · 收件箱行)· `askReasons`(收件箱行)· fleet 行 `model`(server 7.148.0 起就发,类型包此前漏声明)。
278
+ - **通告 detail 型**:十五个新通告码的 `detail` 键形具名(`AgentUnknownToolDetail` · `InstructionsWithheldDetail` · `ModelFallbackDetail` · `MemoryMountFailedDetail` · …)· 店形拒体根键 `MemoryStoreFormRefusalExtra`(`serverPath` / `homeForm` / `controlDir` / `recordedRoot` / `resolvedRoot` / `rootKind` / `guardRow` / `engineRefusal`)。
279
+ - **控制面错误**:`ControlError.code`(应答体的机器码:串且 trim 后非空 ⇒ trim 后的值;读位 顶层 `errorCode` → 对象形 `error.code` → 顶层 `code`,先到先得;`error` 是串时那一句是句子、不读)与只读 `extra`;`error` 是对象时 `toControlError` 不再抛 `TypeError`。**读位只有一只函数**:409 的 scope-gone 分类读同一份读位 —— `errorCode` / `error.code` 是权威位(在场就是它说了算,与 41.1.1 同);它们都缺席时,顶层 `code` 与 v1 OAuth 形里的 `error` 串**任一**说 scope_gone 就判 gone(宁停不重发)。所以**只会比 41.1.1 多判 gone、从不少判**:体上只带顶层 `code: "scope_gone"` 的 409 现在也分成 `ControlScopeGoneError`(属主自己的客户端不读顶层 `code`,这是本包的一处偏离)。两处读出的码只在两个角上不同:`error` 串是 `scope_gone` 的 v1 形 409 上 `.code` 是 `undefined`(那一位只属于分类),或体上另带一个别的顶层 `code`(分类判 gone,`.code` 是那个别的词)。
280
+ - **读口逐调用选项**:**每一个读 verb**(公开方法,经 `Transport.request` 发 `GET` 或经 `openRawGet` 开有界体的 GET;`AgentClient` 与 `ControlClient` 合计 85 个)的 `opts` 都是同一只型 `ReadCallOptions`(`signal` + `maxRetries`;包根导出):`maxRetries` 只对这一读覆盖客户端的重试次数(非负整数,`0` = 只发一次;坏值调用时响亮拒、什么都不发)。这一族由 `test/read-verb-options.test.ts` 的扫描**枚举并校验**(型 · 门调用 · 运行期全扫;扫描认得的写法与**已知漏扫的写法**见 `### 未闭环` 第 7 项);**写 verb 不收**(重发写不是调用方选一个数就能决定的事)。**单发门上的 11 个 verb 不收**(重开是调用方的环按游标做的事,不是请求级重试):SSE 流 `approvals.stream` / `fleet.stream` / `bakes.events` / `runs.events` / `runs.subagentStream` / `trace.stream` / `workflows.stream`、长连接 GET 流 `sessions.watch`、提交流 `tasks.stream` / `tasks.streamRaw`(写),以及 `fleet.snapshot`(有界读,但经 SSE 门读首帧就收 —— 未覆盖,见 `### 未闭环`)。`@sema-agent/sdk/registry` 子路径与 `probeHealth` 不经 `Transport`(各有自己的引擎),不在这一族 · `probeHealth` 收 `signal`(取消 ⇒ `{ alive: false, reason: "aborted" }`,零抛)· `ApprovalStreamEvent` 的 `meta` 帧具名成员 `pollMs` / `version` / `mode`。
281
+ - **其余**:`RunNotLiveError.cause` · `RUN_NOT_LIVE_CAUSES` · `SESSION_KINDS` · `SUSPEND_LANE_REASONS` · `WorkflowListUnreadableRow`;spec 加 `POST /v1/sessions/{id}/compact` 与对应 schema、`PromptManifest.selectors.locale`、`FleetTaskRow.model`、各帧键;spec 修四处(`TaskRequest.cwd` 缺席合法、内建场景表补 `cowork`、`allowTools` 段的过期句、`blob not found` 冻结文案逐字)。
282
+
283
+ ### 读法订正(不改公开型)
284
+
285
+ - **审批读者**:`serverHasBitlessSurface(version, "approval_ask_pair")` 答 `true` 只说「这版 server 认得那一对口」,**不等于部署态的门开着** —— 门开没开再读 `capabilities().approvals`(没有审批账的部署上口答 `501 feature.approval_ask_disabled`)。读者答 `false` 时把「需 server >= `since`」说给调用方:`since` 读 `BITLESS_SURFACES` 里那一行,别手抄版本号。
286
+ - **两个版本底线分开**:① 每一行的 `since`(这一口 / 这一行为从哪一版起)· ② **读到服务端版本本身的底线** —— 配了服务凭据的部署自 7.148.0 起对**匿名** `GET /health` 只答窄子集(没有 `version`),要带凭据读:`probeHealth(baseUrl, { token })`;匿名读不到 `version` ⇒ 读者答 `"unknown"`。
287
+ - **读者的入参律(一条判所有入参形;本包唯一的版本解析器)**:版本串**首尾空白被剥掉**(`" 7.152.0\n"` 读作 `7.152.0`);除此之外不是恰好 `x.y.z[-pre]` 的一律 `"unknown"`(前导 `v` · 空串 · 非串 · `7.152` · `null` / `undefined`)—— **不抛、不悄悄答 `false`**;只有未知 `id` 抛 `RangeError`。
288
+ - **`approvals.stream`**:没有续读游标的审批流在一条腿收流之后的**每一次重开都先等**(`min(4 s, 250 ms · 2^n)`,与可续读读口同一只梯,一份实现):读到过数据帧的腿归零但仍先等 250 ms;保活帧不算进展。此前读到过帧又收流的腿零等待、无界重开。`synced` 帧在**首次读失败**的流上于第一次读成功的那一拍补发(可能晚于一帧 `error`)。
289
+ - **用量**:引擎一次模型调用没报缓存读 / 缓存写 ⇒ `stats.modelUsage[<模型>].cacheReadTokens` / `cacheWriteTokens` **可缺席**(缺席 = 没报,**不是 0**;别直接做加法);用量分析的该聚合 `estimated: true`(走不报缓存写的线路的租户从此恒 `estimated`,数字不变)。
290
+ - **同批行为面(无编译信号)**:四只决定口对「决定词坏了」答同一形 —— `400 request.body_shape` 体根多 `field: "decision"`(`APIError.extra.field`;句子逐字不变,按 `field` 判而不按句子);待批列表刚列出一张停驻卡就去决断不再撞 `409 conflict.not_resumable`(决断口等 run 停下 ≤2 s,再认领);`POST /v1/images/register` 字符串键按列宽在入口判长(超宽 `400 request.field_invalid` + `field` / `maxChars`,此前严格库 `500` 或静默截断);`GET /v1/capabilities` 的 `lastWireBreakingVersion` 让已发出去的客户端发现「这台服务端在你之后有过不兼容的 wire 变更」;店形拒五码(含新码 `memory.store_root_sensitive`)的 operator 面 `error` 换固定句、事实走体根键;账本续读口对在场而认不得的游标显式告知(头 `x-resume-cursor: unrecognized`,位 `resumeCursorNotice`)。
291
+ - **起始版本表(`BITLESS_SURFACES`)没有 7.153.0 的新口行**:本版新口 / 新体键全部同版带位(见「加」的能力位);「必带门编号」「必带文法」是向后兼容的「一律带」读法(读 `planReviewCheckpointId` / `sessionRulesGrammar`),不需要版本判。本版**没有新口新行**;表由 41.1.1 的两行变成三行,多出的 `session_import_row_bits`(7.125.0 起)是同步编排口合并带进来的**存量**行(见迁移表第 10、12 行),不是 7.153.0 的新口。
292
+
293
+ ### 对账表
294
+
295
+ `test/server-7153-surface.test.ts` 对 `wire-changes/server@7.153.0.json` 的 **155 行**(added 120 + removed 7 + changed 10 + narrowed 14 + excluded 4;`registered` 0;`breaking` 21)**逐行判**:每一行解析得到一个落点(组落点 = `桶 | 来源`,或逐 id 例外):`typed` 80 · `doc` 27 · `present` 32 · `none` 16 · `debt` 0(= 155)。组 / 例外在产物里不见了 = 红,产物里多一行没落点 = 红(判别力自证 L3:换桶 / 换来源 / 多一组来源 / 例外消失都红)。词表常量对产物逐位同序:会话种类 · 脱敏位 · 压缩结局 / 失败成因 · 停驻缺件 · 工具门词 · 引擎能力词 · steer 重放面 · 压缩未活成因。
296
+
297
+ ### 升级须知(三问)
298
+
299
+ - **谁需要**:调 `assistant.planReview` 批准 / 改写计划、写会话规则(`sessions.putPolicy`)、读 `workflows.list()`、读 `wiring_manifest.instructions`、用同步编排口读 `rowBits`、自己实现 `SessionSyncPeer`、按同步提交腿 `200` + `failed` 判请求写错的壳 / 网关(cli · client-core · web-admin · 控制台)。
300
+ - **谁受伤**:不换 sdk 的消费方 —— 不带 `checkpointId` 的批准 / 不带 `grammar` 的规则写在 server 7.153.0 上答 `400`(计划仍待决、规则零写);按列表行必填键严格解析的工作流读者遇到 `{ id, unreadable }` 行;穷举上面五只输出闭集(迁移表第 12 行)的 `switch` / `Record`;读 `Agent` 卡旧键 `errorCode` / `agentState.approval` 的代码(读到缺席)。
301
+ - **补偿**:本版同班车(sdk 42.0.0 与 server 7.153.0 同版锁步);迁移表逐行带迁移句;`≤7.152.x` 的 server 上带 `checkpointId` / `grammar` 的体照收(「一律带」向后兼容),新口(`sessions.compact` 等)在老 server 上是路由 404 `not_found.route`,先读能力位。
302
+
303
+ ### 门 6
304
+
305
+ 对 7.153.0 发布字节的契约套(`scripts/run-live-contract.mjs`):门 6 在 server 发车时读到 **4 红**(4 个文件各 1:`error-tariff-artifact` · `fence-calibration` · `server-7120-faces` · `server-7121-faces`),**四条全归 sdk、零条归 server**:`resume.agent_definition_mismatch` / `resume.isolation_scope_mismatch` 两码(引擎铸、server 续跑腿处置表归 `retriable`:`409` + 码原样 + `retriable: true`;server 文书未成文)⇒ 铸型表补两行;能力位 `sessionReadRedaction` 叶名表十一员 → 十二员(多 `assistant.providerMessage`,server 文书未成文)⇒ 版本分支加 `≥7.153.0` 一档;`outputStyle: { name: "" }` 同步提交由「受理 + 终态 failed」翻为「开跑前 `400`」(server 已成文的硬破坏)⇒ 钉翻面并为另两码立同形钉;校准头抬 7.153.0。收口读数见各文件(`error-tariff-artifact` 76 passed · `server-7120-faces` 5 · `server-7121-faces` 9 + 1 skipped · `fence-calibration` 3)。
306
+
307
+ ### 未闭环
308
+
309
+ 1. **引擎 7.69.0 的等待帧 / 规则文法戳词**(`BrainStatusPhase` 闭集退 `waiting_first_token`、规则重写出路词 `rewrite_in_current_grammar` 取代 `operator_write_without_rev`):7.153.0 随装的引擎(7.67.3)仍发旧词,所以本版**没有**改 `BrainStatusPhase` 与 `rewrite.by` 的文书;随提货那一版 server 的锁步车一并收。
310
+ 2. **错误体码分类的 `internal.store_error`**:7.153.0 的 JSON 面不出这只码(四腿 JSON 面照旧答 `internal.error`),分类格随「店故障一码」那一版收。
311
+ 3. **`docs/manual/`(冻结在 4.0.0 的审计册)**:未移出手册目录、未订正;不是随包文件。
312
+ 4. 带旋钮(`SEMA_SERVER_DIST_DIR` 指 7.153.0 的发布字节)才跑的既有红与 7.150.0 – 7.152.0 的旋钮基线同形(读 server 源文本 / 老字节写法的钉);默认套对钉版 7.148.0 字节不受影响,本版只对 7.153.0 字节跑了本版新增 / 改动的文件。
313
+ 5. **审批流**(`approvals.stream`)之外的另外读口(`runs.events` 等)的重开等待梯本版未动(41.1.1 已收)。
314
+ 6. **`fleet.snapshot`(有界读,走 SSE 门)**:读首帧就收,按判据它是读,但它建在 `fleet.stream` 的单发门上,本版 `opts` **没有** `maxRetries`(流的重开归调用方的环);要给它请求级重试得把选项穿过 `stream`,是新能力,等裁定。`test/read-verb-options.test.ts` 的 `SINGLE_SHOT_VERBS` 点名它并写明理由。
315
+ 7. **读口扫描钉的已知限制**(`test/read-verb-options.test.ts`;本仓资源类现无这些写法,所以今天是「写明、不修」,而不是缺口):扫描认**方法声明里**对 `request` / `openRawGet` / `openStream` / `openRaw` 的**直接调用**(含 `"GET" as const`;非字面量 method、非对象实参、箭头函数属性里的门调用都**响亮报**,不悄悄漏)。看不见的写法:经 `#私有` 方法转调、`.call` / `.bind` / 括号取值(`this.t["request"]`)转调传输层、资源类写成类表达式、资源类挪到扫描范围(`src/client.ts` · `src/control-client.ts` · `src/resources/**`)之外 —— 这些写法会让该 verb 掉出扫描(读 verb 数只有 ≥ 80 的下限,没有逐名单);另有一条:verb 只把选项里的 `maxRetries` 交给 `readCall`、自己另处理 `signal` 的写法,运行期全扫只钉「预先 abort 的 signal 到得了传输层」,飞行中途 abort 不钉。出路 = 把读 verb 的 id 集合钉成逐名单(第二真源,要设计)或在扫描里把「对传输层方法的任何非直接调用」当违规;不在本版。
316
+
164
317
  ## 41.1.1 — patch(可续读读口:进展按续读游标认,每一次无终帧的重开都先等;公开型面零删 / 零改名 / 零收窄,行为面变化见下;不对表新的 server 版本:`CALIBRATED_SERVER_HEAD` 仍 7.152.0,根 devDep `@sema-agent/server` 仍精确钉 7.148.0)—— 唯一 server 支持底线 **`7.52.0`**(不抬)
165
318
 
166
319
  **这是一个 patch**(按 `docs/RELEASE.md`):公开型面零变化 —— 闭集词(`STREAM_ENDED_REASONS` 两词)、类型、公开选项都没变;两只读口(`parseSse` / `parseFrameStream`)与两只上限常量不是包根导出,包根没有新增 / 删除 / 改名的导出。行为面逐行对该文的 major 判据核过:`runs.events` 的两个数(2 条空腿判停驻、5 次放弃)与修前相同;三只尾随流(`trace.stream` / `bakes.events` / `sessions.watch`)的放弃上限仍是连着 5 次(零帧腿的量法与修前同:从头第 5 次开流,推进过之后晚一次);放弃时抛的是 `Error` 的子类;帧里坏 JSON 与响应体自身的 `SyntaxError` 仍在那一次开流上当场抛;其余是重开的时序与本缺陷的修。下表第 1 行就是本缺陷的形(修前永不返回);只有「连着几条腿都只收到不带 `id:` 的非保活帧、随后才又推进」这一窄形修前读得到,见下面「升级须知」第 2 条。
@@ -1,4 +1,4 @@
1
- /** The two kinds of a row: `retirable` (the row goes when a capability bit or a successor door arrives) · `version_only` (a start-up behaviour; no bit can exist, the version reading is permanent). */
1
+ /** The two kinds of a row: `retirable` (the row goes when a capability bit or a successor door arrives) · `version_only` (a start-up behaviour or a fact about stored data; no bit can exist, the version reading is permanent). */
2
2
  export declare const BITLESS_SURFACE_KINDS: readonly ["retirable", "version_only"];
3
3
  /** Member type of {@link BITLESS_SURFACE_KINDS}. */
4
4
  export type BitlessSurfaceKind = (typeof BITLESS_SURFACE_KINDS)[number];
@@ -16,6 +16,16 @@ export declare const BITLESS_SURFACES: readonly [Readonly<{
16
16
  readonly since: "7.148.0";
17
17
  readonly kind: "version_only";
18
18
  readonly what: string;
19
+ }>, Readonly<{
20
+ readonly id: "session_import_row_bits";
21
+ readonly since: "7.125.0";
22
+ readonly kind: "retirable";
23
+ readonly what: string;
24
+ }>, Readonly<{
25
+ readonly id: "run_ledger_message_committed";
26
+ readonly since: "7.154.0";
27
+ readonly kind: "version_only";
28
+ readonly what: string;
19
29
  }>];
20
30
  /** One row of {@link BITLESS_SURFACES}. */
21
31
  export type BitlessSurface = (typeof BITLESS_SURFACES)[number];
@@ -27,7 +37,13 @@ export type BitlessSurfaceId = BitlessSurface["id"];
27
37
  * - `true` — the version is at or above the row's `since`;
28
38
  * - `false` — it is below;
29
39
  * - `"unknown"` — the version could not be read: `null` / `undefined` (for example an anonymous `GET /health` on a server that narrows anonymous reads does not carry `version`)
30
- * or not a bare `x.y.z[-pre]` string (a leading `v` is not accepted). Never read `"unknown"` as `false` when the surface is optional for you, and never as `true` when it is required.
40
+ * or not a bare `x.y.z[-pre]` string (a leading `v`, an empty string, a non-string, a partial `7.152` are not accepted). Never read `"unknown"` as `false` when the surface is optional for you, and never as `true` when it is required.
41
+ *
42
+ * **One input law for every input shape** (the package's one version parser): surrounding whitespace is **stripped** (`" 7.152.0\n"` reads as `7.152.0`); anything else that is not exactly `x.y.z[-pre]` is `"unknown"`.
43
+ * The reader never throws for a bad version string and never answers `false` for one; the only throw is an unknown `id`.
44
+ * Two different floors, kept apart: each row's `since` (the surface starts there) and the floor for *reading the server's version at all* — a deployment that has a service credential configured answers an anonymous `GET /health`
45
+ * with a narrowed body that has no `version` (server >= 7.148.0), so read it with the credential (`probeHealth(baseUrl, { token })`); an anonymous read that carries no `version` answers `"unknown"` here, not `false`.
46
+ * `true` says the server *knows* the surface; whether the deployment has it switched on is a separate reading (for the approval ask pair: `capabilities().approvals`).
31
47
  *
32
48
  * The comparison is the package's one semver comparison: a pre-release orders below its release (`7.152.0-rc.1` is below `7.152.0`).
33
49
  * An `id` that is not in the table throws a `RangeError` (a JavaScript caller naming a retired or misspelled row must not get a quiet third answer; a TypeScript caller cannot write it).
@@ -1 +1 @@
1
- {"version":3,"file":"bitless-surfaces.d.ts","sourceRoot":"","sources":["../src/bitless-surfaces.ts"],"names":[],"mappings":"AAyBA,wMAAwM;AACxM,eAAO,MAAM,qBAAqB,wCAAwD,CAAC;AAC3F,oDAAoD;AACpD,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;GAkBlB,CAAC;AAEZ,2CAA2C;AAC3C,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/D,yHAAyH;AACzH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAEpD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,gBAAgB,GAAG,OAAO,GAAG,SAAS,CAO3H"}
1
+ {"version":3,"file":"bitless-surfaces.d.ts","sourceRoot":"","sources":["../src/bitless-surfaces.ts"],"names":[],"mappings":"AA2BA,oOAAoO;AACpO,eAAO,MAAM,qBAAqB,wCAAwD,CAAC;AAC3F,oDAAoD;AACpD,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;GAkClB,CAAC;AAEZ,2CAA2C;AAC3C,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/D,yHAAyH;AACzH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,EAAE,EAAE,gBAAgB,GAAG,OAAO,GAAG,SAAS,CAO3H"}
@@ -10,19 +10,21 @@
10
10
  * ## The table only shrinks
11
11
  * Every row answers "since which server version", and every row is a debt of the bit-less era, not a pattern to
12
12
  * extend: a surface that gets a capability bit (or is superseded by a door that carries one) loses its row, and a
13
- * new surface is expected to ship with its own bit instead of getting a row. Deleting a row is a compile error for
13
+ * new surface is expected to ship with its own bit instead of getting a row; the one exception is a fact that no
14
+ * server-level bit can speak for (see `version_only` below). Deleting a row is a compile error for
14
15
  * the consumers that still name its id (hard removal, no alias); the row set is ratcheted by a pin in the test suite.
15
16
  *
16
17
  * ## Two kinds
17
18
  * - `retirable` — a bit is, or could be, added for it (or a successor door that carries one replaces it): the
18
19
  * version reading is a stopgap and the row goes when the bit arrives.
19
- * - `version_only` — a start-up behaviour. A server that refuses to start is not online to answer a capability
20
- * query, so no bit can ever exist for it: the version is the only reading, permanently, and the row never retires.
20
+ * - `version_only` — a start-up behaviour, or a fact about stored data. A server that refuses to start is not online to
21
+ * answer a capability query, and a bit speaks for the running server, not for what an older ledger holds, so no bit
22
+ * can ever exist for it: the version is the only reading, permanently, and the row never retires.
21
23
  *
22
24
  * Read a row with {@link serverHasBitlessSurface}.
23
25
  */
24
26
  import { cmpSemver, parseSemver } from "./server-version.js";
25
- /** The two kinds of a row: `retirable` (the row goes when a capability bit or a successor door arrives) · `version_only` (a start-up behaviour; no bit can exist, the version reading is permanent). */
27
+ /** The two kinds of a row: `retirable` (the row goes when a capability bit or a successor door arrives) · `version_only` (a start-up behaviour or a fact about stored data; no bit can exist, the version reading is permanent). */
26
28
  export const BITLESS_SURFACE_KINDS = Object.freeze(["retirable", "version_only"]);
27
29
  /**
28
30
  * The table. Frozen (the array and every row). A row is `{ id, since, kind, what }`:
@@ -44,6 +46,20 @@ export const BITLESS_SURFACES = Object.freeze([
44
46
  what: "A deployment with `MODEL_PROVIDER=anthropic` and no Anthropic route mounted (`ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN` both unset) refuses to start when the env model table is the one served, " +
45
47
  "from 7.148.0 even if an OpenAI-compatible gateway is configured (gap word `lane_credential_missing`, code `config.model_route_endpoint_missing`).",
46
48
  }),
49
+ Object.freeze({
50
+ id: "session_import_row_bits",
51
+ since: "7.125.0",
52
+ kind: "retirable",
53
+ what: "The session-sync import door (`POST /v1/sessions/:id/sync/import`, Phase A) accepts the body keys `title` and `pinned` from 7.125.0 and replays them onto the session row after the log has landed " +
54
+ "(on the `identical` arm and after the Phase B commit), a read-only mirror included; a server below 7.125.0 ignores both keys as unknown keys and its answer does not echo them.",
55
+ }),
56
+ Object.freeze({
57
+ id: "run_ledger_message_committed",
58
+ since: "7.154.0",
59
+ kind: "version_only",
60
+ what: "The run event ledger (`GET /v1/runs/:id/events`) carries the `message_committed` frame from 7.154.0, the same projection in the same order as the live stream; " +
61
+ "a ledger written by an earlier server has none and replays as written, so whether a given message has a commit frame is judged per message, never per run.",
62
+ }),
47
63
  ]);
48
64
  /**
49
65
  * Does the server at `serverVersion` have the bit-less surface `id`?
@@ -51,7 +67,13 @@ export const BITLESS_SURFACES = Object.freeze([
51
67
  * - `true` — the version is at or above the row's `since`;
52
68
  * - `false` — it is below;
53
69
  * - `"unknown"` — the version could not be read: `null` / `undefined` (for example an anonymous `GET /health` on a server that narrows anonymous reads does not carry `version`)
54
- * or not a bare `x.y.z[-pre]` string (a leading `v` is not accepted). Never read `"unknown"` as `false` when the surface is optional for you, and never as `true` when it is required.
70
+ * or not a bare `x.y.z[-pre]` string (a leading `v`, an empty string, a non-string, a partial `7.152` are not accepted). Never read `"unknown"` as `false` when the surface is optional for you, and never as `true` when it is required.
71
+ *
72
+ * **One input law for every input shape** (the package's one version parser): surrounding whitespace is **stripped** (`" 7.152.0\n"` reads as `7.152.0`); anything else that is not exactly `x.y.z[-pre]` is `"unknown"`.
73
+ * The reader never throws for a bad version string and never answers `false` for one; the only throw is an unknown `id`.
74
+ * Two different floors, kept apart: each row's `since` (the surface starts there) and the floor for *reading the server's version at all* — a deployment that has a service credential configured answers an anonymous `GET /health`
75
+ * with a narrowed body that has no `version` (server >= 7.148.0), so read it with the credential (`probeHealth(baseUrl, { token })`); an anonymous read that carries no `version` answers `"unknown"` here, not `false`.
76
+ * `true` says the server *knows* the surface; whether the deployment has it switched on is a separate reading (for the approval ask pair: `capabilities().approvals`).
55
77
  *
56
78
  * The comparison is the package's one semver comparison: a pre-release orders below its release (`7.152.0-rc.1` is below `7.152.0`).
57
79
  * An `id` that is not in the table throws a `RangeError` (a JavaScript caller naming a retired or misspelled row must not get a quiet third answer; a TypeScript caller cannot write it).
@@ -1 +1 @@
1
- {"version":3,"file":"bitless-surfaces.js","sourceRoot":"","sources":["../src/bitless-surfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE7D,wMAAwM;AACxM,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,cAAc,CAAU,CAAC,CAAC;AAI3F;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,WAAW;QACjB,IAAI,EACF,oLAAoL;YACpL,2JAA2J;YAC3J,4FAA4F;KACtF,CAAC;IACX,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,wBAAwB;QAC5B,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,IAAI,EACF,uMAAuM;YACvM,mJA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C,MAAM,CAAC;QACZ,EAAE,EAAE,wBAAwB;QAC5B,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,IAAI,EACF,uMAAuM;YACvM,mJAAmJ;KAC7I,CAAC;IACX,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,yBAAyB;QAC7B,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,WAAW;QACjB,IAAI,EACF,qMAAqM;YACrM,iLAAiL;KAC3K,CAAC;IACX,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,8BAA8B;QAClC,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,IAAI,EACF,iKAAiK;YACjK,4JAA4J;KACtJ,CAAC;CACH,CAAC,CAAC;AAOZ;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,uBAAuB,CAAC,aAAwC,EAAE,EAAoB;IACpG,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtD,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,MAAM,IAAI,UAAU,CAAC,+CAA+C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,kBAAkB,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1J,CAAC;IACD,IAAI,WAAW,CAAC,aAAa,CAAC,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC1D,OAAO,SAAS,CAAC,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC"}
package/dist/client.d.ts CHANGED
@@ -1,3 +1,13 @@
1
+ /**
2
+ * AgentClient — config + resource roots. This file is where the体系铁律 become STRUCTURAL constraints (so the
3
+ * design can't drift into the SDK):
4
+ * - principal-first (DESIGN §2.4): no anonymous-by-default — the SDK never mints an identity for the caller. `principal` is optional (absent = local single-user,
5
+ * no header sent; an empty string is refused outside same-origin-relay); the multi-tenant identity gate lives on the server.
6
+ * - secret discipline (DESIGN §2.5): `authToken` is a server-side construct param. The browser guard refuses
7
+ * to construct a token-bearing client when `window` exists — the SDK gives NO sugar for browser→worker
8
+ * direct calls (a web frontend's browser talks to its own BFF, which holds the token).
9
+ */
10
+ import { type ReadCallOptions } from "./transport.js";
1
11
  import { TasksResource } from "./resources/tasks.js";
2
12
  import { RunsResource } from "./resources/runs.js";
3
13
  import { SessionsResource } from "./resources/sessions.js";
@@ -179,17 +189,14 @@ export declare class AgentClient {
179
189
  private readonly transport;
180
190
  /** GET /v1/capabilities — one call replaces probe-by-501 (LIVE, service 7aa0f3d).
181
191
  * Open set; booleans share deps with the route gates. Render UI by capability, not by trial. */
182
- capabilities(opts?: {
183
- signal?: AbortSignal;
184
- }): Promise<Capabilities>;
192
+ capabilities(opts?: ReadCallOptions): Promise<Capabilities>;
185
193
  /** GET /v1/capabilities/scenario — **生效场景读面**(server ≥7.152.0;能力位 `capabilities().effectiveScenario`;键缺席 = 老 server,没有这张面,路由级 404 `not_found.route`):
186
194
  * 这次请求会生效**哪只场景**、它从**哪一层**来 → `{ scenario, source }`({@link EffectiveScenario};`source` ∈ `SCENARIO_SOURCES`)。不点名场景、要按名取场景卡的交互客户端先读它拿名字,
187
195
  * 再用 {@link scenarioCapabilities} 取卡。`opts.scenario` = 点名(查询串 `?scenario=<名>`;本客户端配置的场景头 `x-agent-scenario` 同样是点名,两者**不同**会被拒 `scenario_conflict`)。
188
196
  * 拒与同一请求形的提交拒体逐字同:400 `scenario_unknown` / `scenario_not_allowed` / `scenario_conflict`(重复 `?scenario=` ⇒ 400 `request.field_invalid`),503 `state.scenario_assignment_unknown` /
189
197
  * `state.scenario_assignment_unavailable`(指派悬空 / 中心答不出 —— 不回落任何缺省)。 */
190
- effectiveScenario(opts?: {
198
+ effectiveScenario(opts?: ReadCallOptions & {
191
199
  scenario?: string;
192
- signal?: AbortSignal;
193
200
  }): Promise<EffectiveScenario>;
194
201
  /** GET /v1/capabilities/scenarios/:name — one scenario's detail card (server = the `/v1/capabilities/scenarios/` branch in `src/http/routes/capabilities.ts`;
195
202
  * `capabilities().scenarios` lists the names, THIS resolves one to its {@link ScenarioDetail}: toolset/tools/
@@ -198,9 +205,7 @@ export declare class AgentClient {
198
205
  * APIError with `code === "scenario_not_found"`.
199
206
  * ⚠️ 纠正(2026-07-25):原注说这条 404 是 OBJECT 形 body(`{error:{code:…}}`)——server [939] 已把它统一成
200
207
  * 上面这个「字符串 error + 顶层 errorCode」邻位形(亲读 `src/http/routes/capabilities.ts`)。`code` 判据不变。 */
201
- scenarioCapabilities(name: string, opts?: {
202
- signal?: AbortSignal;
203
- }): Promise<ScenarioDetail>;
208
+ scenarioCapabilities(name: string, opts?: ReadCallOptions): Promise<ScenarioDetail>;
204
209
  /**
205
210
  * `GET /v1/capabilities/mcp` —— **无 run 可读的逐台 MCP 状态面**:这台部署**自己**申报的 MCP 服务器,
206
211
  * 逐台**现拨**(S-481,server ≥7.93.0;契约 §G.7e)。与 {@link capabilities} / {@link scenarioCapabilities}
@@ -219,9 +224,7 @@ export declare class AgentClient {
219
224
  * ⚠️ 探测是**真拨号**:server 侧每身份 12 次/60s + 同申报 30s 复用窗(`ttlSec`),超出 429
220
225
  * `limit.rate_exceeded`(体带 `retryAfterSec`,经 `APIError.extra` 读)。别把它挂在轮询循环上。
221
226
  */
222
- mcpCapabilities(opts?: {
223
- signal?: AbortSignal;
224
- }): Promise<McpProbeFace>;
227
+ mcpCapabilities(opts?: ReadCallOptions): Promise<McpProbeFace>;
225
228
  /**
226
229
  * `POST /v1/capabilities/mcp/probe` —— 探**调用方自带**的 MCP 申报(壳的 `.mcp.json`),回 {@link mcpCapabilities}
227
230
  * **逐字同一只**体(S-481,server ≥7.93.0)。体 = `{ mcpServers }`,元素就是提交腿那一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AC,QAAQ,CAAC,MAAM,CAAoB;IAC3C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IAEtC;qGACiG;IACjG,YAAY,CAAC,IAAI,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC;IAI3D;;;;4EAIwE;IACxE,iBAAiB,CAAC,IAAI,CAAC,EAAE,eAAe,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK7F;;;;;;+FAM2F;IAC3F,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IAQnF;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CAAC,IAAI,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9D;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC;IAS7F;;gLAE4K;IAC5K,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,WAAW;IAKhD;uDACmD;IACnD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW;gBAKjC,MAAM,EAAE,iBAAiB;CAqGtC"}
package/dist/client.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * to construct a token-bearing client when `window` exists — the SDK gives NO sugar for browser→worker
8
8
  * direct calls (a web frontend's browser talks to its own BFF, which holds the token).
9
9
  */
10
- import { Transport } from "./transport.js";
10
+ import { readCall, Transport } from "./transport.js";
11
11
  import { toApiError } from "./errors.js";
12
12
  import { TasksResource } from "./resources/tasks.js";
13
13
  import { RunsResource } from "./resources/runs.js";
@@ -134,7 +134,7 @@ export class AgentClient {
134
134
  /** GET /v1/capabilities — one call replaces probe-by-501 (LIVE, service 7aa0f3d).
135
135
  * Open set; booleans share deps with the route gates. Render UI by capability, not by trial. */
136
136
  capabilities(opts) {
137
- return this.transport.request({ method: "GET", path: "/v1/capabilities", signal: opts?.signal });
137
+ return this.transport.request({ method: "GET", path: "/v1/capabilities", ...readCall(opts) });
138
138
  }
139
139
  /** GET /v1/capabilities/scenario — **生效场景读面**(server ≥7.152.0;能力位 `capabilities().effectiveScenario`;键缺席 = 老 server,没有这张面,路由级 404 `not_found.route`):
140
140
  * 这次请求会生效**哪只场景**、它从**哪一层**来 → `{ scenario, source }`({@link EffectiveScenario};`source` ∈ `SCENARIO_SOURCES`)。不点名场景、要按名取场景卡的交互客户端先读它拿名字,
@@ -143,7 +143,7 @@ export class AgentClient {
143
143
  * `state.scenario_assignment_unavailable`(指派悬空 / 中心答不出 —— 不回落任何缺省)。 */
144
144
  effectiveScenario(opts) {
145
145
  const q = opts?.scenario === undefined ? "" : `?scenario=${encodeURIComponent(opts.scenario)}`;
146
- return this.transport.request({ method: "GET", path: `/v1/capabilities/scenario${q}`, signal: opts?.signal });
146
+ return this.transport.request({ method: "GET", path: `/v1/capabilities/scenario${q}`, ...readCall(opts) });
147
147
  }
148
148
  /** GET /v1/capabilities/scenarios/:name — one scenario's detail card (server = the `/v1/capabilities/scenarios/` branch in `src/http/routes/capabilities.ts`;
149
149
  * `capabilities().scenarios` lists the names, THIS resolves one to its {@link ScenarioDetail}: toolset/tools/
@@ -156,7 +156,7 @@ export class AgentClient {
156
156
  return this.transport.request({
157
157
  method: "GET",
158
158
  path: `/v1/capabilities/scenarios/${encodeURIComponent(name)}`,
159
- signal: opts?.signal,
159
+ ...readCall(opts),
160
160
  });
161
161
  }
162
162
  /**
@@ -178,7 +178,7 @@ export class AgentClient {
178
178
  * `limit.rate_exceeded`(体带 `retryAfterSec`,经 `APIError.extra` 读)。别把它挂在轮询循环上。
179
179
  */
180
180
  mcpCapabilities(opts) {
181
- return this.transport.request({ method: "GET", path: "/v1/capabilities/mcp", signal: opts?.signal });
181
+ return this.transport.request({ method: "GET", path: "/v1/capabilities/mcp", ...readCall(opts) });
182
182
  }
183
183
  /**
184
184
  * `POST /v1/capabilities/mcp/probe` —— 探**调用方自带**的 MCP 申报(壳的 `.mcp.json`),回 {@link mcpCapabilities}
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,SAAS,EAAyB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAChJ,OAAO,EAAE,cAAc,EAAE,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