@adecore/agents-react 0.70.0 → 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.
Files changed (95) hide show
  1. package/dist/chat/logic/fork.js +1 -0
  2. package/dist/chat/logic/thread-cards.js +1 -0
  3. package/dist/chat/logic/timeline.js +7 -0
  4. package/dist/chat/ui/CodeBlock.d.ts +6 -1
  5. package/dist/chat/ui/CodeBlock.js +39 -23
  6. package/dist/chat/ui/intelligent-ui/UiReply.js +11 -2
  7. package/dist/chat/ui/intelligent-ui/key-caps.d.ts +1 -0
  8. package/dist/chat/ui/intelligent-ui/key-caps.js +45 -0
  9. package/dist/chat/ui/intelligent-ui/link-action.d.ts +9 -0
  10. package/dist/chat/ui/intelligent-ui/link-action.js +32 -0
  11. package/dist/chat/ui/intelligent-ui/node-text.js +1 -1
  12. package/dist/chat/ui/intelligent-ui/patch-clip.d.ts +4 -0
  13. package/dist/chat/ui/intelligent-ui/patch-clip.js +64 -0
  14. package/dist/chat/ui/intelligent-ui/registry.js +31 -5
  15. package/dist/chat/ui/intelligent-ui/render-context.d.ts +13 -0
  16. package/dist/chat/ui/intelligent-ui/renderers/alternatives.d.ts +6 -0
  17. package/dist/chat/ui/intelligent-ui/renderers/alternatives.js +296 -0
  18. package/dist/chat/ui/intelligent-ui/renderers/changes.d.ts +4 -0
  19. package/dist/chat/ui/intelligent-ui/renderers/changes.js +266 -0
  20. package/dist/chat/ui/intelligent-ui/renderers/chart.js +522 -371
  21. package/dist/chat/ui/intelligent-ui/renderers/content.d.ts +1 -1
  22. package/dist/chat/ui/intelligent-ui/renderers/content.js +94 -43
  23. package/dist/chat/ui/intelligent-ui/renderers/data.js +478 -245
  24. package/dist/chat/ui/intelligent-ui/renderers/diff.d.ts +4 -0
  25. package/dist/chat/ui/intelligent-ui/renderers/diff.js +427 -0
  26. package/dist/chat/ui/intelligent-ui/renderers/inputs.d.ts +1 -0
  27. package/dist/chat/ui/intelligent-ui/renderers/inputs.js +354 -110
  28. package/dist/chat/ui/intelligent-ui/renderers/keys.d.ts +3 -0
  29. package/dist/chat/ui/intelligent-ui/renderers/keys.js +60 -0
  30. package/dist/chat/ui/intelligent-ui/renderers/links.d.ts +13 -2
  31. package/dist/chat/ui/intelligent-ui/renderers/links.js +65 -85
  32. package/dist/chat/ui/intelligent-ui/renderers/meter.d.ts +4 -0
  33. package/dist/chat/ui/intelligent-ui/renderers/meter.js +371 -0
  34. package/dist/chat/ui/intelligent-ui/renderers/quote.d.ts +3 -0
  35. package/dist/chat/ui/intelligent-ui/renderers/quote.js +123 -0
  36. package/dist/chat/ui/intelligent-ui/renderers/radio.d.ts +3 -0
  37. package/dist/chat/ui/intelligent-ui/renderers/radio.js +205 -0
  38. package/dist/chat/ui/intelligent-ui/renderers/structure.d.ts +2 -0
  39. package/dist/chat/ui/intelligent-ui/renderers/structure.js +156 -45
  40. package/dist/chat/ui/intelligent-ui/renderers/text.js +365 -215
  41. package/dist/chat/ui/intelligent-ui/renderers/tree.d.ts +5 -0
  42. package/dist/chat/ui/intelligent-ui/renderers/tree.js +284 -0
  43. package/dist/chat/ui/intelligent-ui/table-data.d.ts +9 -2
  44. package/dist/chat/ui/intelligent-ui/table-data.js +68 -3
  45. package/dist/chat/ui/intelligent-ui/tones.d.ts +1 -1
  46. package/dist/chat/ui/intelligent-ui/tones.js +7 -7
  47. package/dist/chat/ui/intelligent-ui/use-ui-diffs.d.ts +4 -0
  48. package/dist/chat/ui/intelligent-ui/use-ui-diffs.js +201 -0
  49. package/dist/chat/ui/rows/MessageRows.d.ts +4 -1
  50. package/dist/chat/ui/rows/MessageRows.js +92 -1
  51. package/dist/chat/ui/rows/Rows.js +45 -31
  52. package/dist/host/host.d.ts +2 -1
  53. package/dist/host/timeline-row.d.ts +5 -1
  54. package/dist/locales/en/agent-chat.d.ts +62 -0
  55. package/dist/locales/en/agent-chat.js +63 -1
  56. package/dist/locales/nl/agent-chat.d.ts +62 -0
  57. package/dist/locales/nl/agent-chat.js +63 -1
  58. package/dist/theme.css +6 -0
  59. package/package.json +9 -9
  60. package/src/chat/logic/fork.ts +1 -0
  61. package/src/chat/logic/thread-cards.ts +1 -0
  62. package/src/chat/logic/timeline.ts +4 -0
  63. package/src/chat/ui/CodeBlock.tsx +38 -18
  64. package/src/chat/ui/intelligent-ui/UiReply.tsx +13 -2
  65. package/src/chat/ui/intelligent-ui/key-caps.ts +51 -0
  66. package/src/chat/ui/intelligent-ui/link-action.ts +32 -0
  67. package/src/chat/ui/intelligent-ui/node-text.ts +1 -0
  68. package/src/chat/ui/intelligent-ui/patch-clip.ts +83 -0
  69. package/src/chat/ui/intelligent-ui/registry.ts +31 -4
  70. package/src/chat/ui/intelligent-ui/render-context.ts +21 -0
  71. package/src/chat/ui/intelligent-ui/renderers/alternatives.tsx +76 -0
  72. package/src/chat/ui/intelligent-ui/renderers/changes.tsx +97 -0
  73. package/src/chat/ui/intelligent-ui/renderers/chart.tsx +122 -46
  74. package/src/chat/ui/intelligent-ui/renderers/content.tsx +27 -7
  75. package/src/chat/ui/intelligent-ui/renderers/data.tsx +165 -52
  76. package/src/chat/ui/intelligent-ui/renderers/diff.tsx +144 -0
  77. package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +111 -19
  78. package/src/chat/ui/intelligent-ui/renderers/keys.tsx +26 -0
  79. package/src/chat/ui/intelligent-ui/renderers/links.tsx +40 -24
  80. package/src/chat/ui/intelligent-ui/renderers/meter.tsx +105 -0
  81. package/src/chat/ui/intelligent-ui/renderers/quote.tsx +29 -0
  82. package/src/chat/ui/intelligent-ui/renderers/radio.tsx +130 -0
  83. package/src/chat/ui/intelligent-ui/renderers/structure.tsx +54 -7
  84. package/src/chat/ui/intelligent-ui/renderers/text.tsx +70 -36
  85. package/src/chat/ui/intelligent-ui/renderers/tree.tsx +85 -0
  86. package/src/chat/ui/intelligent-ui/table-data.ts +84 -6
  87. package/src/chat/ui/intelligent-ui/tones.ts +7 -7
  88. package/src/chat/ui/intelligent-ui/use-ui-diffs.ts +119 -0
  89. package/src/chat/ui/rows/MessageRows.tsx +23 -0
  90. package/src/chat/ui/rows/Rows.tsx +3 -0
  91. package/src/host/host.ts +4 -0
  92. package/src/host/timeline-row.ts +3 -0
  93. package/src/locales/en/agent-chat.ts +63 -1
  94. package/src/locales/nl/agent-chat.ts +63 -1
  95. package/src/theme.css +6 -0
