MCPcopy Create free account
hub / github.com/allocnode/oh-my-sage / writeIndex

Method writeIndex

src/server/session/store.ts:104–106  ·  view source on GitHub ↗

* 写入索引

(index: SessionIndex)

Source from the content-addressed store, hash-verified

102 * 写入索引
103 */
104 private writeIndex(index: SessionIndex): void {
105 fs.writeFileSync(this.getIndexPath(), JSON.stringify(index, null, 2));
106 }
107
108 /**
109 * 生成唯一 ID

Callers 6

createSessionMethod · 0.95
appendMessageMethod · 0.95
truncateSessionMethod · 0.95
updateSessionMetaMethod · 0.95
deleteSessionMethod · 0.95
clearAllMethod · 0.95

Calls 1

getIndexPathMethod · 0.95

Tested by

no test coverage detected