Skip to content

sdk/social: add follows, likes and reposts - #14

Open
Kzoeps wants to merge 2 commits into
mainfrom
karma/tech-759-social-graph
Open

Kzoeps wants to merge 2 commits into
mainfrom
karma/tech-759-social-graph

Conversation

@Kzoeps

@Kzoeps Kzoeps commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Closes TECH-759.

Adds @hypercerts-org/sdk/social: create and remove follows, entity follows, likes and reposts (app.certified.graph.* and app.certified.feed.*).

Changes

  • Create operations take the target: targetDid for account follows, targetUri for records. Likes and reposts pin the exact record version.
  • Removal deletes the caller's own record, guarded by its CID.
  • New submitDelete in internal/submit-writes.ts, with its own error messages for deletes; existing write handling is unchanged.
  • test-utils/fake-repo.ts gains optional listRecords and deleteRecord handlers.
  • Skill reference, changeset, tests.

@changeset-bot

changeset-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 98c91d6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hypercerts-org/sdk Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 10d33214-73ba-4a17-9fb8-55cf249d73fb
Commits

Reviewing files that changed from the base of the PR and between 3ca68ab and 98c91d6.

Files selected for processing: 16

  • .agents/skills/hypercerts-org-sdk/SKILL.md
  • .agents/skills/hypercerts-org-sdk/references/social.md
  • .changeset/social-follows-likes-reposts.md
  • packages/sdk/package.json
  • packages/sdk/src/internal/submit-writes.test.ts
  • packages/sdk/src/internal/submit-writes.ts
  • packages/sdk/src/social/action.ts
  • packages/sdk/src/social/create.test.ts
  • packages/sdk/src/social/feed.ts
  • packages/sdk/src/social/graph.ts
  • packages/sdk/src/social/index.ts
  • packages/sdk/src/social/list-collection.ts
  • packages/sdk/src/social/run-action.ts
  • packages/sdk/src/social/undo.test.ts
  • packages/sdk/src/test-utils/fake-collection.ts
  • packages/sdk/src/test-utils/fake-repo.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Kzoeps
Kzoeps force-pushed the karma/tech-759-social-graph branch 3 times, most recently from a506818 to a31afb7 Compare November 11, 2026 07:24
Social operations upload nothing, so only the write-error @throws and the
social reference are shortened to the form used on main after #17.
@Kzoeps
Kzoeps force-pushed the karma/tech-759-social-graph branch from a31afb7 to 98c91d6 Compare November 11, 2026 11:52
@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

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.

1 participant