@colinlu50/openclaw-lark-stream 2026.3.31 → 260323.1.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/README.md CHANGED
@@ -11,6 +11,7 @@
11
11
  官方插件在 LLM 生成完一个 block 后才一次性推送结果。本 Fork 实现了:
12
12
 
13
13
  - **实时流式输出** — 每个 block 的内容在生成过程中逐步追加到流式卡片
14
+ - **群聊流式输出** — 群聊中也可使用流式输出
14
15
  - **工具调用状态** — agent 调用工具时,卡片顶部实时显示当前工具,完成后自动折叠为摘要面板
15
16
 
16
17
  ## 📢 News
@@ -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": "260323.1.0",
4
4
  "description": "OpenClaw Lark/Feishu channel plugin",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",