Skip to content

feat(social): implement X API posting#258

Merged
ralyodio merged 2 commits into
profullstack:masterfrom
thejaytang:social-x-api-posting
May 17, 2026
Merged

feat(social): implement X API posting#258
ralyodio merged 2 commits into
profullstack:masterfrom
thejaytang:social-x-api-posting

Conversation

@thejaytang

Copy link
Copy Markdown
Contributor

Summary

  • replace the X social adapter fake success path with official X API v2 Post creation for mode=api
  • post to /2/tweets with bearer user access tokens
  • support text posts, replies, quote IDs, and pre-uploaded media IDs
  • reject unsupported browser/raw media paths explicitly
  • add social contract coverage plus focused mocked API tests for success, media validation, and X error responses

Context

Closes #257
References #6

X API docs used:

Validation

  • corepack pnpm --filter @profullstack/sh1pt-social-x typecheck
  • corepack pnpm vitest run packages/social/x/src/index.test.ts
  • corepack pnpm --filter @profullstack/sh1pt-social-x build

@ralyodio ralyodio merged commit 545cb5b into profullstack:master May 17, 2026
4 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.

Implement X API social posting adapter

2 participants