MCPcopy
hub / github.com/AutoMaker-Org/automaker / getPath

Method getPath

apps/ui/src/lib/http-api-client.ts:1317–1324  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1315 }
1316
1317 async getPath(name: string): Promise<string> {
1318 // Server provides data directory
1319 if (name === 'userData') {
1320 const result = await this.get<{ dataDir: string }>('/api/health/detailed');
1321 return result.dataDir || '/data';
1322 }
1323 return `/data/${name}`;
1324 }
1325
1326 async saveImageToTemp(
1327 data: string,

Callers 5

handleAppReadyFunction · 0.80
initTerminalFunction · 0.80
startServerFunction · 0.80
registerAppHandlersFunction · 0.80
getDefaultDocumentsPathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected