[{"data":1,"prerenderedAt":734},["ShallowReactive",2],{"navigation_docs":3,"-platforms-tangled":108,"-platforms-tangled-surround":729},[4,56],{"title":5,"path":6,"stem":7,"children":8,"icon":55},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47,51],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Authentication","\u002Fguide\u002Fauth","1.guide\u002F02.auth",{"title":16,"path":17,"stem":18},"Repositories","\u002Fguide\u002Frepositories","1.guide\u002F03.repositories",{"title":20,"path":21,"stem":22},"Issues","\u002Fguide\u002Fissues","1.guide\u002F04.issues",{"title":24,"path":25,"stem":26},"Pull requests","\u002Fguide\u002Fpull-requests","1.guide\u002F05.pull-requests",{"title":28,"path":29,"stem":30},"Review threads","\u002Fguide\u002Fthreads","1.guide\u002F06.threads",{"title":32,"path":33,"stem":34},"Commits, CI and releases","\u002Fguide\u002Fcommits","1.guide\u002F07.commits",{"title":36,"path":37,"stem":38},"Contribution templates","\u002Fguide\u002Ftemplates","1.guide\u002F08.templates",{"title":40,"path":41,"stem":42},"Code search","\u002Fguide\u002Fcode-search","1.guide\u002F09.code-search",{"title":44,"path":45,"stem":46},"Agents","\u002Fguide\u002Fagents","1.guide\u002F10.agents",{"title":48,"path":49,"stem":50},"Custom providers","\u002Fguide\u002Fcustom","1.guide\u002F11.custom",{"title":52,"path":53,"stem":54},"Explorer","\u002Fguide\u002Fexplorer","1.guide\u002F12.explorer","i-lucide-book-open",{"title":57,"path":58,"stem":59,"children":60,"icon":107},"Platforms","\u002Fplatforms","2.platforms\u002F0.index",[61,63,67,71,75,79,83,87,91,95,99,103],{"title":62,"path":58,"stem":59},"Overview",{"title":64,"path":65,"stem":66},"GitHub","\u002Fplatforms\u002Fgithub","2.platforms\u002F01.github",{"title":68,"path":69,"stem":70},"GitLab","\u002Fplatforms\u002Fgitlab","2.platforms\u002F02.gitlab",{"title":72,"path":73,"stem":74},"Gitea","\u002Fplatforms\u002Fgitea","2.platforms\u002F03.gitea",{"title":76,"path":77,"stem":78},"Bitbucket","\u002Fplatforms\u002Fbitbucket","2.platforms\u002F04.bitbucket",{"title":80,"path":81,"stem":82},"Gitee","\u002Fplatforms\u002Fgitee","2.platforms\u002F05.gitee",{"title":84,"path":85,"stem":86},"Azure DevOps","\u002Fplatforms\u002Fazure-devops","2.platforms\u002F06.azure-devops",{"title":88,"path":89,"stem":90},"GitCafe","\u002Fplatforms\u002Fgitcafe","2.platforms\u002F07.gitcafe",{"title":92,"path":93,"stem":94},"Pushin.eu","\u002Fplatforms\u002Fpushin","2.platforms\u002F08.pushin",{"title":96,"path":97,"stem":98},"Tangled","\u002Fplatforms\u002Ftangled","2.platforms\u002F09.tangled",{"title":100,"path":101,"stem":102},"GitBucket","\u002Fplatforms\u002Fgitbucket","2.platforms\u002F10.gitbucket",{"title":104,"path":105,"stem":106},"Artifacts","\u002Fplatforms\u002Fartifacts","2.platforms\u002F11.artifacts","i-lucide-library",{"id":109,"title":96,"body":110,"description":721,"extension":722,"links":723,"meta":724,"navigation":160,"path":97,"seo":726,"stem":98,"__hash__":728},"docs\u002F2.platforms\u002F09.tangled.md",{"type":111,"value":112,"toc":708},"minimark",[113,117,122,320,328,343,348,351,357,377,384,391,406,410,413,470,481,485,568,572,576,582,588,592,601,621,628,632,635,641,652,657,666,678,682,695,704],[114,115],"platform-facts",{"platform":116},"tangled",[118,119,121],"h2",{"id":120},"read-a-tangled-repository","Read a Tangled repository",[123,124,129],"pre",{"className":125,"code":126,"language":127,"meta":128,"style":128},"language-ts shiki shiki-themes forges forges forges","import { createProvider, resolveToken } from \"@agntn\u002Fforges\";\n\nconst tangled = await createProvider(\"tangled\", resolveToken(\"tangled\") ? {} : { token: \"\" });\n\nconst repo = { owner: \"tangled.org\", repo: \"core\" };\nconst core = await tangled.repos.get(repo);\nconst issues = await tangled.issues.list(repo, { state: \"all\" });\nconst editorconfig = await tangled.repos.readContents(repo, { path: \".editorconfig\" });\n","ts","",[130,131,132,155,162,218,223,248,269,295],"code",{"__ignoreMap":128},[133,134,137,141,145,148,152],"span",{"class":135,"line":136},"line",1,[133,138,140],{"class":139},"skH_V","import",[133,142,144],{"class":143},"s38Sx"," { createProvider, resolveToken } ",[133,146,147],{"class":139},"from",[133,149,151],{"class":150},"shU9J"," \"@agntn\u002Fforges\"",[133,153,154],{"class":143},";\n",[133,156,158],{"class":135,"line":157},2,[133,159,161],{"emptyLinePlaceholder":160},true,"\n",[133,163,165,168,171,174,177,181,184,187,190,193,195,197,200,203,206,209,212,215],{"class":135,"line":164},3,[133,166,167],{"class":139},"const",[133,169,170],{"class":143}," tangled ",[133,172,173],{"class":139},"=",[133,175,176],{"class":139}," await",[133,178,180],{"class":179},"sK71F"," createProvider",[133,182,183],{"class":143},"(",[133,185,186],{"class":150},"\"tangled\"",[133,188,189],{"class":143},", ",[133,191,192],{"class":179},"resolveToken",[133,194,183],{"class":143},[133,196,186],{"class":150},[133,198,199],{"class":143},") ",[133,201,202],{"class":139},"?",[133,204,205],{"class":143}," {} ",[133,207,208],{"class":139},":",[133,210,211],{"class":143}," { token: ",[133,213,214],{"class":150},"\"\"",[133,216,217],{"class":143}," });\n",[133,219,221],{"class":135,"line":220},4,[133,222,161],{"emptyLinePlaceholder":160},[133,224,226,228,231,233,236,239,242,245],{"class":135,"line":225},5,[133,227,167],{"class":139},[133,229,230],{"class":143}," repo ",[133,232,173],{"class":139},[133,234,235],{"class":143}," { owner: ",[133,237,238],{"class":150},"\"tangled.org\"",[133,240,241],{"class":143},", repo: ",[133,243,244],{"class":150},"\"core\"",[133,246,247],{"class":143}," };\n",[133,249,251,253,256,258,260,263,266],{"class":135,"line":250},6,[133,252,167],{"class":139},[133,254,255],{"class":143}," core ",[133,257,173],{"class":139},[133,259,176],{"class":139},[133,261,262],{"class":143}," tangled.repos.",[133,264,265],{"class":179},"get",[133,267,268],{"class":143},"(repo);\n",[133,270,272,274,277,279,281,284,287,290,293],{"class":135,"line":271},7,[133,273,167],{"class":139},[133,275,276],{"class":143}," issues ",[133,278,173],{"class":139},[133,280,176],{"class":139},[133,282,283],{"class":143}," tangled.issues.",[133,285,286],{"class":179},"list",[133,288,289],{"class":143},"(repo, { state: ",[133,291,292],{"class":150},"\"all\"",[133,294,217],{"class":143},[133,296,298,300,303,305,307,309,312,315,318],{"class":135,"line":297},8,[133,299,167],{"class":139},[133,301,302],{"class":143}," editorconfig ",[133,304,173],{"class":139},[133,306,176],{"class":139},[133,308,262],{"class":143},[133,310,311],{"class":179},"readContents",[133,313,314],{"class":143},"(repo, { path: ",[133,316,317],{"class":150},"\".editorconfig\"",[133,319,217],{"class":143},[321,322,323,324,327],"p",{},"Tangled runs on atproto, the AT Protocol behind Bluesky. Its accounts have handles and underlying DIDs. Which one goes in ",[130,325,326],{},"owner","? Either. forges resolves handles to DIDs.",[321,329,330,331,334,335,338,339,342],{},"The default ",[130,332,333],{},"baseURL"," is the appview root, ",[130,336,337],{},"https:\u002F\u002Ftangled.org",". The MCP server and Pi\u002FOMP extensions read ",[130,340,341],{},"FORGES_TANGLED_BASE_URL",".",[344,345,347],"h3",{"id":346},"where-does-the-password-come-from","Where does the password come from?",[321,349,350],{},"Tangled uses an atproto app password, not a token. The password needs its account handle or DID.",[321,352,353,356],{},[130,354,355],{},"@agntn\u002Fcredentials\u002Ftangled"," checks these sources in order:",[358,359,360,368],"ol",{},[361,362,363,364,367],"li",{},"Explicit ",[130,365,366],{},"{ username, token }",". The username is the handle or DID. The token is the app password.",[361,369,370,373,374,342],{},[130,371,372],{},"TANGLED_HANDLE"," and ",[130,375,376],{},"TANGLED_PASSWORD",[321,378,379,380,383],{},"Half a pair finds nothing. There's no CLI login to read. ",[130,381,382],{},"TANGLED_PDS_URL"," can specify the PDS. Otherwise, forges finds it from the handle.",[321,385,386,387,390],{},"forges signs in at the account's PDS using ",[130,388,389],{},"com.atproto.server.createSession",". It then sends the session as a Bearer token.",[321,392,393,394,397,398,401,402,405],{},"A password without ",[130,395,396],{},"username","? forges answers 400 before any request. Nobody can sign in as nobody. Pass ",[130,399,400],{},"{ token: \"\" }"," for anonymous public reads. Writes and ",[130,403,404],{},"users.authenticated"," need the app password.",[118,407,409],{"id":408},"what-it-reads","What it reads",[321,411,412],{},"Every public resource below works without a login.",[414,415,416,429],"table",{},[417,418,419],"thead",{},[420,421,422,426],"tr",{},[423,424,425],"th",{},"Resource",[423,427,428],{},"Where it goes",[430,431,432,444,452,462],"tbody",{},[420,433,434,438],{},[435,436,437],"td",{},"Repositories, issues, pull requests, comments and events",[435,439,440,441],{},"Tangled's index at ",[130,442,443],{},"api.tangled.org",[420,445,446,449],{},[435,447,448],{},"Handles and users",[435,450,451],{},"The handle resolver, the PLC directory and the account's PDS",[420,453,454,457],{},[435,455,456],{},"Files, directories, tags, commits and comparisons",[435,458,459,460],{},"The git mirror, also on ",[130,461,443],{},[420,463,464,467],{},[435,465,466],{},"Pull request files",[435,468,469],{},"The mirror, from the latest round's patch",[321,471,472,473,476,477,480],{},"Tangled calls its git servers knots. ",[130,474,475],{},"tangled.org\u002Fcore"," lives on ",[130,478,479],{},"knot1.tangled.sh",", and forges never tugs on it directly. Every git read goes through the mirror, so no knot gets untied.",[118,482,484],{"id":483},"what-comes-back","What comes back",[486,487,488,507,510,513,524,534,557,560],"ul",{},[361,489,490,491,494,495,373,498,501,502,504,505,342],{},"A repository's ",[130,492,493],{},"id"," is its own DID. ",[130,496,497],{},"fullName",[130,499,500],{},"owner.login"," keep the handle. For example, ",[130,503,497],{}," can be ",[130,506,475],{},[361,508,509],{},"Issues and pull requests are both tickets. They share one number sequence. Reading either as the other returns 404.",[361,511,512],{},"Review comments are plain pull request comments. Tangled doesn't have review threads.",[361,514,515,516,519,520,523],{},"A merged pull request has ",[130,517,518],{},"mergedAt"," and the head SHA. ",[130,521,522],{},"mergeCommitSha"," stays empty because the model doesn't carry it.",[361,525,526,527,530,531,342],{},"Directory reads return one level. The mirror doesn't list deeper entries. ",[130,528,529],{},"entriesComplete"," is ",[130,532,533],{},"true",[361,535,536,537,373,540,543,544,547,548,551,552,530,555,342],{},"Comparisons return head side commits, oldest first. ",[130,538,539],{},"behindBy",[130,541,542],{},"status"," are ",[130,545,546],{},"null",". ",[130,549,550],{},"mergeBaseSha"," is set. Files arrive on the first page. ",[130,553,554],{},"filesComplete",[130,556,546],{},[361,558,559],{},"An unknown owner handle fails resolution with 400. A missing repository returns 404.",[361,561,562,563,373,565,342],{},"Repository, issue, pull request, file, directory, commit and comparison reads were checked live on ",[130,564,475],{},[130,566,567],{},"tangled.org\u002Fsite",[118,569,571],{"id":570},"gotchas","Gotchas",[344,573,575],{"id":574},"why-does-a-file-read-cost-four-requests","Why does a file read cost four requests?",[321,577,578,581],{},[130,579,580],{},"repos.readContents"," resolves the ref to a commit first. It then checks the parent directory for type and size. The sequence is resolve, tree, entry and blob.",[321,583,584,585,342],{},"A file over the read limit returns 413 before fetching bytes. A submodule returns 422 with an explanation. A missing path returns 404 with ",[130,586,587],{},"No file or directory at \u003Cpath>",[344,589,591],{"id":590},"why-cant-i-compare-every-range","Why can't I compare every range?",[321,593,594,595,598,599,342],{},"The mirror can refuse a range as too large. forges returns 413 and suggests closer refs. This happened live for ",[130,596,597],{},"v1.20.0...v1.20.1"," on ",[130,600,475],{},[321,602,603,606,607,373,610,613,614,373,617,620],{},[130,604,605],{},"commits.list"," supports ",[130,608,609],{},"ref",[130,611,612],{},"path"," filters. It rejects ",[130,615,616],{},"since",[130,618,619],{},"until"," with 501 before any request. The mirror would silently drop those filters. Returning the whole history instead would be misleading.",[321,622,623,624,627],{},"The explorer at ",[130,625,626],{},"forges.agntn.dev"," doesn't run Tangled.",[118,629,631],{"id":630},"what-isnt-there","What isn't there",[321,633,634],{},"These operations return 501.",[321,636,637],{},[638,639,640],"strong",{},"Tangled has no:",[486,642,643,646,649],{},[361,644,645],{},"Releases, CI runs or checks.",[361,647,648],{},"Review verdicts or review threads.",[361,650,651],{},"Contribution templates, code search or sub issues.",[321,653,654],{},[638,655,656],{},"Tangled has it, forges doesn't use it yet:",[486,658,659],{},[361,660,661,662,665],{},"Reactions, issue and pull request search, and ",[130,663,664],{},"commits.readPatch",". The adapter has them, forges doesn't wire them up yet.",[321,667,668,669,672,673,373,675,677],{},"Recursive ",[130,670,671],{},"repos.listTree"," also returns 501. The mirror only lists one directory level. The ",[130,674,616],{},[130,676,619],{}," commit filters return 501 too.",[118,679,681],{"id":680},"where-it-lives","Where it lives",[321,683,684,687,688,691,692,342],{},[130,685,686],{},"TangledProvider"," lives in ",[130,689,690],{},"src\u002Fproviders\u002Ftangled.ts",". Import it from ",[130,693,694],{},"@agntn\u002Fforges\u002Ftangled",[321,696,697,698,701,702,342],{},"It builds on the upstream ",[130,699,700],{},"forges\u002Ftangled"," adapter and ",[130,703,355],{},[705,706,707],"style",{},"html pre.shiki code .skH_V, html code.shiki .skH_V{--shiki-light:var(--shiki-token-keyword);--shiki-default:var(--shiki-token-keyword);--shiki-dark:var(--shiki-token-keyword)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":128,"searchDepth":157,"depth":157,"links":709},[710,713,714,715,719,720],{"id":120,"depth":157,"text":121,"children":711},[712],{"id":346,"depth":164,"text":347},{"id":408,"depth":157,"text":409},{"id":483,"depth":157,"text":484},{"id":570,"depth":157,"text":571,"children":716},[717,718],{"id":574,"depth":164,"text":575},{"id":590,"depth":164,"text":591},{"id":630,"depth":157,"text":631},{"id":680,"depth":157,"text":681},"Read public Tangled repositories, issues, pull requests and files with forges. No login needed.","md",null,{"icon":725},"i-simple-icons-tangled",{"title":727,"description":721},"Read Tangled issues, pull requests and files with forges","oocS6Wj3cjSRoOJuI_FpUvJTfVgNGU3UydBHLhxmkXE",[730,732],{"title":92,"path":93,"stem":94,"description":731,"children":-1},"Read public Pushin.eu repositories, issues, pull requests and review threads with forges, without a token.",{"title":100,"path":101,"stem":102,"description":733,"children":-1},"The GitHub provider pointed at a GitBucket \u002Fapi\u002Fv3. What GitBucket does not serve fails with a sentence, not a 404.",1796145747684]