[{"data":1,"prerenderedAt":1508},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fengine":3},{"id":4,"title":5,"body":6,"description":1490,"extension":1491,"frontmatter":1492,"heading":5,"meta":1498,"navigation":1500,"order":1495,"path":1501,"seo":1502,"sitemap":1503,"source":1504,"stem":1505,"__hash__":1506,"hasPopups":1507},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fengine.md","Engine",{"type":7,"value":8,"toc":1477},"minimark",[9,28,34,59,73,791,798,1002,1008,1083,1120,1134,1138,1159,1310],[10,11,12,13,17,18,21,22,27],"p",{},"Import ",[14,15,16],"code",{},"createKubb"," from the ",[14,19,20],{},"kubb"," package to run a build from your own code. For the config file shape and the defaults the package applies, see ",[23,24,26],"a",{"href":25},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration","Configuration",".",[29,30,32],"h2",{"id":31},"createkubb",[14,33,16],{},[10,35,36,38,39,42,43,46,47,50,51,54,55,58],{},[14,37,16],{}," accepts a ",[14,40,41],{},"UserConfig"," and returns a ",[14,44,45],{},"Kubb"," instance. Call ",[14,48,49],{},".safeBuild()"," to run the pipeline and read the problems back from ",[14,52,53],{},"BuildOutput",", or ",[14,56,57],{},".build()"," to throw instead.",[10,60,61,62,64,65,68,69,72],{},"Reach for ",[14,63,16],{}," when you orchestrate several builds, inspect diagnostics, or feed Kubb output into a larger toolchain. It applies the same defaults as ",[14,66,67],{},"defineConfig",", so a shared config generates the same files from the CLI and from a script. Import it from ",[14,70,71],{},"@kubb\u002Fcore"," for a bare engine without package defaults.",[74,75,81],"pre",{"language":76,"meta":77,"code":78,"filename":79,"class":80},"typescript","twoslash","\u002F\u002F @module: esnext\nimport { createKubb } from 'kubb'\nimport { Diagnostics } from 'kubb\u002Fkit'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\nimport { pluginAxios } from '@kubb\u002Fplugin-axios'\n\nconst kubb = createKubb({\n  input: '.\u002FpetStore.yaml',\n  output: { path: '.\u002Fgen' },\n  plugins: [pluginTs(), pluginAxios()],\n})\n\nconst { files, storage, diagnostics } = await kubb.safeBuild()\n\nif (Diagnostics.hasError(diagnostics)) {\n  for (const diagnostic of diagnostics.filter(Diagnostics.isProblem)) {\n    if (diagnostic.severity === 'error') {\n      console.error(`${diagnostic.plugin ?? 'kubb'}: ${diagnostic.message}`)\n    }\n  }\n  process.exit(1)\n}\n\nfor (const { plugin, duration } of diagnostics.filter(Diagnostics.isPerformance)) {\n  console.log(`${plugin}: ${duration}ms`)\n}\nconsole.log(`Generated ${files.length} files`)\nconst paths = await storage.readKeys()\npaths.forEach((path) => console.log(`  ${path}`))","build.ts","shiki shiki-themes github-light github-dark twoslash lsp dark:github-dark",[14,82,84,113,114,113,133,113,152,113,171,113,173,113,201,113,221,113,248,113,277,113,282,113,284,113,339,113,341,113,373,113,425,113,456,113,518,113,523,113,528,113,552,113,557,113,559,113,619,113,658,113,662,113,699,113,732],{"class":83},"language-typescript",[85,86,89,93,97,103,106,109],"span",{"class":87,"style":88},"line","display: inline",[85,90,92],{"style":91},"color:#D73A49;--shiki-dark:#F97583","import",[85,94,96],{"style":95},"color:#24292E;--shiki-dark:#E1E4E8"," { ",[85,98,99],{"style":95},[85,100,16],{"class":101,"data-popup":102},"twoslash-hover","0",[85,104,105],{"style":95}," } ",[85,107,108],{"style":91},"from",[85,110,112],{"style":111},"color:#032F62;--shiki-dark:#9ECBFF"," 'kubb'","\n",[85,115,116,118,120,126,128,130],{"class":87,"style":88},[85,117,92],{"style":91},[85,119,96],{"style":95},[85,121,122],{"style":95},[85,123,125],{"class":101,"data-popup":124},"1","Diagnostics",[85,127,105],{"style":95},[85,129,108],{"style":91},[85,131,132],{"style":111}," 'kubb\u002Fkit'",[85,134,135,137,139,145,147,149],{"class":87,"style":88},[85,136,92],{"style":91},[85,138,96],{"style":95},[85,140,141],{"style":95},[85,142,144],{"class":101,"data-popup":143},"2","pluginTs",[85,146,105],{"style":95},[85,148,108],{"style":91},[85,150,151],{"style":111}," '@kubb\u002Fplugin-ts'",[85,153,154,156,158,164,166,168],{"class":87,"style":88},[85,155,92],{"style":91},[85,157,96],{"style":95},[85,159,160],{"style":95},[85,161,163],{"class":101,"data-popup":162},"3","pluginAxios",[85,165,105],{"style":95},[85,167,108],{"style":91},[85,169,170],{"style":111}," '@kubb\u002Fplugin-axios'",[85,172],{"class":87,"style":88},[85,174,175,178,182,187,190,193,198],{"class":87,"style":88},[85,176,177],{"style":91},"const",[85,179,181],{"style":180},"color:#005CC5;--shiki-dark:#79B8FF"," ",[85,183,184],{"style":180},[85,185,20],{"class":101,"data-popup":186},"4",[85,188,189],{"style":91}," =",[85,191,181],{"style":192},"color:#6F42C1;--shiki-dark:#B392F0",[85,194,195],{"style":192},[85,196,16],{"class":101,"data-popup":197},"5",[85,199,200],{"style":95},"({",[85,202,203,206,212,215,218],{"class":87,"style":88},[85,204,205],{"style":95},"  ",[85,207,208],{"style":95},[85,209,211],{"class":101,"data-popup":210},"6","input",[85,213,214],{"style":95},": ",[85,216,217],{"style":111},"'.\u002FpetStore.yaml'",[85,219,220],{"style":95},",",[85,222,223,225,231,234,240,242,245],{"class":87,"style":88},[85,224,205],{"style":95},[85,226,227],{"style":95},[85,228,230],{"class":101,"data-popup":229},"7","output",[85,232,233],{"style":95},": { ",[85,235,236],{"style":95},[85,237,239],{"class":101,"data-popup":238},"8","path",[85,241,214],{"style":95},[85,243,244],{"style":111},"'.\u002Fgen'",[85,246,247],{"style":95}," },",[85,249,250,252,258,261,266,269,274],{"class":87,"style":88},[85,251,205],{"style":95},[85,253,254],{"style":95},[85,255,257],{"class":101,"data-popup":256},"9","plugins",[85,259,260],{"style":95},": [",[85,262,263],{"style":192},[85,264,144],{"class":101,"data-popup":265},"10",[85,267,268],{"style":95},"(), ",[85,270,271],{"style":192},[85,272,163],{"class":101,"data-popup":273},"11",[85,275,276],{"style":95},"()],",[85,278,279],{"class":87,"style":88},[85,280,281],{"style":95},"})",[85,283],{"class":87,"style":88},[85,285,286,288,290,296,299,305,307,313,315,318,321,323,328,330,336],{"class":87,"style":88},[85,287,177],{"style":91},[85,289,96],{"style":95},[85,291,292],{"style":180},[85,293,295],{"class":101,"data-popup":294},"12","files",[85,297,298],{"style":95},", ",[85,300,301],{"style":180},[85,302,304],{"class":101,"data-popup":303},"13","storage",[85,306,298],{"style":95},[85,308,309],{"style":180},[85,310,312],{"class":101,"data-popup":311},"14","diagnostics",[85,314,105],{"style":95},[85,316,317],{"style":91},"=",[85,319,320],{"style":91}," await",[85,322,181],{"style":95},[85,324,325],{"style":95},[85,326,20],{"class":101,"data-popup":327},"15",[85,329,27],{"style":95},[85,331,332],{"style":192},[85,333,335],{"class":101,"data-popup":334},"16","safeBuild",[85,337,338],{"style":95},"()",[85,340],{"class":87,"style":88},[85,342,343,346,349,354,356,362,365,370],{"class":87,"style":88},[85,344,345],{"style":91},"if",[85,347,348],{"style":95}," (",[85,350,351],{"style":95},[85,352,125],{"class":101,"data-popup":353},"17",[85,355,27],{"style":95},[85,357,358],{"style":192},[85,359,361],{"class":101,"data-popup":360},"18","hasError",[85,363,364],{"style":95},"(",[85,366,367],{"style":95},[85,368,312],{"class":101,"data-popup":369},"19",[85,371,372],{"style":95},")) {",[85,374,375,378,380,382,384,390,393,395,400,402,408,410,415,417,423],{"class":87,"style":88},[85,376,377],{"style":91},"  for",[85,379,348],{"style":95},[85,381,177],{"style":91},[85,383,181],{"style":180},[85,385,386],{"style":180},[85,387,389],{"class":101,"data-popup":388},"20","diagnostic",[85,391,392],{"style":91}," of",[85,394,181],{"style":95},[85,396,397],{"style":95},[85,398,312],{"class":101,"data-popup":399},"21",[85,401,27],{"style":95},[85,403,404],{"style":192},[85,405,407],{"class":101,"data-popup":406},"22","filter",[85,409,364],{"style":95},[85,411,412],{"style":95},[85,413,125],{"class":101,"data-popup":414},"23",[85,416,27],{"style":95},[85,418,419],{"style":95},[85,420,422],{"class":101,"data-popup":421},"24","isProblem",[85,424,372],{"style":95},[85,426,427,430,432,437,439,445,447,450,453],{"class":87,"style":88},[85,428,429],{"style":91},"    if",[85,431,348],{"style":95},[85,433,434],{"style":95},[85,435,389],{"class":101,"data-popup":436},"25",[85,438,27],{"style":95},[85,440,441],{"style":95},[85,442,444],{"class":101,"data-popup":443},"26","severity",[85,446,181],{"style":95},[85,448,449],{"style":91},"===",[85,451,452],{"style":111}," 'error'",[85,454,455],{"style":95},") {",[85,457,458,461,467,469,475,477,480,485,487,493,496,499,504,506,512,515],{"class":87,"style":88},[85,459,460],{"style":95},"      ",[85,462,463],{"style":95},[85,464,466],{"class":101,"data-popup":465},"27","console",[85,468,27],{"style":95},[85,470,471],{"style":192},[85,472,474],{"class":101,"data-popup":473},"28","error",[85,476,364],{"style":95},[85,478,479],{"style":111},"`${",[85,481,482],{"style":95},[85,483,389],{"class":101,"data-popup":484},"29",[85,486,27],{"style":111},[85,488,489],{"style":95},[85,490,492],{"class":101,"data-popup":491},"30","plugin",[85,494,495],{"style":91}," ??",[85,497,498],{"style":111}," 'kubb'}: ${",[85,500,501],{"style":95},[85,502,389],{"class":101,"data-popup":503},"31",[85,505,27],{"style":111},[85,507,508],{"style":95},[85,509,511],{"class":101,"data-popup":510},"32","message",[85,513,514],{"style":111},"}`",[85,516,517],{"style":95},")",[85,519,520],{"class":87,"style":88},[85,521,522],{"style":95},"    }",[85,524,525],{"class":87,"style":88},[85,526,527],{"style":95},"  }",[85,529,530,532,538,540,546,548,550],{"class":87,"style":88},[85,531,205],{"style":95},[85,533,534],{"style":95},[85,535,537],{"class":101,"data-popup":536},"33","process",[85,539,27],{"style":95},[85,541,542],{"style":192},[85,543,545],{"class":101,"data-popup":544},"34","exit",[85,547,364],{"style":95},[85,549,124],{"style":180},[85,551,517],{"style":95},[85,553,554],{"class":87,"style":88},[85,555,556],{"style":95},"}",[85,558],{"class":87,"style":88},[85,560,561,564,566,568,570,575,577,583,585,588,590,595,597,602,604,609,611,617],{"class":87,"style":88},[85,562,563],{"style":91},"for",[85,565,348],{"style":95},[85,567,177],{"style":91},[85,569,96],{"style":95},[85,571,572],{"style":180},[85,573,492],{"class":101,"data-popup":574},"35",[85,576,298],{"style":95},[85,578,579],{"style":180},[85,580,582],{"class":101,"data-popup":581},"36","duration",[85,584,105],{"style":95},[85,586,587],{"style":91},"of",[85,589,181],{"style":95},[85,591,592],{"style":95},[85,593,312],{"class":101,"data-popup":594},"37",[85,596,27],{"style":95},[85,598,599],{"style":192},[85,600,407],{"class":101,"data-popup":601},"38",[85,603,364],{"style":95},[85,605,606],{"style":95},[85,607,125],{"class":101,"data-popup":608},"39",[85,610,27],{"style":95},[85,612,613],{"style":95},[85,614,616],{"class":101,"data-popup":615},"40","isPerformance",[85,618,372],{"style":95},[85,620,621,623,628,630,636,638,640,645,648,653,656],{"class":87,"style":88},[85,622,205],{"style":95},[85,624,625],{"style":95},[85,626,466],{"class":101,"data-popup":627},"41",[85,629,27],{"style":95},[85,631,632],{"style":192},[85,633,635],{"class":101,"data-popup":634},"42","log",[85,637,364],{"style":95},[85,639,479],{"style":111},[85,641,642],{"style":95},[85,643,492],{"class":101,"data-popup":644},"43",[85,646,647],{"style":111},"}: ${",[85,649,650],{"style":95},[85,651,582],{"class":101,"data-popup":652},"44",[85,654,655],{"style":111},"}ms`",[85,657,517],{"style":95},[85,659,660],{"class":87,"style":88},[85,661,556],{"style":95},[85,663,664,669,671,676,678,681,686,688,694,697],{"class":87,"style":88},[85,665,666],{"style":95},[85,667,466],{"class":101,"data-popup":668},"45",[85,670,27],{"style":95},[85,672,673],{"style":192},[85,674,635],{"class":101,"data-popup":675},"46",[85,677,364],{"style":95},[85,679,680],{"style":111},"`Generated ${",[85,682,683],{"style":95},[85,684,295],{"class":101,"data-popup":685},"47",[85,687,27],{"style":111},[85,689,690],{"style":180},[85,691,693],{"class":101,"data-popup":692},"48","length",[85,695,696],{"style":111},"} files`",[85,698,517],{"style":95},[85,700,701,703,705,711,713,715,717,722,724,730],{"class":87,"style":88},[85,702,177],{"style":91},[85,704,181],{"style":180},[85,706,707],{"style":180},[85,708,710],{"class":101,"data-popup":709},"49","paths",[85,712,189],{"style":91},[85,714,320],{"style":91},[85,716,181],{"style":95},[85,718,719],{"style":95},[85,720,304],{"class":101,"data-popup":721},"50",[85,723,27],{"style":95},[85,725,726],{"style":192},[85,727,729],{"class":101,"data-popup":728},"51","readKeys",[85,731,338],{"style":95},[85,733,734,739,741,747,750,756,759,762,764,769,771,776,778,781,786,788],{"class":87,"style":88},[85,735,736],{"style":95},[85,737,710],{"class":101,"data-popup":738},"52",[85,740,27],{"style":95},[85,742,743],{"style":192},[85,744,746],{"class":101,"data-popup":745},"53","forEach",[85,748,749],{"style":95},"((",[85,751,753],{"style":752},"color:#E36209;--shiki-dark:#FFAB70",[85,754,239],{"class":101,"data-popup":755},"54",[85,757,758],{"style":95},") ",[85,760,761],{"style":91},"=>",[85,763,181],{"style":95},[85,765,766],{"style":95},[85,767,466],{"class":101,"data-popup":768},"55",[85,770,27],{"style":95},[85,772,773],{"style":192},[85,774,635],{"class":101,"data-popup":775},"56",[85,777,364],{"style":95},[85,779,780],{"style":111},"`  ${",[85,782,783],{"style":95},[85,784,239],{"class":101,"data-popup":785},"57",[85,787,514],{"style":111},[85,789,790],{"style":95},"))",[792,793,795,797],"h3",{"id":794},"kubb-instance-members",[14,796,45],{}," instance members",[799,800,801,817],"table",{},[802,803,804],"thead",{},[805,806,807,811,814],"tr",{},[808,809,810],"th",{},"Member",[808,812,813],{},"Type",[808,815,816],{},"Description",[818,819,820,836,854,878,904,927,950,967,986],"tbody",{},[805,821,822,828,833],{},[823,824,825],"td",{},[14,826,827],{},".setup()",[823,829,830],{},[14,831,832],{},"() => Promise\u003Cvoid>",[823,834,835],{},"Initializes the driver and storage. The build methods call it when needed.",[805,837,838,842,847],{},[823,839,840],{},[14,841,49],{},[823,843,844],{},[14,845,846],{},"() => Promise\u003CBuildOutput>",[823,848,849,850,853],{},"The canonical call. Runs the pipeline and collects problems in ",[14,851,852],{},"BuildOutput.diagnostics"," instead of throwing.",[805,855,856,860,864],{},[823,857,858],{},[14,859,57],{},[823,861,862],{},[14,863,846],{},[823,865,866,867,870,871,874,875,27],{},"Runs ",[14,868,869],{},"safeBuild()"," and throws an ",[14,872,873],{},"AggregateError"," holding every error diagnostic when one has ",[14,876,877],{},"severity: 'error'",[805,879,880,885,890],{},[823,881,882],{},[14,883,884],{},".generate()",[823,886,887],{},[14,888,889],{},"(options?) => Promise\u003CGenerateResult>",[823,891,892,893,896,897,900,901,27],{},"Runs one full generation, including the ",[14,894,895],{},"kubb:generation:*"," hooks and the optional ",[14,898,899],{},"processOutput"," pass. Never throws on a build error. Returns ",[14,902,903],{},"{ success, files, diagnostics }",[805,905,906,911,916],{},[823,907,908],{},[14,909,910],{},".dispose()",[823,912,913],{},[14,914,915],{},"() => void",[823,917,918,919,922,923,926],{},"Releases the driver. The instance also implements ",[14,920,921],{},"Symbol.dispose",", so ",[14,924,925],{},"using kubb = createKubb(config)"," disposes it for you.",[805,928,929,934,939],{},[823,930,931],{},[14,932,933],{},".hooks",[823,935,936],{},[14,937,938],{},"Hookable\u003CKubbHooks>",[823,940,941,942,945,946,27],{},"Read-only. Shared hook emitter. Call ",[14,943,944],{},".hook(name, handler)"," before a build to listen. See ",[23,947,949],{"href":948},".\u002Fhooks","lifecycle hooks",[805,951,952,957,962],{},[823,953,954],{},[14,955,956],{},".config",[823,958,959],{},[14,960,961],{},"Config",[823,963,964,965,27],{},"Read-only. Resolved config, available right after ",[14,966,16],{},[805,968,969,974,979],{},[823,970,971],{},[14,972,973],{},".storage",[823,975,976],{},[14,977,978],{},"Storage",[823,980,981,982,985],{},"Read-only. Final source code keyed by absolute path. Available after ",[14,983,984],{},"setup()",", throws before.",[805,987,988,993,996],{},[823,989,990],{},[14,991,992],{},".driver",[823,994,995],{},"driver handle",[823,997,998,999,1001],{},"Advanced plugin driver, available after ",[14,1000,984],{},". Throws before.",[792,1003,1005,1007],{"id":1004},"buildoutput-fields",[14,1006,53],{}," fields",[799,1009,1010,1021],{},[802,1011,1012],{},[805,1013,1014,1017,1019],{},[808,1015,1016],{},"Field",[808,1018,813],{},[808,1020,816],{},[818,1022,1023,1037,1053,1065],{},[805,1024,1025,1029,1034],{},[823,1026,1027],{},[14,1028,295],{},[823,1030,1031],{},[14,1032,1033],{},"Array\u003CFileNode>",[823,1035,1036],{},"Generated files with paths, names, and content",[805,1038,1039,1043,1047],{},[823,1040,1041],{},[14,1042,304],{},[823,1044,1045],{},[14,1046,978],{},[823,1048,1049,1050,1052],{},"Generated source code behind the ",[14,1051,978],{}," API",[805,1054,1055,1060,1062],{},[823,1056,1057],{},[14,1058,1059],{},"driver",[823,1061,995],{},[823,1063,1064],{},"Plugin driver for introspection",[805,1066,1067,1071,1076],{},[823,1068,1069],{},[14,1070,312],{},[823,1072,1073],{},[14,1074,1075],{},"Array\u003CDiagnostic>",[823,1077,1078,1079,1082],{},"Problems collected during the build, plus a ",[14,1080,1081],{},"performance"," diagnostic per plugin",[10,1084,1085,1086,1088,1089,348,1091,298,1093,54,1096,1099,1100,1102,1103,1105,1106,1109,1110,1112,1113,1116,1117,1119],{},"Each problem diagnostic carries a ",[14,1087,14],{},", a ",[14,1090,444],{},[14,1092,474],{},[14,1094,1095],{},"warning",[14,1097,1098],{},"info","), a ",[14,1101,511],{},", and the ",[14,1104,492],{}," that produced it. A failed plugin keeps its original error on ",[14,1107,1108],{},"cause",". A ",[14,1111,1081],{}," diagnostic (",[14,1114,1115],{},"kind: 'performance'",") carries a ",[14,1118,582],{}," in milliseconds.",[1121,1122,1123,1124,1126,1127,1130,1131,1133],"blockquote",{"as":1095},"After ",[14,1125,869],{},", check ",[14,1128,1129],{},"Diagnostics.hasError(diagnostics)"," before you process files. Plugins can fail without ",[14,1132,869],{}," throwing.",[29,1135,1136],{"id":312},[14,1137,125],{},[10,1139,1140,1142,1143,1146,1147,1150,1151,1154,1155,27],{},[14,1141,125],{}," from ",[14,1144,1145],{},"kubb\u002Fkit"," builds and narrows the structured errors a build collects. A plugin or adapter throws a ",[14,1148,1149],{},"Diagnostics.Error"," instead of a bare ",[14,1152,1153],{},"Error"," to attach a stable code, a severity, and a location. The codes are listed in the ",[23,1156,1158],{"href":1157},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics","diagnostics reference",[799,1160,1161,1170],{},[802,1162,1163],{},[805,1164,1165,1167],{},[808,1166,810],{},[808,1168,1169],{},"Purpose",[818,1171,1172,1199,1215,1234,1249,1263,1277,1290,1300],{},[805,1173,1174,1178],{},[823,1175,1176],{},[14,1177,1149],{},[823,1179,1180,1181,1184,1185,1188,1189,298,1191,298,1193,1195,1196],{},"Error class (",[14,1182,1183],{},"DiagnosticError",") that carries a ",[14,1186,1187],{},"ProblemDiagnostic"," with ",[14,1190,14],{},[14,1192,444],{},[14,1194,511],{},", and ",[14,1197,1198],{},"location",[805,1200,1201,1206],{},[823,1202,1203],{},[14,1204,1205],{},"Diagnostics.report",[823,1207,1208,1209,1211,1212,1214],{},"Collects a diagnostic into the running build without throwing. Use a ",[14,1210,1095],{}," or ",[14,1213,1098],{}," severity for non-fatal issues",[805,1216,1217,1222],{},[823,1218,1219],{},[14,1220,1221],{},"Diagnostics.from",[823,1223,1224,1225,1227,1228,1230,1231],{},"Coerces any thrown value into a ",[14,1226,1187],{},". Anything that is not a ",[14,1229,1149],{}," becomes ",[14,1232,1233],{},"KUBB_UNKNOWN",[805,1235,1236,1241],{},[823,1237,1238],{},[14,1239,1240],{},"Diagnostics.hasError",[823,1242,1243,1246,1247],{},[14,1244,1245],{},"true"," when any diagnostic has ",[14,1248,877],{},[805,1250,1251,1256],{},[823,1252,1253],{},[14,1254,1255],{},"Diagnostics.isProblem",[823,1257,1258,1259,1262],{},"Narrows to the ",[14,1260,1261],{},"problem"," kind",[805,1264,1265,1270],{},[823,1266,1267],{},[14,1268,1269],{},"Diagnostics.isPerformance",[823,1271,1258,1272,1274,1275],{},[14,1273,1081],{}," kind, which carries a per-plugin ",[14,1276,582],{},[805,1278,1279,1284],{},[823,1280,1281],{},[14,1282,1283],{},"Diagnostics.isUpdate",[823,1285,1258,1286,1289],{},[14,1287,1288],{},"update"," kind, emitted when a newer Kubb version exists",[805,1291,1292,1297],{},[823,1293,1294],{},[14,1295,1296],{},"Diagnostics.count",[823,1298,1299],{},"Totals errors, warnings, and infos",[805,1301,1302,1307],{},[823,1303,1304],{},[14,1305,1306],{},"Diagnostics.explain",[823,1308,1309],{},"Returns the catalog entry (title, fix, docs URL) for a code",[74,1311,1314],{"language":76,"meta":77,"code":1312,"filename":1313,"class":80},"import { Diagnostics } from 'kubb\u002Fkit'\n\nthrow new Diagnostics.Error({\n  code: Diagnostics.code.refNotFound,\n  severity: 'error',\n  message: 'Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FPet.',\n  location: { kind: 'schema', pointer: '#\u002Fcomponents\u002Fschemas\u002FPet', ref: '#\u002Fcomponents\u002Fschemas\u002FPet' },\n})","adapter.ts",[14,1315,1316,113,1333,113,1335,113,1359,113,1392,113,1408,113,1424,113,1473],{"class":83},[85,1317,1318,1320,1322,1327,1329,1331],{"class":87,"style":88},[85,1319,92],{"style":91},[85,1321,96],{"style":95},[85,1323,1324],{"style":95},[85,1325,125],{"class":101,"data-popup":1326},"58",[85,1328,105],{"style":95},[85,1330,108],{"style":91},[85,1332,132],{"style":111},[85,1334],{"class":87,"style":88},[85,1336,1337,1340,1343,1345,1350,1352,1357],{"class":87,"style":88},[85,1338,1339],{"style":91},"throw",[85,1341,1342],{"style":91}," new",[85,1344,181],{"style":95},[85,1346,1347],{"style":95},[85,1348,125],{"class":101,"data-popup":1349},"59",[85,1351,27],{"style":95},[85,1353,1354],{"style":192},[85,1355,1153],{"class":101,"data-popup":1356},"60",[85,1358,200],{"style":95},[85,1360,1361,1363,1368,1370,1375,1377,1382,1384,1390],{"class":87,"style":88},[85,1362,205],{"style":95},[85,1364,1365],{"style":95},[85,1366,14],{"class":101,"data-popup":1367},"61",[85,1369,214],{"style":95},[85,1371,1372],{"style":95},[85,1373,125],{"class":101,"data-popup":1374},"62",[85,1376,27],{"style":95},[85,1378,1379],{"style":95},[85,1380,14],{"class":101,"data-popup":1381},"63",[85,1383,27],{"style":95},[85,1385,1386],{"style":95},[85,1387,1389],{"class":101,"data-popup":1388},"64","refNotFound",[85,1391,220],{"style":95},[85,1393,1394,1396,1401,1403,1406],{"class":87,"style":88},[85,1395,205],{"style":95},[85,1397,1398],{"style":95},[85,1399,444],{"class":101,"data-popup":1400},"65",[85,1402,214],{"style":95},[85,1404,1405],{"style":111},"'error'",[85,1407,220],{"style":95},[85,1409,1410,1412,1417,1419,1422],{"class":87,"style":88},[85,1411,205],{"style":95},[85,1413,1414],{"style":95},[85,1415,511],{"class":101,"data-popup":1416},"66",[85,1418,214],{"style":95},[85,1420,1421],{"style":111},"'Could not find a definition for #\u002Fcomponents\u002Fschemas\u002FPet.'",[85,1423,220],{"style":95},[85,1425,1426,1428,1433,1435,1441,1443,1446,1448,1454,1456,1459,1461,1467,1469,1471],{"class":87,"style":88},[85,1427,205],{"style":95},[85,1429,1430],{"style":95},[85,1431,1198],{"class":101,"data-popup":1432},"67",[85,1434,233],{"style":95},[85,1436,1437],{"style":95},[85,1438,1440],{"class":101,"data-popup":1439},"68","kind",[85,1442,214],{"style":95},[85,1444,1445],{"style":111},"'schema'",[85,1447,298],{"style":95},[85,1449,1450],{"style":95},[85,1451,1453],{"class":101,"data-popup":1452},"69","pointer",[85,1455,214],{"style":95},[85,1457,1458],{"style":111},"'#\u002Fcomponents\u002Fschemas\u002FPet'",[85,1460,298],{"style":95},[85,1462,1463],{"style":95},[85,1464,1466],{"class":101,"data-popup":1465},"70","ref",[85,1468,214],{"style":95},[85,1470,1458],{"style":111},[85,1472,247],{"style":95},[85,1474,1475],{"class":87,"style":88},[85,1476,281],{"style":95},{"title":1478,"searchDepth":1479,"depth":1479,"links":1480},"",5,[1481,1489],{"id":31,"depth":1482,"text":16,"children":1483},2,[1484,1487],{"id":794,"depth":1485,"text":1486},3,"Kubb instance members",{"id":1004,"depth":1485,"text":1488},"BuildOutput fields",{"id":312,"depth":1482,"text":125},"The programmatic engine from the kubb package. Covers createKubb, the Kubb instance, BuildOutput, and the Diagnostics helpers that narrow a build's problems.","md",{"layout":1493,"title":5,"description":1490,"outline":1494,"order":1495,"navigation":1496},"doc",[1482,1485],10,{"title":5,"icon":1497},"i-iconoir-cpu",{"layout":1493,"outline":1499},[1482,1485],{"title":5,"icon":1497},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fengine",{"title":5,"description":1490},{"loc":1501},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fengine.md","docs\u002F5.x\u002Freference\u002Fkit\u002Fengine","6M2v5U66uHUe27lKlMtjXPntUa8szgoAq_nPm5JnRa4",true,1792317736213]