clawdie-ai/package.json
Sam & Claude 2ed6245b11 feat(backup): add backup script and restore runbook
npm run backup exports all critical state to a portable tarball:
  - messages.db (SQLite — all chats, tasks, sessions)
  - memory_db.sql + skills_db.sql (pg_dump from db jail)
  - .env, groups/, mount-allowlist.json

Takes ZFS snapshots via hostd before export. Flags:
  --skip-skills   skip skills_db (large, regenerable)
  --output <dir>  write archive to specific directory
  --no-snapshot   skip ZFS snapshots

setup/sanoid.ts: add management jail dataset to snapshot retention policy.
docs/sessions/2026-03-16-backup-restore.md: full restore runbook covering
SQLite, PostgreSQL, ZFS rollback, hardware migration, and cron automation.

---
Build: pass | Tests: pass — 489 passed (48 files)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: pass — Tests  489 passed | 10 skipped (499)
2026-03-16 11:17:46 +00:00

53 lines
1.7 KiB
JSON

{
"name": "clawdie",
"version": "0.8.2",
"description": "Personal AI assistant. Lightweight, secure, customizable.",
"license": "BSD-3-Clause",
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx src/index.ts",
"doctor": "tsx src/doctor.ts",
"auth": "tsx setup/telegram-auth.ts",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"setup": "tsx setup/index.ts",
"wizard": "tsx setup/index.ts --step onboarding",
"preflight-check": "tsx setup/index.ts --step preflight",
"hostd": "sudo node dist/hostd/index.js",
"hostd:dev": "sudo tsx src/hostd/index.ts",
"test": "vitest run",
"test:watch": "vitest",
"gen-changelog": "npx tsx scripts/gen-changelog.ts",
"backup": "tsx scripts/backup.ts",
"install-all": "tsx setup/install.ts",
"install-hooks": "git config core.hooksPath hooks",
"release": "node -e \"const v='v'+require('./package.json').version; require('child_process').execSync('git tag -a '+v+' -m '+v+' && git push origin '+v, {stdio:'inherit'});\""
},
"dependencies": {
"better-sqlite3": "^11.8.1",
"cron-parser": "^5.5.0",
"grammy": "^1.41.1",
"pg": "^8.20.0",
"pino": "^9.6.0",
"pino-pretty": "^13.0.0",
"yaml": "^2.8.2",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.12",
"@types/node": "^22.10.0",
"@types/pg": "^8.18.0",
"@vitest/coverage-v8": "^4.0.18",
"prettier": "^3.8.1",
"tsx": "^4.19.0",
"typescript": "^5.7.0",
"vitest": "^4.0.18"
},
"engines": {
"node": ">=24"
}
}