1import{N as h,Q as f,R as w,a5 as x,U as b,V as y,$ as s,a9 as o,a0 as t,_ as a,a4 as I,W as i,as as v,fH as d}from"./OpK-3wCV.js";import{_ as k}from"./D6vZMry3.js";import{_ as C}from"./Bty8cu5m.js";import"./By6j0PyO.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new n.Error().stack;c&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[c]="3e6867e1-acad-4377-9005-dd7fe72cab91",n._sentryDebugIdIdentifier="sentry-dbid-3e6867e1-acad-4377-9005-dd7fe72cab91")}catch{}})();const L={class:"text-sm text-gray-500 mb-10"},A={class:"space-y-3 mb-8"},S={class:"docs-best-practice"},_={class:"docs-best-practice"},M={class:"docs-best-practice"},D={class:"docs-best-practice"},T={class:"docs-best-practice"},P=h({__name:"agents",setup(n){const{locale:c,locales:g}=f(),p=w();return x({title:"AI Agents ⢠Melies Documentation",titleTemplate:"AI Agents ⢠Melies Documentation",link:[...g?.value?.map(m=>({rel:"alternate",hreflang:m.code,href:"https://melies.co"+p("/docs/agents",m.code)})),{rel:"canonical",href:"https://melies.co"+p("/docs/agents")}],meta:[{name:"description",content:"Integrate Melies with AI agents. SKILL.md auto-discovery, ClawHub marketplace, and Claude Code integration."},{hid:"og:title",property:"og:title",content:"AI Agents ⢠Melies Documentation"},{hid:"og:description",property:"og:description",content:"Integrate Melies with AI agents. SKILL.md auto-discovery, ClawHub marketplace, and Claude Code integration."}]}),(m,e)=>{const u=I,l=k,r=C;return b(),y("div",null,[e[16]||(e[16]=s("h1",{class:"text-3xl font-bold text-white mb-2 tracking-tight"},"AI Agents",-1)),e[17]||(e[17]=s("p",{class:"text-base text-gray-400 leading-relaxed mb-4 max-w-2xl"}," Melies integrates with AI coding agents out of the box. Agents auto-discover commands through SKILL.md and can generate media autonomously. ",-1)),s("p",L,[e[1]||(e[1]=o(" See the ",-1)),t(u,{to:"/agent",class:"text-indigo-400 hover:text-indigo-300 transition-colors"},{default:a(()=>[...e[0]||(e[0]=[o("AI Agent page",-1)])]),_:1}),e[2]||(e[2]=o(" for a full overview of what agents can do with Melies. ",-1))]),t(r,{id:"skill-md-discovery"},{description:a(()=>[...e[3]||(e[3]=[s("h2",{class:"docs-h2 !mt-0"},"SKILL.md Discovery",-1),s("p",{class:"docs-p"},[o(" Melies ships with a "),s("code",{class:"docs-inline-code"},"SKILL.md"),o(" file that AI agents auto-discover. When an agent like Claude Code detects the installed CLI, it reads this file to understand all available commands and workflows. No configuration needed. ")],-1),s("p",{class:"docs-p"},"The SKILL.md file contains structured documentation of every command, its parameters, and example usage patterns. Agents use this to generate correct CLI calls without hallucinating flags or syntax.",-1)])]),code:a(()=>[t(l,{code:`# SKILL.md is auto-discovered when Melies is installed 2# No setup needed â agents find it automatically 3 4# Located at: 5~/.npm-global/lib/node_modules/melies/SKILL.md`,lang:"bash"})]),_:1}),t(r,{id:"openclaw-clawhub"},{description:a(()=>[...e[4]||(e[4]=[s("h2",{class:"docs-h2"},"OpenClaw / ClawHub",-1),s("p",{class:"docs-p"},[o("Install Melies from the "),s("a",{href:"https://clawhub.ai/romainsimon/melies",target:"_blank",class:"docs-link"},"ClawHub skill marketplace"),o(". This installs the CLI and makes it available to any agent using the OpenClaw framework.")],-1),s("p",{class:"docs-p"},"ClawHub is a marketplace for AI agent skills. Installing Melies through ClawHub ensures proper SKILL.md discovery and version management.",-1)])]),code:a(()=>[t(l,{code:"clawhub install melies",lang:"bash"})]),_:1}),t(r,{id:"claude-code-integration"},{description:a(()=>[...e[5]||(e[5]=[s("h2",{class:"docs-h2"},"Claude Code Integration",-1),s("p",{class:"docs-p"},"Claude Code automatically discovers and uses Melies when installed. No setup required. Just ask Claude to generate images, videos, or posters and it will use the right commands.",-1)])]),code:a(()=>[t(l,{code:`User: Generate a movie poster for my sci-fi film "Neon Requiem" 6 7Claude: I'll use the Melies CLI to generate that poster. 8> melies poster "Neon Requiem" -g sci-fi --sync 9 10Done! Here's your poster: https://melies.co/assets/...`})]),_:1}),t(r,{id:"stripe-projects"},{description:a(()=>[e[7]||(e[7]=s("h2",{class:"docs-h2"},"Stripe Projects",-1)),e[8]||(e[8]=s("p",{class:"docs-p"},[o(" Melies is preparing a Stripe Projects provider flow so agents can provision a Melies API token with "),s("code",{class:"docs-inline-code"},"stripe projects add melies/api"),o(". ")],-1)),e[9]||(e[9]=s("p",{class:"docs-p"}," The provider listing is pending Stripe approval. The proposed flow, command examples, and intake details are documented on the Stripe Projects page. ",-1)),t(u,{to:i(p)("/docs/stripe-projects"),class:"docs-link inline-flex items-center gap-1.5"},{default:a(()=>[e[6]||(e[6]=o(" View Stripe Projects docs ",-1)),t(i(v),{class:"w-3.5 h-3.5"})]),_:1},8,["to"])]),code:a(()=>[t(l,{code:`# Proposed command after provider approval 11stripe projects add melies/api`,lang:"bash"})]),_:1}),t(r,{id:"agent-best-practices"},{description:a(()=>[e[15]||(e[15]=s("h2",{class:"docs-h2"},"Best Practices for Agents",-1)),s("div",A,[s("div",S,[t(i(d),{class:"w-4 h-4 text-green-400 mt-0.5 flex-shrink-0"}),e[10]||(e[10]=s("p",{class:"text-sm text-gray-300"},[s("strong",{class:"text-white"},"Always check credits first"),o(" with "),s("code",{class:"docs-inline-code"},"melies credits"),o(" before generating")],-1))]),s("div",_,[t(i(d),{class:"w-4 h-4 text-green-400 mt-0.5 flex-shrink-0"}),e[11]||(e[11]=s("p",{class:"text-sm text-gray-300"},[s("strong",{class:"text-white"},"Use --sync"),o(" for blocking calls so the agent waits for the result")],-1))]),s("div",M,[t(i(d),{class:"w-4 h-4 text-green-400 mt-0.5 flex-shrink-0"}),e[12]||(e[12]=s("p",{class:"text-sm text-gray-300"},[s("strong",{class:"text-white"},"Parse JSON output"),o(" to extract URLs and status from responses")],-1))]),s("div",D,[t(i(d),{class:"w-4 h-4 text-green-400 mt-0.5 flex-shrink-0"}),e[13]||(e[13]=s("p",{class:"text-sm text-gray-300"},[s("strong",{class:"text-white"},"Handle 401 errors"),o(" by re-authenticating with "),s("code",{class:"docs-inline-code"},"melies login")],-1))]),s("div",T,[t(i(d),{class:"w-4 h-4 text-green-400 mt-0.5 flex-shrink-0"}),e[14]||(e[14]=s("p",{class:"text-sm text-gray-300"},[s("strong",{class:"text-white"},"Use melies models -t image"),o(" to discover available models before generating")],-1))])])]),code:a(()=>[t(l,{code:`# Agent workflow pattern 12CREDITS=$(melies credits | jq '.credits') 13 14# Check balance before generating 15if [ "$CREDITS" -gt 10 ]; then 16 RESULT=$(melies image "your prompt" --sync) 17 URL=$(echo $RESULT | jq -r '.url') 18 echo "Generated: $URL" 19else 20 echo "Insufficient credits" 21fi`,lang:"bash"})]),_:1})])}}}
vendor: 24 bytes, line 21
21);export{P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.