@@ -3,7 +3,7 @@ import { WAITING_NOTE_PREFIX } from '@adecore/agent-contracts';
3
3
  import { Button, Icon, IconButton, MiddleTruncate, Tooltip, useTickingText } from '@adecore/ui';
4
4
  import { formatAgo, formatElapsedShort, formatMoment, formatTokens } from '@adecore/ui/format';
5
5
  import clsx from 'clsx';
6
- import { Bot, Brain, ChevronDown, CircleAlert, CircleCheck, CircleX, Clock, File, Info, MessageCircleQuestionMark, Reply, Send, SquareTerminal, TriangleAlert } from 'lucide-react';
6
+ import { Bot, Brain, ChevronDown, CircleAlert, CircleCheck, CircleMinus, CircleX, Clock, File, Info, MessageCircleQuestionMark, Reply, Send, SquareTerminal, TriangleAlert } from 'lucide-react';
7
7
  import { useContext, useState } from 'react';
8
8
  import { useTranslation } from 'react-i18next';
9
9
  import { useChatHost } from '../../../host/host.js';
@@ -2688,6 +2688,97 @@ export function ApprovalHistoryRow(t0) {
2688
2688
  }
2689
2689
  return t13;
2690
2690
  }
2691
+ const SECRET_ICON = {
2692
+ saved: /*#__PURE__*/_jsx(Icon, {
2693
+ icon: CircleCheck,
2694
+ size: 12,
2695
+ className: "text-positive"
2696
+ }),
2697
+ declined: /*#__PURE__*/_jsx(Icon, {
2698
+ icon: CircleMinus,
2699
+ size: 12
2700
+ }),
2701
+ 'timed-out': /*#__PURE__*/_jsx(Icon, {
2702
+ icon: Clock,
2703
+ size: 12
2704
+ }),
2705
+ cancelled: /*#__PURE__*/_jsx(Icon, {
2706
+ icon: CircleX,
2707
+ size: 12
2708
+ })
2709
+ };
2710
+ /* What became of a request for a secret, one quiet line; the card that asked for it lived elsewhere and the value is never here. */
2711
+ export function SecretRow(t0) {
2712
+ const $ = _c(14);
2713
+ const {
2714
+ item
2715
+ } = t0;
2716
+ const {
2717
+ t
2718
+ } = useTranslation("agent-chat");
2719
+ const t1 = item.id;
2720
+ const t2 = SECRET_ICON[item.outcome];
2721
+ let t3;
2722
+ if ($[0] !== t2) {
2723
+ t3 = /*#__PURE__*/_jsx("span", {
2724
+ className: ROW_GUTTER,
2725
+ children: t2
2726
+ });
2727
+ $[0] = t2;
2728
+ $[1] = t3;
2729
+ } else {
2730
+ t3 = $[1];
2731
+ }
2732
+ let t4;
2733
+ if ($[2] !== item.label) {
2734
+ t4 = /*#__PURE__*/_jsx("span", {
2735
+ className: "text-text-muted",
2736
+ children: item.label
2737
+ });
2738
+ $[2] = item.label;
2739
+ $[3] = t4;
2740
+ } else {
2741
+ t4 = $[3];
2742
+ }
2743
+ const t5 = `rows.secret.${item.outcome}`;
2744
+ let t6;
2745
+ if ($[4] !== t || $[5] !== t5) {
2746
+ t6 = t(t5);
2747
+ $[4] = t;
2748
+ $[5] = t5;
2749
+ $[6] = t6;
2750
+ } else {
2751
+ t6 = $[6];
2752
+ }
2753
+ let t7;
2754
+ if ($[7] !== t4 || $[8] !== t6) {
2755
+ t7 = /*#__PURE__*/_jsxs("span", {
2756
+ "data-find-field": "summary",
2757
+ className: "min-w-0 truncate select-text",
2758
+ children: [t4, " \xB7 ", t6]
2759
+ });
2760
+ $[7] = t4;
2761
+ $[8] = t6;
2762
+ $[9] = t7;
2763
+ } else {
2764
+ t7 = $[9];
2765
+ }
2766
+ let t8;
2767
+ if ($[10] !== item.id || $[11] !== t3 || $[12] !== t7) {
2768
+ t8 = /*#__PURE__*/_jsxs("div", {
2769
+ "data-find-item": t1,
2770
+ className: "-mx-1 mb-0.5 flex h-7 items-center gap-2 px-1 text-xs text-text-faint",
2771
+ children: [t3, t7]
2772
+ });
2773
+ $[10] = item.id;
2774
+ $[11] = t3;
2775
+ $[12] = t7;
2776
+ $[13] = t8;
2777
+ } else {
2778
+ t8 = $[13];
2779
+ }
2780
+ return t8;
2781
+ }
2691
2782
  export function QuestionHistoryRow(t0) {
2692
2783
  const $ = _c(11);
2693
2784
  const {
@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
4
4
  import { isImageGeneration } from '../../logic/generated-image.js';
5
5
  import { ForksRow } from './ForksRow.js';
6
6
  import { GeneratedImageRow } from './GeneratedImageRow.js';
7
- import { AgentTurnRow, ApprovalHistoryRow, AssistantRow, CompactionRow, LiveThoughtRow, NoteRow, QuestionHistoryRow, ReportRow, SelectionSwitchRow, SentByAgentRow, SentMessageRow, ThinkingRow, UnknownRow, UserRow } from './MessageRows.js';
7
+ import { AgentTurnRow, ApprovalHistoryRow, AssistantRow, CompactionRow, LiveThoughtRow, NoteRow, QuestionHistoryRow, ReportRow, SecretRow, SelectionSwitchRow, SentByAgentRow, SentMessageRow, ThinkingRow, UnknownRow, UserRow } from './MessageRows.js';
8
8
  import { SubagentBranchRow } from './SubagentRow.js';
9
9
  import { VisualRow } from './VisualRow.js';
10
10
  import { WorkflowRow } from './WorkflowRow.js';
@@ -70,7 +70,7 @@ function AppCardRow(t0) {
70
70
  }
71
71
  /* One row of a thread, the chat's own or a subagent's read back, drawn the same way in both. */
72
72
  export function Row(t0) {
73
- const $ = _c(107);
73
+ const $ = _c(109);
74
74
  const {
75
75
  row,
76
76
  chatId,
@@ -479,93 +479,107 @@ export function Row(t0) {
479
479
  }
480
480
  return t1;
481
481
  }
482
+ case "secret":
483
+ {
484
+ let t1;
485
+ if ($[90] !== row.item) {
486
+ t1 = /*#__PURE__*/_jsx(SecretRow, {
487
+ item: row.item
488
+ });
489
+ $[90] = row.item;
490
+ $[91] = t1;
491
+ } else {
492
+ t1 = $[91];
493
+ }
494
+ return t1;
495
+ }
482
496
  case "unknown":
483
497
  {
484
498
  let t1;
485
- if ($[90] !== row.id || $[91] !== row.waits) {
499
+ if ($[92] !== row.id || $[93] !== row.waits) {
486
500
  t1 = /*#__PURE__*/_jsx(UnknownRow, {
487
501
  id: row.id,
488
502
  waits: row.waits
489
503
  });
490
- $[90] = row.id;
491
- $[91] = row.waits;
492
- $[92] = t1;
504
+ $[92] = row.id;
505
+ $[93] = row.waits;
506
+ $[94] = t1;
493
507
  } else {
494
- t1 = $[92];
508
+ t1 = $[94];
495
509
  }
496
510
  return t1;
497
511
  }
498
512
  case "selection-switch":
499
513
  {
500
514
  let t1;
501
- if ($[93] !== chatId || $[94] !== row.from || $[95] !== row.to) {
515
+ if ($[95] !== chatId || $[96] !== row.from || $[97] !== row.to) {
502
516
  t1 = /*#__PURE__*/_jsx(SelectionSwitchRow, {
503
517
  chatId: chatId,
504
518
  from: row.from,
505
519
  to: row.to
506
520
  });
507
- $[93] = chatId;
508
- $[94] = row.from;
509
- $[95] = row.to;
510
- $[96] = t1;
521
+ $[95] = chatId;
522
+ $[96] = row.from;
523
+ $[97] = row.to;
524
+ $[98] = t1;
511
525
  } else {
512
- t1 = $[96];
526
+ t1 = $[98];
513
527
  }
514
528
  return t1;
515
529
  }
516
530
  case "working":
517
531
  {
518
532
  let t1;
519
- if ($[97] !== row.tool) {
533
+ if ($[99] !== row.tool) {
520
534
  t1 = row.tool === undefined ? {} : {
521
535
  tool: row.tool
522
536
  };
523
- $[97] = row.tool;
524
- $[98] = t1;
537
+ $[99] = row.tool;
538
+ $[100] = t1;
525
539
  } else {
526
- t1 = $[98];
540
+ t1 = $[100];
527
541
  }
528
542
  let t2;
529
- if ($[99] !== row.startedAt || $[100] !== t1) {
543
+ if ($[101] !== row.startedAt || $[102] !== t1) {
530
544
  t2 = /*#__PURE__*/_jsx(WorkingRow, {
531
545
  startedAt: row.startedAt,
532
546
  ...t1
533
547
  });
534
- $[99] = row.startedAt;
535
- $[100] = t1;
536
- $[101] = t2;
548
+ $[101] = row.startedAt;
549
+ $[102] = t1;
550
+ $[103] = t2;
537
551
  } else {
538
- t2 = $[101];
552
+ t2 = $[103];
539
553
  }
540
554
  return t2;
541
555
  }
542
556
  case "app-card":
543
557
  {
544
558
  let t1;
545
- if ($[102] !== row.card) {
559
+ if ($[104] !== row.card) {
546
560
  t1 = /*#__PURE__*/_jsx(AppCardRow, {
547
561
  card: row.card
548
562
  });
549
- $[102] = row.card;
550
- $[103] = t1;
563
+ $[104] = row.card;
564
+ $[105] = t1;
551
565
  } else {
552
- t1 = $[103];
566
+ t1 = $[105];
553
567
  }
554
568
  return t1;
555
569
  }
556
570
  case "visual":
557
571
  {
558
572
  let t1;
559
- if ($[104] !== chatId || $[105] !== row.visual) {
573
+ if ($[106] !== chatId || $[107] !== row.visual) {
560
574
  t1 = /*#__PURE__*/_jsx(VisualRow, {
561
575
  chatId: chatId,
562
576
  visual: row.visual
563
577
  });
564
- $[104] = chatId;
565
- $[105] = row.visual;
566
- $[106] = t1;
578
+ $[106] = chatId;
579
+ $[107] = row.visual;
580
+ $[108] = t1;
567
581
  } else {
568
- t1 = $[106];
582
+ t1 = $[108];
569
583
  }
570
584
  return t1;
571
585
  }
@@ -1,4 +1,4 @@
1
- import type { AgentKind, ChatAttachment, ChatCheckpointDiff, ChatConfigurePayload, ChatGoalAction, ChatSubagentItem, ChatUiChoicePayload, ChatUiQueryPayload, ChatUiQueryReading, ChatUiLinkPayload, ChatUiLinkReading, ChatVisual, ProviderPlatform } from '@adecore/agent-contracts';
1
+ import type { AgentKind, ChatAttachment, ChatCheckpointDiff, ChatConfigurePayload, ChatGoalAction, ChatSubagentItem, ChatUiChoicePayload, ChatUiDiffPayload, ChatUiDiffReading, ChatUiQueryPayload, ChatUiQueryReading, ChatUiLinkPayload, ChatUiLinkReading, ChatVisual, ProviderPlatform } from '@adecore/agent-contracts';
2
2
  import type { EditorEngine } from '@adecore/editor';
3
3
  import type { Extension } from '@codemirror/state';
4
4
  import type { EditorView } from '@codemirror/view';
@@ -324,6 +324,7 @@ export interface ChatHost {
324
324
  subscribe?(scopeId: string, chatId: string, changed: () => void): () => void;
325
325
  link?(scopeId: string, payload: ChatUiLinkPayload): Promise<ChatUiLinkReading>;
326
326
  openLink?(scopeId: string, reading: ChatUiLinkReading): void;
327
+ diff?(scopeId: string, payload: ChatUiDiffPayload): Promise<ChatUiDiffReading>;
327
328
  openUrl?(scopeId: string, url: string): void;
328
329
  query?(scopeId: string, payload: ChatUiQueryPayload): Promise<ChatUiQueryReading>;
329
330
  sendChoice(scopeId: string, payload: ChatUiChoicePayload): Promise<'sent' | 'queued'>;
@@ -1,4 +1,4 @@
1
- import type { ChatApprovalItem, ChatAssistantItem, ChatCheckpointDiff, ChatNoteMessage, ChatQuestionItem, ChatSubagentItem, ChatThinkingItem, ChatToolItem, ChatUnknownItem, ChatUserItem, ChatVisual, ChatWorkflow, ModelSelection } from '@adecore/agent-contracts';
1
+ import type { ChatApprovalItem, ChatAssistantItem, ChatCheckpointDiff, ChatNoteMessage, ChatQuestionItem, ChatSecretItem, ChatSubagentItem, ChatThinkingItem, ChatToolItem, ChatUnknownItem, ChatUserItem, ChatVisual, ChatWorkflow, ModelSelection } from '@adecore/agent-contracts';
2
2
  import type { ChatThreadItem, ChatThreadTurn } from '../chat-sink.js';
3
3
  import type { CommandLook, CommandLookSent, ThreadCard, ToolLook } from './host.js';
4
4
  export type Look = CommandLook | ToolLook;
@@ -91,6 +91,10 @@ export type TimelineRow = {
91
91
  id: string;
92
92
  preTokens: number | null;
93
93
  postTokens?: number;
94
+ } | {
95
+ kind: 'secret';
96
+ id: string;
97
+ item: ChatSecretItem;
94
98
  } | {
95
99
  kind: 'unknown';
96
100
  id: string;
@@ -192,6 +192,12 @@ declare const _default: {
192
192
  notAnswered: string;
193
193
  dismissed: string;
194
194
  };
195
+ secret: {
196
+ saved: string;
197
+ declined: string;
198
+ 'timed-out': string;
199
+ cancelled: string;
200
+ };
195
201
  subagent: {
196
202
  task: string;
197
203
  label: string;
@@ -713,11 +719,66 @@ declare const _default: {
713
719
  stat: {
714
720
  change: string;
715
721
  from: string;
722
+ trend: string;
723
+ };
724
+ node: {
725
+ status: {
726
+ running: string;
727
+ needsYou: string;
728
+ done: string;
729
+ };
730
+ };
731
+ meter: {
732
+ label: string;
733
+ reading: string;
734
+ of: string;
735
+ mark: string;
736
+ };
737
+ parts: {
738
+ label: string;
739
+ part: string;
716
740
  };
717
741
  table: {
718
742
  label: string;
719
743
  showAll: string;
720
744
  };
745
+ changes: {
746
+ label_one: string;
747
+ label_other: string;
748
+ added_one: string;
749
+ added_other: string;
750
+ removed_one: string;
751
+ removed_other: string;
752
+ state: {
753
+ added: string;
754
+ modified: string;
755
+ deleted: string;
756
+ renamed: string;
757
+ };
758
+ };
759
+ diff: {
760
+ label: string;
761
+ unchanged: string;
762
+ partial: string;
763
+ showAll: string;
764
+ unavailable: string;
765
+ };
766
+ alternatives: {
767
+ label_one: string;
768
+ label_other: string;
769
+ recommended: string;
770
+ pro: string;
771
+ con: string;
772
+ };
773
+ tree: {
774
+ label: string;
775
+ };
776
+ numberField: {
777
+ between: string;
778
+ atLeast: string;
779
+ atMost: string;
780
+ number: string;
781
+ };
721
782
  chart: {
722
783
  values: string;
723
784
  summary: string;
@@ -806,6 +867,7 @@ declare const _default: {
806
867
  'access-unavailable': string;
807
868
  'block-stale': string;
808
869
  busy: string;
870
+ 'diffs-unsupported': string;
809
871
  'link-unchecked': string;
810
872
  'link-unsupported': string;
811
873
  'links-unsupported': string;
@@ -192,6 +192,12 @@ export default {
192
192
  notAnswered: '(not answered)',
193
193
  dismissed: '(dismissed)'
194
194
  },
195
+ secret: {
196
+ saved: 'Saved',
197
+ declined: 'Declined',
198
+ 'timed-out': 'Not answered in time',
199
+ cancelled: 'No longer needed'
200
+ },
195
201
  subagent: {
196
202
  task: 'Task',
197
203
  label: 'Sub-agent',
@@ -712,12 +718,67 @@ export default {
712
718
  },
713
719
  stat: {
714
720
  change: '{{change}} from {{previous}}',
715
- 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}}'
716
740
  },
717
741
  table: {
718
742
  label: 'Table of {{columns}}',
719
743
  showAll: 'Show all {{total}} rows'
720
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
+ },
721
782
  chart: {
722
783
  values: 'Values',
723
784
  summary: '{{count}} values, highest {{label}} at {{value}}',
@@ -806,6 +867,7 @@ export default {
806
867
  'access-unavailable': 'The chat that made this no longer has access.',
807
868
  'block-stale': 'This block changed since it was drawn.',
808
869
  busy: 'Too many live blocks reading.',
870
+ 'diffs-unsupported': 'The machine does not show diffs in blocks.',
809
871
  'link-unchecked': 'This link has to be checked again.',
810
872
  'link-unsupported': 'The machine cannot open this link.',
811
873
  'links-unsupported': 'The machine does not open links from blocks.',
@@ -192,6 +192,12 @@ declare const _default: {
192
192
  notAnswered: string;
193
193
  dismissed: string;
194
194
  };
195
+ secret: {
196
+ saved: string;
197
+ declined: string;
198
+ 'timed-out': string;
199
+ cancelled: string;
200
+ };
195
201
  subagent: {
196
202
  task: string;
197
203
  label: string;
@@ -713,11 +719,66 @@ declare const _default: {
713
719
  stat: {
714
720
  change: string;
715
721
  from: string;
722
+ trend: string;
723
+ };
724
+ node: {
725
+ status: {
726
+ running: string;
727
+ needsYou: string;
728
+ done: string;
729
+ };
730
+ };
731
+ meter: {
732
+ label: string;
733
+ reading: string;
734
+ of: string;
735
+ mark: string;
736
+ };
737
+ parts: {
738
+ label: string;
739
+ part: string;
716
740
  };
717
741
  table: {
718
742
  label: string;
719
743
  showAll: string;
720
744
  };
745
+ changes: {
746
+ label_one: string;
747
+ label_other: string;
748
+ added_one: string;
749
+ added_other: string;
750
+ removed_one: string;
751
+ removed_other: string;
752
+ state: {
753
+ added: string;
754
+ modified: string;
755
+ deleted: string;
756
+ renamed: string;
757
+ };
758
+ };
759
+ diff: {
760
+ label: string;
761
+ unchanged: string;
762
+ partial: string;
763
+ showAll: string;
764
+ unavailable: string;
765
+ };
766
+ alternatives: {
767
+ label_one: string;
768
+ label_other: string;
769
+ recommended: string;
770
+ pro: string;
771
+ con: string;
772
+ };
773
+ tree: {
774
+ label: string;
775
+ };
776
+ numberField: {
777
+ between: string;
778
+ atLeast: string;
779
+ atMost: string;
780
+ number: string;
781
+ };
721
782
  chart: {
722
783
  values: string;
723
784
  summary: string;
@@ -806,6 +867,7 @@ declare const _default: {
806
867
  'access-unavailable': string;
807
868
  'block-stale': string;
808
869
  busy: string;
870
+ 'diffs-unsupported': string;
809
871
  'link-unchecked': string;
810
872
  'link-unsupported': string;
811
873
  'links-unsupported': string;
@@ -192,6 +192,12 @@ export default {
192
192
  notAnswered: '(niet beantwoord)',
193
193
  dismissed: '(weggeklikt)'
194
194
  },
195
+ secret: {
196
+ saved: 'Opgeslagen',
197
+ declined: 'Geweigerd',
198
+ 'timed-out': 'Niet op tijd beantwoord',
199
+ cancelled: 'Niet meer nodig'
200
+ },
195
201
  subagent: {
196
202
  task: 'Taak',
197
203
  label: 'Sub-agent',
@@ -712,12 +718,67 @@ export default {
712
718
  },
713
719
  stat: {
714
720
  change: '{{change}} vanaf {{previous}}',
715
- 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}}'
716
740
  },
717
741
  table: {
718
742
  label: 'Tabel van {{columns}}',
719
743
  showAll: 'Alle {{total}} rijen tonen'
720
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
+ },
721
782
  chart: {
722
783
  values: 'Waarden',
723
784
  summary: '{{count}} waarden, hoogste {{label}} met {{value}}',
@@ -806,6 +867,7 @@ export default {
806
867
  'access-unavailable': 'De chat die dit maakte heeft geen toegang meer.',
807
868
  'block-stale': 'Dit blok is veranderd sinds het getekend werd.',
808
869
  busy: 'Er lezen te veel live blokken tegelijk.',
870
+ 'diffs-unsupported': 'De machine toont geen diffs in blokken.',
809
871
  'link-unchecked': 'Deze link moet opnieuw gecontroleerd worden.',
810
872
  'link-unsupported': 'De machine kan deze link niet openen.',
811
873
  'links-unsupported': 'De machine opent geen links uit blokken.',
package/dist/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) {