- Route "fn plugin add" to the plugin install handler and update CLI help/usage text to document the alias - Add bin routing tests that cover plugin add/install parity and updated error/help messaging - Update getting-started, settings reference, and runtime plugin READMEs to standardize plugin installation examples - Add a patch changeset for @runfusion/fusion and apply DirectoryPicker/PluginManager design-token styling refinements
61 lines
1.6 KiB
Markdown
61 lines
1.6 KiB
Markdown
# OpenClaw Runtime Plugin
|
|
|
|
Provides an executable OpenClaw runtime plugin for Fusion. This package enables runtime registration, discovery, and session execution so agents configured with `runtimeConfig.runtimeHint: "openclaw"` can run through the standard runtime adapter contract.
|
|
|
|
## Overview
|
|
|
|
This plugin follows the runtime adapter pattern used by other executable plugin runtimes:
|
|
|
|
- Registers OpenClaw runtime metadata for resolver discovery
|
|
- Creates executable runtime sessions via `createFnAgent`
|
|
- Delegates prompt execution through `promptWithFallback`
|
|
- Exposes model descriptions through `describeModel`
|
|
- Supports best-effort session disposal via `dispose()`
|
|
|
|
## Installation
|
|
|
|
### Option 1: Copy to plugins directory
|
|
|
|
```bash
|
|
cp -r fusion-plugin-openclaw-runtime ~/.fusion/plugins/
|
|
```
|
|
|
|
### Option 2: Install via CLI
|
|
|
|
```bash
|
|
fn plugin install ./plugins/fusion-plugin-openclaw-runtime
|
|
```
|
|
|
|
## Runtime Metadata
|
|
|
|
- **Plugin ID:** `fusion-plugin-openclaw-runtime`
|
|
- **Package name:** `@fusion-plugin-examples/openclaw-runtime`
|
|
- **Runtime ID:** `openclaw`
|
|
- **Runtime name:** `OpenClaw Runtime`
|
|
- **Version:** `0.1.0`
|
|
- **Description:** OpenClaw-backed AI session using the user's configured pi provider and model
|
|
|
|
## Agent Configuration
|
|
|
|
Configure an agent to target OpenClaw via `runtimeConfig.runtimeHint`:
|
|
|
|
```json
|
|
{
|
|
"name": "OpenClaw Executor",
|
|
"role": "executor",
|
|
"runtimeConfig": {
|
|
"runtimeHint": "openclaw"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Local Development
|
|
|
|
```bash
|
|
# Run plugin tests
|
|
pnpm --filter @fusion-plugin-examples/openclaw-runtime test
|
|
|
|
# Build plugin output to dist/
|
|
pnpm --filter @fusion-plugin-examples/openclaw-runtime build
|
|
```
|