dsh-codearts 1.4.9 → 1.4.10

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 CHANGED
@@ -3,6 +3,14 @@
3
3
  本文件记录本插件的重要改动。格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
4
4
  版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
5
5
 
6
+ ## [1.4.10] - 2026-11-23
7
+
8
+ ### 修复
9
+
10
+ - 只设了「输出上限」、没设窗口的模型,模型行右侧 `▾` 按钮也显示已设覆盖的描边
11
+ (#15)。之前描边只判窗口覆盖,于是同样「已自定义」的模型里,只有设了窗口的
12
+ 才有蓝框。
13
+
6
14
  ## [1.4.9] - 2026-11-23
7
15
 
8
16
  ### 新增
package/lib/bin.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { i as codeartsAccountsPath, t as CodeArtsAccountStore } from "./auth-BaxN0iKC.mjs";
3
3
  import { K as isBenefitModel, l as fetchCallerIdentity } from "./upstream-BX6-klXI.mjs";
4
- import { i as discoverModels, n as CodeArtsUsageTracker, r as codeartsUsagePath, t as CODEARTS_VERSION } from "./version-1elDzsw0.mjs";
4
+ import { i as discoverModels, n as CodeArtsUsageTracker, r as codeartsUsagePath, t as CODEARTS_VERSION } from "./version-CUnRcNkz.mjs";
5
5
  import { existsSync, statSync } from "node:fs";
6
6
  //#region src/bin.ts
7
7
  /**
@@ -194,129 +194,129 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
194
194
  document.head.appendChild(tag);
195
195
  }
196
196
  var CodeArtsPluginCard_module_css_default = {
197
- "heatHourCell": "xoziZG_heatHourCell",
198
- "balanceUnit": "xoziZG_balanceUnit",
199
- "skeletonRow": "xoziZG_skeletonRow",
200
- "accountMenuAnchor": "xoziZG_accountMenuAnchor",
201
- "meta": "xoziZG_meta",
202
- "balance": "xoziZG_balance",
203
- "heatAxisSlot": "xoziZG_heatAxisSlot",
204
- "statCard": "xoziZG_statCard",
205
- "actions": "xoziZG_actions",
206
- "statusLine": "xoziZG_statusLine",
207
- "usageBar": "xoziZG_usageBar",
208
- "name": "xoziZG_name",
209
- "barFill": "xoziZG_barFill",
210
- "creditFooter": "xoziZG_creditFooter",
211
- "modelTrack": "xoziZG_modelTrack",
212
- "statSub": "xoziZG_statSub",
213
- "windowPopoverRow": "xoziZG_windowPopoverRow",
214
- "windowInputSet": "xoziZG_windowInputSet",
215
- "modelName": "xoziZG_modelName",
197
+ "creditRow": "xoziZG_creditRow",
216
198
  "manual": "xoziZG_manual",
217
- "header": "xoziZG_header",
218
- "modelCheck": "xoziZG_modelCheck",
219
- "creditLink": "xoziZG_creditLink",
220
- "manualSummary": "xoziZG_manualSummary",
221
- "accountEntry": "xoziZG_accountEntry",
222
- "statValue": "xoziZG_statValue",
199
+ "trendTip": "xoziZG_trendTip",
200
+ "choiceTail": "xoziZG_choiceTail",
201
+ "skeletonRow": "xoziZG_skeletonRow",
202
+ "windowUnit": "xoziZG_windowUnit",
203
+ "modelRow": "xoziZG_modelRow",
204
+ "balanceUnit": "xoziZG_balanceUnit",
205
+ "modelFill": "xoziZG_modelFill",
206
+ "statLabel": "xoziZG_statLabel",
207
+ "bar": "xoziZG_bar",
223
208
  "area": "xoziZG_area",
209
+ "count": "xoziZG_count",
210
+ "usageFill": "xoziZG_usageFill",
211
+ "accountConcurrencyInline": "xoziZG_accountConcurrencyInline",
212
+ "concurrencyValue": "xoziZG_concurrencyValue",
213
+ "heatCell": "xoziZG_heatCell",
214
+ "accountConcurrencyLabel": "xoziZG_accountConcurrencyLabel",
215
+ "usageTipSep": "xoziZG_usageTipSep",
216
+ "heatHours": "xoziZG_heatHours",
217
+ "tabs": "xoziZG_tabs",
218
+ "accountMenu": "xoziZG_accountMenu",
224
219
  "modelRequests": "xoziZG_modelRequests",
225
- "accountToggle": "xoziZG_accountToggle",
220
+ "windowButton": "xoziZG_windowButton",
221
+ "windowPopoverRow": "xoziZG_windowPopoverRow",
222
+ "skeleton": "xoziZG_skeleton",
223
+ "tabPanel": "xoziZG_tabPanel",
224
+ "manualSummary": "xoziZG_manualSummary",
225
+ "windowPopoverHead": "xoziZG_windowPopoverHead",
226
+ "name": "xoziZG_name",
227
+ "header": "xoziZG_header",
226
228
  "desc": "xoziZG_desc",
227
- "tabs": "xoziZG_tabs",
228
- "usageTipName": "xoziZG_usageTipName",
229
- "heatWeekday": "xoziZG_heatWeekday",
229
+ "accountMenuAnchor": "xoziZG_accountMenuAnchor",
230
230
  "expiryRow": "xoziZG_expiryRow",
231
- "windowAnchor": "xoziZG_windowAnchor",
231
+ "doctorList": "xoziZG_doctorList",
232
+ "statGrid": "xoziZG_statGrid",
232
233
  "accountInfo": "xoziZG_accountInfo",
233
- "concurrencyButton": "xoziZG_concurrencyButton",
234
- "modelChart": "xoziZG_modelChart",
235
- "headText": "xoziZG_headText",
236
- "usageTipSep": "xoziZG_usageTipSep",
237
- "accountName": "xoziZG_accountName",
234
+ "body": "xoziZG_body",
235
+ "manualForm": "xoziZG_manualForm",
236
+ "windowPopover": "xoziZG_windowPopover",
237
+ "card": "xoziZG_card",
238
238
  "heatLegendChip": "xoziZG_heatLegendChip",
239
- "choiceTail": "xoziZG_choiceTail",
240
- "windowButtonSet": "xoziZG_windowButtonSet",
241
- "choiceRow": "xoziZG_choiceRow",
242
- "heatGrid": "xoziZG_heatGrid",
243
- "creditHint": "xoziZG_creditHint",
244
- "statGrid": "xoziZG_statGrid",
245
- "skeleton": "xoziZG_skeleton",
246
- "skeletonBreath": "xoziZG_skeletonBreath",
247
- "accountClear": "xoziZG_accountClear",
248
- "avatar": "xoziZG_avatar",
249
239
  "doctorRow": "xoziZG_doctorRow",
240
+ "modelMeta": "xoziZG_modelMeta",
241
+ "heatAxisSlot": "xoziZG_heatAxisSlot",
242
+ "modelTrack": "xoziZG_modelTrack",
243
+ "windowButtonOpen": "xoziZG_windowButtonOpen",
244
+ "creditLink": "xoziZG_creditLink",
245
+ "balanceMeta": "xoziZG_balanceMeta",
246
+ "statCard": "xoziZG_statCard",
247
+ "statValue": "xoziZG_statValue",
248
+ "modelCheck": "xoziZG_modelCheck",
249
+ "creditFooter": "xoziZG_creditFooter",
250
+ "link": "xoziZG_link",
251
+ "accountCard": "xoziZG_accountCard",
250
252
  "groupHead": "xoziZG_groupHead",
251
- "body": "xoziZG_body",
252
- "usageTipRow": "xoziZG_usageTipRow",
253
- "heatCell": "xoziZG_heatCell",
254
- "accountConcurrencyLabel": "xoziZG_accountConcurrencyLabel",
253
+ "accountRow": "xoziZG_accountRow",
254
+ "creditRows": "xoziZG_creditRows",
255
+ "statusLine": "xoziZG_statusLine",
256
+ "windowInput": "xoziZG_windowInput",
257
+ "concurrencyButton": "xoziZG_concurrencyButton",
258
+ "windowAnchor": "xoziZG_windowAnchor",
259
+ "groupHeadFirst": "xoziZG_groupHeadFirst",
260
+ "sectionHead": "xoziZG_sectionHead",
261
+ "modelTokens": "xoziZG_modelTokens",
262
+ "headText": "xoziZG_headText",
255
263
  "creditBlock": "xoziZG_creditBlock",
256
- "concurrencyValue": "xoziZG_concurrencyValue",
257
- "count": "xoziZG_count",
264
+ "heatHourCell": "xoziZG_heatHourCell",
258
265
  "modelShare": "xoziZG_modelShare",
259
- "windowUnit": "xoziZG_windowUnit",
260
- "windowPopoverValue": "xoziZG_windowPopoverValue",
261
- "card": "xoziZG_card",
262
- "concurrencyStepper": "xoziZG_concurrencyStepper",
263
- "modelTokens": "xoziZG_modelTokens",
264
- "accountRow": "xoziZG_accountRow",
266
+ "error": "xoziZG_error",
267
+ "balance": "xoziZG_balance",
268
+ "actions": "xoziZG_actions",
269
+ "choiceRow": "xoziZG_choiceRow",
265
270
  "accountHint": "xoziZG_accountHint",
266
- "choices": "xoziZG_choices",
267
- "creditRow": "xoziZG_creditRow",
268
- "heatHours": "xoziZG_heatHours",
269
- "balanceMeta": "xoziZG_balanceMeta",
270
- "accountToolbar": "xoziZG_accountToolbar",
271
- "section": "xoziZG_section",
272
- "tabPanel": "xoziZG_tabPanel",
273
- "modelMeta": "xoziZG_modelMeta",
271
+ "usageTip": "xoziZG_usageTip",
272
+ "windowButtonSet": "xoziZG_windowButtonSet",
273
+ "windowHint": "xoziZG_windowHint",
274
+ "hint": "xoziZG_hint",
275
+ "danger": "xoziZG_danger",
274
276
  "sectionLabel": "xoziZG_sectionLabel",
275
- "fieldLabel": "xoziZG_fieldLabel",
276
- "doctorList": "xoziZG_doctorList",
277
- "windowCaret": "xoziZG_windowCaret",
278
- "link": "xoziZG_link",
277
+ "usageTipRow": "xoziZG_usageTipRow",
278
+ "field": "xoziZG_field",
279
+ "doctorName": "xoziZG_doctorName",
280
+ "groupLabel": "xoziZG_groupLabel",
281
+ "windowRange": "xoziZG_windowRange",
282
+ "claimAllRow": "xoziZG_claimAllRow",
283
+ "accountClearHint": "xoziZG_accountClearHint",
284
+ "section": "xoziZG_section",
285
+ "accountToggle": "xoziZG_accountToggle",
286
+ "meta": "xoziZG_meta",
287
+ "accountEntry": "xoziZG_accountEntry",
288
+ "heatWeekday": "xoziZG_heatWeekday",
279
289
  "expiryLabel": "xoziZG_expiryLabel",
290
+ "accountToolbar": "xoziZG_accountToolbar",
291
+ "creditHint": "xoziZG_creditHint",
280
292
  "heatAxis": "xoziZG_heatAxis",
281
- "accountClearHint": "xoziZG_accountClearHint",
282
- "accountMenuItem": "xoziZG_accountMenuItem",
283
- "hint": "xoziZG_hint",
284
- "bar": "xoziZG_bar",
285
- "modelFill": "xoziZG_modelFill",
286
293
  "heatLegend": "xoziZG_heatLegend",
287
- "windowPopoverHead": "xoziZG_windowPopoverHead",
288
- "manualForm": "xoziZG_manualForm",
289
- "accountCard": "xoziZG_accountCard",
290
- "modelRow": "xoziZG_modelRow",
291
- "windowPopover": "xoziZG_windowPopover",
292
- "windowRange": "xoziZG_windowRange",
293
- "windowButtonOpen": "xoziZG_windowButtonOpen",
294
- "usageTip": "xoziZG_usageTip",
295
- "trendTip": "xoziZG_trendTip",
296
- "modelSpec": "xoziZG_modelSpec",
297
- "danger": "xoziZG_danger",
298
- "groupLabel": "xoziZG_groupLabel",
299
- "error": "xoziZG_error",
300
- "doctorName": "xoziZG_doctorName",
301
- "accountNameRow": "xoziZG_accountNameRow",
294
+ "barFill": "xoziZG_barFill",
302
295
  "check": "xoziZG_check",
303
- "accountConcurrencyInline": "xoziZG_accountConcurrencyInline",
304
- "accountGrid": "xoziZG_accountGrid",
305
- "windowButton": "xoziZG_windowButton",
306
- "statLabel": "xoziZG_statLabel",
296
+ "choices": "xoziZG_choices",
297
+ "windowPopoverValue": "xoziZG_windowPopoverValue",
298
+ "concurrencyStepper": "xoziZG_concurrencyStepper",
299
+ "modelName": "xoziZG_modelName",
300
+ "windowCaret": "xoziZG_windowCaret",
301
+ "modelChart": "xoziZG_modelChart",
302
+ "avatar": "xoziZG_avatar",
303
+ "accountClear": "xoziZG_accountClear",
307
304
  "updated": "xoziZG_updated",
308
- "sectionHead": "xoziZG_sectionHead",
309
- "windowInput": "xoziZG_windowInput",
310
- "claimAllRow": "xoziZG_claimAllRow",
311
- "groupHeadFirst": "xoziZG_groupHeadFirst",
312
- "accountMenu": "xoziZG_accountMenu",
313
- "balanceRow": "xoziZG_balanceRow",
305
+ "accountGrid": "xoziZG_accountGrid",
306
+ "statSub": "xoziZG_statSub",
307
+ "skeletonBreath": "xoziZG_skeletonBreath",
308
+ "accountMenuItem": "xoziZG_accountMenuItem",
309
+ "heatGrid": "xoziZG_heatGrid",
310
+ "fieldLabel": "xoziZG_fieldLabel",
311
+ "usageTipName": "xoziZG_usageTipName",
312
+ "windowInputSet": "xoziZG_windowInputSet",
314
313
  "windowSection": "xoziZG_windowSection",
315
- "accountRowActions": "xoziZG_accountRowActions",
316
- "field": "xoziZG_field",
317
- "creditRows": "xoziZG_creditRows",
318
- "windowHint": "xoziZG_windowHint",
319
- "usageFill": "xoziZG_usageFill"
314
+ "balanceRow": "xoziZG_balanceRow",
315
+ "accountNameRow": "xoziZG_accountNameRow",
316
+ "accountName": "xoziZG_accountName",
317
+ "usageBar": "xoziZG_usageBar",
318
+ "modelSpec": "xoziZG_modelSpec",
319
+ "accountRowActions": "xoziZG_accountRowActions"
320
320
  };
321
321
  //#endregion
322
322
  //#region src/client/CodeArtsPluginCard.tsx
@@ -2444,7 +2444,7 @@ function CodeArtsPluginCard({ t }) {
2444
2444
  className: [
2445
2445
  CodeArtsPluginCard_module_css_default.windowButton,
2446
2446
  windowOpenFor === choice.id ? CodeArtsPluginCard_module_css_default.windowButtonOpen : "",
2447
- choice.contextWindowOverride === void 0 ? "" : CodeArtsPluginCard_module_css_default.windowButtonSet
2447
+ choice.contextWindowOverride === void 0 && choice.maxTokensOverride === void 0 ? "" : CodeArtsPluginCard_module_css_default.windowButtonSet
2448
2448
  ].filter(Boolean).join(" "),
2449
2449
  "aria-expanded": windowOpenFor === choice.id,
2450
2450
  "aria-label": t("modelWindowLabel", { model: modelName(choice) }),
@@ -3623,14 +3623,14 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
3623
3623
  document.head.appendChild(tag);
3624
3624
  }
3625
3625
  var CodeArtsPanel_module_css_default = {
3626
+ "title": "Z66cgG_title",
3626
3627
  "back": "Z66cgG_back",
3627
- "icon": "Z66cgG_icon",
3628
- "desc": "Z66cgG_desc",
3629
3628
  "head": "Z66cgG_head",
3630
- "title": "Z66cgG_title",
3631
- "page": "Z66cgG_page",
3632
3629
  "backCaret": "Z66cgG_backCaret",
3633
- "body": "Z66cgG_body"
3630
+ "body": "Z66cgG_body",
3631
+ "icon": "Z66cgG_icon",
3632
+ "desc": "Z66cgG_desc",
3633
+ "page": "Z66cgG_page"
3634
3634
  };
3635
3635
  //#endregion
3636
3636
  //#region src/client/CodeArtsPanel.tsx
package/lib/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as codeartsAuthPath, c as credentialFromOAuth, g as startLogin, i as codeartsAccountsPath, n as CodeArtsCredentialStore, o as codeartsDebugLogPath, r as MANUAL_ACCOUNT_ID, s as codeartsRefreshLogPath, t as CodeArtsAccountStore } from "./auth-BaxN0iKC.mjs";
2
2
  import { $ as withMaxTokensOverride, A as prepareChatBody, C as isWelfareClaimedStatus, D as modelUnavailableReasonText, E as maxTokensCeilingFor, F as signedGet, G as isBenefitBlocked, H as creditRatioLabel, I as upstreamErrorMessage, K as isBenefitModel, M as rateLimitFrame, N as setMaxTokenOverride, O as overrideValueFor, P as setMaxTokenOverrides, Q as withContextWindowOverride, R as CodeArtsCatalog, S as isTpmLimit, T as learnedContextWindowFor, U as filterEnabledModels, V as clearBenefitBlocked, W as forgetModelUnavailable, X as modelUnavailableReason, _ as isNotMultimodal, a as claimDailyWelfare, b as isQueueRejectText, c as degradeTokenCeiling, d as fetchQueueStatus, f as fetchWelfareCampaigns, g as isModelNotAccessible, h as isIamTokenError, i as chatStream, j as queueFrame, k as pickDailyWelfareCampaign, l as fetchCallerIdentity, m as isConcurrencyCap, n as SNAP_HOST, o as clearQueueStatus, p as firstFrameError, q as markModelUnavailable, r as canonicalModel, s as contextWindowOverrideFor, t as MAX_TOKENS_FLOOR, u as fetchModels, v as isParamInvalidFrame, w as learnContextWindow, x as isQueueableRate, y as isQueueReject, z as FALLBACK_CODEARTS_MODELS } from "./upstream-BX6-klXI.mjs";
3
- import { a as refreshCatalog, i as discoverModels, n as CodeArtsUsageTracker, r as codeartsUsagePath, t as CODEARTS_VERSION } from "./version-1elDzsw0.mjs";
3
+ import { a as refreshCatalog, i as discoverModels, n as CodeArtsUsageTracker, r as codeartsUsagePath, t as CODEARTS_VERSION } from "./version-CUnRcNkz.mjs";
4
4
  import { i as lazyApi, r as createProvider } from "./models-CgKCibpk.mjs";
5
5
  import { c as keeperLogPath, f as keeperStats, i as clearKeeperHandoff, l as keeperNextPassAt, m as stopKeeper, n as KEEPER_STALE_MS, p as spawnKeeper, s as keeperHandoffRecent, u as keeperScriptPath } from "./keeper-BWHQDFAh.mjs";
6
6
  import { appendFileSync, statSync, writeFileSync } from "node:fs";
@@ -536,6 +536,6 @@ function percentileOf(buckets, ratio) {
536
536
  }
537
537
  //#endregion
538
538
  //#region src/version.ts
539
- const CODEARTS_VERSION = "1.4.9";
539
+ const CODEARTS_VERSION = "1.4.10";
540
540
  //#endregion
541
541
  export { refreshCatalog as a, discoverModels as i, CodeArtsUsageTracker as n, codeartsUsagePath as r, CODEARTS_VERSION as t };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dsh-codearts",
3
3
  "displayName": "DSH CodeArts Connect",
4
4
  "description": "把华为云 CodeArts 接入 DeepSeek Harness —— 内置 OAuth2 登录(PKCE + DPoP),登录后即可在 DSH 对话窗口使用 CodeArts 的模型。",
5
- "version": "1.4.9",
5
+ "version": "1.4.10",
6
6
  "packageManager": "pnpm@11.24.0",
7
7
  "author": "elegant01",
8
8
  "keywords": [