[{"data":1,"prerenderedAt":912},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"project-tab-workflows":116,"project-readme-scripts":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":905,"kind":906,"meta":907,"navigation":751,"path":908,"seo":909,"stem":910,"url":906,"verdict":906,"__hash__":911},"docs\u002Finfrastructure\u002Fscripts\u002FREADME.md","🤖 @joinery\u002Fscripts",{"type":140,"value":141,"toc":898},"minimark",[142,146,150,153,161,166,169,179,506,510,521,551,555,586,600,617,621,628,675,767,830,834,894],[143,144,138],"h1",{"id":145},"joineryscripts",[147,148,149],"p",{},"The repo's CLI toolbox: dev startup, issue workflows, doc checks and repo gates. Nothing imports\nit; every script is run by hand, a hook or CI.",[147,151,152],{},"⚠️ This is a mostly vibe-coded app, with low human intervention. Why: it's purely a DX tool. I do not\nhave the resources to properly build and maintain this, so I went for the quick and easy shortcut.",[147,154,155,156,160],{},"One folder per script under ",[157,158,159],"code",{},"src\u002F",", each with its own README. This one covers what they share.",[162,163,165],"h2",{"id":164},"structure","Structure",[147,167,168],{},"Every script folder has the same four things:",[170,171,176],"pre",{"className":172,"code":174,"language":175},[173],"language-text","index.ts     the entry point. Hands its commands to run() and does nothing else\nmain.ts      the command — or one file per subcommand, named after it, the way issue\u002F has add + pick\nadapters\u002F    one file per boundary out: git.ts, gh.ts, nx.ts, files.ts, prompts.ts, io.ts\ndomain\u002F      pure functions and their types. No fs, no subprocess, no clack, no process\n","text",[157,177,174],{"__ignoreMap":178},"",[180,181,182,198],"table",{},[183,184,185],"thead",{},[186,187,188,192,195],"tr",{},[189,190,191],"th",{},"Script",[189,193,194],{},"Command",[189,196,197],{},"What it's for",[199,200,201,221,242,260,278,296,314,332,358,394,415,433,451,469,487],"tbody",{},[186,202,203,213,218],{},[204,205,206],"td",{},[207,208,210],"a",{"href":209},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Freadme",[157,211,212],{},"dev",[204,214,215],{},[157,216,217],{},"pnpm dev",[204,219,220],{},"Picking which project to start, and installing the workspace first on a fresh clone",[186,222,223,231,236],{},[204,224,225],{},[207,226,228],{"href":227},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Freadme#pnpm-issueadd",[157,229,230],{},"issue add",[204,232,233],{},[157,234,235],{},"pnpm issue:add",[204,237,238,239],{},"Picking a project and label, then filing an issue with ",[157,240,241],{},"gh",[186,243,244,252,257],{},[204,245,246],{},[207,247,249],{"href":248},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Freadme#pnpm-issuepick",[157,250,251],{},"issue pick",[204,253,254],{},[157,255,256],{},"pnpm issue:pick",[204,258,259],{},"Picking an open issue off a project board, then branching off it and self-assigning",[186,261,262,270,275],{},[204,263,264],{},[207,265,267],{"href":266},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Freadme#pnpm-issuebrief",[157,268,269],{},"issue brief",[204,271,272],{},[157,273,274],{},"pnpm issue:brief",[204,276,277],{},"Printing an issue with its comments, blockers, decisions, projects and linked docs",[186,279,280,288,293],{},[204,281,282],{},[207,283,285],{"href":284},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fship\u002Freadme",[157,286,287],{},"ship",[204,289,290],{},[157,291,292],{},"pnpm issue:ship",[204,294,295],{},"Pushing the current branch, opening or reusing its PR, arming auto-merge, then blocking on checks",[186,297,298,306,311],{},[204,299,300],{},[207,301,303],{"href":302},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fci-failures\u002Freadme",[157,304,305],{},"ci-failures",[204,307,308],{},[157,309,310],{},"pnpm ci:failures",[204,312,313],{},"Reporting a PR's failed checks, each Actions job cut to its error lines",[186,315,316,324,329],{},[204,317,318],{},[207,319,321],{"href":320},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworktree\u002Freadme",[157,322,323],{},"worktree",[204,325,326],{},[157,327,328],{},"pnpm worktree:prepare",[204,330,331],{},"Copying env files into a linked worktree and installing it the way CI does",[186,333,334,342,347],{},[204,335,336],{},[207,337,339],{"href":338},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fenv-sync\u002Freadme",[157,340,341],{},"env-sync",[204,343,344],{},[157,345,346],{},"pnpm env:sync",[204,348,349,350,353,354,357],{},"Keeping each ",[157,351,352],{},".env"," in its ",[157,355,356],{},".env.example","'s order and comments, creating missing ones",[186,359,360,368,386],{},[204,361,362],{},[207,363,365],{"href":364},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworkflow\u002Freadme",[157,366,367],{},"workflow",[204,369,370,373,374,373,377,373,380,373,383],{},[157,371,372],{},"pnpm workflow:setup",", ",[157,375,376],{},"workflow:sync",[157,378,379],{},"workflow:next",[157,381,382],{},"workflow:file",[157,384,385],{},"workflow:drop",[204,387,388,389,393],{},"Managing a ",[207,390,392],{"href":391},"\u002Fwiki\u002Fdocs\u002Fworkflows\u002Freadme","workflow project",": set up, snapshot, list what's ready, file tickets, drop",[186,395,396,404,412],{},[204,397,398],{},[207,399,401],{"href":400},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fbrand\u002Freadme",[157,402,403],{},"brand",[204,405,406,373,409],{},[157,407,408],{},"pnpm brand:extract",[157,410,411],{},"brand:contrast",[204,413,414],{},"Reading a live site's brand, and checking a token file's contrast",[186,416,417,425,430],{},[204,418,419],{},[207,420,422],{"href":421},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Freadme",[157,423,424],{},"drift",[204,426,427],{},[157,428,429],{},"pnpm docs:drift",[204,431,432],{},"Warning when a changed project's docs look stale, and offering to file it",[186,434,435,443,448],{},[204,436,437],{},[207,438,440],{"href":439},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Freadme",[157,441,442],{},"map",[204,444,445],{},[157,446,447],{},"pnpm docs:map",[204,449,450],{},"Rendering the feature index, and asserting in CI that it's current",[186,452,453,461,466],{},[204,454,455],{},[207,456,458],{"href":457},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Finvariants\u002Freadme",[157,459,460],{},"invariants",[204,462,463],{},[157,464,465],{},"pnpm invariants:check",[204,467,468],{},"The repo rules every author is held to, run by hooks and CI",[186,470,471,479,484],{},[204,472,473],{},[207,474,476],{"href":475},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fusage\u002Freadme",[157,477,478],{},"usage",[204,480,481],{},[157,482,483],{},"pnpm usage:flush",[204,485,486],{},"Moving the runs every script records into the committed log; the pre-commit hook runs it",[186,488,489,497,503],{},[204,490,491],{},[207,492,494],{"href":493},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fcoverage-report\u002Freadme",[157,495,496],{},"coverage-report",[204,498,499,502],{},[157,500,501],{},"pnpm test:coverage"," (root)",[204,504,505],{},"Merging every project's coverage into one browsable HTML report",[162,507,509],{"id":508},"run-by-agents-not-only-by-people","Run by agents, not only by people",[147,511,512,513,516,517,520],{},"An agent's shell has no terminal, so ",[157,514,515],{},"isTTY"," is false and ",[157,518,519],{},"out"," prints plain lines. Two rules\nfollow for every script:",[522,523,524,546],"ul",{},[525,526,527,531,532,535,536,542,543,545],"li",{},[528,529,530],"strong",{},"A prompt never runs without a terminal."," Call ",[157,533,534],{},"requireTerminal(hint)"," from\n",[207,537,539],{"href":538},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Fadapters\u002Fio.ts",[157,540,541],{},"io.ts"," before the first one, with a hint naming the arguments\nthat make the prompt unnecessary. ",[157,544,256],{}," with no number fails that way at once; with a\nnumber it asks nothing.",[525,547,548],{},[528,549,550],{},"A command that reports a failure exits 1.",[162,552,554],{"id":553},"which-way-imports-go","Which way imports go",[147,556,557,568,569,573,574,577,578,581,582,585],{},[528,558,559,560,563,564,567],{},"index.ts → the command → ",[157,561,562],{},"adapters\u002F"," → ",[157,565,566],{},"domain\u002F","."," Never back up, and never sideways into another\nscript's folder. One scoped exception: a command may import another command ",[570,571,572],"em",{},"in the same folder",",\nwhich is what keeps ",[157,575,576],{},"add.ts"," calling ",[157,579,580],{},"pick.ts"," legal — the alternative puts that prompt in the\ndispatcher. ",[157,583,584],{},"shared\u002F"," is reachable from anywhere and reaches nothing.",[522,587,588,595],{},[525,589,590,591,594],{},"An adapter is named after the boundary it wraps, so ",[157,592,593],{},"git.ts"," in several folders isn't duplication.",[525,596,597,598,567],{},"Every side effect lives in ",[157,599,562],{},[147,601,602,608,609,611,612,616],{},[207,603,605],{"href":604},"repo:packages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002FpureDomain.ts",[157,606,607],{},"eslint.pureDomain"," enforces the ",[157,610,566],{},"\nhalf; the rest is convention. ",[207,613,615],{"href":614},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0004-scripts-architecture","0004"," has the\nreasoning.",[162,618,620],{"id":619},"adding-a-script","Adding a script",[147,622,623,624,627],{},"The ",[157,625,626],{},"scripts-new-script"," skill has the steps. The rules:",[522,629,630,658],{},[525,631,632,633,635,636,373,639,373,642,373,644,646,647,650,651,653,654,657],{},"A folder under ",[157,634,159],{}," with ",[157,637,638],{},"index.ts",[157,640,641],{},"main.ts",[157,643,562],{},[157,645,566],{}," and a ",[157,648,649],{},"README.md",", a line\nin this package's ",[157,652,90],{}," (",[157,655,656],{},"pnpm --silent cli src\u002F\u003Cname>\u002Findex.ts",") and a row in the table above.",[525,659,660,661,663,664,670,671,674],{},"Every ",[157,662,638],{}," is the same five lines; only ",[207,665,667],{"href":666},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Findex.ts",[157,668,669],{},"dev\u002Findex.ts"," differs, since\nit runs before ",[157,672,673],{},"pnpm install",":",[170,676,680],{"className":677,"code":678,"language":679,"meta":178,"style":178},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","#!\u002Fusr\u002Fbin\u002Fenv node\nimport { run } from \"..\u002Fshared\u002Fcli.ts\";\nimport { main } from \".\u002Fmain.ts\";\n\nawait run(main);\n","ts",[157,681,682,690,724,747,753],{"__ignoreMap":178},[683,684,686],"span",{"class":685,"line":122},"line",[683,687,689],{"class":688},"sHwdD","#!\u002Fusr\u002Fbin\u002Fenv node\n",[683,691,693,697,701,705,708,711,714,718,721],{"class":685,"line":692},2,[683,694,696],{"class":695},"s7zQu","import",[683,698,700],{"class":699},"sMK4o"," {",[683,702,704],{"class":703},"sTEyZ"," run",[683,706,707],{"class":699}," }",[683,709,710],{"class":695}," from",[683,712,713],{"class":699}," \"",[683,715,717],{"class":716},"sfazB","..\u002Fshared\u002Fcli.ts",[683,719,720],{"class":699},"\"",[683,722,723],{"class":699},";\n",[683,725,727,729,731,734,736,738,740,743,745],{"class":685,"line":726},3,[683,728,696],{"class":695},[683,730,700],{"class":699},[683,732,733],{"class":703}," main",[683,735,707],{"class":699},[683,737,710],{"class":695},[683,739,713],{"class":699},[683,741,742],{"class":716},".\u002Fmain.ts",[683,744,720],{"class":699},[683,746,723],{"class":699},[683,748,749],{"class":685,"line":131},[683,750,752],{"emptyLinePlaceholder":751},true,"\n",[683,754,756,759,762,765],{"class":685,"line":755},5,[683,757,758],{"class":695},"await",[683,760,704],{"class":761},"s2Zo4",[683,763,764],{"class":703},"(main)",[683,766,723],{"class":699},[522,768,769,786,795,806,812],{},[525,770,771,774,775,778,779,782,783,567],{},[157,772,773],{},"run"," owns exit codes: ",[157,776,777],{},"CancelledError"," exits 0, ",[157,780,781],{},"ExpectedError"," prints its message and exits 1,\nanything else prints a stack. Never call ",[157,784,785],{},"process.exit",[525,787,788,789,794],{},"Code two scripts need moves to ",[207,790,792],{"href":791},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Freadme",[157,793,584],{},". Scripts never import each other.",[525,796,797,798,801,802,805],{},"Entries run on plain ",[157,799,800],{},"node"," with type stripping, so internal imports use the ",[157,803,804],{},".ts"," extension.",[525,807,808,809,811],{},"Real logic (parsers, diffs, formatting) goes in its own file with a spec; prompts and ",[157,810,241],{}," calls\naren't unit-tested.",[525,813,814,815,818,819,822,823,829],{},"Don't name a folder ",[157,816,817],{},"coverage\u002F"," or ",[157,820,821],{},"types\u002F",": both are in ESLint's\n",[207,824,826],{"href":825},"repo:packages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Fignores.ts",[157,827,828],{},"baseIgnores"," and would go unlinted.",[162,831,833],{"id":832},"requirements","Requirements",[180,835,836,845],{},[183,837,838],{},[186,839,840,842],{},[189,841,191],{},[189,843,844],{},"Needs",[199,846,847,871,884],{},[186,848,849,866],{},[204,850,851,373,854,373,857,373,860,373,863],{},[157,852,853],{},"issue\u002F",[157,855,856],{},"ship\u002F",[157,858,859],{},"drift\u002F",[157,861,862],{},"workflow\u002F",[157,864,865],{},"ci-failures\u002F",[204,867,868,870],{},[157,869,241],{}," installed and logged in",[186,872,873,877],{},[204,874,875],{},[157,876,856],{},[204,878,879,880,883],{},"The repo's ",[570,881,882],{},"Allow auto-merge"," setting on",[186,885,886,891],{},[204,887,888],{},[157,889,890],{},"brand:extract",[204,892,893],{},"Playwright's Chromium and the network",[895,896,897],"style",{},"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 .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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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":178,"searchDepth":692,"depth":692,"links":899},[900,901,902,903,904],{"id":164,"depth":692,"text":165},{"id":508,"depth":692,"text":509},{"id":553,"depth":692,"text":554},{"id":619,"depth":692,"text":620},{"id":832,"depth":692,"text":833},"md",null,{},"\u002Finfrastructure\u002Fscripts\u002Freadme",{"title":138,"description":149},"infrastructure\u002Fscripts\u002FREADME","GCNf3aCxb6ik5cSP2Ve7d-39r4twP_YFkbNPI_GawU4",1795478396065]