dsh-codearts 1.4.12 → 1.4.13
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 +113 -112
- package/lib/index.mjs +1 -1
- package/lib/{version-BGniJF-q.mjs → version-BnCFPeBL.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.13] - 2026-11-24
|
|
7
|
+
|
|
8
|
+
### 修复
|
|
9
|
+
|
|
10
|
+
- 清空「输出上限」后点弹层外面或按 Esc 收起,改动不提交、徽标停在旧值(#15):
|
|
11
|
+
点外面/Esc 的监听器闭包只把窗口草稿列为依赖,清空输出只更新输出草稿、不重注册
|
|
12
|
+
监听器,收起时拿的是不含输出改动的旧快照。两处草稿现在都是依赖。
|
|
13
|
+
|
|
6
14
|
## [1.4.12] - 2026-11-24
|
|
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-D-RmpxN3.mjs";
|
|
3
3
|
import { l as fetchCallerIdentity, q as isBenefitModel } from "./upstream-DeRNnZdN.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-BnCFPeBL.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
|
-
"skeletonRow": "xoziZG_skeletonRow",
|
|
198
|
-
"usageTipRow": "xoziZG_usageTipRow",
|
|
199
|
-
"accountToggle": "xoziZG_accountToggle",
|
|
200
|
-
"windowHint": "xoziZG_windowHint",
|
|
201
|
-
"accountInfo": "xoziZG_accountInfo",
|
|
202
|
-
"tabs": "xoziZG_tabs",
|
|
203
|
-
"creditBlock": "xoziZG_creditBlock",
|
|
204
|
-
"balanceUnit": "xoziZG_balanceUnit",
|
|
205
197
|
"check": "xoziZG_check",
|
|
206
|
-
"
|
|
207
|
-
"
|
|
198
|
+
"accountMenuItem": "xoziZG_accountMenuItem",
|
|
199
|
+
"updated": "xoziZG_updated",
|
|
200
|
+
"hint": "xoziZG_hint",
|
|
201
|
+
"modelShare": "xoziZG_modelShare",
|
|
202
|
+
"expiryRow": "xoziZG_expiryRow",
|
|
203
|
+
"statGrid": "xoziZG_statGrid",
|
|
204
|
+
"manualForm": "xoziZG_manualForm",
|
|
205
|
+
"windowPopoverValue": "xoziZG_windowPopoverValue",
|
|
206
|
+
"choiceRow": "xoziZG_choiceRow",
|
|
207
|
+
"creditRows": "xoziZG_creditRows",
|
|
208
|
+
"accountEntry": "xoziZG_accountEntry",
|
|
209
|
+
"link": "xoziZG_link",
|
|
210
|
+
"concurrencyStepper": "xoziZG_concurrencyStepper",
|
|
211
|
+
"balance": "xoziZG_balance",
|
|
212
|
+
"accountConcurrencyLabel": "xoziZG_accountConcurrencyLabel",
|
|
213
|
+
"trendTip": "xoziZG_trendTip",
|
|
214
|
+
"accountInfo": "xoziZG_accountInfo",
|
|
215
|
+
"meta": "xoziZG_meta",
|
|
216
|
+
"statCard": "xoziZG_statCard",
|
|
217
|
+
"concurrencyValue": "xoziZG_concurrencyValue",
|
|
218
|
+
"accountMenu": "xoziZG_accountMenu",
|
|
219
|
+
"tabPanel": "xoziZG_tabPanel",
|
|
220
|
+
"usageTipSep": "xoziZG_usageTipSep",
|
|
221
|
+
"creditHint": "xoziZG_creditHint",
|
|
222
|
+
"modelChart": "xoziZG_modelChart",
|
|
208
223
|
"choices": "xoziZG_choices",
|
|
209
|
-
"
|
|
210
|
-
"heatCell": "xoziZG_heatCell",
|
|
211
|
-
"balanceMeta": "xoziZG_balanceMeta",
|
|
212
|
-
"skeleton": "xoziZG_skeleton",
|
|
213
|
-
"heatHours": "xoziZG_heatHours",
|
|
214
|
-
"windowAnchor": "xoziZG_windowAnchor",
|
|
215
|
-
"windowInput": "xoziZG_windowInput",
|
|
216
|
-
"accountMenuAnchor": "xoziZG_accountMenuAnchor",
|
|
217
|
-
"manual": "xoziZG_manual",
|
|
218
|
-
"windowPopover": "xoziZG_windowPopover",
|
|
219
|
-
"doctorList": "xoziZG_doctorList",
|
|
220
|
-
"doctorRow": "xoziZG_doctorRow",
|
|
221
|
-
"windowButton": "xoziZG_windowButton",
|
|
224
|
+
"claimAllRow": "xoziZG_claimAllRow",
|
|
222
225
|
"concurrencyButton": "xoziZG_concurrencyButton",
|
|
223
|
-
"danger": "xoziZG_danger",
|
|
224
|
-
"error": "xoziZG_error",
|
|
225
|
-
"usageTip": "xoziZG_usageTip",
|
|
226
|
-
"choiceTail": "xoziZG_choiceTail",
|
|
227
|
-
"heatLegendChip": "xoziZG_heatLegendChip",
|
|
228
|
-
"trendTip": "xoziZG_trendTip",
|
|
229
|
-
"statValue": "xoziZG_statValue",
|
|
230
|
-
"modelShare": "xoziZG_modelShare",
|
|
231
|
-
"windowSection": "xoziZG_windowSection",
|
|
232
226
|
"modelRow": "xoziZG_modelRow",
|
|
233
|
-
"
|
|
234
|
-
"creditLink": "xoziZG_creditLink",
|
|
235
|
-
"usageTipName": "xoziZG_usageTipName",
|
|
227
|
+
"name": "xoziZG_name",
|
|
236
228
|
"creditRow": "xoziZG_creditRow",
|
|
237
|
-
"
|
|
229
|
+
"manualSummary": "xoziZG_manualSummary",
|
|
230
|
+
"sectionHead": "xoziZG_sectionHead",
|
|
231
|
+
"heatLegend": "xoziZG_heatLegend",
|
|
232
|
+
"accountGrid": "xoziZG_accountGrid",
|
|
233
|
+
"statusLine": "xoziZG_statusLine",
|
|
234
|
+
"accountRow": "xoziZG_accountRow",
|
|
235
|
+
"card": "xoziZG_card",
|
|
238
236
|
"field": "xoziZG_field",
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
237
|
+
"accountMenuAnchor": "xoziZG_accountMenuAnchor",
|
|
238
|
+
"tabs": "xoziZG_tabs",
|
|
239
|
+
"usageTip": "xoziZG_usageTip",
|
|
240
|
+
"error": "xoziZG_error",
|
|
241
|
+
"header": "xoziZG_header",
|
|
242
|
+
"section": "xoziZG_section",
|
|
243
|
+
"windowButtonSet": "xoziZG_windowButtonSet",
|
|
244
|
+
"count": "xoziZG_count",
|
|
245
|
+
"creditBlock": "xoziZG_creditBlock",
|
|
246
|
+
"accountConcurrencyInline": "xoziZG_accountConcurrencyInline",
|
|
247
|
+
"windowPopover": "xoziZG_windowPopover",
|
|
248
|
+
"bar": "xoziZG_bar",
|
|
249
|
+
"usageTipRow": "xoziZG_usageTipRow",
|
|
250
|
+
"actions": "xoziZG_actions",
|
|
251
|
+
"usageBar": "xoziZG_usageBar",
|
|
252
|
+
"accountCard": "xoziZG_accountCard",
|
|
253
|
+
"creditLink": "xoziZG_creditLink",
|
|
251
254
|
"heatAxisSlot": "xoziZG_heatAxisSlot",
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"balance": "xoziZG_balance",
|
|
257
|
-
"doctorName": "xoziZG_doctorName",
|
|
258
|
-
"desc": "xoziZG_desc",
|
|
259
|
-
"creditHint": "xoziZG_creditHint",
|
|
255
|
+
"windowInput": "xoziZG_windowInput",
|
|
256
|
+
"modelFill": "xoziZG_modelFill",
|
|
257
|
+
"statLabel": "xoziZG_statLabel",
|
|
258
|
+
"windowUnit": "xoziZG_windowUnit",
|
|
260
259
|
"modelMeta": "xoziZG_modelMeta",
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
260
|
+
"modelCheck": "xoziZG_modelCheck",
|
|
261
|
+
"groupLabel": "xoziZG_groupLabel",
|
|
262
|
+
"body": "xoziZG_body",
|
|
263
|
+
"statValue": "xoziZG_statValue",
|
|
264
|
+
"heatGrid": "xoziZG_heatGrid",
|
|
265
|
+
"modelTokens": "xoziZG_modelTokens",
|
|
265
266
|
"modelRequests": "xoziZG_modelRequests",
|
|
266
|
-
"
|
|
267
|
-
"
|
|
267
|
+
"windowPopoverRow": "xoziZG_windowPopoverRow",
|
|
268
|
+
"heatAxis": "xoziZG_heatAxis",
|
|
268
269
|
"statSub": "xoziZG_statSub",
|
|
270
|
+
"danger": "xoziZG_danger",
|
|
271
|
+
"windowInputSet": "xoziZG_windowInputSet",
|
|
272
|
+
"manual": "xoziZG_manual",
|
|
273
|
+
"groupHead": "xoziZG_groupHead",
|
|
274
|
+
"headText": "xoziZG_headText",
|
|
275
|
+
"windowSection": "xoziZG_windowSection",
|
|
276
|
+
"windowButtonOpen": "xoziZG_windowButtonOpen",
|
|
277
|
+
"windowAnchor": "xoziZG_windowAnchor",
|
|
278
|
+
"skeletonBreath": "xoziZG_skeletonBreath",
|
|
279
|
+
"windowPopoverHead": "xoziZG_windowPopoverHead",
|
|
280
|
+
"windowHint": "xoziZG_windowHint",
|
|
269
281
|
"accountName": "xoziZG_accountName",
|
|
270
|
-
"
|
|
271
|
-
"
|
|
282
|
+
"expiryLabel": "xoziZG_expiryLabel",
|
|
283
|
+
"creditFooter": "xoziZG_creditFooter",
|
|
272
284
|
"heatHourCell": "xoziZG_heatHourCell",
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
"usageBar": "xoziZG_usageBar",
|
|
276
|
-
"manualSummary": "xoziZG_manualSummary",
|
|
277
|
-
"accountGrid": "xoziZG_accountGrid",
|
|
278
|
-
"windowPopoverHead": "xoziZG_windowPopoverHead",
|
|
279
|
-
"modelName": "xoziZG_modelName",
|
|
280
|
-
"section": "xoziZG_section",
|
|
281
|
-
"statusLine": "xoziZG_statusLine",
|
|
282
|
-
"sectionLabel": "xoziZG_sectionLabel",
|
|
283
|
-
"barFill": "xoziZG_barFill",
|
|
285
|
+
"accountHint": "xoziZG_accountHint",
|
|
286
|
+
"choiceTail": "xoziZG_choiceTail",
|
|
284
287
|
"avatar": "xoziZG_avatar",
|
|
285
|
-
"
|
|
286
|
-
"
|
|
288
|
+
"modelTrack": "xoziZG_modelTrack",
|
|
289
|
+
"heatWeekday": "xoziZG_heatWeekday",
|
|
287
290
|
"windowCaret": "xoziZG_windowCaret",
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"balanceRow": "xoziZG_balanceRow",
|
|
294
|
-
"accountClearHint": "xoziZG_accountClearHint",
|
|
295
|
-
"modelCheck": "xoziZG_modelCheck",
|
|
296
|
-
"meta": "xoziZG_meta",
|
|
297
|
-
"link": "xoziZG_link",
|
|
298
|
-
"header": "xoziZG_header",
|
|
299
|
-
"statLabel": "xoziZG_statLabel",
|
|
300
|
-
"actions": "xoziZG_actions",
|
|
301
|
-
"modelChart": "xoziZG_modelChart",
|
|
302
|
-
"usageFill": "xoziZG_usageFill",
|
|
303
|
-
"skeletonBreath": "xoziZG_skeletonBreath",
|
|
304
|
-
"windowPopoverRow": "xoziZG_windowPopoverRow",
|
|
291
|
+
"doctorName": "xoziZG_doctorName",
|
|
292
|
+
"heatHours": "xoziZG_heatHours",
|
|
293
|
+
"groupHeadFirst": "xoziZG_groupHeadFirst",
|
|
294
|
+
"modelSpec": "xoziZG_modelSpec",
|
|
295
|
+
"doctorRow": "xoziZG_doctorRow",
|
|
305
296
|
"windowRange": "xoziZG_windowRange",
|
|
306
|
-
"accountEntry": "xoziZG_accountEntry",
|
|
307
|
-
"updated": "xoziZG_updated",
|
|
308
297
|
"accountToolbar": "xoziZG_accountToolbar",
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
"
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
"
|
|
298
|
+
"modelName": "xoziZG_modelName",
|
|
299
|
+
"heatCell": "xoziZG_heatCell",
|
|
300
|
+
"heatLegendChip": "xoziZG_heatLegendChip",
|
|
301
|
+
"desc": "xoziZG_desc",
|
|
302
|
+
"accountToggle": "xoziZG_accountToggle",
|
|
303
|
+
"fieldLabel": "xoziZG_fieldLabel",
|
|
304
|
+
"balanceMeta": "xoziZG_balanceMeta",
|
|
305
|
+
"doctorList": "xoziZG_doctorList",
|
|
306
|
+
"accountClear": "xoziZG_accountClear",
|
|
307
|
+
"skeletonRow": "xoziZG_skeletonRow",
|
|
308
|
+
"accountClearHint": "xoziZG_accountClearHint",
|
|
309
|
+
"usageFill": "xoziZG_usageFill",
|
|
310
|
+
"barFill": "xoziZG_barFill",
|
|
311
|
+
"accountNameRow": "xoziZG_accountNameRow",
|
|
312
|
+
"sectionLabel": "xoziZG_sectionLabel",
|
|
313
|
+
"balanceRow": "xoziZG_balanceRow",
|
|
314
|
+
"skeleton": "xoziZG_skeleton",
|
|
315
|
+
"windowButton": "xoziZG_windowButton",
|
|
316
|
+
"usageTipName": "xoziZG_usageTipName",
|
|
317
|
+
"balanceUnit": "xoziZG_balanceUnit",
|
|
318
|
+
"area": "xoziZG_area",
|
|
319
|
+
"accountRowActions": "xoziZG_accountRowActions"
|
|
320
320
|
};
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region src/client/CodeArtsPluginCard.tsx
|
|
@@ -1530,6 +1530,7 @@ function CodeArtsPluginCard({ t }) {
|
|
|
1530
1530
|
}, [
|
|
1531
1531
|
windowOpenFor,
|
|
1532
1532
|
windowDrafts,
|
|
1533
|
+
outputDrafts,
|
|
1533
1534
|
selection
|
|
1534
1535
|
]);
|
|
1535
1536
|
(0, react.useEffect)(() => {
|
|
@@ -3630,14 +3631,14 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
|
|
|
3630
3631
|
document.head.appendChild(tag);
|
|
3631
3632
|
}
|
|
3632
3633
|
var CodeArtsPanel_module_css_default = {
|
|
3633
|
-
"head": "Z66cgG_head",
|
|
3634
|
-
"desc": "Z66cgG_desc",
|
|
3635
|
-
"backCaret": "Z66cgG_backCaret",
|
|
3636
3634
|
"icon": "Z66cgG_icon",
|
|
3635
|
+
"head": "Z66cgG_head",
|
|
3637
3636
|
"page": "Z66cgG_page",
|
|
3637
|
+
"desc": "Z66cgG_desc",
|
|
3638
3638
|
"back": "Z66cgG_back",
|
|
3639
|
-
"
|
|
3640
|
-
"
|
|
3639
|
+
"body": "Z66cgG_body",
|
|
3640
|
+
"backCaret": "Z66cgG_backCaret",
|
|
3641
|
+
"title": "Z66cgG_title"
|
|
3641
3642
|
};
|
|
3642
3643
|
//#endregion
|
|
3643
3644
|
//#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-D-RmpxN3.mjs";
|
|
2
2
|
import { $ as withContextWindowOverride, A as pickDailyWelfareCampaign, B as FALLBACK_CODEARTS_MODELS, C as isTpmLimit, D as maxTokensCeilingFor, E as learnedContextWindowFor, F as setMaxTokenOverrides, G as forgetModelUnavailable, H as clearBenefitBlocked, I as signedGet, J as markModelUnavailable, K as isBenefitBlocked, L as upstreamErrorMessage, M as queueFrame, N as rateLimitFrame, O as modelUnavailableReasonText, P as setMaxTokenOverride, S as isQueueableRate, T as learnContextWindow, U as creditRatioLabel, W as filterEnabledModels, Z as modelUnavailableReason, _ as isModelNotAccessible, a as claimDailyWelfare, b as isQueueReject, c as degradeTokenCeiling, d as fetchQueueStatus, et as withMaxTokensOverride, f as fetchWelfareCampaigns, g as isIamTokenError, h as isContextOverflowText, i as chatStream, j as prepareChatBody, k as overrideValueFor, l as fetchCallerIdentity, m as isConcurrencyCap, n as SNAP_HOST, o as clearQueueStatus, p as firstFrameError, q as isBenefitModel, r as canonicalModel, s as contextWindowOverrideFor, t as MAX_TOKENS_FLOOR, u as fetchModels, v as isNotMultimodal, w as isWelfareClaimedStatus, x as isQueueRejectText, y as isParamInvalidFrame, z as CodeArtsCatalog } from "./upstream-DeRNnZdN.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-BnCFPeBL.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.13";
|
|
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.13",
|
|
6
6
|
"packageManager": "pnpm@11.24.0",
|
|
7
7
|
"author": "elegant01",
|
|
8
8
|
"keywords": [
|