@neuralnomads/codenomad 0.9.1 → 0.9.3
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/README.md +10 -1
- package/dist/auth/manager.js +35 -3
- package/dist/config/schema.js +2 -0
- package/dist/index.js +13 -1
- package/dist/opencode-config/package.json +1 -1
- package/dist/server/http-server.js +6 -0
- package/package.json +1 -1
- package/public/assets/index-Ciqv3YgW.js +1 -0
- package/public/assets/{index-DszBjqMJ.css → index-D0YCVzdv.css} +1 -1
- package/public/assets/index-DPFZXALm.js +1 -0
- package/public/assets/loading-CnHVCykW.js +1 -0
- package/public/assets/main-CgwL5PpX.js +184 -0
- package/public/index.html +3 -3
- package/public/loading.html +3 -3
- package/public/ui-version.json +1 -1
- package/public/assets/index-t5GTLZC8.js +0 -1
- package/public/assets/loading-A1Zxq2rg.js +0 -1
- package/public/assets/main-4pIHKAk7.js +0 -184
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function o(r,e={},n){return window.__TAURI_INTERNALS__.invoke(r,e,n)}async function p(r,e){await o("plugin:opener|open_url",{url:r,with:e})}export{p as openUrl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Y as p,ad as T,f as k,B as x,e as _,g as P,X as U,o as M,t as v,A as $,r as l,S as N,k as H,a as I,L as b}from"./index-Ciqv3YgW.js";const R="/assets/CodeNomad-Icon-bmTWNPXy.png";var L=v("<div class=loading-wrapper role=status aria-live=polite><img 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>"),X=v("<p class=loading-status>"),z=v("<div class=loading-error>");const C=["loadingScreen.phrases.neurons","loadingScreen.phrases.daydreaming","loadingScreen.phrases.goggles","loadingScreen.phrases.reorganizingFiles","loadingScreen.phrases.coffee","loadingScreen.phrases.nodeModules","loadingScreen.phrases.actNatural","loadingScreen.phrases.rewritingHistory","loadingScreen.phrases.stretch","loadingScreen.phrases.keyboardControl"];function w(t){const c=C.filter(m=>m!==t),d=c.length>0?c:C,s=Math.floor(Math.random()*d.length);return d[s]}function E(t){t&&window.location.replace(t)}function D(){if(typeof window>"u")return null;const t=window.__TAURI__;return!t||!t.event||!t.invoke?null:t}function F(){typeof document>"u"||(document.documentElement.dataset.runtimeHost=b.host,document.documentElement.dataset.runtimePlatform=b.platform)}function G(){const[t,c]=_(w()),[d,s]=_(null),[m,o]=_(null),K=()=>c(w(t()));return P(()=>{F(),c(w());const u=[];async function g(e){if(!(!e||!e.event||!e.invoke))try{const i=await e.event.listen("cli:ready",n=>{const r=(n==null?void 0:n.payload)||{};s(null),o(null),E(r.url)}),f=await e.event.listen("cli:error",n=>{const r=(n==null?void 0:n.payload)||{};r.error&&(s(r.error),o("loadingScreen.status.issue"))}),y=await e.event.listen("cli:status",n=>{const r=(n==null?void 0:n.payload)||{};if(r.state==="error"&&r.error){s(r.error),o("loadingScreen.status.issue");return}r.state&&r.state!=="ready"&&(s(null),o(null))});u.push(i,f,y);const a=await e.invoke("cli_get_status");(a==null?void 0:a.state)==="ready"&&a.url?E(a.url):(a==null?void 0:a.state)==="error"&&a.error&&(s(a.error),o("loadingScreen.status.issue"))}catch(i){s(String(i)),o("loadingScreen.status.issue")}}U()&&g(D()),M(()=>{u.forEach(e=>{try{e()}catch{}})})}),(()=>{var u=L(),g=u.firstChild,e=g.nextSibling;e.firstChild;var i=e.nextSibling,f=i.firstChild,y=f.firstChild,a=y.nextSibling,n=f.nextSibling,r=n.firstChild;return $(g,"src",R),l(e,k(N,{get when(){return m()},children:S=>(()=>{var h=X();return l(h,()=>p(S())),h})()}),null),l(a,()=>p(t())),r.$$click=K,l(r,()=>p("loadingScreen.actions.showAnother")),l(i,(()=>{var S=H(()=>!!d());return()=>S()&&(()=>{var h=z();return l(h,d),h})()})(),null),I(()=>$(g,"alt",p("loadingScreen.logoAlt"))),u})()}const A=document.getElementById("loading-root");if(!A)throw new Error(p("loadingScreen.errors.missingRoot"));T(()=>k(G,{}),A);x(["click"]);
|