[Ch 12] Iterations — CLI auth flow and multi-README browsing #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — scoped from platform-playbook chapter 12 for the full-stack mdview vision.
Repo
ldraney/mdviewUser Story
As a developer
I want the CLI to authenticate and register READMEs with the server
So that I can browse all my project docs from my phone
Context
With auth and API tokens in place, the CLI needs to use them. The current CLI reads a local file and starts a server — the new CLI authenticates via API token and registers markdown files with the remote server. Registration crawls intra-repo .md links recursively so one command captures an entire project's docs. A post-commit hook keeps docs current automatically. The web/iOS UI gets a dashboard, file tree per project, and resume-last-read behavior.
File Targets
bin/mdview— addregisterandconfigsubcommands, token authapp/controllers/readmes_controller.rb— create (register, list, show)app/controllers/projects_controller.rb— create (dashboard, file tree)app/models/readme.rb— create (user_id, project_name, path, content, last_synced_at)app/models/project.rb— create (user_id, name, root_readme_path)app/views/projects/— dashboard (home) and file tree viewsapp/views/readmes/— reader viewdb/migrate/— readmes and projects tableslib/mdview/crawler.rb— intra-repo .md link crawl logiclib/mdview/link_validator.rb— broken link detection + cross-repo warningsFiles the agent should NOT touch:
Feature Flag
none
Acceptance Criteria
Registration crawl
mdview register ~/project/README.mdcrawls all intra-repo .md links recursivelymdview registerupdates existing content (idempotent)Link validation
Post-commit hook
mdview register "$(git rev-parse --show-toplevel)/README.md"works as a post-commit hookCLI auth
mdview config --token <token>stores the API token locallyAuthorization: Bearer <token>on all register requestsWeb/iOS UI
Gate
Test Expectations
bundle exec rspecConstraints
../../../)docs/ui-ux.mdfor screen mockups and flow diagramsChecklist
Related
project-mdview— project this affects