@maiar-ai/plugin-terminal
v1.0.0
Published
Maiar: A Composable, Plugin-Based AI Agent Framework
Readme
@maiar-ai/plugin-terminal
This package is part of the Maiar ecosystem, designed to work seamlessly with @maiar-ai/core.
Documentation
For detailed documentation, examples, and API reference, visit: https://maiar.dev/docs
Configuration
The Terminal plugin requires the following configuration:
interface TerminalPluginConfig {
user?: string; // Name of the terminal user (default: 'local')
agentName?: string; // Name of the agent (default: 'Terminal')
maxRetries?: number; // Number of connection retry attempts (default: 3)
retryDelay?: number; // Delay between retries in milliseconds (default: 1000)
}Optional Configuration
user: Username displayed in the terminal (default: 'local')agentName: Name of the agent displayed in responses (default: 'Terminal')maxRetries: Number of connection retry attempts if initial connection fails (default: 3)retryDelay: Delay between retry attempts in milliseconds (default: 1000)
Plugin Information
Actions
send_response: Send a response to connected terminal clients. This action is used when the agent needs to respond to a user's message in the terminal.
Triggers
terminal_server: Starts and manages the terminal server that handles client connections. Automatically processes incoming messages and maintains client connections.
Scripts
You can use the following scripts to launch terminal features. This is available as a CLI binary when this package is installed.
maiar-chat: Start the terminal chat client.
Usage
Add the PluginTerminal plugin to your agent configuration and provide the necessary configuration. Start the agent as usual.
Once agent startup is complete, you can connect to the terminal chat client using:
maiar-chatFor more detailed examples and advanced usage, visit our documentation.
