MCPcopy Create free account
hub / github.com/anomalyco/opencode / stamp

Function stamp

packages/opencode/src/cli/cmd/run/trace.ts:24–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22let state: Trace | false | undefined
23
24function stamp() {
25 return new Date()
26 .toISOString()
27 .replace(/[-:]/g, "")
28 .replace(/\.\d+Z$/, "Z")
29}
30
31function file() {
32 return path.join(Global.Path.log, "direct", `${stamp()}-${process.pid}.jsonl`)

Callers 1

fileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected