@openclaw/clickclack 2026.10.10 → 2026.11.5-beta.1

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.
Files changed (58) hide show
  1. package/dist/.setup/{channel-CaLQ1zSw.mjs → channel-ByAANbh8.mjs} +363 -504
  2. package/dist/.setup/{resolve-C2XmZanM.mjs → resolve-CRj6QjdF.mjs} +27 -41
  3. package/dist/.setup/{rolldown-runtime-nwUcYXjP.mjs → rolldown-runtime-782esTHO.mjs} +0 -1
  4. package/dist/.setup/{runtime-api-HO9-jJAP.mjs → runtime-api-BsRK-sfA.mjs} +324 -368
  5. package/dist/.setup/{setup-claim-D50o9egr.mjs → setup-claim-BAKxfObl.mjs} +4 -9
  6. package/dist/.setup/{setup-plugin-api-COv8knUv.mjs → setup-plugin-api-BTqE973B.mjs} +1 -1
  7. package/dist/.setup/setup-plugin-api-CfuhJJvK.mjs +1 -0
  8. package/dist/.setup/{setup-surface-BuNtdRQY.mjs → setup-surface-5wSYr6p2.mjs} +5 -5
  9. package/dist/.setup/{setup-verify-CSI-GwUA.mjs → setup-verify-IayKkFWq.mjs} +12 -24
  10. package/dist/.source-module-urls/aa673c321fe9be084b8926cbe5388ff5e2a41371389e19ca60a1983f2b634030.json +1 -1
  11. package/dist/api.js +3 -3
  12. package/dist/channel-plugin-api.js +1 -1
  13. package/dist/doctor-contract-api.js +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/runtime-api.js +4 -4
  16. package/dist/setup-entry.js +1 -1
  17. package/dist/setup-plugin-api.js +1 -1
  18. package/node_modules/zod/package.json +1 -1
  19. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  20. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  21. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  22. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  23. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  24. package/node_modules/zod/src/v4/core/util.ts +13 -0
  25. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  26. package/node_modules/zod/v4/core/compile.cjs +8 -0
  27. package/node_modules/zod/v4/core/compile.js +8 -0
  28. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  29. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  30. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  31. package/node_modules/zod/v4/core/schemas.js +30 -0
  32. package/node_modules/zod/v4/core/util.cjs +15 -0
  33. package/node_modules/zod/v4/core/util.d.cts +2 -0
  34. package/node_modules/zod/v4/core/util.d.ts +2 -0
  35. package/node_modules/zod/v4/core/util.js +14 -0
  36. package/node_modules/zod/v4/core/versions.cjs +1 -1
  37. package/node_modules/zod/v4/core/versions.js +1 -1
  38. package/package.json +5 -7
  39. package/dist/.setup/setup-plugin-api-wzfSSaGz.mjs +0 -1
  40. package/node_modules/ws/LICENSE +0 -20
  41. package/node_modules/ws/README.md +0 -548
  42. package/node_modules/ws/browser.js +0 -8
  43. package/node_modules/ws/index.js +0 -22
  44. package/node_modules/ws/lib/buffer-util.js +0 -131
  45. package/node_modules/ws/lib/constants.js +0 -19
  46. package/node_modules/ws/lib/event-target.js +0 -292
  47. package/node_modules/ws/lib/extension.js +0 -203
  48. package/node_modules/ws/lib/limiter.js +0 -55
  49. package/node_modules/ws/lib/permessage-deflate.js +0 -530
  50. package/node_modules/ws/lib/receiver.js +0 -743
  51. package/node_modules/ws/lib/sender.js +0 -607
  52. package/node_modules/ws/lib/stream.js +0 -161
  53. package/node_modules/ws/lib/subprotocol.js +0 -62
  54. package/node_modules/ws/lib/validation.js +0 -152
  55. package/node_modules/ws/lib/websocket-server.js +0 -562
  56. package/node_modules/ws/lib/websocket.js +0 -1421
  57. package/node_modules/ws/package.json +0 -74
  58. package/node_modules/ws/wrapper.mjs +0 -21
@@ -834,8 +834,10 @@ export type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Val
834
834
  export type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<core.input<Key> & PropertyKey, core.input<Value>>> : [
835
835
  Value
836
836
  ] extends [OptionalInSchema] ? Partial<Record<core.input<Key> & PropertyKey, core.input<Value>>> : Record<core.input<Key> & PropertyKey, core.input<Value>>;
837
- export interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
837
+ export interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals {
838
838
  def: $ZodRecordDef<Key, Value>;
839
+ output: $InferZodRecordOutput<Key, Value>;
840
+ input: $InferZodRecordInput<Key, Value>;
839
841
  isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
840
842
  optin?: "optional" | undefined;
841
843
  optout?: "optional" | undefined;
@@ -816,6 +816,33 @@ export const $ZodDate = /*@__PURE__*/ core.$constructor("$ZodDate", (inst, def)
816
816
  return payload;
817
817
  };
818
818
  });
819
+ // an oversized container fails its leading size checks before any element is parsed
820
+ function capSize(inst, size) {
821
+ const caps = util.sizeCaps(inst._zod.def.checks);
822
+ if (!caps.length)
823
+ return;
824
+ const cap = Math.min(...caps.map((c) => c[0]));
825
+ const parse = inst._zod.parse;
826
+ inst._zod.parse = (payload, ctx) => {
827
+ const n = size(payload.value);
828
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
829
+ for (const [max, ch] of util.sizeCaps(inst._zod.def.checks)) {
830
+ if (n > max && ch._zod.def.when(payload)) {
831
+ const start = payload.issues.length;
832
+ ch._zod.check(payload);
833
+ // the value is still the raw input, so no later check may read it
834
+ payload.issues[start].continue = false;
835
+ util.attachSchema(payload.issues, start, inst);
836
+ return payload;
837
+ }
838
+ }
839
+ }
840
+ return parse(payload, ctx);
841
+ };
842
+ }
843
+ const arraySize = (input) => (Array.isArray(input) ? input.length : -1);
844
+ const mapSize = (input) => (input instanceof Map ? input.size : -1);
845
+ const setSize = (input) => (input instanceof Set ? input.size : -1);
819
846
  function handleArrayResult(result, final, index) {
820
847
  if (result.issues.length) {
821
848
  final.issues.push(...util.prefixIssues(index, result.issues));
@@ -861,6 +888,7 @@ export const $ZodArray = /*@__PURE__*/ core.$constructor("$ZodArray", (inst, def
861
888
  }
862
889
  return payload; //handleArrayResultsAsync(parseResults, final);
863
890
  };
891
+ capSize(inst, arraySize);
864
892
  });
865
893
  function handlePropertyResult(result, final, key, input, optin, optout) {
866
894
  const isPresent = key in input;
@@ -1898,6 +1926,7 @@ export const $ZodMap = /*@__PURE__*/ core.$constructor("$ZodMap", (inst, def) =>
1898
1926
  return Promise.all(proms).then(() => payload);
1899
1927
  return payload;
1900
1928
  };
1929
+ capSize(inst, mapSize);
1901
1930
  });
1902
1931
  function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
1903
1932
  if (keyResult.issues.length) {
@@ -1967,6 +1996,7 @@ export const $ZodSet = /*@__PURE__*/ core.$constructor("$ZodSet", (inst, def) =>
1967
1996
  return Promise.all(proms).then(() => payload);
1968
1997
  return payload;
1969
1998
  };
1999
+ capSize(inst, setSize);
1970
2000
  });
