[{"data":1,"prerenderedAt":4136,"buildId":4137},["ShallowReactive",2],{"docs:\u002Freference\u002Fapi":3},{"page":4,"section":16,"document":17,"credits":10,"prev":10,"next":10},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"api","\u002Freference\u002Fapi","reference\u002Fapi.md","JavaScript API","Reference for skillrc's three entries: skillrc\u002Fio, skillrc\u002Fdefinitions and skillrc\u002Fsync, with their main functions and types.",null,[],"i-lucide-braces","article",true,1,"reference",{"nodes":18,"toc":4093},[19,40,99,107,113,120,316,332,338,404,434,440,489,499,505,571,582,588,624,630,636,682,692,698,793,815,821,939,958,964,1020,1032,1038,1214,1249,1254,1268,1274,1367,1373,1511,1538,1544,1629,1635,1691,1705,1780,1786,1875,1881,1996,2001,2022,2028,2034,2041,2047,2124,2146,2152,2231,2270,2275,2488,2510,2516,2559,2585,2591,2660,2669,2675,2682,2687,2738,2748,2754,2777,2783,3169,3176,3181,3321,3346,3352,3557,3588,3681,3701,3706,3725,3731,3794,3806,3811,3891,3916,3922,3994,4014,4020,4065,4071],[20,21,22,23,27,28,31,32,35,36,39],"p",{},"skillrc has three entries and no root export. Every function that reads or writes your program's files takes a ",[24,25,26],"code",{},"Places"," first: ",[24,29,30],{},"{ program, state, config }",", from ",[24,33,34],{},"fleethosts\u002Fplaces",". skillrc names files, locks, variables and messages after ",[24,37,38],{},"places.program",".",[41,42,45],"pre",{"language":43,"class":44,"wrap":14},"ts","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,46,48,71,72,71,74],{"class":47},"language-ts",[49,50,53,57,61,64,68],"span",{"class":51,"style":52},"line","display: inline",[49,54,56],{"style":55},"color:#CF222E;--shiki-dark:#FF7B72","import",[49,58,60],{"style":59},"color:#1F2328;--shiki-dark:#E6EDF3"," { standardPlaces } ",[49,62,63],{"style":55},"from",[49,65,67],{"style":66},"color:#0A3069;--shiki-dark:#A5D6FF"," \"fleethosts\u002Fplaces\"",[49,69,70],{"style":59},";","\n",[49,73],{"class":51,"style":52},[49,75,76,79,83,86,90,93,96],{"class":51,"style":52},[49,77,78],{"style":55},"const",[49,80,82],{"style":81},"color:#0550AE;--shiki-dark:#79C0FF"," places",[49,84,85],{"style":55}," =",[49,87,89],{"style":88},"color:#8250DF;--shiki-dark:#D2A8FF"," standardPlaces",[49,91,92],{"style":59},"(",[49,94,95],{"style":66},"\"mytool\"",[49,97,98],{"style":59},");",[100,101,106],"h2",{"id":102,"anchor":103},"skillrcio",{"label":104,"icon":105},"Section titled \"skillrc\u002Fio\"","#","skillrc\u002Fio",[20,108,109,110,112],{},"Config files, fetching, locks, links and hashes. ",[24,111,26],{}," is re-exported here.",[114,115,119],"h3",{"id":116,"anchor":117},"editconfigfile",{"label":118,"icon":105},"Section titled \"editConfigFile\"","editConfigFile",[41,121,122],{"language":43,"class":44,"wrap":14},[24,123,124,71,134,71,149,71,161,71,215,71,226,71,244,71,256,71,268,71,279,71,290,71,301,71,306],{"class":47},[49,125,126,129,132],{"class":51,"style":52},[49,127,128],{"style":55},"function",[49,130,131],{"style":88}," editConfigFile",[49,133,92],{"style":59},[49,135,136,140,143,146],{"class":51,"style":52},[49,137,139],{"style":138},"color:#953800;--shiki-dark:#FFA657","  places",[49,141,142],{"style":55},":",[49,144,145],{"style":138}," Places",[49,147,148],{"style":59},",",[49,150,151,154,156,159],{"class":51,"style":52},[49,152,153],{"style":138},"  file",[49,155,142],{"style":55},[49,157,158],{"style":81}," string",[49,160,148],{"style":59},[49,162,163,166,168,171,174,176,179,182,185,188,191,194,197,200,203,206,209,212],{"class":51,"style":52},[49,164,165],{"style":88},"  plan",[49,167,142],{"style":55},[49,169,170],{"style":59}," (",[49,172,173],{"style":138},"root",[49,175,142],{"style":55},[49,177,178],{"style":138}," Record",[49,180,181],{"style":59},"\u003C",[49,183,184],{"style":81},"string",[49,186,187],{"style":59},", ",[49,189,190],{"style":81},"unknown",[49,192,193],{"style":59},"> ",[49,195,196],{"style":55},"|",[49,198,199],{"style":81}," undefined",[49,201,202],{"style":59},") ",[49,204,205],{"style":55},"=>",[49,207,208],{"style":55}," readonly",[49,210,211],{"style":138}," KeyEdit",[49,213,214],{"style":59},"[],",[49,216,217,220,223],{"class":51,"style":52},[49,218,219],{"style":138},"  options",[49,221,222],{"style":55},"?:",[49,224,225],{"style":59}," {",[49,227,228,231,233,236,239,242],{"class":51,"style":52},[49,229,230],{"style":138},"    format",[49,232,222],{"style":55},[49,234,235],{"style":66}," \"json\"",[49,237,238],{"style":55}," |",[49,240,241],{"style":66}," \"jsonc\"",[49,243,70],{"style":59},[49,245,246,249,251,254],{"class":51,"style":52},[49,247,248],{"style":138},"    create",[49,250,222],{"style":55},[49,252,253],{"style":81}," boolean",[49,255,70],{"style":59},[49,257,258,261,263,266],{"class":51,"style":52},[49,259,260],{"style":138},"    mode",[49,262,222],{"style":55},[49,264,265],{"style":81}," number",[49,267,70],{"style":59},[49,269,270,273,275,277],{"class":51,"style":52},[49,271,272],{"style":138},"    dryRun",[49,274,222],{"style":55},[49,276,253],{"style":81},[49,278,70],{"style":59},[49,280,281,284,286,288],{"class":51,"style":52},[49,282,283],{"style":138},"    lock",[49,285,222],{"style":55},[49,287,253],{"style":81},[49,289,70],{"style":59},[49,291,292,295,297,299],{"class":51,"style":52},[49,293,294],{"style":138},"    staleMs",[49,296,222],{"style":55},[49,298,265],{"style":81},[49,300,70],{"style":59},[49,302,303],{"class":51,"style":52},[49,304,305],{"style":59},"  },",[49,307,308,311,313],{"class":51,"style":52},[49,309,310],{"style":59},")",[49,312,142],{"style":55},[49,314,315],{"style":138}," ConfigEditResult",[20,317,318,319,322,323,326,327,39],{},"Edits a JSON or JSONC file one key at a time and keeps every other byte. ",[24,320,321],{},"plan"," gets the object read under the lock, or ",[24,324,325],{},"undefined"," for a missing file, and returns the edits. Follows a link to its target. The options and their defaults are in ",[328,329,331],"a",{"href":330},"\u002Fguide\u002Fconfig-files#options","Config files",[114,333,337],{"id":334,"anchor":335},"keyedit",{"label":336,"icon":105},"Section titled \"KeyEdit\"","KeyEdit",[41,339,340],{"language":43,"class":44,"wrap":14},[24,341,342,71,351,71,365,71,377,71,388,71,399],{"class":47},[49,343,344,347,349],{"class":51,"style":52},[49,345,346],{"style":55},"interface",[49,348,211],{"style":138},[49,350,225],{"style":59},[49,352,353,356,358,360,362],{"class":51,"style":52},[49,354,355],{"style":138},"  path",[49,357,142],{"style":55},[49,359,208],{"style":55},[49,361,158],{"style":81},[49,363,364],{"style":59},"[];",[49,366,367,370,372,375],{"class":51,"style":52},[49,368,369],{"style":138},"  value",[49,371,222],{"style":55},[49,373,374],{"style":81}," unknown",[49,376,70],{"style":59},[49,378,379,382,384,386],{"class":51,"style":52},[49,380,381],{"style":138},"  item",[49,383,222],{"style":55},[49,385,265],{"style":81},[49,387,70],{"style":59},[49,389,390,393,395,397],{"class":51,"style":52},[49,391,392],{"style":138},"  insert",[49,394,222],{"style":55},[49,396,253],{"style":81},[49,398,70],{"style":59},[49,400,401],{"class":51,"style":52},[49,402,403],{"style":59},"}",[20,405,406,407,410,411,414,415,417,418,420,421,424,425,420,427,430,431,433],{},"Sets ",[24,408,409],{},"value"," at ",[24,412,413],{},"path",", or removes the key when ",[24,416,409],{}," is ",[24,419,325],{},". With ",[24,422,423],{},"item",", works on that index of the list at ",[24,426,413],{},[24,428,429],{},"insert",", puts ",[24,432,409],{}," before the item instead of replacing it.",[114,435,439],{"id":436,"anchor":437},"configeditresult",{"label":438,"icon":105},"Section titled \"ConfigEditResult\"","ConfigEditResult",[41,441,442],{"language":43,"class":44,"wrap":14},[24,443,444,71,452,71,463,71,474,71,485],{"class":47},[49,445,446,448,450],{"class":51,"style":52},[49,447,346],{"style":55},[49,449,315],{"style":138},[49,451,225],{"style":59},[49,453,454,457,459,461],{"class":51,"style":52},[49,455,456],{"style":138},"  changed",[49,458,142],{"style":55},[49,460,253],{"style":81},[49,462,70],{"style":59},[49,464,465,468,470,472],{"class":51,"style":52},[49,466,467],{"style":138},"  skipped",[49,469,222],{"style":55},[49,471,158],{"style":81},[49,473,70],{"style":59},[49,475,476,479,481,483],{"class":51,"style":52},[49,477,478],{"style":138},"  error",[49,480,222],{"style":55},[49,482,158],{"style":81},[49,484,70],{"style":59},[49,486,487],{"class":51,"style":52},[49,488,403],{"style":59},[20,490,491,494,495,498],{},[24,492,493],{},"skipped"," is worth retrying: the lock was busy or the file changed meanwhile. ",[24,496,497],{},"error"," is not: the file doesn't parse or the edit can't be placed. Neither throws.",[114,500,504],{"id":501,"anchor":502},"readconfigfile",{"label":503,"icon":105},"Section titled \"readConfigFile\"","readConfigFile",[41,506,507],{"language":43,"class":44,"wrap":14},[24,508,509],{"class":47},[49,510,511,513,516,518,521,523,525,527,530,532,534,536,538,540,542,545,547,549,551,553,555,557,559,562,564,566,568],{"class":51,"style":52},[49,512,128],{"style":55},[49,514,515],{"style":88}," readConfigFile",[49,517,92],{"style":59},[49,519,520],{"style":138},"file",[49,522,142],{"style":55},[49,524,158],{"style":81},[49,526,187],{"style":59},[49,528,529],{"style":138},"format",[49,531,222],{"style":55},[49,533,235],{"style":66},[49,535,238],{"style":55},[49,537,241],{"style":66},[49,539,310],{"style":59},[49,541,142],{"style":55},[49,543,544],{"style":59}," { ",[49,546,173],{"style":138},[49,548,222],{"style":55},[49,550,178],{"style":138},[49,552,181],{"style":59},[49,554,184],{"style":81},[49,556,187],{"style":59},[49,558,190],{"style":81},[49,560,561],{"style":59},">; ",[49,563,497],{"style":138},[49,565,222],{"style":55},[49,567,158],{"style":81},[49,569,570],{"style":59}," }",[20,572,573,574,577,578,581],{},"The file's object, ",[24,575,576],{},"{ error }"," when it doesn't parse, or ",[24,579,580],{},"{}"," when it is missing. Objects have no prototype.",[114,583,587],{"id":584,"anchor":585},"valueat",{"label":586,"icon":105},"Section titled \"valueAt\"","valueAt",[41,589,590],{"language":43,"class":44,"wrap":14},[24,591,592],{"class":47},[49,593,594,596,599,601,603,605,607,609,611,613,615,617,620,622],{"class":51,"style":52},[49,595,128],{"style":55},[49,597,598],{"style":88}," valueAt",[49,600,92],{"style":59},[49,602,173],{"style":138},[49,604,142],{"style":55},[49,606,374],{"style":81},[49,608,187],{"style":59},[49,610,413],{"style":138},[49,612,142],{"style":55},[49,614,208],{"style":55},[49,616,158],{"style":81},[49,618,619],{"style":59},"[])",[49,621,142],{"style":55},[49,623,374],{"style":81},[20,625,626,627,629],{},"The value at a key path, or ",[24,628,325],{}," at the first missing key.",[114,631,635],{"id":632,"anchor":633},"lockfile",{"label":634,"icon":105},"Section titled \"lockFile\"","lockFile",[41,637,638],{"language":43,"class":44,"wrap":14},[24,639,640],{"class":47},[49,641,642,644,647,649,651,653,655,657,660,662,664,666,668,671,673,676,678,680],{"class":51,"style":52},[49,643,128],{"style":55},[49,645,646],{"style":88}," lockFile",[49,648,92],{"style":59},[49,650,520],{"style":138},[49,652,142],{"style":55},[49,654,158],{"style":81},[49,656,187],{"style":59},[49,658,659],{"style":138},"staleMs",[49,661,222],{"style":55},[49,663,265],{"style":81},[49,665,310],{"style":59},[49,667,142],{"style":55},[49,669,670],{"style":59}," (() ",[49,672,205],{"style":55},[49,674,675],{"style":81}," void",[49,677,202],{"style":59},[49,679,196],{"style":55},[49,681,199],{"style":81},[20,683,684,685,688,689,691],{},"Takes ",[24,686,687],{},"\u003Cfile>.lock"," the way proper-lockfile does, so Claude Code and skillrc never write one file at once. Returns the release, or ",[24,690,325],{}," while another holder has it.",[114,693,697],{"id":694,"anchor":695},"readtext-and-replaceifunchanged",{"label":696,"icon":105},"Section titled \"readText and replaceIfUnchanged\"","readText and replaceIfUnchanged",[41,699,700],{"language":43,"class":44,"wrap":14},[24,701,702,71,727],{"class":47},[49,703,704,706,709,711,713,715,717,719,721,723,725],{"class":51,"style":52},[49,705,128],{"style":55},[49,707,708],{"style":88}," readText",[49,710,92],{"style":59},[49,712,520],{"style":138},[49,714,142],{"style":55},[49,716,158],{"style":81},[49,718,310],{"style":59},[49,720,142],{"style":55},[49,722,158],{"style":81},[49,724,238],{"style":55},[49,726,199],{"style":81},[49,728,729,731,734,736,739,741,743,745,748,750,752,754,757,759,761,763,765,767,770,772,774,776,779,781,783,785,787,789,791],{"class":51,"style":52},[49,730,128],{"style":55},[49,732,733],{"style":88}," replaceIfUnchanged",[49,735,92],{"style":59},[49,737,738],{"style":138},"places",[49,740,142],{"style":55},[49,742,145],{"style":138},[49,744,187],{"style":59},[49,746,747],{"style":138},"target",[49,749,142],{"style":55},[49,751,158],{"style":81},[49,753,187],{"style":59},[49,755,756],{"style":138},"snapshot",[49,758,142],{"style":55},[49,760,158],{"style":81},[49,762,238],{"style":55},[49,764,199],{"style":81},[49,766,187],{"style":59},[49,768,769],{"style":138},"text",[49,771,142],{"style":55},[49,773,158],{"style":81},[49,775,187],{"style":59},[49,777,778],{"style":138},"mode",[49,780,142],{"style":55},[49,782,265],{"style":81},[49,784,238],{"style":55},[49,786,199],{"style":81},[49,788,310],{"style":59},[49,790,142],{"style":55},[49,792,253],{"style":81},[20,794,795,798,799,801,802,804,805,807,808,810,811,814],{},[24,796,797],{},"replaceIfUnchanged"," renames ",[24,800,769],{}," over ",[24,803,747],{}," only if ",[24,806,747],{}," still holds ",[24,809,756],{},", and returns ",[24,812,813],{},"false"," when it changed.",[114,816,820],{"id":817,"anchor":818},"settomltable-and-readtomltable",{"label":819,"icon":105},"Section titled \"setTomlTable and readTomlTable\"","setTomlTable and readTomlTable",[41,822,823],{"language":43,"class":44,"wrap":14},[24,824,825,71,902],{"class":47},[49,826,827,829,832,834,836,838,840,842,844,846,848,850,853,855,857,859,862,864,866,868,870,872,874,876,878,880,882,884,886,889,891,893,896,898,900],{"class":51,"style":52},[49,828,128],{"style":55},[49,830,831],{"style":88}," setTomlTable",[49,833,92],{"style":59},[49,835,738],{"style":138},[49,837,142],{"style":55},[49,839,145],{"style":138},[49,841,187],{"style":59},[49,843,769],{"style":138},[49,845,142],{"style":55},[49,847,158],{"style":81},[49,849,187],{"style":59},[49,851,852],{"style":138},"table",[49,854,142],{"style":55},[49,856,158],{"style":81},[49,858,187],{"style":59},[49,860,861],{"style":138},"name",[49,863,142],{"style":55},[49,865,158],{"style":81},[49,867,187],{"style":59},[49,869,409],{"style":138},[49,871,142],{"style":55},[49,873,374],{"style":81},[49,875,310],{"style":59},[49,877,142],{"style":55},[49,879,544],{"style":59},[49,881,769],{"style":138},[49,883,142],{"style":55},[49,885,158],{"style":81},[49,887,888],{"style":59}," } ",[49,890,196],{"style":55},[49,892,544],{"style":59},[49,894,895],{"style":138},"refused",[49,897,142],{"style":55},[49,899,158],{"style":81},[49,901,570],{"style":59},[49,903,904,906,909,911,913,915,917,919,921,923,925,927,929,931,933,935,937],{"class":51,"style":52},[49,905,128],{"style":55},[49,907,908],{"style":88}," readTomlTable",[49,910,92],{"style":59},[49,912,769],{"style":138},[49,914,142],{"style":55},[49,916,158],{"style":81},[49,918,187],{"style":59},[49,920,852],{"style":138},[49,922,142],{"style":55},[49,924,158],{"style":81},[49,926,187],{"style":59},[49,928,861],{"style":138},[49,930,142],{"style":55},[49,932,158],{"style":81},[49,934,310],{"style":59},[49,936,142],{"style":55},[49,938,374],{"style":81},[20,940,941,944,945,948,949,417,951,953,954,39],{},[24,942,943],{},"setTomlTable"," sets ",[24,946,947],{},"[\u003Ctable>.\u003Cname>]"," and its subtables, or removes them when ",[24,950,409],{},[24,952,325],{},", and refuses anything that would touch another table. See ",[328,955,957],{"href":956},"\u002Fguide\u002Fconfig-files#toml","TOML",[114,959,963],{"id":960,"anchor":961},"editjsontext",{"label":962,"icon":105},"Section titled \"editJsonText\"","editJsonText",[41,965,966],{"language":43,"class":44,"wrap":14},[24,967,968],{"class":47},[49,969,970,972,975,977,979,981,983,985,988,990,992,994,997,999,1001,1003,1006,1008,1010,1012,1014,1016,1018],{"class":51,"style":52},[49,971,128],{"style":55},[49,973,974],{"style":88}," editJsonText",[49,976,92],{"style":59},[49,978,769],{"style":138},[49,980,142],{"style":55},[49,982,158],{"style":81},[49,984,187],{"style":59},[49,986,987],{"style":138},"before",[49,989,142],{"style":55},[49,991,374],{"style":81},[49,993,187],{"style":59},[49,995,996],{"style":138},"after",[49,998,142],{"style":55},[49,1000,374],{"style":81},[49,1002,187],{"style":59},[49,1004,1005],{"style":138},"notes",[49,1007,222],{"style":55},[49,1009,158],{"style":81},[49,1011,619],{"style":59},[49,1013,142],{"style":55},[49,1015,158],{"style":81},[49,1017,238],{"style":55},[49,1019,199],{"style":81},[20,1021,1022,1023,1025,1026,1028,1029,1031],{},"Edits JSON text that parses to ",[24,1024,987],{}," so it parses to ",[24,1027,996],{},", changing only what differs. Returns ",[24,1030,325],{}," for text it can't follow, such as comments.",[114,1033,1037],{"id":1034,"anchor":1035},"fetchclone",{"label":1036,"icon":105},"Section titled \"fetchClone\"","fetchClone",[41,1039,1040],{"language":43,"class":44,"wrap":14},[24,1041,1042,71,1051,71,1061,71,1072,71,1087,71,1098,71,1106,71,1117,71,1128,71,1139,71,1151,71,1194,71,1198],{"class":47},[49,1043,1044,1046,1049],{"class":51,"style":52},[49,1045,128],{"style":55},[49,1047,1048],{"style":88}," fetchClone",[49,1050,92],{"style":59},[49,1052,1053,1055,1057,1059],{"class":51,"style":52},[49,1054,139],{"style":138},[49,1056,142],{"style":55},[49,1058,145],{"style":138},[49,1060,148],{"style":59},[49,1062,1063,1066,1068,1070],{"class":51,"style":52},[49,1064,1065],{"style":138},"  url",[49,1067,142],{"style":55},[49,1069,158],{"style":81},[49,1071,148],{"style":59},[49,1073,1074,1077,1079,1081,1083,1085],{"class":51,"style":52},[49,1075,1076],{"style":138},"  ref",[49,1078,142],{"style":55},[49,1080,158],{"style":81},[49,1082,238],{"style":55},[49,1084,199],{"style":81},[49,1086,148],{"style":59},[49,1088,1089,1092,1094,1096],{"class":51,"style":52},[49,1090,1091],{"style":138},"  root",[49,1093,142],{"style":55},[49,1095,158],{"style":81},[49,1097,148],{"style":59},[49,1099,1100,1102,1104],{"class":51,"style":52},[49,1101,219],{"style":138},[49,1103,222],{"style":55},[49,1105,225],{"style":59},[49,1107,1108,1111,1113,1115],{"class":51,"style":52},[49,1109,1110],{"style":138},"    offline",[49,1112,222],{"style":55},[49,1114,253],{"style":81},[49,1116,70],{"style":59},[49,1118,1119,1122,1124,1126],{"class":51,"style":52},[49,1120,1121],{"style":138},"    readOnly",[49,1123,222],{"style":55},[49,1125,253],{"style":81},[49,1127,70],{"style":59},[49,1129,1130,1133,1135,1137],{"class":51,"style":52},[49,1131,1132],{"style":138},"    cacheUrl",[49,1134,222],{"style":55},[49,1136,158],{"style":81},[49,1138,70],{"style":59},[49,1140,1141,1144,1146,1149],{"class":51,"style":52},[49,1142,1143],{"style":138},"    signal",[49,1145,222],{"style":55},[49,1147,1148],{"style":138}," AbortSignal",[49,1150,70],{"style":59},[49,1152,1153,1156,1158,1160,1163,1165,1167,1169,1172,1174,1176,1178,1180,1183,1185,1187,1189,1191],{"class":51,"style":52},[49,1154,1155],{"style":88},"    check",[49,1157,222],{"style":55},[49,1159,170],{"style":59},[49,1161,1162],{"style":138},"url",[49,1164,142],{"style":55},[49,1166,158],{"style":81},[49,1168,187],{"style":59},[49,1170,1171],{"style":138},"cwd",[49,1173,142],{"style":55},[49,1175,158],{"style":81},[49,1177,202],{"style":59},[49,1179,205],{"style":55},[49,1181,1182],{"style":138}," Promise",[49,1184,181],{"style":59},[49,1186,184],{"style":81},[49,1188,238],{"style":55},[49,1190,199],{"style":81},[49,1192,1193],{"style":59},">;",[49,1195,1196],{"class":51,"style":52},[49,1197,305],{"style":59},[49,1199,1200,1202,1204,1206,1208,1211],{"class":51,"style":52},[49,1201,310],{"style":59},[49,1203,142],{"style":55},[49,1205,1182],{"style":138},[49,1207,181],{"style":59},[49,1209,1210],{"style":138},"CachedClone",[49,1212,1213],{"style":59},">",[20,1215,1216,1217,410,1219,1222,1223,1225,1226,1229,1230,1233,1234,1237,1238,1241,1242,1244,1245,39],{},"The files of ",[24,1218,1162],{},[24,1220,1221],{},"ref"," from a cache under ",[24,1224,173],{},", fetched shallow when needed. ",[24,1227,1228],{},"offline"," fetches nothing. ",[24,1231,1232],{},"readOnly"," runs no git. ",[24,1235,1236],{},"check"," returns why a URL may not be fetched. ",[24,1239,1240],{},"cacheUrl"," names the cache entry when it differs from ",[24,1243,1162],{},". See ",[328,1246,1248],{"href":1247},"\u002Fguide\u002Ffetching#the-git-cache","The git cache",[114,1250,1210],{"id":1251,"anchor":1252},"cachedclone",{"label":1253,"icon":105},"Section titled \"CachedClone\"",[20,1255,1256,1259,1260,1263,1264,1267],{},[24,1257,1258],{},"{ dir, commit, collisions, refused, submodules, repo?, previous? }",": the files of ",[24,1261,1262],{},"commit"," with no ",[24,1265,1266],{},".git"," folder, the paths left out and why, the bare repository, and the commit before this fetch when it brought another.",[114,1269,1273],{"id":1270,"anchor":1271},"git-helpers",{"label":1272,"icon":105},"Section titled \"Git helpers\"","Git helpers",[852,1275,1276,1289],{},[1277,1278,1279],"thead",{},[1280,1281,1282,1286],"tr",{},[1283,1284,1285],"th",{},"Function",[1283,1287,1288],{},"What it returns",[1290,1291,1292,1310,1320,1330,1340,1353],"tbody",{},[1280,1293,1294,1300],{},[1295,1296,1297],"td",{},[24,1298,1299],{},"gitUrl(spec)",[1295,1301,1302,1303,187,1306,1309],{},"The URL for ",[24,1304,1305],{},"owner\u002Frepo",[24,1307,1308],{},"gitlab:owner\u002Frepo"," or any URL, as git fetches it",[1280,1311,1312,1317],{},[1295,1313,1314],{},[24,1315,1316],{},"repoKey(url)",[1295,1318,1319],{},"Host and path, lowercased, so https, ssh and shorthand forms compare equal",[1280,1321,1322,1327],{},[1295,1323,1324],{},[24,1325,1326],{},"cloneKey(url, ref)",[1295,1328,1329],{},"The cache entry's name: 16 hex digits of a sha256",[1280,1331,1332,1337],{},[1295,1333,1334],{},[24,1335,1336],{},"hasCachedClone(url, ref, root)",[1295,1338,1339],{},"Whether the cache has a checkout for them",[1280,1341,1342,1347],{},[1295,1343,1344],{},[24,1345,1346],{},"isCommitRef(ref)",[1295,1348,1349,1350,1352],{},"Whether ",[24,1351,1221],{}," is 7 to 40 hex digits",[1280,1354,1355,1360],{},[1295,1356,1357],{},[24,1358,1359],{},"withGitTree(repo, commit, read)",[1295,1361,1362,1363,1366],{},"Calls ",[24,1364,1365],{},"read"," with another commit's files in a temporary folder, then removes it",[114,1368,1372],{"id":1369,"anchor":1370},"fetchnpm",{"label":1371,"icon":105},"Section titled \"fetchNpm\"","fetchNpm",[41,1374,1375],{"language":43,"class":44,"wrap":14},[24,1376,1377,71,1386,71,1396,71,1407,71,1422,71,1433,71,1472],{"class":47},[49,1378,1379,1381,1384],{"class":51,"style":52},[49,1380,128],{"style":55},[49,1382,1383],{"style":88}," fetchNpm",[49,1385,92],{"style":59},[49,1387,1388,1390,1392,1394],{"class":51,"style":52},[49,1389,139],{"style":138},[49,1391,142],{"style":55},[49,1393,145],{"style":138},[49,1395,148],{"style":59},[49,1397,1398,1401,1403,1405],{"class":51,"style":52},[49,1399,1400],{"style":138},"  spec",[49,1402,142],{"style":55},[49,1404,158],{"style":81},[49,1406,148],{"style":59},[49,1408,1409,1412,1414,1416,1418,1420],{"class":51,"style":52},[49,1410,1411],{"style":138},"  registry",[49,1413,142],{"style":55},[49,1415,158],{"style":81},[49,1417,238],{"style":55},[49,1419,199],{"style":81},[49,1421,148],{"style":59},[49,1423,1424,1427,1429,1431],{"class":51,"style":52},[49,1425,1426],{"style":138},"  cacheRoot",[49,1428,142],{"style":55},[49,1430,158],{"style":81},[49,1432,148],{"style":59},[49,1434,1435,1437,1439,1441,1444,1446,1448,1451,1454,1456,1459,1462,1465,1467,1469],{"class":51,"style":52},[49,1436,219],{"style":138},[49,1438,222],{"style":55},[49,1440,544],{"style":59},[49,1442,1443],{"style":138},"sendToken",[49,1445,222],{"style":55},[49,1447,253],{"style":81},[49,1449,1450],{"style":59},"; ",[49,1452,1453],{"style":138},"fetch",[49,1455,222],{"style":55},[49,1457,1458],{"style":55}," typeof",[49,1460,1461],{"style":59}," fetch; ",[49,1463,1464],{"style":138},"signal",[49,1466,222],{"style":55},[49,1468,1148],{"style":138},[49,1470,1471],{"style":59}," },",[49,1473,1474,1476,1478,1480,1483,1486,1488,1490,1492,1495,1497,1499,1501,1504,1506,1508],{"class":51,"style":52},[49,1475,310],{"style":59},[49,1477,142],{"style":55},[49,1479,1182],{"style":138},[49,1481,1482],{"style":59},"\u003C{ ",[49,1484,1485],{"style":138},"dir",[49,1487,142],{"style":55},[49,1489,158],{"style":81},[49,1491,1450],{"style":59},[49,1493,1494],{"style":138},"version",[49,1496,142],{"style":55},[49,1498,158],{"style":81},[49,1500,1450],{"style":59},[49,1502,1503],{"style":138},"packageKey",[49,1505,142],{"style":55},[49,1507,158],{"style":81},[49,1509,1510],{"style":59}," }>",[20,1512,1513,1514,187,1516,1519,1520,1523,1524,1528,1529,1532,1533,417,1535,1537],{},"Downloads ",[24,1515,861],{},[24,1517,1518],{},"name@version"," or ",[24,1521,1522],{},"name@tag"," and unpacks it into the cache. Checks the tarball's integrity and the ",[328,1525,1527],{"href":1526},"\u002Fguide\u002Ffetching#limits","download limits",". Sends ",[24,1530,1531],{},"NPM_TOKEN"," unless ",[24,1534,1443],{},[24,1536,813],{},". Ranges are not resolved.",[114,1539,1543],{"id":1540,"anchor":1541},"npm-helpers",{"label":1542,"icon":105},"Section titled \"npm helpers\"","npm helpers",[852,1545,1546,1555],{},[1277,1547,1548],{},[1280,1549,1550,1552],{},[1283,1551,1285],{},[1283,1553,1554],{},"What it does",[1290,1556,1557,1578,1593,1609,1619],{},[1280,1558,1559,1564],{},[1295,1560,1561],{},[24,1562,1563],{},"parseNpmSpec(spec)",[1295,1565,1566,1567,1570,1571,1574,1575],{},"Splits a spec into ",[24,1568,1569],{},"{ name, want }",", with ",[24,1572,1573],{},"want"," defaulting to ",[24,1576,1577],{},"latest",[1280,1579,1580,1585],{},[1295,1581,1582],{},[24,1583,1584],{},"createCappedFetch(places, refused, budget?)",[1295,1586,1587,1588,1590,1591,39],{},"A ",[24,1589,1453],{}," with the download limits. Failures go into ",[24,1592,895],{},[1280,1594,1595,1600],{},[1295,1596,1597],{},[24,1598,1599],{},"guardedFetch(problem)",[1295,1601,1587,1602,1604,1605,1608],{},[24,1603,1453],{}," that asks ",[24,1606,1607],{},"problem"," about every URL, redirects included, and requests none it objects to",[1280,1610,1611,1616],{},[1295,1612,1613],{},[24,1614,1615],{},"tarFileSizes(places, tar)",[1295,1617,1618],{},"Each file of a tar and its size",[1280,1620,1621,1626],{},[1295,1622,1623],{},[24,1624,1625],{},"zipEntries(places, zip)",[1295,1627,1628],{},"Each entry of a zip, its size, and whether it is a folder",[114,1630,1634],{"id":1631,"anchor":1632},"takelock",{"label":1633,"icon":105},"Section titled \"takeLock\"","takeLock",[41,1636,1637],{"language":43,"class":44,"wrap":14},[24,1638,1639],{"class":47},[49,1640,1641,1643,1646,1648,1650,1652,1654,1656,1658,1660,1662,1664,1667,1669,1671,1673,1676,1678,1681,1683,1685,1687,1689],{"class":51,"style":52},[49,1642,128],{"style":55},[49,1644,1645],{"style":88}," takeLock",[49,1647,92],{"style":59},[49,1649,738],{"style":138},[49,1651,142],{"style":55},[49,1653,145],{"style":138},[49,1655,187],{"style":59},[49,1657,520],{"style":138},[49,1659,142],{"style":55},[49,1661,158],{"style":81},[49,1663,187],{"style":59},[49,1665,1666],{"style":138},"mine",[49,1668,142],{"style":55},[49,1670,158],{"style":81},[49,1672,187],{"style":59},[49,1674,1675],{"style":138},"options",[49,1677,222],{"style":55},[49,1679,1680],{"style":138}," LockOptions",[49,1682,310],{"style":59},[49,1684,142],{"style":55},[49,1686,158],{"style":81},[49,1688,238],{"style":55},[49,1690,199],{"style":81},[20,1692,1693,1694,1696,1697,1700,1701,39],{},"Creates the lock file with the text ",[24,1695,1666],{},", whole or not at all. Throws ",[24,1698,1699],{},"LockHeldError"," while a live holder has it. Returns a note when it broke a stale lock. See ",[328,1702,1704],{"href":1703},"\u002Fguide\u002Ffetching#the-sync-lock","The sync lock",[852,1706,1707,1717],{},[1277,1708,1709],{},[1280,1710,1711,1714],{},[1283,1712,1713],{},"Export",[1283,1715,1716],{},"What it is",[1290,1718,1719,1729,1745,1758,1768],{},[1280,1720,1721,1726],{},[1295,1722,1723],{},[24,1724,1725],{},"lockText(command?)",[1295,1727,1728],{},"The text a lock holds for this process",[1280,1730,1731,1736],{},[1295,1732,1733],{},[24,1734,1735],{},"readLock(file)",[1295,1737,1738,1741,1742,1744],{},[24,1739,1740],{},"{ text, holder }",", or ",[24,1743,325],{}," when there is no lock",[1280,1746,1747,1752],{},[1295,1748,1749],{},[24,1750,1751],{},"syncRunning(places)",[1295,1753,1754,1755],{},"Whether a live sync holds ",[24,1756,1757],{},"\u003Cstate>\u002Fsync.lock",[1280,1759,1760,1765],{},[1295,1761,1762],{},[24,1763,1764],{},"LOCK_MAX_AGE_MS",[1295,1766,1767],{},"Two hours: the age past which any lock is stale",[1280,1769,1770,1774],{},[1295,1771,1772],{},[24,1773,1699],{},[1295,1775,1587,1776,1779],{},[24,1777,1778],{},"UserError"," naming the holder",[114,1781,1785],{"id":1782,"anchor":1783},"files-and-hashes",{"label":1784,"icon":105},"Section titled \"Files and hashes\"","Files and hashes",[852,1787,1788,1796],{},[1277,1789,1790],{},[1280,1791,1792,1794],{},[1283,1793,1285],{},[1283,1795,1554],{},[1290,1797,1798,1815,1825,1842,1852,1865],{},[1280,1799,1800,1805],{},[1295,1801,1802],{},[24,1803,1804],{},"hashDir(places, dir)",[1295,1806,1807,1808,1810,1811,1814],{},"The sha256 of every file under ",[24,1809,1485],{},", by ",[24,1812,1813],{},"\u002F","-separated path",[1280,1816,1817,1822],{},[1295,1818,1819],{},[24,1820,1821],{},"changedFiles(before, after)",[1295,1823,1824],{},"Paths whose hash differs",[1280,1826,1827,1832],{},[1295,1828,1829],{},[24,1830,1831],{},"readJson(path)",[1295,1833,1834,1835,1837,1838,1841],{},"The parsed file, ",[24,1836,325],{}," when missing. Throws ",[24,1839,1840],{},"JsonFileError"," when it doesn't parse.",[1280,1843,1844,1849],{},[1295,1845,1846],{},[24,1847,1848],{},"writeJson(path, value)",[1295,1850,1851],{},"Writes through a temporary file and a rename",[1280,1853,1854,1862],{},[1295,1855,1856,187,1859],{},[24,1857,1858],{},"hashValue(value)",[24,1860,1861],{},"sameValue(a, b)",[1295,1863,1864],{},"Hash and compare values with object keys sorted",[1280,1866,1867,1872],{},[1295,1868,1869],{},[24,1870,1871],{},"decideEntry(state)",[1295,1873,1874],{},"What a sync does with one config entry it merges: write, keep, update, prune, hold",[114,1876,1880],{"id":1877,"anchor":1878},"paths-and-names",{"label":1879,"icon":105},"Section titled \"Paths and names\"","Paths and names",[852,1882,1883,1891],{},[1277,1884,1885],{},[1280,1886,1887,1889],{},[1283,1888,1285],{},[1283,1890,1554],{},[1290,1892,1893,1910,1923,1939,1960,1970,1980],{},[1280,1894,1895,1900],{},[1295,1896,1897],{},[24,1898,1899],{},"expandPath(path, base?)",[1295,1901,1902,1903,1906,1907],{},"Expands ",[24,1904,1905],{},"~"," and resolves against ",[24,1908,1909],{},"base",[1280,1911,1912,1917],{},[1295,1913,1914],{},[24,1915,1916],{},"tildify(path)",[1295,1918,1919,1920,1922],{},"Writes the home folder as ",[24,1921,1905],{},", for messages",[1280,1924,1925,1930],{},[1295,1926,1927],{},[24,1928,1929],{},"xdgDir(name)",[1295,1931,1932,1519,1935,1938],{},[24,1933,1934],{},"XDG_CONFIG_HOME",[24,1936,1937],{},"XDG_STATE_HOME",", when set to an absolute path",[1280,1940,1941,1946],{},[1295,1942,1943],{},[24,1944,1945],{},"globFilter(glob)",[1295,1947,1948,1949,1951,1952,1955,1956,1959],{},"A test for ",[24,1950,1813],{},"-separated paths. ",[24,1953,1954],{},"*"," stays in one segment, ",[24,1957,1958],{},"**"," crosses them.",[1280,1961,1962,1967],{},[1295,1963,1964],{},[24,1965,1966],{},"globBase(glob)",[1295,1968,1969],{},"The folder before the first wildcard",[1280,1971,1972,1977],{},[1295,1973,1974],{},[24,1975,1976],{},"nameKey(name)",[1295,1978,1979],{},"A name folded for case and Unicode form, as macOS and Windows compare it",[1280,1981,1982,1987],{},[1295,1983,1984],{},[24,1985,1986],{},"sourceIdProblem(id)",[1295,1988,1989,1990,1993,1994],{},"Why ",[24,1991,1992],{},"id"," can't name a source, or ",[24,1995,325],{},[114,1997,1778],{"id":1998,"anchor":1999},"usererror",{"label":2000,"icon":105},"Section titled \"UserError\"",[41,2002,2003],{"language":43,"class":44,"wrap":14},[24,2004,2005],{"class":47},[49,2006,2007,2010,2013,2016,2019],{"class":51,"style":52},[49,2008,2009],{"style":55},"class",[49,2011,2012],{"style":138}," UserError",[49,2014,2015],{"style":55}," extends",[49,2017,2018],{"style":81}," Error",[49,2020,2021],{"style":59}," {}",[20,2023,2024,2025,2027],{},"A mistake the user can fix, such as a wrong name: print its message as one line, with no stack. ",[24,2026,1699],{}," is one.",[100,2029,2033],{"id":2030,"anchor":2031},"skillrcdefinitions",{"label":2032,"icon":105},"Section titled \"skillrc\u002Fdefinitions\"","skillrc\u002Fdefinitions",[20,2035,2036,2037,39],{},"MCP servers and hooks. See ",[328,2038,2040],{"href":2039},"\u002Fguide\u002Fdefinitions","Definitions",[114,2042,2046],{"id":2043,"anchor":2044},"parsemcpfile",{"label":2045,"icon":105},"Section titled \"parseMcpFile\"","parseMcpFile",[41,2048,2049],{"language":43,"class":44,"wrap":14},[24,2050,2051,71,2088,71,2108,71,2120],{"class":47},[49,2052,2053,2055,2058,2060,2062,2064,2066,2068,2070,2072,2074,2076,2078,2080,2082,2084,2086],{"class":51,"style":52},[49,2054,128],{"style":55},[49,2056,2057],{"style":88}," parseMcpFile",[49,2059,92],{"style":59},[49,2061,738],{"style":138},[49,2063,142],{"style":55},[49,2065,145],{"style":138},[49,2067,187],{"style":59},[49,2069,769],{"style":138},[49,2071,142],{"style":55},[49,2073,158],{"style":81},[49,2075,187],{"style":59},[49,2077,520],{"style":138},[49,2079,222],{"style":55},[49,2081,158],{"style":81},[49,2083,310],{"style":59},[49,2085,142],{"style":55},[49,2087,225],{"style":59},[49,2089,2090,2093,2095,2097,2099,2101,2103,2106],{"class":51,"style":52},[49,2091,2092],{"style":138},"  servers",[49,2094,142],{"style":55},[49,2096,178],{"style":138},[49,2098,181],{"style":59},[49,2100,184],{"style":81},[49,2102,187],{"style":59},[49,2104,2105],{"style":138},"McpServer",[49,2107,1193],{"style":59},[49,2109,2110,2113,2115,2118],{"class":51,"style":52},[49,2111,2112],{"style":138},"  problems",[49,2114,142],{"style":55},[49,2116,2117],{"style":138}," McpProblem",[49,2119,364],{"style":59},[49,2121,2122],{"class":51,"style":52},[49,2123,403],{"style":59},[20,2125,2126,2127,2130,2131,2134,2135,2138,2139,2142,2143,2145],{},"Reads an ",[24,2128,2129],{},"mcpServers"," file. A server with a mistake goes into ",[24,2132,2133],{},"problems"," as ",[24,2136,2137],{},"{ server, message }",", and the rest pass. Throws ",[24,2140,2141],{},"McpFileError"," for text that isn't JSON or has no ",[24,2144,2129],{}," object.",[114,2147,2151],{"id":2148,"anchor":2149},"mcpentries",{"label":2150,"icon":105},"Section titled \"mcpEntries\"","mcpEntries",[41,2153,2154],{"language":43,"class":44,"wrap":14},[24,2155,2156,71,2197,71,2217,71,2227],{"class":47},[49,2157,2158,2160,2163,2165,2168,2170,2173,2175,2178,2180,2182,2184,2186,2188,2190,2193,2195],{"class":51,"style":52},[49,2159,128],{"style":55},[49,2161,2162],{"style":88}," mcpEntries",[49,2164,92],{"style":59},[49,2166,2167],{"style":138},"agent",[49,2169,142],{"style":55},[49,2171,2172],{"style":138}," McpAgent",[49,2174,187],{"style":59},[49,2176,2177],{"style":138},"servers",[49,2179,142],{"style":55},[49,2181,178],{"style":138},[49,2183,181],{"style":59},[49,2185,184],{"style":81},[49,2187,187],{"style":59},[49,2189,2105],{"style":138},[49,2191,2192],{"style":59},">)",[49,2194,142],{"style":55},[49,2196,225],{"style":59},[49,2198,2199,2202,2204,2206,2208,2210,2212,2215],{"class":51,"style":52},[49,2200,2201],{"style":138},"  entries",[49,2203,142],{"style":55},[49,2205,178],{"style":138},[49,2207,181],{"style":59},[49,2209,184],{"style":81},[49,2211,187],{"style":59},[49,2213,2214],{"style":138},"McpEntry",[49,2216,1193],{"style":59},[49,2218,2219,2221,2223,2225],{"class":51,"style":52},[49,2220,467],{"style":138},[49,2222,142],{"style":55},[49,2224,2117],{"style":138},[49,2226,364],{"style":59},[49,2228,2229],{"class":51,"style":52},[49,2230,403],{"style":59},[20,2232,2233,2234,2237,2238,2240,2241,2244,2245,2248,2249,187,2252,187,2255,187,2258,187,2261,187,2264,187,2267,39],{},"Each server whose ",[24,2235,2236],{},"agents"," include ",[24,2239,2167],{},", in that agent's shape. A server the agent can't take is skipped for it with the reason. ",[24,2242,2243],{},"McpAgent"," is one of ",[24,2246,2247],{},"MCP_AGENTS",": ",[24,2250,2251],{},"claude-code",[24,2253,2254],{},"codex",[24,2256,2257],{},"cursor",[24,2259,2260],{},"gemini-cli",[24,2262,2263],{},"github-copilot",[24,2265,2266],{},"grok",[24,2268,2269],{},"opencode",[114,2271,2105],{"id":2272,"anchor":2273},"mcpserver",{"label":2274,"icon":105},"Section titled \"McpServer\"",[41,2276,2277],{"language":43,"class":44,"wrap":14},[24,2278,2279,71,2310,71,2329,71,2331,71,2339,71,2351,71,2362,71,2373,71,2393,71,2404,71,2415,71,2419,71,2421,71,2429,71,2445,71,2455,71,2474,71,2484],{"class":47},[49,2280,2281,2284,2287,2289,2292,2294,2296,2298,2300,2303,2305,2307],{"class":51,"style":52},[49,2282,2283],{"style":55},"type",[49,2285,2286],{"style":138}," Template",[49,2288,85],{"style":55},[49,2290,2291],{"style":138}," ReadonlyArray",[49,2293,181],{"style":59},[49,2295,184],{"style":81},[49,2297,238],{"style":55},[49,2299,544],{"style":59},[49,2301,2302],{"style":138},"env",[49,2304,142],{"style":55},[49,2306,158],{"style":81},[49,2308,2309],{"style":59}," }>;",[49,2311,2312,2314,2317,2319,2322,2324,2327],{"class":51,"style":52},[49,2313,2283],{"style":55},[49,2315,2316],{"style":138}," McpServer",[49,2318,85],{"style":55},[49,2320,2321],{"style":138}," StdioServer",[49,2323,238],{"style":55},[49,2325,2326],{"style":138}," RemoteServer",[49,2328,70],{"style":59},[49,2330],{"class":51,"style":52},[49,2332,2333,2335,2337],{"class":51,"style":52},[49,2334,346],{"style":55},[49,2336,2321],{"style":138},[49,2338,225],{"style":59},[49,2340,2341,2344,2346,2349],{"class":51,"style":52},[49,2342,2343],{"style":138},"  transport",[49,2345,142],{"style":55},[49,2347,2348],{"style":66}," \"stdio\"",[49,2350,70],{"style":59},[49,2352,2353,2356,2358,2360],{"class":51,"style":52},[49,2354,2355],{"style":138},"  command",[49,2357,142],{"style":55},[49,2359,2286],{"style":138},[49,2361,70],{"style":59},[49,2363,2364,2367,2369,2371],{"class":51,"style":52},[49,2365,2366],{"style":138},"  args",[49,2368,142],{"style":55},[49,2370,2286],{"style":138},[49,2372,364],{"style":59},[49,2374,2375,2378,2380,2382,2384,2386,2388,2391],{"class":51,"style":52},[49,2376,2377],{"style":138},"  env",[49,2379,142],{"style":55},[49,2381,178],{"style":138},[49,2383,181],{"style":59},[49,2385,184],{"style":81},[49,2387,187],{"style":59},[49,2389,2390],{"style":138},"Template",[49,2392,1193],{"style":59},[49,2394,2395,2398,2400,2402],{"class":51,"style":52},[49,2396,2397],{"style":138},"  cwd",[49,2399,222],{"style":55},[49,2401,2286],{"style":138},[49,2403,70],{"style":59},[49,2405,2406,2409,2411,2413],{"class":51,"style":52},[49,2407,2408],{"style":138},"  agents",[49,2410,222],{"style":55},[49,2412,2172],{"style":138},[49,2414,364],{"style":59},[49,2416,2417],{"class":51,"style":52},[49,2418,403],{"style":59},[49,2420],{"class":51,"style":52},[49,2422,2423,2425,2427],{"class":51,"style":52},[49,2424,346],{"style":55},[49,2426,2326],{"style":138},[49,2428,225],{"style":59},[49,2430,2431,2433,2435,2438,2440,2443],{"class":51,"style":52},[49,2432,2343],{"style":138},[49,2434,142],{"style":55},[49,2436,2437],{"style":66}," \"http\"",[49,2439,238],{"style":55},[49,2441,2442],{"style":66}," \"sse\"",[49,2444,70],{"style":59},[49,2446,2447,2449,2451,2453],{"class":51,"style":52},[49,2448,1065],{"style":138},[49,2450,142],{"style":55},[49,2452,2286],{"style":138},[49,2454,70],{"style":59},[49,2456,2457,2460,2462,2464,2466,2468,2470,2472],{"class":51,"style":52},[49,2458,2459],{"style":138},"  headers",[49,2461,142],{"style":55},[49,2463,178],{"style":138},[49,2465,181],{"style":59},[49,2467,184],{"style":81},[49,2469,187],{"style":59},[49,2471,2390],{"style":138},[49,2473,1193],{"style":59},[49,2475,2476,2478,2480,2482],{"class":51,"style":52},[49,2477,2408],{"style":138},[49,2479,222],{"style":55},[49,2481,2172],{"style":138},[49,2483,364],{"style":59},[49,2485,2486],{"class":51,"style":52},[49,2487,403],{"style":59},[20,2489,2490,2491,2493,2494,2497,2498,2501,2502,2505,2506,2509],{},"Every string is a ",[24,2492,2390],{},": text and ",[24,2495,2496],{},"${VAR}"," references in order. ",[24,2499,2500],{},"parseTemplate(text, where?)"," builds one, ",[24,2503,2504],{},"templateText(template)"," writes it back, and ",[24,2507,2508],{},"wholeReference(template)"," returns the variable of a template that is one reference.",[114,2511,2515],{"id":2512,"anchor":2513},"parsehookfile",{"label":2514,"icon":105},"Section titled \"parseHookFile\"","parseHookFile",[41,2517,2518],{"language":43,"class":44,"wrap":14},[24,2519,2520],{"class":47},[49,2521,2522,2524,2527,2529,2531,2533,2536,2538,2540,2542,2544,2546,2548,2550,2552,2554,2556],{"class":51,"style":52},[49,2523,128],{"style":55},[49,2525,2526],{"style":88}," parseHookFile",[49,2528,92],{"style":59},[49,2530,2167],{"style":138},[49,2532,142],{"style":55},[49,2534,2535],{"style":138}," HookDefAgent",[49,2537,187],{"style":59},[49,2539,769],{"style":138},[49,2541,142],{"style":55},[49,2543,158],{"style":81},[49,2545,187],{"style":59},[49,2547,520],{"style":138},[49,2549,222],{"style":55},[49,2551,158],{"style":81},[49,2553,310],{"style":59},[49,2555,142],{"style":55},[49,2557,2558],{"style":138}," HookEvents",[20,2560,2561,2562,2564,2565,2568,2569,2244,2572,2248,2575,187,2577,187,2579,187,2581,187,2583,39],{},"Checks a hook file in ",[24,2563,2167],{},"'s own format and returns its events. Throws ",[24,2566,2567],{},"HookFileError"," naming the first mistake. ",[24,2570,2571],{},"HookDefAgent",[24,2573,2574],{},"HOOK_DEF_AGENTS",[24,2576,2251],{},[24,2578,2254],{},[24,2580,2266],{},[24,2582,2260],{},[24,2584,2257],{},[114,2586,2590],{"id":2587,"anchor":2588},"hook-writers",{"label":2589,"icon":105},"Section titled \"Hook writers\"","Hook writers",[852,2592,2593,2601],{},[1277,2594,2595],{},[1280,2596,2597,2599],{},[1283,2598,1285],{},[1283,2600,1288],{},[1290,2602,2603,2617,2634,2647],{},[1280,2604,2605,2610],{},[1295,2606,2607],{},[24,2608,2609],{},"claudePluginFiles(places, definitions)",[1295,2611,2612,2613,2616],{},"The files of the Claude Code plugin ",[24,2614,2615],{},"~\u002F.claude\u002Fskills\u002F\u003Cprogram>\u002F",", by path. Empty when there are no definitions.",[1280,2618,2619,2624],{},[1295,2620,2621],{},[24,2622,2623],{},"codexHooksWith(places, current, desired)",[1295,2625,2626,2629,2630,2633],{},[24,2627,2628],{},"{ file, changed, slots, review }",": Codex's ",[24,2631,2632],{},"hooks.json"," with your groups set, no other group moved",[1280,2635,2636,2641],{},[1295,2637,2638],{},[24,2639,2640],{},"grokHookFiles(places, definitions)",[1295,2642,2643,2644],{},"One file per definition, by name in ",[24,2645,2646],{},"~\u002F.grok\u002Fhooks\u002F",[1280,2648,2649,2654],{},[1295,2650,2651],{},[24,2652,2653],{},"hookMark(places)",[1295,2655,2656,2657],{},"The key that marks a group or script as yours: ",[24,2658,2659],{},"x-hook-owner:\u003Cprogram>",[20,2661,2662,2665,2666,39],{},[24,2663,2664],{},"definitions"," maps each definition's name to its ",[24,2667,2668],{},"HookEvents",[100,2670,2674],{"id":2671,"anchor":2672},"skillrcsync",{"label":2673,"icon":105},"Section titled \"skillrc\u002Fsync\"","skillrc\u002Fsync",[20,2676,2677,2678,39],{},"The sync engine. See ",[328,2679,2681],{"href":2680},"\u002Fguide\u002Fsync","Sync",[114,2683,2684],{"id":2684,"anchor":2685},"sync",{"label":2686,"icon":105},"Section titled \"sync\"",[41,2688,2689],{"language":43,"class":44,"wrap":14},[24,2690,2691],{"class":47},[49,2692,2693,2695,2698,2700,2702,2704,2706,2708,2711,2713,2716,2718,2720,2722,2725,2727,2729,2731,2733,2736],{"class":51,"style":52},[49,2694,128],{"style":55},[49,2696,2697],{"style":88}," sync",[49,2699,92],{"style":59},[49,2701,738],{"style":138},[49,2703,142],{"style":55},[49,2705,145],{"style":138},[49,2707,187],{"style":59},[49,2709,2710],{"style":138},"host",[49,2712,142],{"style":55},[49,2714,2715],{"style":138}," SyncHost",[49,2717,187],{"style":59},[49,2719,1675],{"style":138},[49,2721,222],{"style":55},[49,2723,2724],{"style":138}," SyncOptions",[49,2726,310],{"style":59},[49,2728,142],{"style":55},[49,2730,1182],{"style":138},[49,2732,181],{"style":59},[49,2734,2735],{"style":138},"Report",[49,2737,1213],{"style":59},[20,2739,2740,2741,2744,2745,2747],{},"Runs one sync under the lock and returns the report. A real sync also writes it to ",[24,2742,2743],{},"\u003Cstate>\u002Flast-run.json",". Throws ",[24,2746,1699],{}," while another live sync runs.",[114,2749,2753],{"id":2750,"anchor":2751},"syncoptions",{"label":2752,"icon":105},"Section titled \"SyncOptions\"","SyncOptions",[20,2755,2756,2759,2760,2764,2765,2768,2769,2772,2773,2776],{},[24,2757,2758],{},"{ dryRun?, offline?, only?, apply?, copy? }",", described in ",[328,2761,2763],{"href":2762},"\u002Fguide\u002Fsync#options","Options",". ",[24,2766,2767],{},"previewSkills"," and ",[24,2770,2771],{},"initBackups"," serve a program's own ",[24,2774,2775],{},"init"," command.",[114,2778,2782],{"id":2779,"anchor":2780},"synchost",{"label":2781,"icon":105},"Section titled \"SyncHost\"","SyncHost",[41,2784,2785],{"language":43,"class":44,"wrap":14},[24,2786,2787,71,2795,71,2809,71,2819,71,2829,71,2839,71,2850,71,2861,71,2872,71,2900,71,2941,71,2966,71,3007,71,3033,71,3066,71,3108,71,3144,71,3154,71,3165],{"class":47},[49,2788,2789,2791,2793],{"class":51,"style":52},[49,2790,346],{"style":55},[49,2792,2715],{"style":138},[49,2794,225],{"style":59},[49,2796,2797,2800,2802,2805,2807],{"class":51,"style":52},[49,2798,2799],{"style":88},"  load",[49,2801,92],{"style":59},[49,2803,2804],{"style":138},"ctx",[49,2806,142],{"style":55},[49,2808,225],{"style":59},[49,2810,2811,2813,2815,2817],{"class":51,"style":52},[49,2812,1110],{"style":138},[49,2814,142],{"style":55},[49,2816,253],{"style":81},[49,2818,70],{"style":59},[49,2820,2821,2823,2825,2827],{"class":51,"style":52},[49,2822,272],{"style":138},[49,2824,142],{"style":55},[49,2826,253],{"style":81},[49,2828,70],{"style":59},[49,2830,2831,2833,2835,2837],{"class":51,"style":52},[49,2832,1143],{"style":138},[49,2834,142],{"style":55},[49,2836,1148],{"style":138},[49,2838,70],{"style":59},[49,2840,2841,2844,2846,2848],{"class":51,"style":52},[49,2842,2843],{"style":138},"    cacheRoot",[49,2845,222],{"style":55},[49,2847,158],{"style":81},[49,2849,70],{"style":59},[49,2851,2852,2855,2857,2859],{"class":51,"style":52},[49,2853,2854],{"style":138},"    only",[49,2856,222],{"style":55},[49,2858,158],{"style":81},[49,2860,70],{"style":59},[49,2862,2863,2866,2868,2870],{"class":51,"style":52},[49,2864,2865],{"style":138},"    warnings",[49,2867,142],{"style":55},[49,2869,158],{"style":81},[49,2871,364],{"style":59},[49,2873,2874,2877,2879,2881,2883,2885,2887,2890,2892,2894,2896,2898],{"class":51,"style":52},[49,2875,2876],{"style":59},"  })",[49,2878,142],{"style":55},[49,2880,1182],{"style":138},[49,2882,1482],{"style":59},[49,2884,321],{"style":138},[49,2886,142],{"style":55},[49,2888,2889],{"style":138}," Plan",[49,2891,1450],{"style":59},[49,2893,861],{"style":138},[49,2895,142],{"style":55},[49,2897,158],{"style":81},[49,2899,2309],{"style":59},[49,2901,2902,2905,2907,2909,2911,2914,2916,2918,2921,2923,2925,2927,2929,2931,2933,2935,2938],{"class":51,"style":52},[49,2903,2904],{"style":88},"  targets",[49,2906,92],{"style":59},[49,2908,2236],{"style":138},[49,2910,142],{"style":55},[49,2912,2913],{"style":66}," \"all\"",[49,2915,238],{"style":55},[49,2917,158],{"style":81},[49,2919,2920],{"style":59},"[], ",[49,2922,1464],{"style":138},[49,2924,142],{"style":55},[49,2926,1148],{"style":138},[49,2928,310],{"style":59},[49,2930,142],{"style":55},[49,2932,1182],{"style":138},[49,2934,181],{"style":59},[49,2936,2937],{"style":138},"AgentTarget",[49,2939,2940],{"style":59},"[]>;",[49,2942,2943,2946,2948,2951,2953,2955,2958,2960,2962,2964],{"class":51,"style":52},[49,2944,2945],{"style":88},"  formerTargets",[49,2947,92],{"style":59},[49,2949,2950],{"style":138},"targets",[49,2952,142],{"style":55},[49,2954,208],{"style":55},[49,2956,2957],{"style":138}," AgentTarget",[49,2959,619],{"style":59},[49,2961,142],{"style":55},[49,2963,158],{"style":81},[49,2965,364],{"style":59},[49,2967,2968,2971,2974,2976,2978,2980,2982,2984,2986,2988,2991,2993,2995,2997,3000,3002,3004],{"class":51,"style":52},[49,2969,2970],{"style":88},"  replacementTargets",[49,2972,2973],{"style":55},"?",[49,2975,92],{"style":59},[49,2977,2950],{"style":138},[49,2979,142],{"style":55},[49,2981,208],{"style":55},[49,2983,2957],{"style":138},[49,2985,619],{"style":59},[49,2987,142],{"style":55},[49,2989,2990],{"style":138}," Map",[49,2992,181],{"style":59},[49,2994,184],{"style":81},[49,2996,187],{"style":59},[49,2998,2999],{"style":138},"Set",[49,3001,181],{"style":59},[49,3003,184],{"style":81},[49,3005,3006],{"style":59},">>;",[49,3008,3009,3012,3014,3017,3019,3022,3024,3026,3028,3031],{"class":51,"style":52},[49,3010,3011],{"style":138},"  kinds",[49,3013,142],{"style":55},[49,3015,3016],{"style":138}," Readonly",[49,3018,181],{"style":59},[49,3020,3021],{"style":138},"Record",[49,3023,181],{"style":59},[49,3025,184],{"style":81},[49,3027,187],{"style":59},[49,3029,3030],{"style":138},"AgentKinds",[49,3032,3006],{"style":59},[49,3034,3035,3038,3040,3042,3044,3046,3048,3050,3053,3055,3058,3060,3062,3064],{"class":51,"style":52},[49,3036,3037],{"style":88},"  notes",[49,3039,2973],{"style":55},[49,3041,92],{"style":59},[49,3043,321],{"style":138},[49,3045,142],{"style":55},[49,3047,2889],{"style":138},[49,3049,187],{"style":59},[49,3051,3052],{"style":138},"state",[49,3054,142],{"style":55},[49,3056,3057],{"style":138}," State",[49,3059,310],{"style":59},[49,3061,142],{"style":55},[49,3063,158],{"style":81},[49,3065,364],{"style":59},[49,3067,3068,3071,3073,3075,3078,3080,3083,3085,3088,3090,3092,3094,3096,3098,3100,3102,3104,3106],{"class":51,"style":52},[49,3069,3070],{"style":88},"  hookEnv",[49,3072,2973],{"style":55},[49,3074,92],{"style":59},[49,3076,3077],{"style":138},"hook",[49,3079,142],{"style":55},[49,3081,3082],{"style":138}," Hook",[49,3084,187],{"style":59},[49,3086,3087],{"style":138},"changed",[49,3089,142],{"style":55},[49,3091,158],{"style":81},[49,3093,310],{"style":59},[49,3095,142],{"style":55},[49,3097,178],{"style":138},[49,3099,181],{"style":59},[49,3101,184],{"style":81},[49,3103,187],{"style":59},[49,3105,184],{"style":81},[49,3107,1193],{"style":59},[49,3109,3110,3113,3115,3117,3119,3121,3123,3125,3127,3129,3131,3133,3135,3137,3139,3142],{"class":51,"style":52},[49,3111,3112],{"style":88},"  beforeReport",[49,3114,2973],{"style":55},[49,3116,92],{"style":59},[49,3118,321],{"style":138},[49,3120,142],{"style":55},[49,3122,2889],{"style":138},[49,3124,187],{"style":59},[49,3126,1464],{"style":138},[49,3128,142],{"style":55},[49,3130,1148],{"style":138},[49,3132,310],{"style":59},[49,3134,142],{"style":55},[49,3136,1182],{"style":138},[49,3138,181],{"style":59},[49,3140,3141],{"style":81},"void",[49,3143,1193],{"style":59},[49,3145,3146,3148,3150,3152],{"class":51,"style":52},[49,3147,2355],{"style":138},[49,3149,142],{"style":55},[49,3151,158],{"style":81},[49,3153,70],{"style":59},[49,3155,3156,3159,3161,3163],{"class":51,"style":52},[49,3157,3158],{"style":138},"  version",[49,3160,142],{"style":55},[49,3162,158],{"style":81},[49,3164,70],{"style":59},[49,3166,3167],{"class":51,"style":52},[49,3168,403],{"style":59},[20,3170,3171,3172,39],{},"What the engine asks of your program. See ",[328,3173,3175],{"href":3174},"\u002Fguide\u002Fsync#the-host","The host",[114,3177,3030],{"id":3178,"anchor":3179},"agentkinds",{"label":3180,"icon":105},"Section titled \"AgentKinds\"",[41,3182,3183],{"language":43,"class":44,"wrap":14},[24,3184,3185,71,3194,71,3210,71,3225,71,3240,71,3255,71,3305,71,3317],{"class":47},[49,3186,3187,3189,3192],{"class":51,"style":52},[49,3188,346],{"style":55},[49,3190,3191],{"style":138}," AgentKinds",[49,3193,225],{"style":59},[49,3195,3196,3199,3201,3204,3206,3208],{"class":51,"style":52},[49,3197,3198],{"style":88},"  home",[49,3200,142],{"style":55},[49,3202,3203],{"style":59}," () ",[49,3205,205],{"style":55},[49,3207,158],{"style":81},[49,3209,70],{"style":59},[49,3211,3212,3215,3217,3219,3221,3223],{"class":51,"style":52},[49,3213,3214],{"style":88},"  instructions",[49,3216,222],{"style":55},[49,3218,3203],{"style":59},[49,3220,205],{"style":55},[49,3222,158],{"style":81},[49,3224,70],{"style":59},[49,3226,3227,3230,3232,3234,3236,3238],{"class":51,"style":52},[49,3228,3229],{"style":88},"  subagents",[49,3231,222],{"style":55},[49,3233,3203],{"style":59},[49,3235,205],{"style":55},[49,3237,158],{"style":81},[49,3239,70],{"style":59},[49,3241,3242,3245,3247,3249,3251,3253],{"class":51,"style":52},[49,3243,3244],{"style":88},"  commands",[49,3246,222],{"style":55},[49,3248,3203],{"style":59},[49,3250,205],{"style":55},[49,3252,158],{"style":81},[49,3254,70],{"style":59},[49,3256,3257,3260,3262,3264,3266,3268,3270,3272,3274,3276,3278,3280,3282,3284,3286,3288,3291,3293,3296,3298,3300,3302],{"class":51,"style":52},[49,3258,3259],{"style":138},"  mcp",[49,3261,222],{"style":55},[49,3263,544],{"style":59},[49,3265,520],{"style":88},[49,3267,142],{"style":55},[49,3269,3203],{"style":59},[49,3271,205],{"style":55},[49,3273,158],{"style":81},[49,3275,1450],{"style":59},[49,3277,529],{"style":138},[49,3279,142],{"style":55},[49,3281,235],{"style":66},[49,3283,238],{"style":55},[49,3285,241],{"style":66},[49,3287,238],{"style":55},[49,3289,3290],{"style":66}," \"toml\"",[49,3292,1450],{"style":59},[49,3294,3295],{"style":138},"key",[49,3297,142],{"style":55},[49,3299,208],{"style":55},[49,3301,158],{"style":81},[49,3303,3304],{"style":59},"[] };",[49,3306,3307,3310,3312,3315],{"class":51,"style":52},[49,3308,3309],{"style":138},"  agentHooks",[49,3311,222],{"style":55},[49,3313,3314],{"style":138}," AgentHooksCell",[49,3316,70],{"style":59},[49,3318,3319],{"class":51,"style":52},[49,3320,403],{"style":59},[20,3322,3323,3324,3327,3328,2248,3331,3334,3335,3337,3338,3341,3342,3345],{},"Where one agent reads each kind of file. ",[24,3325,3326],{},"AgentHooksCell"," has a ",[24,3329,3330],{},"style",[24,3332,3333],{},"plugin"," for Claude Code, ",[24,3336,520],{}," for Codex, ",[24,3339,3340],{},"entries"," for Gemini CLI and Cursor, ",[24,3343,3344],{},"files"," for Grok.",[114,3347,3351],{"id":3348,"anchor":3349},"plan-and-source",{"label":3350,"icon":105},"Section titled \"Plan and Source\"","Plan and Source",[41,3353,3354],{"language":43,"class":44,"wrap":14},[24,3355,3356,71,3364,71,3375,71,3387,71,3398,71,3409,71,3413,71,3415,71,3423,71,3433,71,3447,71,3457,71,3477,71,3488,71,3499,71,3518,71,3522,71,3524],{"class":47},[49,3357,3358,3360,3362],{"class":51,"style":52},[49,3359,346],{"style":55},[49,3361,2889],{"style":138},[49,3363,225],{"style":59},[49,3365,3366,3368,3370,3373],{"class":51,"style":52},[49,3367,1091],{"style":138},[49,3369,142],{"style":55},[49,3371,3372],{"style":138}," PlanRoot",[49,3374,70],{"style":59},[49,3376,3377,3380,3382,3385],{"class":51,"style":52},[49,3378,3379],{"style":138},"  sources",[49,3381,142],{"style":55},[49,3383,3384],{"style":138}," Source",[49,3386,364],{"style":59},[49,3388,3389,3392,3394,3396],{"class":51,"style":52},[49,3390,3391],{"style":138},"  warnings",[49,3393,142],{"style":55},[49,3395,158],{"style":81},[49,3397,364],{"style":59},[49,3399,3400,3403,3405,3407],{"class":51,"style":52},[49,3401,3402],{"style":138},"  failed",[49,3404,222],{"style":55},[49,3406,158],{"style":81},[49,3408,364],{"style":59},[49,3410,3411],{"class":51,"style":52},[49,3412,403],{"style":59},[49,3414],{"class":51,"style":52},[49,3416,3417,3419,3421],{"class":51,"style":52},[49,3418,346],{"style":55},[49,3420,3372],{"style":138},[49,3422,225],{"style":59},[49,3424,3425,3427,3429,3431],{"class":51,"style":52},[49,3426,153],{"style":138},[49,3428,142],{"style":55},[49,3430,158],{"style":81},[49,3432,70],{"style":59},[49,3434,3435,3437,3439,3441,3443,3445],{"class":51,"style":52},[49,3436,2408],{"style":138},[49,3438,142],{"style":55},[49,3440,2913],{"style":66},[49,3442,238],{"style":55},[49,3444,158],{"style":81},[49,3446,364],{"style":59},[49,3448,3449,3451,3453,3455],{"class":51,"style":52},[49,3450,3379],{"style":138},[49,3452,142],{"style":55},[49,3454,3384],{"style":138},[49,3456,364],{"style":59},[49,3458,3459,3462,3464,3466,3468,3470,3472,3475],{"class":51,"style":52},[49,3460,3461],{"style":138},"  forks",[49,3463,142],{"style":55},[49,3465,178],{"style":138},[49,3467,181],{"style":59},[49,3469,184],{"style":81},[49,3471,187],{"style":59},[49,3473,3474],{"style":138},"Fork",[49,3476,1193],{"style":59},[49,3478,3479,3482,3484,3486],{"class":51,"style":52},[49,3480,3481],{"style":138},"  hooks",[49,3483,142],{"style":55},[49,3485,3082],{"style":138},[49,3487,364],{"style":59},[49,3489,3490,3493,3495,3497],{"class":51,"style":52},[49,3491,3492],{"style":138},"  hub",[49,3494,222],{"style":55},[49,3496,158],{"style":81},[49,3498,70],{"style":59},[49,3500,3501,3504,3506,3508,3511,3513,3515],{"class":51,"style":52},[49,3502,3503],{"style":138},"  report",[49,3505,222],{"style":55},[49,3507,544],{"style":59},[49,3509,3510],{"style":138},"run",[49,3512,142],{"style":55},[49,3514,158],{"style":81},[49,3516,3517],{"style":59}," };",[49,3519,3520],{"class":51,"style":52},[49,3521,403],{"style":59},[49,3523],{"class":51,"style":52},[49,3525,3526,3528,3530,3532,3535,3537,3540,3542,3545,3547,3550,3552,3555],{"class":51,"style":52},[49,3527,2283],{"style":55},[49,3529,3384],{"style":138},[49,3531,85],{"style":55},[49,3533,3534],{"style":138}," GitSource",[49,3536,238],{"style":55},[49,3538,3539],{"style":138}," NpmSource",[49,3541,238],{"style":55},[49,3543,3544],{"style":138}," IndexSource",[49,3546,238],{"style":55},[49,3548,3549],{"style":138}," CloneSource",[49,3551,238],{"style":55},[49,3553,3554],{"style":138}," LocalSource",[49,3556,70],{"style":59},[20,3558,3559,3560,187,3562,170,3565,1519,3568,3571,3572,3575,3576,187,3579,187,3582,2768,3585,3587],{},"Every source has ",[24,3561,1992],{},[24,3563,3564],{},"update",[24,3566,3567],{},"\"auto\"",[24,3569,3570],{},"\"review\"","), ",[24,3573,3574],{},"origin",", and optional ",[24,3577,3578],{},"skills",[24,3580,3581],{},"include",[24,3583,3584],{},"exclude",[24,3586,3344],{},". By kind:",[852,3589,3590,3600],{},[1277,3591,3592],{},[1280,3593,3594,3597],{},[1283,3595,3596],{},"Type",[1283,3598,3599],{},"Fields",[1290,3601,3602,3617,3634,3646,3667],{},[1280,3603,3604,3609],{},[1295,3605,3606],{},[24,3607,3608],{},"GitSource",[1295,3610,3611,187,3614],{},[24,3612,3613],{},"git",[24,3615,3616],{},"ref?",[1280,3618,3619,3624],{},[1295,3620,3621],{},[24,3622,3623],{},"NpmSource",[1295,3625,3626,187,3629,187,3632],{},[24,3627,3628],{},"npm",[24,3630,3631],{},"registry?",[24,3633,1443],{},[1280,3635,3636,3641],{},[1295,3637,3638],{},[24,3639,3640],{},"IndexSource",[1295,3642,3643],{},[24,3644,3645],{},"index",[1280,3647,3648,3653],{},[1295,3649,3650],{},[24,3651,3652],{},"CloneSource",[1295,3654,3655,187,3657,187,3659,187,3661,187,3664],{},[24,3656,3613],{},[24,3658,3616],{},[24,3660,413],{},[24,3662,3663],{},"adopt",[24,3665,3666],{},"followLinks",[1280,3668,3669,3674],{},[1295,3670,3671],{},[24,3672,3673],{},"LocalSource",[1295,3675,3676,187,3679],{},[24,3677,3678],{},"local",[24,3680,3663],{},[20,3682,3683,3686,3687,417,3690,1570,3693,3696,3697,3700],{},[24,3684,3685],{},"isVendored(source)"," is true for git, npm and index sources, which are copied into the store. ",[24,3688,3689],{},"Hook",[24,3691,3692],{},"{ name, run, on }",[24,3694,3695],{},"on"," a list of ",[24,3698,3699],{},"\u003Csource>:\u003Cglob>"," patterns.",[114,3702,2735],{"id":3703,"anchor":3704},"report",{"label":3705,"icon":105},"Section titled \"Report\"",[20,3707,3708,2764,3711,3714,3715,2248,3718,1244,3721,39],{},[24,3709,3710],{},"{ version, host, program, manifest, startedAt, finishedAt, dryRun, offline, ok, sources, skills, files, entries, hooks, warnings, errors, previewLimitations? }",[24,3712,3713],{},"hooks"," is a list of ",[24,3716,3717],{},"HookRun",[24,3719,3720],{},"{ name, matched, code, output }",[328,3722,3724],{"href":3723},"\u002Fguide\u002Fsync#the-report","The report",[114,3726,3730],{"id":3727,"anchor":3728},"withsynclock",{"label":3729,"icon":105},"Section titled \"withSyncLock\"","withSyncLock",[41,3732,3733],{"language":43,"class":44,"wrap":14},[24,3734,3735],{"class":47},[49,3736,3737,3739,3742,3744,3747,3750,3752,3754,3756,3758,3761,3763,3765,3767,3770,3772,3774,3776,3778,3780,3782,3784,3786,3788,3790,3792],{"class":51,"style":52},[49,3738,128],{"style":55},[49,3740,3741],{"style":88}," withSyncLock",[49,3743,181],{"style":59},[49,3745,3746],{"style":138},"T",[49,3748,3749],{"style":59},">(",[49,3751,738],{"style":138},[49,3753,142],{"style":55},[49,3755,145],{"style":138},[49,3757,187],{"style":59},[49,3759,3760],{"style":138},"command",[49,3762,142],{"style":55},[49,3764,158],{"style":81},[49,3766,187],{"style":59},[49,3768,3769],{"style":88},"work",[49,3771,142],{"style":55},[49,3773,3203],{"style":59},[49,3775,205],{"style":55},[49,3777,1182],{"style":138},[49,3779,181],{"style":59},[49,3781,3746],{"style":138},[49,3783,2192],{"style":59},[49,3785,142],{"style":55},[49,3787,1182],{"style":138},[49,3789,181],{"style":59},[49,3791,3746],{"style":138},[49,3793,1213],{"style":59},[20,3795,3796,3797,3799,3800,3802,3803,3805],{},"Runs ",[24,3798,3769],{}," holding the sync lock. Waits up to 10 seconds for a running sync, then throws a ",[24,3801,1778],{},". A ",[24,3804,2684],{}," called inside shares the lock.",[114,3807,3810],{"id":3052,"anchor":3808},{"label":3809,"icon":105},"Section titled \"State\"","State",[41,3812,3813],{"language":43,"class":44,"wrap":14},[24,3814,3815,71,3862],{"class":47},[49,3816,3817,3819,3822,3824,3826,3828,3830,3832,3834,3836,3838,3841,3843,3845,3848,3851,3853,3855,3858,3860],{"class":51,"style":52},[49,3818,128],{"style":55},[49,3820,3821],{"style":88}," loadState",[49,3823,92],{"style":59},[49,3825,738],{"style":138},[49,3827,142],{"style":55},[49,3829,145],{"style":138},[49,3831,187],{"style":59},[49,3833,1675],{"style":138},[49,3835,222],{"style":55},[49,3837,544],{"style":59},[49,3839,3840],{"style":138},"warnings",[49,3842,222],{"style":55},[49,3844,158],{"style":81},[49,3846,3847],{"style":59},"[]; ",[49,3849,3850],{"style":138},"backupInvalid",[49,3852,222],{"style":55},[49,3854,253],{"style":81},[49,3856,3857],{"style":59}," })",[49,3859,142],{"style":55},[49,3861,3057],{"style":138},[49,3863,3864,3866,3869,3871,3873,3875,3877,3879,3881,3883,3885,3887,3889],{"class":51,"style":52},[49,3865,128],{"style":55},[49,3867,3868],{"style":88}," saveState",[49,3870,92],{"style":59},[49,3872,738],{"style":138},[49,3874,142],{"style":55},[49,3876,145],{"style":138},[49,3878,187],{"style":59},[49,3880,3052],{"style":138},[49,3882,142],{"style":55},[49,3884,3057],{"style":138},[49,3886,310],{"style":59},[49,3888,142],{"style":55},[49,3890,675],{"style":81},[20,3892,3893,3896,3897,3900,3901,3903,3904,3907,3908,3911,3912,3915],{},[24,3894,3895],{},"loadState"," reads ",[24,3898,3899],{},"\u003Cstate>\u002Fstate.json",". A missing file, one that doesn't parse, or one another version wrote reads as empty. With ",[24,3902,3850],{},", a bad file is copied to ",[24,3905,3906],{},"\u003Cstate>\u002Fbackup"," first, with a warning. ",[24,3909,3910],{},"saveState"," writes the whole state. ",[24,3913,3914],{},"sweepJsonTemps(dir)"," removes temporary files that a killed write left.",[114,3917,3921],{"id":3918,"anchor":3919},"forks-and-merges",{"label":3920,"icon":105},"Section titled \"Forks and merges\"","Forks and merges",[852,3923,3924,3932],{},[1277,3925,3926],{},[1280,3927,3928,3930],{},[1283,3929,1285],{},[1283,3931,1554],{},[1290,3933,3934,3944,3954,3964,3974,3984],{},[1280,3935,3936,3941],{},[1295,3937,3938],{},[24,3939,3940],{},"forkSkill(places, plan, name, { dryRun?, editForks })",[1295,3942,3943],{},"Moves a vendored git skill into the personal source and records where it came from",[1280,3945,3946,3951],{},[1295,3947,3948],{},[24,3949,3950],{},"mergeSkill(places, plan, name, { dryRun?, editForks })",[1295,3952,3953],{},"Merges upstream changes into an edited copy or a fork, leaving git's conflict markers where they clash",[1280,3955,3956,3961],{},[1295,3957,3958],{},[24,3959,3960],{},"adoptSkill(places, plan, path, { dryRun? })",[1295,3962,3963],{},"Moves a hand-made skill folder into the personal source",[1280,3965,3966,3971],{},[1295,3967,3968],{},[24,3969,3970],{},"diffSkill(places, plan, name)",[1295,3972,3973],{},"Local edits against upstream, or a held update against what is installed, as a diff",[1280,3975,3976,3981],{},[1295,3977,3978],{},[24,3979,3980],{},"diffPending(places, plan)",[1295,3982,3983],{},"Every update the sources hold",[1280,3985,3986,3991],{},[1295,3987,3988],{},[24,3989,3990],{},"diffEntry(places, kinds, plan, id)",[1295,3992,3993],{},"An MCP entry in the agent's config against what the plan gives it",[20,3995,3996,3999,4000,187,4003,4006,4007,4009,4010,4013],{},[24,3997,3998],{},"editForks"," returns a ",[24,4001,4002],{},"PlanEdit",[24,4004,4005],{},"{ file, push, check, save }",", that records the fork in your config. skillrc calls ",[24,4008,1236],{}," before it moves a file, and ",[24,4011,4012],{},"save"," after.",[114,4015,4019],{"id":4016,"anchor":4017},"team-sources",{"label":4018,"icon":105},"Section titled \"Team sources\"","Team sources",[852,4021,4022,4030],{},[1277,4023,4024],{},[1280,4025,4026,4028],{},[1283,4027,1285],{},[1283,4029,1554],{},[1290,4031,4032,4042,4052],{},[1280,4033,4034,4039],{},[1295,4035,4036],{},[24,4037,4038],{},"teamGitProblem(spec, cwd?)",[1295,4040,4041],{},"Why a shared config may not name this repository: it is local, or git's config rewrites it to a local one",[1280,4043,4044,4049],{},[1295,4045,4046],{},[24,4047,4048],{},"teamUrlProblem(url)",[1295,4050,4051],{},"Why a shared config may not fetch this URL: not http or https, or this machine",[1280,4053,4054,4059],{},[1295,4055,4056],{},[24,4057,4058],{},"isRemoteGit(spec, rules?)",[1295,4060,1349,4061,4064],{},[24,4062,4063],{},"spec"," names a repository on another machine",[114,4066,4070],{"id":4067,"anchor":4068},"agents-and-skills",{"label":4069,"icon":105},"Section titled \"Agents and skills\"","Agents and skills",[20,4072,4073,187,4076,2768,4079,4082,4083,4085,4086,4089,4090,39],{},[24,4074,4075],{},"getSupportedAgents()",[24,4077,4078],{},"detectAgents(options?)",[24,4080,4081],{},"listSkills(options?)"," are re-exported from the ",[24,4084,3578],{}," package, with the ",[24,4087,4088],{},"AgentInfo"," type: ",[24,4091,4092],{},"{ id, name, projectSkillsDir, globalSkillsDir, universal }",[4094,4116,4123],{"id":102,"depth":4095,"text":106,"children":4096},2,[4097,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115],{"id":116,"depth":4098,"text":119},3,{"id":334,"depth":4098,"text":337},{"id":436,"depth":4098,"text":439},{"id":501,"depth":4098,"text":504},{"id":584,"depth":4098,"text":587},{"id":632,"depth":4098,"text":635},{"id":694,"depth":4098,"text":697},{"id":817,"depth":4098,"text":820},{"id":960,"depth":4098,"text":963},{"id":1034,"depth":4098,"text":1037},{"id":1251,"depth":4098,"text":1210},{"id":1270,"depth":4098,"text":1273},{"id":1369,"depth":4098,"text":1372},{"id":1540,"depth":4098,"text":1543},{"id":1631,"depth":4098,"text":1634},{"id":1782,"depth":4098,"text":1785},{"id":1877,"depth":4098,"text":1880},{"id":1998,"depth":4098,"text":1778},{"id":2030,"depth":4095,"text":2033,"children":4117},[4118,4119,4120,4121,4122],{"id":2043,"depth":4098,"text":2046},{"id":2148,"depth":4098,"text":2151},{"id":2272,"depth":4098,"text":2105},{"id":2512,"depth":4098,"text":2515},{"id":2587,"depth":4098,"text":2590},{"id":2671,"depth":4095,"text":2674,"children":4124},[4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135],{"id":2684,"depth":4098,"text":2684},{"id":2750,"depth":4098,"text":2753},{"id":2779,"depth":4098,"text":2782},{"id":3178,"depth":4098,"text":3030},{"id":3348,"depth":4098,"text":3351},{"id":3703,"depth":4098,"text":2735},{"id":3727,"depth":4098,"text":3730},{"id":3052,"depth":4098,"text":3810},{"id":3918,"depth":4098,"text":3921},{"id":4016,"depth":4098,"text":4019},{"id":4067,"depth":4098,"text":4070},1796390516183,"74c0e290-bf28-4a8a-b311-db0be1c3af18"]