MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / timestampAfter

Function timestampAfter

apps/kimi-code/src/tui/goal-queue-store.ts:254–261  ·  view source on GitHub ↗
(previous: string)

Source from the content-addressed store, hash-verified

252}
253
254function timestampAfter(previous: string): string {
255 const now = new Date();
256 const previousMs = Date.parse(previous);
257 if (Number.isFinite(previousMs) && now.getTime() <= previousMs) {
258 return new Date(previousMs + 1).toISOString();
259 }
260 return now.toISOString();
261}
262
263function isErrno(error: unknown, code: string): boolean {
264 return isRecord(error) && error['code'] === code;

Callers 1

updateGoalQueueItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected