Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CopyTranslator/CopyTranslator
/ init
Method
init
src/main/tracker.ts:38–44 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
36
}
37
38
private init(): void {
39
// 启动定时任务
40
this.timer = setInterval(() => this.flush(), this.syncInterval);
41
42
// 监听进程退出(仅限 Node 环境)
43
process.on(
'beforeExit'
, () => this.flush());
44
}
45
46
/**
47
* 核心追踪接口
Callers
1
constructor
Method · 0.95
Calls
2
flush
Method · 0.95
on
Method · 0.80
Tested by
no test coverage detected