refactor(core): adopt normalization-core leaf helpers across production (#120350)

* refactor(core): adopt normalization-core leaf helpers across production

* fix(ci): keep plugin contract source-resolvable

* fix(errors): preserve adapter-owned error fields

* fix(errors): short-circuit existing errors before stringifying

* fix(errors): skip throwing structured getters

* ci: retrigger checks on current base

* fix(errors): guard structured error enumeration

* fix: harden error detail copying
This commit is contained in:
Peter Steinberger
2026-08-08 12:00:49 -07:00
committed by GitHub
parent e81d7e62e8
commit e7a9f33d89
165 changed files with 748 additions and 848 deletions
+1 -4
View File
@@ -1,5 +1,6 @@
import fs from "node:fs/promises";
import path from "node:path";
import { isRecord as isObjectRecord } from "@openclaw/normalization-core/record-coerce";
import {
normalizeLowercaseStringOrEmpty,
normalizeOptionalString,
@@ -401,10 +402,6 @@ function buildTtsConfigWithHydratedProvider(params: {
return tts;
}
function isObjectRecord(value: unknown): value is Record<string, unknown> {
return Boolean(value && typeof value === "object" && !Array.isArray(value));
}
function ttsProviderConfigHasApiKey(value: unknown): boolean {
return isObjectRecord(value) && "apiKey" in value;
}