@alexsun-top/opencode-chat-room 0.8.0 → 0.8.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 (161) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/LICENSE +2 -2
  3. package/README.md +38 -6
  4. package/README.zh-CN.md +38 -6
  5. package/cli.ts +27 -1
  6. package/dist/cli.js +5074 -3212
  7. package/package.json +23 -3
  8. package/packages/chat-room-channeld/README.md +98 -25
  9. package/packages/chat-room-channeld/dist/feishu-adapter.js +912 -149
  10. package/packages/chat-room-channeld/src/adapter.ts +36 -2
  11. package/packages/chat-room-channeld/src/config.ts +63 -1
  12. package/packages/chat-room-channeld/src/delivery.ts +6 -1
  13. package/packages/chat-room-channeld/src/feishu-adapter.ts +122 -292
  14. package/packages/chat-room-channeld/src/feishu-card.ts +27 -0
  15. package/packages/chat-room-channeld/src/feishu-inbound.ts +158 -0
  16. package/packages/chat-room-channeld/src/feishu-live.ts +355 -0
  17. package/packages/chat-room-channeld/src/feishu-send.ts +342 -0
  18. package/packages/chat-room-channeld/src/feishu-ws-frames.ts +173 -0
  19. package/packages/chat-room-channeld/src/host-helpers.ts +11 -0
  20. package/packages/chat-room-channeld/src/host.ts +120 -2
  21. package/packages/chat-room-channeld/src/inbound.ts +26 -0
  22. package/packages/chat-room-channeld/src/state.ts +17 -0
  23. package/packages/chat-room-channeld/src/stats.ts +43 -1
  24. package/server/admin-state.ts +13 -13
  25. package/server/app.ts +95 -0
  26. package/server/assets/NOTICE.txt +2 -1
  27. package/server/assets/base.css +15 -9
  28. package/server/assets/chat/announcements.js +70 -7
  29. package/server/assets/chat/doc-preview.js +184 -35
  30. package/server/assets/chat/events.js +3 -0
  31. package/server/assets/chat/files.js +46 -4
  32. package/server/assets/chat/index.js +2 -0
  33. package/server/assets/chat/integration-editor.js +163 -0
  34. package/server/assets/chat/integration-values.js +124 -0
  35. package/server/assets/chat/integrations.js +498 -0
  36. package/server/assets/chat/locales/de.js +40 -4
  37. package/server/assets/chat/locales/es.js +40 -4
  38. package/server/assets/chat/locales/fr.js +40 -4
  39. package/server/assets/chat/locales/it.js +40 -4
  40. package/server/assets/chat/locales/ja.js +40 -4
  41. package/server/assets/chat/locales/ko.js +40 -4
  42. package/server/assets/chat/markdown.js +22 -8
  43. package/server/assets/chat/messages.js +5 -5
  44. package/server/assets/chat/office-preview.js +69 -0
  45. package/server/assets/chat/panels.js +36 -0
  46. package/server/assets/chat/recall.js +58 -7
  47. package/server/assets/chat/receipts.js +15 -3
  48. package/server/assets/chat/reminders.js +69 -8
  49. package/server/assets/chat/resource-format.js +11 -0
  50. package/server/assets/chat/settings.js +30 -2
  51. package/server/assets/chat/side-pane.js +1 -2
  52. package/server/assets/chat/state.js +93 -10
  53. package/server/assets/chat/system-events.js +32 -0
  54. package/server/assets/chat/system-messages.js +23 -14
  55. package/server/assets/chat/task-row.js +0 -6
  56. package/server/assets/chat/tasks.js +121 -33
  57. package/server/assets/code-highlight.css +55 -32
  58. package/server/assets/conversation.css +123 -23
  59. package/server/assets/doc-preview.css +35 -3
  60. package/server/assets/files.css +5 -0
  61. package/server/assets/fluent-icons.svg +2 -0
  62. package/server/assets/monaco/LICENSE +21 -0
  63. package/server/assets/monaco/ThirdPartyNotices.txt +448 -0
  64. package/server/assets/monaco/codicon-jdswhhtn.ttf +0 -0
  65. package/server/assets/monaco/editor.worker.js +45 -0
  66. package/server/assets/monaco/integration-rules.css +1 -0
  67. package/server/assets/monaco/integration-rules.js +1297 -0
  68. package/server/assets/monaco/json.worker.js +77 -0
  69. package/server/assets/office/THIRD-PARTY-NOTICES.txt +11 -0
  70. package/server/assets/office/docx.bundle.js +33 -0
  71. package/server/assets/office/licenses/docx-preview-LICENSE.txt +201 -0
  72. package/server/assets/office/licenses/echarts-LICENSE.txt +222 -0
  73. package/server/assets/office/licenses/jszip-LICENSE.txt +651 -0
  74. package/server/assets/office/licenses/lodash-LICENSE.txt +47 -0
  75. package/server/assets/office/licenses/pptx-preview-LICENSE.txt +8 -0
  76. package/server/assets/office/licenses/tslib-LICENSE.txt +12 -0
  77. package/server/assets/office/licenses/uuid-LICENSE.txt +9 -0
  78. package/server/assets/office/licenses/xlsx-LICENSE.txt +201 -0
  79. package/server/assets/office/licenses/zrender-LICENSE.txt +29 -0
  80. package/server/assets/office/pptx.bundle.js +104 -0
  81. package/server/assets/office/xlsx.bundle.js +141 -0
  82. package/server/assets/recall.css +5 -4
  83. package/server/assets/responsive.css +50 -11
  84. package/server/assets/settings.css +73 -1
  85. package/server/assets/tasks.css +57 -7
  86. package/server/channel-integration.ts +519 -0
  87. package/server/channel-settings.ts +77 -0
  88. package/server/channels.ts +261 -18
  89. package/server/chat-server.ts +32 -580
  90. package/server/chat.html +187 -21
  91. package/server/http-server.ts +3 -182
  92. package/server/resource-routes.ts +16 -16
  93. package/server/routes/inbox.ts +100 -0
  94. package/server/routes/pages.ts +83 -0
  95. package/server/routes/questions.ts +39 -0
  96. package/server/routes/room-actions.ts +162 -0
  97. package/server/routes/rooms.ts +160 -0
  98. package/server/startup.ts +84 -0
  99. package/server/sw.js +4 -0
  100. package/server/task-routes.ts +1 -1
  101. package/src/center/center-client.ts +2 -10
  102. package/src/config/file-config.ts +7 -54
  103. package/src/platform/http-server.ts +182 -0
  104. package/src/protocol/addressing.ts +21 -0
  105. package/src/protocol/config.ts +58 -0
  106. package/src/protocol/room.ts +51 -0
  107. package/src/rooms/resources.ts +26 -16
  108. package/src/rooms/room-service.ts +2 -48
  109. package/src/rooms/storage.ts +329 -0
  110. package/src/rooms/tasks.ts +21 -5
  111. package/src/runtime/watch.ts +1 -1
  112. package/src/state/pg-database.ts +183 -0
  113. package/src/state/pg-migrate.ts +175 -0
  114. package/src/state/pg-sql.mjs +175 -0
  115. package/src/state/pg-worker.mjs +148 -0
  116. package/src/state/sqlite-announcements.ts +25 -0
  117. package/src/state/sqlite-database.ts +121 -0
  118. package/src/state/sqlite-legacy.ts +90 -0
  119. package/src/state/sqlite-members.ts +155 -0
  120. package/src/state/sqlite-messages.ts +288 -0
  121. package/src/state/sqlite-resources.ts +39 -0
  122. package/src/state/sqlite-rooms.ts +87 -0
  123. package/src/state/sqlite-schema.ts +80 -0
  124. package/src/state/sqlite-state-store.ts +33 -0
  125. package/src/state/sqlite-state.ts +15 -897
  126. package/src/state/sqlite-tasks.ts +65 -0
  127. package/src/state/sqlite-transaction.ts +13 -0
  128. package/src/state/sqlite.ts +21 -1
  129. package/src/state/store.ts +5 -1
  130. package/src/tui/app.mjs +32 -19
  131. package/src/tui/config.mjs +12 -4
  132. package/src/tui/i18n.mjs +38 -0
  133. package/src/tui/info-app.mjs +50 -51
  134. package/src/tui/info-content.mjs +79 -44
  135. package/src/tui/join-app.mjs +9 -9
  136. package/src/tui/locales/en.mjs +349 -0
  137. package/src/tui/locales/zh-CN.mjs +349 -0
  138. package/src/tui/main.mjs +85 -37
  139. package/src/tui/markdown.mjs +3 -2
  140. package/src/tui/mentions.mjs +3 -1
  141. package/src/tui/message-app.mjs +22 -21
  142. package/src/tui/message-view.mjs +2 -1
  143. package/src/tui/palette-app.mjs +9 -8
  144. package/src/tui/palette.mjs +30 -24
  145. package/src/tui/prefs.mjs +92 -0
  146. package/src/tui/reminder-app.mjs +18 -17
  147. package/src/tui/room-settings-app.mjs +30 -28
  148. package/src/tui/settings-app.mjs +153 -0
  149. package/src/tui/ui-content.mjs +65 -86
  150. package/src/tui/ui-help.mjs +73 -0
  151. package/src/tui/ui-overlay-view.mjs +23 -7
  152. package/src/tui/ui-suggest.mjs +6 -5
  153. package/src/tui/ui-theme.mjs +37 -33
  154. package/src/tui/ui-view.mjs +22 -7
  155. package/src/tui/ui.mjs +15 -3
  156. package/src/web/editor.worker.ts +1 -0
  157. package/src/web/integration-rules-editor.ts +439 -0
  158. package/src/web/integration-rules.ts +22 -0
  159. package/src/web/integration-schema.ts +228 -0
  160. package/src/web/json.worker.ts +1 -0
  161. package/src/web/office-viewer.ts +221 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexsun-top/opencode-chat-room",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "A chat-room server, web client, terminal client, and OpenCode/Codex/dsh plugins.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,7 +34,12 @@
