mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
Add abort signal handling to read, write, and edit tools
All tools now check the abort signal before executing and throw "Operation aborted" error if the signal is already aborted. This ensures consistent abort behavior across all tools.
This commit is contained in:
parent
001beff394
commit
e6b47799a4
4 changed files with 84 additions and 2 deletions
66
packages/coding-agent/example.json
Normal file
66
packages/coding-agent/example.json
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"name": "example",
|
||||
"version": "1.0.0",
|
||||
"description": "A JSON file formatted with tabs",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node index.js",
|
||||
"dev": "nodemon index.js",
|
||||
"build": "tsc",
|
||||
"lint": "eslint .",
|
||||
"format": "prettier --write .",
|
||||
"clean": "rm -rf dist node_modules"
|
||||
},
|
||||
"keywords": [
|
||||
"example",
|
||||
"json",
|
||||
"tabs",
|
||||
"nodejs",
|
||||
"typescript",
|
||||
"api"
|
||||
],
|
||||
"author": "Assistant",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/example/example-repo.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/example/example-repo/issues"
|
||||
},
|
||||
"homepage": "https://github.com/example/example-repo#readme",
|
||||
"engines": {
|
||||
"node": ">=18.0.0",
|
||||
"npm": ">=9.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.18.0",
|
||||
"dotenv": "^16.0.3",
|
||||
"axios": "^1.6.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mongoose": "^8.0.0",
|
||||
"redis": "^4.6.0",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"bcrypt": "^5.1.1",
|
||||
"winston": "^3.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.10.0",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
"@types/jsonwebtoken": "^9.0.5",
|
||||
"typescript": "^5.3.3",
|
||||
"nodemon": "^3.0.2",
|
||||
"eslint": "^8.55.0",
|
||||
"prettier": "^3.1.1",
|
||||
"vitest": "^1.0.4",
|
||||
"supertest": "^6.3.3"
|
||||
},
|
||||
"config": {
|
||||
"port": 3000,
|
||||
"env": "development"
|
||||
},
|
||||
"private": false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue