mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 21:59:38 +01:00
fix(repositories): make provider disconnect optional and disambiguate hosts
Skip optional disconnect hooks when a worker does not advertise them. Forward provider hosts through the UI connection flow so hosted and enterprise identities can coexist. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
83d0f420ff
commit
3d4c484816
9 files changed
+314
-35
No files matched your search
@@ -642,11 +642,16 @@ Serves a first-class repository provider contributed by a trusted extension
|
||||
package. Requires the `repository.providers.register` capability and a matching
|
||||
`repositoryProviders[]` manifest declaration.
|
||||
|
||||
Methods: `repositoryProviderBeginInstallation`,
|
||||
Required methods: `repositoryProviderBeginInstallation`,
|
||||
`repositoryProviderCompleteInstallation`, `repositoryProviderDiscover`,
|
||||
`repositoryProviderRefreshMetadata`, `repositoryProviderSync`,
|
||||
`repositoryProviderDisconnect`, and
|
||||
`repositoryProviderResolveCloneCredential`.
|
||||
`repositoryProviderRefreshMetadata`, `repositoryProviderSync`, and
|
||||
`repositoryProviderResolveCloneCredential`. Registration is refused when the
|
||||
worker implements only some of them.
|
||||
|
||||
Optional method: `repositoryProviderDisconnect`. Implement it to revoke an
|
||||
installation on the provider side. A provider with nothing to revoke may omit
|
||||
it — the host then skips the call and still tears the connection down locally,
|
||||
so an operator can always disconnect.
|
||||
|
||||
Connector identity is `providerKey` plus a normalized `host`, so the same
|
||||
provider key can serve github.com and an enterprise install without either
|
||||
|
||||
Reference in new issue
Block a user