Skip to main content

Crate guth_cli

Crate guth_cli 

Source
Expand description

Shared external-plugin discovery and dispatch for Guth.

Structs§

DiscoveredActionContribution
PluginActionContext
PluginActionContribution
PluginActionInvokeRequest
PluginActionManifest
A schema-2 plugin manifest that opts into Guth’s external GUI-action protocol.
PluginActionMatcher
PluginActionMetadata
PluginActionProbeRequest
PluginActionProbeResponse
PluginActionResult
PluginActionTarget
PluginContributions
PluginDiagnostic
PluginDiscoveryReport
PluginManifest
PluginOutput
PluginProcess
PluginProtocolPath
Lossless, bounded representation of a Linux path on the JSON protocol wire. display is presentation-only; unix_bytes_hex is the authoritative path.

Enums§

PluginActionCategory
PluginActionIcon
PluginActionOperation
PluginActionOutcome
PluginActionPlacement
PluginActionTargetKind

Constants§

ACTION_CONTRIBUTION_CAPABILITY
ACTION_MANIFEST_SCHEMA
ACTION_PROTOCOL_ARGUMENT
ACTION_PROTOCOL_VERSION
ENABLED_PLUGIN_BYTES_LIMIT
MANIFEST_BYTES_LIMIT
MANIFEST_SCHEMA
PLUGIN_ACTION_INVOKE_TIMEOUT
PLUGIN_ACTION_IO_BYTES_LIMIT
PLUGIN_ACTION_LIMIT
PLUGIN_ACTION_SELECTION_LIMIT
PLUGIN_DIAGNOSTIC_LIMIT
PLUGIN_LIMIT

Functions§

discover_plugins
discover_plugins_in
discover_plugins_in_with_diagnostics
discover_plugins_with_diagnostics
enabled_plugins_path
install_action_manifest
install_action_manifest_in
install_manifest
install_manifest_in
invoke_plugin_action
Runs a validated action to completion for worker-thread and headless use. The process is cancelled after five minutes and is always reaped by the bounded PluginProcess shutdown path.
load_enabled_plugins
Loads the persisted enabled IDs without discovering plugins or pruning stale entries.
parse_plugin_action_invoke_request
Parses the bounded JSON request received by a plugin in invoke mode.
parse_plugin_action_probe
Parses and validates a completed action probe without trusting plugin IDs, action identifiers, menu placement, or selection matchers from stdout.
parse_plugin_action_probe_request
Parses the bounded JSON request received by a plugin in probe mode.
parse_plugin_action_result
plugin_data_dir
probe_plugin_actions
Blocking probe convenience for worker threads and headless callers. GUI code should run this away from the render thread or use the spawn/parse pair.
prune_uninstalled_enabled_plugins
run_plugin
set_plugin_enabled
spawn_plugin
spawn_plugin_action
Starts an action previously returned by a validated probe. Invocation is rejected when the action no longer matches the supplied context.
spawn_plugin_action_probe
Starts a bounded schema-2 action probe. The executable receives exactly --guth-action-protocol 1 probe; its request is a single JSON object on stdin and its response must be a single versioned JSON object on stdout.