mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-16 15:43:57 -06:00
269bc5c89e
Co-authored-by: 1052326311 <65798732+1052326311@users.noreply.github.com>
23 lines
697 B
TypeScript
23 lines
697 B
TypeScript
// Policy plugin entrypoint registers its OpenClaw integration.
|
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { POLICY_CLI_DESCRIPTOR } from "./src/cli-output-mode.js";
|
|
import { registerPolicyCli } from "./src/cli.js";
|
|
import { registerPolicyDoctorChecks } from "./src/doctor/register.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "policy",
|
|
name: "Policy",
|
|
description: "Adds policy-backed doctor checks for workspace conformance.",
|
|
register(api) {
|
|
api.registerCli(
|
|
async ({ program }) => {
|
|
registerPolicyCli(program);
|
|
},
|
|
{
|
|
descriptors: [POLICY_CLI_DESCRIPTOR],
|
|
},
|
|
);
|
|
registerPolicyDoctorChecks();
|
|
},
|
|
});
|