@sema-agent/sdk 24.0.0 → 26.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 (83) hide show
  1. package/README.md +243 -6
  2. package/dist/client.d.ts +6 -5
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +8 -6
  5. package/dist/client.js.map +1 -1
  6. package/dist/device/index.d.ts +76 -12
  7. package/dist/device/index.d.ts.map +1 -1
  8. package/dist/device/index.js +90 -33
  9. package/dist/device/index.js.map +1 -1
  10. package/dist/errors.d.ts +162 -30
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +71 -35
  13. package/dist/errors.js.map +1 -1
  14. package/dist/events.d.ts +53 -13
  15. package/dist/events.d.ts.map +1 -1
  16. package/dist/events.js +3 -2
  17. package/dist/events.js.map +1 -1
  18. package/dist/health.d.ts +25 -0
  19. package/dist/health.d.ts.map +1 -1
  20. package/dist/health.js.map +1 -1
  21. package/dist/index.d.ts +44 -23
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +22 -6
  24. package/dist/index.js.map +1 -1
  25. package/dist/model-route-env/index.d.ts +129 -0
  26. package/dist/model-route-env/index.d.ts.map +1 -0
  27. package/dist/model-route-env/index.js +131 -0
  28. package/dist/model-route-env/index.js.map +1 -0
  29. package/dist/resources/adoption.d.ts +8 -2
  30. package/dist/resources/adoption.d.ts.map +1 -1
  31. package/dist/resources/adoption.js.map +1 -1
  32. package/dist/resources/approvals.d.ts +38 -4
  33. package/dist/resources/approvals.d.ts.map +1 -1
  34. package/dist/resources/approvals.js +19 -4
  35. package/dist/resources/approvals.js.map +1 -1
  36. package/dist/resources/fleet.d.ts +73 -18
  37. package/dist/resources/fleet.d.ts.map +1 -1
  38. package/dist/resources/fleet.js.map +1 -1
  39. package/dist/resources/ops.d.ts +113 -0
  40. package/dist/resources/ops.d.ts.map +1 -1
  41. package/dist/resources/ops.js +10 -0
  42. package/dist/resources/ops.js.map +1 -1
  43. package/dist/resources/principal-inbox.d.ts +62 -0
  44. package/dist/resources/principal-inbox.d.ts.map +1 -0
  45. package/dist/resources/principal-inbox.js +51 -0
  46. package/dist/resources/principal-inbox.js.map +1 -0
  47. package/dist/resources/rules.d.ts +2 -5
  48. package/dist/resources/rules.d.ts.map +1 -1
  49. package/dist/resources/rules.js.map +1 -1
  50. package/dist/resources/session-sync.d.ts +27 -32
  51. package/dist/resources/session-sync.d.ts.map +1 -1
  52. package/dist/resources/session-sync.js +25 -39
  53. package/dist/resources/session-sync.js.map +1 -1
  54. package/dist/resources/tool-approvals.d.ts +251 -115
  55. package/dist/resources/tool-approvals.d.ts.map +1 -1
  56. package/dist/resources/tool-approvals.js +222 -69
  57. package/dist/resources/tool-approvals.js.map +1 -1
  58. package/dist/settings.d.ts +83 -1
  59. package/dist/settings.d.ts.map +1 -1
  60. package/dist/settings.js +0 -24
  61. package/dist/settings.js.map +1 -1
  62. package/dist/sse.d.ts +5 -1
  63. package/dist/sse.d.ts.map +1 -1
  64. package/dist/sse.js +6 -2
  65. package/dist/sse.js.map +1 -1
  66. package/dist/sync.d.ts +5 -5
  67. package/dist/sync.d.ts.map +1 -1
  68. package/dist/sync.js +13 -55
  69. package/dist/sync.js.map +1 -1
  70. package/dist/transport.d.ts +2 -0
  71. package/dist/transport.d.ts.map +1 -1
  72. package/dist/transport.js +3 -0
  73. package/dist/transport.js.map +1 -1
  74. package/dist/types.d.ts +298 -123
  75. package/dist/types.d.ts.map +1 -1
  76. package/dist/types.js +10 -3
  77. package/dist/types.js.map +1 -1
  78. package/openapi.yaml +1014 -572
  79. package/package.json +6 -2
  80. package/dist/resources/workspace.d.ts +0 -95
  81. package/dist/resources/workspace.d.ts.map +0 -1
  82. package/dist/resources/workspace.js +0 -60
  83. package/dist/resources/workspace.js.map +0 -1
