sessix-server 0.3.7 → 0.3.8
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/dist/index.js +2 -9
- package/dist/server.js +2 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3284,8 +3284,6 @@ var NotificationService = class {
|
|
|
3284
3284
|
latestAssistantText = /* @__PURE__ */ new Map();
|
|
3285
3285
|
/** 获取全局待审批总数的回调(跨所有会话) */
|
|
3286
3286
|
globalPendingCountProvider = null;
|
|
3287
|
-
/** 获取当前 WS 连接数的回调(用于在线抑制推送) */
|
|
3288
|
-
connectionCountProvider = null;
|
|
3289
3287
|
/** 添加通知渠道(id 唯一,可用于后续动态开关) */
|
|
3290
3288
|
addChannel(id, channel, enabled = true) {
|
|
3291
3289
|
this.channelMap.set(id, { channel, enabled });
|
|
@@ -3323,10 +3321,6 @@ var NotificationService = class {
|
|
|
3323
3321
|
setGlobalPendingCountProvider(provider) {
|
|
3324
3322
|
this.globalPendingCountProvider = provider;
|
|
3325
3323
|
}
|
|
3326
|
-
/** 设置 WS 连接数提供者(用于 status_change 通知的在线抑制) */
|
|
3327
|
-
setConnectionCountProvider(provider) {
|
|
3328
|
-
this.connectionCountProvider = provider;
|
|
3329
|
-
}
|
|
3330
3324
|
/** 获取全局待审批总数 */
|
|
3331
3325
|
getGlobalPendingCount() {
|
|
3332
3326
|
return this.globalPendingCountProvider?.() ?? 0;
|
|
@@ -3469,7 +3463,7 @@ var NotificationService = class {
|
|
|
3469
3463
|
isYoloMode,
|
|
3470
3464
|
updatedAt: Date.now()
|
|
3471
3465
|
});
|
|
3472
|
-
} else
|
|
3466
|
+
} else {
|
|
3473
3467
|
this.notify({
|
|
3474
3468
|
title: sessionTitle,
|
|
3475
3469
|
body,
|
|
@@ -3491,7 +3485,7 @@ var NotificationService = class {
|
|
|
3491
3485
|
isYoloMode,
|
|
3492
3486
|
updatedAt: Date.now()
|
|
3493
3487
|
});
|
|
3494
|
-
} else
|
|
3488
|
+
} else {
|
|
3495
3489
|
this.notify({
|
|
3496
3490
|
title: sessionTitle,
|
|
3497
3491
|
body,
|
|
@@ -4590,7 +4584,6 @@ async function start(opts = {}) {
|
|
|
4590
4584
|
notificationService.setGlobalPendingCountProvider(
|
|
4591
4585
|
() => approvalProxy.getPendingCount() + sessionManager.getAllPendingQuestions().length + unreadSessionIds.size
|
|
4592
4586
|
);
|
|
4593
|
-
notificationService.setConnectionCountProvider(() => wsBridge.getConnectionCount());
|
|
4594
4587
|
let cliCapabilities = null;
|
|
4595
4588
|
parseCliCapabilities().then((caps) => {
|
|
4596
4589
|
cliCapabilities = caps;
|
package/dist/server.js
CHANGED
|
@@ -3289,8 +3289,6 @@ var NotificationService = class {
|
|
|
3289
3289
|
latestAssistantText = /* @__PURE__ */ new Map();
|
|
3290
3290
|
/** 获取全局待审批总数的回调(跨所有会话) */
|
|
3291
3291
|
globalPendingCountProvider = null;
|
|
3292
|
-
/** 获取当前 WS 连接数的回调(用于在线抑制推送) */
|
|
3293
|
-
connectionCountProvider = null;
|
|
3294
3292
|
/** 添加通知渠道(id 唯一,可用于后续动态开关) */
|
|
3295
3293
|
addChannel(id, channel, enabled = true) {
|
|
3296
3294
|
this.channelMap.set(id, { channel, enabled });
|
|
@@ -3328,10 +3326,6 @@ var NotificationService = class {
|
|
|
3328
3326
|
setGlobalPendingCountProvider(provider) {
|
|
3329
3327
|
this.globalPendingCountProvider = provider;
|
|
3330
3328
|
}
|
|
3331
|
-
/** 设置 WS 连接数提供者(用于 status_change 通知的在线抑制) */
|
|
3332
|
-
setConnectionCountProvider(provider) {
|
|
3333
|
-
this.connectionCountProvider = provider;
|
|
3334
|
-
}
|
|
3335
3329
|
/** 获取全局待审批总数 */
|
|
3336
3330
|
getGlobalPendingCount() {
|
|
3337
3331
|
return this.globalPendingCountProvider?.() ?? 0;
|
|
@@ -3474,7 +3468,7 @@ var NotificationService = class {
|
|
|
3474
3468
|
isYoloMode,
|
|
3475
3469
|
updatedAt: Date.now()
|
|
3476
3470
|
});
|
|
3477
|
-
} else
|
|
3471
|
+
} else {
|
|
3478
3472
|
this.notify({
|
|
3479
3473
|
title: sessionTitle,
|
|
3480
3474
|
body,
|
|
@@ -3496,7 +3490,7 @@ var NotificationService = class {
|
|
|
3496
3490
|
isYoloMode,
|
|
3497
3491
|
updatedAt: Date.now()
|
|
3498
3492
|
});
|
|
3499
|
-
} else
|
|
3493
|
+
} else {
|
|
3500
3494
|
this.notify({
|
|
3501
3495
|
title: sessionTitle,
|
|
3502
3496
|
body,
|
|
@@ -4595,7 +4589,6 @@ async function start(opts = {}) {
|
|
|
4595
4589
|
notificationService.setGlobalPendingCountProvider(
|
|
4596
4590
|
() => approvalProxy.getPendingCount() + sessionManager.getAllPendingQuestions().length + unreadSessionIds.size
|
|
4597
4591
|
);
|
|
4598
|
-
notificationService.setConnectionCountProvider(() => wsBridge.getConnectionCount());
|
|
4599
4592
|
let cliCapabilities = null;
|
|
4600
4593
|
parseCliCapabilities().then((caps) => {
|
|
4601
4594
|
cliCapabilities = caps;
|