cursorsource

package
v1.48.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cursorsource is the Cursor public SDK boundary. Native content and SDK diagnostics remain private; only bounded observation facts leave Decode.

Index

Constants

View Source
const MaxPayloadBytes = pluginkitai.MaxPayloadBytes
View Source
const Selector = "CursorStop"
View Source
const Stop = "stop"

Variables

This section is empty.

Functions

This section is empty.

Types

type Facts

type Facts struct {
	ConversationID, GenerationID, Event, Status string
	LoopCountKnown                              bool
	LoopCount                                   int64
}

Facts carries only private native identity and stopping observations. It has no task-success interpretation, timestamp, invented turn ID or native content.

func Decode

func Decode(ctx context.Context, selector string, payload []byte) (facts Facts, err error)

Decode calls the pinned public typed observer with buffered IO and empty env. The observer's neutral exit code alone is not proof of a decoded event.

func (Facts) Valid

func (f Facts) Valid() bool

Valid preserves unknown status for the consumer to suppress. Both native IDs are mandatory; nil loop count remains distinguishable from explicit zero.

Jump to

Keyboard shortcuts

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