@eddyskywalker/dsh-chatgpt-subscription 0.66.2 → 0.68.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.md +48 -0
- package/README.md +1 -1
- package/lib/client.js +111 -631
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +28 -7
- package/lib/{entry-plan-mode-CLRKkgYG.js → entry-plan-mode-gqE4UeU5.js} +5 -2
- package/lib/{entry-progress-updates-DZ0ZRus4.js → entry-progress-updates-DpzbX1GP.js} +5 -1
- package/lib/index.js +408 -2062
- package/lib/plan-mode-pipeline.js +1 -1
- package/lib/plan-mode.js +1 -1
- package/lib/progress-updates.js +1 -1
- 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/locales-ru/progress-updates.d.ts.map +1 -1
- package/lib/types/client/progress-updates/locales.d.ts +8 -2
- package/lib/types/client/progress-updates/locales.d.ts.map +1 -1
- package/lib/types/client/progress-updates/settings-binding.d.ts +3 -1
- package/lib/types/client/progress-updates/settings-binding.d.ts.map +1 -1
- package/lib/types/client/progress-updates/settings-section.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/entry-codemode.d.ts.map +1 -1
- package/lib/types/entry-plan-mode-pipeline.d.ts.map +1 -1
- package/lib/types/entry-plan-mode.d.ts.map +1 -1
- package/lib/types/host/agent-preset.d.ts.map +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/codemode/rules.d.ts +13 -5
- package/lib/types/host/codemode/rules.d.ts.map +1 -1
- package/lib/types/host/command-code/adapter.d.ts.map +1 -1
- package/lib/types/host/dispatch-execution-guard.d.ts.map +1 -1
- package/lib/types/host/kimi-code/mapper.d.ts.map +1 -1
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts +7 -0
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts.map +1 -1
- package/lib/types/host/kimi-code/tool-argument-recovery.d.ts.map +1 -1
- package/lib/types/host/progress-updates/prompt.d.ts.map +1 -1
- package/lib/types/host/progress-updates/tool.d.ts.map +1 -1
- package/lib/types/index.d.ts +14 -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/package.json +1 -1
- package/presets/dispatch/README.md +9 -9
- package/presets/dispatch/agent.cordis.yml +26 -18
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))}` : ""
|
|
15567
|
+
isClinePassAnonymousUpstream(model.lastProvider) ? ` · ⚠ ${t.anonymousChannel}` : ""
|
|
15852
15568
|
]
|
|
15853
15569
|
}),
|
|
15854
|
-
|
|
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
|
-
})
|
|
15931
|
-
]
|
|
15932
|
-
}),
|
|
15933
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
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",
|
|
@@ -21792,6 +21264,8 @@ window.__ModuleLoader__.load({
|
|
|
21792
21264
|
settingsDispatchExecutionGuardNote: "执行期拦截子代理越权调用主控工具及等待子代理时的纯 sleep 空等;不改工具声明面,零损耗保护 Kimi 缓存",
|
|
21793
21265
|
settingsToolRunawayGuardName: "工具失控治理",
|
|
21794
21266
|
settingsToolRunawayGuardNote: "同一工具与参数连续重复时分级提醒;Kimi 保留第 12 次强停,其他线路只提醒",
|
|
21267
|
+
settingsMediaToolsName: "媒体工具",
|
|
21268
|
+
settingsMediaToolsNote: "统一注册 Codex/Antigravity 生图、Kimi 视频挂载与 MiniMax 视频工具;重载插件或重启后生效,Kimi 既有会话在工具表变化后会重建一次前缀缓存",
|
|
21795
21269
|
settingsTeamPolicyCacheGuardName: "智能体团队策略段",
|
|
21796
21270
|
settingsTeamPolicyCacheGuardNote: "把内置 Agent Teams 的策略段从系统提示词摘掉,改为开启团队协作时以尾部消息投递一次;会话中途切开关不再刷掉整段前缀缓存(默认开启)",
|
|
21797
21271
|
settingsThresholdName: "催促阈值",
|
|
@@ -21845,6 +21319,8 @@ window.__ModuleLoader__.load({
|
|
|
21845
21319
|
settingsDispatchExecutionGuardNote: "Block subagents from calling dispatcher-only tools at execution time and reject pure sleep waits while child agents run; keeps tool declarations untouched to protect the Kimi prefix cache",
|
|
21846
21320
|
settingsToolRunawayGuardName: "Tool runaway guard",
|
|
21847
21321
|
settingsToolRunawayGuardNote: "Remind the agent when the same tool call repeats; Kimi keeps its 12th-call handoff, while other lines receive reminders only",
|
|
21322
|
+
settingsMediaToolsName: "Media tools",
|
|
21323
|
+
settingsMediaToolsNote: "Register Codex/Antigravity image generation, Kimi video attachment, and MiniMax video tools together; reload the plugin or restart DSH to apply. Existing Kimi sessions rebuild their prefix once after the tool table changes",
|
|
21848
21324
|
settingsTeamPolicyCacheGuardName: "Agent Teams policy section",
|
|
21849
21325
|
settingsTeamPolicyCacheGuardNote: "Lift the built-in Agent Teams policy section out of the system prompt and deliver it as one tail message when team collaboration is switched on, so toggling mid-session no longer rebuilds the whole prefix cache (on by default)",
|
|
21850
21326
|
settingsThresholdName: "Nudge threshold",
|
|
@@ -22186,52 +21662,17 @@ window.__ModuleLoader__.load({
|
|
|
22186
21662
|
contextReset: "Вернуть по умолчанию",
|
|
22187
21663
|
contextResetAll: "Вернуть все по умолчанию",
|
|
22188
21664
|
contextEmpty: "Отметьте хотя бы одну модель, чтобы настроить здесь её контекстное окно.",
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
validate: "Проверить",
|
|
22194
|
-
validating: "Проверка…",
|
|
22195
|
-
testPin: "Тест",
|
|
22196
|
-
testingPin: "Тест…",
|
|
22197
|
-
savePin: "Сохранить закрепление",
|
|
22198
|
-
savingPin: "Сохранение…",
|
|
22199
|
-
resetPin: "Вернуть авто-маршрутизацию",
|
|
22200
|
-
pinAuto: "авто-маршрутизация",
|
|
22201
|
-
pinPinned: "Порядок закрепления: {list}",
|
|
22202
|
-
pinExcluded: "Исключено: {list}",
|
|
22203
|
-
pinMode: "Режим закрепления",
|
|
22204
|
-
sort: "Сортировка",
|
|
22205
|
-
sortNone: "Без сортировки",
|
|
22206
|
-
sortCost: "Сначала дешёвые",
|
|
22207
|
-
sortTtft: "Сначала быстрый первый токен",
|
|
22208
|
-
sortTps: "Сначала высокая пропускная способность",
|
|
22209
|
-
modeStrict: "Строгий (только закреплённые каналы)",
|
|
22210
|
-
modePreferred: "Предпочтительный (по порядку, при сбое — переключение)",
|
|
22211
|
-
noChannels: "Каналы ещё не обнаружены. Нажмите «Зондировать», чтобы получить список апстримов этой модели.",
|
|
22212
|
-
channelHint: "Нажмите на канал, чтобы добавить его в порядок закрепления; повторное нажатие убирает. ⊘ переключает исключение.",
|
|
21665
|
+
testSection: "Тест моделей",
|
|
21666
|
+
testHint: "Шлюз Cline сам выбирает апстрим. Здесь показывается только фактический маршрут, без закрепления или исключения каналов.",
|
|
21667
|
+
testModel: "Тест",
|
|
21668
|
+
testingModel: "Тест…",
|
|
22213
21669
|
lastServed: "Последний раз обслужил {provider} ({ms} мс)",
|
|
22214
21670
|
anonymousChannel: "анонимный маршрут",
|
|
22215
|
-
anonymousChannelHint: "Анонимный contributor-маршрут шлюза: ответы могут использоваться для обучения, без гарантии нулевого хранения данных (ZDR)",
|
|
22216
21671
|
anonymousServed: "Внимание: ответ получен от анонимного contributor-маршрута шлюза ({provider}) — он может использоваться для обучения и не имеет гарантии ZDR",
|
|
22217
21672
|
fingerprintOk: "Фингерпринт первоисточника DeepSeek: {fingerprint}",
|
|
22218
|
-
pinLikelyIgnored: "Для этой модели обнаружен только анонимный маршрут, поэтому закрепление, скорее всего, будет молча проигнорировано шлюзом",
|
|
22219
|
-
addChannel: "Добавить",
|
|
22220
|
-
manualChannelPlaceholder: "введите имя канала (напр. deepseek)…",
|
|
22221
|
-
manualChannelHint: "Обнаружение опирается на то, что шлюз перечисляет каналы в ошибке; модель, перенаправленная на анонимный маршрут, списка не даёт. Имена каналов — общий для шлюза словарь (предлагаются имена, найденные другими моделями), поэтому закрепите по имени и проверьте кнопкой «Тест».",
|
|
22222
|
-
hasLabel: "Фильтр возможностей (has)",
|
|
22223
|
-
hasHint: "Фильтр возможностей модели шлюза Vercel, записывается только в providerOptions.gateway.has. Для 1017 по умолчанию vision + implicit-caching (по измерениям необходимо для закрепления и обнаружения); для других моделей обычно оставьте пустым.",
|
|
22224
|
-
pinHas: "Возможности: {list}",
|
|
22225
|
-
testHas: "Отправленные возможности: {list}",
|
|
22226
|
-
probedAt: "Зондирование {time}",
|
|
22227
21673
|
pipeline: "Пайплайн: {pipeline}",
|
|
22228
|
-
notPinnable: "Эту модель сейчас нельзя закрепить",
|
|
22229
21674
|
testServed: "Тест прошёл: обслужил {provider} ({ms} мс)",
|
|
22230
21675
|
testFailed: "Тест не прошёл: {detail}",
|
|
22231
|
-
testTrace: "Попытки",
|
|
22232
|
-
warnings: "Предупреждения",
|
|
22233
|
-
probeResult: "Результат зондирования",
|
|
22234
|
-
validateSummary: "Проверка: доступно {ok} / с лимитом {limited} / не закрепляется {bad} / ошибка авторизации {auth} / неизвестно {unknown}",
|
|
22235
21676
|
usageSection: "Официальная квота",
|
|
22236
21677
|
usageHint: "Квота принадлежит аккаунту, а не линии. Обновление отправляет по одному запросу на каждый рабочий аккаунт.",
|
|
22237
21678
|
usageRefresh: "Обновить квоту",
|
|
@@ -22258,10 +21699,6 @@ window.__ModuleLoader__.load({
|
|
|
22258
21699
|
maxConcurrentRequests: "Потоков на аккаунт (0 = без ограничений)",
|
|
22259
21700
|
streamIdleTimeoutMs: "Таймаут простоя потока (мс)",
|
|
22260
21701
|
historyLimit: "Строк истории",
|
|
22261
|
-
pinSpelling: "Написание поля закрепления",
|
|
22262
|
-
pinSpellingBoth: "Отправлять оба написания (рекомендуется)",
|
|
22263
|
-
pinSpellingDetected: "Только обнаруженное написание",
|
|
22264
|
-
pinSpellingHint: "Шлюз может сменить пайплайн между запросами; при одном написании закрепление тихо перестаёт действовать.",
|
|
22265
21702
|
exposeTools: "Регистрировать управляющие инструменты cline_pass_*",
|
|
22266
21703
|
exposeToolsHint: "Их описания попадают в список инструментов каждого запроса, поэтому по умолчанию выключено. Изменение вступает в силу после перезапуска DSH.",
|
|
22267
21704
|
saveSettings: "Сохранить настройки",
|
|
@@ -22270,7 +21707,7 @@ window.__ModuleLoader__.load({
|
|
|
22270
21707
|
restartRequired: "Сохранено; управляющие инструменты заработают после перезапуска DSH.",
|
|
22271
21708
|
limitsSection: "Примечания",
|
|
22272
21709
|
limitKey: "API-ключи лежат в системном хранилище учётных данных; карточка показывает только название.",
|
|
22273
|
-
limitGateway: "
|
|
21710
|
+
limitGateway: "Шлюз Cline сам выбирает канал обслуживания. Карточка только читает фактический маршрут и не отправляет поля закрепления.",
|
|
22274
21711
|
limitRoute: "Маршрут закрепляется за provider id: если cline-pass уже обслуживает другой плагин, эта карточка всё равно настраивает линию, но запросы выполняет он.",
|
|
22275
21712
|
limitQuota: "Окна квоты приходят из шлюзового эндпоинта usage-limits; при сбое карточка оставляет прошлое чтение и показывает причину."
|
|
22276
21713
|
};
|
|
@@ -23287,6 +22724,8 @@ window.__ModuleLoader__.load({
|
|
|
23287
22724
|
settingsDispatchExecutionGuardNote: "Блокировать вызовы инструментов диспетчера субагентами во время выполнения и запрещать пустое ожидание sleep при активных дочерних агентах; не меняет объявления инструментов и сохраняет префиксный кеш Kimi",
|
|
23288
22725
|
settingsToolRunawayGuardName: "Защита от циклов инструментов",
|
|
23289
22726
|
settingsToolRunawayGuardNote: "Напоминать агенту о повторяющихся вызовах; Kimi сохраняет передачу управления на 12-м вызове, другие линии получают только напоминания",
|
|
22727
|
+
settingsMediaToolsName: "Медиаинструменты",
|
|
22728
|
+
settingsMediaToolsNote: "Единая регистрация генерации изображений Codex/Antigravity, прикрепления видео Kimi и видеоинструментов MiniMax; применяется после перезагрузки плагина или DSH. В существующих сессиях Kimi после изменения набора инструментов префиксный кеш один раз пересобирается",
|
|
23290
22729
|
settingsTeamPolicyCacheGuardName: "Раздел политики Agent Teams",
|
|
23291
22730
|
settingsTeamPolicyCacheGuardNote: "Убрать встроенный раздел политики Agent Teams из системного промпта и передавать его одним сообщением в хвосте при включении командной работы, чтобы переключение посреди сессии больше не пересобирало весь префиксный кеш (включено по умолчанию)",
|
|
23292
22731
|
settingsThresholdName: "Порог напоминания",
|
|
@@ -25715,8 +25154,8 @@ window.__ModuleLoader__.load({
|
|
|
25715
25154
|
//#region src/client/cline-pass/styles.ts
|
|
25716
25155
|
/**
|
|
25717
25156
|
* Cline Pass's own prefixed classes only: layout the shared `.dsha-*`
|
|
25718
|
-
* vocabulary has no expression for (
|
|
25719
|
-
*
|
|
25157
|
+
* vocabulary has no expression for (catalog chips, the model test panel and the
|
|
25158
|
+
* history table). Everything else on the tab reuses the shared card.
|
|
25720
25159
|
*/
|
|
25721
25160
|
function installClinePassStyles() {
|
|
25722
25161
|
installPluginStyle("cline-pass", `
|
|
@@ -25739,26 +25178,16 @@ window.__ModuleLoader__.load({
|
|
|
25739
25178
|
.dshcp-model>summary::-webkit-details-marker{display:none}
|
|
25740
25179
|
.dshcp-model-name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
25741
25180
|
.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}
|
|
25742
|
-
.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)}
|
|
25743
|
-
.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)}
|
|
25744
|
-
.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)}
|
|
25745
25181
|
.dshcp-body{border-top:0.5px solid var(--dsw-alias-border-l2);padding:12px 0;display:flex;flex-direction:column;gap:10px}
|
|
25746
25182
|
.dshcp-meta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:1.5}
|
|
25747
25183
|
.dshcp-channels{display:flex;flex-wrap:wrap;gap:6px}
|
|
25748
25184
|
.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}
|
|
25749
|
-
.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))}
|
|
25750
|
-
.dshcp-channel[data-excluded=true]{opacity:.55;text-decoration:line-through}
|
|
25751
|
-
.dshcp-channel[data-status=ok]{box-shadow:inset 3px 0 0 var(--dsw-alias-label-success,#2e8b57)}
|
|
25752
|
-
.dshcp-channel[data-status=limited]{box-shadow:inset 3px 0 0 var(--dsw-alias-label-warning,#d9913b)}
|
|
25753
|
-
.dshcp-channel[data-status=bad],.dshcp-channel[data-status=auth]{box-shadow:inset 3px 0 0 var(--dsw-alias-label-danger,#d94b4b)}
|
|
25754
|
-
.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)}
|
|
25755
25185
|
.dshcp-exclude{border:0;background:transparent;color:var(--dsw-alias-label-tertiary);cursor:pointer;font-size:12px;line-height:1;padding:0 2px}
|
|
25756
25186
|
.dshcp-exclude:hover{color:var(--dsw-alias-label-danger,#d94b4b)}
|
|
25757
|
-
.dshcp-
|
|
25758
|
-
.dshcp-
|
|
25187
|
+
.dshcp-search-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
|
|
25188
|
+
.dshcp-search-row label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--dsw-alias-label-secondary)}
|
|
25759
25189
|
.dshcp-actions{display:flex;gap:8px;flex-wrap:wrap}
|
|
25760
25190
|
.dshcp-warning{color:var(--dsw-alias-label-warning,#d9913b);font-size:12px}
|
|
25761
|
-
.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}
|
|
25762
25191
|
|
|
25763
25192
|
.dshcp-history{display:flex;flex-direction:column;gap:4px;margin-top:8px}
|
|
25764
25193
|
.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)}
|
|
@@ -55764,6 +55193,35 @@ window.__ModuleLoader__.load({
|
|
|
55764
55193
|
]
|
|
55765
55194
|
});
|
|
55766
55195
|
}
|
|
55196
|
+
/** 媒体工具那一行的标记:一张带播放符号的图片(生图与视频共用)。 */
|
|
55197
|
+
function MediaToolsMark() {
|
|
55198
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
55199
|
+
viewBox: "0 0 20 20",
|
|
55200
|
+
width: "20",
|
|
55201
|
+
height: "20",
|
|
55202
|
+
fill: "none",
|
|
55203
|
+
stroke: "currentColor",
|
|
55204
|
+
strokeWidth: "1.6",
|
|
55205
|
+
strokeLinecap: "round",
|
|
55206
|
+
strokeLinejoin: "round",
|
|
55207
|
+
"aria-hidden": "true",
|
|
55208
|
+
children: [
|
|
55209
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
55210
|
+
x: "3",
|
|
55211
|
+
y: "3.5",
|
|
55212
|
+
width: "14",
|
|
55213
|
+
height: "13",
|
|
55214
|
+
rx: "2"
|
|
55215
|
+
}),
|
|
55216
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
55217
|
+
cx: "7",
|
|
55218
|
+
cy: "7.2",
|
|
55219
|
+
r: "1.2"
|
|
55220
|
+
}),
|
|
55221
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m4.5 14 3.6-3.4 2.2 2 2.1-2.1 3.1 3.5M11.5 5.5l3 2-3 2Z" })
|
|
55222
|
+
]
|
|
55223
|
+
});
|
|
55224
|
+
}
|
|
55767
55225
|
function PanelMark() {
|
|
55768
55226
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
55769
55227
|
viewBox: "0 0 20 20",
|
|
@@ -55844,6 +55302,7 @@ window.__ModuleLoader__.load({
|
|
|
55844
55302
|
const planModePipeline = value.planModePipeline !== false;
|
|
55845
55303
|
const dispatchExecutionGuard = value.dispatchExecutionGuard !== false;
|
|
55846
55304
|
const toolRunawayGuard = value.toolRunawayGuard !== false;
|
|
55305
|
+
const mediaTools = value.mediaTools !== false;
|
|
55847
55306
|
const teamPolicyCacheGuard = value.teamPolicyCacheGuard !== false;
|
|
55848
55307
|
const threshold = typeof value.progressUpdatesNudgeThreshold === "number" ? value.progressUpdatesNudgeThreshold : 8;
|
|
55849
55308
|
const language = value.progressUpdatesLanguage === "zh" || value.progressUpdatesLanguage === "en" || value.progressUpdatesLanguage === "ru" ? value.progressUpdatesLanguage : "auto";
|
|
@@ -56108,6 +55567,27 @@ window.__ModuleLoader__.load({
|
|
|
56108
55567
|
}
|
|
56109
55568
|
})
|
|
56110
55569
|
}),
|
|
55570
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CardRow, {
|
|
55571
|
+
part: "settings-row-media-tools",
|
|
55572
|
+
brand: "#9b6a43",
|
|
55573
|
+
mark: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MediaToolsMark, {}),
|
|
55574
|
+
name: translate("settingsMediaToolsName"),
|
|
55575
|
+
note: unavailable ?? (failure?.row === "mediaTools" ? failure.text : translate("settingsMediaToolsNote")),
|
|
55576
|
+
danger: failure?.row === "mediaTools" || unavailable !== void 0,
|
|
55577
|
+
enabled: mediaTools,
|
|
55578
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
55579
|
+
type: "button",
|
|
55580
|
+
role: "switch",
|
|
55581
|
+
"aria-checked": mediaTools,
|
|
55582
|
+
"aria-label": translate("settingsMediaToolsName"),
|
|
55583
|
+
className: "dsh-progress-switch",
|
|
55584
|
+
"data-dsh-part": "settings-media-tools-switch",
|
|
55585
|
+
disabled: !writable,
|
|
55586
|
+
onClick: () => {
|
|
55587
|
+
write("mediaTools", "mediaTools", !mediaTools);
|
|
55588
|
+
}
|
|
55589
|
+
})
|
|
55590
|
+
}),
|
|
56111
55591
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CardRow, {
|
|
56112
55592
|
part: "settings-row-threshold",
|
|
56113
55593
|
brand: "#2f9e6e",
|