Payload
{
"action": "created",
"issue": {
"url": "https://api.github.com/repos/voytravel/voy/issues/1029",
"repository_url": "https://api.github.com/repos/voytravel/voy",
"labels_url": "https://api.github.com/repos/voytravel/voy/issues/1029/labels{/name}",
"comments_url": "https://api.github.com/repos/voytravel/voy/issues/1029/comments",
"events_url": "https://api.github.com/repos/voytravel/voy/issues/1029/events",
"html_url": "https://github.com/voytravel/voy/pull/1029",
"id": 4603336129,
"node_id": "PR_kwDOPLnB3s7jbUQX",
"number": 1029,
"title": "[PROTOTYPE ONLY, DO NOT MERGE] Add Instagram profile analyzer prototype",
"user": {
"login": "michaelmwu",
"id": 421504,
"node_id": "MDQ6VXNlcjQyMTUwNA==",
"avatar_url": "https://avatars.githubusercontent.com/u/421504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/michaelmwu",
"html_url": "https://github.com/michaelmwu",
"followers_url": "https://api.github.com/users/michaelmwu/followers",
"following_url": "https://api.github.com/users/michaelmwu/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelmwu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/michaelmwu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelmwu/subscriptions",
"organizations_url": "https://api.github.com/users/michaelmwu/orgs",
"repos_url": "https://api.github.com/users/michaelmwu/repos",
"events_url": "https://api.github.com/users/michaelmwu/events{/privacy}",
"received_events_url": "https://api.github.com/users/michaelmwu/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"labels": [],
"state": "open",
"locked": false,
"assignees": [],
"milestone": null,
"comments": 2,
"created_at": "2026-06-06T12:26:56Z",
"updated_at": "2026-07-04T14:02:19Z",
"closed_at": null,
"assignee": null,
"author_association": "CONTRIBUTOR",
"issue_field_values": [],
"type": null,
"active_lock_reason": null,
"draft": false,
"pull_request": {
"url": "https://api.github.com/repos/voytravel/voy/pulls/1029",
"html_url": "https://github.com/voytravel/voy/pull/1029",
"diff_url": "https://github.com/voytravel/voy/pull/1029.diff",
"patch_url": "https://github.com/voytravel/voy/pull/1029.patch",
"merged_at": null
},
"body": "## Summary\n\n- Add an Instagram profile analyzer prototype with a Next.js review surface at `/ig-analyzer`, API router, background job, database tracking table, validators, and service-layer profile analysis.\n- Analyzer URL: `/ig-analyzer` (local dev: `http://localhost:3000/ig-analyzer` when the Next.js app is on port 3000).\n- Scrape recent public Instagram profile posts via the existing scraper stack and infer travel preferences with `gpt-4.1-mini`.\n- Download Instagram thumbnails in the service, convert them to `data:image/...` payloads, and send those to OpenAI instead of asking OpenAI to fetch Instagram CDN URLs.\n- Use profile bio/location hints as the source of `preferences.location`; post locations are travel evidence and only become profile location when repeatedly dominant.\n- Add traveler-count guidance for repeated companion tags/images so the analyzer can distinguish solo, couple, and group travel.\n- Add focused coverage for thumbnail preparation, image retry behavior, companion mentions, and profile-location precedence.\n\n## Validation\n\nRan real public-profile scrape + LLM analyses using dev `workers` SOPS env, `gpt-4.1-mini`, no `INSTAGRAM_SESSION_COOKIE`, and no BrightData credentials.\n\nBoth sampled public profiles completed successfully via the `cuimp` scrape path with 12 sampled posts each. The reruns verified:\n\n- public profile scrape succeeds without Instagram session cookies\n- service-side thumbnail download works before the model call\n- OpenAI receives prepared `data:image/...` payloads instead of Instagram CDN URLs\n- profile bio/location hints override one-off post destinations for `preferences.location`\n- traveler-count inference can use repeated companion/social evidence\n\nDetailed live-output artifacts were kept in workspace-local `.context/` only and are intentionally not included in the PR body.\n\n## Checks\n\n- `pnpm install --frozen-lockfile`\n- `pnpm --filter @voytravel/vitest-config build`\n- `pnpm --filter @voytravel/services test src/instagram-analyzer/analyze.test.ts`\n- `pnpm --filter @voytravel/services typecheck`\n- `pnpm --filter @voytravel/services check`\n- `pnpm --filter @voytravel/services test src/instagram-analyzer/analyze.test.ts src/social-media/instagram-profile-posts.test.ts`\n- `pnpm --filter @voytravel/validators typecheck`\n- `pnpm --filter @voytravel/validators check`\n- `pnpm --filter @voytravel/nextjs typecheck`\n- `pnpm --filter @voytravel/nextjs check`\n- `pnpm --filter @voytravel/api typecheck`\n- `pnpm --filter @voytravel/api check`\n- `pnpm --filter @voytravel/auth test src/migrate-guest-data.test.ts`\n- `pnpm --filter @voytravel/auth typecheck`\n- `pnpm --filter @voytravel/auth check`\n- `pnpm --filter @voytravel/db check`\n- `pnpm --filter @voytravel/jobs typecheck`\n",
"reactions": {
"url": "https://api.github.com/repos/voytravel/voy/issues/1029/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/voytravel/voy/issues/1029/timeline",
"performed_via_github_app": null,
"state_reason": null
},
"comment": {
"url": "https://api.github.com/repos/voytravel/voy/issues/comments/4882313924",
"html_url": "https://github.com/voytravel/voy/pull/1029#issuecomment-4882313924",
"issue_url": "https://api.github.com/repos/voytravel/voy/issues/1029",
"id": 4882313924,
"node_id": "IC_kwDOPLnB3s8AAAABIwIyxA",
"user": {
"login": "czxtm",
"id": 1325802,
"node_id": "MDQ6VXNlcjEzMjU4MDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1325802?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/czxtm",
"html_url": "https://github.com/czxtm",
"followers_url": "https://api.github.com/users/czxtm/followers",
"following_url": "https://api.github.com/users/czxtm/following{/other_user}",
"gists_url": "https://api.github.com/users/czxtm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/czxtm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/czxtm/subscriptions",
"organizations_url": "https://api.github.com/users/czxtm/orgs",
"repos_url": "https://api.github.com/users/czxtm/repos",
"events_url": "https://api.github.com/users/czxtm/events{/privacy}",
"received_events_url": "https://api.github.com/users/czxtm/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"created_at": "2026-07-04T14:02:19Z",
"updated_at": "2026-07-04T14:02:19Z",
"body": "/dm review this PR",
"author_association": "MEMBER",
"reactions": {
"url": "https://api.github.com/repos/voytravel/voy/issues/comments/4882313924/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"performed_via_github_app": null
},
"repository": {
"id": 1018806750,
"node_id": "R_kgDOPLnB3g",
"name": "voy",
"full_name": "voytravel/voy",
"private": true,
"owner": {
"login": "voytravel",
"id": 213144510,
"node_id": "O_kgDODLRTvg",
"avatar_url": "https://avatars.githubusercontent.com/u/213144510?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/voytravel",
"html_url": "https://github.com/voytravel",
"followers_url": "https://api.github.com/users/voytravel/followers",
"following_url": "https://api.github.com/users/voytravel/following{/other_user}",
"gists_url": "https://api.github.com/users/voytravel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/voytravel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/voytravel/subscriptions",
"organizations_url": "https://api.github.com/users/voytravel/orgs",
"repos_url": "https://api.github.com/users/voytravel/repos",
"events_url": "https://api.github.com/users/voytravel/events{/privacy}",
"received_events_url": "https://api.github.com/users/voytravel/received_events",
"type": "Organization",
"user_view_type": "public",
"site_admin": false
},
"html_url": "https://github.com/voytravel/voy",
"description": "Voy Monorepo",
"fork": false,
"url": "https://api.github.com/repos/voytravel/voy",
"forks_url": "https://api.github.com/repos/voytravel/voy/forks",
"keys_url": "https://api.github.com/repos/voytravel/voy/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/voytravel/voy/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/voytravel/voy/teams",
"hooks_url": "https://api.github.com/repos/voytravel/voy/hooks",
"issue_events_url": "https://api.github.com/repos/voytravel/voy/issues/events{/number}",
"events_url": "https://api.github.com/repos/voytravel/voy/events",
"assignees_url": "https://api.github.com/repos/voytravel/voy/assignees{/user}",
"branches_url": "https://api.github.com/repos/voytravel/voy/branches{/branch}",
"tags_url": "https://api.github.com/repos/voytravel/voy/tags",
"blobs_url": "https://api.github.com/repos/voytravel/voy/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/voytravel/voy/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/voytravel/voy/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/voytravel/voy/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/voytravel/voy/statuses/{sha}",
"languages_url": "https://api.github.com/repos/voytravel/voy/languages",
"stargazers_url": "https://api.github.com/repos/voytravel/voy/stargazers",
"contributors_url": "https://api.github.com/repos/voytravel/voy/contributors",
"subscribers_url": "https://api.github.com/repos/voytravel/voy/subscribers",
"subscription_url": "https://api.github.com/repos/voytravel/voy/subscription",
"commits_url": "https://api.github.com/repos/voytravel/voy/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/voytravel/voy/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/voytravel/voy/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/voytravel/voy/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/voytravel/voy/contents/{+path}",
"compare_url": "https://api.github.com/repos/voytravel/voy/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/voytravel/voy/merges",
"archive_url": "https://api.github.com/repos/voytravel/voy/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/voytravel/voy/downloads",
"issues_url": "https://api.github.com/repos/voytravel/voy/issues{/number}",
"pulls_url": "https://api.github.com/repos/voytravel/voy/pulls{/number}",
"milestones_url": "https://api.github.com/repos/voytravel/voy/milestones{/number}",
"notifications_url": "https://api.github.com/repos/voytravel/voy/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/voytravel/voy/labels{/name}",
"releases_url": "https://api.github.com/repos/voytravel/voy/releases{/id}",
"deployments_url": "https://api.github.com/repos/voytravel/voy/deployments",
"created_at": "2025-07-13T04:51:01Z",
"updated_at": "2026-07-04T05:45:38Z",
"pushed_at": "2026-07-04T13:31:26Z",
"git_url": "git://github.com/voytravel/voy.git",
"ssh_url": "org-213144510@github.com:voytravel/voy.git",
"clone_url": "https://github.com/voytravel/voy.git",
"svn_url": "https://github.com/voytravel/voy",
"homepage": null,
"size": 68281,
"stargazers_count": 1,
"watchers_count": 1,
"language": "TypeScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"has_discussions": true,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 39,
"license": {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit",
"node_id": "MDc6TGljZW5zZTEz"
},
"allow_forking": false,
"is_template": false,
"web_commit_signoff_required": false,
"has_pull_requests": true,
"pull_request_creation_policy": "all",
"topics": [],
"visibility": "private",
"forks": 0,
"open_issues": 39,
"watchers": 1,
"default_branch": "develop",
"custom_properties": {}
},
"organization": {
"login": "voytravel",
"id": 213144510,
"node_id": "O_kgDODLRTvg",
"url": "https://api.github.com/orgs/voytravel",
"repos_url": "https://api.github.com/orgs/voytravel/repos",
"events_url": "https://api.github.com/orgs/voytravel/events",
"hooks_url": "https://api.github.com/orgs/voytravel/hooks",
"issues_url": "https://api.github.com/orgs/voytravel/issues",
"members_url": "https://api.github.com/orgs/voytravel/members{/member}",
"public_members_url": "https://api.github.com/orgs/voytravel/public_members{/member}",
"avatar_url": "https://avatars.githubusercontent.com/u/213144510?v=4",
"description": ""
},
"enterprise": {
"id": 469843,
"slug": "darkmatter",
"name": "darkmatter",
"node_id": "E_kgDOAAcrUw",
"avatar_url": "https://avatars.githubusercontent.com/b/469843?v=4",
"description": "",
"website_url": "darkmatter.io",
"html_url": "https://github.com/enterprises/darkmatter",
"created_at": "2025-09-07T16:01:00Z",
"updated_at": "2026-07-02T14:01:25Z"
},
"sender": {
"login": "czxtm",
"id": 1325802,
"node_id": "MDQ6VXNlcjEzMjU4MDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1325802?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/czxtm",
"html_url": "https://github.com/czxtm",
"followers_url": "https://api.github.com/users/czxtm/followers",
"following_url": "https://api.github.com/users/czxtm/following{/other_user}",
"gists_url": "https://api.github.com/users/czxtm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/czxtm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/czxtm/subscriptions",
"organizations_url": "https://api.github.com/users/czxtm/orgs",
"repos_url": "https://api.github.com/users/czxtm/repos",
"events_url": "https://api.github.com/users/czxtm/events{/privacy}",
"received_events_url": "https://api.github.com/users/czxtm/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"installation": {
"id": 143976268,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTQzOTc2MjY4"
}
}