Repository navigation
Notra as a third party, with Connect renewing sign-ins that run out - #51
Merged
Merged
Conversation
…debar, with Connect renewing sign-ins that run out - `@nibblets/third-party-notra` is Notra over its REST API: a chat of Nibblets' own per workspace, tagged so it's found again, and the tools a reply waits on as one request, since Notra takes a reply's approvals all at once. It signs in with the OAuth its MCP server uses, or takes an `ntra_` API key. - Notra's access tokens last minutes, so signing in can ask for `offline_access`, and Connect keeps the refresh token sealed and renews the credential before it runs out, one request at a time. - Plugins get `waitUntil`, so a reply Notra streams back is read to the end after the person has their answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds Notra (usenotra.com) as a third party in Connect, beside Revnu.
@nibblets/third-party-notrauses Notra's REST API (api.usenotra.com). The conversation is a chat of Nibblets' own per workspace, tagged with the external channel iddashboard/nibbletsso it's found again. The tools Notra's latest reply waits on (approval-requested) are one request, since its API takes all of a reply's approvals at once. Signing in uses the OAuth its MCP server uses; anntra_API key works too.offline_access. Connect keeps the refresh token sealed (migration 0006) and renews the credential within a minute of it running out. One request claims the renewal; the rest use the old credential while it works or wait for the new one. A refresh token Notra won't take marks the connection revoked.waitUntil, so the reply Notra streams back is read to the end after the person has their answer.Not tried against a real Notra account: its demo key sits behind a Turnstile check. Notra's API leaves chat messages undescribed, so they're read leniently as AI SDK UI messages, and the tests use that shape.
🤖 Generated with Claude Code