openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 855 B
JavaScript
import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{Eu as t,ai as n,ju as r}from"./control-ui-core-BncvAZjR.js";import{fi as i,mi as a,qi as o}from"./ui-DuRgK6kL.js";import{dr as s,fr as c}from"./control-ui-boot-chat-C8hdsB2M.js";import{a as l,s as u}from"./config-form.node.shared-BDgoYpu6.js";function d(e,t){if(t)return`<redacted>`;let n=[e],i=0;for(;n.length;){let e=n.pop();if(++i>1e3||e===`__OPENCLAW_REDACTED__`||u(e)||typeof e==`string`&&a(e)!==e)return`<redacted>`;if(e&&typeof e==`object`){let t=Object.entries(e);if(t.length+n.length+i>1e3||t.some(([e])=>a(e)!==e))return`<redacted>`;n.push(...t.map(([,e])=>e))}}let s=typeof e==`string`?e:JSON.stringify(e);return s===void 0?r(`custodian.pluginHelpUnset`):s.length>512?`${o(s,512)}…`:s}function f(){return(f=e((()=>{i(),l(),t(),s(),n(),c()})))()}f();export{d as formatPluginHelpValue};