MCPcopy Index your code
hub / github.com/anomalyco/opencode / fresh

Function fresh

packages/app/src/context/server-session.ts:990–992  ·  view source on GitHub ↗
(sessionID: string, ttl: number)

Source from the content-addressed store, hash-verified

988 return (meta.limit[sessionID] ?? 0) <= limit
989 },
990 fresh(sessionID: string, ttl: number) {
991 return Date.now() - (meta.at[sessionID] ?? 0) <= ttl
992 },
993 optimistic: {
994 add(input: { sessionID: string; message: Message; parts: Part[] }) {
995 const parts = input.parts

Callers 1

models-dev.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected