@linxiraos/pi-channels 1.3.2 → 1.4.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 +11 -0
- package/dist/types/index.d.ts +8 -7
- package/package.json +4 -4
- package/src/index.ts +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.4.1] - 2026-10-23
|
|
4
|
+
|
|
5
|
+
- Version alignment with the 1.4.1 release line (no behavioral changes).
|
|
6
|
+
|
|
7
|
+
## [1.4.0] - 2026-10-21
|
|
8
|
+
|
|
9
|
+
- Feishu and Telegram log in with credentials as well as the WeChat QR: credentials are validated before they are written (Feishu tenant token plus bot info, Telegram `getMe`), secrets are masked in errors, and unbinding clears exactly the fields that channel owns
|
|
10
|
+
|
|
11
|
+
- Channel config writes go through a read-modify-write under one file lock with a shared reader, and the runtime lock is published atomically (temp file + link), so concurrent `login`/`serve`/settings writers no longer drop keys
|
|
12
|
+
- `channels.reportPolicy` is read from settings instead of being inert, and a session-only route mapping is cleaned up when its session ends
|
|
13
|
+
|
|
3
14
|
## [1.3.2] - 2026-10-19
|
|
4
15
|
|
|
5
16
|
- Version line moves to 1.3.2 with the rest of the suite; no user-visible change in this package.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Channel bootstrapping
|
|
2
|
+
* Channel bootstrapping shared by `zetacode serve` and normal CLI/TUI
|
|
3
|
+
* sessions.
|
|
3
4
|
*
|
|
4
5
|
* Enables every channel marked `enabled` in the web config and routes its
|
|
5
|
-
* inbound messages into the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* inbound messages into the host session through `ChannelHost`. Channels
|
|
7
|
+
* missing required credentials are skipped with a warning — a misconfigured
|
|
8
|
+
* channel must never prevent the host from starting.
|
|
8
9
|
*
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
11
|
-
* `channel_send
|
|
10
|
+
* The runtime is transport-agnostic: it needs only the `ChannelSession`
|
|
11
|
+
* contract, so `zetacode` (interactive or `--print`) hosts it directly when a
|
|
12
|
+
* channel is enabled, and `channel_send` becomes available there too.
|
|
12
13
|
*/
|
|
13
14
|
import type { ChannelId, ChatChannel, ChatImage } from "./channel.js";
|
|
14
15
|
import { ChannelHost } from "./host.js";
|
package/package.json
CHANGED
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"bun": ">=1.3.14"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@linxiraos/pi-ai": "1.
|
|
25
|
+
"@linxiraos/pi-ai": "1.4.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/bun": "1.4.3",
|
|
29
|
-
"@linxiraos/pi-ai": "1.
|
|
29
|
+
"@linxiraos/pi-ai": "1.4.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@larksuiteoapi/node-sdk": "^1.71.1",
|
|
33
|
-
"@linxiraos/pi-utils": "1.
|
|
33
|
+
"@linxiraos/pi-utils": "1.4.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "bun test --parallel",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"homepage": "https://linxira-os.github.io/zeta/",
|
|
63
63
|
"description": "IM channel adapters for Zeta (WeChat / Feishu / Telegram)",
|
|
64
64
|
"type": "module",
|
|
65
|
-
"version": "1.
|
|
65
|
+
"version": "1.4.1",
|
|
66
66
|
"name": "@linxiraos/pi-channels"
|
|
67
67
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Channel bootstrapping
|
|
2
|
+
* Channel bootstrapping shared by `zetacode serve` and normal CLI/TUI
|
|
3
|
+
* sessions.
|
|
3
4
|
*
|
|
4
5
|
* Enables every channel marked `enabled` in the web config and routes its
|
|
5
|
-
* inbound messages into the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* inbound messages into the host session through `ChannelHost`. Channels
|
|
7
|
+
* missing required credentials are skipped with a warning — a misconfigured
|
|
8
|
+
* channel must never prevent the host from starting.
|
|
8
9
|
*
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
11
|
-
* `channel_send
|
|
10
|
+
* The runtime is transport-agnostic: it needs only the `ChannelSession`
|
|
11
|
+
* contract, so `zetacode` (interactive or `--print`) hosts it directly when a
|
|
12
|
+
* channel is enabled, and `channel_send` becomes available there too.
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
import { logger } from "@linxiraos/pi-utils";
|