Fixes#4596
The @mariozechner/clipboard dependency was missing native bindings for
32-bit ARM Linux (linux-arm-gnueabihf), causing OpenClaw to crash on
startup on platforms like Raspberry Pi 3 and earlier.
This patch makes the clipboard module gracefully handle missing native
bindings by:
- Emitting a warning instead of throwing a fatal error
- Providing stub implementations that throw informative errors when called
- Allowing OpenClaw to start and run normally (clipboard ops will fail
if called, but the pi-coding-agent should still work)
The patch is applied via pnpm's patch mechanism, which allows us to
modify the clipboard module at install time without forking it.
Fixes#4592
The issue was that sharp@0.34.5 has an install script that automatically
attempts to build from source when prebuilt binaries are not immediately
available. On Node.js 22+ with Apple Silicon, this fallback to node-gyp
would fail because node-gyp is not available in the global install context.
sharp@0.35.0-rc.0 solves this by:
- Removing the automatic install script fallback
- Making building from source opt-in via the build script
- Still providing prebuilt binaries for all supported platforms
This change allows `npm install -g openclaw@latest` to succeed on
macOS with Node.js 22.22.0+ without requiring manual intervention or
additional build tooling.
Breaking changes in sharp@0.35.0-rc.0:
- Drops Node.js 18 support (requires >= 20.9.0)
- This is compatible with openclaw's requirement of Node.js >= 22.12.0
Add automatic discovery of AWS Bedrock models using ListFoundationModels API.
When AWS credentials are detected, models that support streaming and text output
are automatically discovered and made available.
- Add @aws-sdk/client-bedrock dependency
- Add discoverBedrockModels() with caching (default 1 hour)
- Add resolveImplicitBedrockProvider() for auto-registration
- Add BedrockDiscoveryConfig for optional filtering by provider/region
- Filter to active, streaming, text-output models only
- Update docs/bedrock.md with auto-discovery documentation