Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
createSession
Method · 0.95
appendMessage
Method · 0.95
truncateSession
Method · 0.95
updateSessionMeta
Method · 0.95
deleteSession
Method · 0.95
clearAll
Method · 0.95
Calls
1
getIndexPath
Method · 0.95
Tested by
no test coverage detected