Documentation
¶
Overview ¶
Package amsl documents the Go implementation home of the Ajent Agent-Maintained Standard Library. The servicecred and mcpoauth subpackages are candidate runtime implementations pending maintainer review.
Capability contracts and lifecycle evidence live in https://github.com/ajent-social/capabilities. Proposed behavior must not be treated as an implemented or consumer-verified guarantee.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package accounts is a thin subject registry for linking auth methods.
|
Package accounts is a thin subject registry for linking auth methods. |
|
sqlstore
Package sqlstore persists accounts via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and others that speak the same dialect).
|
Package sqlstore persists accounts via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and others that speak the same dialect). |
|
billing
|
|
|
checkout
Package checkout coordinates durable local customer binding and hosted checkout attempts around an established payment provider.
|
Package checkout coordinates durable local customer binding and hosted checkout attempts around an established payment provider. |
|
checkout/sqlstore
Package sqlstore persists checkout bindings and attempts in PostgreSQL-compatible SQL.
|
Package sqlstore persists checkout bindings and attempts in PostgreSQL-compatible SQL. |
|
checkout/stripeadapt
Package stripeadapt implements checkout.Provider with the official Stripe Go SDK.
|
Package stripeadapt implements checkout.Provider with the official Stripe Go SDK. |
|
entitlement
Package entitlement gates product actions on subscription projection status.
|
Package entitlement gates product actions on subscription projection status. |
|
portal
Package portal opens Stripe Billing Portal sessions for self-serve billing management (invoices, payment method, cancel) around an existing customer ref.
|
Package portal opens Stripe Billing Portal sessions for self-serve billing management (invoices, payment method, cancel) around an existing customer ref. |
|
stripeverify
Package stripeverify verifies Stripe webhook signatures using the official stripe-go webhook helpers and maps events into subscription.VerifiedEvent fields for AcceptVerifiedEvent.
|
Package stripeverify verifies Stripe webhook signatures using the official stripe-go webhook helpers and maps events into subscription.VerifiedEvent fields for AcceptVerifiedEvent. |
|
subscription
Package subscription keeps a durable inbox of signature-verified provider events and a local per-customer subscription projection.
|
Package subscription keeps a durable inbox of signature-verified provider events and a local per-customer subscription projection. |
|
subscription/sqlstore
Package sqlstore persists subscription event inbox and projections in PostgreSQL-compatible SQL (PostgreSQL, SereneDB, and similar).
|
Package sqlstore persists subscription event inbox and projections in PostgreSQL-compatible SQL (PostgreSQL, SereneDB, and similar). |
|
Package cliagent turns an explicit, reviewed description of an existing command-line tool into coding-agent host plugins (Codex, Claude Code and Cursor) and serves that description as a stdio MCP server.
|
Package cliagent turns an explicit, reviewed description of an existing command-line tool into coding-agent host plugins (Codex, Claude Code and Cursor) and serves that description as a stdio MCP server. |
|
cmd
|
|
|
amsl-agent-plugin
command
Command amsl-agent-plugin generates Codex, Claude Code and Cursor plugins for an existing CLI from a reviewed cliagent spec, checks generated output for drift, and serves the spec's declared tools as a stdio MCP server.
|
Command amsl-agent-plugin generates Codex, Claude Code and Cursor plugins for an existing CLI from a reviewed cliagent spec, checks generated output for drift, and serves the spec's declared tools as a stdio MCP server. |
|
Package deviceflow coordinates the OAuth 2.0 device authorization grant (RFC 8628) against a configured authorization server.
|
Package deviceflow coordinates the OAuth 2.0 device authorization grant (RFC 8628) against a configured authorization server. |
|
Package magiclink issues and consumes single-use email sign-in challenges.
|
Package magiclink issues and consumes single-use email sign-in challenges. |
|
sqlstore
Package sqlstore persists magiclink challenges via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and similar).
|
Package sqlstore persists magiclink challenges via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and similar). |
|
Package mcpclientoauth coordinates OAuth 2.1 authorization-code + PKCE when the product is the client connecting to remote authorization servers (for example remote MCP servers).
|
Package mcpclientoauth coordinates OAuth 2.1 authorization-code + PKCE when the product is the client connecting to remote authorization servers (for example remote MCP servers). |
|
internal/lifecycletest
Package lifecycletest exercises the coordinator against actual store adapters.
|
Package lifecycletest exercises the coordinator against actual store adapters. |
|
memory
Package memory provides an ephemeral lifecycle store.
|
Package memory provides an ephemeral lifecycle store. |
|
sqlstore
Package sqlstore persists mcpclientoauth state via database/sql.
|
Package sqlstore persists mcpclientoauth state via database/sql. |
|
Package mcpoauth implements a bounded OAuth 2.1 authorization server for a single protected resource with public PKCE clients, as used by an MCP server.
|
Package mcpoauth implements a bounded OAuth 2.1 authorization server for a single protected resource with public PKCE clients, as used by an MCP server. |
|
boltstore
Package boltstore is a durable single-process mcpoauth.Store backed by bbolt.
|
Package boltstore is a durable single-process mcpoauth.Store backed by bbolt. |
|
sqlstore
Package sqlstore persists mcpoauth.Store state via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and others that speak the same SQL dialect and wire protocol).
|
Package sqlstore persists mcpoauth.Store state via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and others that speak the same SQL dialect and wire protocol). |
|
Package oidc coordinates OAuth 2.0 + OpenID Connect authorization-code login for social identity providers around the maintained go-oidc and golang.org/x/oauth2 libraries.
|
Package oidc coordinates OAuth 2.0 + OpenID Connect authorization-code login for social identity providers around the maintained go-oidc and golang.org/x/oauth2 libraries. |
|
apple
Package apple helps configure Sign in with Apple for oidc.New.
|
Package apple helps configure Sign in with Apple for oidc.New. |
|
github
Package github provides a non-OIDC OAuth 2.0 adapter for GitHub login that produces oidc.Identity and shares oidc.Store for pending state and bindings.
|
Package github provides a non-OIDC OAuth 2.0 adapter for GitHub login that produces oidc.Identity and shares oidc.Store for pending state and bindings. |
|
microsoft
Package microsoft provides Microsoft identity platform presets for oidc.New.
|
Package microsoft provides Microsoft identity platform presets for oidc.New. |
|
sqlstore
Package sqlstore persists OIDC pending states and bindings via database/sql.
|
Package sqlstore persists OIDC pending states and bindings via database/sql. |
|
Package passkey coordinates discoverable, user-verified WebAuthn ceremonies around the maintained go-webauthn library.
|
Package passkey coordinates discoverable, user-verified WebAuthn ceremonies around the maintained go-webauthn library. |
|
memory
Package memory is an in-memory passkey.Store for tests and single-process demos.
|
Package memory is an in-memory passkey.Store for tests and single-process demos. |
|
sqlstore
Package sqlstore persists passkey ceremonies and credentials via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and similar).
|
Package sqlstore persists passkey ceremonies and credentials via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and similar). |
|
Package passwordreset issues and consumes single-use password-reset tokens.
|
Package passwordreset issues and consumes single-use password-reset tokens. |
|
sqlstore
Package sqlstore persists password-reset challenges via database/sql.
|
Package sqlstore persists password-reset challenges via database/sql. |
|
Package publishablekey issues browser-embeddable public identifiers with hashed storage and optional origin allowlists.
|
Package publishablekey issues browser-embeddable public identifiers with hashed storage and optional origin allowlists. |
|
sqlstore
Package sqlstore persists publishable keys via database/sql.
|
Package sqlstore persists publishable keys via database/sql. |
|
Package sealedvault stores caller-sealed ciphertext blobs.
|
Package sealedvault stores caller-sealed ciphertext blobs. |
|
sqlstore
Package sqlstore persists sealed vault records via database/sql.
|
Package sqlstore persists sealed vault records via database/sql. |
|
Package servicecred implements scoped, revocable machine credentials.
|
Package servicecred implements scoped, revocable machine credentials. |
|
boltstore
Package boltstore persists service credentials in bbolt on a local filesystem on platforms with Unix flock support.
|
Package boltstore persists service credentials in bbolt on a local filesystem on platforms with Unix flock support. |
|
sqlstore
Package sqlstore persists service credentials via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and others that speak the same SQL dialect and wire protocol).
|
Package sqlstore persists service credentials via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and others that speak the same SQL dialect and wire protocol). |
|
Package tenant coordinates durable per-account instance lifecycle for hosted product deployments (slug → provision → ready → upgrade/destroy).
|
Package tenant coordinates durable per-account instance lifecycle for hosted product deployments (slug → provision → ready → upgrade/destroy). |
|
sqlstore
Package sqlstore persists tenant instances via database/sql against PostgreSQL-compatible servers.
|
Package sqlstore persists tenant instances via database/sql against PostgreSQL-compatible servers. |
|
Package usage meters bounded consumption per owner and period.
|
Package usage meters bounded consumption per owner and period. |
|
sqlstore
Package sqlstore persists usage counters via database/sql.
|
Package sqlstore persists usage counters via database/sql. |
|
Package webhookegress registers HTTPS webhook endpoints, signs payloads, and delivers events with bounded concurrency and per-owner rate limits.
|
Package webhookegress registers HTTPS webhook endpoints, signs payloads, and delivers events with bounded concurrency and per-owner rate limits. |
|
sqlstore
Package sqlstore persists webhook endpoints and deliveries via database/sql.
|
Package sqlstore persists webhook endpoints and deliveries via database/sql. |
|
Package webhookingress verifies inbound AMSL HMAC webhook signatures.
|
Package webhookingress verifies inbound AMSL HMAC webhook signatures. |