ylib-syim 0.0.22 → 0.0.24
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/bridges/main.ts +7 -5
- package/install-ylib.sh +11 -0
- package/package.json +3 -3
package/bridges/main.ts
CHANGED
|
@@ -35,6 +35,8 @@ let runtimeInstanceId = `bridges-${process.pid}-${Date.now()}`;
|
|
|
35
35
|
const internalToken = (process.env.INTERNAL_FIXED_TOKEN || "").trim();
|
|
36
36
|
// 内部控制面监听端口。
|
|
37
37
|
const internalPort = Number(process.env.INTERNAL_CONTROL_PORT || "18999");
|
|
38
|
+
// 内部控制面监听地址,容器部署默认 0.0.0.0 便于跨容器访问。
|
|
39
|
+
const internalHost = (process.env.INTERNAL_CONTROL_HOST || "0.0.0.0").trim();
|
|
38
40
|
// 是否启用内部控制面 API。
|
|
39
41
|
const enableInternalApi = process.env.ENABLE_INTERNAL_API !== "0";
|
|
40
42
|
|
|
@@ -7086,9 +7088,9 @@ async function startInternalApiServer(): Promise<void> {
|
|
|
7086
7088
|
if (!enableInternalApi) return;
|
|
7087
7089
|
const server = createHttpControlServer(async (req, res) => {
|
|
7088
7090
|
const reqUrl = new URL(req.url || "/", "http://127.0.0.1");
|
|
7089
|
-
console.log(
|
|
7090
|
-
|
|
7091
|
-
);
|
|
7091
|
+
// console.log(
|
|
7092
|
+
// `[bridges/main] internal request method=${req.method} path=${reqUrl.pathname}`,
|
|
7093
|
+
// );
|
|
7092
7094
|
if (!reqUrl.pathname.startsWith("/internal/runtime")) {
|
|
7093
7095
|
res.writeHead(404, { "Content-Type": "application/json" });
|
|
7094
7096
|
res.end(JSON.stringify({ ok: false, error: "Not found" }));
|
|
@@ -8415,9 +8417,9 @@ async function startInternalApiServer(): Promise<void> {
|
|
|
8415
8417
|
res.writeHead(404, { "Content-Type": "application/json" });
|
|
8416
8418
|
res.end(JSON.stringify({ ok: false, error: "Not found" }));
|
|
8417
8419
|
});
|
|
8418
|
-
server.listen(internalPort, () => {
|
|
8420
|
+
server.listen(internalPort, internalHost, () => {
|
|
8419
8421
|
console.log(
|
|
8420
|
-
`[bridges/main] internal api listening on http
|
|
8422
|
+
`[bridges/main] internal api listening on http://${internalHost}:${internalPort}`,
|
|
8421
8423
|
);
|
|
8422
8424
|
});
|
|
8423
8425
|
}
|
package/install-ylib.sh
CHANGED
|
@@ -16,6 +16,17 @@ npm config set audit false
|
|
|
16
16
|
npm config set loglevel=verbose
|
|
17
17
|
|
|
18
18
|
echo "开始安装..."
|
|
19
|
+
|
|
20
|
+
npm i pm2 -g \
|
|
21
|
+
--registry=https://registry.npmmirror.com \
|
|
22
|
+
--ignore-engines \
|
|
23
|
+
--no-optional \
|
|
24
|
+
--no-audit \
|
|
25
|
+
--no-fund \
|
|
26
|
+
--prefer-offline \
|
|
27
|
+
--legacy-peer-deps \
|
|
28
|
+
--verbose
|
|
29
|
+
|
|
19
30
|
# 使用最小化安装
|
|
20
31
|
npm i ylib-syim -g \
|
|
21
32
|
--registry=https://registry.npmmirror.com \
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ylib-syim",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "多 IM / 多 Agent 的会话路由与上下文管理(支持 /new)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
49
|
-
"ylib-dingtalk-connector": "0.7.10-beta.
|
|
49
|
+
"ylib-dingtalk-connector": "0.7.10-beta.15",
|
|
50
50
|
"ylib-openclaw-lark": "2026.3.17-beta.20",
|
|
51
|
-
"ylib-openclaw-weixin": "2.1.7-beta.
|
|
51
|
+
"ylib-openclaw-weixin": "2.1.7-beta.7",
|
|
52
52
|
"axios": "^1.6.0",
|
|
53
53
|
"dingtalk-stream": "^2.1.4",
|
|
54
54
|
"fluent-ffmpeg": "^2.1.3",
|