mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 20:26:49 +00:00
Move provider model registries, stream wrappers, OAuth helpers, and LLM utilities into src/llm with plugin-sdk barrels instead of depending on the old embedded runtime layout.
14 lines
480 B
TypeScript
14 lines
480 B
TypeScript
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"],
|
|
});
|
|
},
|
|
});
|