Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

520 B
Raw Blame
import { communityRequest } from './client';

type Like = { liked: boolean; likes: number };

/** Saves the reader's like; the Hub answers with it and the harness's count. */
export const putLike = (id: string, liked: boolean) =>
  communityRequest<Like>(`harnesses/${id}/like`, { method: 'PUT', body: { liked } });

/** Follows or stops following a creator. */
export const putFollow = (authorId: string, following: boolean) =>
  communityRequest(`creators/${authorId}/follow`, { method: 'PUT', body: { following } });