Repository navigation
Description
Priority: P2 (Medium)
Post comments, including image comments, and read event activity.
Use cases
- Post text or images to an event discussion
- Reply to an existing comment
- Read comments and RSVP activity
- Use image comments from agent workflows without opening the Partiful web app
Proposed commands
# Read activity/comments
partiful activity <eventId>
partiful activity <eventId> --limit 20
# Post text
partiful comment <eventId> "Excited for tomorrow!"
# Post one or more images, with optional text
partiful comment <eventId> --image ./photo.jpg
partiful comment <eventId> "Setup is ready" --image ./photo.jpg
partiful comment <eventId> --image ./one.jpg --image ./two.png
# Reply
partiful comment <eventId> --reply <commentId> "Me too!"Command naming should be reconciled with the repo's plural command groups during implementation. A comments list/create/delete group may fit better than the singular examples above.
Initial API investigation (2026-08-04)
Verified against the current Partiful web bundle and the authenticated API.
Callable endpoints
getEventCommentswith{ eventId }createCommentwith{ id?, eventId, message?, image?, media?, replyTo?, timezone, mentions? }deleteCommentwith{ eventId, commentId }updateCommentReactionwith{ eventId, commentId, reaction }
getEventComments succeeded against real events. Its response is { comments: [...] }. Observed comment fields include:
id, message, timezone, createdAt, publicShortUrl, eventId,
userId, guestId?, replyTo?, image?, photoIds?, reactionMap?
The sampled account had 10 readable comments across 29 events. Two comments referenced uploaded photos through photoIds, including one with five photos. This confirms that comments support multiple uploaded images. Replies use a typed replyTo object; observed type: rsvp.
Image upload flow
- Upload each file with multipart
POST /uploadPhotousing query params:uploadType=event_photoeventId=<eventId>
- Read
uploadDatafrom the response. - Convert each upload to a comment media entry:
{
"source": "upload",
"type": "image",
"url": "<uploadData.url>",
"upload": "<the full uploadData object>"
}- Call
createCommentwith the resultingmediaarray and optionalmessage.
Current web-client image constraints:
- MIME types: JPEG, GIF, PNG, HEIC, HEIF
- Maximum image size: 30 MB per file
- Comment text: 400 characters
- Event setting
allowGuestPhotoUploadcontrols guest uploads; hosts/admins have separate permission paths
The same activity editor also supports videos, but video upload uses a different signed-upload flow. Video comments are out of scope for the first image-comment implementation.
Existing code to reuse
src/lib/upload.tsalready handles multipart/uploadPhotorequests and local/URL image inputs.src/lib/http.tsalready handles callable auth and envelopes.src/lib/api/endpoints.tsis the place for typed request/response contracts.
The existing upload helper currently targets event_poster. It should accept an upload context/type so image comments can use event_photo without duplicating multipart logic.
Implementation notes
- Add typed contracts for
getEventComments,createComment, anddeleteComment. - Generalize the image uploader for
event_photopluseventId. - Generate the
mediawrapper exactly as the web client does. - Support image-only and text-plus-image comments.
- Keep default output JSON-first and do not expose Partiful user IDs in human-readable output.
- Use
--dry-runto show files, sizes, MIME types, and the intended comment payload without uploading or posting. - Surface event permission errors cleanly. Do not pre-assume hosts are blocked when
allowGuestPhotoUploadis false. - Add unit tests for payload construction, MIME/size validation, repeated
--image, and API error mapping. - Verify with one real hosted-event image comment, read it back through
getEventComments, then delete it throughdeleteComment.
Acceptance criteria
- View activity feed
- List event comments as structured JSON
- Post a text comment
- Post an image-only comment from a local file
- Post text plus one or more images
- Reply to a comment
- Delete a comment created by the authenticated user/host
- See RSVP activity in feed
- Reject unsupported MIME types and images over 30 MB before upload
-
--dry-runperforms no upload or comment mutation - Unit tests cover payload and media construction
- One real image-comment E2E passes and cleanup is verified
Contract-to-release lifecycle (2026 mobile callable refresh)
Updated evidence starting point
Issue #206 verified getEventComments as a live {eventId} callable and inventories create/delete/reaction operations. Populated comment, media, ordering, pagination, and realtime semantics still need controlled evidence.
Issue #206 and its research branch are evidence inputs, not authority. Operation names alone do not establish request schemas, authorization, response semantics, persistence, or safe mutation behavior.
Delivery lifecycle
- Capture current first-party request, response, authorization, pagination, failure, and consumed-field evidence. Use read-only probes first and controlled self-owned fixtures for writes.
- Audit the current
spec/partiful.openapi.jsonandspec/partiful.api-evidence.json. Propose the smallest remote-contract revision needed, or record a reviewed no-change decision when the existing transport contract is sufficient. - Obtain owner approval for the remote contract before implementation treats new evidence as authoritative.
- Update
docs/CLI-PRODUCT-CONTRACT.md, the typed application operation, public command catalog,partiful schema, help, output projection, empty states, structured failures, and safety metadata together. - Implement the required
internal/remotetransport and one typed application operation that the CLI uses directly and a future MCP adapter can reuse. Do not expose raw callable, Firestore, or shell escape hatches. - Add fake-transport contract tests, input and projection tests, privacy regressions, permission/error cases, pagination bounds, and CLI/MCP semantic parity when MCP is available.
- Run controlled end-to-end verification. Every mutation needs dry-run, exact authorization and precondition checks, at-most-once dispatch, independent readback, and fixture cleanup.
- Update README and the Partiful skill, then run
go mod verify,go test ./...,go test -race ./...,go vet ./...,go build ./..., the PII guard, and./scripts/verify-native-release.sh.
Dependency updates
- Related to feat(media): add GIF, Unsplash, video, and event album workflows #220 for GIF, video, and provider media.
Additional acceptance gates
- Operation-specific evidence is sanitized, reproducible, and classified by source.
- OpenAPI and evidence-ledger treatment is owner-approved before implementation lands.
- CLI product contract, schema, help, safety metadata, and JSON output agree.
- Empty, malformed, unauthenticated, unauthorized, not-found, and protocol-drift cases are explicit.
- Private identifiers and backend bodies do not enter normal output, errors, diagnostics, fixtures, or MCP context.
- Controlled live verification exercises the actual transport and independent readback.
- Full Go, race, vet, build, privacy, contract, and native release gates pass.
Activity
KalebCole commentedon Nov 14, 2026
Triage bot: held for Kaleb. Every new command waits for his review for now (draft VISION (#256)), and a command ships only for an operation defined in
spec/partiful.openapi.json, with Go tests and reviewed schema goldens. Image comments would need a custom image upload, which is out of scope, so text comments and activity reads only. Needs: Kaleb's go-ahead, then the activity read and comment post operations reviewed into the spec.