openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 5.51 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{li as t,oi as n,ui as r}from"./_4____________________________.js";import{B as i,R as a,U as o,W as s}from"./deferred-ui-support-DZEPWjAk.js";import{n as c,t as l}from"./en-settings-DEvavpke.js";var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;function T(){return(T=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 chats.`,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.`,w=`Author skills in the personal library`})))()}function E(e){let t=e?.swarmEnabled===!0;return k.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:O[e.id]}))})).filter(e=>e.tools.length>0)}var D,O,k;function A(){return(A=e((()=>{i(),T(),s(),D=[{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`}],O={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`,[o]: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,skill_library:w,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`},k=D.map(({id:e,label:t})=>({id:e,label:t,tools:a.filter(t=>t.sectionId===e)}))})))()}function j(e){return e?.groups?.length?e.groups.map(e=>{let n=P.get(e.id);return{...e,label:n?t(`agents.toolCatalog.groups.${n}`):e.label}}):E().map(e=>({id:e.id,label:t(`agents.toolCatalog.groups.${P.get(e.id)}`),tools:e.tools.map(e=>{let t={...e},n=e.id,i=n===`automations`?`cron`:n===`view_image`?`image`:n.replace(/_([a-z])/gu,(e,t)=>t.toUpperCase());return t.description=r(`agents.toolCatalog.descriptions.${i}`)??e.description,t})}))}function M(e){return e?.profiles?.length?e.profiles.map(e=>{let n=F.get(e.id);return n?{id:e.id,label:t(n)}:e}):N.map(e=>({id:e.id,label:t(e.labelKey)}))}var N,P,F;function I(){return(I=e((()=>{A(),s(),n(),l(),c(),N=[{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`}],P=new Map(E().map(e=>[e.id,e.id===`fs`?`files`:e.id])),F=new Map(N.map(e=>[e.id,e.labelKey]))})))()}export{A as a,j as i,I as n,M as r,N as t};