different-ai/openwork · error · InterpreterRuntimeError
Date method '${name}' is not available in CodeMode.
Error message
Date method '${name}' is not available in CodeMode. What it means
Error "Date method '${name}' is not available in CodeMode." thrown in different-ai/openwork.
Source
Thrown at packages/codemode/src/stdlib/date.ts:89
return hosted.getUTCFullYear()
case "getUTCMonth":
return hosted.getUTCMonth()
case "getUTCDate":
return hosted.getUTCDate()
case "getUTCDay":
return hosted.getUTCDay()
case "getUTCHours":
return hosted.getUTCHours()
case "getUTCMinutes":
return hosted.getUTCMinutes()
case "getUTCSeconds":
return hosted.getUTCSeconds()
case "getUTCMilliseconds":
return hosted.getUTCMilliseconds()
case "getTimezoneOffset":
return hosted.getTimezoneOffset()
default:
throw new InterpreterRuntimeError(`Date method '${name}' is not available in CodeMode.`, node)
}
}
import { type AstNode, InterpreterRuntimeError } from "../interpreter/model.js"
import { SandboxDate } from "../values.js"
import { coerceToNumber, coerceToString } from "./value.js"
View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at packages/codemode/src/stdlib/date.ts:89 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01).
Data as JSON: /api/errors/dcd166a1b83cc9b5.
Report an issue: GitHub.