@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.
@@ -34,8 +34,6 @@ declare const _default: {
34
34
  unknown: string;
35
35
  updated: string;
36
36
  old: string;
37
- now: string;
38
- ago: string;
39
37
  fromTurn: string;
40
38
  };
41
39
  };
@@ -34,8 +34,6 @@ export default {
34
34
  unknown: 'Update time unknown',
35
35
  updated: 'Last updated · {{when}}',
36
36
  old: 'May be out of date',
37
- now: 'now',
38
- ago: '{{duration}} ago',
39
37
  fromTurn: 'From a turn · {{when}}'
40
38
  }
41
39
  },
@@ -34,8 +34,6 @@ declare const _default: {
34
34
  unknown: string;
35
35
  updated: string;
36
36
  old: string;
37
- now: string;
38
- ago: string;
39
37
  fromTurn: string;
40
38
  };
41
39
  };
@@ -34,8 +34,6 @@ export default {
34
34
  unknown: 'Bijwerktijd onbekend',
35
35
  updated: 'Laatst bijgewerkt · {{when}}',
36
36
  old: 'Mogelijk verouderd',
37
- now: 'nu',
38
- ago: '{{duration}} geleden',
39
37
  fromTurn: 'Uit een turn · {{when}}'
40
38
  }
41
39
  },
@@ -1,5 +1,5 @@
1
1
  import { evenPace, USAGE_PROVIDERS } from '@adecore/agent-contracts';
2
- import { formatDuration } from '@adecore/ui/format';
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 < MINUTE ? i18next.t('agent-usage:limits.checked.now') : i18next.t('agent-usage:limits.checked.ago', {
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.1",
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.1",
76
- "@adecore/editor": "0.65.1",
77
- "@adecore/editor-react": "0.65.1",
78
- "@adecore/intelligent-ui": "0.65.1",
79
- "@adecore/merge": "0.65.1",
80
- "@adecore/utils": "0.65.1",
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.1",
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.1",
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",
@@ -34,8 +34,6 @@ export default {
34
34
  unknown: 'Update time unknown',
35
35
  updated: 'Last updated · {{when}}',
36
36
  old: 'May be out of date',
37
- now: 'now',
38
- ago: '{{duration}} ago',
39
37
  fromTurn: 'From a turn · {{when}}'
40
38
  }
41
39
  },
@@ -34,8 +34,6 @@ export default {
34
34
  unknown: 'Bijwerktijd onbekend',
35
35
  updated: 'Laatst bijgewerkt · {{when}}',
36
36
  old: 'Mogelijk verouderd',
37
- now: 'nu',
38
- ago: '{{duration}} geleden',
39
37
  fromTurn: 'Uit een turn · {{when}}'
40
38
  }
41
39
  },
@@ -8,7 +8,7 @@ import {
8
8
  type UsageProvider,
9
9
  type UsageWindow
10
10
  } from '@adecore/agent-contracts';
11
- import { formatDuration } from '@adecore/ui/format';
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 = past < MINUTE ? i18next.t('agent-usage:limits.checked.now') : i18next.t('agent-usage:limits.checked.ago', { duration: formatDuration(past) });
164
+ const when = formatAgo(past);
165
165
 
166
166
  return entry.source === 'event' ? i18next.t('agent-usage:limits.checked.fromTurn', { when }) : when;
167
167
  }