Skip to main content

SQLite-based task and time tracking database for the MissionCache Claude Code plugin

Project description

missioncache-db

SQLite-based task and time tracking database for the MissionCache Claude Code plugin.

Provides cross-repo task tracking with WakaTime-style heartbeat time aggregation. Used as the storage layer for the MissionCache MCP server, hooks, CLI, and dashboard, but it's a standalone library and can be used on its own.

Install

pip install missioncache-db

Use as a library

from missioncache_db import TaskDB

db = TaskDB()            # defaults to ~/.missioncache/tasks.db, override via TaskDB(db_path=...)
repo_id = db.add_repo("/path/to/repo")
task = db.create_task(name="my-task", repo_id=repo_id)
db.record_heartbeat(task_id=task.id, directory="/path/to/repo")

Use as a CLI

missioncache-db list-active
missioncache-db heartbeat-auto
missioncache-db task-time <task_id>
missioncache-db set-category <task_id> <category|none>
missioncache-db --help

Storage

All state lives in a single SQLite database at ~/.missioncache/tasks.db (override by passing db_path to TaskDB). The database is WAL-mode, auto-initializes on first access, and is safe for concurrent readers.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

missioncache_db-1.0.11.tar.gz (131.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

missioncache_db-1.0.11-py3-none-any.whl (81.7 kB view details)

Uploaded Python 3

File details

Details for the file missioncache_db-1.0.11.tar.gz.

File metadata

  • Download URL: missioncache_db-1.0.11.tar.gz
  • Upload date:
  • Size: 131.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for missioncache_db-1.0.11.tar.gz
Algorithm Hash digest
SHA256 9a9e9e80015893f29d94dc444b6e98db434d140fe1ba60167eb53ca7379543d5
MD5 a2c0262ce29eece8034e02d8ea62816a
BLAKE2b-256 e440e91a76952251374bc300be842e847483f677cc8b86e3c3bc84a99589a883

See more details on using hashes here.

File details

Details for the file missioncache_db-1.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for missioncache_db-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5b462fe8fff2ae6adcbae8d85cf7b64e26a64796abf6fdfd39688b534c2c10c9
MD5 01523394b1eae002759dbefd24b993ae
BLAKE2b-256 06afeff0ae8bee3a68d4b0a91f5b92f2a676f92ab4ba388d64afdb86e209bf5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page