dsh-codearts 1.4.2 → 1.4.4
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 +32 -0
- package/lib/{auth-CsAz93vO.mjs → auth-Cd2SvQIy.mjs} +1 -1
- package/lib/bin.mjs +3 -3
- package/lib/client/index.d.cts +9 -0
- package/lib/client/index.js +394 -278
- package/lib/index.d.mts +29 -9
- package/lib/index.mjs +182 -47
- package/lib/keeper-main.mjs +1 -1
- package/lib/{upstream-BsoeSKrY.mjs → upstream-BV4XWB4l.mjs} +58 -3
- package/lib/{version-DLMVdsWB.mjs → version-CHCdx9qJ.mjs} +3 -3
- package/package.json +1 -1
package/lib/client/index.js
CHANGED
|
@@ -73,7 +73,8 @@ const DEFAULT_DOCK_FLAGS = {
|
|
|
73
73
|
settingsEntry: true,
|
|
74
74
|
modelDetail: true,
|
|
75
75
|
autoClaim: false,
|
|
76
|
-
keepAliveDaemon: false
|
|
76
|
+
keepAliveDaemon: false,
|
|
77
|
+
queueWait: false
|
|
77
78
|
};
|
|
78
79
|
//#endregion
|
|
79
80
|
//#region src/client/dock-store.ts
|
|
@@ -145,7 +146,7 @@ function latencyP95Label(latency) {
|
|
|
145
146
|
}
|
|
146
147
|
//#endregion
|
|
147
148
|
//#region \0dsh-css:/home/runner/work/dsh-codearts/dsh-codearts/src/client/CodeArtsPluginCard.module.css.mjs
|
|
148
|
-
const css$1 = ".xoziZG_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-settings-card-fill);box-sizing:border-box;width:100%;max-width:none}.xoziZG_header{align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.xoziZG_headText{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.xoziZG_name{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:22px}.xoziZG_desc{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px}.xoziZG_statusLine{color:var(--dsw-alias-label-primary);align-items:center;gap:6px;font-size:14px;font-weight:500;line-height:22px;display:inline-flex}.xoziZG_meta{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:12px;line-height:18px}.xoziZG_body{border-top:.5px solid var(--dsw-alias-border-l2);margin:0 16px;padding:4px 0 16px}.xoziZG_tabs{margin-top:12px}.xoziZG_tabPanel{padding-top:2px}.xoziZG_accountToolbar{gap:8px;margin-top:12px;display:flex}.xoziZG_accountToolbar>*{flex:1}.xoziZG_manualForm{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);margin-top:12px;padding:12px}.xoziZG_accountCard{flex-direction:column;gap:10px;margin-top:12px;display:flex}.xoziZG_accountEntry{border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-2)}.xoziZG_accountRow{align-items:center;gap:10px;padding:12px;display:flex}.xoziZG_claimAllRow{border-top:.5px solid var(--dsw-alias-border-l2);justify-content:flex-end;padding:10px 12px 0;display:flex}.xoziZG_avatar{background:var(--dsw-alias-bg-layer-3);width:32px;height:32px;color:var(--dsw-alias-label-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:14px;font-weight:600;display:inline-flex}.xoziZG_accountInfo{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.xoziZG_accountNameRow{align-items:center;gap:6px;min-width:0;display:flex}.xoziZG_accountName{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;overflow:hidden}.xoziZG_accountRowActions{flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}.xoziZG_accountToggle{align-items:center;gap:6px;display:inline-flex}.xoziZG_accountToggleLabel{color:var(--dsw-alias-label-secondary);white-space:nowrap;font-size:12px;line-height:20px}.xoziZG_accountHint{color:var(--dsw-alias-label-tertiary);margin:0;padding:0 12px 12px;font-size:12px;line-height:18px}.xoziZG_creditBlock{border-top:.5px solid var(--dsw-alias-border-l2);padding:12px}.xoziZG_balanceRow{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.xoziZG_balance{color:var(--dsw-alias-label-primary);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:28px;font-weight:600;line-height:34px}.xoziZG_balanceUnit{color:var(--dsw-alias-label-secondary);font-size:12px}.xoziZG_balanceMeta{color:var(--dsw-alias-label-tertiary);margin-left:2px;font-size:12px}.xoziZG_updated{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;margin-left:auto;font-size:12px}.xoziZG_creditRows{flex-direction:column;gap:4px;margin-top:8px;display:flex}.xoziZG_creditRow{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;line-height:18px;display:flex}.xoziZG_usageBar{background:var(--dsw-alias-border-l2);border-radius:2px;height:4px;margin-top:4px;display:block;overflow:hidden}.xoziZG_usageFill{background:var(--dsw-alias-brand-primary);border-radius:2px;height:100%;transition:width .2s;display:block}.xoziZG_expiryRow{margin-top:2px}.xoziZG_expiryLabel{color:var(--dsw-alias-state-warn-label)}.xoziZG_bar{background:var(--dsw-alias-bg-layer-3);border-radius:2px;height:4px;margin-top:6px;display:block;overflow:hidden}.xoziZG_barFill{background:var(--dsw-alias-state-warn-primary);border-radius:2px;height:100%;display:block}.xoziZG_creditLink{margin-top:8px;display:inline-block}.xoziZG_creditFooter{border-top:.5px solid var(--dsw-alias-border-l2);justify-content:space-between;align-items:center;gap:8px;margin-top:12px;padding-top:10px;display:flex}.xoziZG_creditHint{color:var(--dsw-alias-label-tertiary);margin:8px 0 0;font-size:12px;line-height:18px}.xoziZG_section{margin-top:16px}.xoziZG_sectionHead{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.xoziZG_sectionLabel{color:var(--dsw-alias-label-tertiary);font-size:11px;font-weight:500}.xoziZG_count{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;flex:none;font-size:12px}.xoziZG_hint{color:var(--dsw-alias-label-secondary);margin:8px 0 0;font-size:13px;line-height:20px}.xoziZG_error{color:var(--dsw-alias-state-error-primary);margin:10px 0 0;font-size:13px;line-height:20px}.xoziZG_actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;display:flex}.xoziZG_danger{color:var(--dsw-alias-state-error-primary)}.xoziZG_link{appearance:none;color:var(--dsw-alias-brand-text);font:inherit;text-align:left;word-break:break-all;cursor:pointer;background:0 0;border:none;padding:0;font-size:12px}.xoziZG_link:hover{text-decoration:underline}.xoziZG_choices{flex-direction:column;gap:2px;margin-top:8px;display:flex}.xoziZG_choiceRow{border-radius:var(--dsw-radius-sm);align-items:center;gap:8px;margin:0 -6px;padding:5px 6px;display:flex}.xoziZG_choiceRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.xoziZG_statGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 14px;display:grid}.xoziZG_statCard{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);flex-direction:column;gap:1px;padding:8px 10px;display:flex}.xoziZG_statLabel{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.xoziZG_statValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-size:15px;line-height:20px}.xoziZG_statSub{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:11px;line-height:16px}.xoziZG_modelChart{flex-direction:column;gap:2px;margin-top:8px;display:flex}.xoziZG_modelRow{font-variant-numeric:tabular-nums;border-radius:6px;grid-template-columns:minmax(0,1.2fr) minmax(48px,1fr) 56px 52px 64px;align-items:center;gap:8px;padding:4px 0;display:grid;position:relative}.xoziZG_modelRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.xoziZG_usageTip{z-index:5;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-3);min-width:180px;max-width:260px;color:var(--dsw-alias-label-secondary);text-align:left;font-variant-numeric:tabular-nums;pointer-events:none;padding:8px 10px;font-size:12px;line-height:1.9;position:absolute;bottom:calc(100% + 6px);right:0;box-shadow:0 10px 28px #00000073}.xoziZG_usageTip[data-float=true]{z-index:40;position:fixed;bottom:auto;right:auto}.xoziZG_usageTipName{max-width:240px;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.xoziZG_usageTipSep{background:var(--dsw-alias-border-l2);height:1px;margin:4px 0}.xoziZG_usageTipRow{justify-content:space-between;gap:24px;display:flex}.xoziZG_usageTipRow span:last-child{color:var(--dsw-alias-label-primary);font-weight:600}.xoziZG_modelName{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;overflow:hidden}.xoziZG_modelTrack{background:var(--dsw-alias-border-l2);border-radius:4px;height:8px;display:block;overflow:hidden}.xoziZG_modelFill{background:var(--dsw-alias-brand-primary);border-radius:4px;height:100%;transition:width .16s;display:block}.xoziZG_modelTokens,.xoziZG_modelShare,.xoziZG_modelRequests{color:var(--dsw-alias-label-secondary);text-align:right;white-space:nowrap;font-size:11px;line-height:16px}.xoziZG_modelRequests{color:var(--dsw-alias-label-tertiary)}.xoziZG_heatGrid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:8px 0 2px;display:grid}.xoziZG_heatWeekday{color:var(--dsw-alias-label-tertiary);text-align:center;font-size:10px;line-height:14px}.xoziZG_heatCell{background:color-mix(in srgb, var(--dsw-alias-label-primary) 6%, transparent);height:36px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;border:0;border-radius:8px;outline:0;justify-content:center;align-items:center;font-size:12px;transition:background .12s ease-out;display:flex}.xoziZG_heatCell[data-tone=empty]{color:var(--dsw-alias-label-tertiary)}.xoziZG_heatCell[data-tone=pad]{background:0 0}.xoziZG_heatCell[data-tone=out]{color:var(--dsw-alias-label-tertiary);opacity:.45;background:0 0}.xoziZG_heatCell[data-tone=lv1]{color:#0f1115;background:#ddf4e7}.xoziZG_heatCell[data-tone=lv2]{color:#0f1115;background:#b3e8cc}.xoziZG_heatCell[data-tone=lv3]{color:#0f1115;background:#7dd8ac}.xoziZG_heatCell[data-tone=lv4]{color:#fff;background:#40c584}.xoziZG_heatCell[data-tone=lv5]{color:#fff;background:#16a34a}.xoziZG_heatCell[data-today=true]{box-shadow:inset 0 -2px 0 0 var(--heat-today-mark,#16a34a);font-weight:700}.xoziZG_heatCell[data-today=true][data-tone=lv4],.xoziZG_heatCell[data-today=true][data-tone=lv5]{--heat-today-mark:#fff}.xoziZG_heatHours{grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;margin:8px 0 0;display:grid}.xoziZG_heatHourCell{background:color-mix(in srgb, var(--dsw-alias-label-primary) 6%, transparent);border-radius:4px;height:26px;transition:background .12s ease-out}.xoziZG_heatHourCell[data-tone=lv1]{background:#ddf4e7}.xoziZG_heatHourCell[data-tone=lv2]{background:#b3e8cc}.xoziZG_heatHourCell[data-tone=lv3]{background:#7dd8ac}.xoziZG_heatHourCell[data-tone=lv4]{background:#40c584}.xoziZG_heatHourCell[data-tone=lv5]{background:#16a34a}.xoziZG_heatAxis{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;font-size:10px;line-height:14px;display:grid}.xoziZG_heatAxisSlot{text-align:center;white-space:nowrap;overflow:hidden}.xoziZG_heatLegend{color:var(--dsw-alias-label-tertiary);justify-content:flex-start;align-items:center;gap:3px;margin:0 0 6px;font-size:10px;display:flex}.xoziZG_heatLegendChip{border-radius:3px;width:10px;height:10px}.xoziZG_heatLegendChip[data-tone=lv1]{background:#ddf4e7}.xoziZG_heatLegendChip[data-tone=lv2]{background:#b3e8cc}.xoziZG_heatLegendChip[data-tone=lv3]{background:#7dd8ac}.xoziZG_heatLegendChip[data-tone=lv4]{background:#40c584}.xoziZG_heatLegendChip[data-tone=lv5]{background:#16a34a}.xoziZG_trendTip{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:11px;line-height:16px}.xoziZG_check{flex:1;min-width:0}.xoziZG_check>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.xoziZG_manual{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);margin-top:12px;padding:0 12px}.xoziZG_manual[open]{padding-bottom:12px}.xoziZG_manualSummary{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:6px;padding:9px 0;font-size:13px;list-style:none;display:flex}.xoziZG_manualSummary::-webkit-details-marker{display:none}.xoziZG_field{flex-direction:column;gap:5px;margin-top:10px;display:flex}.xoziZG_fieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px}.xoziZG_area{box-sizing:border-box;resize:vertical;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;color:var(--dsw-alias-label-primary);padding:6px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:20px}.xoziZG_area::placeholder{color:var(--dsw-alias-label-dimmed)}.xoziZG_area:focus{border-color:var(--dsw-alias-state-business-primary);outline:none}.xoziZG_skeleton{flex-direction:column;gap:10px;padding:4px 0;display:flex}.xoziZG_skeletonRow{border-radius:var(--dsw-radius-sm,4px);background:var(--dsw-alias-border-l2);height:12px;animation:1.4s ease-in-out infinite xoziZG_skeletonBreath}.xoziZG_skeletonRow:nth-child(2){width:72%}.xoziZG_skeletonRow:nth-child(3){width:46%}@keyframes xoziZG_skeletonBreath{0%,to{opacity:.45}50%{opacity:.9}}@media (prefers-reduced-motion:reduce){.xoziZG_skeletonRow{animation:none}}.xoziZG_modelSpec{color:var(--dsw-alias-label-tertiary);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px;line-height:16px}.xoziZG_windowAnchor{flex:none;margin-left:auto;position:relative}.xoziZG_windowButton{font:inherit;color:var(--dsw-alias-label-tertiary);white-space:nowrap;font-variant-numeric:tabular-nums;border-radius:var(--dsw-radius-sm);cursor:pointer;background:0 0;border:.5px solid #0000;align-items:center;gap:3px;padding:1px 4px;font-size:11px;line-height:16px;display:inline-flex}.xoziZG_windowButton:hover,.xoziZG_windowButtonOpen{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-border-l3)}.xoziZG_windowButtonSet{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-state-business-primary);font-weight:500}.xoziZG_windowCaret{opacity:.7;font-size:9px;line-height:1}.xoziZG_windowPopover{z-index:40;background:var(--dsw-alias-bg-layer-2);border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);flex-direction:column;gap:8px;width:208px;padding:10px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 6px 20px #0000002e}.xoziZG_windowPopoverHead{color:var(--dsw-alias-label-secondary);justify-content:space-between;align-items:baseline;gap:8px;font-size:11px;line-height:16px;display:flex}.xoziZG_windowPopoverValue{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary)}.xoziZG_windowRange{cursor:pointer;width:100%;height:16px;accent-color:var(--dsw-alias-brand-primary);margin:0}.xoziZG_windowRange:disabled{cursor:not-allowed;opacity:.5}.xoziZG_windowPopoverRow{align-items:center;gap:6px;display:flex}.xoziZG_windowUnit{color:var(--dsw-alias-label-tertiary);font-size:11px}.xoziZG_windowInput{min-width:0;font:inherit;font-variant-numeric:tabular-nums;text-align:right;color:var(--dsw-alias-label-primary);border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);-moz-appearance:textfield;appearance:textfield;background:0 0;flex:1;padding:2px 6px;font-size:11px;line-height:16px}.xoziZG_windowInput::-webkit-outer-spin-button,.xoziZG_windowInput::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.xoziZG_windowInput:focus{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-brand-primary);outline:none}.xoziZG_windowInputSet{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-state-business-primary);font-weight:500}.xoziZG_windowHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:10px;line-height:15px}.xoziZG_doctorList{flex-direction:column;gap:2px;margin-top:8px;display:flex}.xoziZG_doctorRow{align-items:center;gap:8px;padding:4px 0;display:flex}.xoziZG_doctorName{color:var(--dsw-alias-label-secondary);flex:none;font-size:12px;line-height:18px}.xoziZG_doctorRow .xoziZG_meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}";
|
|
149
|
+
const css$1 = ".xoziZG_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-settings-card-fill);box-sizing:border-box;width:100%;max-width:none}.xoziZG_header{align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.xoziZG_headText{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.xoziZG_name{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:22px}.xoziZG_desc{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px}.xoziZG_statusLine{color:var(--dsw-alias-label-primary);align-items:center;gap:6px;font-size:14px;font-weight:500;line-height:22px;display:inline-flex}.xoziZG_meta{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:12px;line-height:18px}.xoziZG_body{border-top:.5px solid var(--dsw-alias-border-l2);margin:0 16px;padding:4px 0 16px}.xoziZG_tabs{margin-top:12px}.xoziZG_tabPanel{padding-top:2px}.xoziZG_accountToolbar{gap:8px;margin-top:12px;display:flex}.xoziZG_accountToolbar>*{flex:1}.xoziZG_manualForm{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);margin-top:12px;padding:12px}.xoziZG_accountCard{flex-direction:column;gap:10px;margin-top:12px;display:flex}.xoziZG_accountGrid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;gap:10px;display:grid}.xoziZG_accountGrid>*{min-width:0}.xoziZG_accountEntry{border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-2)}.xoziZG_accountRow{align-items:center;gap:10px;padding:12px;display:flex}.xoziZG_claimAllRow{border-top:.5px solid var(--dsw-alias-border-l2);justify-content:flex-end;padding:10px 12px 0;display:flex}.xoziZG_avatar{background:var(--dsw-alias-bg-layer-3);width:32px;height:32px;color:var(--dsw-alias-label-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:14px;font-weight:600;display:inline-flex}.xoziZG_accountInfo{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.xoziZG_accountNameRow{align-items:center;gap:6px;min-width:0;display:flex}.xoziZG_accountName{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;overflow:hidden}.xoziZG_accountRowActions{flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}.xoziZG_accountToggle{align-items:center;display:inline-flex}.xoziZG_accountHint{color:var(--dsw-alias-label-tertiary);margin:0;padding:0 12px 12px;font-size:12px;line-height:18px}.xoziZG_accountMenuAnchor{display:inline-flex;position:relative}.xoziZG_accountMenu{z-index:40;background:var(--dsw-alias-bg-layer-2);border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);flex-direction:column;min-width:132px;padding:4px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 6px 20px #0000002e}.xoziZG_accountMenuItem{appearance:none;text-align:left;border-radius:var(--dsw-radius-sm);font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border:0;padding:7px 10px;font-size:12px;line-height:18px}.xoziZG_accountMenuItem:hover{background:var(--dsw-alias-interactive-bg-hover)}.xoziZG_accountClear{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;display:flex}.xoziZG_accountClearHint{min-width:200px;color:var(--dsw-alias-label-tertiary);flex:1;margin:0;font-size:12px;line-height:18px}.xoziZG_creditBlock{border-top:.5px solid var(--dsw-alias-border-l2);padding:12px}.xoziZG_balanceRow{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.xoziZG_balance{color:var(--dsw-alias-label-primary);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:28px;font-weight:600;line-height:34px}.xoziZG_balanceUnit{color:var(--dsw-alias-label-secondary);font-size:12px}.xoziZG_balanceMeta{color:var(--dsw-alias-label-tertiary);margin-left:2px;font-size:12px}.xoziZG_updated{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;margin-left:auto;font-size:12px}.xoziZG_creditRows{flex-direction:column;gap:4px;margin-top:8px;display:flex}.xoziZG_creditRow{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;line-height:18px;display:flex}.xoziZG_usageBar{background:var(--dsw-alias-border-l2);border-radius:2px;height:4px;margin-top:4px;display:block;overflow:hidden}.xoziZG_usageFill{background:var(--dsw-alias-brand-primary);border-radius:2px;height:100%;transition:width .2s;display:block}.xoziZG_expiryRow{margin-top:2px}.xoziZG_expiryLabel{color:var(--dsw-alias-state-warn-label)}.xoziZG_bar{background:var(--dsw-alias-bg-layer-3);border-radius:2px;height:4px;margin-top:6px;display:block;overflow:hidden}.xoziZG_barFill{background:var(--dsw-alias-state-warn-primary);border-radius:2px;height:100%;display:block}.xoziZG_creditLink{margin-top:8px;display:inline-block}.xoziZG_creditFooter{border-top:.5px solid var(--dsw-alias-border-l2);justify-content:space-between;align-items:center;gap:8px;margin-top:12px;padding-top:10px;display:flex}.xoziZG_creditHint{color:var(--dsw-alias-label-tertiary);margin:8px 0 0;font-size:12px;line-height:18px}.xoziZG_section{margin-top:16px}.xoziZG_groupHead{border-top:.5px solid var(--dsw-alias-border-l2);align-items:baseline;gap:8px;margin-top:24px;padding-top:12px;display:flex}.xoziZG_groupHeadFirst{border-top:none;padding-top:0}.xoziZG_groupLabel{color:var(--dsw-alias-label-primary);font-size:12px;font-weight:600}.xoziZG_sectionHead{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.xoziZG_sectionLabel{color:var(--dsw-alias-label-tertiary);font-size:11px;font-weight:500}.xoziZG_count{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;flex:none;font-size:12px}.xoziZG_hint{color:var(--dsw-alias-label-secondary);margin:8px 0 0;font-size:13px;line-height:20px}.xoziZG_error{color:var(--dsw-alias-state-error-primary);margin:10px 0 0;font-size:13px;line-height:20px}.xoziZG_actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;display:flex}.xoziZG_danger{color:var(--dsw-alias-state-error-primary)}.xoziZG_link{appearance:none;color:var(--dsw-alias-brand-text);font:inherit;text-align:left;word-break:break-all;cursor:pointer;background:0 0;border:none;padding:0;font-size:12px}.xoziZG_link:hover{text-decoration:underline}.xoziZG_choices{flex-direction:column;gap:2px;margin-top:8px;display:flex}.xoziZG_choiceTail{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;margin-left:auto;display:inline-flex}.xoziZG_modelMeta{color:var(--dsw-alias-label-tertiary);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px;line-height:16px}.xoziZG_choiceRow{border-radius:var(--dsw-radius-sm);flex-wrap:wrap;align-items:center;gap:8px;margin:0 -6px;padding:5px 6px;display:flex}.xoziZG_choiceRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.xoziZG_statGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 14px;display:grid}.xoziZG_statCard{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);flex-direction:column;gap:1px;padding:8px 10px;display:flex}.xoziZG_statLabel{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}.xoziZG_statValue{color:var(--dsw-alias-label-primary);font-variant-numeric:tabular-nums;font-size:15px;line-height:20px}.xoziZG_statSub{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:11px;line-height:16px}.xoziZG_modelChart{flex-direction:column;gap:2px;margin-top:8px;display:flex}.xoziZG_modelRow{font-variant-numeric:tabular-nums;border-radius:6px;grid-template-columns:minmax(0,1.2fr) minmax(48px,1fr) 56px 52px 64px;align-items:center;gap:8px;padding:4px 0;display:grid;position:relative}.xoziZG_modelRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.xoziZG_usageTip{z-index:5;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-3);min-width:180px;max-width:260px;color:var(--dsw-alias-label-secondary);text-align:left;font-variant-numeric:tabular-nums;pointer-events:none;padding:8px 10px;font-size:12px;line-height:1.9;position:absolute;bottom:calc(100% + 6px);right:0;box-shadow:0 10px 28px #00000073}.xoziZG_usageTip[data-float=true]{z-index:40;position:fixed;bottom:auto;right:auto}.xoziZG_usageTipName{max-width:240px;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.xoziZG_usageTipSep{background:var(--dsw-alias-border-l2);height:1px;margin:4px 0}.xoziZG_usageTipRow{justify-content:space-between;gap:24px;display:flex}.xoziZG_usageTipRow span:last-child{color:var(--dsw-alias-label-primary);font-weight:600}.xoziZG_modelName{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;overflow:hidden}.xoziZG_modelTrack{background:var(--dsw-alias-border-l2);border-radius:4px;height:8px;display:block;overflow:hidden}.xoziZG_modelFill{background:var(--dsw-alias-brand-primary);border-radius:4px;height:100%;transition:width .16s;display:block}.xoziZG_modelTokens,.xoziZG_modelShare,.xoziZG_modelRequests{color:var(--dsw-alias-label-secondary);text-align:right;white-space:nowrap;font-size:11px;line-height:16px}.xoziZG_modelRequests{color:var(--dsw-alias-label-tertiary)}.xoziZG_heatGrid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:8px 0 2px;display:grid}.xoziZG_heatWeekday{color:var(--dsw-alias-label-tertiary);text-align:center;font-size:10px;line-height:14px}.xoziZG_heatCell{background:color-mix(in srgb, var(--dsw-alias-label-primary) 6%, transparent);height:36px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;border:0;border-radius:8px;outline:0;justify-content:center;align-items:center;font-size:12px;transition:background .12s ease-out;display:flex}.xoziZG_heatCell[data-tone=empty]{color:var(--dsw-alias-label-tertiary)}.xoziZG_heatCell[data-tone=pad]{background:0 0}.xoziZG_heatCell[data-tone=out]{color:var(--dsw-alias-label-tertiary);opacity:.45;background:0 0}.xoziZG_heatCell[data-tone=lv1]{color:#0f1115;background:#ddf4e7}.xoziZG_heatCell[data-tone=lv2]{color:#0f1115;background:#b3e8cc}.xoziZG_heatCell[data-tone=lv3]{color:#0f1115;background:#7dd8ac}.xoziZG_heatCell[data-tone=lv4]{color:#fff;background:#40c584}.xoziZG_heatCell[data-tone=lv5]{color:#fff;background:#16a34a}.xoziZG_heatCell[data-today=true]{box-shadow:inset 0 -2px 0 0 var(--heat-today-mark,#16a34a);font-weight:700}.xoziZG_heatCell[data-today=true][data-tone=lv4],.xoziZG_heatCell[data-today=true][data-tone=lv5]{--heat-today-mark:#fff}.xoziZG_heatHours{grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;margin:8px 0 0;display:grid}.xoziZG_heatHourCell{background:color-mix(in srgb, var(--dsw-alias-label-primary) 6%, transparent);border-radius:4px;height:26px;transition:background .12s ease-out}.xoziZG_heatHourCell[data-tone=lv1]{background:#ddf4e7}.xoziZG_heatHourCell[data-tone=lv2]{background:#b3e8cc}.xoziZG_heatHourCell[data-tone=lv3]{background:#7dd8ac}.xoziZG_heatHourCell[data-tone=lv4]{background:#40c584}.xoziZG_heatHourCell[data-tone=lv5]{background:#16a34a}.xoziZG_heatAxis{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;font-size:10px;line-height:14px;display:grid}.xoziZG_heatAxisSlot{text-align:center;white-space:nowrap;overflow:hidden}.xoziZG_heatLegend{color:var(--dsw-alias-label-tertiary);justify-content:flex-start;align-items:center;gap:3px;margin:0 0 6px;font-size:10px;display:flex}.xoziZG_heatLegendChip{border-radius:3px;width:10px;height:10px}.xoziZG_heatLegendChip[data-tone=lv1]{background:#ddf4e7}.xoziZG_heatLegendChip[data-tone=lv2]{background:#b3e8cc}.xoziZG_heatLegendChip[data-tone=lv3]{background:#7dd8ac}.xoziZG_heatLegendChip[data-tone=lv4]{background:#40c584}.xoziZG_heatLegendChip[data-tone=lv5]{background:#16a34a}.xoziZG_trendTip{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:11px;line-height:16px}.xoziZG_check{flex:1;min-width:0}.xoziZG_check>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.xoziZG_manual{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);margin-top:12px;padding:0 12px}.xoziZG_manual[open]{padding-bottom:12px}.xoziZG_manualSummary{color:var(--dsw-alias-label-secondary);cursor:pointer;align-items:center;gap:6px;padding:9px 0;font-size:13px;list-style:none;display:flex}.xoziZG_manualSummary::-webkit-details-marker{display:none}.xoziZG_field{flex-direction:column;gap:5px;margin-top:10px;display:flex}.xoziZG_fieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px}.xoziZG_area{box-sizing:border-box;resize:vertical;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;color:var(--dsw-alias-label-primary);padding:6px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:20px}.xoziZG_area::placeholder{color:var(--dsw-alias-label-dimmed)}.xoziZG_area:focus{border-color:var(--dsw-alias-state-business-primary);outline:none}.xoziZG_skeleton{flex-direction:column;gap:10px;padding:4px 0;display:flex}.xoziZG_skeletonRow{border-radius:var(--dsw-radius-sm,4px);background:var(--dsw-alias-border-l2);height:12px;animation:1.4s ease-in-out infinite xoziZG_skeletonBreath}.xoziZG_skeletonRow:nth-child(2){width:72%}.xoziZG_skeletonRow:nth-child(3){width:46%}@keyframes xoziZG_skeletonBreath{0%,to{opacity:.45}50%{opacity:.9}}@media (prefers-reduced-motion:reduce){.xoziZG_skeletonRow{animation:none}}.xoziZG_modelSpec{color:var(--dsw-alias-label-tertiary);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px;line-height:16px}.xoziZG_windowAnchor{flex:none;position:relative}.xoziZG_modelCheck{flex:0 auto}.xoziZG_windowButton{font:inherit;color:var(--dsw-alias-label-tertiary);white-space:nowrap;font-variant-numeric:tabular-nums;border-radius:var(--dsw-radius-sm);cursor:pointer;background:0 0;border:.5px solid #0000;align-items:center;gap:3px;padding:1px 4px;font-size:11px;line-height:16px;display:inline-flex}.xoziZG_windowButton:hover,.xoziZG_windowButtonOpen{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-border-l3)}.xoziZG_windowButtonSet{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-state-business-primary);font-weight:500}.xoziZG_windowCaret{opacity:.7;font-size:9px;line-height:1}.xoziZG_windowPopover{z-index:40;background:var(--dsw-alias-bg-layer-2);border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);flex-direction:column;gap:8px;width:208px;padding:10px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 6px 20px #0000002e}.xoziZG_windowPopoverHead{color:var(--dsw-alias-label-secondary);justify-content:space-between;align-items:baseline;gap:8px;font-size:11px;line-height:16px;display:flex}.xoziZG_windowPopoverValue{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-primary)}.xoziZG_windowRange{cursor:pointer;width:100%;height:16px;accent-color:var(--dsw-alias-brand-primary);margin:0}.xoziZG_windowRange:disabled{cursor:not-allowed;opacity:.5}.xoziZG_windowPopoverRow{align-items:center;gap:6px;display:flex}.xoziZG_windowUnit{color:var(--dsw-alias-label-tertiary);font-size:11px}.xoziZG_windowInput{min-width:0;font:inherit;font-variant-numeric:tabular-nums;text-align:right;color:var(--dsw-alias-label-primary);border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);-moz-appearance:textfield;appearance:textfield;background:0 0;flex:1;padding:2px 6px;font-size:11px;line-height:16px}.xoziZG_windowInput::-webkit-outer-spin-button,.xoziZG_windowInput::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.xoziZG_windowInput:focus{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-brand-primary);outline:none}.xoziZG_windowInputSet{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-state-business-primary);font-weight:500}.xoziZG_windowHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:10px;line-height:15px}.xoziZG_doctorList{flex-direction:column;gap:2px;margin-top:8px;display:flex}.xoziZG_doctorRow{align-items:center;gap:8px;padding:4px 0;display:flex}.xoziZG_doctorName{color:var(--dsw-alias-label-secondary);flex:none;font-size:12px;line-height:18px}.xoziZG_doctorRow .xoziZG_meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}";
|
|
149
150
|
const tagId$1 = "dsh-codearts/CodeArtsPluginCard.module.css";
|
|
150
151
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
151
152
|
const tag = document.createElement("style");
|
|
@@ -155,112 +156,123 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
|
|
|
155
156
|
document.head.appendChild(tag);
|
|
156
157
|
}
|
|
157
158
|
var CodeArtsPluginCard_module_css_default = {
|
|
158
|
-
"usageTipName": "xoziZG_usageTipName",
|
|
159
|
-
"accountInfo": "xoziZG_accountInfo",
|
|
160
|
-
"modelSpec": "xoziZG_modelSpec",
|
|
161
|
-
"header": "xoziZG_header",
|
|
162
|
-
"sectionLabel": "xoziZG_sectionLabel",
|
|
163
|
-
"heatWeekday": "xoziZG_heatWeekday",
|
|
164
159
|
"balanceMeta": "xoziZG_balanceMeta",
|
|
165
|
-
"
|
|
166
|
-
"statGrid": "xoziZG_statGrid",
|
|
167
|
-
"danger": "xoziZG_danger",
|
|
168
|
-
"accountHint": "xoziZG_accountHint",
|
|
169
|
-
"creditFooter": "xoziZG_creditFooter",
|
|
170
|
-
"creditLink": "xoziZG_creditLink",
|
|
171
|
-
"sectionHead": "xoziZG_sectionHead",
|
|
172
|
-
"bar": "xoziZG_bar",
|
|
173
|
-
"accountName": "xoziZG_accountName",
|
|
174
|
-
"usageTipSep": "xoziZG_usageTipSep",
|
|
175
|
-
"check": "xoziZG_check",
|
|
176
|
-
"balance": "xoziZG_balance",
|
|
177
|
-
"usageBar": "xoziZG_usageBar",
|
|
178
|
-
"choiceRow": "xoziZG_choiceRow",
|
|
160
|
+
"section": "xoziZG_section",
|
|
179
161
|
"statCard": "xoziZG_statCard",
|
|
180
|
-
"
|
|
162
|
+
"skeleton": "xoziZG_skeleton",
|
|
163
|
+
"windowPopoverValue": "xoziZG_windowPopoverValue",
|
|
164
|
+
"heatHourCell": "xoziZG_heatHourCell",
|
|
165
|
+
"heatLegendChip": "xoziZG_heatLegendChip",
|
|
166
|
+
"sectionHead": "xoziZG_sectionHead",
|
|
167
|
+
"creditLink": "xoziZG_creditLink",
|
|
168
|
+
"groupLabel": "xoziZG_groupLabel",
|
|
169
|
+
"usageTipName": "xoziZG_usageTipName",
|
|
170
|
+
"accountMenu": "xoziZG_accountMenu",
|
|
171
|
+
"expiryRow": "xoziZG_expiryRow",
|
|
172
|
+
"accountMenuItem": "xoziZG_accountMenuItem",
|
|
173
|
+
"tabPanel": "xoziZG_tabPanel",
|
|
174
|
+
"header": "xoziZG_header",
|
|
175
|
+
"accountGrid": "xoziZG_accountGrid",
|
|
176
|
+
"creditHint": "xoziZG_creditHint",
|
|
181
177
|
"statSub": "xoziZG_statSub",
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
178
|
+
"heatAxis": "xoziZG_heatAxis",
|
|
179
|
+
"windowCaret": "xoziZG_windowCaret",
|
|
180
|
+
"windowButtonOpen": "xoziZG_windowButtonOpen",
|
|
181
|
+
"windowPopoverRow": "xoziZG_windowPopoverRow",
|
|
182
|
+
"choiceTail": "xoziZG_choiceTail",
|
|
183
|
+
"accountClearHint": "xoziZG_accountClearHint",
|
|
184
|
+
"name": "xoziZG_name",
|
|
185
|
+
"usageFill": "xoziZG_usageFill",
|
|
186
|
+
"barFill": "xoziZG_barFill",
|
|
187
187
|
"windowAnchor": "xoziZG_windowAnchor",
|
|
188
|
-
"
|
|
188
|
+
"modelRequests": "xoziZG_modelRequests",
|
|
189
|
+
"hint": "xoziZG_hint",
|
|
190
|
+
"accountHint": "xoziZG_accountHint",
|
|
191
|
+
"modelMeta": "xoziZG_modelMeta",
|
|
192
|
+
"accountName": "xoziZG_accountName",
|
|
193
|
+
"doctorList": "xoziZG_doctorList",
|
|
194
|
+
"tabs": "xoziZG_tabs",
|
|
195
|
+
"sectionLabel": "xoziZG_sectionLabel",
|
|
196
|
+
"modelTokens": "xoziZG_modelTokens",
|
|
197
|
+
"heatGrid": "xoziZG_heatGrid",
|
|
198
|
+
"accountRowActions": "xoziZG_accountRowActions",
|
|
199
|
+
"creditRow": "xoziZG_creditRow",
|
|
189
200
|
"balanceRow": "xoziZG_balanceRow",
|
|
190
|
-
"
|
|
201
|
+
"accountMenuAnchor": "xoziZG_accountMenuAnchor",
|
|
202
|
+
"statLabel": "xoziZG_statLabel",
|
|
191
203
|
"creditRows": "xoziZG_creditRows",
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
204
|
+
"creditFooter": "xoziZG_creditFooter",
|
|
205
|
+
"danger": "xoziZG_danger",
|
|
206
|
+
"doctorName": "xoziZG_doctorName",
|
|
207
|
+
"fieldLabel": "xoziZG_fieldLabel",
|
|
208
|
+
"choiceRow": "xoziZG_choiceRow",
|
|
209
|
+
"desc": "xoziZG_desc",
|
|
210
|
+
"modelRow": "xoziZG_modelRow",
|
|
211
|
+
"usageTipRow": "xoziZG_usageTipRow",
|
|
212
|
+
"windowUnit": "xoziZG_windowUnit",
|
|
213
|
+
"error": "xoziZG_error",
|
|
214
|
+
"doctorRow": "xoziZG_doctorRow",
|
|
215
|
+
"accountClear": "xoziZG_accountClear",
|
|
216
|
+
"accountToolbar": "xoziZG_accountToolbar",
|
|
217
|
+
"heatWeekday": "xoziZG_heatWeekday",
|
|
218
|
+
"windowInput": "xoziZG_windowInput",
|
|
219
|
+
"modelShare": "xoziZG_modelShare",
|
|
220
|
+
"manual": "xoziZG_manual",
|
|
221
|
+
"link": "xoziZG_link",
|
|
222
|
+
"groupHeadFirst": "xoziZG_groupHeadFirst",
|
|
223
|
+
"modelChart": "xoziZG_modelChart",
|
|
224
|
+
"modelCheck": "xoziZG_modelCheck",
|
|
225
|
+
"headText": "xoziZG_headText",
|
|
226
|
+
"balance": "xoziZG_balance",
|
|
197
227
|
"windowPopover": "xoziZG_windowPopover",
|
|
198
|
-
"creditRow": "xoziZG_creditRow",
|
|
199
|
-
"accountEntry": "xoziZG_accountEntry",
|
|
200
|
-
"modelName": "xoziZG_modelName",
|
|
201
|
-
"meta": "xoziZG_meta",
|
|
202
|
-
"expiryRow": "xoziZG_expiryRow",
|
|
203
|
-
"choices": "xoziZG_choices",
|
|
204
|
-
"balanceUnit": "xoziZG_balanceUnit",
|
|
205
|
-
"heatAxisSlot": "xoziZG_heatAxisSlot",
|
|
206
228
|
"heatCell": "xoziZG_heatCell",
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"hint": "xoziZG_hint",
|
|
210
|
-
"heatHourCell": "xoziZG_heatHourCell",
|
|
211
|
-
"barFill": "xoziZG_barFill",
|
|
212
|
-
"modelChart": "xoziZG_modelChart",
|
|
229
|
+
"windowButton": "xoziZG_windowButton",
|
|
230
|
+
"count": "xoziZG_count",
|
|
213
231
|
"usageTip": "xoziZG_usageTip",
|
|
214
|
-
"modelTokens": "xoziZG_modelTokens",
|
|
215
|
-
"trendTip": "xoziZG_trendTip",
|
|
216
|
-
"skeletonRow": "xoziZG_skeletonRow",
|
|
217
|
-
"windowButtonSet": "xoziZG_windowButtonSet",
|
|
218
|
-
"windowCaret": "xoziZG_windowCaret",
|
|
219
|
-
"modelTrack": "xoziZG_modelTrack",
|
|
220
|
-
"section": "xoziZG_section",
|
|
221
|
-
"statValue": "xoziZG_statValue",
|
|
222
|
-
"headText": "xoziZG_headText",
|
|
223
|
-
"accountToolbar": "xoziZG_accountToolbar",
|
|
224
|
-
"manualForm": "xoziZG_manualForm",
|
|
225
232
|
"body": "xoziZG_body",
|
|
226
|
-
"
|
|
227
|
-
"
|
|
233
|
+
"modelSpec": "xoziZG_modelSpec",
|
|
234
|
+
"statValue": "xoziZG_statValue",
|
|
235
|
+
"modelTrack": "xoziZG_modelTrack",
|
|
236
|
+
"accountEntry": "xoziZG_accountEntry",
|
|
237
|
+
"meta": "xoziZG_meta",
|
|
238
|
+
"groupHead": "xoziZG_groupHead",
|
|
228
239
|
"avatar": "xoziZG_avatar",
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
"
|
|
240
|
+
"statGrid": "xoziZG_statGrid",
|
|
241
|
+
"trendTip": "xoziZG_trendTip",
|
|
242
|
+
"heatAxisSlot": "xoziZG_heatAxisSlot",
|
|
243
|
+
"accountInfo": "xoziZG_accountInfo",
|
|
244
|
+
"usageTipSep": "xoziZG_usageTipSep",
|
|
245
|
+
"modelFill": "xoziZG_modelFill",
|
|
246
|
+
"statusLine": "xoziZG_statusLine",
|
|
247
|
+
"updated": "xoziZG_updated",
|
|
248
|
+
"windowButtonSet": "xoziZG_windowButtonSet",
|
|
249
|
+
"choices": "xoziZG_choices",
|
|
250
|
+
"windowInputSet": "xoziZG_windowInputSet",
|
|
233
251
|
"creditBlock": "xoziZG_creditBlock",
|
|
252
|
+
"accountToggle": "xoziZG_accountToggle",
|
|
253
|
+
"field": "xoziZG_field",
|
|
254
|
+
"expiryLabel": "xoziZG_expiryLabel",
|
|
255
|
+
"skeletonBreath": "xoziZG_skeletonBreath",
|
|
234
256
|
"accountNameRow": "xoziZG_accountNameRow",
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"
|
|
238
|
-
"creditHint": "xoziZG_creditHint",
|
|
239
|
-
"fieldLabel": "xoziZG_fieldLabel",
|
|
240
|
-
"windowPopoverValue": "xoziZG_windowPopoverValue",
|
|
241
|
-
"tabs": "xoziZG_tabs",
|
|
242
|
-
"claimAllRow": "xoziZG_claimAllRow",
|
|
243
|
-
"count": "xoziZG_count",
|
|
244
|
-
"statLabel": "xoziZG_statLabel",
|
|
257
|
+
"manualSummary": "xoziZG_manualSummary",
|
|
258
|
+
"usageBar": "xoziZG_usageBar",
|
|
259
|
+
"heatLegend": "xoziZG_heatLegend",
|
|
245
260
|
"windowRange": "xoziZG_windowRange",
|
|
246
|
-
"
|
|
247
|
-
"windowInputSet": "xoziZG_windowInputSet",
|
|
248
|
-
"tabPanel": "xoziZG_tabPanel",
|
|
249
|
-
"doctorName": "xoziZG_doctorName",
|
|
250
|
-
"modelShare": "xoziZG_modelShare",
|
|
251
|
-
"accountRowActions": "xoziZG_accountRowActions",
|
|
252
|
-
"skeletonBreath": "xoziZG_skeletonBreath",
|
|
253
|
-
"expiryLabel": "xoziZG_expiryLabel",
|
|
254
|
-
"manual": "xoziZG_manual",
|
|
255
|
-
"actions": "xoziZG_actions",
|
|
261
|
+
"accountCard": "xoziZG_accountCard",
|
|
256
262
|
"card": "xoziZG_card",
|
|
257
|
-
"field": "xoziZG_field",
|
|
258
|
-
"modelRow": "xoziZG_modelRow",
|
|
259
|
-
"doctorRow": "xoziZG_doctorRow",
|
|
260
263
|
"area": "xoziZG_area",
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
+
"heatHours": "xoziZG_heatHours",
|
|
265
|
+
"manualForm": "xoziZG_manualForm",
|
|
266
|
+
"claimAllRow": "xoziZG_claimAllRow",
|
|
267
|
+
"accountRow": "xoziZG_accountRow",
|
|
268
|
+
"check": "xoziZG_check",
|
|
269
|
+
"balanceUnit": "xoziZG_balanceUnit",
|
|
270
|
+
"bar": "xoziZG_bar",
|
|
271
|
+
"actions": "xoziZG_actions",
|
|
272
|
+
"windowPopoverHead": "xoziZG_windowPopoverHead",
|
|
273
|
+
"windowHint": "xoziZG_windowHint",
|
|
274
|
+
"modelName": "xoziZG_modelName",
|
|
275
|
+
"skeletonRow": "xoziZG_skeletonRow"
|
|
264
276
|
};
|
|
265
277
|
//#endregion
|
|
266
278
|
//#region src/client/CodeArtsPluginCard.tsx
|
|
@@ -1128,6 +1140,8 @@ function CodeArtsPluginCard({ t }) {
|
|
|
1128
1140
|
const [testResults, setTestResults] = (0, react.useState)(() => ({ ...lastTestResults }));
|
|
1129
1141
|
/** 正在提交 paused/pinned 的账号 id。 */
|
|
1130
1142
|
const [flagBusy, setFlagBusy] = (0, react.useState)(null);
|
|
1143
|
+
/** 展开了行尾「⋯」菜单的账号 id(同一时间只开一个)。 */
|
|
1144
|
+
const [accountMenuFor, setAccountMenuFor] = (0, react.useState)(null);
|
|
1131
1145
|
const [doctor, setDoctor] = (0, react.useState)(null);
|
|
1132
1146
|
const [doctorBusy, setDoctorBusy] = (0, react.useState)(false);
|
|
1133
1147
|
const [doctorError, setDoctorError] = (0, react.useState)(null);
|
|
@@ -1357,6 +1371,26 @@ function CodeArtsPluginCard({ t }) {
|
|
|
1357
1371
|
windowDrafts,
|
|
1358
1372
|
selection
|
|
1359
1373
|
]);
|
|
1374
|
+
(0, react.useEffect)(() => {
|
|
1375
|
+
if (accountMenuFor === null) return;
|
|
1376
|
+
function onPointerDown(event) {
|
|
1377
|
+
const target = event.target;
|
|
1378
|
+
if (target instanceof Element && target.closest("[data-account-menu]") !== null) return;
|
|
1379
|
+
setAccountMenuFor(null);
|
|
1380
|
+
}
|
|
1381
|
+
function onKeyDown(event) {
|
|
1382
|
+
if (event.key === "Escape") {
|
|
1383
|
+
event.stopPropagation();
|
|
1384
|
+
setAccountMenuFor(null);
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
document.addEventListener("click", onPointerDown);
|
|
1388
|
+
document.addEventListener("keydown", onKeyDown);
|
|
1389
|
+
return () => {
|
|
1390
|
+
document.removeEventListener("click", onPointerDown);
|
|
1391
|
+
document.removeEventListener("keydown", onKeyDown);
|
|
1392
|
+
};
|
|
1393
|
+
}, [accountMenuFor]);
|
|
1360
1394
|
async function saveToken(e) {
|
|
1361
1395
|
e.preventDefault();
|
|
1362
1396
|
setBusy(true);
|
|
@@ -1919,101 +1953,122 @@ function CodeArtsPluginCard({ t }) {
|
|
|
1919
1953
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1920
1954
|
className: CodeArtsPluginCard_module_css_default.accountCard,
|
|
1921
1955
|
children: [
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
className: CodeArtsPluginCard_module_css_default.
|
|
1929
|
-
children: [
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1956
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1957
|
+
className: CodeArtsPluginCard_module_css_default.accountGrid,
|
|
1958
|
+
children: accounts.map((account) => {
|
|
1959
|
+
const accountLine = accountMeta(account);
|
|
1960
|
+
const credit = creditFor(account.id);
|
|
1961
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1962
|
+
className: CodeArtsPluginCard_module_css_default.accountEntry,
|
|
1963
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1964
|
+
className: CodeArtsPluginCard_module_css_default.accountRow,
|
|
1965
|
+
children: [
|
|
1966
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1967
|
+
className: CodeArtsPluginCard_module_css_default.avatar,
|
|
1968
|
+
"aria-hidden": "true",
|
|
1969
|
+
children: Array.from(accountName(account))[0] ?? "*"
|
|
1970
|
+
}),
|
|
1971
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1972
|
+
className: CodeArtsPluginCard_module_css_default.accountInfo,
|
|
1973
|
+
children: [
|
|
1974
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
1975
|
+
className: CodeArtsPluginCard_module_css_default.accountNameRow,
|
|
1976
|
+
children: [
|
|
1977
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1978
|
+
className: CodeArtsPluginCard_module_css_default.accountName,
|
|
1979
|
+
children: accountName(account)
|
|
1980
|
+
}),
|
|
1981
|
+
account.paused && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("accountPaused") }),
|
|
1982
|
+
account.pinned && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
1983
|
+
tone: "success",
|
|
1984
|
+
children: t("accountPinned")
|
|
1985
|
+
}),
|
|
1986
|
+
account.stale && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("accountNeedsSignIn") }),
|
|
1987
|
+
!account.signable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("accountNoKey") })
|
|
1988
|
+
]
|
|
1989
|
+
}),
|
|
1990
|
+
accountLine !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1991
|
+
className: CodeArtsPluginCard_module_css_default.meta,
|
|
1992
|
+
children: accountLine
|
|
1993
|
+
}),
|
|
1994
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1995
|
+
className: CodeArtsPluginCard_module_css_default.meta,
|
|
1996
|
+
children: t("accountToday", {
|
|
1997
|
+
n: formatCount(status?.usage?.byAccountToday[account.id]?.requests ?? 0),
|
|
1998
|
+
failed: formatCount(status?.usage?.failuresByAccountToday?.[account.id] ?? 0)
|
|
1999
|
+
})
|
|
1963
2000
|
})
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2001
|
+
]
|
|
2002
|
+
}),
|
|
2003
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2004
|
+
className: CodeArtsPluginCard_module_css_default.accountRowActions,
|
|
2005
|
+
children: [
|
|
2006
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2007
|
+
className: CodeArtsPluginCard_module_css_default.accountToggle,
|
|
2008
|
+
title: t("accountEnabled"),
|
|
2009
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
|
|
2010
|
+
checked: !account.paused,
|
|
2011
|
+
disabled: busy || loginPending || flagBusy === account.id,
|
|
2012
|
+
label: `${accountName(account)} ${t("accountEnabled")}`,
|
|
2013
|
+
onChange: (next) => void setAccountFlag(account.id, { paused: !next })
|
|
2014
|
+
})
|
|
2015
|
+
}),
|
|
2016
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2017
|
+
variant: account.stale ? "primary" : "outline",
|
|
2018
|
+
size: "sm",
|
|
2019
|
+
disabled: busy || loginPending,
|
|
2020
|
+
onClick: () => void startOAuthLogin(account.id),
|
|
2021
|
+
children: reloginId === account.id && loginPending ? t("reloginPending") : t("accountRelogin")
|
|
2022
|
+
}),
|
|
2023
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
2024
|
+
className: CodeArtsPluginCard_module_css_default.accountMenuAnchor,
|
|
2025
|
+
"data-account-menu": true,
|
|
2026
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2027
|
+
variant: "outline",
|
|
2028
|
+
size: "sm",
|
|
2029
|
+
"aria-expanded": accountMenuFor === account.id,
|
|
2030
|
+
"aria-label": t("accountMore"),
|
|
2031
|
+
disabled: busy || loginPending || flagBusy === account.id,
|
|
2032
|
+
onClick: () => setAccountMenuFor((current) => current === account.id ? null : account.id),
|
|
2033
|
+
children: "⋯"
|
|
2034
|
+
}), accountMenuFor === account.id && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2035
|
+
className: CodeArtsPluginCard_module_css_default.accountMenu,
|
|
2036
|
+
role: "menu",
|
|
2037
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2038
|
+
type: "button",
|
|
2039
|
+
role: "menuitem",
|
|
2040
|
+
className: CodeArtsPluginCard_module_css_default.accountMenuItem,
|
|
2041
|
+
onClick: () => {
|
|
2042
|
+
setAccountMenuFor(null);
|
|
2043
|
+
setAccountFlag(account.id, { pinned: !account.pinned });
|
|
2044
|
+
},
|
|
2045
|
+
children: account.pinned ? t("accountUnpin") : t("accountPin")
|
|
2046
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2047
|
+
type: "button",
|
|
2048
|
+
role: "menuitem",
|
|
2049
|
+
className: `${CodeArtsPluginCard_module_css_default.accountMenuItem} ${CodeArtsPluginCard_module_css_default.danger}`,
|
|
2050
|
+
onClick: () => {
|
|
2051
|
+
setAccountMenuFor(null);
|
|
2052
|
+
removeAccount(account.id);
|
|
2053
|
+
},
|
|
2054
|
+
children: t("accountRemove")
|
|
2055
|
+
})]
|
|
2056
|
+
})]
|
|
2057
|
+
})
|
|
2058
|
+
]
|
|
2059
|
+
})
|
|
2060
|
+
]
|
|
2061
|
+
}), credit !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CreditBlock, {
|
|
2062
|
+
credits: credit.credits,
|
|
2063
|
+
error: credit.creditsError,
|
|
2064
|
+
t,
|
|
2065
|
+
onClaim: () => void claim(account.id),
|
|
2066
|
+
claiming: claimingId === account.id || claimingId === CLAIM_ALL,
|
|
2067
|
+
claimResult: claimResults[account.id] ?? null,
|
|
2068
|
+
justClaimed: claimedIds[account.id] === true
|
|
2069
|
+
})]
|
|
2070
|
+
}, account.id);
|
|
2071
|
+
})
|
|
2017
2072
|
}),
|
|
2018
2073
|
accounts.length > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2019
2074
|
className: CodeArtsPluginCard_module_css_default.claimAllRow,
|
|
@@ -2031,16 +2086,19 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2031
2086
|
})
|
|
2032
2087
|
]
|
|
2033
2088
|
}),
|
|
2034
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
2035
|
-
className: CodeArtsPluginCard_module_css_default.
|
|
2036
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2089
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2090
|
+
className: CodeArtsPluginCard_module_css_default.accountClear,
|
|
2091
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2092
|
+
className: CodeArtsPluginCard_module_css_default.accountClearHint,
|
|
2093
|
+
children: t("clearTokenHint")
|
|
2094
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2037
2095
|
variant: "outline",
|
|
2038
2096
|
size: "sm",
|
|
2039
2097
|
className: CodeArtsPluginCard_module_css_default.danger,
|
|
2040
2098
|
disabled: busy,
|
|
2041
2099
|
onClick: () => void clearToken(),
|
|
2042
2100
|
children: t("clearToken")
|
|
2043
|
-
})
|
|
2101
|
+
})]
|
|
2044
2102
|
})
|
|
2045
2103
|
]
|
|
2046
2104
|
})
|
|
@@ -2091,7 +2149,7 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2091
2149
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2092
2150
|
children: [
|
|
2093
2151
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2094
|
-
className: CodeArtsPluginCard_module_css_default.check
|
|
2152
|
+
className: `${CodeArtsPluginCard_module_css_default.check} ${CodeArtsPluginCard_module_css_default.modelCheck}`,
|
|
2095
2153
|
checked: draft.includes(choice.id),
|
|
2096
2154
|
disabled: !selection.writable || savingModels,
|
|
2097
2155
|
onChange: (on) => setModel(choice.id, on),
|
|
@@ -2179,39 +2237,40 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2179
2237
|
]
|
|
2180
2238
|
})]
|
|
2181
2239
|
}),
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
children:
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2240
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
2241
|
+
className: CodeArtsPluginCard_module_css_default.choiceTail,
|
|
2242
|
+
children: [
|
|
2243
|
+
choice.benefit === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
2244
|
+
tone: choice.blocked === true ? "warning" : "success",
|
|
2245
|
+
children: choice.blocked === true ? t("benefitBlocked") : t("benefit")
|
|
2246
|
+
}),
|
|
2247
|
+
choice.error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2248
|
+
title: choice.error,
|
|
2249
|
+
style: { cursor: "help" },
|
|
2250
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
2251
|
+
tone: "warning",
|
|
2252
|
+
children: t("modelError")
|
|
2253
|
+
})
|
|
2254
|
+
}),
|
|
2255
|
+
(choice.ratio !== void 0 || choice.supportsImages === true) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2256
|
+
className: CodeArtsPluginCard_module_css_default.modelMeta,
|
|
2257
|
+
children: [choice.ratio, choice.supportsImages === true ? t("modelImages") : void 0].filter(Boolean).join(" · ")
|
|
2258
|
+
}),
|
|
2259
|
+
draft.includes(choice.id) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2260
|
+
variant: "outline",
|
|
2261
|
+
size: "sm",
|
|
2262
|
+
disabled: testingId !== null,
|
|
2263
|
+
onClick: () => void testModel(choice.id),
|
|
2264
|
+
children: testingId === choice.id ? t("testingModel") : t("testModel")
|
|
2265
|
+
}),
|
|
2266
|
+
result !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2267
|
+
title: result.ms === void 0 ? result.message : `${result.message}(${result.ms} ms)`,
|
|
2268
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
2269
|
+
tone: result.ok ? "success" : "warning",
|
|
2270
|
+
children: result.ok ? t("testOk") : t("testFailed")
|
|
2271
|
+
})
|
|
2272
|
+
})
|
|
2273
|
+
]
|
|
2215
2274
|
})
|
|
2216
2275
|
]
|
|
2217
2276
|
}, choice.id);
|
|
@@ -2266,6 +2325,13 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2266
2325
|
labelledBy: tabId("display"),
|
|
2267
2326
|
active: activeTab === "display",
|
|
2268
2327
|
children: [
|
|
2328
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2329
|
+
className: `${CodeArtsPluginCard_module_css_default.groupHead} ${CodeArtsPluginCard_module_css_default.groupHeadFirst}`,
|
|
2330
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2331
|
+
className: CodeArtsPluginCard_module_css_default.groupLabel,
|
|
2332
|
+
children: t("displayGroupUi")
|
|
2333
|
+
})
|
|
2334
|
+
}),
|
|
2269
2335
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2270
2336
|
className: CodeArtsPluginCard_module_css_default.section,
|
|
2271
2337
|
children: [
|
|
@@ -2332,12 +2398,12 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2332
2398
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2333
2399
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2334
2400
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2335
|
-
children: t("
|
|
2401
|
+
children: t("displaySettingsEntryTitle")
|
|
2336
2402
|
})
|
|
2337
2403
|
}),
|
|
2338
2404
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2339
2405
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2340
|
-
children: t("
|
|
2406
|
+
children: t("displaySettingsEntryHint")
|
|
2341
2407
|
}),
|
|
2342
2408
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2343
2409
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2345,10 +2411,10 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2345
2411
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2346
2412
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2347
2413
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2348
|
-
checked: dock.
|
|
2349
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2350
|
-
onChange: (on) => void toggleDock("
|
|
2351
|
-
label: t("
|
|
2414
|
+
checked: dock.settingsEntry,
|
|
2415
|
+
disabled: !dockWritable || dockSavingKeys.has("settingsEntry"),
|
|
2416
|
+
onChange: (on) => void toggleDock("settingsEntry", on),
|
|
2417
|
+
label: t("displaySettingsEntryToggle")
|
|
2352
2418
|
})
|
|
2353
2419
|
})
|
|
2354
2420
|
})
|
|
@@ -2357,22 +2423,16 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2357
2423
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2358
2424
|
className: CodeArtsPluginCard_module_css_default.section,
|
|
2359
2425
|
children: [
|
|
2360
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
2426
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2361
2427
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2362
|
-
children:
|
|
2428
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2363
2429
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2364
|
-
children: t("
|
|
2365
|
-
})
|
|
2366
|
-
variant: "outline",
|
|
2367
|
-
size: "sm",
|
|
2368
|
-
disabled: keeperStopping,
|
|
2369
|
-
onClick: () => void stopKeeper(),
|
|
2370
|
-
children: keeperStopping ? t("displayKeeperStopping") : t("displayKeeperStop")
|
|
2371
|
-
})]
|
|
2430
|
+
children: t("displaySidebarTitle")
|
|
2431
|
+
})
|
|
2372
2432
|
}),
|
|
2373
2433
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2374
2434
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2375
|
-
children: t("
|
|
2435
|
+
children: t("displaySidebarHint")
|
|
2376
2436
|
}),
|
|
2377
2437
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2378
2438
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2380,30 +2440,22 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2380
2440
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2381
2441
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2382
2442
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2383
|
-
checked: dock.
|
|
2384
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2385
|
-
onChange: (on) => void toggleDock("
|
|
2386
|
-
label: t("
|
|
2443
|
+
checked: dock.sidebar,
|
|
2444
|
+
disabled: !dockWritable || dockSavingKeys.has("sidebar"),
|
|
2445
|
+
onChange: (on) => void toggleDock("sidebar", on),
|
|
2446
|
+
label: t("displaySidebarToggle")
|
|
2387
2447
|
})
|
|
2388
2448
|
})
|
|
2389
|
-
}),
|
|
2390
|
-
dock.keepAliveDaemon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2391
|
-
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2392
|
-
children: status?.keeper?.alive === true ? t("displayKeeperRunning", {
|
|
2393
|
-
pid: status.keeper.pid ?? "?",
|
|
2394
|
-
time: formatStored(status.keeper.heartbeatAt)
|
|
2395
|
-
}) : status?.keeper?.starting === true ? t("displayKeeperStarting") : t("displayKeeperDown", { message: status?.keeper?.error ?? "" })
|
|
2396
|
-
}),
|
|
2397
|
-
keeperNotice !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2398
|
-
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2399
|
-
children: keeperNotice
|
|
2400
|
-
}),
|
|
2401
|
-
status?.keeper?.logPath !== void 0 && dock.keepAliveDaemon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2402
|
-
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2403
|
-
children: t("displayKeeperLog", { path: status.keeper.logPath })
|
|
2404
2449
|
})
|
|
2405
2450
|
]
|
|
2406
2451
|
}),
|
|
2452
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2453
|
+
className: CodeArtsPluginCard_module_css_default.groupHead,
|
|
2454
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2455
|
+
className: CodeArtsPluginCard_module_css_default.groupLabel,
|
|
2456
|
+
children: t("displayGroupBehavior")
|
|
2457
|
+
})
|
|
2458
|
+
}),
|
|
2407
2459
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2408
2460
|
className: CodeArtsPluginCard_module_css_default.section,
|
|
2409
2461
|
children: [
|
|
@@ -2411,12 +2463,12 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2411
2463
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2412
2464
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2413
2465
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2414
|
-
children: t("
|
|
2466
|
+
children: t("displayAutoClaimTitle")
|
|
2415
2467
|
})
|
|
2416
2468
|
}),
|
|
2417
2469
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2418
2470
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2419
|
-
children: t("
|
|
2471
|
+
children: t("displayAutoClaimHint")
|
|
2420
2472
|
}),
|
|
2421
2473
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2422
2474
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2424,10 +2476,10 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2424
2476
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2425
2477
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2426
2478
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2427
|
-
checked: dock.
|
|
2428
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2429
|
-
onChange: (on) => void toggleDock("
|
|
2430
|
-
label: t("
|
|
2479
|
+
checked: dock.autoClaim,
|
|
2480
|
+
disabled: !dockWritable || dockSavingKeys.has("autoClaim"),
|
|
2481
|
+
onChange: (on) => void toggleDock("autoClaim", on),
|
|
2482
|
+
label: t("displayAutoClaimToggle")
|
|
2431
2483
|
})
|
|
2432
2484
|
})
|
|
2433
2485
|
})
|
|
@@ -2440,12 +2492,12 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2440
2492
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2441
2493
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2442
2494
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2443
|
-
children: t("
|
|
2495
|
+
children: t("displayQueueWaitTitle")
|
|
2444
2496
|
})
|
|
2445
2497
|
}),
|
|
2446
2498
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2447
2499
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2448
|
-
children: t("
|
|
2500
|
+
children: t("displayQueueWaitHint")
|
|
2449
2501
|
}),
|
|
2450
2502
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2451
2503
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2453,12 +2505,62 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2453
2505
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2454
2506
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2455
2507
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2456
|
-
checked: dock.
|
|
2457
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2458
|
-
onChange: (on) => void toggleDock("
|
|
2459
|
-
label: t("
|
|
2508
|
+
checked: dock.queueWait === true,
|
|
2509
|
+
disabled: !dockWritable || dockSavingKeys.has("queueWait"),
|
|
2510
|
+
onChange: (on) => void toggleDock("queueWait", on),
|
|
2511
|
+
label: t("displayQueueWaitToggle")
|
|
2512
|
+
})
|
|
2513
|
+
})
|
|
2514
|
+
})
|
|
2515
|
+
]
|
|
2516
|
+
}),
|
|
2517
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2518
|
+
className: CodeArtsPluginCard_module_css_default.section,
|
|
2519
|
+
children: [
|
|
2520
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2521
|
+
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2522
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2523
|
+
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2524
|
+
children: t("displayKeeperTitle")
|
|
2525
|
+
}), dock.keepAliveDaemon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2526
|
+
variant: "outline",
|
|
2527
|
+
size: "sm",
|
|
2528
|
+
disabled: keeperStopping,
|
|
2529
|
+
onClick: () => void stopKeeper(),
|
|
2530
|
+
children: keeperStopping ? t("displayKeeperStopping") : t("displayKeeperStop")
|
|
2531
|
+
})]
|
|
2532
|
+
}),
|
|
2533
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2534
|
+
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2535
|
+
children: t("displayKeeperHint")
|
|
2536
|
+
}),
|
|
2537
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2538
|
+
className: CodeArtsPluginCard_module_css_default.choices,
|
|
2539
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2540
|
+
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2541
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2542
|
+
className: CodeArtsPluginCard_module_css_default.check,
|
|
2543
|
+
checked: dock.keepAliveDaemon,
|
|
2544
|
+
disabled: !dockWritable || dockSavingKeys.has("keepAliveDaemon"),
|
|
2545
|
+
onChange: (on) => void toggleDock("keepAliveDaemon", on),
|
|
2546
|
+
label: t("displayKeeperToggle")
|
|
2460
2547
|
})
|
|
2461
2548
|
})
|
|
2549
|
+
}),
|
|
2550
|
+
dock.keepAliveDaemon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2551
|
+
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2552
|
+
children: status?.keeper?.alive === true ? t("displayKeeperRunning", {
|
|
2553
|
+
pid: status.keeper.pid ?? "?",
|
|
2554
|
+
time: formatStored(status.keeper.heartbeatAt)
|
|
2555
|
+
}) : status?.keeper?.starting === true ? t("displayKeeperStarting") : t("displayKeeperDown", { message: status?.keeper?.error ?? "" })
|
|
2556
|
+
}),
|
|
2557
|
+
keeperNotice !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2558
|
+
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2559
|
+
children: keeperNotice
|
|
2560
|
+
}),
|
|
2561
|
+
status?.keeper?.logPath !== void 0 && dock.keepAliveDaemon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2562
|
+
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2563
|
+
children: t("displayKeeperLog", { path: status.keeper.logPath })
|
|
2462
2564
|
})
|
|
2463
2565
|
]
|
|
2464
2566
|
}),
|
|
@@ -3187,14 +3289,14 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
|
|
|
3187
3289
|
document.head.appendChild(tag);
|
|
3188
3290
|
}
|
|
3189
3291
|
var CodeArtsPanel_module_css_default = {
|
|
3190
|
-
"page": "Z66cgG_page",
|
|
3191
|
-
"body": "Z66cgG_body",
|
|
3192
|
-
"back": "Z66cgG_back",
|
|
3193
|
-
"icon": "Z66cgG_icon",
|
|
3194
|
-
"desc": "Z66cgG_desc",
|
|
3195
3292
|
"title": "Z66cgG_title",
|
|
3293
|
+
"back": "Z66cgG_back",
|
|
3196
3294
|
"head": "Z66cgG_head",
|
|
3197
|
-
"
|
|
3295
|
+
"body": "Z66cgG_body",
|
|
3296
|
+
"desc": "Z66cgG_desc",
|
|
3297
|
+
"page": "Z66cgG_page",
|
|
3298
|
+
"backCaret": "Z66cgG_backCaret",
|
|
3299
|
+
"icon": "Z66cgG_icon"
|
|
3198
3300
|
};
|
|
3199
3301
|
//#endregion
|
|
3200
3302
|
//#region src/client/CodeArtsPanel.tsx
|
|
@@ -3365,6 +3467,8 @@ const zh = {
|
|
|
3365
3467
|
storedMetaNoLabel: "存于 {time}",
|
|
3366
3468
|
refresh: "刷新",
|
|
3367
3469
|
clearToken: "清除全部凭据",
|
|
3470
|
+
clearTokenHint: "会把本机保存的所有账号凭据删掉,之后需要重新登录。",
|
|
3471
|
+
accountMore: "更多操作",
|
|
3368
3472
|
tokenLabel: "cloud_dragon_token",
|
|
3369
3473
|
tokenPlaceholder: "粘贴从 CodeArts 网页/桌面端拿到的 token……",
|
|
3370
3474
|
labelLabel: "备注(可选)",
|
|
@@ -3519,9 +3623,14 @@ const zh = {
|
|
|
3519
3623
|
displayCreditsToggle: "在输入框工具行显示剩余积分(点开可看各账号明细)",
|
|
3520
3624
|
displayQueueToggle: "显示上游排队位置",
|
|
3521
3625
|
displayModelDetailToggle: "显示模型与倍率(Provider CodeArts 不受影响,始终显示)",
|
|
3626
|
+
displayGroupUi: "界面显示",
|
|
3627
|
+
displayGroupBehavior: "后台行为",
|
|
3522
3628
|
displayAutoClaimTitle: "每日签到积分",
|
|
3523
3629
|
displayAutoClaimHint: "打开后,DSH 启动约 30 秒会自动把每个已登录账号的每日签到积分领一遍;没领到会隔 30 分钟再试,最多 3 次。上游按天去重,重复领取不会出错。领取结果可以点开积分条查看。注意:这个功能只在 DSH 运行时生效,关掉 DSH 后不会替你领。",
|
|
3524
3630
|
displayAutoClaimToggle: "自动领取每日签到积分(默认关闭)",
|
|
3631
|
+
displayQueueWaitTitle: "排队等待",
|
|
3632
|
+
displayQueueWaitHint: "上游在高峰期会回「当前请求量较大,您排在第 N 位」。打开这一项后,插件不再直接报错,而是提前打开回复流、每 20 秒发一个空帧保住连接,一直轮询到轮到再继续(最长 15 分钟)。代价:等待期间界面上已经开始「回复」,而且这一条请求会一直占着;想立刻做别的事可以点「停止生成」。默认关闭,因为这是让你自己决定要不要等。",
|
|
3633
|
+
displayQueueWaitToggle: "排队时一直等到轮到(最长 15 分钟,默认关闭)",
|
|
3525
3634
|
displayKeeperTitle: "常驻保活(DSH 关掉后仍续登录)",
|
|
3526
3635
|
displayKeeperHint: "上游给的登录凭证只活 2 小时,但要靠它换新的登录凭证(refresh token),那个能活 30 天。打开这一项后,DSH 会在系统里另起一个独立的后台进程,每 20 分钟替你续一次——所以哪怕 DSH 关着、好几天不开,回来也不用重新登录。这个进程不随 DSH 退出,要用下面的「结束」按钮手动停。默认关闭:不经你同意就在系统里留一个常驻进程不合适。",
|
|
3527
3636
|
displayKeeperToggle: "开启常驻保活进程(默认关闭)",
|
|
@@ -3577,6 +3686,8 @@ const en = {
|
|
|
3577
3686
|
storedMetaNoLabel: "stored {time}",
|
|
3578
3687
|
refresh: "Refresh",
|
|
3579
3688
|
clearToken: "Clear all credentials",
|
|
3689
|
+
clearTokenHint: "Deletes every credential stored on this machine; you will need to sign in again.",
|
|
3690
|
+
accountMore: "More actions",
|
|
3580
3691
|
tokenLabel: "cloud_dragon_token",
|
|
3581
3692
|
tokenPlaceholder: "Paste the token taken from the CodeArts web/desktop client……",
|
|
3582
3693
|
labelLabel: "Label (optional)",
|
|
@@ -3731,9 +3842,14 @@ const en = {
|
|
|
3731
3842
|
displayCreditsToggle: "Show remaining credits in the composer tool row (click for per-account details)",
|
|
3732
3843
|
displayQueueToggle: "Show the upstream queue position",
|
|
3733
3844
|
displayModelDetailToggle: "Show the model and rate (Provider CodeArts is not affected and always shows)",
|
|
3845
|
+
displayGroupUi: "Interface",
|
|
3846
|
+
displayGroupBehavior: "Background tasks",
|
|
3734
3847
|
displayAutoClaimTitle: "Daily sign-in credits",
|
|
3735
3848
|
displayAutoClaimHint: "When on, about 30 seconds after DSH starts the plugin claims the daily sign-in credits for every signed-in account; if nothing was claimed it retries after 30 minutes, up to 3 times. Upstream deduplicates by day, so claiming twice is harmless. Open the credits bar to see the result. Note: this only runs while DSH is running — it cannot claim for you once DSH is closed.",
|
|
3736
3849
|
displayAutoClaimToggle: "Claim daily sign-in credits automatically (off by default)",
|
|
3850
|
+
displayQueueWaitTitle: "Queue waiting",
|
|
3851
|
+
displayQueueWaitHint: "At peak times upstream answers \"the request volume is high, you are #N in the queue\". With this on, the plugin stops failing immediately: it opens the reply stream early and sends an empty frame every 20 seconds to keep the connection alive, polling until your turn (up to 15 minutes). The trade-off: the UI already looks like an answer in progress, and the request stays occupied — press \"Stop generating\" if you need to do something else. Off by default, because whether to wait is your call.",
|
|
3852
|
+
displayQueueWaitToggle: "Wait for your turn when queued (up to 15 minutes, off by default)",
|
|
3737
3853
|
displayKeeperTitle: "Keep-alive process (stays signed in while DSH is closed)",
|
|
3738
3854
|
displayKeeperHint: "The login token upstream hands out only lives 2 hours, but the refresh token behind it lives 30 days. With this on, DSH starts a separate background process that refreshes the credential every 20 minutes — so even after DSH has been closed for days, you come back without signing in again. That process outlives DSH; stop it with the button below. Off by default: leaving a resident process on your machine without asking is not something a plugin should do.",
|
|
3739
3855
|
displayKeeperToggle: "Run the keep-alive background process (off by default)",
|