microsoft/TypeAgent

Public

mirrored from https://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
aef33cf4e7fe0117267f04761a5ee6ce18be282c

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ts/examples/docuProc/package.json

49lines · 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\" \"data/**/*\" dist && rimraf --glob 'copyfiles-*.done.build.log'",
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 "canvas": "^3.1.0",
30 "chalk": "^5.4.1",
31 "dotenv": "^16.3.1",
32 "fast-xml-parser": "4.5.1",
33 "interactive-app": "workspace:*",
34 "knowledge-processor": "workspace:*",
35 "memory-providers": "workspace:*",
36 "pdfjs-dist": "^4.10.38",
37 "typeagent": "workspace:*",
38 "typechat": "^0.1.1",
39 "typescript": "^5.4.2"
40 },
41 "devDependencies": {
42 "copyfiles": "^2.4.1",
43 "rimraf": "^6.0.1"
44 },
45 "engines": {
46 "node": ">=18",
47 "pnpm": ">=8"
48 }
49}