@aka_openclaw_plugin/mychat 0.1.2 → 0.1.4
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/api.js +6 -0
- package/dist/channel-D_abyn0t.js +946 -0
- package/dist/channel-plugin-api.js +2 -0
- package/dist/config-api.js +3 -0
- package/dist/config-schema-C42X7OSY.js +4234 -0
- package/dist/index.js +18 -0
- package/dist/openclaw.plugin.json +15 -0
- package/dist/package.json +68 -0
- package/dist/runtime-7z_VfQ27.js +53 -0
- package/dist/runtime-api.js +5 -0
- package/dist/runtime-setter-api.js +5 -0
- package/dist/setup-entry.js +2 -0
- package/package.json +6 -6
package/dist/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 };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "mychat",
|
|
3
|
+
"activation": {
|
|
4
|
+
"onStartup": false
|
|
5
|
+
},
|
|
6
|
+
"channels": ["mychat"],
|
|
7
|
+
"channelEnvVars": {
|
|
8
|
+
"mychat": ["MYCHAT_BOT_TOKEN"]
|
|
9
|
+
},
|
|
10
|
+
"configSchema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"properties": {}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aka_openclaw_plugin/mychat",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "OpenClaw MyChat channel plugin",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/havcino/openclaw.git"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./index.js",
|
|
12
|
+
"./channel-plugin-api.js": "./channel-plugin-api.js",
|
|
13
|
+
"./runtime-setter-api.js": "./runtime-setter-api.js",
|
|
14
|
+
"./runtime-api.js": "./runtime-api.js",
|
|
15
|
+
"./config-api.js": "./config-api.js"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"zod": "4.4.3"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@openclaw/plugin-sdk": "workspace:*",
|
|
22
|
+
"openclaw": "workspace:*"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"openclaw": ">=2026.5.18"
|
|
26
|
+
},
|
|
27
|
+
"peerDependenciesMeta": {
|
|
28
|
+
"openclaw": {
|
|
29
|
+
"optional": true
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"openclaw": {
|
|
33
|
+
"extensions": [
|
|
34
|
+
"./index.ts"
|
|
35
|
+
],
|
|
36
|
+
"channel": {
|
|
37
|
+
"id": "mychat",
|
|
38
|
+
"label": "MyChat",
|
|
39
|
+
"selectionLabel": "MyChat",
|
|
40
|
+
"detailLabel": "MyChat",
|
|
41
|
+
"docsPath": "/channels/mychat",
|
|
42
|
+
"docsLabel": "mychat",
|
|
43
|
+
"blurb": "MyChat private messaging channel.",
|
|
44
|
+
"systemImage": "chat",
|
|
45
|
+
"order": 120
|
|
46
|
+
},
|
|
47
|
+
"install": {
|
|
48
|
+
"npmSpec": "@aka_openclaw_plugin/mychat",
|
|
49
|
+
"defaultChoice": "npm",
|
|
50
|
+
"minHostVersion": ">=2026.5.18"
|
|
51
|
+
},
|
|
52
|
+
"compat": {
|
|
53
|
+
"pluginApi": ">=2026.5.18"
|
|
54
|
+
},
|
|
55
|
+
"build": {
|
|
56
|
+
"openclawVersion": "2026.5.18"
|
|
57
|
+
},
|
|
58
|
+
"release": {
|
|
59
|
+
"publishToClawHub": true,
|
|
60
|
+
"publishToNpm": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist/**",
|
|
65
|
+
"openclaw.plugin.json",
|
|
66
|
+
"README.md"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aka_openclaw_plugin/mychat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "OpenClaw MyChat channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": {
|
|
11
|
-
".": "./index.
|
|
12
|
-
"./channel-plugin-api.js": "./channel-plugin-api.
|
|
13
|
-
"./runtime-setter-api.js": "./runtime-setter-api.
|
|
14
|
-
"./runtime-api.js": "./runtime-api.
|
|
15
|
-
"./config-api.js": "./config-api.
|
|
11
|
+
".": "./index.js",
|
|
12
|
+
"./channel-plugin-api.js": "./channel-plugin-api.js",
|
|
13
|
+
"./runtime-setter-api.js": "./runtime-setter-api.js",
|
|
14
|
+
"./runtime-api.js": "./runtime-api.js",
|
|
15
|
+
"./config-api.js": "./config-api.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"zod": "4.4.3"
|