@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.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "1.7.1",
|
|
5
|
+
"sourceCommit": "8bdcd5922c85a4281f3c7805670565f7eaf1ad0f",
|
|
6
6
|
"releaseWorkflow": "npm Release",
|
|
7
|
-
"workflowRunId": "
|
|
7
|
+
"workflowRunId": "40842965438"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -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
|
|
207
|
-
weekCount
|
|
208
|
-
monthCount
|
|
209
|
-
|
|
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;
|