openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.4 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Gs as t,Qi as n,Us as r,Ws as i}from"./control-ui-connection-Bfj9beF_.js";import{wr as a}from"./control-ui-boot-shared-DFTSUQQ0.js";import{Et as o,I as s,Q as c,a as l,gt as u,i as d,pt as f,r as p,z as m}from"./string-literal-union-XE10pie5.js";var h,g,_,v;function y(){return(y=e((()=>{h=`value`,g=/^[a-z][a-z0-9_-]{0,63}$/,_=`~(?:[^01]|$)`,v=`^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9][A-Za-z0-9._:/#-]{0,255}$`})))()}var b,x,S,C,w,T,E,D,O,k,A,j;function M(){return(M=e((()=>{l(),t(),y(),a(),d(),n(),b=/^[A-Z][A-Z0-9_]{0,127}$/,x=[`external_user`,`inter_session`,`internal_system`],S=512,C=m({minLength:1}),m({minLength:64,maxLength:64,pattern:`^[a-fA-F0-9]{64}$`}),m({minLength:1,maxLength:128}),m({minLength:1,maxLength:512}),m({minLength:1,maxLength:S}),p({kind:m({enum:[...x]}),originSessionId:o(m()),sourceSessionKey:o(m()),sourceChannel:o(m()),sourceTool:o(m()),sourceRole:o(c(`subagent`)),sourcePromptPrefix:o(m()),jobId:o(m()),runId:o(m())}),f(r),f(i),w=m({pattern:g.source}),T=p({source:c(`env`),provider:w,id:m({pattern:b.source})}),E=u({type:`string`,anyOf:[{const:h},{allOf:[{pattern:`^/`},{not:{pattern:_}}]}]}),D=p({source:c(`file`),provider:w,id:E}),O=p({source:c(`exec`),provider:w,id:m({pattern:v})}),k=p({source:c(`store`),provider:w,id:m({pattern:b.source})}),A=s([T,D,O,k]),j=s([m(),A])})))()}export{j as n,M as r,C as t};