UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 5.43 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{mi as t,pi as n}from"./_4____________________________.js";import{fN as r,pN as i}from"./_2_____________________________.js";import{B as a,O as o,U as s,g as c,j as l,u,x as d}from"./_6____________________.js";var f,p;function m(){return(m=e((()=>{t(),f={templatesCatalog:{explore:`Templates`,exploreDescription:`Find an agent for your next task.`,title:`Templates`,featured:`Featured`,results:`Results`,viewAll:`View all`,categories:`Template categories`,categoryAll:`All`,categoryPersonal:`Personal`,categoryHealth:`Health`,categoryTravel:`Travel`,categoryProductivity:`Productivity`,categoryResearch:`Research`,categoryEngineering:`Engineering`,categoryGovernance:`Governance`,categoryOperations:`Operations`,categoryFinance:`Finance`,categorySales:`Sales`,categoryProduct:`Product`,categoryPeople:`People`,categoryOther:`Other`,search:`Search templates`,searchPlaceholder:`Search templates`,loading:`Loading templates…`,empty:`No templates match your search.`,emptyUnfiltered:`No templates yet.`,unavailable:`Couldn’t load templates from ClawHub. Try again.`,disabled:`Templates is turned off. Turn it on in Settings → Labs.`,retry:`Retry`,add:`Add`,addNamed:`Add {name}`,adding:`Adding…`,addAnyway:`Add anyway`,addFailed:`Couldn’t add the agent. Try again.`,openChatFailed:`The agent was added. Couldn’t open its session. Try again.`,openChat:`Open chat`,installed:`Installed`,back:`Back to templates`,close:`Close`,review:`Template details`,viewTemplate:`View template`,byCreator:`by {creator}`,noneIncluded:`None included`,publisher:`@openclaw`,workspaceFiles:`Workspace files`,aboutFile:`About {name}`,filePurpose:{agents:`Operating instructions, priorities, and workspace conventions for the agent.`,soul:`The agent's persona, tone, and boundaries.`,user:`Stable preferences, communication style, and context about the person the agent helps.`,identity:`The agent's name, style, emoji, and avatar.`,boot:`A startup checklist run when the boot-md hook is enabled.`,bootstrap:`One-time first-run setup instructions, removed after setup is complete.`,memory:`Curated long-term facts and decisions for private sessions.`,dailyMemory:`Daily memory notes, available for the agent to look up when needed.`,tools:`Retired tool notes. Local tool conventions now belong in the Tools section of AGENTS.md.`,heartbeat:`Retired heartbeat checklist. Manage recurring instructions through heartbeat monitors.`,generic:`An additional workspace file included with this Template.`},skillsSection:`Skills`,automations:`Automations`,automationDisabled:`Disabled`,automationEnabled:`Enabled`,integrations:`Plugins`,backToTemplate:`Back to template`,backToCategory:`Back to {category}`,description:`Description`,content:`Content`,instructionAdded:`Added to the workspace`,trustReview:`ClawHub flagged this package for review. Read the warning before adding.`,dependencyClawHub:`ClawHub · Version {version}`,dependencyBundled:`Bundled with template`,contentsLoading:`Loading template contents…`,noVersion:`This template has no published release yet.`},templatesTrustWarning:{title:`ClawHub security review`,reviewRequired:`Security review needed`,details:`View security report`}},p=Object.assign(()=>Object.assign(n,f),{catalog:f})})))()}async function h(e){if(e.length===0)return;let t;await Promise.race([Promise.all(e.map(e=>{let t=new Image;return t.crossOrigin=`anonymous`,t.referrerPolicy=`no-referrer`,t.src=e,t.decode().catch(()=>void 0)})),new Promise(e=>{t=setTimeout(e,v)})]),clearTimeout(t)}function g(e){return l(o,{get when(){return e.src},keyed:!0,get fallback(){return l(r,{name:`blobster`})},children:e=>{let[t,n]=a(!1);return l(o,{get when(){return!t()},get fallback(){return l(r,{name:`blobster`})},get children(){var t=_();return t.addEventListener(`error`,()=>n(!0)),c(t,`src`,e),t}})}})}var _,v;function y(){return(y=e((()=>{u(),s(),i(),_=d(`<img crossorigin=anonymous alt loading=lazy decoding=async referrerpolicy=no-referrer>`,1),v=500})))()}function b(e){return e.channel===`official`||e.channel===`community`}async function x(e,t,n,r={}){let i=t.trim();return(await e.request(`templates.catalog.search`,{...i?{query:i}:{},...n?{limit:n}:{},...r.category?{category:r.category}:{},...r.featured?{featured:!0}:{}})).entries.filter(b)}async function S(e,t){let n=await e.request(`templates.catalog.search`,{overview:!0,limit:t});return n.overview?{featured:n.overview.featured.filter(b),sections:n.overview.sections.map(e=>({category:e.category,entries:e.entries.filter(b)}))}:void 0}async function C(e,t){let n=(await e.request(`templates.catalog.detail`,t)).detail;if(!b(n)||n.packageName!==t.packageName||t.version!==void 0&&n.version!==t.version||!n.agentId||!n.contents||!Array.isArray(n.contents.instructions)||!Array.isArray(n.contents.skills)||!Array.isArray(n.contents.integrations)||!Array.isArray(n.contents.automations))throw Error(`ClawHub did not return the contents of this Template release.`);return n}async function w(e,t,n){return(await e.request(`templates.catalog.preview`,{...t,...n})).preview}async function T(e,t,n){return await e.request(`templates.add.apply`,{mode:`chat`,source:t,agentId:n.agentId,...n.resume?{resume:!0}:{},...n.acknowledgeClawHubRisk?{acknowledgeClawHubRisk:!0}:{}},{onSent:n.onSent})}function E(){return(E=e((()=>{})))()}export{S as a,y as c,p as d,w as i,h as l,E as n,x as o,C as r,g as s,T as t,m as u};