Skip to content

feat: sign in to ModioHub, read Workspace Thing Models and upload reports (POLL-02b) - #133

Merged
gavinying merged 2 commits into
v2from
poll-02b-login
Nov 12, 2026
Merged

gavinying merged 2 commits into
v2from
poll-02b-login

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

POLL-02b: sign in to ModioHub, read Workspace Thing Models and upload reports. Version 2.0.0a7, pinned to the released modpoll-wot 0.5.0a1.

  • modpoll login / logout: browser authorization (RFC 8628); the 7-day tool session is kept in the credentials file shared with modsim (MODIOHUB_TOKEN and MODIOHUB_URL override).
  • --tm modiohub:<id>@<version> (alias of -f): reads a custom Thing Model with the login (a shared one without); the token only goes to the server it was issued for; the download is checked against the server's SHA-256.
  • --upload / --yes: shows the report of a full read and uploads it after confirmation.

Verified: pytest tests -m "not integration" (224 passed, 14 new), deptry, uv lock; end to end with a local ModioHub site, a real browser confirmation, modsim and this branch (login by modsim, read and upload by modpoll).

🤖 Generated with Claude Code

gavinying and others added 2 commits November 12, 2026 20:02
…orts (POLL-02b)

modpoll login runs the browser authorization flow and keeps the tool session in the
credentials file shared with modsim; logout forgets it. --tm modiohub:<id>@<version>
reads a custom Thing Model with the login (a shared one without), checked against the
SHA-256 the server states; --upload shows the full-read report and uploads it after
confirmation. Needs modpoll-wot 0.5.0a1, which is not released yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gavinying
gavinying merged commit 8f147a0 into v2 Nov 12, 2026
6 checks passed
@gavinying
gavinying deleted the poll-02b-login branch November 12, 2026 12:35
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