MCPcopy Index your code
hub / github.com/anomalyco/opencode / stamp

Function stamp

packages/desktop/src/main/logging.ts:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107function stamp() {
108 return new Date()
109 .toISOString()
110 .replace(/[-:]/g, "")
111 .replace(/\.\d+Z$/, "")
112}
113
114function safeLogName(name: string) {
115 return name.replace(/[^a-z0-9_.-]/gi, "_") || "main"

Callers 2

exportDebugLogsFunction · 0.70
initRunDirectoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected