@wu529778790/open-im 1.11.2-beta.14 → 1.11.2-beta.15

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -149,12 +149,32 @@ function buildStartupMessage(platform, appVersion, aiCommand, defaultWorkDir, se
149
149
  const platformName = PLATFORM_DISPLAY_NAMES[platform] ?? platform;
150
150
  const toolName = getAIToolDisplayName(aiCommand);
151
151
  const dir = sessionDir ? escapePathForMarkdown(sessionDir) : '发送 `/pwd` 查看';
152
+ // 读取插件列表
153
+ const pluginLines = [];
154
+ try {
155
+ const { readFileSync, existsSync } = require("fs");
156
+ const { join } = require("path");
157
+ const { homedir } = require("os");
158
+ const settingsPath = join(homedir(), ".claude", "settings.json");
159
+ if (existsSync(settingsPath)) {
160
+ const settings = JSON.parse(readFileSync(settingsPath, "utf-8"));
161
+ const plugins = settings.enabledPlugins ?? {};
162
+ const enabled = Object.entries(plugins)
163
+ .filter(([, v]) => v === true)
164
+ .map(([k]) => k.split("@")[0]); // 只取插件名,去掉 @scope
165
+ if (enabled.length > 0) {
166
+ pluginLines.push("", `🧩 插件: ${enabled.join(", ")}`);
167
+ }
168
+ }
169
+ }
170
+ catch { /* ignore */ }
152
171
  return [
153
172
  `✅ open-im v${appVersion} 已就绪`,
154
173
  "",
155
174
  `📱 平台: ${platformName}`,
156
175
  `🤖 AI: ${toolName}`,
157
176
  `📁 目录: ${dir}`,
177
+ ...pluginLines,
158
178
  ].join("\n\n");
159
179
  }
160
180
  function buildShutdownMessage(uptimeMinutes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.11.2-beta.14",
3
+ "version": "1.11.2-beta.15",
4
4
  "description": "Your AI coding assistant, in every chat app. Multi-platform IM bridge for Claude Code, Codex, and CodeBuddy.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",