tarsk 0.5.32 → 0.5.34

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 (109) hide show
  1. package/dist/index.js +17709 -13937
  2. package/dist/public/assets/account-view-Ds03urJE.js +1 -0
  3. package/dist/public/assets/api-BHfaVqlR.js +1 -0
  4. package/dist/public/assets/browser-tab-Qs8cnQkf.js +1 -0
  5. package/dist/public/assets/commit-dialog-D4suPxEe.js +1 -0
  6. package/dist/public/assets/context-menu-S8y0c1Fx.js +1 -0
  7. package/dist/public/assets/create-repo-dialog-DPKIg1mY.js +1 -0
  8. package/dist/public/assets/{css.worker-DyDu5ynT.js → css.worker-CvXBzhp8.js} +2 -2
  9. package/dist/public/assets/dialogs-config-Ct6i8Iij.js +51 -0
  10. package/dist/public/assets/diff-view-rKDEnBLg.js +3 -0
  11. package/dist/public/assets/{dist-2eORHB3M.js → dist-oojFghRi.js} +5 -5
  12. package/dist/public/assets/explorer-tab-view-JbLbPVAn.js +2 -0
  13. package/dist/public/assets/explorer-tree-Dq44yA1j.js +1 -0
  14. package/dist/public/assets/explorer-view-BMrlX2hb.js +1 -0
  15. package/dist/public/assets/git-history-dialog-CDwIqSZQ.js +1 -0
  16. package/dist/public/assets/git-ops-button-B6rEla5u.js +2 -0
  17. package/dist/public/assets/history-view-CFot099O.js +7 -0
  18. package/dist/public/assets/{html.worker-IWNXhnIC.js → html.worker-BO6WuOEO.js} +3 -3
  19. package/dist/public/assets/index-6DhhjIBL.js +65 -0
  20. package/dist/public/assets/index-sEZ3wJXu.css +1 -0
  21. package/dist/public/assets/{json.worker-c4h5s80L.js → json.worker-BkJRGcCJ.js} +2 -2
  22. package/dist/public/assets/mcp-server-card-DQY1RUPX.js +1 -0
  23. package/dist/public/assets/merged-pr-dialog-H_fuSmiF.js +1 -0
  24. package/dist/public/assets/{monaco-BGyhgQtx.js → monaco-CZnIWXyV.js} +198 -198
  25. package/dist/public/assets/onboarding-DHCR18iU.js +1 -0
  26. package/dist/public/assets/project-settings-view-CiefnK73.js +1 -0
  27. package/dist/public/assets/providers-list-view-DVopskGo.js +1 -0
  28. package/dist/public/assets/pull-request-dialog-Csql6eob.js +1 -0
  29. package/dist/public/assets/pull-with-changes-dialog-DN0kE6os.js +1 -0
  30. package/dist/public/assets/push-before-pr-dialog-IhdlLvWt.js +1 -0
  31. package/dist/public/assets/radio-group-BaKkAEZR.js +1 -0
  32. package/dist/public/assets/react-vendor-CjZZeCRj.js +16 -0
  33. package/dist/public/assets/rolldown-runtime-aKtaBQYM.js +1 -0
  34. package/dist/public/assets/settings-general-view-BMTxN35t.js +1 -0
  35. package/dist/public/assets/settings-instructions-view-DULFg6dU.js +1 -0
  36. package/dist/public/assets/settings-list-Bdeuh4bJ.js +1 -0
  37. package/dist/public/assets/settings-mcp-servers-view-CRCtWjP2.js +5 -0
  38. package/dist/public/assets/settings-models-skeleton-CN2JkqZh.js +1 -0
  39. package/dist/public/assets/settings-models-view-DosllhVB.js +1 -0
  40. package/dist/public/assets/settings-rules-view-BVWuGrnB.js +8 -0
  41. package/dist/public/assets/settings-skills-view-DYtcAu9-.js +2 -0
  42. package/dist/public/assets/settings-slash-commands-view-DFyL1W2n.js +1 -0
  43. package/dist/public/assets/settings-subagents-view-aCbK95Sk.js +2 -0
  44. package/dist/public/assets/settings-system-prompt-view-BNM_15ry.js +1 -0
  45. package/dist/public/assets/settings-view-D5GE_CYR.js +2 -0
  46. package/dist/public/assets/skeleton-pSKdmWyJ.js +1 -0
  47. package/dist/public/assets/terminal-panel-Ds1tCgQA.js +2 -0
  48. package/dist/public/assets/{ts.worker-BwM5Ha3L.js → ts.worker-B0J26iPs.js} +33 -18
  49. package/dist/public/assets/ui-components-Di-9yNr4.js +1 -0
  50. package/dist/public/assets/{utils-Dt4Hs5eF.js → utils-DDDR42pW.js} +1 -1
  51. package/dist/public/assets/{whisper-wasm-BCJQtWoU.js → whisper-wasm-Cq5Ofwpd.js} +1 -1
  52. package/dist/public/index.html +10 -24
  53. package/dist/recommended-models.txt +13 -0
  54. package/package.json +8 -7
  55. package/dist/public/assets/account-view-DjLjq8T6.js +0 -1
  56. package/dist/public/assets/alert-dialog-BWqb8ENe.js +0 -1
  57. package/dist/public/assets/api-BbUzw5rb.js +0 -1
  58. package/dist/public/assets/browser-tab-BVsBMyo3.js +0 -1
  59. package/dist/public/assets/chat-input-container-Dh5eJPNP.js +0 -22
  60. package/dist/public/assets/commit-dialog-CfjW1f6P.js +0 -1
  61. package/dist/public/assets/context-menu-D_gX85jr.js +0 -1
  62. package/dist/public/assets/conversation-history-view-CKiv8CxD.js +0 -1
  63. package/dist/public/assets/create-repo-dialog-ByvOv7em.js +0 -1
  64. package/dist/public/assets/dialogs-config-CV8HzCCA.js +0 -51
  65. package/dist/public/assets/diff-view-CuEdnFtI.js +0 -3
  66. package/dist/public/assets/explorer-tab-view-CiDUcvE2.js +0 -2
  67. package/dist/public/assets/explorer-tree-cxPx2HiW.js +0 -1
  68. package/dist/public/assets/explorer-view-BCQNEBOZ.js +0 -1
  69. package/dist/public/assets/git-history-dialog-DKey5IQa.js +0 -1
  70. package/dist/public/assets/history-view-DDpROJvQ.js +0 -1
  71. package/dist/public/assets/index-BZwvl9X4.js +0 -29
  72. package/dist/public/assets/index-CihB-pLh.css +0 -1
  73. package/dist/public/assets/markdown-renderer-B1teF28W.js +0 -10
  74. package/dist/public/assets/mcp-server-card-CY-VLPhS.js +0 -1
  75. package/dist/public/assets/merged-pr-dialog-BfwdsytN.js +0 -1
  76. package/dist/public/assets/onboarding-BEy4bi0g.js +0 -1
  77. package/dist/public/assets/onboarding-dialog-GjczsXqi.js +0 -1
  78. package/dist/public/assets/page-toolbar-rWocuukR.js +0 -1
  79. package/dist/public/assets/project-settings-view-wlaXVds9.js +0 -1
  80. package/dist/public/assets/providers-list-view-BJsp9sta.js +0 -1
  81. package/dist/public/assets/pull-request-dialog-DDxX2W8n.js +0 -1
  82. package/dist/public/assets/pull-with-changes-dialog-BtXHWQ3k.js +0 -1
  83. package/dist/public/assets/push-before-pr-dialog-Cs54Vb76.js +0 -1
  84. package/dist/public/assets/radio-group-D2kNbZM6.js +0 -1
  85. package/dist/public/assets/react-vendor-DV_DP0Qd.js +0 -22
  86. package/dist/public/assets/resizable-jxPFsLog.js +0 -1
  87. package/dist/public/assets/rolldown-runtime-B1FJdls4.js +0 -1
  88. package/dist/public/assets/run-stop-button-N1JNjOlD.js +0 -2
  89. package/dist/public/assets/settings-general-view-BKcgxF5z.js +0 -1
  90. package/dist/public/assets/settings-instructions-view-DbQ3c3f1.js +0 -1
  91. package/dist/public/assets/settings-mcp-servers-view-D2_Brac1.js +0 -5
  92. package/dist/public/assets/settings-models-skeleton-BSV1GmZQ.js +0 -1
  93. package/dist/public/assets/settings-models-view-BhFuBHAE.js +0 -1
  94. package/dist/public/assets/settings-rules-view-qL__Zcav.js +0 -8
  95. package/dist/public/assets/settings-skills-view-Ccj8tTR9.js +0 -2
  96. package/dist/public/assets/settings-slash-commands-view-DyXAbQIp.js +0 -1
  97. package/dist/public/assets/settings-subagents-view-LcaON0Dq.js +0 -2
  98. package/dist/public/assets/settings-view-cLrxaSw4.js +0 -2
  99. package/dist/public/assets/side-panel-container-CCaF3ZtX.js +0 -2
  100. package/dist/public/assets/skeleton-DNfHG6mv.js +0 -1
  101. package/dist/public/assets/standard-list-item-PWOXi212.js +0 -1
  102. package/dist/public/assets/store-9Wm6Zyve.js +0 -4
  103. package/dist/public/assets/tab-context-BdML89mQ.js +0 -1
  104. package/dist/public/assets/tabs-BVcV8raO.js +0 -1
  105. package/dist/public/assets/terminal-panel-BG8UFUSX.js +0 -2
  106. package/dist/public/assets/textarea-CU-XhvgE.js +0 -1
  107. package/dist/public/assets/todos-view-DLC_0wx_.js +0 -1
  108. package/dist/public/assets/use-font-size-Bqn2rvp_.js +0 -1
  109. package/dist/public/assets/use-toast-CGSBJJb0.js +0 -1
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Pa as t,Qr as n,Xr as r,dt as i,gi as a,io as o,li as s,ln as c,qa as l,sa as u}from"./dialogs-config-Ct6i8Iij.js";import{C as d,D as f,S as p,v as m}from"./history-view-CFot099O.js";import{T as h}from"./index-6DhhjIBL.js";import{t as g}from"./skeleton-pSKdmWyJ.js";var _=e(o(),1),v=a();function y(){let[e,a]=(0,_.useState)(null),[o,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{a(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(){c(`https://buy.stripe.com/14AcN6feK0Jjbheb2H3Nm03?client_reference_id=${e?.clientReferenceId??``}`)}function S(){c(`https://buy.stripe.com/9B67sMd6CgIh70Y0o33Nm04?client_reference_id=${e?.clientReferenceId??``}`)}if(o)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(s.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:s.stat,children:`Unlimited`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`span`,{className:s.stat,children:e?.promptsRemaining.toLocaleString()??0}),(0,v.jsx)(`span`,{className:`${s.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(s.label,`flex items-center gap-2 text-muted-foreground`),children:[(0,v.jsx)(t,{className:`h-4 w-4`}),`Current Plan`]}),(0,v.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,v.jsx)(`span`,{className:s.label,children:C?`Unlimited Pro`:`Pay as you go`}),C&&(0,v.jsx)(`span`,{className:n(s.compact,`rounded-full bg-primary/10 px-2 py-0.5 font-medium text-primary`),children:`Active`})]}),(0,v.jsx)(`p`,{className:s.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:s.label,children:`1,000 Prompts`})}),(0,v.jsx)(`p`,{className:s.bodyMuted,children:`Top up your balance with 1,000 additional prompts for $5.`})]}),(0,v.jsx)(r,{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)(t,{className:`h-4 w-4 text-primary`}),(0,v.jsx)(`span`,{className:s.label,children:`Unlimited Pro Plan`})]}),(0,v.jsx)(`p`,{className:s.bodyMuted,children:`Unlimited prompts for $100 and lifetime access to Tarsk.`}),(0,v.jsxs)(`ul`,{className:n(s.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)(r,{onClick:S,className:`shrink-0`,children:`Purchase`})]})]})]})]})})}export{y as default};
@@ -0,0 +1 @@
1
+ import{Gn as e,Jn as t,Kn as n,Wn as r,Xn as i,Yn as a,qn as o}from"./dialogs-config-Ct6i8Iij.js";async function s(t,r,i=!1){return n(`api/threads/${e(t)}/explorer?path=${encodeURIComponent(r)}&recursive=${i}`)}async function c(t,r){return n(`api/threads/${e(t)}/ai-file?path=${encodeURIComponent(r)}`)}async function l(t,n,r){return i(`api/threads/${e(t)}/ai-file`,{path:n,content:r})}async function u(t,n){return r(`api/threads/${e(t)}/explorer?path=${encodeURIComponent(n)}`)}async function d(n,r,i){return t(`api/threads/${e(n)}/explorer`,{path:r,newName:i})}async function f(t,n,r){return a(`api/threads/${e(t)}/explorer/file`,{dirPath:n,name:r})}function p(t,n){return`${o()}/api/threads/${e(t)}/explorer/media?path=${encodeURIComponent(n)}`}async function m(t,n,r){return a(`api/threads/${e(t)}/explorer/folder`,{dirPath:n,name:r})}export{p as a,l as c,c 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{$n as t,Gi as n,Ii as r,Qn as i,Qr as a,Zn as o,er as s,gi as c,io as l,ja as u,ji as d,li as f,ln as p,mr as m,no as h,ra as g}from"./dialogs-config-Ct6i8Iij.js";import{A as _,S as v,a as y}from"./index-6DhhjIBL.js";var b=e(l(),1),x=h();function S(){return typeof window<`u`&&`__electrobunWebviewId`in window}var C=c();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:a,isActive:c}=e,l=`p-1.5 rounded transition-colors ${c!==void 0&&c?`bg-background text-foreground shadow-sm`:`text-muted-foreground hover:text-foreground hover:bg-background/50`}`,u;t[0]!==a||t[1]!==n||t[2]!==l?(u=(0,C.jsx)(s,{asChild:!0,children:(0,C.jsx)(`button`,{type:`button`,onClick:n,className:l,children:a})}),t[0]=a,t[1]=n,t[2]=l,t[3]=u):u=t[3];let d;t[4]===r?d=t[5]:(d=(0,C.jsx)(i,{children:r}),t[4]=r,t[5]=d);let f;return t[6]!==u||t[7]!==d?(f=(0,C.jsxs)(o,{children:[u,d]}),t[6]=u,t[7]=d,t[8]=f):f=t[8],f}function D(){let{activeMainTab:e,devServerUrl:i,browserResetTrigger:o}=v(),s=_(e=>e.selectedProjectId),c=_(e=>e.projects).find(e=>e.projectId===s),[l,h]=(0,b.useState)(``),[x,D]=(0,b.useState)(``),[O,k]=(0,b.useState)(``),[A,j]=(0,b.useState)(`desktop`),M=(0,b.useRef)(null),N=(0,b.useRef)(O),P=(0,b.useRef)(null),F=(0,b.useRef)(null),I=S(),L=e===`browser`;N.current=O,(0,b.useEffect)(()=>{D(``),k(``),h(``);let e=M.current;e&&(e.src=``),P.current&&(P.current.src=``)},[o]),(0,b.useEffect)(()=>{if(!i)return;let e=w(i);h(e),D(e),k(e)},[i]);let R=(0,b.useCallback)(e=>{M.current=e,e&&T(e,N.current)},[]);(0,b.useEffect)(()=>{let e=M.current;if(!(!I||!e||!O))return T(e,O)},[O,I,x]),(0,b.useEffect)(()=>{let e=M.current;!I||!e||(e.toggleHidden(!L),L&&requestAnimationFrame(()=>{e.syncDimensions(!0)}))},[L,I,x]),(0,b.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,b.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(``),h(t))}function n(e){let t=typeof e.detail==`string`?e.detail:x;t&&(D(t),h(t))}function r(e){let t=e.detail,n=typeof t==`string`?t:typeof t==`object`&&t&&`url`in t?String(t.url):``;n&&p(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&&(h(t),D(t),k(t))}function B(e){e.key===`Enter`&&z(l)}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,b.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)(t,{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)(m,{type:`text`,value:l,onChange:e=>h(e.target.value),onKeyDown:B,placeholder:`Enter URL...`,className:a(`flex-1 rounded-full bg-muted font-mono`),spellCheck:!1}),x&&(0,C.jsx)(E,{onClick:V,label:`Refresh page`,children:(0,C.jsx)(n,{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)(g,{size:15})}),(0,C.jsx)(E,{onClick:()=>j(`tablet`),label:`Tablet view`,isActive:A===`tablet`,children:(0,C.jsx)(d,{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 p(x),label:`Open in external browser`,children:(0,C.jsx)(u,{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:s&&c?.runCommand?(0,C.jsx)(y,{projectId:s,runCommand:c.runCommand,large:!0}):(0,C.jsx)(`p`,{className:f.body,children:`Enter a URL to browse`})})]})})}export{D as BrowserTab};
@@ -0,0 +1 @@
1
+ import{$n as e,Fi as ee,Qn as t,Xr as n,Zn as r,_r as i,br as a,er as o,fr as s,gi as c,gr as l,hr as u,la as d,li as f,no as p,vr as m,yr as te}from"./dialogs-config-Ct6i8Iij.js";import{n as ne}from"./onboarding-DHCR18iU.js";import{D as h}from"./index-6DhhjIBL.js";var g=p(),_=c();function v(c){let p=(0,g.c)(57),{open:v,onOpenChange:y,commitMessage:b,onCommitMessageChange:x,autoGenerateCommitMessage:S,onAutoGenerateChange:C,isGeneratingMessage:w,isLoading:T,onGenerateMessage:E,onCommit:D,currentBranch:O}=c,k;p[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,_.jsx)(a,{children:`Commit Changes`}),p[0]=k):k=p[0];let A;p[1]===O?A=p[2]:(A=(0,_.jsxs)(te,{children:[k,(0,_.jsxs)(i,{children:[`Enter a commit message for your changes on branch `,O]})]}),p[1]=O,p[2]=A);let j;p[3]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,_.jsx)(s,{htmlFor:`commit-message`,children:`Commit Message`}),p[3]=j):j=p[3];let M;p[4]===x?M=p[5]:(M=e=>x(e.target.value),p[4]=x,p[5]=M);let N;p[6]!==b||p[7]!==M?(N=(0,_.jsx)(h,{id:`commit-message`,placeholder:`Enter commit message...`,value:b,onChange:M,rows:4,className:`pr-10`}),p[6]=b,p[7]=M,p[8]=N):N=p[8];let P=w||T,F;p[9]===w?F=p[10]:(F=w?(0,_.jsx)(d,{className:`h-3.5 w-3.5 animate-spin`}):(0,_.jsx)(ee,{className:`h-3.5 w-3.5`}),p[9]=w,p[10]=F);let I;p[11]!==E||p[12]!==P||p[13]!==F?(I=(0,_.jsx)(o,{asChild:!0,children:(0,_.jsx)(n,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute top-2 right-2 h-6 w-6`,onClick:E,disabled:P,children:F})}),p[11]=E,p[12]=P,p[13]=F,p[14]=I):I=p[14];let L=w?`Generating commit message...`:`Generate commit message with AI`,R;p[15]===L?R=p[16]:(R=(0,_.jsx)(t,{children:L}),p[15]=L,p[16]=R);let z;p[17]!==R||p[18]!==I?(z=(0,_.jsx)(e,{children:(0,_.jsxs)(r,{children:[I,R]})}),p[17]=R,p[18]=I,p[19]=z):z=p[19];let B;p[20]!==z||p[21]!==N?(B=(0,_.jsxs)(`div`,{className:`grid gap-2`,children:[j,(0,_.jsxs)(`div`,{className:`relative`,children:[N,z]})]}),p[20]=z,p[21]=N,p[22]=B):B=p[22];let V;p[23]===C?V=p[24]:(V=e=>C(e===!0),p[23]=C,p[24]=V);let H;p[25]!==S||p[26]!==V?(H=(0,_.jsx)(ne,{id:`auto-generate`,checked:S,onCheckedChange:V}),p[25]=S,p[26]=V,p[27]=H):H=p[27];let U;p[28]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,_.jsx)(s,{htmlFor:`auto-generate`,className:f.labelNormal,children:`Auto generate commit messages`}),p[28]=U):U=p[28];let W;p[29]===H?W=p[30]:(W=(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[H,U]}),p[29]=H,p[30]=W);let G;p[31]!==B||p[32]!==W?(G=(0,_.jsxs)(`div`,{className:`grid gap-4 py-4`,children:[B,W]}),p[31]=B,p[32]=W,p[33]=G):G=p[33];let K;p[34]===y?K=p[35]:(K=()=>y(!1),p[34]=y,p[35]=K);let q;p[36]!==T||p[37]!==K?(q=(0,_.jsx)(n,{variant:`outline`,onClick:K,disabled:T,children:`Cancel`}),p[36]=T,p[37]=K,p[38]=q):q=p[38];let J;p[39]!==b||p[40]!==T?(J=T||!b.trim(),p[39]=b,p[40]=T,p[41]=J):J=p[41];let Y=T?`Committing...`:`Commit`,X;p[42]!==D||p[43]!==J||p[44]!==Y?(X=(0,_.jsx)(n,{onClick:D,disabled:J,children:Y}),p[42]=D,p[43]=J,p[44]=Y,p[45]=X):X=p[45];let Z;p[46]!==q||p[47]!==X?(Z=(0,_.jsxs)(m,{children:[q,X]}),p[46]=q,p[47]=X,p[48]=Z):Z=p[48];let Q;p[49]!==G||p[50]!==A||p[51]!==Z?(Q=(0,_.jsxs)(l,{children:[A,G,Z]}),p[49]=G,p[50]=A,p[51]=Z,p[52]=Q):Q=p[52];let $;return p[53]!==y||p[54]!==v||p[55]!==Q?($=(0,_.jsx)(u,{open:v,onOpenChange:y,children:Q}),p[53]=y,p[54]=v,p[55]=Q,p[56]=$):$=p[56],$}export{v as CommitDialog};
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{Qr as t,Wa as n,gi as r,io as i,li as a,no as o,qa as s,za as c}from"./dialogs-config-Ct6i8Iij.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-CjZZeCRj.js";var x=o(),S=e(i(),1),C=r(),w=l,T=y,E=S.forwardRef((e,r)=>{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:s,inset:c,children:o,...l}=e,i[0]=e,i[1]=o,i[2]=s,i[3]=c,i[4]=l);let d;i[5]!==s||i[6]!==c?(d=t(t(a.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),i[5]=s,i[6]=c,i[7]=d):d=i[7];let f;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(n,{className:`ml-auto h-4 w-4`}),i[8]=f):f=i[8];let p;return i[9]!==o||i[10]!==l||i[11]!==r||i[12]!==d?(p=(0,C.jsxs)(u,{ref:r,className:d,...l,children:[o,f]}),i[9]=o,i[10]=l,i[11]=r,i[12]=d,i[13]=p):p=i[13],p});E.displayName=u.displayName;var D=S.forwardRef((e,n)=>{let r=(0,x.c)(9),i,a;r[0]===e?(i=r[1],a=r[2]):({className:i,...a}=e,r[0]=e,r[1]=i,r[2]=a);let o;r[3]===i?o=r[4]:(o=t(`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),r[3]=i,r[4]=o);let s;return r[5]!==a||r[6]!==n||r[7]!==o?(s=(0,C.jsx)(b,{ref:n,className:o,...a}),r[5]=a,r[6]=n,r[7]=o,r[8]=s):s=r[8],s});D.displayName=b.displayName;var O=S.forwardRef((e,n)=>{let r=(0,x.c)(9),i,a;r[0]===e?(i=r[1],a=r[2]):({className:i,...a}=e,r[0]=e,r[1]=i,r[2]=a);let o;r[3]===i?o=r[4]:(o=t(`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),r[3]=i,r[4]=o);let s;return r[5]!==a||r[6]!==n||r[7]!==o?(s=(0,C.jsx)(m,{children:(0,C.jsx)(d,{ref:n,className:o,...a})}),r[5]=a,r[6]=n,r[7]=o,r[8]=s):s=r[8],s});O.displayName=d.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=t(t(a.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)(f,{ref:n,className:c,...s}),r[7]=s,r[8]=n,r[9]=c,r[10]=l):l=r[10],l});k.displayName=f.displayName;var A=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: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=t(t(a.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)(s,{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]!==n||r[12]!==u?(f=(0,C.jsxs)(_,{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]=f):f=r[13],f});A.displayName=_.displayName;var j=S.forwardRef((e,n)=>{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=t(t(a.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)(c,{className:`h-2 w-2 fill-current`})})}),r[6]=u):u=r[6];let d;return r[7]!==i||r[8]!==s||r[9]!==n||r[10]!==l?(d=(0,C.jsxs)(p,{ref:n,className:l,...s,children:[u,i]}),r[7]=i,r[8]=s,r[9]=n,r[10]=l,r[11]=d):d=r[11],d});j.displayName=p.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=t(t(a.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,n)=>{let r=(0,x.c)(9),i,a;r[0]===e?(i=r[1],a=r[2]):({className:i,...a}=e,r[0]=e,r[1]=i,r[2]=a);let o;r[3]===i?o=r[4]:(o=t(`-mx-1 my-1 h-px bg-border`,i),r[3]=i,r[4]=o);let s;return r[5]!==a||r[6]!==n||r[7]!==o?(s=(0,C.jsx)(v,{ref:n,className:o,...a}),r[5]=a,r[6]=n,r[7]=o,r[8]=s):s=r[8],s});N.displayName=v.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=t(a.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{Xr as e,_r as t,br as n,fr as r,gi as i,gr as a,hr as o,li as s,mr as c,no as l,vr as u,yr as d}from"./dialogs-config-Ct6i8Iij.js";import{n as f}from"./onboarding-DHCR18iU.js";import{D as p}from"./index-6DhhjIBL.js";var m=l(),h=i();function g(i){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}=i,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)(d,{children:[(0,h.jsx)(n,{children:`Create GitHub Repository`}),(0,h.jsx)(t,{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)(r,{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)(c,{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)(r,{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)(r,{htmlFor:`repo-private`,className:s.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)(e,{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)(e,{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)(u,{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)(o,{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};