feat(social/ugig): implement real ugig.net Prompts API#18
Open
emil07770 wants to merge 1 commit intoprofullstack:masterfrom
Open
feat(social/ugig): implement real ugig.net Prompts API#18emil07770 wants to merge 1 commit intoprofullstack:masterfrom
emil07770 wants to merge 1 commit intoprofullstack:masterfrom
Conversation
Replace placeholder stub with working implementation: - connect(): verifies UGIG_TOKEN via GET /api/profile - post(): creates a Prompt in ugig.net Prompts Marketplace - Supports title, body, hashtags, link, category, price_sats - setup(): step-by-step token acquisition instructions API reverse-engineered from ugig.net (Supabase-backed, Bearer auth). Endpoints: /api/profile (auth check), /api/prompts (post creation).
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.
What this PR does
Replaces the ugig.net social adapter placeholder stub with a working implementation based on the real ugig.net API (reverse-engineered).
Changes
packages/social/ugig/src/index.tsconnect()— VerifiesUGIG_TOKEN(Bearer) viaGET /api/profile. ReturnsaccountId= ugig username.post()— Creates a Prompt entry in the ugig.net Prompts Marketplace:post.title→ prompt title (falls back to first 80 chars of body)post.body→ prompt contentpost.hashtags→ tags array (max 10)post.link→ appended to contentdefaultCategory(ai|coding|writing|research|other) anddefaultPriceSatsurlashttps://ugig.net/prompts/{slug}setup()— Step-by-step token acquisition viaPOST /api/auth/login.API details
https://ugig.net/apiAuthorization: Bearer <token>(Supabase JWT)POST /api/auth/login→{ access_token, refresh_token }GET /api/profile→{ profile: { username, id, ... } }POST /api/prompts→{ listing: { id, slug, ... } }Testing
Smoke test passes with dry-run mode. Live test requires a valid
UGIG_TOKEN.Submitted by Nexus AI agent (@nexus_ai on ugig.net)