dsh-codearts 1.4.10 → 1.4.11
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 +8 -0
- package/lib/bin.mjs +1 -1
- package/lib/client/index.js +120 -113
- package/lib/index.mjs +1 -1
- package/lib/{version-CUnRcNkz.mjs → version-D4fJX342.mjs} +1 -1
- package/package.json +1 -1
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.11] - 2026-11-23
|
|
7
|
+
|
|
8
|
+
### 修复
|
|
9
|
+
|
|
10
|
+
- 模型行 `▾` 按钮收起弹层时不提交草稿(#15):清空窗口或输出上限后点 `▾`
|
|
11
|
+
收起,改动不生效、徽标停在旧值;只有点弹层外面或按 Esc 才会提交。现在三种
|
|
12
|
+
收起方式共用同一条提交路径;从 A 模型直接切到 B 时,也会先提交 A 的草稿。
|
|
13
|
+
|
|
6
14
|
## [1.4.10] - 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-
|
|
4
|
+
import { i as discoverModels, n as CodeArtsUsageTracker, r as codeartsUsagePath, t as CODEARTS_VERSION } from "./version-D4fJX342.mjs";
|
|
5
5
|
import { existsSync, statSync } from "node:fs";
|
|
6
6
|
//#region src/bin.ts
|
|
7
7
|
/**
|
package/lib/client/index.js
CHANGED
|
@@ -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
|
-
"
|
|
198
|
-
"
|
|
197
|
+
"updated": "xoziZG_updated",
|
|
198
|
+
"expiryLabel": "xoziZG_expiryLabel",
|
|
199
|
+
"creditHint": "xoziZG_creditHint",
|
|
200
|
+
"modelName": "xoziZG_modelName",
|
|
201
|
+
"concurrencyButton": "xoziZG_concurrencyButton",
|
|
202
|
+
"usageFill": "xoziZG_usageFill",
|
|
203
|
+
"error": "xoziZG_error",
|
|
204
|
+
"usageTipSep": "xoziZG_usageTipSep",
|
|
205
|
+
"accountMenuAnchor": "xoziZG_accountMenuAnchor",
|
|
206
|
+
"heatCell": "xoziZG_heatCell",
|
|
199
207
|
"trendTip": "xoziZG_trendTip",
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
208
|
+
"desc": "xoziZG_desc",
|
|
209
|
+
"groupHeadFirst": "xoziZG_groupHeadFirst",
|
|
210
|
+
"claimAllRow": "xoziZG_claimAllRow",
|
|
211
|
+
"sectionLabel": "xoziZG_sectionLabel",
|
|
212
|
+
"windowRange": "xoziZG_windowRange",
|
|
213
|
+
"accountConcurrencyInline": "xoziZG_accountConcurrencyInline",
|
|
214
|
+
"choiceRow": "xoziZG_choiceRow",
|
|
215
|
+
"usageTip": "xoziZG_usageTip",
|
|
216
|
+
"doctorRow": "xoziZG_doctorRow",
|
|
217
|
+
"skeleton": "xoziZG_skeleton",
|
|
218
|
+
"usageBar": "xoziZG_usageBar",
|
|
206
219
|
"statLabel": "xoziZG_statLabel",
|
|
220
|
+
"modelChart": "xoziZG_modelChart",
|
|
207
221
|
"bar": "xoziZG_bar",
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"concurrencyValue": "xoziZG_concurrencyValue",
|
|
213
|
-
"heatCell": "xoziZG_heatCell",
|
|
222
|
+
"section": "xoziZG_section",
|
|
223
|
+
"card": "xoziZG_card",
|
|
224
|
+
"creditRow": "xoziZG_creditRow",
|
|
225
|
+
"statusLine": "xoziZG_statusLine",
|
|
214
226
|
"accountConcurrencyLabel": "xoziZG_accountConcurrencyLabel",
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"modelRequests": "xoziZG_modelRequests",
|
|
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
|
+
"windowButtonOpen": "xoziZG_windowButtonOpen",
|
|
228
|
+
"accountNameRow": "xoziZG_accountNameRow",
|
|
229
|
+
"headText": "xoziZG_headText",
|
|
230
|
+
"usageTipRow": "xoziZG_usageTipRow",
|
|
227
231
|
"header": "xoziZG_header",
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
"statGrid": "xoziZG_statGrid",
|
|
233
|
-
"accountInfo": "xoziZG_accountInfo",
|
|
234
|
-
"body": "xoziZG_body",
|
|
235
|
-
"manualForm": "xoziZG_manualForm",
|
|
236
|
-
"windowPopover": "xoziZG_windowPopover",
|
|
237
|
-
"card": "xoziZG_card",
|
|
238
|
-
"heatLegendChip": "xoziZG_heatLegendChip",
|
|
239
|
-
"doctorRow": "xoziZG_doctorRow",
|
|
240
|
-
"modelMeta": "xoziZG_modelMeta",
|
|
232
|
+
"accountClearHint": "xoziZG_accountClearHint",
|
|
233
|
+
"accountRow": "xoziZG_accountRow",
|
|
234
|
+
"modelShare": "xoziZG_modelShare",
|
|
235
|
+
"heatGrid": "xoziZG_heatGrid",
|
|
241
236
|
"heatAxisSlot": "xoziZG_heatAxisSlot",
|
|
242
|
-
"
|
|
243
|
-
"windowButtonOpen": "xoziZG_windowButtonOpen",
|
|
244
|
-
"creditLink": "xoziZG_creditLink",
|
|
245
|
-
"balanceMeta": "xoziZG_balanceMeta",
|
|
237
|
+
"modelRow": "xoziZG_modelRow",
|
|
246
238
|
"statCard": "xoziZG_statCard",
|
|
239
|
+
"windowInput": "xoziZG_windowInput",
|
|
240
|
+
"balanceMeta": "xoziZG_balanceMeta",
|
|
241
|
+
"actions": "xoziZG_actions",
|
|
242
|
+
"windowInputSet": "xoziZG_windowInputSet",
|
|
243
|
+
"concurrencyStepper": "xoziZG_concurrencyStepper",
|
|
244
|
+
"skeletonRow": "xoziZG_skeletonRow",
|
|
247
245
|
"statValue": "xoziZG_statValue",
|
|
248
246
|
"modelCheck": "xoziZG_modelCheck",
|
|
247
|
+
"balanceRow": "xoziZG_balanceRow",
|
|
248
|
+
"body": "xoziZG_body",
|
|
249
249
|
"creditFooter": "xoziZG_creditFooter",
|
|
250
|
-
"link": "xoziZG_link",
|
|
251
|
-
"accountCard": "xoziZG_accountCard",
|
|
252
|
-
"groupHead": "xoziZG_groupHead",
|
|
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",
|
|
263
|
-
"creditBlock": "xoziZG_creditBlock",
|
|
264
|
-
"heatHourCell": "xoziZG_heatHourCell",
|
|
265
|
-
"modelShare": "xoziZG_modelShare",
|
|
266
|
-
"error": "xoziZG_error",
|
|
267
|
-
"balance": "xoziZG_balance",
|
|
268
|
-
"actions": "xoziZG_actions",
|
|
269
|
-
"choiceRow": "xoziZG_choiceRow",
|
|
270
|
-
"accountHint": "xoziZG_accountHint",
|
|
271
|
-
"usageTip": "xoziZG_usageTip",
|
|
272
|
-
"windowButtonSet": "xoziZG_windowButtonSet",
|
|
273
|
-
"windowHint": "xoziZG_windowHint",
|
|
274
|
-
"hint": "xoziZG_hint",
|
|
275
|
-
"danger": "xoziZG_danger",
|
|
276
|
-
"sectionLabel": "xoziZG_sectionLabel",
|
|
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
250
|
"accountToggle": "xoziZG_accountToggle",
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"expiryLabel": "xoziZG_expiryLabel",
|
|
290
|
-
"accountToolbar": "xoziZG_accountToolbar",
|
|
291
|
-
"creditHint": "xoziZG_creditHint",
|
|
292
|
-
"heatAxis": "xoziZG_heatAxis",
|
|
293
|
-
"heatLegend": "xoziZG_heatLegend",
|
|
294
|
-
"barFill": "xoziZG_barFill",
|
|
295
|
-
"check": "xoziZG_check",
|
|
296
|
-
"choices": "xoziZG_choices",
|
|
297
|
-
"windowPopoverValue": "xoziZG_windowPopoverValue",
|
|
298
|
-
"concurrencyStepper": "xoziZG_concurrencyStepper",
|
|
299
|
-
"modelName": "xoziZG_modelName",
|
|
251
|
+
"hint": "xoziZG_hint",
|
|
252
|
+
"name": "xoziZG_name",
|
|
253
|
+
"modelTrack": "xoziZG_modelTrack",
|
|
300
254
|
"windowCaret": "xoziZG_windowCaret",
|
|
301
|
-
"
|
|
255
|
+
"modelMeta": "xoziZG_modelMeta",
|
|
256
|
+
"usageTipName": "xoziZG_usageTipName",
|
|
257
|
+
"windowButton": "xoziZG_windowButton",
|
|
258
|
+
"windowHint": "xoziZG_windowHint",
|
|
259
|
+
"modelRequests": "xoziZG_modelRequests",
|
|
260
|
+
"heatAxis": "xoziZG_heatAxis",
|
|
302
261
|
"avatar": "xoziZG_avatar",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
305
|
-
"
|
|
262
|
+
"accountName": "xoziZG_accountName",
|
|
263
|
+
"count": "xoziZG_count",
|
|
264
|
+
"choices": "xoziZG_choices",
|
|
265
|
+
"manualForm": "xoziZG_manualForm",
|
|
266
|
+
"area": "xoziZG_area",
|
|
267
|
+
"windowPopoverHead": "xoziZG_windowPopoverHead",
|
|
268
|
+
"balanceUnit": "xoziZG_balanceUnit",
|
|
269
|
+
"accountInfo": "xoziZG_accountInfo",
|
|
270
|
+
"expiryRow": "xoziZG_expiryRow",
|
|
271
|
+
"windowPopoverRow": "xoziZG_windowPopoverRow",
|
|
272
|
+
"modelSpec": "xoziZG_modelSpec",
|
|
306
273
|
"statSub": "xoziZG_statSub",
|
|
307
|
-
"
|
|
308
|
-
"
|
|
309
|
-
"
|
|
274
|
+
"check": "xoziZG_check",
|
|
275
|
+
"accountMenu": "xoziZG_accountMenu",
|
|
276
|
+
"field": "xoziZG_field",
|
|
277
|
+
"windowUnit": "xoziZG_windowUnit",
|
|
278
|
+
"sectionHead": "xoziZG_sectionHead",
|
|
279
|
+
"accountCard": "xoziZG_accountCard",
|
|
280
|
+
"heatHourCell": "xoziZG_heatHourCell",
|
|
281
|
+
"accountEntry": "xoziZG_accountEntry",
|
|
282
|
+
"accountClear": "xoziZG_accountClear",
|
|
283
|
+
"choiceTail": "xoziZG_choiceTail",
|
|
284
|
+
"doctorName": "xoziZG_doctorName",
|
|
285
|
+
"manual": "xoziZG_manual",
|
|
286
|
+
"manualSummary": "xoziZG_manualSummary",
|
|
310
287
|
"fieldLabel": "xoziZG_fieldLabel",
|
|
311
|
-
"
|
|
312
|
-
"
|
|
288
|
+
"creditBlock": "xoziZG_creditBlock",
|
|
289
|
+
"modelTokens": "xoziZG_modelTokens",
|
|
290
|
+
"windowAnchor": "xoziZG_windowAnchor",
|
|
313
291
|
"windowSection": "xoziZG_windowSection",
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
"
|
|
292
|
+
"windowPopover": "xoziZG_windowPopover",
|
|
293
|
+
"accountGrid": "xoziZG_accountGrid",
|
|
294
|
+
"heatWeekday": "xoziZG_heatWeekday",
|
|
295
|
+
"heatHours": "xoziZG_heatHours",
|
|
296
|
+
"windowButtonSet": "xoziZG_windowButtonSet",
|
|
297
|
+
"groupHead": "xoziZG_groupHead",
|
|
298
|
+
"heatLegendChip": "xoziZG_heatLegendChip",
|
|
299
|
+
"balance": "xoziZG_balance",
|
|
300
|
+
"accountMenuItem": "xoziZG_accountMenuItem",
|
|
301
|
+
"heatLegend": "xoziZG_heatLegend",
|
|
302
|
+
"link": "xoziZG_link",
|
|
303
|
+
"accountToolbar": "xoziZG_accountToolbar",
|
|
304
|
+
"statGrid": "xoziZG_statGrid",
|
|
305
|
+
"danger": "xoziZG_danger",
|
|
306
|
+
"tabPanel": "xoziZG_tabPanel",
|
|
307
|
+
"modelFill": "xoziZG_modelFill",
|
|
308
|
+
"concurrencyValue": "xoziZG_concurrencyValue",
|
|
309
|
+
"creditRows": "xoziZG_creditRows",
|
|
310
|
+
"meta": "xoziZG_meta",
|
|
311
|
+
"skeletonBreath": "xoziZG_skeletonBreath",
|
|
312
|
+
"windowPopoverValue": "xoziZG_windowPopoverValue",
|
|
313
|
+
"groupLabel": "xoziZG_groupLabel",
|
|
314
|
+
"tabs": "xoziZG_tabs",
|
|
315
|
+
"accountRowActions": "xoziZG_accountRowActions",
|
|
316
|
+
"doctorList": "xoziZG_doctorList",
|
|
317
|
+
"accountHint": "xoziZG_accountHint",
|
|
318
|
+
"creditLink": "xoziZG_creditLink",
|
|
319
|
+
"barFill": "xoziZG_barFill"
|
|
320
320
|
};
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region src/client/CodeArtsPluginCard.tsx
|
|
@@ -2452,7 +2452,14 @@ function CodeArtsPluginCard({ t }) {
|
|
|
2452
2452
|
model: modelName(choice),
|
|
2453
2453
|
value: formatWindow(choice.contextWindowDiscovered ?? choice.contextWindow)
|
|
2454
2454
|
}),
|
|
2455
|
-
onClick: () =>
|
|
2455
|
+
onClick: () => {
|
|
2456
|
+
if (windowOpenFor === choice.id) {
|
|
2457
|
+
closeWindow();
|
|
2458
|
+
return;
|
|
2459
|
+
}
|
|
2460
|
+
if (windowOpenFor !== null) closeWindow();
|
|
2461
|
+
setWindowOpenFor(choice.id);
|
|
2462
|
+
},
|
|
2456
2463
|
children: [t("modelSpec", {
|
|
2457
2464
|
context: formatWindow(windowNumberValue(choice)),
|
|
2458
2465
|
output: formatWindow(choice.maxTokens)
|
|
@@ -3623,14 +3630,14 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
|
|
|
3623
3630
|
document.head.appendChild(tag);
|
|
3624
3631
|
}
|
|
3625
3632
|
var CodeArtsPanel_module_css_default = {
|
|
3626
|
-
"title": "Z66cgG_title",
|
|
3627
|
-
"back": "Z66cgG_back",
|
|
3628
3633
|
"head": "Z66cgG_head",
|
|
3629
|
-
"backCaret": "Z66cgG_backCaret",
|
|
3630
3634
|
"body": "Z66cgG_body",
|
|
3631
|
-
"
|
|
3635
|
+
"backCaret": "Z66cgG_backCaret",
|
|
3632
3636
|
"desc": "Z66cgG_desc",
|
|
3633
|
-
"
|
|
3637
|
+
"icon": "Z66cgG_icon",
|
|
3638
|
+
"page": "Z66cgG_page",
|
|
3639
|
+
"title": "Z66cgG_title",
|
|
3640
|
+
"back": "Z66cgG_back"
|
|
3634
3641
|
};
|
|
3635
3642
|
//#endregion
|
|
3636
3643
|
//#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-
|
|
3
|
+
import { a as refreshCatalog, i as discoverModels, n as CodeArtsUsageTracker, r as codeartsUsagePath, t as CODEARTS_VERSION } from "./version-D4fJX342.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.
|
|
539
|
+
const CODEARTS_VERSION = "1.4.11";
|
|
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.
|
|
5
|
+
"version": "1.4.11",
|
|
6
6
|
"packageManager": "pnpm@11.24.0",
|
|
7
7
|
"author": "elegant01",
|
|
8
8
|
"keywords": [
|