openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 5.47 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Ta as t,wa as n,xa as r}from"./control-ui-connection-Bfj9beF_.js";import{At as i,Dt as a,Tt as o,kt as s}from"./control-ui-boot-chat-DewxEbIm.js";import{n as c,t as l}from"./en-settings-YsyvL-Mv.js";var u,d,f,p,m,h,g,_,v,y,b,x,S,C;function w(){return(w=e((()=>{u=`Run shell now.`,d=`Inspect/control exec sessions.`,f=`Schedule reminders, automations, wake events.`,p=`List visible sessions; filters/previews.`,m=`Read sanitized session history.`,h=`Search past session transcripts.`,g=`Run same-Gateway session/agent.`,_=`Spawn hidden subagent (ephemeral) or visible work session (durable).`,v=`Wait for collector subagents.`,y=`Show session status/model/usage.`,b=`Ask the user and wait for an answer.`,x=`Suggest follow-up work for operator approval.`,S=`Withdraw a pending task suggestion.`,C=`Save, improve, archive, and restore your learned skills.`})))()}function T(e){let t=e?.swarmEnabled===!0;return O.map(n=>({id:n.id,label:n.label,tools:n.tools.filter(n=>(n.id!==`agents_wait`||t)&&(n.id!==`personal_instructions`||e?.personalInstructionsEnabled===!0)).map(e=>({id:e.id,label:e.id,description:D[e.id]}))})).filter(e=>e.tools.length>0)}var E,D,O;function k(){return(k=e((()=>{a(),w(),i(),E=[{id:`fs`,label:`Files`},{id:`runtime`,label:`Runtime`},{id:`web`,label:`Web`},{id:`memory`,label:`Memory`},{id:`sessions`,label:`Sessions`},{id:`ui`,label:`UI`},{id:`messaging`,label:`Messaging`},{id:`automation`,label:`Automation`},{id:`nodes`,label:`Nodes`},{id:`agents`,label:`Agents`},{id:`media`,label:`Media`}],D={decision_evaluate:`Evaluate explicit evidence with the agent's decision model`,ls:`List directory entries`,read:`Read file contents`,write:`Create or overwrite files`,edit:`Make precise edits`,apply_patch:`Patch files`,exec:u,process:d,code_execution:`Run sandboxed remote analysis`,secrets:`Request and manage write-only credentials`,web_search:`Search the web`,web_fetch:`Fetch web content`,x_search:`Search X posts`,memory_search:`Semantic search`,memory_get:`Read memory files`,personal_instructions:`Edit the requesting user’s personal instructions`,presence:`Online people, connected devices, recent activity, and connection location`,sessions:`Session settings: label, pin, archive, groups`,sessions_create:`Create an independent session, optionally starting work`,sessions_list:p,sessions_history:m,sessions_search:h,conversations_list:`List exact external conversation addresses`,conversations_send:`Send to an exact external conversation`,conversations_turn:`Send and wait for a correlated external reply`,sessions_send:g,sessions_spawn:_,github_identity_status:`Inspect the effective GitHub identity and credential health`,github_publish:`Publish the reconciled session worktree as a draft GitHub pull request`,agents_wait:v,sessions_yield:`End turn to receive sub-agent results`,subagents:`Background work: subagents, media gen, automation runs. list/cancel.`,session_status:y,suggest_task:x,dismiss_task:S,browser:`Control web browser`,screen:`Drive operator web UI`,theme:`List, select, and create appearance themes`,dashboard:`Read and arrange the session dashboard`,terminal:`Use shared operator terminals with policy-governed input`,portal:`Expose local web apps through the gateway`,canvas:`Control node Canvas surfaces when the Canvas plugin is enabled`,show_widget:`Show an interactive widget on chat or an auto-fitting dashboard`,message:`Send messages`,[s]:f,gateway:`Update OpenClaw; read Gateway config/schema when permitted`,plugins:`Manage and reload plugins`,openclaw:`Delegate OpenClaw setup and repair`,nodes:`Nodes + devices`,computer:`Control the Gateway desktop or a paired computer`,mobile_ui:`Observe and control a paired Android app`,agents_list:`List agents`,get_goal:`Get current thread goal`,create_goal:`Create a thread goal`,update_goal:`Complete or block a thread goal`,progress_card:`Maintain the session progress card`,ask_user:b,skill_workshop:C,skills_search:`Search installed eligible skills`,skills_read:`Read complete installed skill instructions`,view_image:`Image understanding`,image_generate:`Image generation`,music_generate:`Music generation`,video_generate:`Video generation`,transcripts:`Inspect and manage meeting transcript captures`,tts:`Text-to-speech conversion`,pdf:`PDF reading and extraction`},O=E.map(({id:e,label:t})=>({id:e,label:t,tools:o.filter(t=>t.sectionId===e)}))})))()}function A(e){return e?.groups?.length?e.groups.map(e=>{let t=N.get(e.id);return{...e,label:t?n(`agents.toolCatalog.groups.${t}`):e.label}}):T().map(e=>({id:e.id,label:n(`agents.toolCatalog.groups.${N.get(e.id)}`),tools:e.tools.map(e=>{let n={...e},r=e.id,i=r===`automations`?`cron`:r===`view_image`?`image`:r.replace(/_([a-z])/gu,(e,t)=>t.toUpperCase());return n.description=t(`agents.toolCatalog.descriptions.${i}`)??e.description,n})}))}function j(e){return e?.profiles?.length?e.profiles.map(e=>{let t=P.get(e.id);return t?{id:e.id,label:n(t)}:e}):M.map(e=>({id:e.id,label:n(e.labelKey)}))}var M,N,P;function F(){return(F=e((()=>{k(),i(),r(),l(),c(),M=[{id:`minimal`,labelKey:`agents.toolCatalog.profiles.minimal`},{id:`coding`,labelKey:`agents.toolCatalog.profiles.coding`},{id:`messaging`,labelKey:`agents.toolCatalog.profiles.messaging`},{id:`full`,labelKey:`agents.toolCatalog.profiles.full`}],N=new Map(T().map(e=>[e.id,e.id===`fs`?`files`:e.id])),P=new Map(M.map(e=>[e.id,e.labelKey]))})))()}export{k as a,A as i,F as n,j as r,M as t};