UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

19 lines (18 loc) • 1.01 kB
import { t as resolveIdentityPathViaExistingAncestorSync } from "./boundary-path-CAv_plX7.mjs"; import { r as sha256HexPrefixCore } from "./node-crypto-BG4u3UnX.mjs"; import "./crypto-digest-y6oZN-_F.mjs"; import path from "node:path"; //#region src/plugins/plugin-source-capture-path.ts const PLUGIN_SOURCE_CAPTURE_PREFIX = "openclaw-plugin-build-"; function resolvePluginSourceCapturesDirectory(stateDir) { return path.join(stateDir, "tmp", "plugin-captures"); } function resolvePluginSourceCaptureFallbackPrefix(stateDir) { const identity = resolveIdentityPathViaExistingAncestorSync(stateDir); return `openclaw-plugin-captures-${sha256HexPrefixCore(identity, 32)}-`; } function isLegacyPluginSourceCaptureName(name) { return name.startsWith("openclaw-plugin-build-") || name.startsWith("openclaw-model-catalog-"); } //#endregion export { resolvePluginSourceCapturesDirectory as i, isLegacyPluginSourceCaptureName as n, resolvePluginSourceCaptureFallbackPrefix as r, PLUGIN_SOURCE_CAPTURE_PREFIX as t };