Uses Anthropic claude-sonnet-4-6 server-side to explain the semantic meaning of code diffs in the budget app domain (paychecks, bills, financing, actuals). Input validation rejects empty or oversized (>50KB) diffs. Tests mock the Anthropic client via direct method replacement (same pattern as db.pool.query). Nightshift-Task: semantic-diff Nightshift-Ref: https://github.com/marcus/nightshift
24 lines
477 B
JSON
24 lines
477 B
JSON
{
|
|
"name": "budget-server",
|
|
"version": "1.0.0",
|
|
"main": "src/index.js",
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"dev": "nodemon src/index.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.80.0",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.19.2",
|
|
"pg": "^8.11.5"
|
|
},
|
|
"devDependencies": {
|
|
"nodemon": "^3.1.0",
|
|
"supertest": "^7.2.2",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|