Files
webstudio/packages/ai/package.json
T
Giuseppe a054b4cf6d fix: JSX attributes parsing (#2435)
Removes markdown code block delimiters from JSX the parser utility and
adds a new utility to extract code blocks from LLM responses.

There was a bug in the previous implementation where we were parsing the JSX stripped out of code blocks
delimiters but when extracting the props from the source string we were slicing the original string with delimiters.
2023-10-09 14:41:25 +02:00

59 lines
1.7 KiB
JSON

{
"private": true,
"name": "@webstudio-is/ai",
"version": "0.1.0",
"description": "Webstudio AI Tools",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
"checks": "pnpm typecheck && pnpm test",
"dev": "pnpm build --watch",
"build": "rm -rf lib && pnpm build:prompts && esbuild 'src/**/*.ts' --outdir=lib",
"build:prompts": "tsx ./bin/build-prompts.ts \"./src/chains/**/*.prompt.md\"",
"dts": "tsc --project tsconfig.dts.json"
},
"devDependencies": {
"@webstudio-is/jest-config": "workspace:^",
"@webstudio-is/scripts": "workspace:^",
"@webstudio-is/tsconfig": "workspace:^",
"fast-glob": "^3.2.12",
"type-fest": "^4.3.1",
"typescript": "5.2.2"
},
"exports": {
".": {
"webstudio": "./src/index.ts",
"types": "./lib/types/index.d.ts",
"import": "./lib/index.js"
},
"./index.server": {
"webstudio": "./src/index.server.ts",
"types": "./lib/types/index.server.d.ts",
"import": "./lib/index.server.js"
}
},
"files": [
"lib/*",
"!*.test.*"
],
"license": "AGPL-3.0-or-later",
"sideEffects": false,
"dependencies": {
"@webstudio-is/css-data": "workspace:*",
"@webstudio-is/jsx-utils": "workspace:*",
"@webstudio-is/react-sdk": "workspace:*",
"@webstudio-is/sdk": "workspace:*",
"ai": "^2.2.12",
"escape-string-regexp": "^5.0.0",
"mdast-util-from-markdown": "^2.0.0",
"openai": "^4.8.0",
"unist-util-visit-parents": "^6.0.1",
"web-streams-polyfill": "^3.2.1",
"zod": "^3.21.4",
"zod-to-json-schema": "^3.21.4"
}
}