@colinlu50/openclaw-lark-stream 2026.3.31 → 2026.323.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.
@@ -49,10 +49,13 @@ async function runInstall() {
49
49
  }
50
50
  console.log(`\n✅ Plugin installed successfully.`);
51
51
 
52
- // 4. Bot configuration (interactive)
52
+ // 4. Ensure plugins.allow includes our plugin ID
53
+ ensurePluginAllowed("openclaw-lark-stream");
54
+
55
+ // 5. Bot configuration (interactive)
53
56
  await configureBotIfNeeded();
54
57
 
55
- // 5. Restart gateway
58
+ // 6. Restart gateway
56
59
  console.log("\nRestarting gateway...");
57
60
  try {
58
61
  execSync("openclaw gateway restart", { stdio: "inherit" });
@@ -164,6 +167,20 @@ function readConfig() {
164
167
  * Remove all plugin directories, staging leftovers, and stale config
165
168
  * references so that openclaw has a clean state for the next install.
166
169
  */
170
+ /**
171
+ * Ensure the plugin ID is in plugins.allow so openclaw doesn't warn.
172
+ */
173
+ function ensurePluginAllowed(pluginId) {
174
+ const cfg = readConfig();
175
+ if (!cfg.plugins) cfg.plugins = {};
176
+ if (!Array.isArray(cfg.plugins.allow)) cfg.plugins.allow = [];
177
+ if (!cfg.plugins.allow.includes(pluginId)) {
178
+ cfg.plugins.allow.push(pluginId);
179
+ writeFileSync(CONFIG_FILE, JSON.stringify(cfg, null, 2) + "\n", "utf8");
180
+ console.log(`Added "${pluginId}" to plugins.allow.`);
181
+ }
182
+ }
183
+
167
184
  function cleanPluginState() {
168
185
  for (const dir of [OFFICIAL_DIR, SELF_DIR]) {
169
186
  if (existsSync(dir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colinlu50/openclaw-lark-stream",
3
- "version": "2026.3.31",
3
+ "version": "2026.323.1",
4
4
  "description": "OpenClaw Lark/Feishu channel plugin",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",