UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 855 B
import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{Pu as t,ii as n,zu as r}from"./control-ui-core-CBJ5efDh.js";import{Bi as i,ai as a,si as o}from"./ui-CmSP4d14.js";import{dt as s,ft as c}from"./control-ui-boot-chat-CGYcTLro.js";import{a as l,s as u}from"./config-form.node.shared-BA7MSXRE.js";function d(e,t){if(t)return`<redacted>`;let n=[e],a=0;for(;n.length;){let e=n.pop();if(++a>1e3||e===`__OPENCLAW_REDACTED__`||u(e)||typeof e==`string`&&o(e)!==e)return`<redacted>`;if(e&&typeof e==`object`){let t=Object.entries(e);if(t.length+n.length+a>1e3||t.some(([e])=>o(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?`${i(s,512)}…`:s}function f(){return(f=e((()=>{a(),l(),t(),s(),n(),c()})))()}f();export{d as formatPluginHelpValue};