Files
DeepTutor/tests/api
Bingxi Zhao (Frank) f58654e0bf fix(marginnote4): close the device bridge's auth boundary
`/sync` and `/heartbeat` are the only endpoints reachable without a
DeepTutor session, and both resolved their store before checking the
credential. Two consequences:

- Constructing a `MarginNoteStore` mkdir's and installs the schema, so an
  unauthenticated `POST /sync` created a database per distinct `X-MN4-KB`
  value. `MarginNoteStore.open_existing` gives the device path a way to
  look without writing; no file, no store, 403.
- Pairing runs under `require_auth` and lands in the caller's own
  workspace, while the device endpoints carry no session and resolve the
  default one. Wherever those differ the token issued at pairing could
  never be found again, so every sync 403'd forever. Both paths now name
  the workspace they mean through one resolver, and pairing refuses
  rather than hand out a credential the sync path cannot read.

Also bound one batch (`objects` / `deleted_ids` / `cursor` / device
name), and promote `_default_db_path` to `default_db_path` since two
other modules already import it across the package boundary.
2026-08-21 16:57:45 +08:00
..
2026-06-11 20:03:34 +08:00
2026-08-17 11:22:26 +08:00
2026-06-11 20:03:34 +08:00
2026-06-18 00:22:48 +08:00
2026-06-17 10:50:44 +08:00
2026-08-19 17:34:52 +08:00
2026-07-31 00:25:48 +08:00
2026-06-11 20:03:34 +08:00
2026-06-21 14:43:41 +08:00
2026-08-19 17:34:52 +08:00
2026-06-18 00:22:48 +08:00
2026-07-31 00:25:48 +08:00
2026-07-31 00:25:48 +08:00
2026-08-02 13:07:32 +08:00
2026-06-18 00:22:48 +08:00