diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-30 11:18:32 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-30 11:18:32 +0100 |
| commit | 202995fc8afab753a9e5c441932779c9a5249c96 (patch) | |
| tree | fe051c09097e965c7e49f1ccebce3c270d34b415 /docs/superpowers | |
| parent | 41c503645122f3d2d79ea4a428d6eb72c399c5b5 (diff) | |
| download | deck-it-202995fc8afab753a9e5c441932779c9a5249c96.tar.gz deck-it-202995fc8afab753a9e5c441932779c9a5249c96.zip | |
feat(todo): read the Vikunja token from pass
[todo] pass names the pass entry holding the API token; it is read once
and kept in memory, and read again after Vikunja answers 401. No token
file on disk.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers')
| -rw-r--r-- | docs/superpowers/specs/2026-11-30-todo-design.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/superpowers/specs/2026-11-30-todo-design.md b/docs/superpowers/specs/2026-11-30-todo-design.md index 72ac21a..b451c90 100644 --- a/docs/superpowers/specs/2026-11-30-todo-design.md +++ b/docs/superpowers/specs/2026-11-30-todo-design.md @@ -15,8 +15,10 @@ with no due date (only a reminder) after those. At most 3 lines plus - `[todo] url`, the Vikunja API base (`http://host:3456`). Empty: the module reports nothing and starts no thread. -- Token: `~/.config/deck-it/vikunja-token`, a Vikunja API token allowed to - read and update tasks. Never in the repo or the shipped config. +- Token: a Vikunja API token allowed to read and update tasks, the first + line of the pass entry `[todo] pass`. Read once and kept in memory; a 401 + drops it so the next read asks pass again. Never in the repo or the + shipped config. - A thread reads `GET /api/v2/tasks?filter=done = false && (due_date < now/d+1d || reminders < now)` every 60s and right after an action; `/api/v1/info`'s `frontend_url` once for links. |
