MCPcopy Create free account
hub / github.com/tiann/hapi / getHapiHomeDir

Function getHapiHomeDir

cli/src/modules/common/cursorModelsSharedCache.ts:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import type { CursorModelsResponse } from '@hapi/protocol/apiTypes';
5
6function getHapiHomeDir(): string {
7 return process.env.HAPI_HOME?.trim() || join(tmpdir(), 'hapi');
8}
9
10function getSharedCachePath(): string {
11 return join(getHapiHomeDir(), 'cache', 'cursor-models.json');

Callers 1

getSharedCachePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected