@michengai/dsh-im-connect 0.1.13 → 0.1.15
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/README.en.md +2 -1
- package/README.md +2 -1
- package/client.js +49 -49
- package/lib/client.js +49 -49
- package/lib/engine/assistant-settings.d.ts +2 -4
- package/lib/engine/assistant-settings.d.ts.map +1 -1
- package/lib/engine/assistant-settings.js +8 -8
- package/lib/engine/assistant-settings.js.map +1 -1
- package/lib/engine/gateway.d.ts +1 -1
- package/lib/engine/gateway.d.ts.map +1 -1
- package/lib/engine/gateway.js.map +1 -1
- package/lib/engine/router.d.ts +4 -0
- package/lib/engine/router.d.ts.map +1 -1
- package/lib/engine/router.js +4 -3
- package/lib/engine/router.js.map +1 -1
- package/lib/engine/types.d.ts +1 -1
- package/lib/engine/types.d.ts.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/manager.d.ts +7 -0
- package/lib/manager.d.ts.map +1 -1
- package/lib/manager.js +19 -4
- package/lib/manager.js.map +1 -1
- package/package.json +2 -1
- package/src/engine/assistant-settings.ts +7 -9
- package/src/engine/gateway.ts +1 -1
- package/src/engine/router.ts +8 -3
- package/src/engine/types.ts +1 -1
- package/src/index.ts +3 -3
- package/src/manager.ts +45 -16
- package/src/optional-modules.d.ts +0 -3
package/README.en.md
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
[](https://www.npmjs.com/package/@michengai/dsh-im-connect)
|
|
15
|
+
[](https://www.npmjs.com/package/@michengai/dsh-im-connect)
|
|
15
16
|
[](https://github.com/MichengAI/dsh-im-connect)
|
|
16
17
|
[](https://nodejs.org/)
|
|
17
18
|
[](#-supported-channels)
|
|
@@ -213,7 +214,7 @@ DingTalk replies prefer official AI Card streaming and fall back to plain text.
|
|
|
213
214
|
| WeChat protocol | Official iLink only; no reverse-engineered personal WeChat protocol |
|
|
214
215
|
| Tool approval | Only an allowlisted user in a DM can grant or deny; group chats cannot approve |
|
|
215
216
|
|
|
216
|
-
Do not expose DSH Web beyond this machine. Permission presets
|
|
217
|
+
Do not expose DSH Web beyond this machine. Permission presets use the same host sandbox-policy values as Chat; `danger-full-access` does not wrap a sandbox.
|
|
217
218
|
|
|
218
219
|
## Secondary development
|
|
219
220
|
|
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
[](https://www.npmjs.com/package/@michengai/dsh-im-connect)
|
|
15
|
+
[](https://www.npmjs.com/package/@michengai/dsh-im-connect)
|
|
15
16
|
[](https://github.com/MichengAI/dsh-im-connect)
|
|
16
17
|
[](https://nodejs.org/)
|
|
17
18
|
[](#-支持的渠道)
|
|
@@ -213,7 +214,7 @@ dsh --profile web --dump-config
|
|
|
213
214
|
| 微信协议 | 只走腾讯官方 iLink,不使用逆向个人微信协议 |
|
|
214
215
|
| 工具批准 | 仅私聊且发送者已在白名单时生效,不能跨会话、也不能在群里批准 |
|
|
215
216
|
|
|
216
|
-
不要把 DSH Web
|
|
217
|
+
不要把 DSH Web 暴露到非本机地址。权限预设与 Chat 使用相同的 Host sandbox-policy;`danger-full-access` 不套沙箱。
|
|
217
218
|
|
|
218
219
|
## 二次开发
|
|
219
220
|
|
package/client.js
CHANGED
|
@@ -9,8 +9,9 @@ window.__ModuleLoader__.load({
|
|
|
9
9
|
const React = require("react");
|
|
10
10
|
const { useState, useEffect, useLayoutEffect, useCallback, useRef, useSyncExternalStore } = React;
|
|
11
11
|
const ReactDOM = require("react-dom");
|
|
12
|
+
const { RiskConfirmation } = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
12
13
|
const EMPTY_EXTRA_TABS = [];
|
|
13
|
-
const inject = ["slots", "sessions", "workspaces"];
|
|
14
|
+
const inject = ["slots", "sessions", "workspaces", "locale"];
|
|
14
15
|
const API_BASE = "/dsh-im-connect/api";
|
|
15
16
|
const TAB_KEY = "dsh-im-connect.sidebar-tab";
|
|
16
17
|
const h = React.createElement;
|
|
@@ -129,7 +130,6 @@ window.__ModuleLoader__.load({
|
|
|
129
130
|
.ima-radio small{display:block;color:var(--ima-muted);margin-top:2px}
|
|
130
131
|
.ima-ok{color:var(--ima-ok);font-size:14px;text-align:center;padding:24px 0}
|
|
131
132
|
.ima-modal .ima-error{color:var(--ima-danger)}
|
|
132
|
-
.ima-risk-warning{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;color:var(--ima-muted);font-size:14px;line-height:1.6}.ima-risk-warning b{display:grid;place-items:center;width:18px;height:18px;flex:none;border:1.5px solid var(--ima-danger);border-radius:50%;color:var(--ima-danger);font-size:12px;line-height:1}.ima-risk-warning p{margin:0}.ima-risk-check{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}.ima-risk-check input{width:16px;height:16px;margin:0;accent-color:var(--ima-accent)}.ima-risk-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.ima-risk-actions .ima-btn{border-radius:999px}.ima-risk-actions .ima-btn.primary:disabled{opacity:.48;cursor:not-allowed}.ima-full-access-dialog{margin:auto}.ima-full-access-dialog::backdrop{background:var(--dsw-alias-bg-mask-1,rgba(0,0,0,.45));backdrop-filter:var(--dsw-mask-blur,blur(8px))}
|
|
133
133
|
@media (prefers-reduced-motion:reduce){.ima-switch i{transition:none}}
|
|
134
134
|
`;
|
|
135
135
|
|
|
@@ -455,12 +455,17 @@ window.__ModuleLoader__.load({
|
|
|
455
455
|
);
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
+
const BUILT_IN_PERMISSION_LABELS = new Map([
|
|
459
|
+
["read-only", ["preset.readOnly", "Read Only"]],
|
|
460
|
+
["workspace-write", ["preset.workspaceWrite", "Workspace Write"]],
|
|
461
|
+
["danger-full-access", ["preset.fullAccess", "Full access"]],
|
|
462
|
+
]);
|
|
458
463
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
+
function permissionLabel(option, t) {
|
|
465
|
+
const builtIn = BUILT_IN_PERMISSION_LABELS.get(option.value);
|
|
466
|
+
if (builtIn && (option.name === option.value || option.name === builtIn[1])) return t(builtIn[0]);
|
|
467
|
+
return option.name || option.value;
|
|
468
|
+
}
|
|
464
469
|
const DEFAULT_EFFORTS = [
|
|
465
470
|
{ id: "low", name: "Low" },
|
|
466
471
|
{ id: "medium", name: "Medium" },
|
|
@@ -511,7 +516,7 @@ window.__ModuleLoader__.load({
|
|
|
511
516
|
props.suffix && h("span", { className: "ima-chip-effort" }, props.suffix),
|
|
512
517
|
h("em"),
|
|
513
518
|
),
|
|
514
|
-
props.open && h("div", { className: "ima-chip-menu" + (props.align === "end" ? " is-end" : "") }, props.children),
|
|
519
|
+
props.open && h("div", { className: "ima-chip-menu" + (props.align === "end" ? " is-end" : ""), role: "menu" }, props.children),
|
|
515
520
|
);
|
|
516
521
|
}
|
|
517
522
|
|
|
@@ -519,6 +524,7 @@ window.__ModuleLoader__.load({
|
|
|
519
524
|
return h("button", {
|
|
520
525
|
type: "button",
|
|
521
526
|
className: "ima-chip-row" + (props.active ? " is-on" : "") + (props.kv ? " is-kv" : ""),
|
|
527
|
+
role: "menuitem",
|
|
522
528
|
onClick: props.onClick,
|
|
523
529
|
},
|
|
524
530
|
h("span", { className: "ima-chip-row-main" },
|
|
@@ -533,41 +539,19 @@ window.__ModuleLoader__.load({
|
|
|
533
539
|
);
|
|
534
540
|
}
|
|
535
541
|
|
|
536
|
-
function openFullAccessConfirmation(onConfirm) {
|
|
537
|
-
document.getElementById("ima-full-access-confirmation")?.remove();
|
|
538
|
-
const dialog = document.createElement("dialog");
|
|
539
|
-
dialog.id = "ima-full-access-confirmation";
|
|
540
|
-
dialog.className = "ima-modal ima-full-access-dialog";
|
|
541
|
-
dialog.setAttribute("aria-label", "确认启用 完全访问?");
|
|
542
|
-
dialog.innerHTML = '<div class="ima-modal-h"><h2>确认启用 完全访问?</h2><button class="ima-x" type="button" aria-label="关闭">×</button></div><div class="ima-risk-warning"><b aria-hidden="true">!</b><p>启用 完全访问 后,agent 将减少确认步骤,并且可以直接执行更多操作,包括敏感操作、文件修改或外部命令。仅建议在你信任当前任务时使用。</p></div><label class="ima-risk-check"><input type="checkbox"><span>我已了解风险,并愿意继续</span></label><div class="ima-risk-actions"><button class="ima-btn" type="button">取消</button><button class="ima-btn primary" type="button" disabled>启用 完全访问</button></div>';
|
|
543
|
-
const acknowledgement = dialog.querySelector("input");
|
|
544
|
-
const [closeButton, cancelButton, confirmButton] = dialog.querySelectorAll("button");
|
|
545
|
-
const close = (confirmed) => dialog.close(confirmed ? "confirm" : "cancel");
|
|
546
|
-
acknowledgement.addEventListener("change", () => { confirmButton.disabled = !acknowledgement.checked; });
|
|
547
|
-
closeButton.addEventListener("click", () => close(false));
|
|
548
|
-
cancelButton.addEventListener("click", () => close(false));
|
|
549
|
-
confirmButton.addEventListener("click", () => close(true));
|
|
550
|
-
dialog.addEventListener("cancel", (event) => { event.preventDefault(); close(false); });
|
|
551
|
-
dialog.addEventListener("close", () => {
|
|
552
|
-
const confirmed = dialog.returnValue === "confirm";
|
|
553
|
-
dialog.remove();
|
|
554
|
-
if (confirmed) onConfirm();
|
|
555
|
-
}, { once: true });
|
|
556
|
-
document.body.append(dialog);
|
|
557
|
-
dialog.showModal();
|
|
558
|
-
acknowledgement.focus();
|
|
559
|
-
}
|
|
560
|
-
|
|
561
542
|
function ComposerBar(props) {
|
|
562
543
|
const items = typeof props.useWorkspaces === "function"
|
|
563
544
|
? (props.useWorkspaces((state) => (state && state.items) || []) || [])
|
|
564
545
|
: [];
|
|
565
546
|
const [providers, setProviders] = useState([]);
|
|
547
|
+
const [permissions, setPermissions] = useState([]);
|
|
566
548
|
const [provider, setProvider] = useState("");
|
|
567
549
|
const [model, setModel] = useState("");
|
|
568
550
|
const [effort, setEffort] = useState("");
|
|
569
551
|
const [cwd, setCwd] = useState("");
|
|
570
|
-
const [permission, setPermission] = useState("
|
|
552
|
+
const [permission, setPermission] = useState("");
|
|
553
|
+
const [confirmingFullAccess, setConfirmingFullAccess] = useState(false);
|
|
554
|
+
const [fullAccessAcknowledged, setFullAccessAcknowledged] = useState(false);
|
|
571
555
|
const [open, setOpen] = useState("");
|
|
572
556
|
const [modelPane, setModelPane] = useState("root");
|
|
573
557
|
const [hint, setHint] = useState("");
|
|
@@ -580,6 +564,7 @@ window.__ModuleLoader__.load({
|
|
|
580
564
|
if (!data.ok) { setHint(data.error || "无法加载全局配置"); return; }
|
|
581
565
|
const list = data.providers || [];
|
|
582
566
|
setProviders(list);
|
|
567
|
+
setPermissions(data.permissions || []);
|
|
583
568
|
const current = data.assistant || {};
|
|
584
569
|
const nextProvider = current.provider || (list[0] && list[0].id) || "";
|
|
585
570
|
const models = ((list.find((item) => item.id === nextProvider) || {}).models) || [];
|
|
@@ -589,7 +574,7 @@ window.__ModuleLoader__.load({
|
|
|
589
574
|
setModel(nextModel);
|
|
590
575
|
setEffort(current.reasoningEffort || (found && found.reasoning && found.reasoning.defaultEffort) || "");
|
|
591
576
|
setCwd(data.cwd || "");
|
|
592
|
-
setPermission(data.permission || "
|
|
577
|
+
setPermission(data.permission || "");
|
|
593
578
|
if (!list.length) setHint("当前 Host 还没有可用模型,请先在网页里配置提供商");
|
|
594
579
|
}).catch(() => setHint("无法加载全局配置"));
|
|
595
580
|
}, []);
|
|
@@ -618,7 +603,11 @@ window.__ModuleLoader__.load({
|
|
|
618
603
|
? currentModel.reasoning.efforts.map((item) => ({ id: item.id, name: item.name || item.id }))
|
|
619
604
|
: DEFAULT_EFFORTS;
|
|
620
605
|
const effortLabel = (efforts.find((item) => item.id === effort) || {}).name || "";
|
|
621
|
-
const
|
|
606
|
+
const permissionOptions = permissions.map((item) => ({
|
|
607
|
+
...item,
|
|
608
|
+
label: permissionLabel(item, props.permissionT),
|
|
609
|
+
}));
|
|
610
|
+
const perm = permissionOptions.find((item) => item.value === permission) || { label: permission || "权限" };
|
|
622
611
|
|
|
623
612
|
const addWorkspace = (path) => {
|
|
624
613
|
const next = (path || "").trim();
|
|
@@ -640,11 +629,9 @@ window.__ModuleLoader__.load({
|
|
|
640
629
|
const selectPermission = (next) => {
|
|
641
630
|
setOpen("");
|
|
642
631
|
if (next === permission) return;
|
|
643
|
-
if (next === "full-access") {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
save({ permission: "full-access" });
|
|
647
|
-
});
|
|
632
|
+
if (next === "danger-full-access") {
|
|
633
|
+
setFullAccessAcknowledged(false);
|
|
634
|
+
setConfirmingFullAccess(true);
|
|
648
635
|
return;
|
|
649
636
|
}
|
|
650
637
|
setPermission(next);
|
|
@@ -699,7 +686,7 @@ window.__ModuleLoader__.load({
|
|
|
699
686
|
label: perm.label,
|
|
700
687
|
ariaLabel: "权限",
|
|
701
688
|
},
|
|
702
|
-
...
|
|
689
|
+
...permissionOptions.map((item) => h(ChipRow, {
|
|
703
690
|
key: item.value,
|
|
704
691
|
icon: h(ShieldIcon),
|
|
705
692
|
label: item.label,
|
|
@@ -786,6 +773,23 @@ window.__ModuleLoader__.load({
|
|
|
786
773
|
),
|
|
787
774
|
),
|
|
788
775
|
hint && h("div", { className: "ima-composer-hint" }, hint),
|
|
776
|
+
h(RiskConfirmation, {
|
|
777
|
+
open: confirmingFullAccess,
|
|
778
|
+
title: props.permissionT("confirm.title"),
|
|
779
|
+
description: props.permissionT("confirm.description"),
|
|
780
|
+
acknowledgeLabel: props.permissionT("confirm.acknowledge"),
|
|
781
|
+
cancelLabel: props.permissionT("confirm.cancel"),
|
|
782
|
+
confirmLabel: props.permissionT("confirm.enable"),
|
|
783
|
+
acknowledged: fullAccessAcknowledged,
|
|
784
|
+
onAcknowledgedChange: setFullAccessAcknowledged,
|
|
785
|
+
onCancel: () => { setFullAccessAcknowledged(false); setConfirmingFullAccess(false); },
|
|
786
|
+
onConfirm: () => {
|
|
787
|
+
setPermission("danger-full-access");
|
|
788
|
+
save({ permission: "danger-full-access" });
|
|
789
|
+
setFullAccessAcknowledged(false);
|
|
790
|
+
setConfirmingFullAccess(false);
|
|
791
|
+
},
|
|
792
|
+
}),
|
|
789
793
|
);
|
|
790
794
|
}
|
|
791
795
|
|
|
@@ -836,7 +840,7 @@ window.__ModuleLoader__.load({
|
|
|
836
840
|
h("p", { className: "ima-sub" }, "配置 IM 频道,让本机助手接收来自钉钉、飞书等平台的消息。频道配置仅保存在本机。"),
|
|
837
841
|
),
|
|
838
842
|
),
|
|
839
|
-
h(ComposerBar, { useWorkspaces: props.useWorkspaces, createWorkspace: props.createWorkspace, pickDirectory: props.pickDirectory }),
|
|
843
|
+
h(ComposerBar, { useWorkspaces: props.useWorkspaces, createWorkspace: props.createWorkspace, pickDirectory: props.pickDirectory, permissionT: props.permissionT }),
|
|
840
844
|
error && h("div", { className: "ima-error" }, error),
|
|
841
845
|
pending && pending.length > 0 && h("div", { className: "ima-pending" },
|
|
842
846
|
h("div", null, "有访问请求。批准后该用户才能驱动本机助手。"),
|
|
@@ -1641,6 +1645,7 @@ window.__ModuleLoader__.load({
|
|
|
1641
1645
|
|
|
1642
1646
|
function apply(ctx) {
|
|
1643
1647
|
ensureStyle();
|
|
1648
|
+
const permissionT = ctx.locale.bind("permission.access");
|
|
1644
1649
|
openImSession = (id) => {
|
|
1645
1650
|
try { ctx.sessions.open(id); return true; }
|
|
1646
1651
|
catch (error) { console.warn("[dsh-im-connect] 无法打开会话", id, error); return false; }
|
|
@@ -1654,6 +1659,7 @@ window.__ModuleLoader__.load({
|
|
|
1654
1659
|
inject: () => ({
|
|
1655
1660
|
createWorkspace: (input) => ctx.workspaces.create(input),
|
|
1656
1661
|
pickDirectory: () => ctx.workspaces.pickDirectory(),
|
|
1662
|
+
permissionT,
|
|
1657
1663
|
}),
|
|
1658
1664
|
}, SettingsPage));
|
|
1659
1665
|
|
|
@@ -1768,9 +1774,3 @@ window.__ModuleLoader__.load({
|
|
|
1768
1774
|
|
|
1769
1775
|
|
|
1770
1776
|
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
package/lib/client.js
CHANGED
|
@@ -9,8 +9,9 @@ window.__ModuleLoader__.load({
|
|
|
9
9
|
const React = require("react");
|
|
10
10
|
const { useState, useEffect, useLayoutEffect, useCallback, useRef, useSyncExternalStore } = React;
|
|
11
11
|
const ReactDOM = require("react-dom");
|
|
12
|
+
const { RiskConfirmation } = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
12
13
|
const EMPTY_EXTRA_TABS = [];
|
|
13
|
-
const inject = ["slots", "sessions", "workspaces"];
|
|
14
|
+
const inject = ["slots", "sessions", "workspaces", "locale"];
|
|
14
15
|
const API_BASE = "/dsh-im-connect/api";
|
|
15
16
|
const TAB_KEY = "dsh-im-connect.sidebar-tab";
|
|
16
17
|
const h = React.createElement;
|
|
@@ -129,7 +130,6 @@ window.__ModuleLoader__.load({
|
|
|
129
130
|
.ima-radio small{display:block;color:var(--ima-muted);margin-top:2px}
|
|
130
131
|
.ima-ok{color:var(--ima-ok);font-size:14px;text-align:center;padding:24px 0}
|
|
131
132
|
.ima-modal .ima-error{color:var(--ima-danger)}
|
|
132
|
-
.ima-risk-warning{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;color:var(--ima-muted);font-size:14px;line-height:1.6}.ima-risk-warning b{display:grid;place-items:center;width:18px;height:18px;flex:none;border:1.5px solid var(--ima-danger);border-radius:50%;color:var(--ima-danger);font-size:12px;line-height:1}.ima-risk-warning p{margin:0}.ima-risk-check{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}.ima-risk-check input{width:16px;height:16px;margin:0;accent-color:var(--ima-accent)}.ima-risk-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.ima-risk-actions .ima-btn{border-radius:999px}.ima-risk-actions .ima-btn.primary:disabled{opacity:.48;cursor:not-allowed}.ima-full-access-dialog{margin:auto}.ima-full-access-dialog::backdrop{background:var(--dsw-alias-bg-mask-1,rgba(0,0,0,.45));backdrop-filter:var(--dsw-mask-blur,blur(8px))}
|
|
133
133
|
@media (prefers-reduced-motion:reduce){.ima-switch i{transition:none}}
|
|
134
134
|
`;
|
|
135
135
|
|
|
@@ -455,12 +455,17 @@ window.__ModuleLoader__.load({
|
|
|
455
455
|
);
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
+
const BUILT_IN_PERMISSION_LABELS = new Map([
|
|
459
|
+
["read-only", ["preset.readOnly", "Read Only"]],
|
|
460
|
+
["workspace-write", ["preset.workspaceWrite", "Workspace Write"]],
|
|
461
|
+
["danger-full-access", ["preset.fullAccess", "Full access"]],
|
|
462
|
+
]);
|
|
458
463
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
+
function permissionLabel(option, t) {
|
|
465
|
+
const builtIn = BUILT_IN_PERMISSION_LABELS.get(option.value);
|
|
466
|
+
if (builtIn && (option.name === option.value || option.name === builtIn[1])) return t(builtIn[0]);
|
|
467
|
+
return option.name || option.value;
|
|
468
|
+
}
|
|
464
469
|
const DEFAULT_EFFORTS = [
|
|
465
470
|
{ id: "low", name: "Low" },
|
|
466
471
|
{ id: "medium", name: "Medium" },
|
|
@@ -511,7 +516,7 @@ window.__ModuleLoader__.load({
|
|
|
511
516
|
props.suffix && h("span", { className: "ima-chip-effort" }, props.suffix),
|
|
512
517
|
h("em"),
|
|
513
518
|
),
|
|
514
|
-
props.open && h("div", { className: "ima-chip-menu" + (props.align === "end" ? " is-end" : "") }, props.children),
|
|
519
|
+
props.open && h("div", { className: "ima-chip-menu" + (props.align === "end" ? " is-end" : ""), role: "menu" }, props.children),
|
|
515
520
|
);
|
|
516
521
|
}
|
|
517
522
|
|
|
@@ -519,6 +524,7 @@ window.__ModuleLoader__.load({
|
|
|
519
524
|
return h("button", {
|
|
520
525
|
type: "button",
|
|
521
526
|
className: "ima-chip-row" + (props.active ? " is-on" : "") + (props.kv ? " is-kv" : ""),
|
|
527
|
+
role: "menuitem",
|
|
522
528
|
onClick: props.onClick,
|
|
523
529
|
},
|
|
524
530
|
h("span", { className: "ima-chip-row-main" },
|
|
@@ -533,41 +539,19 @@ window.__ModuleLoader__.load({
|
|
|
533
539
|
);
|
|
534
540
|
}
|
|
535
541
|
|
|
536
|
-
function openFullAccessConfirmation(onConfirm) {
|
|
537
|
-
document.getElementById("ima-full-access-confirmation")?.remove();
|
|
538
|
-
const dialog = document.createElement("dialog");
|
|
539
|
-
dialog.id = "ima-full-access-confirmation";
|
|
540
|
-
dialog.className = "ima-modal ima-full-access-dialog";
|
|
541
|
-
dialog.setAttribute("aria-label", "确认启用 完全访问?");
|
|
542
|
-
dialog.innerHTML = '<div class="ima-modal-h"><h2>确认启用 完全访问?</h2><button class="ima-x" type="button" aria-label="关闭">×</button></div><div class="ima-risk-warning"><b aria-hidden="true">!</b><p>启用 完全访问 后,agent 将减少确认步骤,并且可以直接执行更多操作,包括敏感操作、文件修改或外部命令。仅建议在你信任当前任务时使用。</p></div><label class="ima-risk-check"><input type="checkbox"><span>我已了解风险,并愿意继续</span></label><div class="ima-risk-actions"><button class="ima-btn" type="button">取消</button><button class="ima-btn primary" type="button" disabled>启用 完全访问</button></div>';
|
|
543
|
-
const acknowledgement = dialog.querySelector("input");
|
|
544
|
-
const [closeButton, cancelButton, confirmButton] = dialog.querySelectorAll("button");
|
|
545
|
-
const close = (confirmed) => dialog.close(confirmed ? "confirm" : "cancel");
|
|
546
|
-
acknowledgement.addEventListener("change", () => { confirmButton.disabled = !acknowledgement.checked; });
|
|
547
|
-
closeButton.addEventListener("click", () => close(false));
|
|
548
|
-
cancelButton.addEventListener("click", () => close(false));
|
|
549
|
-
confirmButton.addEventListener("click", () => close(true));
|
|
550
|
-
dialog.addEventListener("cancel", (event) => { event.preventDefault(); close(false); });
|
|
551
|
-
dialog.addEventListener("close", () => {
|
|
552
|
-
const confirmed = dialog.returnValue === "confirm";
|
|
553
|
-
dialog.remove();
|
|
554
|
-
if (confirmed) onConfirm();
|
|
555
|
-
}, { once: true });
|
|
556
|
-
document.body.append(dialog);
|
|
557
|
-
dialog.showModal();
|
|
558
|
-
acknowledgement.focus();
|
|
559
|
-
}
|
|
560
|
-
|
|
561
542
|
function ComposerBar(props) {
|
|
562
543
|
const items = typeof props.useWorkspaces === "function"
|
|
563
544
|
? (props.useWorkspaces((state) => (state && state.items) || []) || [])
|
|
564
545
|
: [];
|
|
565
546
|
const [providers, setProviders] = useState([]);
|
|
547
|
+
const [permissions, setPermissions] = useState([]);
|
|
566
548
|
const [provider, setProvider] = useState("");
|
|
567
549
|
const [model, setModel] = useState("");
|
|
568
550
|
const [effort, setEffort] = useState("");
|
|
569
551
|
const [cwd, setCwd] = useState("");
|
|
570
|
-
const [permission, setPermission] = useState("
|
|
552
|
+
const [permission, setPermission] = useState("");
|
|
553
|
+
const [confirmingFullAccess, setConfirmingFullAccess] = useState(false);
|
|
554
|
+
const [fullAccessAcknowledged, setFullAccessAcknowledged] = useState(false);
|
|
571
555
|
const [open, setOpen] = useState("");
|
|
572
556
|
const [modelPane, setModelPane] = useState("root");
|
|
573
557
|
const [hint, setHint] = useState("");
|
|
@@ -580,6 +564,7 @@ window.__ModuleLoader__.load({
|
|
|
580
564
|
if (!data.ok) { setHint(data.error || "无法加载全局配置"); return; }
|
|
581
565
|
const list = data.providers || [];
|
|
582
566
|
setProviders(list);
|
|
567
|
+
setPermissions(data.permissions || []);
|
|
583
568
|
const current = data.assistant || {};
|
|
584
569
|
const nextProvider = current.provider || (list[0] && list[0].id) || "";
|
|
585
570
|
const models = ((list.find((item) => item.id === nextProvider) || {}).models) || [];
|
|
@@ -589,7 +574,7 @@ window.__ModuleLoader__.load({
|
|
|
589
574
|
setModel(nextModel);
|
|
590
575
|
setEffort(current.reasoningEffort || (found && found.reasoning && found.reasoning.defaultEffort) || "");
|
|
591
576
|
setCwd(data.cwd || "");
|
|
592
|
-
setPermission(data.permission || "
|
|
577
|
+
setPermission(data.permission || "");
|
|
593
578
|
if (!list.length) setHint("当前 Host 还没有可用模型,请先在网页里配置提供商");
|
|
594
579
|
}).catch(() => setHint("无法加载全局配置"));
|
|
595
580
|
}, []);
|
|
@@ -618,7 +603,11 @@ window.__ModuleLoader__.load({
|
|
|
618
603
|
? currentModel.reasoning.efforts.map((item) => ({ id: item.id, name: item.name || item.id }))
|
|
619
604
|
: DEFAULT_EFFORTS;
|
|
620
605
|
const effortLabel = (efforts.find((item) => item.id === effort) || {}).name || "";
|
|
621
|
-
const
|
|
606
|
+
const permissionOptions = permissions.map((item) => ({
|
|
607
|
+
...item,
|
|
608
|
+
label: permissionLabel(item, props.permissionT),
|
|
609
|
+
}));
|
|
610
|
+
const perm = permissionOptions.find((item) => item.value === permission) || { label: permission || "权限" };
|
|
622
611
|
|
|
623
612
|
const addWorkspace = (path) => {
|
|
624
613
|
const next = (path || "").trim();
|
|
@@ -640,11 +629,9 @@ window.__ModuleLoader__.load({
|
|
|
640
629
|
const selectPermission = (next) => {
|
|
641
630
|
setOpen("");
|
|
642
631
|
if (next === permission) return;
|
|
643
|
-
if (next === "full-access") {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
save({ permission: "full-access" });
|
|
647
|
-
});
|
|
632
|
+
if (next === "danger-full-access") {
|
|
633
|
+
setFullAccessAcknowledged(false);
|
|
634
|
+
setConfirmingFullAccess(true);
|
|
648
635
|
return;
|
|
649
636
|
}
|
|
650
637
|
setPermission(next);
|
|
@@ -699,7 +686,7 @@ window.__ModuleLoader__.load({
|
|
|
699
686
|
label: perm.label,
|
|
700
687
|
ariaLabel: "权限",
|
|
701
688
|
},
|
|
702
|
-
...
|
|
689
|
+
...permissionOptions.map((item) => h(ChipRow, {
|
|
703
690
|
key: item.value,
|
|
704
691
|
icon: h(ShieldIcon),
|
|
705
692
|
label: item.label,
|
|
@@ -786,6 +773,23 @@ window.__ModuleLoader__.load({
|
|
|
786
773
|
),
|
|
787
774
|
),
|
|
788
775
|
hint && h("div", { className: "ima-composer-hint" }, hint),
|
|
776
|
+
h(RiskConfirmation, {
|
|
777
|
+
open: confirmingFullAccess,
|
|
778
|
+
title: props.permissionT("confirm.title"),
|
|
779
|
+
description: props.permissionT("confirm.description"),
|
|
780
|
+
acknowledgeLabel: props.permissionT("confirm.acknowledge"),
|
|
781
|
+
cancelLabel: props.permissionT("confirm.cancel"),
|
|
782
|
+
confirmLabel: props.permissionT("confirm.enable"),
|
|
783
|
+
acknowledged: fullAccessAcknowledged,
|
|
784
|
+
onAcknowledgedChange: setFullAccessAcknowledged,
|
|
785
|
+
onCancel: () => { setFullAccessAcknowledged(false); setConfirmingFullAccess(false); },
|
|
786
|
+
onConfirm: () => {
|
|
787
|
+
setPermission("danger-full-access");
|
|
788
|
+
save({ permission: "danger-full-access" });
|
|
789
|
+
setFullAccessAcknowledged(false);
|
|
790
|
+
setConfirmingFullAccess(false);
|
|
791
|
+
},
|
|
792
|
+
}),
|
|
789
793
|
);
|
|
790
794
|
}
|
|
791
795
|
|
|
@@ -836,7 +840,7 @@ window.__ModuleLoader__.load({
|
|
|
836
840
|
h("p", { className: "ima-sub" }, "配置 IM 频道,让本机助手接收来自钉钉、飞书等平台的消息。频道配置仅保存在本机。"),
|
|
837
841
|
),
|
|
838
842
|
),
|
|
839
|
-
h(ComposerBar, { useWorkspaces: props.useWorkspaces, createWorkspace: props.createWorkspace, pickDirectory: props.pickDirectory }),
|
|
843
|
+
h(ComposerBar, { useWorkspaces: props.useWorkspaces, createWorkspace: props.createWorkspace, pickDirectory: props.pickDirectory, permissionT: props.permissionT }),
|
|
840
844
|
error && h("div", { className: "ima-error" }, error),
|
|
841
845
|
pending && pending.length > 0 && h("div", { className: "ima-pending" },
|
|
842
846
|
h("div", null, "有访问请求。批准后该用户才能驱动本机助手。"),
|
|
@@ -1641,6 +1645,7 @@ window.__ModuleLoader__.load({
|
|
|
1641
1645
|
|
|
1642
1646
|
function apply(ctx) {
|
|
1643
1647
|
ensureStyle();
|
|
1648
|
+
const permissionT = ctx.locale.bind("permission.access");
|
|
1644
1649
|
openImSession = (id) => {
|
|
1645
1650
|
try { ctx.sessions.open(id); return true; }
|
|
1646
1651
|
catch (error) { console.warn("[dsh-im-connect] 无法打开会话", id, error); return false; }
|
|
@@ -1654,6 +1659,7 @@ window.__ModuleLoader__.load({
|
|
|
1654
1659
|
inject: () => ({
|
|
1655
1660
|
createWorkspace: (input) => ctx.workspaces.create(input),
|
|
1656
1661
|
pickDirectory: () => ctx.workspaces.pickDirectory(),
|
|
1662
|
+
permissionT,
|
|
1657
1663
|
}),
|
|
1658
1664
|
}, SettingsPage));
|
|
1659
1665
|
|
|
@@ -1768,9 +1774,3 @@ window.__ModuleLoader__.load({
|
|
|
1768
1774
|
|
|
1769
1775
|
|
|
1770
1776
|
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
@@ -4,9 +4,7 @@ export interface AssistantModel {
|
|
|
4
4
|
model: string;
|
|
5
5
|
reasoningEffort?: string;
|
|
6
6
|
}
|
|
7
|
-
export type PermissionPreset =
|
|
8
|
-
/** IM 保存的权限名需转换为 Chat 识别的沙箱模式。 */
|
|
9
|
-
export declare function sandboxModeForPermission(permission: PermissionPreset): 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
7
|
+
export type PermissionPreset = string;
|
|
10
8
|
export declare function normalizeAssistantModel(input: {
|
|
11
9
|
provider?: unknown;
|
|
12
10
|
model?: unknown;
|
|
@@ -14,6 +12,6 @@ export declare function normalizeAssistantModel(input: {
|
|
|
14
12
|
}): AssistantModel | undefined;
|
|
15
13
|
export declare function pickAssistantModel(...candidates: Array<AssistantModel | undefined>): AssistantModel | undefined;
|
|
16
14
|
export declare function normalizeWorkspacePath(input: unknown): string | undefined;
|
|
17
|
-
export declare function normalizePermission(input: unknown): PermissionPreset | undefined;
|
|
15
|
+
export declare function normalizePermission(input: unknown, officialNames?: readonly string[]): PermissionPreset | undefined;
|
|
18
16
|
export declare function normalizeEffort(input: unknown): string | undefined;
|
|
19
17
|
//# sourceMappingURL=assistant-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-settings.d.ts","sourceRoot":"","sources":["../../src/engine/assistant-settings.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"assistant-settings.d.ts","sourceRoot":"","sources":["../../src/engine/assistant-settings.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAErC,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,cAAc,GAAG,SAAS,CAM7I;AAED,wBAAgB,kBAAkB,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC,GAAG,cAAc,GAAG,SAAS,CAK/G;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,gBAAgB,GAAG,SAAS,CAMnH;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKlE"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/** IM 保存的权限名需转换为 Chat 识别的沙箱模式。 */
|
|
2
|
-
export function sandboxModeForPermission(permission) {
|
|
3
|
-
return permission === 'full-access' ? 'danger-full-access' : permission;
|
|
4
|
-
}
|
|
5
1
|
export function normalizeAssistantModel(input) {
|
|
6
2
|
const provider = typeof input.provider === 'string' ? input.provider.trim() : '';
|
|
7
3
|
const model = typeof input.model === 'string' ? input.model.trim() : '';
|
|
@@ -23,10 +19,14 @@ export function normalizeWorkspacePath(input) {
|
|
|
23
19
|
const cwd = input.trim();
|
|
24
20
|
return cwd === '' ? undefined : cwd;
|
|
25
21
|
}
|
|
26
|
-
export function normalizePermission(input) {
|
|
27
|
-
if (
|
|
28
|
-
return
|
|
29
|
-
|
|
22
|
+
export function normalizePermission(input, officialNames) {
|
|
23
|
+
if (typeof input !== 'string')
|
|
24
|
+
return undefined;
|
|
25
|
+
// 兼容 0.1.13 及更早版本保存的旧值,读取后统一迁移到 Chat 标准值。
|
|
26
|
+
const permission = input.trim() === 'full-access' ? 'danger-full-access' : input.trim();
|
|
27
|
+
if (!permission || (officialNames !== undefined && !officialNames.includes(permission)))
|
|
28
|
+
return undefined;
|
|
29
|
+
return permission;
|
|
30
30
|
}
|
|
31
31
|
export function normalizeEffort(input) {
|
|
32
32
|
if (typeof input !== 'string')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-settings.js","sourceRoot":"","sources":["../../src/engine/assistant-settings.ts"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"assistant-settings.js","sourceRoot":"","sources":["../../src/engine/assistant-settings.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,uBAAuB,CAAC,KAAyE;IAC/G,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAChF,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ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AAA;IACzG,OAAO,UAAU,CAAA;AACnB,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAA;IAC/C,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;IAC3B,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,SAAS,CAAA;IAC1E,OAAO,MAAM,CAAA;AACf,CAAC"}
|
package/lib/engine/gateway.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class ImEngine {
|
|
|
23
23
|
ensureSession(sessionId: string): Promise<boolean>;
|
|
24
24
|
setModel(provider: string, model: string, reasoningEffort?: string): void;
|
|
25
25
|
setCwd(cwd: string): void;
|
|
26
|
-
setPermission(permission:
|
|
26
|
+
setPermission(permission: string): void;
|
|
27
27
|
attachMappedSessions(): Promise<void>;
|
|
28
28
|
register(channel: ChannelAdapter): void;
|
|
29
29
|
unregister(channelId: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/engine/gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAIlD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAKpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAYzE,qBAAa,QAAQ;IAWjB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,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