@ai-ecoverse/slicc-kernel 1.195.39 → 1.195.40
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 -1
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +14 -2
- package/dist/cloudflare.js.map +2 -2
- package/dist/kernel-worker.js +14 -2
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +14 -2
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +1 -1
- package/dist/testing.js.map +2 -2
- package/dist/types/kernel/test-hooks.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -997,7 +997,7 @@ In the browser, the page serves the uplink to the kernel worker over the same po
|
|
|
997
997
|
|
|
998
998
|
`fakeCronClock(start?, zone?)` is a clock for the kernel's cron to run on in tests (and for [sudo timestamps](#sudo-timestamps), through `createNodeKernel({ sudo: { clock } })`), so a test moves time instead of waiting for it. It starts at `start` (default 2026-01-01T00:00Z). `zone` sets the [time zone](#time-zone) of a kernel started on it that names no `timeZone` of its own: UTC by default or with `true`, an IANA name such as `'Europe/Berlin'`, or the browser's with `false`. Its `timeZone` is that name (none for `false`) and `utc` is whether it is UTC. `now()` is the fake time. `sleep(until, signal)` resolves when `advance(ms)` moves time to `until` or past it, or when `signal` aborts. `set(ms)` sets the wall clock, forward or back, and wakes every sleeper, as a scheduler's next periodic wake would after a real clock change. `sleepers` counts the sleeps still waiting. `flush()` resolves once every sleeper that a time move woke has gone back to sleep for a later time, which is the point where a scheduler has done what was due. It never resolves while nothing sleeps.
|
|
999
999
|
|
|
1000
|
-
`setTestSyscallHook(hook)` is **test-only**: while set, every process kernel call (the `WasmSyscall` requests: process, fd, socket, signal and job calls; not the path-only file system requests such as `read`, `write` or `rename`) of a process in this Node process first awaits `hook({ pid, op })`. `pid` is the kernel's own pid of the process, which for an exec'd image is not the pid the program sees (`getpid()`, `ps` show the pid it took over). A test can then act at an exact point (write a ^C when a shell forks) or hold a call (delay a child's `proc-setpgid`). `setTestSyscallHook(undefined)` clears it. Unset, which is the default, it does nothing.
|
|
1000
|
+
`setTestSyscallHook(hook)` is **test-only**: while set, every process kernel call (the `WasmSyscall` requests: process, fd, socket, signal and job calls; not the path-only file system requests such as `read`, `write` or `rename`) of a process in this Node process first awaits `hook({ pid, op, onBlock })`. During that hook, `onBlock(notify)` registers a callback for when this call enters a blocking wait. A call that completes without blocking does not notify. `pid` is the kernel's own pid of the process, which for an exec'd image is not the pid the program sees (`getpid()`, `ps` show the pid it took over). A test can then act at an exact point (write a ^C when a shell forks) or hold a call (delay a child's `proc-setpgid`). `setTestSyscallHook(undefined)` clears it. Unset, which is the default, it does nothing.
|
|
1001
1001
|
|
|
1002
1002
|
### Browser automation (CDP)
|
|
1003
1003
|
|
package/dist/async-process.js
CHANGED
|
@@ -1480,7 +1480,7 @@ function createParentRefreshCount() {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
1482
|
// src/version.ts
|
|
1483
|
-
var KERNEL_VERSION = true ? "1.195.
|
|
1483
|
+
var KERNEL_VERSION = true ? "1.195.40" : "0.0.0-dev";
|
|
1484
1484
|
var OS_RELEASE = "6.0.0-slicc";
|
|
1485
1485
|
function procVersion() {
|
|
1486
1486
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|