@ai-ecoverse/slicc-kernel 1.194.4 → 1.194.5

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 CHANGED
@@ -1727,7 +1727,7 @@ The kernel is ported from SLICC's `packages/webapp/src/kernel/` with the browser
1727
1727
  - `src/cdp/`: the CDP facade on `127.0.0.1:9222`, its WebSocket framing, the registry of hosts and the `MessagePort` bridge to them.
1728
1728
  - `src/sudo.ts`, `src/sudoers.ts`, `src/sudo-command.ts`: the kernel side of `sudo` and `visudo -c`, the policy parser (both line forms and their diagnostics), and the two commands.
1729
1729
  - `src/time-zone.ts`: the system time zone (`timeZone`, or the browser's) and UTC offsets of a zone, which cron's schedules and `TZ` both come from.
1730
- - `src/async/`, `src/process/emscripten/`, `src/cloudflare.ts`, `src/cloudflare/` and `tools/derive-async/`: the kernel [in a Cloudflare Durable Object](#in-a-cloudflare-durable-object). `src/async/` is the link between the kernel and a process that shares no memory with it; `src/process/emscripten/` the kernel's own Emscripten imports; `src/cloudflare/` the Durable Object host, the SQLite root and the Cloudflare Computer backend; `tools/derive-async/` the build step that derives the async process runtime. Their tests are in `test/integration/cf/` and run in Node, with `node --test --test-concurrency=2 'test/integration/cf/*.test.mjs'`; those named `cloudflare-*` and `computer-cloudflare-*` start `wrangler dev`, and run against a deployed Worker when given its URL and key. `npm test` and CI run them with the rest. On a pull request, CI's `deploy` job runs `tools/cf-staging.mjs`, which deploys `examples/cloudflare-computer` as the Worker `slicc-kernel-do-pr-<number>` with a fresh random key, and hands its address to the test shards and the reviewers as `STAGING_URL` (`https://…workers.dev/?key=…`); `computer-cloudflare-staging.test.mjs` then runs the Computer example's tests against it. That address, key included, shows in the run's log and on the pull request, so the Worker stops answering 24 hours after its deploy, and its programs have no network. The job needs the secret `SLICC_KERNEL_CLOUDFLARE_API_TOKEN` (a Cloudflare API token that may edit Workers scripts; `SLICC_KERNEL_CLOUDFLARE_ACCOUNT_ID` too when the token sees several accounts). Without it, on a fork, in the merge queue, or when the deploy fails, there is no staging Worker and that test file skips. Each deploy deletes the staging Workers of other pull requests whose last deploy is more than 24 hours old, which no longer answer, and warns about one it could not delete.
1730
+ - `src/async/`, `src/process/emscripten/`, `src/cloudflare.ts`, `src/cloudflare/` and `tools/derive-async/`: the kernel [in a Cloudflare Durable Object](#in-a-cloudflare-durable-object). `src/async/` is the link between the kernel and a process that shares no memory with it; `src/process/emscripten/` the kernel's own Emscripten imports; `src/cloudflare/` the Durable Object host, the SQLite root and the Cloudflare Computer backend; `tools/derive-async/` the build step that derives the async process runtime. Their tests are in `test/integration/cf/` and run in Node, with `node --test --test-concurrency=2 'test/integration/cf/*.test.mjs'`; those named `cloudflare-*` and `computer-cloudflare-*` start `wrangler dev`, and run against a deployed Worker when given its URL and key. `npm test` and CI run them with the rest. On a pull request, CI's `deploy` job runs `tools/cf-staging.mjs`, which deploys `examples/cloudflare-computer` as the Worker `slicc-kernel-do-pr-<number>` and the test fixture `test/integration/cf/cloudflare-fixture` as `slicc-kernel-do-pr-<number>-waits`, both with one fresh random key, and hands their addresses to the test shards and the reviewers as `STAGING_URL` (`https://…workers.dev/?key=…&fixture=…`, the fixture's origin URL-encoded); `computer-cloudflare-staging.test.mjs` then runs the Computer example's tests against the first, and `frozen-clock-staging.test.mjs` checks on the second that `sigtimedwait` waits its full timeout after pure compute, during which a deployed Worker's clock stands still. That address, key included, shows in the run's log and on the pull request, so both Workers stop answering 24 hours after their deploy, and the example's programs have no network. The job needs the secret `SLICC_KERNEL_CLOUDFLARE_API_TOKEN` (a Cloudflare API token that may edit Workers scripts; `SLICC_KERNEL_CLOUDFLARE_ACCOUNT_ID` too when the token sees several accounts); the shards never get it. Without it, on a fork, in the merge queue, or when the deploy fails, there is no staging Worker and the example's test file skips. The fixture's test file skips in the merge queue and outside CI, but fails on a pull request without a fixture, and the deploy job warns when the fixture's deploy failed. Each deploy deletes the other `slicc-kernel-do-pr-` Workers whose last deploy is more than 24 hours old, which no longer answer, and warns about one it could not delete.
1731
1731
  - `src/cron/`: the cron service (`service.ts`), the schedule and table parsers, the clock, and the `crontab` command with the kernel side of `ctx.crontab`. An embedder that uses `Launcher` directly passes `cron: { lock }` to share the firing lock among the kernels on one root; the default, `slicc-kernel-cron`, is one lock for the whole origin.
1732
1732
 
1733
1733
 
@@ -1362,7 +1362,7 @@ function createParentRefreshCount() {
1362
1362
  }
1363
1363
 
1364
1364
  // src/version.ts
1365
- var KERNEL_VERSION = true ? "1.194.4" : "0.0.0-dev";
1365
+ var KERNEL_VERSION = true ? "1.194.5" : "0.0.0-dev";
1366
1366
  var OS_RELEASE = "6.0.0-slicc";
1367
1367
  function procVersion() {
1368
1368
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC