Skip to content

feat: trokky doctor - #11

Merged
amenophis1er merged 1 commit into
mainfrom
feat/doctor
Nov 9, 2026
Merged

amenophis1er merged 1 commit into
mainfrom
feat/doctor

Conversation

@amenophis1er

Copy link
Copy Markdown
Contributor

Item 7 of the 3.6 work; needs Trokky/trokky's GET /system/doctor (3.6).

  • trokky doctor prints each check with its findings and when the report was made; exits 1 on a failure, and on a warning with --strict; --json for scripts.
  • trokky login now asks for system:read (servers before 3.6 ignore unknown scopes; checked against 3.5.6). Existing logins need a fresh trokky login to use doctor.
  • A 404 is explained as an older server only when a Trokky health endpoint answers (under /api or the root); otherwise it says the URL is wrong. A 403 names the permission and both ways to get it (admin login, or an API token with settings:read). The error prints once.

Reviewed end to end with the server PR (real server, headless device flow as admin and editor, against 3.5.6) and by Codex twice.

Prints the site's own diagnostics (GET /system/doctor, Trokky 3.6+): signing key,
schemas, storage persistence, stored content. Exits non-zero on a failure, and on
a warning with --strict; --json for scripts. Login asks for the system:read scope
(older servers ignore it). Clear messages for an older server, a wrong URL and a
missing permission.
@amenophis1er
amenophis1er merged commit 9554b6b into main Nov 9, 2026
1 check passed
@amenophis1er
amenophis1er deleted the feat/doctor branch November 9, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant