@staff0rd/assist 0.828.1 → 0.830.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(()=>{function o(s){let{type:t,url:n}=s??{};return t==="assist-send"&&typeof n=="string"}function r(){return globalThis.browser?.runtime}async function a(s,{url:t,instructions:n}){let e;try{e=await fetch(`${s}/api/sessions/from-github`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,instructions:n})})}catch{return{ok:!1,message:`assist web server unreachable at ${s}`}}let i=await e.json().catch(()=>({}));return e.ok?{ok:!0,message:`assist session started in ${i.cwd}`}:{ok:!1,message:i.error??`assist web server returned ${e.status}`}}var u="http://localhost:3100";function d(){r()?.onMessage.addListener(s=>{if(o(s))return a(u,s)})}d();})();