34
34
  "!src/tui/test",
35
35
  "skills/chatroom/SKILL.md",
36
36
  "server/chat-server.ts",
37
+ "server/startup.ts",
38
+ "server/routes",
39
+ "server/app.ts",
37
40
  "server/channels.ts",
41
+ "server/channel-settings.ts",
42
+ "server/channel-integration.ts",
38
43
  "server/http-server.ts",
39
44
  "server/json-body.ts",
40
45
  "server/inbox.ts",
@@ -72,7 +77,9 @@
72
77
  "build:cli": "bun build cli.ts --target=node --packages external --outfile dist/cli.js >&2",
73
78
  "build:channeld-mock": "bun build packages/chat-room-channeld/src/mock-adapter.ts --target=node --packages external --outfile packages/chat-room-channeld/dist/mock-adapter.js >&2",
74
79
  "build:channeld-feishu": "bun build packages/chat-room-channeld/src/feishu-adapter.ts --target=node --packages external --outfile packages/chat-room-channeld/dist/feishu-adapter.js >&2",
75
- "prepack": "bun run build:cli && bun run build:channeld-mock && bun run build:channeld-feishu",
80
+ "build:monaco": "bun scripts/build-monaco.ts",
81
+ "build:office": "bun scripts/build-office.ts",
82
+ "prepack": "bun run build:cli && bun run build:channeld-mock && bun run build:channeld-feishu && bun scripts/build-monaco.ts --quiet && bun scripts/build-office.ts --quiet",
76
83
  "server": "node cli.ts",
