- Introduced a new test suite in `projects.init.test.ts` to validate the behavior of the `initProject` function, ensuring it correctly initializes new projects and handles existing project directories. - Refactored the `initProject` function in `projects.ts` to streamline project setup, including improved handling of entry files and package.json records. - Enhanced error handling for invalid paths in the `initProject` function, ensuring only absolute paths are accepted. - Updated the `scaffold` function to utilize the new `ensureRecord` function, improving code clarity and maintainability. - Added tests for various scenarios, including creating new projects, preserving existing project data, and handling invalid inputs, to ensure robust project management functionality.
34 lines
894 B
JSON
34 lines
894 B
JSON
{
|
|
"name": "@diffusionstudio/agent-chat",
|
|
"version": "0.1.0",
|
|
"description": "The editor's agent chat: a Node host that drives the user's Claude Code or Codex against a project over a WebSocket, and the browser-safe protocol, client and reducer the UI is a view over. Node code lives behind the `./host` export.",
|
|
"license": "MPL-2.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./host": "./src/host/index.ts",
|
|
"./host/env": "./src/host/env.ts"
|
|
},
|
|
"scripts": {
|
|
"check": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"keywords": [
|
|
"agent",
|
|
"chat",
|
|
"claude-code",
|
|
"codex"
|
|
],
|
|
"dependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "^0.3.268",
|
|
"ws": "^8.21.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.1",
|
|
"@types/ws": "^8.18.1",
|
|
"typescript": "~5.9.3",
|
|
"vitest": "^4.0.0"
|
|
}
|
|
}
|