Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ generateCode
Function
generateCode
packages/console/core/src/referral.ts:28–30 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
}
27
28
function
generateCode() {
29
return
ulid().slice(-CODE_LENGTH).toUpperCase()
30
}
31
32
async
function
ensureCode(workspaceID = Actor.workspace()) {
33
return
Database.use(
async
(db) => {
Callers
1
ensureCode
Function · 0.85
Calls
1
ulid
Function · 0.85
Tested by
no test coverage detected