@goodandready/dsh-usage-guard 0.1.12 → 0.1.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/lib/client.js +24 -0
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -878,6 +878,30 @@ window.__ModuleLoader__.load({
|
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
+
// Plugin-list seat (plugins.item) first: the seat the current core
|
|
882
|
+
// (0.1.6-alpha.2) renders as the plugin's own page with its configuration. The
|
|
883
|
+
// label is a static string on purpose — it is resolved while the page renders,
|
|
884
|
+
// and a locale lookup there would take the whole client batch down with it.
|
|
885
|
+
registerSlotWhenReady('plugins.item', () =>
|
|
886
|
+
ctx.slots.register(
|
|
887
|
+
{
|
|
888
|
+
name: 'plugins.item',
|
|
889
|
+
id: ROW_ID,
|
|
890
|
+
order: 60,
|
|
891
|
+
label: () => 'Usage Guard',
|
|
892
|
+
locale: NS,
|
|
893
|
+
inject: () => ({ ctx }),
|
|
894
|
+
},
|
|
895
|
+
(props) =>
|
|
896
|
+
React.createElement(
|
|
897
|
+
ErrorBoundary,
|
|
898
|
+
null,
|
|
899
|
+
React.createElement(PluginCard, { ...props, ctx: (props && props.ctx) || ctx })
|
|
900
|
+
)
|
|
901
|
+
)
|
|
902
|
+
)
|
|
903
|
+
|
|
904
|
+
// Row seat and the legacy seat stay as fallbacks.
|
|
881
905
|
registerSlotWhenReady('plugins.row.config', () =>
|
|
882
906
|
ctx.slots.register(
|
|
883
907
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-usage-guard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Keeps a malformed token-usage sample from taking a whole session history down with it: a missing or non-numeric counter becomes zero before the harness adds it up, so the fold never yields NaN and already-broken sessions open again.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|