@sema-agent/sdk 47.0.0 → 48.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 (43) hide show
  1. package/README.md +80 -0
  2. package/dist/boot-refusal/index.d.ts +67 -0
  3. package/dist/boot-refusal/index.d.ts.map +1 -0
  4. package/dist/boot-refusal/index.js +36 -0
  5. package/dist/boot-refusal/index.js.map +1 -0
  6. package/dist/boot-refusal/tables.d.ts +491 -0
  7. package/dist/boot-refusal/tables.d.ts.map +1 -0
  8. package/dist/boot-refusal/tables.js +175 -0
  9. package/dist/boot-refusal/tables.js.map +1 -0
  10. package/dist/errors.d.ts +28 -6
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +22 -3
  13. package/dist/errors.js.map +1 -1
  14. package/dist/events.d.ts +70 -25
  15. package/dist/events.d.ts.map +1 -1
  16. package/dist/events.js +12 -0
  17. package/dist/events.js.map +1 -1
  18. package/dist/index.d.ts +9 -2
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +6 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/resources/approvals.d.ts +2 -1
  23. package/dist/resources/approvals.d.ts.map +1 -1
  24. package/dist/resources/approvals.js.map +1 -1
  25. package/dist/resources/sessions.d.ts +5 -2
  26. package/dist/resources/sessions.d.ts.map +1 -1
  27. package/dist/resources/sessions.js +4 -1
  28. package/dist/resources/sessions.js.map +1 -1
  29. package/dist/resources/tasks.d.ts +12 -1
  30. package/dist/resources/tasks.d.ts.map +1 -1
  31. package/dist/resources/tasks.js +12 -1
  32. package/dist/resources/tasks.js.map +1 -1
  33. package/dist/resources/tool-approvals.d.ts +3 -1
  34. package/dist/resources/tool-approvals.d.ts.map +1 -1
  35. package/dist/resources/tool-approvals.js.map +1 -1
  36. package/dist/settings.d.ts +3 -2
  37. package/dist/settings.d.ts.map +1 -1
  38. package/dist/types.d.ts +119 -8
  39. package/dist/types.d.ts.map +1 -1
  40. package/dist/types.js +18 -1
  41. package/dist/types.js.map +1 -1
  42. package/openapi.yaml +213 -11
  43. package/package.json +5 -1
package/dist/types.js CHANGED
@@ -166,12 +166,21 @@ export const AUTO_MODE_REFUSED_BY = Object.freeze(["center.autoMode"]);
166
166
  * `message_committed.noteKey` 同值)· 恒 `false` 的词读作「这台服务不保证」,别据它开相应的读法。
167
167
  * `task.agent_config_dirs` / `task.agent_home_dirs`(这台部署受理请求的 `settings.agentConfigDirs` / `settings.agentHomeDirs` —— 只在工具跑在本机的部署上 `true`,云上沙箱 / 设备 / ssh / adb / 无手车道 `false`;
168
168
  * 见 {@link import("./settings.js").SemaSettings.agentConfigDirs})。🔴 **见位才发**:位不是严格 `true` 时别带那两只键(非 host 部署答 400 `request.field_invalid`,`reason: "lane_not_host"`)。
169
+ * · 引擎 7.70.0 的九词(server ≥7.157.0 投;**server 7.157.0 九词恒投 `false`** —— 这台服务没接那几只座,读作「这台服务不保证」):
170
+ * `task.continues_from`(引擎在 run 结果上交出「下一次从哪接着跑」的值;本服务提交口的 `resumeAt` 收的是本服务铸的事件手柄,不收引擎的那个值)·
171
+ * `execution_env.workspace_sync`(引擎调执行环境的工作区同步座;本服务的执行环境适配器不带这只座)·
172
+ * `session.rewind_conversation`(引擎的「收回对话」入口;本服务收回一轮走提交口的 `resumeAt` + {@link TaskRequest.resumeAtMode})·
173
+ * `instruction_family.external_includes` / `instruction_family.host_text` / `instruction_family.local_files`(指令文件族声明的三只成员;本服务交给引擎的声明不写它们)·
174
+ * `session_changes.checkpoints` / `session_changes.git`(引擎读一个会话改了什么的两种来源;本服务没有对应的口)·
175
+ * `artifact_host.libraries`(Artifact 宿主声明可用的库;本服务不挂 Artifact 宿主座)。在引擎序里前八词插在 `task_notification.note_key` 之后,`artifact_host.libraries` 在最末。
169
176
  * 一处派生:{@link EngineCapabilityBits} 与 {@link Capabilities} 的能力词键都由本数组生成 —— 引擎加词时这里加一项、其余零手写;
170
177
  * 缺席 = 老 server(≤7.128.x)或这一词没接线 ⇒ **读作「不保证」**,不是「不具备」。
171
178
  */
