mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
Adds a remote MCP server at POST /mcp and a bearer-authed account API, so an agent can read the account, import statements and write back categorizations without a browser session. - 15 tools across read / write / import scopes; stateless streamable-HTTP JSON-RPC. Tokens are tc_pat_-prefixed and stored as a SHA-256 hash (migration 0027). - Auth is an allow-list, not a widening of authenticateRequest: a bearer token reaches /mcp and /api/v1/* and nothing else, with a regression test pinning 401 on the cookie-authed routes. - File bytes never travel through a tool argument. prepare_import returns a 15-minute HMAC-signed, purpose-bound capability URL and the bytes go over plain HTTP; export_snapshot does the same in reverse. - POST /api/v1/import runs the bank adapters before falling back to generic CSV, so the API accepts the files the Bank Imports tab accepts. The detection/parse core moved to shared/bankImport/ for this; its 42-name public surface is unchanged and 14 of the 20 moved files are byte-identical in logic. Verified against a real 94-row Erste statement locally: parsed by the erste adapter at 0.97 confidence, 100% date and amount parse rates, account created and linked, re-import deduped to 0. 624 worker tests / 73 files, 1680 frontend tests / 137 files, both typechecks and lint clean. Deploys to dev only; prod still requires a v* tag.
108 lines
2.2 KiB
Plaintext
108 lines
2.2 KiB
Plaintext
# Database files (track structure only)
|
|
db/*.db
|
|
db/*.db-shm
|
|
db/*.db-wal
|
|
db/sessions.db
|
|
backend/*.db
|
|
backend/*.db-shm
|
|
backend/*.db-wal
|
|
*.sqlite
|
|
|
|
# Uploaded files (track structure only)
|
|
!/assets/.gitkeep
|
|
|
|
# Build output
|
|
frontend/dist/
|
|
frontend/build/
|
|
frontend/vite/
|
|
frontend/# No trailing slash, deliberately: a worktree that symlinks node_modules to the main checkout
|
|
# creates a FILE with this name, which `node_modules/` does not match — and committing one makes
|
|
# `pnpm install --frozen-lockfile` fail on a fresh clone, because it cannot mkdir over it.
|
|
node_modules
|
|
frontend/test-results/
|
|
frontend/playwright-report/
|
|
frontend/playwright.local.config.ts
|
|
frontend/coverage/
|
|
coverage/
|
|
frontend/assets/
|
|
frontend/index-old.html
|
|
|
|
# Generated PWA service worker artifacts (vite-plugin-pwa / workbox) — emitted into dist/ at build
|
|
sw.js
|
|
sw.js.map
|
|
workbox-*.js
|
|
registerSW.js
|
|
manifest.webmanifest
|
|
dev-dist/
|
|
|
|
# Wrangler local dev state (miniflare cache) — never commit
|
|
.wrangler/
|
|
|
|
# Local planning (public roadmap is ROADMAP.md)
|
|
todo.md
|
|
|
|
# Environment
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Logs
|
|
*.log
|
|
logs/
|
|
|
|
# Node modules
|
|
node_modules/
|
|
dist/
|
|
|
|
.idea
|
|
assets/receipts/
|
|
|
|
# Runtime files
|
|
*.pid
|
|
|
|
# Editor backup files
|
|
*.swp
|
|
*.swo
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
|
|
# Claude Code agent workspace (per-user, machine-specific) — never commit.
|
|
# Keeps internal plans/skills/settings out of the public repo.
|
|
.claude/*
|
|
# ...but share the repo's agent skills (tour-check). Worktrees and local state stay ignored.
|
|
!.claude/skills/
|
|
|
|
# Test artifacts
|
|
test-results/
|
|
test-output.png
|
|
test-output.txt
|
|
tsc_errors.txt
|
|
|
|
# Symlinks (machine-specific)
|
|
backend/db
|
|
public/frontend
|
|
|
|
assets/local/
|
|
.audit_telemetry/
|
|
|
|
# Local scratch folders (per-developer; matches any `local/` dir at any depth)
|
|
local/
|
|
|
|
# One-off debug/seed scripts (kept in place — relative require/db paths tie them here)
|
|
/test-bills.js
|
|
/test-seed.js
|
|
/backend/test-seed.js
|
|
/backend/test-seed2.js
|
|
CLAUDE.md
|
|
|
|
# Playwright signed-in state, written by tests/global.setup.ts. Holds a session cookie.
|
|
frontend/tests/.auth/
|
|
|
|
# Implementation plans and specs are internal working documents, kept outside this
|
|
# public repo (they live in the owner's dotfiles). See docs/ for user-facing docs.
|
|
docs/superpowers/
|