@byok-sdk/cloud-do 0.29.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -11
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/session-runtime.d.ts +5 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -4,13 +4,15 @@ This package hosts a pi-durable session in a Cloudflare Durable Object.
|
|
|
4
4
|
It provides native SQLite storage, inline tools, wake and inbox processing,
|
|
5
5
|
usage limits, settlement hooks, and transcript reads.
|
|
6
6
|
|
|
7
|
-
The current stable release is 0.
|
|
7
|
+
The current stable release is 0.30.0, in the nine-package release set,
|
|
8
8
|
published on npm `latest`. From 0.28.2, keys carries the same version. The npm
|
|
9
|
-
registry read on 2026-10-
|
|
10
|
-
packages. See the [release notes](../../docs/releases/v0.
|
|
11
|
-
The earlier stable releases were 0.
|
|
12
|
-
0.28.
|
|
13
|
-
(published 2026-10-20, UTC); see the
|
|
9
|
+
registry read on 2026-10-24 at 07:39 UTC lists 0.30.0 as `latest` for all nine
|
|
10
|
+
packages. See the [release notes](../../docs/releases/v0.30.0.md).
|
|
11
|
+
The earlier stable releases were 0.29.0 (published 2026-10-23, UTC), 0.28.3
|
|
12
|
+
and 0.28.2 (published 2026-10-22, UTC), 0.28.1 / keys 0.13.1 (published
|
|
13
|
+
2026-10-21, UTC) and 0.28.0 / keys 0.13.0 (published 2026-10-20, UTC); see the
|
|
14
|
+
[0.29.0 release notes](../../docs/releases/v0.29.0.md), the
|
|
15
|
+
[0.28.3 release notes](../../docs/releases/v0.28.3.md), the
|
|
14
16
|
[0.28.2 release notes](../../docs/releases/v0.28.2.md), the
|
|
15
17
|
[0.28.1 release notes](../../docs/releases/v0.28.1.md) and the
|
|
16
18
|
[0.28.0 release notes](../../docs/releases/v0.28.0.md).
|
|
@@ -36,12 +38,12 @@ The package needs Node 24.22.1 or later for build tooling.
|
|
|
36
38
|
|
|
37
39
|
## Install and subclass
|
|
38
40
|
|
|
39
|
-
The following install example names the unpublished 0.
|
|
40
|
-
Use 0.
|
|
41
|
+
The following install example names the unpublished 0.30.1 source candidate.
|
|
42
|
+
Use 0.30.0 until publication is confirmed.
|
|
41
43
|
Use an installed package to verify the consumer path.
|
|
42
44
|
|
|
43
45
|
~~~sh
|
|
44
|
-
npm install @byok-sdk/cloud-do@0.
|
|
46
|
+
npm install @byok-sdk/cloud-do@0.30.1
|
|
45
47
|
npm install --save-dev @cloudflare/workers-types
|
|
46
48
|
~~~
|
|
47
49
|
|
|
@@ -108,6 +110,10 @@ The supported profiles are zai_openai and deepseek_direct. The model URLs
|
|
|
108
110
|
and model names are fixed in this package. Cloud execution uses platform keys.
|
|
109
111
|
Local BYOK keys do not enter this runtime.
|
|
110
112
|
|
|
113
|
+
A task with #654 sealed payload `sealing` must not go to this runtime. It
|
|
114
|
+
runs the model with platform keys, so it reads the instruction and the
|
|
115
|
+
output in plaintext. See [protocol §2.5](../../docs/protocol.md#25-sealed-payload-v1-654-gated-addition).
|
|
116
|
+
|
|
111
117
|
Configure the session and supply a dispatcher before tool execution.
|
|
112
118
|
The subclass can supply instructions, createDispatcher, admitWake,
|
|
113
119
|
renew, settleRun, projectInvocation, and onInvocationSettled hooks.
|
|
@@ -127,13 +133,13 @@ openDurableObjectStorage has the local structural factory type
|
|
|
127
133
|
(location: DurableObjectStorage) => Promise<Storage>.
|
|
128
134
|
Storage is pi-durable's native interface. The package does not import client
|
|
129
135
|
source or keys types. Its three runtime dependencies are pi-durable, pi-ai,
|
|
130
|
-
and chord, each pinned to 1.
|
|
136
|
+
and chord, each pinned to 1.4.0.
|
|
131
137
|
|
|
132
138
|
The Durable Object owns the physical connection. Closing the adapter
|
|
133
139
|
invalidates that adapter. It does not close the Durable Object database.
|
|
134
140
|
|
|
135
141
|
This follows the async adapter in [Cloudflare Agents d6656161](https://github.com/cloudflare/agents/blob/d6656161/packages/agents/src/harness/pi/session-store.ts).
|
|
136
|
-
Current upstream uses a different synchronous pi contract. Pinned pi 1.
|
|
142
|
+
Current upstream uses a different synchronous pi contract. Pinned pi 1.4.0 takes
|
|
137
143
|
async callbacks, so `transactionSync()` cannot host its transaction callback.
|
|
138
144
|
Cloudflare documents async SQL transactions on the
|
|
139
145
|
[SQLite storage API](https://developers.cloudflare.com/durable-objects/api/sqlite-storage-api/).
|
package/dist/index.js
CHANGED
|
@@ -2192,7 +2192,8 @@ var openDurableObjectStorage = (storage) => SqliteStorage.open(new DurableObject
|
|
|
2192
2192
|
var CLOUD_HARNESS_SETTINGS = {
|
|
2193
2193
|
compaction: { enabled: false },
|
|
2194
2194
|
retry: { enabled: false, maxRetries: 0 },
|
|
2195
|
-
stream: { maxRetries: 0 }
|
|
2195
|
+
stream: { maxRetries: 0 },
|
|
2196
|
+
restartLimit: Infinity
|
|
2196
2197
|
};
|
|
2197
2198
|
var StaleInvocationAttempt = class extends CloudDoError {
|
|
2198
2199
|
constructor() {
|