MCPcopy Create free account
hub / github.com/anomalyco/opencode / withCursor

Function withCursor

packages/protocol/src/groups/session.ts:49–53  ·  view source on GitHub ↗
(schema: Schema.Struct<Fields>)

Source from the content-addressed store, hash-verified

47const SessionsAllQuery = Schema.Struct(SessionsQueryFields)
48
49const withCursor = <Fields extends Schema.Struct.Fields>(schema: Schema.Struct<Fields>) =>
50 schema.mapFields((fields) => ({
51 ...Struct.omit(fields, ["limit"]),
52 anchor: Session.ListAnchor,
53 }))
54
55const SessionsCursorInput = Schema.Union([
56 withCursor(SessionsDirectoryQuery),

Callers 1

session.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected