@bowong/clawshow-gateway 2026.3.16-2 → 2026.3.16-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/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/runtime.d.ts +0 -12
- package/dist/src/runtime.d.ts.map +0 -1
- package/dist/src/runtime.js +0 -19
- package/dist/src/runtime.js.map +0 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D,QAAA,MAAM,MAAM;;;;;kBAKI,iBAAiB;CAGhC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { emptyPluginConfigSchema } from 'openclaw/plugin-sdk';
|
|
2
2
|
import { webChannelPlugin } from './src/plugin.js';
|
|
3
|
-
import { setWebRuntime } from './src/runtime.js';
|
|
4
3
|
const plugin = {
|
|
5
4
|
id: 'clawshow-gateway',
|
|
6
5
|
name: 'clawshow-gateway',
|
|
7
6
|
description: 'Web channel plugin — browser chat via WebSocket relay',
|
|
8
7
|
configSchema: emptyPluginConfigSchema(),
|
|
9
8
|
register(api) {
|
|
10
|
-
setWebRuntime(api.runtime);
|
|
11
9
|
api.registerChannel({ plugin: webChannelPlugin });
|
|
12
10
|
},
|
|
13
11
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD,MAAM,MAAM,GAAG;IACb,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,uDAAuD;IACpE,YAAY,EAAE,uBAAuB,EAAE;IACvC,QAAQ,CAAC,GAAsB;QAC7B,GAAG,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAA;IACnD,CAAC;CACF,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
package/dist/src/runtime.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Web channel runtime singleton.
|
|
3
|
-
* Uses the same PluginRuntime type as other channel extensions (WhatsApp, etc.)
|
|
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).
|
|
8
|
-
*/
|
|
9
|
-
import type { PluginRuntime } from 'openclaw/plugin-sdk';
|
|
10
|
-
export declare function setWebRuntime(next: PluginRuntime): void;
|
|
11
|
-
export declare function getWebRuntime(): PluginRuntime;
|
|
12
|
-
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/src/runtime.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Web channel runtime singleton.
|
|
3
|
-
* Uses the same PluginRuntime type as other channel extensions (WhatsApp, etc.)
|
|
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).
|
|
8
|
-
*/
|
|
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
|
-
}
|
|
19
|
-
//# sourceMappingURL=runtime.js.map
|
package/dist/src/runtime.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|