tarsk 0.5.43 → 0.5.45
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 +1821 -378
- package/dist/public/assets/{account-view-xKotpUyx.js → account-view-CQetjhCu.js} +1 -1
- package/dist/public/assets/api-BiOks4gS.js +1 -0
- package/dist/public/assets/{browser-tab-DxigYzoT.js → browser-tab-CqyQXekj.js} +1 -1
- package/dist/public/assets/commit-dialog-CF1xviwe.js +1 -0
- package/dist/public/assets/context-menu-DcqiR-vK.js +1 -0
- package/dist/public/assets/create-repo-dialog-zVm7eDO3.js +1 -0
- package/dist/public/assets/dialogs-config-Cmwn8AP3.js +51 -0
- package/dist/public/assets/diff-view-CKaqAShe.js +3 -0
- package/dist/public/assets/explorer-tab-view-CDb7lUWX.js +2 -0
- package/dist/public/assets/explorer-tree-C-9BuD8n.js +1 -0
- package/dist/public/assets/{explorer-view-DIM08sdy.js → explorer-view-txWDc-Tg.js} +1 -1
- package/dist/public/assets/git-history-dialog-WU95COhj.js +1 -0
- package/dist/public/assets/git-ops-button-eOAENpwR.js +2 -0
- package/dist/public/assets/history-view-DTJug8Lv.js +9 -0
- package/dist/public/assets/index-CaswO76A.js +89 -0
- package/dist/public/assets/index-WIITae9I.css +1 -0
- package/dist/public/assets/mcp-server-card-BKJl2_RK.js +1 -0
- package/dist/public/assets/merged-pr-dialog-rSHpRiME.js +1 -0
- package/dist/public/assets/model-star-rating-DpF6_FVG.js +1 -0
- package/dist/public/assets/onboarding-ZCm02KNK.js +1 -0
- package/dist/public/assets/project-settings-view-COigmUzh.js +1 -0
- package/dist/public/assets/providers-list-view-BWQJtM6g.js +1 -0
- package/dist/public/assets/pull-request-dialog-DQVVlS8M.js +1 -0
- package/dist/public/assets/pull-with-changes-dialog-DtMvqvd8.js +1 -0
- package/dist/public/assets/push-before-pr-dialog-Bi6MHZiO.js +1 -0
- package/dist/public/assets/radio-group-s_ij8p3t.js +1 -0
- package/dist/public/assets/react-vendor-DMQDEfby.js +16 -0
- package/dist/public/assets/settings-general-view-Cgl5v7l-.js +1 -0
- package/dist/public/assets/settings-instructions-view-DrIwhrWJ.js +1 -0
- package/dist/public/assets/settings-list-B6nYThKU.js +1 -0
- package/dist/public/assets/settings-mcp-servers-view-QPaXg_C8.js +5 -0
- package/dist/public/assets/{settings-models-skeleton-DPnYbg69.js → settings-models-skeleton-D44p69YI.js} +1 -1
- package/dist/public/assets/settings-models-view--0zYzSYj.js +1 -0
- package/dist/public/assets/settings-rules-view-DtTJGnIp.js +8 -0
- package/dist/public/assets/settings-skills-view-CHT2EsBm.js +3 -0
- package/dist/public/assets/settings-slash-commands-view-RamAmlbD.js +1 -0
- package/dist/public/assets/settings-subagents-view-BY1e9nax.js +2 -0
- package/dist/public/assets/settings-system-prompt-view-DNR6lOSK.js +1 -0
- package/dist/public/assets/settings-view-XnpSVwUl.js +2 -0
- package/dist/public/assets/skeleton-_77ZLAk1.js +1 -0
- package/dist/public/assets/slug-utils-C0Ke4-ko.js +1 -0
- package/dist/public/assets/{terminal-panel-DTOx74_o.js → terminal-panel-Cp5-H4GS.js} +1 -1
- package/dist/public/assets/{ui-components-Jc6oi6bz.js → ui-components-BMQhWki4.js} +1 -1
- package/dist/public/assets/{use-deferred-search-B7EdyRbt.js → use-deferred-search-D0WCS0gz.js} +1 -1
- package/dist/public/assets/{utils-tgi5ym_d.js → utils-CkwFiI9G.js} +1 -1
- package/dist/public/assets/vosk-speech-CgILeNJR.js +2 -0
- package/dist/public/assets/{web-C3vJZ_3_.js → web-CdlbRaqq.js} +1 -1
- package/dist/public/assets/{web-CUAWBWPy.js → web-zT0ibfrw.js} +1 -1
- package/dist/public/index.html +8 -8
- package/package.json +1 -1
- package/dist/public/assets/api-D6uLdHBQ.js +0 -1
- package/dist/public/assets/commit-dialog-CLQM9ah3.js +0 -1
- package/dist/public/assets/context-menu-rC7iWcty.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/explorer-tree-BC4fBpxi.js +0 -1
- 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/index-DKOXV50p.css +0 -1
- package/dist/public/assets/mcp-server-card-Cy4RU2_Q.js +0 -1
- package/dist/public/assets/merged-pr-dialog-Bo07VouF.js +0 -1
- package/dist/public/assets/model-star-rating-BmkpdXfr.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/radio-group-CbatNaj1.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-instructions-view-DMAjbi6E.js +0 -1
- package/dist/public/assets/settings-list-B8hiBkBz.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-rules-view-DBk7DzV2.js +0 -8
- 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-subagents-view-D98Nxoly.js +0 -2
- 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/skeleton-BHhGML7J.js +0 -1
- package/dist/public/assets/slug-utils-DyRUJ1NS.js +0 -1
- 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{Ai as t,Lo as n,Mi as r,X as i,Xi as a,Zo as o,ls as s,oo as c,os as l,rn as u}from"./dialogs-config-Cmwn8AP3.js";import{C as d,D as f,S as p,v as m}from"./history-view-DTJug8Lv.js";import{R as h}from"./index-CaswO76A.js";import{t as g}from"./skeleton-_77ZLAk1.js";var _=e(s(),1),v=l();function y(){let[e,s]=(0,_.useState)(null),[l,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{s(await i())}catch(e){h({title:`Error`,description:e instanceof Error?e.message:`Failed to load account info`,variant:`destructive`})}finally{y(!1)}}function x(){u(`https://buy.stripe.com/14AcN6feK0Jjbheb2H3Nm03?client_reference_id=${e?.clientReferenceId??``}`)}function S(){u(`https://buy.stripe.com/9B67sMd6CgIh70Y0o33Nm04?client_reference_id=${e?.clientReferenceId??``}`)}if(l)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:r(a.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(c,{className:`h-4 w-4`}),`Balance`]}),(0,v.jsx)(`div`,{className:`flex items-end gap-2`,children:C?(0,v.jsx)(`span`,{className:a.stat,children:`Unlimited`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`span`,{className:a.stat,children:e?.promptsRemaining.toLocaleString()??0}),(0,v.jsx)(`span`,{className:`${a.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:r(a.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(n,{className:`h-4 w-4`}),`Current Plan`]}),(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`span`,{className:a.label,children:C?`Unlimited Pro`:`Pay as you go`}),C&&(0,v.jsx)(`span`,{className:r(a.compact,`rounded-full bg-primary/10 px-2 py-0.5 font-medium text-primary`),children:`Active`})]}),(0,v.jsx)(`p`,{className:a.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:a.label,children:`1,000 Prompts`})}),(0,v.jsx)(`p`,{className:a.bodyMuted,children:`Top up your balance with 1,000 additional prompts for $5.`})]}),(0,v.jsx)(t,{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)(n,{className:`h-4 w-4 text-primary`}),(0,v.jsx)(`span`,{className:a.label,children:`Unlimited Pro Plan`})]}),(0,v.jsx)(`p`,{className:a.bodyMuted,children:`Unlimited prompts for $100 and lifetime access to Tarsk.`}),(0,v.jsxs)(`ul`,{className:r(a.bodyMuted,`space-y-0.5`),children:[(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(o,{className:`h-3 w-3 text-primary`}),`Unlimited prompts`]}),(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(o,{className:`h-3 w-3 text-primary`}),`Priority access`]})]})]}),(0,v.jsx)(t,{onClick:S,className:`shrink-0`,children:`Purchase`})]})]})]})]})})}export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$n as e,Jn as t,Kn as n,Qn as r,Xn as i,Zn as a,qn as o}from"./dialogs-config-Cmwn8AP3.js";async function s(e,n,r=!1){return t(`api/threads/${o(e)}/explorer?path=${encodeURIComponent(n)}&recursive=${r}`)}async function c(e,n){return t(`api/threads/${o(e)}/ai-file?path=${encodeURIComponent(n)}`)}async function l(t,n,r){return e(`api/threads/${o(t)}/ai-file`,{path:n,content:r})}async function u(e,t){return n(`api/threads/${o(e)}/explorer?path=${encodeURIComponent(t)}`)}async function d(e,t,n){return a(`api/threads/${o(e)}/explorer`,{path:t,newName:n})}async function f(e,t,n){return r(`api/threads/${o(e)}/explorer/file`,{dirPath:t,name:n})}async function p(e,t){return i(`api/threads/${o(e)}/explorer/media?path=${encodeURIComponent(t)}`)}async function m(e,t,n){return r(`api/threads/${o(e)}/explorer/folder`,{dirPath:t,name:n})}async function h(e,t){return r(`api/threads/${o(e)}/explorer/open`,{path:t})}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{Fr as t,Ir as n,Ma as r,Mi as i,Nr as a,Oa as o,Po as s,Pr as c,Va as l,Wn as u,Xi as d,ls as f,no as p,os as m,qr as h,rn as g,ss as _}from"./dialogs-config-Cmwn8AP3.js";import{C as v,F as y,H as b,_ as x,b as S,r as C}from"./index-CaswO76A.js";var w=_(),T=e(f(),1),E=m();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:r,label:i,children:o,isActive:s}=e,l=`p-1.5 rounded transition-colors ${s!==void 0&&s?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground hover:bg-background/50`}`,u;t[0]!==o||t[1]!==r||t[2]!==l?(u=(0,E.jsx)(n,{asChild:!0,children:(0,E.jsx)(`button`,{type:`button`,onClick:r,className:l,children:o})}),t[0]=o,t[1]=r,t[2]=l,t[3]=u):u=t[3];let d;t[4]===i?d=t[5]:(d=(0,E.jsx)(c,{children:i}),t[4]=i,t[5]=d);let f;return t[6]!==u||t[7]!==d?(f=(0,E.jsxs)(a,{children:[u,d]}),t[6]=u,t[7]=d,t[8]=f):f=t[8],f}function N(){let{activeMainTab:e}=y(),{devServerUrl:n}=v(),{browserResetTrigger:a,browserDeviceMode:c,setBrowserDeviceMode:f}=C(),m=b(e=>e.selectedProjectId),_=b(e=>e.projects).find(e=>e.projectId===m),[w,N]=(0,T.useState)(``),[P,F]=(0,T.useState)(``),[I,L]=(0,T.useState)(``),[R,z]=(0,T.useState)(c),B=(0,T.useRef)(null),V=(0,T.useRef)(I),H=(0,T.useRef)(null),U=(0,T.useRef)(null),W=u(),G=x(),K=W&&e===`browser`&&!!P,[q,J]=(0,T.useState)(K);V.current=I,(0,T.useEffect)(()=>{z(c)},[c]);function Y(e){z(e),f(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=``)},[a]),(0,T.useEffect)(()=>{if(!n)return;let e=D(n);N(e),F(e),L(e)},[n]);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&&g(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)(t,{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)(h,{type:`text`,value:w,onChange:e=>N(e.target.value),onKeyDown:ee,placeholder:`Enter URL...`,className:i(`flex-1 rounded-full bg-muted font-mono`),spellCheck:!1}),P&&(0,E.jsx)(M,{onClick:te,label:`Refresh page`,children:(0,E.jsx)(l,{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)(p,{size:15})}),(0,E.jsx)(M,{onClick:()=>Y(`tablet`),label:`Tablet view`,isActive:R===`tablet`,children:(0,E.jsx)(o,{size:15})}),(0,E.jsx)(M,{onClick:()=>Y(`mobile`),label:`Mobile view`,isActive:R===`mobile`,children:(0,E.jsx)(r,{size:15})})]}),P&&(0,E.jsx)(M,{onClick:()=>void g(P),label:`Open in external browser`,children:(0,E.jsx)(s,{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:m&&_?.runCommand?(0,E.jsx)(S,{projectId:m,runCommand:_.runCommand,large:!0}):(0,E.jsx)(`p`,{className:d.body,children:`Enter a URL to browse`})})]})})}export{N as BrowserTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$r as e,Ai as t,Fr as n,Gr as r,Ir as ee,Jr as i,Nr as a,Pr as o,Qr as te,Xi as ne,Xr as s,Zr as c,ei as l,ja as u,lo as d,os as f,ss as p}from"./dialogs-config-Cmwn8AP3.js";import{a as m}from"./onboarding-ZCm02KNK.js";import{B as h}from"./index-CaswO76A.js";var g=p(),_=f();function v(f){let p=(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}=f,k;p[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(l,{children:`Commit Changes`}),p[0]=k):k=p[0];let A;p[1]===O?A=p[2]:(A=(0,_.jsxs)(e,{children:[k,(0,_.jsxs)(c,{children:[`Enter a commit message for your changes on branch `,O]})]}),p[1]=O,p[2]=A);let j;p[3]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(r,{htmlFor:`commit-message`,className:`shrink-0`,children:`Commit Message`}),p[3]=j):j=p[3];let M;p[4]===x?M=p[5]:(M=e=>x(e.target.value),p[4]=x,p[5]=M);let N;p[6]!==b||p[7]!==M?(N=(0,_.jsx)(h,{id:`commit-message`,placeholder:`Enter commit message...`,value:b,onChange:M,className:`absolute inset-0 pr-10 resize-none`}),p[6]=b,p[7]=M,p[8]=N):N=p[8];let P=w||T,F;p[9]===w?F=p[10]:(F=w?(0,_.jsx)(d,{className:`h-3.5 w-3.5 animate-spin`}):(0,_.jsx)(u,{className:`h-3.5 w-3.5`}),p[9]=w,p[10]=F);let I;p[11]!==E||p[12]!==P||p[13]!==F?(I=(0,_.jsx)(ee,{asChild:!0,children:(0,_.jsx)(t,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute top-2 right-2 h-6 w-6`,onClick:E,disabled:P,children:F})}),p[11]=E,p[12]=P,p[13]=F,p[14]=I):I=p[14];let L=w?`Generating commit message...`:`Generate commit message with AI`,R;p[15]===L?R=p[16]:(R=(0,_.jsx)(o,{children:L}),p[15]=L,p[16]=R);let z;p[17]!==R||p[18]!==I?(z=(0,_.jsx)(n,{children:(0,_.jsxs)(a,{children:[I,R]})}),p[17]=R,p[18]=I,p[19]=z):z=p[19];let B;p[20]!==z||p[21]!==N?(B=(0,_.jsx)(`div`,{className:`flex flex-col flex-1 min-h-0 py-4`,children:(0,_.jsxs)(`div`,{className:`flex flex-col gap-2 flex-1 min-h-0`,children:[j,(0,_.jsxs)(`div`,{className:`relative min-h-0 flex-1`,children:[N,z]})]})}),p[20]=z,p[21]=N,p[22]=B):B=p[22];let V;p[23]===C?V=p[24]:(V=e=>C(e===!0),p[23]=C,p[24]=V);let H;p[25]!==S||p[26]!==V?(H=(0,_.jsx)(m,{id:`auto-generate`,checked:S,onCheckedChange:V}),p[25]=S,p[26]=V,p[27]=H):H=p[27];let U;p[28]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(r,{htmlFor:`auto-generate`,className:ne.labelNormal,children:`Auto generate commit messages`}),p[28]=U):U=p[28];let W;p[29]===H?W=p[30]:(W=(0,_.jsxs)(`div`,{className:`flex items-center gap-2 mr-auto`,children:[H,U]}),p[29]=H,p[30]=W);let G;p[31]===y?G=p[32]:(G=()=>y(!1),p[31]=y,p[32]=G);let K;p[33]!==T||p[34]!==G?(K=(0,_.jsx)(t,{variant:`outline`,onClick:G,disabled:T,children:`Cancel`}),p[33]=T,p[34]=G,p[35]=K):K=p[35];let q;p[36]!==b||p[37]!==T?(q=T||!b.trim(),p[36]=b,p[37]=T,p[38]=q):q=p[38];let J=T?`Committing...`:`Commit`,Y;p[39]!==D||p[40]!==q||p[41]!==J?(Y=(0,_.jsx)(t,{onClick:D,disabled:q,children:J}),p[39]=D,p[40]=q,p[41]=J,p[42]=Y):Y=p[42];let X;p[43]!==K||p[44]!==Y?(X=(0,_.jsxs)(`div`,{className:`flex gap-2`,children:[K,Y]}),p[43]=K,p[44]=Y,p[45]=X):X=p[45];let Z;p[46]!==W||p[47]!==X?(Z=(0,_.jsxs)(te,{children:[W,X]}),p[46]=W,p[47]=X,p[48]=Z):Z=p[48];let Q;p[49]!==B||p[50]!==A||p[51]!==Z?(Q=(0,_.jsxs)(s,{className:`max-w-2xl h-[min(36rem,85dvh)] flex flex-col`,children:[A,B,Z]}),p[49]=B,p[50]=A,p[51]=Z,p[52]=Q):Q=p[52];let $;return p[53]!==y||p[54]!==v||p[55]!==Q?($=(0,_.jsx)(i,{open:v,onOpenChange:y,children:Q}),p[53]=y,p[54]=v,p[55]=Q,p[56]=$):$=p[56],$}export{v as CommitDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Ho as t,Jo as n,Mi as r,Xi as i,Zo as a,ls as o,os as s,ss as c}from"./dialogs-config-Cmwn8AP3.js";import{C as l,D as u,E as d,S as f,T as p,_ as m,b as h,g,v as _,w as v,x as y,y as b}from"./react-vendor-DMQDEfby.js";var x=c(),S=e(o(),1),C=s(),w=l,T=u,E=S.forwardRef((e,t)=>{let a=(0,x.c)(14),o,s,c,l;a[0]===e?(o=a[1],s=a[2],c=a[3],l=a[4]):({className:s,inset:c,children:o,...l}=e,a[0]=e,a[1]=o,a[2]=s,a[3]=c,a[4]=l);let u;a[5]!==s||a[6]!==c?(u=r(r(i.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`),c&&`pl-8`,s),a[5]=s,a[6]=c,a[7]=u):u=a[7];let f;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(n,{className:`ml-auto h-4 w-4`}),a[8]=f):f=a[8];let p;return a[9]!==o||a[10]!==l||a[11]!==t||a[12]!==u?(p=(0,C.jsxs)(d,{ref:t,className:u,...l,children:[o,f]}),a[9]=o,a[10]=l,a[11]=t,a[12]=u,a[13]=p):p=a[13],p});E.displayName=d.displayName;var D=S.forwardRef((e,t)=>{let n=(0,x.c)(9),i,a;n[0]===e?(i=n[1],a=n[2]):({className:i,...a}=e,n[0]=e,n[1]=i,n[2]=a);let o;n[3]===i?o=n[4]:(o=r(`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`,i),n[3]=i,n[4]=o);let s;return n[5]!==a||n[6]!==t||n[7]!==o?(s=(0,C.jsx)(p,{ref:t,className:o,...a}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});D.displayName=p.displayName;var O=S.forwardRef((e,t)=>{let n=(0,x.c)(9),i,a;n[0]===e?(i=n[1],a=n[2]):({className:i,...a}=e,n[0]=e,n[1]=i,n[2]=a);let o;n[3]===i?o=n[4]:(o=r(`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`,i),n[3]=i,n[4]=o);let s;return n[5]!==a||n[6]!==t||n[7]!==o?(s=(0,C.jsx)(y,{children:(0,C.jsx)(m,{ref:t,className:o,...a})}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});O.displayName=m.displayName;var k=S.forwardRef((e,t)=>{let n=(0,x.c)(11),a,o,s;n[0]===e?(a=n[1],o=n[2],s=n[3]):({className:a,inset:o,...s}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s);let c;n[4]!==a||n[5]!==o?(c=r(r(i.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`),o&&`pl-8`,a),n[4]=a,n[5]=o,n[6]=c):c=n[6];let l;return n[7]!==s||n[8]!==t||n[9]!==c?(l=(0,C.jsx)(_,{ref:t,className:c,...s}),n[7]=s,n[8]=t,n[9]=c,n[10]=l):l=n[10],l});k.displayName=_.displayName;var A=S.forwardRef((e,t)=>{let n=(0,x.c)(14),o,s,c,l;n[0]===e?(o=n[1],s=n[2],c=n[3],l=n[4]):({className:c,children:s,checked:o,...l}=e,n[0]=e,n[1]=o,n[2]=s,n[3]=c,n[4]=l);let u;n[5]===c?u=n[6]:(u=r(r(i.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`),c),n[5]=c,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)(b,{children:(0,C.jsx)(a,{className:`h-4 w-4`})})}),n[7]=d):d=n[7];let f;return n[8]!==o||n[9]!==s||n[10]!==l||n[11]!==t||n[12]!==u?(f=(0,C.jsxs)(g,{ref:t,className:u,checked:o,...l,children:[d,s]}),n[8]=o,n[9]=s,n[10]=l,n[11]=t,n[12]=u,n[13]=f):f=n[13],f});A.displayName=g.displayName;var j=S.forwardRef((e,n)=>{let a=(0,x.c)(12),o,s,c;a[0]===e?(o=a[1],s=a[2],c=a[3]):({className:s,children:o,...c}=e,a[0]=e,a[1]=o,a[2]=s,a[3]=c);let l;a[4]===s?l=a[5]:(l=r(r(i.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`),s),a[4]=s,a[5]=l);let u;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,C.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,C.jsx)(b,{children:(0,C.jsx)(t,{className:`h-2 w-2 fill-current`})})}),a[6]=u):u=a[6];let d;return a[7]!==o||a[8]!==c||a[9]!==n||a[10]!==l?(d=(0,C.jsxs)(f,{ref:n,className:l,...c,children:[u,o]}),a[7]=o,a[8]=c,a[9]=n,a[10]=l,a[11]=d):d=a[11],d});j.displayName=f.displayName;var M=S.forwardRef((e,t)=>{let n=(0,x.c)(11),a,o,s;n[0]===e?(a=n[1],o=n[2],s=n[3]):({className:a,inset:o,...s}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s);let c;n[4]!==a||n[5]!==o?(c=r(r(i.body,`px-2 py-1.5 font-semibold text-foreground`),o&&`pl-8`,a),n[4]=a,n[5]=o,n[6]=c):c=n[6];let l;return n[7]!==s||n[8]!==t||n[9]!==c?(l=(0,C.jsx)(h,{ref:t,className:c,...s}),n[7]=s,n[8]=t,n[9]=c,n[10]=l):l=n[10],l});M.displayName=h.displayName;var N=S.forwardRef((e,t)=>{let n=(0,x.c)(9),i,a;n[0]===e?(i=n[1],a=n[2]):({className:i,...a}=e,n[0]=e,n[1]=i,n[2]=a);let o;n[3]===i?o=n[4]:(o=r(`-mx-1 my-1 h-px bg-border`,i),n[3]=i,n[4]=o);let s;return n[5]!==a||n[6]!==t||n[7]!==o?(s=(0,C.jsx)(v,{ref:t,className:o,...a}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});N.displayName=v.displayName;var P=e=>{let t=(0,x.c)(8),n,a;t[0]===e?(n=t[1],a=t[2]):({className:n,...a}=e,t[0]=e,t[1]=n,t[2]=a);let o;t[3]===n?o=t[4]:(o=r(i.compact,`ml-auto tracking-widest text-muted-foreground`,n),t[3]=n,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,C.jsx)(`span`,{className:o,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s};P.displayName=`ContextMenuShortcut`;export{T as a,N as i,O as n,k as r,w as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$r as e,Ai as t,Gr as n,Jr as r,Qr as i,Xi as a,Xr as o,Zr as s,ei as c,os as l,qr as u,ss as d}from"./dialogs-config-Cmwn8AP3.js";import{a as f}from"./onboarding-ZCm02KNK.js";import{B as p}from"./index-CaswO76A.js";var m=d(),h=l();function g(l){let d=(0,m.c)(48),{open:g,onOpenChange:_,repoName:v,onRepoNameChange:y,repoDescription:b,onRepoDescriptionChange:x,isPrivateRepo:S,onPrivateRepoChange:C,isLoading:w,onCreateRepo:T}=l,E;d[0]!==_||d[1]!==x||d[2]!==y?(E=e=>{e||(y(``),x(``)),_(e)},d[0]=_,d[1]=x,d[2]=y,d[3]=E):E=d[3];let D;d[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,h.jsxs)(e,{children:[(0,h.jsx)(c,{children:`Create GitHub Repository`}),(0,h.jsx)(s,{children:`Create a new GitHub repository and push your local repository`})]}),d[4]=D):D=d[4];let O;d[5]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(n,{htmlFor:`repo-name`,children:`Repository Name (optional)`}),d[5]=O):O=d[5];let k;d[6]===y?k=d[7]:(k=e=>y(e.target.value),d[6]=y,d[7]=k);let A;d[8]!==v||d[9]!==k?(A=(0,h.jsxs)(`div`,{className:`grid gap-2`,children:[O,(0,h.jsx)(u,{id:`repo-name`,placeholder:`Leave empty to use current folder name`,value:v,onChange:k})]}),d[8]=v,d[9]=k,d[10]=A):A=d[10];let j;d[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(n,{htmlFor:`repo-description`,children:`Description (optional)`}),d[11]=j):j=d[11];let M;d[12]===x?M=d[13]:(M=e=>x(e.target.value),d[12]=x,d[13]=M);let N;d[14]!==b||d[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})]}),d[14]=b,d[15]=M,d[16]=N):N=d[16];let P;d[17]===C?P=d[18]:(P=e=>C(e===!0),d[17]=C,d[18]=P);let F;d[19]!==S||d[20]!==P?(F=(0,h.jsx)(f,{id:`repo-private`,checked:S,onCheckedChange:P}),d[19]=S,d[20]=P,d[21]=F):F=d[21];let I;d[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(n,{htmlFor:`repo-private`,className:a.labelNormal,children:`Private repository`}),d[22]=I):I=d[22];let L;d[23]===F?L=d[24]:(L=(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[F,I]}),d[23]=F,d[24]=L);let R;d[25]!==L||d[26]!==A||d[27]!==N?(R=(0,h.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[A,N,L]}),d[25]=L,d[26]=A,d[27]=N,d[28]=R):R=d[28];let z;d[29]===_?z=d[30]:(z=()=>_(!1),d[29]=_,d[30]=z);let B;d[31]!==w||d[32]!==z?(B=(0,h.jsx)(t,{variant:`outline`,onClick:z,disabled:w,children:`Cancel`}),d[31]=w,d[32]=z,d[33]=B):B=d[33];let V=w?`Creating...`:`Create & Push`,H;d[34]!==w||d[35]!==T||d[36]!==V?(H=(0,h.jsx)(t,{onClick:T,disabled:w,children:V}),d[34]=w,d[35]=T,d[36]=V,d[37]=H):H=d[37];let U;d[38]!==B||d[39]!==H?(U=(0,h.jsxs)(i,{children:[B,H]}),d[38]=B,d[39]=H,d[40]=U):U=d[40];let W;d[41]!==R||d[42]!==U?(W=(0,h.jsxs)(o,{children:[D,R,U]}),d[41]=R,d[42]=U,d[43]=W):W=d[43];let G;return d[44]!==g||d[45]!==E||d[46]!==W?(G=(0,h.jsx)(r,{open:g,onOpenChange:E,children:W}),d[44]=g,d[45]=E,d[46]=W,d[47]=G):G=d[47],G}export{g as CreateRepoDialog};
|