1971
2001
  function handleSetResult(result, final) {
1972
2002
  if (result.issues.length) {
@@ -46,6 +46,7 @@ exports.aborted = aborted;
46
46
  exports.explicitlyAborted = explicitlyAborted;
47
47
  exports.prefixIssues = prefixIssues;
48
48
  exports.unwrapMessage = unwrapMessage;
49
+ exports.sizeCaps = sizeCaps;
49
50
  exports.attachSchema = attachSchema;
50
51
  exports.finalizeIssue = finalizeIssue;
51
52
  exports.getSizableOrigin = getSizableOrigin;
@@ -620,6 +621,20 @@ function unwrapMessage(message) {
620
621
  return typeof message === "string" ? message : message?.message;
621
622
  }
622
623
  /* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */
624
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
625
+ function sizeCaps(defChecks) {
626
+ const caps = [];
627
+ for (const ch of defChecks ?? []) {
628
+ const d = ch._zod.def;
629
+ // a later check may rewrite the value
630
+ if (!/_(length|size)$|_equals$/.test(d.check))
631
+ break;
632
+ const max = d.maximum ?? d.length ?? d.size;
633
+ if (max >= 0)
634
+ caps.push([max, ch]);
635
+ }
636
+ return caps;
637
+ }
623
638
  function attachSchema(issues, start, inst) {
624
639
  var _a;
625
640
  for (let i = start; i < issues.length; i++) {
@@ -221,6 +221,8 @@ export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIs
221
221
  export declare function unwrapMessage(message: string | {
222
222
  message: string;
223
223
  } | undefined | null): string | undefined;
224
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
225
+ export declare function sizeCaps(defChecks: checks.$ZodCheck<never>[] | undefined): [number, checks.$ZodCheck<never>][];
224
226
  export declare function attachSchema(issues: errors.$ZodRawIssue[], start: number, inst: schemas.$ZodType): void;
225
227
  export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;
226
228
  export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
@@ -221,6 +221,8 @@ export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIs
221
221
  export declare function unwrapMessage(message: string | {
222
222
  message: string;
223
223
  } | undefined | null): string | undefined;
224
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
225
+ export declare function sizeCaps(defChecks: checks.$ZodCheck<never>[] | undefined): [number, checks.$ZodCheck<never>][];
224
226
  export declare function attachSchema(issues: errors.$ZodRawIssue[], start: number, inst: schemas.$ZodType): void;
225
227
  export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;
226
228
  export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
@@ -550,6 +550,20 @@ export function unwrapMessage(message) {
550
550
  return typeof message === "string" ? message : message?.message;
551
551
  }
552
552
  /* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */
553
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
554
+ export function sizeCaps(defChecks) {
555
+ const caps = [];
556
+ for (const ch of defChecks ?? []) {
557
+ const d = ch._zod.def;
558
+ // a later check may rewrite the value
559
+ if (!/_(length|size)$|_equals$/.test(d.check))
560
+ break;
561
+ const max = d.maximum ?? d.length ?? d.size;
562
+ if (max >= 0)
563
+ caps.push([max, ch]);
564
+ }
565
+ return caps;
566
+ }
553
567
  export function attachSchema(issues, start, inst) {
554
568
  var _a;
555
569
  for (let i = start; i < issues.length; i++) {
@@ -4,7 +4,7 @@ exports.version = void 0;
4
4
  exports.version = {
5
5
  major: 4,
6
6
  minor: 6,
7
- patch: 5,
7
+ patch: 7,
8
8
  };
9
9
 
10
10
  // seal-cjs-exports
@@ -1,5 +1,5 @@
1
1
  export const version = {
2
2
  major: 4,
3
3
  minor: 6,
4
- patch: 5,
4
+ patch: 7,
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/clickclack",
3
- "version": "2026.10.10",
3
+ "version": "2026.11.5-beta.1",
4
4
  "description": "OpenClaw ClickClack channel plugin",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,11 +9,10 @@
9
9
  "./runtime-api.js": "./dist/runtime-api.js"
10
10
  },
11
11
  "dependencies": {
12
- "ws": "8.22.0",
13
- "zod": "4.6.5"
12
+ "zod": "4.6.7"
14
13
  },
15
14
  "peerDependencies": {
16
- "openclaw": ">=2026.10.10"
15
+ "openclaw": ">=2026.11.5-beta.1"
17
16
  },
18
17
  "peerDependenciesMeta": {
19
18
  "openclaw": {
@@ -139,10 +138,10 @@
139
138
  "allowInvalidConfigRecovery": true
140
139
  },
141
140
  "compat": {
142
- "pluginApi": ">=2026.10.10"
141
+ "pluginApi": ">=2026.11.5-beta.1"
143
142
  },
144
143
  "build": {
145
- "openclawVersion": "2026.10.10",
144
+ "openclawVersion": "2026.11.5-beta.1",
146
145
  "bundledDist": false
147
146
  },
148
147
  "release": {
@@ -166,7 +165,6 @@
166
165
  "assets/activity.svg"
167
166
  ],
168
167
  "bundledDependencies": [
169
- "ws",
170
168
  "zod"
171
169
  ]
172
170
  }
@@ -1 +0,0 @@
1
- export { t as clickClackSetupPlugin } from "./setup-plugin-api-COv8knUv.mjs";
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
2
- Copyright (c) 2013 Arnout Kazemier and contributors
3
- Copyright (c) 2016 Luigi Pinca and contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.