@veracity/ai 0.0.17 → 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.
- package/dist/{ChatCompletionSSE.d.ts → ChatClient.d.ts} +22 -13
- package/dist/ChatClient.d.ts.map +1 -0
- package/dist/ChatMessageItem.d.ts +1 -1
- package/dist/ClientFunctionInvocation.d.ts +14 -0
- package/dist/ClientFunctionInvocation.d.ts.map +1 -0
- package/dist/ClientFunctionInvocationContext.d.ts +10 -0
- package/dist/ClientFunctionInvocationContext.d.ts.map +1 -0
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.d.ts.map +1 -1
- package/dist/Markdown/math.d.ts.map +1 -1
- package/dist/MaxInputLimitReachedError.d.ts +4 -0
- package/dist/MaxInputLimitReachedError.d.ts.map +1 -0
- package/dist/Pyodide.d.ts +1 -1
- package/dist/Pyodide.d.ts.map +1 -1
- package/dist/ToolCallBuilder.d.ts +13 -0
- package/dist/ToolCallBuilder.d.ts.map +1 -0
- package/dist/UnexpectedEndOfStreamError.d.ts +4 -0
- package/dist/UnexpectedEndOfStreamError.d.ts.map +1 -0
- package/dist/components/Button.d.ts +1 -0
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/ButtonOptionsDialog.d.ts +27 -0
- package/dist/components/ButtonOptionsDialog.d.ts.map +1 -0
- package/dist/components/Chat/index.d.ts +39 -0
- package/dist/components/Chat/index.d.ts.map +1 -0
- package/dist/components/Conversation.d.ts +54 -0
- package/dist/components/Conversation.d.ts.map +1 -0
- package/dist/components/ConversationMessage.d.ts +53 -0
- package/dist/components/ConversationMessage.d.ts.map +1 -0
- package/dist/components/PythonCodeInterpreter.d.ts +38 -0
- package/dist/components/PythonCodeInterpreter.d.ts.map +1 -0
- package/dist/components/Search.d.ts +16 -0
- package/dist/components/Search.d.ts.map +1 -0
- package/dist/components/icons/AngleDown.d.ts +3 -0
- package/dist/components/icons/AngleDown.d.ts.map +1 -0
- package/dist/components/icons/ArrowDown.d.ts +1 -1
- package/dist/components/icons/Check.d.ts +1 -1
- package/dist/components/icons/CheckCircle.d.ts +3 -0
- package/dist/components/icons/CheckCircle.d.ts.map +1 -0
- package/dist/components/icons/ExclamationCircle.d.ts +1 -1
- package/dist/components/icons/ExclamationTriangle.d.ts +1 -1
- package/dist/components/icons/InfoCircle.d.ts +1 -1
- package/dist/components/icons/QuestionCircle.d.ts +1 -1
- package/dist/components/icons/SearchIcon.d.ts +3 -0
- package/dist/components/icons/SearchIcon.d.ts.map +1 -0
- package/dist/components/icons/Spinner.d.ts +1 -1
- package/dist/components/icons/Times.d.ts +3 -0
- package/dist/components/icons/Times.d.ts.map +1 -0
- package/dist/components/icons/TimesCircle.d.ts +1 -1
- package/dist/core-CdG-ENX3.js +1069 -0
- package/dist/{csharp-Cigc7XMa.js → csharp-EkcwwkCa.js} +18 -13
- package/dist/{css-B-yPI1XM.js → css-CJS6IEi0.js} +127 -18
- package/dist/dtos.d.ts +34 -4
- package/dist/dtos.d.ts.map +1 -1
- package/dist/enums.d.ts +13 -29
- package/dist/enums.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/{javascript-CDslspYb.js → javascript-B2FVNeJt.js} +26 -24
- package/dist/{katex-Cj8zHzei.js → katex-c21813vb.js} +454 -428
- package/dist/{python-CzH_tl5q.js → python-CymlFLB0.js} +21 -19
- package/dist/{typescript-Bx5cZccb.js → typescript-Cg8DWaxm.js} +163 -148
- package/dist/utils/CancellationToken.d.ts.map +1 -1
- package/dist/utils/Channel.d.ts +42 -1
- package/dist/utils/Channel.d.ts.map +1 -1
- package/dist/utils/animateAsync.d.ts +1 -1
- package/dist/utils/createDeferred.d.ts.map +1 -1
- package/dist/utils/parsePartialJSON.d.ts +1 -1
- package/dist/utils/parsePartialJSON.d.ts.map +1 -1
- package/dist/veracity-ai.es.js +5359 -5416
- package/dist/veracity-ai.umd.js +37 -40
- package/package.json +71 -43
- package/dist/ChatCompletionSSE.d.ts.map +0 -1
- package/dist/Markdown copy.d.ts +0 -2
- package/dist/Markdown copy.d.ts.map +0 -1
- package/dist/MessageLimitExceededError.d.ts +0 -6
- package/dist/MessageLimitExceededError.d.ts.map +0 -1
- package/dist/Pyodide_test.d.ts +0 -1
- package/dist/Pyodide_test.d.ts.map +0 -1
- package/dist/components/AIChat/index.d.ts +0 -42
- package/dist/components/AIChat/index.d.ts.map +0 -1
- package/dist/components/AIChatAgentMessage.d.ts +0 -28
- package/dist/components/AIChatAgentMessage.d.ts.map +0 -1
- package/dist/components/AIChatMessage.d.ts +0 -1
- package/dist/components/AIChatMessage.d.ts.map +0 -1
- package/dist/components/AIChatToolCallGroup.d.ts +0 -21
- package/dist/components/AIChatToolCallGroup.d.ts.map +0 -1
- package/dist/components/AIChatUserMessage.d.ts +0 -14
- package/dist/components/AIChatUserMessage.d.ts.map +0 -1
- package/dist/components/AIConversation.d.ts +0 -8
- package/dist/components/AIConversation.d.ts.map +0 -1
- package/dist/components/AIParent.d.ts +0 -8
- package/dist/components/AIParent.d.ts.map +0 -1
- package/dist/components/ErrorNotification.d.ts +0 -2
- package/dist/components/ErrorNotification.d.ts.map +0 -1
- package/dist/components/ToolCallComponent/TaskItemComponent.d.ts +0 -14
- package/dist/components/ToolCallComponent/TaskItemComponent.d.ts.map +0 -1
- package/dist/components/ToolCallComponent/index.d.ts +0 -86
- package/dist/components/ToolCallComponent/index.d.ts.map +0 -1
- package/dist/components/VeracityAvatar.d.ts +0 -3
- package/dist/components/VeracityAvatar.d.ts.map +0 -1
- package/dist/components/VeracityLogoSquare.d.ts +0 -3
- package/dist/components/VeracityLogoSquare.d.ts.map +0 -1
- package/dist/core-Diwflo5W.js +0 -1077
- package/dist/modals.d.ts +0 -9
- package/dist/modals.d.ts.map +0 -1
- package/dist/utils/decodePythonTripleQuotedString.d.ts +0 -2
- package/dist/utils/decodePythonTripleQuotedString.d.ts.map +0 -1
- package/dist/utils/generateAvatarLetter.d.ts +0 -2
- package/dist/utils/generateAvatarLetter.d.ts.map +0 -1
- package/dist/utils/getElementTextPreserveNewlines.d.ts +0 -2
- 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
|
|
147
|
-
const l = "</" +
|
|
148
|
-
return
|
|
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: (
|
|
160
|
-
const 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(
|
|
172
|
+
d === ">" && (B(a, { after: l }) || r.ignoreMatch());
|
|
173
173
|
let u;
|
|
174
|
-
const M =
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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(
|
|
436
|
-
return
|
|
437
|
+
function P(a) {
|
|
438
|
+
return t.concat("(?!", a.join("|"), ")");
|
|
437
439
|
}
|
|
438
440
|
const $ = {
|
|
439
|
-
match:
|
|
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
|
-
|
|
449
|
+
t.lookahead(/\s*\(/)
|
|
448
450
|
),
|
|
449
451
|
className: "title.function",
|
|
450
452
|
relevance: 0
|
|
451
453
|
}, Z = {
|
|
452
|
-
begin:
|
|
453
|
-
|
|
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
|
-
|
|
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 +
|
|
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,
|