@aka_openclaw_plugin/mychat 0.1.5 → 0.1.6

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/index.js ADDED
@@ -0,0 +1,18 @@
1
+ import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
2
+ //#region index.ts
3
+ var mychat_default = defineBundledChannelEntry({
4
+ id: "mychat",
5
+ name: "MyChat",
6
+ description: "MyChat channel plugin",
7
+ importMetaUrl: import.meta.url,
8
+ plugin: {
9
+ specifier: "./channel-plugin-api.js",
10
+ exportName: "mychatPlugin"
11
+ },
12
+ runtime: {
13
+ specifier: "./runtime-setter-api.js",
14
+ exportName: "setMychatRuntime"
15
+ }
16
+ });
17
+ //#endregion
18
+ export { mychat_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aka_openclaw_plugin/mychat",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "OpenClaw MyChat channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,53 @@
1
+ import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
2
+ //#region \0rolldown/runtime.js
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
8
+ var __exportAll = (all, no_symbols) => {
9
+ let target = {};
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
15
+ return target;
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
19
+ key = keys[i];
20
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
21
+ get: ((k) => from[k]).bind(null, key),
22
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23
+ });
24
+ }
25
+ return to;
26
+ };
27
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ //#endregion
29
+ //#region src/runtime.ts
30
+ var runtime_exports = /* @__PURE__ */ __exportAll({
31
+ getMychatRuntime: () => getMychatRuntime,
32
+ mychatRuntimeStore: () => mychatRuntimeStore,
33
+ setMychatRuntime: () => setMychatRuntime,
34
+ tryGetMychatRuntime: () => tryGetMychatRuntime
35
+ });
36
+ function setMychatRuntime(runtime) {
37
+ mychatRuntimeStore.setRuntime(runtime);
38
+ }
39
+ function getMychatRuntime() {
40
+ return mychatRuntimeStore.getRuntime();
41
+ }
42
+ function tryGetMychatRuntime() {
43
+ return mychatRuntimeStore.tryGetRuntime();
44
+ }
45
+ var mychatRuntimeStore;
46
+ var init_runtime = __esmMin((() => {
47
+ mychatRuntimeStore = createPluginRuntimeStore({
48
+ pluginId: "mychat",
49
+ errorMessage: "MyChat runtime not initialized. Ensure the plugin is registered."
50
+ });
51
+ }));
52
+ //#endregion
53
+ export { tryGetMychatRuntime as a, setMychatRuntime as i, init_runtime as n, __toCommonJS as o, runtime_exports as r, getMychatRuntime as t };
package/runtime-api.js ADDED
@@ -0,0 +1,5 @@
1
+ import { a as tryGetMychatRuntime, i as setMychatRuntime, n as init_runtime, t as getMychatRuntime } from "./runtime-7z_VfQ27.js";
2
+ //#region runtime-api.ts
3
+ init_runtime();
4
+ //#endregion
5
+ export { getMychatRuntime, setMychatRuntime, tryGetMychatRuntime };
@@ -0,0 +1,5 @@
1
+ import { i as setMychatRuntime, n as init_runtime } from "./runtime-7z_VfQ27.js";
2
+ //#region runtime-setter-api.ts
3
+ init_runtime();
4
+ //#endregion
5
+ export { setMychatRuntime };
package/setup-entry.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as mychatPlugin } from "./channel-D_abyn0t.js";
2
+ export { mychatPlugin };