@ultrst-armada/floks 1.7.0 → 1.7.1

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/floks",
4
- "version": "1.7.0",
5
- "sourceCommit": "554d2665e46c627719616a8bd1bd1e92c1041f14",
4
+ "version": "1.7.1",
5
+ "sourceCommit": "8bdcd5922c85a4281f3c7805670565f7eaf1ad0f",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "40841626341"
7
+ "workflowRunId": "40842965438"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -798,9 +798,9 @@ var ExistingKeyControl = ({ providerKey, usageStats = [], onVerifyKey, onDeleteK
798
798
  const [editing, setEditing] = useState8(false);
799
799
  const [label, setLabel] = useState8("");
800
800
  const stats = usageStats.filter((item) => item.keyId === providerKey.id);
801
- const day = stats.reduce((sum, item) => sum + item.dayCount, 0);
802
- const week = stats.reduce((sum, item) => sum + item.weekCount, 0);
803
- const month = stats.reduce((sum, item) => sum + item.monthCount, 0);
801
+ const day = stats.reduce((sum, item) => sum + (item.dayCount ?? item.dailyCalls ?? 0), 0);
802
+ const week = stats.reduce((sum, item) => sum + (item.weekCount ?? item.weeklyCalls ?? 0), 0);
803
+ const month = stats.reduce((sum, item) => sum + (item.monthCount ?? item.monthlyCalls ?? 0), 0);
804
804
  return /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between flex-1 gap-2", children: [
805
805
  /* @__PURE__ */ jsxs14("div", { className: "flex flex-col min-w-0", children: [
806
806
  /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-1.5 min-w-0", children: [
@@ -199,14 +199,15 @@ interface AIKeyEntry {
199
199
  status?: string;
200
200
  validationError?: string;
201
201
  lifespan?: string;
202
- [key: string]: unknown;
203
202
  }
204
203
  interface AIKeyUsageStats {
205
204
  keyId: string;
206
- dayCount: number;
207
- weekCount: number;
208
- monthCount: number;
209
- [key: string]: unknown;
205
+ dayCount?: number;
206
+ weekCount?: number;
207
+ monthCount?: number;
208
+ dailyCalls?: number;
209
+ weeklyCalls?: number;
210
+ monthlyCalls?: number;
210
211
  }
211
212
  interface AIProviderMeta {
212
213
  id: string;
@@ -22,7 +22,7 @@ import {
22
22
  SingleKeyForm,
23
23
  TimelineScrubber,
24
24
  getProviderIcon
25
- } from "../../chunk-S6XF67CX.js";
25
+ } from "../../chunk-UJK3JKRK.js";
26
26
  import "../../chunk-KIFQA7L6.js";
27
27
  import "../../chunk-GKP6KHTI.js";
28
28
  import "../../chunk-UOR4P6PO.js";
@@ -189,7 +189,7 @@ import {
189
189
  SingleKeyForm,
190
190
  TimelineScrubber,
191
191
  getProviderIcon
192
- } from "./chunk-S6XF67CX.js";
192
+ } from "./chunk-UJK3JKRK.js";
193
193
  import {
194
194
  BaseSelect,
195
195
  BaseTextarea,