dsh-perm-gate 5.7.0 → 5.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/lib/client.js +18 -10
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.7.1 (2026-11-25)
|
|
4
|
+
|
|
5
|
+
- **引导新增第 4 步「评审模型建议挂本地端点」(zh + en)**:把「llmAssist 受信 LLM」的来源指向自定义 OpenAI 兼容端点(本地服务 + 小模型)。停在「使用会话当前默认模型」时,评审与被评审的对话跑在同一个 provider/model 上,每次工具调用都要再走一遍主模型——那是本插件最容易吃穿配额的一处。前 3 步正文逐字未动;术语取 `locales.ts` 既有译名,无新增展示文案键。
|
|
6
|
+
- **「重新查看引导」入口从卡底移到卡顶(`<GuidePanel>` 之前)**:贴士本身也渲染在同一位置,跳过之后一眼就能重开。跳过标记与十语外壳语义不变(`dsh.guide.perm-gate.skipped`)。
|
|
7
|
+
|
|
3
8
|
## 5.7.0 (2026-11-24)
|
|
4
9
|
|
|
5
10
|
- **新增首次使用引导(3 步)**:设置卡顶部先教三件事——它管的是「要不要问你」(关着按宿主权限档走,打开由本插件判断)、三种后端策略可叠加(信任自动放行 / 一律确认 / LLM 评审)、被拦了什么去「判定记录」看。不打断既有表单。
|
package/lib/client.js
CHANGED
|
@@ -3048,7 +3048,7 @@ window.__ModuleLoader__.load({
|
|
|
3048
3048
|
}, []);
|
|
3049
3049
|
}
|
|
3050
3050
|
/**
|
|
3051
|
-
*
|
|
3051
|
+
* 引导主体:≤10 步的小教学(惯例:末条讲「用量端点」贴士)+ 恒定可见的 Skip。
|
|
3052
3052
|
*
|
|
3053
3053
|
* `onClose` 由宿主卡面传:Skip/Done 都会调用它(Skip 同时写标记)。
|
|
3054
3054
|
*/
|
|
@@ -3155,6 +3155,10 @@ window.__ModuleLoader__.load({
|
|
|
3155
3155
|
{
|
|
3156
3156
|
title: "被拦了什么,去「判定记录」看",
|
|
3157
3157
|
body: "输入框旁的提示条和侧栏历史记录会列出每次判定及理由;误判就地加入白名单或补一条拒绝关键词,下次不再问。"
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
title: "评审模型建议挂本地端点",
|
|
3161
|
+
body: "「llmAssist 受信 LLM」的来源选「自定义 API(OpenAI 兼容)」,Endpoint 填本地服务(如 http://127.0.0.1:8000/v1)再写一个小模型 id;来源停在「使用会话当前默认模型」时,评审和被评审的对话跑在同一个 provider/model 上——每次工具调用都要再走一遍主模型,用量直接翻倍。"
|
|
3158
3162
|
}
|
|
3159
3163
|
],
|
|
3160
3164
|
en: [
|
|
@@ -3169,6 +3173,10 @@ window.__ModuleLoader__.load({
|
|
|
3169
3173
|
{
|
|
3170
3174
|
title: "See what got gated",
|
|
3171
3175
|
body: "The notice strip beside the composer and the sidebar history list every decision with its reason. Add a whitelist pattern or a deny keyword right there and it stops asking next time."
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
title: "Point the reviewer at a local endpoint",
|
|
3179
|
+
body: "Set the llmAssist receiver source to “Custom API (OpenAI-compatible)”, put a local service in Endpoint (e.g. http://127.0.0.1:8000/v1) and pick a small model. Left on “Use the session’s current default model”, the reviewer and the reviewed conversation run on one provider/model, so every tool call runs the main model again and doubles spend."
|
|
3172
3180
|
}
|
|
3173
3181
|
]
|
|
3174
3182
|
};
|
|
@@ -4083,6 +4091,15 @@ window.__ModuleLoader__.load({
|
|
|
4083
4091
|
children: t("card.unavailable")
|
|
4084
4092
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
4085
4093
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", { children: switchCss }),
|
|
4094
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
4095
|
+
style: { margin: "0 0 10px" },
|
|
4096
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuideRestartButton, {
|
|
4097
|
+
ns: "perm-gate",
|
|
4098
|
+
onOpen: () => {
|
|
4099
|
+
setGuideOpen(true);
|
|
4100
|
+
}
|
|
4101
|
+
})
|
|
4102
|
+
}),
|
|
4086
4103
|
guideOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuidePanel, {
|
|
4087
4104
|
ns: "perm-gate",
|
|
4088
4105
|
steps: guideSteps(PERM_GATE_GUIDE_STEPS),
|
|
@@ -5467,15 +5484,6 @@ window.__ModuleLoader__.load({
|
|
|
5467
5484
|
color: "var(--dsw-alias-label-tertiary)"
|
|
5468
5485
|
},
|
|
5469
5486
|
children: t("card.readonly")
|
|
5470
|
-
}),
|
|
5471
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
5472
|
-
style: { margin: "10px 0 0" },
|
|
5473
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuideRestartButton, {
|
|
5474
|
-
ns: "perm-gate",
|
|
5475
|
-
onOpen: () => {
|
|
5476
|
-
setGuideOpen(true);
|
|
5477
|
-
}
|
|
5478
|
-
})
|
|
5479
5487
|
})
|
|
5480
5488
|
] })
|
|
5481
5489
|
}) : null]
|