- Added new contracts for intent interpretation, including InterpreterOutput and ResolverMode. - Implemented deterministic intent resolver with clarity checks for ambiguous references and empty input. - Developed LLM intent resolver that communicates with an external model, handling JSON responses and fallback clarifications. - Created an interpretTurn function to manage intent resolution based on the selected resolver mode. - Introduced validation for interpreter output to ensure integrity before processing actions. - Established a turn manager to orchestrate turn processing, including action validation and world state mutation. - Added integration tests to verify the functionality of the new intent resolution system. Co-authored-by: Copilot <copilot@github.com>
24 lines
586 B
JSON
24 lines
586 B
JSON
{
|
|
"name": "charactergarden-app",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "ts-node-dev --respawn --transpile-only src/index.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"test:integration": "npm run build && node dist/tests/integrationRunner.js"
|
|
},
|
|
"dependencies": {
|
|
"fastify": "^4.28.1",
|
|
"better-sqlite3": "^9.6.0",
|
|
"uuid": "^9.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"@types/node": "^20.14.0",
|
|
"@types/uuid": "^9.0.8",
|
|
"ts-node-dev": "^2.0.0",
|
|
"typescript": "^5.4.5"
|
|
}
|
|
}
|