@adecore/agents-react 0.65.1 → 0.65.2
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/dist/locales/en/agent-usage.d.ts +0 -2
- package/dist/locales/en/agent-usage.js +0 -2
- package/dist/locales/nl/agent-usage.d.ts +0 -2
- package/dist/locales/nl/agent-usage.js +0 -2
- package/dist/usage/limit-groups.js +2 -4
- package/package.json +9 -9
- package/src/locales/en/agent-usage.ts +0 -2
- package/src/locales/nl/agent-usage.ts +0 -2
- package/src/usage/limit-groups.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { evenPace, USAGE_PROVIDERS } from '@adecore/agent-contracts';
|
|
2
|
-
import {
|
|
2
|
+
import { formatAgo } from '@adecore/ui/format';
|
|
3
3
|
import i18next from 'i18next';
|
|
4
4
|
import { limitsAccountId } from '../agents/account-limits.js';
|
|
5
5
|
import { accountName, accountsOfKind, accountStatusLine } from '../agents/accounts.js';
|
|
@@ -109,9 +109,7 @@ export function checkedLabel(entry, now) {
|
|
|
109
109
|
if (past === null) {
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
const when = past
|
|
113
|
-
duration: formatDuration(past)
|
|
114
|
-
});
|
|
112
|
+
const when = formatAgo(past);
|
|
115
113
|
return entry.source === 'event' ? i18next.t('agent-usage:limits.checked.fromTurn', {
|
|
116
114
|
when
|
|
117
115
|
}) : when;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agents-react",
|
|
3
|
-
"version": "0.65.
|
|
3
|
+
"version": "0.65.2",
|
|
4
4
|
"description": "React agent chat threads, composers, approvals, provider accounts and usage views.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"test:visuals": "bun --config=integration.bunfig.toml --conditions=source test ./src/chat/visual-viewport.integration.test.ts"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@adecore/agent-contracts": "0.65.
|
|
76
|
-
"@adecore/editor": "0.65.
|
|
77
|
-
"@adecore/editor-react": "0.65.
|
|
78
|
-
"@adecore/intelligent-ui": "0.65.
|
|
79
|
-
"@adecore/merge": "0.65.
|
|
80
|
-
"@adecore/utils": "0.65.
|
|
75
|
+
"@adecore/agent-contracts": "0.65.2",
|
|
76
|
+
"@adecore/editor": "0.65.2",
|
|
77
|
+
"@adecore/editor-react": "0.65.2",
|
|
78
|
+
"@adecore/intelligent-ui": "0.65.2",
|
|
79
|
+
"@adecore/merge": "0.65.2",
|
|
80
|
+
"@adecore/utils": "0.65.2",
|
|
81
81
|
"@codemirror/commands": "^6.11.1",
|
|
82
82
|
"@codemirror/language": "^6.13.1",
|
|
83
83
|
"@codemirror/state": "^6.7.6",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"zustand": "^5.0.16"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@adecore/ui": "^0.65.
|
|
104
|
+
"@adecore/ui": "^0.65.2",
|
|
105
105
|
"i18next": "^26.4.2",
|
|
106
106
|
"react": "^19.3.0",
|
|
107
107
|
"react-dom": "^19.3.0",
|
|
108
108
|
"react-i18next": "^17.0.15"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@adecore/ui": "0.65.
|
|
111
|
+
"@adecore/ui": "0.65.2",
|
|
112
112
|
"@types/bun": "^1.4.4",
|
|
113
113
|
"@types/react": "^19.3.0",
|
|
114
114
|
"@types/react-dom": "^19.3.0",
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
type UsageProvider,
|
|
9
9
|
type UsageWindow
|
|
10
10
|
} from '@adecore/agent-contracts';
|
|
11
|
-
import {
|
|
11
|
+
import { formatAgo } from '@adecore/ui/format';
|
|
12
12
|
import i18next from 'i18next';
|
|
13
13
|
import { limitsAccountId } from '../agents/account-limits';
|
|
14
14
|
import { accountName, accountsOfKind, accountStatusLine } from '../agents/accounts';
|
|
@@ -161,7 +161,7 @@ export function checkedLabel(entry: UsageLimitsProvider, now: number): string |
|
|
|
161
161
|
return null;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
const when =
|
|
164
|
+
const when = formatAgo(past);
|
|
165
165
|
|
|
166
166
|
return entry.source === 'event' ? i18next.t('agent-usage:limits.checked.fromTurn', { when }) : when;
|
|
167
167
|
}
|