@peninsula-med/beisen-ehr-configure 3.0.0 → 3.0.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.
Files changed (2) hide show
  1. package/configure.js +14 -0
  2. package/package.json +1 -1
package/configure.js CHANGED
@@ -123,6 +123,20 @@ async function main() {
123
123
  openclawConfig.tools.allow.push('beisen_submit_overtime');
124
124
  }
125
125
 
126
+ // 添加插件 allowlist(关键!让工具注入到 AI 会话)
127
+ if (!openclawConfig.plugins) {
128
+ openclawConfig.plugins = {};
129
+ }
130
+
131
+ if (!openclawConfig.plugins.allow) {
132
+ openclawConfig.plugins.allow = [];
133
+ }
134
+
135
+ if (!openclawConfig.plugins.allow.includes('beisen-ehr-plugin')) {
136
+ openclawConfig.plugins.allow.push('beisen-ehr-plugin');
137
+ console.log('✅ 已添加插件 allowlist: beisen-ehr-plugin');
138
+ }
139
+
126
140
  // 删除 mcpServers 配置(OpenClaw 2026.3.8 不支持)
127
141
  if (openclawConfig.mcpServers) {
128
142
  console.log('⚠️ 检测到 mcpServers 配置(OpenClaw 2026.3.8 不支持),已自动删除');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peninsula-med/beisen-ehr-configure",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "北森 EHR 插件配置向导",
5
5
  "type": "module",
6
6
  "bin": {