codexquota

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: GPL-3.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package codexquota publishes bounded Codex account quota observations.

Index

Constants

View Source
const (
	PluginID        = "dev.bsbctl.codex-quota"
	PluginVersion   = "0.1.0"
	AppID           = "codex-quota"
	ChannelSummary  = "summary"
	ChannelPressure = "pressure"
	ChannelLive     = "live"
)

Variables

This section is empty.

Functions

func AssetDeclarations

func AssetDeclarations() []assets.Declaration

AssetDeclarations returns the immutable static asset owned by the Codex quota plugin.

func DefinitionForVersion

func DefinitionForVersion(version string) pluginsdk.Definition

DefinitionForVersion binds immutable release metadata into the child handshake.

Types

type Config

type Config struct {
	CredentialsHome          string
	ConfigurationHome        string
	Label                    string
	Badge                    string
	PollInterval             time.Duration
	WarningRemainingPercent  int
	CriticalRemainingPercent int
	ShowBadge                bool
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(host Host) *Handler

func (*Handler) EndSession

func (h *Handler) EndSession(ctx context.Context, request protocol.SessionEndRequest) error

func (*Handler) HandleSessionInput

func (h *Handler) HandleSessionInput(ctx context.Context, request protocol.SessionInputRequest) (protocol.SessionInputResult, error)

func (*Handler) Health

func (*Handler) ReplaceInstances

func (h *Handler) ReplaceInstances(ctx context.Context, instances []protocol.Instance) error

func (*Handler) Shutdown

func (h *Handler) Shutdown(ctx context.Context) error

func (*Handler) StartSession

func (h *Handler) StartSession(ctx context.Context, request protocol.SessionStartRequest) error

type Host

type Snapshot

type Snapshot = codexusage.Snapshot

type Window

type Window = codexusage.Window

Jump to

Keyboard shortcuts

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