openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 873 B
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{kc as t,nn as n,tn as r,wa as i,xa as a}from"./control-ui-connection-Bfj9beF_.js";import{n as o,t as s}from"./en-plugin-management-BoZM4tY6.js";import{o as c}from"./config-form-utils-BqrafwiP.js";import{c as l,o as u}from"./config-form.node.shared-DNbFFflG.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__`||l(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(),u(),a(),s(),c(),o()})))()}f();export{d as formatPluginHelpValue};