@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.
- package/CHANGELOG.md +29 -0
- package/LICENSE +2 -2
- package/README.md +38 -6
- package/README.zh-CN.md +38 -6
- package/cli.ts +27 -1
- package/dist/cli.js +5074 -3212
- package/package.json +23 -3
- package/packages/chat-room-channeld/README.md +98 -25
- package/packages/chat-room-channeld/dist/feishu-adapter.js +912 -149
- package/packages/chat-room-channeld/src/adapter.ts +36 -2
- package/packages/chat-room-channeld/src/config.ts +63 -1
- package/packages/chat-room-channeld/src/delivery.ts +6 -1
- package/packages/chat-room-channeld/src/feishu-adapter.ts +122 -292
- package/packages/chat-room-channeld/src/feishu-card.ts +27 -0
- package/packages/chat-room-channeld/src/feishu-inbound.ts +158 -0
- package/packages/chat-room-channeld/src/feishu-live.ts +355 -0
- package/packages/chat-room-channeld/src/feishu-send.ts +342 -0
- package/packages/chat-room-channeld/src/feishu-ws-frames.ts +173 -0
- package/packages/chat-room-channeld/src/host-helpers.ts +11 -0
- package/packages/chat-room-channeld/src/host.ts +120 -2
- package/packages/chat-room-channeld/src/inbound.ts +26 -0
- package/packages/chat-room-channeld/src/state.ts +17 -0
- package/packages/chat-room-channeld/src/stats.ts +43 -1
- package/server/admin-state.ts +13 -13
- package/server/app.ts +95 -0
- package/server/assets/NOTICE.txt +2 -1
- package/server/assets/base.css +15 -9
- package/server/assets/chat/announcements.js +70 -7
- package/server/assets/chat/doc-preview.js +184 -35
- package/server/assets/chat/events.js +3 -0
- package/server/assets/chat/files.js +46 -4
- package/server/assets/chat/index.js +2 -0
- package/server/assets/chat/integration-editor.js +163 -0
- package/server/assets/chat/integration-values.js +124 -0
- package/server/assets/chat/integrations.js +498 -0
- package/server/assets/chat/locales/de.js +40 -4
- package/server/assets/chat/locales/es.js +40 -4
- package/server/assets/chat/locales/fr.js +40 -4
- package/server/assets/chat/locales/it.js +40 -4
- package/server/assets/chat/locales/ja.js +40 -4
- package/server/assets/chat/locales/ko.js +40 -4
- package/server/assets/chat/markdown.js +22 -8
- package/server/assets/chat/messages.js +5 -5
- package/server/assets/chat/office-preview.js +69 -0
- package/server/assets/chat/panels.js +36 -0
- package/server/assets/chat/recall.js +58 -7
- package/server/assets/chat/receipts.js +15 -3
- package/server/assets/chat/reminders.js +69 -8
- package/server/assets/chat/resource-format.js +11 -0
- package/server/assets/chat/settings.js +30 -2
- package/server/assets/chat/side-pane.js +1 -2
- package/server/assets/chat/state.js +93 -10
- package/server/assets/chat/system-events.js +32 -0
- package/server/assets/chat/system-messages.js +23 -14
- package/server/assets/chat/task-row.js +0 -6
- package/server/assets/chat/tasks.js +121 -33
- package/server/assets/code-highlight.css +55 -32
- package/server/assets/conversation.css +123 -23
- package/server/assets/doc-preview.css +35 -3
- package/server/assets/files.css +5 -0
- package/server/assets/fluent-icons.svg +2 -0
- package/server/assets/monaco/LICENSE +21 -0
- package/server/assets/monaco/ThirdPartyNotices.txt +448 -0
- package/server/assets/monaco/codicon-jdswhhtn.ttf +0 -0
- package/server/assets/monaco/editor.worker.js +45 -0
- package/server/assets/monaco/integration-rules.css +1 -0
- package/server/assets/monaco/integration-rules.js +1297 -0
- package/server/assets/monaco/json.worker.js +77 -0
- package/server/assets/office/THIRD-PARTY-NOTICES.txt +11 -0
- package/server/assets/office/docx.bundle.js +33 -0
- package/server/assets/office/licenses/docx-preview-LICENSE.txt +201 -0
- package/server/assets/office/licenses/echarts-LICENSE.txt +222 -0
- package/server/assets/office/licenses/jszip-LICENSE.txt +651 -0
- package/server/assets/office/licenses/lodash-LICENSE.txt +47 -0
- package/server/assets/office/licenses/pptx-preview-LICENSE.txt +8 -0
- package/server/assets/office/licenses/tslib-LICENSE.txt +12 -0
- package/server/assets/office/licenses/uuid-LICENSE.txt +9 -0
- package/server/assets/office/licenses/xlsx-LICENSE.txt +201 -0
- package/server/assets/office/licenses/zrender-LICENSE.txt +29 -0
- package/server/assets/office/pptx.bundle.js +104 -0
- package/server/assets/office/xlsx.bundle.js +141 -0
- package/server/assets/recall.css +5 -4
- package/server/assets/responsive.css +50 -11
- package/server/assets/settings.css +73 -1
- package/server/assets/tasks.css +57 -7
- package/server/channel-integration.ts +519 -0
- package/server/channel-settings.ts +77 -0
- package/server/channels.ts +261 -18
- package/server/chat-server.ts +32 -580
- package/server/chat.html +187 -21
- package/server/http-server.ts +3 -182
- package/server/resource-routes.ts +16 -16
- package/server/routes/inbox.ts +100 -0
- package/server/routes/pages.ts +83 -0
- package/server/routes/questions.ts +39 -0
- package/server/routes/room-actions.ts +162 -0
- package/server/routes/rooms.ts +160 -0
- package/server/startup.ts +84 -0
- package/server/sw.js +4 -0
- package/server/task-routes.ts +1 -1
- package/src/center/center-client.ts +2 -10
- package/src/config/file-config.ts +7 -54
- package/src/platform/http-server.ts +182 -0
- package/src/protocol/addressing.ts +21 -0
- package/src/protocol/config.ts +58 -0
- package/src/protocol/room.ts +51 -0
- package/src/rooms/resources.ts +26 -16
- package/src/rooms/room-service.ts +2 -48
- package/src/rooms/storage.ts +329 -0
- package/src/rooms/tasks.ts +21 -5
- package/src/runtime/watch.ts +1 -1
- package/src/state/pg-database.ts +183 -0
- package/src/state/pg-migrate.ts +175 -0
- package/src/state/pg-sql.mjs +175 -0
- package/src/state/pg-worker.mjs +148 -0
- package/src/state/sqlite-announcements.ts +25 -0
- package/src/state/sqlite-database.ts +121 -0
- package/src/state/sqlite-legacy.ts +90 -0
- package/src/state/sqlite-members.ts +155 -0
- package/src/state/sqlite-messages.ts +288 -0
- package/src/state/sqlite-resources.ts +39 -0
- package/src/state/sqlite-rooms.ts +87 -0
- package/src/state/sqlite-schema.ts +80 -0
- package/src/state/sqlite-state-store.ts +33 -0
- package/src/state/sqlite-state.ts +15 -897
- package/src/state/sqlite-tasks.ts +65 -0
- package/src/state/sqlite-transaction.ts +13 -0
- package/src/state/sqlite.ts +21 -1
- package/src/state/store.ts +5 -1
- package/src/tui/app.mjs +32 -19
- package/src/tui/config.mjs +12 -4
- package/src/tui/i18n.mjs +38 -0
- package/src/tui/info-app.mjs +50 -51
- package/src/tui/info-content.mjs +79 -44
- package/src/tui/join-app.mjs +9 -9
- package/src/tui/locales/en.mjs +349 -0
- package/src/tui/locales/zh-CN.mjs +349 -0
- package/src/tui/main.mjs +85 -37
- package/src/tui/markdown.mjs +3 -2
- package/src/tui/mentions.mjs +3 -1
- package/src/tui/message-app.mjs +22 -21
- package/src/tui/message-view.mjs +2 -1
- package/src/tui/palette-app.mjs +9 -8
- package/src/tui/palette.mjs +30 -24
- package/src/tui/prefs.mjs +92 -0
- package/src/tui/reminder-app.mjs +18 -17
- package/src/tui/room-settings-app.mjs +30 -28
- package/src/tui/settings-app.mjs +153 -0
- package/src/tui/ui-content.mjs +65 -86
- package/src/tui/ui-help.mjs +73 -0
- package/src/tui/ui-overlay-view.mjs +23 -7
- package/src/tui/ui-suggest.mjs +6 -5
- package/src/tui/ui-theme.mjs +37 -33
- package/src/tui/ui-view.mjs +22 -7
- package/src/tui/ui.mjs +15 -3
- package/src/web/editor.worker.ts +1 -0
- package/src/web/integration-rules-editor.ts +439 -0
- package/src/web/integration-rules.ts +22 -0
- package/src/web/integration-schema.ts +228 -0
- package/src/web/json.worker.ts +1 -0
- 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.
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
|
10
|
-
|
|
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
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
97
|
-
`CHANNELD_PLATFORM`. Both directions use
|
|
98
|
-
|
|
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
|
|
171
|
+
## Feishu adapter
|
|
133
172
|
|
|
134
|
-
`dist/feishu-adapter.js` is
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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.
|
|
208
|
-
|
|
209
|
-
|
|
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
|
|
241
|
-
|
|
242
|
-
|
|
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).
|