@adecore/agents-react 0.36.0 → 0.37.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.
- package/dist/agents/provider-paths.js +3 -1
- package/dist/chat/chat-client.d.ts +5 -0
- package/dist/chat/chat-client.js +91 -20
- package/dist/chat/index.d.ts +1 -0
- package/dist/chat/index.js +2 -1
- package/dist/chat/logic/picker-entries.js +11 -6
- package/dist/chat/logic/scrubber.d.ts +4 -2
- package/dist/chat/logic/scrubber.js +3 -3
- package/dist/chat/pending-prompts.d.ts +15 -0
- package/dist/chat/pending-prompts.js +93 -0
- package/dist/chat/reading-width.js +6 -2
- package/dist/chat/ui/PromptComposer.d.ts +2 -2
- package/dist/chat/ui/PromptComposer.js +92 -98
- package/dist/chat/ui/SubagentTimeline.js +128 -182
- package/dist/chat/ui/Timeline.js +86 -60
- package/dist/chat/ui/code-lines.d.ts +5 -0
- package/dist/chat/ui/code-lines.js +37 -0
- package/dist/chat/ui/composer/use-pending-requests.d.ts +2 -2
- package/dist/chat/ui/composer/use-pending-requests.js +29 -37
- package/dist/chat/ui/highlighter.d.ts +1 -1
- package/dist/chat/ui/highlighter.js +4 -2
- package/dist/locales/en/agent-chat.d.ts +1 -0
- package/dist/locales/en/agent-chat.js +1 -0
- package/dist/locales/nl/agent-chat.d.ts +1 -0
- package/dist/locales/nl/agent-chat.js +1 -0
- package/dist/prompts/logic/subjects.d.ts +5 -0
- package/dist/prompts/ui/PromptCard.js +1 -1
- package/dist/prompts/ui/PromptView.js +104 -95
- package/dist/providers/parts.js +2 -1
- package/dist/state/chats.d.ts +4 -0
- package/dist/state/chats.js +84 -48
- package/dist/theme.css +6 -2
- package/dist/usage/format.js +4 -2
- package/package.json +8 -8
- package/src/agents/provider-paths.ts +5 -1
- package/src/chat/chat-client.ts +92 -21
- package/src/chat/index.ts +2 -0
- package/src/chat/logic/picker-entries.ts +6 -4
- package/src/chat/logic/scrubber.ts +8 -6
- package/src/chat/pending-prompts.ts +108 -0
- package/src/chat/reading-width.ts +9 -2
- package/src/chat/ui/PromptComposer.tsx +10 -7
- package/src/chat/ui/SubagentTimeline.tsx +1 -24
- package/src/chat/ui/Timeline.tsx +66 -40
- package/src/chat/ui/code-lines.ts +37 -0
- package/src/chat/ui/composer/use-pending-requests.ts +13 -21
- package/src/chat/ui/highlighter.ts +4 -3
- package/src/locales/en/agent-chat.ts +1 -0
- package/src/locales/nl/agent-chat.ts +1 -0
- package/src/prompts/logic/subjects.ts +4 -1
- package/src/prompts/ui/PromptCard.tsx +1 -1
- package/src/prompts/ui/PromptView.tsx +7 -1
- package/src/providers/parts.tsx +2 -1
- package/src/state/chats.ts +63 -18
- package/src/theme.css +6 -2
- package/src/usage/format.ts +4 -2
package/src/usage/format.ts
CHANGED
|
@@ -33,7 +33,8 @@ export const PROVIDER_LABELS: Record<UsageProvider, string> = {
|
|
|
33
33
|
codex: 'Codex',
|
|
34
34
|
nanogpt: 'NanoGPT',
|
|
35
35
|
grok: 'Grok',
|
|
36
|
-
copilot: 'GitHub Copilot'
|
|
36
|
+
copilot: 'GitHub Copilot',
|
|
37
|
+
'anthropic-claude-api': 'Claude API'
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
export const PROVIDER_COLORS: Record<UsageProvider, string> = {
|
|
@@ -41,7 +42,8 @@ export const PROVIDER_COLORS: Record<UsageProvider, string> = {
|
|
|
41
42
|
codex: 'var(--chart-codex)',
|
|
42
43
|
nanogpt: 'var(--chart-nanogpt)',
|
|
43
44
|
grok: 'var(--chart-grok)',
|
|
44
|
-
copilot: 'var(--chart-copilot)'
|
|
45
|
+
copilot: 'var(--chart-copilot)',
|
|
46
|
+
'anthropic-claude-api': 'var(--chart-claude-api)'
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
/*
|