@openclaw/gateway-protocol 2026.9.1 → 2026.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-info.mjs +3 -6
- package/dist/connect-error-details.d.mts +1 -11
- package/dist/connect-error-details.mjs +44 -39
- package/dist/frame-guards.d.mts +1 -1
- package/dist/frame-guards.mjs +1 -1
- package/dist/{frames-DNdJEs4Y.d.mts → frames-8A7sw44F.d.mts} +2 -0
- package/dist/{gateway-error-details-GvUeus2z.d.mts → gateway-error-details-DVeCF9AS.d.mts} +11 -2
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +13 -2
- package/dist/index.d.mts +788 -52
- package/dist/index.mjs +54 -18
- package/dist/protocol-value-normalization-DfM01tqg.mjs +7 -0
- package/dist/restart-unavailable.d.mts +2 -0
- package/dist/restart-unavailable.mjs +10 -3
- package/dist/{schema-modules-Id_e1MtF.d.mts → schema-modules-BWvk5LhI.d.mts} +4121 -2675
- package/dist/schema.d.mts +3226 -1909
- package/dist/schema.mjs +102 -49
- package/dist/string-coerce-BJ6bjzdv.mjs +21 -0
- package/dist/{worktrees-brAvxYC8.mjs → worktrees-CO9Ru3Wl.mjs} +3085 -2107
- package/package.json +2 -2
- package/protocol.schema.json +24578 -17039
- package/dist/protocol-value-normalization-DcAoxLUs.mjs +0 -12
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region ../normalization-core/src/string-coerce.ts
|
|
2
|
+
/** Trims string input and returns null for non-strings or empty strings. */
|
|
3
|
+
function normalizeNullableString(value) {
|
|
4
|
+
if (typeof value !== "string") return null;
|
|
5
|
+
const trimmed = value.trim();
|
|
6
|
+
return trimmed ? trimmed : null;
|
|
7
|
+
}
|
|
8
|
+
/** Trims string input and returns undefined for non-strings or empty strings. */
|
|
9
|
+
function normalizeOptionalString(value) {
|
|
10
|
+
return normalizeNullableString(value) ?? void 0;
|
|
11
|
+
}
|
|
12
|
+
/** Requires non-blank string input while preserving its original whitespace. */
|
|
13
|
+
function readNonBlankString(value) {
|
|
14
|
+
return typeof value === "string" && value.trim() ? value : void 0;
|
|
15
|
+
}
|
|
16
|
+
/** Lowercases a normalized optional string. */
|
|
17
|
+
function normalizeOptionalLowercaseString(value) {
|
|
18
|
+
return normalizeOptionalString(value)?.toLowerCase();
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { normalizeOptionalString as n, readNonBlankString as r, normalizeOptionalLowercaseString as t };
|