@goodandready/dsh-cost-meter 0.8.4 → 0.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/lib/client.js +13 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -686,7 +686,7 @@ window.__ModuleLoader__.load({
|
|
|
686
686
|
),
|
|
687
687
|
React.createElement(Chevron, { open }),
|
|
688
688
|
),
|
|
689
|
-
open ? React.createElement('div', { className: 'dcm-body' },
|
|
689
|
+
(page || open) ? React.createElement('div', { className: 'dcm-body' },
|
|
690
690
|
status === 'loading'
|
|
691
691
|
? React.createElement('div', { className: 'dcm-hint', style: { padding: '12px 0' } }, t('settings.loading'))
|
|
692
692
|
: status !== 'ready'
|
|
@@ -1407,7 +1407,18 @@ window.__ModuleLoader__.load({
|
|
|
1407
1407
|
),
|
|
1408
1408
|
)
|
|
1409
1409
|
|
|
1410
|
-
//
|
|
1410
|
+
// List seat (plugins.item): the seat the Plugins page renders as the plugin's
|
|
1411
|
+
// own page with its configuration. The label is a static string on purpose —
|
|
1412
|
+
// it is resolved while the page renders, and a locale lookup there would take
|
|
1413
|
+
// the whole client batch down with it.
|
|
1414
|
+
ctx.slots.inject('plugins.item', () =>
|
|
1415
|
+
ctx.slots.register(
|
|
1416
|
+
{ name: 'plugins.item', id: ROW_ID, order: 20, label: () => 'Cost Meter', locale: NS, inject: () => ({ ctx }) },
|
|
1417
|
+
(p) => React.createElement(ErrorBoundary, null, React.createElement(CostMeterCard, { ...p, ctx: (p && p.ctx) || ctx })),
|
|
1418
|
+
),
|
|
1419
|
+
)
|
|
1420
|
+
|
|
1421
|
+
// Row seat and the legacy seat kept as fallbacks.
|
|
1411
1422
|
ctx.slots.inject('plugins.row.config', () =>
|
|
1412
1423
|
ctx.slots.register(
|
|
1413
1424
|
{ name: 'plugins.row.config', key: ROW_CONFIG_KEY, locale: NS, order: 20, inject: () => ({ ctx }) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-cost-meter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "DeepSeek Harness plugin: a session cost chip in the conversation header - live token usage by bucket, peak/off-peak tariff, and a countdown to the next tariff switch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|