@openclaw/clickclack 2026.7.2-beta.7 → 2026.7.34

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.
@@ -1,48 +0,0 @@
1
- import { asObjectRecord } from "openclaw/plugin-sdk/runtime-doctor";
2
- //#region extensions/clickclack/src/doctor-contract.ts
3
- function stripTimeoutSeconds(value) {
4
- const record = asObjectRecord(value);
5
- if (!record) return {
6
- value,
7
- changed: false
8
- };
9
- let changed = false;
10
- const next = {};
11
- for (const [key, child] of Object.entries(record)) {
12
- if (key === "timeoutSeconds") {
13
- changed = true;
14
- continue;
15
- }
16
- const stripped = stripTimeoutSeconds(child);
17
- changed = changed || stripped.changed;
18
- next[key] = stripped.value;
19
- }
20
- return {
21
- value: changed ? next : value,
22
- changed
23
- };
24
- }
25
- function normalizeCompatibilityConfig({ cfg }) {
26
- const rawEntry = asObjectRecord(cfg.channels?.clickclack);
27
- if (!rawEntry) return {
28
- config: cfg,
29
- changes: []
30
- };
31
- const stripped = stripTimeoutSeconds(rawEntry);
32
- if (!stripped.changed) return {
33
- config: cfg,
34
- changes: []
35
- };
36
- return {
37
- config: {
38
- ...cfg,
39
- channels: {
40
- ...cfg.channels,
41
- clickclack: stripped.value
42
- }
43
- },
44
- changes: ["Removed retired ClickClack timeout tuning knobs."]
45
- };
46
- }
47
- //#endregion
48
- export { normalizeCompatibilityConfig };