@openduo/channel-feishu 0.2.9 → 0.2.11

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 (3) hide show
  1. package/README.md +14 -0
  2. package/dist/plugin.js +34 -34
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -79,6 +79,12 @@ All configuration is via environment variables:
79
79
  | `FEISHU_BOT_OPEN_ID` | — | Bot's own open_id (for mention detection) |
80
80
  | `FEISHU_LOG_LEVEL` | `info` | Log level |
81
81
 
82
+ For `FEISHU_GROUP_POLICY=allowlist`, `FEISHU_ALLOW_FROM` and `FEISHU_ALLOW_GROUPS` are peer entity allowlists:
83
+
84
+ - A listed `open_id` may talk to the bot in any group.
85
+ - A listed `chat_id` allows any member of that group to talk to the bot.
86
+ - If neither list matches, the group message is denied.
87
+
82
88
  **Render modes:**
83
89
 
84
90
  - `auto` — plain text by default; switches to interactive card when output contains code blocks or tables.
@@ -103,6 +109,10 @@ duoduo channel feishu logs
103
109
  duoduo channel feishu stop
104
110
  ```
105
111
 
112
+ In host mode, `duoduo channel feishu start` auto-loads `~/.config/duoduo/.env` before launching
113
+ the managed channel process. Put `FEISHU_APP_ID`, `FEISHU_APP_SECRET`, and optional
114
+ `ALADUO_DAEMON_URL` there if you want daemon and channel startup to behave consistently.
115
+
106
116
  ### Standalone
107
117
 
108
118
  ```bash
@@ -112,6 +122,10 @@ ALADUO_DAEMON_URL=http://127.0.0.1:20233 \
112
122
  duoduo-feishu
113
123
  ```
114
124
 
125
+ When you launch `duoduo-feishu` directly in host mode, the process logs a warning that
126
+ `~/.config/duoduo/.env` is not auto-loaded. That warning is intentional: direct standalone
127
+ launch expects you to export the environment yourself.
128
+
115
129
  ## License
116
130
 
117
131
  MIT