@philomelcc/dsh-workbench 0.1.17 → 0.1.18

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.
Files changed (2) hide show
  1. package/lib/vault.js +5 -1
  2. package/package.json +1 -1
package/lib/vault.js CHANGED
@@ -37,9 +37,13 @@ export function maskValue(value) {
37
37
  const providerEnd = sep + 1;
38
38
  const hidden = chars.length - providerEnd - 5 - 4;
39
39
  if (hidden < 8) return "•".repeat(Math.min(chars.length, 32));
40
+ // 长值(PEM 证书、很长的 token)只露首尾,中间固定一小段,否则一行几百个点会撑爆页面。
41
+ const shown = Math.min(hidden, 24);
42
+ const suffix = hidden > shown ? `…(${hidden})` : "";
40
43
  return (
41
44
  chars.slice(0, providerEnd + 5).join("") +
42
- "•".repeat(hidden) +
45
+ "•".repeat(shown) +
46
+ suffix +
43
47
  chars.slice(-4).join("")
44
48
  );
45
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@philomelcc/dsh-workbench",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "description": "Workbench shell for DeepSeek Harness: a view/page module API, shared UI primitives and a top-bar switcher.",
6
6
  "license": "MIT",