Repository navigation
content: how an app builds features on the Platform API - #7
Merged
Merged
Conversation
The guide covered operating a Project with apth, but not code inside an app that uses the platform. A new section, Build on the Platform API, adds: - overview: your own Application versus a marketplace app, what the platform hands an app at runtime, and the two authority planes - platform-connection: the platform connection env, publish sign-in, and the forwarded user token - app-permissions: access model, acceptance, bindings, the user-token exchange and the signed Assertion, with @appthrust/app-access - call-platform-api: the Platform API audience, calling as the signed-in user, the error envelope, and mutations - marketplace-app: the catalog definition, env and HTTP contract, appserver-go, Access Keys, and what publishing requires plus the appthrust-platform-api-app skill and Japanese variants of all of them. Sources pin platform e4df1169d0.
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.
Why
The guide taught an agent to operate a Project with
apth, but said nothing about code inside an app that uses the platform: identifying the signed-in user, authorizing them with app roles, or calling the Platform API on their behalf. That holds for a developer's own Application and for a marketplace app.What
A new section, Build on the Platform API (
build, betweenapthandapthctl), in English and Japanese:build/overviewbuild/platform-connectionapth component-connections create --destination-platform, thePLATFORM_*variables,apth publishes access set --mode Authenticated, the forwarded user tokenbuild/app-permissionsPOST /api/v1/access/user-tokenexchange and Assertion verification,@appthrust/app-accessbuild/call-platform-apiappthrust-platform-apiaudience, calling as the signed-in user, the error envelope, idempotent mutationsbuild/marketplace-appappserver-go, Access Keys, publication authorityPlus the
appthrust-platform-api-appskill, a link from Start here, and the section's wiring in the server (sections, llms.txt lead) and the SPA label.Sources pin platform
e4df1169d00ac084a11874b5298b1c175e044074.Checks
bun hack/check-sources.ts --platform /workspace/platform: all sources exist at their pinned revisionsgo test ./cmd/...,go vet ./cmd/...web:bun run typecheck,bun test src,bun run build:image/readyz200,/llms.txtlists the section; SPA shows the section, the five documents and the skill in both languages