@bowong/clawshow-gateway 2026.3.16-1 → 2026.3.16-2

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.
@@ -2,8 +2,11 @@
2
2
  * Web channel runtime singleton.
3
3
  * Uses the same PluginRuntime type as other channel extensions (WhatsApp, etc.)
4
4
  * for full access to openclaw infrastructure (config, logging, subagent, channel).
5
+ *
6
+ * Inlines the store to stay compatible with openclaw ≥ 2026.3.2
7
+ * (createPluginRuntimeStore was added in 2026.3.12).
5
8
  */
6
9
  import type { PluginRuntime } from 'openclaw/plugin-sdk';
7
- declare const setWebRuntime: (next: PluginRuntime) => void, getWebRuntime: () => PluginRuntime;
8
- export { getWebRuntime, setWebRuntime };
10
+ export declare function setWebRuntime(next: PluginRuntime): void;
11
+ export declare function getWebRuntime(): PluginRuntime;
9
12
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,QAAA,MAAoB,aAAa,iCAAc,aAAa,qBACoB,CAAA;AAChF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAEvD;AAED,wBAAgB,aAAa,IAAI,aAAa,CAK7C"}
@@ -2,8 +2,18 @@
2
2
  * Web channel runtime singleton.
3
3
  * Uses the same PluginRuntime type as other channel extensions (WhatsApp, etc.)
4
4
  * for full access to openclaw infrastructure (config, logging, subagent, channel).
5
+ *
6
+ * Inlines the store to stay compatible with openclaw ≥ 2026.3.2
7
+ * (createPluginRuntimeStore was added in 2026.3.12).
5
8
  */
6
- import { createPluginRuntimeStore } from 'openclaw/plugin-sdk';
7
- const { setRuntime: setWebRuntime, getRuntime: getWebRuntime } = createPluginRuntimeStore('Web channel runtime not initialized');
8
- export { getWebRuntime, setWebRuntime };
9
+ let _runtime = null;
10
+ export function setWebRuntime(next) {
11
+ _runtime = next;
12
+ }
13
+ export function getWebRuntime() {
14
+ if (!_runtime) {
15
+ throw new Error('Web channel runtime not initialized');
16
+ }
17
+ return _runtime;
18
+ }
9
19
  //# sourceMappingURL=runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAG9D,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,GAC5D,wBAAwB,CAAgB,qCAAqC,CAAC,CAAA;AAChF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,IAAI,QAAQ,GAAyB,IAAI,CAAA;AAEzC,MAAM,UAAU,aAAa,CAAC,IAAmB;IAC/C,QAAQ,GAAG,IAAI,CAAA;AACjB,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IACxD,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bowong/clawshow-gateway",
3
- "version": "2026.3.16-1",
3
+ "version": "2026.3.16-2",
4
4
  "description": "OpenClaw Web channel plugin — browser-based chat via WebSocket relay",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -29,7 +29,7 @@
29
29
  "peerDependencies": {
30
30
  "ws": "^8.19.0",
31
31
  "@types/ws": "^8.5.13",
32
- "openclaw": "^2026.3.12"
32
+ "openclaw": "^2026.3.2"
33
33
  },
34
34
  "dependencies": {},
35
35
  "devDependencies": {},