MCPcopy Index your code
hub / github.com/Microck/opencode-studio / savePoolMetadata

Function savePoolMetadata

server/index.js:3360–3364  ·  view source on GitHub ↗
(metadata)

Source from the content-addressed store, hash-verified

3358}
3359
3360function savePoolMetadata(metadata) {
3361 const dir = path.dirname(POOL_METADATA_FILE);
3362 if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
3363 atomicWriteFileSync(POOL_METADATA_FILE, JSON.stringify(metadata, null, 2));
3364}
3365
3366function loadAntigravityAccounts() {
3367 if (!fs.existsSync(ANTIGRAVITY_ACCOUNTS_PATH)) return null;

Callers 6

processLogLineFunction · 0.85
index.jsFile · 0.85
importCurrentAuthToPoolFunction · 0.85
syncAntigravityPoolFunction · 0.85
rotateAccountFunction · 0.85

Calls 1

atomicWriteFileSyncFunction · 0.85

Tested by

no test coverage detected