[{"data":1,"prerenderedAt":1251},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"wiki":116,"doc-\u002Fdocs\u002Fdecisions\u002F0031-content-server-accessor":429},{"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",[117,134,210,255,291,352],{"id":118,"label":119,"icon":120,"blurb":121,"groups":122},"workspace","Workspace","i-lucide-home","The two files at the root, and the generated index of everything the repo can do.",[123],{"key":124,"label":125,"entries":126},"root","The root",[127,131],{"path":128,"label":129,"kind":130},"\u002Freadme","Joinery","readme",{"path":132,"label":133,"kind":130},"\u002Fsecurity","Security policy",{"id":135,"label":136,"icon":137,"blurb":138,"groups":139},"docs","Docs","i-lucide-library","Subjects no single project owns — the models, the procedures, the answered decisions.",[140,150,168,186,192,198,204],{"key":135,"label":141,"entries":142},"Start here",[143,147],{"path":144,"label":145,"kind":146},"\u002Fdocs\u002Freadme","Overview","doc",{"path":148,"label":149,"kind":146},"\u002Fdocs\u002Ffeatures","Features",{"key":151,"label":152,"entries":153},"concepts","Concepts",[154,156,159,162,165],{"path":155,"label":145,"kind":146},"\u002Fdocs\u002Fconcepts\u002Freadme",{"path":157,"label":158,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fversioning","How a version gets derived from a commit",{"path":160,"label":161,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fconventions","Naming and folder conventions",{"path":163,"label":164,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fagent-setup","The agent setup as one inspectable system",{"path":166,"label":167,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fboundaries","Why the boundary system exists",{"key":169,"label":170,"entries":171},"guides","Guides",[172,174,177,180,183],{"path":173,"label":145,"kind":146},"\u002Fdocs\u002Fguides\u002Freadme",{"path":175,"label":176,"kind":146},"\u002Fdocs\u002Fguides\u002Fchange-lifecycle","A change, end to end",{"path":178,"label":179,"kind":146},"\u002Fdocs\u002Fguides\u002Fadding-a-locale","Adding a locale",{"path":181,"label":182,"kind":146},"\u002Fdocs\u002Fguides\u002Ffirst-hour","First hour in this repo",{"path":184,"label":185,"kind":146},"\u002Fdocs\u002Fguides\u002Frepo-secrets","Provisioning the repo secrets",{"key":187,"label":188,"entries":189},"decisions","Decisions",[190],{"path":191,"label":145,"kind":146},"\u002Fdocs\u002Fdecisions\u002Freadme",{"key":193,"label":194,"entries":195},"audits","Audits",[196],{"path":197,"label":145,"kind":146},"\u002Fdocs\u002Faudits\u002Freadme",{"key":199,"label":200,"entries":201},"workflows","Workflows",[202],{"path":203,"label":145,"kind":146},"\u002Fdocs\u002Fworkflows\u002Freadme",{"key":205,"label":206,"entries":207},"benchmarks","Benchmarks",[208],{"path":209,"label":145,"kind":146},"\u002Fdocs\u002Fbenchmarks\u002Freadme",{"id":211,"label":212,"icon":31,"blurb":213,"groups":214},"apps","Apps","Each app's own reference, colocated with its code so it changes in the same diff.",[215,220,233,240,245,250],{"key":36,"label":216,"entries":217},"Developer Portal",[218],{"path":219,"label":145,"kind":130},"\u002Fapps\u002Fdeveloper-portal\u002Freadme",{"key":41,"label":101,"entries":221},[222,224,227,230],{"path":223,"label":145,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Freadme",{"path":225,"label":226,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Fdesign","Huella Legal design",{"path":228,"label":229,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Flayers\u002Finterest\u002Freadme","layers\u002Finterest",{"path":231,"label":232,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Flayers\u002Flegacy\u002Freadme","layers\u002Flegacy",{"key":46,"label":104,"entries":234},[235,237],{"path":236,"label":145,"kind":130},"\u002Fapps\u002Fmarina-roustan\u002Freadme",{"path":238,"label":239,"kind":130},"\u002Fapps\u002Fmarina-roustan\u002Fdesign","Marina Roustan design",{"key":51,"label":241,"entries":242},"Portfolio",[243],{"path":244,"label":145,"kind":130},"\u002Fapps\u002Fportfolio\u002Freadme",{"key":130,"label":246,"entries":247},"Readme",[248],{"path":249,"label":212,"kind":130},"\u002Fapps\u002Freadme",{"key":56,"label":251,"entries":252},"Wp Editor",[253],{"path":254,"label":145,"kind":130},"\u002Fapps\u002Fwp-editor\u002Freadme",{"id":256,"label":257,"icon":62,"blurb":258,"groups":259},"packages","Packages","Each package's own reference, colocated with its code so it changes in the same diff.",[260,268,276,282,287],{"key":67,"label":261,"entries":262},"Configs",[263,265],{"path":264,"label":145,"kind":130},"\u002Fpackages\u002Fconfigs\u002Freadme",{"path":266,"label":267,"kind":130},"\u002Fpackages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Freadme","eslint\u002Flib",{"key":72,"label":269,"entries":270},"Content",[271,273],{"path":272,"label":145,"kind":130},"\u002Fpackages\u002Fcontent\u002Freadme",{"path":274,"label":275,"kind":130},"\u002Fpackages\u002Fcontent\u002Fsrc\u002Fnuxt\u002Freadme","nuxt",{"key":76,"label":76,"entries":277},[278,280],{"path":279,"label":145,"kind":130},"\u002Fpackages\u002Fi18n\u002Freadme",{"path":281,"label":275,"kind":130},"\u002Fpackages\u002Fi18n\u002Fsrc\u002Fnuxt\u002Freadme",{"key":81,"label":283,"entries":284},"Observability",[285],{"path":286,"label":145,"kind":130},"\u002Fpackages\u002Fobservability\u002Freadme",{"key":130,"label":246,"entries":288},[289],{"path":290,"label":257,"kind":130},"\u002Fpackages\u002Freadme",{"id":292,"label":293,"icon":85,"blurb":294,"groups":295},"infrastructure","Infrastructure","Each service's own reference, colocated with its code so it changes in the same diff.",[296,300,347],{"key":130,"label":246,"entries":297},[298],{"path":299,"label":293,"kind":130},"\u002Finfrastructure\u002Freadme",{"key":90,"label":301,"entries":302},"Scripts",[303,305,308,311,314,317,320,323,326,329,332,335,338,341,344],{"path":304,"label":145,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Freadme",{"path":306,"label":307,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fbrand\u002Freadme","brand",{"path":309,"label":310,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fci-failures\u002Freadme","ci-failures",{"path":312,"label":313,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fcoverage-report\u002Freadme","coverage-report",{"path":315,"label":316,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Freadme","dev",{"path":318,"label":319,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Freadme","drift",{"path":321,"label":322,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fenv-sync\u002Freadme","env-sync",{"path":324,"label":325,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Finvariants\u002Freadme","invariants",{"path":327,"label":328,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Freadme","issue",{"path":330,"label":331,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Freadme","map",{"path":333,"label":334,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Freadme","shared",{"path":336,"label":337,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fship\u002Freadme","ship",{"path":339,"label":340,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fusage\u002Freadme","usage",{"path":342,"label":343,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworkflow\u002Freadme","workflow",{"path":345,"label":346,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworktree\u002Freadme","worktree",{"key":95,"label":348,"entries":349},"Translations",[350],{"path":351,"label":145,"kind":130},"\u002Finfrastructure\u002Ftranslations\u002Freadme",{"id":353,"label":354,"icon":355,"blurb":356,"groups":357},"agents","Agent setup","i-lucide-bot","The skills and subagents an agent working in this repo loads.",[358,373],{"key":353,"label":359,"entries":360},"Subagents",[361,364,367,370],{"path":362,"label":363,"kind":130},"\u002F.claude\u002Fagents\u002Freview-architecture","Review Architecture",{"path":365,"label":366,"kind":130},"\u002F.claude\u002Fagents\u002Freview-correctness","Review Correctness",{"path":368,"label":369,"kind":130},"\u002F.claude\u002Fagents\u002Freview-tests","Review Tests",{"path":371,"label":372,"kind":130},"\u002F.claude\u002Fagents\u002Fticket-planner","Ticket Planner",{"key":374,"label":375,"entries":376},"skills","Skills",[377,381,384,387,390,393,396,399,402,405,408,411,414,417,420,423,426],{"path":378,"label":379,"kind":380},"\u002F.claude\u002Fskills\u002Fcontent-new-vendor\u002Fskill","Adding a content vendor","skill",{"path":382,"label":383,"kind":380},"\u002F.claude\u002Fskills\u002Fconfigs-new-rule\u002Fskill","Adding a lint rule",{"path":385,"label":386,"kind":380},"\u002F.claude\u002Fskills\u002Fscripts-new-script\u002Fskill","Adding a script",{"path":388,"label":389,"kind":380},"\u002F.claude\u002Fskills\u002Fi18n-new-vendor\u002Fskill","Adding a translations vendor",{"path":391,"label":392,"kind":380},"\u002F.claude\u002Fskills\u002Fnuxt-module-route\u002Fskill","Adding to a package's Nuxt module",{"path":394,"label":395,"kind":380},"\u002F.claude\u002Fskills\u002Fbenchmark\u002Fskill","Benchmarking a design",{"path":397,"label":398,"kind":380},"\u002F.claude\u002Fskills\u002Fwp-bulk-edit\u002Fskill","Bulk-editing WordPress through the editor",{"path":400,"label":401,"kind":380},"\u002F.claude\u002Fskills\u002Fdoc-drift-check\u002Fskill","Checking docs against code",{"path":403,"label":404,"kind":380},"\u002F.claude\u002Fskills\u002Fcomment-cleanup\u002Fskill","Comment cleanup",{"path":406,"label":407,"kind":380},"\u002F.claude\u002Fskills\u002Fgithub-issue\u002Fskill","Creating a GitHub issue",{"path":409,"label":410,"kind":380},"\u002F.claude\u002Fskills\u002Fproject-workflow\u002Fskill","Running a project through a workflow",{"path":412,"label":413,"kind":380},"\u002F.claude\u002Fskills\u002Fnew-package\u002Fskill","Scaffolding a workspace project",{"path":415,"label":416,"kind":380},"\u002F.claude\u002Fskills\u002Fstart-issue\u002Fskill","Starting work on a GitHub issue",{"path":418,"label":419,"kind":380},"\u002F.claude\u002Fskills\u002Fdecision-report\u002Fskill","Writing a decision report",{"path":421,"label":422,"kind":380},"\u002F.claude\u002Fskills\u002Faudit-report\u002Fskill","Writing an audit",{"path":424,"label":425,"kind":380},"\u002F.claude\u002Fskills\u002Fhouse-docs\u002Fskill","Writing docs here",{"path":427,"label":428,"kind":380},"\u002F.claude\u002Fskills\u002Fwriting-tests\u002Fskill","Writing specs here",{"id":430,"title":431,"body":432,"description":1232,"extension":1240,"kind":1241,"meta":1242,"navigation":1246,"path":1247,"seo":1248,"stem":1249,"url":1241,"verdict":1241,"__hash__":1250},"docs\u002Fdocs\u002Fdecisions\u002F0031-content-server-accessor.md","🧭 Content is read on the server through useContent, not over a public route",{"type":433,"value":434,"toc":1231},"minimark",[435,445,450,491,505,509,552,555,788,979,983,1055,1059,1069,1075,1078,1107,1113,1117],[436,437,439,440,444],"h1",{"id":438},"content-is-read-on-the-server-through-usecontent-not-over-a-public-route","🧭 Content is read on the server through ",[441,442,443],"code",{},"useContent",", not over a public route",[446,447,449],"h2",{"id":448},"context","Context",[451,452,453,456,457,460,461,464,465,467,468,471,472,475,476,478,479,486,487,490],"p",{},[441,454,455],{},"@joinery\u002Fcontent\u002Fnuxt"," mounted two public cached routes, ",[441,458,459],{},"GET \u002Fapi\u002Fcontent\u002F:resource"," and\n",[441,462,463],{},"\u002F:resource\u002F:slug",", and auto-imported a client ",[441,466,443],{}," that read them. It assumed pages render\n",[441,469,470],{},"Entry"," directly. Huella's rule is the opposite: a layer's ",[441,473,474],{},"server\u002F"," maps vendor shapes into view\nmodels \"so an ",[441,477,470],{}," never reaches the browser\" (",[480,481,483],"a",{"href":482},"repo:apps\u002Fhuella-legal\u002FCLAUDE%2Emd",[441,484,485],{},"AGENTS.md",").\nSo #240's article routes had no server-side way into the module, and they ",[441,488,489],{},"$fetch","ed its public\nroutes in-process: one Nitro server calling itself over h3.",[451,492,493,494,497,498,500,501,504],{},"That left a stopgap, ",[441,495,496],{},"layers\u002Farticles\u002Fserver\u002Futils\u002FfetchContent.ts",", which re-plumbed paths, casts\nand status codes. It also left two cache layers for one read, a public endpoint serving raw ",[441,499,470],{},"\nthat nothing needed, and a client composable whose only caller was the provisional ",[441,502,503],{},"\u002Fpublicaciones\u002F","\nscaffold. The question: what the package's Nuxt surface should be, given it must stay generic.",[446,506,508],{"id":507},"result","Result",[451,510,511,519,520,523,524,527,528,531,532,535,536,538,539,542,543,547,548,551],{},[512,513,514,515,518],"strong",{},"The module exposes one server-only, cached ",[441,516,517],{},"useContent(event)"," and no route."," It is a Nitro\nauto-import (",[441,521,522],{},"addServerImports",") with the port's four reads. Two module-scope ",[441,525,526],{},"defineCachedFunction","s\nback it: ",[441,529,530],{},"content-list"," and ",[441,533,534],{},"content-item",", group ",[441,537,72],{},", with the existing windows. Both are\nkeyed by ",[441,540,541],{},"contentKey(vendor, resource, query)",". Each read normalises and bounds its typed query\n",[544,545,546],"em",{},"before"," the cached call, builds the provider only on a miss, and maps domain errors to h3 statuses\nas the routes did. The public routes, ",[441,549,550],{},"CONTENT_API_PATH"," and the client composable are deleted.",[451,553,554],{},"Verified against nitropack 2.13.4, @nuxt\u002Fkit 4.5.2, h3 1.15.11, unstorage 1.17.5 and\n@nuxtjs\u002Fi18n 10.6.0. Line numbers are as of this report:",[556,557,558,571],"table",{},[559,560,561],"thead",{},[562,563,564,568],"tr",{},[565,566,567],"th",{},"Question",[565,569,570],{},"Finding",[572,573,574,621,637,659,674,686,718,747,765],"tbody",{},[562,575,576,588],{},[577,578,579,580,583,584,587],"td",{},"Does ",[441,581,582],{},"contentKey"," work as ",[441,585,586],{},"getKey","?",[577,589,590,591,593,594,597,598,601,602,605,606,609,610,613,614,616,617,620],{},"Yes. ",[441,592,526],{}," stores the key as given (",[441,595,596],{},"runtime\u002Finternal\u002Fcache.mjs:103","). Only ",[441,599,600],{},"defineCachedEventHandler"," runs ",[441,603,604],{},"escapeKey"," (",[441,607,608],{},":131-135","). unstorage's ",[441,611,612],{},"normalizeKey"," still cuts at ",[441,615,587],{}," and splits at ",[441,618,619],{},"\u002F \\ :",", so word-chars-only keys still matter",[562,622,623,626],{},[577,624,625],{},"Are errors cached?",[577,627,628,629,632,633,636],{},"No. A thrown read is never stored (",[441,630,631],{},":56-62","). A failed SWR refresh logs and keeps serving the stale value (",[441,634,635],{},":89-94",")",[562,638,639,642],{},[577,640,641],{},"Where does the event go?",[577,643,644,645,648,649,605,652,655,656,636],{},"First. The cache passes it to ",[441,646,647],{},"waitUntil"," only when ",[441,650,651],{},"isEvent(args[0])",[441,653,654],{},":86",", ",[441,657,658],{},":109",[562,660,661,664],{},[577,662,663],{},"Should the functions be defined per call?",[577,665,666,667,670,671,636],{},"No: in-flight dedupe is a ",[441,668,669],{},"pending"," map per definition (",[441,672,673],{},":23",[562,675,676,679],{},[577,677,678],{},"Memoise the provider?",[577,680,681,682,685],{},"No. It is built only inside the resolver, so once per miss, as before. That keeps vendor config validated at read time, and ",[441,683,684],{},"useRuntimeConfig(event)"," clones config per event, so there is no stable identity to memoise on",[562,687,688,691],{},[577,689,690],{},"Can the existing parsers bound typed input?",[577,692,693,694,697,698,701,702,705,706,709,710,713,714,717],{},"No. ",[441,695,696],{},"toText"," returns ",[441,699,700],{},"undefined"," for a non-string, so ",[441,703,704],{},"{ page: 2 }"," became page 1 and a typed ",[441,707,708],{},"term"," was dropped. ",[441,711,712],{},"runtime\u002Fserver\u002Futils\u002Fquery.ts"," replaces ",[441,715,716],{},"parsing.ts"," with typed checks",[562,719,720,727],{},[577,721,722,723,726],{},"Does the app's ",[441,724,725],{},"Article"," cache earn its keep?",[577,728,693,729,732,733,736,737,739,740,743,744],{},[441,730,731],{},"toArticle"," on a 53 KB body (the 0027 corpus average) takes 4.1 ms, and four ",[441,734,735],{},"toArticleSummary"," calls take 9.0 ms. Measured warm, locally. A second cache doubled the worst-case staleness, and its slug key went through ",[441,738,604],{},", which merges ",[441,741,742],{},"a-b"," with ",[441,745,746],{},"ab",[562,748,749,752],{},[577,750,751],{},"What did the public route expose?",[577,753,754,755,655,758,761,762],{},"Raw, unsanitised vendor HTML. Its key space was bounded on page, perPage and search length only: every distinct ",[441,756,757],{},"slug",[441,759,760],{},"author"," or term id cached its own empty ",[441,763,764],{},"Page",[562,766,767,770],{},[577,768,769],{},"Is i18n the same case?",[577,771,772,773,605,776,779,780,783,784,787],{},"Same shape, different stakes. The browser fetches ",[441,774,775],{},"\u002F_i18n\u002F\u003Chash>\u002F\u003Clocale>\u002Fmessages.json",[441,777,778],{},"@nuxtjs\u002Fi18n"," ",[441,781,782],{},"runtime\u002Fcontext.js:131","), whose server route runs our loader, which self-fetches ",[441,785,786],{},"\u002Fapi\u002Ftranslations\u002F:locale",". Translations are public by design and there is no client composable, so nothing leaks. Left as is",[556,789,790,803],{},[559,791,792],{},[562,793,794,797,800],{},[565,795,796],{},"#",[565,798,799],{},"File",[565,801,802],{},"Change",[572,804,805,822,843,865,895,920,944,963],{},[562,806,807,810,816],{},[577,808,809],{},"1",[577,811,812,815],{},[441,813,814],{},"packages\u002Fcontent\u002Fsrc\u002Fnuxt\u002Fruntime\u002Fserver\u002Futils\u002FuseContent.ts"," (new)",[577,817,818,819],{},"The accessor and its two cached functions. Error mapping moved here from ",[441,820,821],{},"request.ts",[562,823,824,826,831],{},[577,825,87],{},[577,827,828,815],{},[441,829,830],{},"packages\u002Fcontent\u002Fsrc\u002Fnuxt\u002Fruntime\u002Fserver\u002Futils\u002Fquery.ts",[577,832,833,655,836,655,839,842],{},[441,834,835],{},"toQuery",[441,837,838],{},"toEntryQuery",[441,840,841],{},"toSlug",": defaults, ceilings, trimmed text, known taxonomy, non-empty ids",[562,844,845,848,856],{},[577,846,847],{},"3",[577,849,850,655,853],{},[441,851,852],{},"packages\u002Fcontent\u002Fsrc\u002Fnuxt\u002Fmodule.ts",[441,854,855],{},"config.ts",[577,857,858,859,861,862,864],{},"One ",[441,860,522],{},". ",[441,863,550],{}," is gone",[562,866,867,869,886],{},[577,868,64],{},[577,870,871,655,874,655,877,655,880,655,883],{},[441,872,873],{},"content.get.ts",[441,875,876],{},"contentItem.get.ts",[441,878,879],{},"utils\u002Frequest.ts",[441,881,882],{},"utils\u002Fparsing.ts",[441,884,885],{},"composables\u002F*",[577,887,888,889,531,892],{},"Deleted. Their spec cases moved to ",[441,890,891],{},"useContent.spec.ts",[441,893,894],{},"query.spec.ts",[562,896,897,899,907],{},[577,898,33],{},[577,900,901,655,904],{},[441,902,903],{},"apps\u002Fhuella-legal\u002Flayers\u002Farticles\u002Fserver\u002Fapi\u002Farticles\u002F[slug].get.ts",[441,905,906],{},"[slug]\u002Frelated.get.ts",[577,908,909,912,913,915,916,919],{},[441,910,911],{},"defineEventHandler"," over ",[441,914,517],{},". The slug is read with ",[441,917,918],{},"{ decode: true }",", since nothing re-encodes it now",[562,921,922,925,930],{},[577,923,924],{},"6",[577,926,927,815],{},[441,928,929],{},"…\u002Fapi\u002Farticles\u002Findex.get.ts",[577,931,932,935,936,939,940,943],{},[441,933,934],{},"Page\u003CArticleSummary>",". Only ",[441,937,938],{},"page"," is forwarded; ",[441,941,942],{},"perPage"," is fixed at 6",[562,945,946,949,954],{},[577,947,948],{},"7",[577,950,951],{},[441,952,953],{},"…\u002Fapp\u002Fpages\u002Farticles\u002Findex.vue",[577,955,956,959,960],{},[441,957,958],{},"useFetch(\"\u002Fapi\u002Farticles\")",". Renders summaries as text, with no ",[441,961,962],{},"v-html",[562,964,965,968,976],{},[577,966,967],{},"8",[577,969,970,655,973],{},[441,971,972],{},"…\u002Fserver\u002Fcache.ts",[441,974,975],{},"…\u002Fserver\u002Futils\u002FfetchContent.ts",[577,977,978],{},"Deleted",[446,980,982],{"id":981},"options-considered","Options considered",[556,984,985,995],{},[559,986,987],{},[562,988,989,992],{},[565,990,991],{},"Option",[565,993,994],{},"Why not",[572,996,997,1005,1016,1031,1045],{},[562,998,999,1002],{},[577,1000,1001],{},"Keep the routes and add a server helper over them",[577,1003,1004],{},"Formalises the self-call. Paths, query strings, casts and status codes still serialise and re-parse inside one process, and the public raw endpoint stays",[562,1006,1007,1010],{},[577,1008,1009],{},"Routes and client composable behind a module option",[577,1011,1012,1013,1015],{},"Config, specs and docs for a surface with no consumer. A browser-facing route is a few lines in an app over ",[441,1014,443],{},", where the app decides what the browser gets",[562,1017,1018,1025],{},[577,1019,1020,1021,1024],{},"An uncached ",[441,1022,1023],{},"useContentProvider",", with each app caching its view models",[577,1026,1027,1028,1030],{},"Every app would re-derive keys and ceilings, the very thing ",[441,1029,582],{}," exists to stop. The expensive part is the upstream round trip, not a 4 ms mapping",[562,1032,1033,1039],{},[577,1034,1035,1036,1038],{},"Keep the app's ",[441,1037,725],{}," and related caches on top",[577,1040,1041,1042,1044],{},"Up to 12 h before a correction shows, two key families to purge, and the ",[441,1043,604],{}," collisions above — all to save single-digit milliseconds",[562,1046,1047,1052],{},[577,1048,1049,1050],{},"A separate server name beside the client ",[441,1051,443],{},[577,1053,1054],{},"Two functions with one job and a confusing pair of names",[446,1056,1058],{"id":1057},"consequences","Consequences",[451,1060,1061,1062,1065,1066,1068],{},"Server code reads content with typed calls and no plumbing, and nothing raw has a public URL. The\ncost is that every browser-facing read needs an app route. #241 (C2) extends ",[441,1063,1064],{},"GET \u002Fapi\u002Farticles","\nwith filters rather than writing it, and #248 (C5) searches through a route over ",[441,1067,443],{},".",[451,1070,1071,1072,1074],{},"#236 gets simpler. There is one cache layer, so the worst case for a correction to reach a post\nfalls from about 12 h to 6 h. A purge touches one key family, the ",[441,1073,72],{}," group, whose key format\nonly the package knows.",[451,1076,1077],{},"Two earlier reports describe what no longer exists, and neither is edited, since each is a record of\nits own decision:",[1079,1080,1081,1097],"ul",{},[1082,1083,1084,1088,1089,1092,1093,1096],"li",{},[480,1085,1087],{"href":1086},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0030-huella-legal-rendering-hosting-and-cost","0030","'s ",[441,1090,1091],{},"\u002Fapi\u002Fcontent\u002F**"," route rule and its\nfinding that \"browsers fetch ",[441,1094,1095],{},"\u002Fapi\u002Fcontent\u002F*","\". F1 should drop both.",[1082,1098,1099,1103,1104,1106],{},[480,1100,1102],{"href":1101},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0027-huella-legal-content-model","0027","'s change 11, which had the article route build its\nown provider. ",[441,1105,443],{}," is now that route's entry point.",[451,1108,1109,1110,1112],{},"Revisit if a consumer genuinely needs raw ",[441,1111,470],{}," in the browser. That is an app route, not a\npackage one. Revisit also if Nitro starts escaping function keys or changes where it reads the event.",[446,1114,1116],{"id":1115},"confirmation","Confirmation",[556,1118,1119,1129],{},[559,1120,1121],{},[562,1122,1123,1126],{},[565,1124,1125],{},"Claim",[565,1127,1128],{},"Check",[572,1130,1131,1148,1165,1175,1186,1203,1218],{},[562,1132,1133,1138],{},[577,1134,1135,1136],{},"No public content route, and no client ",[441,1137,443],{},[577,1139,1140,1143,1144,1147],{},[441,1141,1142],{},"grep -rl \"api\u002Fcontent\" apps\u002Fhuella-legal\u002F.output"," after ",[441,1145,1146],{},"pnpm exec nx build @joinery\u002Fhuella-legal"," prints nothing",[562,1149,1150,1153],{},[577,1151,1152],{},"Bounds run before a key exists, and typed input survives normalising",[577,1154,1155,1158,1159,1161,1162,1164],{},[441,1156,1157],{},"pnpm exec nx test @joinery\u002Fcontent",": ",[441,1160,891],{}," \"refuses … without keying it\", ",[441,1163,894],{}," \"keeps the page that was asked for\" and \"keeps the term and the author\"",[562,1166,1167,1170],{},[577,1168,1169],{},"Defaults collapse to one entry",[577,1171,1172,1174],{},[441,1173,891],{}," \"gives %o the same entry as the first page\"",[562,1176,1177,1180],{},[577,1178,1179],{},"The module registers a server import and no route",[577,1181,1182,1185],{},[441,1183,1184],{},"module.spec.ts"," \"auto-imports useContent into server code\"",[562,1187,1188,1191],{},[577,1189,1190],{},"Article routes read decoded slugs and cache nothing themselves",[577,1192,1193,1158,1196,1199,1200,1147],{},[441,1194,1195],{},"pnpm exec nx test @joinery\u002Fhuella-legal",[441,1197,1198],{},"[slug].get.spec.ts"," \"its slug decoded\". ",[441,1201,1202],{},"git grep defineCachedEventHandler apps\u002Fhuella-legal\u002Flayers",[562,1204,1205,1208],{},[577,1206,1207],{},"The listing, the article and its 404 still work end to end",[577,1209,1210,1213,1214,1217],{},[441,1211,1212],{},"pnpm exec playwright test"," in ",[441,1215,1216],{},"apps\u002Fhuella-legal"," after a build",[562,1219,1220,1226],{},[577,1221,1222,1223],{},"The browser never fetches ",[441,1224,1225],{},"\u002Fapi\u002Ftranslations",[577,1227,1228,1147],{},[441,1229,1230],{},"grep -rl \"api\u002Ftranslations\" apps\u002Fhuella-legal\u002F.output\u002Fpublic",{"title":1232,"searchDepth":1233,"depth":1233,"links":1234},"",2,[1235,1236,1237,1238,1239],{"id":448,"depth":1233,"text":449},{"id":507,"depth":1233,"text":508},{"id":981,"depth":1233,"text":982},{"id":1057,"depth":1233,"text":1058},{"id":1115,"depth":1233,"text":1116},"md",null,{"issue":1243,"status":1244,"decision":1245},240,"implemented","accepted",true,"\u002Fdocs\u002Fdecisions\u002F0031-content-server-accessor",{"title":431,"description":1232},"docs\u002Fdecisions\u002F0031-content-server-accessor","wloyACW_awbwK2QC7HMfP94g56v_vgTmAqDCd5Soh3Q",1795478405875]