tarsk 0.5.34 → 0.5.35

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.
Files changed (82) hide show
  1. package/README.md +2 -0
  2. package/dist/index.js +1283 -789
  3. package/dist/public/assets/account-view-k5jIArY-.js +1 -0
  4. package/dist/public/assets/api-OCjPhv01.js +1 -0
  5. package/dist/public/assets/browser-tab-C9kJT-C5.js +1 -0
  6. package/dist/public/assets/commit-dialog-8Ce6d3H8.js +1 -0
  7. package/dist/public/assets/context-menu-CMsWrzLD.js +1 -0
  8. package/dist/public/assets/create-repo-dialog-CVUtteNS.js +1 -0
  9. package/dist/public/assets/{dialogs-config-Ct6i8Iij.js → dialogs-config-B4TDFSrS.js} +14 -14
  10. package/dist/public/assets/diff-view-DGfmGlB_.js +3 -0
  11. package/dist/public/assets/explorer-tab-view-CCXVTkVu.js +2 -0
  12. package/dist/public/assets/explorer-tree-uXbr6cCI.js +1 -0
  13. package/dist/public/assets/explorer-view-CupxzDId.js +1 -0
  14. package/dist/public/assets/git-history-dialog-BCGOZ6ua.js +1 -0
  15. package/dist/public/assets/git-ops-button-BV9X3fo-.js +2 -0
  16. package/dist/public/assets/history-view-Ds_0e_bx.js +7 -0
  17. package/dist/public/assets/index-C0lTt0ZK.css +1 -0
  18. package/dist/public/assets/index-DOsSr4dl.js +65 -0
  19. package/dist/public/assets/mcp-server-card-DrUUKNXv.js +1 -0
  20. package/dist/public/assets/merged-pr-dialog-DqWSFdCH.js +1 -0
  21. package/dist/public/assets/onboarding-DfL8a0LZ.js +1 -0
  22. package/dist/public/assets/project-settings-view-Cd_l3Lfy.js +1 -0
  23. package/dist/public/assets/providers-list-view-VXhgM3vp.js +1 -0
  24. package/dist/public/assets/pull-request-dialog-DZXTHHuh.js +1 -0
  25. package/dist/public/assets/pull-with-changes-dialog-CYQrwzcw.js +1 -0
  26. package/dist/public/assets/push-before-pr-dialog-D-ZnRpJi.js +1 -0
  27. package/dist/public/assets/radio-group-c0sU992r.js +1 -0
  28. package/dist/public/assets/react-vendor-unlDVFpU.js +16 -0
  29. package/dist/public/assets/settings-general-view-DI-lvP0L.js +1 -0
  30. package/dist/public/assets/settings-instructions-view-kUG32_dT.js +1 -0
  31. package/dist/public/assets/settings-list-CUbZrggr.js +1 -0
  32. package/dist/public/assets/settings-mcp-servers-view-DmxUO42I.js +5 -0
  33. package/dist/public/assets/{settings-models-skeleton-CN2JkqZh.js → settings-models-skeleton-B_56ozbA.js} +1 -1
  34. package/dist/public/assets/settings-models-view-ms828HDa.js +1 -0
  35. package/dist/public/assets/settings-rules-view-Xx0ymfnQ.js +8 -0
  36. package/dist/public/assets/settings-skills-view-DvPPdsi_.js +2 -0
  37. package/dist/public/assets/settings-slash-commands-view-BULIAW2o.js +1 -0
  38. package/dist/public/assets/settings-subagents-view-B7FcLaZT.js +2 -0
  39. package/dist/public/assets/{settings-system-prompt-view-BNM_15ry.js → settings-system-prompt-view-66zf0gRc.js} +1 -1
  40. package/dist/public/assets/settings-view-B4CMq7it.js +2 -0
  41. package/dist/public/assets/skeleton-BvSNJL9q.js +1 -0
  42. package/dist/public/assets/{terminal-panel-Ds1tCgQA.js → terminal-panel-Bm5ECpK_.js} +2 -2
  43. package/dist/public/assets/{ui-components-Di-9yNr4.js → ui-components-BZYnvMGc.js} +1 -1
  44. package/dist/public/assets/{utils-DDDR42pW.js → utils-umVhs9to.js} +1 -1
  45. package/dist/public/index.html +7 -7
  46. package/package.json +1 -1
  47. package/dist/public/assets/account-view-Ds03urJE.js +0 -1
  48. package/dist/public/assets/api-BHfaVqlR.js +0 -1
  49. package/dist/public/assets/browser-tab-Qs8cnQkf.js +0 -1
  50. package/dist/public/assets/commit-dialog-D4suPxEe.js +0 -1
  51. package/dist/public/assets/context-menu-S8y0c1Fx.js +0 -1
  52. package/dist/public/assets/create-repo-dialog-DPKIg1mY.js +0 -1
  53. package/dist/public/assets/diff-view-rKDEnBLg.js +0 -3
  54. package/dist/public/assets/explorer-tab-view-JbLbPVAn.js +0 -2
  55. package/dist/public/assets/explorer-tree-Dq44yA1j.js +0 -1
  56. package/dist/public/assets/explorer-view-BMrlX2hb.js +0 -1
  57. package/dist/public/assets/git-history-dialog-CDwIqSZQ.js +0 -1
  58. package/dist/public/assets/git-ops-button-B6rEla5u.js +0 -2
  59. package/dist/public/assets/history-view-CFot099O.js +0 -7
  60. package/dist/public/assets/index-6DhhjIBL.js +0 -65
  61. package/dist/public/assets/index-sEZ3wJXu.css +0 -1
  62. package/dist/public/assets/mcp-server-card-DQY1RUPX.js +0 -1
  63. package/dist/public/assets/merged-pr-dialog-H_fuSmiF.js +0 -1
  64. package/dist/public/assets/onboarding-DHCR18iU.js +0 -1
  65. package/dist/public/assets/project-settings-view-CiefnK73.js +0 -1
  66. package/dist/public/assets/providers-list-view-DVopskGo.js +0 -1
  67. package/dist/public/assets/pull-request-dialog-Csql6eob.js +0 -1
  68. package/dist/public/assets/pull-with-changes-dialog-DN0kE6os.js +0 -1
  69. package/dist/public/assets/push-before-pr-dialog-IhdlLvWt.js +0 -1
  70. package/dist/public/assets/radio-group-BaKkAEZR.js +0 -1
  71. package/dist/public/assets/react-vendor-CjZZeCRj.js +0 -16
  72. package/dist/public/assets/settings-general-view-BMTxN35t.js +0 -1
  73. package/dist/public/assets/settings-instructions-view-DULFg6dU.js +0 -1
  74. package/dist/public/assets/settings-list-Bdeuh4bJ.js +0 -1
  75. package/dist/public/assets/settings-mcp-servers-view-CRCtWjP2.js +0 -5
  76. package/dist/public/assets/settings-models-view-DosllhVB.js +0 -1
  77. package/dist/public/assets/settings-rules-view-BVWuGrnB.js +0 -8
  78. package/dist/public/assets/settings-skills-view-DYtcAu9-.js +0 -2
  79. package/dist/public/assets/settings-slash-commands-view-DFyL1W2n.js +0 -1
  80. package/dist/public/assets/settings-subagents-view-aCbK95Sk.js +0 -2
  81. package/dist/public/assets/settings-view-D5GE_CYR.js +0 -2
  82. package/dist/public/assets/skeleton-pSKdmWyJ.js +0 -1
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Gt as t,K as n,Ti as r,Wa as i,ga as a,ii as o,mo as s,ni as c,ro as l,vi as u}from"./dialogs-config-B4TDFSrS.js";import{C as d,D as f,S as p,v as m}from"./history-view-Ds_0e_bx.js";import{E as h}from"./index-DOsSr4dl.js";import{t as g}from"./skeleton-BvSNJL9q.js";var _=e(s(),1),v=r();function y(){let[e,r]=(0,_.useState)(null),[s,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{r(await n())}catch(e){h({title:`Error`,description:e instanceof Error?e.message:`Failed to load account info`,variant:`destructive`})}finally{y(!1)}}function x(){t(`https://buy.stripe.com/14AcN6feK0Jjbheb2H3Nm03?client_reference_id=${e?.clientReferenceId??``}`)}function S(){t(`https://buy.stripe.com/9B67sMd6CgIh70Y0o33Nm04?client_reference_id=${e?.clientReferenceId??``}`)}if(s)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:o(u.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(a,{className:`h-4 w-4`}),`Balance`]}),(0,v.jsx)(`div`,{className:`flex items-end gap-2`,children:C?(0,v.jsx)(`span`,{className:u.stat,children:`Unlimited`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`span`,{className:u.stat,children:e?.promptsRemaining.toLocaleString()??0}),(0,v.jsx)(`span`,{className:`${u.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:o(u.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(i,{className:`h-4 w-4`}),`Current Plan`]}),(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`span`,{className:u.label,children:C?`Unlimited Pro`:`Pay as you go`}),C&&(0,v.jsx)(`span`,{className:o(u.compact,`rounded-full bg-primary/10 px-2 py-0.5 font-medium text-primary`),children:`Active`})]}),(0,v.jsx)(`p`,{className:u.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:u.label,children:`1,000 Prompts`})}),(0,v.jsx)(`p`,{className:u.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)(i,{className:`h-4 w-4 text-primary`}),(0,v.jsx)(`span`,{className:u.label,children:`Unlimited Pro Plan`})]}),(0,v.jsx)(`p`,{className:u.bodyMuted,children:`Unlimited prompts for $100 and lifetime access to Tarsk.`}),(0,v.jsxs)(`ul`,{className:o(u.bodyMuted,`space-y-0.5`),children:[(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(l,{className:`h-3 w-3 text-primary`}),`Unlimited prompts`]}),(0,v.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(l,{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{An as e,Fn as t,Mn as n,Nn as r,On as i,Pn as a,kn as o}from"./dialogs-config-B4TDFSrS.js";async function s(t,n,r=!1){return e(`api/threads/${o(t)}/explorer?path=${encodeURIComponent(n)}&recursive=${r}`)}async function c(t,n){return e(`api/threads/${o(t)}/ai-file?path=${encodeURIComponent(n)}`)}async function l(e,n,r){return t(`api/threads/${o(e)}/ai-file`,{path:n,content:r})}async function u(e,t){return i(`api/threads/${o(e)}/explorer?path=${encodeURIComponent(t)}`)}async function d(e,t,n){return r(`api/threads/${o(e)}/explorer`,{path:t,newName:n})}async function f(e,t,n){return a(`api/threads/${o(e)}/explorer/file`,{dirPath:t,name:n})}async function p(e,t){return n(`api/threads/${o(e)}/explorer/media?path=${encodeURIComponent(t)}`)}async function m(e,t,n){return a(`api/threads/${o(e)}/explorer/folder`,{dirPath:t,name:n})}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{Bi as t,En as n,Gi as r,Gt as i,Ti as a,Va as o,ar as s,br as c,ea as l,fa as u,fo as d,ii as f,ir as p,mo as m,or as h,rr as g,vi as _}from"./dialogs-config-B4TDFSrS.js";import{C as v,f as y,j as b}from"./index-DOsSr4dl.js";var x=d(),S=e(m(),1),C=a();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)(p,{children:r}),t[4]=r,t[5]=c);let l;return t[6]!==s||t[7]!==c?(l=(0,C.jsxs)(g,{children:[s,c]}),t[6]=s,t[7]=c,t[8]=l):l=t[8],l}function D(){let{activeMainTab:e,devServerUrl:a,browserResetTrigger:d}=v(),p=b(e=>e.selectedProjectId),m=b(e=>e.projects).find(e=>e.projectId===p),[h,g]=(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=n(),L=e===`browser`;N.current=O,(0,S.useEffect)(()=>{D(``),k(``),g(``);let e=M.current;e&&(e.src=``),P.current&&(P.current.src=``)},[d]),(0,S.useEffect)(()=>{if(!a)return;let e=w(a);g(e),D(e),k(e)},[a]);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(``),g(t))}function n(e){let t=typeof e.detail==`string`?e.detail:x;t&&(D(t),g(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&&(g(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)(s,{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)(c,{type:`text`,value:h,onChange:e=>g(e.target.value),onKeyDown:B,placeholder:`Enter URL...`,className:f(`flex-1 rounded-full bg-muted font-mono`),spellCheck:!1}),x&&(0,C.jsx)(E,{onClick:V,label:`Refresh page`,children:(0,C.jsx)(l,{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)(u,{size:15})}),(0,C.jsx)(E,{onClick:()=>j(`tablet`),label:`Tablet view`,isActive:A===`tablet`,children:(0,C.jsx)(t,{size:15})}),(0,C.jsx)(E,{onClick:()=>j(`mobile`),label:`Mobile view`,isActive:A===`mobile`,children:(0,C.jsx)(r,{size:15})})]}),x&&(0,C.jsx)(E,{onClick:()=>void i(x),label:`Open in external browser`,children:(0,C.jsx)(o,{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:p&&m?.runCommand?(0,C.jsx)(y,{projectId:p,runCommand:m.runCommand,large:!0}):(0,C.jsx)(`p`,{className:_.body,children:`Enter a URL to browse`})})]})})}export{D as BrowserTab};
@@ -0,0 +1 @@
1
+ import{Cr as e,Er as ee,Sr as t,Ti as n,Tr as r,Wi as i,ar as a,fo as o,ir as s,ni as c,or as l,rr as u,vi as d,vr as f,wr as p,xr as m,ya as te}from"./dialogs-config-B4TDFSrS.js";import{n as ne}from"./onboarding-DfL8a0LZ.js";import{O as h}from"./index-DOsSr4dl.js";var g=o(),_=n();function v(n){let o=(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}=n,k;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(ee,{children:`Commit Changes`}),o[0]=k):k=o[0];let A;o[1]===O?A=o[2]:(A=(0,_.jsxs)(r,{children:[k,(0,_.jsxs)(e,{children:[`Enter a commit message for your changes on branch `,O]})]}),o[1]=O,o[2]=A);let j;o[3]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(f,{htmlFor:`commit-message`,children:`Commit Message`}),o[3]=j):j=o[3];let M;o[4]===x?M=o[5]:(M=e=>x(e.target.value),o[4]=x,o[5]=M);let N;o[6]!==b||o[7]!==M?(N=(0,_.jsx)(h,{id:`commit-message`,placeholder:`Enter commit message...`,value:b,onChange:M,rows:4,className:`pr-10`}),o[6]=b,o[7]=M,o[8]=N):N=o[8];let P=w||T,F;o[9]===w?F=o[10]:(F=w?(0,_.jsx)(te,{className:`h-3.5 w-3.5 animate-spin`}):(0,_.jsx)(i,{className:`h-3.5 w-3.5`}),o[9]=w,o[10]=F);let I;o[11]!==E||o[12]!==P||o[13]!==F?(I=(0,_.jsx)(l,{asChild:!0,children:(0,_.jsx)(c,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute top-2 right-2 h-6 w-6`,onClick:E,disabled:P,children:F})}),o[11]=E,o[12]=P,o[13]=F,o[14]=I):I=o[14];let L=w?`Generating commit message...`:`Generate commit message with AI`,R;o[15]===L?R=o[16]:(R=(0,_.jsx)(s,{children:L}),o[15]=L,o[16]=R);let z;o[17]!==R||o[18]!==I?(z=(0,_.jsx)(a,{children:(0,_.jsxs)(u,{children:[I,R]})}),o[17]=R,o[18]=I,o[19]=z):z=o[19];let B;o[20]!==z||o[21]!==N?(B=(0,_.jsxs)(`div`,{className:`grid gap-2`,children:[j,(0,_.jsxs)(`div`,{className:`relative`,children:[N,z]})]}),o[20]=z,o[21]=N,o[22]=B):B=o[22];let V;o[23]===C?V=o[24]:(V=e=>C(e===!0),o[23]=C,o[24]=V);let H;o[25]!==S||o[26]!==V?(H=(0,_.jsx)(ne,{id:`auto-generate`,checked:S,onCheckedChange:V}),o[25]=S,o[26]=V,o[27]=H):H=o[27];let U;o[28]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(f,{htmlFor:`auto-generate`,className:d.labelNormal,children:`Auto generate commit messages`}),o[28]=U):U=o[28];let W;o[29]===H?W=o[30]:(W=(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[H,U]}),o[29]=H,o[30]=W);let G;o[31]!==B||o[32]!==W?(G=(0,_.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[B,W]}),o[31]=B,o[32]=W,o[33]=G):G=o[33];let K;o[34]===y?K=o[35]:(K=()=>y(!1),o[34]=y,o[35]=K);let q;o[36]!==T||o[37]!==K?(q=(0,_.jsx)(c,{variant:`outline`,onClick:K,disabled:T,children:`Cancel`}),o[36]=T,o[37]=K,o[38]=q):q=o[38];let J;o[39]!==b||o[40]!==T?(J=T||!b.trim(),o[39]=b,o[40]=T,o[41]=J):J=o[41];let Y=T?`Committing...`:`Commit`,X;o[42]!==D||o[43]!==J||o[44]!==Y?(X=(0,_.jsx)(c,{onClick:D,disabled:J,children:Y}),o[42]=D,o[43]=J,o[44]=Y,o[45]=X):X=o[45];let Z;o[46]!==q||o[47]!==X?(Z=(0,_.jsxs)(p,{children:[q,X]}),o[46]=q,o[47]=X,o[48]=Z):Z=o[48];let Q;o[49]!==G||o[50]!==A||o[51]!==Z?(Q=(0,_.jsxs)(t,{children:[A,G,Z]}),o[49]=G,o[50]=A,o[51]=Z,o[52]=Q):Q=o[52];let $;return o[53]!==y||o[54]!==v||o[55]!==Q?($=(0,_.jsx)(m,{open:v,onOpenChange:y,children:Q}),o[53]=y,o[54]=v,o[55]=Q,o[56]=$):$=o[56],$}export{v as CommitDialog};
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Ti as t,Ya as n,eo as r,fo as i,ii as a,mo as o,ro as s,vi as c}from"./dialogs-config-B4TDFSrS.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-unlDVFpU.js";var x=i(),S=e(o(),1),C=t(),w=l,T=y,E=S.forwardRef((e,t)=>{let n=(0,x.c)(14),i,o,s,l;n[0]===e?(i=n[1],o=n[2],s=n[3],l=n[4]):({className:o,inset:s,children:i,...l}=e,n[0]=e,n[1]=i,n[2]=o,n[3]=s,n[4]=l);let d;n[5]!==o||n[6]!==s?(d=a(a(c.body,`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`),s&&`pl-8`,o),n[5]=o,n[6]=s,n[7]=d):d=n[7];let f;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(r,{className:`ml-auto h-4 w-4`}),n[8]=f):f=n[8];let p;return n[9]!==i||n[10]!==l||n[11]!==t||n[12]!==d?(p=(0,C.jsxs)(u,{ref:t,className:d,...l,children:[i,f]}),n[9]=i,n[10]=l,n[11]=t,n[12]=d,n[13]=p):p=n[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 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)(b,{ref:t,className:o,...i}),n[5]=i,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});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 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)(d,{ref:t,className:o,...i})}),n[5]=i,n[6]=t,n[7]=o,n[8]=s):s=n[8],s});O.displayName=d.displayName;var k=S.forwardRef((e,t)=>{let n=(0,x.c)(11),r,i,o;n[0]===e?(r=n[1],i=n[2],o=n[3]):({className:r,inset:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o);let s;n[4]!==r||n[5]!==i?(s=a(a(c.body,`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`),i&&`pl-8`,r),n[4]=r,n[5]=i,n[6]=s):s=n[6];let l;return n[7]!==o||n[8]!==t||n[9]!==s?(l=(0,C.jsx)(f,{ref:t,className:s,...o}),n[7]=o,n[8]=t,n[9]=s,n[10]=l):l=n[10],l});k.displayName=f.displayName;var A=S.forwardRef((e,t)=>{let n=(0,x.c)(14),r,i,o,l;n[0]===e?(r=n[1],i=n[2],o=n[3],l=n[4]):({className:o,children:i,checked:r,...l}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=l);let u;n[5]===o?u=n[6]:(u=a(a(c.body,`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`),o),n[5]=o,n[6]=u);let d;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,C.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,C.jsx)(g,{children:(0,C.jsx)(s,{className:`h-4 w-4`})})}),n[7]=d):d=n[7];let f;return n[8]!==r||n[9]!==i||n[10]!==l||n[11]!==t||n[12]!==u?(f=(0,C.jsxs)(_,{ref:t,className:u,checked:r,...l,children:[d,i]}),n[8]=r,n[9]=i,n[10]=l,n[11]=t,n[12]=u,n[13]=f):f=n[13],f});A.displayName=_.displayName;var j=S.forwardRef((e,t)=>{let r=(0,x.c)(12),i,o,s;r[0]===e?(i=r[1],o=r[2],s=r[3]):({className:o,children:i,...s}=e,r[0]=e,r[1]=i,r[2]=o,r[3]=s);let l;r[4]===o?l=r[5]:(l=a(a(c.body,`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`),o),r[4]=o,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)(n,{className:`h-2 w-2 fill-current`})})}),r[6]=u):u=r[6];let d;return r[7]!==i||r[8]!==s||r[9]!==t||r[10]!==l?(d=(0,C.jsxs)(p,{ref:t,className:l,...s,children:[u,i]}),r[7]=i,r[8]=s,r[9]=t,r[10]=l,r[11]=d):d=r[11],d});j.displayName=p.displayName;var M=S.forwardRef((e,t)=>{let n=(0,x.c)(11),r,i,o;n[0]===e?(r=n[1],i=n[2],o=n[3]):({className:r,inset:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o);let s;n[4]!==r||n[5]!==i?(s=a(a(c.body,`px-2 py-1.5 font-semibold text-foreground`),i&&`pl-8`,r),n[4]=r,n[5]=i,n[6]=s):s=n[6];let l;return n[7]!==o||n[8]!==t||n[9]!==s?(l=(0,C.jsx)(h,{ref:t,className:s,...o}),n[7]=o,n[8]=t,n[9]=s,n[10]=l):l=n[10],l});M.displayName=h.displayName;var N=S.forwardRef((e,t)=>{let n=(0,x.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let 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)(v,{ref:t,className:o,...i}),n[5]=i,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,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(c.compact,`ml-auto tracking-widest text-muted-foreground`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,C.jsx)(`span`,{className:i,...r}),t[5]=r,t[6]=i,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{Cr as e,Er as t,Sr as n,Ti as r,Tr as i,br as a,fo as o,ni as s,vi as c,vr as l,wr as u,xr as d}from"./dialogs-config-B4TDFSrS.js";import{n as f}from"./onboarding-DfL8a0LZ.js";import{O as p}from"./index-DOsSr4dl.js";var m=o(),h=r();function g(r){let o=(0,m.c)(48),{open:g,onOpenChange:_,repoName:v,onRepoNameChange:y,repoDescription:b,onRepoDescriptionChange:x,isPrivateRepo:S,onPrivateRepoChange:C,isLoading:w,onCreateRepo:T}=r,E;o[0]!==_||o[1]!==x||o[2]!==y?(E=e=>{e||(y(``),x(``)),_(e)},o[0]=_,o[1]=x,o[2]=y,o[3]=E):E=o[3];let D;o[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,h.jsxs)(i,{children:[(0,h.jsx)(t,{children:`Create GitHub Repository`}),(0,h.jsx)(e,{children:`Create a new GitHub repository and push your local repository`})]}),o[4]=D):D=o[4];let O;o[5]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,h.jsx)(l,{htmlFor:`repo-name`,children:`Repository Name (optional)`}),o[5]=O):O=o[5];let k;o[6]===y?k=o[7]:(k=e=>y(e.target.value),o[6]=y,o[7]=k);let A;o[8]!==v||o[9]!==k?(A=(0,h.jsxs)(`div`,{className:`grid gap-2`,children:[O,(0,h.jsx)(a,{id:`repo-name`,placeholder:`Leave empty to use current folder name`,value:v,onChange:k})]}),o[8]=v,o[9]=k,o[10]=A):A=o[10];let j;o[11]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,h.jsx)(l,{htmlFor:`repo-description`,children:`Description (optional)`}),o[11]=j):j=o[11];let M;o[12]===x?M=o[13]:(M=e=>x(e.target.value),o[12]=x,o[13]=M);let N;o[14]!==b||o[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})]}),o[14]=b,o[15]=M,o[16]=N):N=o[16];let P;o[17]===C?P=o[18]:(P=e=>C(e===!0),o[17]=C,o[18]=P);let F;o[19]!==S||o[20]!==P?(F=(0,h.jsx)(f,{id:`repo-private`,checked:S,onCheckedChange:P}),o[19]=S,o[20]=P,o[21]=F):F=o[21];let I;o[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,h.jsx)(l,{htmlFor:`repo-private`,className:c.labelNormal,children:`Private repository`}),o[22]=I):I=o[22];let L;o[23]===F?L=o[24]:(L=(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[F,I]}),o[23]=F,o[24]=L);let R;o[25]!==L||o[26]!==A||o[27]!==N?(R=(0,h.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[A,N,L]}),o[25]=L,o[26]=A,o[27]=N,o[28]=R):R=o[28];let z;o[29]===_?z=o[30]:(z=()=>_(!1),o[29]=_,o[30]=z);let B;o[31]!==w||o[32]!==z?(B=(0,h.jsx)(s,{variant:`outline`,onClick:z,disabled:w,children:`Cancel`}),o[31]=w,o[32]=z,o[33]=B):B=o[33];let V=w?`Creating...`:`Create & Push`,H;o[34]!==w||o[35]!==T||o[36]!==V?(H=(0,h.jsx)(s,{onClick:T,disabled:w,children:V}),o[34]=w,o[35]=T,o[36]=V,o[37]=H):H=o[37];let U;o[38]!==B||o[39]!==H?(U=(0,h.jsxs)(u,{children:[B,H]}),o[38]=B,o[39]=H,o[40]=U):U=o[40];let W;o[41]!==R||o[42]!==U?(W=(0,h.jsxs)(n,{children:[D,R,U]}),o[41]=R,o[42]=U,o[43]=W):W=o[43];let G;return o[44]!==g||o[45]!==E||o[46]!==W?(G=(0,h.jsx)(d,{open:g,onOpenChange:E,children:W}),o[44]=g,o[45]=E,o[46]=W,o[47]=G):G=o[47],G}export{g as CreateRepoDialog};