@@ -8,9 +8,10 @@ export class SessionSyncResource {
8
8
  constructor(t) {
9
9
  this.t = t;
10
10
  }
11
- /** PULL — `GET …/sync/manifest` → the THIN cross-backend snapshot (entry IDS + per-snapshot relPath→blobHash +
12
- * policy + anchors + leaf), NO entry payloads and NO blob bytes (those stream / are content-addressed). The
13
- * server wraps it as `{ manifest }`; this unwraps to the bare {@link SessionManifest}. Feed `manifest.entryIds`
11
+ /** PULL — `GET …/sync/manifest` → the THIN cross-backend snapshot (entry IDS + the file-history envelope + policy + anchors + leaf),
12
+ * NO entry payloads and NO blob bytes (those stream / are content-addressed). The
13
+ * server wraps it as `{ manifest }` and this returns that envelope as-is — destructure it:
14
+ * `const { manifest } = await client.sessions.sync.manifest(sessionId)`. Feed `manifest.entryIds`
14
15
  * to `classifySyncRelationshipByIds` to decide fast-forward/fork BEFORE pulling the entry stream + only the
15
16
  * blob hashes the local peer lacks. Owner-scoped (non-owner → 404, no oracle); 400 on an id that is not
16
17
  * uuid-SHAPED (any uuid version passes — see the module header; a v4 legacy session is deliberately
@@ -22,7 +23,7 @@ export class SessionSyncResource {
22
23
  path: `/v1/sessions/${encodeURIComponent(sessionId)}/sync/manifest`,
23
24
  signal: opts?.signal,
24
25
  });
25
- // wire 原样交回:server ≥7.52 不发 `snapshots`(发 `fileHistory`)⇒ 型上可选(sdk 17.0.0 删了 16.x 的 `[]` 填充)。
26
+ // wire 原样交回(支持面内恒带 `fileHistory`,值可为 null;≤7.51 的 `snapshots` 一代不在支持面内,sdk 26.0.0 删了它的型)。
26
27
  return res;
27
28
  }
28
29
  /** PULL — `GET …/sync/entries[?afterSeq=N]` → the entry PAYLOADS as an NDJSON stream (one JSON entry per line,
@@ -45,7 +46,7 @@ export class SessionSyncResource {
45
46
  * 作用域判据 = 本会话的 per-edited-file **history 图**:cloud 只在「本会话 exportHistory 信封里某个版本的
46
47
  * `blobHash` 引用这个 hash」时才发字节(外来/未引用 hash → 404 `not_found.blob`,绝不盲读 —— blob 跨会话
47
48
  * 共享,这道界是安全界)。SDK 本地先验 hash 形(非 64-hex ⇒ 400,零请求)。返回 `Uint8Array`。
48
- * server <7.52(区间地板 3.0.0 起)无此路由 ⇒ 404 `not_found.route`,请用 {@link getBlob} 的旧 PULL 臂。 */
49
+ * ⚰️ ≤7.51 的旧 PULL 臂 `getBlob`(`…/sync/snapshots/:key/blobs/:hash`,per-snapshot 作用域)随整树快照纪元退出支持面,sdk 26.0.0 删。 */
49
50
  async getHistoryBlob(sessionId, hash, opts) {
50
51
  if (!SHA256_HEX_RE.test(hash))
51
52
  throw toApiError(400, { error: "blob hash must be 64 lowercase-hex chars" });
@@ -59,31 +60,8 @@ export class SessionSyncResource {
59
60
  throw await this.t.errorFrom(res);
60
61
  return new Uint8Array(await res.arrayBuffer());
61
62
  }
62
- /** PULL one content-addressed blob's RAW bytes — `GET …/sync/snapshots/:key/blobs/:hash` (NOTE the PULL path is
63
- * scoped under the snapshot `:key`, NOT the bare `blobs/:hash` of the PUSH). The scope check is the security
64
- * boundary: a content-addressed blob is shared across sessions, so the cloud only serves a hash THIS session's
65
- * `:key` manifest references (a foreign/unreferenced hash → 404 `blob not found`). The SDK validates the hash
66
- * shape locally (400 `blob hash must be 64 lowercase-hex chars`). Returns the bytes as a `Uint8Array`.
67
- *
68
- * @deprecated server ≥7.52(S-15/design/381):E19 整树快照纪元退役,这条 PULL 路由已摘
69
- * (404 `not_found.route`,spec 标 retired)——per-snapshot manifest key 作用域随纪元消失。
70
- * ≥7.52 用 {@link getHistoryBlob}(history 图作用域);本动词保留是因为支持区间地板 3.0.0 起
71
- * 的老 server 仍活着这条路(删导出符号=major,且会封死对老 server 的合法读)。 */
72
- async getBlob(sessionId, key, hash, opts) {
73
- if (!SHA256_HEX_RE.test(hash))
74
- throw toApiError(400, { error: "blob hash must be 64 lowercase-hex chars" });
75
- const res = await this.t.openRaw({
76
- method: "GET",
77
- path: `/v1/sessions/${encodeURIComponent(sessionId)}/sync/snapshots/${encodeURIComponent(key)}/blobs/${encodeURIComponent(hash)}`,
78
- accept: "application/octet-stream",
79
- signal: opts?.signal,
80
- });
81
- if (!res.ok)
82
- throw await this.t.errorFrom(res);
83
- return new Uint8Array(await res.arrayBuffer());
84
- }
85
- /** PUSH one content-addressed blob INTO the cloud's snapshot store — `PUT …/sync/blobs/:hash` (the bare path; the
86
- * PULL is scoped under `snapshots/:key`). RAW bytes body, octet-stream. The cloud verifies sha256(body)===:hash
63
+ /** PUSH one content-addressed blob INTO the cloud's file-history store — `PUT …/sync/blobs/:hash` (the bare path; the
64
+ * PULL is `…/sync/history/blobs/:hash`, scoped by the session's history graph). RAW bytes body, octet-stream. The cloud verifies sha256(body)===:hash
87
65
  * (the content-address integrity guard) — a mismatch → 400 `blob hash mismatch`; the SDK validates the hash
88
66
  * shape locally first. own-or-FRESH gate.
89
67
  *
@@ -97,10 +75,9 @@ export class SessionSyncResource {
97
75
  *
98
76
  * A backend write failure (e.g. a MinIO non-2xx) → 502 `blob store write failed`. `openRaw` does **NOT** retry;
99
77
  * the caller re-PUTs (the blob is content-addressed ⇒ idempotent). 204 on success (no body).
100
- * Call this for every blob hash the manifest references that the cloud lacks BEFORE import Phase A.
101
- * 🔴 server ≥7.52(S-15 换店):501 `capability.snapshot_store_required` 的谓词变为「file-history 店无
102
- * blob 面」(`syncBlobFaces`/`putBlob` 缺席 —— local file 店即此形,message 点名 durable file-history
103
- * store);≤7.51 同码谓词是快照店缺席。码不变,部署处置同向(换有 blob 面的后端)。 */
78
+ * Call this for every blob hash the manifest's `fileHistory` envelope references that the cloud lacks BEFORE import Phase A.
79
+ * 501 `capability.snapshot_store_required` = 这台部署的 file-history 店没有 blob 面(`syncBlobFaces` / `putBlob` 缺席 —— local file 店即此形,
80
+ * message 点名 durable file-history store;能力位 `sessionSyncFileHistory === false`):换有 blob 面的后端,或只同步对话。 */
104
81
  async putBlob(sessionId, hash, bytes, opts) {
105
82
  if (!SHA256_HEX_RE.test(hash))
106
83
  throw toApiError(400, { error: "blob hash must be 64 lowercase-hex chars" });
@@ -129,13 +106,13 @@ export class SessionSyncResource {
129
106
  signal: opts?.signal,
130
107
  });
131
108
  }
132
- /** ⚠️ S-15 纪元(server ≥7.52):Phase A 的真形收 `{entryIds, fileHistory?, policy, anchors, resolution?, logDigest?}` —— 本 verb 的 `snapshots` 键在 ≥7.52 上被**静默忽略**
133
- * (entries/policy/anchors/会话本体照常入店,**文件历史只经 `fileHistory` 入店**);≤7.51 老 server 照旧消费 `snapshots` 形。
109
+ /** Phase A 的体 = `{ entryIds, fileHistory?, policy, anchors, resolution?, logDigest?, title?, pinned? }`(文件历史只经 `fileHistory` 入店;
110
+ * ⚰️ ≤7.51 那一代的 `snapshots` 键随整树快照纪元退出支持面,sdk 26.0.0 从本体型删 —— ≥7.52 本来就静默忽略它)。
134
111
  * 16.2.0 起 `body` 收 `fileHistory`({@link FileHistoryExport},取自 {@link SessionSyncResource.manifest} 的 `manifest.fileHistory`),编排 verb
135
112
  * (`pushSessionBundle` / `importSessionBundle`)按两端的 `sessionSyncFileHistory` 位决定带不带它(见 {@link import("../sync.js").PushSessionResult.fileHistory})。
136
113
  * **直接调本 verb 的调用方自己负责**:把 `fileHistory` 推给没有 blob 面的对端 ⇒ commit 之后因缺 blob 422 `missing_blob`;先 `putBlob` 完它引用的每个 hash。
137
114
  *
138
- * PUSH Phase A — `POST …/sync/import` body `{ entryIds, snapshots, policy, anchors, resolution?, logDigest?, title?, pinned? }`
115
+ * PUSH Phase A — `POST …/sync/import` body `{ entryIds, fileHistory?, policy, anchors, resolution?, logDigest?, title?, pinned? }`
139
116
  * (the SMALL metadata; entries stream in Phase B). `title` / `pinned` (server ≥7.125.0) carry the session row's two writable bits from {@link SessionManifest.title} /
140
117
  * {@link SessionManifest.pinned}; omit them and the destination's two bits stay as they are. The cloud classifies (§7), pre-checks blob presence (every
141
118
  * referenced hash must have been PUT — a missing one → 422 `missing_blob`), guards the import lease + any active
@@ -145,7 +122,7 @@ export class SessionSyncResource {
145
122
  * 🔴 a `fork`/`stale` WITHOUT `resolution:"overwrite-dst"` → a typed SyncConflictError (409, carrying the relation).
146
123
  * An active run on the session → ConflictError (409, `session_active`, `activeTaskId`).
147
124
  *
148
- * ⚠️ `identical` is **not** a bare short-circuit: the cloud idempotently REPLAYS snapshots/policy/anchors on this
125
+ * ⚠️ `identical` is **not** a bare short-circuit: the cloud idempotently REPLAYS fileHistory/policy/anchors on this
149
126
  * arm (server `routes/session-sync.ts:367-384`) — that is the self-heal for "the conversation synced but the file
150
127
  * tree did not" (a previous run's post-commit replay 422'd). So it can still answer 422 `missing_blob` /
151
128
  * `restore_failed`; re-PUT the blob and retry. Do NOT read `identical` as "zero side effects".
@@ -165,7 +142,7 @@ export class SessionSyncResource {
165
142
  }
166
143
  /** PUSH Phase B — `POST …/sync/import/:stagingId/entries`: stream the entry log as an NDJSON REQUEST body into the
167
144
  * staged shadow id, then the cloud `finish()`-validates (exactly-one-root + leaf-resolvable) → commits (the atomic
168
- * swap) → replays snapshots/policy/anchors. Returns {@link ImportCommitted} (`{ relation }`, the AUTHORITATIVE
145
+ * swap) → replays fileHistory/policy/anchors. Returns {@link ImportCommitted} (`{ relation }`, the AUTHORITATIVE
169
146
  * in-txn re-classify). The SDK serializes the entries to NDJSON (one JSON per line) and sends them as the raw body
170
147
  * (NOT JSON.stringify of an array — the cloud line-buffers). Re-POSTing the same stagingId is idempotent
171
148
  * (appendBatch dedups; the commit re-runs). Typed errors: a per-entry/structural violation → 422 `invalid_entries`;
@@ -176,6 +153,15 @@ export class SessionSyncResource {
176
153
  * the commit re-runs), but any PrecheckError / SessionError path server-side `abort()`s and cleans up the staging
177
154
  * (server `:561,:565,:573-574`) ⇒ after a typed 4xx the SAME stagingId is DEAD — reopen Phase A.
178
155
  *
156
+ * 🔴 **server ≥7.134.0 — Phase B passes the SAME owner gate as Phase A**, judged again on the session as it stands after the stream is read
157
+ * and before the commit: a caller that no longer passes ⇒ `404 not_found.session` (read it as "you cannot reach this session now");
158
+ * a caller that still passes while the session's owner cell changed since Phase A opened the staging ⇒ **`409 conflict` WITHOUT a
159
+ * `relation`** (fixed sentence "session owner changed while the import streamed; nothing was imported — start the sync again"; the
160
+ * transaction rolled back, the target untouched) — it maps to a plain {@link import("../errors.js").ConflictError}, NOT a {@link import("../errors.js").SyncConflictError} (that one
161
+ * always carries a fork/stale `relation`); branch on the code + the absent `relation` and restart from Phase A, never on the sentence.
162
+ * A staging opened by a fleet caller is pushed only by a fleet caller; a non-fleet caller pushes only its own ⇒ otherwise
163
+ * `404 not_found.staging`. Older servers checked only who opened the staging.
164
+ *
179
165
  * 🔴 **Memory** (`stream`, 4.3.0): by DEFAULT the SDK serializes the whole iterator into one NDJSON string before
180
166
  * sending — peak memory is O(entire log). Until 4.3.0 three JSDocs here and in `sync.ts` claimed the opposite
181
167
  * ("pipe a PULL stream straight into a PUSH without materializing the whole log"); that was false, and it is what
@@ -1 +1 @@
1
- {"version":3,"file":"session-sync.js","sourceRoot":"","sources":["../../src/resources/session-sync.ts"],"names":[],"mappings":"AAoCA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAa/C;mGACmG;AACnG,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAEvC,MAAM,OAAO,mBAAmB;IACD;IAA7B,YAA6B,CAAY;QAAZ,MAAC,GAAD,CAAC,CAAW;IAAG,CAAC;IAE7C;;;;;;0DAMsD;IACtD,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,IAA+B;QAC/D,qFAAqF;QACrF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,OAAO,CAAgC;YAC9D,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,gBAAgB,kBAAkB,CAAC,SAAS,CAAC,gBAAgB;YACnE,MAAM,EAAE,IAAI,EAAE,MAAM;SACrB,CAAC,CAAC;QACH,8FAA8F;QAC9F,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;;;;mGAM+F;IAC/F,KAAK,CAAC,CAAC,OAAO,CACZ,SAAiB,EACjB,MAA8B,EAC9B,IAA+B;QAE/B,IAAI,IAAI,GAAG,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