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

Function hasPtyConnectTicketURL

packages/protocol/src/groups/pty.ts:17–19  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

15// Authorization middleware skips credential checks when this matches; the PTY connect handler
16// is then responsible for consuming and validating the ticket.
17export function hasPtyConnectTicketURL(url: URL) {
18 return PTY_CONNECT_PATH.test(url.pathname) && !!url.searchParams.get(PTY_CONNECT_TICKET_QUERY)
19}
20
21export const PtyGroup = HttpApiGroup.make("server.pty")
22 .add(

Callers 1

authorization.tsFile · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected