MCPcopy
hub / github.com/openai/codex-plugin-cc / generateJobId

Function generateJobId

plugins/codex/scripts/lib/state.mjs:124–127  ·  view source on GitHub ↗
(prefix = "job")

Source from the content-addressed store, hash-verified

122}
123
124export function generateJobId(prefix = "job") {
125 const random = Math.random().toString(36).slice(2, 8);
126 return `${prefix}-${Date.now().toString(36)}-${random}`;
127}
128
129export function upsertJob(cwd, jobPatch) {
130 return updateState(cwd, (state) => {

Callers 1

createCompanionJobFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected