dsh-mcp 1.4.0 → 1.6.0
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.en.md +20 -0
- package/CHANGELOG.md +20 -0
- package/README.en.md +50 -2
- package/README.md +42 -2
- package/lib/client.js +98 -89
- package/lib/index.js +35 -16
- package/lib/mcp-client.js +157 -26
- package/lib/oauth.js +125 -46
- package/package.json +1 -1
- package/src/client/GlobalEnvEditor.module.css +10 -0
- package/src/client/GlobalEnvEditor.tsx +15 -6
- package/src/client/locales.ts +1 -1
- package/static/snapshot.en.jpg +0 -0
- package/static/snapshot.en.webp +0 -0
- package/static/snapshot.jpg +0 -0
- package/static/snapshot.webp +0 -0
package/lib/client.js
CHANGED
|
@@ -27,7 +27,7 @@ __export(index_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(index_exports);
|
|
29
29
|
|
|
30
|
-
//
|
|
30
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
31
31
|
var external_exports = {};
|
|
32
32
|
__export(external_exports, {
|
|
33
33
|
$brand: () => $brand,
|
|
@@ -270,7 +270,7 @@ __export(external_exports, {
|
|
|
270
270
|
xor: () => xor
|
|
271
271
|
});
|
|
272
272
|
|
|
273
|
-
//
|
|
273
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
274
274
|
var core_exports2 = {};
|
|
275
275
|
__export(core_exports2, {
|
|
276
276
|
$ZodAny: () => $ZodAny,
|
|
@@ -549,7 +549,7 @@ __export(core_exports2, {
|
|
|
549
549
|
version: () => version
|
|
550
550
|
});
|
|
551
551
|
|
|
552
|
-
//
|
|
552
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
553
553
|
var _a;
|
|
554
554
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
555
555
|
status: "aborted"
|
|
@@ -626,7 +626,7 @@ function config(newConfig) {
|
|
|
626
626
|
return globalConfig;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
//
|
|
629
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
630
630
|
var util_exports = {};
|
|
631
631
|
__export(util_exports, {
|
|
632
632
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -1322,7 +1322,7 @@ var Class = class {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
};
|
|
1324
1324
|
|
|
1325
|
-
//
|
|
1325
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1326
1326
|
var initializer = (inst, def) => {
|
|
1327
1327
|
inst.name = "$ZodError";
|
|
1328
1328
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1461,7 +1461,7 @@ function prettifyError(error51) {
|
|
|
1461
1461
|
return lines.join("\n");
|
|
1462
1462
|
}
|
|
1463
1463
|
|
|
1464
|
-
//
|
|
1464
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1465
1465
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1466
1466
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1467
1467
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1549,7 +1549,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1549
1549
|
};
|
|
1550
1550
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1551
1551
|
|
|
1552
|
-
//
|
|
1552
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1553
1553
|
var regexes_exports = {};
|
|
1554
1554
|
__export(regexes_exports, {
|
|
1555
1555
|
base64: () => base64,
|
|
@@ -1708,7 +1708,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1708
1708
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1709
1709
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1710
1710
|
|
|
1711
|
-
//
|
|
1711
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
1712
1712
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1713
1713
|
var _a3;
|
|
1714
1714
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2256,7 +2256,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2256
2256
|
};
|
|
2257
2257
|
});
|
|
2258
2258
|
|
|
2259
|
-
//
|
|
2259
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2260
2260
|
var Doc = class {
|
|
2261
2261
|
constructor(args = []) {
|
|
2262
2262
|
this.content = [];
|
|
@@ -2292,14 +2292,14 @@ var Doc = class {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
};
|
|
2294
2294
|
|
|
2295
|
-
//
|
|
2295
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2296
2296
|
var version = {
|
|
2297
2297
|
major: 4,
|
|
2298
2298
|
minor: 4,
|
|
2299
2299
|
patch: 3
|
|
2300
2300
|
};
|
|
2301
2301
|
|
|
2302
|
-
//
|
|
2302
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2303
2303
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2304
2304
|
var _a3;
|
|
2305
2305
|
inst ?? (inst = {});
|
|
@@ -4392,7 +4392,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
}
|
|
4394
4394
|
|
|
4395
|
-
//
|
|
4395
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4396
4396
|
var locales_exports = {};
|
|
4397
4397
|
__export(locales_exports, {
|
|
4398
4398
|
ar: () => ar_default,
|
|
@@ -4449,7 +4449,7 @@ __export(locales_exports, {
|
|
|
4449
4449
|
zhTW: () => zh_TW_default
|
|
4450
4450
|
});
|
|
4451
4451
|
|
|
4452
|
-
//
|
|
4452
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4453
4453
|
var error = () => {
|
|
4454
4454
|
const Sizable = {
|
|
4455
4455
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4556,7 +4556,7 @@ function ar_default() {
|
|
|
4556
4556
|
};
|
|
4557
4557
|
}
|
|
4558
4558
|
|
|
4559
|
-
//
|
|
4559
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4560
4560
|
var error2 = () => {
|
|
4561
4561
|
const Sizable = {
|
|
4562
4562
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4662,7 +4662,7 @@ function az_default() {
|
|
|
4662
4662
|
};
|
|
4663
4663
|
}
|
|
4664
4664
|
|
|
4665
|
-
//
|
|
4665
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4666
4666
|
function getBelarusianPlural(count, one, few, many) {
|
|
4667
4667
|
const absCount = Math.abs(count);
|
|
4668
4668
|
const lastDigit = absCount % 10;
|
|
@@ -4819,7 +4819,7 @@ function be_default() {
|
|
|
4819
4819
|
};
|
|
4820
4820
|
}
|
|
4821
4821
|
|
|
4822
|
-
//
|
|
4822
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
4823
4823
|
var error4 = () => {
|
|
4824
4824
|
const Sizable = {
|
|
4825
4825
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -4940,7 +4940,7 @@ function bg_default() {
|
|
|
4940
4940
|
};
|
|
4941
4941
|
}
|
|
4942
4942
|
|
|
4943
|
-
//
|
|
4943
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
4944
4944
|
var error5 = () => {
|
|
4945
4945
|
const Sizable = {
|
|
4946
4946
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -5049,7 +5049,7 @@ function ca_default() {
|
|
|
5049
5049
|
};
|
|
5050
5050
|
}
|
|
5051
5051
|
|
|
5052
|
-
//
|
|
5052
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
5053
5053
|
var error6 = () => {
|
|
5054
5054
|
const Sizable = {
|
|
5055
5055
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5161,7 +5161,7 @@ function cs_default() {
|
|
|
5161
5161
|
};
|
|
5162
5162
|
}
|
|
5163
5163
|
|
|
5164
|
-
//
|
|
5164
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5165
5165
|
var error7 = () => {
|
|
5166
5166
|
const Sizable = {
|
|
5167
5167
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5277,7 +5277,7 @@ function da_default() {
|
|
|
5277
5277
|
};
|
|
5278
5278
|
}
|
|
5279
5279
|
|
|
5280
|
-
//
|
|
5280
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5281
5281
|
var error8 = () => {
|
|
5282
5282
|
const Sizable = {
|
|
5283
5283
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5386,7 +5386,7 @@ function de_default() {
|
|
|
5386
5386
|
};
|
|
5387
5387
|
}
|
|
5388
5388
|
|
|
5389
|
-
//
|
|
5389
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5390
5390
|
var error9 = () => {
|
|
5391
5391
|
const Sizable = {
|
|
5392
5392
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -5496,7 +5496,7 @@ function el_default() {
|
|
|
5496
5496
|
};
|
|
5497
5497
|
}
|
|
5498
5498
|
|
|
5499
|
-
//
|
|
5499
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5500
5500
|
var error10 = () => {
|
|
5501
5501
|
const Sizable = {
|
|
5502
5502
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -5609,7 +5609,7 @@ function en_default() {
|
|
|
5609
5609
|
};
|
|
5610
5610
|
}
|
|
5611
5611
|
|
|
5612
|
-
//
|
|
5612
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5613
5613
|
var error11 = () => {
|
|
5614
5614
|
const Sizable = {
|
|
5615
5615
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -5719,7 +5719,7 @@ function eo_default() {
|
|
|
5719
5719
|
};
|
|
5720
5720
|
}
|
|
5721
5721
|
|
|
5722
|
-
//
|
|
5722
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
5723
5723
|
var error12 = () => {
|
|
5724
5724
|
const Sizable = {
|
|
5725
5725
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -5852,7 +5852,7 @@ function es_default() {
|
|
|
5852
5852
|
};
|
|
5853
5853
|
}
|
|
5854
5854
|
|
|
5855
|
-
//
|
|
5855
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
5856
5856
|
var error13 = () => {
|
|
5857
5857
|
const Sizable = {
|
|
5858
5858
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5967,7 +5967,7 @@ function fa_default() {
|
|
|
5967
5967
|
};
|
|
5968
5968
|
}
|
|
5969
5969
|
|
|
5970
|
-
//
|
|
5970
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
5971
5971
|
var error14 = () => {
|
|
5972
5972
|
const Sizable = {
|
|
5973
5973
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -6080,7 +6080,7 @@ function fi_default() {
|
|
|
6080
6080
|
};
|
|
6081
6081
|
}
|
|
6082
6082
|
|
|
6083
|
-
//
|
|
6083
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6084
6084
|
var error15 = () => {
|
|
6085
6085
|
const Sizable = {
|
|
6086
6086
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -6206,7 +6206,7 @@ function fr_default() {
|
|
|
6206
6206
|
};
|
|
6207
6207
|
}
|
|
6208
6208
|
|
|
6209
|
-
//
|
|
6209
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6210
6210
|
var error16 = () => {
|
|
6211
6211
|
const Sizable = {
|
|
6212
6212
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -6314,7 +6314,7 @@ function fr_CA_default() {
|
|
|
6314
6314
|
};
|
|
6315
6315
|
}
|
|
6316
6316
|
|
|
6317
|
-
//
|
|
6317
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6318
6318
|
var error17 = () => {
|
|
6319
6319
|
const TypeNames = {
|
|
6320
6320
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -6509,7 +6509,7 @@ function he_default() {
|
|
|
6509
6509
|
};
|
|
6510
6510
|
}
|
|
6511
6511
|
|
|
6512
|
-
//
|
|
6512
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6513
6513
|
var error18 = () => {
|
|
6514
6514
|
const Sizable = {
|
|
6515
6515
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -6632,7 +6632,7 @@ function hr_default() {
|
|
|
6632
6632
|
};
|
|
6633
6633
|
}
|
|
6634
6634
|
|
|
6635
|
-
//
|
|
6635
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6636
6636
|
var error19 = () => {
|
|
6637
6637
|
const Sizable = {
|
|
6638
6638
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -6741,7 +6741,7 @@ function hu_default() {
|
|
|
6741
6741
|
};
|
|
6742
6742
|
}
|
|
6743
6743
|
|
|
6744
|
-
//
|
|
6744
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6745
6745
|
function getArmenianPlural(count, one, many) {
|
|
6746
6746
|
return Math.abs(count) === 1 ? one : many;
|
|
6747
6747
|
}
|
|
@@ -6889,7 +6889,7 @@ function hy_default() {
|
|
|
6889
6889
|
};
|
|
6890
6890
|
}
|
|
6891
6891
|
|
|
6892
|
-
//
|
|
6892
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
6893
6893
|
var error21 = () => {
|
|
6894
6894
|
const Sizable = {
|
|
6895
6895
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -6996,7 +6996,7 @@ function id_default() {
|
|
|
6996
6996
|
};
|
|
6997
6997
|
}
|
|
6998
6998
|
|
|
6999
|
-
//
|
|
6999
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
7000
7000
|
var error22 = () => {
|
|
7001
7001
|
const Sizable = {
|
|
7002
7002
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -7106,7 +7106,7 @@ function is_default() {
|
|
|
7106
7106
|
};
|
|
7107
7107
|
}
|
|
7108
7108
|
|
|
7109
|
-
//
|
|
7109
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7110
7110
|
var error23 = () => {
|
|
7111
7111
|
const Sizable = {
|
|
7112
7112
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -7215,7 +7215,7 @@ function it_default() {
|
|
|
7215
7215
|
};
|
|
7216
7216
|
}
|
|
7217
7217
|
|
|
7218
|
-
//
|
|
7218
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7219
7219
|
var error24 = () => {
|
|
7220
7220
|
const Sizable = {
|
|
7221
7221
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -7323,7 +7323,7 @@ function ja_default() {
|
|
|
7323
7323
|
};
|
|
7324
7324
|
}
|
|
7325
7325
|
|
|
7326
|
-
//
|
|
7326
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7327
7327
|
var error25 = () => {
|
|
7328
7328
|
const Sizable = {
|
|
7329
7329
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7436,7 +7436,7 @@ function ka_default() {
|
|
|
7436
7436
|
};
|
|
7437
7437
|
}
|
|
7438
7438
|
|
|
7439
|
-
//
|
|
7439
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7440
7440
|
var error26 = () => {
|
|
7441
7441
|
const Sizable = {
|
|
7442
7442
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7547,12 +7547,12 @@ function km_default() {
|
|
|
7547
7547
|
};
|
|
7548
7548
|
}
|
|
7549
7549
|
|
|
7550
|
-
//
|
|
7550
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7551
7551
|
function kh_default() {
|
|
7552
7552
|
return km_default();
|
|
7553
7553
|
}
|
|
7554
7554
|
|
|
7555
|
-
//
|
|
7555
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7556
7556
|
var error27 = () => {
|
|
7557
7557
|
const Sizable = {
|
|
7558
7558
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -7664,7 +7664,7 @@ function ko_default() {
|
|
|
7664
7664
|
};
|
|
7665
7665
|
}
|
|
7666
7666
|
|
|
7667
|
-
//
|
|
7667
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7668
7668
|
var capitalizeFirstCharacter = (text) => {
|
|
7669
7669
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7670
7670
|
};
|
|
@@ -7868,7 +7868,7 @@ function lt_default() {
|
|
|
7868
7868
|
};
|
|
7869
7869
|
}
|
|
7870
7870
|
|
|
7871
|
-
//
|
|
7871
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
7872
7872
|
var error29 = () => {
|
|
7873
7873
|
const Sizable = {
|
|
7874
7874
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7978,7 +7978,7 @@ function mk_default() {
|
|
|
7978
7978
|
};
|
|
7979
7979
|
}
|
|
7980
7980
|
|
|
7981
|
-
//
|
|
7981
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
7982
7982
|
var error30 = () => {
|
|
7983
7983
|
const Sizable = {
|
|
7984
7984
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -8086,7 +8086,7 @@ function ms_default() {
|
|
|
8086
8086
|
};
|
|
8087
8087
|
}
|
|
8088
8088
|
|
|
8089
|
-
//
|
|
8089
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8090
8090
|
var error31 = () => {
|
|
8091
8091
|
const Sizable = {
|
|
8092
8092
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -8197,7 +8197,7 @@ function nl_default() {
|
|
|
8197
8197
|
};
|
|
8198
8198
|
}
|
|
8199
8199
|
|
|
8200
|
-
//
|
|
8200
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8201
8201
|
var error32 = () => {
|
|
8202
8202
|
const Sizable = {
|
|
8203
8203
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -8306,7 +8306,7 @@ function no_default() {
|
|
|
8306
8306
|
};
|
|
8307
8307
|
}
|
|
8308
8308
|
|
|
8309
|
-
//
|
|
8309
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8310
8310
|
var error33 = () => {
|
|
8311
8311
|
const Sizable = {
|
|
8312
8312
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8416,7 +8416,7 @@ function ota_default() {
|
|
|
8416
8416
|
};
|
|
8417
8417
|
}
|
|
8418
8418
|
|
|
8419
|
-
//
|
|
8419
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8420
8420
|
var error34 = () => {
|
|
8421
8421
|
const Sizable = {
|
|
8422
8422
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8531,7 +8531,7 @@ function ps_default() {
|
|
|
8531
8531
|
};
|
|
8532
8532
|
}
|
|
8533
8533
|
|
|
8534
|
-
//
|
|
8534
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8535
8535
|
var error35 = () => {
|
|
8536
8536
|
const Sizable = {
|
|
8537
8537
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -8641,7 +8641,7 @@ function pl_default() {
|
|
|
8641
8641
|
};
|
|
8642
8642
|
}
|
|
8643
8643
|
|
|
8644
|
-
//
|
|
8644
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8645
8645
|
var error36 = () => {
|
|
8646
8646
|
const Sizable = {
|
|
8647
8647
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -8750,7 +8750,7 @@ function pt_default() {
|
|
|
8750
8750
|
};
|
|
8751
8751
|
}
|
|
8752
8752
|
|
|
8753
|
-
//
|
|
8753
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
8754
8754
|
var error37 = () => {
|
|
8755
8755
|
const Sizable = {
|
|
8756
8756
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -8870,7 +8870,7 @@ function ro_default() {
|
|
|
8870
8870
|
};
|
|
8871
8871
|
}
|
|
8872
8872
|
|
|
8873
|
-
//
|
|
8873
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8874
8874
|
function getRussianPlural(count, one, few, many) {
|
|
8875
8875
|
const absCount = Math.abs(count);
|
|
8876
8876
|
const lastDigit = absCount % 10;
|
|
@@ -9027,7 +9027,7 @@ function ru_default() {
|
|
|
9027
9027
|
};
|
|
9028
9028
|
}
|
|
9029
9029
|
|
|
9030
|
-
//
|
|
9030
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9031
9031
|
var error39 = () => {
|
|
9032
9032
|
const Sizable = {
|
|
9033
9033
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -9137,7 +9137,7 @@ function sl_default() {
|
|
|
9137
9137
|
};
|
|
9138
9138
|
}
|
|
9139
9139
|
|
|
9140
|
-
//
|
|
9140
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9141
9141
|
var error40 = () => {
|
|
9142
9142
|
const Sizable = {
|
|
9143
9143
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -9248,7 +9248,7 @@ function sv_default() {
|
|
|
9248
9248
|
};
|
|
9249
9249
|
}
|
|
9250
9250
|
|
|
9251
|
-
//
|
|
9251
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9252
9252
|
var error41 = () => {
|
|
9253
9253
|
const Sizable = {
|
|
9254
9254
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -9359,7 +9359,7 @@ function ta_default() {
|
|
|
9359
9359
|
};
|
|
9360
9360
|
}
|
|
9361
9361
|
|
|
9362
|
-
//
|
|
9362
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9363
9363
|
var error42 = () => {
|
|
9364
9364
|
const Sizable = {
|
|
9365
9365
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9470,7 +9470,7 @@ function th_default() {
|
|
|
9470
9470
|
};
|
|
9471
9471
|
}
|
|
9472
9472
|
|
|
9473
|
-
//
|
|
9473
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9474
9474
|
var error43 = () => {
|
|
9475
9475
|
const Sizable = {
|
|
9476
9476
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -9576,7 +9576,7 @@ function tr_default() {
|
|
|
9576
9576
|
};
|
|
9577
9577
|
}
|
|
9578
9578
|
|
|
9579
|
-
//
|
|
9579
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9580
9580
|
var error44 = () => {
|
|
9581
9581
|
const Sizable = {
|
|
9582
9582
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9685,12 +9685,12 @@ function uk_default() {
|
|
|
9685
9685
|
};
|
|
9686
9686
|
}
|
|
9687
9687
|
|
|
9688
|
-
//
|
|
9688
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9689
9689
|
function ua_default() {
|
|
9690
9690
|
return uk_default();
|
|
9691
9691
|
}
|
|
9692
9692
|
|
|
9693
|
-
//
|
|
9693
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
9694
9694
|
var error45 = () => {
|
|
9695
9695
|
const Sizable = {
|
|
9696
9696
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9801,7 +9801,7 @@ function ur_default() {
|
|
|
9801
9801
|
};
|
|
9802
9802
|
}
|
|
9803
9803
|
|
|
9804
|
-
//
|
|
9804
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
9805
9805
|
var error46 = () => {
|
|
9806
9806
|
const Sizable = {
|
|
9807
9807
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -9912,7 +9912,7 @@ function uz_default() {
|
|
|
9912
9912
|
};
|
|
9913
9913
|
}
|
|
9914
9914
|
|
|
9915
|
-
//
|
|
9915
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
9916
9916
|
var error47 = () => {
|
|
9917
9917
|
const Sizable = {
|
|
9918
9918
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -10021,7 +10021,7 @@ function vi_default() {
|
|
|
10021
10021
|
};
|
|
10022
10022
|
}
|
|
10023
10023
|
|
|
10024
|
-
//
|
|
10024
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
10025
10025
|
var error48 = () => {
|
|
10026
10026
|
const Sizable = {
|
|
10027
10027
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -10131,7 +10131,7 @@ function zh_CN_default() {
|
|
|
10131
10131
|
};
|
|
10132
10132
|
}
|
|
10133
10133
|
|
|
10134
|
-
//
|
|
10134
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10135
10135
|
var error49 = () => {
|
|
10136
10136
|
const Sizable = {
|
|
10137
10137
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -10239,7 +10239,7 @@ function zh_TW_default() {
|
|
|
10239
10239
|
};
|
|
10240
10240
|
}
|
|
10241
10241
|
|
|
10242
|
-
//
|
|
10242
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10243
10243
|
var error50 = () => {
|
|
10244
10244
|
const Sizable = {
|
|
10245
10245
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -10347,7 +10347,7 @@ function yo_default() {
|
|
|
10347
10347
|
};
|
|
10348
10348
|
}
|
|
10349
10349
|
|
|
10350
|
-
//
|
|
10350
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10351
10351
|
var _a2;
|
|
10352
10352
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
10353
10353
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -10397,7 +10397,7 @@ function registry() {
|
|
|
10397
10397
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
10398
10398
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10399
10399
|
|
|
10400
|
-
//
|
|
10400
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
10401
10401
|
// @__NO_SIDE_EFFECTS__
|
|
10402
10402
|
function _string(Class2, params) {
|
|
10403
10403
|
return new Class2({
|
|
@@ -11436,7 +11436,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11436
11436
|
return inst;
|
|
11437
11437
|
}
|
|
11438
11438
|
|
|
11439
|
-
//
|
|
11439
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
11440
11440
|
function initializeContext(params) {
|
|
11441
11441
|
let target = params?.target ?? "draft-2020-12";
|
|
11442
11442
|
if (target === "draft-4")
|
|
@@ -11795,7 +11795,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11795
11795
|
return finalize(ctx, schema);
|
|
11796
11796
|
};
|
|
11797
11797
|
|
|
11798
|
-
//
|
|
11798
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11799
11799
|
var formatMap = {
|
|
11800
11800
|
guid: "uuid",
|
|
11801
11801
|
url: "uri",
|
|
@@ -12339,7 +12339,7 @@ function toJSONSchema(input, params) {
|
|
|
12339
12339
|
return finalize(ctx, input);
|
|
12340
12340
|
}
|
|
12341
12341
|
|
|
12342
|
-
//
|
|
12342
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
12343
12343
|
var JSONSchemaGenerator = class {
|
|
12344
12344
|
/** @deprecated Access via ctx instead */
|
|
12345
12345
|
get metadataRegistry() {
|
|
@@ -12414,10 +12414,10 @@ var JSONSchemaGenerator = class {
|
|
|
12414
12414
|
}
|
|
12415
12415
|
};
|
|
12416
12416
|
|
|
12417
|
-
//
|
|
12417
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
12418
12418
|
var json_schema_exports = {};
|
|
12419
12419
|
|
|
12420
|
-
//
|
|
12420
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12421
12421
|
var schemas_exports2 = {};
|
|
12422
12422
|
__export(schemas_exports2, {
|
|
12423
12423
|
ZodAny: () => ZodAny,
|
|
@@ -12588,7 +12588,7 @@ __export(schemas_exports2, {
|
|
|
12588
12588
|
xor: () => xor
|
|
12589
12589
|
});
|
|
12590
12590
|
|
|
12591
|
-
//
|
|
12591
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
12592
12592
|
var checks_exports2 = {};
|
|
12593
12593
|
__export(checks_exports2, {
|
|
12594
12594
|
endsWith: () => _endsWith,
|
|
@@ -12622,7 +12622,7 @@ __export(checks_exports2, {
|
|
|
12622
12622
|
uppercase: () => _uppercase
|
|
12623
12623
|
});
|
|
12624
12624
|
|
|
12625
|
-
//
|
|
12625
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
12626
12626
|
var iso_exports = {};
|
|
12627
12627
|
__export(iso_exports, {
|
|
12628
12628
|
ZodISODate: () => ZodISODate,
|
|
@@ -12663,7 +12663,7 @@ function duration2(params) {
|
|
|
12663
12663
|
return _isoDuration(ZodISODuration, params);
|
|
12664
12664
|
}
|
|
12665
12665
|
|
|
12666
|
-
//
|
|
12666
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
12667
12667
|
var initializer2 = (inst, issues) => {
|
|
12668
12668
|
$ZodError.init(inst, issues);
|
|
12669
12669
|
inst.name = "ZodError";
|
|
@@ -12703,7 +12703,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
|
12703
12703
|
Parent: Error
|
|
12704
12704
|
});
|
|
12705
12705
|
|
|
12706
|
-
//
|
|
12706
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
12707
12707
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
12708
12708
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
12709
12709
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12717,7 +12717,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
12717
12717
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12718
12718
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12719
12719
|
|
|
12720
|
-
//
|
|
12720
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12721
12721
|
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
12722
12722
|
function _installLazyMethods(inst, group, methods) {
|
|
12723
12723
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -14007,7 +14007,7 @@ function preprocess(fn, schema) {
|
|
|
14007
14007
|
});
|
|
14008
14008
|
}
|
|
14009
14009
|
|
|
14010
|
-
//
|
|
14010
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
14011
14011
|
var ZodIssueCode = {
|
|
14012
14012
|
invalid_type: "invalid_type",
|
|
14013
14013
|
too_big: "too_big",
|
|
@@ -14033,7 +14033,7 @@ var ZodFirstPartyTypeKind;
|
|
|
14033
14033
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
14034
14034
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
14035
14035
|
|
|
14036
|
-
//
|
|
14036
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
14037
14037
|
var z = {
|
|
14038
14038
|
...schemas_exports2,
|
|
14039
14039
|
...checks_exports2,
|
|
@@ -14513,7 +14513,7 @@ function fromJSONSchema(schema, params) {
|
|
|
14513
14513
|
return convertSchema(normalized, ctx);
|
|
14514
14514
|
}
|
|
14515
14515
|
|
|
14516
|
-
//
|
|
14516
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
14517
14517
|
var coerce_exports = {};
|
|
14518
14518
|
__export(coerce_exports, {
|
|
14519
14519
|
bigint: () => bigint3,
|
|
@@ -14538,7 +14538,7 @@ function date4(params) {
|
|
|
14538
14538
|
return _coercedDate(ZodDate, params);
|
|
14539
14539
|
}
|
|
14540
14540
|
|
|
14541
|
-
//
|
|
14541
|
+
// ../../deepseek-harness/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
14542
14542
|
config(en_default());
|
|
14543
14543
|
|
|
14544
14544
|
// src/client/remote-contribution.js
|
|
@@ -15475,12 +15475,12 @@ var import_react3 = require("react");
|
|
|
15475
15475
|
const style = document.createElement("style");
|
|
15476
15476
|
style.setAttribute("data-plugin", "dsh-mcp");
|
|
15477
15477
|
style.setAttribute("data-file", "GlobalEnvEditor.module.css");
|
|
15478
|
-
style.textContent = ".panel {\n display: flex;\n flex-direction: column;\n gap: 8px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 10px;\n padding: 10px 14px;\n background: var(--dsw-alias-bg-layer-3);\n}\n\n.hint,\n.muted {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary);\n}\n\n.row {\n display: grid;\n grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) auto auto;\n align-items: center;\n gap: 8px;\n}\n\n.row input {\n box-sizing: border-box;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 5px 8px;\n outline: none;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n\n.row input:focus-visible {\n border-color: var(--dsw-alias-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);\n}\n\n.name {\n width: 100%;\n}\n\n.value {\n width: 100%;\n}\n\n.secretToggle {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.danger {\n border: 1px solid transparent !important;\n background: transparent !important;\n color: var(--dsw-alias-state-error-primary) !important;\n cursor: pointer;\n}\n\n.overlay {\n position: fixed;\n inset: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.4);\n}\n\n.dialog {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: min(520px, calc(100vw - 48px));\n max-height: 80vh;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 12px;\n padding: 16px;\n background: var(--dsw-alias-bg-overlay);\n box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);\n}\n\n.dialogTitle {\n margin: 0;\n font-size: 15px;\n line-height: 22px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n}\n\n.bulkText {\n width: 100%;\n box-sizing: border-box;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n padding: 8px 10px;\n outline: none;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n resize: vertical;\n}\n\n.bulkText:focus-visible {\n border-color: var(--dsw-alias-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);\n}\n\n.retryRow {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.retryRow button {\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 3px 10px;\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n}\n\n.retryRow button:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.error {\n margin: 0;\n color: var(--dsw-alias-state-error-primary);\n font-size: 12px;\n line-height: 18px;\n word-break: break-all;\n}\n\n.notice {\n margin: 0;\n color: var(--dsw-alias-state-success-primary);\n font-size: 12px;\n line-height: 18px;\n}\n\n.actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n}\n\n.actions button {\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 5px 12px;\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n\n.actions button:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.actions button:disabled {\n cursor: not-allowed;\n opacity: 0.55;\n}\n\n.actions .primary {\n border-color: var(--dsw-alias-button-primary-fill);\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-foreground);\n}\n\n.actions .primary:hover {\n background: var(--dsw-alias-button-primary-hover);\n}\n";
|
|
15478
|
+
style.textContent = ".panel {\n display: flex;\n flex-direction: column;\n gap: 8px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 10px;\n padding: 10px 14px;\n background: var(--dsw-alias-bg-layer-3);\n}\n\n.hint,\n.muted {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary);\n}\n\n.row {\n display: grid;\n grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) auto auto;\n align-items: center;\n gap: 8px;\n}\n\n.row input {\n box-sizing: border-box;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 5px 8px;\n outline: none;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n\n.row input:focus-visible {\n border-color: var(--dsw-alias-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);\n}\n\n.name {\n width: 100%;\n}\n\n.value {\n width: 100%;\n}\n\n.secretToggle {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n white-space: nowrap;\n cursor: pointer;\n user-select: none;\n}\n\n.secretToggle input {\n cursor: pointer;\n}\n\n.secretToggle.secretOn {\n color: var(--dsw-alias-brand-primary);\n font-weight: 600;\n}\n\n.danger {\n border: 1px solid transparent !important;\n background: transparent !important;\n color: var(--dsw-alias-state-error-primary) !important;\n cursor: pointer;\n}\n\n.overlay {\n position: fixed;\n inset: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.4);\n}\n\n.dialog {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: min(520px, calc(100vw - 48px));\n max-height: 80vh;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 12px;\n padding: 16px;\n background: var(--dsw-alias-bg-overlay);\n box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);\n}\n\n.dialogTitle {\n margin: 0;\n font-size: 15px;\n line-height: 22px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n}\n\n.bulkText {\n width: 100%;\n box-sizing: border-box;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n padding: 8px 10px;\n outline: none;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n resize: vertical;\n}\n\n.bulkText:focus-visible {\n border-color: var(--dsw-alias-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);\n}\n\n.retryRow {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.retryRow button {\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 3px 10px;\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n}\n\n.retryRow button:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.error {\n margin: 0;\n color: var(--dsw-alias-state-error-primary);\n font-size: 12px;\n line-height: 18px;\n word-break: break-all;\n}\n\n.notice {\n margin: 0;\n color: var(--dsw-alias-state-success-primary);\n font-size: 12px;\n line-height: 18px;\n}\n\n.actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n}\n\n.actions button {\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 5px 12px;\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n\n.actions button:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.actions button:disabled {\n cursor: not-allowed;\n opacity: 0.55;\n}\n\n.actions .primary {\n border-color: var(--dsw-alias-button-primary-fill);\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-foreground);\n}\n\n.actions .primary:hover {\n background: var(--dsw-alias-button-primary-hover);\n}\n";
|
|
15479
15479
|
document.head.appendChild(style);
|
|
15480
15480
|
}
|
|
15481
15481
|
}
|
|
15482
15482
|
})();
|
|
15483
|
-
var GlobalEnvEditor_default = { "panel": "panel", "hint": "hint", "muted": "muted", "row": "row", "name": "name", "value": "value", "secretToggle": "secretToggle", "danger": "danger", "overlay": "overlay", "dialog": "dialog", "dialogTitle": "dialogTitle", "bulkText": "bulkText", "retryRow": "retryRow", "error": "error", "notice": "notice", "actions": "actions", "primary": "primary" };
|
|
15483
|
+
var GlobalEnvEditor_default = { "panel": "panel", "hint": "hint", "muted": "muted", "row": "row", "name": "name", "value": "value", "secretToggle": "secretToggle", "secretOn": "secretOn", "danger": "danger", "overlay": "overlay", "dialog": "dialog", "dialogTitle": "dialogTitle", "bulkText": "bulkText", "retryRow": "retryRow", "error": "error", "notice": "notice", "actions": "actions", "primary": "primary" };
|
|
15484
15484
|
|
|
15485
15485
|
// src/client/GlobalEnvEditor.tsx
|
|
15486
15486
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
@@ -15490,7 +15490,7 @@ function nextKey() {
|
|
|
15490
15490
|
return `genv-${rowSeq}`;
|
|
15491
15491
|
}
|
|
15492
15492
|
function emptyRow() {
|
|
15493
|
-
return { key: nextKey(), name: "", secret:
|
|
15493
|
+
return { key: nextKey(), name: "", secret: true, value: "", configured: false };
|
|
15494
15494
|
}
|
|
15495
15495
|
function GlobalEnvEditor({ injected, t, onApplied }) {
|
|
15496
15496
|
const [rows, setRows] = (0, import_react3.useState)([]);
|
|
@@ -15512,7 +15512,8 @@ function GlobalEnvEditor({ injected, t, onApplied }) {
|
|
|
15512
15512
|
key: nextKey(),
|
|
15513
15513
|
name: row.name,
|
|
15514
15514
|
secret: row.secret,
|
|
15515
|
-
|
|
15515
|
+
// 展示 process.env 优先返回的值(非 secret);secret 值不展示
|
|
15516
|
+
value: row.secret ? "" : row.value ?? "",
|
|
15516
15517
|
configured: row.configured
|
|
15517
15518
|
})));
|
|
15518
15519
|
setLoaded(true);
|
|
@@ -15584,7 +15585,8 @@ function GlobalEnvEditor({ injected, t, onApplied }) {
|
|
|
15584
15585
|
vars.push({
|
|
15585
15586
|
name,
|
|
15586
15587
|
secret: row.secret,
|
|
15587
|
-
|
|
15588
|
+
// 填了值就提交(secret 也会写入凭据文档);留空不提交(secret 保留原值)
|
|
15589
|
+
...row.value.trim().length > 0 ? { value: row.value } : {}
|
|
15588
15590
|
});
|
|
15589
15591
|
}
|
|
15590
15592
|
const seq = ++seqRef.current;
|
|
@@ -15592,8 +15594,15 @@ function GlobalEnvEditor({ injected, t, onApplied }) {
|
|
|
15592
15594
|
setError(null);
|
|
15593
15595
|
setNotice(null);
|
|
15594
15596
|
void injected.envSet(vars).then(
|
|
15595
|
-
() => {
|
|
15597
|
+
(state) => {
|
|
15596
15598
|
if (seq !== seqRef.current) return;
|
|
15599
|
+
setRows(state.vars.map((row) => ({
|
|
15600
|
+
key: nextKey(),
|
|
15601
|
+
name: row.name,
|
|
15602
|
+
secret: row.secret,
|
|
15603
|
+
value: row.secret ? "" : row.value ?? "",
|
|
15604
|
+
configured: row.configured
|
|
15605
|
+
})));
|
|
15597
15606
|
setNotice(t("globalEnvDone"));
|
|
15598
15607
|
onApplied();
|
|
15599
15608
|
},
|
|
@@ -15631,13 +15640,13 @@ function GlobalEnvEditor({ injected, t, onApplied }) {
|
|
|
15631
15640
|
onChange: (event) => update(row.key, { value: event.currentTarget.value })
|
|
15632
15641
|
}
|
|
15633
15642
|
),
|
|
15634
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: GlobalEnvEditor_default.secretToggle, children: [
|
|
15643
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { className: `${GlobalEnvEditor_default.secretToggle} ${row.secret ? GlobalEnvEditor_default.secretOn : ""}`, title: t("globalEnvSecretHint"), children: [
|
|
15635
15644
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
15636
15645
|
"input",
|
|
15637
15646
|
{
|
|
15638
15647
|
type: "checkbox",
|
|
15639
15648
|
checked: row.secret,
|
|
15640
|
-
|
|
15649
|
+
"aria-label": t("globalEnvSecret"),
|
|
15641
15650
|
onChange: (event) => update(row.key, { secret: event.currentTarget.checked })
|
|
15642
15651
|
}
|
|
15643
15652
|
),
|
|
@@ -16132,7 +16141,7 @@ var zh = {
|
|
|
16132
16141
|
globalEnvHint: "\u8FDB\u7A0B\u7EA7\u73AF\u5883\u53D8\u91CF\uFF0C\u4F9B\u6240\u6709 MCP \u670D\u52A1\u5668\u7684\u8BF7\u6C42\u5934\u66FF\u6362\u5F15\u7528\uFF08headers \u503C\u5199 ${\u53D8\u91CF\u540D} \u6216\u76F4\u63A5\u5199\u53D8\u91CF\u540D\uFF09\u3002secret \u503C\u5199\u5165\u51ED\u636E\u6587\u6863\uFF0C\u4E0D\u5728\u6B64\u660E\u6587\u663E\u793A\uFF1B\u7559\u7A7A\u4FDD\u7559\u539F\u503C\u3002",
|
|
16133
16142
|
globalEnvName: "\u53D8\u91CF\u540D",
|
|
16134
16143
|
globalEnvValue: "\u503C",
|
|
16135
|
-
globalEnvSecret: "
|
|
16144
|
+
globalEnvSecret: "\u79C1\u5BC6",
|
|
16136
16145
|
globalEnvSecretHint: "\u503C\u53EA\u5199\uFF0C\u4FDD\u5B58\u540E\u4E0D\u53EF\u89C1\uFF1B\u7559\u7A7A\u8868\u793A\u4FDD\u7559\u539F\u503C",
|
|
16137
16146
|
globalEnvAdd: "\u6DFB\u52A0\u53D8\u91CF",
|
|
16138
16147
|
globalEnvBulk: "\u6279\u91CF\u6DFB\u52A0",
|