@stagewhisper/stagewhisper 0.33.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.
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/plugin-main.ts +6 -3
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/plugin-main.ts
CHANGED
|
@@ -56,10 +56,12 @@ 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
|
|
59
|
+
const channels = ((cfg as Record<string, unknown>)["channels"] ?? {}) as Record<string, Record<string, unknown>>;
|
|
60
60
|
channels["stagewhisper"] = {
|
|
61
|
-
integrationId: result.integration_id,
|
|
62
61
|
apiBaseUrl: opts.apiUrl,
|
|
62
|
+
integrationId: result.integration_id,
|
|
63
|
+
relayToken: result.relay_token,
|
|
64
|
+
label: result.label,
|
|
63
65
|
};
|
|
64
66
|
(cfg as Record<string, unknown>)["channels"] = channels;
|
|
65
67
|
|
|
@@ -101,7 +103,8 @@ export default definePluginEntry({
|
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
await api.runtime.config.writeConfigFile(cfg);
|
|
104
|
-
console.log("\n✓ StageWhisper unpaired.
|
|
106
|
+
console.log("\n✓ StageWhisper unpaired.");
|
|
107
|
+
console.log(" Config cleaned. You can now safely uninstall:\n");
|
|
105
108
|
console.log(" openclaw plugins uninstall stagewhisper\n");
|
|
106
109
|
} catch (err) {
|
|
107
110
|
console.error(`\n✗ Unpair failed: ${err}\n`);
|