Commit Graph

4 Commits

Author SHA1 Message Date
53fbabe33e feat(auth): add Secret Service and env var support for login
- Introduce `secret_tool_lookup` to retrieve passwords via `secret-tool`
- Extract `login_with_username` to try Secret Service before prompting
- Read `JASPER_USERNAME` env var to skip username prompt when set
- Fall back to `inputsecret` prompt if Secret Service lookup fails
2026-05-02 17:39:52 +02:00
9c122a312f feat(security,timer): harden auth and add multi-instance coordination
- Extract JASPER_URL into a shared constants module
- Pass login credentials via a temp curl config file to avoid exposure
  in the process argument list (ps/proc)
- Replace vim.ui.input secret prompt with vim.fn.inputsecret()
- Add -s (silent) flag to all curl calls to suppress progress output
- Guard curl output parser against missing newline in stdout
- Track per-activity shared timestamp file
  (/tmp/jasper_<id>.last_activity)
  so the inactivity watchdog skips auto-pause when another Neovim
  instance is still active on the same task
- Clean up leftover uv_timer on repeated begin_tracking calls
- Remove shared activity file on teardown only when this instance wrote
  it
2026-04-18 19:17:44 +02:00
56ccfe63b6 docs/refactor: add AI disclosure and clean up code style 2026-04-18 00:00:45 +02:00
fc8a13bd96 first commit 2026-04-17 17:33:23 +02:00