tarsk 0.5.48 → 0.5.50
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 +10644 -8487
- package/dist/public/assets/{account-view-Bbdb8T18.js → account-view-orctnHTc.js} +1 -1
- package/dist/public/assets/{api-Dhzdgb40.js → api-_tZksLaY.js} +1 -1
- package/dist/public/assets/{browser-tab-3DUg6V0M.js → browser-tab-bfjSH9LH.js} +1 -1
- package/dist/public/assets/commit-dialog-BAFsxiuw.js +1 -0
- package/dist/public/assets/{context-menu-PIC-g8wy.js → context-menu-CeBh_Q21.js} +1 -1
- package/dist/public/assets/{create-repo-dialog-BlvNaVRv.js → create-repo-dialog-D6cKAxMh.js} +1 -1
- package/dist/public/assets/{dialogs-config-BEazgV7k.js → dialogs-config-COzptu1b.js} +14 -14
- package/dist/public/assets/diff-view-CFu5DBIy.js +3 -0
- package/dist/public/assets/{explorer-tab-view-BBkCWKSi.js → explorer-tab-view-yR_3TyF7.js} +2 -2
- package/dist/public/assets/explorer-tree-DKrWFiee.js +1 -0
- package/dist/public/assets/explorer-view-DYbdTXTm.js +1 -0
- package/dist/public/assets/git-history-dialog-CTJwMGDA.js +1 -0
- package/dist/public/assets/git-ops-button-DM9h9L8O.js +2 -0
- package/dist/public/assets/history-view-BJ65FVAN.js +9 -0
- package/dist/public/assets/index-BMgOr4si.js +73 -0
- package/dist/public/assets/index-DzUALYN4.css +1 -0
- package/dist/public/assets/{mcp-server-card-ChdAZekt.js → mcp-server-card-7DWtYR7B.js} +1 -1
- package/dist/public/assets/{merged-pr-dialog-DAXqT4Xe.js → merged-pr-dialog-D6ReZlV4.js} +1 -1
- package/dist/public/assets/model-star-rating-DmWIerry.js +1 -0
- package/dist/public/assets/onboarding-pVfMmu_a.js +1 -0
- package/dist/public/assets/project-settings-view-CvPC_OvN.js +1 -0
- package/dist/public/assets/providers-list-view-BEBGDXvF.js +1 -0
- package/dist/public/assets/pull-request-dialog-DD9Yxl2t.js +1 -0
- package/dist/public/assets/pull-with-changes-dialog-yEIyN-rw.js +1 -0
- package/dist/public/assets/push-before-pr-dialog-09SWB4nh.js +1 -0
- package/dist/public/assets/{radio-group-n9qyUxmu.js → radio-group-DAndqwXy.js} +1 -1
- package/dist/public/assets/react-vendor-CEpXTE2b.js +16 -0
- package/dist/public/assets/settings-general-view-Crc9BTRv.js +1 -0
- package/dist/public/assets/settings-instructions-view-CB-cGPIr.js +1 -0
- package/dist/public/assets/settings-list-C5XuK_4u.js +1 -0
- package/dist/public/assets/settings-mcp-servers-view-CZR7I1h2.js +5 -0
- package/dist/public/assets/{settings-models-skeleton-Cse6L-Nd.js → settings-models-skeleton-ZtGznNlV.js} +1 -1
- package/dist/public/assets/settings-models-view-CB0rRPNa.js +1 -0
- package/dist/public/assets/settings-rules-view-BnoxoZfX.js +8 -0
- package/dist/public/assets/settings-skills-view-DKXDiK3e.js +3 -0
- package/dist/public/assets/settings-slash-commands-view-DtTuDEFe.js +1 -0
- package/dist/public/assets/settings-subagents-view-DNcPuqd5.js +2 -0
- package/dist/public/assets/{settings-system-prompt-view-N-H35C8O.js → settings-system-prompt-view-BLkM6rN5.js} +1 -1
- package/dist/public/assets/{settings-view-CjN-sUwG.js → settings-view-BX2dUb7a.js} +2 -2
- package/dist/public/assets/{skeleton-6mGMglV0.js → skeleton-CxK1dTki.js} +1 -1
- package/dist/public/assets/slug-utils-D3-onmIf.js +1 -0
- package/dist/public/assets/{tabs-iUSYYupj.js → tabs-Tmfp1NOE.js} +1 -1
- package/dist/public/assets/{terminal-panel-0S4qt1S4.js → terminal-panel-DKkr68gm.js} +1 -1
- package/dist/public/assets/todos-view-_rD_cv7x.js +17 -0
- package/dist/public/assets/{ui-components-kSaUEA_X.js → ui-components-BhYSDqpD.js} +1 -1
- package/dist/public/assets/{use-deferred-search-DGJskNBr.js → use-deferred-search-DXiiWEeH.js} +1 -1
- package/dist/public/assets/{utils-CECQ_-6N.js → utils-DDUhUTLy.js} +1 -1
- package/dist/public/assets/{vosk-speech-CgILeNJR.js → vosk-speech-BHa2mKnm.js} +2 -2
- package/dist/public/assets/{web-DltYtNVf.js → web-3Ems3Koj.js} +1 -1
- package/dist/public/assets/{web-CBt5zrp2.js → web-6JeYEnKU.js} +1 -1
- package/dist/public/assets/{web-Ca4UIlTP.js → web-BYoghlKk.js} +1 -1
- package/dist/public/assets/{web-oCvIBpv0.js → web-Dgmyivst.js} +1 -1
- package/dist/public/index.html +8 -8
- package/package.json +1 -1
- package/dist/public/assets/commit-dialog-CgHm8yd5.js +0 -1
- package/dist/public/assets/diff-view-BTMJ68_E.js +0 -3
- package/dist/public/assets/explorer-tree-CboAGH2h.js +0 -1
- package/dist/public/assets/explorer-view-CBxsEzQT.js +0 -1
- package/dist/public/assets/git-history-dialog-qUZ7Qsp4.js +0 -1
- package/dist/public/assets/git-ops-button-qjbfOO7Y.js +0 -2
- package/dist/public/assets/history-view-BMVTxWTg.js +0 -9
- package/dist/public/assets/index-C7FLshNp.css +0 -1
- package/dist/public/assets/index-r-MGLt04.js +0 -73
- package/dist/public/assets/model-star-rating-BzpXBjSo.js +0 -1
- package/dist/public/assets/onboarding-Bi5MieW-.js +0 -1
- package/dist/public/assets/project-settings-view-DuZuSAP6.js +0 -1
- package/dist/public/assets/providers-list-view-Dgid2Wui.js +0 -1
- package/dist/public/assets/pull-request-dialog-DUFq4dcj.js +0 -1
- package/dist/public/assets/pull-with-changes-dialog-oGP-j8Yw.js +0 -1
- package/dist/public/assets/push-before-pr-dialog-BQ0QC6Qu.js +0 -1
- package/dist/public/assets/react-vendor-iDwBzcYF.js +0 -16
- package/dist/public/assets/settings-general-view-DRoJpfeq.js +0 -1
- package/dist/public/assets/settings-instructions-view-DMiTyhgF.js +0 -1
- package/dist/public/assets/settings-list-owWkHWxE.js +0 -1
- package/dist/public/assets/settings-mcp-servers-view-D-ZPqbhw.js +0 -5
- package/dist/public/assets/settings-models-view-BAxf3eJq.js +0 -1
- package/dist/public/assets/settings-rules-view-CpGhrZ4c.js +0 -8
- package/dist/public/assets/settings-skills-view-Bbo2EUTs.js +0 -3
- package/dist/public/assets/settings-slash-commands-view-B9knfs3R.js +0 -1
- package/dist/public/assets/settings-subagents-view-CmSR8G5x.js +0 -2
- package/dist/public/assets/slug-utils-BT1eqWhW.js +0 -1
- package/dist/public/assets/todos-view-CMguWUyv.js +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{$i as t,Ni as n,Vo as r,X as i,an as a,es as o,fs as s,ji as c,ls as l,uo as u}from"./dialogs-config-COzptu1b.js";import{C as d,D as f,S as p,v as m}from"./history-view-BJ65FVAN.js";import{P as h}from"./index-BMgOr4si.js";import{t as g}from"./skeleton-CxK1dTki.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(){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(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:n(t.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(u,{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:n(t.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(r,{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:n(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)(r,{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:n(t.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};
|
|
@@ -1 +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-
|
|
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-COzptu1b.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{$i as t,Fr as n,Ga as r,Ia as i,Ir as a,Jr as o,Lr as s,Ma as c,Ni as l,Pr as u,Ro as d,an as f,er as p,fs as m,ls as h,oo as g,us as _}from"./dialogs-config-COzptu1b.js";import{R as v,_ as y,b,j as x,m as S,n as C}from"./index-BMgOr4si.js";var w=_(),T=e(m(),1),E=h();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:a,isActive:o}=e,c=`p-1.5 rounded transition-colors ${o!==void 0&&o?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground hover:bg-background/50`}`,l;t[0]!==a||t[1]!==r||t[2]!==c?(l=(0,E.jsx)(s,{asChild:!0,children:(0,E.jsx)(`button`,{type:`button`,onClick:r,className:c,children:a})}),t[0]=a,t[1]=r,t[2]=c,t[3]=l):l=t[3];let d;t[4]===i?d=t[5]:(d=(0,E.jsx)(n,{children:i}),t[4]=i,t[5]=d);let f;return t[6]!==l||t[7]!==d?(f=(0,E.jsxs)(u,{children:[l,d]}),t[6]=l,t[7]=d,t[8]=f):f=t[8],f}function N(){let{activeMainTab:e}=x(),{devServerUrl:n}=b(),{browserResetTrigger:s,browserDeviceMode:u,setBrowserDeviceMode:m}=C(),h=v(e=>e.selectedProjectId),_=v(e=>e.projects).find(e=>e.projectId===h),[w,N]=(0,T.useState)(``),[P,F]=(0,T.useState)(``),[I,L]=(0,T.useState)(``),[R,z]=(0,T.useState)(u),B=(0,T.useRef)(null),V=(0,T.useRef)(I),H=(0,T.useRef)(null),U=(0,T.useRef)(null),W=p(),G=S(),K=W&&e===`browser`&&!!P,[q,J]=(0,T.useState)(K);V.current=I,(0,T.useEffect)(()=>{z(u)},[u]);function Y(e){z(e),m(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=``)},[s]),(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&&f(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)(a,{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)(o,{type:`text`,value:w,onChange:e=>N(e.target.value),onKeyDown:ee,placeholder:`Enter URL...`,className:l(`flex-1 rounded-full bg-muted font-mono`),spellCheck:!1}),P&&(0,E.jsx)(M,{onClick:te,label:`Refresh page`,children:(0,E.jsx)(r,{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)(g,{size:15})}),(0,E.jsx)(M,{onClick:()=>Y(`tablet`),label:`Tablet view`,isActive:R===`tablet`,children:(0,E.jsx)(c,{size:15})}),(0,E.jsx)(M,{onClick:()=>Y(`mobile`),label:`Mobile view`,isActive:R===`mobile`,children:(0,E.jsx)(i,{size:15})})]}),P&&(0,E.jsx)(M,{onClick:()=>void f(P),label:`Open in external browser`,children:(0,E.jsx)(d,{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:h&&_?.runCommand?(0,E.jsx)(y,{projectId:h,runCommand:_.runCommand,large:!0}):(0,E.jsx)(`p`,{className:t.body,children:`Enter a URL to browse`})})]})})}export{N as BrowserTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$i as e,$r as t,Fa as n,Fr as r,Ir as i,Kr as a,Lr as o,Pr as s,Qr as c,Yr as l,Zr as u,ei as d,ji as f,ls as p,po as m,ti as h,us as g}from"./dialogs-config-COzptu1b.js";import{a as _}from"./onboarding-pVfMmu_a.js";import{I as v}from"./index-BMgOr4si.js";var y=g(),b=p();function x(p){let g=(0,y.c)(47),{open:x,onOpenChange:S,commitMessage:C,onCommitMessageChange:w,autoGenerateCommitMessage:T,onAutoGenerateChange:E,isGeneratingMessage:D,isLoading:O,onGenerateMessage:k,onCommit:A,currentBranch:j}=p,M;g[0]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,b.jsx)(h,{children:`Commit Changes`}),g[0]=M):M=g[0];let N;g[1]===j?N=g[2]:(N=(0,b.jsxs)(d,{children:[M,(0,b.jsxs)(c,{children:[`Enter a commit message for your changes on branch `,j]})]}),g[1]=j,g[2]=N);let P;g[3]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(a,{htmlFor:`commit-message`,children:`Commit Message`}),g[3]=P):P=g[3];let F;g[4]===w?F=g[5]:(F=e=>w(e.target.value),g[4]=w,g[5]=F);let I;g[6]!==C||g[7]!==F?(I=(0,b.jsx)(v,{id:`commit-message`,placeholder:`Enter commit message...`,value:C,onChange:F,className:`pr-10 h-full min-h-[14rem] resize-none`}),g[6]=C,g[7]=F,g[8]=I):I=g[8];let L=D||O,R;g[9]===D?R=g[10]:(R=D?(0,b.jsx)(m,{className:`h-3.5 w-3.5 animate-spin`}):(0,b.jsx)(n,{className:`h-3.5 w-3.5`}),g[9]=D,g[10]=R);let z;g[11]!==k||g[12]!==L||g[13]!==R?(z=(0,b.jsx)(o,{asChild:!0,children:(0,b.jsx)(f,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute top-2 right-2 h-6 w-6`,onClick:k,disabled:L,children:R})}),g[11]=k,g[12]=L,g[13]=R,g[14]=z):z=g[14];let B=D?`Generating commit message...`:`Generate commit message with AI`,V;g[15]===B?V=g[16]:(V=(0,b.jsx)(r,{children:B}),g[15]=B,g[16]=V);let H;g[17]!==V||g[18]!==z?(H=(0,b.jsx)(i,{children:(0,b.jsxs)(s,{children:[z,V]})}),g[17]=V,g[18]=z,g[19]=H):H=g[19];let U;g[20]!==H||g[21]!==I?(U=(0,b.jsx)(`div`,{className:`grid gap-4 py-4 flex-1 min-h-0`,children:(0,b.jsxs)(`div`,{className:`grid gap-2 flex-1 min-h-0`,children:[P,(0,b.jsxs)(`div`,{className:`relative flex-1 min-h-0`,children:[I,H]})]})}),g[20]=H,g[21]=I,g[22]=U):U=g[22];let W;g[23]===E?W=g[24]:(W=e=>E(e===!0),g[23]=E,g[24]=W);let G;g[25]!==T||g[26]!==W?(G=(0,b.jsx)(_,{id:`auto-generate`,checked:T,onCheckedChange:W}),g[25]=T,g[26]=W,g[27]=G):G=g[27];let K;g[28]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,b.jsx)(a,{htmlFor:`auto-generate`,className:e.labelNormal,children:`Auto generate commit messages`}),g[28]=K):K=g[28];let q;g[29]===G?q=g[30]:(q=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[G,K]}),g[29]=G,g[30]=q);let J;g[31]!==C||g[32]!==O?(J=O||!C.trim(),g[31]=C,g[32]=O,g[33]=J):J=g[33];let Y=O?`Committing...`:`Commit`,X;g[34]!==A||g[35]!==J||g[36]!==Y?(X=(0,b.jsx)(t,{children:(0,b.jsx)(f,{onClick:A,disabled:J,children:Y})}),g[34]=A,g[35]=J,g[36]=Y,g[37]=X):X=g[37];let Z;g[38]!==U||g[39]!==q||g[40]!==X||g[41]!==N?(Z=(0,b.jsxs)(u,{className:`flex max-w-2xl flex-col max-md:top-[max(1rem,env(safe-area-inset-top,0px))] max-md:max-h-[calc(100dvh-2rem)] max-md:translate-y-0 max-md:overflow-y-auto max-md:data-[state=closed]:slide-out-to-top max-md:data-[state=open]:slide-in-from-top max-md:data-[state=closed]:slide-out-to-left-0 max-md:data-[state=open]:slide-in-from-left-0 max-md:data-[state=closed]:zoom-out-100 max-md:data-[state=open]:zoom-in-100 md:h-[min(36rem,85dvh)]`,children:[N,U,q,X]}),g[38]=U,g[39]=q,g[40]=X,g[41]=N,g[42]=Z):Z=g[42];let Q;return g[43]!==S||g[44]!==x||g[45]!==Z?(Q=(0,b.jsx)(l,{open:x,onOpenChange:S,children:Z}),g[43]=S,g[44]=x,g[45]=Z,g[46]=Q):Q=g[46],Q}export{x 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{$i as t,Go as n,Ni as r,Zo as i,es as a,fs as o,ls as s,us as c}from"./dialogs-config-COzptu1b.js";import{A as l,C as u,D as d,E as f,O as p,S as m,T as h,b as g,j as _,k as v,w as y,x as b}from"./react-vendor-CEpXTE2b.js";var x=c(),S=e(o(),1),C=s(),w=d,T=_,E=S.forwardRef((e,n)=>{let a=(0,x.c)(14),o,s,c,u;a[0]===e?(o=a[1],s=a[2],c=a[3],u=a[4]):({className:s,inset:c,children:o,...u}=e,a[0]=e,a[1]=o,a[2]=s,a[3]=c,a[4]=u);let d;a[5]!==s||a[6]!==c?(d=r(r(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`,s),a[5]=s,a[6]=c,a[7]=d):d=a[7];let f;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(i,{className:`ml-auto h-4 w-4`}),a[8]=f):f=a[8];let p;return a[9]!==o||a[10]!==u||a[11]!==n||a[12]!==d?(p=(0,C.jsxs)(l,{ref:n,className:d,...u,children:[o,f]}),a[9]=o,a[10]=u,a[11]=n,a[12]=d,a[13]=p):p=a[13],p});E.displayName=l.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)(v,{ref:t,className:o,...a}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});D.displayName=v.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)(h,{children:(0,C.jsx)(b,{ref:t,className:o,...a})}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});O.displayName=b.displayName;var k=S.forwardRef((e,n)=>{let i=(0,x.c)(11),a,o,s;i[0]===e?(a=i[1],o=i[2],s=i[3]):({className:a,inset:o,...s}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s);let c;i[4]!==a||i[5]!==o?(c=r(r(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`,a),i[4]=a,i[5]=o,i[6]=c):c=i[6];let l;return i[7]!==s||i[8]!==n||i[9]!==c?(l=(0,C.jsx)(m,{ref:n,className:c,...s}),i[7]=s,i[8]=n,i[9]=c,i[10]=l):l=i[10],l});k.displayName=m.displayName;var A=S.forwardRef((e,n)=>{let i=(0,x.c)(14),o,s,c,l;i[0]===e?(o=i[1],s=i[2],c=i[3],l=i[4]):({className:c,children:s,checked:o,...l}=e,i[0]=e,i[1]=o,i[2]=s,i[3]=c,i[4]=l);let d;i[5]===c?d=i[6]:(d=r(r(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`),c),i[5]=c,i[6]=d);let f;i[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,C.jsx)(u,{children:(0,C.jsx)(a,{className:`h-4 w-4`})})}),i[7]=f):f=i[7];let p;return i[8]!==o||i[9]!==s||i[10]!==l||i[11]!==n||i[12]!==d?(p=(0,C.jsxs)(g,{ref:n,className:d,checked:o,...l,children:[f,s]}),i[8]=o,i[9]=s,i[10]=l,i[11]=n,i[12]=d,i[13]=p):p=i[13],p});A.displayName=g.displayName;var j=S.forwardRef((e,i)=>{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(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),a[4]=s,a[5]=l);let d;a[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)(u,{children:(0,C.jsx)(n,{className:`h-2 w-2 fill-current`})})}),a[6]=d):d=a[6];let p;return a[7]!==o||a[8]!==c||a[9]!==i||a[10]!==l?(p=(0,C.jsxs)(f,{ref:i,className:l,...c,children:[d,o]}),a[7]=o,a[8]=c,a[9]=i,a[10]=l,a[11]=p):p=a[11],p});j.displayName=f.displayName;var M=S.forwardRef((e,n)=>{let i=(0,x.c)(11),a,o,s;i[0]===e?(a=i[1],o=i[2],s=i[3]):({className:a,inset:o,...s}=e,i[0]=e,i[1]=a,i[2]=o,i[3]=s);let c;i[4]!==a||i[5]!==o?(c=r(r(t.body,`px-2 py-1.5 font-semibold text-foreground`),o&&`pl-8`,a),i[4]=a,i[5]=o,i[6]=c):c=i[6];let l;return i[7]!==s||i[8]!==n||i[9]!==c?(l=(0,C.jsx)(y,{ref:n,className:c,...s}),i[7]=s,i[8]=n,i[9]=c,i[10]=l):l=i[10],l});M.displayName=y.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)(p,{ref:t,className:o,...a}),n[5]=a,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});N.displayName=p.displayName;var P=e=>{let n=(0,x.c)(8),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(t.compact,`ml-auto tracking-widest text-muted-foreground`,i),n[3]=i,n[4]=o);let s;return n[5]!==a||n[6]!==o?(s=(0,C.jsx)(`span`,{className:o,...a}),n[5]=a,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};
|
package/dist/public/assets/{create-repo-dialog-BlvNaVRv.js → create-repo-dialog-D6cKAxMh.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$
|
|
1
|
+
import{$i as e,$r as t,Jr as n,Kr as r,Qr as i,Yr as a,Zr as o,ei as s,ji as c,ls as l,ti as u,us as d}from"./dialogs-config-COzptu1b.js";import{a as f}from"./onboarding-pVfMmu_a.js";import{I as p}from"./index-BMgOr4si.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)(s,{children:[(0,h.jsx)(u,{children:`Create GitHub Repository`}),(0,h.jsx)(i,{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)(r,{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)(n,{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)(r,{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)(r,{htmlFor:`repo-private`,className:e.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)(c,{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)(c,{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)(t,{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)(a,{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};
|