[{"data":1,"prerenderedAt":1678},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"project-tab-workflows":116,"project-readme-content":136},{"value":4,"alert":5},"18%",false,[],[8,11,14,17,20],{"label":9,"to":10},"0041 The visitor view becomes its own app, and the portal reads only as a developer platform","\u002Fdecisions\u002F0041-personal-site-splits-from-developer-portal",{"label":12,"to":13},"0040 Visitors land on the front page and toggle to the developer view","\u002Fdecisions\u002F0040-developer-portal-visitor-structure",{"label":15,"to":16},"0039 The developer portal is redesigned for visitors, from a twelve-site benchmark","\u002Fdecisions\u002F0039-developer-portal-benchmark",{"label":18,"to":19},"0038 Marina Roustan's discovery","\u002Fdecisions\u002F0038-marina-roustan-discovery",{"label":21,"to":22},"0013 New linters: the robustness gap is tsconfig and enforcement, not plugins","\u002Fdecisions\u002F0013-linter-coverage",[24,29,60,83],{"labelKey":25,"icon":26,"to":27,"badge":28},"app.menu.allProjects","i-lucide-layers","\u002Fprojects","11",{"labelKey":30,"icon":31,"to":32,"badge":33,"children":34},"app.menu.kinds.apps","i-lucide-app-window","\u002Fprojects?kind=apps","5",[35,40,45,50,55],{"label":36,"icon":31,"to":37,"badge":38,"coverage":39},"developer-portal","\u002Fprojects\u002Fdeveloper-portal","94%",94.37,{"label":41,"icon":31,"to":42,"badge":43,"coverage":44},"huella-legal","\u002Fprojects\u002Fhuella-legal","97%",97.48,{"label":46,"icon":31,"to":47,"badge":48,"coverage":49},"marina-roustan","\u002Fprojects\u002Fmarina-roustan","100%",100,{"label":51,"icon":31,"to":52,"badge":53,"coverage":54},"portfolio","\u002Fprojects\u002Fportfolio","91%",91.31,{"label":56,"icon":31,"to":57,"badge":58,"coverage":59},"wp-editor","\u002Fprojects\u002Fwp-editor","50%",49.89,{"labelKey":61,"icon":62,"to":63,"badge":64,"children":65},"app.menu.kinds.packages","i-lucide-package","\u002Fprojects?kind=packages","4",[66,71,75,80],{"label":67,"icon":62,"to":68,"badge":69,"coverage":70},"configs","\u002Fprojects\u002Fconfigs","76%",75.7,{"label":72,"icon":62,"to":73,"badge":48,"coverage":74},"content","\u002Fprojects\u002Fcontent",99.58,{"label":76,"icon":62,"to":77,"badge":78,"coverage":79},"i18n","\u002Fprojects\u002Fi18n","99%",99.08,{"label":81,"icon":62,"to":82,"badge":48,"coverage":49},"observability","\u002Fprojects\u002Fobservability",{"labelKey":84,"icon":85,"to":86,"badge":87,"children":88},"app.menu.kinds.infrastructure","i-lucide-server","\u002Fprojects?kind=infrastructure","2",[89,94],{"label":90,"icon":85,"to":91,"badge":92,"coverage":93},"scripts","\u002Fprojects\u002Fscripts","79%",78.6,{"label":95,"icon":85,"to":96,"badge":97,"coverage":98},"translations","\u002Fprojects\u002Ftranslations","93%",93.33,[100,103,106,109,112],{"label":101,"to":102},"Huella Legal","\u002Fworkflows\u002Fhuella-legal",{"label":104,"to":105},"Marina Roustan","\u002Fworkflows\u002Fmarina-roustan",{"label":107,"to":108},"Developer portal front door","\u002Fworkflows\u002Fdeveloper-portal-front-door",{"label":110,"to":111},"Huella Legal editorial","\u002Fworkflows\u002Fhuella-legal-editorial",{"labelKey":113,"icon":114,"to":115},"app.menu.newProject","i-lucide-plus","\u002Fworkflows\u002Fnew",{"developer-portal":117,"huella-legal":123,"marina-roustan":132},[118],{"id":119,"title":107,"to":108,"percent":120,"done":121,"left":122},"developer-portal-front-door",94,15,1,[124,128],{"id":125,"title":110,"to":111,"percent":126,"done":126,"left":127},"huella-legal-editorial",0,11,{"id":41,"title":101,"to":102,"percent":129,"done":130,"left":131},91,43,4,[133],{"id":46,"title":104,"to":105,"percent":134,"done":127,"left":135},27,30,{"id":137,"title":138,"body":139,"description":149,"extension":1671,"kind":1672,"meta":1673,"navigation":847,"path":1674,"seo":1675,"stem":1676,"url":1672,"verdict":1672,"__hash__":1677},"docs\u002Fpackages\u002Fcontent\u002FREADME.md","📦 @joinery\u002Fcontent",{"type":140,"value":141,"toc":1660},"minimark",[142,146,150,246,249,254,264,271,275,488,547,602,606,624,700,707,767,770,774,1021,1048,1051,1071,1079,1083,1217,1234,1238,1373,1432,1445,1449,1467,1586,1590,1656],[143,144,138],"h1",{"id":145},"joinerycontent",[147,148,149],"p",{},"A vendor-neutral client for CMS entries and taxonomies: a framework-agnostic core plus an optional\nNuxt module that gives server code a cached reader. WordPress is the only vendor today.",[151,152,153,169],"table",{},[154,155,156],"thead",{},[157,158,159,163,166],"tr",{},[160,161,162],"th",{},"Import",[160,164,165],{},"Contains",[160,167,168],{},"Depends on",[170,171,172,196,224],"tbody",{},[157,173,174,181,184],{},[175,176,177],"td",{},[178,179,180],"code",{},"@joinery\u002Fcontent",[175,182,183],{},"Domain, ports, adapters, vendor registry, cache key",[175,185,186,189,190,189,193],{},[178,187,188],{},"ofetch",", ",[178,191,192],{},"ohash",[178,194,195],{},"entities",[157,197,198,203,213],{},[175,199,200],{},[178,201,202],{},"@joinery\u002Fcontent\u002Fnuxt",[175,204,205,206],{},"The Nuxt module — see ",[207,208,210],"a",{"href":209},"\u002Fwiki\u002Fpackages\u002Fcontent\u002Fsrc\u002Fnuxt\u002Freadme",[178,211,212],{},"src\u002Fnuxt\u002FREADME.md",[175,214,215,189,218,189,221],{},[178,216,217],{},"@nuxt\u002Fkit",[178,219,220],{},"h3",[178,222,223],{},"nitropack",[157,225,226,231,238],{},[175,227,228],{},[178,229,230],{},"@joinery\u002Fcontent\u002Ftesting",[175,232,233,234],{},"Seeded fakes and MSW WordPress handlers — see ",[207,235,237],{"href":236},"#fake-vendors","🧪 Fake vendors",[175,239,240,189,243],{},[178,241,242],{},"msw",[178,244,245],{},"@faker-js\u002Ffaker",[147,247,248],{},"The second and third entries' dependencies are optional peers, so a plain consumer of the core\ninstalls none of them.",[250,251,253],"h2",{"id":252},"structure","Structure",[255,256,261],"pre",{"className":257,"code":259,"language":260},[258],"language-text","src\u002Fcore\u002Fdomain\u002F      Entry, Term, Page, errors, vendor config — imports nothing\nsrc\u002Fcore\u002Fports\u002F       HttpClient and ContentProvider\nsrc\u002Fcore\u002Fadapters\u002F    OfetchHttpClient, and one folder per vendor under providers\u002F\nsrc\u002Fcore\u002Fregistry.ts  vendor name → provider, and the config type\nsrc\u002Fcore\u002FcontentKey.ts  the cache key\nsrc\u002Fnuxt\u002F             the Nuxt module\nsrc\u002Ftesting\u002F          fakes for consumers' specs and e2e\n","text",[178,262,259],{"__ignoreMap":263},"",[147,265,266,267,270],{},"Nothing under ",[178,268,269],{},"core\u002F"," may import Nuxt or Nitro; lint enforces it.",[250,272,274],{"id":273},"the-domain","The domain",[255,276,280],{"className":277,"code":278,"language":279,"meta":263,"style":263},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","interface Entry  { id, slug, title, excerpt?, body, wordCount?, publishedAt?, updatedAt?, image?, terms, authors, seo?, fields? }\ninterface Term   { id, resource, slug, name, description?, seo? }\ninterface Author { id, slug, name, bio?, avatar? }\ninterface Page\u003CT> { items, page, perPage, total, totalPages }\n","ts",[178,281,282,370,410,445],{"__ignoreMap":263},[283,284,286,290,294,298,302,305,308,310,313,315,318,321,324,326,329,331,334,336,339,341,344,346,349,351,354,356,359,361,364,367],"span",{"class":285,"line":122},"line",[283,287,289],{"class":288},"spNyl","interface",[283,291,293],{"class":292},"sBMFI"," Entry",[283,295,297],{"class":296},"sMK4o","  {",[283,299,301],{"class":300},"swJcz"," id",[283,303,304],{"class":296},",",[283,306,307],{"class":300}," slug",[283,309,304],{"class":296},[283,311,312],{"class":300}," title",[283,314,304],{"class":296},[283,316,317],{"class":300}," excerpt",[283,319,320],{"class":296},"?,",[283,322,323],{"class":300}," body",[283,325,304],{"class":296},[283,327,328],{"class":300}," wordCount",[283,330,320],{"class":296},[283,332,333],{"class":300}," publishedAt",[283,335,320],{"class":296},[283,337,338],{"class":300}," updatedAt",[283,340,320],{"class":296},[283,342,343],{"class":300}," image",[283,345,320],{"class":296},[283,347,348],{"class":300}," terms",[283,350,304],{"class":296},[283,352,353],{"class":300}," authors",[283,355,304],{"class":296},[283,357,358],{"class":300}," seo",[283,360,320],{"class":296},[283,362,363],{"class":300}," fields",[283,365,366],{"class":296},"?",[283,368,369],{"class":296}," }\n",[283,371,373,375,378,381,383,385,388,390,392,394,397,399,402,404,406,408],{"class":285,"line":372},2,[283,374,289],{"class":288},[283,376,377],{"class":292}," Term",[283,379,380],{"class":296},"   {",[283,382,301],{"class":300},[283,384,304],{"class":296},[283,386,387],{"class":300}," resource",[283,389,304],{"class":296},[283,391,307],{"class":300},[283,393,304],{"class":296},[283,395,396],{"class":300}," name",[283,398,304],{"class":296},[283,400,401],{"class":300}," description",[283,403,320],{"class":296},[283,405,358],{"class":300},[283,407,366],{"class":296},[283,409,369],{"class":296},[283,411,413,415,418,421,423,425,427,429,431,433,436,438,441,443],{"class":285,"line":412},3,[283,414,289],{"class":288},[283,416,417],{"class":292}," Author",[283,419,420],{"class":296}," {",[283,422,301],{"class":300},[283,424,304],{"class":296},[283,426,307],{"class":300},[283,428,304],{"class":296},[283,430,396],{"class":300},[283,432,304],{"class":296},[283,434,435],{"class":300}," bio",[283,437,320],{"class":296},[283,439,440],{"class":300}," avatar",[283,442,366],{"class":296},[283,444,369],{"class":296},[283,446,447,449,452,455,458,461,463,466,468,471,473,476,478,481,483,486],{"class":285,"line":131},[283,448,289],{"class":288},[283,450,451],{"class":292}," Page",[283,453,454],{"class":296},"\u003C",[283,456,457],{"class":292},"T",[283,459,460],{"class":296},">",[283,462,420],{"class":296},[283,464,465],{"class":300}," items",[283,467,304],{"class":296},[283,469,470],{"class":300}," page",[283,472,304],{"class":296},[283,474,475],{"class":300}," perPage",[283,477,304],{"class":296},[283,479,480],{"class":300}," total",[283,482,304],{"class":296},[283,484,485],{"class":300}," totalPages",[283,487,369],{"class":296},[151,489,490,503],{},[154,491,492],{},[157,493,494,497,500],{},[160,495,496],{},"Family",[160,498,499],{},"Resources",[160,501,502],{},"Read with",[170,504,505,526],{},[157,506,507,510,518],{},[175,508,509],{},"Entries",[175,511,512,189,515],{},[178,513,514],{},"posts",[178,516,517],{},"pages",[175,519,520,189,523],{},[178,521,522],{},"listEntries",[178,524,525],{},"getEntry",[157,527,528,531,539],{},[175,529,530],{},"Terms",[175,532,533,189,536],{},[178,534,535],{},"categories",[178,537,538],{},"tags",[175,540,541,189,544],{},[178,542,543],{},"listTerms",[178,545,546],{},"getTerm",[548,549,550,570,587,590],"ul",{},[551,552,553,556,557,560,561,564,565,569],"li",{},[178,554,555],{},"body"," and ",[178,558,559],{},"excerpt"," are HTML (",[178,562,563],{},"{ format: \"html\", value }","). ",[566,567,568],"strong",{},"Every other string is plain text",",\nalready decoded.",[551,571,572,575,576,579,580,583,584,586],{},[178,573,574],{},"seo"," comes from Yoast, ",[178,577,578],{},"avatar"," from Simple Local Avatars, ",[178,581,582],{},"fields"," from ACF — each unset when the\nplugin isn't installed. ",[178,585,582],{}," is unvalidated.",[551,588,589],{},"Ids are always strings.",[551,591,592,189,595,556,598,601],{},[178,593,594],{},"MAX_PAGE",[178,596,597],{},"MAX_PER_PAGE",[178,599,600],{},"MAX_SEARCH_LENGTH"," bound any query forwarded from a request, so the\ncache key space stays finite.",[250,603,605],{"id":604},"vendors","Vendors",[147,607,608,609,615,616,619,620,623],{},"A vendor is one entry in ",[207,610,612],{"href":611},"repo:packages\u002Fcontent\u002Fsrc\u002Fcore\u002Fregistry.ts",[178,613,614],{},"core\u002Fregistry.ts",", which drives both the runtime\nlookup and the config type. ",[178,617,618],{},"baseURL"," holds whatever picks the document; ",[178,621,622],{},"options"," holds credentials\nonly, and is required when the provider declares it, forbidden when it doesn't:",[255,625,627],{"className":277,"code":626,"language":279,"meta":263,"style":263},"{ name: \"wordpress\", baseURL }                       \u002F\u002F options not allowed\n{ name: \"contentful\", baseURL, options: { token } }  \u002F\u002F a vendor with credentials\n",[178,628,629,662],{"__ignoreMap":263},[283,630,631,634,636,639,642,646,649,651,655,658],{"class":285,"line":122},[283,632,633],{"class":296},"{",[283,635,396],{"class":292},[283,637,638],{"class":296},":",[283,640,641],{"class":296}," \"",[283,643,645],{"class":644},"sfazB","wordpress",[283,647,648],{"class":296},"\"",[283,650,304],{"class":296},[283,652,654],{"class":653},"sTEyZ"," baseURL",[283,656,657],{"class":296}," }",[283,659,661],{"class":660},"sHwdD","                       \u002F\u002F options not allowed\n",[283,663,664,666,668,670,672,675,677,679,681,683,686,688,690,693,695,697],{"class":285,"line":372},[283,665,633],{"class":296},[283,667,396],{"class":292},[283,669,638],{"class":296},[283,671,641],{"class":296},[283,673,674],{"class":644},"contentful",[283,676,648],{"class":296},[283,678,304],{"class":296},[283,680,654],{"class":653},[283,682,304],{"class":296},[283,684,685],{"class":292}," options",[283,687,638],{"class":296},[283,689,420],{"class":296},[283,691,692],{"class":653}," token",[283,694,657],{"class":296},[283,696,657],{"class":296},[283,698,699],{"class":660},"  \u002F\u002F a vendor with credentials\n",[147,701,702,703,706],{},"Adding a vendor (the ",[178,704,705],{},"content-new-vendor"," skill walks it):",[708,709,710,737,752,758],"ol",{},[551,711,712,713,716,717,720,721,724,725,556,727,729,730,736],{},"Write ",[178,714,715],{},"core\u002Fadapters\u002Fproviders\u002F\u003Cname>\u002F\u003CName>Provider.ts"," extending ",[178,718,719],{},"ContentProvider"," (or\n",[178,722,723],{},"ContentProvider\u003CYourOptions>","), overriding ",[178,726,522],{},[178,728,543],{},". Directory, file, class\nand registry key share the name. Helpers and wire types go in siblings —\n",[207,731,733],{"href":732},"repo:packages\u002Fcontent\u002Fsrc\u002Fcore\u002Fadapters\u002Fproviders\u002Fwordpress",[178,734,735],{},"wordpress\u002F"," is the example.",[551,738,739,740,742,743,746,747,751],{},"If it takes ",[178,741,622],{},", override ",[178,744,745],{},"configProblems()"," — see ",[207,748,750],{"href":749},"#validation","validation",".",[551,753,754,755,751],{},"Add one line to ",[178,756,757],{},"providers",[551,759,760,761,763,764,766],{},"Override ",[178,762,525],{}," \u002F ",[178,765,546],{}," only if the vendor has a single-document endpoint.",[147,768,769],{},"The import is lazy, so a deployment ships only the vendor it configured.",[250,771,773],{"id":772},"the-ports","The ports",[255,775,777],{"className":277,"code":776,"language":279,"meta":263,"style":263},"interface HttpClient {\n    get\u003CT>(url: string, options?: RequestOptions): Promise\u003CHttpResponse\u003CT>>\n}\n\nabstract class ContentProvider\u003CT extends object = object> {\n    abstract listEntries(resource, query?): Promise\u003CPage\u003CEntry>>\n    abstract listTerms(resource, query?): Promise\u003CPage\u003CTerm>>\n    protected configProblems(): string[]\n    getEntry(resource, slug): Promise\u003CEntry>   \u002F\u002F a one-item list unless overridden\n    getTerm(resource, slug): Promise\u003CTerm>\n}\n",[178,778,779,789,838,843,849,880,917,948,965,992,1017],{"__ignoreMap":263},[283,780,781,783,786],{"class":285,"line":122},[283,782,289],{"class":288},[283,784,785],{"class":292}," HttpClient",[283,787,788],{"class":296}," {\n",[283,790,791,794,796,798,801,805,807,810,812,814,817,820,823,826,828,831,833,835],{"class":285,"line":372},[283,792,793],{"class":300},"    get",[283,795,454],{"class":296},[283,797,457],{"class":292},[283,799,800],{"class":296},">(",[283,802,804],{"class":803},"sHdIc","url",[283,806,638],{"class":296},[283,808,809],{"class":292}," string",[283,811,304],{"class":296},[283,813,685],{"class":803},[283,815,816],{"class":296},"?:",[283,818,819],{"class":292}," RequestOptions",[283,821,822],{"class":296},"):",[283,824,825],{"class":292}," Promise",[283,827,454],{"class":296},[283,829,830],{"class":292},"HttpResponse",[283,832,454],{"class":296},[283,834,457],{"class":292},[283,836,837],{"class":296},">>\n",[283,839,840],{"class":285,"line":412},[283,841,842],{"class":296},"}\n",[283,844,845],{"class":285,"line":131},[283,846,848],{"emptyLinePlaceholder":847},true,"\n",[283,850,852,855,858,861,863,865,868,871,874,876,878],{"class":285,"line":851},5,[283,853,854],{"class":288},"abstract",[283,856,857],{"class":288}," class",[283,859,860],{"class":292}," ContentProvider",[283,862,454],{"class":296},[283,864,457],{"class":292},[283,866,867],{"class":288}," extends",[283,869,870],{"class":292}," object",[283,872,873],{"class":296}," =",[283,875,870],{"class":292},[283,877,460],{"class":296},[283,879,788],{"class":296},[283,881,883,886,889,892,895,897,900,903,905,907,910,912,915],{"class":285,"line":882},6,[283,884,885],{"class":288},"    abstract",[283,887,888],{"class":300}," listEntries",[283,890,891],{"class":296},"(",[283,893,894],{"class":803},"resource",[283,896,304],{"class":296},[283,898,899],{"class":803}," query",[283,901,902],{"class":296},"?):",[283,904,825],{"class":292},[283,906,454],{"class":296},[283,908,909],{"class":292},"Page",[283,911,454],{"class":296},[283,913,914],{"class":292},"Entry",[283,916,837],{"class":296},[283,918,920,922,925,927,929,931,933,935,937,939,941,943,946],{"class":285,"line":919},7,[283,921,885],{"class":288},[283,923,924],{"class":300}," listTerms",[283,926,891],{"class":296},[283,928,894],{"class":803},[283,930,304],{"class":296},[283,932,899],{"class":803},[283,934,902],{"class":296},[283,936,825],{"class":292},[283,938,454],{"class":296},[283,940,909],{"class":292},[283,942,454],{"class":296},[283,944,945],{"class":292},"Term",[283,947,837],{"class":296},[283,949,951,954,957,960,962],{"class":285,"line":950},8,[283,952,953],{"class":288},"    protected",[283,955,956],{"class":300}," configProblems",[283,958,959],{"class":296},"():",[283,961,809],{"class":292},[283,963,964],{"class":653},"[]\n",[283,966,968,971,973,975,977,979,981,983,985,987,989],{"class":285,"line":967},9,[283,969,970],{"class":300},"    getEntry",[283,972,891],{"class":296},[283,974,894],{"class":803},[283,976,304],{"class":296},[283,978,307],{"class":803},[283,980,822],{"class":296},[283,982,825],{"class":292},[283,984,454],{"class":296},[283,986,914],{"class":292},[283,988,460],{"class":296},[283,990,991],{"class":660},"   \u002F\u002F a one-item list unless overridden\n",[283,993,995,998,1000,1002,1004,1006,1008,1010,1012,1014],{"class":285,"line":994},10,[283,996,997],{"class":300},"    getTerm",[283,999,891],{"class":296},[283,1001,894],{"class":803},[283,1003,304],{"class":296},[283,1005,307],{"class":803},[283,1007,822],{"class":296},[283,1009,825],{"class":292},[283,1011,454],{"class":296},[283,1013,945],{"class":292},[283,1015,1016],{"class":296},">\n",[283,1018,1019],{"class":285,"line":127},[283,1020,842],{"class":296},[548,1022,1023,1026,1037],{},[551,1024,1025],{},"A provider knows its vendor's URLs but does no I\u002FO itself; the consumer injects the client.",[551,1027,1028,1030,1031,1033,1034,1036],{},[178,1029,804],{}," is relative to the client's ",[178,1032,618],{},". ",[178,1035,830],{}," exposes headers, since vendors\npaginate there.",[551,1038,1039,1040,1043,1044,1047],{},"Every failed request becomes an ",[178,1041,1042],{},"UpstreamError",", including a ",[178,1045,1046],{},"200"," that isn't JSON (a bot filter's\nHTML challenge page).",[250,1049,1050],{"id":750},"Validation",[147,1052,1053,1054,1056,1057,1059,1060,1062,1063,1066,1067,1070],{},"A provider validates its config in its constructor, so it can't exist misconfigured. ",[178,1055,618],{}," must\nbe an absolute URL; ",[178,1058,745],{}," checks the vendor's ",[178,1061,622],{},". All problems are reported at\nonce in one ",[178,1064,1065],{},"MisconfiguredVendorError"," (a ",[178,1068,1069],{},"500",").",[147,1072,1073,1075,1076,1078],{},[178,1074,745],{}," runs from the base constructor, so an override may only read ",[178,1077,622],{}," — a\nsubclass's own fields aren't initialised yet.",[250,1080,1082],{"id":1081},"framework-agnostic-use","Framework-agnostic use",[255,1084,1086],{"className":277,"code":1085,"language":279,"meta":263,"style":263},"const http = new OfetchHttpClient(ofetch.create({ baseURL }));\nconst provider = await createProvider({ name: \"wordpress\", baseURL }, http);\nconst page = await provider.listEntries(\"posts\", { perPage: 6 });\n",[178,1087,1088,1130,1172],{"__ignoreMap":263},[283,1089,1090,1093,1096,1099,1102,1106,1109,1111,1114,1116,1118,1121,1124,1127],{"class":285,"line":122},[283,1091,1092],{"class":288},"const",[283,1094,1095],{"class":653}," http ",[283,1097,1098],{"class":296},"=",[283,1100,1101],{"class":296}," new",[283,1103,1105],{"class":1104},"s2Zo4"," OfetchHttpClient",[283,1107,1108],{"class":653},"(ofetch",[283,1110,751],{"class":296},[283,1112,1113],{"class":1104},"create",[283,1115,891],{"class":653},[283,1117,633],{"class":296},[283,1119,1120],{"class":653}," baseURL ",[283,1122,1123],{"class":296},"}",[283,1125,1126],{"class":653},"))",[283,1128,1129],{"class":296},";\n",[283,1131,1132,1134,1137,1139,1143,1146,1148,1150,1152,1154,1156,1158,1160,1162,1164,1167,1170],{"class":285,"line":372},[283,1133,1092],{"class":288},[283,1135,1136],{"class":653}," provider ",[283,1138,1098],{"class":296},[283,1140,1142],{"class":1141},"s7zQu"," await",[283,1144,1145],{"class":1104}," createProvider",[283,1147,891],{"class":653},[283,1149,633],{"class":296},[283,1151,396],{"class":300},[283,1153,638],{"class":296},[283,1155,641],{"class":296},[283,1157,645],{"class":644},[283,1159,648],{"class":296},[283,1161,304],{"class":296},[283,1163,1120],{"class":653},[283,1165,1166],{"class":296},"},",[283,1168,1169],{"class":653}," http)",[283,1171,1129],{"class":296},[283,1173,1174,1176,1179,1181,1183,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1210,1212,1215],{"class":285,"line":412},[283,1175,1092],{"class":288},[283,1177,1178],{"class":653}," page ",[283,1180,1098],{"class":296},[283,1182,1142],{"class":1141},[283,1184,1185],{"class":653}," provider",[283,1187,751],{"class":296},[283,1189,522],{"class":1104},[283,1191,891],{"class":653},[283,1193,648],{"class":296},[283,1195,514],{"class":644},[283,1197,648],{"class":296},[283,1199,304],{"class":296},[283,1201,420],{"class":296},[283,1203,475],{"class":300},[283,1205,638],{"class":296},[283,1207,1209],{"class":1208},"sbssI"," 6",[283,1211,657],{"class":296},[283,1213,1214],{"class":653},")",[283,1216,1129],{"class":296},[147,1218,1219,1220,1223,1224,1226,1227,189,1230,556,1232,751],{},"The core doesn't cache. It provides ",[178,1221,1222],{},"contentKey(vendor, resource, query)",", the identity of an\nupstream document: the vendor config minus ",[178,1225,622],{}," (credentials aren't identity), plus the sorted\nquery, hashed to word characters only because Nitro's storage splits keys on ",[178,1228,1229],{},"\u002F",[178,1231,638],{},[178,1233,366],{},[250,1235,1237],{"id":1236},"fake-vendors","Fake vendors",[255,1239,1241],{"className":277,"code":1240,"language":279,"meta":263,"style":263},"import { fakeEntry, fakeTerm, wordpressHandlers } from \"@joinery\u002Fcontent\u002Ftesting\";\n\nconst entry = fakeEntry({ terms: [fakeTerm({ slug: \"derecho-penal\" })] });\nsetupServer(...wordpressHandlers(baseURL, { posts: [entry] })).listen();\n",[178,1242,1243,1276,1280,1331],{"__ignoreMap":263},[283,1244,1245,1248,1250,1253,1255,1258,1260,1263,1265,1268,1270,1272,1274],{"class":285,"line":122},[283,1246,1247],{"class":1141},"import",[283,1249,420],{"class":296},[283,1251,1252],{"class":653}," fakeEntry",[283,1254,304],{"class":296},[283,1256,1257],{"class":653}," fakeTerm",[283,1259,304],{"class":296},[283,1261,1262],{"class":653}," wordpressHandlers",[283,1264,657],{"class":296},[283,1266,1267],{"class":1141}," from",[283,1269,641],{"class":296},[283,1271,230],{"class":644},[283,1273,648],{"class":296},[283,1275,1129],{"class":296},[283,1277,1278],{"class":285,"line":372},[283,1279,848],{"emptyLinePlaceholder":847},[283,1281,1282,1284,1287,1289,1291,1293,1295,1297,1299,1302,1305,1307,1309,1311,1313,1315,1318,1320,1322,1325,1327,1329],{"class":285,"line":412},[283,1283,1092],{"class":288},[283,1285,1286],{"class":653}," entry ",[283,1288,1098],{"class":296},[283,1290,1252],{"class":1104},[283,1292,891],{"class":653},[283,1294,633],{"class":296},[283,1296,348],{"class":300},[283,1298,638],{"class":296},[283,1300,1301],{"class":653}," [",[283,1303,1304],{"class":1104},"fakeTerm",[283,1306,891],{"class":653},[283,1308,633],{"class":296},[283,1310,307],{"class":300},[283,1312,638],{"class":296},[283,1314,641],{"class":296},[283,1316,1317],{"class":644},"derecho-penal",[283,1319,648],{"class":296},[283,1321,657],{"class":296},[283,1323,1324],{"class":653},")] ",[283,1326,1123],{"class":296},[283,1328,1214],{"class":653},[283,1330,1129],{"class":296},[283,1332,1333,1336,1338,1341,1344,1347,1349,1351,1354,1356,1359,1361,1363,1365,1368,1371],{"class":285,"line":131},[283,1334,1335],{"class":1104},"setupServer",[283,1337,891],{"class":653},[283,1339,1340],{"class":296},"...",[283,1342,1343],{"class":1104},"wordpressHandlers",[283,1345,1346],{"class":653},"(baseURL",[283,1348,304],{"class":296},[283,1350,420],{"class":296},[283,1352,1353],{"class":300}," posts",[283,1355,638],{"class":296},[283,1357,1358],{"class":653}," [entry] ",[283,1360,1123],{"class":296},[283,1362,1126],{"class":653},[283,1364,751],{"class":296},[283,1366,1367],{"class":1104},"listen",[283,1369,1370],{"class":653},"()",[283,1372,1129],{"class":296},[151,1374,1375,1385],{},[154,1376,1377],{},[157,1378,1379,1382],{},[160,1380,1381],{},"Export",[160,1383,1384],{},"Gives",[170,1386,1387,1401,1419],{},[157,1388,1389,1394],{},[175,1390,1391],{},[178,1392,1393],{},"wordpressHandlers(baseURL, content)",[175,1395,1396,1397,1400],{},"MSW handlers for ",[178,1398,1399],{},"\u002Fwp-json\u002Fwp\u002Fv2\u002F:resource",": slug, term, search and paging filters, WordPress's headers and error codes",[157,1402,1403,1416],{},[175,1404,1405,189,1408,189,1410,189,1413],{},[178,1406,1407],{},"fakeEntry",[178,1409,1304],{},[178,1411,1412],{},"fakeAuthor",[178,1414,1415],{},"fakeAsset",[175,1417,1418],{},"Domain values; pass only the fields a spec asserts on",[157,1420,1421,1426],{},[175,1422,1423],{},[178,1424,1425],{},"faker",[175,1427,1428,1429,1431],{},"The seeded Spanish ",[178,1430,1425],{}," instance, for any other value",[147,1433,1434,1435,1437,1438,1444],{},"The faker is seeded, so values are stable — but adding a call shifts every value after it. Use the\nexported ",[178,1436,1425],{},", not your own import. ",[207,1439,1441],{"href":1440},"repo:packages\u002Fcontent\u002Fsrc\u002Ftesting\u002Fwordpress.spec.ts",[178,1442,1443],{},"wordpress.spec.ts"," runs\nthe real provider against the handlers so the fake can't drift.",[250,1446,1448],{"id":1447},"errors","Errors",[147,1450,1451,1452,1455,1456,1033,1459,1462,1463,1466],{},"All extend ",[178,1453,1454],{},"ContentError"," and carry their own ",[178,1457,1458],{},"statusCode",[178,1460,1461],{},"statusMessage"," never includes the\nvendor's URL; the real failure is on ",[178,1464,1465],{},"cause",", and logging it is the app's job.",[151,1468,1469,1482],{},[154,1470,1471],{},[157,1472,1473,1476,1479],{},[160,1474,1475],{},"Error",[160,1477,1478],{},"Status",[160,1480,1481],{},"Raised when",[170,1483,1484,1497,1510,1522,1534,1546,1559,1571],{},[157,1485,1486,1491,1494],{},[175,1487,1488],{},[178,1489,1490],{},"MalformedQueryError",[175,1492,1493],{},"400",[175,1495,1496],{},"A query parameter is unparseable or out of range",[157,1498,1499,1504,1507],{},[175,1500,1501],{},[178,1502,1503],{},"UndefinedResourceError",[175,1505,1506],{},"404",[175,1508,1509],{},"The resource or taxonomy doesn't exist",[157,1511,1512,1517,1519],{},[175,1513,1514],{},[178,1515,1516],{},"NotFoundError",[175,1518,1506],{},[175,1520,1521],{},"Nothing under that slug",[157,1523,1524,1529,1531],{},[175,1525,1526],{},[178,1527,1528],{},"PageNotFoundError",[175,1530,1506],{},[175,1532,1533],{},"A page past the last one",[157,1535,1536,1540,1543],{},[175,1537,1538],{},[178,1539,1042],{},[175,1541,1542],{},"400 \u002F 404 \u002F 502",[175,1544,1545],{},"The vendor failed. Only 400 and 404 are relayed; an upstream 401\u002F403 means our credentials are wrong, so it's a 502",[157,1547,1548,1553,1556],{},[175,1549,1550],{},[178,1551,1552],{},"ContentUnavailableError",[175,1554,1555],{},"502",[175,1557,1558],{},"Any other read failure, including a mapping bug",[157,1560,1561,1566,1568],{},[175,1562,1563],{},[178,1564,1565],{},"UndefinedVendorError",[175,1567,1069],{},[175,1569,1570],{},"Config names an unregistered vendor",[157,1572,1573,1577,1579],{},[175,1574,1575],{},[178,1576,1065],{},[175,1578,1069],{},[175,1580,1581,1582,1585],{},"The vendor's config can't work; ",[178,1583,1584],{},"problems"," lists why",[250,1587,1589],{"id":1588},"known-gaps","Known gaps",[151,1591,1592,1602],{},[154,1593,1594],{},[157,1595,1596,1599],{},[160,1597,1598],{},"Gap",[160,1600,1601],{},"Note",[170,1603,1604,1612,1623,1633,1641],{},[157,1605,1606,1609],{},[175,1607,1608],{},"No timeout or retry",[175,1610,1611],{},"A slow vendor holds an SSR request open. ofetch supports both",[157,1613,1614,1617],{},[175,1615,1616],{},"Lists fetch every body",[175,1618,1619,1620],{},"~53 KB per post when a listing needs only ",[178,1621,1622],{},"wordCount",[157,1624,1625,1630],{},[175,1626,1627,1628],{},"No sanitising of ",[178,1629,555],{},[175,1631,1632],{},"Fine while the CMS is first-party",[157,1634,1635,1638],{},[175,1636,1637],{},"No locale axis",[175,1639,1640],{},"Adding one later must touch the query, the cache key and the Nuxt reader together",[157,1642,1643,1649],{},[175,1644,1645,1646],{},"Vendor plumbing duplicated with ",[178,1647,1648],{},"@joinery\u002Fi18n",[175,1650,1651,1652,1214],{},"Deliberate until a third consumer (",[207,1653,1655],{"href":1654},"\u002Fwiki\u002Fdocs\u002Faudits\u002F2026-10-21-monorepo","D2",[1657,1658,1659],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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);}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":263,"searchDepth":372,"depth":372,"links":1661},[1662,1663,1664,1665,1666,1667,1668,1669,1670],{"id":252,"depth":372,"text":253},{"id":273,"depth":372,"text":274},{"id":604,"depth":372,"text":605},{"id":772,"depth":372,"text":773},{"id":750,"depth":372,"text":1050},{"id":1081,"depth":372,"text":1082},{"id":1236,"depth":372,"text":1237},{"id":1447,"depth":372,"text":1448},{"id":1588,"depth":372,"text":1589},"md",null,{},"\u002Fpackages\u002Fcontent\u002Freadme",{"title":138,"description":149},"packages\u002Fcontent\u002FREADME","UORBehkoP0I1srcbWeApxwHSY_C8fXM_ivmNt7bkqMY",1795478395904]