mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 07:30:45 +00:00
fix: use pathToFileURL for Windows path comparison in generate-base-config-schema
Summary: - Use Node's pathToFileURL for the base-config schema generator entrypoint guard so Windows backslash paths are recognized correctly. - Keep the schema generation logic unchanged and preserve the current changelog attribution. Verification: - node --import tsx scripts/generate-base-config-schema.ts --check - pnpm build - pnpm check - GitHub CI passed, including Real behavior proof, auto-response, ClawSweeper dispatch, and full repository checks. Co-authored-by: Fusion future <23738961+easyteacher@users.noreply.github.com>
This commit is contained in:
@@ -269,6 +269,7 @@ Docs: https://docs.openclaw.ai
|
||||
- Models/config: allow `compat.thinkingFormat` values `qwen` and `qwen-chat-template` for configured OpenAI-compatible Qwen models, preserving them through catalog normalization and mapping `/think` levels to `enable_thinking` or `chat_template_kwargs.enable_thinking`. Fixes #79677. (#79777) Thanks @indulgeback.
|
||||
- Codex app-server: default implicit local stdio app-server permissions to guardian when Codex system requirements disallow the YOLO approval, reviewer, or sandbox value, including hostname-scoped remote sandbox entries, avoiding turn-start failures on managed hosts that permit only reviewed approval or narrower sandboxes.
|
||||
- Plugins/install: run managed npm-root install, uninstall, prune, and repair commands from the managed root without a redundant `--prefix .`, avoiding npm 10.9.3 Arborist crashes on native Windows WhatsApp plugin installs. Fixes #78514. (#78902) Thanks @melihselamett-stack.
|
||||
- Config/schema/Windows: detect direct execution of the base config schema generator with `pathToFileURL` so Windows paths with backslashes still run the `--check` and `--write` command body. (#52989) Thanks @easyteacher.
|
||||
- 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.
|
||||
- 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.
|
||||
- iMessage: expose native private-API message actions through `imsg rpc` for reactions, edits, unsends, replies, rich sends, attachments, and group management when `imsg status --json` reports the required bridge capabilities.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
import { pathToFileURL } from "node:url";
|
||||
import { computeBaseConfigSchemaResponse } from "../src/config/schema-base.js";
|
||||
|
||||
export function checkBaseConfigSchema(): void {
|
||||
@@ -12,7 +13,7 @@ if (args.has("--check") && args.has("--write")) {
|
||||
throw new Error("Use either --check or --write, not both.");
|
||||
}
|
||||
|
||||
if (import.meta.url === new URL(process.argv[1] ?? "", "file://").href) {
|
||||
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
|
||||
checkBaseConfigSchema();
|
||||
if (args.has("--write")) {
|
||||
console.log("[base-config-schema] runtime-computed; no generated file to write");
|
||||
|
||||
Reference in New Issue
Block a user