chore: project hygiene — fix workspace:*, sandbox USER, dead config (#11289)

* chore: project hygiene fixes (workspace:*, sandbox USER, dead config)

* chore: also fix workspace:* in zalouser dependencies
This commit is contained in:
max
2026-02-08 02:36:42 -08:00
committed by GitHub
parent c56fb7f353
commit 28e1a65ebc
10 changed files with 30 additions and 51 deletions

View File

@@ -28,6 +28,11 @@ Docs: https://docs.openclaw.ai
### Changes ### Changes
- Hygiene: remove `workspace:*` from `dependencies` in msteams, nostr, zalo extensions (breaks external `npm install`; keep in `devDependencies` only).
- Hygiene: add non-root `sandbox` user to `Dockerfile.sandbox` and `Dockerfile.sandbox-browser`.
- Hygiene: remove dead `vitest` key from `package.json` (superseded by `vitest.config.ts`).
- Hygiene: remove redundant top-level `overrides` from `package.json` (pnpm uses `pnpm.overrides`).
- Hygiene: sync `onlyBuiltDependencies` between `pnpm-workspace.yaml` and `package.json` (add missing `node-llama-cpp`, sort alphabetically).
- Cron: default `wakeMode` is now `"now"` for new jobs (was `"next-heartbeat"`). (#10776) Thanks @tyler6204. - Cron: default `wakeMode` is now `"now"` for new jobs (was `"next-heartbeat"`). (#10776) Thanks @tyler6204.
- Cron: `cron run` defaults to force execution; use `--due` to restrict to due-only. (#10776) Thanks @tyler6204. - Cron: `cron run` defaults to force execution; use `--due` to restrict to due-only. (#10776) Thanks @tyler6204.
- Models: support Anthropic Opus 4.6 and OpenAI Codex gpt-5.3-codex (forward-compat fallbacks). (#9853, #10720, #9995) Thanks @TinyTb, @calvin-hpnet, @tyler6204. - Models: support Anthropic Opus 4.6 and OpenAI Codex gpt-5.3-codex (forward-compat fallbacks). (#9853, #10720, #9995) Thanks @TinyTb, @calvin-hpnet, @tyler6204.

View File

@@ -13,4 +13,8 @@ RUN apt-get update \
ripgrep \ ripgrep \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --shell /bin/bash sandbox
USER sandbox
WORKDIR /home/sandbox
CMD ["sleep", "infinity"] CMD ["sleep", "infinity"]

View File

@@ -23,6 +23,10 @@ RUN apt-get update \
COPY scripts/sandbox-browser-entrypoint.sh /usr/local/bin/openclaw-sandbox-browser COPY scripts/sandbox-browser-entrypoint.sh /usr/local/bin/openclaw-sandbox-browser
RUN chmod +x /usr/local/bin/openclaw-sandbox-browser RUN chmod +x /usr/local/bin/openclaw-sandbox-browser
RUN useradd --create-home --shell /bin/bash sandbox
USER sandbox
WORKDIR /home/sandbox
EXPOSE 9222 5900 6080 EXPOSE 9222 5900 6080
CMD ["openclaw-sandbox-browser"] CMD ["openclaw-sandbox-browser"]

View File

@@ -8,7 +8,6 @@
"@microsoft/agents-hosting-express": "^1.2.3", "@microsoft/agents-hosting-express": "^1.2.3",
"@microsoft/agents-hosting-extensions-teams": "^1.2.3", "@microsoft/agents-hosting-extensions-teams": "^1.2.3",
"express": "^5.2.1", "express": "^5.2.1",
"openclaw": "workspace:*",
"proper-lockfile": "^4.1.2" "proper-lockfile": "^4.1.2"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -5,7 +5,6 @@
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"nostr-tools": "^2.23.0", "nostr-tools": "^2.23.0",
"openclaw": "workspace:*",
"zod": "^4.3.6" "zod": "^4.3.6"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -4,7 +4,6 @@
"description": "OpenClaw Zalo channel plugin", "description": "OpenClaw Zalo channel plugin",
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"openclaw": "workspace:*",
"undici": "7.21.0" "undici": "7.21.0"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -4,8 +4,7 @@
"description": "OpenClaw Zalo Personal Account plugin via zca-cli", "description": "OpenClaw Zalo Personal Account plugin via zca-cli",
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@sinclair/typebox": "0.34.48", "@sinclair/typebox": "0.34.48"
"openclaw": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"openclaw": "workspace:*" "openclaw": "workspace:*"

View File

@@ -185,9 +185,6 @@
"@napi-rs/canvas": "^0.1.89", "@napi-rs/canvas": "^0.1.89",
"node-llama-cpp": "3.15.1" "node-llama-cpp": "3.15.1"
}, },
"overrides": {
"tar": "7.5.7"
},
"engines": { "engines": {
"node": ">=22.12.0" "node": ">=22.12.0"
}, },
@@ -215,37 +212,5 @@
"protobufjs", "protobufjs",
"sharp" "sharp"
] ]
},
"vitest": {
"coverage": {
"provider": "v8",
"reporter": [
"text",
"lcov"
],
"thresholds": {
"lines": 70,
"functions": 70,
"branches": 70,
"statements": 70
},
"include": [
"src/**/*.ts"
],
"exclude": [
"src/**/*.test.ts"
]
},
"include": [
"src/**/*.test.ts"
],
"exclude": [
"dist/**",
"apps/macos/**",
"apps/macos/.build/**",
"**/vendor/**",
"apps/macos/.build/**",
"dist/OpenClaw.app/**"
]
} }
} }

22
pnpm-lock.yaml generated
View File

@@ -435,12 +435,13 @@ importers:
express: express:
specifier: ^5.2.1 specifier: ^5.2.1
version: 5.2.1 version: 5.2.1
openclaw:
specifier: workspace:*
version: link:../..
proper-lockfile: proper-lockfile:
specifier: ^4.1.2 specifier: ^4.1.2
version: 4.1.2 version: 4.1.2
devDependencies:
openclaw:
specifier: workspace:*
version: link:../..
extensions/nextcloud-talk: extensions/nextcloud-talk:
devDependencies: devDependencies:
@@ -453,12 +454,13 @@ importers:
nostr-tools: nostr-tools:
specifier: ^2.23.0 specifier: ^2.23.0
version: 2.23.0(typescript@5.9.3) version: 2.23.0(typescript@5.9.3)
openclaw:
specifier: workspace:*
version: link:../..
zod: zod:
specifier: ^4.3.6 specifier: ^4.3.6
version: 4.3.6 version: 4.3.6
devDependencies:
openclaw:
specifier: workspace:*
version: link:../..
extensions/open-prose: extensions/open-prose:
devDependencies: devDependencies:
@@ -540,18 +542,20 @@ importers:
extensions/zalo: extensions/zalo:
dependencies: dependencies:
openclaw:
specifier: workspace:*
version: link:../..
undici: undici:
specifier: 7.21.0 specifier: 7.21.0
version: 7.21.0 version: 7.21.0
devDependencies:
openclaw:
specifier: workspace:*
version: link:../..
extensions/zalouser: extensions/zalouser:
dependencies: dependencies:
'@sinclair/typebox': '@sinclair/typebox':
specifier: 0.34.48 specifier: 0.34.48
version: 0.34.48 version: 0.34.48
devDependencies:
openclaw: openclaw:
specifier: workspace:* specifier: workspace:*
version: link:../.. version: link:../..

View File

@@ -5,11 +5,12 @@ packages:
- extensions/* - extensions/*
onlyBuiltDependencies: onlyBuiltDependencies:
- "@whiskeysockets/baileys"
- "@lydell/node-pty" - "@lydell/node-pty"
- "@matrix-org/matrix-sdk-crypto-nodejs" - "@matrix-org/matrix-sdk-crypto-nodejs"
- "@napi-rs/canvas"
- "@whiskeysockets/baileys"
- authenticate-pam - authenticate-pam
- esbuild - esbuild
- node-llama-cpp
- protobufjs - protobufjs
- sharp - sharp
- "@napi-rs/canvas"