@uipath/apollo-react 7.6.0 → 7.7.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 (67) hide show
  1. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  2. package/dist/chat/headless/hooks/use-attachment-intake.cjs +39 -8
  3. package/dist/chat/headless/hooks/use-attachment-intake.d.ts +8 -1
  4. package/dist/chat/headless/hooks/use-attachment-intake.d.ts.map +1 -1
  5. package/dist/chat/headless/hooks/use-attachment-intake.js +35 -7
  6. package/dist/chat/headless/hooks/use-attachment-limits.cjs +35 -1
  7. package/dist/chat/headless/hooks/use-attachment-limits.d.ts +6 -0
  8. package/dist/chat/headless/hooks/use-attachment-limits.d.ts.map +1 -1
  9. package/dist/chat/headless/hooks/use-attachment-limits.js +32 -1
  10. package/dist/chat/headless/providers/attachments-provider.cjs +20 -10
  11. package/dist/chat/headless/providers/attachments-provider.d.ts +1 -0
  12. package/dist/chat/headless/providers/attachments-provider.d.ts.map +1 -1
  13. package/dist/chat/headless/providers/attachments-provider.js +20 -10
  14. package/dist/chat/locales/en.cjs +1 -1
  15. package/dist/chat/locales/en.d.ts.map +1 -1
  16. package/dist/chat/locales/en.js +1 -1
  17. package/dist/chat/stories/chat-story-fixtures.d.ts +1 -1
  18. package/dist/chat/stories/chat-story-fixtures.d.ts.map +1 -1
  19. package/dist/chat/styles/tailwind.chat.css +1 -1
  20. package/dist/chat/wind/composer/chat-composer.cjs +1 -3
  21. package/dist/chat/wind/composer/chat-composer.d.ts.map +1 -1
  22. package/dist/chat/wind/composer/chat-composer.js +2 -4
  23. package/dist/chat/wind/composer/chat-dropzone.cjs +29 -25
  24. package/dist/chat/wind/composer/chat-dropzone.d.ts +1 -1
  25. package/dist/chat/wind/composer/chat-dropzone.d.ts.map +1 -1
  26. package/dist/chat/wind/composer/chat-dropzone.js +20 -26
  27. package/dist/chat/wind/history/chat-history.d.ts.map +1 -1
  28. package/dist/chat/wind/history/history-panel.cjs +18 -7
  29. package/dist/chat/wind/history/history-panel.d.ts.map +1 -1
  30. package/dist/chat/wind/history/history-panel.js +19 -8
  31. package/dist/chat/wind/layout/full-screen-layout.cjs +0 -6
  32. package/dist/chat/wind/layout/full-screen-layout.d.ts.map +1 -1
  33. package/dist/chat/wind/layout/full-screen-layout.js +0 -6
  34. package/dist/chat/wind/layout/regions.cjs +1 -1
  35. package/dist/chat/wind/layout/regions.js +1 -1
  36. package/dist/chat/wind/messages/message-attachments.cjs +3 -20
  37. package/dist/chat/wind/messages/message-attachments.d.ts +0 -4
  38. package/dist/chat/wind/messages/message-attachments.d.ts.map +1 -1
  39. package/dist/chat/wind/messages/message-attachments.js +2 -10
  40. package/dist/chat/wind/messages/message-list.cjs +4 -0
  41. package/dist/chat/wind/messages/message-list.d.ts.map +1 -1
  42. package/dist/chat/wind/messages/message-list.js +4 -0
  43. package/dist/chat/wind/renderers/chat-code-block.cjs +169 -0
  44. package/dist/chat/wind/renderers/chat-code-block.d.ts +10 -0
  45. package/dist/chat/wind/renderers/chat-code-block.d.ts.map +1 -0
  46. package/dist/chat/wind/renderers/chat-code-block.js +125 -0
  47. package/dist/chat/wind/renderers/markdown-renderer.cjs +4 -3
  48. package/dist/chat/wind/renderers/markdown-renderer.d.ts.map +1 -1
  49. package/dist/chat/wind/renderers/markdown-renderer.js +4 -3
  50. package/dist/chat/wind/renderers/tool-call-renderer.cjs +13 -17
  51. package/dist/chat/wind/renderers/tool-call-renderer.d.ts.map +1 -1
  52. package/dist/chat/wind/renderers/tool-call-renderer.js +13 -17
  53. package/dist/chat/wind/renderers/tree-renderer.cjs +14 -9
  54. package/dist/chat/wind/renderers/tree-renderer.d.ts.map +1 -1
  55. package/dist/chat/wind/renderers/tree-renderer.js +13 -8
  56. package/dist/material/components/ap-chat/components/dropzone/dropzone.cjs +9 -31
  57. package/dist/material/components/ap-chat/components/dropzone/dropzone.d.ts.map +1 -1
  58. package/dist/material/components/ap-chat/components/dropzone/dropzone.js +9 -31
  59. package/package.json +1 -1
  60. package/dist/chat/wind/renderers/code-block-actions.cjs +0 -176
  61. package/dist/chat/wind/renderers/code-block-actions.d.ts +0 -9
  62. package/dist/chat/wind/renderers/code-block-actions.d.ts.map +0 -1
  63. package/dist/chat/wind/renderers/code-block-actions.js +0 -132
  64. package/dist/chat/wind/renderers/disclosure-tree.cjs +0 -136
  65. package/dist/chat/wind/renderers/disclosure-tree.d.ts +0 -22
  66. package/dist/chat/wind/renderers/disclosure-tree.d.ts.map +0 -1
  67. package/dist/chat/wind/renderers/disclosure-tree.js +0 -92
@@ -33,9 +33,10 @@ var __webpack_require__ = {};
33
33
  var __webpack_exports__ = {};
34
34
  __webpack_require__.r(__webpack_exports__);
35
35
  __webpack_require__.d(__webpack_exports__, {
36
- useAttachmentIntake: ()=>useAttachmentIntake,
37
36
  checkAttachmentFiles: ()=>checkAttachmentFiles,
38
- getAcceptedFileTypes: ()=>getAcceptedFileTypes
37
+ useAttachmentIntake: ()=>useAttachmentIntake,
38
+ getAcceptedFileTypes: ()=>getAcceptedFileTypes,
39
+ dropAttachedFiles: ()=>dropAttachedFiles
39
40
  });
40
41
  const react_namespaceObject = require("@lingui/react");
41
42
  const external_react_namespaceObject = require("react");
@@ -52,7 +53,7 @@ function getAcceptedFileTypes(types) {
52
53
  }
53
54
  function checkAttachmentFiles(files, allowed, existingCount = 0) {
54
55
  const accept = getAcceptedFileTypes(allowed.types).map((entry)=>entry.toLowerCase());
55
- const remaining = void 0 === allowed.maxCount ? 1 / 0 : allowed.maxCount - existingCount;
56
+ const remaining = allowed.maxCount ? allowed.maxCount - existingCount : 1 / 0;
56
57
  const accepted = [];
57
58
  const rejected = [];
58
59
  for (const file of files){
@@ -77,15 +78,39 @@ function checkAttachmentFiles(files, allowed, existingCount = 0) {
77
78
  rejected
78
79
  };
79
80
  }
81
+ const sameFile = (a, b)=>a.name === b.name && a.size === b.size;
82
+ function dropAttachedFiles(accepted, rejected, draft, maxCount) {
83
+ const seen = [
84
+ ...draft
85
+ ];
86
+ const isNew = (file)=>{
87
+ if (seen.some((other)=>sameFile(other, file))) return false;
88
+ seen.push(file);
89
+ return true;
90
+ };
91
+ const candidates = [
92
+ ...accepted,
93
+ ...rejected.filter(({ reason })=>'count' === reason).map(({ file })=>file)
94
+ ].filter(isNew);
95
+ const free = maxCount ? Math.max(0, maxCount - draft.length) : 1 / 0;
96
+ return {
97
+ accepted: candidates.slice(0, free),
98
+ rejected: [
99
+ ...rejected.filter(({ reason, file })=>'count' !== reason && !draft.some((other)=>sameFile(other, file))),
100
+ ...candidates.slice(free).map((file)=>({
101
+ file,
102
+ reason: 'count'
103
+ }))
104
+ ]
105
+ };
106
+ }
80
107
  function useAttachmentIntake() {
81
108
  const { _ } = (0, react_namespaceObject.useLingui)();
82
- const { addAttachments, attachments } = (0, attachments_provider_cjs_namespaceObject.useAttachments)();
109
+ const { addAttachments, getAttachments } = (0, attachments_provider_cjs_namespaceObject.useAttachments)();
83
110
  const { setError } = (0, error_provider_cjs_namespaceObject.useError)();
84
111
  const { allowedAttachments } = (0, chat_state_provider_cjs_namespaceObject.useChatState)();
85
- const attachmentsCount = external_react_default().useRef(attachments.length);
86
- attachmentsCount.current = attachments.length;
87
112
  const handleRejections = external_react_default().useCallback((parsedFiles, rejections)=>{
88
- if (!allowedAttachments.multiple && (parsedFiles.length > 1 || attachmentsCount.current > 0 || rejections.length > 1)) {
113
+ if (!allowedAttachments.multiple && (parsedFiles.length > 1 || parsedFiles.length > 0 && getAttachments().length > 0 || rejections.length > 1)) {
89
114
  setError(_({
90
115
  id: 'autopilot-chat.error.multiple-files'
91
116
  }));
@@ -127,12 +152,14 @@ function useAttachmentIntake() {
127
152
  }, [
128
153
  _,
129
154
  setError,
155
+ getAttachments,
130
156
  allowedAttachments.maxCount,
131
157
  allowedAttachments.maxSize,
132
158
  allowedAttachments.multiple
133
159
  ]);
134
- return external_react_default().useCallback(async (accepted, rejected)=>{
160
+ return external_react_default().useCallback(async (checked, checkRejected)=>{
135
161
  try {
162
+ const { accepted, rejected } = dropAttachedFiles(checked, checkRejected, getAttachments(), allowedAttachments.maxCount);
136
163
  const parsedFiles = await (0, file_reader_cjs_namespaceObject.parseFiles)(accepted);
137
164
  if (handleRejections(parsedFiles, rejected)) return;
138
165
  if (0 === rejected.length) setError(void 0);
@@ -145,16 +172,20 @@ function useAttachmentIntake() {
145
172
  }
146
173
  }, [
147
174
  addAttachments,
175
+ getAttachments,
148
176
  setError,
177
+ allowedAttachments.maxCount,
149
178
  allowedAttachments.multiple,
150
179
  handleRejections
151
180
  ]);
152
181
  }
153
182
  exports.checkAttachmentFiles = __webpack_exports__.checkAttachmentFiles;
183
+ exports.dropAttachedFiles = __webpack_exports__.dropAttachedFiles;
154
184
  exports.getAcceptedFileTypes = __webpack_exports__.getAcceptedFileTypes;
155
185
  exports.useAttachmentIntake = __webpack_exports__.useAttachmentIntake;
156
186
  for(var __rspack_i in __webpack_exports__)if (-1 === [
157
187
  "checkAttachmentFiles",
188
+ "dropAttachedFiles",
158
189
  "getAcceptedFileTypes",
159
190
  "useAttachmentIntake"
160
191
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
@@ -9,5 +9,12 @@ export declare function checkAttachmentFiles(files: readonly File[], allowed: Au
9
9
  accepted: File[];
10
10
  rejected: ChatAttachmentRejection[];
11
11
  };
12
- export declare function useAttachmentIntake(): (accepted: File[], rejected: ChatAttachmentRejection[]) => Promise<void>;
12
+ export declare function dropAttachedFiles(accepted: readonly File[], rejected: readonly ChatAttachmentRejection[], draft: readonly {
13
+ name: string;
14
+ size: number;
15
+ }[], maxCount: number | undefined): {
16
+ accepted: File[];
17
+ rejected: ChatAttachmentRejection[];
18
+ };
19
+ export declare function useAttachmentIntake(): (checked: File[], checkRejected: ChatAttachmentRejection[]) => Promise<void>;
13
20
  //# sourceMappingURL=use-attachment-intake.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-attachment-intake.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/hooks/use-attachment-intake.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,+BAA+B,EAAyB,MAAM,eAAe,CAAC;AAU5F,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEhF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,6BAA6B,CAAC;CACvC;AAMD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,CAE9F;AAMD,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,IAAI,EAAE,EACtB,OAAO,EAAE,+BAA+B,EACxC,aAAa,SAAI,GAChB;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,uBAAuB,EAAE,CAAA;CAAE,CAyB3D;AAQD,wBAAgB,mBAAmB,eA8Ed,IAAI,EAAE,YAAY,uBAAuB,EAAE,mBAoB/D"}
1
+ {"version":3,"file":"use-attachment-intake.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/hooks/use-attachment-intake.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,+BAA+B,EAAyB,MAAM,eAAe,CAAC;AAU5F,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEhF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,6BAA6B,CAAC;CACvC;AAMD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,CAE9F;AAOD,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,IAAI,EAAE,EACtB,OAAO,EAAE,+BAA+B,EACxC,aAAa,SAAI,GAChB;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,uBAAuB,EAAE,CAAA;CAAE,CAwB3D;AAUD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,IAAI,EAAE,EACzB,QAAQ,EAAE,SAAS,uBAAuB,EAAE,EAC5C,KAAK,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,EAChD,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,uBAAuB,EAAE,CAAA;CAAE,CAsB3D;AASD,wBAAgB,mBAAmB,cA+Ef,IAAI,EAAE,iBAAiB,uBAAuB,EAAE,mBAiCnE"}
@@ -12,7 +12,7 @@ function getAcceptedFileTypes(types) {
12
12
  }
13
13
  function checkAttachmentFiles(files, allowed, existingCount = 0) {
14
14
  const accept = getAcceptedFileTypes(allowed.types).map((entry)=>entry.toLowerCase());
15
- const remaining = void 0 === allowed.maxCount ? 1 / 0 : allowed.maxCount - existingCount;
15
+ const remaining = allowed.maxCount ? allowed.maxCount - existingCount : 1 / 0;
16
16
  const accepted = [];
17
17
  const rejected = [];
18
18
  for (const file of files){
@@ -37,15 +37,39 @@ function checkAttachmentFiles(files, allowed, existingCount = 0) {
37
37
  rejected
38
38
  };
39
39
  }
40
+ const sameFile = (a, b)=>a.name === b.name && a.size === b.size;
41
+ function dropAttachedFiles(accepted, rejected, draft, maxCount) {
42
+ const seen = [
43
+ ...draft
44
+ ];
45
+ const isNew = (file)=>{
46
+ if (seen.some((other)=>sameFile(other, file))) return false;
47
+ seen.push(file);
48
+ return true;
49
+ };
50
+ const candidates = [
51
+ ...accepted,
52
+ ...rejected.filter(({ reason })=>'count' === reason).map(({ file })=>file)
53
+ ].filter(isNew);
54
+ const free = maxCount ? Math.max(0, maxCount - draft.length) : 1 / 0;
55
+ return {
56
+ accepted: candidates.slice(0, free),
57
+ rejected: [
58
+ ...rejected.filter(({ reason, file })=>'count' !== reason && !draft.some((other)=>sameFile(other, file))),
59
+ ...candidates.slice(free).map((file)=>({
60
+ file,
61
+ reason: 'count'
62
+ }))
63
+ ]
64
+ };
65
+ }
40
66
  function useAttachmentIntake() {
41
67
  const { _ } = useLingui();
42
- const { addAttachments, attachments } = useAttachments();
68
+ const { addAttachments, getAttachments } = useAttachments();
43
69
  const { setError } = useError();
44
70
  const { allowedAttachments } = useChatState();
45
- const attachmentsCount = react.useRef(attachments.length);
46
- attachmentsCount.current = attachments.length;
47
71
  const handleRejections = react.useCallback((parsedFiles, rejections)=>{
48
- if (!allowedAttachments.multiple && (parsedFiles.length > 1 || attachmentsCount.current > 0 || rejections.length > 1)) {
72
+ if (!allowedAttachments.multiple && (parsedFiles.length > 1 || parsedFiles.length > 0 && getAttachments().length > 0 || rejections.length > 1)) {
49
73
  setError(_({
50
74
  id: 'autopilot-chat.error.multiple-files'
51
75
  }));
@@ -87,12 +111,14 @@ function useAttachmentIntake() {
87
111
  }, [
88
112
  _,
89
113
  setError,
114
+ getAttachments,
90
115
  allowedAttachments.maxCount,
91
116
  allowedAttachments.maxSize,
92
117
  allowedAttachments.multiple
93
118
  ]);
94
- return react.useCallback(async (accepted, rejected)=>{
119
+ return react.useCallback(async (checked, checkRejected)=>{
95
120
  try {
121
+ const { accepted, rejected } = dropAttachedFiles(checked, checkRejected, getAttachments(), allowedAttachments.maxCount);
96
122
  const parsedFiles = await parseFiles(accepted);
97
123
  if (handleRejections(parsedFiles, rejected)) return;
98
124
  if (0 === rejected.length) setError(void 0);
@@ -105,9 +131,11 @@ function useAttachmentIntake() {
105
131
  }
106
132
  }, [
107
133
  addAttachments,
134
+ getAttachments,
108
135
  setError,
136
+ allowedAttachments.maxCount,
109
137
  allowedAttachments.multiple,
110
138
  handleRejections
111
139
  ]);
112
140
  }
113
- export { checkAttachmentFiles, getAcceptedFileTypes, useAttachmentIntake };
141
+ export { checkAttachmentFiles, dropAttachedFiles, getAcceptedFileTypes, useAttachmentIntake };
@@ -33,6 +33,7 @@ var __webpack_require__ = {};
33
33
  var __webpack_exports__ = {};
34
34
  __webpack_require__.r(__webpack_exports__);
35
35
  __webpack_require__.d(__webpack_exports__, {
36
+ useDropzoneLimitHints: ()=>useDropzoneLimitHints,
36
37
  useAttachmentLimits: ()=>useAttachmentLimits
37
38
  });
38
39
  const react_namespaceObject = require("@lingui/react");
@@ -68,9 +69,42 @@ function useAttachmentLimits(allowed) {
68
69
  allowed
69
70
  ]);
70
71
  }
72
+ function useDropzoneLimitHints(allowed) {
73
+ const { _ } = (0, react_namespaceObject.useLingui)();
74
+ return external_react_default().useMemo(()=>{
75
+ const maxCount = allowed.maxCount;
76
+ const maxSize = allowed.maxSize / 1024 / 1024;
77
+ const fileTypes = Object.values(allowed.types).flat().join(', ');
78
+ return {
79
+ countHint: maxCount && maxCount > 1 && allowed.multiple ? _({
80
+ id: 'autopilot-chat.dropzone.overlay-max-count',
81
+ values: {
82
+ maxCount: maxCount
83
+ }
84
+ }) : '',
85
+ sizeHint: _({
86
+ id: 'autopilot-chat.dropzone.overlay-max-size',
87
+ values: {
88
+ maxSize: maxSize
89
+ }
90
+ }),
91
+ typesHint: _({
92
+ id: 'autopilot-chat.dropzone.allowed-file-types',
93
+ values: {
94
+ fileTypes: fileTypes
95
+ }
96
+ })
97
+ };
98
+ }, [
99
+ _,
100
+ allowed
101
+ ]);
102
+ }
71
103
  exports.useAttachmentLimits = __webpack_exports__.useAttachmentLimits;
104
+ exports.useDropzoneLimitHints = __webpack_exports__.useDropzoneLimitHints;
72
105
  for(var __rspack_i in __webpack_exports__)if (-1 === [
73
- "useAttachmentLimits"
106
+ "useAttachmentLimits",
107
+ "useDropzoneLimitHints"
74
108
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
75
109
  Object.defineProperty(exports, '__esModule', {
76
110
  value: true
@@ -1,3 +1,9 @@
1
1
  import type { AutopilotChatAllowedAttachments } from '../../service';
2
2
  export declare function useAttachmentLimits(allowed: AutopilotChatAllowedAttachments): string[];
3
+ export interface DropzoneLimitHints {
4
+ countHint: string;
5
+ sizeHint: string;
6
+ typesHint: string;
7
+ }
8
+ export declare function useDropzoneLimitHints(allowed: AutopilotChatAllowedAttachments): DropzoneLimitHints;
3
9
  //# sourceMappingURL=use-attachment-limits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-attachment-limits.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/hooks/use-attachment-limits.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAMrE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,+BAA+B,GAAG,MAAM,EAAE,CAkCtF"}
1
+ {"version":3,"file":"use-attachment-limits.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/hooks/use-attachment-limits.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAMrE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,+BAA+B,GAAG,MAAM,EAAE,CAkCtF;AAED,MAAM,WAAW,kBAAkB;IAEjC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,+BAA+B,GACvC,kBAAkB,CA+BpB"}
@@ -30,4 +30,35 @@ function useAttachmentLimits(allowed) {
30
30
  allowed
31
31
  ]);
32
32
  }
33
- export { useAttachmentLimits };
33
+ function useDropzoneLimitHints(allowed) {
34
+ const { _ } = useLingui();
35
+ return react.useMemo(()=>{
36
+ const maxCount = allowed.maxCount;
37
+ const maxSize = allowed.maxSize / 1024 / 1024;
38
+ const fileTypes = Object.values(allowed.types).flat().join(', ');
39
+ return {
40
+ countHint: maxCount && maxCount > 1 && allowed.multiple ? _({
41
+ id: 'autopilot-chat.dropzone.overlay-max-count',
42
+ values: {
43
+ maxCount: maxCount
44
+ }
45
+ }) : '',
46
+ sizeHint: _({
47
+ id: 'autopilot-chat.dropzone.overlay-max-size',
48
+ values: {
49
+ maxSize: maxSize
50
+ }
51
+ }),
52
+ typesHint: _({
53
+ id: 'autopilot-chat.dropzone.allowed-file-types',
54
+ values: {
55
+ fileTypes: fileTypes
56
+ }
57
+ })
58
+ };
59
+ }, [
60
+ _,
61
+ allowed
62
+ ]);
63
+ }
64
+ export { useAttachmentLimits, useDropzoneLimitHints };
@@ -49,6 +49,7 @@ const external_chat_state_provider_cjs_namespaceObject = require("./chat-state-p
49
49
  const external_error_provider_cjs_namespaceObject = require("./error-provider.cjs");
50
50
  const AutopilotAttachmentsContext = /*#__PURE__*/ external_react_default().createContext({
51
51
  attachments: [],
52
+ getAttachments: ()=>[],
52
53
  attachmentsLoading: [],
53
54
  addAttachments: ()=>{},
54
55
  removeAttachment: ()=>{},
@@ -63,6 +64,12 @@ function AutopilotAttachmentsProvider({ children }) {
63
64
  const [attachments, setAttachments] = external_react_default().useState(prompt?.attachments ?? []);
64
65
  const [attachmentsLoading, setAttachmentsLoading] = external_react_default().useState([]);
65
66
  const attachmentsRef = external_react_default().useRef(attachments);
67
+ const latestRef = external_react_default().useRef(attachments);
68
+ const update = external_react_default().useCallback((next)=>{
69
+ latestRef.current = next;
70
+ setAttachments(next);
71
+ }, []);
72
+ const getAttachments = external_react_default().useCallback(()=>latestRef.current, []);
66
73
  external_react_default().useEffect(()=>{
67
74
  const currentAttachmentsWithoutContent = attachmentsRef.current.map(({ content: _content, ...rest })=>rest);
68
75
  const newAttachmentsWithoutContent = attachments.map(({ content: _content, ...rest })=>rest);
@@ -83,9 +90,10 @@ function AutopilotAttachmentsProvider({ children }) {
83
90
  chatService
84
91
  ]);
85
92
  const addAttachments = external_react_default().useCallback((newFiles)=>{
93
+ const current = latestRef.current;
86
94
  const filesToAdd = [
87
- ...attachmentsRef.current,
88
- ...newFiles.filter((file)=>!attachmentsRef.current.some((existing)=>existing.name === file.name && existing.size === file.size))
95
+ ...current,
96
+ ...newFiles.filter((file)=>!current.some((existing)=>existing.name === file.name && existing.size === file.size))
89
97
  ];
90
98
  const totalCount = filesToAdd.length;
91
99
  if (allowedAttachments.maxCount && totalCount > allowedAttachments.maxCount) return void setError(_({
@@ -97,19 +105,20 @@ function AutopilotAttachmentsProvider({ children }) {
97
105
  if (!allowedAttachments.multiple && totalCount > 1) return void setError(_({
98
106
  id: 'autopilot-chat.error.multiple-files'
99
107
  }));
100
- setAttachments(filesToAdd);
108
+ update(filesToAdd);
101
109
  }, [
102
110
  allowedAttachments.maxCount,
103
111
  allowedAttachments.multiple,
104
112
  setError,
105
- _
113
+ _,
114
+ update
115
+ ]);
116
+ const removeAttachment = external_react_default().useCallback((name, index)=>update(latestRef.current.filter((file, i)=>i !== index || file.name !== name)), [
117
+ update
118
+ ]);
119
+ const clearAttachments = external_react_default().useCallback(()=>update([]), [
120
+ update
106
121
  ]);
107
- const removeAttachment = external_react_default().useCallback((name, index)=>{
108
- setAttachments((current)=>current.filter((file, i)=>i !== index || file.name !== name));
109
- }, []);
110
- const clearAttachments = external_react_default().useCallback(()=>{
111
- setAttachments([]);
112
- }, []);
113
122
  external_react_default().useEffect(()=>{
114
123
  if (!chatService) return;
115
124
  const unsubscribeSetAttachmentsLoading = chatService.__internalService__.on(index_cjs_namespaceObject.AutopilotChatInternalEvent.SetAttachmentsLoading, (state)=>{
@@ -130,6 +139,7 @@ function AutopilotAttachmentsProvider({ children }) {
130
139
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AutopilotAttachmentsContext.Provider, {
131
140
  value: {
132
141
  attachments,
142
+ getAttachments,
133
143
  attachmentsLoading,
134
144
  addAttachments,
135
145
  removeAttachment,
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { type AutopilotChatFileInfo } from '../../service';
3
3
  interface AutopilotAttachmentsContextType {
4
4
  attachments: AutopilotChatFileInfo[];
5
+ getAttachments: () => AutopilotChatFileInfo[];
5
6
  attachmentsLoading: AutopilotChatFileInfo[];
6
7
  addAttachments: (files: AutopilotChatFileInfo[]) => void;
7
8
  removeAttachment: (name: string, index: number) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"attachments-provider.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/providers/attachments-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,KAAK,qBAAqB,EAG3B,MAAM,eAAe,CAAC;AAMvB,UAAU,+BAA+B;IACvC,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACrC,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;IAC5C,cAAc,EAAE,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;IACzD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,2BAA2B,gDAMtC,CAAC;AAEH,wBAAgB,4BAA4B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CA0IvF;AAED,wBAAgB,cAAc,oCAQ7B"}
1
+ {"version":3,"file":"attachments-provider.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/providers/attachments-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,KAAK,qBAAqB,EAG3B,MAAM,eAAe,CAAC;AAMvB,UAAU,+BAA+B;IACvC,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAErC,cAAc,EAAE,MAAM,qBAAqB,EAAE,CAAC;IAC9C,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;IAC5C,cAAc,EAAE,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;IACzD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,2BAA2B,gDAOtC,CAAC;AAEH,wBAAgB,4BAA4B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAmJvF;AAED,wBAAgB,cAAc,oCAQ7B"}
@@ -9,6 +9,7 @@ import { useChatState } from "./chat-state-provider.js";
9
9
  import { useError } from "./error-provider.js";
10
10
  const AutopilotAttachmentsContext = /*#__PURE__*/ react.createContext({
11
11
  attachments: [],
12
+ getAttachments: ()=>[],
12
13
  attachmentsLoading: [],
13
14
  addAttachments: ()=>{},
14
15
  removeAttachment: ()=>{},
@@ -23,6 +24,12 @@ function AutopilotAttachmentsProvider({ children }) {
23
24
  const [attachments, setAttachments] = react.useState(prompt?.attachments ?? []);
24
25
  const [attachmentsLoading, setAttachmentsLoading] = react.useState([]);
25
26
  const attachmentsRef = react.useRef(attachments);
27
+ const latestRef = react.useRef(attachments);
28
+ const update = react.useCallback((next)=>{
29
+ latestRef.current = next;
30
+ setAttachments(next);
31
+ }, []);
32
+ const getAttachments = react.useCallback(()=>latestRef.current, []);
26
33
  react.useEffect(()=>{
27
34
  const currentAttachmentsWithoutContent = attachmentsRef.current.map(({ content: _content, ...rest })=>rest);
28
35
  const newAttachmentsWithoutContent = attachments.map(({ content: _content, ...rest })=>rest);
@@ -43,9 +50,10 @@ function AutopilotAttachmentsProvider({ children }) {
43
50
  chatService
44
51
  ]);
45
52
  const addAttachments = react.useCallback((newFiles)=>{
53
+ const current = latestRef.current;
46
54
  const filesToAdd = [
47
- ...attachmentsRef.current,
48
- ...newFiles.filter((file)=>!attachmentsRef.current.some((existing)=>existing.name === file.name && existing.size === file.size))
55
+ ...current,
56
+ ...newFiles.filter((file)=>!current.some((existing)=>existing.name === file.name && existing.size === file.size))
49
57
  ];
50
58
  const totalCount = filesToAdd.length;
51
59
  if (allowedAttachments.maxCount && totalCount > allowedAttachments.maxCount) return void setError(_({
@@ -57,19 +65,20 @@ function AutopilotAttachmentsProvider({ children }) {
57
65
  if (!allowedAttachments.multiple && totalCount > 1) return void setError(_({
58
66
  id: 'autopilot-chat.error.multiple-files'
59
67
  }));
60
- setAttachments(filesToAdd);
68
+ update(filesToAdd);
61
69
  }, [
62
70
  allowedAttachments.maxCount,
63
71
  allowedAttachments.multiple,
64
72
  setError,
65
- _
73
+ _,
74
+ update
75
+ ]);
76
+ const removeAttachment = react.useCallback((name, index)=>update(latestRef.current.filter((file, i)=>i !== index || file.name !== name)), [
77
+ update
78
+ ]);
79
+ const clearAttachments = react.useCallback(()=>update([]), [
80
+ update
66
81
  ]);
67
- const removeAttachment = react.useCallback((name, index)=>{
68
- setAttachments((current)=>current.filter((file, i)=>i !== index || file.name !== name));
69
- }, []);
70
- const clearAttachments = react.useCallback(()=>{
71
- setAttachments([]);
72
- }, []);
73
82
  react.useEffect(()=>{
74
83
  if (!chatService) return;
75
84
  const unsubscribeSetAttachmentsLoading = chatService.__internalService__.on(AutopilotChatInternalEvent.SetAttachmentsLoading, (state)=>{
@@ -90,6 +99,7 @@ function AutopilotAttachmentsProvider({ children }) {
90
99
  return /*#__PURE__*/ jsx(AutopilotAttachmentsContext.Provider, {
91
100
  value: {
92
101
  attachments,
102
+ getAttachments,
93
103
  attachmentsLoading,
94
104
  addAttachments,
95
105
  removeAttachment,
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  messages: ()=>messages
28
28
  });
29
- const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.loading-more":["Loading more chats"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.rename":["Rename chat"],"autopilot-chat.history.rename-input":["Chat name"],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.dictate":["Dictate"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.actions.voice-interaction":["Voice interaction"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.error.dismiss":["Dismiss"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.label":["Message"],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copied":["Copied"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.feedback":["Rate this response"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.dialog-close":["Close"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-back":["Back to content"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.html-preview":["HTML preview"],"autopilot-chat.message.list-label":["Conversation"],"autopilot-chat.message.loading-older":["Loading older messages"],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.response-received":["New response"],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.message.task-done":["Done"],"autopilot-chat.message.task-open":["Not done"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tool-call.completed":["Completed"],"autopilot-chat.tool-call.errors":["Errors"],"autopilot-chat.tool-call.escalation":["Escalation"],"autopilot-chat.tool-call.executing":["Running"],"autopilot-chat.tool-call.failed":["Failed"],"autopilot-chat.tool-call.input":["Input"],"autopilot-chat.tool-call.json.array-item":["item"],"autopilot-chat.tool-call.json.collapse":["Collapse ",["key"]],"autopilot-chat.tool-call.json.copy-path-for":["Copy path for ",["path"]],"autopilot-chat.tool-call.json.copy-path-hint":["Click to copy this path"],"autopilot-chat.tool-call.json.copy-value":["Copy value"],"autopilot-chat.tool-call.json.copy-value-of":["Copy value of ",["key"]],"autopilot-chat.tool-call.json.expand":["Expand ",["key"]],"autopilot-chat.tool-call.json.item-count":[["count","plural",{"one":["#"," item"],"other":["#"," items"]}]],"autopilot-chat.tool-call.json.key-count":[["count","plural",{"one":["#"," key"],"other":["#"," keys"]}]],"autopilot-chat.tool-call.json.path-copied":["Path copied"],"autopilot-chat.tool-call.output":["Output"],"autopilot-chat.tool-call.pending":["Pending"],"autopilot-chat.tool-call.ran":["Ran \'",["name"],"\' for ",["duration"]],"autopilot-chat.tool-call.running":["Running \'",["name"],"\'"],"autopilot-chat.tool-call.seconds":[["seconds"]," seconds"],"autopilot-chat.tool-call.task-waiting":["Waiting"],"autopilot-chat.tool-call.traces":["Traces"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
29
+ const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.loading-more":["Loading more chats"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.rename":["Rename chat"],"autopilot-chat.history.rename-input":["Chat name"],"autopilot-chat.history.search-clear":["Clear search"],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.dictate":["Dictate"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.actions.voice-interaction":["Voice interaction"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.error.dismiss":["Dismiss"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.label":["Message"],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copied":["Copied"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.feedback":["Rate this response"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.dialog-close":["Close"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-back":["Back to content"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.html-preview":["HTML preview"],"autopilot-chat.message.list-label":["Conversation"],"autopilot-chat.message.loading-older":["Loading older messages"],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.response-received":["New response"],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.message.task-done":["Done"],"autopilot-chat.message.task-open":["Not done"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tool-call.completed":["Completed"],"autopilot-chat.tool-call.errors":["Errors"],"autopilot-chat.tool-call.escalation":["Escalation"],"autopilot-chat.tool-call.executing":["Running"],"autopilot-chat.tool-call.failed":["Failed"],"autopilot-chat.tool-call.input":["Input"],"autopilot-chat.tool-call.json.array-item":["item"],"autopilot-chat.tool-call.json.collapse":["Collapse ",["key"]],"autopilot-chat.tool-call.json.copy-path-for":["Copy path for ",["path"]],"autopilot-chat.tool-call.json.copy-path-hint":["Click to copy this path"],"autopilot-chat.tool-call.json.copy-value":["Copy value"],"autopilot-chat.tool-call.json.copy-value-of":["Copy value of ",["key"]],"autopilot-chat.tool-call.json.expand":["Expand ",["key"]],"autopilot-chat.tool-call.json.item-count":[["count","plural",{"one":["#"," item"],"other":["#"," items"]}]],"autopilot-chat.tool-call.json.key-count":[["count","plural",{"one":["#"," key"],"other":["#"," keys"]}]],"autopilot-chat.tool-call.json.path-copied":["Path copied"],"autopilot-chat.tool-call.output":["Output"],"autopilot-chat.tool-call.pending":["Pending"],"autopilot-chat.tool-call.ran":["Ran \'",["name"],"\' for ",["duration"]],"autopilot-chat.tool-call.running":["Running \'",["name"],"\'"],"autopilot-chat.tool-call.seconds":[["seconds"]," seconds"],"autopilot-chat.tool-call.task-waiting":["Waiting"],"autopilot-chat.tool-call.traces":["Traces"],"autopilot-chat.tree.label":["Details"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
30
30
  exports.messages = __webpack_exports__.messages;
31
31
  for(var __rspack_i in __webpack_exports__)if (-1 === [
32
32
  "messages"
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/chat/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA6tP,QAAQ,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/chat/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAAo0P,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.loading-more":["Loading more chats"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.rename":["Rename chat"],"autopilot-chat.history.rename-input":["Chat name"],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.dictate":["Dictate"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.actions.voice-interaction":["Voice interaction"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.error.dismiss":["Dismiss"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.label":["Message"],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copied":["Copied"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.feedback":["Rate this response"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.dialog-close":["Close"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-back":["Back to content"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.html-preview":["HTML preview"],"autopilot-chat.message.list-label":["Conversation"],"autopilot-chat.message.loading-older":["Loading older messages"],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.response-received":["New response"],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.message.task-done":["Done"],"autopilot-chat.message.task-open":["Not done"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tool-call.completed":["Completed"],"autopilot-chat.tool-call.errors":["Errors"],"autopilot-chat.tool-call.escalation":["Escalation"],"autopilot-chat.tool-call.executing":["Running"],"autopilot-chat.tool-call.failed":["Failed"],"autopilot-chat.tool-call.input":["Input"],"autopilot-chat.tool-call.json.array-item":["item"],"autopilot-chat.tool-call.json.collapse":["Collapse ",["key"]],"autopilot-chat.tool-call.json.copy-path-for":["Copy path for ",["path"]],"autopilot-chat.tool-call.json.copy-path-hint":["Click to copy this path"],"autopilot-chat.tool-call.json.copy-value":["Copy value"],"autopilot-chat.tool-call.json.copy-value-of":["Copy value of ",["key"]],"autopilot-chat.tool-call.json.expand":["Expand ",["key"]],"autopilot-chat.tool-call.json.item-count":[["count","plural",{"one":["#"," item"],"other":["#"," items"]}]],"autopilot-chat.tool-call.json.key-count":[["count","plural",{"one":["#"," key"],"other":["#"," keys"]}]],"autopilot-chat.tool-call.json.path-copied":["Path copied"],"autopilot-chat.tool-call.output":["Output"],"autopilot-chat.tool-call.pending":["Pending"],"autopilot-chat.tool-call.ran":["Ran \'",["name"],"\' for ",["duration"]],"autopilot-chat.tool-call.running":["Running \'",["name"],"\'"],"autopilot-chat.tool-call.seconds":[["seconds"]," seconds"],"autopilot-chat.tool-call.task-waiting":["Waiting"],"autopilot-chat.tool-call.traces":["Traces"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
1
+ const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.loading-more":["Loading more chats"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.rename":["Rename chat"],"autopilot-chat.history.rename-input":["Chat name"],"autopilot-chat.history.search-clear":["Clear search"],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.dictate":["Dictate"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.actions.voice-interaction":["Voice interaction"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.error.dismiss":["Dismiss"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.label":["Message"],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copied":["Copied"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.feedback":["Rate this response"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.dialog-close":["Close"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-back":["Back to content"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.html-preview":["HTML preview"],"autopilot-chat.message.list-label":["Conversation"],"autopilot-chat.message.loading-older":["Loading older messages"],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.response-received":["New response"],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.message.task-done":["Done"],"autopilot-chat.message.task-open":["Not done"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tool-call.completed":["Completed"],"autopilot-chat.tool-call.errors":["Errors"],"autopilot-chat.tool-call.escalation":["Escalation"],"autopilot-chat.tool-call.executing":["Running"],"autopilot-chat.tool-call.failed":["Failed"],"autopilot-chat.tool-call.input":["Input"],"autopilot-chat.tool-call.json.array-item":["item"],"autopilot-chat.tool-call.json.collapse":["Collapse ",["key"]],"autopilot-chat.tool-call.json.copy-path-for":["Copy path for ",["path"]],"autopilot-chat.tool-call.json.copy-path-hint":["Click to copy this path"],"autopilot-chat.tool-call.json.copy-value":["Copy value"],"autopilot-chat.tool-call.json.copy-value-of":["Copy value of ",["key"]],"autopilot-chat.tool-call.json.expand":["Expand ",["key"]],"autopilot-chat.tool-call.json.item-count":[["count","plural",{"one":["#"," item"],"other":["#"," items"]}]],"autopilot-chat.tool-call.json.key-count":[["count","plural",{"one":["#"," key"],"other":["#"," keys"]}]],"autopilot-chat.tool-call.json.path-copied":["Path copied"],"autopilot-chat.tool-call.output":["Output"],"autopilot-chat.tool-call.pending":["Pending"],"autopilot-chat.tool-call.ran":["Ran \'",["name"],"\' for ",["duration"]],"autopilot-chat.tool-call.running":["Running \'",["name"],"\'"],"autopilot-chat.tool-call.seconds":[["seconds"]," seconds"],"autopilot-chat.tool-call.task-waiting":["Waiting"],"autopilot-chat.tool-call.traces":["Traces"],"autopilot-chat.tree.label":["Details"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
2
2
  export { messages };
@@ -29,7 +29,7 @@ export declare const STREAMING_REPLY = "Here is a streamed reply. It arrives **w
29
29
  export declare const CODE_BLOCK_MESSAGE = "Here's a TypeScript example with long lines to test wrapping:\n\n```typescript\n// This is a long comment line that should wrap properly when displayed in the code block to test the wrapping functionality\ninterface UserProfile {\n id: number;\n username: string;\n email: string;\n firstName: string;\n lastName: string;\n createdAt: Date;\n updatedAt: Date;\n preferences: { theme: 'light' | 'dark'; language: string; notifications: boolean };\n}\n\nfunction processUserData(user: UserProfile, additionalMetadata: Record<string, unknown>): string {\n const fullName = `${user.firstName} ${user.lastName}`;\n const metadataString = JSON.stringify(additionalMetadata, null, 2);\n\n return `User: ${fullName} (${user.email}) - Created: ${user.createdAt.toISOString()} - Metadata: ${metadataString}`;\n}\n\nconst exampleUser: UserProfile = {\n id: 12345,\n username: 'john_doe_with_a_very_long_username_that_should_test_wrapping',\n email: 'john.doe.with.a.very.long.email.address@example-domain-name.com',\n firstName: 'John',\n lastName: 'Doe',\n createdAt: new Date(),\n updatedAt: new Date(),\n preferences: { theme: 'dark', language: 'en-US', notifications: true }\n};\n\nconsole.log(processUserData(exampleUser, { source: 'web', ipAddress: '192.168.1.1', userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' }));\n```";
30
30
  export declare const HTML_PREVIEW_MESSAGE = "Here's an HTML example with live preview:\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n <title>Hello World</title>\n <style>\n body { font-family: Arial; text-align: center; padding: 50px; }\n h1 { color: #fa4616; }\n </style>\n</head>\n<body>\n <h1>Hello, World!</h1>\n <p>This is an HTML preview example.</p>\n</body>\n</html>\n```";
31
31
  export declare const MARKDOWN_CORPUS = "# Heading 1\n## Heading 2\n### Heading 3\n\nA paragraph with **bold**, _italic_, ~~strikethrough~~, `inline code` and a [link](https://www.uipath.com).\n\n> A blockquote that spans a couple of lines to check wrapping and the quote rule.\n\n1. Ordered item\n2. Another item\n - Nested bullet\n - Another nested bullet\n\n| Column | Value |\n| --- | --- |\n| Robots | 12 |\n| Queues | 3 |\n\nInline math such as $$E = mc^2$$ and a block:\n\n$$\n\\int_0^1 x^2 \\, dx = \\frac{1}{3}\n$$\n\n![An image stays a link](https://www.uipath.com/favicon.ico)\n\n---\n\n- [x] A finished task\n- [ ] An open task\n\n| Step | Owner | Notes |\n| --- | --- | --- |\n| Extract | Robot | Reads the invoice<br>and the vendor record |\n| Approve | Finance | Over $5,000 needs a manager, and a single dollar sign stays literal |\n\n> A quote with a nested list:\n> - first\n> - second\n\nFootnote reference[^1].\n\n[^1]: The footnote text.";
32
- export declare const STREAMED_MARKDOWN = "### Streamed summary\n\n1. **Open** the queue and check the _oldest_ item.\n2. Retry it with `Invoke Workflow`.\n\n| Queue | Pending |\n| --- | --- |\n| Invoices | 12 |\n\n```json\n{ \"queue\": \"Invoices\", \"retry\": true }\n```\n\nDone.";
32
+ export declare const STREAMED_MARKDOWN = "### Streamed summary\n\n1. **Open** the queue and check the _oldest_ item.\n2. Retry it with `Invoke Workflow`.\n\n| Queue | Pending |\n| --- | --- |\n| Invoices | 12 |\n\n```json\n{ \"queue\": \"Invoices\", \"retry\": true }\n```\n\nA math fence and a display block, shown as source until they close:\n\n```math\na^2 + b^2 = c^2\n```\n\n$$\n\\sum_{i=1}^{n} i = \\frac{n(n+1)}{2}\n$$\n\nDone.";
33
33
  export declare const CODE_LANGUAGES_MESSAGE = "Inline `code` sits in the sentence. A few blocks:\n\n```python\ndef retry(item, attempts=3):\n return any(run(item) for _ in range(attempts))\n```\n\n```bash\nuip robot start --queue Invoices\n```\n\n```\nA block with no language.\n```";
34
34
  export declare const RESPONSE_ACTIONS: AutopilotChatMessageAction[];
35
35
  export declare const WIND_RESPONSE_ACTIONS: Autopil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