Skip to content

Commit bb3792a

Browse files
authored
feat: support message annotations (#109)
* chore: update dep versions * temp fix for types * improve chatting ui * fix lockfile * refactor * update
1 parent bca050e commit bb3792a

32 files changed

+1146
-765
lines changed

embeddable-javascript/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@mui/base": "^5.0.0-beta.33",
1717
"@mui/material": "^5.15.7",
1818
"@mui/system": "^5.15.6",
19-
"ai": "^3.0.15",
19+
"ai": "^3.0.22",
2020
"clsx": "^2.1.0",
2121
"copy-to-clipboard": "^3.3.3",
2222
"react": "^18.2.0",

embeddable-javascript/yarn.lock

+45-9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,32 @@ __metadata:
1212
languageName: node
1313
linkType: hard
1414

15+
"@ai-sdk/provider-utils@npm:0.0.0":
16+
version: 0.0.0
17+
resolution: "@ai-sdk/provider-utils@npm:0.0.0"
18+
dependencies:
19+
"@ai-sdk/provider": "npm:0.0.0"
20+
eventsource-parser: "npm:1.1.2"
21+
nanoid: "npm:3.3.6"
22+
secure-json-parse: "npm:2.7.0"
23+
peerDependencies:
24+
zod: ^3.0.0
25+
peerDependenciesMeta:
26+
zod:
27+
optional: true
28+
checksum: 10c0/6afccfa38678fcc1a3b94e41cb74c05cf947da252a4a95e23629c6b42ad23cec9ab71d5fe63b1f6ccf508d1d2cff174bf48d96e34aaa2f22f12b8cf4b851d2c4
29+
languageName: node
30+
linkType: hard
31+
32+
"@ai-sdk/provider@npm:0.0.0":
33+
version: 0.0.0
34+
resolution: "@ai-sdk/provider@npm:0.0.0"
35+
dependencies:
36+
json-schema: "npm:0.4.0"
37+
checksum: 10c0/39afef2de30d244e6b7244825ef3328857d87738c5623edae003f7f6d350c6f75b2592cd03125471ed730007fc24b226bab94d2b38cc33a01be72219ef063858
38+
languageName: node
39+
linkType: hard
40+
1541
"@babel/code-frame@npm:^7.0.0":
1642
version: 7.23.5
1743
resolution: "@babel/code-frame@npm:7.23.5"
@@ -1421,20 +1447,23 @@ __metadata:
14211447
languageName: node
14221448
linkType: hard
14231449

1424-
"ai@npm:^3.0.15":
1425-
version: 3.0.15
1426-
resolution: "ai@npm:3.0.15"
1450+
"ai@npm:^3.0.22":
1451+
version: 3.0.22
1452+
resolution: "ai@npm:3.0.22"
14271453
dependencies:
1454+
"@ai-sdk/provider": "npm:0.0.0"
1455+
"@ai-sdk/provider-utils": "npm:0.0.0"
14281456
eventsource-parser: "npm:1.1.2"
1429-
jsondiffpatch: "npm:^0.6.0"
1457+
json-schema: "npm:0.4.0"
1458+
jsondiffpatch: "npm:0.6.0"
14301459
nanoid: "npm:3.3.6"
14311460
secure-json-parse: "npm:2.7.0"
14321461
solid-swr-store: "npm:0.10.7"
14331462
sswr: "npm:2.0.0"
14341463
swr: "npm:2.2.0"
14351464
swr-store: "npm:0.10.6"
14361465
swrv: "npm:1.0.4"
1437-
zod-to-json-schema: "npm:^3.22.4"
1466+
zod-to-json-schema: "npm:3.22.5"
14381467
peerDependencies:
14391468
react: ^18.2.0
14401469
solid-js: ^1.7.7
@@ -1452,7 +1481,7 @@ __metadata:
14521481
optional: true
14531482
zod:
14541483
optional: true
1455-
checksum: 10c0/554f6b9caeca5b96e26733da32146e61a08bb3b1000cf582a8f70f579f82a820855596dd26aa73f3f06f92e8cfc18b1cdac19974f47a3c41380389eabfc5e6d0
1484+
checksum: 10c0/f223c55d56c3b9a863d27345dd95cb8026a428be6e3b92ca3b5e59cc18d315448ddb56d294a644451a997832050b5d230b7d32c29416724382f29c63db7cf61d
14561485
languageName: node
14571486
linkType: hard
14581487

@@ -1968,7 +1997,7 @@ __metadata:
19681997
"@typescript-eslint/eslint-plugin": "npm:^6.14.0"
19691998
"@typescript-eslint/parser": "npm:^6.14.0"
19701999
"@vitejs/plugin-react-swc": "npm:^3.5.0"
1971-
ai: "npm:^3.0.15"
2000+
ai: "npm:^3.0.22"
19722001
autoprefixer: "npm:^10.4.17"
19732002
clsx: "npm:^2.1.0"
19742003
copy-to-clipboard: "npm:^3.3.3"
@@ -2952,14 +2981,21 @@ __metadata:
29522981
languageName: node
29532982
linkType: hard
29542983

2984+
"json-schema@npm:0.4.0":
2985+
version: 0.4.0
2986+
resolution: "json-schema@npm:0.4.0"
2987+
checksum: 10c0/d4a637ec1d83544857c1c163232f3da46912e971d5bf054ba44fdb88f07d8d359a462b4aec46f2745efbc57053365608d88bc1d7b1729f7b4fc3369765639ed3
2988+
languageName: node
2989+
linkType: hard
2990+
29552991
"json-stable-stringify-without-jsonify@npm:^1.0.1":
29562992
version: 1.0.1
29572993
resolution: "json-stable-stringify-without-jsonify@npm:1.0.1"
29582994
checksum: 10c0/cb168b61fd4de83e58d09aaa6425ef71001bae30d260e2c57e7d09a5fd82223e2f22a042dedaab8db23b7d9ae46854b08bb1f91675a8be11c5cffebef5fb66a5
29592995
languageName: node
29602996
linkType: hard
29612997

2962-
"jsondiffpatch@npm:^0.6.0":
2998+
"jsondiffpatch@npm:0.6.0":
29632999
version: 0.6.0
29643000
resolution: "jsondiffpatch@npm:0.6.0"
29653001
dependencies:
@@ -5116,7 +5152,7 @@ __metadata:
51165152
languageName: node
51175153
linkType: hard
51185154

5119-
"zod-to-json-schema@npm:^3.22.4":
5155+
"zod-to-json-schema@npm:3.22.5":
51205156
version: 3.22.5
51215157
resolution: "zod-to-json-schema@npm:3.22.5"
51225158
peerDependencies:

next.config.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const withMDX = mdx({});
77
let nextConfig = withSvgr(withMDX({
88
output: process.env.STANDALONE_BUILD ? 'standalone' : undefined,
99
experimental: {
10+
optimizePackageImports: ['ai', 'lucide-react'],
1011
serverComponentsExternalPackages: ['pdfjs-dist', 'llamaindex'],
1112
outputFileTracingExcludes: {
1213
'*': ['**canvas**'],

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@
5959
"hast-util-to-text": "^4.0.0",
6060
"kysely": "^0.27.2",
6161
"liquidjs": "^10.10.0",
62-
"llamaindex": "^0.2.5",
62+
"llamaindex": "^0.2.8",
6363
"luxon": "^3.4.4",
6464
"match-url-wildcard": "^0.0.5",
6565
"micromatch": "^4.0.5",
6666
"mime": "^4.0.1",
6767
"mysql2": "^3.7.1",
6868
"nanoid": "^5.0.4",
69-
"next": "14.0.4",
69+
"next": "14.2.1",
7070
"next-auth": "5.0.0-beta.5",
7171
"openai": "^4.25.0",
7272
"pdfjs-dist": "^4.0.379",
@@ -117,11 +117,11 @@
117117
"@types/react-dom": "^18",
118118
"@types/react-syntax-highlighter": "^15.5.11",
119119
"ace-builds": "^1.32.5",
120-
"ai": "^3.0.15",
120+
"ai": "^3.0.22",
121121
"autoprefixer": "^10.0.1",
122122
"client-zip": "^2.4.4",
123123
"eslint": "^8",
124-
"eslint-config-next": "14.0.4",
124+
"eslint-config-next": "14.2.1",
125125
"kysely-codegen": "^0.11.0",
126126
"lodash": "^4.17.21",
127127
"lucide-react": "^0.320.0",

0 commit comments

Comments
 (0)