Skip to content

feat(spi): describe identities so core learns a migrated handle - #7

Merged
pikann merged 3 commits into
Paca-AI:masterfrom
gorlix:feat/describe-identity
Nov 3, 2026
Merged

pikann merged 3 commits into
Paca-AI:masterfrom
gorlix:feat/describe-identity

Conversation

@gorlix

@gorlix gorlix commented Nov 3, 2026

Copy link
Copy Markdown

Summary

Implements identity_description, so a connection carried over by a migration gets its name and @handle the 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 reports forbidden.
  • identity_description capability.
  • README: when the name appears and what happens if it cannot.

Tests

go test ./...: 137 passed; go vet and 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

gorlix and others added 3 commits November 3, 2026 11:47
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 pikann left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit 3d77c10 into Paca-AI:master Nov 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants