@michengai/dsh-im-connect 0.1.64 → 0.1.66
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/CHANGELOG.zh-CN.md +11 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/client.js +78 -6
- package/lib/client.js +90 -12
- package/lib/manager.d.ts +3 -0
- package/lib/manager.d.ts.map +1 -1
- package/lib/manager.js +57 -8
- package/lib/manager.js.map +1 -1
- package/lib/plugin-updater.d.ts +47 -0
- package/lib/plugin-updater.d.ts.map +1 -1
- package/lib/plugin-updater.js +137 -27
- package/lib/plugin-updater.js.map +1 -1
- package/package.json +1 -1
- package/src/manager.ts +54 -9
- package/src/plugin-update-ui.js +12 -6
- package/src/plugin-updater.ts +128 -26
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,17 @@ Recent published versions are listed below. Git tags and GitHub Releases now mir
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 0.1.66 - 2026-10-07
|
|
10
|
+
|
|
11
|
+
- Each connected account can have a local name remark. Click the account name on the settings row, or edit it in account settings. The remark is display-only. Leaving it blank restores the original automatic number instead of renumbering by the current account count. Remarks longer than 40 characters or containing line breaks are rejected.
|
|
12
|
+
- Restart DSH and refresh the page after upgrading.
|
|
13
|
+
|
|
14
|
+
## 0.1.65 - 2026-10-07
|
|
15
|
+
|
|
16
|
+
- Official Desktop can update this plugin in place. It no longer targets the web profile by mistake.
|
|
17
|
+
- A new version is marked with a warning color. Version numbers keep their normal color.
|
|
18
|
+
- After updating, fully quit and reopen DSH Desktop.
|
|
19
|
+
|
|
9
20
|
## 0.1.64 - 2026-10-06
|
|
10
21
|
|
|
11
22
|
- The installed-plugin list shows “IM Connect” and a localized description instead of the package name. Titles and descriptions come from `meta.title` and `meta.description` in `locale/zh.json` and `locale/en.json`.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
## 未发布
|
|
8
8
|
|
|
9
|
+
## 0.1.66 - 2026-10-07
|
|
10
|
+
|
|
11
|
+
- 设置页可以为每个已接入账号填写名称备注,账号行点击名称即可修改。备注只在本机显示,用来区分使用者;留空恢复原来的自动序号,不会按当前账号数重编。超过 40 个字符或包含换行会被拒绝。
|
|
12
|
+
- 升级后请重启 DSH 并刷新页面。
|
|
13
|
+
|
|
14
|
+
## 0.1.65 - 2026-10-07
|
|
15
|
+
|
|
16
|
+
- 官方桌面版可以在线更新这个插件,不再误装到 web profile。
|
|
17
|
+
- 发现新版本时,提示文字会标成提醒色;版本号颜色不变。
|
|
18
|
+
- 更新完成后需要完全退出并重新打开 DSH Desktop。
|
|
19
|
+
|
|
9
20
|
## 0.1.64 - 2026-10-06
|
|
10
21
|
|
|
11
22
|
- 已安装插件列表显示「IM Connect」和中文简介,不再只用包名。显示名来自 `locale/zh.json` 和 `locale/en.json` 的 `meta.title`、`meta.description`。
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ Each check reports passed, failed, or unverified, with timing and a suggested ne
|
|
|
150
150
|
|
|
151
151
|
## Screenshots
|
|
152
152
|
|
|
153
|
-
Add accounts under each channel in **Settings → IM Assistant**. Expand a channel
|
|
153
|
+
Add accounts under each channel in **Settings → IM Assistant**. Expand a channel and click an account name to add a remark so you can tell users apart; leave it blank to restore the automatic name. The settings button configures workspace, model, permission, and private access, and can edit the same remark. The **Receive messages** switch is on the account row:
|
|
154
154
|
|
|
155
155
|

|
|
156
156
|
|
package/README.zh-CN.md
CHANGED
|
@@ -150,7 +150,7 @@ IM 消息发起的处理结束后,会在正文和文件投递完成后给出
|
|
|
150
150
|
|
|
151
151
|
每项显示通过、失败或未验证、耗时和处理建议。诊断不发送测试消息、不额外拉取聊天消息;单项通过不代表完整收发权限已验证。旧后端不支持诊断时会提示重启 DSH 并刷新页面。接口、各渠道能力边界与验证记录见[账号连接诊断](docs/01-当前工作/I015-命令权限与Chat命令/06-账号状态检查.md)。
|
|
152
152
|
|
|
153
|
-
在「设置 → IM
|
|
153
|
+
在「设置 → IM助理」按渠道添加账号。展开渠道后,点击账号名称可填写备注,用来区分是谁在使用;留空则恢复自动名称。设置按钮配置工作区、模型、权限和私聊准入,那里也可以改备注;接收消息开关位于账号行:
|
|
154
154
|
|
|
155
155
|

|
|
156
156
|
|
package/client.js
CHANGED
|
@@ -408,7 +408,8 @@ window.__ModuleLoader__.load({
|
|
|
408
408
|
"settings.label": "IM助理", "settings.title": "IM助理", "settings.description": "管理各渠道账号。每个账号独立选择工作区、模型和权限,配置仅保存在本机。", "settings.viewProject": "GitHub", "settings.feedback": "问题反馈",
|
|
409
409
|
"settings.aria": "IM助理", "settings.publicChatNotice": "未批准用户可以发起聊天,但不能批准工具调用。", "pending.notice": "有访问请求。批准后该用户才能驱动本机助手。", "action.approve": "批准", "action.deny": "拒绝", "loading": "加载中…",
|
|
410
410
|
"account.presetUnavailable": "预设不可用", "account.presetNote": "更改后使用新会话,旧会话保留。", "action.settings": "设置", "command.dm": "私聊命令", "command.group": "群聊命令", "command.enabled": "可以执行命令", "command.disabled": "仅正常对话",
|
|
411
|
-
"account.workspace": "工作区", "account.currentWorkspace": "当前工作区", "account.selectWorkspace": "请选择工作区", "account.selectModel": "请选择模型", "account.selectPermission": "请选择权限", "account.privateAccess": "私聊准入", "account.privateApproved": "仅已批准用户", "account.privateAll": "允许所有私聊用户", "account.autoNameNote": "
|
|
411
|
+
"account.workspace": "工作区", "account.currentWorkspace": "当前工作区", "account.selectWorkspace": "请选择工作区", "account.selectModel": "请选择模型", "account.selectPermission": "请选择权限", "account.privateAccess": "私聊准入", "account.privateApproved": "仅已批准用户", "account.privateAll": "允许所有私聊用户", "account.autoNameNote": "绑定成功后会自动生成账号名,无需手动填写。需要区分使用者时,可在账号行填写备注。", "account.defaultName": "{channel}账号 {count}",
|
|
412
|
+
"account.remark": "名称备注", "account.remarkNote": "只在本机设置页区分账号,留空恢复自动名称。", "account.rename": "修改名称备注",
|
|
412
413
|
"account.count": "{count} 个账号", "account.statusProcessing": "处理中…", "account.statusNotConnected": "未连接", "account.receive": "接收消息", "account.receiveDescription": "关闭后保留账号配置,但不接收新消息", "account.removeConfirm": "确定移除这个账号?本机保存的配置和凭据将一并删除。",
|
|
413
414
|
"action.addAccount": "添加账号", "action.generateQr": "生成二维码", "action.checkConnection": "诊断连接", "action.reconnectAccount": "重新连接", "action.removeAccount": "移除接入", "status.saving": "保存中…", "status.saved": "已保存",
|
|
414
415
|
"channel.dingtalk": "钉钉", "channel.feishu": "飞书", "channel.lark": "Lark", "channel.weixin": "微信", "channel.wecom": "企业微信", "channel.qq": "QQ", "channel.telegram": "Telegram", "channel.discord": "Discord",
|
|
@@ -423,7 +424,7 @@ window.__ModuleLoader__.load({
|
|
|
423
424
|
"rail.workspace": "工作区", "rail.sessions": "会话", "rail.search": "搜索", "rail.searchPlaceholder": "搜索会话...", "rail.clearSearch": "清除搜索", "rail.filter": "筛选", "rail.group": "分组方式", "rail.byWorkspace": "按工作区", "rail.list": "单列表", "rail.byWorkspaceTree": "按工作区树", "rail.sort": "排序方式", "rail.recent": "最近更新", "rail.showArchived": "显示已归档", "rail.onlyArchived": "仅显示已归档", "rail.running": "运行中", "rail.idle": "空闲", "rail.waitingApproval": "等待审批", "rail.planReview": "计划待审", "rail.waitingAnswer": "等待回答", "rail.subagents": "{n} 个子代理运行中", "rail.completed": "已完成", "rail.archived": "已归档", "rail.compactApproval": "待审批", "rail.compactPlan": "计划待审", "rail.compactAnswer": "待回答", "rail.renameAria": "重命名会话", "rail.rename": "重命名", "rail.fork": "分叉会话", "rail.archive": "归档会话", "rail.unarchive": "恢复会话", "rail.stopArchive": "停止并归档", "rail.stopArchiveDescription": "会话“{name}”仍在运行。停止后才能归档。", "rail.stopArchiveConfirm": "停止并归档", "rail.stopArchivePending": "正在停止并归档…", "rail.stopArchiveGroupDescription": "“{name}”下仍有运行中的会话。停止这些会话后才能归档整组。", "rail.archiveFailed": "归档失败,未移除会话。请稍后重试或检查宿主日志。", "rail.deleteSession": "删除会话", "rail.deleteSessionConfirm": "删除会话", "rail.deleteSessionDescription": "将永久删除会话“{name}”及其子代理(含正在运行的)和全部记录(对话内容、统计、缓存),此操作不可恢复。", "rail.deleteSessionPending": "正在删除会话…", "rail.deleteSessionFailed": "删除会话失败:{message}", "rail.deleteSessionClose": "关闭", "rail.deleteSessionCancel": "取消", "rail.groupActions": "“{name}”的频道操作", "rail.channelSettings": "渠道设置", "rail.archiveGroup": "归档整组会话", "rail.archiveGroupConfirm": "确认归档", "rail.archiveGroupDescription": "将归档“{name}”下的 {count} 个会话。归档后可以在“设置 → 已归档”中恢复。", "rail.archiveGroupPending": "正在归档整组会话…", "rail.archiveGroupFailed": "部分会话归档失败:{message}", "rail.archiveGroupClose": "关闭", "rail.archiveGroupCancel": "取消", "rail.empty": "还没有频道会话。先在设置 → IM助理 里连接渠道,并给机器人发一条消息。", "rail.noTasks": "暂无网页任务", "rail.ungrouped": "未分组", "rail.tabsAria": "工作区分类", "rail.tasks": "任务", "rail.channels": "频道",
|
|
424
425
|
"time.now": "刚刚", "time.minutes": "{n}分钟", "time.hours": "{n}小时", "time.days": "{n}天", "time.months": "{n}个月", "time.years": "{n}年", "time.ago": "{t}前",
|
|
425
426
|
"copy": "复制", "hover.copied": "已复制",
|
|
426
|
-
"server.unknownChannel": "未知渠道", "server.channelUnconfigured": "渠道未配置", "server.sessionMissing": "会话不存在", "server.accountMissing": "账号不存在", "server.accountConnectFailed": "账号连接失败,请查看本机日志", "server.accountReconnectFailed": "重新连接失败,请查看本机日志", "server.selectAccountSettings": "请选择提供商、模型、工作区或权限", "server.selectModel": "请选择提供商和模型", "server.selectWorkspace": "请选择工作区", "server.selectPermission": "请选择权限", "server.missingCredentials": "凭据不足,无法启动渠道", "server.qrUnsupported": "该渠道不支持扫码绑定", "server.qrExpired": "二维码已过期", "server.qrIncomplete": "扫码未完成", "server.accessDenied": "未授权:请管理员在设置 → IM助理 中批准你的访问。",
|
|
427
|
+
"server.unknownChannel": "未知渠道", "server.channelUnconfigured": "渠道未配置", "server.sessionMissing": "会话不存在", "server.accountMissing": "账号不存在", "server.accountConnectFailed": "账号连接失败,请查看本机日志", "server.accountReconnectFailed": "重新连接失败,请查看本机日志", "server.selectAccountSettings": "请选择提供商、模型、工作区或权限", "server.selectModel": "请选择提供商和模型", "server.selectWorkspace": "请选择工作区", "server.selectPermission": "请选择权限", "server.missingCredentials": "凭据不足,无法启动渠道", "server.qrUnsupported": "该渠道不支持扫码绑定", "server.qrExpired": "二维码已过期", "server.qrIncomplete": "扫码未完成", "server.accessDenied": "未授权:请管理员在设置 → IM助理 中批准你的访问。", "server.remarkTooLong": "账号备注不能超过 40 个字符", "server.remarkControl": "账号备注不能包含换行或控制字符",
|
|
427
428
|
"status.disconnected": "已断开", "status.reconnectFailed": "重连失败", "status.connectingSocket": "连接中", "status.waitHandshake": "等待网关握手", "status.authenticating": "鉴权中", "status.reconnecting": "重连中", "status.connectionError": "连接错误", "status.connectionFailed": "连接失败", "status.streamConnected": "Stream 已连接", "status.stopped": "已停止", "status.longConnection": "长连接已建立", "status.polling": "轮询中", "status.notLoggedIn": "未登录", "status.waitQr": "等待扫码", "status.loggedIn": "已登录", "status.loggedInRecovered": "已登录(自动恢复)", "status.loggingIn": "登录中",
|
|
428
429
|
},
|
|
429
430
|
en: {
|
|
@@ -436,7 +437,8 @@ window.__ModuleLoader__.load({
|
|
|
436
437
|
"settings.label": "IM Assistant", "settings.title": "IM Assistant", "settings.description": "Manage accounts across channels. Each account has its own workspace, model, and permission settings, stored only on this machine.", "settings.viewProject": "GitHub", "settings.feedback": "Issues",
|
|
437
438
|
"settings.aria": "IM Assistant", "settings.publicChatNotice": "Unapproved users can start chats, but they cannot approve tool calls.", "pending.notice": "There are access requests. Approve a user before they can control the local assistant.", "action.approve": "Approve", "action.deny": "Deny", "loading": "Loading…",
|
|
438
439
|
"account.presetUnavailable": "Preset unavailable", "account.presetNote": "Changes start a new session; previous sessions are kept.", "action.settings": "Settings", "command.dm": "DM commands", "command.group": "Group commands", "command.enabled": "Commands enabled", "command.disabled": "Conversation only",
|
|
439
|
-
"account.workspace": "Workspace", "account.currentWorkspace": "Current workspace", "account.selectWorkspace": "Select a workspace", "account.selectModel": "Select a model", "account.selectPermission": "Select a permission", "account.privateAccess": "Private chat access", "account.privateApproved": "Approved users only", "account.privateAll": "Allow all DM users", "account.autoNameNote": "The account name is generated automatically after setup.", "account.defaultName": "{channel} account {count}",
|
|
440
|
+
"account.workspace": "Workspace", "account.currentWorkspace": "Current workspace", "account.selectWorkspace": "Select a workspace", "account.selectModel": "Select a model", "account.selectPermission": "Select a permission", "account.privateAccess": "Private chat access", "account.privateApproved": "Approved users only", "account.privateAll": "Allow all DM users", "account.autoNameNote": "The account name is generated automatically after setup. Add a remark on the account row if you need to tell users apart.", "account.defaultName": "{channel} account {count}",
|
|
441
|
+
"account.remark": "Name remark", "account.remarkNote": "Shown only in settings to tell accounts apart. Leave blank to restore the automatic name.", "account.rename": "Edit name remark",
|
|
440
442
|
"account.count": "{count} accounts", "account.statusProcessing": "Processing…", "account.statusNotConnected": "Not connected", "account.receive": "Receive messages", "account.receiveDescription": "Turn this off to keep the account settings without receiving new messages", "account.removeConfirm": "Remove this account? Its saved settings and credentials will also be deleted.",
|
|
441
443
|
"action.addAccount": "Add account", "action.generateQr": "Generate QR code", "action.checkConnection": "Diagnose connection", "action.reconnectAccount": "Reconnect", "action.removeAccount": "Remove", "status.saving": "Saving…", "status.saved": "Saved",
|
|
442
444
|
"channel.dingtalk": "DingTalk", "channel.feishu": "Feishu", "channel.lark": "Lark", "channel.weixin": "WeChat", "channel.wecom": "WeCom", "channel.qq": "QQ", "channel.telegram": "Telegram", "channel.discord": "Discord",
|
|
@@ -451,7 +453,7 @@ window.__ModuleLoader__.load({
|
|
|
451
453
|
"rail.workspace": "Workspaces", "rail.sessions": "Sessions", "rail.search": "Search", "rail.searchPlaceholder": "Search sessions...", "rail.clearSearch": "Clear search", "rail.filter": "Filter", "rail.group": "Group by", "rail.byWorkspace": "By workspace", "rail.list": "Single list", "rail.byWorkspaceTree": "Workspace Tree", "rail.sort": "Sort by", "rail.recent": "Recently updated", "rail.showArchived": "Show archived", "rail.onlyArchived": "Archived only", "rail.running": "Running", "rail.idle": "Idle", "rail.waitingApproval": "Waiting for approval", "rail.planReview": "Plan to review", "rail.waitingAnswer": "Waiting for an answer", "rail.subagents": "{n} subagents running", "rail.completed": "Completed", "rail.archived": "Archived", "rail.compactApproval": "Approval", "rail.compactPlan": "Plan review", "rail.compactAnswer": "Answer", "rail.renameAria": "Rename session", "rail.rename": "Rename", "rail.fork": "Fork session", "rail.archive": "Archive session", "rail.unarchive": "Restore session", "rail.stopArchive": "Stop and archive", "rail.stopArchiveDescription": "Session “{name}” is still running. Stop it before archiving.", "rail.stopArchiveConfirm": "Stop and archive", "rail.stopArchivePending": "Stopping and archiving…", "rail.stopArchiveGroupDescription": "Some conversations in “{name}” are still running. Stop them before archiving the group.", "rail.archiveFailed": "Archive failed. The session was kept. Retry or check the Host logs.", "rail.deleteSession": "Delete session", "rail.deleteSessionConfirm": "Delete session", "rail.deleteSessionDescription": "This permanently deletes session “{name}”, its child agents (including any that are still running), and all of its records (conversation, stats, cache). This cannot be undone.", "rail.deleteSessionPending": "Deleting session…", "rail.deleteSessionFailed": "Could not delete the session: {message}", "rail.deleteSessionClose": "Close", "rail.deleteSessionCancel": "Cancel", "rail.groupActions": "Actions for {name}", "rail.channelSettings": "Channel settings", "rail.archiveGroup": "Archive all conversations", "rail.archiveGroupConfirm": "Archive all", "rail.archiveGroupDescription": "Archive all {count} conversations for “{name}”. You can restore them later in Settings → Archived.", "rail.archiveGroupPending": "Archiving conversations…", "rail.archiveGroupFailed": "Some conversations could not be archived: {message}", "rail.archiveGroupClose": "Close", "rail.archiveGroupCancel": "Cancel", "rail.empty": "No channel sessions yet. Connect a channel in Settings → IM Assistant, then send the bot a message.", "rail.noTasks": "No web tasks", "rail.ungrouped": "Ungrouped", "rail.tabsAria": "Workspace categories", "rail.tasks": "Tasks", "rail.channels": "Channels",
|
|
452
454
|
"time.now": "now", "time.minutes": "{n}min", "time.hours": "{n}h", "time.days": "{n}d", "time.months": "{n}mo", "time.years": "{n}y", "time.ago": "{t} ago",
|
|
453
455
|
"copy": "Copy", "hover.copied": "Copied",
|
|
454
|
-
"server.unknownChannel": "Unknown channel", "server.channelUnconfigured": "Channel is not configured", "server.sessionMissing": "Session does not exist", "server.accountMissing": "Account does not exist", "server.accountConnectFailed": "Could not connect the account. Check the local logs.", "server.accountReconnectFailed": "Could not reconnect the account. Check the local logs.", "server.selectAccountSettings": "Select a provider, model, workspace, or permission setting", "server.selectModel": "Select a provider and model", "server.selectWorkspace": "Select a workspace", "server.selectPermission": "Select a permission", "server.missingCredentials": "The channel cannot start because credentials are missing", "server.qrUnsupported": "This channel does not support QR setup", "server.qrExpired": "QR code has expired", "server.qrIncomplete": "QR setup was not completed", "server.accessDenied": "Access denied: ask an administrator to approve you in Settings → IM Assistant.",
|
|
456
|
+
"server.unknownChannel": "Unknown channel", "server.channelUnconfigured": "Channel is not configured", "server.sessionMissing": "Session does not exist", "server.accountMissing": "Account does not exist", "server.accountConnectFailed": "Could not connect the account. Check the local logs.", "server.accountReconnectFailed": "Could not reconnect the account. Check the local logs.", "server.selectAccountSettings": "Select a provider, model, workspace, or permission setting", "server.selectModel": "Select a provider and model", "server.selectWorkspace": "Select a workspace", "server.selectPermission": "Select a permission", "server.missingCredentials": "The channel cannot start because credentials are missing", "server.qrUnsupported": "This channel does not support QR setup", "server.qrExpired": "QR code has expired", "server.qrIncomplete": "QR setup was not completed", "server.accessDenied": "Access denied: ask an administrator to approve you in Settings → IM Assistant.", "server.remarkTooLong": "Account remark cannot exceed 40 characters", "server.remarkControl": "Account remark cannot contain line breaks or control characters",
|
|
455
457
|
"status.disconnected": "Disconnected", "status.reconnectFailed": "Reconnect failed", "status.connectingSocket": "Connecting", "status.waitHandshake": "Waiting for gateway handshake", "status.authenticating": "Authenticating", "status.reconnecting": "Reconnecting", "status.connectionError": "Connection error", "status.connectionFailed": "Connection failed", "status.streamConnected": "Stream connected", "status.stopped": "Stopped", "status.longConnection": "Long connection established", "status.polling": "Polling", "status.notLoggedIn": "Not signed in", "status.waitQr": "Waiting for scan", "status.loggedIn": "Signed in", "status.loggedInRecovered": "Signed in (restored)", "status.loggingIn": "Signing in",
|
|
456
458
|
},
|
|
457
459
|
};
|
|
@@ -545,7 +547,7 @@ window.__ModuleLoader__.load({
|
|
|
545
547
|
.ima-account-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:8px;background:color-mix(in srgb,var(--ima-text) 7%,transparent);color:inherit;text-align:left}
|
|
546
548
|
.ima-account-row:hover{background:var(--ima-card-hover)}
|
|
547
549
|
.ima-platform-head:focus-visible,.ima-account-row:focus-visible{outline:2px solid var(--ima-accent);outline-offset:2px}
|
|
548
|
-
.ima-account-copy{min-width:0}.ima-account-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.ima-account-id{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ima-muted);font-size:11px}.ima-account-row .ant-tag{margin-inline-end:0}
|
|
550
|
+
.ima-account-copy{min-width:0}.ima-account-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.ima-account-rename-button{width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:text}.ima-account-rename-button:hover,.ima-account-rename-button:focus-visible{color:var(--ima-accent)}.ima-account-rename,.ima-account-remark-input{box-sizing:border-box;width:100%;height:32px;padding:4px 8px;border:1px solid var(--ima-line);border-radius:6px;background:transparent;color:inherit;font:inherit}.ima-account-id{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ima-muted);font-size:11px}.ima-account-row .ant-tag{margin-inline-end:0}
|
|
549
551
|
.ima-account-receive{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;font-size:12px;color:var(--ima-muted)}
|
|
550
552
|
.ima-inspector{padding:22px 24px 26px;min-width:0}.ima-inspector-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--ima-line)}.ima-inspector-head-copy{min-width:0;flex:1}.ima-inspector-title{margin:1px 0 3px;font-size:17px;line-height:24px}.ima-inspector-title-row{display:flex;align-items:center;gap:12px;min-width:0}.ima-inspector-title-row .ima-inspector-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.ima-inspector-title-row .ima-inspector-status{flex:none;white-space:nowrap;font-size:11px}.ima-inspector-head-copy>.ima-account-id{margin-top:5px}
|
|
551
553
|
.ima-inspector-status{flex:none}
|
|
@@ -771,6 +773,7 @@ window.__ModuleLoader__.load({
|
|
|
771
773
|
const SERVER_TEXT_KEYS = new Map([
|
|
772
774
|
["未知渠道", "server.unknownChannel"], ["渠道未配置", "server.channelUnconfigured"], ["会话不存在", "server.sessionMissing"],
|
|
773
775
|
["账号不存在", "server.accountMissing"], ["账号连接失败,请查看本机日志", "server.accountConnectFailed"], ["重新连接失败,请查看本机日志", "server.accountReconnectFailed"],
|
|
776
|
+
["账号备注不能超过 40 个字符", "server.remarkTooLong"], ["账号备注不能包含换行或控制字符", "server.remarkControl"],
|
|
774
777
|
["请选择提供商、模型、工作区或权限", "server.selectAccountSettings"], ["请选择提供商和模型", "server.selectModel"], ["请选择工作区", "server.selectWorkspace"], ["请选择权限", "server.selectPermission"], ["凭据不足,无法启动渠道", "server.missingCredentials"],
|
|
775
778
|
["该渠道不支持扫码绑定", "server.qrUnsupported"], ["二维码已过期", "server.qrExpired"], ["扫码未完成", "server.qrIncomplete"],
|
|
776
779
|
["未授权:请管理员在设置 → IM助理 中批准你的访问。", "server.accessDenied"],
|
|
@@ -1578,6 +1581,11 @@ window.__ModuleLoader__.load({
|
|
|
1578
1581
|
),
|
|
1579
1582
|
),
|
|
1580
1583
|
h("div", { className: "ima-form" },
|
|
1584
|
+
h("div", { className: "ima-picker-field" },
|
|
1585
|
+
h("span", { className: "ima-picker-label" }, t("account.remark")),
|
|
1586
|
+
h(AccountRemarkEditor, { account, t, always: true, disabled: Boolean(busy), onSave: (name) => save({ name }) }),
|
|
1587
|
+
h("div", { className: "ima-picker-note" }, t("account.remarkNote")),
|
|
1588
|
+
),
|
|
1581
1589
|
h(AccountSettingsPicker, {
|
|
1582
1590
|
value: draft,
|
|
1583
1591
|
onChange: applySettings,
|
|
@@ -1615,6 +1623,70 @@ window.__ModuleLoader__.load({
|
|
|
1615
1623
|
);
|
|
1616
1624
|
}
|
|
1617
1625
|
|
|
1626
|
+
function AccountRemarkEditor(props) {
|
|
1627
|
+
const account = props.account;
|
|
1628
|
+
const t = props.t;
|
|
1629
|
+
const display = accountLabel(account, t);
|
|
1630
|
+
const stored = account.autoName ? "" : (account.name || "");
|
|
1631
|
+
const [draft, setDraft] = useState(stored);
|
|
1632
|
+
const [editing, setEditing] = useState(Boolean(props.always));
|
|
1633
|
+
const skipCommit = useRef(false);
|
|
1634
|
+
useEffect(() => {
|
|
1635
|
+
setDraft(account.autoName ? "" : (account.name || ""));
|
|
1636
|
+
if (!props.always) setEditing(false);
|
|
1637
|
+
}, [account.id, account.name, account.autoName, props.always]);
|
|
1638
|
+
const commit = () => {
|
|
1639
|
+
if (skipCommit.current) {
|
|
1640
|
+
skipCommit.current = false;
|
|
1641
|
+
return;
|
|
1642
|
+
}
|
|
1643
|
+
const next = draft.trim();
|
|
1644
|
+
const current = account.autoName ? "" : (account.name || "");
|
|
1645
|
+
if (next === current) {
|
|
1646
|
+
if (!props.always) setEditing(false);
|
|
1647
|
+
return;
|
|
1648
|
+
}
|
|
1649
|
+
Promise.resolve(props.onSave(next)).then((ok) => {
|
|
1650
|
+
if (!ok) setDraft(current);
|
|
1651
|
+
if (!props.always) setEditing(false);
|
|
1652
|
+
});
|
|
1653
|
+
};
|
|
1654
|
+
if (!props.always && !editing) {
|
|
1655
|
+
return h("button", {
|
|
1656
|
+
type: "button",
|
|
1657
|
+
className: "ima-account-name ima-account-rename-button",
|
|
1658
|
+
title: t("account.rename"),
|
|
1659
|
+
"aria-label": display + " · " + t("account.rename"),
|
|
1660
|
+
disabled: Boolean(props.disabled),
|
|
1661
|
+
onClick: (event) => { event.stopPropagation(); setEditing(true); },
|
|
1662
|
+
}, display);
|
|
1663
|
+
}
|
|
1664
|
+
return h("input", {
|
|
1665
|
+
type: "text",
|
|
1666
|
+
className: props.always ? "ima-account-remark-input" : "ima-account-rename",
|
|
1667
|
+
autoFocus: !props.always,
|
|
1668
|
+
maxLength: 40,
|
|
1669
|
+
value: draft,
|
|
1670
|
+
placeholder: display,
|
|
1671
|
+
"aria-label": t("account.remark"),
|
|
1672
|
+
disabled: Boolean(props.disabled),
|
|
1673
|
+
onClick: (event) => event.stopPropagation(),
|
|
1674
|
+
onMouseDown: (event) => event.stopPropagation(),
|
|
1675
|
+
onChange: (event) => setDraft(event.target.value),
|
|
1676
|
+
onBlur: commit,
|
|
1677
|
+
onKeyDown: (event) => {
|
|
1678
|
+
if (event.key === "Enter") { event.preventDefault(); event.currentTarget.blur(); }
|
|
1679
|
+
if (event.key === "Escape" && !props.always) {
|
|
1680
|
+
event.preventDefault();
|
|
1681
|
+
event.stopPropagation();
|
|
1682
|
+
skipCommit.current = true;
|
|
1683
|
+
setDraft(stored);
|
|
1684
|
+
setEditing(false);
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
});
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1618
1690
|
/** GitHub 品牌图标未由宿主图标库提供,内联后可保持主题适配。 */
|
|
1619
1691
|
function GithubMark16() {
|
|
1620
1692
|
return h("svg", { viewBox: "0 0 16 16", width: 16, height: 16, "aria-hidden": true, focusable: "false" },
|
|
@@ -1778,7 +1850,7 @@ window.__ModuleLoader__.load({
|
|
|
1778
1850
|
),
|
|
1779
1851
|
open && h("div", { className: "ima-account-list" },
|
|
1780
1852
|
...(ch.accounts || []).map((account) => h("div", { key: account.id, className: "ima-account-row" },
|
|
1781
|
-
h("span", { className: "ima-account-copy" }, h(
|
|
1853
|
+
h("span", { className: "ima-account-copy" }, h(AccountRemarkEditor, { account, t, disabled: Boolean(busy[account.id]), onSave: (name) => onAction(account.id, "settings", { name }) })),
|
|
1782
1854
|
h(Tag, {
|
|
1783
1855
|
color: busy[account.id] ? "default" : account.receiveConfigured === false ? "warning" : account.connectionState === "connected" ? "success" : "warning",
|
|
1784
1856
|
bordered: false,
|
package/lib/client.js
CHANGED
|
@@ -3,7 +3,7 @@ const UPDATE_HEADER = "x-michengai-plugin-update";
|
|
|
3
3
|
const STYLE_ID = "michengai-plugin-update-ui";
|
|
4
4
|
const PLUGIN_UPDATE_CSS = `
|
|
5
5
|
.mpi-version{margin-left:8px;color:var(--dsw-alias-label-tertiary,#a0a0a0);font-family:inherit;font-size:12px;font-weight:500;line-height:18px;letter-spacing:0;white-space:nowrap;vertical-align:baseline}.mpi-check-host{display:inline-flex;align-items:center}.mpi-icon{display:inline-flex;flex:0 0 auto;width:16px;height:16px;align-items:center;justify-content:center;pointer-events:none}.mpi-icon svg{display:block;width:16px;height:16px}
|
|
6
|
-
.mpi-intro{margin:0 0 16px;color:var(--dsw-alias-label-secondary,#b9b9b9);font-size:13px;line-height:20px}.mpi-meta{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;margin:0 0 16px;font-size:12px;line-height:18px}.mpi-meta dt{color:var(--dsw-alias-label-secondary,#b9b9b9)}.mpi-meta dd{margin:0}.mpi-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.mpi-latest{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}.mpi-status{font-size:13px;font-weight:600;line-height:18px}.mpi-status[data-kind=error]{color:var(--dsw-alias-state-error-primary,#ef7272)}.mpi-status[data-kind=success]{color:var(--dsw-alias-state-success-primary,#51b976)}.mpi-manual{border-top:1px solid var(--dsw-alias-border-l2,#494949);padding-top:16px}.mpi-manual h3{margin:0 0 6px;font-size:14px;line-height:20px}.mpi-manual p{margin:0 0 10px;color:var(--dsw-alias-label-secondary,#b9b9b9);font-size:12px;line-height:18px}.mpi-command{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--dsw-alias-border-l2,#494949);border-radius:7px;padding:10px;background:var(--dsw-alias-bg-layer-3,var(--dsw-specific-menu-item-hover,#353638))}.mpi-command code{min-width:0;flex:1;overflow:visible;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:18px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:560px){.mpi-meta{grid-template-columns:1fr;gap:2px}.mpi-meta dd{margin-bottom:6px}}
|
|
6
|
+
.mpi-intro{margin:0 0 16px;color:var(--dsw-alias-label-secondary,#b9b9b9);font-size:13px;line-height:20px}.mpi-meta{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;margin:0 0 16px;font-size:12px;line-height:18px}.mpi-meta dt{color:var(--dsw-alias-label-secondary,#b9b9b9)}.mpi-meta dd{margin:0}.mpi-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.mpi-latest{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}.mpi-status{font-size:13px;font-weight:600;line-height:18px}.mpi-status[data-kind=error]{color:var(--dsw-alias-state-error-primary,#ef7272)}.mpi-status[data-kind=success]{color:var(--dsw-alias-state-success-primary,#51b976)}.mpi-status[data-kind=update]{color:#e8b15a !important}.mpi-manual{border-top:1px solid var(--dsw-alias-border-l2,#494949);padding-top:16px}.mpi-manual h3{margin:0 0 6px;font-size:14px;line-height:20px}.mpi-manual p{margin:0 0 10px;color:var(--dsw-alias-label-secondary,#b9b9b9);font-size:12px;line-height:18px}.mpi-command{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--dsw-alias-border-l2,#494949);border-radius:7px;padding:10px;background:var(--dsw-alias-bg-layer-3,var(--dsw-specific-menu-item-hover,#353638))}.mpi-command code{min-width:0;flex:1;overflow:visible;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:18px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:560px){.mpi-meta{grid-template-columns:1fr;gap:2px}.mpi-meta dd{margin-bottom:6px}}
|
|
7
7
|
`;
|
|
8
8
|
const ZH = {
|
|
9
9
|
check: "检查更新",
|
|
@@ -25,8 +25,10 @@ const ZH = {
|
|
|
25
25
|
unknown: "未知",
|
|
26
26
|
manual: "手工更新",
|
|
27
27
|
manualHint: "自动更新失败时,可在当前 DSH 终端执行以下命令,完成后重启 DSH Web。",
|
|
28
|
+
manualHintDesktop: "自动更新失败时,请先完全退出 DSH Desktop,再用 Desktop 自带的 dsh 执行以下命令。普通 dsh 会拒绝 desktop profile。",
|
|
28
29
|
intro: "仅检查并更新当前插件,不会联动安装其他插件。",
|
|
29
30
|
restart: "更新完成,请重启 DSH Web。",
|
|
31
|
+
restartDesktop: "更新完成,请完全退出并重新打开 DSH Desktop。",
|
|
30
32
|
restarting: "更新完成,正在重启 DSH Desktop…",
|
|
31
33
|
unavailable: "当前环境不支持自动更新,请使用手工更新命令。",
|
|
32
34
|
};
|
|
@@ -50,8 +52,10 @@ const EN = {
|
|
|
50
52
|
unknown: "Unknown",
|
|
51
53
|
manual: "Manual update",
|
|
52
54
|
manualHint: "If automatic update fails, run this command in the current DSH terminal, then restart DSH Web.",
|
|
55
|
+
manualHintDesktop: "If automatic update fails, fully quit DSH Desktop, then run this command with Desktop's own dsh. A regular dsh rejects the desktop profile.",
|
|
53
56
|
intro: "Only this plugin is checked and updated. Other plugins are not changed.",
|
|
54
57
|
restart: "Update complete. Restart DSH Web.",
|
|
58
|
+
restartDesktop: "Update complete. Fully quit and reopen DSH Desktop.",
|
|
55
59
|
restarting: "Update complete. Restarting DSH Desktop…",
|
|
56
60
|
unavailable: "Automatic update is unavailable. Use the manual command.",
|
|
57
61
|
};
|
|
@@ -59,19 +63,21 @@ function pluginUpdateCopy(lang) {
|
|
|
59
63
|
return String(lang || "").toLowerCase().startsWith("en") ? EN : ZH;
|
|
60
64
|
}
|
|
61
65
|
function describePluginUpdate(lang, payload, phase, notice) {
|
|
62
|
-
const
|
|
66
|
+
const base = pluginUpdateCopy(lang);
|
|
67
|
+
const desktop = payload?.profileName === "desktop" || payload?.restartDesktop === true;
|
|
68
|
+
const copy = desktop ? { ...base, manualHint: base.manualHintDesktop } : base;
|
|
63
69
|
const busy = phase !== "idle";
|
|
64
70
|
let message = copy.checking;
|
|
65
71
|
let kind = "";
|
|
66
72
|
if (phase === "checking") message = copy.checking;
|
|
67
73
|
else if (phase === "updating") message = copy.updating;
|
|
68
74
|
else if (notice.type === "error") { message = notice.message || copy.failed; kind = "error"; }
|
|
69
|
-
else if (notice.type === "restart") { message = copy.restart; kind = "success"; }
|
|
75
|
+
else if (notice.type === "restart") { message = desktop ? copy.restartDesktop : copy.restart; kind = "success"; }
|
|
70
76
|
else if (notice.type === "restarting") { message = copy.restarting; kind = "success"; }
|
|
71
77
|
else if (payload === undefined) message = copy.checking;
|
|
72
78
|
else if (payload.latestCheckFailed) { message = copy.failed; kind = "error"; }
|
|
73
|
-
else if (!payload.canAutoUpdate && payload.updateAvailable) message = copy.unavailable;
|
|
74
|
-
else if (payload.updateAvailable) message = `${copy.found}: v${payload.latestVersion ?? copy.unknown}`;
|
|
79
|
+
else if (!payload.canAutoUpdate && payload.updateAvailable) { message = copy.unavailable; kind = "update"; }
|
|
80
|
+
else if (payload.updateAvailable) { message = `${copy.found}: v${payload.latestVersion ?? copy.unknown}`; kind = "update"; }
|
|
75
81
|
else { message = copy.latest; kind = "success"; }
|
|
76
82
|
return {
|
|
77
83
|
copy, busy, message, kind, loading: phase === "updating",
|
|
@@ -187,7 +193,7 @@ function UpdateDialog(props) {
|
|
|
187
193
|
React.createElement("p", { className: "mpi-intro" }, view.copy.intro),
|
|
188
194
|
React.createElement("dl", { className: "mpi-meta" },
|
|
189
195
|
React.createElement("dt", null, view.copy.current), React.createElement("dd", null, React.createElement("span", { className: "mpi-mono" }, view.currentVersion)),
|
|
190
|
-
React.createElement("dt", null, view.copy.latestLabel), React.createElement("dd", { className: "mpi-latest" }, React.createElement("span", { className: "mpi-mono" }, view.latestVersion), React.createElement("span", { className: "mpi-status", role: "status", "data-kind": view.kind }, view.message)),
|
|
196
|
+
React.createElement("dt", null, view.copy.latestLabel), React.createElement("dd", { className: "mpi-latest" }, React.createElement("span", { className: "mpi-mono" }, view.latestVersion), React.createElement("span", { className: "mpi-status", role: "status", "data-kind": view.kind, ...(view.kind === "update" ? { style: { color: "#e8b15a" } } : {}) }, view.message)),
|
|
191
197
|
React.createElement("dt", null, view.copy.profile), React.createElement("dd", null, React.createElement("span", { className: "mpi-mono" }, view.profileName))),
|
|
192
198
|
view.busy ? React.createElement(Progress, { percent: 100, showInfo: false, status: "active" }) : null,
|
|
193
199
|
React.createElement("section", { className: "mpi-manual" },
|
|
@@ -918,7 +924,8 @@ react-is/cjs/react-is.production.js:
|
|
|
918
924
|
"settings.label": "IM助理", "settings.title": "IM助理", "settings.description": "管理各渠道账号。每个账号独立选择工作区、模型和权限,配置仅保存在本机。", "settings.viewProject": "GitHub", "settings.feedback": "问题反馈",
|
|
919
925
|
"settings.aria": "IM助理", "settings.publicChatNotice": "未批准用户可以发起聊天,但不能批准工具调用。", "pending.notice": "有访问请求。批准后该用户才能驱动本机助手。", "action.approve": "批准", "action.deny": "拒绝", "loading": "加载中…",
|
|
920
926
|
"account.presetUnavailable": "预设不可用", "account.presetNote": "更改后使用新会话,旧会话保留。", "action.settings": "设置", "command.dm": "私聊命令", "command.group": "群聊命令", "command.enabled": "可以执行命令", "command.disabled": "仅正常对话",
|
|
921
|
-
"account.workspace": "工作区", "account.currentWorkspace": "当前工作区", "account.selectWorkspace": "请选择工作区", "account.selectModel": "请选择模型", "account.selectPermission": "请选择权限", "account.privateAccess": "私聊准入", "account.privateApproved": "仅已批准用户", "account.privateAll": "允许所有私聊用户", "account.autoNameNote": "
|
|
927
|
+
"account.workspace": "工作区", "account.currentWorkspace": "当前工作区", "account.selectWorkspace": "请选择工作区", "account.selectModel": "请选择模型", "account.selectPermission": "请选择权限", "account.privateAccess": "私聊准入", "account.privateApproved": "仅已批准用户", "account.privateAll": "允许所有私聊用户", "account.autoNameNote": "绑定成功后会自动生成账号名,无需手动填写。需要区分使用者时,可在账号行填写备注。", "account.defaultName": "{channel}账号 {count}",
|
|
928
|
+
"account.remark": "名称备注", "account.remarkNote": "只在本机设置页区分账号,留空恢复自动名称。", "account.rename": "修改名称备注",
|
|
922
929
|
"account.count": "{count} 个账号", "account.statusProcessing": "处理中…", "account.statusNotConnected": "未连接", "account.receive": "接收消息", "account.receiveDescription": "关闭后保留账号配置,但不接收新消息", "account.removeConfirm": "确定移除这个账号?本机保存的配置和凭据将一并删除。",
|
|
923
930
|
"action.addAccount": "添加账号", "action.generateQr": "生成二维码", "action.checkConnection": "诊断连接", "action.reconnectAccount": "重新连接", "action.removeAccount": "移除接入", "status.saving": "保存中…", "status.saved": "已保存",
|
|
924
931
|
"channel.dingtalk": "钉钉", "channel.feishu": "飞书", "channel.lark": "Lark", "channel.weixin": "微信", "channel.wecom": "企业微信", "channel.qq": "QQ", "channel.telegram": "Telegram", "channel.discord": "Discord",
|
|
@@ -933,7 +940,7 @@ react-is/cjs/react-is.production.js:
|
|
|
933
940
|
"rail.workspace": "工作区", "rail.sessions": "会话", "rail.search": "搜索", "rail.searchPlaceholder": "搜索会话...", "rail.clearSearch": "清除搜索", "rail.filter": "筛选", "rail.group": "分组方式", "rail.byWorkspace": "按工作区", "rail.list": "单列表", "rail.byWorkspaceTree": "按工作区树", "rail.sort": "排序方式", "rail.recent": "最近更新", "rail.showArchived": "显示已归档", "rail.onlyArchived": "仅显示已归档", "rail.running": "运行中", "rail.idle": "空闲", "rail.waitingApproval": "等待审批", "rail.planReview": "计划待审", "rail.waitingAnswer": "等待回答", "rail.subagents": "{n} 个子代理运行中", "rail.completed": "已完成", "rail.archived": "已归档", "rail.compactApproval": "待审批", "rail.compactPlan": "计划待审", "rail.compactAnswer": "待回答", "rail.renameAria": "重命名会话", "rail.rename": "重命名", "rail.fork": "分叉会话", "rail.archive": "归档会话", "rail.unarchive": "恢复会话", "rail.stopArchive": "停止并归档", "rail.stopArchiveDescription": "会话“{name}”仍在运行。停止后才能归档。", "rail.stopArchiveConfirm": "停止并归档", "rail.stopArchivePending": "正在停止并归档…", "rail.stopArchiveGroupDescription": "“{name}”下仍有运行中的会话。停止这些会话后才能归档整组。", "rail.archiveFailed": "归档失败,未移除会话。请稍后重试或检查宿主日志。", "rail.deleteSession": "删除会话", "rail.deleteSessionConfirm": "删除会话", "rail.deleteSessionDescription": "将永久删除会话“{name}”及其子代理(含正在运行的)和全部记录(对话内容、统计、缓存),此操作不可恢复。", "rail.deleteSessionPending": "正在删除会话…", "rail.deleteSessionFailed": "删除会话失败:{message}", "rail.deleteSessionClose": "关闭", "rail.deleteSessionCancel": "取消", "rail.groupActions": "“{name}”的频道操作", "rail.channelSettings": "渠道设置", "rail.archiveGroup": "归档整组会话", "rail.archiveGroupConfirm": "确认归档", "rail.archiveGroupDescription": "将归档“{name}”下的 {count} 个会话。归档后可以在“设置 → 已归档”中恢复。", "rail.archiveGroupPending": "正在归档整组会话…", "rail.archiveGroupFailed": "部分会话归档失败:{message}", "rail.archiveGroupClose": "关闭", "rail.archiveGroupCancel": "取消", "rail.empty": "还没有频道会话。先在设置 → IM助理 里连接渠道,并给机器人发一条消息。", "rail.noTasks": "暂无网页任务", "rail.ungrouped": "未分组", "rail.tabsAria": "工作区分类", "rail.tasks": "任务", "rail.channels": "频道",
|
|
934
941
|
"time.now": "刚刚", "time.minutes": "{n}分钟", "time.hours": "{n}小时", "time.days": "{n}天", "time.months": "{n}个月", "time.years": "{n}年", "time.ago": "{t}前",
|
|
935
942
|
"copy": "复制", "hover.copied": "已复制",
|
|
936
|
-
"server.unknownChannel": "未知渠道", "server.channelUnconfigured": "渠道未配置", "server.sessionMissing": "会话不存在", "server.accountMissing": "账号不存在", "server.accountConnectFailed": "账号连接失败,请查看本机日志", "server.accountReconnectFailed": "重新连接失败,请查看本机日志", "server.selectAccountSettings": "请选择提供商、模型、工作区或权限", "server.selectModel": "请选择提供商和模型", "server.selectWorkspace": "请选择工作区", "server.selectPermission": "请选择权限", "server.missingCredentials": "凭据不足,无法启动渠道", "server.qrUnsupported": "该渠道不支持扫码绑定", "server.qrExpired": "二维码已过期", "server.qrIncomplete": "扫码未完成", "server.accessDenied": "未授权:请管理员在设置 → IM助理 中批准你的访问。",
|
|
943
|
+
"server.unknownChannel": "未知渠道", "server.channelUnconfigured": "渠道未配置", "server.sessionMissing": "会话不存在", "server.accountMissing": "账号不存在", "server.accountConnectFailed": "账号连接失败,请查看本机日志", "server.accountReconnectFailed": "重新连接失败,请查看本机日志", "server.selectAccountSettings": "请选择提供商、模型、工作区或权限", "server.selectModel": "请选择提供商和模型", "server.selectWorkspace": "请选择工作区", "server.selectPermission": "请选择权限", "server.missingCredentials": "凭据不足,无法启动渠道", "server.qrUnsupported": "该渠道不支持扫码绑定", "server.qrExpired": "二维码已过期", "server.qrIncomplete": "扫码未完成", "server.accessDenied": "未授权:请管理员在设置 → IM助理 中批准你的访问。", "server.remarkTooLong": "账号备注不能超过 40 个字符", "server.remarkControl": "账号备注不能包含换行或控制字符",
|
|
937
944
|
"status.disconnected": "已断开", "status.reconnectFailed": "重连失败", "status.connectingSocket": "连接中", "status.waitHandshake": "等待网关握手", "status.authenticating": "鉴权中", "status.reconnecting": "重连中", "status.connectionError": "连接错误", "status.connectionFailed": "连接失败", "status.streamConnected": "Stream 已连接", "status.stopped": "已停止", "status.longConnection": "长连接已建立", "status.polling": "轮询中", "status.notLoggedIn": "未登录", "status.waitQr": "等待扫码", "status.loggedIn": "已登录", "status.loggedInRecovered": "已登录(自动恢复)", "status.loggingIn": "登录中",
|
|
938
945
|
},
|
|
939
946
|
en: {
|
|
@@ -946,7 +953,8 @@ react-is/cjs/react-is.production.js:
|
|
|
946
953
|
"settings.label": "IM Assistant", "settings.title": "IM Assistant", "settings.description": "Manage accounts across channels. Each account has its own workspace, model, and permission settings, stored only on this machine.", "settings.viewProject": "GitHub", "settings.feedback": "Issues",
|
|
947
954
|
"settings.aria": "IM Assistant", "settings.publicChatNotice": "Unapproved users can start chats, but they cannot approve tool calls.", "pending.notice": "There are access requests. Approve a user before they can control the local assistant.", "action.approve": "Approve", "action.deny": "Deny", "loading": "Loading…",
|
|
948
955
|
"account.presetUnavailable": "Preset unavailable", "account.presetNote": "Changes start a new session; previous sessions are kept.", "action.settings": "Settings", "command.dm": "DM commands", "command.group": "Group commands", "command.enabled": "Commands enabled", "command.disabled": "Conversation only",
|
|
949
|
-
"account.workspace": "Workspace", "account.currentWorkspace": "Current workspace", "account.selectWorkspace": "Select a workspace", "account.selectModel": "Select a model", "account.selectPermission": "Select a permission", "account.privateAccess": "Private chat access", "account.privateApproved": "Approved users only", "account.privateAll": "Allow all DM users", "account.autoNameNote": "The account name is generated automatically after setup.", "account.defaultName": "{channel} account {count}",
|
|
956
|
+
"account.workspace": "Workspace", "account.currentWorkspace": "Current workspace", "account.selectWorkspace": "Select a workspace", "account.selectModel": "Select a model", "account.selectPermission": "Select a permission", "account.privateAccess": "Private chat access", "account.privateApproved": "Approved users only", "account.privateAll": "Allow all DM users", "account.autoNameNote": "The account name is generated automatically after setup. Add a remark on the account row if you need to tell users apart.", "account.defaultName": "{channel} account {count}",
|
|
957
|
+
"account.remark": "Name remark", "account.remarkNote": "Shown only in settings to tell accounts apart. Leave blank to restore the automatic name.", "account.rename": "Edit name remark",
|
|
950
958
|
"account.count": "{count} accounts", "account.statusProcessing": "Processing…", "account.statusNotConnected": "Not connected", "account.receive": "Receive messages", "account.receiveDescription": "Turn this off to keep the account settings without receiving new messages", "account.removeConfirm": "Remove this account? Its saved settings and credentials will also be deleted.",
|
|
951
959
|
"action.addAccount": "Add account", "action.generateQr": "Generate QR code", "action.checkConnection": "Diagnose connection", "action.reconnectAccount": "Reconnect", "action.removeAccount": "Remove", "status.saving": "Saving…", "status.saved": "Saved",
|
|
952
960
|
"channel.dingtalk": "DingTalk", "channel.feishu": "Feishu", "channel.lark": "Lark", "channel.weixin": "WeChat", "channel.wecom": "WeCom", "channel.qq": "QQ", "channel.telegram": "Telegram", "channel.discord": "Discord",
|
|
@@ -961,7 +969,7 @@ react-is/cjs/react-is.production.js:
|
|
|
961
969
|
"rail.workspace": "Workspaces", "rail.sessions": "Sessions", "rail.search": "Search", "rail.searchPlaceholder": "Search sessions...", "rail.clearSearch": "Clear search", "rail.filter": "Filter", "rail.group": "Group by", "rail.byWorkspace": "By workspace", "rail.list": "Single list", "rail.byWorkspaceTree": "Workspace Tree", "rail.sort": "Sort by", "rail.recent": "Recently updated", "rail.showArchived": "Show archived", "rail.onlyArchived": "Archived only", "rail.running": "Running", "rail.idle": "Idle", "rail.waitingApproval": "Waiting for approval", "rail.planReview": "Plan to review", "rail.waitingAnswer": "Waiting for an answer", "rail.subagents": "{n} subagents running", "rail.completed": "Completed", "rail.archived": "Archived", "rail.compactApproval": "Approval", "rail.compactPlan": "Plan review", "rail.compactAnswer": "Answer", "rail.renameAria": "Rename session", "rail.rename": "Rename", "rail.fork": "Fork session", "rail.archive": "Archive session", "rail.unarchive": "Restore session", "rail.stopArchive": "Stop and archive", "rail.stopArchiveDescription": "Session “{name}” is still running. Stop it before archiving.", "rail.stopArchiveConfirm": "Stop and archive", "rail.stopArchivePending": "Stopping and archiving…", "rail.stopArchiveGroupDescription": "Some conversations in “{name}” are still running. Stop them before archiving the group.", "rail.archiveFailed": "Archive failed. The session was kept. Retry or check the Host logs.", "rail.deleteSession": "Delete session", "rail.deleteSessionConfirm": "Delete session", "rail.deleteSessionDescription": "This permanently deletes session “{name}”, its child agents (including any that are still running), and all of its records (conversation, stats, cache). This cannot be undone.", "rail.deleteSessionPending": "Deleting session…", "rail.deleteSessionFailed": "Could not delete the session: {message}", "rail.deleteSessionClose": "Close", "rail.deleteSessionCancel": "Cancel", "rail.groupActions": "Actions for {name}", "rail.channelSettings": "Channel settings", "rail.archiveGroup": "Archive all conversations", "rail.archiveGroupConfirm": "Archive all", "rail.archiveGroupDescription": "Archive all {count} conversations for “{name}”. You can restore them later in Settings → Archived.", "rail.archiveGroupPending": "Archiving conversations…", "rail.archiveGroupFailed": "Some conversations could not be archived: {message}", "rail.archiveGroupClose": "Close", "rail.archiveGroupCancel": "Cancel", "rail.empty": "No channel sessions yet. Connect a channel in Settings → IM Assistant, then send the bot a message.", "rail.noTasks": "No web tasks", "rail.ungrouped": "Ungrouped", "rail.tabsAria": "Workspace categories", "rail.tasks": "Tasks", "rail.channels": "Channels",
|
|
962
970
|
"time.now": "now", "time.minutes": "{n}min", "time.hours": "{n}h", "time.days": "{n}d", "time.months": "{n}mo", "time.years": "{n}y", "time.ago": "{t} ago",
|
|
963
971
|
"copy": "Copy", "hover.copied": "Copied",
|
|
964
|
-
"server.unknownChannel": "Unknown channel", "server.channelUnconfigured": "Channel is not configured", "server.sessionMissing": "Session does not exist", "server.accountMissing": "Account does not exist", "server.accountConnectFailed": "Could not connect the account. Check the local logs.", "server.accountReconnectFailed": "Could not reconnect the account. Check the local logs.", "server.selectAccountSettings": "Select a provider, model, workspace, or permission setting", "server.selectModel": "Select a provider and model", "server.selectWorkspace": "Select a workspace", "server.selectPermission": "Select a permission", "server.missingCredentials": "The channel cannot start because credentials are missing", "server.qrUnsupported": "This channel does not support QR setup", "server.qrExpired": "QR code has expired", "server.qrIncomplete": "QR setup was not completed", "server.accessDenied": "Access denied: ask an administrator to approve you in Settings → IM Assistant.",
|
|
972
|
+
"server.unknownChannel": "Unknown channel", "server.channelUnconfigured": "Channel is not configured", "server.sessionMissing": "Session does not exist", "server.accountMissing": "Account does not exist", "server.accountConnectFailed": "Could not connect the account. Check the local logs.", "server.accountReconnectFailed": "Could not reconnect the account. Check the local logs.", "server.selectAccountSettings": "Select a provider, model, workspace, or permission setting", "server.selectModel": "Select a provider and model", "server.selectWorkspace": "Select a workspace", "server.selectPermission": "Select a permission", "server.missingCredentials": "The channel cannot start because credentials are missing", "server.qrUnsupported": "This channel does not support QR setup", "server.qrExpired": "QR code has expired", "server.qrIncomplete": "QR setup was not completed", "server.accessDenied": "Access denied: ask an administrator to approve you in Settings → IM Assistant.", "server.remarkTooLong": "Account remark cannot exceed 40 characters", "server.remarkControl": "Account remark cannot contain line breaks or control characters",
|
|
965
973
|
"status.disconnected": "Disconnected", "status.reconnectFailed": "Reconnect failed", "status.connectingSocket": "Connecting", "status.waitHandshake": "Waiting for gateway handshake", "status.authenticating": "Authenticating", "status.reconnecting": "Reconnecting", "status.connectionError": "Connection error", "status.connectionFailed": "Connection failed", "status.streamConnected": "Stream connected", "status.stopped": "Stopped", "status.longConnection": "Long connection established", "status.polling": "Polling", "status.notLoggedIn": "Not signed in", "status.waitQr": "Waiting for scan", "status.loggedIn": "Signed in", "status.loggedInRecovered": "Signed in (restored)", "status.loggingIn": "Signing in",
|
|
966
974
|
},
|
|
967
975
|
};
|
|
@@ -1055,7 +1063,7 @@ react-is/cjs/react-is.production.js:
|
|
|
1055
1063
|
.ima-account-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:8px;background:color-mix(in srgb,var(--ima-text) 7%,transparent);color:inherit;text-align:left}
|
|
1056
1064
|
.ima-account-row:hover{background:var(--ima-card-hover)}
|
|
1057
1065
|
.ima-platform-head:focus-visible,.ima-account-row:focus-visible{outline:2px solid var(--ima-accent);outline-offset:2px}
|
|
1058
|
-
.ima-account-copy{min-width:0}.ima-account-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.ima-account-id{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ima-muted);font-size:11px}.ima-account-row .ant-tag{margin-inline-end:0}
|
|
1066
|
+
.ima-account-copy{min-width:0}.ima-account-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.ima-account-rename-button{width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:text}.ima-account-rename-button:hover,.ima-account-rename-button:focus-visible{color:var(--ima-accent)}.ima-account-rename,.ima-account-remark-input{box-sizing:border-box;width:100%;height:32px;padding:4px 8px;border:1px solid var(--ima-line);border-radius:6px;background:transparent;color:inherit;font:inherit}.ima-account-id{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ima-muted);font-size:11px}.ima-account-row .ant-tag{margin-inline-end:0}
|
|
1059
1067
|
.ima-account-receive{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;font-size:12px;color:var(--ima-muted)}
|
|
1060
1068
|
.ima-inspector{padding:22px 24px 26px;min-width:0}.ima-inspector-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--ima-line)}.ima-inspector-head-copy{min-width:0;flex:1}.ima-inspector-title{margin:1px 0 3px;font-size:17px;line-height:24px}.ima-inspector-title-row{display:flex;align-items:center;gap:12px;min-width:0}.ima-inspector-title-row .ima-inspector-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.ima-inspector-title-row .ima-inspector-status{flex:none;white-space:nowrap;font-size:11px}.ima-inspector-head-copy>.ima-account-id{margin-top:5px}
|
|
1061
1069
|
.ima-inspector-status{flex:none}
|
|
@@ -1281,6 +1289,7 @@ react-is/cjs/react-is.production.js:
|
|
|
1281
1289
|
const SERVER_TEXT_KEYS = new Map([
|
|
1282
1290
|
["未知渠道", "server.unknownChannel"], ["渠道未配置", "server.channelUnconfigured"], ["会话不存在", "server.sessionMissing"],
|
|
1283
1291
|
["账号不存在", "server.accountMissing"], ["账号连接失败,请查看本机日志", "server.accountConnectFailed"], ["重新连接失败,请查看本机日志", "server.accountReconnectFailed"],
|
|
1292
|
+
["账号备注不能超过 40 个字符", "server.remarkTooLong"], ["账号备注不能包含换行或控制字符", "server.remarkControl"],
|
|
1284
1293
|
["请选择提供商、模型、工作区或权限", "server.selectAccountSettings"], ["请选择提供商和模型", "server.selectModel"], ["请选择工作区", "server.selectWorkspace"], ["请选择权限", "server.selectPermission"], ["凭据不足,无法启动渠道", "server.missingCredentials"],
|
|
1285
1294
|
["该渠道不支持扫码绑定", "server.qrUnsupported"], ["二维码已过期", "server.qrExpired"], ["扫码未完成", "server.qrIncomplete"],
|
|
1286
1295
|
["未授权:请管理员在设置 → IM助理 中批准你的访问。", "server.accessDenied"],
|
|
@@ -2088,6 +2097,11 @@ react-is/cjs/react-is.production.js:
|
|
|
2088
2097
|
),
|
|
2089
2098
|
),
|
|
2090
2099
|
h("div", { className: "ima-form" },
|
|
2100
|
+
h("div", { className: "ima-picker-field" },
|
|
2101
|
+
h("span", { className: "ima-picker-label" }, t("account.remark")),
|
|
2102
|
+
h(AccountRemarkEditor, { account, t, always: true, disabled: Boolean(busy), onSave: (name) => save({ name }) }),
|
|
2103
|
+
h("div", { className: "ima-picker-note" }, t("account.remarkNote")),
|
|
2104
|
+
),
|
|
2091
2105
|
h(AccountSettingsPicker, {
|
|
2092
2106
|
value: draft,
|
|
2093
2107
|
onChange: applySettings,
|
|
@@ -2125,6 +2139,70 @@ react-is/cjs/react-is.production.js:
|
|
|
2125
2139
|
);
|
|
2126
2140
|
}
|
|
2127
2141
|
|
|
2142
|
+
function AccountRemarkEditor(props) {
|
|
2143
|
+
const account = props.account;
|
|
2144
|
+
const t = props.t;
|
|
2145
|
+
const display = accountLabel(account, t);
|
|
2146
|
+
const stored = account.autoName ? "" : (account.name || "");
|
|
2147
|
+
const [draft, setDraft] = useState(stored);
|
|
2148
|
+
const [editing, setEditing] = useState(Boolean(props.always));
|
|
2149
|
+
const skipCommit = useRef(false);
|
|
2150
|
+
useEffect(() => {
|
|
2151
|
+
setDraft(account.autoName ? "" : (account.name || ""));
|
|
2152
|
+
if (!props.always) setEditing(false);
|
|
2153
|
+
}, [account.id, account.name, account.autoName, props.always]);
|
|
2154
|
+
const commit = () => {
|
|
2155
|
+
if (skipCommit.current) {
|
|
2156
|
+
skipCommit.current = false;
|
|
2157
|
+
return;
|
|
2158
|
+
}
|
|
2159
|
+
const next = draft.trim();
|
|
2160
|
+
const current = account.autoName ? "" : (account.name || "");
|
|
2161
|
+
if (next === current) {
|
|
2162
|
+
if (!props.always) setEditing(false);
|
|
2163
|
+
return;
|
|
2164
|
+
}
|
|
2165
|
+
Promise.resolve(props.onSave(next)).then((ok) => {
|
|
2166
|
+
if (!ok) setDraft(current);
|
|
2167
|
+
if (!props.always) setEditing(false);
|
|
2168
|
+
});
|
|
2169
|
+
};
|
|
2170
|
+
if (!props.always && !editing) {
|
|
2171
|
+
return h("button", {
|
|
2172
|
+
type: "button",
|
|
2173
|
+
className: "ima-account-name ima-account-rename-button",
|
|
2174
|
+
title: t("account.rename"),
|
|
2175
|
+
"aria-label": display + " · " + t("account.rename"),
|
|
2176
|
+
disabled: Boolean(props.disabled),
|
|
2177
|
+
onClick: (event) => { event.stopPropagation(); setEditing(true); },
|
|
2178
|
+
}, display);
|
|
2179
|
+
}
|
|
2180
|
+
return h("input", {
|
|
2181
|
+
type: "text",
|
|
2182
|
+
className: props.always ? "ima-account-remark-input" : "ima-account-rename",
|
|
2183
|
+
autoFocus: !props.always,
|
|
2184
|
+
maxLength: 40,
|
|
2185
|
+
value: draft,
|
|
2186
|
+
placeholder: display,
|
|
2187
|
+
"aria-label": t("account.remark"),
|
|
2188
|
+
disabled: Boolean(props.disabled),
|
|
2189
|
+
onClick: (event) => event.stopPropagation(),
|
|
2190
|
+
onMouseDown: (event) => event.stopPropagation(),
|
|
2191
|
+
onChange: (event) => setDraft(event.target.value),
|
|
2192
|
+
onBlur: commit,
|
|
2193
|
+
onKeyDown: (event) => {
|
|
2194
|
+
if (event.key === "Enter") { event.preventDefault(); event.currentTarget.blur(); }
|
|
2195
|
+
if (event.key === "Escape" && !props.always) {
|
|
2196
|
+
event.preventDefault();
|
|
2197
|
+
event.stopPropagation();
|
|
2198
|
+
skipCommit.current = true;
|
|
2199
|
+
setDraft(stored);
|
|
2200
|
+
setEditing(false);
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2128
2206
|
/** GitHub 品牌图标未由宿主图标库提供,内联后可保持主题适配。 */
|
|
2129
2207
|
function GithubMark16() {
|
|
2130
2208
|
return h("svg", { viewBox: "0 0 16 16", width: 16, height: 16, "aria-hidden": true, focusable: "false" },
|
|
@@ -2288,7 +2366,7 @@ react-is/cjs/react-is.production.js:
|
|
|
2288
2366
|
),
|
|
2289
2367
|
open && h("div", { className: "ima-account-list" },
|
|
2290
2368
|
...(ch.accounts || []).map((account) => h("div", { key: account.id, className: "ima-account-row" },
|
|
2291
|
-
h("span", { className: "ima-account-copy" }, h(
|
|
2369
|
+
h("span", { className: "ima-account-copy" }, h(AccountRemarkEditor, { account, t, disabled: Boolean(busy[account.id]), onSave: (name) => onAction(account.id, "settings", { name }) })),
|
|
2292
2370
|
h(Tag, {
|
|
2293
2371
|
color: busy[account.id] ? "default" : account.receiveConfigured === false ? "warning" : account.connectionState === "connected" ? "success" : "warning",
|
|
2294
2372
|
bordered: false,
|
package/lib/manager.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface ChannelState {
|
|
|
19
19
|
id?: string;
|
|
20
20
|
platform?: ChannelId;
|
|
21
21
|
name?: string;
|
|
22
|
+
/** 创建时分配的自动序号。自定义备注清空后回到这个序号,不随账号总数重编。 */
|
|
23
|
+
nameOrdinal?: number;
|
|
22
24
|
enabled?: boolean;
|
|
23
25
|
receiveEnabled?: boolean;
|
|
24
26
|
lastError?: string;
|
|
@@ -182,6 +184,7 @@ export declare class ChannelManager {
|
|
|
182
184
|
private load;
|
|
183
185
|
private migrateAccountSettings;
|
|
184
186
|
private clearUnsupportedReasoningEfforts;
|
|
187
|
+
private stableNameOrdinal;
|
|
185
188
|
private normalizeAccountSettings;
|
|
186
189
|
private accountIdFor;
|
|
187
190
|
private resolveAccountId;
|
package/lib/manager.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../src/manager.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACtG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,2BAA2B,CAAA;AAKxF,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAMtE,OAAO,EAAwE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjK,OAAO,KAAK,EAAkB,YAAY,EAAa,MAAM,mBAAmB,CAAA;AAKhF,eAAO,MAAM,iBAAiB,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../src/manager.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACtG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,2BAA2B,CAAA;AAKxF,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAMtE,OAAO,EAAwE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjK,OAAO,KAAK,EAAkB,YAAY,EAAa,MAAM,mBAAmB,CAAA;AAKhF,eAAO,MAAM,iBAAiB,4BAA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