File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export async function ensureDocs(
3737 if ( shouldUpdate ) {
3838 try {
3939 if ( ! isMcpMode ) console . log ( `Updating documentation for Zig version: ${ zigVersion } ` ) ;
40- const builtinFunctions = await extractBuiltinFunctions ( zigVersion , isMcpMode ) ;
40+ const builtinFunctions = await extractBuiltinFunctions ( zigVersion , isMcpMode , true ) ;
4141
4242 await downloadSourcesTar ( zigVersion , isMcpMode , true ) ;
4343
Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ export interface BuiltinFunction {
1212async function extractBuiltinFunctions (
1313 zigVersion : string ,
1414 isMcpMode = true ,
15+ forceUpdate = false ,
1516) : Promise < BuiltinFunction [ ] > {
1617 const paths = envPaths ( "zig-mcp" , { suffix : "" } ) ;
1718 const versionCacheDir = path . join ( paths . cache , zigVersion ) ;
1819 const outputPath = path . join ( versionCacheDir , "builtin-functions.json" ) ;
1920
20- if ( fs . existsSync ( outputPath ) ) {
21+ if ( fs . existsSync ( outputPath ) && ! forceUpdate ) {
2122 if ( ! isMcpMode ) console . log ( `Using cached builtin functions from ${ outputPath } ` ) ;
2223 try {
2324 const content = fs . readFileSync ( outputPath , "utf8" ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " zig-mcp" ,
3- "version" : " 1.1.0 " ,
3+ "version" : " 1.1.1 " ,
44 "type" : " module" ,
55 "bin" : {
66 "zig-mcp" : " dist/mcp.js"
You can’t perform that action at this time.
0 commit comments