tarsk 0.5.43 → 0.5.44
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/index.js +318 -144
- package/dist/public/assets/{account-view-xKotpUyx.js → account-view-CTizS7Yb.js} +1 -1
- package/dist/public/assets/{api-D6uLdHBQ.js → api-Cuj9iSVv.js} +1 -1
- package/dist/public/assets/{browser-tab-DxigYzoT.js → browser-tab-DSpOIu84.js} +1 -1
- package/dist/public/assets/commit-dialog-kTaKOsNO.js +1 -0
- package/dist/public/assets/{context-menu-rC7iWcty.js → context-menu-DRXV-Suu.js} +1 -1
- package/dist/public/assets/create-repo-dialog-gIZLk6LZ.js +1 -0
- package/dist/public/assets/dialogs-config-CxRnlUcQ.js +51 -0
- package/dist/public/assets/diff-view-B2OdJMRe.js +3 -0
- package/dist/public/assets/explorer-tab-view-fejcb7N1.js +2 -0
- package/dist/public/assets/{explorer-tree-BC4fBpxi.js → explorer-tree-C2kLAwI0.js} +1 -1
- package/dist/public/assets/{explorer-view-DIM08sdy.js → explorer-view-BmKKHyrH.js} +1 -1
- package/dist/public/assets/git-history-dialog-B2ABiCXZ.js +1 -0
- package/dist/public/assets/git-ops-button-Bxx_jyqR.js +2 -0
- package/dist/public/assets/history-view-DebwP9D7.js +9 -0
- package/dist/public/assets/{index-DKOXV50p.css → index-C2_gO3dh.css} +1 -1
- package/dist/public/assets/index-D9aY24hf.js +89 -0
- package/dist/public/assets/{mcp-server-card-Cy4RU2_Q.js → mcp-server-card-B6iwOybN.js} +1 -1
- package/dist/public/assets/merged-pr-dialog-CObeSEaB.js +1 -0
- package/dist/public/assets/{model-star-rating-BmkpdXfr.js → model-star-rating-BgdOyTTO.js} +1 -1
- package/dist/public/assets/onboarding-BN_K08ma.js +1 -0
- package/dist/public/assets/project-settings-view-BDvHOmF8.js +1 -0
- package/dist/public/assets/providers-list-view-DydWz8z3.js +1 -0
- package/dist/public/assets/pull-request-dialog-LJhZpT8C.js +1 -0
- package/dist/public/assets/pull-with-changes-dialog-BPIj9wIk.js +1 -0
- package/dist/public/assets/push-before-pr-dialog-DzBp93KT.js +1 -0
- package/dist/public/assets/{radio-group-CbatNaj1.js → radio-group-B9xMCZ1X.js} +1 -1
- package/dist/public/assets/react-vendor-CE5Dmjd0.js +16 -0
- package/dist/public/assets/settings-general-view-D_44BPVr.js +1 -0
- package/dist/public/assets/{settings-instructions-view-DMAjbi6E.js → settings-instructions-view-Y6EK67-G.js} +1 -1
- package/dist/public/assets/{settings-list-B8hiBkBz.js → settings-list-BZDwK9bE.js} +1 -1
- package/dist/public/assets/settings-mcp-servers-view-B8IqOOnN.js +5 -0
- package/dist/public/assets/{settings-models-skeleton-DPnYbg69.js → settings-models-skeleton-DAEnT4kC.js} +1 -1
- package/dist/public/assets/settings-models-view-CluPgRkw.js +1 -0
- package/dist/public/assets/{settings-rules-view-DBk7DzV2.js → settings-rules-view-CxHrCDwn.js} +3 -3
- package/dist/public/assets/settings-skills-view-BE9u6FvJ.js +2 -0
- package/dist/public/assets/settings-slash-commands-view-CVOZ3GH3.js +1 -0
- package/dist/public/assets/{settings-subagents-view-D98Nxoly.js → settings-subagents-view-mguSf6zE.js} +2 -2
- package/dist/public/assets/settings-system-prompt-view-0sXVxXh3.js +1 -0
- package/dist/public/assets/settings-view-BE8EW7s7.js +2 -0
- package/dist/public/assets/{skeleton-BHhGML7J.js → skeleton-CVhaOA8k.js} +1 -1
- package/dist/public/assets/{slug-utils-DyRUJ1NS.js → slug-utils-DGOwJkKI.js} +1 -1
- package/dist/public/assets/{terminal-panel-DTOx74_o.js → terminal-panel-PjkgqbY6.js} +1 -1
- package/dist/public/assets/{ui-components-Jc6oi6bz.js → ui-components-DaffuSG7.js} +1 -1
- package/dist/public/assets/{use-deferred-search-B7EdyRbt.js → use-deferred-search-b843Ztu9.js} +1 -1
- package/dist/public/assets/{utils-tgi5ym_d.js → utils-BIt9KCVx.js} +1 -1
- package/dist/public/assets/vosk-speech-CgILeNJR.js +2 -0
- package/dist/public/assets/{web-CUAWBWPy.js → web-BBGaE-6B.js} +1 -1
- package/dist/public/assets/{web-C3vJZ_3_.js → web-D6dBzWD1.js} +1 -1
- package/dist/public/index.html +8 -8
- package/package.json +1 -1
- package/dist/public/assets/commit-dialog-CLQM9ah3.js +0 -1
- package/dist/public/assets/create-repo-dialog-C6k5wZPW.js +0 -1
- package/dist/public/assets/dialogs-config-CjKh5Rl2.js +0 -51
- package/dist/public/assets/diff-view-DWDWI5nl.js +0 -3
- package/dist/public/assets/explorer-tab-view-B0kT8Hl6.js +0 -2
- package/dist/public/assets/git-history-dialog-CuxOTngT.js +0 -1
- package/dist/public/assets/git-ops-button-C04zFAnF.js +0 -2
- package/dist/public/assets/history-view-ar7GLZ-R.js +0 -9
- package/dist/public/assets/index--HY4BbcM.js +0 -90
- package/dist/public/assets/merged-pr-dialog-Bo07VouF.js +0 -1
- package/dist/public/assets/onboarding-ClZrOxX7.js +0 -1
- package/dist/public/assets/project-settings-view-Dm9pQAp_.js +0 -1
- package/dist/public/assets/providers-list-view-D5gHsjl_.js +0 -1
- package/dist/public/assets/pull-request-dialog-8AYlOUNX.js +0 -1
- package/dist/public/assets/pull-with-changes-dialog-CSa5OE-d.js +0 -1
- package/dist/public/assets/push-before-pr-dialog-D5W_xsqv.js +0 -1
- package/dist/public/assets/react-vendor-DwQYi7es.js +0 -16
- package/dist/public/assets/settings-general-view-BP5ULy9A.js +0 -1
- package/dist/public/assets/settings-mcp-servers-view-OimQz-Rd.js +0 -5
- package/dist/public/assets/settings-models-view-Fq3WtdKG.js +0 -1
- package/dist/public/assets/settings-skills-view-CmOw-WMM.js +0 -2
- package/dist/public/assets/settings-slash-commands-view-FsrF5FkK.js +0 -1
- package/dist/public/assets/settings-system-prompt-view-B6Hy9ZyK.js +0 -1
- package/dist/public/assets/settings-view-J-rjoRcU.js +0 -2
- package/dist/public/assets/whisper-wasm-CWcbC1MB.js +0 -2
- package/dist/public/wasm/libmain-CWYJvMY5.js +0 -3318
- package/dist/public/wasm/libmain-D9-QM3iM.mjs +0 -3301
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Lo as t,Pa as n,Po as r,To as i,Xt as a,Y as o,do as s,hi as c,ji as l,pi as u}from"./dialogs-config-CxRnlUcQ.js";import{C as d,D as f,S as p,v as m}from"./history-view-DebwP9D7.js";import{I as h}from"./index-D9aY24hf.js";import{t as g}from"./skeleton-CVhaOA8k.js";var _=e(t(),1),v=r();function y(){let[e,t]=(0,_.useState)(null),[r,y]=(0,_.useState)(!0);(0,_.useEffect)(()=>{b();let e=()=>{document.visibilityState===`visible`&&b()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]);async function b(){y(!0);try{t(await o())}catch(e){h({title:`Error`,description:e instanceof Error?e.message:`Failed to load account info`,variant:`destructive`})}finally{y(!1)}}function x(){a(`https://buy.stripe.com/14AcN6feK0Jjbheb2H3Nm03?client_reference_id=${e?.clientReferenceId??``}`)}function S(){a(`https://buy.stripe.com/9B67sMd6CgIh70Y0o33Nm04?client_reference_id=${e?.clientReferenceId??``}`)}if(r)return(0,v.jsx)(f,{children:(0,v.jsxs)(m,{children:[(0,v.jsxs)(`div`,{className:`mb-6`,children:[(0,v.jsx)(g,{className:`h-8 w-32 mb-2`}),(0,v.jsx)(g,{className:`h-4 w-64`})]}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsxs)(`div`,{className:`flex gap-4`,children:[(0,v.jsxs)(`div`,{className:`flex-1 rounded-xl border bg-card p-5 space-y-2`,children:[(0,v.jsx)(g,{className:`h-4 w-20`}),(0,v.jsx)(g,{className:`h-9 w-28`})]}),(0,v.jsxs)(`div`,{className:`flex-1 rounded-xl border bg-card p-5 space-y-3`,children:[(0,v.jsx)(g,{className:`h-4 w-24`}),(0,v.jsx)(g,{className:`h-6 w-32`}),(0,v.jsx)(g,{className:`h-4 w-full`})]})]}),(0,v.jsxs)(`div`,{className:`space-y-3`,children:[(0,v.jsx)(g,{className:`h-4 w-24`}),(0,v.jsxs)(`div`,{className:`rounded-xl border bg-card p-5 flex items-center justify-between gap-4`,children:[(0,v.jsxs)(`div`,{className:`space-y-1 flex-1`,children:[(0,v.jsx)(g,{className:`h-5 w-28`}),(0,v.jsx)(g,{className:`h-4 w-64`})]}),(0,v.jsx)(g,{className:`h-9 w-28 shrink-0`})]}),(0,v.jsxs)(`div`,{className:`rounded-xl border bg-card p-5 flex items-center justify-between gap-4`,children:[(0,v.jsxs)(`div`,{className:`space-y-1 flex-1`,children:[(0,v.jsx)(g,{className:`h-5 w-36`}),(0,v.jsx)(g,{className:`h-4 w-56`}),(0,v.jsx)(g,{className:`h-4 w-32`})]}),(0,v.jsx)(g,{className:`h-9 w-24 shrink-0`})]})]})]})]})});let C=e?.plan===`unlimited-pro`;return(0,v.jsx)(f,{children:(0,v.jsxs)(m,{children:[(0,v.jsx)(p,{title:`Account`,description:`Manage your Tarsk plan and prompt balance.`}),(0,v.jsxs)(`div`,{className:`space-y-6`,children:[(0,v.jsxs)(`div`,{className:`flex gap-4`,children:[(0,v.jsxs)(`div`,{className:`flex-1 rounded-xl border bg-card p-5 space-y-2`,children:[(0,v.jsxs)(`div`,{className:c(l.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(n,{className:`h-4 w-4`}),`Balance`]}),(0,v.jsx)(`div`,{className:`flex items-end gap-2`,children:C?(0,v.jsx)(`span`,{className:l.stat,children:`Unlimited`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`span`,{className:l.stat,children:e?.promptsRemaining.toLocaleString()??0}),(0,v.jsx)(`span`,{className:`${l.caption} mb-1`,children:`prompts remaining`})]})})]}),(0,v.jsxs)(`div`,{className:`flex-1 rounded-xl border bg-card p-5 space-y-3`,children:[(0,v.jsxs)(`div`,{className:c(l.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(s,{className:`h-4 w-4`}),`Current Plan`]}),(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`span`,{className:l.label,children:C?`Unlimited Pro`:`Pay as you go`}),C&&(0,v.jsx)(`span`,{className:c(l.compact,`rounded-full bg-primary/10 px-2 py-0.5 font-medium text-primary`),children:`Active`})]}),(0,v.jsx)(`p`,{className:l.bodyMuted,children:C?`You have unlimited prompts with no restrictions.`:`Purchase prompts as needed. Upgrade to Pro for unlimited access.`})]})]}),!C&&(0,v.jsxs)(`div`,{className:`space-y-3`,children:[(0,v.jsx)(d,{title:`Add Prompts`,className:`mb-0`}),(0,v.jsxs)(`div`,{className:`rounded-xl border bg-card p-5 flex items-center justify-between gap-4`,children:[(0,v.jsxs)(`div`,{className:`space-y-1`,children:[(0,v.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,v.jsx)(`span`,{className:l.label,children:`1,000 Prompts`})}),(0,v.jsx)(`p`,{className:l.bodyMuted,children:`Top up your balance with 1,000 additional prompts for $5.`})]}),(0,v.jsx)(u,{onClick:x,className:`shrink-0`,children:`Top Up Balance`})]}),(0,v.jsxs)(`div`,{className:`rounded-xl border bg-card p-5 flex items-center justify-between gap-4`,children:[(0,v.jsxs)(`div`,{className:`space-y-1`,children:[(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(s,{className:`h-4 w-4 text-primary`}),(0,v.jsx)(`span`,{className:l.label,children:`Unlimited Pro Plan`})]}),(0,v.jsx)(`p`,{className:l.bodyMuted,children:`Unlimited prompts for $100 and lifetime access to Tarsk.`}),(0,v.jsxs)(`ul`,{className:c(l.bodyMuted,`space-y-0.5`),children:[(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(i,{className:`h-3 w-3 text-primary`}),`Unlimited prompts`]}),(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(i,{className:`h-3 w-3 text-primary`}),`Priority access`]})]})]}),(0,v.jsx)(u,{onClick:S,className:`shrink-0`,children:`Purchase`})]})]})]})]})})}export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bn as e,Hn as t,In as n,Ln as r,Rn as i,Un as a,Vn as o}from"./dialogs-config-
|
|
1
|
+
import{Bn as e,Hn as t,In as n,Ln as r,Rn as i,Un as a,Vn as o}from"./dialogs-config-CxRnlUcQ.js";async function s(e,t,n=!1){return i(`api/threads/${r(e)}/explorer?path=${encodeURIComponent(t)}&recursive=${n}`)}async function c(e,t){return i(`api/threads/${r(e)}/ai-file?path=${encodeURIComponent(t)}`)}async function l(e,t,n){return a(`api/threads/${r(e)}/ai-file`,{path:t,content:n})}async function u(e,t){return n(`api/threads/${r(e)}/explorer?path=${encodeURIComponent(t)}`)}async function d(e,t,n){return o(`api/threads/${r(e)}/explorer`,{path:t,newName:n})}async function f(e,n,i){return t(`api/threads/${r(e)}/explorer/file`,{dirPath:n,name:i})}async function p(t,n){return e(`api/threads/${r(t)}/explorer/media?path=${encodeURIComponent(n)}`)}async function m(e,n,i){return t(`api/threads/${r(e)}/explorer/folder`,{dirPath:n,name:i})}async function h(e,n){return t(`api/threads/${r(e)}/explorer/open`,{path:n})}export{c as a,d as c,p as i,l,m as n,s as o,u as r,h as s,f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Aa as t,Ar as n,Fo as r,Lo as i,Pn as a,Po as o,Xt as s,_r as c,co as l,gr as u,ha as d,hi as f,ji as p,na as m,oa as h,vr as g,yr as _}from"./dialogs-config-CxRnlUcQ.js";import{B as v,N as y,_ as b,r as x,v as S,x as C}from"./index-D9aY24hf.js";var w=r(),T=e(i(),1),E=o();function D(e){let t=e.trim();return t?(!t.startsWith(`http://`)&&!t.startsWith(`https://`)&&(t=`http://${t}`),t):``}function O(e){return e?e.querySelector(`electrobun-webview`):null}function k(e){e.webviewId!=null&&(e.toggleHidden(!0),e.togglePassthrough(!0))}function A(e){e.webviewId!=null&&(e.toggleHidden(!1),e.togglePassthrough(!1),e.syncDimensions(!0))}function j(e,t){let n=!1,r=0;function i(){if(!n){if(e.webviewId==null){r=requestAnimationFrame(i);return}t&&e.getAttribute(`src`)!==t&&e.loadURL(t),A(e)}}return r=requestAnimationFrame(i),function(){n=!0,cancelAnimationFrame(r)}}function M(e){let t=(0,w.c)(9),{onClick:n,label:r,children:i,isActive:a}=e,o=`p-1.5 rounded transition-colors ${a!==void 0&&a?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground hover:bg-background/50`}`,s;t[0]!==i||t[1]!==n||t[2]!==o?(s=(0,E.jsx)(_,{asChild:!0,children:(0,E.jsx)(`button`,{type:`button`,onClick:n,className:o,children:i})}),t[0]=i,t[1]=n,t[2]=o,t[3]=s):s=t[3];let l;t[4]===r?l=t[5]:(l=(0,E.jsx)(c,{children:r}),t[4]=r,t[5]=l);let d;return t[6]!==s||t[7]!==l?(d=(0,E.jsxs)(u,{children:[s,l]}),t[6]=s,t[7]=l,t[8]=d):d=t[8],d}function N(){let{activeMainTab:e}=y(),{devServerUrl:r}=C(),{browserResetTrigger:i,browserDeviceMode:o,setBrowserDeviceMode:c}=x(),u=v(e=>e.selectedProjectId),_=v(e=>e.projects).find(e=>e.projectId===u),[w,N]=(0,T.useState)(``),[P,F]=(0,T.useState)(``),[I,L]=(0,T.useState)(``),[R,z]=(0,T.useState)(o),B=(0,T.useRef)(null),V=(0,T.useRef)(I),H=(0,T.useRef)(null),U=(0,T.useRef)(null),W=a(),G=b(),K=W&&e===`browser`&&!!P,[q,J]=(0,T.useState)(K);V.current=I,(0,T.useEffect)(()=>{z(o)},[o]);function Y(e){z(e),c(e)}function X(){return B.current??O(U.current)}(0,T.useLayoutEffect)(()=>{if(!W)return;if(K){J(!0);return}let e=X();e&&k(e);let t=requestAnimationFrame(()=>{J(!1)});return function(){cancelAnimationFrame(t)}},[K,W,P]),(0,T.useEffect)(()=>{F(``),L(``),N(``);let e=B.current;e&&(e.src=``),H.current&&(H.current.src=``)},[i]),(0,T.useEffect)(()=>{if(!r)return;let e=D(r);N(e),F(e),L(e)},[r]);let Z=(0,T.useCallback)(e=>{B.current=e,e&&j(e,V.current)},[]);(0,T.useLayoutEffect)(()=>{if(!W||!q)return;let e=X();!e||e.webviewId==null||A(e)},[q,W,P,R]),(0,T.useEffect)(()=>{let e=X();if(!(!W||!e||!I||!q))return j(e,I)},[I,W,P,q]),(0,T.useEffect)(()=>{let e=X();if(!W||!e||!q)return;function t(e){let t=typeof e.detail==`string`?e.detail:P;t&&(F(t),L(``),N(t))}function n(e){let t=typeof e.detail==`string`?e.detail:P;t&&(F(t),N(t))}function r(e){let t=e.detail,n=typeof t==`string`?t:typeof t==`object`&&t&&`url`in t?String(t.url):``;n&&s(n)}return e.on(`did-navigate`,t),e.on(`did-navigate-in-page`,n),e.on(`new-window-open`,r),function(){e.off(`did-navigate`,t),e.off(`did-navigate-in-page`,n),e.off(`new-window-open`,r)}},[P,W,q]);function Q(e){let t=D(e);t&&(N(t),F(t),L(t))}function ee(e){e.key===`Enter`&&Q(w)}function te(){if(W){let e=X();e&&e.reload();return}let e=H.current;if(!e)return;let t=e.src;e.src=``,requestAnimationFrame(()=>{e.src=t})}let $={desktop:{width:`100%`,height:`100%`},tablet:{width:`768px`,height:`1024px`},mobile:{width:`375px`,height:`667px`}}[R];function ne(){return W?q?(0,T.createElement)(`electrobun-webview`,{ref:Z,src:P,preload:G,renderer:`native`,className:`block h-full w-full bg-background`}):null:(0,E.jsx)(`iframe`,{ref:H,src:P,className:`h-full w-full border-none`,title:`Browser`})}return(0,E.jsx)(g,{children:(0,E.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col overflow-hidden`,children:[(0,E.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-border px-3 py-2`,children:[(0,E.jsx)(n,{type:`text`,value:w,onChange:e=>N(e.target.value),onKeyDown:ee,placeholder:`Enter URL...`,className:f(`flex-1 rounded-full bg-muted font-mono`),spellCheck:!1}),P&&(0,E.jsx)(M,{onClick:te,label:`Refresh page`,children:(0,E.jsx)(d,{size:15})}),P&&(0,E.jsxs)(`div`,{className:`flex items-center rounded-md bg-muted p-0.5`,children:[(0,E.jsx)(M,{onClick:()=>Y(`desktop`),label:`Desktop view`,isActive:R===`desktop`,children:(0,E.jsx)(t,{size:15})}),(0,E.jsx)(M,{onClick:()=>Y(`tablet`),label:`Tablet view`,isActive:R===`tablet`,children:(0,E.jsx)(m,{size:15})}),(0,E.jsx)(M,{onClick:()=>Y(`mobile`),label:`Mobile view`,isActive:R===`mobile`,children:(0,E.jsx)(h,{size:15})})]}),P&&(0,E.jsx)(M,{onClick:()=>void s(P),label:`Open in external browser`,children:(0,E.jsx)(l,{size:15})})]}),P?(0,E.jsx)(`div`,{ref:U,className:`flex min-h-0 flex-1 items-center justify-center bg-background`,children:(0,E.jsx)(`div`,{className:`overflow-hidden border border-border bg-background shadow-sm ${R===`desktop`?`h-full w-full rounded-none border-0 shadow-none`:`rounded-lg`}`,style:{width:$.width,height:$.height,maxWidth:`100%`,maxHeight:`100%`},children:ne()})}):(0,E.jsx)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-6 text-muted-foreground`,children:u&&_?.runCommand?(0,E.jsx)(S,{projectId:u,runCommand:_.runCommand,large:!0}):(0,E.jsx)(`p`,{className:p.body,children:`Enter a URL to browse`})})]})})}export{N as BrowserTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fo as e,Fr as ee,Ir as te,La as t,Lr as n,Nr as r,Or as i,Po as a,Pr as o,_r as s,aa as c,gr as l,ji as u,jr as ne,pi as d,vr as f,yr as p}from"./dialogs-config-CxRnlUcQ.js";import{a as m}from"./onboarding-BN_K08ma.js";import{R as h}from"./index-D9aY24hf.js";var g=e(),_=a();function v(e){let a=(0,g.c)(57),{open:v,onOpenChange:y,commitMessage:b,onCommitMessageChange:x,autoGenerateCommitMessage:S,onAutoGenerateChange:C,isGeneratingMessage:w,isLoading:T,onGenerateMessage:E,onCommit:D,currentBranch:O}=e,k;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(n,{children:`Commit Changes`}),a[0]=k):k=a[0];let A;a[1]===O?A=a[2]:(A=(0,_.jsxs)(te,{children:[k,(0,_.jsxs)(o,{children:[`Enter a commit message for your changes on branch `,O]})]}),a[1]=O,a[2]=A);let j;a[3]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(i,{htmlFor:`commit-message`,children:`Commit Message`}),a[3]=j):j=a[3];let M;a[4]===x?M=a[5]:(M=e=>x(e.target.value),a[4]=x,a[5]=M);let N;a[6]!==b||a[7]!==M?(N=(0,_.jsx)(h,{id:`commit-message`,placeholder:`Enter commit message...`,value:b,onChange:M,rows:4,className:`pr-10`}),a[6]=b,a[7]=M,a[8]=N):N=a[8];let P=w||T,F;a[9]===w?F=a[10]:(F=w?(0,_.jsx)(t,{className:`h-3.5 w-3.5 animate-spin`}):(0,_.jsx)(c,{className:`h-3.5 w-3.5`}),a[9]=w,a[10]=F);let I;a[11]!==E||a[12]!==P||a[13]!==F?(I=(0,_.jsx)(p,{asChild:!0,children:(0,_.jsx)(d,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute top-2 right-2 h-6 w-6`,onClick:E,disabled:P,children:F})}),a[11]=E,a[12]=P,a[13]=F,a[14]=I):I=a[14];let L=w?`Generating commit message...`:`Generate commit message with AI`,R;a[15]===L?R=a[16]:(R=(0,_.jsx)(s,{children:L}),a[15]=L,a[16]=R);let z;a[17]!==R||a[18]!==I?(z=(0,_.jsx)(f,{children:(0,_.jsxs)(l,{children:[I,R]})}),a[17]=R,a[18]=I,a[19]=z):z=a[19];let B;a[20]!==z||a[21]!==N?(B=(0,_.jsxs)(`div`,{className:`grid gap-2`,children:[j,(0,_.jsxs)(`div`,{className:`relative`,children:[N,z]})]}),a[20]=z,a[21]=N,a[22]=B):B=a[22];let V;a[23]===C?V=a[24]:(V=e=>C(e===!0),a[23]=C,a[24]=V);let H;a[25]!==S||a[26]!==V?(H=(0,_.jsx)(m,{id:`auto-generate`,checked:S,onCheckedChange:V}),a[25]=S,a[26]=V,a[27]=H):H=a[27];let U;a[28]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(i,{htmlFor:`auto-generate`,className:u.labelNormal,children:`Auto generate commit messages`}),a[28]=U):U=a[28];let W;a[29]===H?W=a[30]:(W=(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[H,U]}),a[29]=H,a[30]=W);let G;a[31]!==B||a[32]!==W?(G=(0,_.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[B,W]}),a[31]=B,a[32]=W,a[33]=G):G=a[33];let K;a[34]===y?K=a[35]:(K=()=>y(!1),a[34]=y,a[35]=K);let q;a[36]!==T||a[37]!==K?(q=(0,_.jsx)(d,{variant:`outline`,onClick:K,disabled:T,children:`Cancel`}),a[36]=T,a[37]=K,a[38]=q):q=a[38];let J;a[39]!==b||a[40]!==T?(J=T||!b.trim(),a[39]=b,a[40]=T,a[41]=J):J=a[41];let Y=T?`Committing...`:`Commit`,X;a[42]!==D||a[43]!==J||a[44]!==Y?(X=(0,_.jsx)(d,{onClick:D,disabled:J,children:Y}),a[42]=D,a[43]=J,a[44]=Y,a[45]=X):X=a[45];let Z;a[46]!==q||a[47]!==X?(Z=(0,_.jsxs)(ee,{children:[q,X]}),a[46]=q,a[47]=X,a[48]=Z):Z=a[48];let Q;a[49]!==G||a[50]!==A||a[51]!==Z?(Q=(0,_.jsxs)(r,{children:[A,G,Z]}),a[49]=G,a[50]=A,a[51]=Z,a[52]=Q):Q=a[52];let $;return a[53]!==y||a[54]!==v||a[55]!==Q?($=(0,_.jsx)(ne,{open:v,onOpenChange:y,children:Q}),a[53]=y,a[54]=v,a[55]=Q,a[56]=$):$=a[56],$}export{v as CommitDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Fo as t,Lo as n,Po as r,So as i,To as a,go as o,hi as s,ji as c}from"./dialogs-config-CxRnlUcQ.js";import{S as l,_ as u,b as d,d as f,f as p,g as m,h,m as g,p as _,v,x as y,y as b}from"./react-vendor-CE5Dmjd0.js";var x=t(),S=e(n(),1),C=r(),w=v,T=l,E=S.forwardRef((e,t)=>{let n=(0,x.c)(14),r,a,o,l;n[0]===e?(r=n[1],a=n[2],o=n[3],l=n[4]):({className:a,inset:o,children:r,...l}=e,n[0]=e,n[1]=r,n[2]=a,n[3]=o,n[4]=l);let u;n[5]!==a||n[6]!==o?(u=s(s(c.body,`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`),o&&`pl-8`,a),n[5]=a,n[6]=o,n[7]=u):u=n[7];let d;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,C.jsx)(i,{className:`ml-auto h-4 w-4`}),n[8]=d):d=n[8];let f;return n[9]!==r||n[10]!==l||n[11]!==t||n[12]!==u?(f=(0,C.jsxs)(y,{ref:t,className:u,...l,children:[r,d]}),n[9]=r,n[10]=l,n[11]=t,n[12]=u,n[13]=f):f=n[13],f});E.displayName=y.displayName;var D=S.forwardRef((e,t)=>{let n=(0,x.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=s(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==t||n[7]!==a?(o=(0,C.jsx)(d,{ref:t,className:a,...i}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});D.displayName=d.displayName;var O=S.forwardRef((e,t)=>{let n=(0,x.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=s(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==t||n[7]!==a?(o=(0,C.jsx)(m,{children:(0,C.jsx)(p,{ref:t,className:a,...i})}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});O.displayName=p.displayName;var k=S.forwardRef((e,t)=>{let n=(0,x.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,inset:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]!==r||n[5]!==i?(o=s(s(c.body,`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`),i&&`pl-8`,r),n[4]=r,n[5]=i,n[6]=o):o=n[6];let l;return n[7]!==a||n[8]!==t||n[9]!==o?(l=(0,C.jsx)(_,{ref:t,className:o,...a}),n[7]=a,n[8]=t,n[9]=o,n[10]=l):l=n[10],l});k.displayName=_.displayName;var A=S.forwardRef((e,t)=>{let n=(0,x.c)(14),r,i,o,l;n[0]===e?(r=n[1],i=n[2],o=n[3],l=n[4]):({className:o,children:i,checked:r,...l}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=l);let u;n[5]===o?u=n[6]:(u=s(s(c.body,`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`),o),n[5]=o,n[6]=u);let d;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,C.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,C.jsx)(g,{children:(0,C.jsx)(a,{className:`h-4 w-4`})})}),n[7]=d):d=n[7];let p;return n[8]!==r||n[9]!==i||n[10]!==l||n[11]!==t||n[12]!==u?(p=(0,C.jsxs)(f,{ref:t,className:u,checked:r,...l,children:[d,i]}),n[8]=r,n[9]=i,n[10]=l,n[11]=t,n[12]=u,n[13]=p):p=n[13],p});A.displayName=f.displayName;var j=S.forwardRef((e,t)=>{let n=(0,x.c)(12),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let l;n[4]===i?l=n[5]:(l=s(s(c.body,`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`),i),n[4]=i,n[5]=l);let d;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,C.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,C.jsx)(g,{children:(0,C.jsx)(o,{className:`h-2 w-2 fill-current`})})}),n[6]=d):d=n[6];let f;return n[7]!==r||n[8]!==a||n[9]!==t||n[10]!==l?(f=(0,C.jsxs)(u,{ref:t,className:l,...a,children:[d,r]}),n[7]=r,n[8]=a,n[9]=t,n[10]=l,n[11]=f):f=n[11],f});j.displayName=u.displayName;var M=S.forwardRef((e,t)=>{let n=(0,x.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,inset:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]!==r||n[5]!==i?(o=s(s(c.body,`px-2 py-1.5 font-semibold text-foreground`),i&&`pl-8`,r),n[4]=r,n[5]=i,n[6]=o):o=n[6];let l;return n[7]!==a||n[8]!==t||n[9]!==o?(l=(0,C.jsx)(h,{ref:t,className:o,...a}),n[7]=a,n[8]=t,n[9]=o,n[10]=l):l=n[10],l});M.displayName=h.displayName;var N=S.forwardRef((e,t)=>{let n=(0,x.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=s(`-mx-1 my-1 h-px bg-border`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==t||n[7]!==a?(o=(0,C.jsx)(b,{ref:t,className:a,...i}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});N.displayName=b.displayName;var P=e=>{let t=(0,x.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=s(c.compact,`ml-auto tracking-widest text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,C.jsx)(`span`,{className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a};P.displayName=`ContextMenuShortcut`;export{T as a,N as i,O as n,k as r,w as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ar as e,Fo as t,Fr as n,Ir as r,Lr as i,Nr as a,Or as o,Po as s,Pr as c,ji as l,jr as u,pi as d}from"./dialogs-config-CxRnlUcQ.js";import{a as f}from"./onboarding-BN_K08ma.js";import{R as p}from"./index-D9aY24hf.js";var m=t(),h=s();function g(t){let s=(0,m.c)(48),{open:g,onOpenChange:_,repoName:v,onRepoNameChange:y,repoDescription:b,onRepoDescriptionChange:x,isPrivateRepo:S,onPrivateRepoChange:C,isLoading:w,onCreateRepo:T}=t,E;s[0]!==_||s[1]!==x||s[2]!==y?(E=e=>{e||(y(``),x(``)),_(e)},s[0]=_,s[1]=x,s[2]=y,s[3]=E):E=s[3];let D;s[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,h.jsxs)(r,{children:[(0,h.jsx)(i,{children:`Create GitHub Repository`}),(0,h.jsx)(c,{children:`Create a new GitHub repository and push your local repository`})]}),s[4]=D):D=s[4];let O;s[5]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(o,{htmlFor:`repo-name`,children:`Repository Name (optional)`}),s[5]=O):O=s[5];let k;s[6]===y?k=s[7]:(k=e=>y(e.target.value),s[6]=y,s[7]=k);let A;s[8]!==v||s[9]!==k?(A=(0,h.jsxs)(`div`,{className:`grid gap-2`,children:[O,(0,h.jsx)(e,{id:`repo-name`,placeholder:`Leave empty to use current folder name`,value:v,onChange:k})]}),s[8]=v,s[9]=k,s[10]=A):A=s[10];let j;s[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(o,{htmlFor:`repo-description`,children:`Description (optional)`}),s[11]=j):j=s[11];let M;s[12]===x?M=s[13]:(M=e=>x(e.target.value),s[12]=x,s[13]=M);let N;s[14]!==b||s[15]!==M?(N=(0,h.jsxs)(`div`,{className:`grid gap-2`,children:[j,(0,h.jsx)(p,{id:`repo-description`,placeholder:`Enter repository description...`,value:b,onChange:M,rows:3})]}),s[14]=b,s[15]=M,s[16]=N):N=s[16];let P;s[17]===C?P=s[18]:(P=e=>C(e===!0),s[17]=C,s[18]=P);let F;s[19]!==S||s[20]!==P?(F=(0,h.jsx)(f,{id:`repo-private`,checked:S,onCheckedChange:P}),s[19]=S,s[20]=P,s[21]=F):F=s[21];let I;s[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(o,{htmlFor:`repo-private`,className:l.labelNormal,children:`Private repository`}),s[22]=I):I=s[22];let L;s[23]===F?L=s[24]:(L=(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[F,I]}),s[23]=F,s[24]=L);let R;s[25]!==L||s[26]!==A||s[27]!==N?(R=(0,h.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[A,N,L]}),s[25]=L,s[26]=A,s[27]=N,s[28]=R):R=s[28];let z;s[29]===_?z=s[30]:(z=()=>_(!1),s[29]=_,s[30]=z);let B;s[31]!==w||s[32]!==z?(B=(0,h.jsx)(d,{variant:`outline`,onClick:z,disabled:w,children:`Cancel`}),s[31]=w,s[32]=z,s[33]=B):B=s[33];let V=w?`Creating...`:`Create & Push`,H;s[34]!==w||s[35]!==T||s[36]!==V?(H=(0,h.jsx)(d,{onClick:T,disabled:w,children:V}),s[34]=w,s[35]=T,s[36]=V,s[37]=H):H=s[37];let U;s[38]!==B||s[39]!==H?(U=(0,h.jsxs)(n,{children:[B,H]}),s[38]=B,s[39]=H,s[40]=U):U=s[40];let W;s[41]!==R||s[42]!==U?(W=(0,h.jsxs)(a,{children:[D,R,U]}),s[41]=R,s[42]=U,s[43]=W):W=s[43];let G;return s[44]!==g||s[45]!==E||s[46]!==W?(G=(0,h.jsx)(u,{open:g,onOpenChange:E,children:W}),s[44]=g,s[45]=E,s[46]=W,s[47]=G):G=s[47],G}export{g as CreateRepoDialog};
|