@kenz1117/dsh-ui-usage-billing 1.8.3 → 1.8.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/README.en.md +6 -6
- package/README.md +12 -8
- package/lib/client.js +3 -3
- package/lib/index.js +315 -59
- package/lib/types/aggregate.d.ts +18 -1
- package/lib/types/builtin-catalog.d.ts +5 -0
- package/lib/types/client/TaskQueuePanel.d.ts +5 -1
- package/lib/types/client/api/task-queue.d.ts +4 -0
- package/lib/types/client/api/usage-stats.d.ts +16 -2
- package/lib/types/client/domain/types.d.ts +18 -0
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/client/pricing.d.ts +14 -1
- package/lib/types/client/usage-billing-settings.d.ts +9 -0
- package/lib/types/pricing-shared.d.ts +6 -0
- package/lib/types/task-queue-shared.d.ts +11 -0
- package/lib/types/task-queue.d.ts +40 -3
- package/package.json +62 -59
|
@@ -6,6 +6,10 @@ interface TaskQueuePanelProps {
|
|
|
6
6
|
readonly t: (key: UsageBillingKey, params?: Record<string, unknown>) => string;
|
|
7
7
|
readonly language: BillingLanguage;
|
|
8
8
|
readonly navigateToSession: (sessionId: string) => 'opened' | 'unavailable' | 'failed';
|
|
9
|
+
/** 会话标题(issue #118):卡片显示「将在会话 X 继续」;取不到就显示 id 短码。 */
|
|
10
|
+
readonly sessionTitleOf?: (sessionId: string) => string | undefined;
|
|
11
|
+
/** 「在来源会话继续」开关当前状态:决定安全提示文案。 */
|
|
12
|
+
readonly reuseSourceSession?: boolean;
|
|
9
13
|
}
|
|
10
14
|
interface ImportDefaults {
|
|
11
15
|
readonly cwd: string;
|
|
@@ -14,6 +18,6 @@ interface ImportDefaults {
|
|
|
14
18
|
}
|
|
15
19
|
/** Normalize only the transport shape; authoritative validation stays atomic on the server. */
|
|
16
20
|
export declare function parseTaskQueueImport(text: string, defaults: ImportDefaults): TaskQueueInput[];
|
|
17
|
-
export declare function TaskQueuePanel({ t, language, navigateToSession }: TaskQueuePanelProps): React.ReactNode;
|
|
21
|
+
export declare function TaskQueuePanel({ t, language, navigateToSession, sessionTitleOf, reuseSourceSession }: TaskQueuePanelProps): React.ReactNode;
|
|
18
22
|
export {};
|
|
19
23
|
//# sourceMappingURL=TaskQueuePanel.d.ts.map
|
|
@@ -8,6 +8,10 @@ export type TaskQueueAction = {
|
|
|
8
8
|
cwd: string;
|
|
9
9
|
provider: string;
|
|
10
10
|
model: string;
|
|
11
|
+
/** 来源会话(issue #118):入队时所在的会话。 */
|
|
12
|
+
sourceSessionId?: string;
|
|
13
|
+
/** 是否授权在该来源会话内续跑(入队时冻结的开关状态)。 */
|
|
14
|
+
reuseSource?: boolean;
|
|
11
15
|
} | {
|
|
12
16
|
action: 'enqueueMany';
|
|
13
17
|
tasks: readonly TaskQueueInput[];
|
|
@@ -2,10 +2,24 @@
|
|
|
2
2
|
* GET /api/billing/usage-stats:服务端聚合文档(含 byDay/byModel/bySession/...)。
|
|
3
3
|
* 旧快照可能缺字段(聚合升级前落盘),解析时按字段白名单接受并兜底——避免
|
|
4
4
|
* 渲染路径读 undefined 抛错导致整个插件 surface 被卸载。
|
|
5
|
+
*
|
|
6
|
+
* 取数失败不再吞成空文档(issue #119):此前任何失败(非 2xx / 非 JSON /
|
|
7
|
+
* 超时)都返回 null,面板于是把「没取到」渲染成「用量是 0」——用户看到一片
|
|
8
|
+
* ¥0 却无从判断是没用还是没读到。现在失败带着原因(服务端错误文案 / HTTP
|
|
9
|
+
* 状态 / 异常信息)返回,由界面显示成错误态。
|
|
5
10
|
*/
|
|
6
11
|
import type { UsageStats } from '../domain/types.ts';
|
|
7
12
|
/** Path to the usage-stats endpoint served by this plugin's node half. */
|
|
8
13
|
export declare const USAGE_STATS_PATH = "/api/billing/usage-stats";
|
|
9
|
-
/**
|
|
10
|
-
export
|
|
14
|
+
/** 取数结果:成功带文档;失败带可展示的原因。 */
|
|
15
|
+
export type UsageStatsLoad = {
|
|
16
|
+
ok: true;
|
|
17
|
+
stats: UsageStats;
|
|
18
|
+
} | {
|
|
19
|
+
ok: false;
|
|
20
|
+
reason: string;
|
|
21
|
+
status?: number;
|
|
22
|
+
};
|
|
23
|
+
/** 取统计文档;失败时带原因(不再静默返回 null)。 */
|
|
24
|
+
export declare function loadUsageStats(): Promise<UsageStatsLoad>;
|
|
11
25
|
//# sourceMappingURL=usage-stats.d.ts.map
|
|
@@ -158,6 +158,11 @@ export interface UsageBillingInjected {
|
|
|
158
158
|
* 返回 'opened' 已跳转 / 'unavailable' 宿主无通道(老到没有)/ 'failed' 通道报错。
|
|
159
159
|
*/
|
|
160
160
|
navigateToSession: (sessionId: string) => 'opened' | 'unavailable' | 'failed';
|
|
161
|
+
/**
|
|
162
|
+
* 会话标题(issue #118):队列卡片显示「将在会话 X 继续」时用。取不到时返回
|
|
163
|
+
* undefined,界面退化为会话 id 短码——不编造标题。
|
|
164
|
+
*/
|
|
165
|
+
sessionTitleOf: (sessionId: string) => string | undefined;
|
|
161
166
|
}
|
|
162
167
|
/** Usage stats structure from `.dsh-usage-stats.json`. */
|
|
163
168
|
export interface UsageStats {
|
|
@@ -169,6 +174,11 @@ export interface UsageStats {
|
|
|
169
174
|
* 避免把旧值(如重命名前的会话标题)当成最新值读。
|
|
170
175
|
*/
|
|
171
176
|
staleSnapshot?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* 会话列表整体读不到时的降级原因(issue #119):本档数字全部出自持久账本
|
|
179
|
+
* (可能是空)。面板据此显示「读取失败」,而不是把空账本当成「没有用量」。
|
|
180
|
+
*/
|
|
181
|
+
sessionListError?: string;
|
|
172
182
|
/** 宿主进程时区(IANA 名 + UTC 偏移):天按此切分,副标题据此标注;旧快照可能缺失。 */
|
|
173
183
|
timezone?: {
|
|
174
184
|
name: string;
|
|
@@ -200,6 +210,8 @@ export interface UsageStats {
|
|
|
200
210
|
output: number;
|
|
201
211
|
cacheHit: number;
|
|
202
212
|
cacheMiss: number;
|
|
213
|
+
/** 显式缓存写入(cacheMiss 子集,部分厂商单独报告);issue #123 起按其单价计价。 */
|
|
214
|
+
cacheWrite?: number;
|
|
203
215
|
cost: number;
|
|
204
216
|
reasoning: number;
|
|
205
217
|
/** Billed through a subscription plan (no per-token cost). */
|
|
@@ -215,6 +227,8 @@ export interface UsageStats {
|
|
|
215
227
|
output: number;
|
|
216
228
|
cacheHit: number;
|
|
217
229
|
cacheMiss: number;
|
|
230
|
+
/** 显式缓存写入(cacheMiss 子集);issue #123 起按其单价计价。 */
|
|
231
|
+
cacheWrite?: number;
|
|
218
232
|
cost: number;
|
|
219
233
|
reasoning: number;
|
|
220
234
|
}>;
|
|
@@ -225,6 +239,8 @@ export interface UsageStats {
|
|
|
225
239
|
output: number;
|
|
226
240
|
cacheHit: number;
|
|
227
241
|
cacheMiss: number;
|
|
242
|
+
/** 显式缓存写入(cacheMiss 子集);issue #123 起按其单价计价。 */
|
|
243
|
+
cacheWrite?: number;
|
|
228
244
|
cost: number;
|
|
229
245
|
}>>;
|
|
230
246
|
/** 模型 × 日期 × 站点 三维统计([date][modelKey][siteKey]):按 origin 绑定自定义价的
|
|
@@ -235,6 +251,8 @@ export interface UsageStats {
|
|
|
235
251
|
output: number;
|
|
236
252
|
cacheHit: number;
|
|
237
253
|
cacheMiss: number;
|
|
254
|
+
/** 显式缓存写入(cacheMiss 子集);issue #123 起按其单价计价。 */
|
|
255
|
+
cacheWrite?: number;
|
|
238
256
|
cost: number;
|
|
239
257
|
/** 该格全部调用都走订阅通道(聚合侧按三维格置位);旧快照缺失,回退全局口径。 */
|
|
240
258
|
plan?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Locale dictionaries for the usage billing surface. */
|
|
2
|
-
export type UsageBillingKey = 'title' | 'cost' | 'todayCost' | 'monthCost' | 'yearCost' | 'monthProjected' | 'monthProjectedHint' | 'liveTurn' | 'liveSession' | 'liveSessionSub' | 'calls' | 'cacheHitRate' | 'tokens' | 'inputTokens' | 'outputTokens' | 'avgCost' | 'kpiRange' | 'avgRangeToday' | 'avgRange7d' | 'avgRangeWeek' | 'avgRangeMonth' | 'avgRangeAll' | 'avgRangeCustom' | 'customRangeStart' | 'customRangeEnd' | 'trend' | 'trend7d' | 'trend30d' | 'trendMetric' | 'trendMetricCost' | 'trendMetricTokens' | 'pricingSearch' | 'bandPinHint' | 'trendEmpty' | 'trendTotal' | 'roundsUnit' | 'healthModelsLive' | 'healthVendorsDown' | 'healthVendorsUnavailable' | 'budget' | 'budgetRemain' | 'budgetAmount' | 'budgetSummary' | 'sessions' | 'sessionTitle' | 'lastActive' | 'sessionOverflow' | 'budgetTierBody' | 'models' | 'providerBilling' | 'channelUnknown' | 'directTag' | 'relayTag' | 'unknownTag' | 'unknownChannelHint' | 'planCountUnit' | 'actual' | 'pricing' | 'input' | 'output' | 'cacheHit' | 'peak' | 'offPeak' | 'flat' | 'band' | 'close' | 'footer' | 'footerCredit' | 'lastUpdated' | 'noData' | 'todayRate' | 'rateLive' | 'rateBuiltin' | 'pricingSyncedAt' | 'pricingSyncNow' | 'pricingSyncing' | 'promoBadge' | 'promoUntil' | 'promoOpenEnded' | 'pricingTip' | 'pricingUnit' | 'pricingNotes' | 'ubPeak' | 'ubOff' | 'ubStd' | 'peakBand' | 'pricingSource' | 'noteCache' | 'noteBand' | 'noteSource' | 'balance' | 'recharge' | 'rechargeHint' | 'balanceUnconfigured' | 'balanceUnauthorized' | 'balanceUnreachable' | 'uncatalogued' | 'estimatedPricing' | 'balanceDays' | 'balanceLowBody' | 'reconcileDrift' | 'reconcileDismiss' | 'subscriptionNotConfigured' | 'subscriptionUnauthorized' | 'subscriptionUnavailable' | 'subscriptionInvalid' | 'subscriptionRateLimited' | 'subscriptionSession' | 'subscriptionWeekly' | 'subscriptionMonthly' | 'subscriptionBilling' | 'subscriptionRemaining' | 'subscriptionExhausted' | 'subscriptionReset' | 'subscriptionNoApi' | 'floatWindow' | 'floatModeCombined' | 'floatModeSubscription' | 'floatMode' | 'floatTargets' | 'floatWindowHint' | 'floatPrimaryToday' | 'floatPrimaryWeek' | 'floatPrimaryMonth' | 'floatNoTargets' | 'floatNoTargetsHint' | 'cardDisplay' | 'cardDisplayHint' | 'cardMode' | 'cardModeFull' | 'cardModeCompact' | 'cardModeHidden' | 'cardModeHiddenHint' | 'cardModeFallback' | 'nativeSettingsNav' | 'nativeSettingsIntro' | 'nativeSettingsHiddenHint' | 'cardMetric' | 'cardMetricMoney' | 'cardMetricTokens' | 'cardSpan' | 'cardSpanDay' | 'cardSpanWeek' | 'cardSpanMonth' | 'cardDeltaBadge' | 'cardDeltaShow' | 'cardDeltaHide' | 'triggerMonthTokens' | 'triggerTodayTokens' | 'triggerWeekTokens' | 'subscriptionsStale' | 'balanceStaleNotice' | 'staleLedgerNotice' | 'staleSnapshotNotice' | 'unreadableNotice' | 'unreadableFormatNotice' | 'unreadableNoLedgerNotice' | 'tokenCacheWrite' | 'toolRank' | 'toolName' | 'userPrices' | 'userPricesHint' | 'userPriceSave' | 'userPriceModel' | 'userPriceSource' | 'userPriceSourceHint' | 'userPriceOffPeak' | 'userPriceNormal' | 'userPriceCurrency' | 'userPriceAdd' | 'userPriceRemoveSelected' | 'userPriceSelect' | 'sessionStaleBadge' | 'sessionUntitled' | 'sessionSubCost' | 'sessionSubCalls' | 'sessionSubRow' | 'heatmapLess' | 'heatmapMore' | 'currency' | 'currencyCny' | 'currencyUsd' | 'currencyEur' | 'language' | 'heatmap' | 'rounds' | 'roundsHint' | 'anomaly' | 'model' | 'thModel' | 'thInputMiss' | 'thInputHit' | 'costAbbr' | 'tabOverview' | 'tabTrends' | 'tabProviders' | 'tabPricing' | 'tabSettings' | 'budgetHint' | 'peakAlertHint' | 'peakAlertDescPeak' | 'peakAlertDescOff' | 'peakAlertDescPeakZhipu' | 'peakAlertDescOffZhipu' | 'peakAlertQueuePeak' | 'peakAlertQueueOff' | 'export' | 'exportCsvDay' | 'exportCsvSession' | 'exportJson' | 'peakShare' | 'peakSharePerCall' | 'offPeakSavings' | 'perfMax' | 'weekCost' | 'roleCost' | 'roleUser' | 'roleAssistant' | 'roleTool' | 'roleHint' | 'tierPeak' | 'tierOff' | 'tierToPeak' | 'tierToOff' | 'tierAlertEnterPeak' | 'tierAlertEnterOff' | 'tierAlertEnterPeakZhipu' | 'tierAlertEnterOffZhipu' | 'peakAlertTitlePeak' | 'peakAlertTitleOff' | 'peakAlert' | 'peakAlertLeadMin' | 'peakAlertPos' | 'peakAlertMode' | 'peakAlertPosCorner' | 'peakAlertPosCenter' | 'peakAlertModePeak' | 'peakAlertModeOff' | 'peakAlertModeBoth' | 'peakAlertWebNotify' | 'peakAlertPreview' | 'planTypeCode' | 'planTypeToken' | 'subscriptionFeePerMonth' | 'triggerToday' | 'triggerMonth' | 'subscriptionTag' | 'cellEstimateHint' | 'free' | 'perfSamples' | 'perfTtft' | 'perfP50' | 'perfP90' | 'perfTps' | 'perfLatency' | 'perfEstimated' | 'perfEmpty' | 'perfTpsUnit' | 'perfTitle' | 'perfHint' | 'perfAll' | 'perfChartEmpty' | 'heatmapYear' | 'heatmapHalf' | 'heatmapMonth' | 'metricCost' | 'metricTokens' | 'heatmapTotal' | 'activeDays' | 'streakDays' | 'subscriptionAutoDetect' | 'pluginAuthor' | 'pluginRepository' | 'pluginNpm' | 'pluginLicense' | 'tabToken' | 'tokenExport' | 'tokenExportCsv' | 'tokenReasoningShare' | 'tokenReasoningShort' | 'tokenIo' | 'tokenPeak' | 'densityLabel' | 'densityHint' | 'densityCompact' | 'densityDefault' | 'densityComfortable' | 'motionLabel' | 'motionHint' | 'motionOff' | 'motionSubtle' | 'motionRich' | 'settingsNavDisplayPref' | 'settingsNavBudget' | 'settingsNavAlert' | 'settingsNavDisplay' | 'settingsNavAdvanced' | 'settingsNavAbout' | 'settingsSearchPlaceholder' | 'settingsSearchEmpty' | 'sessionsViewAll' | 'sessionViewerSearch' | 'modelBudgetTitle' | 'modelBudgetHint' | 'modelBudgetBody' | 'modelBudgetPlaceholder' | 'moreWorksTitle' | 'adEngramName' | 'adEngramDesc' | 'adRainbowName' | 'adRainbowDesc' | 'kpiDescCacheHit' | 'kpiDescTokens' | 'kpiDescAvgCost' | 'kpiDescCalls' | 'kpiDescReasoning' | 'kpiDescIo' | 'kpiDescPeak' | 'healthDotLive' | 'healthDotFailed' | 'healthDotUnknown' | 'settingsSectionDisplay' | 'emptyHint' | 'tokenDaily' | 'tokenByModel' | 'tokenMiss' | 'tokenHit' | 'tokenOutput' | 'tokenViewStructure' | 'tokenViewModel' | 'tokenHitShort' | 'tokenMissShort' | 'tokenTotal' | 'tokenShare' | 'usageStatsTool' | 'usageStatsToolHint' | 'balanceGranted' | 'balanceTopped' | 'balanceDaily' | 'balanceDaysLong' | 'balanceDaysUnit' | 'popTodayModel' | 'popNoConsumption' | 'popTitle' | 'popDirectLead' | 'popSubLead' | 'unpricedHint' | 'searchEstimateHint' | 'siteListDisplay' | 'siteListDisplayHint' | 'liveCostBar' | 'liveCostBarHint' | 'liveCostBarPosition' | 'liveCostBarPosBelow' | 'liveCostBarPosAbove' | 'liveCostBarPosToolbar' | 'exportCsvSite' | 'panelRelayQuota' | 'relayBalance' | 'relayNoQuota' | 'relayWindowUsed' | 'relayKindNewApi' | 'relayKindSub2Api' | 'relayKindUnknown' | 'expandAll' | 'collapseAll' | 'todayOnly' | 'todayNoConsumption' | 'commandUsageLabel' | 'commandUsageDescription' | 'sessionOpen' | 'sessionOpenFailed' | 'sessionOpenUnavailable' | 'tabAgents' | 'tabQueue' | 'queueSubtitle' | 'queueUntilPeak' | 'queueUntilOffPeak' | 'queueUnsupportedTitle' | 'queueUnsupportedBody' | 'queueSafety' | 'queueWorkspace' | 'queueModel' | 'queueNoOptions' | 'queuePromptLabel' | 'queuePromptPlaceholder' | 'queuePrivacy' | 'queueEnqueue' | 'queueImport' | 'queueImportHint' | 'queueImported' | 'queueImportFormat' | 'queueImportTooLarge' | 'queueActive' | 'queueClearFinished' | 'queueEmpty' | 'queueLoading' | 'queueOpenSession' | 'queueRemoveQueued' | 'queueRemoveHistory' | 'queueStatusQueued' | 'queueStatusStarting' | 'queueStatusRunning' | 'queueStatusCompleted' | 'queueStatusFailed' | 'quickQueueToggle' | 'quickQueueEntry' | 'quickQueueEntryHint' | 'quickQueueEnqueue' | 'quickQueueEnqueueing' | 'quickQueueWaiting' | 'quickQueueClear' | 'quickQueueEnqueued' | 'quickQueueEmpty' | 'quickQueueBusy' | 'quickQueueAttachments' | 'quickQueueContext' | 'quickQueueRoute' | 'quickQueueDraftChanged' | 'quickQueueUnsupported' | 'quickQueueFailed' | 'agentsSummary' | 'agentsCount' | 'agentsDelegations' | 'agentsRoots' | 'agentsMostExpensive' | 'agentsChainTotal' | 'agentsNoData' | 'agentsSubagent' | 'agentsRoot';
|
|
2
|
+
export type UsageBillingKey = 'title' | 'cost' | 'todayCost' | 'monthCost' | 'yearCost' | 'monthProjected' | 'monthProjectedHint' | 'liveTurn' | 'liveSession' | 'liveSessionSub' | 'calls' | 'cacheHitRate' | 'tokens' | 'inputTokens' | 'outputTokens' | 'avgCost' | 'kpiRange' | 'avgRangeToday' | 'avgRange7d' | 'avgRangeWeek' | 'avgRangeMonth' | 'avgRangeAll' | 'avgRangeCustom' | 'customRangeStart' | 'customRangeEnd' | 'trend' | 'trend7d' | 'trend30d' | 'trendMetric' | 'trendMetricCost' | 'trendMetricTokens' | 'pricingSearch' | 'bandPinHint' | 'trendEmpty' | 'trendTotal' | 'roundsUnit' | 'healthModelsLive' | 'healthVendorsDown' | 'healthVendorsUnavailable' | 'budget' | 'budgetRemain' | 'budgetAmount' | 'budgetSummary' | 'sessions' | 'sessionTitle' | 'lastActive' | 'sessionOverflow' | 'budgetTierBody' | 'models' | 'providerBilling' | 'channelUnknown' | 'directTag' | 'relayTag' | 'unknownTag' | 'unknownChannelHint' | 'planCountUnit' | 'actual' | 'pricing' | 'input' | 'output' | 'cacheHit' | 'peak' | 'offPeak' | 'flat' | 'band' | 'close' | 'footer' | 'footerCredit' | 'lastUpdated' | 'noData' | 'todayRate' | 'rateLive' | 'rateBuiltin' | 'pricingSyncedAt' | 'pricingSyncNow' | 'pricingSyncing' | 'promoBadge' | 'promoUntil' | 'promoOpenEnded' | 'pricingTip' | 'pricingUnit' | 'pricingNotes' | 'ubPeak' | 'ubOff' | 'ubStd' | 'peakBand' | 'pricingSource' | 'noteCache' | 'noteBand' | 'noteSource' | 'balance' | 'recharge' | 'rechargeHint' | 'balanceUnconfigured' | 'balanceUnauthorized' | 'balanceUnreachable' | 'uncatalogued' | 'estimatedPricing' | 'balanceDays' | 'balanceLowBody' | 'reconcileDrift' | 'reconcileDismiss' | 'subscriptionNotConfigured' | 'subscriptionUnauthorized' | 'subscriptionUnavailable' | 'subscriptionInvalid' | 'subscriptionRateLimited' | 'subscriptionSession' | 'subscriptionWeekly' | 'subscriptionMonthly' | 'subscriptionBilling' | 'subscriptionRemaining' | 'subscriptionExhausted' | 'subscriptionReset' | 'subscriptionNoApi' | 'floatWindow' | 'floatModeCombined' | 'floatModeSubscription' | 'floatMode' | 'floatTargets' | 'floatWindowHint' | 'floatPrimaryToday' | 'floatPrimaryWeek' | 'floatPrimaryMonth' | 'floatNoTargets' | 'floatNoTargetsHint' | 'cardDisplay' | 'cardDisplayHint' | 'cardMode' | 'cardModeFull' | 'cardModeCompact' | 'cardModeHidden' | 'cardModeHiddenHint' | 'cardModeFallback' | 'nativeSettingsNav' | 'nativeSettingsIntro' | 'nativeSettingsHiddenHint' | 'cardMetric' | 'cardMetricMoney' | 'cardMetricTokens' | 'cardSpan' | 'cardSpanDay' | 'cardSpanWeek' | 'cardSpanMonth' | 'cardDeltaBadge' | 'cardDeltaShow' | 'cardDeltaHide' | 'triggerMonthTokens' | 'triggerTodayTokens' | 'triggerWeekTokens' | 'subscriptionsStale' | 'balanceStaleNotice' | 'staleLedgerNotice' | 'staleSnapshotNotice' | 'statsLoadFailed' | 'unreadableNotice' | 'unreadableFormatNotice' | 'unreadableNoLedgerNotice' | 'tokenCacheWrite' | 'toolRank' | 'toolName' | 'userPrices' | 'userPricesHint' | 'userPriceSave' | 'userPriceModel' | 'userPriceSource' | 'userPriceSourceHint' | 'userPriceOffPeak' | 'userPriceNormal' | 'userPriceCurrency' | 'userPriceAdd' | 'userPriceRemoveSelected' | 'userPriceSelect' | 'sessionStaleBadge' | 'sessionUntitled' | 'sessionSubCost' | 'sessionSubCalls' | 'sessionSubRow' | 'heatmapLess' | 'heatmapMore' | 'currency' | 'currencyCny' | 'currencyUsd' | 'currencyEur' | 'language' | 'heatmap' | 'rounds' | 'roundsHint' | 'anomaly' | 'model' | 'thModel' | 'thInputMiss' | 'thInputHit' | 'costAbbr' | 'tabOverview' | 'tabTrends' | 'tabProviders' | 'tabPricing' | 'tabSettings' | 'budgetHint' | 'peakAlertHint' | 'peakAlertDescPeak' | 'peakAlertDescOff' | 'peakAlertDescPeakZhipu' | 'peakAlertDescOffZhipu' | 'peakAlertQueuePeak' | 'peakAlertQueueOff' | 'export' | 'exportCsvDay' | 'exportCsvSession' | 'exportJson' | 'peakShare' | 'peakSharePerCall' | 'offPeakSavings' | 'perfMax' | 'weekCost' | 'roleCost' | 'roleUser' | 'roleAssistant' | 'roleTool' | 'roleHint' | 'tierPeak' | 'tierOff' | 'tierToPeak' | 'tierToOff' | 'tierAlertEnterPeak' | 'tierAlertEnterOff' | 'tierAlertEnterPeakZhipu' | 'tierAlertEnterOffZhipu' | 'peakAlertTitlePeak' | 'peakAlertTitleOff' | 'peakAlert' | 'peakAlertLeadMin' | 'peakAlertPos' | 'peakAlertMode' | 'peakAlertPosCorner' | 'peakAlertPosCenter' | 'peakAlertModePeak' | 'peakAlertModeOff' | 'peakAlertModeBoth' | 'peakAlertWebNotify' | 'peakAlertPreview' | 'planTypeCode' | 'planTypeToken' | 'subscriptionFeePerMonth' | 'triggerToday' | 'triggerMonth' | 'subscriptionTag' | 'cellEstimateHint' | 'free' | 'perfSamples' | 'perfTtft' | 'perfP50' | 'perfP90' | 'perfTps' | 'perfLatency' | 'perfEstimated' | 'perfEmpty' | 'perfTpsUnit' | 'perfTitle' | 'perfHint' | 'perfAll' | 'perfChartEmpty' | 'heatmapYear' | 'heatmapHalf' | 'heatmapMonth' | 'metricCost' | 'metricTokens' | 'heatmapTotal' | 'activeDays' | 'streakDays' | 'subscriptionAutoDetect' | 'pluginAuthor' | 'pluginRepository' | 'pluginNpm' | 'pluginLicense' | 'tabToken' | 'tokenExport' | 'tokenExportCsv' | 'tokenReasoningShare' | 'tokenReasoningShort' | 'tokenIo' | 'tokenPeak' | 'densityLabel' | 'densityHint' | 'densityCompact' | 'densityDefault' | 'densityComfortable' | 'motionLabel' | 'motionHint' | 'motionOff' | 'motionSubtle' | 'motionRich' | 'settingsNavDisplayPref' | 'settingsNavBudget' | 'settingsNavAlert' | 'settingsNavDisplay' | 'settingsNavAdvanced' | 'settingsNavAbout' | 'settingsSearchPlaceholder' | 'settingsSearchEmpty' | 'sessionsViewAll' | 'sessionViewerSearch' | 'modelBudgetTitle' | 'modelBudgetHint' | 'modelBudgetBody' | 'modelBudgetPlaceholder' | 'moreWorksTitle' | 'adEngramName' | 'adEngramDesc' | 'adRainbowName' | 'adRainbowDesc' | 'kpiDescCacheHit' | 'kpiDescTokens' | 'kpiDescAvgCost' | 'kpiDescCalls' | 'kpiDescReasoning' | 'kpiDescIo' | 'kpiDescPeak' | 'healthDotLive' | 'healthDotFailed' | 'healthDotUnknown' | 'settingsSectionDisplay' | 'emptyHint' | 'tokenDaily' | 'tokenByModel' | 'tokenMiss' | 'tokenHit' | 'tokenOutput' | 'tokenViewStructure' | 'tokenViewModel' | 'tokenHitShort' | 'tokenMissShort' | 'tokenTotal' | 'tokenShare' | 'usageStatsTool' | 'usageStatsToolHint' | 'balanceGranted' | 'balanceTopped' | 'balanceDaily' | 'balanceDaysLong' | 'balanceDaysUnit' | 'popTodayModel' | 'popNoConsumption' | 'popTitle' | 'popDirectLead' | 'popSubLead' | 'unpricedHint' | 'searchEstimateHint' | 'siteListDisplay' | 'siteListDisplayHint' | 'liveCostBar' | 'liveCostBarHint' | 'liveCostBarPosition' | 'liveCostBarPosBelow' | 'liveCostBarPosAbove' | 'liveCostBarPosToolbar' | 'exportCsvSite' | 'panelRelayQuota' | 'relayBalance' | 'relayNoQuota' | 'relayWindowUsed' | 'relayKindNewApi' | 'relayKindSub2Api' | 'relayKindUnknown' | 'expandAll' | 'collapseAll' | 'todayOnly' | 'todayNoConsumption' | 'commandUsageLabel' | 'commandUsageDescription' | 'sessionOpen' | 'sessionOpenFailed' | 'sessionOpenUnavailable' | 'tabAgents' | 'tabQueue' | 'queueSubtitle' | 'queueUntilPeak' | 'queueUntilOffPeak' | 'queueUnsupportedTitle' | 'queueUnsupportedBody' | 'queueSafety' | 'queueSafetyIsolated' | 'queueSafetyReuse' | 'queueReusePlanned' | 'queueReuseDone' | 'queueFallbackReason' | 'queueReuseModelNote' | 'queueWorkspace' | 'queueModel' | 'queueNoOptions' | 'queuePromptLabel' | 'queuePromptPlaceholder' | 'queuePrivacy' | 'queueEnqueue' | 'queueImport' | 'queueImportHint' | 'queueImported' | 'queueImportFormat' | 'queueImportTooLarge' | 'queueActive' | 'queueClearFinished' | 'queueEmpty' | 'queueLoading' | 'queueOpenSession' | 'queueRemoveQueued' | 'queueRemoveHistory' | 'queueStatusQueued' | 'queueStatusStarting' | 'queueStatusRunning' | 'queueStatusCompleted' | 'queueStatusFailed' | 'quickQueueToggle' | 'quickQueueEntry' | 'quickQueueEntryHint' | 'quickQueueReuseEntry' | 'quickQueueReuseEntryHint' | 'quickQueueEnqueue' | 'quickQueueEnqueueing' | 'quickQueueWaiting' | 'quickQueueClear' | 'quickQueueEnqueued' | 'quickQueueEmpty' | 'quickQueueBusy' | 'quickQueueAttachments' | 'quickQueueContext' | 'quickQueueRoute' | 'quickQueueDraftChanged' | 'quickQueueUnsupported' | 'quickQueueFailed' | 'agentsSummary' | 'agentsCount' | 'agentsDelegations' | 'agentsRoots' | 'agentsMostExpensive' | 'agentsChainTotal' | 'agentsNoData' | 'agentsSubagent' | 'agentsRoot';
|
|
3
3
|
export declare const NS = "usageBilling";
|
|
4
4
|
export declare const zh: Record<UsageBillingKey, string>;
|
|
5
5
|
export declare const en: Record<UsageBillingKey, string>;
|
|
@@ -252,6 +252,12 @@ export interface TokenUsageBuckets {
|
|
|
252
252
|
cacheHit: number;
|
|
253
253
|
/** Cache-miss input tokens (already included in `input` by some providers). */
|
|
254
254
|
cacheMiss: number;
|
|
255
|
+
/**
|
|
256
|
+
* 显式缓存写入 token(issue #123):**已包含在 `cacheMiss` 内**的子集——
|
|
257
|
+
* 厂商对「写入缓存」单独计价时(OpenAI/Anthropic 恒为输入价 125%),
|
|
258
|
+
* 这部分按缓存写入价计,不再按普通输入价。
|
|
259
|
+
*/
|
|
260
|
+
cacheWrite?: number;
|
|
255
261
|
/** Output tokens. */
|
|
256
262
|
output: number;
|
|
257
263
|
}
|
|
@@ -263,6 +269,13 @@ export interface PriceBand {
|
|
|
263
269
|
cacheHit: number;
|
|
264
270
|
/** Cache-miss input price per 1M tokens (absent when folded into `input`). */
|
|
265
271
|
cacheMiss?: number;
|
|
272
|
+
/**
|
|
273
|
+
* 缓存写入单价(每百万 token,issue #123):厂商对「把内容写入缓存」单独
|
|
274
|
+
* 计价时给出(models.dev 原生 `cache_write`:OpenAI/Anthropic 恒为输入价
|
|
275
|
+
* 125%)。**缺省 = 按 `input` 价计**——厂商不单列缓存写入费时(如 DeepSeek、
|
|
276
|
+
* 月之暗面)缓存写入本就按输入价出账,与旧口径一致。
|
|
277
|
+
*/
|
|
278
|
+
cacheWrite?: number;
|
|
266
279
|
/** Output price per 1M tokens. */
|
|
267
280
|
output: number;
|
|
268
281
|
}
|
|
@@ -293,7 +306,7 @@ export interface PricePromo {
|
|
|
293
306
|
* 缓存 0.8 / 输入 0.8 / 输出 2/3)。缺省档位沿用 {@link factor};单档取值
|
|
294
307
|
* 仅 [0,1) 区间有效(0 = 该档活动期免费),非法值回落 factor。
|
|
295
308
|
*/
|
|
296
|
-
factors?: Partial<Record<'input' | 'cacheHit' | 'cacheMiss' | 'output', number>>;
|
|
309
|
+
factors?: Partial<Record<'input' | 'cacheHit' | 'cacheMiss' | 'cacheWrite' | 'output', number>>;
|
|
297
310
|
/**
|
|
298
311
|
* 截止时刻(epoch ms):该时刻及之后恢复刊例价。缺省表示厂商未公布截止日
|
|
299
312
|
* 的长期活动(如「限时 5 折直至另行通知」),持续生效直至收到公告后补填。
|
|
@@ -279,6 +279,15 @@ export interface QuickQueuePrefs {
|
|
|
279
279
|
* touched the setting.
|
|
280
280
|
*/
|
|
281
281
|
showEntry: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Run a queued task inside the Session it was queued from (issue #118).
|
|
284
|
+
*
|
|
285
|
+
* Off keeps every task in its own Session. On prefers continuing in the
|
|
286
|
+
* source Session — same context, same workspace grouping — and falls back to
|
|
287
|
+
* a new Session when the source is gone, busy or archived. Default off: the
|
|
288
|
+
* isolated-Session design is the safe default.
|
|
289
|
+
*/
|
|
290
|
+
reuseSourceSession: boolean;
|
|
282
291
|
}
|
|
283
292
|
export declare const DEFAULT_QUICK_QUEUE_PREFS: QuickQueuePrefs;
|
|
284
293
|
export declare const QUICK_QUEUE_STORAGE_KEY = "dsh.ui-usage-billing.quick-queue";
|
|
@@ -12,6 +12,12 @@ export interface LivePrice {
|
|
|
12
12
|
cacheHit: number;
|
|
13
13
|
/** Output price per 1M tokens. */
|
|
14
14
|
output: number;
|
|
15
|
+
/**
|
|
16
|
+
* 缓存写入单价(每百万 token,issue #123):厂商对「写入缓存」单独计价时给出
|
|
17
|
+
* (models.dev 原生 `cache_write`)。**缺省 = 按 `input` 价计**——上游未声明
|
|
18
|
+
* 时不猜(与 `cacheHit` 的声明优先口径一致)。
|
|
19
|
+
*/
|
|
20
|
+
cacheWrite?: number;
|
|
15
21
|
}
|
|
16
22
|
/** Response of `/api/billing/pricing` consumed by the dashboard. */
|
|
17
23
|
export interface LivePricing {
|
|
@@ -6,6 +6,10 @@ export interface TaskQueueInput {
|
|
|
6
6
|
readonly cwd?: unknown;
|
|
7
7
|
readonly provider?: unknown;
|
|
8
8
|
readonly model?: unknown;
|
|
9
|
+
/** 来源会话(issue #118):入队时所在的会话,执行期据此续跑。 */
|
|
10
|
+
readonly sourceSessionId?: unknown;
|
|
11
|
+
/** 入队时是否授权复用来源会话(把设置开关的状态冻结进任务)。 */
|
|
12
|
+
readonly reuseSource?: unknown;
|
|
9
13
|
}
|
|
10
14
|
export interface TaskQueueTask {
|
|
11
15
|
readonly id: string;
|
|
@@ -17,7 +21,14 @@ export interface TaskQueueTask {
|
|
|
17
21
|
readonly createdAt: number;
|
|
18
22
|
readonly startedAt?: number | undefined;
|
|
19
23
|
readonly finishedAt?: number | undefined;
|
|
24
|
+
/** 实际执行任务的会话(复用来源会话时等于 sourceSessionId)。 */
|
|
20
25
|
readonly sessionId?: string | undefined;
|
|
26
|
+
/** 来源会话 id(issue #118):入队时所在的会话。 */
|
|
27
|
+
readonly sourceSessionId?: string | undefined;
|
|
28
|
+
/** 是否授权在该来源会话内续跑(入队时冻结的开关状态)。 */
|
|
29
|
+
readonly reuseSource?: boolean | undefined;
|
|
30
|
+
/** 从「续跑来源会话」降级为「新建会话」的原因(卡片展示)。 */
|
|
31
|
+
readonly fallbackReason?: string | undefined;
|
|
21
32
|
readonly error?: string | undefined;
|
|
22
33
|
}
|
|
23
34
|
export interface TaskQueueWorkspace {
|
|
@@ -9,11 +9,34 @@
|
|
|
9
9
|
import type { SessionController } from '@deepseek-ai/dsh-api-session-controller';
|
|
10
10
|
import type { TaskQueueInput, TaskQueueSnapshot, TaskQueueSummary, TaskQueueWorkspace } from './task-queue-shared.ts';
|
|
11
11
|
export type TaskQueueController = Pick<SessionController, 'create' | 'selectModel' | 'prompt' | 'follow' | 'modelCatalog'>;
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* 会话列表读面(可选能力,issue #118):复用来源会话前用它校验该会话是否仍可用
|
|
14
|
+
* (存在 / 非子智能体 / 空闲 / 项目未变)。**缺席不降级整个队列**——只是复用
|
|
15
|
+
* 路径不可用,任务一律走新建会话。
|
|
16
|
+
*/
|
|
17
|
+
export type TaskQueueSessionLister = Pick<SessionController, 'list'>;
|
|
18
|
+
/** 引擎看到的宿主会话控制面:基本 5 方法必备,list 可选。 */
|
|
19
|
+
export type TaskQueueControllerFace = TaskQueueController & Partial<TaskQueueSessionLister>;
|
|
20
|
+
/**
|
|
21
|
+
* 工作区上下文(可选能力):新建会话归组 + 来源会话归档判定。宿主没有这个服务
|
|
22
|
+
* 时一律降级(不归组、归档不可判),队列其余行为不变。
|
|
23
|
+
*/
|
|
24
|
+
export interface TaskQueueWorkspaceContext {
|
|
25
|
+
/** 已归档的会话 id:归档会话的轮次会以 blocked 结束,不会真的跑。 */
|
|
26
|
+
readonly archivedSessionIds: readonly string[];
|
|
27
|
+
/**
|
|
28
|
+
* 路径 → 工作区 id。**必须严格相等**:宿主的成员资格规则是「account slot +
|
|
29
|
+
* canonical cwd 严格等于工作区 path」,前缀匹配不算数——本仓计费口径里的子目录
|
|
30
|
+
* 前缀匹配只用于账单归组,不能拿来给会话归组。
|
|
31
|
+
*/
|
|
32
|
+
readonly workspaceIdOfPath: (path: string) => string | undefined;
|
|
33
|
+
}
|
|
13
34
|
export interface TaskQueueEngineOptions {
|
|
14
35
|
readonly filePath: string;
|
|
15
|
-
readonly getController: () =>
|
|
36
|
+
readonly getController: () => TaskQueueControllerFace | undefined;
|
|
16
37
|
readonly getWorkspaces: () => readonly TaskQueueWorkspace[];
|
|
38
|
+
/** 工作区上下文(可选):缺席 → 不归组、复用路径不可用。 */
|
|
39
|
+
readonly getWorkspaceContext?: () => TaskQueueWorkspaceContext | undefined;
|
|
17
40
|
readonly now?: () => number;
|
|
18
41
|
readonly createId?: () => string;
|
|
19
42
|
readonly ownerId?: string;
|
|
@@ -50,6 +73,21 @@ export declare class TaskQueueEngine {
|
|
|
50
73
|
private claimNext;
|
|
51
74
|
private recoverExpired;
|
|
52
75
|
private execute;
|
|
76
|
+
/**
|
|
77
|
+
* issue #118:判断来源会话能否续跑。不能就给出降级原因(写进卡片)。
|
|
78
|
+
*
|
|
79
|
+
* 判据来自 issue 的安全边界:来源会话已删除 / 正在跑别的轮次 / 工作区变了时,
|
|
80
|
+
* 回退为新建会话,不要往用户正在使用的会话里硬塞一轮。另外子智能体会话与
|
|
81
|
+
* 归档会话也不能复用——前者归属子智能体路由,后者轮次会以 blocked 结束、
|
|
82
|
+
* 看起来跑了其实没跑。
|
|
83
|
+
*/
|
|
84
|
+
private resolveSourceSession;
|
|
85
|
+
/**
|
|
86
|
+
* 新建会话:cwd 恰好等于某个工作区时用 create({ workspaceId }),让宿主把会话挂进
|
|
87
|
+
* 该工作区——create({ cwd }) 从不归组,这正是队列会话在侧栏里没有分组的原因。
|
|
88
|
+
* 两者互斥:带 workspaceId 时不能再带 cwd。
|
|
89
|
+
*/
|
|
90
|
+
private createGroupedSession;
|
|
53
91
|
private watch;
|
|
54
92
|
private renewLease;
|
|
55
93
|
private requeue;
|
|
@@ -59,5 +97,4 @@ export declare class TaskQueueEngine {
|
|
|
59
97
|
private readDocument;
|
|
60
98
|
private readDocumentWithRaw;
|
|
61
99
|
}
|
|
62
|
-
export {};
|
|
63
100
|
//# sourceMappingURL=task-queue.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenz1117/dsh-ui-usage-billing",
|
|
3
3
|
"description": "Usage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.5",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"deepseek",
|
|
@@ -87,7 +87,9 @@
|
|
|
87
87
|
"0.2.1-rc.5": "compatible",
|
|
88
88
|
"0.2.2-alpha.2": "compatible",
|
|
89
89
|
"0.2.2-alpha.3": "compatible",
|
|
90
|
-
"0.2.2-rc.1": "compatible"
|
|
90
|
+
"0.2.2-rc.1": "compatible",
|
|
91
|
+
"0.2.2-rc.2": "compatible",
|
|
92
|
+
"0.2.2-rc.3": "compatible"
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
},
|
|
@@ -137,66 +139,67 @@
|
|
|
137
139
|
},
|
|
138
140
|
"devDependencies": {
|
|
139
141
|
"@deepseek-ai/cordis": "4.1.0",
|
|
142
|
+
"@deepseek-ai/cordis-plugin-group": "1.1.0",
|
|
140
143
|
"@deepseek-ai/cordis-plugin-include": "1.1.0",
|
|
141
144
|
"@deepseek-ai/cordis-plugin-loader": "1.1.0",
|
|
142
|
-
"@deepseek-ai/
|
|
143
|
-
"@deepseek-ai/dsh-agent": "0.2.2-rc.
|
|
144
|
-
"@deepseek-ai/dsh-agent-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
146
|
-
"@deepseek-ai/dsh-api-
|
|
147
|
-
"@deepseek-ai/dsh-api-
|
|
148
|
-
"@deepseek-ai/dsh-
|
|
149
|
-
"@deepseek-ai/dsh-
|
|
150
|
-
"@deepseek-ai/dsh-
|
|
151
|
-
"@deepseek-ai/dsh-
|
|
152
|
-
"@deepseek-ai/dsh-client-
|
|
153
|
-
"@deepseek-ai/dsh-client-
|
|
154
|
-
"@deepseek-ai/dsh-client-
|
|
155
|
-
"@deepseek-ai/dsh-client-
|
|
156
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.
|
|
157
|
-
"@deepseek-ai/dsh-client-ui-
|
|
158
|
-
"@deepseek-ai/dsh-client-ui-
|
|
159
|
-
"@deepseek-ai/dsh-client-ui-
|
|
160
|
-
"@deepseek-ai/dsh-client-ui-
|
|
161
|
-
"@deepseek-ai/dsh-client-ui-
|
|
162
|
-
"@deepseek-ai/dsh-client-ui-
|
|
163
|
-
"@deepseek-ai/dsh-
|
|
164
|
-
"@deepseek-ai/dsh-
|
|
165
|
-
"@deepseek-ai/dsh-credentials": "0.2.2-rc.
|
|
166
|
-
"@deepseek-ai/dsh-
|
|
167
|
-
"@deepseek-ai/dsh-
|
|
168
|
-
"@deepseek-ai/dsh-
|
|
169
|
-
"@deepseek-ai/dsh-
|
|
145
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.3",
|
|
146
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.3",
|
|
147
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.3",
|
|
148
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.2-rc.3",
|
|
149
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-rc.3",
|
|
150
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.3",
|
|
151
|
+
"@deepseek-ai/dsh-app-boot": "0.2.2-rc.3",
|
|
152
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.2-rc.3",
|
|
153
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.3",
|
|
154
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.3",
|
|
155
|
+
"@deepseek-ai/dsh-client-file-upload": "0.2.2-rc.3",
|
|
156
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.3",
|
|
157
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.3",
|
|
158
|
+
"@deepseek-ai/dsh-client-ui-commands": "0.2.2-rc.3",
|
|
159
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.3",
|
|
160
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.3",
|
|
161
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.3",
|
|
162
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.3",
|
|
163
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.3",
|
|
164
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.3",
|
|
165
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.3",
|
|
166
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.3",
|
|
167
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.3",
|
|
168
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.3",
|
|
169
|
+
"@deepseek-ai/dsh-error": "0.2.2-rc.3",
|
|
170
|
+
"@deepseek-ai/dsh-file-reference": "0.2.2-rc.3",
|
|
171
|
+
"@deepseek-ai/dsh-fs": "0.2.2-rc.3",
|
|
172
|
+
"@deepseek-ai/dsh-home-paths": "0.2.2-rc.3",
|
|
173
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.2-rc.3",
|
|
170
174
|
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
171
|
-
"@deepseek-ai/dsh-
|
|
172
|
-
"@deepseek-ai/dsh-
|
|
173
|
-
"@deepseek-ai/dsh-
|
|
174
|
-
"@deepseek-ai/dsh-
|
|
175
|
-
"@deepseek-ai/dsh-sandbox
|
|
176
|
-
"@deepseek-ai/dsh-
|
|
177
|
-
"@deepseek-ai/dsh-
|
|
178
|
-
"@deepseek-ai/dsh-session
|
|
179
|
-
"@deepseek-ai/dsh-session-
|
|
180
|
-
"@deepseek-ai/dsh-session-
|
|
181
|
-
"@deepseek-ai/dsh-session-
|
|
182
|
-
"@deepseek-ai/dsh-
|
|
183
|
-
"@deepseek-ai/dsh-
|
|
184
|
-
"@deepseek-ai/dsh-
|
|
185
|
-
"@deepseek-ai/dsh-
|
|
186
|
-
"@deepseek-ai/dsh-
|
|
187
|
-
"@deepseek-ai/dsh-
|
|
188
|
-
"@deepseek-ai/dsh-
|
|
189
|
-
"@deepseek-ai/dsh-
|
|
190
|
-
"@deepseek-ai/dsh-
|
|
191
|
-
"@deepseek-ai/dsh-
|
|
192
|
-
"@deepseek-ai/dsh-
|
|
193
|
-
"@deepseek-ai/dsh-
|
|
194
|
-
"@deepseek-ai/dsh-
|
|
195
|
-
"@deepseek-ai/dsh-
|
|
196
|
-
"@deepseek-ai/dsh-
|
|
197
|
-
"@deepseek-ai/dsh-
|
|
198
|
-
"@deepseek-ai/dsh-
|
|
199
|
-
"@deepseek-ai/dsh-tool-todo": "0.2.2-rc.1",
|
|
175
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.2-rc.3",
|
|
176
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.3",
|
|
177
|
+
"@deepseek-ai/dsh-native-command": "0.2.2-rc.3",
|
|
178
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.2-rc.3",
|
|
179
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-rc.3",
|
|
180
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.3",
|
|
181
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.3",
|
|
182
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.3",
|
|
183
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.3",
|
|
184
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.3",
|
|
185
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-rc.3",
|
|
186
|
+
"@deepseek-ai/dsh-session-title": "0.2.2-rc.3",
|
|
187
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.3",
|
|
188
|
+
"@deepseek-ai/dsh-skill": "0.2.2-rc.3",
|
|
189
|
+
"@deepseek-ai/dsh-storage": "0.2.2-rc.3",
|
|
190
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.2-rc.3",
|
|
191
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.3",
|
|
192
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.3",
|
|
193
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.2-rc.3",
|
|
194
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.3",
|
|
195
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.3",
|
|
196
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.2-rc.3",
|
|
197
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.3",
|
|
198
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.2-rc.3",
|
|
199
|
+
"@deepseek-ai/dsh-util-time": "0.2.2-rc.3",
|
|
200
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.3",
|
|
201
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.3",
|
|
202
|
+
"@deepseek-ai/dsh-workspace": "0.2.2-rc.3",
|
|
200
203
|
"@deepseek-ai/schemastery": "3.19.0",
|
|
201
204
|
"@playwright/test": "^1.64.1",
|
|
202
205
|
"@shikijs/langs": "^4.3.1",
|