@kombai/cli 0.1.4-beta.1 → 0.1.4-beta.2

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.
@@ -2967,7 +2967,7 @@ body {
2967
2967
  font-size: var(--font-size-primary);
2968
2968
  color: var(--vscode-foreground);
2969
2969
  }
2970
- `,ek=document.createElement("style"),tk=document.createElement("style");tk.textContent=XJ;document.head.append(ek,tk);function Jy(e){ek.textContent=e==="dark"?KD:WD,document.documentElement.style.colorScheme=e}Jy(window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light");var Oa=E(H());var su=(i=>(i.CanvasFull="canvas_full",i.SecondCanvas="second_canvas",i.Taste="taste",i.RepoImages="repo_images",i.Account="account",i.Ending="ending",i.Start="start",i))(su||{});var JJ=/^[A-Za-z0-9_-]{1,64}$/,eee=Object.values(su);function rk(e){let t=e.structuredContent;if(!L0(t)||!L0(t.sign_in))return null;let{reason:r,line:a}=t.sign_in;return typeof a!="string"||a===""?null:{reason:typeof r=="string"&&eee.includes(r)?r:"account",line:a,guest:t.sign_in.guest===!0,appBrowser:tee(t.sign_in.app_browser)}}function tee(e){return typeof e=="string"&&/^[A-Za-z][A-Za-z0-9 ]{0,31}$/.test(e)?e:null}var ree=/^codex:\/\/browser\?url=[^\s#]+$/,nu={status:"failed",error:null};function aee(e){if(!Array.isArray(e))return[];let t=new Map;for(let r of e)!L0(r)||typeof r.id!="string"||!JJ.test(r.id)||typeof r.name!="string"||t.has(r.id)||t.set(r.id,{id:r.id,name:r.name});return[...t.values()]}var oee=/^https:\/\/[^\s]+$/;function nee(e){let t=typeof e.canvas_name=="string"&&e.canvas_name!==""?e.canvas_name:null,r=typeof e.designs=="number"&&Number.isInteger(e.designs)&&e.designs>=0?e.designs:null,a=typeof e.url=="string"&&oee.test(e.url)?e.url:null;return t===null&&r===null&&a===null?null:{name:t,designs:r,url:a}}function ak(e){let t=e.structuredContent;if(!L0(t))return nu;switch(t.status){case"signing_in":return{status:"signing_in",match_code:typeof t.match_code=="string"&&t.match_code!==""?t.match_code:null,openLink:typeof t.open_link=="string"&&ree.test(t.open_link)?t.open_link:null,openNow:t.open_now===!0};case"claimed":return typeof t.canvas=="string"?{status:"claimed",canvas:t.canvas,moved:nee(t),besideChat:t.beside_chat===!0}:nu;case"needs_org":{let r=aee(t.orgs);return r.length?{status:"needs_org",orgs:r}:nu}case"claim_pending":return{status:"claim_pending"};case"signed_in":return{status:"signed_in"};case"guest":return{status:"guest"};case"failed":{let{error:r}=t;return{status:"failed",error:L0(r)&&typeof r.code=="string"&&typeof r.message=="string"&&r.message!==""?{code:r.code,message:r.message}:null}}default:return nu}}var il="Your guest canvas comes with you, at the same link.",see=20,ok=30,iee={canvas_full:{title:"Your guest canvas is full",body:`Sign in to keep designing. ${il}`},second_canvas:{title:"Sign in to make more canvases",body:`A guest gets one canvas. ${il}`},taste:{title:"Sign in to explore design directions",body:`Taste explores several directions before Kombai designs, and needs an account. ${il}`},repo_images:{title:"Sign in to use your project's images",body:`Guests can't upload images from this project. ${il}`}};function nk(e){switch(e.reason){case"start":return e.guest?{title:"Kombai works best signed in",body:`Sign in for Taste, your project's images, design systems and sharing. Or try it without an account: one canvas, kept for ${ok} days.`}:{title:"Sign in to Kombai",body:"This machine has signed in to Kombai before. Sign in again to keep designing."};case"ending":return{title:"Keep your canvas",body:`${e.line} Sign in to keep it and every design on it.`};case"account":return{title:"Sign in to Kombai",body:`${e.line} ${il}`};default:return iee[e.reason]}}function sk(e){return e?`Opens Kombai in ${e}\u2019s browser.`:"Opens Kombai in your browser."}function ik(e){let t=e?`${e}\u2019s browser`:"your browser";return{title:`Approve in ${t}`,body:`Check that ${t} shows this code, then approve.`}}var iu={status:"Waiting for approval\u2026",reopen:"Open the page again",cancel:"Cancel"},q4={title:"You're signed in",body:"This canvas is now in your Kombai account, at the same link.",open:"Open canvas",next:"Tell your agent to carry on.",besideChat:"Ask your agent to show it beside this chat, or to carry on."},eb={title:"You're signed in",body:"Tell your agent to carry on."},lk="Try without an account",lu={title:"You're trying Kombai as a guest",body:`One canvas with up to ${see} designs, kept for ${ok} days. Sign in any time to keep it.`,next:"Tell your agent to carry on."},tb=["Explore directions with Taste","Make more canvases","Use your project's images","Share canvases with your team"];function Qk(e){return e===null?null:e===1?"1 design":`${e} designs`}var rb={title:"Your canvas is still moving",body:"You're signed in, but moving this canvas into your account didn't finish."},ab={title:"Choose where this canvas goes",body:"You're in more than one organization. The canvas moves into the one you pick."};var u0=E(o1());function Ta({title:e,body:t,guest:r=!0,done:a=!1,children:o}){return(0,u0.jsxs)(jD,{"aria-live":"polite",children:[(0,u0.jsx)(UD,{title:e,body:t,guest:r,done:a}),o]})}var lee=U(Xy)`
2970
+ `,ek=document.createElement("style"),tk=document.createElement("style");tk.textContent=XJ;document.head.append(ek,tk);function Jy(e){ek.textContent=e==="dark"?KD:WD,document.documentElement.style.colorScheme=e,document.body?.classList.toggle("vscode-light",e==="light")}Jy(window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light");var Oa=E(H());var su=(i=>(i.CanvasFull="canvas_full",i.SecondCanvas="second_canvas",i.Taste="taste",i.RepoImages="repo_images",i.Account="account",i.Ending="ending",i.Start="start",i))(su||{});var JJ=/^[A-Za-z0-9_-]{1,64}$/,eee=Object.values(su);function rk(e){let t=e.structuredContent;if(!L0(t)||!L0(t.sign_in))return null;let{reason:r,line:a}=t.sign_in;return typeof a!="string"||a===""?null:{reason:typeof r=="string"&&eee.includes(r)?r:"account",line:a,guest:t.sign_in.guest===!0,appBrowser:tee(t.sign_in.app_browser)}}function tee(e){return typeof e=="string"&&/^[A-Za-z][A-Za-z0-9 ]{0,31}$/.test(e)?e:null}var ree=/^codex:\/\/browser\?url=[^\s#]+$/,nu={status:"failed",error:null};function aee(e){if(!Array.isArray(e))return[];let t=new Map;for(let r of e)!L0(r)||typeof r.id!="string"||!JJ.test(r.id)||typeof r.name!="string"||t.has(r.id)||t.set(r.id,{id:r.id,name:r.name});return[...t.values()]}var oee=/^https:\/\/[^\s]+$/;function nee(e){let t=typeof e.canvas_name=="string"&&e.canvas_name!==""?e.canvas_name:null,r=typeof e.designs=="number"&&Number.isInteger(e.designs)&&e.designs>=0?e.designs:null,a=typeof e.url=="string"&&oee.test(e.url)?e.url:null;return t===null&&r===null&&a===null?null:{name:t,designs:r,url:a}}function ak(e){let t=e.structuredContent;if(!L0(t))return nu;switch(t.status){case"signing_in":return{status:"signing_in",match_code:typeof t.match_code=="string"&&t.match_code!==""?t.match_code:null,openLink:typeof t.open_link=="string"&&ree.test(t.open_link)?t.open_link:null,openNow:t.open_now===!0};case"claimed":return typeof t.canvas=="string"?{status:"claimed",canvas:t.canvas,moved:nee(t),besideChat:t.beside_chat===!0}:nu;case"needs_org":{let r=aee(t.orgs);return r.length?{status:"needs_org",orgs:r}:nu}case"claim_pending":return{status:"claim_pending"};case"signed_in":return{status:"signed_in"};case"guest":return{status:"guest"};case"failed":{let{error:r}=t;return{status:"failed",error:L0(r)&&typeof r.code=="string"&&typeof r.message=="string"&&r.message!==""?{code:r.code,message:r.message}:null}}default:return nu}}var il="Your guest canvas comes with you, at the same link.",see=20,ok=30,iee={canvas_full:{title:"Your guest canvas is full",body:`Sign in to keep designing. ${il}`},second_canvas:{title:"Sign in to make more canvases",body:`A guest gets one canvas. ${il}`},taste:{title:"Sign in to explore design directions",body:`Taste explores several directions before Kombai designs, and needs an account. ${il}`},repo_images:{title:"Sign in to use your project's images",body:`Guests can't upload images from this project. ${il}`}};function nk(e){switch(e.reason){case"start":return e.guest?{title:"Kombai works best signed in",body:`Sign in for Taste, your project's images, design systems and sharing. Or try it without an account: one canvas, kept for ${ok} days.`}:{title:"Sign in to Kombai",body:"This machine has signed in to Kombai before. Sign in again to keep designing."};case"ending":return{title:"Keep your canvas",body:`${e.line} Sign in to keep it and every design on it.`};case"account":return{title:"Sign in to Kombai",body:`${e.line} ${il}`};default:return iee[e.reason]}}function sk(e){return e?`Opens Kombai in ${e}\u2019s browser.`:"Opens Kombai in your browser."}function ik(e){let t=e?`${e}\u2019s browser`:"your browser";return{title:`Approve in ${t}`,body:`Check that ${t} shows this code, then approve.`}}var iu={status:"Waiting for approval\u2026",reopen:"Open the page again",cancel:"Cancel"},q4={title:"You're signed in",body:"This canvas is now in your Kombai account, at the same link.",open:"Open canvas",next:"Tell your agent to carry on.",besideChat:"Ask your agent to show it beside this chat, or to carry on."},eb={title:"You're signed in",body:"Tell your agent to carry on."},lk="Try without an account",lu={title:"You're trying Kombai as a guest",body:`One canvas with up to ${see} designs, kept for ${ok} days. Sign in any time to keep it.`,next:"Tell your agent to carry on."},tb=["Explore directions with Taste","Make more canvases","Use your project's images","Share canvases with your team"];function Qk(e){return e===null?null:e===1?"1 design":`${e} designs`}var rb={title:"Your canvas is still moving",body:"You're signed in, but moving this canvas into your account didn't finish."},ab={title:"Choose where this canvas goes",body:"You're in more than one organization. The canvas moves into the one you pick."};var u0=E(o1());function Ta({title:e,body:t,guest:r=!0,done:a=!1,children:o}){return(0,u0.jsxs)(jD,{"aria-live":"polite",children:[(0,u0.jsx)(UD,{title:e,body:t,guest:r,done:a}),o]})}var lee=U(Xy)`
2971
2971
  display: flex;
2972
2972
  align-items: center;
2973
2973
  justify-content: space-between;
@@ -2642,7 +2642,7 @@ body {
2642
2642
  font-size: var(--font-size-primary);
2643
2643
  color: var(--vscode-foreground);
2644
2644
  }
2645
- `,PM=document.createElement("style"),DM=document.createElement("style");DM.textContent=_q;document.head.append(PM,DM);function z1(e){PM.textContent=e==="dark"?OM:AM,document.documentElement.style.colorScheme=e}z1(window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light");var Gh=(s=>(s.CanvasFull="canvas_full",s.SecondCanvas="second_canvas",s.Taste="taste",s.RepoImages="repo_images",s.Account="account",s.Ending="ending",s.Start="start",s))(Gh||{});var Rq=/^[A-Za-z0-9_-]{1,64}$/,wq=Object.values(Gh);function V1(e){let t=e.structuredContent;if(!Ft(t)||!Ft(t.sign_in))return null;let{reason:r,line:a}=t.sign_in;return typeof a!="string"||a===""?null:{reason:typeof r=="string"&&wq.includes(r)?r:"account",line:a,guest:t.sign_in.guest===!0,appBrowser:Tq(t.sign_in.app_browser)}}function Tq(e){return typeof e=="string"&&/^[A-Za-z][A-Za-z0-9 ]{0,31}$/.test(e)?e:null}var kq=/^codex:\/\/browser\?url=[^\s#]+$/,$h={status:"failed",error:null};function Aq(e){if(!Array.isArray(e))return[];let t=new Map;for(let r of e)!Ft(r)||typeof r.id!="string"||!Rq.test(r.id)||typeof r.name!="string"||t.has(r.id)||t.set(r.id,{id:r.id,name:r.name});return[...t.values()]}var Oq=/^https:\/\/[^\s]+$/;function Bq(e){let t=typeof e.canvas_name=="string"&&e.canvas_name!==""?e.canvas_name:null,r=typeof e.designs=="number"&&Number.isInteger(e.designs)&&e.designs>=0?e.designs:null,a=typeof e.url=="string"&&Oq.test(e.url)?e.url:null;return t===null&&r===null&&a===null?null:{name:t,designs:r,url:a}}function NM(e){let t=e.structuredContent;if(!Ft(t))return $h;switch(t.status){case"signing_in":return{status:"signing_in",match_code:typeof t.match_code=="string"&&t.match_code!==""?t.match_code:null,openLink:typeof t.open_link=="string"&&kq.test(t.open_link)?t.open_link:null,openNow:t.open_now===!0};case"claimed":return typeof t.canvas=="string"?{status:"claimed",canvas:t.canvas,moved:Bq(t),besideChat:t.beside_chat===!0}:$h;case"needs_org":{let r=Aq(t.orgs);return r.length?{status:"needs_org",orgs:r}:$h}case"claim_pending":return{status:"claim_pending"};case"signed_in":return{status:"signed_in"};case"guest":return{status:"guest"};case"failed":{let{error:r}=t;return{status:"failed",error:Ft(r)&&typeof r.code=="string"&&typeof r.message=="string"&&r.message!==""?{code:r.code,message:r.message}:null}}default:return $h}}var Hn=R(O());var Uf="Your guest canvas comes with you, at the same link.",Mq=20,HM=30,Fq={canvas_full:{title:"Your guest canvas is full",body:`Sign in to keep designing. ${Uf}`},second_canvas:{title:"Sign in to make more canvases",body:`A guest gets one canvas. ${Uf}`},taste:{title:"Sign in to explore design directions",body:`Taste explores several directions before Kombai designs, and needs an account. ${Uf}`},repo_images:{title:"Sign in to use your project's images",body:`Guests can't upload images from this project. ${Uf}`}};function UM(e){switch(e.reason){case"start":return e.guest?{title:"Kombai works best signed in",body:`Sign in for Taste, your project's images, design systems and sharing. Or try it without an account: one canvas, kept for ${HM} days.`}:{title:"Sign in to Kombai",body:"This machine has signed in to Kombai before. Sign in again to keep designing."};case"ending":return{title:"Keep your canvas",body:`${e.line} Sign in to keep it and every design on it.`};case"account":return{title:"Sign in to Kombai",body:`${e.line} ${Uf}`};default:return Fq[e.reason]}}function zM(e){return e?`Opens Kombai in ${e}\u2019s browser.`:"Opens Kombai in your browser."}function VM(e){let t=e?`${e}\u2019s browser`:"your browser";return{title:`Approve in ${t}`,body:`Check that ${t} shows this code, then approve.`}}var jh={status:"Waiting for approval\u2026",reopen:"Open the page again",cancel:"Cancel"},uc={title:"You're signed in",body:"This canvas is now in your Kombai account, at the same link.",open:"Open canvas",next:"Tell your agent to carry on.",besideChat:"Ask your agent to show it beside this chat, or to carry on."},q1={title:"You're signed in",body:"Tell your agent to carry on."},qM="Try without an account",Wh={title:"You're trying Kombai as a guest",body:`One canvas with up to ${Mq} designs, kept for ${HM} days. Sign in any time to keep it.`,next:"Tell your agent to carry on."},$1=["Explore directions with Taste","Make more canvases","Use your project's images","Share canvases with your team"];function $M(e){return e===null?null:e===1?"1 design":`${e} designs`}var G1={title:"Your canvas is still moving",body:"You're signed in, but moving this canvas into your account didn't finish."},j1={title:"Choose where this canvas goes",body:"You're in more than one organization. The canvas moves into the one you pick."};var zr=R(ka());function Nn({title:e,body:t,guest:r=!0,done:a=!1,children:o}){return(0,zr.jsxs)(Vh,{"aria-live":"polite",children:[(0,zr.jsx)(Nf,{title:e,body:t,guest:r,done:a}),o]})}var Pq=Z(Hf)`
2645
+ `,PM=document.createElement("style"),DM=document.createElement("style");DM.textContent=_q;document.head.append(PM,DM);function z1(e){PM.textContent=e==="dark"?OM:AM,document.documentElement.style.colorScheme=e,document.body?.classList.toggle("vscode-light",e==="light")}z1(window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light");var Gh=(s=>(s.CanvasFull="canvas_full",s.SecondCanvas="second_canvas",s.Taste="taste",s.RepoImages="repo_images",s.Account="account",s.Ending="ending",s.Start="start",s))(Gh||{});var Rq=/^[A-Za-z0-9_-]{1,64}$/,wq=Object.values(Gh);function V1(e){let t=e.structuredContent;if(!Ft(t)||!Ft(t.sign_in))return null;let{reason:r,line:a}=t.sign_in;return typeof a!="string"||a===""?null:{reason:typeof r=="string"&&wq.includes(r)?r:"account",line:a,guest:t.sign_in.guest===!0,appBrowser:Tq(t.sign_in.app_browser)}}function Tq(e){return typeof e=="string"&&/^[A-Za-z][A-Za-z0-9 ]{0,31}$/.test(e)?e:null}var kq=/^codex:\/\/browser\?url=[^\s#]+$/,$h={status:"failed",error:null};function Aq(e){if(!Array.isArray(e))return[];let t=new Map;for(let r of e)!Ft(r)||typeof r.id!="string"||!Rq.test(r.id)||typeof r.name!="string"||t.has(r.id)||t.set(r.id,{id:r.id,name:r.name});return[...t.values()]}var Oq=/^https:\/\/[^\s]+$/;function Bq(e){let t=typeof e.canvas_name=="string"&&e.canvas_name!==""?e.canvas_name:null,r=typeof e.designs=="number"&&Number.isInteger(e.designs)&&e.designs>=0?e.designs:null,a=typeof e.url=="string"&&Oq.test(e.url)?e.url:null;return t===null&&r===null&&a===null?null:{name:t,designs:r,url:a}}function NM(e){let t=e.structuredContent;if(!Ft(t))return $h;switch(t.status){case"signing_in":return{status:"signing_in",match_code:typeof t.match_code=="string"&&t.match_code!==""?t.match_code:null,openLink:typeof t.open_link=="string"&&kq.test(t.open_link)?t.open_link:null,openNow:t.open_now===!0};case"claimed":return typeof t.canvas=="string"?{status:"claimed",canvas:t.canvas,moved:Bq(t),besideChat:t.beside_chat===!0}:$h;case"needs_org":{let r=Aq(t.orgs);return r.length?{status:"needs_org",orgs:r}:$h}case"claim_pending":return{status:"claim_pending"};case"signed_in":return{status:"signed_in"};case"guest":return{status:"guest"};case"failed":{let{error:r}=t;return{status:"failed",error:Ft(r)&&typeof r.code=="string"&&typeof r.message=="string"&&r.message!==""?{code:r.code,message:r.message}:null}}default:return $h}}var Hn=R(O());var Uf="Your guest canvas comes with you, at the same link.",Mq=20,HM=30,Fq={canvas_full:{title:"Your guest canvas is full",body:`Sign in to keep designing. ${Uf}`},second_canvas:{title:"Sign in to make more canvases",body:`A guest gets one canvas. ${Uf}`},taste:{title:"Sign in to explore design directions",body:`Taste explores several directions before Kombai designs, and needs an account. ${Uf}`},repo_images:{title:"Sign in to use your project's images",body:`Guests can't upload images from this project. ${Uf}`}};function UM(e){switch(e.reason){case"start":return e.guest?{title:"Kombai works best signed in",body:`Sign in for Taste, your project's images, design systems and sharing. Or try it without an account: one canvas, kept for ${HM} days.`}:{title:"Sign in to Kombai",body:"This machine has signed in to Kombai before. Sign in again to keep designing."};case"ending":return{title:"Keep your canvas",body:`${e.line} Sign in to keep it and every design on it.`};case"account":return{title:"Sign in to Kombai",body:`${e.line} ${Uf}`};default:return Fq[e.reason]}}function zM(e){return e?`Opens Kombai in ${e}\u2019s browser.`:"Opens Kombai in your browser."}function VM(e){let t=e?`${e}\u2019s browser`:"your browser";return{title:`Approve in ${t}`,body:`Check that ${t} shows this code, then approve.`}}var jh={status:"Waiting for approval\u2026",reopen:"Open the page again",cancel:"Cancel"},uc={title:"You're signed in",body:"This canvas is now in your Kombai account, at the same link.",open:"Open canvas",next:"Tell your agent to carry on.",besideChat:"Ask your agent to show it beside this chat, or to carry on."},q1={title:"You're signed in",body:"Tell your agent to carry on."},qM="Try without an account",Wh={title:"You're trying Kombai as a guest",body:`One canvas with up to ${Mq} designs, kept for ${HM} days. Sign in any time to keep it.`,next:"Tell your agent to carry on."},$1=["Explore directions with Taste","Make more canvases","Use your project's images","Share canvases with your team"];function $M(e){return e===null?null:e===1?"1 design":`${e} designs`}var G1={title:"Your canvas is still moving",body:"You're signed in, but moving this canvas into your account didn't finish."},j1={title:"Choose where this canvas goes",body:"You're in more than one organization. The canvas moves into the one you pick."};var zr=R(ka());function Nn({title:e,body:t,guest:r=!0,done:a=!1,children:o}){return(0,zr.jsxs)(Vh,{"aria-live":"polite",children:[(0,zr.jsx)(Nf,{title:e,body:t,guest:r,done:a}),o]})}var Pq=Z(Hf)`
2646
2646
  display: flex;
2647
2647
  align-items: center;
2648
2648
  justify-content: space-between;
@@ -2601,7 +2601,7 @@ body {
2601
2601
  font-size: var(--font-size-primary);
2602
2602
  color: var(--vscode-foreground);
2603
2603
  }
2604
- `,i4=document.createElement("style"),s4=document.createElement("style");s4.textContent=BV;document.head.append(i4,s4);function BC(e){i4.textContent=e==="dark"?r4:t4,document.documentElement.style.colorScheme=e}BC(window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light");var Bf=(s=>(s.CanvasFull="canvas_full",s.SecondCanvas="second_canvas",s.Taste="taste",s.RepoImages="repo_images",s.Account="account",s.Ending="ending",s.Start="start",s))(Bf||{});var AV=/^[A-Za-z0-9_-]{1,64}$/,OV=Object.values(Bf);function l4(e){let t=e.structuredContent;if(!Gr(t)||!Gr(t.sign_in))return null;let{reason:r,line:a}=t.sign_in;return typeof a!="string"||a===""?null:{reason:typeof r=="string"&&OV.includes(r)?r:"account",line:a,guest:t.sign_in.guest===!0,appBrowser:AC(t.sign_in.app_browser)}}function AC(e){return typeof e=="string"&&/^[A-Za-z][A-Za-z0-9 ]{0,31}$/.test(e)?e:null}var MV=/^codex:\/\/browser\?url=[^\s#]+$/,Fh={status:"failed",error:null};function FV(e){if(!Array.isArray(e))return[];let t=new Map;for(let r of e)!Gr(r)||typeof r.id!="string"||!AV.test(r.id)||typeof r.name!="string"||t.has(r.id)||t.set(r.id,{id:r.id,name:r.name});return[...t.values()]}var DV=/^https:\/\/[^\s]+$/;function PV(e){let t=typeof e.canvas_name=="string"&&e.canvas_name!==""?e.canvas_name:null,r=typeof e.designs=="number"&&Number.isInteger(e.designs)&&e.designs>=0?e.designs:null,a=typeof e.url=="string"&&DV.test(e.url)?e.url:null;return t===null&&r===null&&a===null?null:{name:t,designs:r,url:a}}function u4(e){let t=e.structuredContent;if(!Gr(t))return Fh;switch(t.status){case"signing_in":return{status:"signing_in",match_code:typeof t.match_code=="string"&&t.match_code!==""?t.match_code:null,openLink:typeof t.open_link=="string"&&MV.test(t.open_link)?t.open_link:null,openNow:t.open_now===!0};case"claimed":return typeof t.canvas=="string"?{status:"claimed",canvas:t.canvas,moved:PV(t),besideChat:t.beside_chat===!0}:Fh;case"needs_org":{let r=FV(t.orgs);return r.length?{status:"needs_org",orgs:r}:Fh}case"claim_pending":return{status:"claim_pending"};case"signed_in":return{status:"signed_in"};case"guest":return{status:"guest"};case"failed":{let{error:r}=t;return{status:"failed",error:Gr(r)&&typeof r.code=="string"&&typeof r.message=="string"&&r.message!==""?{code:r.code,message:r.message}:null}}default:return Fh}}var Af="Your guest canvas comes with you, at the same link.",NV=20,c4=30,HV={canvas_full:{title:"Your guest canvas is full",body:`Sign in to keep designing. ${Af}`},second_canvas:{title:"Sign in to make more canvases",body:`A guest gets one canvas. ${Af}`},taste:{title:"Sign in to explore design directions",body:`Taste explores several directions before Kombai designs, and needs an account. ${Af}`},repo_images:{title:"Sign in to use your project's images",body:`Guests can't upload images from this project. ${Af}`}};function d4(e){switch(e.reason){case"start":return e.guest?{title:"Kombai works best signed in",body:`Sign in for Taste, your project's images, design systems and sharing. Or try it without an account: one canvas, kept for ${c4} days.`}:{title:"Sign in to Kombai",body:"This machine has signed in to Kombai before. Sign in again to keep designing."};case"ending":return{title:"Keep your canvas",body:`${e.line} Sign in to keep it and every design on it.`};case"account":return{title:"Sign in to Kombai",body:`${e.line} ${Af}`};default:return HV[e.reason]}}var zV={signed_in:"You're signed in",not_ending:"Your guest canvas isn't ending soon"};function f4(e){return e&&zV[e]||"Kombai"}function p4(e){return e?`Opens Kombai in ${e}\u2019s browser.`:"Opens Kombai in your browser."}function m4(e){let t=e?`${e}\u2019s browser`:"your browser";return{title:`Approve in ${t}`,body:`Check that ${t} shows this code, then approve.`}}var Dh={status:"Waiting for approval\u2026",reopen:"Open the page again",cancel:"Cancel"},nc={title:"You're signed in",body:"This canvas is now in your Kombai account, at the same link.",open:"Open canvas",next:"Tell your agent to carry on.",besideChat:"Ask your agent to show it beside this chat, or to carry on."},Of={title:"You're signed in",body:"Tell your agent to carry on."},g4="Try without an account",Ph={title:"You're trying Kombai as a guest",body:`One canvas with up to ${NV} designs, kept for ${c4} days. Sign in any time to keep it.`,next:"Tell your agent to carry on."},Mf=["Explore directions with Taste","Make more canvases","Use your project's images","Share canvases with your team"];function v4(e){return e===null?null:e===1?"1 design":`${e} designs`}var Ff={signedInAs:e=>`This machine is signed in to Kombai as ${e}.`,signedInNext:"Tell your agent what to design.",endsIn:e=>`Your guest canvas ends in ${e===1?"1 day":`${e} days`}`,endsOnKeep:e=>`It ends on ${e}. Sign in to keep it.`},OC={title:"Your canvas is still moving",body:"You're signed in, but moving this canvas into your account didn't finish."},MC={title:"Choose where this canvas goes",body:"You're in more than one organization. The canvas moves into the one you pick."};var Pr=R(Ta());function $r({title:e,body:t,guest:r=!0,done:a=!1,children:o}){return(0,Pr.jsxs)(JO,{"aria-live":"polite",children:[(0,Pr.jsx)(XO,{title:e,body:t,guest:r,done:a}),o]})}var UV=Te(_C)`
2604
+ `,i4=document.createElement("style"),s4=document.createElement("style");s4.textContent=BV;document.head.append(i4,s4);function BC(e){i4.textContent=e==="dark"?r4:t4,document.documentElement.style.colorScheme=e,document.body?.classList.toggle("vscode-light",e==="light")}BC(window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light");var Bf=(s=>(s.CanvasFull="canvas_full",s.SecondCanvas="second_canvas",s.Taste="taste",s.RepoImages="repo_images",s.Account="account",s.Ending="ending",s.Start="start",s))(Bf||{});var AV=/^[A-Za-z0-9_-]{1,64}$/,OV=Object.values(Bf);function l4(e){let t=e.structuredContent;if(!Gr(t)||!Gr(t.sign_in))return null;let{reason:r,line:a}=t.sign_in;return typeof a!="string"||a===""?null:{reason:typeof r=="string"&&OV.includes(r)?r:"account",line:a,guest:t.sign_in.guest===!0,appBrowser:AC(t.sign_in.app_browser)}}function AC(e){return typeof e=="string"&&/^[A-Za-z][A-Za-z0-9 ]{0,31}$/.test(e)?e:null}var MV=/^codex:\/\/browser\?url=[^\s#]+$/,Fh={status:"failed",error:null};function FV(e){if(!Array.isArray(e))return[];let t=new Map;for(let r of e)!Gr(r)||typeof r.id!="string"||!AV.test(r.id)||typeof r.name!="string"||t.has(r.id)||t.set(r.id,{id:r.id,name:r.name});return[...t.values()]}var DV=/^https:\/\/[^\s]+$/;function PV(e){let t=typeof e.canvas_name=="string"&&e.canvas_name!==""?e.canvas_name:null,r=typeof e.designs=="number"&&Number.isInteger(e.designs)&&e.designs>=0?e.designs:null,a=typeof e.url=="string"&&DV.test(e.url)?e.url:null;return t===null&&r===null&&a===null?null:{name:t,designs:r,url:a}}function u4(e){let t=e.structuredContent;if(!Gr(t))return Fh;switch(t.status){case"signing_in":return{status:"signing_in",match_code:typeof t.match_code=="string"&&t.match_code!==""?t.match_code:null,openLink:typeof t.open_link=="string"&&MV.test(t.open_link)?t.open_link:null,openNow:t.open_now===!0};case"claimed":return typeof t.canvas=="string"?{status:"claimed",canvas:t.canvas,moved:PV(t),besideChat:t.beside_chat===!0}:Fh;case"needs_org":{let r=FV(t.orgs);return r.length?{status:"needs_org",orgs:r}:Fh}case"claim_pending":return{status:"claim_pending"};case"signed_in":return{status:"signed_in"};case"guest":return{status:"guest"};case"failed":{let{error:r}=t;return{status:"failed",error:Gr(r)&&typeof r.code=="string"&&typeof r.message=="string"&&r.message!==""?{code:r.code,message:r.message}:null}}default:return Fh}}var Af="Your guest canvas comes with you, at the same link.",NV=20,c4=30,HV={canvas_full:{title:"Your guest canvas is full",body:`Sign in to keep designing. ${Af}`},second_canvas:{title:"Sign in to make more canvases",body:`A guest gets one canvas. ${Af}`},taste:{title:"Sign in to explore design directions",body:`Taste explores several directions before Kombai designs, and needs an account. ${Af}`},repo_images:{title:"Sign in to use your project's images",body:`Guests can't upload images from this project. ${Af}`}};function d4(e){switch(e.reason){case"start":return e.guest?{title:"Kombai works best signed in",body:`Sign in for Taste, your project's images, design systems and sharing. Or try it without an account: one canvas, kept for ${c4} days.`}:{title:"Sign in to Kombai",body:"This machine has signed in to Kombai before. Sign in again to keep designing."};case"ending":return{title:"Keep your canvas",body:`${e.line} Sign in to keep it and every design on it.`};case"account":return{title:"Sign in to Kombai",body:`${e.line} ${Af}`};default:return HV[e.reason]}}var zV={signed_in:"You're signed in",not_ending:"Your guest canvas isn't ending soon"};function f4(e){return e&&zV[e]||"Kombai"}function p4(e){return e?`Opens Kombai in ${e}\u2019s browser.`:"Opens Kombai in your browser."}function m4(e){let t=e?`${e}\u2019s browser`:"your browser";return{title:`Approve in ${t}`,body:`Check that ${t} shows this code, then approve.`}}var Dh={status:"Waiting for approval\u2026",reopen:"Open the page again",cancel:"Cancel"},nc={title:"You're signed in",body:"This canvas is now in your Kombai account, at the same link.",open:"Open canvas",next:"Tell your agent to carry on.",besideChat:"Ask your agent to show it beside this chat, or to carry on."},Of={title:"You're signed in",body:"Tell your agent to carry on."},g4="Try without an account",Ph={title:"You're trying Kombai as a guest",body:`One canvas with up to ${NV} designs, kept for ${c4} days. Sign in any time to keep it.`,next:"Tell your agent to carry on."},Mf=["Explore directions with Taste","Make more canvases","Use your project's images","Share canvases with your team"];function v4(e){return e===null?null:e===1?"1 design":`${e} designs`}var Ff={signedInAs:e=>`This machine is signed in to Kombai as ${e}.`,signedInNext:"Tell your agent what to design.",endsIn:e=>`Your guest canvas ends in ${e===1?"1 day":`${e} days`}`,endsOnKeep:e=>`It ends on ${e}. Sign in to keep it.`},OC={title:"Your canvas is still moving",body:"You're signed in, but moving this canvas into your account didn't finish."},MC={title:"Choose where this canvas goes",body:"You're in more than one organization. The canvas moves into the one you pick."};var Pr=R(Ta());function $r({title:e,body:t,guest:r=!0,done:a=!1,children:o}){return(0,Pr.jsxs)(JO,{"aria-live":"polite",children:[(0,Pr.jsx)(XO,{title:e,body:t,guest:r,done:a}),o]})}var UV=Te(_C)`
2605
2605
  display: flex;
2606
2606
  align-items: center;
2607
2607
  justify-content: space-between;