@veracity/ai 1.0.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +28 -20
  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
@@ -143,9 +143,9 @@ const p = "[A-Za-z$_][0-9A-Za-z$_]*", G = [
143
143
  L
144
144
  );
145
145
  function X(e) {
146
- const a = e.regex, B = (t, { after: r }) => {
147
- const l = "</" + t[0].slice(1);
148
- return t.input.indexOf(l, r) !== -1;
146
+ const t = e.regex, B = (a, { after: r }) => {
147
+ const l = "</" + a[0].slice(1);
148
+ return a.input.indexOf(l, r) !== -1;
149
149
  }, n = p, A = {
150
150
  begin: "<>",
151
151
  end: "</>"
@@ -156,8 +156,8 @@ function X(e) {
156
156
  * @param {RegExpMatchArray} match
157
157
  * @param {CallbackResponse} response
158
158
  */
159
- isTrulyOpeningTag: (t, r) => {
160
- const l = t[0].length + t.index, d = t.input[l];
159
+ isTrulyOpeningTag: (a, r) => {
160
+ const l = a[0].length + a.index, d = a.input[l];
161
161
  if (
162
162
  // HTML should not include another raw `<` inside a tag
163
163
  // nested type?
@@ -169,9 +169,9 @@ function X(e) {
169
169
  r.ignoreMatch();
170
170
  return;
171
171
  }
172
- d === ">" && (B(t, { after: l }) || r.ignoreMatch());
172
+ d === ">" && (B(a, { after: l }) || r.ignoreMatch());
173
173
  let u;
174
- const M = t.input.substring(l);
174
+ const M = a.input.substring(l);
175
175
  if (u = M.match(/^\s*=/)) {
176
176
  r.ignoreMatch();
177
177
  return;
@@ -212,7 +212,7 @@ function X(e) {
212
212
  contains: []
213
213
  // defined later
214
214
  }, m = {
215
- begin: "html`",
215
+ begin: ".?html`",
216
216
  end: "",
217
217
  starts: {
218
218
  end: "`",
@@ -224,7 +224,7 @@ function X(e) {
224
224
  subLanguage: "xml"
225
225
  }
226
226
  }, T = {
227
- begin: "css`",
227
+ begin: ".?css`",
228
228
  end: "",
229
229
  starts: {
230
230
  end: "`",
@@ -236,7 +236,7 @@ function X(e) {
236
236
  subLanguage: "css"
237
237
  }
238
238
  }, f = {
239
- begin: "gql`",
239
+ begin: ".?gql`",
240
240
  end: "",
241
241
  starts: {
242
242
  end: "`",
@@ -327,14 +327,16 @@ function X(e) {
327
327
  const I = [].concat(b, c.contains), g = I.concat([
328
328
  // eat recursive parens in sub expressions
329
329
  {
330
- begin: /\(/,
330
+ begin: /(\s*)\(/,
331
331
  end: /\)/,
332
332
  keywords: s,
333
333
  contains: ["self"].concat(I)
334
334
  }
335
335
  ]), i = {
336
336
  className: "params",
337
- begin: /\(/,
337
+ // convert this to negative lookbehind in v12
338
+ begin: /(\s*)\(/,
339
+ // to match the parms with
338
340
  end: /\)/,
339
341
  excludeBegin: !0,
340
342
  excludeEnd: !0,
@@ -351,7 +353,7 @@ function X(e) {
351
353
  /\s+/,
352
354
  /extends/,
353
355
  /\s+/,
354
- a.concat(n, "(", a.concat(/\./, n), ")*")
356
+ t.concat(n, "(", t.concat(/\./, n), ")*")
355
357
  ],
356
358
  scope: {
357
359
  1: "keyword",
@@ -375,7 +377,7 @@ function X(e) {
375
377
  ]
376
378
  }, O = {
377
379
  relevance: 0,
378
- match: a.either(
380
+ match: t.either(
379
381
  // Hard coded exceptions
380
382
  /\bJSON/,
381
383
  // Float32Array, OutT
@@ -432,25 +434,25 @@ function X(e) {
432
434
  match: /\b[A-Z][A-Z_0-9]+\b/,
433
435
  className: "variable.constant"
434
436
  };
435
- function P(t) {
436
- return a.concat("(?!", t.join("|"), ")");
437
+ function P(a) {
438
+ return t.concat("(?!", a.join("|"), ")");
437
439
  }
438
440
  const $ = {
439
- match: a.concat(
441
+ match: t.concat(
440
442
  /\b/,
441
443
  P([
442
444
  ...w,
443
445
  "super",
444
446
  "import"
445
- ]),
447
+ ].map((a) => `${a}\\s*\\(`)),
446
448
  n,
447
- a.lookahead(/\(/)
449
+ t.lookahead(/\s*\(/)
448
450
  ),
449
451
  className: "title.function",
450
452
  relevance: 0
451
453
  }, Z = {
452
- begin: a.concat(/\./, a.lookahead(
453
- a.concat(n, /(?![0-9A-Za-z$_(])/)
454
+ begin: t.concat(/\./, t.lookahead(
455
+ t.concat(n, /(?![0-9A-Za-z$_(])/)
454
456
  )),
455
457
  end: n,
456
458
  excludeBegin: !0,
@@ -484,7 +486,7 @@ function X(e) {
484
486
  /=\s*/,
485
487
  /(async\s*)?/,
486
488
  // async is optional
487
- a.lookahead(C)
489
+ t.lookahead(C)
488
490
  ],
489
491
  keywords: "async",
490
492
  className: {
@@ -522,7 +524,7 @@ function X(e) {
522
524
  O,
523
525
  {
524
526
  className: "attr",
525
- begin: n + a.lookahead(":"),
527
+ begin: n + t.lookahead(":"),
526
528
  relevance: 0
527
529
  },
528
530
  z,
@@ -556,7 +558,7 @@ function X(e) {
556
558
  skip: !0
557
559
  },
558
560
  {
559
- begin: /\(/,
561
+ begin: /(\s*)\(/,
560
562
  end: /\)/,
561
563
  excludeBegin: !0,
562
564
  excludeEnd: !0,