172
179
  export const ENGINE_CAPABILITY_WORDS = Object.freeze([
173
180
  "inherit_env.own_credentials_withheld", "inherit_env.own_credential_values_withheld", "mods.skill_seat", "user_attachments.read_state", "task.wake", "file_history.recorded_place",
174
- "ask.workflow_member", "task.fast_mode", "user_attachments.instruction_access", "task_notification.note_key", "task.agent_config_dirs", "task.agent_home_dirs",
181
+ "ask.workflow_member", "task.fast_mode", "user_attachments.instruction_access", "task_notification.note_key", "task.continues_from", "execution_env.workspace_sync",
182
+ "session.rewind_conversation", "instruction_family.external_includes", "instruction_family.host_text", "instruction_family.local_files", "session_changes.checkpoints",
183
+ "session_changes.git", "task.agent_config_dirs", "task.agent_home_dirs", "artifact_host.libraries",
175
184
  ]);
176
185
  /** 店持久性三态闭集(server ≥7.148.0 `STORE_DURABILITIES`;caps `store.durability` 与 `/health.store.durability` 同读;门钉对钉版发布字节)。`unknown` = 判不出,不是「持久」。 */
177
186
  export const STORE_DURABILITIES = Object.freeze(["durable", "ephemeral", "unknown"]);
@@ -334,6 +343,14 @@ export const MEMORY_ERASURE_CARRIER_CLASSES = Object.freeze(["projection", "shad
334
343
  * 冻结(`Object.freeze`):开集读者对它 `satisfies Record<WorkflowParkDecisionReceiptStatus, …>` 做两向穷举。
335
344
  */
336
345
  export const WORKFLOW_PARK_DECISION_RECEIPT_STATUSES = Object.freeze(["recorded", "delivered"]);
346
+ /** `read: "unread"` 的原因(server ≥7.157.0,自铸闭集 `sealedKeyImportUnreadWhy`):`unreadable` 不是目录 / 列不出 · `overlap` 某两只目录(保管目录两域与各源两域)是同一只 · `not_run` 这个域没跑导入(保管目录不可用)。 */
347
+ export const SEALED_KEY_IMPORT_UNREAD_WHYS = Object.freeze(["unreadable", "overlap", "not_run"]);
348
+ /**
349
+ * 一份候选没被持有的原因(server ≥7.157.0,自铸闭集 `sealedKeyImportRefusedWhy`):`untrusted` 不是常规文件本身或过不了可信判官 · `unreadable` 装载器跳过的那一类 ·
350
+ * `unpaired` 私钥推不出文件里的公钥 · `conflict` 同 id 不同材料(不覆盖)· `name_taken` 保管目录里已有同名文件(内容是另一把钥匙,不覆盖)·
351
+ * `unproven` 发布失败,或最终装载里没有它 / 落盘证明不过 · `lock_held` 写锁一直被占到期、没发布。
352
+ */
353
+ export const SEALED_KEY_IMPORT_REFUSED_WHYS = Object.freeze(["untrusted", "unreadable", "unpaired", "conflict", "name_taken", "unproven", "lock_held"]);
337
354
  /** 建连期失败码六只(server `OUTBOUND_CONNECT_FAILURE_CODES` 的键,逐码同序):建连截止 `UND_ERR_CONNECT_TIMEOUT` 与 OS 的拒连 / 解析不了 / 无路由。冻结。 */
338
355
  export const OUTBOUND_CONNECT_FAILURE_CODES = Object.freeze(["UND_ERR_CONNECT_TIMEOUT", "ECONNREFUSED", "ENOTFOUND", "EAI_AGAIN", "EHOSTUNREACH", "ENETUNREACH"]);
339
356
  // ═══════════════════════════════════════════════════════════════════════════════════════════════
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA0EA;;;;;;;;;;;;;;;;;;;;;;;;;qEAyBqE;AACrE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAU,CAAC;AAErH,6JAA6J;AAC7J,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,CAAU,CAAC,CAAC;AAyInE;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC;AA42B/D;;;;;;;;;;;;;;;;GAgBG;AACH,yJAAyJ;AACzJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAU,CAA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
@@ -2801,6 +2801,9 @@ paths:
2801
2801
  `near_miss` a near-miss of a valid form · `earlier_grammar` (engine 7.51.2) a body echoed back with its `rev` but no `grammar` stamp is read in the stored row's grammar 0, where a rule-spelled allow entry named no tool — send the three buckets alone to write in the current grammar), `verdict` (optional; only on `tool_name`: `retired` an engine-retired name / `unprefixed_namespace` a `__` name without a protocol prefix / `unmintable_segment` a protocol
2802
2802
  name whose peer segment or tool segment the engine cannot mint, or whose tool segment is EMPTY — `mcp__<server>__`, `a2a__<peer>__`), `currentName` (optional; present when there is a 1:1 successor, e.g. `bash` => `Bash`), `guidance` (optional; the engine judge's wording
2803
2803
  of the fix, byte for byte — carried by `retired` and `unmintable_segment`). The sentence is the engine's own: match on the code. Rewrite that entry and write again.
2804
+ Server >= 7.157.0 (engine 7.70.0): a retired name WITH a successor (`Task` => `Agent`, `bash` => `Bash`) is accepted by both write doors, stored as written and read as its successor
2805
+ (before, this code with `verdict: retired` + `currentName`); a stored row's such entry is live too, so a non-operator owner removing a live deny gets `403 loosen_forbidden` (an operator write can remove it).
2806
+ A retired name WITHOUT a successor (`MultiEdit`) is still this code with `verdict: retired`, `guidance` and no `currentName`.
2804
2807
  `rules.invalid_shape`: the rules body itself has the wrong shape — not an object (`rules` absent, `null`, an array, a scalar), a key that is not a bucket (including the RETIRED `commandAllow` / `commandDeny`:
2805
2808
  never silently dropped, a dropped deny is enforced by nobody), a bucket that is not a list of strings, an `allowDirs` member that is empty / blank. Body keys: `field` (which key; the empty string when the
2806
2809
  body as a whole is not an object), `got` (the TYPE of that value, e.g. `a string` / `not a rule bucket` — the value is never echoed); `error` is the engine's sentence.
@@ -11282,15 +11285,42 @@ components:
11282
11285
  task_notification.note_key:
11283
11286
  type: boolean
11284
11287
  description: 'ENGINE CAPABILITY WORD (tenth; server >= 7.155.0 projects it, always `false`): every `task_notification` the engine pushes states `noteKey`. A false word = this service does not promise it. ABSENT = an older server.'
11288
+ task.continues_from:
11289
+ type: boolean
11290
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0, eleventh in its order; server >= 7.157.0 projects it, always `false`): the engine hands back on a run result the value to continue from next time. This service''s submit door takes `resumeAt` as an event handle this service minted, never the engine''s value — so it does not promise the word. ABSENT = an older server.'
11291
+ execution_env.workspace_sync:
11292
+ type: boolean
11293
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): the engine calls the execution environment''s workspace-sync seat. This service''s execution-environment adapters carry no such seat. ABSENT = an older server.'
11294
+ session.rewind_conversation:
11295
+ type: boolean
11296
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): the engine''s conversation-rewind entry. This service has no door that calls it (taking a turn back goes through the submit door''s `resumeAt` + `resumeAtMode`). ABSENT = an older server.'
11297
+ instruction_family.external_includes:
11298
+ type: boolean
11299
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): a member of the instruction-file family declaration. The declaration this service hands the engine does not write it. ABSENT = an older server.'
11300
+ instruction_family.host_text:
11301
+ type: boolean
11302
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): a member of the instruction-file family declaration. The declaration this service hands the engine does not write it. ABSENT = an older server.'
11303
+ instruction_family.local_files:
11304
+ type: boolean
11305
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): a member of the instruction-file family declaration. The declaration this service hands the engine does not write it. ABSENT = an older server.'
11306
+ session_changes.checkpoints:
11307
+ type: boolean
11308
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): one of the two sources the engine reads "what this session changed" from. This service has no door for it. ABSENT = an older server.'
11309
+ session_changes.git:
11310
+ type: boolean
11311
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): one of the two sources the engine reads "what this session changed" from. This service has no door for it. ABSENT = an older server.'
11285
11312
  task.agent_config_dirs:
11286
11313
  type: boolean
11287
11314
  description: >-
11288
- ENGINE CAPABILITY WORD (eleventh; server >= 7.155.0): this deployment ACCEPTS the request seat `settings.agentConfigDirs` (the caller's configuration roots; see
11315
+ ENGINE CAPABILITY WORD (eleventh up to engine 7.69.x, nineteenth from engine 7.70.0; server >= 7.155.0): this deployment ACCEPTS the request seat `settings.agentConfigDirs` (the caller's configuration roots; see
11289
11316
  `TaskRequest.settings`) — `true` only where the tools run on this host; `false` on cloud sandbox / device / ssh / adb / handless lanes (a non-empty list there is
11290
11317
  400 `request.field_invalid` with `reason: lane_not_host`). Send the key only when this is strictly `true`. ABSENT = an older server (the key is 400 `request.body_shape`).
11291
11318
  task.agent_home_dirs:
11292
11319
  type: boolean
11293
- description: 'ENGINE CAPABILITY WORD (twelfth; server >= 7.155.0): this deployment accepts `settings.agentHomeDirs` (the caller''s homes) — same deployment column and the same reading as `task.agent_config_dirs`.'
11320
+ description: 'ENGINE CAPABILITY WORD (twelfth up to engine 7.69.x, twentieth from engine 7.70.0; server >= 7.155.0): this deployment accepts `settings.agentHomeDirs` (the caller''s homes) — same deployment column and the same reading as `task.agent_config_dirs`.'
11321
+ artifact_host.libraries:
11322
+ type: boolean
11323
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0, last in its order; server >= 7.157.0 projects it, always `false`): the libraries an Artifact host declares available. This service mounts no Artifact host seat. ABSENT = an older server.'
11294
11324
  credentialPlane:
11295
11325
  allOf: [{ $ref: '#/components/schemas/CredentialPlaneCapability' }]
11296
11326
  description: >-
@@ -19233,10 +19263,10 @@ components:
19233
19263
  # 每只闭集 = 引擎今天的词 ∪ 引擎退役词表里那一集。这五张 enum 与引擎 `RETIRED_MEMBERS` 逐集逐词同(由 `server-7129-wire` 对拍);卡面 / 队列行 / 请求面的同名闭集只取今天的词。
19234
19264
  GateRecordAskClass:
19235
19265
  type: string
19236
- enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, policy_rra, artifact_shared_read, mode, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary, write_protection_unresolved, governance_unavailable]
19266
+ enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, unfinished_check, policy_rra, artifact_shared_read, mode, a2a_inside, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary, write_protection_unresolved, governance_unavailable]
19237
19267
  description: >-
19238
19268
  The class word on a GATE RECORD (`tool_end.gate.disposition.askClass` / `.classes` on the mode-refusal arm, `ModeRelease.askClass` / `.classes`) — server >= 7.129.0 reads the record as an ARCHIVE:
19239
- today's `AskClass` set (thirty-one words; `org_unreadable` / `call_unreadable` / `sandbox_override` / `sandbox_network` from server >= 7.155.0, `write_protection_on_disk` from server >= 7.138.0, `cross_boundary` from server >= 7.134.0) PLUS the words the engine retired (`write_protection_unresolved`, retired in core 7.49.0 — renamed `target_unresolved`; `governance_unavailable`,
19269
+ today's `AskClass` set (thirty-three words; `unfinished_check` / `a2a_inside` from server >= 7.157.0, `org_unreadable` / `call_unreadable` / `sandbox_override` / `sandbox_network` from server >= 7.155.0, `write_protection_on_disk` from server >= 7.138.0, `cross_boundary` from server >= 7.134.0) PLUS the words the engine retired (`write_protection_unresolved`, retired in core 7.49.0 — renamed `target_unresolved`; `governance_unavailable`,
19240
19270
  retired in core 7.51.0 — merged into `rule_unreadable`). A record the previous engine generation legally wrote is replayed byte for byte (a 7.50.x mode refusal can carry `governance_unavailable`);
19241
19271
  a word NO engine generation ever minted (a case variant, the empty string, a future word) withholds the whole `gate` and counts `server.trace.gate-outcome-defective`.
19242
19272
  Render a known archive word normally and an unknown one generically; never drop the record because the word is not in today's set.
@@ -19546,9 +19576,10 @@ components:
19546
19576
  `UNATTENDED_PERMISSION_MODE=dontAsk`).
19547
19577
  AskClass:
19548
19578
  type: string
19549
- enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, policy_rra, artifact_shared_read, mode, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary]
19579
+ enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, unfinished_check, policy_rra, artifact_shared_read, mode, a2a_inside, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary]
19550
19580
  description: >
19551
- core `ASK_CLASSES` (THIRTY-ONE words as of engine 7.69.0 / server >= 7.155.0: `org_unreadable` / `call_unreadable` joined beside `rule_unreadable`, `sandbox_override` /
19581
+ core `ASK_CLASSES` (THIRTY-THREE words as of engine 7.70.0 / server >= 7.157.0: `unfinished_check` joined after `tool_marks_a2a` and `a2a_inside` after `mode` — see below;
19582
+ THIRTY-ONE words as of engine 7.69.0 / server >= 7.155.0: `org_unreadable` / `call_unreadable` joined beside `rule_unreadable`, `sandbox_override` /
19552
19583
  `sandbox_network` joined after `mode`, and `unverifiable_delete` / `unverifiable_shell_text` moved to just after `mode` — see below;
19553
19584
  TWENTY-SEVEN as of core 7.58.0 / server >= 7.138.0: `write_protection_on_disk` joined after `probe`, before `write_protection` — see below;
19554
19585
  TWENTY-SIX as of core 7.54.0 / server >= 7.134.0: `cross_boundary` joined after `requires_user_interaction` — the device lane's
@@ -19604,8 +19635,15 @@ components:
19604
19635
  `shell_floor` =the operator's `shellGate: "always"` floor on a shell-running seat (the question the `operator_always` mandate
19605
19636
  word discloses), a class of its own so a set that holds another forced question still holds it; like `operator_forced` it is
19606
19637
  bypass-IMMUNE (not releasable).
19607
- CLOSED: the card / queue-row / request faces carry exactly today's thirty-one words; the GATE RECORD (`tool_end.gate` and the replay faces) carries today's words PLUS the engine's retired words (`GateRecordAskClass`). `bypassPermissions` releases only the RELEASABLE classes (core
19608
- `releasableAskClassesFor(face)`). Server >= 7.155.0 (engine 7.69.0): shell 16, other faces 15 — the ten below plus, on every face, `rule_unreadable` (now only the person's
19638
+ `unfinished_check` (engine 7.70.0, server >= 7.157.0) = the read station's check that DID NOT FINISH: the environment left a lookup of the command's reads unanswered, or the
19639
+ station's own judgment timed out or threw, so the safety checks on what the command reads did not run. Only a person answers it under every mode (no classifier, no allow
19640
+ rule, no unattended leg); the ask carries `requiresRealApproval: true` and this class explains that bit. bypass-IMMUNE.
19641
+ `a2a_inside` (engine 7.70.0, server >= 7.157.0) = a call to an A2A peer registered INSIDE the trust boundary (no egress mark stands on it): only a grant bound to the peer's
19642
+ CURRENT identity stamp clears it — a standing rule without that stamp, a hook's allow and a skill's grant never do. It is not a mandate: the auto-mode classifier answers it,
19643
+ `bypassPermissions` releases it (RELEASABLE), and a person's answer is a plain one.
19644
+ CLOSED: the card / queue-row / request faces carry exactly today's thirty-three words; the GATE RECORD (`tool_end.gate` and the replay faces) carries today's words PLUS the engine's retired words (`GateRecordAskClass`). `bypassPermissions` releases only the RELEASABLE classes (core
19645
+ `releasableAskClassesFor(face)`). Server >= 7.157.0 (engine 7.70.0): shell 17, other faces 16 — the generation below plus `a2a_inside` on every face (`unfinished_check` is
19646
+ bypass-IMMUNE). Server 7.155.0 – 7.156.x (engine 7.69.x): shell 16, other faces 15 — the ten below plus, on every face, `rule_unreadable` (now only the person's
19609
19647
  own rules being unreadable: a release mode releases it, `auto` asks the classifier), `unverifiable_delete` / `unverifiable_shell_text` (an ordinary ask since server 7.154.5:
19610
19648
  an allow rule clears it, `auto` asks the classifier, `dontAsk` refuses) and the two new classes `sandbox_override` / `sandbox_network`; the shell face still adds
