UNPKG

@convex-dev/agent

Version:

A agent component for Convex.

111 lines (110 loc) 3.98 kB
{ "name": "@convex-dev/agent", "description": "A agent component for Convex.", "repository": "github:get-convex/agent", "homepage": "https://github.com/get-convex/agent#readme", "bugs": { "email": "support@convex.dev", "url": "https://github.com/get-convex/agent/issues" }, "version": "0.2.1", "license": "Apache-2.0", "keywords": [ "convex", "ai", "agent", "component" ], "type": "module", "scripts": { "example": "cd example && npm run dev", "dev": "run-p -r 'example' 'build:watch'", "all": "run-p -r 'example' 'build:watch' 'test:watch'", "prepare": "npm run build", "setup": "node setup.cjs --init", "dashboard": "cd example && npx convex dashboard", "build:watch": "npx chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'npm run build' --initial", "build": "tsc --project ./tsconfig.build.json && npm run copy:dts && echo '{\\n \"type\": \"module\"\\n}' > dist/package.json", "copy:dts": "rsync -a --include='*/' --include='*.d.ts' --exclude='*' src/ dist/ || cpy 'src/**/*.d.ts' 'dist/' --parents", "typecheck": "tsc --noEmit", "clean": "rm -rf dist tsconfig.build.tsbuildinfo && rm -rf example/node_modules/.tmp && rm -rf node_modules/.cache", "alpha": "npm run clean && npm run build && run-p test lint typecheck && npm version prerelease --preid alpha && npm publish --tag alpha && git push --tags", "release": "npm run clean && npm run build && run-p test lint typecheck && npm version patch && npm publish && git push --tags && git push", "test": "vitest run --typecheck --config ./src/vitest.config.ts", "test:watch": "vitest --typecheck --config ./src/vitest.config.ts --clearScreen false", "test:debug": "vitest --inspect-brk --no-file-parallelism --config ./src/vitest.config.ts", "test:coverage": "vitest run --coverage --coverage.reporter=text", "lint": "eslint src", "version": "pbcopy <<<$npm_package_version; vim CHANGELOG.md && git add CHANGELOG.md" }, "files": [ "dist", "src" ], "exports": { "./package.json": "./package.json", ".": { "@convex-dev/component-source": "./src/client/index.ts", "types": "./dist/client/index.d.ts", "default": "./dist/client/index.js" }, "./validators": { "@convex-dev/component-source": "./src/validators.ts", "types": "./dist/validators.d.ts", "default": "./dist/validators.js" }, "./react": { "@convex-dev/component-source": "./src/react/index.ts", "types": "./dist/react/index.d.ts", "default": "./dist/react/index.js" }, "./convex.config": { "@convex-dev/component-source": "./src/component/convex.config.ts", "types": "./dist/component/convex.config.d.ts", "default": "./dist/component/convex.config.js" } }, "peerDependencies": { "ai": "^5.0.10", "@ai-sdk/provider-utils": "^3.0.1", "convex": "^1.23.0", "convex-helpers": "^0.1.103", "react": "^18.3.1 || ^19.0.0" }, "peerDependenciesMeta": { "react": { "optional": true } }, "devDependencies": { "@arethetypeswrong/cli": "0.17.4", "@edge-runtime/vm": "5.0.0", "@eslint/js": "9.33.0", "@types/node": "20.19.10", "@types/react": "19.1.10", "ai": "5.0.10", "chokidar-cli": "3.0.0", "convex": "1.25.4", "convex-helpers": "0.1.103", "convex-test": "0.0.38", "cpy-cli": "5.0.0", "eslint": "9.33.0", "eslint-plugin-jsx-a11y": "6.10.2", "eslint-plugin-react": "7.37.5", "eslint-plugin-react-hooks": "5.2.0", "globals": "16.3.0", "npm-run-all2": "8.0.4", "pkg-pr-new": "0.0.54", "prettier": "3.6.2", "react": "19.1.1", "readline": "1.3.0", "typescript": "5.9.2", "typescript-eslint": "8.39.1", "vite": "6.3.5", "vitest": "3.2.4", "zod": "3.25.76" }, "main": "./dist/client/index.js", "types": "./dist/client/index.d.ts", "module": "./dist/client/index.js" }