tools

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tools derives terminal tool inspection state from Protocol values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detail

type Detail struct {
	Tool        types.Tool
	Manifest    *types.ToolManifest
	Metrics     *types.ToolMetrics
	Content     *types.ToolContentStats
	BestEffort  bool
	Annotations bool
	Unavailable string
}

Detail contains catalog, schema, policy, OAuth, analytics, and content posture.

type State

type State struct {
	Surface           surface.State
	Rows              []types.Tool
	Aggregates        types.ToolAggregates
	AggregatesPartial bool
	Selected          *Detail
	SelectedID        string
	Filter            string
	Page, PageSize    int
}

State is one identity-scoped tool catalog projection.

func Derive

func Derive(response types.ToolListResponse, annotations bool) State

Derive copies canonical rows and preserves annotation partiality.

func (State) Visible

func (s State) Visible() []types.Tool

Visible returns the filterable current page.

Jump to

Keyboard shortcuts

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