@ouro.bot/cli 0.1.0-alpha.816 → 0.1.0-alpha.818
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/assets/sanctuary-host-launcher.sh +16 -0
- package/changelog.json +16 -0
- package/deploy/unraid/Dockerfile +6 -0
- package/deploy/unraid/README.txt +296 -62
- package/deploy/unraid/docker-man-template-transaction.mjs +192 -7
- package/deploy/unraid/sanctuary-acceptance-adapter.sh +1 -1
- package/deploy/unraid/sanctuary-acceptance-contract.json +7 -7
- package/deploy/unraid/sanctuary-authority-installation.json +36 -0
- package/deploy/unraid/sanctuary-authority-service.sh +30 -0
- package/deploy/unraid/sanctuary-unit16-host-broker.mjs +62 -9
- package/deploy/unraid/sanctuary-unit16-run.sh +15 -15
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.ouro/tool-profiles.json +2 -2
- package/deploy/unraid/sanctuary.xml +2 -1
- package/dist/heart/core.js +2 -1
- package/dist/heart/daemon/container-spec-auditor-main.js +8 -7
- package/dist/heart/daemon/container-spec-auditor.js +16 -9
- package/dist/heart/daemon/sanctuary-acceptance-adapter.js +95 -91
- package/dist/heart/daemon/sanctuary-acceptance-harness.js +95 -169
- package/dist/heart/daemon/sanctuary-acceptance-scenarios.js +4 -5
- package/dist/heart/daemon/sanctuary-authority-codec.js +86 -0
- package/dist/heart/daemon/sanctuary-authority-epoch.js +256 -0
- package/dist/heart/daemon/sanctuary-authority-installation.js +140 -0
- package/dist/heart/daemon/sanctuary-authority-ledger.js +241 -0
- package/dist/heart/daemon/sanctuary-authority-root-lifecycle.js +780 -0
- package/dist/heart/daemon/sanctuary-authority-vault-migration.js +79 -0
- package/dist/heart/daemon/sanctuary-host-authority.js +1008 -0
- package/dist/heart/daemon/sanctuary-host-detached-supervisor.js +494 -0
- package/dist/heart/daemon/sanctuary-host-executor.js +670 -0
- package/dist/heart/daemon/sanctuary-host-linux-kernel.js +334 -0
- package/dist/heart/daemon/sanctuary-host-supervisor-entry.js +207 -0
- package/dist/heart/daemon/sanctuary-host-supervisor.js +95 -0
- package/dist/heart/daemon/sanctuary-telegram-authority-entry.js +445 -0
- package/dist/heart/daemon/sanctuary-telegram-authority-gateway.js +585 -0
- package/dist/heart/daemon/sanctuary-telegram-authority-service.js +615 -0
- package/dist/heart/daemon/sense-manager.js +20 -10
- package/dist/repertoire/tools-sanctuary-host.js +202 -0
- package/dist/repertoire/tools.js +15 -6
- package/dist/senses/private-runtime.js +2 -2
- package/dist/senses/root-host-approval-port.js +345 -0
- package/dist/senses/root-host-approval-runtime.js +393 -0
- package/dist/senses/sanctuary-authority-resident.js +102 -0
- package/dist/senses/telegram-admission.js +7 -0
- package/dist/senses/telegram-attachments.js +5 -1
- package/dist/senses/telegram-authority-transport.js +231 -0
- package/dist/senses/telegram-client.js +31 -8
- package/dist/senses/telegram-entry.js +1 -1
- package/dist/senses/telegram.js +168 -28
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -eu
|
|
3
|
+
|
|
4
|
+
if [ "$#" -lt 4 ]; then
|
|
5
|
+
exit 64
|
|
6
|
+
fi
|
|
7
|
+
|
|
8
|
+
cgroup_procs=$1
|
|
9
|
+
prlimit=$2
|
|
10
|
+
setsid=$3
|
|
11
|
+
shift 3
|
|
12
|
+
|
|
13
|
+
printf '%s\n' "$$" > "$cgroup_procs"
|
|
14
|
+
printf 'ready\n' >&3
|
|
15
|
+
exec 3>&-
|
|
16
|
+
exec "$prlimit" --nproc=256 --as=1073741824 -- "$setsid" --wait "$@"
|
package/changelog.json
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.818",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Keep private execution claims owner-only and check Sanctuary upgrade permissions with the predecessor stopped."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.817",
|
|
12
|
+
"changes": [
|
|
13
|
+
"Add root-authenticated Sanctuary host execution with exact owner approval, one-time permits, durable receipts, and tokenless Telegram transport.",
|
|
14
|
+
"Package journaled token/cursor migration and rollback with exact read-only authority socket mounts, preserving typed tools and owner-authored steward policy.",
|
|
15
|
+
"Keep Telegram and retirement available during execution-pin maintenance, with a root-only reviewed-hash refresh command that preserves authority identity and state.",
|
|
16
|
+
"Verify Linux system executable aliases against their resolved owned bytes without changing invocation paths or relaxing package-script pinning.",
|
|
17
|
+
"Build the pinned SQLite binding for the image libc, verify a real database load, and remove build-only artifacts before publication."
|
|
18
|
+
]
|
|
19
|
+
},
|
|
4
20
|
{
|
|
5
21
|
"version": "0.1.0-alpha.816",
|
|
6
22
|
"changes": [
|
package/deploy/unraid/Dockerfile
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
FROM node:22-bookworm-slim
|
|
2
2
|
|
|
3
3
|
LABEL org.opencontainers.image.source="https://github.com/ourostack/ouroboros"
|
|
4
|
+
LABEL bot.ouro.sanctuary.mount-contract="canonical-gateway"
|
|
4
5
|
|
|
5
6
|
ARG TARGETARCH
|
|
6
7
|
ARG SUPERCRONIC_AMD64_SHA256=5adff01c5a797663948e656d2b61d10932369ee437eb5cb54fa872b2960f222b
|
|
@@ -18,6 +19,10 @@ RUN apt-get update \
|
|
|
18
19
|
WORKDIR /opt/ouro
|
|
19
20
|
COPY package.json npm-shrinkwrap.json ./
|
|
20
21
|
RUN npm ci --omit=dev --legacy-peer-deps --workspaces=false --no-audit --no-fund \
|
|
22
|
+
&& npm run build-release --prefix node_modules/better-sqlite3 \
|
|
23
|
+
&& cp node_modules/better-sqlite3/build/Release/better_sqlite3.node "node_modules/better-sqlite3/prebuilds/linux-$(node -p process.arch).node" \
|
|
24
|
+
&& node -e 'const Database = require("better-sqlite3"); const db = new Database(":memory:"); if (db.prepare("SELECT 1 AS ready").get().ready !== 1) process.exit(1); db.close()' \
|
|
25
|
+
&& rm -rf node_modules/better-sqlite3/build \
|
|
21
26
|
&& test -x /opt/ouro/node_modules/.bin/bw \
|
|
22
27
|
&& ln -s /opt/ouro/node_modules/.bin/bw /usr/local/bin/bw
|
|
23
28
|
COPY dist ./dist
|
|
@@ -26,6 +31,7 @@ COPY skills ./skills
|
|
|
26
31
|
COPY changelog.json ./changelog.json
|
|
27
32
|
COPY deploy/unraid/container-runtime.json ./container-runtime.json
|
|
28
33
|
COPY deploy/unraid /opt/ouro/deploy/unraid
|
|
34
|
+
COPY assets/sanctuary-host-launcher.sh /opt/ouro/deploy/unraid/sanctuary-host-launcher.sh
|
|
29
35
|
RUN chown -R 10001:10001 /opt/ouro /home/ouro
|
|
30
36
|
|
|
31
37
|
USER 10001:10001
|