A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feature: Add PDF support (#88)
Ahmad Mujahidbe622e5594ec
diff --git a/apps/mobile/lib/upload.ts b/apps/mobile/lib/upload.tsindex 56b2c7a5..f9d05967 100644--- a/apps/mobile/lib/upload.ts+++ b/apps/mobile/lib/upload.ts@@ -38,7 +38,7 @@ export function useUploadAsset(mutationFn: async (file: { type: string; name: string; uri: string }) => {const formData = new FormData();// @ts-expect-error This is a valid api in react native- formData.append("image", {+ formData.append("file", {uri: file.uri,name: file.name,type: file.type,@@ -57,7 +57,9 @@ export function useUploadAsset(},onSuccess: (resp) => {const assetId = resp.assetId;- createBookmark({ type: "asset", assetId, assetType: "image" });+ const assetType =+ resp.contentType === "application/pdf" ? "pdf" : "image";+ createBookmark({ type: "asset", assetId, assetType });},onError: (e) => {if (options.onError) {diff --git a/apps/mobile/package.json b/apps/mobile/package.jsonindex 9f170040..248f1f53 100644--- a/apps/mobile/package.json+++ b/apps/mobile/package.json@@ -31,7 +31,7 @@"expo-navigation-bar": "~2.8.1","expo-router": "~3.4.8","expo-secure-store": "^12.8.1",- "expo-share-intent": "^1.1.0",+ "expo-share-intent": "1.1.0","expo-status-bar": "~1.11.1","expo-system-ui": "^2.9.3","expo-web-browser": "^12.8.2",diff --git a/apps/web/app/api/assets/route.ts b/apps/web/app/api/assets/route.tsindex 0bb2f778..5b72033a 100644--- a/apps/web/app/api/assets/route.ts+++ b/apps/web/app/api/assets/route.ts@@ -9,6 +9,7 @@ const SUPPORTED_ASSET_TYPES = new Set(["image/jpeg","image/png","image/webp",+ "application/pdf",]);const MAX_UPLOAD_SIZE_BYTES = serverConfig.maxAssetSizeMb * 1024 * 1024;@@ -26,7 +27,7 @@ export async function POST(request: Request) {});}const formData = await request.formData();- const data = formData.get("image");+ const data = formData.get("file") ?? formData.get("image");let buffer;let contentType;if (data instanceof File) {@@ -46,11 +47,12 @@ export async function POST(request: Request) {}const assetId = crypto.randomUUID();+ const fileName = data.name;await saveAsset({userId: ctx.user.id,assetId,- metadata: { contentType },+ metadata: { contentType, fileName },asset: buffer,});@@ -58,5 +60,6 @@ export async function POST(request: Request) {assetId,contentType,size: buffer.byteLength,+ fileName,} satisfies ZUploadResponse);}diff --git a/apps/web/components/dashboard/UploadDropzone.tsx b/apps/web/components/dashboard/UploadDropzone.tsxindex bd08d2cf..f6243885 100644--- a/apps/web/components/dashboard/UploadDropzone.tsx+++ b/apps/web/components/dashboard/UploadDropzone.tsx@@ -29,7 +29,7 @@ function useUploadAsset({ onComplete }: { onComplete: () => void }) {const { mutateAsync: runUpload } = useMutation({mutationFn: async (file: File) => {const formData = new FormData();- formData.append("image", file);+ formData.append("file", file);const resp = await fetch("/api/assets", {method: "POST",body: formData,@@ -40,8 +40,9 @@ function useUploadAsset({ onComplete }: { onComplete: () => void }) {return zUploadResponseSchema.parse(await resp.json());},onSuccess: async (resp) => {- const assetId = resp.assetId;- return createBookmark({ type: "asset", assetId, assetType: "image" });+ const assetType =+ resp.contentType === "application/pdf" ? "pdf" : "image";+ return createBookmark({ ...resp, type: "asset", assetType });},onError: (error, req) => {const err = zUploadErrorSchema.parse(JSON.parse(error.message));diff --git a/apps/web/components/dashboard/bookmarks/AssetCard.tsx b/apps/web/components/dashboard/bookmarks/AssetCard.tsxindex 460dbe98..8997a7e2 100644--- a/apps/web/components/dashboard/bookmarks/AssetCard.tsx+++ b/apps/web/components/dashboard/bookmarks/AssetCard.tsx@@ -59,6 +59,13 @@ export default function AssetCard({/></div>)}+ {bookmarkedAsset.assetType == "pdf" && (+ <iframe+ title={bookmarkedAsset.assetId}+ className="h-56 max-h-56 w-full"+ src={`/api/assets/${bookmarkedAsset.assetId}`}+ />+ )}<div className="flex flex-col gap-y-1 overflow-hidden p-2"><div className="flex h-full flex-wrap gap-1 overflow-hidden"><TagListdiff --git a/apps/web/components/dashboard/preview/AssetContentSection.tsx b/apps/web/components/dashboard/preview/AssetContentSection.tsxindex 3fbbc519..4a025f9d 100644--- a/apps/web/components/dashboard/preview/AssetContentSection.tsx+++ b/apps/web/components/dashboard/preview/AssetContentSection.tsx@@ -7,25 +7,30 @@ export function AssetContentSection({ bookmark }: { bookmark: ZBookmark }) {throw new Error("Invalid content type");}- let content;switch (bookmark.content.assetType) {case "image": {- switch (bookmark.content.assetType) {- case "image": {- content = (- <div className="relative h-full min-w-full">- <Image- alt="asset"- fill={true}- className="object-contain"- src={`/api/assets/${bookmark.content.assetId}`}- />- </div>- );- }- }- break;+ return (+ <div className="relative h-full min-w-full">+ <Image+ alt="asset"+ fill={true}+ className="object-contain"+ src={`/api/assets/${bookmark.content.assetId}`}+ />+ </div>+ );+ }+ case "pdf": {+ return (+ <iframe+ title={bookmark.content.assetId}+ className="h-full w-full"+ src={`/api/assets/${bookmark.content.assetId}`}+ />+ );+ }+ default: {+ return <div>Unsupported asset type</div>;}}- return content;}diff --git a/apps/workers/openaiWorker.ts b/apps/workers/openaiWorker.tsindex c7b519e2..b07e02fe 100644--- a/apps/workers/openaiWorker.ts+++ b/apps/workers/openaiWorker.ts@@ -5,7 +5,12 @@ import { z } from "zod";import type { ZOpenAIRequest } from "@hoarder/shared/queues";import { db } from "@hoarder/db";-import { bookmarks, bookmarkTags, tagsOnBookmarks } from "@hoarder/db/schema";+import {+ bookmarkAssets,+ bookmarks,+ bookmarkTags,+ tagsOnBookmarks,+} from "@hoarder/db/schema";import { readAsset } from "@hoarder/shared/assetdb";import serverConfig from "@hoarder/shared/config";import logger from "@hoarder/shared/logger";@@ -18,6 +23,7 @@ import {import type { InferenceClient } from "./inference";import { InferenceClientFactory } from "./inference";+import { readPDFText, truncateContent } from "./utils";const openAIResponseSchema = z.object({tags: z.array(z.string()),@@ -91,14 +97,6 @@ CONTENT START HERE:function buildPrompt(bookmark: NonNullable<Awaited<ReturnType<typeof fetchBookmark>>>,) {- const truncateContent = (content: string) => {- let words = content.split(" ");- if (words.length > 1500) {- words = words.slice(1500);- content = words.join(" ");- }- return content;- };if (bookmark.link) {if (!bookmark.link.description && !bookmark.link.content) {throw new Error(@@ -158,14 +156,48 @@ async function inferTagsFromImage();}const base64 = asset.toString("base64");-- return await inferenceClient.inferFromImage(+ return inferenceClient.inferFromImage(IMAGE_PROMPT_BASE,metadata.contentType,base64,);}+async function inferTagsFromPDF(+ jobId: string,+ bookmark: NonNullable<Awaited<ReturnType<typeof fetchBookmark>>>,+ inferenceClient: InferenceClient,+) {+ const { asset } = await readAsset({+ userId: bookmark.userId,+ assetId: bookmark.asset.assetId,+ });+ if (!asset) {+ throw new Error(+ `[inference][${jobId}] AssetId ${bookmark.asset.assetId} for bookmark ${bookmark.id} not found`,+ );+ }+ const pdfParse = await readPDFText(asset);+ if (!pdfParse?.text) {+ throw new Error(+ `[inference][${jobId}] PDF text is empty. Please make sure that the PDF includes text and not just images.`,+ );+ }++ await db+ .update(bookmarkAssets)+ .set({+ content: pdfParse.text,+ metadata: pdfParse.metadata ? JSON.stringify(pdfParse.metadata) : null,+ })+ .where(eq(bookmarkAssets.id, bookmark.id));++ const prompt = `${TEXT_PROMPT_BASE}+Content: ${truncateContent(pdfParse.text)}+`;+ return inferenceClient.inferFromText(prompt);+}+async function inferTagsFromText(bookmark: NonNullable<Awaited<ReturnType<typeof fetchBookmark>>>,inferenceClient: InferenceClient,@@ -182,11 +214,24 @@ async function inferTags(if (bookmark.link || bookmark.text) {response = await inferTagsFromText(bookmark, inferenceClient);} else if (bookmark.asset) {- response = await inferTagsFromImage(jobId, bookmark, inferenceClient);+ switch (bookmark.asset.assetType) {+ case "image":+ response = await inferTagsFromImage(jobId, bookmark, inferenceClient);+ break;+ case "pdf":+ response = await inferTagsFromPDF(jobId, bookmark, inferenceClient);+ break;+ default:+ throw new Error(`[inference][${jobId}] Unsupported bookmark type`);+ }} else {throw new Error(`[inference][${jobId}] Unsupported bookmark type`);}+ if (!response) {+ throw new Error(`[inference][${jobId}] Inference response is empty`);+ }+try {let tags = openAIResponseSchema.parse(JSON.parse(response.response)).tags;logger.info(diff --git a/apps/workers/package.json b/apps/workers/package.jsonindex c9de43a4..e14c576b 100644--- a/apps/workers/package.json+++ b/apps/workers/package.json@@ -26,6 +26,8 @@"metascraper-url": "^5.43.4","ollama": "^0.5.0","openai": "^4.29.0",+ "pdf2json": "^3.0.5",+ "pdfjs-dist": "^4.0.379","puppeteer": "^22.0.0","puppeteer-extra": "^3.3.6","puppeteer-extra-plugin-adblocker": "^2.13.6",diff --git a/apps/workers/searchWorker.ts b/apps/workers/searchWorker.tsindex 79b0c8c1..fcef7a1b 100644--- a/apps/workers/searchWorker.ts+++ b/apps/workers/searchWorker.ts@@ -48,6 +48,7 @@ async function runIndex(with: {link: true,text: true,+ asset: true,tagsOnBookmarks: {with: {tag: true,@@ -72,6 +73,12 @@ async function runIndex(content: bookmark.link.content,}: undefined),+ ...(bookmark.asset+ ? {+ content: bookmark.asset.content,+ metadata: bookmark.asset.metadata,+ }+ : undefined),...(bookmark.text ? { content: bookmark.text.text } : undefined),note: bookmark.note,createdAt: bookmark.createdAt.toISOString(),diff --git a/apps/workers/utils.ts b/apps/workers/utils.tsindex 2f56d3f0..f8c48408 100644--- a/apps/workers/utils.ts+++ b/apps/workers/utils.ts@@ -1,3 +1,5 @@+import PDFParser from "pdf2json";+export function withTimeout<T, Ret>(func: (param: T) => Promise<Ret>,timeoutSec: number,@@ -14,3 +16,33 @@ export function withTimeout<T, Ret>(]);};}++export async function readPDFText(buffer: Buffer): Promise<{+ text: string;+ metadata: Record<string, string>;+}> {+ return new Promise((resolve, reject) => {+ // Need raw text flag represents as number (1), reference : https://github.com/modesty/pdf2json/issues/76#issuecomment-236569265+ const pdfParser = new PDFParser(null, 1);+ pdfParser.on("pdfParser_dataError", reject);+ pdfParser.on("pdfParser_dataReady", (pdfData) => {+ // eslint-disable-next-line+ resolve({+ // The type isn't set correctly, reference : https://github.com/modesty/pdf2json/issues/327+ // eslint-disable-next-line+ text: (pdfParser as any).getRawTextContent(),+ metadata: pdfData.Meta,+ });+ });+ pdfParser.parseBuffer(buffer);+ });+}++export function truncateContent(content: string, length = 1500) {+ let words = content.split(" ");+ if (words.length > length) {+ words = words.slice(length);+ content = words.join(" ");+ }+ return content;+}diff --git a/packages/db/drizzle/0015_first_reavers.sql b/packages/db/drizzle/0015_first_reavers.sqlnew file mode 100644index 00000000..4a1c4959--- /dev/null+++ b/packages/db/drizzle/0015_first_reavers.sql@@ -0,0 +1,3 @@+ALTER TABLE bookmarkAssets ADD `content` text;--> statement-breakpoint+ALTER TABLE bookmarkAssets ADD `metadata` text;--> statement-breakpoint+ALTER TABLE bookmarkAssets ADD `info` text;\ No newline at end of filediff --git a/packages/db/drizzle/0016_shallow_rawhide_kid.sql b/packages/db/drizzle/0016_shallow_rawhide_kid.sqlnew file mode 100644index 00000000..ac041644--- /dev/null+++ b/packages/db/drizzle/0016_shallow_rawhide_kid.sql@@ -0,0 +1,2 @@+ALTER TABLE bookmarkAssets ADD `fileName` text;--> statement-breakpoint+ALTER TABLE `bookmarkAssets` DROP COLUMN `info`;\ No newline at end of filediff --git a/packages/db/drizzle/meta/0015_snapshot.json b/packages/db/drizzle/meta/0015_snapshot.jsonnew file mode 100644index 00000000..0726ee73--- /dev/null+++ b/packages/db/drizzle/meta/0015_snapshot.json@@ -0,0 +1,959 @@+{+ "version": "5",+ "dialect": "sqlite",+ "id": "72cbe030-48d3-4cd6-ae90-8897291cd711",+ "prevId": "55a06f75-6b46-41d9-9f39-d842f065551d",+ "tables": {+ "account": {+ "name": "account",+ "columns": {+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "session_state": {+ "name": "session_state",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "account_userId_user_id_fk": {+ "name": "account_userId_user_id_fk",+ "tableFrom": "account",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "account_provider_providerAccountId_pk": {+ "columns": [+ "provider",+ "providerAccountId"+ ],+ "name": "account_provider_providerAccountId_pk"+ }+ },+ "uniqueConstraints": {}+ },+ "apiKey": {+ "name": "apiKey",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "keyId": {+ "name": "keyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "keyHash": {+ "name": "keyHash",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "apiKey_keyId_unique": {+ "name": "apiKey_keyId_unique",+ "columns": [+ "keyId"+ ],+ "isUnique": true+ },+ "apiKey_name_userId_unique": {+ "name": "apiKey_name_userId_unique",+ "columns": [+ "name",+ "userId"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "apiKey_userId_user_id_fk": {+ "name": "apiKey_userId_user_id_fk",+ "tableFrom": "apiKey",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkAssets": {+ "name": "bookmarkAssets",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "assetType": {+ "name": "assetType",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "assetId": {+ "name": "assetId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "info": {+ "name": "info",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "bookmarkAssets_id_bookmarks_id_fk": {+ "name": "bookmarkAssets_id_bookmarks_id_fk",+ "tableFrom": "bookmarkAssets",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkLinks": {+ "name": "bookmarkLinks",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "url": {+ "name": "url",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "imageUrl": {+ "name": "imageUrl",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "favicon": {+ "name": "favicon",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "htmlContent": {+ "name": "htmlContent",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "crawledAt": {+ "name": "crawledAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "bookmarkLinks_id_bookmarks_id_fk": {+ "name": "bookmarkLinks_id_bookmarks_id_fk",+ "tableFrom": "bookmarkLinks",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkLists": {+ "name": "bookmarkLists",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "icon": {+ "name": "icon",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarkLists_userId_idx": {+ "name": "bookmarkLists_userId_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "bookmarkLists_name_userId_unique": {+ "name": "bookmarkLists_name_userId_unique",+ "columns": [+ "name",+ "userId"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "bookmarkLists_userId_user_id_fk": {+ "name": "bookmarkLists_userId_user_id_fk",+ "tableFrom": "bookmarkLists",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkTags": {+ "name": "bookmarkTags",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarkTags_name_idx": {+ "name": "bookmarkTags_name_idx",+ "columns": [+ "name"+ ],+ "isUnique": false+ },+ "bookmarkTags_userId_idx": {+ "name": "bookmarkTags_userId_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "bookmarkTags_userId_name_unique": {+ "name": "bookmarkTags_userId_name_unique",+ "columns": [+ "userId",+ "name"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "bookmarkTags_userId_user_id_fk": {+ "name": "bookmarkTags_userId_user_id_fk",+ "tableFrom": "bookmarkTags",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkTexts": {+ "name": "bookmarkTexts",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "text": {+ "name": "text",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "bookmarkTexts_id_bookmarks_id_fk": {+ "name": "bookmarkTexts_id_bookmarks_id_fk",+ "tableFrom": "bookmarkTexts",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarks": {+ "name": "bookmarks",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "archived": {+ "name": "archived",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "favourited": {+ "name": "favourited",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "taggingStatus": {+ "name": "taggingStatus",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'pending'"+ },+ "note": {+ "name": "note",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarks_userId_idx": {+ "name": "bookmarks_userId_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "bookmarks_archived_idx": {+ "name": "bookmarks_archived_idx",+ "columns": [+ "archived"+ ],+ "isUnique": false+ },+ "bookmarks_favourited_idx": {+ "name": "bookmarks_favourited_idx",+ "columns": [+ "favourited"+ ],+ "isUnique": false+ },+ "bookmarks_createdAt_idx": {+ "name": "bookmarks_createdAt_idx",+ "columns": [+ "createdAt"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "bookmarks_userId_user_id_fk": {+ "name": "bookmarks_userId_user_id_fk",+ "tableFrom": "bookmarks",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarksInLists": {+ "name": "bookmarksInLists",+ "columns": {+ "bookmarkId": {+ "name": "bookmarkId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "listId": {+ "name": "listId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarksInLists_bookmarkId_idx": {+ "name": "bookmarksInLists_bookmarkId_idx",+ "columns": [+ "bookmarkId"+ ],+ "isUnique": false+ },+ "bookmarksInLists_listId_idx": {+ "name": "bookmarksInLists_listId_idx",+ "columns": [+ "listId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "bookmarksInLists_bookmarkId_bookmarks_id_fk": {+ "name": "bookmarksInLists_bookmarkId_bookmarks_id_fk",+ "tableFrom": "bookmarksInLists",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "bookmarkId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "bookmarksInLists_listId_bookmarkLists_id_fk": {+ "name": "bookmarksInLists_listId_bookmarkLists_id_fk",+ "tableFrom": "bookmarksInLists",+ "tableTo": "bookmarkLists",+ "columnsFrom": [+ "listId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "bookmarksInLists_bookmarkId_listId_pk": {+ "columns": [+ "bookmarkId",+ "listId"+ ],+ "name": "bookmarksInLists_bookmarkId_listId_pk"+ }+ },+ "uniqueConstraints": {}+ },+ "session": {+ "name": "session",+ "columns": {+ "sessionToken": {+ "name": "sessionToken",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "session_userId_user_id_fk": {+ "name": "session_userId_user_id_fk",+ "tableFrom": "session",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "tagsOnBookmarks": {+ "name": "tagsOnBookmarks",+ "columns": {+ "bookmarkId": {+ "name": "bookmarkId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "tagId": {+ "name": "tagId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "attachedAt": {+ "name": "attachedAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "attachedBy": {+ "name": "attachedBy",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "tagsOnBookmarks_tagId_idx": {+ "name": "tagsOnBookmarks_tagId_idx",+ "columns": [+ "bookmarkId"+ ],+ "isUnique": false+ },+ "tagsOnBookmarks_bookmarkId_idx": {+ "name": "tagsOnBookmarks_bookmarkId_idx",+ "columns": [+ "bookmarkId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "tagsOnBookmarks_bookmarkId_bookmarks_id_fk": {+ "name": "tagsOnBookmarks_bookmarkId_bookmarks_id_fk",+ "tableFrom": "tagsOnBookmarks",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "bookmarkId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "tagsOnBookmarks_tagId_bookmarkTags_id_fk": {+ "name": "tagsOnBookmarks_tagId_bookmarkTags_id_fk",+ "tableFrom": "tagsOnBookmarks",+ "tableTo": "bookmarkTags",+ "columnsFrom": [+ "tagId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "tagsOnBookmarks_bookmarkId_tagId_pk": {+ "columns": [+ "bookmarkId",+ "tagId"+ ],+ "name": "tagsOnBookmarks_bookmarkId_tagId_pk"+ }+ },+ "uniqueConstraints": {}+ },+ "user": {+ "name": "user",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'user'"+ }+ },+ "indexes": {+ "user_email_unique": {+ "name": "user_email_unique",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "verificationToken": {+ "name": "verificationToken",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verificationToken_identifier_token_pk": {+ "columns": [+ "identifier",+ "token"+ ],+ "name": "verificationToken_identifier_token_pk"+ }+ },+ "uniqueConstraints": {}+ }+ },+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ }+}\ No newline at end of filediff --git a/packages/db/drizzle/meta/0016_snapshot.json b/packages/db/drizzle/meta/0016_snapshot.jsonnew file mode 100644index 00000000..b6780914--- /dev/null+++ b/packages/db/drizzle/meta/0016_snapshot.json@@ -0,0 +1,959 @@+{+ "version": "5",+ "dialect": "sqlite",+ "id": "72b4a92d-dcf7-4a16-9f58-14dca905cbd4",+ "prevId": "72cbe030-48d3-4cd6-ae90-8897291cd711",+ "tables": {+ "account": {+ "name": "account",+ "columns": {+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "session_state": {+ "name": "session_state",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "account_userId_user_id_fk": {+ "name": "account_userId_user_id_fk",+ "tableFrom": "account",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "account_provider_providerAccountId_pk": {+ "columns": [+ "provider",+ "providerAccountId"+ ],+ "name": "account_provider_providerAccountId_pk"+ }+ },+ "uniqueConstraints": {}+ },+ "apiKey": {+ "name": "apiKey",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "keyId": {+ "name": "keyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "keyHash": {+ "name": "keyHash",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "apiKey_keyId_unique": {+ "name": "apiKey_keyId_unique",+ "columns": [+ "keyId"+ ],+ "isUnique": true+ },+ "apiKey_name_userId_unique": {+ "name": "apiKey_name_userId_unique",+ "columns": [+ "name",+ "userId"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "apiKey_userId_user_id_fk": {+ "name": "apiKey_userId_user_id_fk",+ "tableFrom": "apiKey",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkAssets": {+ "name": "bookmarkAssets",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "assetType": {+ "name": "assetType",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "assetId": {+ "name": "assetId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "fileName": {+ "name": "fileName",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "bookmarkAssets_id_bookmarks_id_fk": {+ "name": "bookmarkAssets_id_bookmarks_id_fk",+ "tableFrom": "bookmarkAssets",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkLinks": {+ "name": "bookmarkLinks",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "url": {+ "name": "url",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "imageUrl": {+ "name": "imageUrl",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "favicon": {+ "name": "favicon",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "htmlContent": {+ "name": "htmlContent",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "crawledAt": {+ "name": "crawledAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "bookmarkLinks_id_bookmarks_id_fk": {+ "name": "bookmarkLinks_id_bookmarks_id_fk",+ "tableFrom": "bookmarkLinks",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkLists": {+ "name": "bookmarkLists",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "icon": {+ "name": "icon",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarkLists_userId_idx": {+ "name": "bookmarkLists_userId_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "bookmarkLists_name_userId_unique": {+ "name": "bookmarkLists_name_userId_unique",+ "columns": [+ "name",+ "userId"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "bookmarkLists_userId_user_id_fk": {+ "name": "bookmarkLists_userId_user_id_fk",+ "tableFrom": "bookmarkLists",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkTags": {+ "name": "bookmarkTags",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarkTags_name_idx": {+ "name": "bookmarkTags_name_idx",+ "columns": [+ "name"+ ],+ "isUnique": false+ },+ "bookmarkTags_userId_idx": {+ "name": "bookmarkTags_userId_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "bookmarkTags_userId_name_unique": {+ "name": "bookmarkTags_userId_name_unique",+ "columns": [+ "userId",+ "name"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "bookmarkTags_userId_user_id_fk": {+ "name": "bookmarkTags_userId_user_id_fk",+ "tableFrom": "bookmarkTags",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarkTexts": {+ "name": "bookmarkTexts",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "text": {+ "name": "text",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "bookmarkTexts_id_bookmarks_id_fk": {+ "name": "bookmarkTexts_id_bookmarks_id_fk",+ "tableFrom": "bookmarkTexts",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarks": {+ "name": "bookmarks",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "archived": {+ "name": "archived",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "favourited": {+ "name": "favourited",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "taggingStatus": {+ "name": "taggingStatus",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'pending'"+ },+ "note": {+ "name": "note",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarks_userId_idx": {+ "name": "bookmarks_userId_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "bookmarks_archived_idx": {+ "name": "bookmarks_archived_idx",+ "columns": [+ "archived"+ ],+ "isUnique": false+ },+ "bookmarks_favourited_idx": {+ "name": "bookmarks_favourited_idx",+ "columns": [+ "favourited"+ ],+ "isUnique": false+ },+ "bookmarks_createdAt_idx": {+ "name": "bookmarks_createdAt_idx",+ "columns": [+ "createdAt"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "bookmarks_userId_user_id_fk": {+ "name": "bookmarks_userId_user_id_fk",+ "tableFrom": "bookmarks",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "bookmarksInLists": {+ "name": "bookmarksInLists",+ "columns": {+ "bookmarkId": {+ "name": "bookmarkId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "listId": {+ "name": "listId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "bookmarksInLists_bookmarkId_idx": {+ "name": "bookmarksInLists_bookmarkId_idx",+ "columns": [+ "bookmarkId"+ ],+ "isUnique": false+ },+ "bookmarksInLists_listId_idx": {+ "name": "bookmarksInLists_listId_idx",+ "columns": [+ "listId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "bookmarksInLists_bookmarkId_bookmarks_id_fk": {+ "name": "bookmarksInLists_bookmarkId_bookmarks_id_fk",+ "tableFrom": "bookmarksInLists",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "bookmarkId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "bookmarksInLists_listId_bookmarkLists_id_fk": {+ "name": "bookmarksInLists_listId_bookmarkLists_id_fk",+ "tableFrom": "bookmarksInLists",+ "tableTo": "bookmarkLists",+ "columnsFrom": [+ "listId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "bookmarksInLists_bookmarkId_listId_pk": {+ "columns": [+ "bookmarkId",+ "listId"+ ],+ "name": "bookmarksInLists_bookmarkId_listId_pk"+ }+ },+ "uniqueConstraints": {}+ },+ "session": {+ "name": "session",+ "columns": {+ "sessionToken": {+ "name": "sessionToken",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "session_userId_user_id_fk": {+ "name": "session_userId_user_id_fk",+ "tableFrom": "session",+ "tableTo": "user",+ "columnsFrom": [+ "userId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "tagsOnBookmarks": {+ "name": "tagsOnBookmarks",+ "columns": {+ "bookmarkId": {+ "name": "bookmarkId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "tagId": {+ "name": "tagId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "attachedAt": {+ "name": "attachedAt",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "attachedBy": {+ "name": "attachedBy",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "tagsOnBookmarks_tagId_idx": {+ "name": "tagsOnBookmarks_tagId_idx",+ "columns": [+ "bookmarkId"+ ],+ "isUnique": false+ },+ "tagsOnBookmarks_bookmarkId_idx": {+ "name": "tagsOnBookmarks_bookmarkId_idx",+ "columns": [+ "bookmarkId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "tagsOnBookmarks_bookmarkId_bookmarks_id_fk": {+ "name": "tagsOnBookmarks_bookmarkId_bookmarks_id_fk",+ "tableFrom": "tagsOnBookmarks",+ "tableTo": "bookmarks",+ "columnsFrom": [+ "bookmarkId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "tagsOnBookmarks_tagId_bookmarkTags_id_fk": {+ "name": "tagsOnBookmarks_tagId_bookmarkTags_id_fk",+ "tableFrom": "tagsOnBookmarks",+ "tableTo": "bookmarkTags",+ "columnsFrom": [+ "tagId"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "tagsOnBookmarks_bookmarkId_tagId_pk": {+ "columns": [+ "bookmarkId",+ "tagId"+ ],+ "name": "tagsOnBookmarks_bookmarkId_tagId_pk"+ }+ },+ "uniqueConstraints": {}+ },+ "user": {+ "name": "user",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'user'"+ }+ },+ "indexes": {+ "user_email_unique": {+ "name": "user_email_unique",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "verificationToken": {+ "name": "verificationToken",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verificationToken_identifier_token_pk": {+ "columns": [+ "identifier",+ "token"+ ],+ "name": "verificationToken_identifier_token_pk"+ }+ },+ "uniqueConstraints": {}+ }+ },+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ }+}\ No newline at end of filediff --git a/packages/db/drizzle/meta/_journal.json b/packages/db/drizzle/meta/_journal.jsonindex dea7feb2..a008e5dd 100644--- a/packages/db/drizzle/meta/_journal.json+++ b/packages/db/drizzle/meta/_journal.json@@ -106,6 +106,20 @@"when": 1711767601057,"tag": "0014_lonely_thaddeus_ross","breakpoints": true+ },+ {+ "idx": 15,+ "version": "5",+ "when": 1712584035880,+ "tag": "0015_first_reavers",+ "breakpoints": true+ },+ {+ "idx": 16,+ "version": "5",+ "when": 1712610210210,+ "tag": "0016_shallow_rawhide_kid",+ "breakpoints": true}]}\ No newline at end of filediff --git a/packages/db/schema.ts b/packages/db/schema.tsindex 2a83f2e5..c43b4dc8 100644--- a/packages/db/schema.ts+++ b/packages/db/schema.ts@@ -157,8 +157,11 @@ export const bookmarkAssets = sqliteTable("bookmarkAssets", {.primaryKey().$defaultFn(() => createId()).references(() => bookmarks.id, { onDelete: "cascade" }),- assetType: text("assetType", { enum: ["image"] }).notNull(),+ assetType: text("assetType", { enum: ["image", "pdf"] }).notNull(),assetId: text("assetId").notNull(),+ content: text("content"),+ metadata: text("metadata"),+ fileName: text("fileName"),});export const bookmarkTags = sqliteTable(diff --git a/packages/shared/assetdb.ts b/packages/shared/assetdb.tsindex 2973673f..90fc7182 100644--- a/packages/shared/assetdb.ts+++ b/packages/shared/assetdb.ts@@ -12,6 +12,7 @@ function getAssetDir(userId: string, assetId: string) {export const zAssetMetadataSchema = z.object({contentType: z.string(),+ fileName: z.string().nullish(),});export async function saveAsset({diff --git a/packages/shared/search.ts b/packages/shared/search.tsindex 7cd81061..4795d34d 100644--- a/packages/shared/search.ts+++ b/packages/shared/search.ts@@ -11,6 +11,8 @@ export const zBookmarkIdxSchema = z.object({title: z.string().nullish(),description: z.string().nullish(),content: z.string().nullish(),+ metadata: z.string().nullish(),+ fileName: z.string().nullish(),createdAt: z.string().nullish(),note: z.string().nullish(),tags: z.array(z.string()).default([]),diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.tsindex c042d3a1..66766205 100644--- a/packages/trpc/routers/bookmarks.ts+++ b/packages/trpc/routers/bookmarks.ts@@ -173,6 +173,9 @@ export const bookmarksAppRouter = router({id: bookmark.id,assetType: input.assetType,assetId: input.assetId,+ content: null,+ metadata: null,+ fileName: input.fileName ?? null,}).returning();content = {diff --git a/packages/trpc/types/bookmarks.ts b/packages/trpc/types/bookmarks.tsindex b6c8691f..089007d2 100644--- a/packages/trpc/types/bookmarks.ts+++ b/packages/trpc/types/bookmarks.ts@@ -22,8 +22,9 @@ export type ZBookmarkedText = z.infer<typeof zBookmarkedTextSchema>;export const zBookmarkedAssetSchema = z.object({type: z.literal("asset"),- assetType: z.enum(["image"]),+ assetType: z.enum(["image", "pdf"]),assetId: z.string(),+ fileName: z.string().nullish(),});export type ZBookmarkedAsset = z.infer<typeof zBookmarkedAssetSchema>;diff --git a/packages/trpc/types/uploads.ts b/packages/trpc/types/uploads.tsindex a378f802..b53b86d5 100644--- a/packages/trpc/types/uploads.ts+++ b/packages/trpc/types/uploads.ts@@ -8,6 +8,7 @@ export const zUploadResponseSchema = z.object({assetId: z.string(),contentType: z.string(),size: z.number(),+ fileName: z.string(),});export type ZUploadResponse = z.infer<typeof zUploadResponseSchema>;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex caeed82f..49d2edde 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -305,7 +305,7 @@ importers:specifier: ^12.8.1version: 12.8.1([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))expo-share-intent:- specifier: ^1.1.0+ specifier: 1.1.0version: 1.1.0([email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))))([email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected])))))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))))([email protected](@babel/[email protected])(@babel/[email protected](@babel/[email protected]))([email protected]))([email protected])expo-status-bar:specifier: ~1.11.1@@ -645,6 +645,12 @@ importers:openai:specifier: ^4.29.0version: 4.29.0+ pdf2json:+ specifier: ^3.0.5+ version: 3.0.5+ pdfjs-dist:+ specifier: ^4.0.379+ version: 4.0.379puppeteer:specifier: ^22.0.0version: 22.3.0([email protected])@@ -874,17 +880,17 @@ importers:specifier: ^14.1.1version: 14.1.1'@typescript-eslint/eslint-plugin':- specifier: ^7.2.0- version: 7.2.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ specifier: 7.6.0+ version: 7.6.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])'@typescript-eslint/parser':- specifier: ^7.2.0- version: 7.2.0([email protected])([email protected])+ specifier: 7.6.0+ version: 7.6.0([email protected])([email protected])eslint-config-turbo:specifier: ^1.12.4version: 1.12.5([email protected])eslint-plugin-import:specifier: ^2.29.1- version: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])+ version: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])eslint-plugin-jsx-a11y:specifier: ^6.8.0version: 6.8.0([email protected])@@ -2766,6 +2772,10 @@ packages:'@leichtgewicht/[email protected]':resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==}+ '@mapbox/[email protected]':+ resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}+ hasBin: true+'@mdx-js/[email protected]':resolution: {integrity: sha512-eIQ4QTrOWyL3LWEe/bu6Taqzq2HQvHcyTMaOrI95P2/LmJE7AsfPfgJGuFLPVqBUE1BC1rik3VIhU+s9u72arA==}@@ -4255,9 +4265,9 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-mdekAHOqS9UjlmyF/LSs6AIEvfceV749GFxoBAjwAv0nkevfKHWQFDMcBZWUiIC5ft6ePWivXoS36aKQ0Cy3sw==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-gKmTNwZnblUdnTIJu3e9kmeRRzV2j1a/LUO27KNNAnIC5zjy1aSvXSRp4rVNlmAoHlQ7HzX42NbKpcSr4jF80A==}+ engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:'@typescript-eslint/parser': ^7.0.0eslint: ^8.56.0@@ -4276,9 +4286,9 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-5FKsVcHTk6TafQKQbuIVkXq58Fnbkd2wDL4LB7AURN7RUOu1utVP+G8+6u3ZhEroW3DF6hyo3ZEXxgKgp4KeCg==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-usPMPHcwX3ZoPWnBnhhorc14NJw9J4HpSXQX4urF2TPKG0au0XhJoZyX62fmvdHONUkmyUe74Hzm1//XA+BoYg==}+ engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:eslint: ^8.56.0typescript: '*'@@ -4290,9 +4300,9 @@ packages:resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==}engines: {node: ^16.0.0 || >=18.0.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-ngttyfExA5PsHSx0rdFgnADMYQi+Zkeiv4/ZxGYUWd0nLs63Ha0ksmp8VMxAIC0wtCFxMos7Lt3PszJssG/E6w==}+ engines: {node: ^18.18.0 || >=20.0.0}'@typescript-eslint/[email protected]':resolution: {integrity: sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==}@@ -4304,9 +4314,9 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-xHi51adBHo9O9330J8GQYQwrKBqbIPJGZZVQTHHmy200hvkLZFWJIFtAG/7IYTWUyun6DE6w5InDReePJYJlJA==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-NxAfqAPNLG6LTmy7uZgpK8KcuiS2NZD/HlThPXQRGwz6u7MDBWRVliEEl1Gj6U7++kVJTpehkhZzCJLMK66Scw==}+ engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:eslint: ^8.56.0typescript: '*'@@ -4318,9 +4328,9 @@ packages:resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==}engines: {node: ^16.0.0 || >=18.0.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-h02rYQn8J+MureCvHVVzhl69/GAfQGPQZmOMjG1KfCl7o3HtMSlPaPUAPu6lLctXI5ySRGIYk94clD/AUMCUgQ==}+ engines: {node: ^18.18.0 || >=20.0.0}'@typescript-eslint/[email protected]':resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==}@@ -4331,9 +4341,9 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-+7Y/GP9VuYibecrCQWSKgl3GvUM5cILRttpWtnAu8GNL9j11e4tbuGZmZjJ8ejnKYyBRb2ddGQ3rEFCq3QjMJw==}+ engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:typescript: '*'peerDependenciesMeta:@@ -4346,9 +4356,9 @@ packages:peerDependencies:eslint: ^7.0.0 || ^8.0.0- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-YfHpnMAGb1Eekpm3XRK8hcMwGLGsnT6L+7b2XyRv6ouDuJU1tZir1GS2i0+VXRatMwSI1/UfcyPe53ADkU+IuA==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-x54gaSsRRI+Nwz59TXpCsr6harB98qjXYzsRxGqvA5Ue3kQH+FxS7FYU81g/omn22ML2pZJkisy6Q+ElK8pBCA==}+ engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:eslint: ^8.56.0@@ -4356,9 +4366,9 @@ packages:resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==}engines: {node: ^16.0.0 || >=18.0.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==}- engines: {node: ^16.0.0 || >=18.0.0}+ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-4eLB7t+LlNUmXzfOu1VAIAdkjbu5xNSerURS9X/S5TUKWFRpXRQZbmtPqgKmYx8bj3J0irtQXSiWAOY82v+cgw==}+ engines: {node: ^18.18.0 || >=20.0.0}'@ungap/[email protected]':resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}@@ -4467,6 +4477,9 @@ packages:'@zxing/[email protected]':resolution: {integrity: sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==}+ resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}+resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -4612,6 +4625,13 @@ packages:resolution: {integrity: sha512-zy9cHePtMP0YhwG+CfHm0bgwdnga2X3gZexpdCwEj//dpb+TKajtiC8REEUJUSq6Ab4f9cgNy2l8ObXzCXFkEw==}+ resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==}++ resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}@@ -5039,6 +5059,10 @@ packages:resolution: {integrity: sha512-vNQWS6kI+q6sBlHbh71IIeC+sRwK2N3EDySc/updIGhIee2x5z00J4c1242/5/d6EpEMdOnk/m+6tuk4/tcsqg==}+ resolution: {integrity: sha512-ItanGBMrmRV7Py2Z+Xhs7cT+FNt5K0vPL4p9EZ/UX/Mu7hFbkxSjKF2KVtPwX7UYWp7dRKnrTvReflgrItJbdw==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}@@ -5231,6 +5255,10 @@ packages:resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}+ resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==}+ hasBin: true+resolution: {integrity: sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==}@@ -5349,6 +5377,9 @@ packages:resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==}+ resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}+resolution: {integrity: sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==}engines: {node: '>= 0.6'}@@ -5668,6 +5699,10 @@ packages:resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==}engines: {node: '>=0.10'}+ resolution: {integrity: sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}engines: {node: '>=10'}@@ -5730,6 +5765,9 @@ packages:resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}engines: {node: '>=0.4.0'}+ resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}+resolution: {integrity: sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg==}@@ -6854,6 +6892,10 @@ packages:resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}+ resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}engines: {node: '>=6.9.0'}@@ -7055,6 +7097,9 @@ packages:resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}+resolution: {integrity: sha512-+QdH3jOmq9P8GfdjFg0eJudqx1FqU62NQJ4P16rOEHeRdl7ckgwn6uqQjzYE0ZoHVV/e5E2esuJ5Gl5+HUW19w==}engines: {node: '>=6'}@@ -8625,6 +8670,10 @@ packages:resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==}engines: {node: '>=4'}+ resolution: {integrity: sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}engines: {node: '>=10'}@@ -8661,6 +8710,10 @@ packages:resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}engines: {node: '>=16 || 14 >=14.17'}+ resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==}+ engines: {node: '>=16 || 14 >=14.17'}+resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}@@ -8900,6 +8953,11 @@ packages:resolution: {integrity: sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==}engines: {node: '>=0.12.0'}+ resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}+ engines: {node: '>=6'}+ hasBin: true+resolution: {integrity: sha512-CVDtwCdhYIvnAzFoJ6NJ6dX3oga9/HyciQDnG1vQDjSLMeKLJ4A93ZqYKDrgYSr1FBY5/hMYC+2VCi24pgpkGA==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -8940,6 +8998,9 @@ packages:resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==}+resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==}@@ -9261,12 +9322,27 @@ packages:resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-ad/3bsalbbWhmBo0D6FZ4RNMwsLsPpL6gnvhuSaU5Vm7b06Kr5ubSltQQ0T7YKsiJQO+g22zJ4dJKNTXIyOXtA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==}+ resolution: {integrity: sha512-Un1yLbSlk/zfwrltgguskExIioXZlFSFwsyXU0cnBorLywbTbcdzmJJEebh+U2cFCtR7y8nDs5lPHAe7ldxjZg==}+ engines: {node: '>=18.12.1', npm: '>=8.19.2'}+ hasBin: true+ bundledDependencies:+ - '@xmldom/xmldom'++ resolution: {integrity: sha512-6H0Gv1nna+wmrr3CakaKlZ4rbrL8hvGIFAgg4YcoFuGC0HC4B2DVjXEGTFjJEjLlf8nYi3C3/MYRcM5bNx0elA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}@@ -10639,6 +10715,9 @@ packages:resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==}+ resolution: {integrity: sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==}+resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==}@@ -11230,6 +11309,12 @@ packages:peerDependencies:typescript: '>=4.2.0'+ resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==}+ engines: {node: '>=16'}+ peerDependencies:+ typescript: '>=4.2.0'+resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}@@ -11866,6 +11951,9 @@ packages:engines: {node: '>=8'}hasBin: true+ resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==}+resolution: {integrity: sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==}engines: {node: '>=12'}@@ -15824,6 +15912,23 @@ snapshots:'@leichtgewicht/[email protected]':dev: false+ '@mapbox/[email protected]':+ dependencies:+ detect-libc: 2.0.3+ https-proxy-agent: 5.0.1+ make-dir: 3.1.0+ node-fetch: 2.7.0+ nopt: 5.0.0+ npmlog: 5.0.1+ rimraf: 3.0.2+ semver: 7.6.0+ tar: 6.2.0+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false+ optional: true+'@mdx-js/[email protected]':dependencies:'@types/estree': 1.0.5@@ -17988,21 +18093,21 @@ snapshots:- supports-colordev: true- '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:'@eslint-community/regexpp': 4.10.0- '@typescript-eslint/parser': 7.2.0([email protected])([email protected])- '@typescript-eslint/scope-manager': 7.2.0- '@typescript-eslint/type-utils': 7.2.0([email protected])([email protected])- '@typescript-eslint/utils': 7.2.0([email protected])([email protected])- '@typescript-eslint/visitor-keys': 7.2.0+ '@typescript-eslint/parser': 7.6.0([email protected])([email protected])+ '@typescript-eslint/scope-manager': 7.6.0+ '@typescript-eslint/type-utils': 7.6.0([email protected])([email protected])+ '@typescript-eslint/utils': 7.6.0([email protected])([email protected])+ '@typescript-eslint/visitor-keys': 7.6.0debug: 4.3.4eslint: 8.57.0graphemer: 1.4.0ignore: 5.3.1natural-compare: 1.4.0semver: 7.6.0- ts-api-utils: 1.2.1([email protected])+ ts-api-utils: 1.3.0([email protected])typescript: 5.3.3transitivePeerDependencies:- supports-color@@ -18021,12 +18126,12 @@ snapshots:- supports-colordev: truedependencies:- '@typescript-eslint/scope-manager': 7.2.0- '@typescript-eslint/types': 7.2.0- '@typescript-eslint/typescript-estree': 7.2.0([email protected])- '@typescript-eslint/visitor-keys': 7.2.0+ '@typescript-eslint/scope-manager': 7.6.0+ '@typescript-eslint/types': 7.6.0+ '@typescript-eslint/typescript-estree': 7.6.0([email protected])+ '@typescript-eslint/visitor-keys': 7.6.0debug: 4.3.4eslint: 8.57.0typescript: 5.3.3@@ -18040,10 +18145,10 @@ snapshots:'@typescript-eslint/visitor-keys': 6.21.0dev: true- '@typescript-eslint/[email protected]':+ '@typescript-eslint/[email protected]':dependencies:- '@typescript-eslint/types': 7.2.0- '@typescript-eslint/visitor-keys': 7.2.0+ '@typescript-eslint/types': 7.6.0+ '@typescript-eslint/visitor-keys': 7.6.0dev: false@@ -18058,13 +18163,13 @@ snapshots:- supports-colordev: truedependencies:- '@typescript-eslint/typescript-estree': 7.2.0([email protected])- '@typescript-eslint/utils': 7.2.0([email protected])([email protected])+ '@typescript-eslint/typescript-estree': 7.6.0([email protected])+ '@typescript-eslint/utils': 7.6.0([email protected])([email protected])debug: 4.3.4eslint: 8.57.0- ts-api-utils: 1.2.1([email protected])+ ts-api-utils: 1.3.0([email protected])typescript: 5.3.3transitivePeerDependencies:- supports-color@@ -18073,7 +18178,7 @@ snapshots:'@typescript-eslint/[email protected]':dev: true- '@typescript-eslint/[email protected]':+ '@typescript-eslint/[email protected]':dev: false'@typescript-eslint/[email protected]([email protected])':@@ -18091,16 +18196,16 @@ snapshots:- supports-colordev: true- '@typescript-eslint/[email protected]([email protected])':+ '@typescript-eslint/[email protected]([email protected])':dependencies:- '@typescript-eslint/types': 7.2.0- '@typescript-eslint/visitor-keys': 7.2.0+ '@typescript-eslint/types': 7.6.0+ '@typescript-eslint/visitor-keys': 7.6.0debug: 4.3.4globby: 11.1.0is-glob: 4.0.3- minimatch: 9.0.3+ minimatch: 9.0.4semver: 7.6.0- ts-api-utils: 1.2.1([email protected])+ ts-api-utils: 1.3.0([email protected])typescript: 5.3.3transitivePeerDependencies:- supports-color@@ -18121,14 +18226,14 @@ snapshots:- typescriptdev: truedependencies:'@eslint-community/eslint-utils': 4.4.0([email protected])'@types/json-schema': 7.0.15'@types/semver': 7.5.8- '@typescript-eslint/scope-manager': 7.2.0- '@typescript-eslint/types': 7.2.0- '@typescript-eslint/typescript-estree': 7.2.0([email protected])+ '@typescript-eslint/scope-manager': 7.6.0+ '@typescript-eslint/types': 7.6.0+ '@typescript-eslint/typescript-estree': 7.6.0([email protected])eslint: 8.57.0semver: 7.6.0transitivePeerDependencies:@@ -18142,9 +18247,9 @@ snapshots:eslint-visitor-keys: 3.4.3dev: true- '@typescript-eslint/[email protected]':+ '@typescript-eslint/[email protected]':dependencies:- '@typescript-eslint/types': 7.2.0+ '@typescript-eslint/types': 7.6.0eslint-visitor-keys: 3.4.3dev: false@@ -18315,6 +18420,10 @@ snapshots:dev: falseoptional: true+ dev: false+ optional: true+dev: false@@ -18485,6 +18594,17 @@ snapshots:dev: false+ dev: false+ optional: true++ dependencies:+ delegates: 1.0.0+ readable-stream: 3.6.2+ dev: false+ optional: true+@@ -19184,6 +19304,17 @@ snapshots:+ dependencies:+ '@mapbox/node-pre-gyp': 1.0.11+ nan: 2.18.0+ simple-get: 3.1.1+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false+ optional: true+@@ -19436,6 +19567,10 @@ snapshots:simple-swizzle: 0.2.2dev: false+ dev: false+ optional: true+dependencies:color-convert: 1.9.3@@ -19577,6 +19712,10 @@ snapshots:dev: false+ dev: false+ optional: true+dev: false@@ -19954,6 +20093,12 @@ snapshots:dev: false+ dependencies:+ mimic-response: 2.1.0+ dev: false+ optional: true+dependencies:mimic-response: 3.1.0@@ -20039,6 +20184,10 @@ snapshots:dev: false+ dev: false+ optional: true+dev: false@@ -20590,9 +20739,9 @@ snapshots:- supports-colordev: true- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):dependencies:- '@typescript-eslint/parser': 7.2.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.6.0([email protected])([email protected])debug: 3.2.7eslint: 8.57.0eslint-import-resolver-node: 0.3.9@@ -20634,9 +20783,9 @@ snapshots:- supports-colordev: true- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]):dependencies:- '@typescript-eslint/parser': 7.2.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.6.0([email protected])([email protected])array-includes: 3.1.7array.prototype.findlastindex: 1.2.4array.prototype.flat: 1.3.2@@ -20645,7 +20794,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])hasown: 2.0.1is-core-module: 2.13.1is-glob: 4.0.3@@ -21643,6 +21792,20 @@ snapshots:+ dependencies:+ aproba: 2.0.0+ color-support: 1.1.3+ console-control-strings: 1.1.0+ has-unicode: 2.0.1+ object-assign: 4.1.1+ signal-exit: 3.0.7+ string-width: 4.2.3+ strip-ansi: 6.0.1+ wide-align: 1.1.5+ dev: false+ optional: true+@@ -21916,6 +22079,10 @@ snapshots:dependencies:has-symbols: 1.0.3+ dev: false+ optional: true+dependencies:kind-of: 6.0.3@@ -24286,6 +24453,10 @@ snapshots:dev: false+ dev: false+ optional: true+dev: false@@ -24322,6 +24493,11 @@ snapshots:dependencies:brace-expansion: 2.0.1+ dependencies:+ brace-expansion: 2.0.1+ dev: false+@@ -24647,6 +24823,12 @@ snapshots:dev: false+ dependencies:+ abbrev: 1.1.1+ dev: false+ optional: true+dependencies:abbrev: 2.0.0@@ -24692,6 +24874,15 @@ snapshots:path-key: 4.0.0dev: true+ dependencies:+ are-we-there-yet: 2.0.0+ console-control-strings: 1.1.0+ gauge: 3.0.2+ set-blocking: 2.0.0+ dev: false+ optional: true+dev: false@@ -25105,12 +25296,28 @@ snapshots:+ dev: false+ optional: true+dev: truedev: true+ dev: false++ optionalDependencies:+ canvas: 2.11.2+ path2d-polyfill: 2.0.1+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false+dev: false@@ -26961,6 +27168,14 @@ snapshots:dev: false+ dependencies:+ decompress-response: 4.2.1+ once: 1.4.0+ simple-concat: 1.0.1+ dev: false+ optional: true+dependencies:decompress-response: 6.0.0@@ -27694,6 +27909,12 @@ snapshots:dependencies:typescript: 5.3.3+ dev: true++ dependencies:+ typescript: 5.3.3+ dev: false@@ -28507,6 +28728,12 @@ snapshots:stackback: 0.0.2dev: true+ dependencies:+ string-width: 4.2.3+ dev: false+ optional: true+dependencies:string-width: 5.1.2diff --git a/tooling/eslint/package.json b/tooling/eslint/package.jsonindex 6b156d5d..84289168 100644--- a/tooling/eslint/package.json+++ b/tooling/eslint/package.json@@ -16,8 +16,8 @@},"dependencies": {"@next/eslint-plugin-next": "^14.1.1",- "@typescript-eslint/eslint-plugin": "^7.2.0",- "@typescript-eslint/parser": "^7.2.0",+ "@typescript-eslint/eslint-plugin": "7.6.0",+ "@typescript-eslint/parser": "7.6.0","eslint-config-turbo": "^1.12.4","eslint-plugin-import": "^2.29.1","eslint-plugin-jsx-a11y": "^6.8.0",diff --git a/tooling/prettier/index.js b/tooling/prettier/index.jsindex 08618ae6..bfc96896 100644--- a/tooling/prettier/index.js+++ b/tooling/prettier/index.js@@ -31,6 +31,7 @@ const config = {],importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],importOrderTypeScriptVersion: "4.4.0",+ endOfLine: "auto",};export default config;