Commit 0d4fc49
committed
feat: port signal channel adapter from TS to Rust
Replaces src/channels/signal.ts (107 LOC) with workers/channel-signal/
(~310 LOC Rust + tests). Inbound webhook + outbound REST bridge to
signal-cli-rest-api (no Node-only deps required — pure HTTP).
Function IDs preserved:
- channel::signal::webhook
HTTP trigger: POST /webhook/signal
Auth env: SIGNAL_API_URL, SIGNAL_PHONE (resolved via vault::get fallback
to env var). Group routing via envelope.dataMessage.groupInfo.groupId.
Outbound respects 10s send timeout (mirrors AbortController behavior
from TS). Empty agent reply still returns 500 to surface upstream
failures, matching TS port.
Continues #41 phase 3 channel migration.1 parent 9819777 commit 0d4fc49
7 files changed
Lines changed: 367 additions & 283 deletions
File tree
- src
- __tests__
- channels
- workers/channel-signal
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments