@stagewhisper/stagewhisper 0.35.0 → 0.36.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.35.0",
5
+ "version": "0.36.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.35.0",
3
+ "version": "0.36.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
@@ -56,13 +56,14 @@ export default definePluginEntry({
56
56
  plugins["entries"] = entries;
57
57
  (cfg as Record<string, unknown>)["plugins"] = plugins;
58
58
 
59
- const channels = (cfg as Record<string, unknown>)["channels"] as Record<string, unknown> | undefined;
60
- if (channels?.["stagewhisper"]) {
61
- delete channels["stagewhisper"];
62
- if (Object.keys(channels).length === 0) {
63
- delete (cfg as Record<string, unknown>)["channels"];
64
- }
65
- }
59
+ const channels = ((cfg as Record<string, unknown>)["channels"] ?? {}) as Record<string, Record<string, unknown>>;
60
+ channels["stagewhisper"] = {
61
+ apiBaseUrl: opts.apiUrl,
62
+ integrationId: result.integration_id,
63
+ relayToken: result.relay_token,
64
+ label: result.label,
65
+ };
66
+ (cfg as Record<string, unknown>)["channels"] = channels;
66
67
 
67
68
  await api.runtime.config.writeConfigFile(cfg);
68
69
 
@@ -102,7 +103,8 @@ export default definePluginEntry({
102
103
  }
103
104
 
104
105
  await api.runtime.config.writeConfigFile(cfg);
105
- console.log("\n✓ StageWhisper unpaired. You can now safely run:");
106
+ console.log("\n✓ StageWhisper unpaired.");
107
+ console.log(" Config cleaned. You can now safely uninstall:\n");
106
108
  console.log(" openclaw plugins uninstall stagewhisper\n");
107
109
  } catch (err) {
108
110
  console.error(`\n✗ Unpair failed: ${err}\n`);