[{"data":1,"prerenderedAt":414},["ShallowReactive",2],{"navigation_docs":3,"-concepts-capabilities":195,"-concepts-capabilities-surround":409},[4,23,65,87,133,155,173],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":19,"path":20,"stem":21},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"Guides","i-lucide-compass","\u002Fguides","2.guides",[29,33,37,41,45,49,53,57,61],{"title":30,"path":31,"stem":32},"Authenticate","\u002Fguides\u002Fauthentication","2.guides\u002F1.authentication",{"title":34,"path":35,"stem":36},"Work with several forges","\u002Fguides\u002Fmultiple-forges","2.guides\u002F2.multiple-forges",{"title":38,"path":39,"stem":40},"Configure from the environment","\u002Fguides\u002Fenvironment","2.guides\u002F3.environment",{"title":42,"path":43,"stem":44},"Receive webhooks","\u002Fguides\u002Fwebhooks","2.guides\u002F4.webhooks",{"title":46,"path":47,"stem":48},"Check what a forge supports","\u002Fguides\u002Fcapabilities","2.guides\u002F5.capabilities",{"title":50,"path":51,"stem":52},"Handle errors and rate limits","\u002Fguides\u002Ferrors","2.guides\u002F6.errors",{"title":54,"path":55,"stem":56},"Page through results","\u002Fguides\u002Fpagination","2.guides\u002F7.pagination",{"title":58,"path":59,"stem":60},"Browser bundles","\u002Fguides\u002Fbundling","2.guides\u002F8.bundling",{"title":62,"path":63,"stem":64},"Test your code","\u002Fguides\u002Ftesting","2.guides\u002F9.testing",{"title":66,"icon":67,"path":68,"stem":69,"children":70,"page":22},"Concepts","i-lucide-lightbulb","\u002Fconcepts","3.concepts",[71,75,79,83],{"title":72,"path":73,"stem":74},"Data model","\u002Fconcepts\u002Fdata-model","3.concepts\u002F1.data-model",{"title":76,"path":77,"stem":78},"Capabilities","\u002Fconcepts\u002Fcapabilities","3.concepts\u002F2.capabilities",{"title":80,"path":81,"stem":82},"Providers and factories","\u002Fconcepts\u002Fproviders","3.concepts\u002F3.providers",{"title":84,"path":85,"stem":86},"Events","\u002Fconcepts\u002Fevents","3.concepts\u002F4.events",{"title":88,"icon":89,"path":90,"stem":91,"children":92,"page":22},"Providers","i-lucide-server","\u002Fproviders","4.providers",[93,97,101,105,109,113,117,121,125,129],{"title":94,"path":95,"stem":96},"Azure DevOps","\u002Fproviders\u002Fazure-devops","4.providers\u002Fazure-devops",{"title":98,"path":99,"stem":100},"Bitbucket Cloud","\u002Fproviders\u002Fbitbucket","4.providers\u002Fbitbucket",{"title":102,"path":103,"stem":104},"Cursor Origin","\u002Fproviders\u002Fcursor-origin","4.providers\u002Fcursor-origin",{"title":106,"path":107,"stem":108},"Forgejo and Codeberg","\u002Fproviders\u002Fforgejo","4.providers\u002Fforgejo",{"title":110,"path":111,"stem":112},"Gitea","\u002Fproviders\u002Fgitea","4.providers\u002Fgitea",{"title":114,"path":115,"stem":116},"Gitee","\u002Fproviders\u002Fgitee","4.providers\u002Fgitee",{"title":118,"path":119,"stem":120},"GitHub","\u002Fproviders\u002Fgithub","4.providers\u002Fgithub",{"title":122,"path":123,"stem":124},"GitLab","\u002Fproviders\u002Fgitlab","4.providers\u002Fgitlab",{"title":126,"path":127,"stem":128},"pushin.eu","\u002Fproviders\u002Fpushin","4.providers\u002Fpushin",{"title":130,"path":131,"stem":132},"Tangled","\u002Fproviders\u002Ftangled","4.providers\u002Ftangled",{"title":134,"icon":135,"path":136,"stem":137,"children":138,"page":22},"Reference","i-lucide-book-marked","\u002Freference","5.reference",[139,143,147,151],{"title":140,"path":141,"stem":142},"Provider API","\u002Freference\u002Fprovider-api","5.reference\u002F1.provider-api",{"title":144,"path":145,"stem":146},"Capability matrix","\u002Freference\u002Fcapability-matrix","5.reference\u002F2.capability-matrix",{"title":148,"path":149,"stem":150},"Errors","\u002Freference\u002Ferrors","5.reference\u002F3.errors",{"title":152,"path":153,"stem":154},"JSON Schemas","\u002Freference\u002Fjson-schemas","5.reference\u002F5.json-schemas",{"title":156,"icon":157,"path":158,"stem":159,"children":160,"page":22},"Examples","i-lucide-boxes","\u002Fexamples","6.examples",[161,165,169],{"title":162,"path":163,"stem":164},"Inbox CLI","\u002Fexamples\u002Finbox-cli","6.examples\u002F1.inbox-cli",{"title":166,"path":167,"stem":168},"Label bot","\u002Fexamples\u002Flabel-bot","6.examples\u002F2.label-bot",{"title":170,"path":171,"stem":172},"Release digest","\u002Fexamples\u002Frelease-digest","6.examples\u002F3.release-digest",{"title":174,"icon":175,"path":176,"stem":177,"children":178,"page":22},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","7.contributing",[179,183,187,191],{"title":180,"path":181,"stem":182},"Contribution guide","\u002Fcontributing\u002Fguidelines","7.contributing\u002F1.guidelines",{"title":184,"path":185,"stem":186},"Write a provider","\u002Fcontributing\u002Fwrite-a-provider","7.contributing\u002F2.write-a-provider",{"title":188,"path":189,"stem":190},"Record fixtures","\u002Fcontributing\u002Frecord-fixtures","7.contributing\u002F3.record-fixtures",{"title":192,"path":193,"stem":194},"Contributors","\u002Fcontributing\u002Fcontributors","7.contributing\u002F4.contributors",{"id":196,"title":76,"body":197,"description":401,"extension":402,"links":403,"meta":404,"navigation":406,"path":77,"seo":407,"stem":78,"__hash__":408},"docs\u002F3.concepts\u002F2.capabilities.md",{"type":198,"value":199,"toc":391},"minimark",[200,209,214,217,280,290,294,301,305,313,317,327,331,356,364,368],[201,202,203,204,208],"p",{},"Forges don't offer the same features: Bitbucket has no releases, and Tangled has no checks. Every provider declares what it supports in ",[205,206,207],"code",{},"provider.capabilities",".",[210,211,213],"h2",{"id":212},"support-levels","Support levels",[201,215,216],{},"Each entry has one of four values:",[218,219,220,233],"table",{},[221,222,223],"thead",{},[224,225,226,230],"tr",{},[227,228,229],"th",{},"Value",[227,231,232],{},"Meaning",[234,235,236,247,257,267],"tbody",{},[224,237,238,244],{},[239,240,241],"td",{},[205,242,243],{},"true",[239,245,246],{},"Native and verified. A test exercises the operation.",[224,248,249,254],{},[239,250,251],{},[205,252,253],{},"'experimental'",[239,255,256],{},"Native, but not verified against a recording of the live forge, or built on an API that the forge marks unstable.",[224,258,259,264],{},[239,260,261],{},[205,262,263],{},"'emulated'",[239,265,266],{},"Composed from other calls, so its behaviour can differ from a native operation.",[224,268,269,274],{},[239,270,271],{},[205,272,273],{},"false",[239,275,276,277,208],{},"Not available. Calling it rejects with ",[205,278,279],{},"UnsupportedOperationError",[201,281,282,283,286,287,289],{},"For example, Forgejo has no done state for notifications. Its ",[205,284,285],{},"notifications.markDone"," is ",[205,288,263],{},": it marks the notification read and unsubscribes from the thread.",[210,291,293],{"id":292},"per-thread-kind","Per thread kind",[201,295,296,297,300],{},"Support can differ by thread kind. GitHub closes issues, pull requests and discussions, while Cursor Origin has pull requests only. Those entries are objects keyed by kind, and ",[205,298,299],{},"can()"," takes the kind as a second argument.",[210,302,304],{"id":303},"experimental-providers","Experimental providers",[201,306,307,286,310,312],{},[205,308,309],{},"capabilities.experimental",[205,311,243],{}," when the provider as a whole is experimental: its tests use hand-written fixtures only, or the forge's API is unstable. Gitee, Azure DevOps, Cursor Origin and pushin.eu are experimental providers.",[210,314,316],{"id":315},"version-dependent-support","Version-dependent support",[201,318,319,320,323,324,208],{},"Some capabilities depend on the instance version. GitHub Enterprise Server supports marking notifications done from version 3.13. The provider computes capabilities without a network request, so pass ",[205,321,322],{},"instanceVersion"," if you know it, or call ",[205,325,326],{},"refreshCapabilities()",[210,328,330],{"id":329},"how-ci-enforces-it","How CI enforces it",[201,332,333,334,336,337,340,341,344,345,348,349,352,353,355],{},"A provider can declare ",[205,335,243],{}," only for an operation that a test calls. During ",[205,338,339],{},"vitest run",", ",[205,342,343],{},"test\u002Fsetup\u002Fverbs.ts"," records each verb a test calls. ",[205,346,347],{},"pnpm test:capabilities"," then runs ",[205,350,351],{},"scripts\u002Fcheck-capabilities.ts",", which fails for any capability that a provider declares ",[205,354,243],{}," and no test called.",[201,357,358,359,363],{},"Provider pages and the ",[360,361,362],"a",{"href":145},"capability matrix"," are generated from the same declarations, and a unit test fails when they're out of date.",[210,365,367],{"id":366},"using-capabilities","Using capabilities",[369,370,371,381,384],"ul",{},[372,373,374,375,380],"li",{},"Call ",[360,376,377],{"href":47},[205,378,379],{},"provider.can()"," before an operation that a forge might lack.",[372,382,383],{},"Use the matrix to decide which forges to support.",[372,385,386,387,390],{},"Read the ",[205,388,389],{},"limits"," entry for the text limits of a forge, such as the maximum comment length.",{"title":392,"searchDepth":393,"depth":393,"links":394},"",2,[395,396,397,398,399,400],{"id":212,"depth":393,"text":213},{"id":292,"depth":393,"text":293},{"id":303,"depth":393,"text":304},{"id":315,"depth":393,"text":316},{"id":329,"depth":393,"text":330},{"id":366,"depth":393,"text":367},"How a provider declares which operations it supports, and how CI checks those claims.","md",null,{"icon":405},"i-lucide-list-checks",true,{"title":76,"description":401},"yiGGldkViv5m5HpscXtFU5Xghw8jyHTgusf_iN1FYfg",[410,412],{"title":72,"path":73,"stem":74,"description":411,"children":-1},"How refs, threads, notifications and events describe the same things on every forge.",{"title":80,"path":81,"stem":82,"description":413,"children":-1},"How provider functions, factories and Lite variants fit together.",1791294003829]