@veracity/ai 1.0.1 → 2.0.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 (111) hide show
  1. package/dist/{ChatCompletionSSE.d.ts → ChatClient.d.ts} +22 -13
  2. package/dist/ChatClient.d.ts.map +1 -0
  3. package/dist/ChatMessageItem.d.ts +1 -1
  4. package/dist/ClientFunctionInvocation.d.ts +14 -0
  5. package/dist/ClientFunctionInvocation.d.ts.map +1 -0
  6. package/dist/ClientFunctionInvocationContext.d.ts +10 -0
  7. package/dist/ClientFunctionInvocationContext.d.ts.map +1 -0
  8. package/dist/Markdown/index.d.ts +2 -2
  9. package/dist/Markdown/index.d.ts.map +1 -1
  10. package/dist/Markdown/math.d.ts.map +1 -1
  11. package/dist/MaxInputLimitReachedError.d.ts +4 -0
  12. package/dist/MaxInputLimitReachedError.d.ts.map +1 -0
  13. package/dist/Pyodide.d.ts +1 -1
  14. package/dist/Pyodide.d.ts.map +1 -1
  15. package/dist/ToolCallBuilder.d.ts +13 -0
  16. package/dist/ToolCallBuilder.d.ts.map +1 -0
  17. package/dist/UnexpectedEndOfStreamError.d.ts +4 -0
  18. package/dist/UnexpectedEndOfStreamError.d.ts.map +1 -0
  19. package/dist/components/Button.d.ts +1 -0
  20. package/dist/components/Button.d.ts.map +1 -1
  21. package/dist/components/ButtonOptionsDialog.d.ts +27 -0
  22. package/dist/components/ButtonOptionsDialog.d.ts.map +1 -0
  23. package/dist/components/Chat/index.d.ts +39 -0
  24. package/dist/components/Chat/index.d.ts.map +1 -0
  25. package/dist/components/Conversation.d.ts +54 -0
  26. package/dist/components/Conversation.d.ts.map +1 -0
  27. package/dist/components/ConversationMessage.d.ts +53 -0
  28. package/dist/components/ConversationMessage.d.ts.map +1 -0
  29. package/dist/components/PythonCodeInterpreter.d.ts +38 -0
  30. package/dist/components/PythonCodeInterpreter.d.ts.map +1 -0
  31. package/dist/components/Search.d.ts +16 -0
  32. package/dist/components/Search.d.ts.map +1 -0
  33. package/dist/components/icons/AngleDown.d.ts +3 -0
  34. package/dist/components/icons/AngleDown.d.ts.map +1 -0
  35. package/dist/components/icons/ArrowDown.d.ts +1 -1
  36. package/dist/components/icons/Check.d.ts +1 -1
  37. package/dist/components/icons/CheckCircle.d.ts +3 -0
  38. package/dist/components/icons/CheckCircle.d.ts.map +1 -0
  39. package/dist/components/icons/ExclamationCircle.d.ts +1 -1
  40. package/dist/components/icons/ExclamationTriangle.d.ts +1 -1
  41. package/dist/components/icons/InfoCircle.d.ts +1 -1
  42. package/dist/components/icons/QuestionCircle.d.ts +1 -1
  43. package/dist/components/icons/SearchIcon.d.ts +3 -0
  44. package/dist/components/icons/SearchIcon.d.ts.map +1 -0
  45. package/dist/components/icons/Spinner.d.ts +1 -1
  46. package/dist/components/icons/Times.d.ts +3 -0
  47. package/dist/components/icons/Times.d.ts.map +1 -0
  48. package/dist/components/icons/TimesCircle.d.ts +1 -1
  49. package/dist/core-CdG-ENX3.js +1069 -0
  50. package/dist/{csharp-Cigc7XMa.js → csharp-EkcwwkCa.js} +18 -13
  51. package/dist/{css-B-yPI1XM.js → css-CJS6IEi0.js} +127 -18
  52. package/dist/dtos.d.ts +34 -4
  53. package/dist/dtos.d.ts.map +1 -1
  54. package/dist/enums.d.ts +13 -29
  55. package/dist/enums.d.ts.map +1 -1
  56. package/dist/index.d.ts +2 -2
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/{javascript-CDslspYb.js → javascript-B2FVNeJt.js} +26 -24
  59. package/dist/{katex-Cj8zHzei.js → katex-c21813vb.js} +454 -428
  60. package/dist/{python-CzH_tl5q.js → python-CymlFLB0.js} +21 -19
  61. package/dist/{typescript-Bx5cZccb.js → typescript-Cg8DWaxm.js} +163 -148
  62. package/dist/utils/CancellationToken.d.ts.map +1 -1
  63. package/dist/utils/Channel.d.ts +42 -1
  64. package/dist/utils/Channel.d.ts.map +1 -1
  65. package/dist/utils/animateAsync.d.ts +1 -1
  66. package/dist/utils/createDeferred.d.ts.map +1 -1
  67. package/dist/utils/parsePartialJSON.d.ts +1 -1
  68. package/dist/utils/parsePartialJSON.d.ts.map +1 -1
  69. package/dist/veracity-ai.es.js +5359 -5416
  70. package/dist/veracity-ai.umd.js +37 -40
  71. package/package.json +26 -19
  72. package/dist/ChatCompletionSSE.d.ts.map +0 -1
  73. package/dist/Markdown copy.d.ts +0 -2
  74. package/dist/Markdown copy.d.ts.map +0 -1
  75. package/dist/MessageLimitExceededError.d.ts +0 -6
  76. package/dist/MessageLimitExceededError.d.ts.map +0 -1
  77. package/dist/Pyodide_test.d.ts +0 -1
  78. package/dist/Pyodide_test.d.ts.map +0 -1
  79. package/dist/components/AIChat/index.d.ts +0 -42
  80. package/dist/components/AIChat/index.d.ts.map +0 -1
  81. package/dist/components/AIChatAgentMessage.d.ts +0 -28
  82. package/dist/components/AIChatAgentMessage.d.ts.map +0 -1
  83. package/dist/components/AIChatMessage.d.ts +0 -1
  84. package/dist/components/AIChatMessage.d.ts.map +0 -1
  85. package/dist/components/AIChatToolCallGroup.d.ts +0 -21
  86. package/dist/components/AIChatToolCallGroup.d.ts.map +0 -1
  87. package/dist/components/AIChatUserMessage.d.ts +0 -14
  88. package/dist/components/AIChatUserMessage.d.ts.map +0 -1
  89. package/dist/components/AIConversation.d.ts +0 -8
  90. package/dist/components/AIConversation.d.ts.map +0 -1
  91. package/dist/components/AIParent.d.ts +0 -8
  92. package/dist/components/AIParent.d.ts.map +0 -1
  93. package/dist/components/ErrorNotification.d.ts +0 -2
  94. package/dist/components/ErrorNotification.d.ts.map +0 -1
  95. package/dist/components/ToolCallComponent/TaskItemComponent.d.ts +0 -14
  96. package/dist/components/ToolCallComponent/TaskItemComponent.d.ts.map +0 -1
  97. package/dist/components/ToolCallComponent/index.d.ts +0 -86
  98. package/dist/components/ToolCallComponent/index.d.ts.map +0 -1
  99. package/dist/components/VeracityAvatar.d.ts +0 -3
  100. package/dist/components/VeracityAvatar.d.ts.map +0 -1
  101. package/dist/components/VeracityLogoSquare.d.ts +0 -3
  102. package/dist/components/VeracityLogoSquare.d.ts.map +0 -1
  103. package/dist/core-Diwflo5W.js +0 -1077
  104. package/dist/modals.d.ts +0 -9
  105. package/dist/modals.d.ts.map +0 -1
  106. package/dist/utils/decodePythonTripleQuotedString.d.ts +0 -2
  107. package/dist/utils/decodePythonTripleQuotedString.d.ts.map +0 -1
  108. package/dist/utils/generateAvatarLetter.d.ts +0 -2
  109. package/dist/utils/generateAvatarLetter.d.ts.map +0 -1
  110. package/dist/utils/getElementTextPreserveNewlines.d.ts +0 -2
  111. package/dist/utils/getElementTextPreserveNewlines.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- function I(e) {
2
- const d = [
1
+ function C(e) {
2
+ const l = [
3
3
  "bool",
4
4
  "byte",
5
5
  "char",
@@ -20,7 +20,7 @@ function I(e) {
20
20
  "ulong",
21
21
  "uint",
22
22
  "ushort"
23
- ], l = [
23
+ ], d = [
24
24
  "public",
25
25
  "private",
26
26
  "protected",
@@ -136,7 +136,7 @@ function I(e) {
136
136
  "yield"
137
137
  ], n = {
138
138
  keyword: O.concat(N),
139
- built_in: d,
139
+ built_in: l,
140
140
  literal: g
141
141
  }, a = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }), i = {
142
142
  className: "number",
@@ -146,12 +146,16 @@ function I(e) {
146
146
  { begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" }
147
147
  ],
148
148
  relevance: 0
149
+ }, T = {
150
+ className: "string",
151
+ begin: /"""("*)(?!")(.|\n)*?"""\1/,
152
+ relevance: 1
149
153
  }, t = {
150
154
  className: "string",
151
155
  begin: '@"',
152
156
  end: '"',
153
157
  contains: [{ begin: '""' }]
154
- }, T = e.inherit(t, { illegal: /\n/ }), r = {
158
+ }, b = e.inherit(t, { illegal: /\n/ }), r = {
155
159
  className: "subst",
156
160
  begin: /\{/,
157
161
  end: /\}/,
@@ -177,7 +181,7 @@ function I(e) {
177
181
  { begin: '""' },
178
182
  r
179
183
  ]
180
- }, b = e.inherit(o, {
184
+ }, M = e.inherit(o, {
181
185
  illegal: /\n/,
182
186
  contains: [
183
187
  { begin: /\{\{/ },
@@ -195,15 +199,16 @@ function I(e) {
195
199
  i,
196
200
  e.C_BLOCK_COMMENT_MODE
197
201
  ], c.contains = [
198
- b,
202
+ M,
199
203
  s,
200
- T,
204
+ b,
201
205
  e.APOS_STRING_MODE,
202
206
  e.QUOTE_STRING_MODE,
203
207
  i,
204
208
  e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
205
209
  ];
206
210
  const _ = { variants: [
211
+ T,
207
212
  o,
208
213
  s,
209
214
  t,
@@ -216,7 +221,7 @@ function I(e) {
216
221
  { beginKeywords: "in out" },
217
222
  a
218
223
  ]
219
- }, M = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", u = {
224
+ }, u = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", I = {
220
225
  // prevents expressions like `@class` from incorrect flagging
221
226
  // `class` as a keyword
222
227
  begin: "@" + e.IDENT_RE,
@@ -323,7 +328,7 @@ function I(e) {
323
328
  },
324
329
  {
325
330
  className: "function",
326
- begin: "(" + M + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
331
+ begin: "(" + u + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
327
332
  returnBegin: !0,
328
333
  end: /\s*[{;=]/,
329
334
  excludeEnd: !0,
@@ -331,7 +336,7 @@ function I(e) {
331
336
  contains: [
332
337
  // prevents these from being highlighted `title`
333
338
  {
334
- beginKeywords: l.join(" "),
339
+ beginKeywords: d.join(" "),
335
340
  relevance: 0
336
341
  },
337
342
  {
@@ -362,10 +367,10 @@ function I(e) {
362
367
  e.C_BLOCK_COMMENT_MODE
363
368
  ]
364
369
  },
365
- u
370
+ I
366
371
  ]
367
372
  };
368
373
  }
369
374
  export {
370
- I as default
375
+ C as default
371
376
  };
@@ -83,11 +83,16 @@ const s = (t) => ({
83
83
  "nav",
84
84
  "object",
85
85
  "ol",
86
+ "optgroup",
87
+ "option",
86
88
  "p",
89
+ "picture",
87
90
  "q",
88
91
  "quote",
89
92
  "samp",
90
93
  "section",
94
+ "select",
95
+ "source",
91
96
  "span",
92
97
  "strong",
93
98
  "summary",
@@ -105,6 +110,51 @@ const s = (t) => ({
105
110
  "var",
106
111
  "video"
107
112
  ], c = [
113
+ "defs",
114
+ "g",
115
+ "marker",
116
+ "mask",
117
+ "pattern",
118
+ "svg",
119
+ "switch",
120
+ "symbol",
121
+ "feBlend",
122
+ "feColorMatrix",
123
+ "feComponentTransfer",
124
+ "feComposite",
125
+ "feConvolveMatrix",
126
+ "feDiffuseLighting",
127
+ "feDisplacementMap",
128
+ "feFlood",
129
+ "feGaussianBlur",
130
+ "feImage",
131
+ "feMerge",
132
+ "feMorphology",
133
+ "feOffset",
134
+ "feSpecularLighting",
135
+ "feTile",
136
+ "feTurbulence",
137
+ "linearGradient",
138
+ "radialGradient",
139
+ "stop",
140
+ "circle",
141
+ "ellipse",
142
+ "image",
143
+ "line",
144
+ "path",
145
+ "polygon",
146
+ "polyline",
147
+ "rect",
148
+ "text",
149
+ "use",
150
+ "textPath",
151
+ "tspan",
152
+ "foreignObject",
153
+ "clipPath"
154
+ ], g = [
155
+ ...d,
156
+ ...c
157
+ ], b = [
108
158
  "any-hover",
109
159
  "any-pointer",
110
160
  "aspect-ratio",
@@ -139,7 +189,7 @@ const s = (t) => ({
139
189
  "max-width",
140
190
  "min-height",
141
191
  "max-height"
142
- ], b = [
192
+ ].sort().reverse(), m = [
143
193
  "active",
144
194
  "any-link",
145
195
  "blank",
@@ -213,7 +263,7 @@ const s = (t) => ({
213
263
  "visited",
214
264
  "where"
215
265
  // where()
216
- ], g = [
266
+ ].sort().reverse(), p = [
217
267
  "after",
218
268
  "backdrop",
219
269
  "before",
@@ -228,10 +278,12 @@ const s = (t) => ({
228
278
  "selection",
229
279
  "slotted",
230
280
  "spelling-error"
231
- ], m = [
281
+ ].sort().reverse(), f = [
282
+ "accent-color",
232
283
  "align-content",
233
284
  "align-items",
234
285
  "align-self",
286
+ "alignment-baseline",
235
287
  "all",
236
288
  "animation",
237
289
  "animation-delay",
@@ -242,6 +294,7 @@ const s = (t) => ({
242
294
  "animation-name",
243
295
  "animation-play-state",
244
296
  "animation-timing-function",
297
+ "appearance",
245
298
  "backface-visibility",
246
299
  "background",
247
300
  "background-attachment",
@@ -253,6 +306,7 @@ const s = (t) => ({
253
306
  "background-position",
254
307
  "background-repeat",
255
308
  "background-size",
309
+ "baseline-shift",
256
310
  "block-size",
257
311
  "border",
258
312
  "border-block",
@@ -299,10 +353,14 @@ const s = (t) => ({
299
353
  "border-left-width",
300
354
  "border-radius",
301
355
  "border-right",
356
+ "border-end-end-radius",
357
+ "border-end-start-radius",
302
358
  "border-right-color",
303
359
  "border-right-style",
304
360
  "border-right-width",
305
361
  "border-spacing",
362
+ "border-start-end-radius",
363
+ "border-start-start-radius",
306
364
  "border-style",
307
365
  "border-top",
308
366
  "border-top-color",
@@ -318,6 +376,8 @@ const s = (t) => ({
318
376
  "break-after",
319
377
  "break-before",
320
378
  "break-inside",
379
+ "cx",
380
+ "cy",
321
381
  "caption-side",
322
382
  "caret-color",
323
383
  "clear",
@@ -325,6 +385,11 @@ const s = (t) => ({
325
385
  "clip-path",
326
386
  "clip-rule",
327
387
  "color",
388
+ "color-interpolation",
389
+ "color-interpolation-filters",
390
+ "color-profile",
391
+ "color-rendering",
392
+ "color-scheme",
328
393
  "column-count",
329
394
  "column-fill",
330
395
  "column-gap",
@@ -346,7 +411,12 @@ const s = (t) => ({
346
411
  "cursor",
347
412
  "direction",
348
413
  "display",
414
+ "dominant-baseline",
349
415
  "empty-cells",
416
+ "enable-background",
417
+ "fill",
418
+ "fill-opacity",
419
+ "fill-rule",
350
420
  "filter",
351
421
  "flex",
352
422
  "flex-basis",
@@ -357,6 +427,8 @@ const s = (t) => ({
357
427
  "flex-wrap",
358
428
  "float",
359
429
  "flow",
430
+ "flood-color",
431
+ "flood-opacity",
360
432
  "font",
361
433
  "font-display",
362
434
  "font-family",
@@ -378,6 +450,7 @@ const s = (t) => ({
378
450
  "font-variation-settings",
379
451
  "font-weight",
380
452
  "gap",
453
+ "glyph-orientation-horizontal",
381
454
  "glyph-orientation-vertical",
382
455
  "grid",
383
456
  "grid-area",
@@ -404,16 +477,32 @@ const s = (t) => ({
404
477
  "image-resolution",
405
478
  "ime-mode",
406
479
  "inline-size",
480
+ "inset",
481
+ "inset-block",
482
+ "inset-block-end",
483
+ "inset-block-start",
484
+ "inset-inline",
485
+ "inset-inline-end",
486
+ "inset-inline-start",
407
487
  "isolation",
488
+ "kerning",
408
489
  "justify-content",
490
+ "justify-items",
491
+ "justify-self",
409
492
  "left",
410
493
  "letter-spacing",
494
+ "lighting-color",
411
495
  "line-break",
412
496
  "line-height",
413
497
  "list-style",
414
498
  "list-style-image",
415
499
  "list-style-position",
416
500
  "list-style-type",
501
+ "marker",
502
+ "marker-end",
503
+ "marker-mid",
504
+ "marker-start",
505
+ "mask",
417
506
  "margin",
418
507
  "margin-block",
419
508
  "margin-block-end",
@@ -495,12 +584,15 @@ const s = (t) => ({
495
584
  "pointer-events",
496
585
  "position",
497
586
  "quotes",
587
+ "r",
498
588
  "resize",
499
589
  "rest",
500
590
  "rest-after",
501
591
  "rest-before",
502
592
  "right",
593
+ "rotate",
503
594
  "row-gap",
595
+ "scale",
504
596
  "scroll-margin",
505
597
  "scroll-margin-block",
506
598
  "scroll-margin-block-end",
@@ -532,12 +624,24 @@ const s = (t) => ({
532
624
  "shape-image-threshold",
533
625
  "shape-margin",
534
626
  "shape-outside",
627
+ "shape-rendering",
628
+ "stop-color",
629
+ "stop-opacity",
630
+ "stroke",
631
+ "stroke-dasharray",
632
+ "stroke-dashoffset",
633
+ "stroke-linecap",
634
+ "stroke-linejoin",
635
+ "stroke-miterlimit",
636
+ "stroke-opacity",
637
+ "stroke-width",
535
638
  "speak",
536
639
  "speak-as",
537
640
  "src",
538
641
  // @font-face
539
642
  "tab-size",
540
643
  "table-layout",
644
+ "text-anchor",
541
645
  "text-align",
542
646
  "text-align-all",
543
647
  "text-align-last",
@@ -545,7 +649,9 @@ const s = (t) => ({
545
649
  "text-decoration",
546
650
  "text-decoration-color",
547
651
  "text-decoration-line",
652
+ "text-decoration-skip-ink",
548
653
  "text-decoration-style",
654
+ "text-decoration-thickness",
549
655
  "text-emphasis",
550
656
  "text-emphasis-color",
551
657
  "text-emphasis-position",
@@ -557,6 +663,7 @@ const s = (t) => ({
557
663
  "text-rendering",
558
664
  "text-shadow",
559
665
  "text-transform",
666
+ "text-underline-offset",
560
667
  "text-underline-position",
561
668
  "top",
562
669
  "transform",
@@ -568,7 +675,9 @@ const s = (t) => ({
568
675
  "transition-duration",
569
676
  "transition-property",
570
677
  "transition-timing-function",
678
+ "translate",
571
679
  "unicode-bidi",
680
+ "vector-effect",
572
681
  "vertical-align",
573
682
  "visibility",
574
683
  "voice-balance",
@@ -587,12 +696,12 @@ const s = (t) => ({
587
696
  "word-spacing",
588
697
  "word-wrap",
589
698
  "writing-mode",
699
+ "x",
700
+ "y",
590
701
  "z-index"
591
- // reverse makes sure longer attributes `font-weight` are matched fully
592
- // instead of getting false positives on say `font`
593
- ].reverse();
594
- function p(t) {
595
- const r = t.regex, e = s(t), i = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, n = "and or not only", a = /@-?\w[\w]*(-\w+)*/, l = "[a-zA-Z-][a-zA-Z0-9_-]*", o = [
702
+ ].sort().reverse();
703
+ function u(t) {
704
+ const o = t.regex, e = s(t), i = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, n = "and or not only", a = /@-?\w[\w]*(-\w+)*/, l = "[a-zA-Z-][a-zA-Z0-9_-]*", r = [
596
705
  t.APOS_STRING_MODE,
597
706
  t.QUOTE_STRING_MODE
598
707
  ];
@@ -626,8 +735,8 @@ function p(t) {
626
735
  {
627
736
  className: "selector-pseudo",
628
737
  variants: [
629
- { begin: ":(" + b.join("|") + ")" },
630
- { begin: ":(:)?(" + g.join("|") + ")" }
738
+ { begin: ":(" + m.join("|") + ")" },
739
+ { begin: ":(:)?(" + p.join("|") + ")" }
631
740
  ]
632
741
  },
633
742
  // we may actually need this (12/2020)
@@ -639,7 +748,7 @@ function p(t) {
639
748
  e.CSS_VARIABLE,
640
749
  {
641
750
  className: "attribute",
642
- begin: "\\b(" + m.join("|") + ")\\b"
751
+ begin: "\\b(" + f.join("|") + ")\\b"
643
752
  },
644
753
  // attribute values
645
754
  {
@@ -650,7 +759,7 @@ function p(t) {
650
759
  e.HEXCOLOR,
651
760
  e.IMPORTANT,
652
761
  e.CSS_NUMBER_MODE,
653
- ...o,
762
+ ...r,
654
763
  // needed to highlight these as strings and to avoid issues with
655
764
  // illegal characters that might be inside urls that would tigger the
656
765
  // languages illegal stack
@@ -661,7 +770,7 @@ function p(t) {
661
770
  // from keywords
662
771
  keywords: { built_in: "url data-uri" },
663
772
  contains: [
664
- ...o,
773
+ ...r,
665
774
  {
666
775
  className: "string",
667
776
  // any character other than `)` as in `url()` will be the start
@@ -676,7 +785,7 @@ function p(t) {
676
785
  ]
677
786
  },
678
787
  {
679
- begin: r.lookahead(/@/),
788
+ begin: o.lookahead(/@/),
680
789
  end: "[{;]",
681
790
  relevance: 0,
682
791
  illegal: /:/,
@@ -694,14 +803,14 @@ function p(t) {
694
803
  keywords: {
695
804
  $pattern: /[a-z-]+/,
696
805
  keyword: n,
697
- attribute: c.join(" ")
806
+ attribute: b.join(" ")
698
807
  },
699
808
  contains: [
700
809
  {
701
810
  begin: /[a-z-]+(?=:)/,
702
811
  className: "attribute"
703
812
  },
704
- ...o,
813
+ ...r,
705
814
  e.CSS_NUMBER_MODE
706
815
  ]
707
816
  }
@@ -709,11 +818,11 @@ function p(t) {
709
818
  },
710
819
  {
711
820
  className: "selector-tag",
712
- begin: "\\b(" + d.join("|") + ")\\b"
821
+ begin: "\\b(" + g.join("|") + ")\\b"
713
822
  }
714
823
  ]
715
824
  };
716
825
  }
717
826
  export {
718
- p as default
827
+ u as default
719
828
  };
package/dist/dtos.d.ts CHANGED
@@ -1,15 +1,20 @@
1
- import { ChatCompletionsOptionsType } from "./enums";
1
+ import { ChatCompletionsOptionsType } from './enums';
2
2
  export interface ChatCompletionsOptionsDto {
3
3
  type: ChatCompletionsOptionsType;
4
4
  messages?: ChatMessageDto[];
5
5
  operationId?: string;
6
6
  operationResult?: any;
7
+ operationError?: any;
7
8
  }
8
9
  export interface PythonResultDto {
9
- resultAsString?: string;
10
+ terminatedWithError?: boolean;
11
+ result?: string;
10
12
  error?: string;
11
- stdout: string;
12
- stderr: string;
13
+ stdoutAndStderr: PythonResultStdoutOrStderrDto[];
14
+ }
15
+ export interface PythonResultStdoutOrStderrDto {
16
+ isStderr: boolean;
17
+ text: string;
13
18
  }
14
19
  export interface ChatMessageDto {
15
20
  role: "assistant" | "user" | "tool";
@@ -32,4 +37,29 @@ export interface ProjectUserRateLimitingSettingsDto {
32
37
  maxMessages: number;
33
38
  maxMessagesPerHours: number;
34
39
  }
40
+ export declare enum DialogType {
41
+ Error = 0,
42
+ Danger = 1,
43
+ Warning = 2,
44
+ Info = 3,
45
+ Success = 4
46
+ }
47
+ export interface ButtonOptionDto {
48
+ variant: ButtonVariant;
49
+ text: string;
50
+ value: string;
51
+ }
52
+ export declare const enum ButtonVariant {
53
+ Primary = 0,
54
+ Secondary = 1,
55
+ Tertiary = 2,
56
+ Destructive = 3,
57
+ CTA = 4
58
+ }
59
+ export interface ButtonOptionsDialogDto {
60
+ type: DialogType;
61
+ title: string;
62
+ textInMarkdown: string;
63
+ buttons: ButtonOptionDto[];
64
+ }
35
65
  //# sourceMappingURL=dtos.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../src/dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,0BAA0B,CAAC;IACjC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,kCAAkC,EAAE,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kCAAkC;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../src/dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,0BAA0B,CAAC;IACjC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,cAAc,CAAC,EAAE,GAAG,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,6BAA6B,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,kCAAkC,EAAE,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kCAAkC;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,oBAAY,UAAU;IACpB,KAAK,IAAA;IACL,MAAM,IAAA;IACN,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,OAAO,IAAA;CACR;AAGD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,0BAAkB,aAAa;IAC7B,OAAO,IAAA;IACP,SAAS,IAAA;IACT,QAAQ,IAAA;IACR,WAAW,IAAA;IACX,GAAG,IAAA;CACJ;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B"}
package/dist/enums.d.ts CHANGED
@@ -4,34 +4,18 @@ export declare enum ChatCompletionsOptionsType {
4
4
  OperationError = 2
5
5
  }
6
6
  export declare enum ChatCompletionSSEMessageType {
7
- Init = 0,// <pfunc id><name><bg col><icon> Similar to a Web app manifest, but for an agent. This information is mostly used to display e.g. the avatar.
8
- Done = 1,// <pfunc id> Conversation ended successfully, before the connection is terminated
9
- Error = 2,// <pfunc id><Markdown> The error message, in markdown, before the connection is terminated
10
- AppendMessage = 3,// <pfunc id><Markdown> The message to append to the current message, in the context of the current function
11
- ToolCallUpdate = 4,// <pfunc id><func id><idx int><name><args>
12
- Loop = 5,// <pfunc id>
13
- ToolCallTaskItemStatus = 6,// <pfunc id><func id><id int><progress double><icon><Markdown> Status text displayed on the UI
14
- ToolCallTitle = 7,// <pfunc id><func id><name><bg col><icon><title>
15
- ToolCallLog = 8,// <pfunc id><func id><log level byte><time long><Markdown> Log message line
16
- ToolCallPython = 9,// <pfunc id><func id><operation id><code>
17
- ToolCallDone = 10,// <pfunc id><func id>//<content><icon><Markdown> Done message displayed on the UI
18
- ToolCallError = 11,// <pfunc id><func id>//<content><icon><Markdown str> Error message displayed on the
19
- InvokeFrontEnd = 12
20
- }
21
- export declare enum ChatCompletionSSEMessageStatusIcon {
22
- Progress = "progress",
23
- Complete = "complete",
24
- Info = "info",
25
- Warning = "warning",
26
- Error = "error",
27
- Undetermined = "undetermined"
28
- }
29
- export declare enum LogLevel {
30
- None = 0,
31
- Debug = 1,
32
- Error = 2,
33
- Info = 3,
34
- Log = 4,
35
- Warn = 5
7
+ MessageBegin = 0,// <conversation id><role><id><picture url><display name><email><background color>
8
+ MessageAppend = 1,// <conversation id><Markdown> The message to append to the current message, in the context of the current function
9
+ MessageToolCallUpdate = 2,// <conversation id><func id><idx int><name><args>
10
+ MessageToolCallResult = 3,// <conversation id><func id>//<content><icon><Markdown> Done message displayed on the UI
11
+ MessageToolCallError = 4,// <conversation id><func id>//<content><icon><Markdown str> Error message displayed on the UI
12
+ MessageExecuteLlmFunctionsBegin = 5,// <conversation id>
13
+ MessageExecuteLlmFunctionsEnd = 6,// <conversation id>
14
+ MessageInvokeClientFunction = 7,// <conversation id><func id><operation id><function name><arguments as json>
15
+ MessageInvokeClientFunctionResult = 8,// <operation id><result as json>
16
+ MessageInvokeClientFunctionError = 9,// <operation id><error>
17
+ MessageSubConversationBegin = 10,// <conversation id><sub conversation id><author id><author picture url><author display name><author email>
18
+ ConversationEnd = 11,// <conversation id> Conversation ended successfully, before the connection is terminated
19
+ ConversationError = 12
36
20
  }
37
21
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,QAAQ,IAAA;IACR,eAAe,IAAA;IACf,cAAc,IAAA;CACf;AAED,oBAAY,4BAA4B;IACtC,IAAI,IAAA,CAAE,8IAA8I;IACpJ,IAAI,IAAA,CAAE,kFAAkF;IACxF,KAAK,IAAA,CAAE,2FAA2F;IAClG,aAAa,IAAA,CAAE,4GAA4G;IAC3H,cAAc,IAAA,CAAE,2CAA2C;IAC3D,IAAI,IAAA,CAAE,aAAa;IACnB,sBAAsB,IAAA,CAAE,+FAA+F;IACvH,aAAa,IAAA,CAAE,iDAAiD;IAEhE,WAAW,IAAA,CAAE,4EAA4E;IACzF,cAAc,IAAA,CAAE,0CAA0C;IAC1D,YAAY,KAAA,CAAE,kFAAkF;IAChG,aAAa,KAAA,CAAE,oFAAoF;IACnG,cAAc,KAAA;CACf;AAED,oBAAY,kCAAkC;IAC5C,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,YAAY,iBAAiB;CAC9B;AAED,oBAAY,QAAQ;IAClB,IAAI,IAAA;IACJ,KAAK,IAAA;IACL,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,GAAG,IAAA;IACH,IAAI,IAAA;CACL"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,QAAQ,IAAA;IACR,eAAe,IAAA;IACf,cAAc,IAAA;CACf;AAED,oBAAY,4BAA4B;IACtC,YAAY,IAAA,CAAE,kFAAkF;IAChG,aAAa,IAAA,CAAE,mHAAmH;IAClI,qBAAqB,IAAA,CAAE,kDAAkD;IACzE,qBAAqB,IAAA,CAAE,yFAAyF;IAChH,oBAAoB,IAAA,CAAE,8FAA8F;IACpH,+BAA+B,IAAA,CAAE,oBAAoB;IACrD,6BAA6B,IAAA,CAAE,oBAAoB;IACnD,2BAA2B,IAAA,CAAE,6EAA6E;IAC1G,iCAAiC,IAAA,CAAE,iCAAiC;IACpE,gCAAgC,IAAA,CAAE,wBAAwB;IAC1D,2BAA2B,KAAA,CAAE,2GAA2G;IAExI,eAAe,KAAA,CAAE,yFAAyF;IAC1G,iBAAiB,KAAA;CAClB"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { AIChat } from "./components/AIChat";
2
- export { AIChat };
1
+ import { Chat } from './components/Chat';
2
+ export { Chat as AIChat };
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,CAAC"}