openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
31 lines (30 loc) • 881 B
JavaScript
import { t as definePluginEntry } from "./plugin-entry-CiJdaHtx.mjs";
//#region extensions/oc-path/index.ts
function hasCliFlag(e, t) {
for (const n of e.slice(2)) {
if (n === "--") return false;
if (n === t) return true;
}
return false;
}
var oc_path_default = definePluginEntry({
id: "oc-path",
name: "OC Path",
description: "Adds the openclaw path CLI for oc:// workspace file addressing.",
register(e) {
e.registerCli(async ({ program: e }) => {
const { registerPathCli: t } = await import("./cli-Om6fSOo4.mjs");
t(e);
}, { descriptors: [{
name: "path",
description: "Inspect and edit workspace files via oc:// paths",
hasSubcommands: true,
machineOutput: (e) => {
if (hasCliFlag(e.argv, "--json")) return true;
return !hasCliFlag(e.argv, "--human") && !e.stdoutIsTTY;
}
}] });
}
});
//#endregion
export { oc_path_default as t };