copilotvscodesource

package
v1.47.1 Latest Latest
Warning

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

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

Documentation

Overview

Package copilotvscodesource is the only Local SDK boundary. It discards all native content except validated observation facts; SDK diagnostics stay private.

Index

Constants

View Source
const MaxPayloadBytes = pluginkitai.MaxPayloadBytes
View Source
const Stop = "Stop"

Variables

This section is empty.

Functions

This section is empty.

Types

type Facts

type Facts struct {
	Event, SessionID, Timestamp         string
	StopHookActiveKnown, StopHookActive bool
}

Facts has no prompt, tool, path, transcript, control output or invented turn ID. SessionID is optional and is used only inside the private deduplication key.

func Decode

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

Decode invokes the public typed observer with bounded in-memory IO and empty environment. No SDK type, raw diagnostics or native response leaves this API.

func (Facts) Valid

func (f Facts) Valid() bool

Valid allows an absent session, but requires a valid native event/timestamp. Boolean presence/value are preserved; the consumer selects explicit false.

Jump to

Keyboard shortcuts

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