mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-29 20:13:39 +00:00
15 lines
548 B
TypeScript
15 lines
548 B
TypeScript
// Tokenjuice plugin entrypoint registers its OpenClaw integration.
|
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { createTokenjuiceAgentToolResultMiddleware } from "./tool-result-middleware.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "tokenjuice",
|
|
name: "tokenjuice",
|
|
description: "Compacts exec and bash tool results with tokenjuice reducers.",
|
|
register(api) {
|
|
api.registerAgentToolResultMiddleware(createTokenjuiceAgentToolResultMiddleware(), {
|
|
runtimes: ["openclaw", "codex"],
|
|
});
|
|
},
|
|
});
|