@clawling/clawchat-plugin-openclaw 2026.7.21-1 → 2026.7.23-1

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.
@@ -10,12 +10,22 @@ export function livewareDir(stateDir) {
10
10
  const root = stateDir ?? resolveStateDir();
11
11
  return path.join(root, "clawchat", "liveware");
12
12
  }
13
+ /** Local filename for the downloaded binary; Windows needs a .exe suffix. */
14
+ export function livewareBinaryName(plat = process.platform) {
15
+ return plat === "win32" ? "liveware.exe" : "liveware";
16
+ }
13
17
  /** Map host platform/arch to the liveware asset filename, or null if unsupported. */
14
18
  export function platformAssets(plat = process.platform, arch = process.arch) {
15
- const os = plat === "darwin" ? "darwin" : plat === "linux" ? "linux" : null;
19
+ const os = plat === "darwin" ? "darwin" : plat === "linux" ? "linux" : plat === "win32" ? "windows" : null;
16
20
  const cpu = arch === "x64" ? "amd64" : arch === "arm64" ? "arm64" : null;
17
21
  if (!os || !cpu)
18
22
  return null;
23
+ // Windows only ships an amd64 build, published with a .exe suffix.
24
+ if (os === "windows") {
25
+ if (cpu !== "amd64")
26
+ return null;
27
+ return { liveware: "liveware-windows-amd64.exe" };
28
+ }
19
29
  return { liveware: `liveware-${os}-${cpu}` };
20
30
  }
