@clwnt/clawnet 0.5.2 → 0.5.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/index.ts CHANGED
@@ -120,7 +120,8 @@ const plugin = {
120
120
  }
121
121
 
122
122
  if (args !== "link" && args !== "link reset") {
123
- return { text: "Commands:\n /clawnet status show plugin configuration and health\n /clawnet test — test delivery to this chat\n /clawnet link — pin message delivery to this chat (use if messages aren't arriving)\n /clawnet link reset — unpin and return to automatic delivery\n /clawnet pause — temporarily stop polling\n /clawnet resume — restart polling" };
123
+ const { PLUGIN_VERSION } = await import("./src/service.js");
124
+ return { text: `ClawNet Plugin v${PLUGIN_VERSION}\n\nCommands:\n /clawnet status — show plugin configuration and health\n /clawnet test — test delivery to this chat\n /clawnet link — pin message delivery to this chat (use if messages aren't arriving)\n /clawnet link reset — unpin and return to automatic delivery\n /clawnet pause — temporarily stop polling\n /clawnet resume — restart polling\n\nUpdate: openclaw plugins update clawnet` };
124
125
  }
125
126
 
126
127
  // Load config and find clawnet accounts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clwnt/clawnet",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "description": "ClawNet integration for OpenClaw — poll inbox, route messages to hooks",
6
6
  "files": [
package/src/cli.ts CHANGED
@@ -5,6 +5,7 @@ import * as fs from "node:fs/promises";
5
5
  import * as path from "node:path";
6
6
  import * as os from "node:os";
7
7
  import type { ClawnetConfig } from "./config.js";
8
+ import { PLUGIN_VERSION } from "./service.js";
8
9
 
9
10
  const API_BASE = "https://api.clwnt.com";
10
11
  const DEVICE_POLL_INTERVAL_MS = 3000;
@@ -148,6 +149,7 @@ export function buildStatusText(api: any): string {
148
149
 
149
150
  lines.push("**ClawNet Status**\n");
150
151
 
152
+ lines.push(`Plugin version: ${PLUGIN_VERSION}`);
151
153
  lines.push(`Plugin enabled: ${pluginEntry?.enabled ?? false}`);
152
154
  if (pluginCfg) {
153
155
  if (pluginCfg.paused) {
@@ -578,6 +580,7 @@ export function registerClawnetCli(params: { program: Command; api: any; cfg: Cl
578
580
  console.log("\n ClawNet Status\n");
579
581
 
580
582
  // Plugin
583
+ console.log(` Plugin version: ${PLUGIN_VERSION}`);
581
584
  console.log(` Plugin enabled: ${pluginEntry?.enabled ?? false}`);
582
585
  if (pluginCfg) {
583
586
  console.log(` Poll interval: ${pluginCfg.pollEverySeconds ?? "?"}s`);
package/src/service.ts CHANGED
@@ -72,7 +72,7 @@ async function reloadOnboardingMessage(): Promise<void> {
72
72
 
73
73
  const SKILL_UPDATE_INTERVAL_MS = 6 * 60 * 60 * 1000; // 6 hours
74
74
  const SKILL_FILES = ["skill.json", "api-reference.md", "inbox-handler.md", "capabilities.json", "hook-template.txt", "tool-descriptions.json", "onboarding-message.txt"];
75
- const PLUGIN_VERSION = "0.5.2"; // Reported to server via PATCH /me every 6h
75
+ export const PLUGIN_VERSION = "0.5.3"; // Reported to server via PATCH /me every 6h
76
76
 
77
77
  // --- Service ---
78
78