tarsk 0.5.40 → 0.5.42
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 +1898 -485
- package/dist/public/assets/{account-view-BT90zNSx.js → account-view-BAm4Az95.js} +1 -1
- package/dist/public/assets/api-C44iPrsZ.js +1 -0
- package/dist/public/assets/browser-tab-DV6mFCbu.js +1 -0
- package/dist/public/assets/commit-dialog-DYdmiA4p.js +1 -0
- package/dist/public/assets/context-menu-BVP2PUoS.js +1 -0
- package/dist/public/assets/create-repo-dialog-DrGJUrGO.js +1 -0
- package/dist/public/assets/{dialogs-config-DZKtVbNK.js → dialogs-config-BPzX42HH.js} +14 -14
- package/dist/public/assets/diff-view-BnNtDcmG.js +3 -0
- package/dist/public/assets/explorer-tab-view-OGWG1dH9.js +2 -0
- package/dist/public/assets/explorer-tree--Ho2K8-i.js +1 -0
- package/dist/public/assets/explorer-view-Dw0Kyxb8.js +1 -0
- package/dist/public/assets/git-history-dialog-BpOpNbze.js +1 -0
- package/dist/public/assets/git-ops-button-DKOfNm4s.js +2 -0
- package/dist/public/assets/history-view-DwSqsTGI.js +9 -0
- package/dist/public/assets/index-BdLH7zyV.css +1 -0
- package/dist/public/assets/index-BqaiWs7x.js +88 -0
- package/dist/public/assets/mcp-server-card-BbAUiI-X.js +1 -0
- package/dist/public/assets/merged-pr-dialog-Cvo93bRH.js +1 -0
- package/dist/public/assets/onboarding-BmBbv0At.js +1 -0
- package/dist/public/assets/project-settings-view-D-8Ua1Tu.js +1 -0
- package/dist/public/assets/providers-list-view-Gm13Fagd.js +1 -0
- package/dist/public/assets/pull-request-dialog-BkzdP5F2.js +1 -0
- package/dist/public/assets/pull-with-changes-dialog-DQU7jHYL.js +1 -0
- package/dist/public/assets/push-before-pr-dialog-DII3gUVw.js +1 -0
- package/dist/public/assets/radio-group-DkDRaQdF.js +1 -0
- package/dist/public/assets/react-vendor-BmFalJ0W.js +16 -0
- package/dist/public/assets/settings-general-view-Br89Vrbv.js +1 -0
- package/dist/public/assets/{settings-instructions-view-CV7lRPuw.js → settings-instructions-view-ByxlAb9U.js} +1 -1
- package/dist/public/assets/settings-list-DSrSoTv7.js +1 -0
- package/dist/public/assets/settings-mcp-servers-view-U_la7C8z.js +5 -0
- package/dist/public/assets/{settings-models-skeleton-l966LEN8.js → settings-models-skeleton-C5XrzM39.js} +1 -1
- package/dist/public/assets/settings-models-view-obQa4doG.js +1 -0
- package/dist/public/assets/settings-rules-view-Cd9WHEAE.js +8 -0
- package/dist/public/assets/settings-skills-view-B81njz98.js +2 -0
- package/dist/public/assets/settings-slash-commands-view-Ct8WC1Z0.js +1 -0
- package/dist/public/assets/settings-subagents-view-BwNTnGkz.js +2 -0
- package/dist/public/assets/{settings-system-prompt-view-DQmSdSnp.js → settings-system-prompt-view-C4uLn68y.js} +1 -1
- package/dist/public/assets/settings-view-DQW_9pnm.js +2 -0
- package/dist/public/assets/skeleton-HsHVnOKO.js +1 -0
- package/dist/public/assets/{terminal-panel-BzCO142Q.js → terminal-panel-wOltBu70.js} +2 -2
- package/dist/public/assets/{ui-components-f8jJJzEo.js → ui-components-CaeQlGTd.js} +1 -1
- package/dist/public/assets/{utils-BlXPFbY9.js → utils-5mrXWXCs.js} +1 -1
- package/dist/public/assets/web-Gjw6klhQ.js +1 -0
- package/dist/public/assets/web-NsuCXAqU.js +1 -0
- package/dist/public/browser-preview-rpc.js +484 -0
- package/dist/public/index.html +7 -7
- package/dist/recommended-models.txt +1 -1
- package/package.json +1 -1
- package/dist/public/assets/api-DWU0D34A.js +0 -1
- package/dist/public/assets/browser-tab-Bp486a9f.js +0 -1
- package/dist/public/assets/commit-dialog-90PGbqs8.js +0 -1
- package/dist/public/assets/context-menu-C7FTMa2c.js +0 -1
- package/dist/public/assets/create-repo-dialog-BkUdww3q.js +0 -1
- package/dist/public/assets/diff-view-B4G8vqZa.js +0 -3
- package/dist/public/assets/explorer-tab-view-DEQFid8r.js +0 -2
- package/dist/public/assets/explorer-tree-CPHGgahA.js +0 -1
- package/dist/public/assets/explorer-view-BTvhSMDQ.js +0 -1
- package/dist/public/assets/git-history-dialog-Bqv0bD41.js +0 -1
- package/dist/public/assets/git-ops-button-BnVMlOO3.js +0 -2
- package/dist/public/assets/history-view-jX3PPID6.js +0 -9
- package/dist/public/assets/index-DjD2SPNZ.js +0 -65
- package/dist/public/assets/index-jIBJk8xl.css +0 -1
- package/dist/public/assets/mcp-server-card-CTCrhFIS.js +0 -1
- package/dist/public/assets/merged-pr-dialog-B2qqrQ1g.js +0 -1
- package/dist/public/assets/onboarding-CxtzQldG.js +0 -1
- package/dist/public/assets/project-settings-view-ZJjQbFbQ.js +0 -1
- package/dist/public/assets/providers-list-view-BH13AB_H.js +0 -1
- package/dist/public/assets/pull-request-dialog-ZzVXh6M9.js +0 -1
- package/dist/public/assets/pull-with-changes-dialog-LUgd2a4S.js +0 -1
- package/dist/public/assets/push-before-pr-dialog-CFmgu9H_.js +0 -1
- package/dist/public/assets/radio-group-Bd8YbtFD.js +0 -1
- package/dist/public/assets/react-vendor-Ba8DSNiO.js +0 -16
- package/dist/public/assets/settings-general-view-C8muiP_K.js +0 -1
- package/dist/public/assets/settings-list-CKPEGohm.js +0 -1
- package/dist/public/assets/settings-mcp-servers-view-3gN9ly3z.js +0 -5
- package/dist/public/assets/settings-models-view-CAMouMhE.js +0 -1
- package/dist/public/assets/settings-rules-view-BnazfbJb.js +0 -8
- package/dist/public/assets/settings-skills-view-DpzKFcpf.js +0 -2
- package/dist/public/assets/settings-slash-commands-view-Drje2Dl4.js +0 -1
- package/dist/public/assets/settings-subagents-view-D05kHO1W.js +0 -2
- package/dist/public/assets/settings-view-B6e0GfSv.js +0 -2
- package/dist/public/assets/skeleton-qzmFgKhS.js +0 -1
|
@@ -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,Mo as n,Na as r,Vi as i,Xt as a,Y as o,co as s,fi as c,mi as l,xo as u}from"./dialogs-config-BPzX42HH.js";import{C as d,D as f,S as p,v as m}from"./history-view-DwSqsTGI.js";import{A as h}from"./index-BqaiWs7x.js";import{t as g}from"./skeleton-HsHVnOKO.js";var _=e(n(),1),v=i();function y(){let[e,n]=(0,_.useState)(null),[i,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{n(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(i)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:l(t.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(r,{className:`h-4 w-4`}),`Balance`]}),(0,v.jsx)(`div`,{className:`flex items-end gap-2`,children:C?(0,v.jsx)(`span`,{className:t.stat,children:`Unlimited`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`span`,{className:t.stat,children:e?.promptsRemaining.toLocaleString()??0}),(0,v.jsx)(`span`,{className:`${t.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:l(t.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:t.label,children:C?`Unlimited Pro`:`Pay as you go`}),C&&(0,v.jsx)(`span`,{className:l(t.compact,`rounded-full bg-primary/10 px-2 py-0.5 font-medium text-primary`),children:`Active`})]}),(0,v.jsx)(`p`,{className:t.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:t.label,children:`1,000 Prompts`})}),(0,v.jsx)(`p`,{className:t.bodyMuted,children:`Top up your balance with 1,000 additional prompts for $5.`})]}),(0,v.jsx)(c,{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:t.label,children:`Unlimited Pro Plan`})]}),(0,v.jsx)(`p`,{className:t.bodyMuted,children:`Unlimited prompts for $100 and lifetime access to Tarsk.`}),(0,v.jsxs)(`ul`,{className:l(t.bodyMuted,`space-y-0.5`),children:[(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(u,{className:`h-3 w-3 text-primary`}),`Unlimited prompts`]}),(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(u,{className:`h-3 w-3 text-primary`}),`Priority access`]})]})]}),(0,v.jsx)(c,{onClick:S,className:`shrink-0`,children:`Purchase`})]})]})]})]})})}export{y as default};
|
|
@@ -0,0 +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-BPzX42HH.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})}export{c as a,l as c,p as i,m as n,s as o,u as r,d as s,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Ai as t,Ao as n,Ar as r,Mo as i,Pn as a,Vi as o,Xt as s,_r as c,ao as l,gr as u,ha as d,ka as f,mi as p,na as m,oa as h,vr as g,yr as _}from"./dialogs-config-BPzX42HH.js";import{D as v,F as y,h as b,m as x}from"./index-BqaiWs7x.js";var S=n(),C=e(i(),1),w=o();function T(e){let t=e.trim();return t?(!t.startsWith(`http://`)&&!t.startsWith(`https://`)&&(t=`http://${t}`),t):``}function E(e){return e?e.querySelector(`electrobun-webview`):null}function D(e){e.webviewId!=null&&(e.toggleHidden(!0),e.togglePassthrough(!0))}function O(e){e.webviewId!=null&&(e.toggleHidden(!1),e.togglePassthrough(!1),e.syncDimensions(!0))}function k(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),O(e)}}return r=requestAnimationFrame(i),function(){n=!0,cancelAnimationFrame(r)}}function A(e){let t=(0,S.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,w.jsx)(_,{asChild:!0,children:(0,w.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,w.jsx)(c,{children:r}),t[4]=r,t[5]=l);let d;return t[6]!==s||t[7]!==l?(d=(0,w.jsxs)(u,{children:[s,l]}),t[6]=s,t[7]=l,t[8]=d):d=t[8],d}function j(){let{activeMainTab:e,devServerUrl:n,browserResetTrigger:i,browserDeviceMode:o,setBrowserDeviceMode:c}=v(),u=y(e=>e.selectedProjectId),_=y(e=>e.projects).find(e=>e.projectId===u),[S,j]=(0,C.useState)(``),[M,N]=(0,C.useState)(``),[P,F]=(0,C.useState)(``),[I,L]=(0,C.useState)(o),R=(0,C.useRef)(null),z=(0,C.useRef)(P),B=(0,C.useRef)(null),V=(0,C.useRef)(null),H=a(),U=x(),W=H&&e===`browser`&&!!M,[G,K]=(0,C.useState)(W);z.current=P,(0,C.useEffect)(()=>{L(o)},[o]);function q(e){L(e),c(e)}function J(){return R.current??E(V.current)}(0,C.useLayoutEffect)(()=>{if(!H)return;if(W){K(!0);return}let e=J();e&&D(e);let t=requestAnimationFrame(()=>{K(!1)});return function(){cancelAnimationFrame(t)}},[W,H,M]),(0,C.useEffect)(()=>{N(``),F(``),j(``);let e=R.current;e&&(e.src=``),B.current&&(B.current.src=``)},[i]),(0,C.useEffect)(()=>{if(!n)return;let e=T(n);j(e),N(e),F(e)},[n]);let Y=(0,C.useCallback)(e=>{R.current=e,e&&k(e,z.current)},[]);(0,C.useLayoutEffect)(()=>{if(!H||!G)return;let e=J();!e||e.webviewId==null||O(e)},[G,H,M,I]),(0,C.useEffect)(()=>{let e=J();if(!(!H||!e||!P||!G))return k(e,P)},[P,H,M,G]),(0,C.useEffect)(()=>{let e=J();if(!H||!e||!G)return;function t(e){let t=typeof e.detail==`string`?e.detail:M;t&&(N(t),F(``),j(t))}function n(e){let t=typeof e.detail==`string`?e.detail:M;t&&(N(t),j(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)}},[M,H,G]);function X(e){let t=T(e);t&&(j(t),N(t),F(t))}function Z(e){e.key===`Enter`&&X(S)}function Q(){if(H){let e=J();e&&e.reload();return}let e=B.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`}}[I];function ee(){return H?G?(0,C.createElement)(`electrobun-webview`,{ref:Y,src:M,preload:U,renderer:`native`,className:`block h-full w-full bg-background`}):null:(0,w.jsx)(`iframe`,{ref:B,src:M,className:`h-full w-full border-none`,title:`Browser`})}return(0,w.jsx)(g,{children:(0,w.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col overflow-hidden`,children:[(0,w.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-border px-3 py-2`,children:[(0,w.jsx)(r,{type:`text`,value:S,onChange:e=>j(e.target.value),onKeyDown:Z,placeholder:`Enter URL...`,className:p(`flex-1 rounded-full bg-muted font-mono`),spellCheck:!1}),M&&(0,w.jsx)(A,{onClick:Q,label:`Refresh page`,children:(0,w.jsx)(d,{size:15})}),M&&(0,w.jsxs)(`div`,{className:`flex items-center rounded-md bg-muted p-0.5`,children:[(0,w.jsx)(A,{onClick:()=>q(`desktop`),label:`Desktop view`,isActive:I===`desktop`,children:(0,w.jsx)(f,{size:15})}),(0,w.jsx)(A,{onClick:()=>q(`tablet`),label:`Tablet view`,isActive:I===`tablet`,children:(0,w.jsx)(m,{size:15})}),(0,w.jsx)(A,{onClick:()=>q(`mobile`),label:`Mobile view`,isActive:I===`mobile`,children:(0,w.jsx)(h,{size:15})})]}),M&&(0,w.jsx)(A,{onClick:()=>void s(M),label:`Open in external browser`,children:(0,w.jsx)(l,{size:15})})]}),M?(0,w.jsx)(`div`,{ref:V,className:`flex min-h-0 flex-1 items-center justify-center bg-background`,children:(0,w.jsx)(`div`,{className:`overflow-hidden border border-border bg-background shadow-sm ${I===`desktop`?`h-full w-full rounded-none border-0 shadow-none`:`rounded-lg`}`,style:{width:$.width,height:$.height,maxWidth:`100%`,maxHeight:`100%`},children:ee()})}):(0,w.jsx)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-6 text-muted-foreground`,children:u&&_?.runCommand?(0,w.jsx)(b,{projectId:u,runCommand:_.runCommand,large:!0}):(0,w.jsx)(`p`,{className:t.body,children:`Enter a URL to browse`})})]})})}export{j as BrowserTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ai as e,Ao as t,Fr as n,Ia as r,Ir as i,Mr as a,Nr as ee,Or as o,Pr as s,Vi as c,_r as te,aa as ne,fi as l,gr as u,jr as d,vr as f,yr as p}from"./dialogs-config-BPzX42HH.js";import{n as m}from"./onboarding-BmBbv0At.js";import{M as h}from"./index-BqaiWs7x.js";var g=t(),_=c();function v(t){let c=(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}=t,k;c[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(i,{children:`Commit Changes`}),c[0]=k):k=c[0];let A;c[1]===O?A=c[2]:(A=(0,_.jsxs)(n,{children:[k,(0,_.jsxs)(ee,{children:[`Enter a commit message for your changes on branch `,O]})]}),c[1]=O,c[2]=A);let j;c[3]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(o,{htmlFor:`commit-message`,children:`Commit Message`}),c[3]=j):j=c[3];let M;c[4]===x?M=c[5]:(M=e=>x(e.target.value),c[4]=x,c[5]=M);let N;c[6]!==b||c[7]!==M?(N=(0,_.jsx)(h,{id:`commit-message`,placeholder:`Enter commit message...`,value:b,onChange:M,rows:4,className:`pr-10`}),c[6]=b,c[7]=M,c[8]=N):N=c[8];let P=w||T,F;c[9]===w?F=c[10]:(F=w?(0,_.jsx)(r,{className:`h-3.5 w-3.5 animate-spin`}):(0,_.jsx)(ne,{className:`h-3.5 w-3.5`}),c[9]=w,c[10]=F);let I;c[11]!==E||c[12]!==P||c[13]!==F?(I=(0,_.jsx)(p,{asChild:!0,children:(0,_.jsx)(l,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute top-2 right-2 h-6 w-6`,onClick:E,disabled:P,children:F})}),c[11]=E,c[12]=P,c[13]=F,c[14]=I):I=c[14];let L=w?`Generating commit message...`:`Generate commit message with AI`,R;c[15]===L?R=c[16]:(R=(0,_.jsx)(te,{children:L}),c[15]=L,c[16]=R);let z;c[17]!==R||c[18]!==I?(z=(0,_.jsx)(f,{children:(0,_.jsxs)(u,{children:[I,R]})}),c[17]=R,c[18]=I,c[19]=z):z=c[19];let B;c[20]!==z||c[21]!==N?(B=(0,_.jsxs)(`div`,{className:`grid gap-2`,children:[j,(0,_.jsxs)(`div`,{className:`relative`,children:[N,z]})]}),c[20]=z,c[21]=N,c[22]=B):B=c[22];let V;c[23]===C?V=c[24]:(V=e=>C(e===!0),c[23]=C,c[24]=V);let H;c[25]!==S||c[26]!==V?(H=(0,_.jsx)(m,{id:`auto-generate`,checked:S,onCheckedChange:V}),c[25]=S,c[26]=V,c[27]=H):H=c[27];let U;c[28]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(o,{htmlFor:`auto-generate`,className:e.labelNormal,children:`Auto generate commit messages`}),c[28]=U):U=c[28];let W;c[29]===H?W=c[30]:(W=(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[H,U]}),c[29]=H,c[30]=W);let G;c[31]!==B||c[32]!==W?(G=(0,_.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[B,W]}),c[31]=B,c[32]=W,c[33]=G):G=c[33];let K;c[34]===y?K=c[35]:(K=()=>y(!1),c[34]=y,c[35]=K);let q;c[36]!==T||c[37]!==K?(q=(0,_.jsx)(l,{variant:`outline`,onClick:K,disabled:T,children:`Cancel`}),c[36]=T,c[37]=K,c[38]=q):q=c[38];let J;c[39]!==b||c[40]!==T?(J=T||!b.trim(),c[39]=b,c[40]=T,c[41]=J):J=c[41];let Y=T?`Committing...`:`Commit`,X;c[42]!==D||c[43]!==J||c[44]!==Y?(X=(0,_.jsx)(l,{onClick:D,disabled:J,children:Y}),c[42]=D,c[43]=J,c[44]=Y,c[45]=X):X=c[45];let Z;c[46]!==q||c[47]!==X?(Z=(0,_.jsxs)(s,{children:[q,X]}),c[46]=q,c[47]=X,c[48]=Z):Z=c[48];let Q;c[49]!==G||c[50]!==A||c[51]!==Z?(Q=(0,_.jsxs)(a,{children:[A,G,Z]}),c[49]=G,c[50]=A,c[51]=Z,c[52]=Q):Q=c[52];let $;return c[53]!==y||c[54]!==v||c[55]!==Q?($=(0,_.jsx)(d,{open:v,onOpenChange:y,children:Q}),c[53]=y,c[54]=v,c[55]=Q,c[56]=$):$=c[56],$}export{v as CommitDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Ai as t,Ao as n,Mo as r,Vi as i,mi as a,po as o,vo as s,xo as c}from"./dialogs-config-BPzX42HH.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-BmFalJ0W.js";var x=n(),S=e(r(),1),C=i(),w=v,T=l,E=S.forwardRef((e,n)=>{let r=(0,x.c)(14),i,o,c,l;r[0]===e?(i=r[1],o=r[2],c=r[3],l=r[4]):({className:o,inset:c,children:i,...l}=e,r[0]=e,r[1]=i,r[2]=o,r[3]=c,r[4]=l);let u;r[5]!==o||r[6]!==c?(u=a(a(t.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`,o),r[5]=o,r[6]=c,r[7]=u):u=r[7];let d;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,C.jsx)(s,{className:`ml-auto h-4 w-4`}),r[8]=d):d=r[8];let f;return r[9]!==i||r[10]!==l||r[11]!==n||r[12]!==u?(f=(0,C.jsxs)(y,{ref:n,className:u,...l,children:[i,d]}),r[9]=i,r[10]=l,r[11]=n,r[12]=u,r[13]=f):f=r[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 o;n[3]===r?o=n[4]:(o=a(`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]=o);let s;return n[5]!==i||n[6]!==t||n[7]!==o?(s=(0,C.jsx)(d,{ref:t,className:o,...i}),n[5]=i,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});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 o;n[3]===r?o=n[4]:(o=a(`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]=o);let s;return n[5]!==i||n[6]!==t||n[7]!==o?(s=(0,C.jsx)(m,{children:(0,C.jsx)(p,{ref:t,className:o,...i})}),n[5]=i,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});O.displayName=p.displayName;var k=S.forwardRef((e,n)=>{let r=(0,x.c)(11),i,o,s;r[0]===e?(i=r[1],o=r[2],s=r[3]):({className:i,inset:o,...s}=e,r[0]=e,r[1]=i,r[2]=o,r[3]=s);let c;r[4]!==i||r[5]!==o?(c=a(a(t.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`,i),r[4]=i,r[5]=o,r[6]=c):c=r[6];let l;return r[7]!==s||r[8]!==n||r[9]!==c?(l=(0,C.jsx)(_,{ref:n,className:c,...s}),r[7]=s,r[8]=n,r[9]=c,r[10]=l):l=r[10],l});k.displayName=_.displayName;var A=S.forwardRef((e,n)=>{let r=(0,x.c)(14),i,o,s,l;r[0]===e?(i=r[1],o=r[2],s=r[3],l=r[4]):({className:s,children:o,checked:i,...l}=e,r[0]=e,r[1]=i,r[2]=o,r[3]=s,r[4]=l);let u;r[5]===s?u=r[6]:(u=a(a(t.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),r[5]=s,r[6]=u);let d;r[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)(c,{className:`h-4 w-4`})})}),r[7]=d):d=r[7];let p;return r[8]!==i||r[9]!==o||r[10]!==l||r[11]!==n||r[12]!==u?(p=(0,C.jsxs)(f,{ref:n,className:u,checked:i,...l,children:[d,o]}),r[8]=i,r[9]=o,r[10]=l,r[11]=n,r[12]=u,r[13]=p):p=r[13],p});A.displayName=f.displayName;var j=S.forwardRef((e,n)=>{let r=(0,x.c)(12),i,s,c;r[0]===e?(i=r[1],s=r[2],c=r[3]):({className:s,children:i,...c}=e,r[0]=e,r[1]=i,r[2]=s,r[3]=c);let l;r[4]===s?l=r[5]:(l=a(a(t.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),r[4]=s,r[5]=l);let d;r[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`})})}),r[6]=d):d=r[6];let f;return r[7]!==i||r[8]!==c||r[9]!==n||r[10]!==l?(f=(0,C.jsxs)(u,{ref:n,className:l,...c,children:[d,i]}),r[7]=i,r[8]=c,r[9]=n,r[10]=l,r[11]=f):f=r[11],f});j.displayName=u.displayName;var M=S.forwardRef((e,n)=>{let r=(0,x.c)(11),i,o,s;r[0]===e?(i=r[1],o=r[2],s=r[3]):({className:i,inset:o,...s}=e,r[0]=e,r[1]=i,r[2]=o,r[3]=s);let c;r[4]!==i||r[5]!==o?(c=a(a(t.body,`px-2 py-1.5 font-semibold text-foreground`),o&&`pl-8`,i),r[4]=i,r[5]=o,r[6]=c):c=r[6];let l;return r[7]!==s||r[8]!==n||r[9]!==c?(l=(0,C.jsx)(h,{ref:n,className:c,...s}),r[7]=s,r[8]=n,r[9]=c,r[10]=l):l=r[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 o;n[3]===r?o=n[4]:(o=a(`-mx-1 my-1 h-px bg-border`,r),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==t||n[7]!==o?(s=(0,C.jsx)(b,{ref:t,className:o,...i}),n[5]=i,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});N.displayName=b.displayName;var P=e=>{let n=(0,x.c)(8),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 o;n[3]===r?o=n[4]:(o=a(t.compact,`ml-auto tracking-widest text-muted-foreground`,r),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==o?(s=(0,C.jsx)(`span`,{className:o,...i}),n[5]=i,n[6]=o,n[7]=s):s=n[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{Ai as e,Ao as t,Ar as n,Fr as r,Ir as i,Mr as a,Nr as o,Or as s,Pr as c,Vi as l,fi as u,jr as d}from"./dialogs-config-BPzX42HH.js";import{n as f}from"./onboarding-BmBbv0At.js";import{M as p}from"./index-BqaiWs7x.js";var m=t(),h=l();function g(t){let l=(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;l[0]!==_||l[1]!==x||l[2]!==y?(E=e=>{e||(y(``),x(``)),_(e)},l[0]=_,l[1]=x,l[2]=y,l[3]=E):E=l[3];let D;l[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,h.jsxs)(r,{children:[(0,h.jsx)(i,{children:`Create GitHub Repository`}),(0,h.jsx)(o,{children:`Create a new GitHub repository and push your local repository`})]}),l[4]=D):D=l[4];let O;l[5]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(s,{htmlFor:`repo-name`,children:`Repository Name (optional)`}),l[5]=O):O=l[5];let k;l[6]===y?k=l[7]:(k=e=>y(e.target.value),l[6]=y,l[7]=k);let A;l[8]!==v||l[9]!==k?(A=(0,h.jsxs)(`div`,{className:`grid gap-2`,children:[O,(0,h.jsx)(n,{id:`repo-name`,placeholder:`Leave empty to use current folder name`,value:v,onChange:k})]}),l[8]=v,l[9]=k,l[10]=A):A=l[10];let j;l[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(s,{htmlFor:`repo-description`,children:`Description (optional)`}),l[11]=j):j=l[11];let M;l[12]===x?M=l[13]:(M=e=>x(e.target.value),l[12]=x,l[13]=M);let N;l[14]!==b||l[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})]}),l[14]=b,l[15]=M,l[16]=N):N=l[16];let P;l[17]===C?P=l[18]:(P=e=>C(e===!0),l[17]=C,l[18]=P);let F;l[19]!==S||l[20]!==P?(F=(0,h.jsx)(f,{id:`repo-private`,checked:S,onCheckedChange:P}),l[19]=S,l[20]=P,l[21]=F):F=l[21];let I;l[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(s,{htmlFor:`repo-private`,className:e.labelNormal,children:`Private repository`}),l[22]=I):I=l[22];let L;l[23]===F?L=l[24]:(L=(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[F,I]}),l[23]=F,l[24]=L);let R;l[25]!==L||l[26]!==A||l[27]!==N?(R=(0,h.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[A,N,L]}),l[25]=L,l[26]=A,l[27]=N,l[28]=R):R=l[28];let z;l[29]===_?z=l[30]:(z=()=>_(!1),l[29]=_,l[30]=z);let B;l[31]!==w||l[32]!==z?(B=(0,h.jsx)(u,{variant:`outline`,onClick:z,disabled:w,children:`Cancel`}),l[31]=w,l[32]=z,l[33]=B):B=l[33];let V=w?`Creating...`:`Create & Push`,H;l[34]!==w||l[35]!==T||l[36]!==V?(H=(0,h.jsx)(u,{onClick:T,disabled:w,children:V}),l[34]=w,l[35]=T,l[36]=V,l[37]=H):H=l[37];let U;l[38]!==B||l[39]!==H?(U=(0,h.jsxs)(c,{children:[B,H]}),l[38]=B,l[39]=H,l[40]=U):U=l[40];let W;l[41]!==R||l[42]!==U?(W=(0,h.jsxs)(a,{children:[D,R,U]}),l[41]=R,l[42]=U,l[43]=W):W=l[43];let G;return l[44]!==g||l[45]!==E||l[46]!==W?(G=(0,h.jsx)(d,{open:g,onOpenChange:E,children:W}),l[44]=g,l[45]=E,l[46]=W,l[47]=G):G=l[47],G}export{g as CreateRepoDialog};
|