21
31
  function findOnPath(name) {
@@ -41,9 +51,10 @@ function findOnPath(name) {
41
51
  * 3. otherwise → null
42
52
  */
43
53
  export function resolveLivewarePath(stateDir) {
44
- if (findOnPath("liveware"))
45
- return "liveware";
46
- const local = path.join(livewareDir(stateDir), "liveware");
54
+ const name = livewareBinaryName();
55
+ if (findOnPath(name))
56
+ return name;
57
+ const local = path.join(livewareDir(stateDir), name);
47
58
  try {
48
59
  fs.accessSync(local, fs.constants.X_OK);
49
60
  return local;
@@ -71,10 +82,11 @@ async function downloadTo(url, dest) {
71
82
  export async function ensureLivewareCli(opts = {}) {
72
83
  const { stateDir, log } = opts;
73
84
  try {
74
- if (findOnPath("liveware"))
85
+ const name = livewareBinaryName();
86
+ if (findOnPath(name))
75
87
  return; // PATH wins
76
88
  const dir = livewareDir(stateDir);
77
- const target = path.join(dir, "liveware");
89
+ const target = path.join(dir, name);
78
90
  if (fs.existsSync(target))
79
91
  return;
80
92
  const assets = platformAssets();
@@ -83,7 +95,7 @@ export async function ensureLivewareCli(opts = {}) {
83
95
  return;
84
96
  }
85
97
  await fs.promises.mkdir(dir, { recursive: true });
86
- await downloadTo(LIVEWARE_BASE_URL + assets.liveware, path.join(dir, "liveware"));
98
+ await downloadTo(LIVEWARE_BASE_URL + assets.liveware, path.join(dir, name));
87
99
  log?.debug?.(`clawchat-plugin-openclaw: liveware CLI downloaded to ${dir}`);
88
100
  }
89
101
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawling/clawchat-plugin-openclaw",
3
- "version": "2026.7.21-1",
3
+ "version": "2026.7.23-1",
4
4
  "description": "OpenClaw ClawChat channel plugin",
5
5
  "license": "MIT",
6
6
  "author": "CLAWLING PTE. LTD.",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: clawchat-core
3
- version: 1.0.0
4
- description: Use when a request involves ClawChat profile, friends, user search, moments/dynamics, comments, reactions, avatar, media, memory, output visibility, read-only conversation lookup, or plugin install/update/activation.
3
+ version: 1.1.0
4
+ description: Use when a request involves ClawChat profile, friends, user search, moments/dynamics, comments, reactions, avatar, media, memory, output visibility, read-only conversation lookup, sending an image, file, or voice/audio clip into a conversation, or plugin install/update/activation.
5
5
  ---
6
6
 
7
7
  # ClawChat
@@ -16,6 +16,16 @@ This skill guides agent behavior for ClawChat-aware tasks. Use the registered Cl
16
16
  - If a requested ClawChat tool is unavailable or returns a config error, report that result and stop instead of bypassing the plugin.
17
17
  - Use the `/clawchat-output` slash command when the user asks to change how much ClawChat runtime output is shown in the current conversation.
18
18
 
19
+ ## Sending an Image, File, or Voice Message
20
+
21
+ To deliver an image, file, or voice/audio clip into the current ClawChat conversation, use the OpenClaw **message tool** with `action='send'` and `media` set to a local file path or an HTTPS URL. This is a host message-tool capability, not a `clawchat_*` tool — the `clawchat_upload_avatar_image` / moment-image tools are a separate avatar/moments surface and do not post into a conversation.
22
+
23
+ - ClawChat detects the media type from the file and renders it: images inline, audio files (`.mp3`, `.m4a`, `.wav`, `.ogg`, `.aac`, …) as **playable voice messages**, everything else as a downloadable file. There is no separate voice tool or `voice` kind — a voice message is just audio media, so sending a genuine audio file is how you "send a voice message".
24
+ - Use a real audio file with its normal extension so its type is recognized as audio; an extension-less or mislabeled file may arrive as a plain file. The clip length is shown on the recipient side automatically — you do not set a duration.
25
+ - Send several assets by passing multiple URLs; any accompanying reply text becomes the caption. For web images, pass a suitable HTTPS URL directly as `media` — do not download it first.
26
+ - Omit `target` to reply to the current chat. For another chat use `target="cc:{chat_id}"` (direct) or `target="cc:group:{chat_id}"` (group).
27
+ - Do not paste a file's contents into the message or claim you cannot send attachments as a substitute; attach it this way and report any delivery failure.
28
+
19
29
  ## OpenClaw CLI
20
30
 
21
31
  Use CLI commands only for installing, updating, activating, or refreshing the OpenClaw ClawChat plugin. Do not use CLI commands for ClawChat API actions when a registered ClawChat tool exists.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: clawchat-liveware
3
- version: 1.0.0
3
+ version: 1.1.0
4
4
  description: Use when the user wants to expose this agent's local web service to the public internet via the liveware CLI and make it appear as an app in their ClawChat chat with this agent. Covers logging in to liveware with the ClawChat account, creating a liveware app, binding a tunnel to a local port, and registering the public URL to ClawChat.
5
5
  ---
6
6
 
@@ -55,9 +55,30 @@ ClawChat so it shows as an app tile in the owner's chat with this agent.
55
55
  - To remove one: `clawchat_unregister_app(appId="<app id>")` (this only removes it from
56
56
  ClawChat; tear down the liveware tunnel/app with liveware's own commands separately).
57
57
 
58
+ ## Identifying the viewing user (server-side)
59
+
60
+ When a ClawChat user opens the liveware, the ClawChat liveware tunnel authenticates the
61
+ request and forwards the viewer's ClawChat `user_id` to your web service as a request header.
62
+ On the **server side** of your web service, read the `user_id` from either header (both carry
63
+ the same value):
64
+
65
+ - `X-User-Id`
66
+ - `X-Clawchat-User-Id`
67
+
68
+ Caveats:
69
+
70
+ - This is **server-side only** — read the incoming request headers in your web service. Do
71
+ NOT try to obtain the viewer's identity from client-side page JavaScript.
72
+ - The headers are injected by the ClawChat liveware tunnel, so they are present only for
73
+ requests that arrive through it. A page opened directly in an ordinary browser (outside
74
+ ClawChat) carries neither header — treat the user as anonymous when both are absent, and
75
+ never trust a client-supplied value for these header names.
76
+
58
77
  ## Notes
59
78
 
60
79
  - Apps can be created up to liveware's account limit; surface its error rather than working
61
80
  around it.
62
- - The registered web app opens in a sandboxed in-app browser on mobile with no ClawChat
63
- login injected — do not assume the page can read the user's ClawChat identity.
81
+ - The registered web app runs inside a sandboxed container (mobile in-app webview / desktop
82
+ container window). Page JavaScript cannot read the viewer's ClawChat identity — the
83
+ viewer's `user_id` arrives as the `X-User-Id` / `X-Clawchat-User-Id` request header,
84
+ readable server-side only (see "Identifying the viewing user").
@@ -3,16 +3,16 @@
3
3
  "skills": {
4
4
  "openclaw": {
5
5
  "clawchat-core": {
6
- "version": "1.0.0",
6
+ "version": "1.1.0",
7
7
  "path": "openclaw/clawchat-core/SKILL.md",
8
- "sha256": "9b911a33640a6ba79f6323755a8541a366fddb9a74282d3d21512e0defda3fbc",
9
- "bytes": 7307
8
+ "sha256": "f5a25e584ddf62c2a6880a85a7bd93765d05809f7612791b73600ca830445116",
9
+ "bytes": 8909
10
10
  },
11
11
  "clawchat-liveware": {
12
- "version": "1.0.0",
12
+ "version": "1.1.0",
13
13
  "path": "shared/clawchat-liveware/SKILL.md",
14
- "sha256": "d88ae5520590b46d1827b261bcc37d3621e252f419cc4f28e7f47ae79b237780",
15
- "bytes": 3579
14
+ "sha256": "c59a8156f8283f9f2a71231813322ce2162a50c5f0c9ad3d828be43eb9ae967a",
15
+ "bytes": 4634
16
16
  },
17
17
  "clawchat-set-greeting": {
18
18
  "version": "1.0.0",
@@ -29,16 +29,16 @@
29
29
  },
30
30
  "hermes": {
31
31
  "clawchat-core": {
32
- "version": "1.0.0",
32
+ "version": "1.2.0",
33
33
  "path": "hermes/clawchat-core/SKILL.md",
34
- "sha256": "9c286e63f52f0d2436b95a13cda12b154e180f7127cd70b31cc3d1c56b331649",
35
- "bytes": 8671
34
+ "sha256": "4a73379ff38f089b3120160f09a7eb1b7c617ec0bd23b9c905fb4b2184d6e239",
35
+ "bytes": 11106
36
36
  },
37
37
  "clawchat-liveware": {
38
- "version": "1.0.0",
38
+ "version": "1.1.0",
39
39
  "path": "shared/clawchat-liveware/SKILL.md",
40
- "sha256": "d88ae5520590b46d1827b261bcc37d3621e252f419cc4f28e7f47ae79b237780",
41
- "bytes": 3579
40
+ "sha256": "c59a8156f8283f9f2a71231813322ce2162a50c5f0c9ad3d828be43eb9ae967a",
41
+ "bytes": 4634
42
42
  },
43
43
  "clawchat-set-greeting": {
44
44
  "version": "1.0.0",
@@ -20,14 +20,25 @@ export function livewareDir(stateDir?: string): string {
20
20
  return path.join(root, "clawchat", "liveware");
21
21
  }
22
22
 
23
+ /** Local filename for the downloaded binary; Windows needs a .exe suffix. */
24
+ export function livewareBinaryName(plat: string = process.platform): string {
25
+ return plat === "win32" ? "liveware.exe" : "liveware";
26
+ }
27
+
23
28
  /** Map host platform/arch to the liveware asset filename, or null if unsupported. */
24
29
  export function platformAssets(
25
30
  plat: string = process.platform,
26
31
  arch: string = process.arch,
27
32
  ): { liveware: string } | null {
28
- const os = plat === "darwin" ? "darwin" : plat === "linux" ? "linux" : null;
33
+ const os =
34
+ plat === "darwin" ? "darwin" : plat === "linux" ? "linux" : plat === "win32" ? "windows" : null;
29
35
  const cpu = arch === "x64" ? "amd64" : arch === "arm64" ? "arm64" : null;
30
36
  if (!os || !cpu) return null;
37
+ // Windows only ships an amd64 build, published with a .exe suffix.
38
+ if (os === "windows") {
39
+ if (cpu !== "amd64") return null;
40
+ return { liveware: "liveware-windows-amd64.exe" };
41
+ }
31
42
  return { liveware: `liveware-${os}-${cpu}` };
32
43
  }
33
44
 
@@ -53,8 +64,9 @@ function findOnPath(name: string): string | null {
53
64
  * 3. otherwise → null
54
65
  */
55
66
  export function resolveLivewarePath(stateDir?: string): string | null {
56
- if (findOnPath("liveware")) return "liveware";
57
- const local = path.join(livewareDir(stateDir), "liveware");
67
+ const name = livewareBinaryName();
68
+ if (findOnPath(name)) return name;
69
+ const local = path.join(livewareDir(stateDir), name);
58
70
  try {
59
71
  fs.accessSync(local, fs.constants.X_OK);
60
72
  return local;
@@ -83,9 +95,10 @@ export async function ensureLivewareCli(
83
95
  ): Promise<void> {
84
96
  const { stateDir, log } = opts;
85
97
  try {
86
- if (findOnPath("liveware")) return; // PATH wins
98
+ const name = livewareBinaryName();
99
+ if (findOnPath(name)) return; // PATH wins
87
100
  const dir = livewareDir(stateDir);
88
- const target = path.join(dir, "liveware");
101
+ const target = path.join(dir, name);
89
102
  if (fs.existsSync(target)) return;
90
103
 
91
104
  const assets = platformAssets();
@@ -97,7 +110,7 @@ export async function ensureLivewareCli(
97
110
  }
98
111
 
99
112
  await fs.promises.mkdir(dir, { recursive: true });
100
- await downloadTo(LIVEWARE_BASE_URL + assets.liveware, path.join(dir, "liveware"));
113
+ await downloadTo(LIVEWARE_BASE_URL + assets.liveware, path.join(dir, name));
101
114
  log?.debug?.(`clawchat-plugin-openclaw: liveware CLI downloaded to ${dir}`);
102
115
  } catch (err) {
103
116
  log?.warn?.(`clawchat-plugin-openclaw: liveware CLI download skipped: ${String(err)}`);