[{"data":1,"prerenderedAt":2092,"buildId":2093},["ShallowReactive",2],{"-extending-rule-inputs":3,"-extending-rule-inputs-surround":1990,"navigation_docs":2001},{"id":4,"title":5,"body":6,"description":1981,"extension":1982,"links":1983,"meta":1984,"navigation":153,"path":1986,"seo":1987,"stem":1988,"__hash__":1989},"docs\u002F9.extending\u002F5.rule-inputs.md","Rule inputs",{"type":7,"value":8,"toc":1972},"minimark",[9,26,318,367,389,394,412,415,441,445,470,487,786,811,905,910,935,964,971,978,993,997,1023,1026,1256,1270,1292,1296,1303,1307,1314,1865,1950,1959,1968],[10,11,12,13,17,18,21,22,25],"p",{},"A Rule reads its file through ",[14,15,16],"code",{},"ctx.file"," and the Project Inventory through ",[14,19,20],{},"ctx.project",". Any other file, directory listing, or path check goes through ",[14,23,24],{},"ctx.fs",":",[27,28,33],"pre",{"className":29,"code":30,"language":31,"meta":32,"style":32},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const isRecord = (value: unknown): value is Record\u003Cstring, unknown> =>\n  typeof value === \"object\" && value !== null && !Array.isArray(value);\n\ncreate(ctx) {\n  const pkg = ctx.fs.readJson(\"package.json\");\n  if (!isRecord(pkg) || !isRecord(pkg.dependencies) || !pkg.dependencies.acme) return;\n  const config = ctx.fs.readText(\"acme.config.ts\");\n  \u002F\u002F ...\n}\n","ts","",[14,34,35,94,148,155,167,208,271,305,312],{"__ignoreMap":32},[36,37,40,44,48,52,55,59,61,65,68,71,74,77,80,83,86,88,91],"span",{"class":38,"line":39},"line",1,[36,41,43],{"class":42},"spNyl","const",[36,45,47],{"class":46},"sTEyZ"," isRecord ",[36,49,51],{"class":50},"sMK4o","=",[36,53,54],{"class":50}," (",[36,56,58],{"class":57},"sHdIc","value",[36,60,25],{"class":50},[36,62,64],{"class":63},"sBMFI"," unknown",[36,66,67],{"class":50},"):",[36,69,70],{"class":57}," value",[36,72,73],{"class":50}," is",[36,75,76],{"class":63}," Record",[36,78,79],{"class":50},"\u003C",[36,81,82],{"class":63},"string",[36,84,85],{"class":50},",",[36,87,64],{"class":63},[36,89,90],{"class":50},">",[36,92,93],{"class":42}," =>\n",[36,95,97,100,103,106,109,113,116,119,121,124,127,129,132,135,138,142,145],{"class":38,"line":96},2,[36,98,99],{"class":50},"  typeof",[36,101,102],{"class":46}," value ",[36,104,105],{"class":50},"===",[36,107,108],{"class":50}," \"",[36,110,112],{"class":111},"sfazB","object",[36,114,115],{"class":50},"\"",[36,117,118],{"class":50}," &&",[36,120,102],{"class":46},[36,122,123],{"class":50},"!==",[36,125,126],{"class":50}," null",[36,128,118],{"class":50},[36,130,131],{"class":50}," !",[36,133,134],{"class":46},"Array",[36,136,137],{"class":50},".",[36,139,141],{"class":140},"s2Zo4","isArray",[36,143,144],{"class":46},"(value)",[36,146,147],{"class":50},";\n",[36,149,151],{"class":38,"line":150},3,[36,152,154],{"emptyLinePlaceholder":153},true,"\n",[36,156,158,161,164],{"class":38,"line":157},4,[36,159,160],{"class":140},"create",[36,162,163],{"class":46},"(ctx) ",[36,165,166],{"class":50},"{\n",[36,168,170,173,176,179,182,184,187,189,192,196,198,201,203,206],{"class":38,"line":169},5,[36,171,172],{"class":42},"  const",[36,174,175],{"class":46}," pkg",[36,177,178],{"class":50}," =",[36,180,181],{"class":46}," ctx",[36,183,137],{"class":50},[36,185,186],{"class":46},"fs",[36,188,137],{"class":50},[36,190,191],{"class":140},"readJson",[36,193,195],{"class":194},"swJcz","(",[36,197,115],{"class":50},[36,199,200],{"class":111},"package.json",[36,202,115],{"class":50},[36,204,205],{"class":194},")",[36,207,147],{"class":50},[36,209,211,215,217,220,223,225,228,231,234,236,238,240,242,244,247,249,251,253,255,257,259,261,264,266,269],{"class":38,"line":210},6,[36,212,214],{"class":213},"s7zQu","  if",[36,216,54],{"class":194},[36,218,219],{"class":50},"!",[36,221,222],{"class":140},"isRecord",[36,224,195],{"class":194},[36,226,227],{"class":46},"pkg",[36,229,230],{"class":194},") ",[36,232,233],{"class":50},"||",[36,235,131],{"class":50},[36,237,222],{"class":140},[36,239,195],{"class":194},[36,241,227],{"class":46},[36,243,137],{"class":50},[36,245,246],{"class":46},"dependencies",[36,248,230],{"class":194},[36,250,233],{"class":50},[36,252,131],{"class":50},[36,254,227],{"class":46},[36,256,137],{"class":50},[36,258,246],{"class":46},[36,260,137],{"class":50},[36,262,263],{"class":46},"acme",[36,265,230],{"class":194},[36,267,268],{"class":213},"return",[36,270,147],{"class":50},[36,272,274,276,279,281,283,285,287,289,292,294,296,299,301,303],{"class":38,"line":273},7,[36,275,172],{"class":42},[36,277,278],{"class":46}," config",[36,280,178],{"class":50},[36,282,181],{"class":46},[36,284,137],{"class":50},[36,286,186],{"class":46},[36,288,137],{"class":50},[36,290,291],{"class":140},"readText",[36,293,195],{"class":194},[36,295,115],{"class":50},[36,297,298],{"class":111},"acme.config.ts",[36,300,115],{"class":50},[36,302,205],{"class":194},[36,304,147],{"class":50},[36,306,308],{"class":38,"line":307},8,[36,309,311],{"class":310},"sHwdD","  \u002F\u002F ...\n",[36,313,315],{"class":38,"line":314},9,[36,316,317],{"class":50},"}\n",[10,319,320,322,323,325,326,325,328,325,331,325,334,325,337,325,340,343,344,347,348,351,352,354,355,358,359,362,363,366],{},[14,321,24],{}," has ",[14,324,291],{},", ",[14,327,191],{},[14,329,330],{},"exists",[14,332,333],{},"stat",[14,335,336],{},"readDir",[14,338,339],{},"readDirRecursive",[14,341,342],{},"realpath",", and ",[14,345,346],{},"glob",". Relative paths resolve from the project root, and missing files return ",[14,349,350],{},"undefined"," instead of throwing. ",[14,353,191],{}," returns ",[14,356,357],{},"unknown",", so validate the value before you use it. Doctor records every read as an input of the Rule, so don't import ",[14,360,361],{},"node:fs"," or read ",[14,364,365],{},"process.env"," in Rule code; built-in Rule Packs enforce this with a lint rule.",[10,368,369,372,373,376,377,379,380,383,384,343,386,388],{},[14,370,371],{},"ctx.cache"," is memory shared by all Rules for one Doctor Run. A value stored with ",[14,374,375],{},"ctx.cache.set"," carries the ",[14,378,24],{}," reads made since the matching ",[14,381,382],{},"ctx.cache.get"," missed, so another Rule that reuses it depends on the same inputs. Derive cached values only from the key, ",[14,385,24],{},[14,387,20],{},", never from the current file.",[390,391,393],"h2",{"id":392},"caching-between-runs","Caching between runs",[10,395,396,397,400,401,404,405,408,409,411],{},"Doctor caches each Rule's Diagnostics per file and replays them while the file, the Project Inventory, the Rule config, and every input the Rule read are unchanged. The cache key includes the Rule Pack ",[14,398,399],{},"name"," and ",[14,402,403],{},"version",", the Rule's ",[14,406,407],{},"meta"," (prefilter included), and the source of its ",[14,410,160],{}," function, so bump the Rule Pack version when a Rule's helpers change.",[10,413,414],{},"Doctor runs these Rules every time:",[416,417,418,428,438],"ul",{},[419,420,421,424,425,427],"li",{},[14,422,423],{},"meta.cacheScope: \"none\"",", for a Rule that reads anything ",[14,426,24],{}," cannot see;",[419,429,430,433,434,437],{},[14,431,432],{},"meta.determinism: \"env-dependent\""," or ",[14,435,436],{},"\"runtime-dependent\"",", for a Rule whose result depends on the environment or a network call;",[419,439,440],{},"a Rule that changes the Project Inventory, such as adding evidence gaps.",[390,442,444],{"id":443},"read-the-import-graph","Read the import graph",[10,446,447,448,433,451,454,455,458,459,325,462,465,466,469],{},"A workspace or manifest Rule (",[14,449,450],{},"meta.execution: \"workspace\"",[14,452,453],{},"\"manifest\"",") can read inventory built from every source file in the run through ",[14,456,457],{},"ctx.inventory",": ",[14,460,461],{},"sourcePaths()",[14,463,464],{},"componentUsage()"," for which Vue SFCs render which components, and ",[14,467,468],{},"importGraph()"," for which files import which. Doctor builds each once per run and shares it between Rules.",[10,471,472,473,433,475,477,478,400,481,483,484,486],{},"A file Rule can call ",[14,474,464],{},[14,476,468],{}," only with ",[14,479,480],{},"meta.requires.crossFile: true",[14,482,423],{},", and cannot call ",[14,485,461],{},". Doctor never replays a Rule that read this inventory from the cache.",[27,488,490],{"className":29,"code":489,"language":31,"meta":32,"style":32},"createRule({\n  meta: { id: \"acme\u002Fstore-imports-page\", execution: \"workspace\" \u002F* ... *\u002F },\n  create(ctx) {\n    return {\n      async onWorkspaceEnd() {\n        const imports = await ctx.inventory.importGraph();\n        for (const edge of imports.importsOf(\"src\u002Fstores\u002Fcart.ts\")) {\n          if (!edge.to?.includes(\"\u002Fpages\u002F\") || edge.typeOnly) continue;\n          ctx.report(diagnostics.ACME0003(), { file: edge.from, range: edge.range });\n        }\n      },\n    };\n  },\n});\n",[14,491,492,501,543,558,565,578,607,643,693,752,758,764,770,776],{"__ignoreMap":32},[36,493,494,497,499],{"class":38,"line":39},[36,495,496],{"class":140},"createRule",[36,498,195],{"class":46},[36,500,166],{"class":50},[36,502,503,506,508,511,514,516,518,521,523,525,528,530,532,535,537,540],{"class":38,"line":96},[36,504,505],{"class":194},"  meta",[36,507,25],{"class":50},[36,509,510],{"class":50}," {",[36,512,513],{"class":194}," id",[36,515,25],{"class":50},[36,517,108],{"class":50},[36,519,520],{"class":111},"acme\u002Fstore-imports-page",[36,522,115],{"class":50},[36,524,85],{"class":50},[36,526,527],{"class":194}," execution",[36,529,25],{"class":50},[36,531,108],{"class":50},[36,533,534],{"class":111},"workspace",[36,536,115],{"class":50},[36,538,539],{"class":310}," \u002F* ... *\u002F",[36,541,542],{"class":50}," },\n",[36,544,545,548,550,553,555],{"class":38,"line":150},[36,546,547],{"class":194},"  create",[36,549,195],{"class":50},[36,551,552],{"class":57},"ctx",[36,554,205],{"class":50},[36,556,557],{"class":50}," {\n",[36,559,560,563],{"class":38,"line":157},[36,561,562],{"class":213},"    return",[36,564,557],{"class":50},[36,566,567,570,573,576],{"class":38,"line":169},[36,568,569],{"class":42},"      async",[36,571,572],{"class":194}," onWorkspaceEnd",[36,574,575],{"class":50},"()",[36,577,557],{"class":50},[36,579,580,583,586,588,591,593,595,598,600,603,605],{"class":38,"line":210},[36,581,582],{"class":42},"        const",[36,584,585],{"class":46}," imports",[36,587,178],{"class":50},[36,589,590],{"class":213}," await",[36,592,181],{"class":46},[36,594,137],{"class":50},[36,596,597],{"class":46},"inventory",[36,599,137],{"class":50},[36,601,602],{"class":140},"importGraph",[36,604,575],{"class":194},[36,606,147],{"class":50},[36,608,609,612,614,616,619,622,624,626,629,631,633,636,638,641],{"class":38,"line":273},[36,610,611],{"class":213},"        for",[36,613,54],{"class":194},[36,615,43],{"class":42},[36,617,618],{"class":46}," edge",[36,620,621],{"class":50}," of",[36,623,585],{"class":46},[36,625,137],{"class":50},[36,627,628],{"class":140},"importsOf",[36,630,195],{"class":194},[36,632,115],{"class":50},[36,634,635],{"class":111},"src\u002Fstores\u002Fcart.ts",[36,637,115],{"class":50},[36,639,640],{"class":194},")) ",[36,642,166],{"class":50},[36,644,645,648,650,652,655,657,660,663,666,668,670,673,675,677,679,681,683,686,688,691],{"class":38,"line":307},[36,646,647],{"class":213},"          if",[36,649,54],{"class":194},[36,651,219],{"class":50},[36,653,654],{"class":46},"edge",[36,656,137],{"class":50},[36,658,659],{"class":46},"to",[36,661,662],{"class":50},"?.",[36,664,665],{"class":140},"includes",[36,667,195],{"class":194},[36,669,115],{"class":50},[36,671,672],{"class":111},"\u002Fpages\u002F",[36,674,115],{"class":50},[36,676,230],{"class":194},[36,678,233],{"class":50},[36,680,618],{"class":46},[36,682,137],{"class":50},[36,684,685],{"class":46},"typeOnly",[36,687,230],{"class":194},[36,689,690],{"class":213},"continue",[36,692,147],{"class":50},[36,694,695,698,700,703,705,708,710,713,715,717,719,722,724,726,728,731,733,736,738,740,742,745,748,750],{"class":38,"line":314},[36,696,697],{"class":46},"          ctx",[36,699,137],{"class":50},[36,701,702],{"class":140},"report",[36,704,195],{"class":194},[36,706,707],{"class":46},"diagnostics",[36,709,137],{"class":50},[36,711,712],{"class":140},"ACME0003",[36,714,575],{"class":194},[36,716,85],{"class":50},[36,718,510],{"class":50},[36,720,721],{"class":194}," file",[36,723,25],{"class":50},[36,725,618],{"class":46},[36,727,137],{"class":50},[36,729,730],{"class":46},"from",[36,732,85],{"class":50},[36,734,735],{"class":194}," range",[36,737,25],{"class":50},[36,739,618],{"class":46},[36,741,137],{"class":50},[36,743,744],{"class":46},"range",[36,746,747],{"class":50}," }",[36,749,205],{"class":194},[36,751,147],{"class":50},[36,753,755],{"class":38,"line":754},10,[36,756,757],{"class":50},"        }\n",[36,759,761],{"class":38,"line":760},11,[36,762,763],{"class":50},"      },\n",[36,765,767],{"class":38,"line":766},12,[36,768,769],{"class":50},"    };\n",[36,771,773],{"class":38,"line":772},13,[36,774,775],{"class":50},"  },\n",[36,777,779,782,784],{"class":38,"line":778},14,[36,780,781],{"class":50},"}",[36,783,205],{"class":46},[36,785,147],{"class":50},[10,787,788,790,791,794,795,325,798,343,801,804,805,400,807,810],{},[14,789,468],{}," resolves the specifiers Doctor resolves for ",[14,792,793],{},"--analyses dead-code",": relative paths and the ",[14,796,797],{},"~\u002F",[14,799,800],{},"@\u002F",[14,802,803],{},"~~\u002F"," aliases. Paths are absolute, and ",[14,806,628],{},[14,808,809],{},"importersOf"," also take paths relative to the project root.",[416,812,813,819,877,886],{},[419,814,815,818],{},[14,816,817],{},"files",": every source file with File Facts.",[419,820,821,824,825,828,829,832,833,836,837,839,840,842,843,846,847,54,850,325,853,325,856,859,860,863,864,866,867,400,870,873,874,876],{},[14,822,823],{},"edges",": one entry per ",[14,826,827],{},"import"," declaration, ",[14,830,831],{},"export ... from"," re-export, ",[14,834,835],{},"import()"," with a string literal, and Nuxt or Nitro auto-import of a project file. Each edge has ",[14,838,730],{},"; ",[14,841,659],{}," when the specifier resolves to a file in the run; ",[14,844,845],{},"specifier"," as written; ",[14,848,849],{},"kind",[14,851,852],{},"\"import\"",[14,854,855],{},"\"re-export\"",[14,857,858],{},"\"dynamic-import\"",", or ",[14,861,862],{},"\"auto-import\"","); ",[14,865,685],{}," for ",[14,868,869],{},"import type",[14,871,872],{},"export type ... from","; and ",[14,875,744],{},". A file's written edges come in source order, then its auto-import edges.",[419,878,879,400,882,885],{},[14,880,881],{},"importsOf(file)",[14,883,884],{},"importersOf(file)",": the edges from a file, and the edges that resolve to it.",[419,887,888,891,892,400,894,897,898,901,902,137],{},[14,889,890],{},"cycles",": groups of two or more files joined by static runtime imports, re-exports, and auto-imports. Each has sorted ",[14,893,817],{},[14,895,896],{},"path",", one shortest loop through the group. A loop never combines Nuxt app and Nitro auto-imports, and type-only edges and dynamic imports never form one. These are the cycles ",[14,899,900],{},"--analyses graph"," reports as ",[14,903,904],{},"DOC0001",[906,907,909],"h3",{"id":908},"auto-import-edges","Auto-import edges",[10,911,912,913,915,916,918,919,839,922,924,925,928,929,433,932,137],{},"In a Nuxt app, composables, utils, stores, and server utils call each other through auto-imports with no import statement. An ",[14,914,862],{}," edge goes from a script that reads an auto-imported value to the project file Nuxt or Nitro imports it from. ",[14,917,845],{}," is the identifier, such as ",[14,920,921],{},"useCart",[14,923,744],{}," is the file's first runtime read of it; ",[14,926,927],{},"autoImportBundle"," is ",[14,930,931],{},"\"nuxt\"",[14,933,934],{},"\"nitro\"",[10,936,937,938,433,941,944,945,948,949,400,952,955,956,958,959,961,962,137],{},"Doctor adds one edge per identifier, file, and bundle, only for reads that no local declaration or import shadows, and only for sources inside the run, never packages such as ",[14,939,940],{},"vue",[14,942,943],{},"#app",". A file reached from both app and Nitro entry points can have edges in both bundles. ",[14,946,947],{},"typeof"," type queries and assignment targets are not reads. Vue SFCs contribute their ",[14,950,951],{},"\u003Cscript>",[14,953,954],{},"\u003Cscript setup>"," references, and a ",[14,957,954],{}," local doesn't shadow a name in ",[14,960,951],{},". Template expressions add no edges; rendered components are in ",[14,963,464],{},[10,965,966,967,970],{},"Files in a layer's ",[14,968,969],{},"serverDir",", resolved Nitro handlers and plugins, and their resolved dependencies use Nitro's registry, subject to Nitro's injection settings, file filters, and opt-out markers. A scan directory alone doesn't prove a file runs in Nitro, and Doctor reports an evidence gap for Nitro-scanned files it cannot place in either bundle. The app and Nitro enablement settings are independent.",[10,972,973,974,977],{},"Doctor reads the resolved registries from ",[14,975,976],{},".nuxt\u002Fdoctor.manifest.json","; raw app collision candidates create no edges. The Nuxt bridge checks Nitro's cached registry against a fresh scan with Nitro's installed Unimport, and Doctor rechecks the scan's export results, including star re-exports and symlinks. Custom scan filters are recorded as decisions for the paths Nitro saw, so a new path needs a fresh prepare. A custom Nitro auto-import resolver can change the target for each importer, so Doctor withholds Nitro edges rather than replaying it.",[10,979,980,981,984,985,988,989,992],{},"When the manifest or registry evidence is missing, stale, or unverifiable, Doctor withholds that registry's edges and reports an evidence gap. Run ",[14,982,983],{},"nuxt prepare"," again to refresh it. The standalone CLI uses its own scanner only when the versions match. If Nitro uses another version, run ",[14,986,987],{},"nuxt doctor",", or pass ",[14,990,991],{},"--host-extensions"," on a project you trust, to replay Nitro's installed scanner.",[390,994,996],{"id":995},"report-scope","Report scope",[10,998,999,1000,1003,1004,1007,1008,1011,1012,1015,1016,1019,1020,1022],{},"A file Rule reports into the file it analyzes: the reported ",[14,1001,1002],{},"file"," and every ",[14,1005,1006],{},"related"," location must be ",[14,1009,1010],{},"ctx.file.path",". That is the default ",[14,1013,1014],{},"meta.reportScope: \"file\"",", and Doctor enforces it. A file Rule that reports anywhere else stops the run with ",[14,1017,1018],{},"DOC0030",", naming the Rule, the analyzed file, and the other file. Evidence ",[14,1021,1002],{}," entries are not report locations and are not checked.",[10,1024,1025],{},"A file Rule that reports into other files, such as the module an import resolves to, declares it:",[27,1027,1029],{"className":29,"code":1028,"language":31,"meta":32,"style":32},"createRule({\n  meta: {\n    id: \"acme\u002Fimported-legacy\",\n    title: \"Legacy module\",\n    category: \"imports\",\n    severity: \"warn\",\n    reportScope: \"project\",\n  },\n  create(ctx) {\n    \u002F\u002F ...\n    ctx.report(diagnostics.ACME0002(), {\n      file: target,\n      related: [{ file: ctx.file.path, message: \"Imported here\" }],\n    });\n  },\n});\n",[14,1030,1031,1039,1047,1064,1080,1096,1112,1128,1132,1144,1149,1173,1185,1233,1242,1247],{"__ignoreMap":32},[36,1032,1033,1035,1037],{"class":38,"line":39},[36,1034,496],{"class":140},[36,1036,195],{"class":46},[36,1038,166],{"class":50},[36,1040,1041,1043,1045],{"class":38,"line":96},[36,1042,505],{"class":194},[36,1044,25],{"class":50},[36,1046,557],{"class":50},[36,1048,1049,1052,1054,1056,1059,1061],{"class":38,"line":150},[36,1050,1051],{"class":194},"    id",[36,1053,25],{"class":50},[36,1055,108],{"class":50},[36,1057,1058],{"class":111},"acme\u002Fimported-legacy",[36,1060,115],{"class":50},[36,1062,1063],{"class":50},",\n",[36,1065,1066,1069,1071,1073,1076,1078],{"class":38,"line":157},[36,1067,1068],{"class":194},"    title",[36,1070,25],{"class":50},[36,1072,108],{"class":50},[36,1074,1075],{"class":111},"Legacy module",[36,1077,115],{"class":50},[36,1079,1063],{"class":50},[36,1081,1082,1085,1087,1089,1092,1094],{"class":38,"line":169},[36,1083,1084],{"class":194},"    category",[36,1086,25],{"class":50},[36,1088,108],{"class":50},[36,1090,1091],{"class":111},"imports",[36,1093,115],{"class":50},[36,1095,1063],{"class":50},[36,1097,1098,1101,1103,1105,1108,1110],{"class":38,"line":210},[36,1099,1100],{"class":194},"    severity",[36,1102,25],{"class":50},[36,1104,108],{"class":50},[36,1106,1107],{"class":111},"warn",[36,1109,115],{"class":50},[36,1111,1063],{"class":50},[36,1113,1114,1117,1119,1121,1124,1126],{"class":38,"line":273},[36,1115,1116],{"class":194},"    reportScope",[36,1118,25],{"class":50},[36,1120,108],{"class":50},[36,1122,1123],{"class":111},"project",[36,1125,115],{"class":50},[36,1127,1063],{"class":50},[36,1129,1130],{"class":38,"line":307},[36,1131,775],{"class":50},[36,1133,1134,1136,1138,1140,1142],{"class":38,"line":314},[36,1135,547],{"class":194},[36,1137,195],{"class":50},[36,1139,552],{"class":57},[36,1141,205],{"class":50},[36,1143,557],{"class":50},[36,1145,1146],{"class":38,"line":754},[36,1147,1148],{"class":310},"    \u002F\u002F ...\n",[36,1150,1151,1154,1156,1158,1160,1162,1164,1167,1169,1171],{"class":38,"line":760},[36,1152,1153],{"class":46},"    ctx",[36,1155,137],{"class":50},[36,1157,702],{"class":140},[36,1159,195],{"class":194},[36,1161,707],{"class":46},[36,1163,137],{"class":50},[36,1165,1166],{"class":140},"ACME0002",[36,1168,575],{"class":194},[36,1170,85],{"class":50},[36,1172,557],{"class":50},[36,1174,1175,1178,1180,1183],{"class":38,"line":766},[36,1176,1177],{"class":194},"      file",[36,1179,25],{"class":50},[36,1181,1182],{"class":46}," target",[36,1184,1063],{"class":50},[36,1186,1187,1190,1192,1195,1198,1200,1202,1204,1206,1208,1210,1212,1214,1217,1219,1221,1224,1226,1228,1231],{"class":38,"line":772},[36,1188,1189],{"class":194},"      related",[36,1191,25],{"class":50},[36,1193,1194],{"class":194}," [",[36,1196,1197],{"class":50},"{",[36,1199,721],{"class":194},[36,1201,25],{"class":50},[36,1203,181],{"class":46},[36,1205,137],{"class":50},[36,1207,1002],{"class":46},[36,1209,137],{"class":50},[36,1211,896],{"class":46},[36,1213,85],{"class":50},[36,1215,1216],{"class":194}," message",[36,1218,25],{"class":50},[36,1220,108],{"class":50},[36,1222,1223],{"class":111},"Imported here",[36,1225,115],{"class":50},[36,1227,747],{"class":50},[36,1229,1230],{"class":194},"]",[36,1232,1063],{"class":50},[36,1234,1235,1238,1240],{"class":38,"line":778},[36,1236,1237],{"class":50},"    }",[36,1239,205],{"class":194},[36,1241,147],{"class":50},[36,1243,1245],{"class":38,"line":1244},15,[36,1246,775],{"class":50},[36,1248,1250,1252,1254],{"class":38,"line":1249},16,[36,1251,781],{"class":50},[36,1253,205],{"class":46},[36,1255,147],{"class":50},[10,1257,1258,1259,433,1262,1265,1266,1269],{},"Manifest and workspace Rules (",[14,1260,1261],{},"execution: \"manifest\"",[14,1263,1264],{},"\"workspace\"",") always report on the project; ",[14,1267,1268],{},"reportScope"," doesn't apply to them.",[10,1271,1272,1273,1276,1277,1279,1280,1283,1284,1287,1288,1291],{},"The scope decides what a ",[14,1274,1275],{},"--changed"," run analyzes. A file-scoped Rule's Diagnostics can only land in the file it analyzed, so ",[14,1278,1275],{}," runs file-scoped Rules on changed files only, and doesn't parse unchanged files unless something needs them. Project-scoped file Rules, manifest Rules, workspace Rules, and ",[14,1281,1282],{},"--analyses"," still see the whole project. Either way the report equals a full run filtered to the changed lines, so declare ",[14,1285,1286],{},"\"project\""," whenever a Rule can report outside its file. The ",[14,1289,1290],{},"affectedFiles"," run option scopes a run the same way, to whole files instead of changed lines; the Vite Plugin Surface passes the files a dev server saw saved.",[390,1293,1295],{"id":1294},"activation-scope","Activation scope",[10,1297,1298,1299,1302],{},"In a workspace, an activated Rule Pack runs its Rules on the files of the workspace packages that activate it. A Rule about integration code, such as a Vite plugin or Nuxt module that registers Nitro handlers for an app elsewhere, declares ",[14,1300,1301],{},"meta.activationScope: \"workspace\""," to check every workspace package once its Rule Pack activates for any of them.",[390,1304,1306],{"id":1305},"evidence-sources","Evidence Sources",[10,1308,1309,1310,1313],{},"An Evidence Source reads Runtime Evidence the source tree doesn't hold, such as a saved toolchain report. Doctor calls it only when the run is given an input for it. Declare it on the extension, not in ",[14,1311,1312],{},"setup",", so the CLI can discover its flags without running setup:",[27,1315,1318],{"className":29,"code":1316,"filename":1317,"language":31,"meta":32,"style":32},"import { defineDoctorConfig } from \"vite-doctor\u002Fconfig\";\nimport { defineDoctorExtension, type EvidenceSource } from \"vite-doctor\u002Fextension\";\nimport { readFile } from \"node:fs\u002Fpromises\";\nimport { resolve } from \"node:path\";\n\nconst build: EvidenceSource\u003Cstring> = {\n  name: \"build\",\n  label: \"build report\",\n  options: {\n    report: { help: \"Read a saved build report.\", value: \"path\" },\n  },\n  fromOptions: ({ report }) => report![0]!,\n  toOptions: (report) => ({ report: [report] }),\n  async collect(report, { project }) {\n    try {\n      const data = JSON.parse(await readFile(resolve(project.root, report), \"utf8\"));\n      return { evidence: { data }, targets: [report] };\n    } catch {\n      return { evidence: {}, gaps: [{ message: `Could not read build report ${report}.` }] };\n    }\n  },\n};\n\nexport default defineDoctorConfig({\n  extensions: [defineDoctorExtension({ name: \"acme\u002Fbuild\", sources: [build] })],\n});\n","doctor.config.ts",[14,1319,1320,1343,1373,1395,1417,1421,1442,1458,1474,1483,1518,1522,1557,1589,1612,1619,1678,1713,1723,1774,1780,1785,1790,1795,1810,1856],{"__ignoreMap":32},[36,1321,1322,1324,1326,1329,1331,1334,1336,1339,1341],{"class":38,"line":39},[36,1323,827],{"class":213},[36,1325,510],{"class":50},[36,1327,1328],{"class":46}," defineDoctorConfig",[36,1330,747],{"class":50},[36,1332,1333],{"class":213}," from",[36,1335,108],{"class":50},[36,1337,1338],{"class":111},"vite-doctor\u002Fconfig",[36,1340,115],{"class":50},[36,1342,147],{"class":50},[36,1344,1345,1347,1349,1352,1354,1357,1360,1362,1364,1366,1369,1371],{"class":38,"line":96},[36,1346,827],{"class":213},[36,1348,510],{"class":50},[36,1350,1351],{"class":46}," defineDoctorExtension",[36,1353,85],{"class":50},[36,1355,1356],{"class":213}," type",[36,1358,1359],{"class":46}," EvidenceSource",[36,1361,747],{"class":50},[36,1363,1333],{"class":213},[36,1365,108],{"class":50},[36,1367,1368],{"class":111},"vite-doctor\u002Fextension",[36,1370,115],{"class":50},[36,1372,147],{"class":50},[36,1374,1375,1377,1379,1382,1384,1386,1388,1391,1393],{"class":38,"line":150},[36,1376,827],{"class":213},[36,1378,510],{"class":50},[36,1380,1381],{"class":46}," readFile",[36,1383,747],{"class":50},[36,1385,1333],{"class":213},[36,1387,108],{"class":50},[36,1389,1390],{"class":111},"node:fs\u002Fpromises",[36,1392,115],{"class":50},[36,1394,147],{"class":50},[36,1396,1397,1399,1401,1404,1406,1408,1410,1413,1415],{"class":38,"line":157},[36,1398,827],{"class":213},[36,1400,510],{"class":50},[36,1402,1403],{"class":46}," resolve",[36,1405,747],{"class":50},[36,1407,1333],{"class":213},[36,1409,108],{"class":50},[36,1411,1412],{"class":111},"node:path",[36,1414,115],{"class":50},[36,1416,147],{"class":50},[36,1418,1419],{"class":38,"line":169},[36,1420,154],{"emptyLinePlaceholder":153},[36,1422,1423,1425,1428,1430,1432,1434,1436,1438,1440],{"class":38,"line":210},[36,1424,43],{"class":42},[36,1426,1427],{"class":46}," build",[36,1429,25],{"class":50},[36,1431,1359],{"class":63},[36,1433,79],{"class":50},[36,1435,82],{"class":63},[36,1437,90],{"class":50},[36,1439,178],{"class":50},[36,1441,557],{"class":50},[36,1443,1444,1447,1449,1451,1454,1456],{"class":38,"line":273},[36,1445,1446],{"class":194},"  name",[36,1448,25],{"class":50},[36,1450,108],{"class":50},[36,1452,1453],{"class":111},"build",[36,1455,115],{"class":50},[36,1457,1063],{"class":50},[36,1459,1460,1463,1465,1467,1470,1472],{"class":38,"line":307},[36,1461,1462],{"class":194},"  label",[36,1464,25],{"class":50},[36,1466,108],{"class":50},[36,1468,1469],{"class":111},"build report",[36,1471,115],{"class":50},[36,1473,1063],{"class":50},[36,1475,1476,1479,1481],{"class":38,"line":314},[36,1477,1478],{"class":194},"  options",[36,1480,25],{"class":50},[36,1482,557],{"class":50},[36,1484,1485,1488,1490,1492,1495,1497,1499,1502,1504,1506,1508,1510,1512,1514,1516],{"class":38,"line":754},[36,1486,1487],{"class":194},"    report",[36,1489,25],{"class":50},[36,1491,510],{"class":50},[36,1493,1494],{"class":194}," help",[36,1496,25],{"class":50},[36,1498,108],{"class":50},[36,1500,1501],{"class":111},"Read a saved build report.",[36,1503,115],{"class":50},[36,1505,85],{"class":50},[36,1507,70],{"class":194},[36,1509,25],{"class":50},[36,1511,108],{"class":50},[36,1513,896],{"class":111},[36,1515,115],{"class":50},[36,1517,542],{"class":50},[36,1519,1520],{"class":38,"line":760},[36,1521,775],{"class":50},[36,1523,1524,1527,1529,1532,1535,1538,1541,1543,1545,1548,1552,1554],{"class":38,"line":766},[36,1525,1526],{"class":140},"  fromOptions",[36,1528,25],{"class":50},[36,1530,1531],{"class":50}," ({",[36,1533,1534],{"class":57}," report",[36,1536,1537],{"class":50}," })",[36,1539,1540],{"class":42}," =>",[36,1542,1534],{"class":46},[36,1544,219],{"class":50},[36,1546,1547],{"class":46},"[",[36,1549,1551],{"class":1550},"sbssI","0",[36,1553,1230],{"class":46},[36,1555,1556],{"class":50},"!,\n",[36,1558,1559,1562,1564,1566,1568,1570,1572,1574,1576,1578,1580,1583,1585,1587],{"class":38,"line":772},[36,1560,1561],{"class":140},"  toOptions",[36,1563,25],{"class":50},[36,1565,54],{"class":50},[36,1567,702],{"class":57},[36,1569,205],{"class":50},[36,1571,1540],{"class":42},[36,1573,54],{"class":46},[36,1575,1197],{"class":50},[36,1577,1534],{"class":194},[36,1579,25],{"class":50},[36,1581,1582],{"class":46}," [report] ",[36,1584,781],{"class":50},[36,1586,205],{"class":46},[36,1588,1063],{"class":50},[36,1590,1591,1594,1597,1599,1601,1603,1605,1608,1610],{"class":38,"line":778},[36,1592,1593],{"class":42},"  async",[36,1595,1596],{"class":194}," collect",[36,1598,195],{"class":50},[36,1600,702],{"class":57},[36,1602,85],{"class":50},[36,1604,510],{"class":50},[36,1606,1607],{"class":57}," project",[36,1609,1537],{"class":50},[36,1611,557],{"class":50},[36,1613,1614,1617],{"class":38,"line":1244},[36,1615,1616],{"class":213},"    try",[36,1618,557],{"class":50},[36,1620,1621,1624,1627,1629,1632,1634,1637,1639,1642,1644,1646,1649,1651,1653,1655,1658,1660,1662,1664,1666,1668,1671,1673,1676],{"class":38,"line":1249},[36,1622,1623],{"class":42},"      const",[36,1625,1626],{"class":46}," data",[36,1628,178],{"class":50},[36,1630,1631],{"class":46}," JSON",[36,1633,137],{"class":50},[36,1635,1636],{"class":140},"parse",[36,1638,195],{"class":194},[36,1640,1641],{"class":213},"await",[36,1643,1381],{"class":140},[36,1645,195],{"class":194},[36,1647,1648],{"class":140},"resolve",[36,1650,195],{"class":194},[36,1652,1123],{"class":46},[36,1654,137],{"class":50},[36,1656,1657],{"class":46},"root",[36,1659,85],{"class":50},[36,1661,1534],{"class":46},[36,1663,205],{"class":194},[36,1665,85],{"class":50},[36,1667,108],{"class":50},[36,1669,1670],{"class":111},"utf8",[36,1672,115],{"class":50},[36,1674,1675],{"class":194},"))",[36,1677,147],{"class":50},[36,1679,1681,1684,1686,1689,1691,1693,1695,1698,1701,1703,1705,1707,1710],{"class":38,"line":1680},17,[36,1682,1683],{"class":213},"      return",[36,1685,510],{"class":50},[36,1687,1688],{"class":194}," evidence",[36,1690,25],{"class":50},[36,1692,510],{"class":50},[36,1694,1626],{"class":46},[36,1696,1697],{"class":50}," },",[36,1699,1700],{"class":194}," targets",[36,1702,25],{"class":50},[36,1704,1194],{"class":194},[36,1706,702],{"class":46},[36,1708,1709],{"class":194},"] ",[36,1711,1712],{"class":50},"};\n",[36,1714,1716,1718,1721],{"class":38,"line":1715},18,[36,1717,1237],{"class":50},[36,1719,1720],{"class":213}," catch",[36,1722,557],{"class":50},[36,1724,1726,1728,1730,1732,1734,1737,1740,1742,1744,1746,1748,1750,1753,1756,1759,1761,1763,1765,1768,1770,1772],{"class":38,"line":1725},19,[36,1727,1683],{"class":213},[36,1729,510],{"class":50},[36,1731,1688],{"class":194},[36,1733,25],{"class":50},[36,1735,1736],{"class":50}," {},",[36,1738,1739],{"class":194}," gaps",[36,1741,25],{"class":50},[36,1743,1194],{"class":194},[36,1745,1197],{"class":50},[36,1747,1216],{"class":194},[36,1749,25],{"class":50},[36,1751,1752],{"class":50}," `",[36,1754,1755],{"class":111},"Could not read build report ",[36,1757,1758],{"class":50},"${",[36,1760,702],{"class":46},[36,1762,781],{"class":50},[36,1764,137],{"class":111},[36,1766,1767],{"class":50},"`",[36,1769,747],{"class":50},[36,1771,1709],{"class":194},[36,1773,1712],{"class":50},[36,1775,1777],{"class":38,"line":1776},20,[36,1778,1779],{"class":50},"    }\n",[36,1781,1783],{"class":38,"line":1782},21,[36,1784,775],{"class":50},[36,1786,1788],{"class":38,"line":1787},22,[36,1789,1712],{"class":50},[36,1791,1793],{"class":38,"line":1792},23,[36,1794,154],{"emptyLinePlaceholder":153},[36,1796,1798,1801,1804,1806,1808],{"class":38,"line":1797},24,[36,1799,1800],{"class":213},"export",[36,1802,1803],{"class":213}," default",[36,1805,1328],{"class":140},[36,1807,195],{"class":46},[36,1809,166],{"class":50},[36,1811,1813,1816,1818,1820,1823,1825,1827,1830,1832,1834,1837,1839,1841,1844,1846,1849,1851,1854],{"class":38,"line":1812},25,[36,1814,1815],{"class":194},"  extensions",[36,1817,25],{"class":50},[36,1819,1194],{"class":46},[36,1821,1822],{"class":140},"defineDoctorExtension",[36,1824,195],{"class":46},[36,1826,1197],{"class":50},[36,1828,1829],{"class":194}," name",[36,1831,25],{"class":50},[36,1833,108],{"class":50},[36,1835,1836],{"class":111},"acme\u002Fbuild",[36,1838,115],{"class":50},[36,1840,85],{"class":50},[36,1842,1843],{"class":194}," sources",[36,1845,25],{"class":50},[36,1847,1848],{"class":46}," [build] ",[36,1850,781],{"class":50},[36,1852,1853],{"class":46},")]",[36,1855,1063],{"class":50},[36,1857,1859,1861,1863],{"class":38,"line":1858},26,[36,1860,781],{"class":50},[36,1862,205],{"class":46},[36,1864,147],{"class":50},[416,1866,1867,1890,1903,1929],{},[419,1868,1869,1873,1874,1877,1878,1881,1882,1885,1886,1889],{},[1870,1871,1872],"strong",{},"Flags."," Each option becomes ",[14,1875,1876],{},"--\u003Csource>-\u003Coption>",", here ",[14,1879,1880],{},"--build-report",". A flag must be unique across sources and must not overlap a built-in flag. The CLI reads flag values as strings once ",[14,1883,1884],{},"--config"," has loaded. Use ",[14,1887,1888],{},"--flag=value"," when the value starts with a dash.",[419,1891,1892,1895,1896,1899,1900,137],{},[1870,1893,1894],{},"Inputs."," ",[14,1897,1898],{},"fromOptions"," turns the flag values into the source's input. Inputs can carry tokens, so Doctor never reads them from ",[14,1901,1902],{},"doctor.config.*",[419,1904,1905,1908,1909,1912,1913,1916,1917,1920,1921,1924,1925,1928],{},[1870,1906,1907],{},"Evidence."," Doctor waits for every input's ",[14,1910,1911],{},"validate"," before it runs any contributor or collector, then stores what ",[14,1914,1915],{},"collect"," returns as ",[14,1918,1919],{},"project.runtimeEvidence.build"," for Rules to read. Each gap makes the report ",[14,1922,1923],{},"incomplete"," (exit ",[14,1926,1927],{},"3",").",[419,1930,1931,1895,1934,1937,1938,1941,1942,1945,1946,1949],{},[1870,1932,1933],{},"Reports.",[14,1935,1936],{},"sources"," in the JSON report lists each source with its ",[14,1939,1940],{},"targets",". Rerun commands repeat the original CLI flags, or use ",[14,1943,1944],{},"toOptions"," for programmatic input. Values marked ",[14,1947,1948],{},"secret"," are redacted.",[10,1951,1952,1953,1955,1956,137],{},"A source the run reads can't share its ",[14,1954,399],{}," with a Runtime Evidence contributor, because both write ",[14,1957,1958],{},"project.runtimeEvidence.\u003Cname>",[10,1960,1961,1962,1967],{},"Doctor never connects to a running server. To check a running MCP server, use is-mcp-ok as the ",[1963,1964,1966],"a",{"href":1965},"\u002Fmodel-context-protocol","MCP guide"," describes.",[1969,1970,1971],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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 pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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 .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 .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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":32,"searchDepth":96,"depth":96,"links":1973},[1974,1975,1978,1979,1980],{"id":392,"depth":96,"text":393},{"id":443,"depth":96,"text":444,"children":1976},[1977],{"id":908,"depth":150,"text":909},{"id":995,"depth":96,"text":996},{"id":1294,"depth":96,"text":1295},{"id":1305,"depth":96,"text":1306},"Read files, the import graph, and outside evidence from a Rule, and declare where it reports.","md",null,{"icon":1985},"i-lucide-file-input","\u002Fextending\u002Frule-inputs",{"title":5,"description":1981},"9.extending\u002F5.rule-inputs","G7kM3VXXeXeZtecrt89A8LLztzDZheHCaRUnDmWtzrs",[1991,1996],{"title":1992,"path":1993,"stem":1994,"description":1995,"children":-1},"Test a Rule","\u002Fextending\u002Ftesting","9.extending\u002F4.testing","Test Rules with fixture projects from vite-doctor\u002Ftestkit, and run Rules on test files.",{"title":1997,"path":1998,"stem":1999,"description":2000,"children":-1},"H3","\u002Fh3","9.h3","Diagnose H3 request handling and H3 v2 migrations wherever H3 runs, in standalone H3 servers and in Nitro and Nuxt server code.",[2002,2030,2034,2038,2042,2046,2050,2062,2066,2084,2085,2088],{"title":2003,"path":2004,"stem":2005,"children":2006,"icon":2029},"CLI","\u002Fcli","1.cli\u002F1.index",[2007,2009,2013,2017,2021,2025],{"title":2008,"path":2004,"stem":2005},"Run Doctor",{"title":2010,"path":2011,"stem":2012},"Reports","\u002Fcli\u002Freports","1.cli\u002F2.reports",{"title":2014,"path":2015,"stem":2016},"Configuration","\u002Fcli\u002Fconfiguration","1.cli\u002F3.configuration",{"title":2018,"path":2019,"stem":2020},"CI and changed files","\u002Fcli\u002Fci","1.cli\u002F4.ci",{"title":2022,"path":2023,"stem":2024},"Workspaces","\u002Fcli\u002Fworkspaces","1.cli\u002F5.workspaces",{"title":2026,"path":2027,"stem":2028},"Cache and speed","\u002Fcli\u002Fcache","1.cli\u002F6.cache","i-lucide-terminal",{"title":2031,"path":2032,"stem":2033},"Nuxt","\u002Fnuxt","2.nuxt",{"title":2035,"path":2036,"stem":2037},"Vue","\u002Fvue","3.vue",{"title":2039,"path":2040,"stem":2041},"Vite","\u002Fvite","4.vite",{"title":2043,"path":2044,"stem":2045},"Nitro","\u002Fnitro","5.nitro",{"title":2047,"path":2048,"stem":2049},"TypeScript","\u002Ftypescript","6.typescript",{"title":2051,"path":2052,"stem":2053,"children":2054,"icon":2061},"Design system","\u002Fdesign-system","7.design-system\u002F1.index",[2055,2057],{"title":2056,"path":2052,"stem":2053},"Overview",{"title":2058,"path":2059,"stem":2060},"Classes and styles","\u002Fdesign-system\u002Fclasses","7.design-system\u002F2.classes","i-lucide-swatch-book",{"title":2063,"path":2064,"stem":2065},"Package","\u002Fpackage","8.package",{"title":2067,"path":2068,"stem":2069,"children":2070,"icon":2083},"Extending Doctor","\u002Fextending","9.extending\u002F1.index",[2071,2073,2077,2081,2082],{"title":2072,"path":2068,"stem":2069},"Write an extension",{"title":2074,"path":2075,"stem":2076},"Visitors","\u002Fextending\u002Fvisitors","9.extending\u002F2.visitors",{"title":2078,"path":2079,"stem":2080},"Ship with a library","\u002Fextending\u002Fshipping","9.extending\u002F3.shipping",{"title":1992,"path":1993,"stem":1994},{"title":5,"path":1986,"stem":1988},"i-lucide-puzzle",{"title":1997,"path":1998,"stem":1999},{"title":2086,"path":1965,"stem":2087},"MCP","9.model-context-protocol",{"title":2089,"path":2090,"stem":2091},"Pinia","\u002Fpinia","9.pinia",1796492443474,"1c82e0cf-90da-4346-b049-6ae71736a6b9"]