(sessionID: string)
| 169 | const pinned = new Map<string, number>() |
| 170 | const generations = new Map<string, object>() |
| 171 | const generation = (sessionID: string) => { |
| 172 | const current = generations.get(sessionID) |
| 173 | if (current) return current |
| 174 | const created = {} |
| 175 | generations.set(sessionID, created) |
| 176 | return created |
| 177 | } |
| 178 | const [meta, setMeta] = createStore({ |
| 179 | limit: {} as Record<string, number | undefined>, |
| 180 | cursor: {} as Record<string, string | undefined>, |