@eddyskywalker/dsh-chatgpt-subscription 0.67.0 → 0.68.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 +24 -0
- package/README.md +1 -1
- package/lib/client.js +75 -632
- package/lib/client.js.map +1 -1
- package/lib/index.js +183 -1872
- package/lib/types/client/cline-pass/ClinePassSection.d.ts +1 -1
- package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -1
- package/lib/types/client/cline-pass/api.d.ts +2 -36
- package/lib/types/client/cline-pass/api.d.ts.map +1 -1
- package/lib/types/client/cline-pass/locales.d.ts +30 -264
- package/lib/types/client/cline-pass/locales.d.ts.map +1 -1
- package/lib/types/client/cline-pass/styles.d.ts +2 -2
- package/lib/types/client/cline-pass/styles.d.ts.map +1 -1
- package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -1
- package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/antigravity/adapter.d.ts.map +1 -1
- package/lib/types/host/antigravity/client-version.d.ts.map +1 -1
- package/lib/types/host/antigravity/types.d.ts +5 -5
- package/lib/types/host/antigravity/types.d.ts.map +1 -1
- package/lib/types/host/cline-pass/adapter.d.ts +3 -4
- package/lib/types/host/cline-pass/adapter.d.ts.map +1 -1
- package/lib/types/host/cline-pass/client.d.ts +0 -22
- package/lib/types/host/cline-pass/client.d.ts.map +1 -1
- package/lib/types/host/cline-pass/engine.d.ts +9 -147
- package/lib/types/host/cline-pass/engine.d.ts.map +1 -1
- package/lib/types/host/cline-pass/line.d.ts.map +1 -1
- package/lib/types/host/cline-pass/mapper.d.ts +1 -3
- package/lib/types/host/cline-pass/mapper.d.ts.map +1 -1
- package/lib/types/host/cline-pass/protocol.d.ts +1 -161
- package/lib/types/host/cline-pass/protocol.d.ts.map +1 -1
- package/lib/types/host/cline-pass/routes.d.ts +2 -7
- package/lib/types/host/cline-pass/routes.d.ts.map +1 -1
- package/lib/types/host/cline-pass/store.d.ts +11 -35
- package/lib/types/host/cline-pass/store.d.ts.map +1 -1
- package/lib/types/host/cline-pass/token-store.d.ts +1 -10
- package/lib/types/host/cline-pass/token-store.d.ts.map +1 -1
- package/lib/types/host/cline-pass/tools.d.ts.map +1 -1
- package/lib/types/host/cline-pass/types.d.ts +7 -76
- package/lib/types/host/cline-pass/types.d.ts.map +1 -1
- package/lib/types/host/opendesign/adapter.d.ts.map +1 -1
- package/lib/types/host/opendesign/mapper.d.ts +13 -1
- package/lib/types/host/opendesign/mapper.d.ts.map +1 -1
- package/lib/types/host/opendesign/routes.d.ts.map +1 -1
- package/lib/types/index.d.ts +4 -4
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/cline-pass-contracts.d.ts +6 -92
- package/lib/types/shared/cline-pass-contracts.d.ts.map +1 -1
- package/lib/types/shared/opendesign-contracts.d.ts +1 -1
- package/lib/types/shared/opendesign-contracts.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -14115,8 +14115,8 @@ window.__ModuleLoader__.load({
|
|
|
14115
14115
|
* When Cline routes a model id onto the VMC fallback net, the serving channel
|
|
14116
14116
|
* reports itself as `openai-compatible-private` and the resolved slug moves
|
|
14117
14117
|
* under `private/…-contributor`. Answers from it may be used for training and
|
|
14118
|
-
* carry no zero-data-retention guarantee, so
|
|
14119
|
-
* user must see
|
|
14118
|
+
* carry no zero-data-retention guarantee, so an answer served there is a fact
|
|
14119
|
+
* the user must see.
|
|
14120
14120
|
*/
|
|
14121
14121
|
const CLINE_PASS_ANONYMOUS_UPSTREAMS = Object.freeze(["openai-compatible-private"]);
|
|
14122
14122
|
/** Whether a channel name or resolved slug names the anonymous contributor route. */
|
|
@@ -14240,26 +14240,8 @@ window.__ModuleLoader__.load({
|
|
|
14240
14240
|
contextWindow
|
|
14241
14241
|
});
|
|
14242
14242
|
}
|
|
14243
|
-
|
|
14244
|
-
return api$9.post("/models/
|
|
14245
|
-
model,
|
|
14246
|
-
...pin
|
|
14247
|
-
});
|
|
14248
|
-
}
|
|
14249
|
-
resetPin(model) {
|
|
14250
|
-
return api$9.post("/models/reset", { model });
|
|
14251
|
-
}
|
|
14252
|
-
probe(model) {
|
|
14253
|
-
return api$9.post("/models/probe", { model });
|
|
14254
|
-
}
|
|
14255
|
-
validate(model) {
|
|
14256
|
-
return api$9.post("/models/validate", { model });
|
|
14257
|
-
}
|
|
14258
|
-
test(model, pin = {}) {
|
|
14259
|
-
return api$9.post("/models/test", {
|
|
14260
|
-
model,
|
|
14261
|
-
...pin
|
|
14262
|
-
});
|
|
14243
|
+
test(model) {
|
|
14244
|
+
return api$9.post("/models/test", { model });
|
|
14263
14245
|
}
|
|
14264
14246
|
setVisibility(model, visible) {
|
|
14265
14247
|
return api$9.post("/models/visibility", {
|
|
@@ -14377,52 +14359,17 @@ window.__ModuleLoader__.load({
|
|
|
14377
14359
|
contextReset: "恢复默认",
|
|
14378
14360
|
contextResetAll: "全部恢复默认",
|
|
14379
14361
|
contextEmpty: "勾选至少一个模型后,这里会出现它的上下文窗口设置。",
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
validate: "校验",
|
|
14385
|
-
validating: "校验中...",
|
|
14386
|
-
testPin: "测试",
|
|
14387
|
-
testingPin: "测试中...",
|
|
14388
|
-
savePin: "保存钉住",
|
|
14389
|
-
savingPin: "保存中...",
|
|
14390
|
-
resetPin: "恢复自动路由",
|
|
14391
|
-
pinAuto: "自动路由",
|
|
14392
|
-
pinPinned: "钉住顺序:{list}",
|
|
14393
|
-
pinExcluded: "已排除:{list}",
|
|
14394
|
-
pinMode: "钉住模式",
|
|
14395
|
-
sort: "排序",
|
|
14396
|
-
sortNone: "不排序",
|
|
14397
|
-
sortCost: "成本优先",
|
|
14398
|
-
sortTtft: "首 token 优先",
|
|
14399
|
-
sortTps: "吞吐优先",
|
|
14400
|
-
modeStrict: "严格(只允许钉住的渠道)",
|
|
14401
|
-
modePreferred: "优先(按顺序尝试,失败自动切换)",
|
|
14402
|
-
noChannels: "尚未探测渠道。点「探测」获取这个模型的可用上游。",
|
|
14403
|
-
channelHint: "点击渠道名按顺序钉住;再次点击移除。⊘ 切换排除。",
|
|
14362
|
+
testSection: "模型测试",
|
|
14363
|
+
testHint: "由 Cline 网关自动选择上游。这里只读回实际服务渠道,不提供钉选或排除。",
|
|
14364
|
+
testModel: "测试",
|
|
14365
|
+
testingModel: "测试中...",
|
|
14404
14366
|
lastServed: "最近由 {provider} 服务({ms}ms)",
|
|
14405
14367
|
anonymousChannel: "匿名路由",
|
|
14406
|
-
anonymousChannelHint: "网关的匿名贡献者路由:回答可能被用于训练,无零数据保留(ZDR)保证",
|
|
14407
14368
|
anonymousServed: "注意:本次回答来自网关的匿名贡献者路由({provider}),可能被用于训练且无 ZDR 保证",
|
|
14408
14369
|
fingerprintOk: "第一方 DeepSeek 指纹:{fingerprint}",
|
|
14409
|
-
pinLikelyIgnored: "该模型当前只发现匿名路由,钉选很可能被网关静默忽略",
|
|
14410
|
-
addChannel: "添加",
|
|
14411
|
-
manualChannelPlaceholder: "手动输入渠道名(如 deepseek)…",
|
|
14412
|
-
manualChannelHint: "探测依赖网关报错列出渠道;当网关把模型改指匿名路由时探测拿不到列表。渠道名是网关级词汇(其他模型探测到的可直接选用),手动钉选后请用「测试」回读验证是否被采纳。",
|
|
14413
|
-
hasLabel: "能力过滤 (has)",
|
|
14414
|
-
hasHint: "Vercel 网关的模型能力过滤,只写进 providerOptions.gateway.has。1017 默认 vision + implicit-caching(实测是钉选与渠道探测生效的必要条件);其他模型通常留空。",
|
|
14415
|
-
pinHas: "能力过滤:{list}",
|
|
14416
|
-
testHas: "本次能力过滤:{list}",
|
|
14417
|
-
probedAt: "探测于 {time}",
|
|
14418
14370
|
pipeline: "管线:{pipeline}",
|
|
14419
|
-
notPinnable: "该模型当前不支持钉住",
|
|
14420
14371
|
testServed: "测试成功:由 {provider} 服务({ms}ms)",
|
|
14421
14372
|
testFailed: "测试失败:{detail}",
|
|
14422
|
-
testTrace: "尝试轨迹",
|
|
14423
|
-
warnings: "警告",
|
|
14424
|
-
probeResult: "探测结果",
|
|
14425
|
-
validateSummary: "校验结果:可用 {ok} / 限流 {limited} / 不可钉 {bad} / 认证失败 {auth} / 未知 {unknown}",
|
|
14426
14373
|
usageSection: "官方额度",
|
|
14427
14374
|
usageHint: "额度属于账号,不属于线路。刷新会为每个可用账号各发一次请求。",
|
|
14428
14375
|
usageRefresh: "刷新额度",
|
|
@@ -14449,10 +14396,6 @@ window.__ModuleLoader__.load({
|
|
|
14449
14396
|
maxConcurrentRequests: "每账号并发流上限(0 = 不限)",
|
|
14450
14397
|
streamIdleTimeoutMs: "流空闲超时(ms)",
|
|
14451
14398
|
historyLimit: "历史保留条数",
|
|
14452
|
-
pinSpelling: "钉住字段写法",
|
|
14453
|
-
pinSpellingBoth: "两种写法都发(推荐)",
|
|
14454
|
-
pinSpellingDetected: "只发探测到的写法",
|
|
14455
|
-
pinSpellingHint: "网关可能在两次请求间切换管线,只发一种写法会让钉住悄悄失效。",
|
|
14456
14399
|
exposeTools: "注册 cline_pass_* 管理工具",
|
|
14457
14400
|
exposeToolsHint: "工具定义会出现在每次请求的工具列表里,默认关闭。改动需重启 DSH 生效。",
|
|
14458
14401
|
saveSettings: "保存设置",
|
|
@@ -14461,7 +14404,7 @@ window.__ModuleLoader__.load({
|
|
|
14461
14404
|
restartRequired: "已保存;管理工具需重启 DSH 后生效。",
|
|
14462
14405
|
limitsSection: "说明",
|
|
14463
14406
|
limitKey: "API Key 存储在系统加密凭据库中,界面只显示掩码。",
|
|
14464
|
-
limitGateway: "请求经 Cline
|
|
14407
|
+
limitGateway: "请求经 Cline 网关转发,实际服务渠道完全由网关自动决定;面板只读回真实渠道,不发送客户端钉选字段。",
|
|
14465
14408
|
limitRoute: "模型路由按 provider id 抢占:若已有其他插件占用 cline-pass,本卡仍可配置,但请求由对方服务。",
|
|
14466
14409
|
limitQuota: "额度窗口来自网关的 usage-limits 接口;接口失败时卡片保留上一次读数并显示原因。"
|
|
14467
14410
|
};
|
|
@@ -14540,52 +14483,17 @@ window.__ModuleLoader__.load({
|
|
|
14540
14483
|
contextReset: "Restore default",
|
|
14541
14484
|
contextResetAll: "Restore all defaults",
|
|
14542
14485
|
contextEmpty: "Check at least one model to configure its context window here.",
|
|
14543
|
-
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
validate: "Validate",
|
|
14548
|
-
validating: "Validating...",
|
|
14549
|
-
testPin: "Test",
|
|
14550
|
-
testingPin: "Testing...",
|
|
14551
|
-
savePin: "Save pin",
|
|
14552
|
-
savingPin: "Saving...",
|
|
14553
|
-
resetPin: "Back to automatic",
|
|
14554
|
-
pinAuto: "automatic routing",
|
|
14555
|
-
pinPinned: "Pinned order: {list}",
|
|
14556
|
-
pinExcluded: "Excluded: {list}",
|
|
14557
|
-
pinMode: "Pin mode",
|
|
14558
|
-
sort: "Sort",
|
|
14559
|
-
sortNone: "No sort",
|
|
14560
|
-
sortCost: "Cost first",
|
|
14561
|
-
sortTtft: "First token first",
|
|
14562
|
-
sortTps: "Throughput first",
|
|
14563
|
-
modeStrict: "Strict (only the pinned channels)",
|
|
14564
|
-
modePreferred: "Preferred (try in order, fall over on failure)",
|
|
14565
|
-
noChannels: "No channels discovered yet. Use \"Probe\" to read the model upstream list.",
|
|
14566
|
-
channelHint: "Click a channel to add it to the pin order; click again to remove. ⊘ toggles exclusion.",
|
|
14486
|
+
testSection: "Model tests",
|
|
14487
|
+
testHint: "Cline chooses the upstream automatically. Only the observed serving route is shown; there are no pinning or exclusion controls.",
|
|
14488
|
+
testModel: "Test",
|
|
14489
|
+
testingModel: "Testing...",
|
|
14567
14490
|
lastServed: "Last served by {provider} ({ms}ms)",
|
|
14568
14491
|
anonymousChannel: "anonymous route",
|
|
14569
|
-
anonymousChannelHint: "The gateway's anonymous contributor route: answers may be used for training, with no zero-data-retention guarantee",
|
|
14570
14492
|
anonymousServed: "Note: this answer was served by the gateway's anonymous contributor route ({provider}) — it may be used for training and carries no ZDR guarantee",
|
|
14571
14493
|
fingerprintOk: "First-party DeepSeek fingerprint: {fingerprint}",
|
|
14572
|
-
pinLikelyIgnored: "Only the anonymous route has been discovered for this model, so a pin will most likely be silently ignored by the gateway",
|
|
14573
|
-
addChannel: "Add",
|
|
14574
|
-
manualChannelPlaceholder: "type a channel name (e.g. deepseek)…",
|
|
14575
|
-
manualChannelHint: "Discovery relies on the gateway naming its channels in an error; a model redirected to the anonymous route yields no list. Channel names are a gateway-wide vocabulary (anything another model discovered is offered), so pin by name anyway and verify with Test.",
|
|
14576
|
-
hasLabel: "Capability filter (has)",
|
|
14577
|
-
hasHint: "Vercel gateway capability filter, written only to providerOptions.gateway.has. The 1017 default is vision + implicit-caching (measured as required for pinning and discovery); leave empty for other models unless a probe says otherwise.",
|
|
14578
|
-
pinHas: "Capabilities: {list}",
|
|
14579
|
-
testHas: "Capabilities sent: {list}",
|
|
14580
|
-
probedAt: "Probed {time}",
|
|
14581
14494
|
pipeline: "Pipeline: {pipeline}",
|
|
14582
|
-
notPinnable: "This model is not pinnable right now",
|
|
14583
14495
|
testServed: "Test passed: served by {provider} ({ms}ms)",
|
|
14584
14496
|
testFailed: "Test failed: {detail}",
|
|
14585
|
-
testTrace: "Attempts",
|
|
14586
|
-
warnings: "Warnings",
|
|
14587
|
-
probeResult: "Probe result",
|
|
14588
|
-
validateSummary: "Validate: available {ok} / rate-limited {limited} / not-pinnable {bad} / auth-failed {auth} / unknown {unknown}",
|
|
14589
14497
|
usageSection: "Official usage limits",
|
|
14590
14498
|
usageHint: "Limits belong to accounts, not to the line. Refreshing sends one request per usable account.",
|
|
14591
14499
|
usageRefresh: "Refresh usage",
|
|
@@ -14612,10 +14520,6 @@ window.__ModuleLoader__.load({
|
|
|
14612
14520
|
maxConcurrentRequests: "Streams per account (0 = unlimited)",
|
|
14613
14521
|
streamIdleTimeoutMs: "Stream idle timeout (ms)",
|
|
14614
14522
|
historyLimit: "History rows retained",
|
|
14615
|
-
pinSpelling: "Pin field spelling",
|
|
14616
|
-
pinSpellingBoth: "Write both spellings (recommended)",
|
|
14617
|
-
pinSpellingDetected: "Write only the probed spelling",
|
|
14618
|
-
pinSpellingHint: "The gateway can switch pipelines between calls; one spelling means the pin silently disappears when it does.",
|
|
14619
14523
|
exposeTools: "Register the cline_pass_* management tools",
|
|
14620
14524
|
exposeToolsHint: "Their definitions ride in every request tool list, so this is off by default. Takes effect after a DSH restart.",
|
|
14621
14525
|
saveSettings: "Save settings",
|
|
@@ -14624,7 +14528,7 @@ window.__ModuleLoader__.load({
|
|
|
14624
14528
|
restartRequired: "Saved; the management tools take effect after a DSH restart.",
|
|
14625
14529
|
limitsSection: "Notes",
|
|
14626
14530
|
limitKey: "API keys live in the OS credential store; the card only ever shows the alias.",
|
|
14627
|
-
limitGateway: "
|
|
14531
|
+
limitGateway: "Cline automatically chooses the serving channel. The card only reads it back and never sends client-side pinning fields.",
|
|
14628
14532
|
limitRoute: "The route is claimed by provider id: if another plugin already serves cline-pass, this card still configures the line but that provider answers the requests.",
|
|
14629
14533
|
limitQuota: "Quota windows come from the gateway usage-limits endpoint; when it fails the card keeps the previous reading and says why."
|
|
14630
14534
|
};
|
|
@@ -14648,12 +14552,6 @@ window.__ModuleLoader__.load({
|
|
|
14648
14552
|
function detail$1(error) {
|
|
14649
14553
|
return error instanceof Error ? error.message : String(error);
|
|
14650
14554
|
}
|
|
14651
|
-
function statusTone(status) {
|
|
14652
|
-
if (status === "ok") return "ok";
|
|
14653
|
-
if (status === "limited") return "warn";
|
|
14654
|
-
if (status === "bad" || status === "auth") return "danger";
|
|
14655
|
-
return "neutral";
|
|
14656
|
-
}
|
|
14657
14555
|
function settingsFormOf$1(status) {
|
|
14658
14556
|
return {
|
|
14659
14557
|
baseURL: status.settings.baseURL,
|
|
@@ -14661,8 +14559,7 @@ window.__ModuleLoader__.load({
|
|
|
14661
14559
|
defaultMaxTokens: String(status.settings.defaultMaxTokens),
|
|
14662
14560
|
maxConcurrentRequests: String(status.settings.maxConcurrentRequests),
|
|
14663
14561
|
streamIdleTimeoutMs: String(status.settings.streamIdleTimeoutMs),
|
|
14664
|
-
historyLimit: String(status.settings.historyLimit)
|
|
14665
|
-
pinSpelling: status.settings.pinSpelling
|
|
14562
|
+
historyLimit: String(status.settings.historyLimit)
|
|
14666
14563
|
};
|
|
14667
14564
|
}
|
|
14668
14565
|
/**
|
|
@@ -14671,7 +14568,7 @@ window.__ModuleLoader__.load({
|
|
|
14671
14568
|
* The account card, its badges and the rotation picker are the shared
|
|
14672
14569
|
* {@link AccountPoolSection}, so this line looks like every other provider tab
|
|
14673
14570
|
* by construction. What is written here is only what is genuinely Cline Pass's:
|
|
14674
|
-
* pasting a key,
|
|
14571
|
+
* pasting a key, ordinary model tests, the official quota windows and the
|
|
14675
14572
|
* in-process request history.
|
|
14676
14573
|
*/
|
|
14677
14574
|
function ClinePassSection(props) {
|
|
@@ -14684,7 +14581,6 @@ window.__ModuleLoader__.load({
|
|
|
14684
14581
|
const [keyBaseURL, setKeyBaseURL] = (0, react.useState)("");
|
|
14685
14582
|
const [showKeyForm, setShowKeyForm] = (0, react.useState)(false);
|
|
14686
14583
|
const [drafts, setDrafts] = (0, react.useState)({});
|
|
14687
|
-
const [pinDrafts, setPinDrafts] = (0, react.useState)({});
|
|
14688
14584
|
const [results, setResults] = (0, react.useState)({});
|
|
14689
14585
|
const [settingsForm, setSettingsForm] = (0, react.useState)(null);
|
|
14690
14586
|
const [history, setHistory] = (0, react.useState)(null);
|
|
@@ -14960,8 +14856,7 @@ window.__ModuleLoader__.load({
|
|
|
14960
14856
|
setError(null);
|
|
14961
14857
|
API$4.updateSettings({
|
|
14962
14858
|
baseURL: settingsForm.baseURL,
|
|
14963
|
-
...numbers
|
|
14964
|
-
pinSpelling: settingsForm.pinSpelling
|
|
14859
|
+
...numbers
|
|
14965
14860
|
}).then((next) => {
|
|
14966
14861
|
applyStatus(next);
|
|
14967
14862
|
setSettingsForm(settingsFormOf$1(next));
|
|
@@ -14995,58 +14890,6 @@ window.__ModuleLoader__.load({
|
|
|
14995
14890
|
}, [pool, status?.usage]);
|
|
14996
14891
|
const models = status?.models ?? [];
|
|
14997
14892
|
const busyAny = busy !== null;
|
|
14998
|
-
const pinDraftFor = (0, react.useCallback)((model) => pinDrafts[model.id] ?? {
|
|
14999
|
-
upstreams: [...model.pinned],
|
|
15000
|
-
exclude: [...model.excluded],
|
|
15001
|
-
pinMode: model.pinMode,
|
|
15002
|
-
sort: model.sort,
|
|
15003
|
-
has: [...model.has ?? []]
|
|
15004
|
-
}, [pinDrafts]);
|
|
15005
|
-
const editPin = (0, react.useCallback)((model, patch) => {
|
|
15006
|
-
setPinDrafts((current) => ({
|
|
15007
|
-
...current,
|
|
15008
|
-
[model.id]: {
|
|
15009
|
-
...current[model.id] ?? pinDraftFor(model),
|
|
15010
|
-
...patch
|
|
15011
|
-
}
|
|
15012
|
-
}));
|
|
15013
|
-
}, [pinDraftFor]);
|
|
15014
|
-
const savePin = (0, react.useCallback)((model) => {
|
|
15015
|
-
const draft = pinDraftFor(model);
|
|
15016
|
-
setBusy("pin:" + model.id);
|
|
15017
|
-
setError(null);
|
|
15018
|
-
API$4.pinModel(model.id, draft).then((outcome) => {
|
|
15019
|
-
applyStatus(outcome.status);
|
|
15020
|
-
setPinDrafts((current) => {
|
|
15021
|
-
const next = { ...current };
|
|
15022
|
-
delete next[model.id];
|
|
15023
|
-
return next;
|
|
15024
|
-
});
|
|
15025
|
-
setResults((current) => ({
|
|
15026
|
-
...current,
|
|
15027
|
-
[model.id]: {
|
|
15028
|
-
...current[model.id],
|
|
15029
|
-
pinWarnings: outcome.warnings
|
|
15030
|
-
}
|
|
15031
|
-
}));
|
|
15032
|
-
}).catch((cause) => setError(detail$1(cause))).finally(() => setBusy(null));
|
|
15033
|
-
}, [pinDraftFor, applyStatus]);
|
|
15034
|
-
const resetPin = (0, react.useCallback)((model) => {
|
|
15035
|
-
setBusy("pin:" + model.id);
|
|
15036
|
-
setError(null);
|
|
15037
|
-
API$4.resetPin(model.id).then((outcome) => {
|
|
15038
|
-
applyStatus(outcome.status);
|
|
15039
|
-
setPinDrafts((current) => {
|
|
15040
|
-
const next = { ...current };
|
|
15041
|
-
delete next[model.id];
|
|
15042
|
-
return next;
|
|
15043
|
-
});
|
|
15044
|
-
setResults((current) => ({
|
|
15045
|
-
...current,
|
|
15046
|
-
[model.id]: {}
|
|
15047
|
-
}));
|
|
15048
|
-
}).catch((cause) => setError(detail$1(cause))).finally(() => setBusy(null));
|
|
15049
|
-
}, [applyStatus]);
|
|
15050
14893
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15051
14894
|
className: "dsha-page",
|
|
15052
14895
|
children: [
|
|
@@ -15278,7 +15121,7 @@ window.__ModuleLoader__.load({
|
|
|
15278
15121
|
children: t.modelsHint
|
|
15279
15122
|
}),
|
|
15280
15123
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("form", {
|
|
15281
|
-
className: "dshcp-
|
|
15124
|
+
className: "dshcp-search-row",
|
|
15282
15125
|
onSubmit: (event) => {
|
|
15283
15126
|
event.preventDefault();
|
|
15284
15127
|
searchCatalog();
|
|
@@ -15423,12 +15266,12 @@ window.__ModuleLoader__.load({
|
|
|
15423
15266
|
children: [
|
|
15424
15267
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15425
15268
|
className: "dsha-grouphead",
|
|
15426
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.
|
|
15269
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t.testSection })
|
|
15427
15270
|
}),
|
|
15428
15271
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
15429
15272
|
className: "dsha-muted",
|
|
15430
15273
|
style: { fontSize: 12 },
|
|
15431
|
-
children: t.
|
|
15274
|
+
children: t.testHint
|
|
15432
15275
|
}),
|
|
15433
15276
|
enabledModels.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15434
15277
|
className: "dsha-empty",
|
|
@@ -15436,117 +15279,32 @@ window.__ModuleLoader__.load({
|
|
|
15436
15279
|
}),
|
|
15437
15280
|
enabledModels.map((model) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
15438
15281
|
className: "dshcp-model",
|
|
15439
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
children: model.pipeline === "" ? "—" : model.pipeline
|
|
15448
|
-
}),
|
|
15449
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
15450
|
-
className: "dshcp-pill",
|
|
15451
|
-
"data-tone": model.pinned.length > 0 ? "ok" : "neutral",
|
|
15452
|
-
children: model.pinned.length === 0 ? t.pinAuto : `${t.pinPinned.replace("{list}", model.pinned.join(" > "))}`
|
|
15453
|
-
}),
|
|
15454
|
-
model.excluded.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
15455
|
-
className: "dshcp-pill",
|
|
15456
|
-
"data-tone": "warn",
|
|
15457
|
-
children: t.pinExcluded.replace("{list}", model.excluded.join(", "))
|
|
15458
|
-
})
|
|
15459
|
-
] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChannelEditor, {
|
|
15282
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
15283
|
+
className: "dshcp-model-name",
|
|
15284
|
+
title: model.id,
|
|
15285
|
+
children: model.name
|
|
15286
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
15287
|
+
className: "dshcp-pill",
|
|
15288
|
+
children: model.pipeline === "" ? "—" : model.pipeline
|
|
15289
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModelTestPanel, {
|
|
15460
15290
|
model,
|
|
15461
|
-
draft: pinDraftFor(model),
|
|
15462
15291
|
result: results[model.id] ?? {},
|
|
15463
15292
|
busy,
|
|
15464
15293
|
t,
|
|
15465
|
-
suggestions: [...new Set(models.flatMap((entry) => entry.upstreams))],
|
|
15466
|
-
onToggleChannel: (upstream) => {
|
|
15467
|
-
const draft = pinDraftFor(model);
|
|
15468
|
-
editPin(model, {
|
|
15469
|
-
upstreams: draft.upstreams.includes(upstream) ? draft.upstreams.filter((name) => name !== upstream) : [...draft.upstreams, upstream],
|
|
15470
|
-
exclude: draft.exclude.filter((name) => name !== upstream)
|
|
15471
|
-
});
|
|
15472
|
-
},
|
|
15473
|
-
onToggleExclude: (upstream) => {
|
|
15474
|
-
const draft = pinDraftFor(model);
|
|
15475
|
-
editPin(model, {
|
|
15476
|
-
exclude: draft.exclude.includes(upstream) ? draft.exclude.filter((name) => name !== upstream) : [...draft.exclude, upstream],
|
|
15477
|
-
upstreams: draft.upstreams.filter((name) => name !== upstream)
|
|
15478
|
-
});
|
|
15479
|
-
},
|
|
15480
|
-
onPinMode: (pinMode) => editPin(model, { pinMode }),
|
|
15481
|
-
onSort: (sort) => editPin(model, { sort }),
|
|
15482
|
-
onHas: (has) => editPin(model, { has }),
|
|
15483
|
-
onProbe: () => {
|
|
15484
|
-
setBusy("probe:" + model.id);
|
|
15485
|
-
setError(null);
|
|
15486
|
-
API$4.probe(model.id).then((outcome) => {
|
|
15487
|
-
applyStatus(outcome.status);
|
|
15488
|
-
setResults((current) => ({
|
|
15489
|
-
...current,
|
|
15490
|
-
[model.id]: {
|
|
15491
|
-
...current[model.id],
|
|
15492
|
-
probe: outcome.result
|
|
15493
|
-
}
|
|
15494
|
-
}));
|
|
15495
|
-
}).catch((cause) => setResults((current) => ({
|
|
15496
|
-
...current,
|
|
15497
|
-
[model.id]: {
|
|
15498
|
-
...current[model.id],
|
|
15499
|
-
error: detail$1(cause)
|
|
15500
|
-
}
|
|
15501
|
-
}))).finally(() => setBusy(null));
|
|
15502
|
-
},
|
|
15503
|
-
onValidate: () => {
|
|
15504
|
-
setBusy("validate:" + model.id);
|
|
15505
|
-
setError(null);
|
|
15506
|
-
API$4.validate(model.id).then((outcome) => {
|
|
15507
|
-
applyStatus(outcome.status);
|
|
15508
|
-
setResults((current) => ({
|
|
15509
|
-
...current,
|
|
15510
|
-
[model.id]: {
|
|
15511
|
-
...current[model.id],
|
|
15512
|
-
validate: outcome.result
|
|
15513
|
-
}
|
|
15514
|
-
}));
|
|
15515
|
-
}).catch((cause) => setResults((current) => ({
|
|
15516
|
-
...current,
|
|
15517
|
-
[model.id]: {
|
|
15518
|
-
...current[model.id],
|
|
15519
|
-
error: detail$1(cause)
|
|
15520
|
-
}
|
|
15521
|
-
}))).finally(() => setBusy(null));
|
|
15522
|
-
},
|
|
15523
15294
|
onTest: () => {
|
|
15524
|
-
const draft = pinDraftFor(model);
|
|
15525
15295
|
setBusy("test-model:" + model.id);
|
|
15526
15296
|
setError(null);
|
|
15527
|
-
API$4.test(model.id
|
|
15528
|
-
...draft.upstreams.length === 0 ? {} : { upstreams: draft.upstreams },
|
|
15529
|
-
...draft.exclude.length === 0 ? {} : { exclude: draft.exclude },
|
|
15530
|
-
has: draft.has
|
|
15531
|
-
}).then((outcome) => {
|
|
15297
|
+
API$4.test(model.id).then((outcome) => {
|
|
15532
15298
|
applyStatus(outcome.status);
|
|
15533
15299
|
setResults((current) => ({
|
|
15534
15300
|
...current,
|
|
15535
|
-
[model.id]: {
|
|
15536
|
-
...current[model.id],
|
|
15537
|
-
test: outcome.result
|
|
15538
|
-
}
|
|
15301
|
+
[model.id]: { test: outcome.result }
|
|
15539
15302
|
}));
|
|
15540
15303
|
}).catch((cause) => setResults((current) => ({
|
|
15541
15304
|
...current,
|
|
15542
|
-
[model.id]: {
|
|
15543
|
-
...current[model.id],
|
|
15544
|
-
error: detail$1(cause)
|
|
15545
|
-
}
|
|
15305
|
+
[model.id]: { error: detail$1(cause) }
|
|
15546
15306
|
}))).finally(() => setBusy(null));
|
|
15547
|
-
}
|
|
15548
|
-
onSave: () => savePin(model),
|
|
15549
|
-
onReset: () => resetPin(model)
|
|
15307
|
+
}
|
|
15550
15308
|
})]
|
|
15551
15309
|
}, model.id))
|
|
15552
15310
|
]
|
|
@@ -15763,35 +15521,6 @@ window.__ModuleLoader__.load({
|
|
|
15763
15521
|
})
|
|
15764
15522
|
})]
|
|
15765
15523
|
}),
|
|
15766
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15767
|
-
className: "dsha-pref-row",
|
|
15768
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
15769
|
-
htmlFor: "cline-pass-pin-spelling",
|
|
15770
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t.pinSpelling })
|
|
15771
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
15772
|
-
className: "dsha-muted",
|
|
15773
|
-
style: {
|
|
15774
|
-
fontSize: 12,
|
|
15775
|
-
marginTop: 2
|
|
15776
|
-
},
|
|
15777
|
-
children: t.pinSpellingHint
|
|
15778
|
-
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
15779
|
-
id: "cline-pass-pin-spelling",
|
|
15780
|
-
className: "dsha-select dshcp-adv-control",
|
|
15781
|
-
value: settingsForm.pinSpelling,
|
|
15782
|
-
onChange: (event) => setSettingsForm({
|
|
15783
|
-
...settingsForm,
|
|
15784
|
-
pinSpelling: event.target.value
|
|
15785
|
-
}),
|
|
15786
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15787
|
-
value: "both",
|
|
15788
|
-
children: t.pinSpellingBoth
|
|
15789
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15790
|
-
value: "detected",
|
|
15791
|
-
children: t.pinSpellingDetected
|
|
15792
|
-
})]
|
|
15793
|
-
})]
|
|
15794
|
-
}),
|
|
15795
15524
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15796
15525
|
className: "dsha-pref-row",
|
|
15797
15526
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t.exposeTools }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
@@ -15824,20 +15553,9 @@ window.__ModuleLoader__.load({
|
|
|
15824
15553
|
]
|
|
15825
15554
|
});
|
|
15826
15555
|
}
|
|
15827
|
-
/**
|
|
15828
|
-
function
|
|
15829
|
-
const { model,
|
|
15830
|
-
const busyAny = props.busy !== null;
|
|
15831
|
-
const [manualChannel, setManualChannel] = (0, react.useState)("");
|
|
15832
|
-
const [hasText, setHasText] = (0, react.useState)(draft.has.join(", "));
|
|
15833
|
-
const hasValue = draft.has.join(", ");
|
|
15834
|
-
(0, react.useEffect)(() => setHasText(hasValue), [model.id, hasValue]);
|
|
15835
|
-
const verdicts = new Map(model.upstreamStatus.map((entry) => [entry.upstream, entry]));
|
|
15836
|
-
const channels = [.../* @__PURE__ */ new Set([
|
|
15837
|
-
...model.upstreams,
|
|
15838
|
-
...draft.upstreams,
|
|
15839
|
-
...draft.exclude
|
|
15840
|
-
])];
|
|
15556
|
+
/** Observed routing facts and one ordinary model test; no routing controls. */
|
|
15557
|
+
function ModelTestPanel(props) {
|
|
15558
|
+
const { model, result, t } = props;
|
|
15841
15559
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15842
15560
|
className: "dshcp-body",
|
|
15843
15561
|
children: [
|
|
@@ -15845,246 +15563,19 @@ window.__ModuleLoader__.load({
|
|
|
15845
15563
|
className: "dshcp-meta",
|
|
15846
15564
|
children: [
|
|
15847
15565
|
t.pipeline.replace("{pipeline}", model.pipeline === "" ? "—" : model.pipeline),
|
|
15848
|
-
model.pinnable ? "" : ` · ${t.notPinnable}`,
|
|
15849
15566
|
model.lastProvider !== "" ? ` · ${t.lastServed.replace("{provider}", model.lastProvider).replace("{ms}", String(model.lastMs))}` : "",
|
|
15850
|
-
isClinePassAnonymousUpstream(model.lastProvider) ? ` · ⚠ ${t.anonymousChannel}` : ""
|
|
15851
|
-
model.probedAt > 0 ? ` · ${t.probedAt.replace("{time}", formatDate$1(model.probedAt))}` : ""
|
|
15852
|
-
]
|
|
15853
|
-
}),
|
|
15854
|
-
channels.length === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
15855
|
-
className: "dsha-muted",
|
|
15856
|
-
style: { fontSize: 12 },
|
|
15857
|
-
children: t.noChannels
|
|
15858
|
-
}),
|
|
15859
|
-
channels.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
15860
|
-
className: "dsha-muted",
|
|
15861
|
-
style: { fontSize: 12 },
|
|
15862
|
-
children: t.channelHint
|
|
15863
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15864
|
-
className: "dshcp-channels",
|
|
15865
|
-
children: channels.map((upstream) => {
|
|
15866
|
-
const verdict = verdicts.get(upstream);
|
|
15867
|
-
const pinned = draft.upstreams.includes(upstream);
|
|
15868
|
-
const excluded = draft.exclude.includes(upstream);
|
|
15869
|
-
const anonymous = isClinePassAnonymousUpstream(upstream);
|
|
15870
|
-
const baseTitle = verdict === void 0 ? upstream : `${upstream}: ${verdict.status}${verdict.note === "" ? "" : ` — ${verdict.note}`}`;
|
|
15871
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
15872
|
-
className: "dshcp-channel",
|
|
15873
|
-
"data-pinned": pinned,
|
|
15874
|
-
"data-excluded": excluded,
|
|
15875
|
-
"data-status": verdict?.status ?? "unknown",
|
|
15876
|
-
"data-anonymous": anonymous,
|
|
15877
|
-
role: "button",
|
|
15878
|
-
tabIndex: 0,
|
|
15879
|
-
title: anonymous ? `${baseTitle} — ${t.anonymousChannelHint}` : baseTitle,
|
|
15880
|
-
onClick: () => props.onToggleChannel(upstream),
|
|
15881
|
-
onKeyDown: (event) => {
|
|
15882
|
-
if (event.key === "Enter" || event.key === " ") props.onToggleChannel(upstream);
|
|
15883
|
-
},
|
|
15884
|
-
children: [anonymous ? `⚠ ${upstream}` : upstream, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
15885
|
-
type: "button",
|
|
15886
|
-
className: "dshcp-exclude",
|
|
15887
|
-
"aria-label": `${excluded ? "include" : "exclude"} ${upstream}`,
|
|
15888
|
-
onClick: (event) => {
|
|
15889
|
-
event.stopPropagation();
|
|
15890
|
-
props.onToggleExclude(upstream);
|
|
15891
|
-
},
|
|
15892
|
-
children: "⊘"
|
|
15893
|
-
})]
|
|
15894
|
-
}, upstream);
|
|
15895
|
-
})
|
|
15896
|
-
})] }),
|
|
15897
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15898
|
-
className: "dshcp-pin-row",
|
|
15899
|
-
children: [
|
|
15900
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
15901
|
-
className: "dsha-input",
|
|
15902
|
-
style: { minWidth: 220 },
|
|
15903
|
-
list: `dshcp-known-${model.id}`,
|
|
15904
|
-
placeholder: t.manualChannelPlaceholder,
|
|
15905
|
-
value: manualChannel,
|
|
15906
|
-
disabled: busyAny,
|
|
15907
|
-
onChange: (event) => setManualChannel(event.target.value),
|
|
15908
|
-
onKeyDown: (event) => {
|
|
15909
|
-
if (event.key !== "Enter") return;
|
|
15910
|
-
const name = manualChannel.trim().toLowerCase();
|
|
15911
|
-
if (name === "") return;
|
|
15912
|
-
if (!draft.upstreams.includes(name)) props.onToggleChannel(name);
|
|
15913
|
-
setManualChannel("");
|
|
15914
|
-
}
|
|
15915
|
-
}),
|
|
15916
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("datalist", {
|
|
15917
|
-
id: `dshcp-known-${model.id}`,
|
|
15918
|
-
children: props.suggestions.map((name) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", { value: name }, name))
|
|
15919
|
-
}),
|
|
15920
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
15921
|
-
className: "dsha-btn",
|
|
15922
|
-
disabled: busyAny || manualChannel.trim() === "",
|
|
15923
|
-
onClick: () => {
|
|
15924
|
-
const name = manualChannel.trim().toLowerCase();
|
|
15925
|
-
if (name === "") return;
|
|
15926
|
-
if (!draft.upstreams.includes(name)) props.onToggleChannel(name);
|
|
15927
|
-
setManualChannel("");
|
|
15928
|
-
},
|
|
15929
|
-
children: t.addChannel
|
|
15930
|
-
})
|
|
15567
|
+
isClinePassAnonymousUpstream(model.lastProvider) ? ` · ⚠ ${t.anonymousChannel}` : ""
|
|
15931
15568
|
]
|
|
15932
15569
|
}),
|
|
15933
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
15934
|
-
className: "dsha-muted",
|
|
15935
|
-
style: { fontSize: 12 },
|
|
15936
|
-
children: t.manualChannelHint
|
|
15937
|
-
}),
|
|
15938
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15939
|
-
className: "dshcp-pin-row",
|
|
15940
|
-
children: [
|
|
15941
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [t.pinMode, /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
15942
|
-
className: "dsha-select",
|
|
15943
|
-
value: draft.pinMode,
|
|
15944
|
-
disabled: busyAny,
|
|
15945
|
-
onChange: (event) => props.onPinMode(event.target.value === "preferred" ? "preferred" : "strict"),
|
|
15946
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15947
|
-
value: "strict",
|
|
15948
|
-
children: t.modeStrict
|
|
15949
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15950
|
-
value: "preferred",
|
|
15951
|
-
children: t.modePreferred
|
|
15952
|
-
})]
|
|
15953
|
-
})] }),
|
|
15954
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [t.sort, /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
15955
|
-
className: "dsha-select",
|
|
15956
|
-
value: draft.sort === "" ? "none" : draft.sort,
|
|
15957
|
-
disabled: busyAny,
|
|
15958
|
-
onChange: (event) => props.onSort(event.target.value === "none" ? "" : event.target.value),
|
|
15959
|
-
children: [
|
|
15960
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15961
|
-
value: "none",
|
|
15962
|
-
children: t.sortNone
|
|
15963
|
-
}),
|
|
15964
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15965
|
-
value: "cost",
|
|
15966
|
-
children: t.sortCost
|
|
15967
|
-
}),
|
|
15968
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15969
|
-
value: "ttft",
|
|
15970
|
-
children: t.sortTtft
|
|
15971
|
-
}),
|
|
15972
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
15973
|
-
value: "tps",
|
|
15974
|
-
children: t.sortTps
|
|
15975
|
-
})
|
|
15976
|
-
]
|
|
15977
|
-
})] }),
|
|
15978
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
15979
|
-
style: {
|
|
15980
|
-
flex: 1,
|
|
15981
|
-
minWidth: 260
|
|
15982
|
-
},
|
|
15983
|
-
children: [t.hasLabel, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
15984
|
-
className: "dsha-input",
|
|
15985
|
-
style: {
|
|
15986
|
-
flex: 1,
|
|
15987
|
-
minWidth: 180
|
|
15988
|
-
},
|
|
15989
|
-
value: hasText,
|
|
15990
|
-
disabled: busyAny,
|
|
15991
|
-
placeholder: "vision, implicit-caching",
|
|
15992
|
-
onChange: (event) => {
|
|
15993
|
-
const text = event.target.value;
|
|
15994
|
-
setHasText(text);
|
|
15995
|
-
props.onHas([...new Set(text.split(/[\s,]+/).map((name) => name.trim()).filter((name) => name !== ""))]);
|
|
15996
|
-
}
|
|
15997
|
-
})]
|
|
15998
|
-
})
|
|
15999
|
-
]
|
|
16000
|
-
}),
|
|
16001
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16002
|
-
className: "dsha-muted",
|
|
16003
|
-
style: { fontSize: 12 },
|
|
16004
|
-
children: t.hasHint
|
|
16005
|
-
}),
|
|
16006
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
16007
|
-
className: "dshcp-meta",
|
|
16008
|
-
children: [
|
|
16009
|
-
draft.upstreams.length === 0 ? t.pinAuto : t.pinPinned.replace("{list}", draft.upstreams.join(" > ")),
|
|
16010
|
-
draft.exclude.length === 0 ? "" : ` · ${t.pinExcluded.replace("{list}", draft.exclude.join(", "))}`,
|
|
16011
|
-
draft.has.length === 0 ? "" : ` · ${t.pinHas.replace("{list}", draft.has.join(", "))}`
|
|
16012
|
-
]
|
|
16013
|
-
}),
|
|
16014
|
-
draft.upstreams.some((name) => isClinePassAnonymousUpstream(name)) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16015
|
-
className: "dshcp-warning",
|
|
16016
|
-
children: t.anonymousServed.replace("{provider}", draft.upstreams.find((name) => isClinePassAnonymousUpstream(name)) ?? "")
|
|
16017
|
-
}),
|
|
16018
|
-
draft.upstreams.length > 0 && !draft.upstreams.some((name) => isClinePassAnonymousUpstream(name)) && model.upstreams.length > 0 && model.upstreams.every((name) => isClinePassAnonymousUpstream(name)) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16019
|
-
className: "dshcp-warning",
|
|
16020
|
-
children: t.pinLikelyIgnored
|
|
16021
|
-
}),
|
|
16022
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15570
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
16023
15571
|
className: "dshcp-actions",
|
|
16024
|
-
children:
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
}),
|
|
16031
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
16032
|
-
className: "dsha-btn",
|
|
16033
|
-
disabled: busyAny || model.upstreams.length === 0,
|
|
16034
|
-
onClick: props.onValidate,
|
|
16035
|
-
children: props.busy === "validate:" + model.id ? t.validating : t.validate
|
|
16036
|
-
}),
|
|
16037
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
16038
|
-
className: "dsha-btn",
|
|
16039
|
-
disabled: busyAny,
|
|
16040
|
-
onClick: props.onTest,
|
|
16041
|
-
children: props.busy === "test-model:" + model.id ? t.testingPin : t.testPin
|
|
16042
|
-
}),
|
|
16043
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
16044
|
-
className: "dsha-btn dsha-btn-primary",
|
|
16045
|
-
disabled: busyAny,
|
|
16046
|
-
onClick: props.onSave,
|
|
16047
|
-
children: props.busy === "pin:" + model.id ? t.savingPin : t.savePin
|
|
16048
|
-
}),
|
|
16049
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
16050
|
-
className: "dsha-btn",
|
|
16051
|
-
disabled: busyAny,
|
|
16052
|
-
onClick: props.onReset,
|
|
16053
|
-
children: t.resetPin
|
|
16054
|
-
})
|
|
16055
|
-
]
|
|
16056
|
-
}),
|
|
16057
|
-
result.pinWarnings !== void 0 && result.pinWarnings.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16058
|
-
className: "dshcp-warning",
|
|
16059
|
-
children: t.warnings
|
|
16060
|
-
}), result.pinWarnings.map((warning) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16061
|
-
className: "dshcp-warning",
|
|
16062
|
-
children: warning
|
|
16063
|
-
}, warning))] }),
|
|
16064
|
-
result.probe !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
16065
|
-
className: "dshcp-meta",
|
|
16066
|
-
children: [
|
|
16067
|
-
t.probeResult,
|
|
16068
|
-
": ",
|
|
16069
|
-
result.probe.ok ? `${result.probe.ms}ms · ${result.probe.pipeline || "—"} · ${result.probe.upstreams.length}` : result.probe.error
|
|
16070
|
-
]
|
|
15572
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
15573
|
+
className: "dsha-btn",
|
|
15574
|
+
disabled: props.busy !== null,
|
|
15575
|
+
onClick: props.onTest,
|
|
15576
|
+
children: props.busy === "test-model:" + model.id ? t.testingModel : t.testModel
|
|
15577
|
+
})
|
|
16071
15578
|
}),
|
|
16072
|
-
result.validate !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16073
|
-
className: "dshcp-meta",
|
|
16074
|
-
children: t.validateSummary.replace("{ok}", String(result.validate.summary.ok)).replace("{limited}", String(result.validate.summary.limited)).replace("{bad}", String(result.validate.summary.bad)).replace("{auth}", String(result.validate.summary.auth)).replace("{unknown}", String(result.validate.summary.unknown))
|
|
16075
|
-
}), result.validate.results.map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
16076
|
-
className: "dshcp-meta",
|
|
16077
|
-
"data-tone": statusTone(entry.status),
|
|
16078
|
-
children: [
|
|
16079
|
-
entry.upstream,
|
|
16080
|
-
": ",
|
|
16081
|
-
entry.status,
|
|
16082
|
-
" (",
|
|
16083
|
-
entry.ms,
|
|
16084
|
-
"ms)",
|
|
16085
|
-
entry.note === "" ? "" : ` — ${entry.note}`
|
|
16086
|
-
]
|
|
16087
|
-
}, entry.upstream))] }),
|
|
16088
15579
|
result.test !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
16089
15580
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16090
15581
|
className: result.test.ok ? "dshcp-meta" : "dshcp-warning",
|
|
@@ -16094,33 +15585,14 @@ window.__ModuleLoader__.load({
|
|
|
16094
15585
|
className: "dshcp-warning",
|
|
16095
15586
|
children: t.anonymousServed.replace("{provider}", result.test.actual || "openai-compatible-private")
|
|
16096
15587
|
}),
|
|
16097
|
-
(result.test.has ?? []).length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16098
|
-
className: "dshcp-meta",
|
|
16099
|
-
children: t.testHas.replace("{list}", (result.test.has ?? []).join(", "))
|
|
16100
|
-
}),
|
|
16101
15588
|
result.test.fingerprint !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16102
15589
|
className: "dshcp-meta",
|
|
16103
15590
|
children: t.fingerprintOk.replace("{fingerprint}", result.test.fingerprint)
|
|
16104
15591
|
}),
|
|
16105
|
-
result.test.warnings.
|
|
15592
|
+
result.test.warnings.map((warning) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16106
15593
|
className: "dshcp-warning",
|
|
16107
15594
|
children: warning
|
|
16108
|
-
}, warning))
|
|
16109
|
-
result.test.trace.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16110
|
-
className: "dshcp-meta",
|
|
16111
|
-
children: t.testTrace
|
|
16112
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
16113
|
-
className: "dshcp-trace",
|
|
16114
|
-
children: result.test.trace.map((entry, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
16115
|
-
entry.upstream,
|
|
16116
|
-
" → HTTP ",
|
|
16117
|
-
entry.status,
|
|
16118
|
-
" · ",
|
|
16119
|
-
entry.ms,
|
|
16120
|
-
"ms",
|
|
16121
|
-
entry.note === "" ? "" : ` — ${entry.note}`
|
|
16122
|
-
] }, `${entry.upstream}-${index}`))
|
|
16123
|
-
})] })
|
|
15595
|
+
}, warning))
|
|
16124
15596
|
] }),
|
|
16125
15597
|
result.error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
16126
15598
|
className: "dshcp-warning",
|
|
@@ -18256,6 +17728,26 @@ window.__ModuleLoader__.load({
|
|
|
18256
17728
|
});
|
|
18257
17729
|
}).catch((cause) => setError(detail(cause)));
|
|
18258
17730
|
}, [loginFlow]);
|
|
17731
|
+
/**
|
|
17732
|
+
* Re-authorize one account.
|
|
17733
|
+
*
|
|
17734
|
+
* The failure marker is cleared first and nothing is deleted, which is the
|
|
17735
|
+
* same contract every sibling line's card has. A row parked by a refusal that
|
|
17736
|
+
* was never about its key — the plan withholding one model answers 403 too —
|
|
17737
|
+
* comes back as soon as the marker is gone; a row whose key really is dead is
|
|
17738
|
+
* no worse off, because the next request parks it again for the same reason.
|
|
17739
|
+
*/
|
|
17740
|
+
const reloginAccount = (0, react.useCallback)((accountId) => {
|
|
17741
|
+
(async () => {
|
|
17742
|
+
try {
|
|
17743
|
+
applyStatus(await API$3.accountAction("relogin", { accountId }));
|
|
17744
|
+
} catch (cause) {
|
|
17745
|
+
setError(detail(cause));
|
|
17746
|
+
return;
|
|
17747
|
+
}
|
|
17748
|
+
startLogin();
|
|
17749
|
+
})();
|
|
17750
|
+
}, [applyStatus, startLogin]);
|
|
18259
17751
|
const run = (0, react.useCallback)(async (label, action) => {
|
|
18260
17752
|
setBusy(label);
|
|
18261
17753
|
setError(null);
|
|
@@ -18461,7 +17953,7 @@ window.__ModuleLoader__.load({
|
|
|
18461
17953
|
busy,
|
|
18462
17954
|
onLogin: startLogin,
|
|
18463
17955
|
loginBusyLabel: t.loggingIn,
|
|
18464
|
-
onRelogin:
|
|
17956
|
+
onRelogin: reloginAccount,
|
|
18465
17957
|
onSetPrimary: (id) => void run("set-primary", () => API$3.accountAction("set-primary", { accountId: id })),
|
|
18466
17958
|
onDelete: (id) => void run("delete", () => API$3.accountAction("delete", { accountId: id })),
|
|
18467
17959
|
onClearCooldown: (id) => void run("clear-cooldown", () => API$3.accountAction("clear-cooldown", { accountId: id })),
|
|
@@ -22190,52 +21682,17 @@ window.__ModuleLoader__.load({
|
|
|
22190
21682
|
contextReset: "Вернуть по умолчанию",
|
|
22191
21683
|
contextResetAll: "Вернуть все по умолчанию",
|
|
22192
21684
|
contextEmpty: "Отметьте хотя бы одну модель, чтобы настроить здесь её контекстное окно.",
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
validate: "Проверить",
|
|
22198
|
-
validating: "Проверка…",
|
|
22199
|
-
testPin: "Тест",
|
|
22200
|
-
testingPin: "Тест…",
|
|
22201
|
-
savePin: "Сохранить закрепление",
|
|
22202
|
-
savingPin: "Сохранение…",
|
|
22203
|
-
resetPin: "Вернуть авто-маршрутизацию",
|
|
22204
|
-
pinAuto: "авто-маршрутизация",
|
|
22205
|
-
pinPinned: "Порядок закрепления: {list}",
|
|
22206
|
-
pinExcluded: "Исключено: {list}",
|
|
22207
|
-
pinMode: "Режим закрепления",
|
|
22208
|
-
sort: "Сортировка",
|
|
22209
|
-
sortNone: "Без сортировки",
|
|
22210
|
-
sortCost: "Сначала дешёвые",
|
|
22211
|
-
sortTtft: "Сначала быстрый первый токен",
|
|
22212
|
-
sortTps: "Сначала высокая пропускная способность",
|
|
22213
|
-
modeStrict: "Строгий (только закреплённые каналы)",
|
|
22214
|
-
modePreferred: "Предпочтительный (по порядку, при сбое — переключение)",
|
|
22215
|
-
noChannels: "Каналы ещё не обнаружены. Нажмите «Зондировать», чтобы получить список апстримов этой модели.",
|
|
22216
|
-
channelHint: "Нажмите на канал, чтобы добавить его в порядок закрепления; повторное нажатие убирает. ⊘ переключает исключение.",
|
|
21685
|
+
testSection: "Тест моделей",
|
|
21686
|
+
testHint: "Шлюз Cline сам выбирает апстрим. Здесь показывается только фактический маршрут, без закрепления или исключения каналов.",
|
|
21687
|
+
testModel: "Тест",
|
|
21688
|
+
testingModel: "Тест…",
|
|
22217
21689
|
lastServed: "Последний раз обслужил {provider} ({ms} мс)",
|
|
22218
21690
|
anonymousChannel: "анонимный маршрут",
|
|
22219
|
-
anonymousChannelHint: "Анонимный contributor-маршрут шлюза: ответы могут использоваться для обучения, без гарантии нулевого хранения данных (ZDR)",
|
|
22220
21691
|
anonymousServed: "Внимание: ответ получен от анонимного contributor-маршрута шлюза ({provider}) — он может использоваться для обучения и не имеет гарантии ZDR",
|
|
22221
21692
|
fingerprintOk: "Фингерпринт первоисточника DeepSeek: {fingerprint}",
|
|
22222
|
-
pinLikelyIgnored: "Для этой модели обнаружен только анонимный маршрут, поэтому закрепление, скорее всего, будет молча проигнорировано шлюзом",
|
|
22223
|
-
addChannel: "Добавить",
|
|
22224
|
-
manualChannelPlaceholder: "введите имя канала (напр. deepseek)…",
|
|
22225
|
-
manualChannelHint: "Обнаружение опирается на то, что шлюз перечисляет каналы в ошибке; модель, перенаправленная на анонимный маршрут, списка не даёт. Имена каналов — общий для шлюза словарь (предлагаются имена, найденные другими моделями), поэтому закрепите по имени и проверьте кнопкой «Тест».",
|
|
22226
|
-
hasLabel: "Фильтр возможностей (has)",
|
|
22227
|
-
hasHint: "Фильтр возможностей модели шлюза Vercel, записывается только в providerOptions.gateway.has. Для 1017 по умолчанию vision + implicit-caching (по измерениям необходимо для закрепления и обнаружения); для других моделей обычно оставьте пустым.",
|
|
22228
|
-
pinHas: "Возможности: {list}",
|
|
22229
|
-
testHas: "Отправленные возможности: {list}",
|
|
22230
|
-
probedAt: "Зондирование {time}",
|
|
22231
21693
|
pipeline: "Пайплайн: {pipeline}",
|
|
22232
|
-
notPinnable: "Эту модель сейчас нельзя закрепить",
|
|
22233
21694
|
testServed: "Тест прошёл: обслужил {provider} ({ms} мс)",
|
|
22234
21695
|
testFailed: "Тест не прошёл: {detail}",
|
|
22235
|
-
testTrace: "Попытки",
|
|
22236
|
-
warnings: "Предупреждения",
|
|
22237
|
-
probeResult: "Результат зондирования",
|
|
22238
|
-
validateSummary: "Проверка: доступно {ok} / с лимитом {limited} / не закрепляется {bad} / ошибка авторизации {auth} / неизвестно {unknown}",
|
|
22239
21696
|
usageSection: "Официальная квота",
|
|
22240
21697
|
usageHint: "Квота принадлежит аккаунту, а не линии. Обновление отправляет по одному запросу на каждый рабочий аккаунт.",
|
|
22241
21698
|
usageRefresh: "Обновить квоту",
|
|
@@ -22262,10 +21719,6 @@ window.__ModuleLoader__.load({
|
|
|
22262
21719
|
maxConcurrentRequests: "Потоков на аккаунт (0 = без ограничений)",
|
|
22263
21720
|
streamIdleTimeoutMs: "Таймаут простоя потока (мс)",
|
|
22264
21721
|
historyLimit: "Строк истории",
|
|
22265
|
-
pinSpelling: "Написание поля закрепления",
|
|
22266
|
-
pinSpellingBoth: "Отправлять оба написания (рекомендуется)",
|
|
22267
|
-
pinSpellingDetected: "Только обнаруженное написание",
|
|
22268
|
-
pinSpellingHint: "Шлюз может сменить пайплайн между запросами; при одном написании закрепление тихо перестаёт действовать.",
|
|
22269
21722
|
exposeTools: "Регистрировать управляющие инструменты cline_pass_*",
|
|
22270
21723
|
exposeToolsHint: "Их описания попадают в список инструментов каждого запроса, поэтому по умолчанию выключено. Изменение вступает в силу после перезапуска DSH.",
|
|
22271
21724
|
saveSettings: "Сохранить настройки",
|
|
@@ -22274,7 +21727,7 @@ window.__ModuleLoader__.load({
|
|
|
22274
21727
|
restartRequired: "Сохранено; управляющие инструменты заработают после перезапуска DSH.",
|
|
22275
21728
|
limitsSection: "Примечания",
|
|
22276
21729
|
limitKey: "API-ключи лежат в системном хранилище учётных данных; карточка показывает только название.",
|
|
22277
|
-
limitGateway: "
|
|
21730
|
+
limitGateway: "Шлюз Cline сам выбирает канал обслуживания. Карточка только читает фактический маршрут и не отправляет поля закрепления.",
|
|
22278
21731
|
limitRoute: "Маршрут закрепляется за provider id: если cline-pass уже обслуживает другой плагин, эта карточка всё равно настраивает линию, но запросы выполняет он.",
|
|
22279
21732
|
limitQuota: "Окна квоты приходят из шлюзового эндпоинта usage-limits; при сбое карточка оставляет прошлое чтение и показывает причину."
|
|
22280
21733
|
};
|
|
@@ -25721,8 +25174,8 @@ window.__ModuleLoader__.load({
|
|
|
25721
25174
|
//#region src/client/cline-pass/styles.ts
|
|
25722
25175
|
/**
|
|
25723
25176
|
* Cline Pass's own prefixed classes only: layout the shared `.dsha-*`
|
|
25724
|
-
* vocabulary has no expression for (
|
|
25725
|
-
*
|
|
25177
|
+
* vocabulary has no expression for (catalog chips, the model test panel and the
|
|
25178
|
+
* history table). Everything else on the tab reuses the shared card.
|
|
25726
25179
|
*/
|
|
25727
25180
|
function installClinePassStyles() {
|
|
25728
25181
|
installPluginStyle("cline-pass", `
|
|
@@ -25745,26 +25198,16 @@ window.__ModuleLoader__.load({
|
|
|
25745
25198
|
.dshcp-model>summary::-webkit-details-marker{display:none}
|
|
25746
25199
|
.dshcp-model-name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
25747
25200
|
.dshcp-pill{border:0.5px solid var(--dsw-alias-border-l2);border-radius:999px;font-size:11px;padding:1px 8px;color:var(--dsw-alias-label-secondary);flex:none}
|
|
25748
|
-
.dshcp-pill[data-tone=ok]{color:var(--dsw-alias-label-success,#2e8b57);border-color:color-mix(in srgb,var(--dsw-alias-label-success,#2e8b57) 45%,transparent)}
|
|
25749
|
-
.dshcp-pill[data-tone=warn]{color:var(--dsw-alias-label-warning,#d9913b);border-color:color-mix(in srgb,var(--dsw-alias-label-warning,#d9913b) 45%,transparent)}
|
|
25750
|
-
.dshcp-pill[data-tone=danger]{color:var(--dsw-alias-label-danger,#d94b4b);border-color:color-mix(in srgb,var(--dsw-alias-label-danger,#d94b4b) 45%,transparent)}
|
|
25751
25201
|
.dshcp-body{border-top:0.5px solid var(--dsw-alias-border-l2);padding:12px 0;display:flex;flex-direction:column;gap:10px}
|
|
25752
25202
|
.dshcp-meta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:1.5}
|
|
25753
25203
|
.dshcp-channels{display:flex;flex-wrap:wrap;gap:6px}
|
|
25754
25204
|
.dshcp-channel{display:inline-flex;align-items:center;gap:6px;border:0.5px solid var(--dsw-alias-border-l2);border-radius:6px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);cursor:pointer;font-size:12px;padding:3px 8px}
|
|
25755
|
-
.dshcp-channel[data-pinned=true]{border-color:var(--dsw-alias-brand-primary);background:color-mix(in srgb,var(--dsw-alias-brand-primary) 12%,var(--dsw-alias-bg-layer-1))}
|
|
25756
|
-
.dshcp-channel[data-excluded=true]{opacity:.55;text-decoration:line-through}
|
|
25757
|
-
.dshcp-channel[data-status=ok]{box-shadow:inset 3px 0 0 var(--dsw-alias-label-success,#2e8b57)}
|
|
25758
|
-
.dshcp-channel[data-status=limited]{box-shadow:inset 3px 0 0 var(--dsw-alias-label-warning,#d9913b)}
|
|
25759
|
-
.dshcp-channel[data-status=bad],.dshcp-channel[data-status=auth]{box-shadow:inset 3px 0 0 var(--dsw-alias-label-danger,#d94b4b)}
|
|
25760
|
-
.dshcp-channel[data-anonymous=true]{border-color:color-mix(in srgb,var(--dsw-alias-label-warning,#d9913b) 60%,transparent);color:var(--dsw-alias-label-warning,#d9913b)}
|
|
25761
25205
|
.dshcp-exclude{border:0;background:transparent;color:var(--dsw-alias-label-tertiary);cursor:pointer;font-size:12px;line-height:1;padding:0 2px}
|
|
25762
25206
|
.dshcp-exclude:hover{color:var(--dsw-alias-label-danger,#d94b4b)}
|
|
25763
|
-
.dshcp-
|
|
25764
|
-
.dshcp-
|
|
25207
|
+
.dshcp-search-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
|
|
25208
|
+
.dshcp-search-row label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--dsw-alias-label-secondary)}
|
|
25765
25209
|
.dshcp-actions{display:flex;gap:8px;flex-wrap:wrap}
|
|
25766
25210
|
.dshcp-warning{color:var(--dsw-alias-label-warning,#d9913b);font-size:12px}
|
|
25767
|
-
.dshcp-trace{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;background:var(--dsw-alias-bg-layer-2);border-radius:6px;padding:8px;display:flex;flex-direction:column;gap:2px}
|
|
25768
25211
|
|
|
25769
25212
|
.dshcp-history{display:flex;flex-direction:column;gap:4px;margin-top:8px}
|
|
25770
25213
|
.dshcp-history-row{display:grid;grid-template-columns:150px minmax(120px,1fr) 130px 120px;gap:10px;font-size:12px;padding:5px 0;border-bottom:0.5px solid var(--dsw-alias-border-l2)}
|