@adecore/agents-react 0.70.1 → 0.71.0
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/chat/ui/CodeBlock.d.ts +6 -1
- package/dist/chat/ui/CodeBlock.js +39 -23
- package/dist/chat/ui/intelligent-ui/UiReply.js +11 -2
- package/dist/chat/ui/intelligent-ui/key-caps.d.ts +1 -0
- package/dist/chat/ui/intelligent-ui/key-caps.js +45 -0
- package/dist/chat/ui/intelligent-ui/link-action.d.ts +9 -0
- package/dist/chat/ui/intelligent-ui/link-action.js +32 -0
- package/dist/chat/ui/intelligent-ui/node-text.js +1 -1
- package/dist/chat/ui/intelligent-ui/patch-clip.d.ts +4 -0
- package/dist/chat/ui/intelligent-ui/patch-clip.js +64 -0
- package/dist/chat/ui/intelligent-ui/registry.js +31 -5
- package/dist/chat/ui/intelligent-ui/render-context.d.ts +13 -0
- package/dist/chat/ui/intelligent-ui/renderers/alternatives.d.ts +6 -0
- package/dist/chat/ui/intelligent-ui/renderers/alternatives.js +296 -0
- package/dist/chat/ui/intelligent-ui/renderers/changes.d.ts +4 -0
- package/dist/chat/ui/intelligent-ui/renderers/changes.js +266 -0
- package/dist/chat/ui/intelligent-ui/renderers/chart.js +522 -371
- package/dist/chat/ui/intelligent-ui/renderers/content.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/renderers/content.js +94 -43
- package/dist/chat/ui/intelligent-ui/renderers/data.js +478 -245
- package/dist/chat/ui/intelligent-ui/renderers/diff.d.ts +4 -0
- package/dist/chat/ui/intelligent-ui/renderers/diff.js +427 -0
- package/dist/chat/ui/intelligent-ui/renderers/inputs.d.ts +1 -0
- package/dist/chat/ui/intelligent-ui/renderers/inputs.js +354 -110
- package/dist/chat/ui/intelligent-ui/renderers/keys.d.ts +3 -0
- package/dist/chat/ui/intelligent-ui/renderers/keys.js +60 -0
- package/dist/chat/ui/intelligent-ui/renderers/links.d.ts +13 -2
- package/dist/chat/ui/intelligent-ui/renderers/links.js +65 -85
- package/dist/chat/ui/intelligent-ui/renderers/meter.d.ts +4 -0
- package/dist/chat/ui/intelligent-ui/renderers/meter.js +371 -0
- package/dist/chat/ui/intelligent-ui/renderers/quote.d.ts +3 -0
- package/dist/chat/ui/intelligent-ui/renderers/quote.js +123 -0
- package/dist/chat/ui/intelligent-ui/renderers/radio.d.ts +3 -0
- package/dist/chat/ui/intelligent-ui/renderers/radio.js +205 -0
- package/dist/chat/ui/intelligent-ui/renderers/structure.d.ts +2 -0
- package/dist/chat/ui/intelligent-ui/renderers/structure.js +156 -45
- package/dist/chat/ui/intelligent-ui/renderers/text.js +365 -215
- package/dist/chat/ui/intelligent-ui/renderers/tree.d.ts +5 -0
- package/dist/chat/ui/intelligent-ui/renderers/tree.js +284 -0
- package/dist/chat/ui/intelligent-ui/table-data.d.ts +9 -2
- package/dist/chat/ui/intelligent-ui/table-data.js +68 -3
- package/dist/chat/ui/intelligent-ui/tones.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/tones.js +7 -7
- package/dist/chat/ui/intelligent-ui/use-ui-diffs.d.ts +4 -0
- package/dist/chat/ui/intelligent-ui/use-ui-diffs.js +201 -0
- package/dist/host/host.d.ts +2 -1
- package/dist/locales/en/agent-chat.d.ts +56 -0
- package/dist/locales/en/agent-chat.js +57 -1
- package/dist/locales/nl/agent-chat.d.ts +56 -0
- package/dist/locales/nl/agent-chat.js +57 -1
- package/dist/theme.css +6 -0
- package/package.json +9 -9
- package/src/chat/ui/CodeBlock.tsx +38 -18
- package/src/chat/ui/intelligent-ui/UiReply.tsx +13 -2
- package/src/chat/ui/intelligent-ui/key-caps.ts +51 -0
- package/src/chat/ui/intelligent-ui/link-action.ts +32 -0
- package/src/chat/ui/intelligent-ui/node-text.ts +1 -0
- package/src/chat/ui/intelligent-ui/patch-clip.ts +83 -0
- package/src/chat/ui/intelligent-ui/registry.ts +31 -4
- package/src/chat/ui/intelligent-ui/render-context.ts +21 -0
- package/src/chat/ui/intelligent-ui/renderers/alternatives.tsx +76 -0
- package/src/chat/ui/intelligent-ui/renderers/changes.tsx +97 -0
- package/src/chat/ui/intelligent-ui/renderers/chart.tsx +122 -46
- package/src/chat/ui/intelligent-ui/renderers/content.tsx +27 -7
- package/src/chat/ui/intelligent-ui/renderers/data.tsx +165 -52
- package/src/chat/ui/intelligent-ui/renderers/diff.tsx +144 -0
- package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +111 -19
- package/src/chat/ui/intelligent-ui/renderers/keys.tsx +26 -0
- package/src/chat/ui/intelligent-ui/renderers/links.tsx +40 -24
- package/src/chat/ui/intelligent-ui/renderers/meter.tsx +105 -0
- package/src/chat/ui/intelligent-ui/renderers/quote.tsx +29 -0
- package/src/chat/ui/intelligent-ui/renderers/radio.tsx +130 -0
- package/src/chat/ui/intelligent-ui/renderers/structure.tsx +54 -7
- package/src/chat/ui/intelligent-ui/renderers/text.tsx +70 -36
- package/src/chat/ui/intelligent-ui/renderers/tree.tsx +85 -0
- package/src/chat/ui/intelligent-ui/table-data.ts +84 -6
- package/src/chat/ui/intelligent-ui/tones.ts +7 -7
- package/src/chat/ui/intelligent-ui/use-ui-diffs.ts +119 -0
- package/src/host/host.ts +4 -0
- package/src/locales/en/agent-chat.ts +57 -1
- package/src/locales/nl/agent-chat.ts +57 -1
- package/src/theme.css +6 -0
package/src/host/host.ts
CHANGED
|
@@ -6,6 +6,8 @@ import type {
|
|
|
6
6
|
ChatGoalAction,
|
|
7
7
|
ChatSubagentItem,
|
|
8
8
|
ChatUiChoicePayload,
|
|
9
|
+
ChatUiDiffPayload,
|
|
10
|
+
ChatUiDiffReading,
|
|
9
11
|
ChatUiQueryPayload,
|
|
10
12
|
ChatUiQueryReading,
|
|
11
13
|
ChatUiLinkPayload,
|
|
@@ -543,6 +545,8 @@ export interface ChatHost {
|
|
|
543
545
|
subscribe?(scopeId: string, chatId: string, changed: () => void): () => void;
|
|
544
546
|
link?(scopeId: string, payload: ChatUiLinkPayload): Promise<ChatUiLinkReading>;
|
|
545
547
|
openLink?(scopeId: string, reading: ChatUiLinkReading): void;
|
|
548
|
+
/* The change of the file an open Diff names, read from git; left out, an open Diff stays the chip a closed one is. */
|
|
549
|
+
diff?(scopeId: string, payload: ChatUiDiffPayload): Promise<ChatUiDiffReading>;
|
|
546
550
|
openUrl?(scopeId: string, url: string): void;
|
|
547
551
|
query?(scopeId: string, payload: ChatUiQueryPayload): Promise<ChatUiQueryReading>;
|
|
548
552
|
sendChoice(scopeId: string, payload: ChatUiChoicePayload): Promise<'sent' | 'queued'>;
|
|
@@ -718,12 +718,67 @@ export default {
|
|
|
718
718
|
},
|
|
719
719
|
stat: {
|
|
720
720
|
change: '{{change}} from {{previous}}',
|
|
721
|
-
from: 'from {{previous}}'
|
|
721
|
+
from: 'from {{previous}}',
|
|
722
|
+
trend: 'Trend from {{first}} to {{last}}'
|
|
723
|
+
},
|
|
724
|
+
node: {
|
|
725
|
+
status: {
|
|
726
|
+
running: 'Running',
|
|
727
|
+
needsYou: 'Needs you',
|
|
728
|
+
done: 'Done'
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
meter: {
|
|
732
|
+
label: 'Meter',
|
|
733
|
+
reading: '{{value}} of {{max}}',
|
|
734
|
+
of: 'of {{max}}',
|
|
735
|
+
mark: 'mark at {{mark}}'
|
|
736
|
+
},
|
|
737
|
+
parts: {
|
|
738
|
+
label: 'Parts of the whole',
|
|
739
|
+
part: '{{label}}: {{value}}, {{share}}'
|
|
722
740
|
},
|
|
723
741
|
table: {
|
|
724
742
|
label: 'Table of {{columns}}',
|
|
725
743
|
showAll: 'Show all {{total}} rows'
|
|
726
744
|
},
|
|
745
|
+
changes: {
|
|
746
|
+
label_one: '{{count}} changed file',
|
|
747
|
+
label_other: '{{count}} changed files',
|
|
748
|
+
added_one: '{{count}} line added',
|
|
749
|
+
added_other: '{{count}} lines added',
|
|
750
|
+
removed_one: '{{count}} line removed',
|
|
751
|
+
removed_other: '{{count}} lines removed',
|
|
752
|
+
state: {
|
|
753
|
+
added: 'New',
|
|
754
|
+
modified: 'Changed',
|
|
755
|
+
deleted: 'Deleted',
|
|
756
|
+
renamed: 'Renamed'
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
diff: {
|
|
760
|
+
label: 'Changes in {{path}}',
|
|
761
|
+
unchanged: 'No changes',
|
|
762
|
+
partial: 'Only the first lines are shown.',
|
|
763
|
+
showAll: 'Open the whole diff',
|
|
764
|
+
unavailable: 'Could not read this diff'
|
|
765
|
+
},
|
|
766
|
+
alternatives: {
|
|
767
|
+
label_one: '{{count}} option',
|
|
768
|
+
label_other: '{{count}} options',
|
|
769
|
+
recommended: 'Recommended',
|
|
770
|
+
pro: 'For:',
|
|
771
|
+
con: 'Against:'
|
|
772
|
+
},
|
|
773
|
+
tree: {
|
|
774
|
+
label: 'Tree'
|
|
775
|
+
},
|
|
776
|
+
numberField: {
|
|
777
|
+
between: 'A number from {{min}} to {{max}}',
|
|
778
|
+
atLeast: 'A number of at least {{min}}',
|
|
779
|
+
atMost: 'A number of at most {{max}}',
|
|
780
|
+
number: 'A number'
|
|
781
|
+
},
|
|
727
782
|
chart: {
|
|
728
783
|
values: 'Values',
|
|
729
784
|
summary: '{{count}} values, highest {{label}} at {{value}}',
|
|
@@ -812,6 +867,7 @@ export default {
|
|
|
812
867
|
'access-unavailable': 'The chat that made this no longer has access.',
|
|
813
868
|
'block-stale': 'This block changed since it was drawn.',
|
|
814
869
|
busy: 'Too many live blocks reading.',
|
|
870
|
+
'diffs-unsupported': 'The machine does not show diffs in blocks.',
|
|
815
871
|
'link-unchecked': 'This link has to be checked again.',
|
|
816
872
|
'link-unsupported': 'The machine cannot open this link.',
|
|
817
873
|
'links-unsupported': 'The machine does not open links from blocks.',
|
|
@@ -718,12 +718,67 @@ export default {
|
|
|
718
718
|
},
|
|
719
719
|
stat: {
|
|
720
720
|
change: '{{change}} vanaf {{previous}}',
|
|
721
|
-
from: 'vanaf {{previous}}'
|
|
721
|
+
from: 'vanaf {{previous}}',
|
|
722
|
+
trend: 'Verloop van {{first}} naar {{last}}'
|
|
723
|
+
},
|
|
724
|
+
node: {
|
|
725
|
+
status: {
|
|
726
|
+
running: 'Bezig',
|
|
727
|
+
needsYou: 'Wacht op jou',
|
|
728
|
+
done: 'Klaar'
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
meter: {
|
|
732
|
+
label: 'Meter',
|
|
733
|
+
reading: '{{value}} van {{max}}',
|
|
734
|
+
of: 'van {{max}}',
|
|
735
|
+
mark: 'markering bij {{mark}}'
|
|
736
|
+
},
|
|
737
|
+
parts: {
|
|
738
|
+
label: 'Delen van het geheel',
|
|
739
|
+
part: '{{label}}: {{value}}, {{share}}'
|
|
722
740
|
},
|
|
723
741
|
table: {
|
|
724
742
|
label: 'Tabel van {{columns}}',
|
|
725
743
|
showAll: 'Alle {{total}} rijen tonen'
|
|
726
744
|
},
|
|
745
|
+
changes: {
|
|
746
|
+
label_one: '{{count}} gewijzigd bestand',
|
|
747
|
+
label_other: '{{count}} gewijzigde bestanden',
|
|
748
|
+
added_one: '{{count}} regel toegevoegd',
|
|
749
|
+
added_other: '{{count}} regels toegevoegd',
|
|
750
|
+
removed_one: '{{count}} regel verwijderd',
|
|
751
|
+
removed_other: '{{count}} regels verwijderd',
|
|
752
|
+
state: {
|
|
753
|
+
added: 'Nieuw',
|
|
754
|
+
modified: 'Gewijzigd',
|
|
755
|
+
deleted: 'Verwijderd',
|
|
756
|
+
renamed: 'Hernoemd'
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
diff: {
|
|
760
|
+
label: 'Wijzigingen in {{path}}',
|
|
761
|
+
unchanged: 'Geen wijzigingen',
|
|
762
|
+
partial: 'Alleen de eerste regels staan hier.',
|
|
763
|
+
showAll: 'Hele diff openen',
|
|
764
|
+
unavailable: 'Kon deze diff niet lezen'
|
|
765
|
+
},
|
|
766
|
+
alternatives: {
|
|
767
|
+
label_one: '{{count}} optie',
|
|
768
|
+
label_other: '{{count}} opties',
|
|
769
|
+
recommended: 'Aanbevolen',
|
|
770
|
+
pro: 'Voor:',
|
|
771
|
+
con: 'Tegen:'
|
|
772
|
+
},
|
|
773
|
+
tree: {
|
|
774
|
+
label: 'Boom'
|
|
775
|
+
},
|
|
776
|
+
numberField: {
|
|
777
|
+
between: 'Een getal van {{min}} tot en met {{max}}',
|
|
778
|
+
atLeast: 'Een getal van minstens {{min}}',
|
|
779
|
+
atMost: 'Een getal van hoogstens {{max}}',
|
|
780
|
+
number: 'Een getal'
|
|
781
|
+
},
|
|
727
782
|
chart: {
|
|
728
783
|
values: 'Waarden',
|
|
729
784
|
summary: '{{count}} waarden, hoogste {{label}} met {{value}}',
|
|
@@ -812,6 +867,7 @@ export default {
|
|
|
812
867
|
'access-unavailable': 'De chat die dit maakte heeft geen toegang meer.',
|
|
813
868
|
'block-stale': 'Dit blok is veranderd sinds het getekend werd.',
|
|
814
869
|
busy: 'Er lezen te veel live blokken tegelijk.',
|
|
870
|
+
'diffs-unsupported': 'De machine toont geen diffs in blokken.',
|
|
815
871
|
'link-unchecked': 'Deze link moet opnieuw gecontroleerd worden.',
|
|
816
872
|
'link-unsupported': 'De machine kan deze link niet openen.',
|
|
817
873
|
'links-unsupported': 'De machine opent geen links uit blokken.',
|
package/src/theme.css
CHANGED
|
@@ -275,6 +275,12 @@
|
|
|
275
275
|
.chat-ui-section-body .chat-ui-flat thead { background-color: var(--chat-ui-tile); }
|
|
276
276
|
.chat-code pre { margin: 0; padding: round(0.625rem, 1px) round(0.75rem, 1px); user-select: text; background: transparent !important; font-family: var(--font-mono); font-size: var(--text-code); line-height: var(--text-code--line-height); }
|
|
277
277
|
.chat-code code { font-family: inherit; }
|
|
278
|
+
/* Numbered or marked lines each fill the width, so a mark is a band from edge to edge: the padding moves from the block
|
|
279
|
+
onto its lines. A number is generated content, which a selection never copies. */
|
|
280
|
+
.chat-code pre[data-lined] { padding-inline: 0; }
|
|
281
|
+
.chat-code pre[data-lined] .line { display: inline-block; box-sizing: border-box; min-width: 100%; vertical-align: top; min-height: 1lh; padding-inline: round(0.75rem, 1px); }
|
|
282
|
+
.chat-code pre[data-lined] .line[data-line]::before { content: attr(data-line); display: inline-block; width: calc(var(--chat-code-digits, 1) * 1ch); margin-right: round(0.75rem, 1px); color: var(--text-faint); text-align: right; user-select: none; }
|
|
283
|
+
.chat-code pre[data-lined] .line[data-marked] { background: var(--accent-soft); }
|
|
278
284
|
.chat-code-actions { position: absolute; top: 4px; right: 4px; border-radius: 6px; background: var(--surface-raised); color: var(--text-muted); box-shadow: 0 0 0 1px var(--border); }
|
|
279
285
|
.chat-code-error { margin: 0; padding: 0 12px 10px; color: var(--status-error); font-size: var(--text-sm); }
|
|
280
286
|
@media (hover: hover) and (pointer: fine) {
|