Files
devclaw-gitea/package.json
Lauren ten Hoor d1a02d988d fix: add defensive safeguards and documentation for session persistence (#27)
- Add defensive verification in deactivateWorker to catch any accidental
  session clearing bugs
- Enhance documentation in activateWorker, deactivateWorker, and
  updateWorker to clearly explain session preservation behavior
- Add comprehensive example flow in activateWorker docs showing session
  reuse across multiple tasks and tiers
- Add test suite for session persistence (projects.test.ts) to prevent
  regression
- Add npm test script to run test suite

This ensures sessions persist per tier after task completion, enabling
session reuse across multiple tasks of the same tier for massive token
savings (~50K per reuse) and context preservation.

Fixes: Bug where sessions could theoretically be accidentally cleared
during worker state updates, though current code was already correct.
This adds defense-in-depth to make the invariant bulletproof.
2026-02-10 10:52:12 +08:00

41 lines
796 B
JSON

{
"name": "@openclaw/devclaw",
"version": "0.1.0",
"description": "Multi-project dev/qa pipeline orchestration for OpenClaw",
"type": "module",
"license": "MIT",
"author": "laurentenhoor",
"repository": {
"type": "git",
"url": "https://github.com/laurentenhoor/devclaw.git"
},
"keywords": [
"openclaw",
"openclaw-plugin",
"dev-pipeline",
"orchestration",
"gitlab",
"github",
"multi-project"
],
"engines": {
"node": ">=20"
},
"openclaw": {
"extensions": [
"./index.ts"
]
},
"scripts": {
"check": "tsc --noEmit",
"watch": "tsc --noEmit --watch",
"test": "node --test lib/**/*.test.ts"
},
"peerDependencies": {
"openclaw": ">=2026.0.0"
},
"devDependencies": {
"typescript": "^5.8"
}
}