19611
19649
  `target_unresolved`. The same generation's classifier also answers `rule_unreadable` / `write_protection_on_disk` / `artifact_shared_read` (a person did before).
@@ -19618,7 +19656,7 @@ components:
19618
19656
  by any mode (bypass asks too, and the run gets one `permission.rule_store_unavailable` notice). Server 7.122.0–7.126.x (core 7.47.0–7.49.x) also
19619
19657
  released `rule_unreadable` on every face: ten RELEASABLE classes plus an eleventh on the SHELL face (shell 11, other faces 10). Up to 7.121.x the
19620
19658
  `RELEASABLE_ASK_CLASSES` constant (deleted in core 7.47.0) held ten, face-blind. Every other class (deployment-authored `operator_forced`, ask / org
19621
- rules, hook, ancestor, content question, `unverifiable_shell_text` up to server 7.154.4, `org_unreadable` / `call_unreadable` from server 7.155.0, …) asks under every mode.
19659
+ rules, hook, ancestor, content question, `unverifiable_shell_text` up to server 7.154.4, `org_unreadable` / `call_unreadable` from server 7.155.0, `unfinished_check` from server 7.157.0, …) asks under every mode.
19622
19660
  GateClassifierAsked:
19623
19661
  type: object
19624
19662
  additionalProperties: false
@@ -20056,7 +20094,10 @@ components:
20056
20094
  core >= 5.55.0 (#333) — WHICH tool call a durable park is holding, minted by the engine from the
20057
20095
  committed checkpoint''s pending action (a tool may not self-report it). Present only on a park
20058
20096
  frame; absent on a park that holds no tool call (resource_limit / plan_review / task_done) —
20059
- ABSENT, never guessed.
20097
+ ABSENT, never guessed. Server >= 7.157.0 (engine 7.70.0): the held call's own placeholder frame (`gatedCallId` = its own
20098
+ `toolCallId`) is `isError: false` + `notExecuted: true` + a "not run yet" sentence ("not answered yet" on a question card);
20099
+ `errorCode: "gate.parked"` and this key stay; the other calls the park cut short stay `isError: true`. Read a park by
20100
+ `errorCode: "gate.parked"`, not by `isError`.
20060
20101
  # 🔴 core >=5.9.0 (W3 / [2535]). OPEN SET — deliberately a bare `type: string`, NOT an enum.
20061
20102
  # This arm is `additionalProperties: false`, and the server's `toolEndEventData` has been emitting
20062
20103
  # `errorCode` since 5.9.0, so omitting it made every legitimate frame carrying one fail strict
@@ -20561,6 +20602,15 @@ components:
20561
20602
  server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
20562
20603
  It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
20563
20604
  items: { $ref: '#/components/schemas/WiringManifestSkill' }
20605
+ shadowedSkills:
20606
+ type: array
20607
+ items: { type: string }
20608
+ description: >-
20609
+ server >= 7.157.0 (server-minted section; present with `skills` and absent with it): the request body's `skills[]` entries NOT handed to the
20610
+ engine because the name was already taken, one item each, in request order; names compared byte for byte. The taker is the first same-named
20611
+ entry of this frame's `skills` (`factory` / `center` = shadowed by a deployment skill; `request` = a duplicate within the request). `[]` = none
20612
+ dropped (including `disableSkills: true`); absent is never `[]` (a ledger row an older server wrote replays with `skills` alone; child frames carry
20613
+ neither).
20564
20614
  ask:
20565
20615
  $ref: '#/components/schemas/WiringManifestAsk'
20566
20616
  question:
@@ -21248,6 +21298,17 @@ components:
21248
21298
  detail's free-text redaction and truncation); a `reason` word outside the closed set drops the pair as a whole, so `reason` is PRESENT IFF its word is in the closed set (read `reason` as optional; servers before 7.150.0 always carry it), and `authorizeUrl` is not let through today (always absent). `server` / `principal` / `sessionId` / `runId` stay as they were. NOT on the user whitelist, though core's register holds it: `route.credential_rebound` (the HOST moved a per-model credential's binding, outside any run) is audience `operator` (core 7.59.0 through 7.68.2) — it never reaches this stream.
21249
21299
  `model.role_defaulted` (a role seat names a model word the catalog does not hold, so the role reads as unset and the run goes on) was audience `operator` in core 7.59.0 - 7.66.x and is `user` since core 7.67.0:
21250
21300
  server >= 7.153.0 puts it on the stream, `{ seat, role, model, reason, fallback, sessionId, runId? }` (`reason` is `unknown_model_ref` today; read it OPEN).
21301
+ server >= 7.157.0 (engine 7.70.0; whitelist 73 → 85 codes): five codes are RETIRED (zero alias) into one, `config.entries_not_applied` ("an entry the person
21302
+ wrote did not apply"), `detail: { kind, entries, count, identity, sessionId, runId?, … }` with `kind` in the engine's seven words (`stored_rule_row`,
21303
+ `rule_text_unreadable`, `mcp_injection_dropped`, `model_word_unknown`, `allow_entry_inert`, `session_rule_unread`, `session_rule_named_no_tool`; read it OPEN):
21304
+ `mcp.injection_dropped` ⇒ `mcp_injection_dropped`, `permission.allowed_tool_not_granted` ⇒ `allow_entry_inert`, `permission.rule_row_dropped` ⇒
21305
+ `stored_rule_row`, `permission.settings_rules_skipped` ⇒ `rule_text_unreadable`, `model.role_defaulted` ⇒ `model_word_unknown`; what the person wrote is in
21306
+ `detail.entries[].entry` (the redacted original, the same reading as every rule-text code). Sixteen user codes join the whitelist:
21307
+ `config.skill_deny_unreadable`, `config.session_rules_reread`, `mods.stop_continue_dropped`, `peer.inbound_unread`, `peer.notice_user_only`,
21308
+ `peer.receipt_delivered_user_only`, `peer.held_approval_unhonored`, `peer.held_decision_applied`, `peer.idle_subscription_declined`,
21309
+ `classifier.unavailable_handed_on`, `classifier.review_skipped`, `mcp.server_connecting`, `route.stream_content_dropped`, `mods.turn_aborted`,
21310
+ `mods.turn_abort_unconsumed`, `memory.capture_switched_off` (render by `message` when a code is not known). The paragraphs on the five retired codes
21311
+ describe servers <= 7.156.x.
21251
21312
  Value change: `permission.rule_row_dropped`'s `detail.rows[].rule` is, since core 7.53.0, the rule's original text (the same reading as
21252
21313
  `allowed_tool_not_granted`'s `entries[].entry`: at most 1 024 code points, longer cut to 1 024 + a truncation mark, CONTROL CHARACTERS RIDE AS DATA —
21253
21314
  neutralize at render); before it was the engine-neutralized single-line form (at most 201 code points). Same keys.
@@ -21763,8 +21824,15 @@ components:
21763
21824
  type: array
21764
21825
  description: >-
21765
21826
  server >= 7.154.0 (engine 7.68.0): the asks of this background task that nobody could answer and that were refused, one entry per refused call (the same facts as the result`s `refusedAsks`);
21766
- `toolName` / `remedy` pass the egress seat. present-iff at least one was refused.
21827
+ `toolName` / `remedy` pass the egress seat. present-iff at least one was refused. Server >= 7.157.0 (engine 7.70.0) lists the first 20 only; the rest is counted in `refusedAsksUnlisted`.
21767
21828
  items: { $ref: '#/components/schemas/RefusedAsk' }
21829
+ refusedAsksUnlisted:
21830
+ type: integer
21831
+ minimum: 1
21832
+ description: >-
21833
+ server >= 7.157.0 — how many refused asks were NOT listed (a positive integer; the engine's member outcome `unlisted`). Present ⇒ `refusedAsks`
21834
+ is present and incomplete; `refusedAsks` present with this key absent = the engine listed them all (20 or fewer). Neither key is sent when the
21835
+ count cannot be read. Live frame, ledger row (`GET /v1/runs/:id/events`) and the parked back-fill frame carry the same shape.
21768
21836
  noteKey: { type: string, description: 'server >= 7.156.0 (engine word `task_notification.note_key` true) — the key this notification was handed to the model with: the same value as the `noteKey` of the committed row (`message_committed`, `origin: queued_note`); join frame and row by value. Absent = an older server / an older ledger row.' }
21769
21837
  summary: { type: string, description: 'UNTRUSTED display text.' }
21770
21838
  sessionId: { type: string }
@@ -25187,6 +25255,15 @@ components:
25187
25255
  server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
25188
25256
  It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
25189
25257
  items: { $ref: '#/components/schemas/WiringManifestSkill' }
25258
+ shadowedSkills:
25259
+ type: array
25260
+ items: { type: string }
25261
+ description: >-
25262
+ server >= 7.157.0 (server-minted section; present with `skills` and absent with it): the request body's `skills[]` entries NOT handed to the
25263
+ engine because the name was already taken, one item each, in request order; names compared byte for byte. The taker is the first same-named
25264
+ entry of this frame's `skills` (`factory` / `center` = shadowed by a deployment skill; `request` = a duplicate within the request). `[]` = none
25265
+ dropped (including `disableSkills: true`); absent is never `[]` (a ledger row an older server wrote replays with `skills` alone; child frames carry
25266
+ neither).
25190
25267
  ask:
25191
25268
  $ref: '#/components/schemas/WiringManifestAsk'
25192
25269
  question:
@@ -25867,6 +25944,131 @@ components:
25867
25944
  The OUTBOUND segment (the server has sent it since 7.108.0; declared here from this version): which variable supplies the effective proxy
25868
25945
  (the NAME, never the value), whether `NO_PROXY` is set, whether the loopback-direct rule is in effect in this runtime, when the proxy variables
25869
25946
  were read, and this process's last connect failure — the same facts as the ops log line `outbound_connect_failed`. `null` = this process cannot say.
25947
+ storeDurability:
25948
+ $ref: '#/components/schemas/StoreDurabilityWiring'
25949
+ description: >-
25950
+ server >= 7.148.0 (the server has sent it since then; declared here from 48.0.0) — store durability: the three-state summary plus the per-root
25951
+ detail. Same assembled value as the capability `store.durability` / `store.weakest` and `/health.store`; the per-root paths, mount points, mount
25952
+ sources and filesystem types appear on this operator face only. Absent = an older server.
25953
+ executionLane:
25954
+ $ref: '#/components/schemas/Capabilities/properties/executionLane'
25955
+ description: >-
25956
+ server >= 7.106.0 (the server has sent it since then; declared here from 48.0.0) — the execution lane's self-report, produced by the SAME
25957
+ projection as the capability `executionLane` (operator face and caller face agree by construction). Absent = an older server.
25958
+ sealedKeyCustody:
25959
+ oneOf:
25960
+ - $ref: '#/components/schemas/SealedKeyCustody'
25961
+ - type: 'null'
25962
+ description: >-
25963
+ server >= 7.157.0 — sealed-key custody read-back: the key ids each of this process's two domains holds, and the `SEALED_KEY_IMPORT_FROM` import
25964
+ reading. Ids only — key bytes and custody paths are not in this shape. `null` = this process cannot say (it was not assembled by the service entry);
25965
+ absent = an older server. To check two engines hold the same keys, read both engines' `held` (no promise they hold the same set at the same moment).
25966
+ StoreDurabilityWiring:
25967
+ type: object
25968
+ additionalProperties: false
25969
+ description: >-
25970
+ `WiringDiagnostics.storeDurability` (server >= 7.148.0; server `StoreDurabilityWiring`, mint `projectStoreDurabilityWiring`): `durability` = the
25971
+ weakest of the roots (the capability `store.durability`); `roots` = per-root verdicts in the order data root, sealed key directory, file memory root
25972
+ (the memory root only when the file memory engine is wired).
25973
+ required: [durability, roots]
25974
+ properties:
25975
+ durability: { type: string, enum: [durable, ephemeral, unknown] }
25976
+ roots:
25977
+ type: array
25978
+ items: { $ref: '#/components/schemas/StoreRootDurability' }
25979
+ StoreRootDurability:
25980
+ type: object
25981
+ additionalProperties: false
25982
+ description: >-
25983
+ One root of `StoreDurabilityWiring.roots` (server `StoreRootDurability`). `root` and `rule` use the same two word tables as `StoreWeakestRoot`
25984
+ (open on read). `path` = the physical path judged (links resolved); `null` for a SQL / memory data root, which has no path. `mountPoint` /
25985
+ `mountSource` / `fsType` = the mount seen through that path; all three `null` when it could not be told.
25986
+ required: [root, path, mountPoint, mountSource, fsType, rule, verdict]
25987
+ properties:
25988
+ root: { type: string }
25989
+ path: { type: ['string', 'null'] }
25990
+ mountPoint: { type: ['string', 'null'] }
25991
+ mountSource: { type: ['string', 'null'] }
25992
+ fsType: { type: ['string', 'null'] }
25993
+ rule: { type: string }
25994
+ verdict: { type: string, enum: [durable, ephemeral, unknown] }
25995
+ SealedKeyCustody:
25996
+ type: object
25997
+ additionalProperties: false
25998
+ description: >-
25999
+ `WiringDiagnostics.sealedKeyCustody` (server >= 7.157.0; server `SealedKeyCustody`, sole mint `buildSealedKeyCustodyReport`). `model` /
26000
+ `checkpointCtx` = every key id the domain's store holds, `null` when this process has no store for that domain. `import` = the
26001
+ `SEALED_KEY_IMPORT_FROM` reading, `null` when not declared; `at` = when this import's planning started (ISO). No word here means "the source may
26002
+ be deleted": `complete` only says every copy read this time is in this process's store and was proven on disk.
26003
+ required: [model, checkpointCtx, import]
26004
+ properties:
26005
+ model:
26006
+ oneOf:
26007
+ - { type: object, additionalProperties: false, required: [held], properties: { held: { type: array, items: { type: string } } } }
26008
+ - type: 'null'
26009
+ checkpointCtx:
26010
+ oneOf:
26011
+ - { type: object, additionalProperties: false, required: [held], properties: { held: { type: array, items: { type: string } } } }
26012
+ - type: 'null'
26013
+ import:
26014
+ oneOf:
26015
+ - type: object
26016
+ additionalProperties: false
26017
+ required: [at, sources]
26018
+ properties:
26019
+ at: { type: string }
26020
+ sources:
26021
+ type: array
26022
+ items: { $ref: '#/components/schemas/SealedKeyImportSource' }
26023
+ - type: 'null'
26024
+ SealedKeyImportSource:
26025
+ type: object
26026
+ additionalProperties: false
26027
+ description: >-
26028
+ One declared import source (server `SealedKeyImportSource`; `dir` = the declaration's spelling). `complete` has one definition, judged per domain:
26029
+ each domain on its own is `absent`, or `listed` with an empty `refused` — `true` when both domains pass (one `absent` and the other `listed` with no refusal
26030
+ passes too); either domain `unread`, or `listed` with refusals, makes it `false`.
26031
+ required: [dir, complete, model, checkpointCtx]
26032
+ properties:
26033
+ dir: { type: string }
26034
+ complete: { type: boolean }
26035
+ model: { $ref: '#/components/schemas/SealedKeyImportReading' }
26036
+ checkpointCtx: { $ref: '#/components/schemas/SealedKeyImportReading' }
26037
+ SealedKeyImportReading:
26038
+ description: >-
26039
+ One source's reading in one domain (server `SealedKeyImportReading`, discriminated by `read`): `absent` = the source is not there; `unread` = it
26040
+ could not be read (`why`: `unreadable` not a directory / cannot be listed · `overlap` two of the directories are the same one · `not_run` this
26041
+ domain ran no import); `listed` = listed, `refused` = the copies not held (empty = all held).
26042
+ oneOf:
26043
+ - { type: object, additionalProperties: false, required: [read], properties: { read: { type: string, enum: [absent] } } }
26044
+ - type: object
26045
+ additionalProperties: false
26046
+ required: [read, why]
26047
+ properties:
26048
+ read: { type: string, enum: [unread] }
26049
+ why: { type: string, enum: [unreadable, overlap, not_run] }
26050
+ - type: object
26051
+ additionalProperties: false
26052
+ required: [read, refused]
26053
+ properties:
26054
+ read: { type: string, enum: [listed] }
26055
+ refused:
26056
+ type: array
26057
+ items: { $ref: '#/components/schemas/SealedKeyImportRefusal' }
26058
+ SealedKeyImportRefusal:
26059
+ type: object
26060
+ additionalProperties: false
26061
+ description: >-
26062
+ A copy that was not held (server `SealedKeyImportRefusal`): `file` = the directory entry name in the source; `id` = the key id inside it, when
26063
+ readable; `why` = `untrusted` not a regular file itself or refused by the trust judge · `unreadable` skipped by the loader · `unpaired` the
26064
+ private key does not derive the public key in the file · `conflict` same id, different material (not overwritten) · `name_taken` the custody
26065
+ directory already has that file name holding another key (not overwritten) · `unproven` publishing failed, or the final load lacks it / the
26066
+ on-disk proof failed · `lock_held` the write lock stayed held until its deadline, not published.
26067
+ required: [file, why]
26068
+ properties:
26069
+ file: { type: string }
26070
+ id: { type: string }
26071
+ why: { type: string, enum: [untrusted, unreadable, unpaired, conflict, name_taken, unproven, lock_held] }
25870
26072
  WiringOutbound:
25871
26073
  type: object
25872
26074
  additionalProperties: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/sdk",
3
- "version": "47.0.0",
3
+ "version": "48.0.0",
4
4
  "description": "Typed, zero-runtime-dependency SDK for the Sema agent fleet usage plane. The shared substrate for all doors (CC/Codex MCP façade + web). Server-side only — tokens never enter the browser.",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",
@@ -36,6 +36,10 @@
36
36
  "types": "./dist/model-route-env/index.d.ts",
37
37
  "import": "./dist/model-route-env/index.js"
38
38
  },
39
+ "./boot-refusal": {
40
+ "types": "./dist/boot-refusal/index.d.ts",
41
+ "import": "./dist/boot-refusal/index.js"
42
+ },
39
43
  "./registry-openapi.yaml": "./registry-openapi.yaml"
40
44
  },
41
45
  "files": [