copilotmodels

package
v0.7.9-dev.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package copilotmodels lists the models a person's Copilot plan offers for `agentry setup` and the desktop's model setup, so there is one implementation per machine: the Copilot sign-in kept on this computer, the images a Copilot run needs made present as setup makes them, then Copilot CLI's own list in a run's container (engine.ListCopilotModels). Nothing of Agentry's calls the Copilot API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List returns the models the Copilot plan offers the signed-in account, in Copilot CLI's order. No Copilot sign-in kept here is modelsignin.ErrNoSignIn, wrapped; an organization's policy that turns Copilot CLI off for the account is an *adapter.OrgPolicyRefusal.

Types

type Request

type Request struct {
	// Home is the runner home, whose model sign-in store keeps the Copilot
	// sign-in; Keys its keychain (the sign-in's refresh token).
	Home string
	Keys connection.Keychain
	// Policy supplies the images, docker.limits and docker.runtime; its
	// model block is not read.
	Policy *policy.Policy
	// CopilotPlan is the person's Copilot plan (policy.CopilotPlans).
	CopilotPlan string
	// RunnerImage is the runner image's tag and ImageCtxDir where its
	// context is unpacked to build it, as setup builds it.
	RunnerImage, ImageCtxDir string
	// Log receives the image builds' lines and Copilot CLI's stderr; nil
	// discards them.
	Log io.Writer
}

Request is one list's.

Jump to

Keyboard shortcuts

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