feat: add native sqlite Kysely dialect · openclaw/openclaw@955b025
steipete
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
|
6 | 6 | |
7 | 7 | ### Changes |
8 | 8 | |
| 9 | +- Runtime/install: raise the supported Node 22 floor to `22.16+` so native SQLite query handling can rely on the `node:sqlite` statement metadata API while continuing to recommend Node 24. (#78921) |
9 | 10 | - Discord/voice: stream ElevenLabs TTS directly into Discord playback and send ElevenLabs latency optimization as the documented query parameter so spoken replies can start sooner. |
10 | 11 | - Discord/voice: keep TTS playback running when another user starts speaking, ignore new capture during playback to avoid feedback loops, and downgrade expected receive-stream aborts to verbose diagnostics. |
11 | 12 | - Telegram: treat successful same-chat `message` tool outbound sends during an inbound telegram turn as delivered when deciding whether to emit the rewritten silent reply fallback (#78685). Thanks @neeravmakwana. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -96,7 +96,7 @@ Model note: while many providers and models are supported, prefer a current flag
|
96 | 96 | |
97 | 97 | ## Install (recommended) |
98 | 98 | |
99 | | -Runtime: **Node 24 (recommended) or Node 22.14+**. |
| 99 | +Runtime: **Node 24 (recommended) or Node 22.16+**. |
100 | 100 | |
101 | 101 | ```bash |
102 | 102 | npm install -g openclaw@latest |
@@ -109,7 +109,7 @@ OpenClaw Onboard installs the Gateway daemon (launchd/systemd user service) so i
|
109 | 109 | |
110 | 110 | ## Quick start (TL;DR) |
111 | 111 | |
112 | | -Runtime: **Node 24 (recommended) or Node 22.14+**. |
| 112 | +Runtime: **Node 24 (recommended) or Node 22.16+**. |
113 | 113 | |
114 | 114 | Full beginner guide (auth, pairing, channels): [Getting started](https://docs.openclaw.ai/start/getting-started) |
115 | 115 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -312,15 +312,15 @@ OpenClaw's web interface (Gateway Control UI + HTTP endpoints) is intended for *
|
312 | 312 | |
313 | 313 | ### Node.js Version |
314 | 314 | |
315 | | -OpenClaw requires **Node.js 22.14.0 or later** (LTS). This version includes important security patches: |
| 315 | +OpenClaw requires **Node.js 22.16.0 or later** (LTS). This version includes important security patches: |
316 | 316 | |
317 | 317 | - CVE-2025-59466: async_hooks DoS vulnerability |
318 | 318 | - CVE-2026-21636: Permission model bypass vulnerability |
319 | 319 | |
320 | 320 | Verify your Node.js version: |
321 | 321 | |
322 | 322 | ```bash |
323 | | -node --version # Should be v22.14.0 or later |
| 323 | +node --version # Should be v22.16.0 or later |
324 | 324 | ``` |
325 | 325 | |
326 | 326 | ### Docker Security |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,6 +9,7 @@ const rootEntries = [
|
9 | 9 | "src/index.ts!", |
10 | 10 | "src/entry.ts!", |
11 | 11 | "src/cli/daemon-cli.ts!", |
| 12 | +"src/infra/kysely-node-sqlite.ts!", |
12 | 13 | "src/infra/warning-filter.ts!", |
13 | 14 | "src/infra/command-explainer/index.ts!", |
14 | 15 | bundledPluginFile("telegram", "src/audit.ts", "!"), |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,7 @@ OpenClaw is a **self-hosted gateway** that connects your favorite chat apps and
|
54 | 54 | - **Agent-native**: built for coding agents with tool use, sessions, memory, and multi-agent routing |
55 | 55 | - **Open source**: MIT licensed, community-driven |
56 | 56 | |
57 | | -**What do you need?** Node 24 (recommended), or Node 22 LTS (`22.14+`) for compatibility, an API key from your chosen provider, and 5 minutes. For best quality and security, use the strongest latest-generation model available. |
| 57 | +**What do you need?** Node 24 (recommended), or Node 22 LTS (`22.16+`) for compatibility, an API key from your chosen provider, and 5 minutes. For best quality and security, use the strongest latest-generation model available. |
58 | 58 | |
59 | 59 | ## How it works |
60 | 60 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -46,7 +46,7 @@ The Ansible playbook installs and configures:
|
46 | 46 | 1. **Tailscale** -- mesh VPN for secure remote access |
47 | 47 | 2. **UFW firewall** -- SSH + Tailscale ports only |
48 | 48 | 3. **Docker CE + Compose V2** -- for the default agent sandbox backend |
49 | | -4. **Node.js 24 + pnpm** -- runtime dependencies (Node 22 LTS, currently `22.14+`, remains supported) |
| 49 | +4. **Node.js 24 + pnpm** -- runtime dependencies (Node 22 LTS, currently `22.16+`, remains supported) |
50 | 50 | 5. **OpenClaw** -- host-based, not containerized |
51 | 51 | 6. **Systemd service** -- auto-start with security hardening |
52 | 52 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -39,7 +39,7 @@ Bun is an optional local runtime for running TypeScript directly (`bun run ...`,
|
39 | 39 | |
40 | 40 | Bun blocks dependency lifecycle scripts unless explicitly trusted. For this repo, the commonly blocked scripts are not required: |
41 | 41 | |
42 | | -- `@whiskeysockets/baileys` `preinstall` -- checks Node major >= 20 (OpenClaw defaults to Node 24 and still supports Node 22 LTS, currently `22.14+`) |
| 42 | +- `@whiskeysockets/baileys` `preinstall` -- checks Node major >= 20 (OpenClaw defaults to Node 24 and still supports Node 22 LTS, currently `22.16+`) |
43 | 43 | - `protobufjs` `postinstall` -- emits warnings about incompatible version schemes (no build artifacts) |
44 | 44 | |
45 | 45 | If you hit a runtime issue that requires these scripts, trust them explicitly: |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ title: "Install"
|
9 | 9 | |
10 | 10 | ## System requirements |
11 | 11 | |
12 | | -- **Node 24** (recommended) or Node 22.14+ - the installer script handles this automatically |
| 12 | +- **Node 24** (recommended) or Node 22.16+ - the installer script handles this automatically |
13 | 13 | - **macOS, Linux, or Windows** - both native Windows and WSL2 are supported; WSL2 is more stable. See [Windows](/platforms/windows). |
14 | 14 | - `pnpm` is only needed if you build from source |
15 | 15 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -71,7 +71,7 @@ Recommended for most interactive installs on macOS/Linux/WSL.
|
71 | 71 | Supports macOS and Linux (including WSL). If macOS is detected, installs Homebrew if missing. |
72 | 72 | </Step> |
73 | 73 | <Step title="Ensure Node.js 24 by default"> |
74 | | -Checks Node version and installs Node 24 if needed (Homebrew on macOS, NodeSource setup scripts on Linux apt/dnf/yum). OpenClaw still supports Node 22 LTS, currently `22.14+`, for compatibility. |
| 74 | +Checks Node version and installs Node 24 if needed (Homebrew on macOS, NodeSource setup scripts on Linux apt/dnf/yum). OpenClaw still supports Node 22 LTS, currently `22.16+`, for compatibility. |
75 | 75 | </Step> |
76 | 76 | <Step title="Ensure Git"> |
77 | 77 | Installs Git if missing. |
@@ -284,7 +284,7 @@ by default, plus git-checkout installs under the same prefix flow.
|
284 | 284 | Requires PowerShell 5+. |
285 | 285 | </Step> |
286 | 286 | <Step title="Ensure Node.js 24 by default"> |
287 | | -If missing, attempts install via winget, then Chocolatey, then Scoop. Node 22 LTS, currently `22.14+`, remains supported for compatibility. |
| 287 | +If missing, attempts install via winget, then Chocolatey, then Scoop. Node 22 LTS, currently `22.16+`, remains supported for compatibility. |
288 | 288 | </Step> |
289 | 289 | <Step title="Install OpenClaw"> |
290 | 290 | - `npm` method (default): global npm install using selected `-Tag`, launched from a writable installer temp directory so shells opened in protected folders such as `C:\` still work |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,15 +7,15 @@ read_when:
|
7 | 7 | - "npm install -g fails with permissions or PATH issues" |
8 | 8 | --- |
9 | 9 | |
10 | | -OpenClaw requires **Node 22.14 or newer**. **Node 24 is the default and recommended runtime** for installs, CI, and release workflows. Node 22 remains supported via the active LTS line. The [installer script](/install#alternative-install-methods) will detect and install Node automatically - this page is for when you want to set up Node yourself and make sure everything is wired up correctly (versions, PATH, global installs). |
| 10 | +OpenClaw requires **Node 22.16 or newer**. **Node 24 is the default and recommended runtime** for installs, CI, and release workflows. Node 22 remains supported via the active LTS line. The [installer script](/install#alternative-install-methods) will detect and install Node automatically - this page is for when you want to set up Node yourself and make sure everything is wired up correctly (versions, PATH, global installs). |
11 | 11 | |
12 | 12 | ## Check your version |
13 | 13 | |
14 | 14 | ```bash |
15 | 15 | node -v |
16 | 16 | ``` |
17 | 17 | |
18 | | -If this prints `v24.x.x` or higher, you're on the recommended default. If it prints `v22.14.x` or higher, you're on the supported Node 22 LTS path, but we still recommend upgrading to Node 24 when convenient. If Node isn't installed or the version is too old, pick an install method below. |
| 18 | +If this prints `v24.x.x` or higher, you're on the recommended default. If it prints `v22.16.x` or higher, you're on the supported Node 22 LTS path, but we still recommend upgrading to Node 24 when convenient. If Node isn't installed or the version is too old, pick an install method below. |
19 | 19 | |
20 | 20 | ## Install Node |
21 | 21 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。