MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / maskCwd

Method maskCwd

src/utils/telemetry.ts:145–149  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

143 }
144
145 private maskCwd(cwd: string): string {
146 if (!this.anonymizeCwd) return cwd;
147 // sha256 prefix — stable across sessions but not reversible
148 return 'cwd_' + createHash('sha256').update(cwd).digest('hex').slice(0, 12);
149 }
150
151 recordTool(event: ToolEvent): void {
152 const db = this.ensureOpen();

Callers 4

recordToolMethod · 0.95
recordLlmMethod · 0.95
getToolStatsMethod · 0.95
getModelStatsMethod · 0.95

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected