MCPcopy
hub / github.com/anomalyco/opencode / unique

Function unique

packages/opencode/test/control-plane/workspace.test.ts:93–95  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

91}
92
93function unique(prefix: string) {
94 return `${prefix}-${Math.random().toString(36).slice(2)}`
95}
96
97function restoreEnv() {
98 Object.entries(originalEnv).forEach(([key, value]) => {

Callers 6

workspaceInfoFunction · 0.70
workspace.test.tsFile · 0.70
applyCachingFunction · 0.50
tui.tsFile · 0.50
paths.tsFile · 0.50
opencodeFilesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected