tarsk 0.5.34 → 0.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.js +1283 -790
- package/dist/public/assets/account-view-BB-ze5ek.js +1 -0
- package/dist/public/assets/api-DzFQRz0u.js +1 -0
- package/dist/public/assets/browser-tab-B3bYbBws.js +1 -0
- package/dist/public/assets/commit-dialog-CJRMd4oA.js +1 -0
- package/dist/public/assets/context-menu-86TNA1D0.js +1 -0
- package/dist/public/assets/create-repo-dialog-nLnVNRqq.js +1 -0
- package/dist/public/assets/{dialogs-config-Ct6i8Iij.js → dialogs-config-I0_cSU2z.js} +14 -14
- package/dist/public/assets/diff-view-B8vWYa_2.js +3 -0
- package/dist/public/assets/explorer-tab-view-BGWQPnkw.js +2 -0
- package/dist/public/assets/explorer-tree-DrLoiF9t.js +1 -0
- package/dist/public/assets/explorer-view-Clm-RCAB.js +1 -0
- package/dist/public/assets/git-history-dialog-CcdMtW0o.js +1 -0
- package/dist/public/assets/git-ops-button-D9m2nmhO.js +2 -0
- package/dist/public/assets/history-view-Be-1C1tJ.js +7 -0
- package/dist/public/assets/index-DVXbmgHY.js +65 -0
- package/dist/public/assets/index-jIBJk8xl.css +1 -0
- package/dist/public/assets/mcp-server-card-bNNoXKsW.js +1 -0
- package/dist/public/assets/merged-pr-dialog-Fj8II9Bt.js +1 -0
- package/dist/public/assets/onboarding-CgP4bJ5F.js +1 -0
- package/dist/public/assets/project-settings-view-DixzP7KH.js +1 -0
- package/dist/public/assets/providers-list-view-BzSUZZyq.js +1 -0
- package/dist/public/assets/pull-request-dialog-ChuHHY3J.js +1 -0
- package/dist/public/assets/{pull-with-changes-dialog-DN0kE6os.js → pull-with-changes-dialog-Ck6aK6Q7.js} +1 -1
- package/dist/public/assets/push-before-pr-dialog-CbtHXjDH.js +1 -0
- package/dist/public/assets/radio-group-ZjNXbvW6.js +1 -0
- package/dist/public/assets/react-vendor-Do-APsQ6.js +16 -0
- package/dist/public/assets/settings-general-view-FwrdJbys.js +1 -0
- package/dist/public/assets/{settings-instructions-view-DULFg6dU.js → settings-instructions-view-BHzMtSvN.js} +1 -1
- package/dist/public/assets/settings-list-BCoqXa_X.js +1 -0
- package/dist/public/assets/settings-mcp-servers-view-DBD-NhPx.js +5 -0
- package/dist/public/assets/{settings-models-skeleton-CN2JkqZh.js → settings-models-skeleton-DsWpzWOw.js} +1 -1
- package/dist/public/assets/settings-models-view-vgV5YHRx.js +1 -0
- package/dist/public/assets/settings-rules-view-DcSXrmaq.js +8 -0
- package/dist/public/assets/settings-skills-view-DVGGs16n.js +2 -0
- package/dist/public/assets/settings-slash-commands-view-BsJw1F4p.js +1 -0
- package/dist/public/assets/settings-subagents-view-BgWhQ9bf.js +2 -0
- package/dist/public/assets/{settings-system-prompt-view-BNM_15ry.js → settings-system-prompt-view-DAAbMucD.js} +1 -1
- package/dist/public/assets/settings-view-DLzrbu69.js +2 -0
- package/dist/public/assets/skeleton-iEZ-dj1s.js +1 -0
- package/dist/public/assets/terminal-panel-C5qj1ctH.js +2 -0
- package/dist/public/assets/{ui-components-Di-9yNr4.js → ui-components-BN8dp4Bi.js} +1 -1
- package/dist/public/assets/{utils-DDDR42pW.js → utils-CU0c_yCM.js} +1 -1
- package/dist/public/assets/{whisper-wasm-Cq5Ofwpd.js → whisper-wasm-EGutPGND.js} +2 -2
- package/dist/public/index.html +12 -9
- package/package.json +1 -1
- package/dist/public/assets/account-view-Ds03urJE.js +0 -1
- package/dist/public/assets/api-BHfaVqlR.js +0 -1
- package/dist/public/assets/browser-tab-Qs8cnQkf.js +0 -1
- package/dist/public/assets/commit-dialog-D4suPxEe.js +0 -1
- package/dist/public/assets/context-menu-S8y0c1Fx.js +0 -1
- package/dist/public/assets/create-repo-dialog-DPKIg1mY.js +0 -1
- package/dist/public/assets/diff-view-rKDEnBLg.js +0 -3
- package/dist/public/assets/explorer-tab-view-JbLbPVAn.js +0 -2
- package/dist/public/assets/explorer-tree-Dq44yA1j.js +0 -1
- package/dist/public/assets/explorer-view-BMrlX2hb.js +0 -1
- package/dist/public/assets/git-history-dialog-CDwIqSZQ.js +0 -1
- package/dist/public/assets/git-ops-button-B6rEla5u.js +0 -2
- package/dist/public/assets/history-view-CFot099O.js +0 -7
- package/dist/public/assets/index-6DhhjIBL.js +0 -65
- package/dist/public/assets/index-sEZ3wJXu.css +0 -1
- package/dist/public/assets/mcp-server-card-DQY1RUPX.js +0 -1
- package/dist/public/assets/merged-pr-dialog-H_fuSmiF.js +0 -1
- package/dist/public/assets/onboarding-DHCR18iU.js +0 -1
- package/dist/public/assets/project-settings-view-CiefnK73.js +0 -1
- package/dist/public/assets/providers-list-view-DVopskGo.js +0 -1
- package/dist/public/assets/pull-request-dialog-Csql6eob.js +0 -1
- package/dist/public/assets/push-before-pr-dialog-IhdlLvWt.js +0 -1
- package/dist/public/assets/radio-group-BaKkAEZR.js +0 -1
- package/dist/public/assets/react-vendor-CjZZeCRj.js +0 -16
- package/dist/public/assets/settings-general-view-BMTxN35t.js +0 -1
- package/dist/public/assets/settings-list-Bdeuh4bJ.js +0 -1
- package/dist/public/assets/settings-mcp-servers-view-CRCtWjP2.js +0 -5
- package/dist/public/assets/settings-models-view-DosllhVB.js +0 -1
- package/dist/public/assets/settings-rules-view-BVWuGrnB.js +0 -8
- package/dist/public/assets/settings-skills-view-DYtcAu9-.js +0 -2
- package/dist/public/assets/settings-slash-commands-view-DFyL1W2n.js +0 -1
- package/dist/public/assets/settings-subagents-view-aCbK95Sk.js +0 -2
- package/dist/public/assets/settings-view-D5GE_CYR.js +0 -2
- package/dist/public/assets/skeleton-pSKdmWyJ.js +0 -1
- package/dist/public/assets/terminal-panel-Ds1tCgQA.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Ai as t,Ci as n,Jt as r,Y as i,Ya as a,co as o,li as s,si as c,xa as l,yo as u}from"./dialogs-config-I0_cSU2z.js";import{C as d,D as f,S as p,v as m}from"./history-view-Be-1C1tJ.js";import{E as h}from"./index-DVXbmgHY.js";import{t as g}from"./skeleton-iEZ-dj1s.js";var _=e(u(),1),v=t();function y(){let[e,t]=(0,_.useState)(null),[u,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 i())}catch(e){h({title:`Error`,description:e instanceof Error?e.message:`Failed to load account info`,variant:`destructive`})}finally{y(!1)}}function x(){r(`https://buy.stripe.com/14AcN6feK0Jjbheb2H3Nm03?client_reference_id=${e?.clientReferenceId??``}`)}function S(){r(`https://buy.stripe.com/9B67sMd6CgIh70Y0o33Nm04?client_reference_id=${e?.clientReferenceId??``}`)}if(u)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:s(n.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(l,{className:`h-4 w-4`}),`Balance`]}),(0,v.jsx)(`div`,{className:`flex items-end gap-2`,children:C?(0,v.jsx)(`span`,{className:n.stat,children:`Unlimited`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`span`,{className:n.stat,children:e?.promptsRemaining.toLocaleString()??0}),(0,v.jsx)(`span`,{className:`${n.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:s(n.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(a,{className:`h-4 w-4`}),`Current Plan`]}),(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`span`,{className:n.label,children:C?`Unlimited Pro`:`Pay as you go`}),C&&(0,v.jsx)(`span`,{className:s(n.compact,`rounded-full bg-primary/10 px-2 py-0.5 font-medium text-primary`),children:`Active`})]}),(0,v.jsx)(`p`,{className:n.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:n.label,children:`1,000 Prompts`})}),(0,v.jsx)(`p`,{className:n.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)(a,{className:`h-4 w-4 text-primary`}),(0,v.jsx)(`span`,{className:n.label,children:`Unlimited Pro Plan`})]}),(0,v.jsx)(`p`,{className:n.bodyMuted,children:`Unlimited prompts for $100 and lifetime access to Tarsk.`}),(0,v.jsxs)(`ul`,{className:s(n.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)(c,{onClick:S,className:`shrink-0`,children:`Purchase`})]})]})]})]})})}export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fn as e,In as t,Ln as n,Mn as r,Nn as i,Rn as a,jn as o}from"./dialogs-config-I0_cSU2z.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 o(`api/threads/${r(e)}/explorer?path=${encodeURIComponent(t)}`)}async function d(e,n,i){return t(`api/threads/${r(e)}/explorer`,{path:n,newName:i})}async function f(e,t,i){return n(`api/threads/${r(e)}/explorer/file`,{dirPath:t,name:i})}async function p(t,n){return e(`api/threads/${r(t)}/explorer/media?path=${encodeURIComponent(n)}`)}async function m(e,t,i){return n(`api/threads/${r(e)}/explorer/folder`,{dirPath:t,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,Ci as n,Gi as r,Jt as i,Ka as a,Tr as o,Xi as s,_a as c,_o as l,aa as u,dr as d,fr as f,kn as p,li as m,mr as h,pr as g,yo as _}from"./dialogs-config-I0_cSU2z.js";import{C as v,d as y,j as b}from"./index-DVXbmgHY.js";var x=l(),S=e(_(),1),C=t();function w(e){let t=e.trim();return t?(!t.startsWith(`http://`)&&!t.startsWith(`https://`)&&(t=`http://${t}`),t):``}function T(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),e.toggleHidden(!1),e.syncDimensions(!0)}}return r=requestAnimationFrame(i),function(){n=!0,cancelAnimationFrame(r)}}function E(e){let t=(0,x.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,C.jsx)(h,{asChild:!0,children:(0,C.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 c;t[4]===r?c=t[5]:(c=(0,C.jsx)(f,{children:r}),t[4]=r,t[5]=c);let l;return t[6]!==s||t[7]!==c?(l=(0,C.jsxs)(d,{children:[s,c]}),t[6]=s,t[7]=c,t[8]=l):l=t[8],l}function D(){let{activeMainTab:e,devServerUrl:t,browserResetTrigger:l}=v(),d=b(e=>e.selectedProjectId),f=b(e=>e.projects).find(e=>e.projectId===d),[h,_]=(0,S.useState)(``),[x,D]=(0,S.useState)(``),[O,k]=(0,S.useState)(``),[A,j]=(0,S.useState)(`desktop`),M=(0,S.useRef)(null),N=(0,S.useRef)(O),P=(0,S.useRef)(null),F=(0,S.useRef)(null),I=p(),L=e===`browser`;N.current=O,(0,S.useEffect)(()=>{D(``),k(``),_(``);let e=M.current;e&&(e.src=``),P.current&&(P.current.src=``)},[l]),(0,S.useEffect)(()=>{if(!t)return;let e=w(t);_(e),D(e),k(e)},[t]);let R=(0,S.useCallback)(e=>{M.current=e,e&&T(e,N.current)},[]);(0,S.useEffect)(()=>{let e=M.current;if(!(!I||!e||!O))return T(e,O)},[O,I,x]),(0,S.useEffect)(()=>{let e=M.current;!I||!e||(e.toggleHidden(!L),L&&requestAnimationFrame(()=>{e.syncDimensions(!0)}))},[L,I,x]),(0,S.useEffect)(()=>{let e=F.current,t=M.current;if(!I||!e||!t)return;let n=new IntersectionObserver(e=>{let n=e.some(e=>e.isIntersecting);t.toggleHidden(!n),n&&t.syncDimensions(!0)},{threshold:0});return n.observe(e),function(){n.disconnect()}},[I,x]),(0,S.useEffect)(()=>{let e=M.current;if(!I||!e)return;function t(e){let t=typeof e.detail==`string`?e.detail:x;t&&(D(t),k(``),_(t))}function n(e){let t=typeof e.detail==`string`?e.detail:x;t&&(D(t),_(t))}function r(e){let t=e.detail,n=typeof t==`string`?t:typeof t==`object`&&t&&`url`in t?String(t.url):``;n&&i(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)}},[x,I]);function z(e){let t=w(e);t&&(_(t),D(t),k(t))}function B(e){e.key===`Enter`&&z(h)}function V(){if(I){let e=M.current;e&&e.reload();return}let e=P.current;if(!e)return;let t=e.src;e.src=``,requestAnimationFrame(()=>{e.src=t})}let H={desktop:{width:`100%`,height:`100%`},tablet:{width:`768px`,height:`1024px`},mobile:{width:`375px`,height:`667px`}}[A];function U(){return I?(0,S.createElement)(`electrobun-webview`,{ref:R,src:x,renderer:`native`,className:`block h-full w-full bg-background`}):(0,C.jsx)(`iframe`,{ref:P,src:x,className:`h-full w-full border-none`,title:`Browser`})}return(0,C.jsx)(g,{children:(0,C.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col overflow-hidden`,children:[(0,C.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-border px-3 py-2`,children:[(0,C.jsx)(o,{type:`text`,value:h,onChange:e=>_(e.target.value),onKeyDown:B,placeholder:`Enter URL...`,className:m(`flex-1 rounded-full bg-muted font-mono`),spellCheck:!1}),x&&(0,C.jsx)(E,{onClick:V,label:`Refresh page`,children:(0,C.jsx)(u,{size:15})}),x&&(0,C.jsxs)(`div`,{className:`flex items-center rounded-md bg-muted p-0.5`,children:[(0,C.jsx)(E,{onClick:()=>j(`desktop`),label:`Desktop view`,isActive:A===`desktop`,children:(0,C.jsx)(c,{size:15})}),(0,C.jsx)(E,{onClick:()=>j(`tablet`),label:`Tablet view`,isActive:A===`tablet`,children:(0,C.jsx)(r,{size:15})}),(0,C.jsx)(E,{onClick:()=>j(`mobile`),label:`Mobile view`,isActive:A===`mobile`,children:(0,C.jsx)(s,{size:15})})]}),x&&(0,C.jsx)(E,{onClick:()=>void i(x),label:`Open in external browser`,children:(0,C.jsx)(a,{size:15})})]}),x?(0,C.jsx)(`div`,{ref:F,className:`flex min-h-0 flex-1 items-center justify-center bg-background`,children:(0,C.jsx)(`div`,{className:`overflow-hidden border border-border bg-background shadow-sm ${A===`desktop`?`h-full w-full rounded-none border-0 shadow-none`:`rounded-lg`}`,style:{width:H.width,height:H.height,maxWidth:`100%`,maxHeight:`100%`},children:U()})}):(0,C.jsx)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-6 text-muted-foreground`,children:d&&f?.runCommand?(0,C.jsx)(y,{projectId:d,runCommand:f.runCommand,large:!0}):(0,C.jsx)(`p`,{className:n.body,children:`Enter a URL to browse`})})]})})}export{D as BrowserTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ai as e,Ar as ee,Ci as t,Cr as n,Dr as r,Er as i,Or as a,Yi as o,_o as s,dr as c,fr as l,jr as u,kr as d,mr as te,pr as ne,si as f,wa as p}from"./dialogs-config-I0_cSU2z.js";import{n as m}from"./onboarding-CgP4bJ5F.js";import{O as h}from"./index-DVXbmgHY.js";var g=s(),_=e();function v(e){let s=(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;s[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(u,{children:`Commit Changes`}),s[0]=k):k=s[0];let A;s[1]===O?A=s[2]:(A=(0,_.jsxs)(ee,{children:[k,(0,_.jsxs)(a,{children:[`Enter a commit message for your changes on branch `,O]})]}),s[1]=O,s[2]=A);let j;s[3]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(n,{htmlFor:`commit-message`,children:`Commit Message`}),s[3]=j):j=s[3];let M;s[4]===x?M=s[5]:(M=e=>x(e.target.value),s[4]=x,s[5]=M);let N;s[6]!==b||s[7]!==M?(N=(0,_.jsx)(h,{id:`commit-message`,placeholder:`Enter commit message...`,value:b,onChange:M,rows:4,className:`pr-10`}),s[6]=b,s[7]=M,s[8]=N):N=s[8];let P=w||T,F;s[9]===w?F=s[10]:(F=w?(0,_.jsx)(p,{className:`h-3.5 w-3.5 animate-spin`}):(0,_.jsx)(o,{className:`h-3.5 w-3.5`}),s[9]=w,s[10]=F);let I;s[11]!==E||s[12]!==P||s[13]!==F?(I=(0,_.jsx)(te,{asChild:!0,children:(0,_.jsx)(f,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute top-2 right-2 h-6 w-6`,onClick:E,disabled:P,children:F})}),s[11]=E,s[12]=P,s[13]=F,s[14]=I):I=s[14];let L=w?`Generating commit message...`:`Generate commit message with AI`,R;s[15]===L?R=s[16]:(R=(0,_.jsx)(l,{children:L}),s[15]=L,s[16]=R);let z;s[17]!==R||s[18]!==I?(z=(0,_.jsx)(ne,{children:(0,_.jsxs)(c,{children:[I,R]})}),s[17]=R,s[18]=I,s[19]=z):z=s[19];let B;s[20]!==z||s[21]!==N?(B=(0,_.jsxs)(`div`,{className:`grid gap-2`,children:[j,(0,_.jsxs)(`div`,{className:`relative`,children:[N,z]})]}),s[20]=z,s[21]=N,s[22]=B):B=s[22];let V;s[23]===C?V=s[24]:(V=e=>C(e===!0),s[23]=C,s[24]=V);let H;s[25]!==S||s[26]!==V?(H=(0,_.jsx)(m,{id:`auto-generate`,checked:S,onCheckedChange:V}),s[25]=S,s[26]=V,s[27]=H):H=s[27];let U;s[28]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(n,{htmlFor:`auto-generate`,className:t.labelNormal,children:`Auto generate commit messages`}),s[28]=U):U=s[28];let W;s[29]===H?W=s[30]:(W=(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[H,U]}),s[29]=H,s[30]=W);let G;s[31]!==B||s[32]!==W?(G=(0,_.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[B,W]}),s[31]=B,s[32]=W,s[33]=G):G=s[33];let K;s[34]===y?K=s[35]:(K=()=>y(!1),s[34]=y,s[35]=K);let q;s[36]!==T||s[37]!==K?(q=(0,_.jsx)(f,{variant:`outline`,onClick:K,disabled:T,children:`Cancel`}),s[36]=T,s[37]=K,s[38]=q):q=s[38];let J;s[39]!==b||s[40]!==T?(J=T||!b.trim(),s[39]=b,s[40]=T,s[41]=J):J=s[41];let Y=T?`Committing...`:`Commit`,X;s[42]!==D||s[43]!==J||s[44]!==Y?(X=(0,_.jsx)(f,{onClick:D,disabled:J,children:Y}),s[42]=D,s[43]=J,s[44]=Y,s[45]=X):X=s[45];let Z;s[46]!==q||s[47]!==X?(Z=(0,_.jsxs)(d,{children:[q,X]}),s[46]=q,s[47]=X,s[48]=Z):Z=s[48];let Q;s[49]!==G||s[50]!==A||s[51]!==Z?(Q=(0,_.jsxs)(r,{children:[A,G,Z]}),s[49]=G,s[50]=A,s[51]=Z,s[52]=Q):Q=s[52];let $;return s[53]!==y||s[54]!==v||s[55]!==Q?($=(0,_.jsx)(i,{open:v,onOpenChange:y,children:Q}),s[53]=y,s[54]=v,s[55]=Q,s[56]=$):$=s[56],$}export{v as CommitDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Ai as t,Ci as n,_o as r,ao as i,co as a,eo as o,li as s,yo as c}from"./dialogs-config-I0_cSU2z.js";import{_ as l,b as u,d,f,g as p,h as m,m as h,p as g,u as _,v,x as y,y as b}from"./react-vendor-Do-APsQ6.js";var x=r(),S=e(c(),1),C=t(),w=l,T=y,E=S.forwardRef((e,t)=>{let r=(0,x.c)(14),a,o,c,l;r[0]===e?(a=r[1],o=r[2],c=r[3],l=r[4]):({className:o,inset:c,children:a,...l}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=c,r[4]=l);let d;r[5]!==o||r[6]!==c?(d=s(s(n.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]=d):d=r[7];let f;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(i,{className:`ml-auto h-4 w-4`}),r[8]=f):f=r[8];let p;return r[9]!==a||r[10]!==l||r[11]!==t||r[12]!==d?(p=(0,C.jsxs)(u,{ref:t,className:d,...l,children:[a,f]}),r[9]=a,r[10]=l,r[11]=t,r[12]=d,r[13]=p):p=r[13],p});E.displayName=u.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)(b,{ref:t,className:a,...i}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});D.displayName=b.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)(d,{ref:t,className:a,...i})}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});O.displayName=d.displayName;var k=S.forwardRef((e,t)=>{let r=(0,x.c)(11),i,a,o;r[0]===e?(i=r[1],a=r[2],o=r[3]):({className:i,inset:a,...o}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o);let c;r[4]!==i||r[5]!==a?(c=s(s(n.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`),a&&`pl-8`,i),r[4]=i,r[5]=a,r[6]=c):c=r[6];let l;return r[7]!==o||r[8]!==t||r[9]!==c?(l=(0,C.jsx)(f,{ref:t,className:c,...o}),r[7]=o,r[8]=t,r[9]=c,r[10]=l):l=r[10],l});k.displayName=f.displayName;var A=S.forwardRef((e,t)=>{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:c,children:o,checked:i,...l}=e,r[0]=e,r[1]=i,r[2]=o,r[3]=c,r[4]=l);let u;r[5]===c?u=r[6]:(u=s(s(n.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),r[5]=c,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)(a,{className:`h-4 w-4`})})}),r[7]=d):d=r[7];let f;return r[8]!==i||r[9]!==o||r[10]!==l||r[11]!==t||r[12]!==u?(f=(0,C.jsxs)(_,{ref:t,className:u,checked:i,...l,children:[d,o]}),r[8]=i,r[9]=o,r[10]=l,r[11]=t,r[12]=u,r[13]=f):f=r[13],f});A.displayName=_.displayName;var j=S.forwardRef((e,t)=>{let r=(0,x.c)(12),i,a,c;r[0]===e?(i=r[1],a=r[2],c=r[3]):({className:a,children:i,...c}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=c);let l;r[4]===a?l=r[5]:(l=s(s(n.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`),a),r[4]=a,r[5]=l);let u;r[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)(g,{children:(0,C.jsx)(o,{className:`h-2 w-2 fill-current`})})}),r[6]=u):u=r[6];let d;return r[7]!==i||r[8]!==c||r[9]!==t||r[10]!==l?(d=(0,C.jsxs)(p,{ref:t,className:l,...c,children:[u,i]}),r[7]=i,r[8]=c,r[9]=t,r[10]=l,r[11]=d):d=r[11],d});j.displayName=p.displayName;var M=S.forwardRef((e,t)=>{let r=(0,x.c)(11),i,a,o;r[0]===e?(i=r[1],a=r[2],o=r[3]):({className:i,inset:a,...o}=e,r[0]=e,r[1]=i,r[2]=a,r[3]=o);let c;r[4]!==i||r[5]!==a?(c=s(s(n.body,`px-2 py-1.5 font-semibold text-foreground`),a&&`pl-8`,i),r[4]=i,r[5]=a,r[6]=c):c=r[6];let l;return r[7]!==o||r[8]!==t||r[9]!==c?(l=(0,C.jsx)(h,{ref:t,className:c,...o}),r[7]=o,r[8]=t,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 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)(v,{ref:t,className:a,...i}),n[5]=i,n[6]=t,n[7]=a,n[8]=o):o=n[8],o});N.displayName=v.displayName;var P=e=>{let t=(0,x.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=s(n.compact,`ml-auto tracking-widest text-muted-foreground`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,C.jsx)(`span`,{className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o};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,Ar as t,Ci as n,Cr as r,Dr as i,Er as a,Or as o,Tr as s,_o as c,jr as l,kr as u,si as d}from"./dialogs-config-I0_cSU2z.js";import{n as f}from"./onboarding-CgP4bJ5F.js";import{O as p}from"./index-DVXbmgHY.js";var m=c(),h=e();function g(e){let c=(0,m.c)(48),{open:g,onOpenChange:_,repoName:v,onRepoNameChange:y,repoDescription:b,onRepoDescriptionChange:x,isPrivateRepo:S,onPrivateRepoChange:C,isLoading:w,onCreateRepo:T}=e,E;c[0]!==_||c[1]!==x||c[2]!==y?(E=e=>{e||(y(``),x(``)),_(e)},c[0]=_,c[1]=x,c[2]=y,c[3]=E):E=c[3];let D;c[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,h.jsxs)(t,{children:[(0,h.jsx)(l,{children:`Create GitHub Repository`}),(0,h.jsx)(o,{children:`Create a new GitHub repository and push your local repository`})]}),c[4]=D):D=c[4];let O;c[5]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(r,{htmlFor:`repo-name`,children:`Repository Name (optional)`}),c[5]=O):O=c[5];let k;c[6]===y?k=c[7]:(k=e=>y(e.target.value),c[6]=y,c[7]=k);let A;c[8]!==v||c[9]!==k?(A=(0,h.jsxs)(`div`,{className:`grid gap-2`,children:[O,(0,h.jsx)(s,{id:`repo-name`,placeholder:`Leave empty to use current folder name`,value:v,onChange:k})]}),c[8]=v,c[9]=k,c[10]=A):A=c[10];let j;c[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(r,{htmlFor:`repo-description`,children:`Description (optional)`}),c[11]=j):j=c[11];let M;c[12]===x?M=c[13]:(M=e=>x(e.target.value),c[12]=x,c[13]=M);let N;c[14]!==b||c[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})]}),c[14]=b,c[15]=M,c[16]=N):N=c[16];let P;c[17]===C?P=c[18]:(P=e=>C(e===!0),c[17]=C,c[18]=P);let F;c[19]!==S||c[20]!==P?(F=(0,h.jsx)(f,{id:`repo-private`,checked:S,onCheckedChange:P}),c[19]=S,c[20]=P,c[21]=F):F=c[21];let I;c[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(r,{htmlFor:`repo-private`,className:n.labelNormal,children:`Private repository`}),c[22]=I):I=c[22];let L;c[23]===F?L=c[24]:(L=(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[F,I]}),c[23]=F,c[24]=L);let R;c[25]!==L||c[26]!==A||c[27]!==N?(R=(0,h.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[A,N,L]}),c[25]=L,c[26]=A,c[27]=N,c[28]=R):R=c[28];let z;c[29]===_?z=c[30]:(z=()=>_(!1),c[29]=_,c[30]=z);let B;c[31]!==w||c[32]!==z?(B=(0,h.jsx)(d,{variant:`outline`,onClick:z,disabled:w,children:`Cancel`}),c[31]=w,c[32]=z,c[33]=B):B=c[33];let V=w?`Creating...`:`Create & Push`,H;c[34]!==w||c[35]!==T||c[36]!==V?(H=(0,h.jsx)(d,{onClick:T,disabled:w,children:V}),c[34]=w,c[35]=T,c[36]=V,c[37]=H):H=c[37];let U;c[38]!==B||c[39]!==H?(U=(0,h.jsxs)(u,{children:[B,H]}),c[38]=B,c[39]=H,c[40]=U):U=c[40];let W;c[41]!==R||c[42]!==U?(W=(0,h.jsxs)(i,{children:[D,R,U]}),c[41]=R,c[42]=U,c[43]=W):W=c[43];let G;return c[44]!==g||c[45]!==E||c[46]!==W?(G=(0,h.jsx)(a,{open:g,onOpenChange:E,children:W}),c[44]=g,c[45]=E,c[46]=W,c[47]=G):G=c[47],G}export{g as CreateRepoDialog};
|