An unofficial terminal client for Tangled, optimized for humans and agents. tgcli.wisp.place

Print Tangled web pull URLs next to record IDs #71

Closed aly.codes
targeting master from cameron.stream/tg:cli/print-web-pull-url
Closed opened by and assigned to aly.codes
targeting master from cameron.stream/tg:cli/print-web-pull-url

Summary #

  • After tg pr create / tg pr view, look up Tangled's sequential /pulls/N URL and print it next to the ATProto record URI.
  • Confirm the page's data-aturi matches the record before reporting the URL. Leave it off if lookup fails.

The web UI numbers pulls independently of ATProto rkeys. /pulls/<rkey> 404s even when the record exists, which is how 3mtkalwube722 was reported as a dead link for pull #24.

Bobbin's list/get APIs do not return that number, so this is a best-effort scrape of the repo pulls page.

Test plan #

"There are only two hard things in Computer Science: cache invalidation and naming things." - Phil Karlton

Written by Cameron ◯ Letta Code

Commits 0