Repository navigation
feat(review-tutor): honor session model scope and add package docs - #65
Merged
Merged
Conversation
Prefer ctx.scopedModels over the full availability snapshot so the tutor model dialog matches the session's configured scope, deduplicate repeated scope entries, and document install, usage, storage, security boundary, GitHub head handling, and honest platform support in the package README.
This was referenced Aug 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #59 — completes the PR 3 slice (package and installation proof). Remaining in the Review Tutor vision: #62 (Structure view), #64 (streaming/multi-tab hardening), optional #63 (Claude Code/Codex connectors).
What changed
/review-tutormodel discovery now honors the Pi session's scoped models (--models/ settingsenabledModels) and falls back to the availability snapshot only when no scope is configured; repeated scope entries are deduplicated. Out-of-scope models such asgpt-5.6-lunano longer appear.packages/review-tutor/README.md: install (local path /pi -e), usage, model selection, local data paths, security boundary, GitHub head handling, honest platform matrix (Linux validated; macOS and Windows code paths unproven).Tested
bun run checkgreen: 410 passed | 25 skipped, coverage 78.28% statements (above floors), typecheck, lint, build.pi installfrom local path and from annpm packtarball into a second sandbox): package listed, extension and skill loaded,/review-tutorserver started, page fetched with auth gate (401 without token) and CSP headers verified. Real~/.piuntouched.pi -e): scoped model list served exactly the 5 resolvable scoped models (no Luna/Terra vs ~90 in the availability snapshot); real GitHub PR feat(review-tutor): redesign guided review interface #61 loaded through the head-race guard pinned to7d10887; real provider question (deepseek-v4-flash) answered in the explain format; learning log persisted withkind: prand head SHA provenance under~/.pickforge/review-tutor.Not tested
pi install npm:@pickforge/review-tutoragainst a real registry (package is private; tarball file-set proven instead).Risks
Local review: standard risk class, one independent correctness reviewer + KISS gate. Not release-note-worthy for a product app (platform packages repo; no
docs/releases/UNRELEASED.md).Human gate per #59: this PR stops at ready for human review; merge only on Elberte's authorization.