77
84
  "server:bun": "bun cli.ts",
78
85
  "server:deno": "deno run --allow-env --allow-read --allow-write --allow-net cli.ts",
@@ -85,18 +92,31 @@
85
92
  "devDependencies": {
86
93
  "@opencode/plugin": "2.0.29",
87
94
  "@types/bun": "latest",
95
+ "@types/pg": "^8.23.1",
96
+ "docx-preview": "0.4.1",
97
+ "jszip": "3.10.2",
98
+ "monaco-editor": "0.58.0",
88
99
  "playwright": "1.64.1",
89
- "shiki": "4.6.0"
100
+ "pptx-preview": "1.0.7",
101
+ "shiki": "4.6.0",
102
+ "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
90
103
  },
91
104
  "peerDependencies": {
92
105
  "typescript": "^5"
93
106
  },
94
107
  "dependencies": {
108
+ "@aws-sdk/client-s3": "^3.1178.0",
95
109
  "@opencode-ai/plugin": "^1.18.29",
96
110
  "@opencode/client": "2.0.32",
97
111
  "@opentui/core": "0.2.16",
98
112
  "croner": "11.0.0",
113
+ "pg": "^8.23.1",
99
114
  "yaml": "^2.9.0",
100
115
  "zod": "4.1.8"
116
+ },
117
+ "overrides": {
118
+ "echarts": "6.1.0",
119
+ "lodash": "4.18.1",
120
+ "uuid": "11.1.1"
101
121
  }
102
122
  }
@@ -6,8 +6,9 @@ event into frozen deliveries for target accounts; each adapter owns one IM
6
6
  account and speaks JSON-RPC over stdio.
7
7
 
8
8
  This is the 0.1 MVP: static rules, text messages, outbound adapters with text and Markdown cards, a mock
9
- adapter, and an outbound Feishu adapter. Inbound Feishu events are not
10
- implemented yet.
9
+ adapter, and a Feishu adapter with opt-in inbound long-connection events. Inbound Feishu
10
+ events can be relayed into one chat-room as notifications; they are never matched by
11
+ outbound rules.
11
12
 
12
13
  This package is bundled inside `@alexsun-top/opencode-chat-room` 0.8.0 as
13
14
  source plus the Feishu and mock adapter entry points. Standalone npm
@@ -34,10 +35,11 @@ Inspect queue and integrity counts without writing the state file:
34
35
  bun src/cli.ts status --config channeld.yml
35
36
  ```
36
37
 
37
- `status` prints counts only: queue depth, oldest backlog, unknown, retryable and
38
- rate-limited deliveries, and source/integrity gaps. It never prints message text,
39
- rule ids, error details, provider message ids, room ids, or credentials. A missing
40
- state file or missing channel tables exit 1 with a clear error.
38
+ `status` prints counts and per-account runtime state: `started`, `failed`,
39
+ `disabled`, or `unknown` (no live host is attached to a CLI read), plus a short
40
+ sanitized `lastError` for failed/disabled accounts. It never prints message text,
41
+ rule ids, provider message ids, room ids, or credentials. A missing state file or
42
+ missing channel tables exit 1 with a clear error.
41
43
 
42
44
  Run the mock adapter on stdio (the host normally spawns it):
43
45
 
@@ -91,11 +93,48 @@ Account ids and rule `(id, version)` pairs must be unique. Only the highest
91
93
  configured version of each rule id is active: an explicit newer version
92
94
  replaces the older definition.
93
95
 
96
+ Each account may add an `env` map for secrets and per-platform settings. Keys
97
+ must match `/^[A-Za-z_][A-Za-z0-9_]*$/`, values are strings, and a map holds at
98
+ most 64 variables. The adapter child inherits the host environment, then receives
99
+ the account `env`, then the forced `CHANNELD_ACCOUNT_ID` and `CHANNELD_PLATFORM`
100
+ values; configuring either reserved key is rejected. Status output never includes
101
+ env values.
102
+
103
+ An optional top-level `inbound` array turns external events into room notifications
104
+ in the center. It is separate from `rules`: an inbound event is committed, written
105
+ to its target room once, and then skipped by every outbound rule, so it cannot
106
+ ping-pong back to the source.
107
+
108
+ ```yaml
109
+ inbound:
110
+ - from: { platform: feishu, account: feishu-main, room: oc_xxx }
111
+ to: { room: lab }
112
+ ```
113
+
114
+ `from.room` is the Feishu `chat_id`; `to.room` is the chat-room id. An omitted
115
+ `from.event` matches every kind. A source account must exist and its platform must
116
+ match. The center appends one system-style message, `[Feishu <account>] <open_id>:
117
+ <text>`, with a marker row in the room database; the marker and message share one
118
+ transaction, so a transport retry cannot duplicate it. If the room write fails, the
119
+ center rolls the channel event back and the adapter acknowledges failure, so Feishu
120
+ retries. A room that stays missing keeps failing until it is created.
121
+
122
+ ```yaml
123
+ accounts:
124
+ - id: feishu-main
125
+ platform: feishu
126
+ adapter: { command: ["node", "/opt/chatroom/feishu-adapter.js"] }
127
+ env: { FEISHU_APP_ID: "cli_xxx", FEISHU_APP_SECRET: "xxx" }
128
+ ```
129
+
94
130
  ## Adapter protocol
95
131
 
96
- The host spawns each adapter with `CHANNELD_ACCOUNT_ID` and
97
- `CHANNELD_PLATFORM`. Both directions use newline-delimited JSON-RPC 2.0 on
98
- stdio. **stdout carries protocol frames only; all adapter logs go to stderr.**
132
+ The host spawns each adapter with `CHANNELD_ACCOUNT_ID`,
133
+ `CHANNELD_PLATFORM`, and that account's configured `env`. Both directions use
134
+ newline-delimited JSON-RPC 2.0 on stdio. An `initialize` or `start` result may
135
+ include `platform`; when it differs from the configured account platform, that
136
+ adapter is stopped and only that account is marked `failed` (its queue pauses)
137
+ while the host and other accounts keep running. **stdout carries protocol frames only; all adapter logs go to stderr.**
99
138
  An invalid stdout frame disables that account, stops its adapter, and leaves its
100
139
  deliveries paused; other accounts keep running. Frames are JSON objects limited
101
140
  to 1 MiB (`MAX_FRAME_BYTES`). Host request ids start with `host-`, adapter
@@ -129,13 +168,24 @@ from room `in` after starting, so the relay can be exercised end to end.
129
168
  `CHANNELD_MOCK_ECHO=1` makes it emit a provider echo right after a `send` result;
130
169
  `CHANNELD_MOCK_ECHO_DELAY_MS` delays that result to exercise buffered ingests.
131
170
 
132
- ## Feishu outbound adapter
171
+ ## Feishu adapter
133
172
 
134
- `dist/feishu-adapter.js` is an outbound-only adapter for Feishu OpenAPI
135
- messages. It sends interactive cards using `lark_md` inline formatting and
136
- declares `reply: "none"`; native Feishu reply/quote requires a Feishu parent
137
- message and is deferred with inbound support. It speaks the same stdio JSON-RPC protocol as the mock adapter and
138
- has no room or session concepts. Inbound Feishu events are planned for 0.8.x.
173
+ `dist/feishu-adapter.js` is a Feishu OpenAPI adapter. Outbound it sends interactive
174
+ cards and can reply natively to a Feishu message; inbound it can receive group
175
+ messages over the event long connection. It speaks the same stdio JSON-RPC protocol
176
+ as the mock adapter and has no room or session concepts.
177
+
178
+ Cards default to card 1.0 with `lark_md`, which keeps the 0.8.0 payload stable.
179
+ Set `FEISHU_CARD_VERSION=2.0` to opt into card 2.0 (`schema: "2.0"` with a
180
+ `markdown` element), where headings, lists, and fenced code render as block
181
+ Markdown. Any other value fails `initialize`.
182
+
183
+ A payload `parent` with `endpoint.platform: "feishu"`, the same account, and a
184
+ non-empty `nativeMessageId` is sent with
185
+ `POST /open-apis/im/v1/messages/{parent_id}/reply`; the body has no `receive_id`.
186
+ Without a usable Feishu parent the send uses the normal chat endpoint. The center
187
+ fills that parent when a forwarded room reply's `answer_to` parent was already
188
+ delivered to the same target (`channel_echoes` keeps the provider native id).
139
189
 
140
190
  The adapter command is resolved from the host process working directory, so
141
191
  use an absolute path unless the host starts in this package directory.
@@ -146,10 +196,25 @@ The child process reads:
146
196
  - `FEISHU_APP_SECRET` (required)
147
197
  - `FEISHU_BASE_URL` (optional, default `https://open.feishu.cn`)
