microsoft/TypeAgent
Publicmirrored fromhttps://github.com/microsoft/TypeAgentAvailable
ts/examples/docuProc/package.json
54lines · modecode
| 1 | { |
| 2 | "name": "document-processor", |
| 3 | "version": "0.0.1", |
| 4 | "private": true, |
| 5 | "description": "Document Processing Example", |
| 6 | "homepage": "https://github.com/microsoft/TypeAgent#readme", |
| 7 | "repository": { |
| 8 | "type": "git", |
| 9 | "url": "https://github.com/microsoft/TypeAgent.git", |
| 10 | "directory": "ts/examples/docuProc" |
| 11 | }, |
| 12 | "license": "MIT", |
| 13 | "author": "Microsoft", |
| 14 | "type": "module", |
| 15 | "scripts": { |
| 16 | "build": "npm run tsc", |
| 17 | "postbuild": "pnpm run copy-data && copyfiles -u 1 \"src/**/*Schema.ts\" \"src/**/*.txt\" \"src/*.py\" \"src/srag/*.py\" \"data/**/*\" dist", |
| 18 | "clean": "rimraf --glob dist *.tsbuildinfo *.done.build.log dist/data", |
| 19 | "copy-data": "copyfiles \"data/**/*\" dist", |
| 20 | "install-python-deps": "node -e \"const { execSync } = require('child_process'); try { execSync('python3 --version', { stdio: 'ignore' }); execSync('python3 -m pip install --user -qq -r requirements.txt', { stdio: 'inherit' }); } catch { try { execSync('python --version', { stdio: 'ignore' }); execSync('python -m pip install --user -qq -r requirements.txt', { stdio: 'inherit' }); } catch { console.log('Python not found, skipping...'); } }\"", |
| 21 | "prettier": "prettier --check . --ignore-path ../../.prettierignore", |
| 22 | "prettier:fix": "prettier --write . --ignore-path ../../.prettierignore", |
| 23 | "prerun": "npm run install-python-deps", |
| 24 | "run": "node dist/main.js", |
| 25 | "tsc": "tsc -p src" |
| 26 | }, |
| 27 | "dependencies": { |
| 28 | "aiclient": "workspace:*", |
| 29 | "chalk": "^5.4.1", |
| 30 | "cheerio": "1.0.0-rc.12", |
| 31 | "conversation-memory": "workspace:*", |
| 32 | "debug": "^4.4.0", |
| 33 | "dotenv": "^16.3.1", |
| 34 | "fast-xml-parser": "5.5.6", |
| 35 | "interactive-app": "workspace:*", |
| 36 | "knowledge-processor": "workspace:*", |
| 37 | "knowpro": "workspace:*", |
| 38 | "memory-providers": "workspace:*", |
| 39 | "proper-lockfile": "^4.1.2", |
| 40 | "typeagent": "workspace:*", |
| 41 | "typechat": "^0.1.1", |
| 42 | "typescript": "~5.4.5" |
| 43 | }, |
| 44 | "devDependencies": { |
| 45 | "@types/debug": "^4.1.12", |
| 46 | "@types/proper-lockfile": "^4.1.4", |
| 47 | "copyfiles": "^2.4.1", |
| 48 | "prettier": "^3.5.3", |
| 49 | "rimraf": "^6.0.1" |
| 50 | }, |
| 51 | "engines": { |
| 52 | "node": ">=20" |
| 53 | } |
| 54 | } |
| 55 | |