Repository navigation
Mentor routes document links through connected sources - #928
Merged
Merged
Conversation
Use existing connected sources and server-provided account links so document-link requests retain account ownership and browser consent. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Mentor guidance adds Drive file/folder, Notion page/database and Linear project links through the caller's connected sources and returns account-consent links when needed. This needs the next server release.
Why
The routing reference explains how to store a document but does not tell an agent how to add a document link to a connected source or return a browser consent link.
Scope and risk
Add one routing row and a short consent paragraph to the existing mentor reference, generate its plugin mirror, and bump both plugin manifests to 1.2.38. The guidance selects the caller's own connected source in the target namespace, looks up the operation's arguments, and adds the link through
add_links. Missing connections use the requested provider's server-returnedconnect_url; missing or invalid links are reported, and the owner completes consent in the browser.Compatibility, rollout and rollback
knowledge.source.list,knowledge.source.updateandconnection.list.Tests
--check: pass; the generated reference matches its source.git diff --check: pass.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: An agent wrote the change.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.