Repository navigation
feat(spi): describe identities so core learns a migrated handle - #7
Merged
Merged
Conversation
Implement gp.IdentityDescriber and declare identity_description. Describing an identity loads it, which completes one carried over from the community plugin (asks GitLab once, stores the user and webhook secret); a normal identity is answered from the stored record with no API call. Unknown identities report not_found, tokens GitLab rejects report forbidden. Needs the SDK's identity_description support (see the following commit). Refs Paca-AI/paca#661 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs Paca-AI/paca#661 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.4.2 ships the identity_description capability and DescribeIdentity. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
pikann
approved these changes
Nov 3, 2026
pikann
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀
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.
Summary
Implements
identity_description, so a connection carried over by a migration gets its name and@handlethe first time Paca lists connections. Part of Paca-AI/paca#661.Changes
DescribeIdentity: loads the identity, which completes a carried-over one from GitLab once (user, expiry, webhook secret), then answers from the stored record. A rejected token reportsforbidden.identity_descriptioncapability.Tests
go test ./...: 137 passed;go vetand golangci-lint clean; TinyGo build ok. End to end with core and a mock platform, over TLS: a 401 and a 503 keep the generic name; the plugin was rebuilt with TinyGo 0.41.1 and installed unchanged. Details in Paca-AI/paca#692.Dependency and merge order
Uses plugin-sdk-go v0.4.2 (Paca-AI/plugin-sdk-go#17). Merge after Paca-AI/paca#692. With an older core nothing breaks: the name appears at first use of the token, as today.
🤖 Generated with Claude Code