-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
142 lines (142 loc) · 8.48 KB
/
package.json
File metadata and controls
142 lines (142 loc) · 8.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"name": "ai-agent-app",
"version": "1.0.0",
"type": "module",
"description": "AI Agent 应用 - 抖音搜索训练营",
"scripts": {
"predev": "node scripts/dev/clean-port.js",
"prestart": "node scripts/dev/clean-port.js",
"preserve": "node scripts/dev/clean-port.js",
"preserve:local": "node scripts/dev/clean-port.js",
"dev": "node scripts/dev/dev-with-idp.js",
"dev:app": "cross-env NODE_ENV=development modern dev",
"dev:idp": "cross-env NODE_ENV=development tsx idp/server.ts",
"start:idp": "cross-env NODE_ENV=production tsx idp/server.ts",
"build": "cross-env NODE_ENV=production modern build && node scripts/build/postbuild-optimize-assets.js",
"start": "cross-env NODE_ENV=production modern start",
"serve": "cross-env NODE_ENV=production modern serve",
"dev:local": "cross-env NODE_ENV=development modern dev",
"serve:local": "cross-env NODE_ENV=development modern serve",
"start:dev": "powershell -ExecutionPolicy Bypass -File start-dev.ps1",
"start:prod": "powershell -ExecutionPolicy Bypass -File start-prod.ps1",
"fix:gpu": "powershell -ExecutionPolicy Bypass -File fix-ollama-gpu.ps1",
"force:gpu": "powershell -ExecutionPolicy Bypass -File scripts/force-gpu-load.ps1",
"monitor:ollama": "powershell -ExecutionPolicy Bypass -File monitor-ollama.ps1",
"monitor:cpu": "powershell -ExecutionPolicy Bypass -File check-cpu-realtime.ps1",
"docker:build": "docker build -f dockerfiles/app.Dockerfile -t bytedance-ai-agent .",
"docker:run": "docker-compose -f deploy/docker-compose.yml up -d",
"docker:stop": "docker-compose -f deploy/docker-compose.yml down",
"docker:logs": "docker-compose -f deploy/docker-compose.yml logs -f app",
"docker:fix-mongo": "powershell -ExecutionPolicy Bypass -File scripts/dev/fix-mongodb-connection.ps1",
"db:status": "docker ps -a | findstr mongodb-global",
"db:logs": "docker logs -f mongodb-global",
"db:shell": "docker exec -it mongodb-global mongosh ai-agent",
"ngrok": "powershell -ExecutionPolicy Bypass -File scripts/start-ngrok.ps1",
"check:secrets": "node -e \"const { execSync } = require('child_process'); const isWin = process.platform === 'win32'; try { execSync(isWin ? 'powershell -ExecutionPolicy Bypass -File scripts/security/check-secrets.ps1' : 'bash scripts/security/check-secrets.sh', { stdio: 'inherit' }); } catch (e) { process.exit(e.status || 1); }\"",
"precommit": "npm run check:secrets",
"test:volcengine": "cross-env NODE_ENV=test TEST_TYPE=integration RUN_VOLCENGINE_API_TEST=1 node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/volcengine-api.int.test.ts",
"test:planning": "node test-planning-tools.js",
"test:redis": "cross-env NODE_ENV=test TEST_TYPE=integration node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/redis-connection.int.test.ts",
"test:redis:resume": "cross-env NODE_ENV=test TEST_TYPE=integration RUN_MULTI_AGENT_RESUME_TEST=1 node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/multi-agent-resume.e2e.int.test.ts",
"test:redis:optimization": "cross-env NODE_ENV=test TEST_TYPE=integration node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/redis-optimization.int.test.ts",
"test:lru": "cross-env NODE_ENV=test TEST_TYPE=integration RUN_LRU_TEST=1 node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/lru.int.test.ts",
"test:chunking": "cross-env NODE_ENV=test TEST_TYPE=integration RUN_CHUNKING_TEST=1 node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/chunking.int.test.ts",
"test:queue": "cross-env NODE_ENV=test TEST_TYPE=integration node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/queueing.int.test.ts",
"test:request-cache": "cross-env NODE_ENV=test TEST_TYPE=integration RUN_REQUEST_CACHE_TEST=1 node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/request-cache.int.test.ts",
"test:refactored": "cross-env NODE_ENV=test TEST_TYPE=unit node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/refactored-code.test.ts",
"test:refactored:files": "cross-env NODE_ENV=test TEST_TYPE=unit node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/refactored-files.test.ts",
"test": "npm run test:jest",
"test:jtest": "npm run test:jest",
"test:jest": "cross-env NODE_ENV=test node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
"test:unit": "cross-env NODE_ENV=test TEST_TYPE=unit node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathIgnorePatterns=\\\\.int\\\\.test\\\\.ts$",
"test:integration": "cross-env NODE_ENV=test TEST_TYPE=integration node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=\\\\.int\\\\.test\\\\.ts$",
"test:markdown": "cross-env NODE_ENV=test TEST_TYPE=unit node --experimental-vm-modules ./node_modules/jest/bin/jest.js src/utils/__tests__/markdownFixer.test.ts",
"test:fallback": "cross-env NODE_ENV=test TEST_TYPE=integration RUN_TOOL_FALLBACK_REDIS_TEST=1 ALLOW_REDIS_IN_TEST=true node --experimental-vm-modules ./node_modules/jest/bin/jest.js test/jest/tool-fallback-redis.int.test.ts",
"load:k6:chat:queue": "k6 run test/k6/chat_sse_queue_429.js",
"load:k6:chat:smoke": "k6 run test/k6/chat_sse_smoke.js",
"bench:k6:chat:large-markdown": "k6 run test/k6/chat_sse_large_markdown.js",
"bench:input:paste": "node scripts/bench-input-paste-playwright.js",
"bench:lighthouse:prod": "cross-env LH_MODE=static ALLOW_STATIC_FALLBACK=false node scripts/run-lighthouse-prod-fixed.js",
"bench:lighthouse:prod:serve": "cross-env LH_MODE=serve ALLOW_STATIC_FALLBACK=true node scripts/run-lighthouse-prod-fixed.js",
"bench:lighthouse:flow:multi-agent": "node scripts/run-lighthouse-user-flow-multi-agent.js",
"bench:lighthouse:flow:multi-agent:prod": "cross-env FLOW_MODE=static FLOW_PORT=8082 node scripts/run-lighthouse-user-flow-multi-agent.js",
"bench:lighthouse:flow:multi-agent:prod:headed": "cross-env FLOW_MODE=static FLOW_PORT=8082 HEADLESS=false node scripts/run-lighthouse-user-flow-multi-agent.js",
"bench:lighthouse:flow:multi-agent:serve": "cross-env FLOW_MODE=serve FLOW_PORT=8082 node scripts/run-lighthouse-user-flow-multi-agent.js",
"bench:lighthouse:flow:multi-agent:serve:headed": "cross-env FLOW_MODE=serve FLOW_PORT=8082 HEADLESS=false node scripts/run-lighthouse-user-flow-multi-agent.js",
"gen:fixture:multi-agent": "node scripts/generate-multi-agent-fixture.js",
"analyze:bundle:top20": "node scripts/analyze-bundle-top20.js",
"test:all": "npm run test:volcengine && node test-planning-tools.js"
},
"dependencies": {
"@langchain/core": "^1.1.0",
"@langchain/langgraph": "^1.0.2",
"@modern-js/runtime": "^2.68.0",
"@tavily/core": "^0.5.13",
"@types/ioredis": "^5.0.0",
"ai-stream-monitor": "^0.4.3",
"dotenv": "^17.2.3",
"highlight.js": "^11.11.1",
"i18next": "^25.7.3",
"immer": "^11.1.0",
"ioredis": "^5.8.2",
"jose": "^5.10.0",
"jsonrepair": "^3.13.1",
"langchain": "^1.1.1",
"mongodb": "^7.0.0",
"node-fetch": "^2.7.0",
"oidc-provider": "^8.8.1",
"prom-client": "^15.1.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^16.5.0",
"react-markdown": "^10.1.0",
"react-router-dom": "^6.26.2",
"react-virtualized": "^9.22.6",
"react-virtuoso": "^4.18.1",
"redis": "^5.10.0",
"reflect-metadata": "^0.2.2",
"rehype-highlight": "^7.0.2",
"remark-gfm": "^4.0.1",
"uuid": "^13.0.0",
"zod": "^3.25.76",
"zustand": "^5.0.9"
},
"devDependencies": {
"@modern-js/app-tools": "^2.68.0",
"@modern-js/plugin-bff": "^2.68.0",
"@types/jest": "^29.5.14",
"@types/node": "^20.0.0",
"@types/node-fetch": "^2.6.13",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react-virtualized": "^9.22.3",
"@types/uuid": "^11.0.0",
"cross-env": "^10.1.0",
"jest": "^29.7.0",
"lighthouse": "^12.8.2",
"playwright": "^1.58.2",
"puppeteer": "^24.39.1",
"ts-jest": "^29.2.6",
"tsx": "^4.20.6",
"typescript": "^5.0.0"
},
"overrides": {
"is-generator-function": "1.0.10",
"has-symbols": "1.1.0",
"koa": "2.15.3"
},
"browserslist": {
"production": [
"chrome >= 110",
"edge >= 110",
"firefox >= 110",
"safari >= 16.4",
"ios_saf >= 16.4"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}