148
198
  - `FEISHU_HTTP_TIMEOUT_MS` (optional, default `10000`)
199
+ - `FEISHU_CARD_VERSION` (optional, `1.0` default or `2.0`)
200
+ - `FEISHU_INBOUND` (optional, `1` enables the event long connection)
201
+ - `FEISHU_INBOUND_CHATS` (required with `FEISHU_INBOUND=1`; comma-separated
202
+ group `chat_id` allowlist)
149
203
 
150
204
  Set these in the host environment; the host passes its environment to adapter
151
205
  child processes.
152
206
 
207
+ Inbound requires the app to use long-connection event subscription in the Feishu
208
+ developer console and to subscribe `im.message.receive_v1`; the bot must already
209
+ be in each allowlisted group. The adapter obtains the WebSocket URL from
210
+ `POST /callback/ws/endpoint`, pings, reassembles fragmented frames, and
211
+ acknowledges only after the host commits the ingest. Only group `text` and `post`
212
+ messages from human senders in an allowlisted chat are mapped. Bot/self senders,
213
+ other chats, other event types, other apps, and unsupported message types are
214
+ acknowledged without ingest. A long-connection start failure logs a warning,
215
+ keeps the account started for outbound sends, and reports a sanitized
216
+ `inbound failed: ...` in the account status; outbound forwarding keeps working.
217
+
153
218
  ```yaml
154
219
  accounts:
155
220
  - id: feishu-bot
@@ -168,10 +233,11 @@ The target room is the Feishu `chat_id`, so an endpoint
168
233
 
169
234
  `initialize` fails when a credential is missing. `start` fetches a tenant access
170
235
  token, so rejected credentials disable only this account. Tokens are cached and
171
- refreshed when less than 30 minutes remain. A send posts an interactive
172
- Markdown card (`msg_type: "interactive"` with a `lark_md` element) and a `uuid`
173
- derived from the delivery idempotency key, so retrying the same delivery cannot
174
- create a second message.
236
+ refreshed when less than 30 minutes remain. A send posts an interactive card and
237
+ a `uuid` derived from the delivery idempotency key, so retrying the same delivery
238
+ cannot create a second message. Card 1.0 uses one `lark_md` element; card 2.0
239
+ uses one `markdown` element. A Feishu parent reference turns the send into a native
240
+ reply to that message.
175
241
 
176
242
  Send outcomes:
177
243
 
@@ -204,9 +270,16 @@ delivery in `unknown` and never retries automatically; `paused` keeps a disabled
204
270
  account's rows out of every claim until the next host start. An adapter that
205
271
  fails to start or writes non-protocol stdout disables only that account until
206
272
  restart; its queued deliveries move to `paused` and return to `pending` when the
207
- host starts again. On disable or crash, in-flight deliveries move to `unknown`
208
- with the reason; a host start resets stale `in_flight` rows from a previous
209
- crash to `pending`. If every account becomes disabled at runtime, the host logs
273
+ host starts again. Inbound room notifications add one small
274
+ `channel_inbound_relays(event_id, room_id)` marker table to the room database;
275
+ it exists only to make the room append idempotent. Per-account `readChannelStats` states are `started` (adapter
276
+ running), `failed` (startup failure, including a platform mismatch), `disabled`
277
+ (disabled at runtime), or `unknown` without a live host. `lastError` is capped,
278
+ flattened to one line, and redacts credential-shaped `token=…`/`secret=…`
279
+ fragments. On disable or crash, in-flight deliveries move to `unknown`
280
+ with the reason; a deliberate host stop also settles remaining in-flight rows as
281
+ `unknown`, so a centered reload cannot auto-resend them. A host start resets
282
+ stale `in_flight` rows from a previous crash to `pending`. If every account becomes disabled at runtime, the host logs
210
283
  `all accounts disabled; host idle until restart` and stays alive; only a startup
211
284
  with zero usable adapters fails. `onUnsupported: drop` skips empty renders; otherwise the
212
285
  payload carries an `attachment/format unsupported` notice. Replies without a
@@ -237,6 +310,6 @@ same terminal result event and message.
237
310
  - no config hot reload — rule changes require a restart (each delivery still freezes ruleId + ruleVersion + rendered payload);
238
311
  - no one-click manual resend command — `unknown` deliveries only guarantee no duplicate delivery row if resent (unique idempotency key); they are never auto-resent;
239
312
  - no full backpressure (high-water marks, pausing ingress, disk quotas) — only per-account queue/process isolation and `rate_limited` backoff;
240
- - no attachments, no rule UI, no multi-tenant permission model, no inbound
241
- Feishu events (the Feishu adapter is outbound only), no exactly-once
242
- guarantee.
313
+ - no attachments, no rule UI, no multi-tenant permission model, no exactly-once
314
+ guarantee (inbound room notifications are idempotent per event and route, but
315
+ a crash between the ACK and Feishu's next retry can still lose an event).