Files
braindump/package.json
T
codingetandClaude a5f62512e8 initial implementation: brain-dump session server with dual LLM backends
Headless Koa v3 server exposing REST + SSE around the brain-dump skill:
- AgentBackend adapter seam with two implementations: Claude Agent SDK
  (skill loading, session resume via sdk_session_id) and a hand-rolled
  OpenAI-compatible tool-calling loop (vault-scoped file tools, SKILL.md
  injected into the system prompt, history persisted in SQLite)
- session CRUD + one-turn-at-a-time SSE streaming (text deltas, file_write
  events, turn_complete), per-session lock, abort on disconnect
- node:sqlite storage (sessions, messages, turn_events) with migrations
- vault allow-list + symlink-aware path-escape prevention (incl. dangling
  symlink defense), read-only git status/diff endpoints, configurable CORS
- deterministic mock chat-completions server (scripts/mock-openai.ts) for
  end-to-end testing without a real model

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-18 13:48:17 +00:00

31 lines
756 B
JSON

{
"name": "braindump",
"version": "0.1.0",
"description": "Headless web API around the brain-dump skill",
"type": "module",
"author": "Codinget <codinget@codi.moe>",
"license": "ISC",
"engines": {
"node": ">=22"
},
"scripts": {
"web": "tsx src/bin/braindump-web.ts",
"migrate": "tsx src/bin/braindump-migrate.ts",
"typecheck": "tsc --noEmit",
"test": "tsx --test src/**/*.test.ts"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.3.212",
"@koa/bodyparser": "^6.0.0",
"@koa/router": "^14.0.0",
"koa": "^3.0.1"
},
"devDependencies": {
"@types/koa": "^2.15.0",
"@types/koa__router": "^12.0.4",
"@types/node": "^24.0.0",
"tsx": "^4.19.0",
"typescript": "^5.7.0"
}
}