mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 09:33:06 +00:00
34 lines
905 B
TypeScript
34 lines
905 B
TypeScript
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import {
|
|
createDefaultOperationsMaintenanceService,
|
|
defaultOperationsRuntime,
|
|
} from "./runtime-api.js";
|
|
import { registerTasksCli } from "./src/cli.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "tasks",
|
|
name: "Tasks",
|
|
description: "Durable task inspection and maintenance CLI",
|
|
register(api) {
|
|
api.registerOperationsRuntime(defaultOperationsRuntime);
|
|
api.registerService(createDefaultOperationsMaintenanceService());
|
|
api.registerCli(
|
|
({ program }) => {
|
|
registerTasksCli(program, {
|
|
config: api.config,
|
|
operations: api.runtime.operations,
|
|
});
|
|
},
|
|
{
|
|
descriptors: [
|
|
{
|
|
name: "tasks",
|
|
description: "Inspect durable background task state",
|
|
hasSubcommands: true,
|
|
},
|
|
],
|
|
},
|
|
);
|
|
},
|
|
});
|