Repository navigation
The plug app, with 得到大脑 as its first plugin - #1
Merged
Merged
Conversation
A page lists the plugins and connects or disconnects each one in this browser; the reader asks /manifest which are connected and calls their tools here. 得到大脑 connects by device code, keeps the user's key in a sealed HttpOnly cookie, and offers search, knowledge bases, note lists, reading a note, and saving a new one.
…nd no stray space in the intro Vite answered the reader's preflight itself, without allowing credentials, so the browser refused every tool call through the dev server.
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.
What
The app at reader-plug.upivot.io that Gamma Reader's plugins (bencode/gamma-reader#279) talk to.
GET /manifestlists the plugins this browser has connected, with their tools.POST /:plugin/tools/:toolruns one. Both are open by CORS toREADER_ORIGINalone, with credentials.getnote_search,getnote_list_knowledge_bases,getnote_list_notes,getnote_read_note,getnote_save_note. Notes are only added, never edited or deleted. A saved note is taggedGamma Reader, with an idempotency key so a retry saves it once.Layout
web-packages/serverui-packages/webpackages/sharedA further plugin is a folder in each package, registered in its
plugins/index.ts.Checks
pnpm checkpasses: server 7 tests, page 2. They cover:pnpm buildand a production start serve the page, API and manifest.Not yet run against the real 得到大脑 with the reader: that is the local end-to-end step next.