@stagewhisper/stagewhisper 0.29.0 → 0.32.0

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.
@@ -2,7 +2,7 @@
2
2
  "id": "stagewhisper",
3
3
  "name": "StageWhisper",
4
4
  "description": "Turn live call moments into assistant tasks via StageWhisper",
5
- "version": "0.29.0",
5
+ "version": "0.32.0",
6
6
  "channels": [
7
7
  "stagewhisper"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stagewhisper/stagewhisper",
3
- "version": "0.29.0",
3
+ "version": "0.32.0",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin that connects StageWhisper live calls to your AI assistant",
6
6
  "license": "MIT",
package/plugin-main.ts CHANGED
@@ -10,8 +10,6 @@ export default definePluginEntry({
10
10
  register(api) {
11
11
  api.registerChannel({ plugin: stagewhisperPlugin });
12
12
 
13
- const service = createRelayService(api);
14
-
15
13
  api.registerCli(
16
14
  ({ program }) => {
17
15
  const sw = program
@@ -58,6 +56,13 @@ export default definePluginEntry({
58
56
  plugins["entries"] = entries;
59
57
  (cfg as Record<string, unknown>)["plugins"] = plugins;
60
58
 
59
+ const channels = ((cfg as Record<string, unknown>)["channels"] as Record<string, unknown>) ?? {};
60
+ channels["stagewhisper"] = {
61
+ integrationId: result.integration_id,
62
+ apiBaseUrl: opts.apiUrl,
63
+ };
64
+ (cfg as Record<string, unknown>)["channels"] = channels;
65
+
61
66
  await api.runtime.config.writeConfigFile(cfg);
62
67
 
63
68
  console.log(
@@ -73,6 +78,37 @@ export default definePluginEntry({
73
78
  },
74
79
  );
75
80
 
81
+ sw.command("unpair")
82
+ .description(
83
+ "Remove StageWhisper pairing (run before `openclaw plugins uninstall`)",
84
+ )
85
+ .action(async () => {
86
+ try {
87
+ const cfg = await api.runtime.config.loadConfig();
88
+ const plugins = (cfg as Record<string, unknown>)["plugins"] as Record<string, unknown> ?? {};
89
+ const entries = plugins["entries"] as Record<string, Record<string, unknown>> ?? {};
90
+ const swEntry = entries["stagewhisper"];
91
+ if (swEntry) {
92
+ delete swEntry["config"];
93
+ }
94
+
95
+ const channels = (cfg as Record<string, unknown>)["channels"] as Record<string, unknown> | undefined;
96
+ if (channels?.["stagewhisper"]) {
97
+ delete channels["stagewhisper"];
98
+ if (Object.keys(channels).length === 0) {
99
+ delete (cfg as Record<string, unknown>)["channels"];
100
+ }
101
+ }
102
+
103
+ await api.runtime.config.writeConfigFile(cfg);
104
+ console.log("\n✓ StageWhisper unpaired. You can now safely run:");
105
+ console.log(" openclaw plugins uninstall stagewhisper\n");
106
+ } catch (err) {
107
+ console.error(`\n✗ Unpair failed: ${err}\n`);
108
+ process.exit(1);
109
+ }
110
+ });
111
+
76
112
  sw.command("status")
77
113
  .description("Show StageWhisper relay connection status")
78
114
  .action(async () => {
@@ -84,7 +120,7 @@ export default definePluginEntry({
84
120
  if (!configured) {
85
121
  console.log("\nStageWhisper: not paired\n");
86
122
  console.log(
87
- " Run: openclaw stagewhisper pair --code <CODE> --api-url <URL>\n",
123
+ " Run: openclaw stagewhisper pair --code <CODE>\n",
88
124
  );
89
125
  console.log(
90
126
  " Get the pairing code from StageWhisper desktop: Settings → Assistant → Generate Pairing Code\n",
@@ -120,6 +156,7 @@ export default definePluginEntry({
120
156
  if (api.registrationMode !== "full") return;
121
157
 
122
158
  setRuntime(api.runtime);
159
+ const service = createRelayService(api);
123
160
  api.registerService(service);
124
161
  },
125
162
  });