dsh-codearts 1.4.3 → 1.4.5
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 +46 -0
- package/lib/{auth-Cd2SvQIy.mjs → auth-B5PDMG7r.mjs} +272 -26
- package/lib/bin.mjs +3 -3
- package/lib/client/index.d.cts +6 -0
- package/lib/client/index.js +367 -287
- package/lib/index.d.mts +8 -0
- package/lib/index.mjs +4 -4
- package/lib/{keeper-DJLwIiR4.mjs → keeper-CA6PKtcv.mjs} +32 -2
- package/lib/keeper-main.mjs +66 -22
- package/lib/{upstream-BV4XWB4l.mjs → upstream-B_KAbdPy.mjs} +1 -1
- package/lib/{version-DqzkoxeU.mjs → version-DZ47veC-.mjs} +3 -3
- package/package.json +1 -1
package/lib/client/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function latencyP95Label(latency) {
|
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region \0dsh-css:/home/runner/work/dsh-codearts/dsh-codearts/src/client/CodeArtsPluginCard.module.css.mjs
|
|
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_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}";
|
|
150
150
|
const tagId$1 = "dsh-codearts/CodeArtsPluginCard.module.css";
|
|
151
151
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
152
152
|
const tag = document.createElement("style");
|
|
@@ -156,112 +156,123 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
|
|
|
156
156
|
document.head.appendChild(tag);
|
|
157
157
|
}
|
|
158
158
|
var CodeArtsPluginCard_module_css_default = {
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"creditRow": "xoziZG_creditRow",
|
|
162
|
-
"usageFill": "xoziZG_usageFill",
|
|
163
|
-
"claimAllRow": "xoziZG_claimAllRow",
|
|
164
|
-
"check": "xoziZG_check",
|
|
165
|
-
"usageTipSep": "xoziZG_usageTipSep",
|
|
166
|
-
"accountRow": "xoziZG_accountRow",
|
|
167
|
-
"modelFill": "xoziZG_modelFill",
|
|
168
|
-
"accountToggle": "xoziZG_accountToggle",
|
|
169
|
-
"accountHint": "xoziZG_accountHint",
|
|
170
|
-
"accountName": "xoziZG_accountName",
|
|
159
|
+
"count": "xoziZG_count",
|
|
160
|
+
"field": "xoziZG_field",
|
|
171
161
|
"hint": "xoziZG_hint",
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
162
|
+
"meta": "xoziZG_meta",
|
|
163
|
+
"check": "xoziZG_check",
|
|
164
|
+
"area": "xoziZG_area",
|
|
165
|
+
"modelMeta": "xoziZG_modelMeta",
|
|
166
|
+
"choiceRow": "xoziZG_choiceRow",
|
|
167
|
+
"updated": "xoziZG_updated",
|
|
168
|
+
"statValue": "xoziZG_statValue",
|
|
169
|
+
"skeletonRow": "xoziZG_skeletonRow",
|
|
170
|
+
"card": "xoziZG_card",
|
|
171
|
+
"headText": "xoziZG_headText",
|
|
172
|
+
"windowPopoverValue": "xoziZG_windowPopoverValue",
|
|
173
|
+
"windowButtonSet": "xoziZG_windowButtonSet",
|
|
182
174
|
"heatAxis": "xoziZG_heatAxis",
|
|
183
|
-
"accountToolbar": "xoziZG_accountToolbar",
|
|
184
|
-
"creditLink": "xoziZG_creditLink",
|
|
185
|
-
"error": "xoziZG_error",
|
|
186
175
|
"usageTipRow": "xoziZG_usageTipRow",
|
|
187
|
-
"
|
|
188
|
-
"skeleton": "xoziZG_skeleton",
|
|
189
|
-
"modelSpec": "xoziZG_modelSpec",
|
|
190
|
-
"avatar": "xoziZG_avatar",
|
|
191
|
-
"card": "xoziZG_card",
|
|
192
|
-
"heatGrid": "xoziZG_heatGrid",
|
|
193
|
-
"balance": "xoziZG_balance",
|
|
176
|
+
"desc": "xoziZG_desc",
|
|
194
177
|
"windowCaret": "xoziZG_windowCaret",
|
|
195
|
-
"windowRange": "xoziZG_windowRange",
|
|
196
|
-
"modelRequests": "xoziZG_modelRequests",
|
|
197
|
-
"creditBlock": "xoziZG_creditBlock",
|
|
198
|
-
"windowInput": "xoziZG_windowInput",
|
|
199
|
-
"accountInfo": "xoziZG_accountInfo",
|
|
200
|
-
"count": "xoziZG_count",
|
|
201
|
-
"modelName": "xoziZG_modelName",
|
|
202
|
-
"accountCard": "xoziZG_accountCard",
|
|
203
|
-
"section": "xoziZG_section",
|
|
204
|
-
"name": "xoziZG_name",
|
|
205
|
-
"fieldLabel": "xoziZG_fieldLabel",
|
|
206
|
-
"modelTokens": "xoziZG_modelTokens",
|
|
207
|
-
"modelShare": "xoziZG_modelShare",
|
|
208
|
-
"choices": "xoziZG_choices",
|
|
209
|
-
"skeletonRow": "xoziZG_skeletonRow",
|
|
210
|
-
"accountNameRow": "xoziZG_accountNameRow",
|
|
211
|
-
"tabPanel": "xoziZG_tabPanel",
|
|
212
|
-
"windowPopoverValue": "xoziZG_windowPopoverValue",
|
|
213
|
-
"modelTrack": "xoziZG_modelTrack",
|
|
214
|
-
"windowUnit": "xoziZG_windowUnit",
|
|
215
|
-
"doctorRow": "xoziZG_doctorRow",
|
|
216
178
|
"body": "xoziZG_body",
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"windowHint": "xoziZG_windowHint",
|
|
221
|
-
"modelChart": "xoziZG_modelChart",
|
|
222
|
-
"field": "xoziZG_field",
|
|
223
|
-
"headText": "xoziZG_headText",
|
|
179
|
+
"usageFill": "xoziZG_usageFill",
|
|
180
|
+
"danger": "xoziZG_danger",
|
|
181
|
+
"usageTipName": "xoziZG_usageTipName",
|
|
224
182
|
"statusLine": "xoziZG_statusLine",
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
"expiryRow": "xoziZG_expiryRow",
|
|
229
|
-
"creditHint": "xoziZG_creditHint",
|
|
230
|
-
"bar": "xoziZG_bar",
|
|
231
|
-
"balanceRow": "xoziZG_balanceRow",
|
|
232
|
-
"barFill": "xoziZG_barFill",
|
|
183
|
+
"balance": "xoziZG_balance",
|
|
184
|
+
"balanceUnit": "xoziZG_balanceUnit",
|
|
185
|
+
"actions": "xoziZG_actions",
|
|
233
186
|
"statSub": "xoziZG_statSub",
|
|
234
|
-
"windowButtonOpen": "xoziZG_windowButtonOpen",
|
|
235
|
-
"doctorName": "xoziZG_doctorName",
|
|
236
|
-
"sectionLabel": "xoziZG_sectionLabel",
|
|
237
|
-
"desc": "xoziZG_desc",
|
|
238
|
-
"heatAxisSlot": "xoziZG_heatAxisSlot",
|
|
239
|
-
"manualSummary": "xoziZG_manualSummary",
|
|
240
|
-
"expiryLabel": "xoziZG_expiryLabel",
|
|
241
|
-
"usageTipName": "xoziZG_usageTipName",
|
|
242
|
-
"windowAnchor": "xoziZG_windowAnchor",
|
|
243
187
|
"accountRowActions": "xoziZG_accountRowActions",
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
188
|
+
"choiceTail": "xoziZG_choiceTail",
|
|
189
|
+
"doctorList": "xoziZG_doctorList",
|
|
190
|
+
"bar": "xoziZG_bar",
|
|
191
|
+
"accountToolbar": "xoziZG_accountToolbar",
|
|
192
|
+
"windowPopover": "xoziZG_windowPopover",
|
|
193
|
+
"tabs": "xoziZG_tabs",
|
|
248
194
|
"windowButton": "xoziZG_windowButton",
|
|
195
|
+
"accountNameRow": "xoziZG_accountNameRow",
|
|
196
|
+
"accountRow": "xoziZG_accountRow",
|
|
197
|
+
"choices": "xoziZG_choices",
|
|
198
|
+
"windowPopoverRow": "xoziZG_windowPopoverRow",
|
|
199
|
+
"accountClearHint": "xoziZG_accountClearHint",
|
|
200
|
+
"doctorName": "xoziZG_doctorName",
|
|
201
|
+
"accountName": "xoziZG_accountName",
|
|
202
|
+
"creditRow": "xoziZG_creditRow",
|
|
203
|
+
"accountToggle": "xoziZG_accountToggle",
|
|
204
|
+
"groupHeadFirst": "xoziZG_groupHeadFirst",
|
|
205
|
+
"groupLabel": "xoziZG_groupLabel",
|
|
249
206
|
"sectionHead": "xoziZG_sectionHead",
|
|
250
|
-
"
|
|
251
|
-
"
|
|
207
|
+
"windowRange": "xoziZG_windowRange",
|
|
208
|
+
"usageTipSep": "xoziZG_usageTipSep",
|
|
252
209
|
"manual": "xoziZG_manual",
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
210
|
+
"error": "xoziZG_error",
|
|
211
|
+
"accountMenuAnchor": "xoziZG_accountMenuAnchor",
|
|
212
|
+
"sectionLabel": "xoziZG_sectionLabel",
|
|
213
|
+
"modelShare": "xoziZG_modelShare",
|
|
214
|
+
"statCard": "xoziZG_statCard",
|
|
215
|
+
"manualForm": "xoziZG_manualForm",
|
|
216
|
+
"modelCheck": "xoziZG_modelCheck",
|
|
217
|
+
"name": "xoziZG_name",
|
|
218
|
+
"accountGrid": "xoziZG_accountGrid",
|
|
219
|
+
"creditFooter": "xoziZG_creditFooter",
|
|
220
|
+
"balanceRow": "xoziZG_balanceRow",
|
|
221
|
+
"fieldLabel": "xoziZG_fieldLabel",
|
|
222
|
+
"usageBar": "xoziZG_usageBar",
|
|
223
|
+
"statLabel": "xoziZG_statLabel",
|
|
224
|
+
"doctorRow": "xoziZG_doctorRow",
|
|
225
|
+
"modelName": "xoziZG_modelName",
|
|
226
|
+
"accountInfo": "xoziZG_accountInfo",
|
|
227
|
+
"heatHours": "xoziZG_heatHours",
|
|
228
|
+
"modelFill": "xoziZG_modelFill",
|
|
229
|
+
"creditRows": "xoziZG_creditRows",
|
|
230
|
+
"balanceMeta": "xoziZG_balanceMeta",
|
|
231
|
+
"heatAxisSlot": "xoziZG_heatAxisSlot",
|
|
232
|
+
"heatLegendChip": "xoziZG_heatLegendChip",
|
|
256
233
|
"heatCell": "xoziZG_heatCell",
|
|
234
|
+
"skeletonBreath": "xoziZG_skeletonBreath",
|
|
235
|
+
"creditHint": "xoziZG_creditHint",
|
|
236
|
+
"modelSpec": "xoziZG_modelSpec",
|
|
237
|
+
"accountCard": "xoziZG_accountCard",
|
|
238
|
+
"statGrid": "xoziZG_statGrid",
|
|
239
|
+
"heatHourCell": "xoziZG_heatHourCell",
|
|
240
|
+
"header": "xoziZG_header",
|
|
241
|
+
"trendTip": "xoziZG_trendTip",
|
|
242
|
+
"modelChart": "xoziZG_modelChart",
|
|
243
|
+
"section": "xoziZG_section",
|
|
244
|
+
"manualSummary": "xoziZG_manualSummary",
|
|
245
|
+
"windowButtonOpen": "xoziZG_windowButtonOpen",
|
|
246
|
+
"accountClear": "xoziZG_accountClear",
|
|
247
|
+
"modelTrack": "xoziZG_modelTrack",
|
|
248
|
+
"windowInputSet": "xoziZG_windowInputSet",
|
|
249
|
+
"skeleton": "xoziZG_skeleton",
|
|
250
|
+
"tabPanel": "xoziZG_tabPanel",
|
|
251
|
+
"windowHint": "xoziZG_windowHint",
|
|
252
|
+
"link": "xoziZG_link",
|
|
253
|
+
"modelRequests": "xoziZG_modelRequests",
|
|
254
|
+
"barFill": "xoziZG_barFill",
|
|
255
|
+
"accountHint": "xoziZG_accountHint",
|
|
256
|
+
"heatGrid": "xoziZG_heatGrid",
|
|
257
|
+
"windowInput": "xoziZG_windowInput",
|
|
258
|
+
"accountMenuItem": "xoziZG_accountMenuItem",
|
|
257
259
|
"modelRow": "xoziZG_modelRow",
|
|
260
|
+
"accountEntry": "xoziZG_accountEntry",
|
|
261
|
+
"expiryRow": "xoziZG_expiryRow",
|
|
262
|
+
"windowPopoverHead": "xoziZG_windowPopoverHead",
|
|
263
|
+
"creditLink": "xoziZG_creditLink",
|
|
264
|
+
"modelTokens": "xoziZG_modelTokens",
|
|
265
|
+
"accountMenu": "xoziZG_accountMenu",
|
|
266
|
+
"avatar": "xoziZG_avatar",
|
|
258
267
|
"usageTip": "xoziZG_usageTip",
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
268
|
+
"windowAnchor": "xoziZG_windowAnchor",
|
|
269
|
+
"windowUnit": "xoziZG_windowUnit",
|
|
270
|
+
"groupHead": "xoziZG_groupHead",
|
|
271
|
+
"heatLegend": "xoziZG_heatLegend",
|
|
272
|
+
"heatWeekday": "xoziZG_heatWeekday",
|
|
273
|
+
"claimAllRow": "xoziZG_claimAllRow",
|
|
274
|
+
"expiryLabel": "xoziZG_expiryLabel",
|
|
275
|
+
"creditBlock": "xoziZG_creditBlock"
|
|
265
276
|
};
|
|
266
277
|
//#endregion
|
|
267
278
|
//#region src/client/CodeArtsPluginCard.tsx
|
|
@@ -1129,6 +1140,8 @@ function CodeArtsPluginCard({ t }) {
|
|
|
1129
1140
|
const [testResults, setTestResults] = (0, react.useState)(() => ({ ...lastTestResults }));
|
|
1130
1141
|
/** 正在提交 paused/pinned 的账号 id。 */
|
|
1131
1142
|
const [flagBusy, setFlagBusy] = (0, react.useState)(null);
|
|
1143
|
+
/** 展开了行尾「⋯」菜单的账号 id(同一时间只开一个)。 */
|
|
1144
|
+
const [accountMenuFor, setAccountMenuFor] = (0, react.useState)(null);
|
|
1132
1145
|
const [doctor, setDoctor] = (0, react.useState)(null);
|
|
1133
1146
|
const [doctorBusy, setDoctorBusy] = (0, react.useState)(false);
|
|
1134
1147
|
const [doctorError, setDoctorError] = (0, react.useState)(null);
|
|
@@ -1358,6 +1371,26 @@ function CodeArtsPluginCard({ t }) {
|
|
|
1358
1371
|
windowDrafts,
|
|
1359
1372
|
selection
|
|
1360
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]);
|
|
1361
1394
|
async function saveToken(e) {
|
|
1362
1395
|
e.preventDefault();
|
|
1363
1396
|
setBusy(true);
|
|
@@ -1920,101 +1953,122 @@ function CodeArtsPluginCard({ t }) {
|
|
|
1920
1953
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1921
1954
|
className: CodeArtsPluginCard_module_css_default.accountCard,
|
|
1922
1955
|
children: [
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
className: CodeArtsPluginCard_module_css_default.
|
|
1930
|
-
children: [
|
|
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
|
-
|
|
1963
|
-
|
|
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
|
+
})
|
|
1964
2000
|
})
|
|
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
|
-
|
|
2017
|
-
|
|
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
|
+
})
|
|
2018
2072
|
}),
|
|
2019
2073
|
accounts.length > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2020
2074
|
className: CodeArtsPluginCard_module_css_default.claimAllRow,
|
|
@@ -2032,16 +2086,19 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2032
2086
|
})
|
|
2033
2087
|
]
|
|
2034
2088
|
}),
|
|
2035
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
2036
|
-
className: CodeArtsPluginCard_module_css_default.
|
|
2037
|
-
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, {
|
|
2038
2095
|
variant: "outline",
|
|
2039
2096
|
size: "sm",
|
|
2040
2097
|
className: CodeArtsPluginCard_module_css_default.danger,
|
|
2041
2098
|
disabled: busy,
|
|
2042
2099
|
onClick: () => void clearToken(),
|
|
2043
2100
|
children: t("clearToken")
|
|
2044
|
-
})
|
|
2101
|
+
})]
|
|
2045
2102
|
})
|
|
2046
2103
|
]
|
|
2047
2104
|
})
|
|
@@ -2092,7 +2149,7 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2092
2149
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2093
2150
|
children: [
|
|
2094
2151
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2095
|
-
className: CodeArtsPluginCard_module_css_default.check
|
|
2152
|
+
className: `${CodeArtsPluginCard_module_css_default.check} ${CodeArtsPluginCard_module_css_default.modelCheck}`,
|
|
2096
2153
|
checked: draft.includes(choice.id),
|
|
2097
2154
|
disabled: !selection.writable || savingModels,
|
|
2098
2155
|
onChange: (on) => setModel(choice.id, on),
|
|
@@ -2180,39 +2237,40 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2180
2237
|
]
|
|
2181
2238
|
})]
|
|
2182
2239
|
}),
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
children:
|
|
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
|
-
|
|
2215
|
-
|
|
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
|
+
]
|
|
2216
2274
|
})
|
|
2217
2275
|
]
|
|
2218
2276
|
}, choice.id);
|
|
@@ -2267,6 +2325,13 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2267
2325
|
labelledBy: tabId("display"),
|
|
2268
2326
|
active: activeTab === "display",
|
|
2269
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
|
+
}),
|
|
2270
2335
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2271
2336
|
className: CodeArtsPluginCard_module_css_default.section,
|
|
2272
2337
|
children: [
|
|
@@ -2333,12 +2398,12 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2333
2398
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2334
2399
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2335
2400
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2336
|
-
children: t("
|
|
2401
|
+
children: t("displaySettingsEntryTitle")
|
|
2337
2402
|
})
|
|
2338
2403
|
}),
|
|
2339
2404
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2340
2405
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2341
|
-
children: t("
|
|
2406
|
+
children: t("displaySettingsEntryHint")
|
|
2342
2407
|
}),
|
|
2343
2408
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2344
2409
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2346,10 +2411,10 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2346
2411
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2347
2412
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2348
2413
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2349
|
-
checked: dock.
|
|
2350
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2351
|
-
onChange: (on) => void toggleDock("
|
|
2352
|
-
label: t("
|
|
2414
|
+
checked: dock.settingsEntry,
|
|
2415
|
+
disabled: !dockWritable || dockSavingKeys.has("settingsEntry"),
|
|
2416
|
+
onChange: (on) => void toggleDock("settingsEntry", on),
|
|
2417
|
+
label: t("displaySettingsEntryToggle")
|
|
2353
2418
|
})
|
|
2354
2419
|
})
|
|
2355
2420
|
})
|
|
@@ -2362,12 +2427,12 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2362
2427
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2363
2428
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2364
2429
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2365
|
-
children: t("
|
|
2430
|
+
children: t("displaySidebarTitle")
|
|
2366
2431
|
})
|
|
2367
2432
|
}),
|
|
2368
2433
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2369
2434
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2370
|
-
children: t("
|
|
2435
|
+
children: t("displaySidebarHint")
|
|
2371
2436
|
}),
|
|
2372
2437
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2373
2438
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2375,34 +2440,35 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2375
2440
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2376
2441
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2377
2442
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2378
|
-
checked: dock.
|
|
2379
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2380
|
-
onChange: (on) => void toggleDock("
|
|
2381
|
-
label: t("
|
|
2443
|
+
checked: dock.sidebar,
|
|
2444
|
+
disabled: !dockWritable || dockSavingKeys.has("sidebar"),
|
|
2445
|
+
onChange: (on) => void toggleDock("sidebar", on),
|
|
2446
|
+
label: t("displaySidebarToggle")
|
|
2382
2447
|
})
|
|
2383
2448
|
})
|
|
2384
2449
|
})
|
|
2385
2450
|
]
|
|
2386
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
|
+
}),
|
|
2387
2459
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2388
2460
|
className: CodeArtsPluginCard_module_css_default.section,
|
|
2389
2461
|
children: [
|
|
2390
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
2462
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2391
2463
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2392
|
-
children:
|
|
2464
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2393
2465
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2394
|
-
children: t("
|
|
2395
|
-
})
|
|
2396
|
-
variant: "outline",
|
|
2397
|
-
size: "sm",
|
|
2398
|
-
disabled: keeperStopping,
|
|
2399
|
-
onClick: () => void stopKeeper(),
|
|
2400
|
-
children: keeperStopping ? t("displayKeeperStopping") : t("displayKeeperStop")
|
|
2401
|
-
})]
|
|
2466
|
+
children: t("displayAutoClaimTitle")
|
|
2467
|
+
})
|
|
2402
2468
|
}),
|
|
2403
2469
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2404
2470
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2405
|
-
children: t("
|
|
2471
|
+
children: t("displayAutoClaimHint")
|
|
2406
2472
|
}),
|
|
2407
2473
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2408
2474
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2410,27 +2476,12 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2410
2476
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2411
2477
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2412
2478
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2413
|
-
checked: dock.
|
|
2414
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2415
|
-
onChange: (on) => void toggleDock("
|
|
2416
|
-
label: t("
|
|
2479
|
+
checked: dock.autoClaim,
|
|
2480
|
+
disabled: !dockWritable || dockSavingKeys.has("autoClaim"),
|
|
2481
|
+
onChange: (on) => void toggleDock("autoClaim", on),
|
|
2482
|
+
label: t("displayAutoClaimToggle")
|
|
2417
2483
|
})
|
|
2418
2484
|
})
|
|
2419
|
-
}),
|
|
2420
|
-
dock.keepAliveDaemon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2421
|
-
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2422
|
-
children: status?.keeper?.alive === true ? t("displayKeeperRunning", {
|
|
2423
|
-
pid: status.keeper.pid ?? "?",
|
|
2424
|
-
time: formatStored(status.keeper.heartbeatAt)
|
|
2425
|
-
}) : status?.keeper?.starting === true ? t("displayKeeperStarting") : t("displayKeeperDown", { message: status?.keeper?.error ?? "" })
|
|
2426
|
-
}),
|
|
2427
|
-
keeperNotice !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2428
|
-
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2429
|
-
children: keeperNotice
|
|
2430
|
-
}),
|
|
2431
|
-
status?.keeper?.logPath !== void 0 && dock.keepAliveDaemon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2432
|
-
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2433
|
-
children: t("displayKeeperLog", { path: status.keeper.logPath })
|
|
2434
2485
|
})
|
|
2435
2486
|
]
|
|
2436
2487
|
}),
|
|
@@ -2441,12 +2492,12 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2441
2492
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2442
2493
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2443
2494
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2444
|
-
children: t("
|
|
2495
|
+
children: t("displayQueueWaitTitle")
|
|
2445
2496
|
})
|
|
2446
2497
|
}),
|
|
2447
2498
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2448
2499
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2449
|
-
children: t("
|
|
2500
|
+
children: t("displayQueueWaitHint")
|
|
2450
2501
|
}),
|
|
2451
2502
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2452
2503
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2454,10 +2505,10 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2454
2505
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2455
2506
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2456
2507
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2457
|
-
checked: dock.
|
|
2458
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2459
|
-
onChange: (on) => void toggleDock("
|
|
2460
|
-
label: t("
|
|
2508
|
+
checked: dock.queueWait === true,
|
|
2509
|
+
disabled: !dockWritable || dockSavingKeys.has("queueWait"),
|
|
2510
|
+
onChange: (on) => void toggleDock("queueWait", on),
|
|
2511
|
+
label: t("displayQueueWaitToggle")
|
|
2461
2512
|
})
|
|
2462
2513
|
})
|
|
2463
2514
|
})
|
|
@@ -2466,16 +2517,22 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2466
2517
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2467
2518
|
className: CodeArtsPluginCard_module_css_default.section,
|
|
2468
2519
|
children: [
|
|
2469
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
2520
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2470
2521
|
className: CodeArtsPluginCard_module_css_default.sectionHead,
|
|
2471
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2522
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2472
2523
|
className: CodeArtsPluginCard_module_css_default.sectionLabel,
|
|
2473
|
-
children: t("
|
|
2474
|
-
})
|
|
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
|
+
})]
|
|
2475
2532
|
}),
|
|
2476
2533
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2477
2534
|
className: CodeArtsPluginCard_module_css_default.hint,
|
|
2478
|
-
children: t("
|
|
2535
|
+
children: t("displayKeeperHint")
|
|
2479
2536
|
}),
|
|
2480
2537
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2481
2538
|
className: CodeArtsPluginCard_module_css_default.choices,
|
|
@@ -2483,12 +2540,27 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2483
2540
|
className: CodeArtsPluginCard_module_css_default.choiceRow,
|
|
2484
2541
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
2485
2542
|
className: CodeArtsPluginCard_module_css_default.check,
|
|
2486
|
-
checked: dock.
|
|
2487
|
-
disabled: !dockWritable || dockSavingKeys.has("
|
|
2488
|
-
onChange: (on) => void toggleDock("
|
|
2489
|
-
label: t("
|
|
2543
|
+
checked: dock.keepAliveDaemon,
|
|
2544
|
+
disabled: !dockWritable || dockSavingKeys.has("keepAliveDaemon"),
|
|
2545
|
+
onChange: (on) => void toggleDock("keepAliveDaemon", on),
|
|
2546
|
+
label: t("displayKeeperToggle")
|
|
2490
2547
|
})
|
|
2491
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 })
|
|
2492
2564
|
})
|
|
2493
2565
|
]
|
|
2494
2566
|
}),
|
|
@@ -3217,14 +3289,14 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
|
|
|
3217
3289
|
document.head.appendChild(tag);
|
|
3218
3290
|
}
|
|
3219
3291
|
var CodeArtsPanel_module_css_default = {
|
|
3220
|
-
"
|
|
3221
|
-
"
|
|
3292
|
+
"back": "Z66cgG_back",
|
|
3293
|
+
"desc": "Z66cgG_desc",
|
|
3222
3294
|
"icon": "Z66cgG_icon",
|
|
3223
|
-
"head": "Z66cgG_head",
|
|
3224
3295
|
"page": "Z66cgG_page",
|
|
3225
|
-
"
|
|
3296
|
+
"body": "Z66cgG_body",
|
|
3226
3297
|
"title": "Z66cgG_title",
|
|
3227
|
-
"
|
|
3298
|
+
"head": "Z66cgG_head",
|
|
3299
|
+
"backCaret": "Z66cgG_backCaret"
|
|
3228
3300
|
};
|
|
3229
3301
|
//#endregion
|
|
3230
3302
|
//#region src/client/CodeArtsPanel.tsx
|
|
@@ -3395,6 +3467,8 @@ const zh = {
|
|
|
3395
3467
|
storedMetaNoLabel: "存于 {time}",
|
|
3396
3468
|
refresh: "刷新",
|
|
3397
3469
|
clearToken: "清除全部凭据",
|
|
3470
|
+
clearTokenHint: "会把本机保存的所有账号凭据删掉,之后需要重新登录。",
|
|
3471
|
+
accountMore: "更多操作",
|
|
3398
3472
|
tokenLabel: "cloud_dragon_token",
|
|
3399
3473
|
tokenPlaceholder: "粘贴从 CodeArts 网页/桌面端拿到的 token……",
|
|
3400
3474
|
labelLabel: "备注(可选)",
|
|
@@ -3549,6 +3623,8 @@ const zh = {
|
|
|
3549
3623
|
displayCreditsToggle: "在输入框工具行显示剩余积分(点开可看各账号明细)",
|
|
3550
3624
|
displayQueueToggle: "显示上游排队位置",
|
|
3551
3625
|
displayModelDetailToggle: "显示模型与倍率(Provider CodeArts 不受影响,始终显示)",
|
|
3626
|
+
displayGroupUi: "界面显示",
|
|
3627
|
+
displayGroupBehavior: "后台行为",
|
|
3552
3628
|
displayAutoClaimTitle: "每日签到积分",
|
|
3553
3629
|
displayAutoClaimHint: "打开后,DSH 启动约 30 秒会自动把每个已登录账号的每日签到积分领一遍;没领到会隔 30 分钟再试,最多 3 次。上游按天去重,重复领取不会出错。领取结果可以点开积分条查看。注意:这个功能只在 DSH 运行时生效,关掉 DSH 后不会替你领。",
|
|
3554
3630
|
displayAutoClaimToggle: "自动领取每日签到积分(默认关闭)",
|
|
@@ -3610,6 +3686,8 @@ const en = {
|
|
|
3610
3686
|
storedMetaNoLabel: "stored {time}",
|
|
3611
3687
|
refresh: "Refresh",
|
|
3612
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",
|
|
3613
3691
|
tokenLabel: "cloud_dragon_token",
|
|
3614
3692
|
tokenPlaceholder: "Paste the token taken from the CodeArts web/desktop client……",
|
|
3615
3693
|
labelLabel: "Label (optional)",
|
|
@@ -3764,6 +3842,8 @@ const en = {
|
|
|
3764
3842
|
displayCreditsToggle: "Show remaining credits in the composer tool row (click for per-account details)",
|
|
3765
3843
|
displayQueueToggle: "Show the upstream queue position",
|
|
3766
3844
|
displayModelDetailToggle: "Show the model and rate (Provider CodeArts is not affected and always shows)",
|
|
3845
|
+
displayGroupUi: "Interface",
|
|
3846
|
+
displayGroupBehavior: "Background tasks",
|
|
3767
3847
|
displayAutoClaimTitle: "Daily sign-in credits",
|
|
3768
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.",
|
|
3769
3849
|
displayAutoClaimToggle: "Claim daily sign-in credits automatically (off by default)",
|