openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 876 B
JavaScript
import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{Ii as t,ri as n,ti as r}from"./control-ui-foundation-ZY_Flbbd.js";import{hu as i,uu as a,yi as o}from"./control-ui-core-3P365fbR.js";import{di as s,fi as c}from"./control-ui-boot-shared-DoKu-5Ju.js";import{i as l,o as u}from"./config-form.node.shared-YCBWiPxU.js";function d(e,r){if(r)return`<redacted>`;let a=[e],o=0;for(;a.length;){let e=a.pop();if(++o>1e3||e===`__OPENCLAW_REDACTED__`||u(e)||typeof e==`string`&&n(e)!==e)return`<redacted>`;if(e&&typeof e==`object`){let t=Object.entries(e);if(t.length+a.length+o>1e3||t.some(([e])=>n(e)!==e))return`<redacted>`;a.push(...t.map(([,e])=>e))}}let s=typeof e==`string`?e:JSON.stringify(e);return s===void 0?i(`custodian.pluginHelpUnset`):s.length>512?`${t(s,512)}…`:s}function f(){return(f=e((()=>{r(),l(),a(),s(),o(),c()})))()}f();export{d as formatPluginHelpValue};