Documentation
¶
Overview ¶
Package toolmeta renders safe, provider-neutral tool progress presentation metadata.
Index ¶
Constants ¶
const HostedBindNonceFlag = "--bind-nonce"
HostedBindNonceFlag marks the daemon-minted launch of the hosted MCP server; a configured server that only reuses the name never carries it.
const HostedServerName = "compozy-hosted-tools"
HostedServerName is the MCP server name Compozy injects into every ACP session for its hosted native tools.
Variables ¶
This section is empty.
Functions ¶
func NormalizeHostedToolName ¶
NormalizeHostedToolName removes provider wrappers for the Compozy hosted MCP server.
func ValidateDescriptorMetadata ¶
ValidateDescriptorMetadata rejects executable or multiline presentation hints.
Types ¶
type DescriptorLookup ¶
type DescriptorLookup interface {
LookupToolMetadata(workspaceID string, toolID string) (DescriptorMetadata, bool)
}
DescriptorLookup resolves optional extension or MCP presentation metadata within one workspace.
type DescriptorMetadata ¶
DescriptorMetadata is the narrow presentation-only view implemented by tool registries.
type Entry ¶
Entry is the curated presentation metadata for one native tool family.
func NativeEntry ¶
NativeEntry returns curated progress metadata for Compozy's native tool namespace.
type Presentation ¶
type Presentation struct {
ToolID string
Label string
Preview string
Emoji string
Connector string
Fallback bool
}
Presentation is the daemon-rendered progress chrome used by progress renderers.
func Render ¶
func Render(toolID string, rawInput []byte, opts RenderOptions) Presentation
Render builds one redacted presentation payload without exposing raw arguments.
func (Presentation) ProgressFields ¶
func (p Presentation) ProgressFields() (string, string)
ProgressFields returns provider-neutral fields for progress renderers.
func (Presentation) String ¶
func (p Presentation) String() string
String renders one human-readable progress line.
type RenderOptions ¶
type RenderOptions struct {
Descriptor DescriptorMetadata
PreviewLimit int
Verbose bool
}
RenderOptions controls safe preview rendering.