cmd_handler

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dispatch

func Dispatch(ctx context.Context, s *settings.Settings, displayName, version, commit string, rt *Runtime) error

Dispatch runs the selected settings.Command.

func Import

func Import(ctx context.Context, s *settings.Settings, rt *Runtime) error

Import merges Cursor-style auth.json into the gateway store.

func Login

func Login(ctx context.Context, s *settings.Settings, rt *Runtime) error

Login runs Cursor OAuth PKCE and stores the session.

func Logout

func Logout(ctx context.Context, s *settings.Settings, rt *Runtime) error

Logout removes one session or all sessions.

func Models

func Models(ctx context.Context, s *settings.Settings, rt *Runtime) error

Models fetches Cursor models (requires at least one usable session).

func Serve

func Serve(ctx context.Context, s *settings.Settings, rt *Runtime) error

Serve starts the OpenAI-compatible HTTP proxy.

func Sessions

func Sessions(ctx context.Context, s *settings.Settings, rt *Runtime) error

Sessions lists stored sessions; with --check, validates against Cursor.

func Whoami

func Whoami(ctx context.Context, s *settings.Settings, rt *Runtime) error

Whoami prints local identity metadata for stored sessions.

Types

type Runtime

type Runtime struct {
	Out    io.Writer
	Err    io.Writer
	Client *cursor_account_sdk.Client
}

Runtime is shared wiring for handlers (stdout/stderr, auth client).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL