sanoma 0.10.1 → 0.10.2
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/package.json +1 -1
package/README.md
CHANGED
|
@@ -212,7 +212,7 @@ A company uses one through the runtime's own wakeup, `sanoma.wakeup({ host })` (
|
|
|
212
212
|
|
|
213
213
|
`sanoma worker` and `sanoma app` are the deployment's two processes. A host that composes its own process keeps `startWorker` from `@sanoma-ai/workflows` and `startApp` from `@sanoma-ai/app`, which the bin runs.
|
|
214
214
|
|
|
215
|
-
[`runtime/`](runtime/Dockerfile) is the image a container host runs: Node 26, git, an SSH client, pnpm and `provider-bridge`, and no company code. At start it clones `SANOMA_SOURCE` at `SANOMA_REVISION` (with `SANOMA_SOURCE_KEY` or `SANOMA_SOURCE_TOKEN` when set, [below](#cloning-a-private-repository)), runs `pnpm install --frozen-lockfile` and `sanoma serve` on `0.0.0.0` and `PORT` (default 3000); the host passes `SANOMA_DATABASE_URL`, `SANOMA_SIGNING_KEY`, the encryption key when using built-in storage, and, as the app is not on loopback, the `SANOMA_GITHUB_*` sign-in variables too. Its health check is the app's `/healthz`. `sanoma serve` (not `sanoma app`, which runs no worker) also answers a [wakeup](../workflows/README.md#hosts)'s `GET /wake` before any login: 204, never cached, whatever the query. The app answers the company's GitHub App's webhook at `POST /webhooks/github` too ([the app's webhooks](../app/README.md#login)): a push to `main` applies the declared hosts, so a merge made on GitHub deploys, and a push to a draft's branch is fetched into the draft (`follow` on its worktree) and plans its change again. On a laptop, which GitHub cannot reach, none arrives. Its worker runs under a supervisor (`superviseWorker`): with a wakeup declared and the app beyond loopback (on this machine alone, the wakeup would wake the deployed instance) it stops itself when nothing can run soon, and a fresh one starts on a wake (resume if stopped), or on a write from the app (a run's start, apply, an approval's decision), never on a page read. `sanoma worker` never stops its worker: nothing in its process would start it again. A repo with [sites](#sites) is built at start, as `sanoma serve` does anywhere, into `.sanoma/app/` in the clone: the app listens once the build is done (the health check's start period allows 5 minutes for the clone, the install and the build); the image itself holds no build.
|
|
215
|
+
[`runtime/`](runtime/Dockerfile) is the image a container host runs: Node 26, git, an SSH client, pnpm and `provider-bridge`, and no company code. At start it clones `SANOMA_SOURCE` at `SANOMA_REVISION` (with `SANOMA_SOURCE_KEY` or `SANOMA_SOURCE_TOKEN` when set, [below](#cloning-a-private-repository)), runs `pnpm install --frozen-lockfile` and `sanoma serve` on `0.0.0.0` and `PORT` (default 3000); the host passes `SANOMA_DATABASE_URL`, `SANOMA_SIGNING_KEY`, the encryption key when using built-in storage, and, as the app is not on loopback, the `SANOMA_GITHUB_*` sign-in variables too. Its health check is the app's `/healthz`. `sanoma serve` (not `sanoma app`, which runs no worker) also answers a [wakeup](../workflows/README.md#hosts)'s `GET /wake` before any login: 204, never cached, whatever the query. The app answers the company's GitHub App's webhook at `POST /webhooks/github` too ([the app's webhooks](../app/README.md#login)): a push to `main` applies the declared hosts, so a merge made on GitHub deploys, and a push to a draft's branch is fetched into the draft (`follow` on its worktree) and plans its change again. On a laptop, which GitHub cannot reach, none arrives. Its worker runs under a supervisor (`superviseWorker`): with a wakeup declared and the app beyond loopback (on this machine alone, the wakeup would wake the deployed instance) it stops itself when nothing can run soon, and a fresh one starts on a wake (resume if stopped), or on a write from the app (a run's start, apply, an approval's decision), never on a page read. `sanoma worker` never stops its worker: nothing in its process would start it again. A repo with [sites](#sites) is built at start, as `sanoma serve` does anywhere, into `.sanoma/app/` in the clone: the app listens once the build is done (the health check's start period allows 5 minutes for the clone, the install and the build); the image itself holds no build. The image pins provider-bridge v0.2.0, verifies its release archive against committed checksums, and checks isolated-session protocol support and two concurrent sessions during the build. `--build-arg BRIDGE_FROM=source` builds the matching pinned source commit instead. Updating npm packages alone does not replace the image’s bridge binary. CI builds the image without pushing it; it runs no company in it, so it builds no site either. A release pushes it to GitHub's registry as `ghcr.io/sanoma-ai/runtime:<sanoma version>` ([Release](../../README.md#release) has the hand command).
|
|
216
216
|
|
|
217
217
|
### Cloning a private repository
|
|
218
218
|
|