@neuralnomads/codenomad 0.7.5 → 0.8.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.
- package/dist/events/bus.js +0 -2
- package/dist/index.js +40 -16
- package/dist/ui/remote-ui.js +435 -0
- package/package.json +3 -1
- package/public/assets/{index-DhjiW0WU.css → index-D2dqKZaY.css} +1 -1
- package/public/assets/{loading-A3c3OC91.js → loading-CFUZXIYx.js} +1 -1
- package/public/assets/main-D2qRd9eL.js +184 -0
- package/public/index.html +3 -3
- package/public/loading.html +3 -3
- package/public/ui-version.json +3 -0
- package/public/assets/main-C_3DbNp8.js +0 -184
- /package/public/assets/{index-D4j6wgeo.js → index-BvDsKGfI.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as k,f as I,B as S,e as _,g as T,V as P,o as U,t as w,A as x,r as g,S as N,k as H,H as $}from"./index-
|
|
1
|
+
import{U as k,f as I,B as S,e as _,g as T,V as P,o as U,t as w,A as x,r as g,S as N,k as H,H as $}from"./index-BvDsKGfI.js";const L="/assets/CodeNomad-Icon-bmTWNPXy.png";var M=w("<div class=loading-wrapper role=status aria-live=polite><img alt=CodeNomad class=loading-logo width=180 height=180><div class=loading-heading><h1 class=loading-title>CodeNomad</h1></div><div class=loading-card><div class=loading-row><div class=spinner aria-hidden=true></div><span></span></div><div class=phrase-controls><button type=button>Show another"),W=w("<p class=loading-status>"),z=w("<div class=loading-error>");const A=["Warming up the AI neurons…","Convincing the AI to stop daydreaming…","Polishing the AI’s code goggles…","Asking the AI to stop reorganizing your files…","Feeding the AI additional coffee…","Teaching the AI not to delete node_modules (again)…","Telling the AI to act natural before you arrive…","Asking the AI to please stop rewriting history…","Letting the AI stretch before its coding sprint…","Persuading the AI to give you keyboard control…"];function v(n){const l=A.filter(p=>p!==n),c=l.length>0?l:A,a=Math.floor(Math.random()*c.length);return c[a]}function b(n){n&&window.location.replace(n)}function D(){if(typeof window>"u")return null;const n=window.__TAURI__;return!n||!n.event||!n.invoke?null:n}function F(){typeof document>"u"||(document.documentElement.dataset.runtimeHost=$.host,document.documentElement.dataset.runtimePlatform=$.platform)}function R(){const[n,l]=_(v()),[c,a]=_(null),[p,s]=_(null),C=()=>l(v(n()));return T(()=>{F(),l(v());const d=[];async function h(t){if(!(!t||!t.event||!t.invoke))try{const i=await t.event.listen("cli:ready",e=>{const r=(e==null?void 0:e.payload)||{};a(null),s(null),b(r.url)}),f=await t.event.listen("cli:error",e=>{const r=(e==null?void 0:e.payload)||{};r.error&&(a(r.error),s("Encountered an issue"))}),m=await t.event.listen("cli:status",e=>{const r=(e==null?void 0:e.payload)||{};if(r.state==="error"&&r.error){a(r.error),s("Encountered an issue");return}r.state&&r.state!=="ready"&&(a(null),s(null))});d.push(i,f,m);const o=await t.invoke("cli_get_status");(o==null?void 0:o.state)==="ready"&&o.url?b(o.url):(o==null?void 0:o.state)==="error"&&o.error&&(a(o.error),s("Encountered an issue"))}catch(i){a(String(i)),s("Encountered an issue")}}P()&&h(D()),U(()=>{d.forEach(t=>{try{t()}catch{}})})}),(()=>{var d=M(),h=d.firstChild,t=h.nextSibling;t.firstChild;var i=t.nextSibling,f=i.firstChild,m=f.firstChild,o=m.nextSibling,e=f.nextSibling,r=e.firstChild;return x(h,"src",L),g(t,I(N,{get when(){return p()},children:y=>(()=>{var u=W();return g(u,y),u})()}),null),g(o,n),r.$$click=C,g(i,(()=>{var y=H(()=>!!c());return()=>y()&&(()=>{var u=z();return g(u,c),u})()})(),null),d})()}const E=document.getElementById("loading-root");if(!E)throw new Error("Loading root element not found");k(()=>I(R,{}),E);S(["click"]);
|