UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 1.04 kB
import{a as isStandaloneRuntimeExecutable}from"./cli-invocation-Covx3kvQ.mjs";import{n as isTruthyEnvValue}from"./env-fLMEolk5.mjs"; //!src/plugins/bundled-plugin-dev-reload.ts const BUNDLED_PLUGIN_DEV_RELOAD_ENV=`OPENCLAW_DEV_RELOAD_BUNDLED_PLUGINS`;function resolveBundledPluginDevReloadMode(e=process.env){if(!isTruthyEnvValue(e[BUNDLED_PLUGIN_DEV_RELOAD_ENV]))return{enabled:false};if(isStandaloneRuntimeExecutable())return{enabled:false,ignoredWarning:`${BUNDLED_PLUGIN_DEV_RELOAD_ENV} is ignored: bundled plugin code is embedded in this executable. Install a new build and restart the Gateway.`};return{enabled:true}}function resolveBundledCodeReloadPluginIds(e){return e?.reason===`reload`&&resolveBundledPluginDevReloadMode().enabled?e.pluginIds:void 0}function formatBundledPluginDevReloadWarning(e){return`Development reload loaded ${e} from disk; replaced code stays in memory until the Gateway restarts.`}export{resolveBundledCodeReloadPluginIds as n,resolveBundledPluginDevReloadMode as r,formatBundledPluginDevReloadWarning as t};