-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli-metadata.ts
More file actions
24 lines (23 loc) · 773 Bytes
/
cli-metadata.ts
File metadata and controls
24 lines (23 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
import { CLI_ROOT_DESCRIPTOR } from "./src/constants.js";
export default definePluginEntry({
id: "memory-cloudflare-vectorize",
name: "Cloudflare Vectorize Memory",
description: "OpenClaw memory plugin backed by Cloudflare Vectorize and Workers AI embeddings.",
register(api) {
api.registerCli(
async ({ program }) => {
const cliModulePath = "./dist/cli.js";
const { registerCloudflareMemoryCli }: typeof import("./src/cli.js") = await import(cliModulePath);
registerCloudflareMemoryCli(program, {
pluginConfig: api.pluginConfig,
openClawConfig: api.config,
resolvePath: api.resolvePath,
});
},
{
descriptors: [CLI_ROOT_DESCRIPTOR],
},
);
},
});