@ai-ecoverse/slicc-kernel 1.188.0 → 1.188.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 +1 -6
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +35 -34
- package/dist/cloudflare.js.map +4 -4
- package/dist/kernel-worker.js +1 -1
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +1 -1
- package/dist/process-worker.js +1 -1
- package/dist/types/cloudflare/clock-skew.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -271,17 +271,12 @@ import { DurableObject } from 'cloudflare:workers';
|
|
|
271
271
|
import { createCloudflareKernel } from '@ai-ecoverse/slicc-kernel/cloudflare';
|
|
272
272
|
|
|
273
273
|
export class Kernel extends DurableObject {
|
|
274
|
-
now() {
|
|
275
|
-
return Date.now();
|
|
276
|
-
}
|
|
277
|
-
|
|
278
274
|
kernel() {
|
|
279
275
|
const { storage } = this.ctx;
|
|
280
276
|
this.booting ??= createCloudflareKernel({
|
|
281
277
|
loader: this.env.LOADER,
|
|
282
278
|
sql: storage.sql,
|
|
283
279
|
sqlite: { transaction: (fn) => storage.transactionSync(fn) },
|
|
284
|
-
clock: () => this.env.KERNEL.get(this.ctx.id).now(),
|
|
285
280
|
});
|
|
286
281
|
return this.booting;
|
|
287
282
|
}
|
|
@@ -302,7 +297,7 @@ The Worker needs a Worker Loader binding (`worker_loaders`) and a SQLite-backed
|
|
|
302
297
|
| `loader` | required | the Worker Loader binding |
|
|
303
298
|
| `sql`, `sqlite` | none | the Durable Object's `ctx.storage.sql`, and `{ transaction, writeBehind }`: the root file system and its POSIX metadata live in tables prefixed `slicc_` |
|
|
304
299
|
| `root`, `meta`, `ranged` | `memoryRoot()` | a root of your own in place of `sql` |
|
|
305
|
-
| `clock` |
|
|
300
|
+
| `clock` | a timer of 0 ms | awaited before every timed wait, so that the object's clock has moved on when the kernel reads it: a Workers clock stands still while code computes, and a timer moves it. Don't pass a call into the object's own namespace (`this.env.KERNEL.get(this.ctx.id).now()`), as this table used to say: on Cloudflare each such call raises the subrequest depth of the request it is made in, for the rest of that request, so after about 14 timed waits in one request (a `git clone`, eight `curl`s, a loop of `sleep`s) the clock fails, and so does every later call of the object that loops back into the Workers runtime: an R2 `get` with `Unspecified error (0)`, which a program that reads a file from such a mount sees as `EIO`, and a Durable Object stub with `Subrequest depth limit exceeded`. Local `workerd` has no such limit |
|
|
306
301
|
| `isolates` | `{ max: 8, waitMs: 10000, memory: 64 MiB, perInstance: 8 MiB }` | how many Dynamic Workers run at once, how long a spawn waits for one, and the memory budget per Dynamic Worker |
|
|
307
302
|
| `commands` | none | `{ append }`: more command roots, as for `createKernel`; one can be a mount (see [A file system the Durable Object serves](#a-file-system-the-durable-object-serves)) |
|
|
308
303
|
| `network` | none | `{ transport, tlsEngine, uplink, doh }`: the transport programs reach the outside world through, and the TLS engine for their `https://` requests (see [The network](#the-network-in-a-durable-object)) |
|
package/dist/async-process.js
CHANGED
|
@@ -1358,7 +1358,7 @@ function createParentRefreshCount() {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
|
|
1360
1360
|
// src/version.ts
|
|
1361
|
-
var KERNEL_VERSION = true ? "1.188.
|
|
1361
|
+
var KERNEL_VERSION = true ? "1.188.1" : "0.0.0-dev";
|
|
1362
1362
|
var OS_RELEASE = "6.0.0-slicc";
|
|
1363
1363
|
function procVersion() {
|
|
1364
1364
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|