@shipit-ai/cli 1.164.2-pr6.3fe19cf → 1.164.2-pr9.0fa5de3

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 (188) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/package.json +1 -1
  3. package/web/.next/BUILD_ID +1 -1
  4. package/web/.next/build-manifest.json +3 -3
  5. package/web/.next/fallback-build-manifest.json +3 -3
  6. package/web/.next/prerender-manifest.json +3 -3
  7. package/web/.next/required-server-files.js +1 -1
  8. package/web/.next/required-server-files.json +1 -1
  9. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +29 -29
  10. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  11. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  12. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +27 -27
  13. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  14. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  15. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +30 -30
  16. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  17. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  18. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  19. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  20. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  21. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  22. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +37 -37
  23. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  24. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  25. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  26. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  27. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  28. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  29. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  30. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  31. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  32. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +27 -27
  33. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  34. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  35. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +30 -30
  36. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  37. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  38. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  39. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  40. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  41. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  42. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +37 -37
  43. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  44. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  45. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  46. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +27 -27
  47. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  48. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  49. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  50. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  51. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  52. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  53. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  54. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  55. package/web/.next/server/app/_global-error.html +1 -1
  56. package/web/.next/server/app/_global-error.rsc +1 -1
  57. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  58. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  59. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  60. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  61. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  62. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +6 -6
  63. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  64. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  65. package/web/.next/server/app/api/sessions/route.js +2 -2
  66. package/web/.next/server/app/settings/page/server-reference-manifest.json +9 -9
  67. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  68. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  69. package/web/.next/server/app/skills/page/server-reference-manifest.json +11 -11
  70. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  71. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  72. package/web/.next/server/app/tools/page/server-reference-manifest.json +11 -11
  73. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  74. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  75. package/web/.next/server/app/version/page/server-reference-manifest.json +6 -6
  76. package/web/.next/server/app/version/page.js.nft.json +1 -1
  77. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  78. package/web/.next/server/chunks/11es_next_dist_esm_build_templates_app-route_067cwst.js +1 -1
  79. package/web/.next/server/chunks/11es_next_dist_esm_build_templates_app-route_067cwst.js.map +1 -1
  80. package/web/.next/server/chunks/[root-of-the-server]__0_.w-eb._.js +1 -1
  81. package/web/.next/server/chunks/[root-of-the-server]__0tb~wwk._.js +1 -1
  82. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js +1 -1
  83. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js.map +1 -1
  84. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js +2 -2
  85. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js.map +1 -1
  86. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js +1 -1
  87. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js.map +1 -1
  88. package/web/.next/server/chunks/ssr/11es_next_dist_esm_build_templates_app-page_0l-25e2.js +1 -1
  89. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js +1 -1
  90. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js.map +1 -1
  91. package/web/.next/server/chunks/ssr/[root-of-the-server]__0.j0ktf._.js +1 -1
  92. package/web/.next/server/chunks/ssr/[root-of-the-server]__07m44ax._.js +1 -1
  93. package/web/.next/server/chunks/ssr/[root-of-the-server]__07m44ax._.js.map +1 -1
  94. package/web/.next/server/chunks/ssr/{[root-of-the-server]__05lzb~i._.js → [root-of-the-server]__0frgz11._.js} +2 -2
  95. package/web/.next/server/chunks/ssr/{[root-of-the-server]__05lzb~i._.js.map → [root-of-the-server]__0frgz11._.js.map} +1 -1
  96. package/web/.next/server/chunks/ssr/[root-of-the-server]__0oi7r67._.js +1 -1
  97. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0jp4rkd._.js → [root-of-the-server]__0pti1a3._.js} +2 -2
  98. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0jp4rkd._.js.map → [root-of-the-server]__0pti1a3._.js.map} +1 -1
  99. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rv1gci._.js +1 -1
  100. package/web/.next/server/chunks/ssr/[root-of-the-server]__0s9k_s3._.js +1 -1
  101. package/web/.next/server/chunks/ssr/[root-of-the-server]__0s9k_s3._.js.map +1 -1
  102. package/web/.next/server/chunks/ssr/[root-of-the-server]__0v-vmgt._.js +1 -1
  103. package/web/.next/server/chunks/ssr/[root-of-the-server]__0v-vmgt._.js.map +1 -1
  104. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0_ag.8y._.js → [root-of-the-server]__0vd39s9._.js} +2 -2
  105. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0_ag.8y._.js.map → [root-of-the-server]__0vd39s9._.js.map} +1 -1
  106. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0.b9wam._.js → [root-of-the-server]__0yky~xo._.js} +2 -2
  107. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0.b9wam._.js.map → [root-of-the-server]__0yky~xo._.js.map} +1 -1
  108. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0zjrc4e._.js → [root-of-the-server]__11dc42t._.js} +2 -2
  109. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0zjrc4e._.js.map → [root-of-the-server]__11dc42t._.js.map} +1 -1
  110. package/web/.next/server/chunks/ssr/{_0kpppnf._.js → _0.7s.u6._.js} +2 -2
  111. package/web/.next/server/chunks/ssr/{_0kpppnf._.js.map → _0.7s.u6._.js.map} +1 -1
  112. package/web/.next/server/chunks/ssr/_0__4si~._.js +1 -1
  113. package/web/.next/server/chunks/ssr/_0__4si~._.js.map +1 -1
  114. package/web/.next/server/chunks/ssr/_0_m17kl._.js +1 -1
  115. package/web/.next/server/chunks/ssr/_0_m17kl._.js.map +1 -1
  116. package/web/.next/server/chunks/ssr/_0d2ioa~._.js +3 -0
  117. package/web/.next/server/chunks/ssr/{_11bn8co._.js.map → _0d2ioa~._.js.map} +1 -1
  118. package/web/.next/server/chunks/ssr/_0d4miu.._.js +1 -1
  119. package/web/.next/server/chunks/ssr/_0d4miu.._.js.map +1 -1
  120. package/web/.next/server/chunks/ssr/_0e8ern9._.js +1 -1
  121. package/web/.next/server/chunks/ssr/_0e8ern9._.js.map +1 -1
  122. package/web/.next/server/chunks/ssr/_0ez.1o4._.js +1 -1
  123. package/web/.next/server/chunks/ssr/_0ez.1o4._.js.map +1 -1
  124. package/web/.next/server/chunks/ssr/_0hovej-._.js +2 -2
  125. package/web/.next/server/chunks/ssr/_0hovej-._.js.map +1 -1
  126. package/web/.next/server/chunks/ssr/_0j9vx-1._.js +1 -1
  127. package/web/.next/server/chunks/ssr/_0p3zs6p._.js +1 -1
  128. package/web/.next/server/chunks/ssr/_0r.3n~3._.js +1 -1
  129. package/web/.next/server/chunks/ssr/_0r.3n~3._.js.map +1 -1
  130. package/web/.next/server/chunks/ssr/_0sgeiju._.js +1 -1
  131. package/web/.next/server/chunks/ssr/_0sgeiju._.js.map +1 -1
  132. package/web/.next/server/chunks/ssr/_0t59q8r._.js +1 -1
  133. package/web/.next/server/chunks/ssr/_0t59q8r._.js.map +1 -1
  134. package/web/.next/server/chunks/ssr/{_0g_ubt-._.js → _0uh__3q._.js} +2 -2
  135. package/web/.next/server/chunks/ssr/{_0g_ubt-._.js.map → _0uh__3q._.js.map} +1 -1
  136. package/web/.next/server/chunks/ssr/_0v.yfmg._.js +1 -1
  137. package/web/.next/server/chunks/ssr/_0v.yfmg._.js.map +1 -1
  138. package/web/.next/server/chunks/ssr/_0w-_hww._.js +1 -1
  139. package/web/.next/server/chunks/ssr/_0w-_hww._.js.map +1 -1
  140. package/web/.next/server/chunks/ssr/_0zk-h5w._.js +1 -1
  141. package/web/.next/server/chunks/ssr/_0zk-h5w._.js.map +1 -1
  142. package/web/.next/server/chunks/ssr/_0~ev6dw._.js +2 -2
  143. package/web/.next/server/chunks/ssr/_0~ev6dw._.js.map +1 -1
  144. package/web/.next/server/chunks/ssr/_1161g9x._.js +1 -1
  145. package/web/.next/server/chunks/ssr/_1161g9x._.js.map +1 -1
  146. package/web/.next/server/chunks/ssr/_11kuznh._.js +1 -1
  147. package/web/.next/server/chunks/ssr/_11kuznh._.js.map +1 -1
  148. package/web/.next/server/chunks/ssr/node_modules__pnpm_0ayym15._.js +3 -0
  149. package/web/.next/server/chunks/ssr/{node_modules__pnpm_0xyo1be._.js.map → node_modules__pnpm_0ayym15._.js.map} +1 -1
  150. package/web/.next/server/chunks/ssr/src_presentation_web_05-w-~v._.js +1 -1
  151. package/web/.next/server/chunks/ssr/src_presentation_web_05-w-~v._.js.map +1 -1
  152. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_05m2q~u.js +1 -1
  153. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_05m2q~u.js.map +1 -1
  154. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_0.6zk.t.js +1 -1
  155. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_0.6zk.t.js.map +1 -1
  156. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_0w2wqvu._.js +1 -1
  157. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js +1 -1
  158. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js.map +1 -1
  159. package/web/.next/server/edge/chunks/[root-of-the-server]__0m078x4._.js +2 -2
  160. package/web/.next/server/middleware/middleware-manifest.json +5 -5
  161. package/web/.next/server/middleware-build-manifest.js +3 -3
  162. package/web/.next/server/middleware-manifest.json +5 -5
  163. package/web/.next/server/pages/500.html +1 -1
  164. package/web/.next/server/server-reference-manifest.js +1 -1
  165. package/web/.next/server/server-reference-manifest.json +47 -47
  166. package/web/.next/static/chunks/{0~dcnoxku3oi_.js → 06m0t8vm74uq0.js} +2 -2
  167. package/web/.next/static/chunks/{0cd4c0fnzonag.js → 097d4.alebhv6.js} +2 -2
  168. package/web/.next/static/chunks/0a_ahxutnlxeo.js +1 -0
  169. package/web/.next/static/chunks/{0662ovdbjb4c7.js → 0b1my~6lqz~ha.js} +1 -1
  170. package/web/.next/static/chunks/{0w79dc4z8jqex.js → 0ggh~9h0aria4.js} +1 -1
  171. package/web/.next/static/chunks/{0qxmrjjfpk8kp.js → 0ig1nny60x9fp.js} +1 -1
  172. package/web/.next/static/chunks/{1515oj_4x~qsj.js → 0irqet91z73_h.js} +1 -1
  173. package/web/.next/static/chunks/{0hm.c6pg~a912.js → 0m-ae_vez8yzr.js} +2 -2
  174. package/web/.next/static/chunks/{13ihgyc1p3992.js → 0oha7fn.qv23y.js} +1 -1
  175. package/web/.next/static/chunks/{12bym6~-bgu1k.js → 0so7j5o39.mt3.js} +1 -1
  176. package/web/.next/static/chunks/{04qpdjcm512g_.js → 0~7cjq579m7ms.js} +1 -1
  177. package/web/.next/static/chunks/0~_228bvayobk.js +1 -0
  178. package/web/.next/static/chunks/{0-jmtczbfhww-.js → 10ltsew-fr2hm.js} +1 -1
  179. package/web/.next/static/chunks/{09b2usag59_bi.js → 14bjyfto_93~m.js} +1 -1
  180. package/web/.next/static/chunks/{13-55s12yx1lp.js → 15nzg-txif.bg.js} +1 -1
  181. package/web/package.json +1 -1
  182. package/web/.next/server/chunks/ssr/_11bn8co._.js +0 -3
  183. package/web/.next/server/chunks/ssr/node_modules__pnpm_0xyo1be._.js +0 -3
  184. package/web/.next/static/chunks/0d9oefqrs17__.js +0 -1
  185. package/web/.next/static/chunks/0zz.xgsd83.3n.js +0 -1
  186. /package/web/.next/static/{LyRhI-nUQ02-98fDJiMLy → ML_58uxy5qmZQKb7WAVpk}/_buildManifest.js +0 -0
  187. /package/web/.next/static/{LyRhI-nUQ02-98fDJiMLy → ML_58uxy5qmZQKb7WAVpk}/_clientMiddlewareManifest.js +0 -0
  188. /package/web/.next/static/{LyRhI-nUQ02-98fDJiMLy → ML_58uxy5qmZQKb7WAVpk}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41952,e=>{"use strict";var t=e.i(96871),i=e.i(16539),n=e.i(23925),s=e.i(26370),a=e.i(38573),r=e.i(49228),l=e.i(74294),o=e.i(3645);let c=(0,o.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),d=(0,o.default)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]),u=(0,o.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);var g=e.i(32494);let m=(0,o.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var h=e.i(58860),p=e.i(48109);let f=(0,o.default)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);var x=e.i(60112);e.i(98026);var v=e.i(50728),b=e.i(31777),w=e.i(47373),j=e.i(96976);let y=(0,j.createServerReference)("40638246f70ae0ab4285d9706fddbdd9d72c515631",j.callServer,void 0,j.findSourceMapURL,"updateSettingsAction");var S=e.i(17406),k=e.i(30342),C=e.i(44229),M=e.i(83902);function N(e){return(0,t.jsx)(C.Code,{className:(0,b.cn)("h-4 w-4",e.className),...e})}function I({className:e}){return(0,t.jsx)(k.default,{src:"/icons/editors/vscode.svg",alt:"VS Code",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function T({className:e}){return(0,t.jsx)(k.default,{src:"/icons/agents/cursor.jpeg",alt:"Cursor",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function A({className:e}){return(0,t.jsx)(k.default,{src:"/icons/editors/windsurf.svg",alt:"Windsurf",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function D({className:e}){return(0,t.jsx)(k.default,{src:"/icons/editors/zed.svg",alt:"Zed",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function F({className:e,...i}){return(0,t.jsx)(M.Rocket,{className:(0,b.cn)("h-4 w-4",e),...i})}I.displayName="VsCodeIcon",T.displayName="CursorEditorIcon",A.displayName="WindsurfIcon",D.displayName="ZedIcon",F.displayName="AntigravityIcon";let P={vscode:I,cursor:T,windsurf:A,zed:D,antigravity:F};var E=e.i(9749),R=e.i(956),z=e.i(41957);let B=[{value:S.Language.English,label:"English",nativeName:"English"},{value:S.Language.Russian,label:"Русский",nativeName:"Русский"},{value:S.Language.Portuguese,label:"Português",nativeName:"Português"},{value:S.Language.Spanish,label:"Español",nativeName:"Español"},{value:S.Language.Arabic,label:"العربية",nativeName:"العربية"},{value:S.Language.Hebrew,label:"עברית",nativeName:"עברית"},{value:S.Language.French,label:"Français",nativeName:"Français"},{value:S.Language.German,label:"Deutsch",nativeName:"Deutsch"}];function L({language:e}){let{t:s,i18n:a}=(0,v.useTranslation)("web"),[r,l]=(0,i.useState)(e),[o,c]=(0,i.useTransition)(),[d,u]=(0,i.useState)(!1),m=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(m.current&&!o){u(!0);let e=setTimeout(()=>u(!1),2e3);return()=>clearTimeout(e)}m.current=o},[o]),(0,t.jsxs)(R.Card,{id:"language",className:"scroll-mt-6","data-testid":"language-settings-section",children:[(0,t.jsxs)(R.CardHeader,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(g.Globe,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)(R.CardTitle,{children:s("settings.language.title")})]}),o?(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:s("common:labels.saving")}):null,d&&!o?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-xs text-green-600",children:[(0,t.jsx)(n.Check,{className:"h-3 w-3"}),s("common:labels.saved")]}):null]}),(0,t.jsx)(R.CardDescription,{children:s("settings.language.description")})]}),(0,t.jsx)(R.CardContent,{className:"space-y-4",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(z.Label,{htmlFor:"display-language",children:s("settings.language.label")}),(0,t.jsxs)(w.Select,{value:r,onValueChange:function(e){l(e),a.changeLanguage(e);let t="ar"===e||"he"===e?"rtl":"ltr";document.documentElement.lang=e,document.documentElement.dir=t,c(async()=>{let t=await y({user:{preferredLanguage:e}});t.success||x.toast.error(t.error??s("settings.language.failedToSave","Failed to save language settings"))})},children:[(0,t.jsx)(w.SelectTrigger,{id:"display-language","data-testid":"language-select",children:(0,t.jsx)(w.SelectValue,{placeholder:s("settings.language.placeholder")})}),(0,t.jsx)(w.SelectContent,{children:B.map(e=>(0,t.jsx)(w.SelectItem,{value:e.value,children:e.nativeName},e.value))})]})]})})]})}var _=e.i(61569),_=_,K=e.i(3214),V=e.i(30702),W=e.i(51911);function H({label:e,description:i,htmlFor:n,children:s}){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 border-b py-2.5 last:border-b-0",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(z.Label,{htmlFor:n,className:"cursor-pointer text-sm font-normal whitespace-nowrap",children:e}),i?(0,t.jsx)("p",{className:"text-muted-foreground text-[11px] leading-tight",children:i}):null]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s})]})}function O({label:e,description:i,id:n,testId:s,checked:a,onChange:r,disabled:l}){return(0,t.jsx)(H,{label:e,description:i,htmlFor:n,children:(0,t.jsx)(W.Switch,{id:n,"data-testid":s,checked:a,onCheckedChange:r,disabled:l,className:(0,b.cn)("cursor-pointer",l&&"cursor-not-allowed opacity-50")})})}function q({icon:e,title:i,description:n,badge:s,testId:a,children:r}){return(0,t.jsxs)("div",{className:"bg-background rounded-lg border","data-testid":a,children:[(0,t.jsxs)("div",{className:"bg-muted/30 border-b px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(e,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("h2",{className:"text-sm font-semibold",children:i}),s?(0,t.jsx)("span",{className:"bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-[9px] font-medium tracking-wider uppercase",children:s}):null]}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px]",children:n})]}),(0,t.jsx)("div",{className:"px-4",children:r})]})}function G({id:e,testId:i,value:n,onChange:s,onBlur:a,placeholder:r,min:l=1,max:o,step:c=1,suffix:d}){let{t:u}=(0,v.useTranslation)("web"),g=""===n?void 0:parseInt(n,10);return(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center overflow-hidden rounded-md border",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{s(String(Math.max(l,(g??parseInt(r,10))-c)))},onMouseUp:a,className:"text-muted-foreground hover:bg-muted hover:text-foreground flex h-8 w-7 cursor-pointer items-center justify-center border-r transition-colors","aria-label":u("common.decrease"),children:(0,t.jsx)(_.default,{className:"h-3 w-3"})}),(0,t.jsx)("input",{id:e,"data-testid":i,type:"text",inputMode:"numeric",pattern:"[0-9]*",value:n,placeholder:r,onChange:e=>{s(e.target.value.replace(/[^0-9]/g,""))},onBlur:a,className:"h-8 w-14 bg-transparent text-center text-xs outline-none"}),(0,t.jsx)("button",{type:"button",onClick:()=>{let e;e=g??parseInt(r,10),s(String(null!=o?Math.min(o,e+c):e+c))},onMouseUp:a,className:"text-muted-foreground hover:bg-muted hover:text-foreground flex h-8 w-7 cursor-pointer items-center justify-center border-l transition-colors","aria-label":u("common.increase"),children:(0,t.jsx)(K.Plus,{className:"h-3 w-3"})})]}),d?(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:d}):null]})}function U({children:e}){return(0,t.jsx)("div",{className:"border-b pt-3 pb-1",children:(0,t.jsx)("span",{className:"text-muted-foreground text-[10px] font-semibold tracking-wider uppercase",children:e})})}function $({children:e,links:i}){return(0,t.jsxs)("div",{className:"hidden pt-2 lg:block",children:[(0,t.jsx)("p",{className:"text-muted-foreground/70 text-[11px] leading-relaxed",children:e}),null!=i&&i.length>0?(0,t.jsx)("div",{className:"mt-2 flex flex-col gap-1",children:i.map(e=>(0,t.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-[10px] transition-colors",children:[(0,t.jsx)(V.ExternalLink,{className:"h-2.5 w-2.5"}),e.label]},e.href))}):null]})}function Z(e){if(""===e)return;let t=parseInt(e,10);return Number.isNaN(t)||t<=0?void 0:t}function X({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),[a,r]=(0,i.useState)(null!=e.workflow.ciMaxFixAttempts?String(e.workflow.ciMaxFixAttempts):""),[o,c]=(0,i.useState)(null!=e.workflow.ciWatchTimeoutMs?String(Math.round(e.workflow.ciWatchTimeoutMs/1e3)):""),[d,u]=(0,i.useState)(null!=e.workflow.ciLogMaxChars?String(e.workflow.ciLogMaxChars):""),[g,m]=(0,i.useState)(null!=e.workflow.ciWatchPollIntervalSeconds?String(e.workflow.ciWatchPollIntervalSeconds):""),[h,p]=(0,i.useState)(!1!==e.workflow.hideCiStatus),f=null!=e.workflow.ciMaxFixAttempts?String(e.workflow.ciMaxFixAttempts):"",b=null!=e.workflow.ciWatchTimeoutMs?String(Math.round(e.workflow.ciWatchTimeoutMs/1e3)):"",w=null!=e.workflow.ciLogMaxChars?String(e.workflow.ciLogMaxChars):"",j=null!=e.workflow.ciWatchPollIntervalSeconds?String(e.workflow.ciWatchPollIntervalSeconds):"";function S(e){s(async()=>{let t=await y(e);t.success||x.toast.error(t.error??n("settings.failedToSave"))})}function k(e){let t=Z(e.ciTimeout??o);return{workflow:{ciMaxFixAttempts:Z(e.ciMaxFix??a),ciWatchTimeoutMs:null!=t?1e3*t:void 0,ciLogMaxChars:Z(e.ciLogMax??d),ciWatchPollIntervalSeconds:Z(e.ciPollInterval??g),hideCiStatus:e.hideCiStatus??h}}}return(0,t.jsxs)(q,{icon:l.Activity,title:n("settings.ci.title"),description:n("settings.ci.description"),testId:"ci-settings-section",children:[(0,t.jsx)(H,{label:n("settings.ci.maxFixAttempts"),description:n("settings.ci.maxFixAttemptsDescription"),htmlFor:"ci-max-fix",children:(0,t.jsx)(G,{id:"ci-max-fix",testId:"ci-max-fix-input",placeholder:"3",value:a,onChange:r,onBlur:()=>{a!==f&&S(k({ciMaxFix:a}))},min:1,max:10})}),(0,t.jsx)(H,{label:n("settings.ci.watchTimeout"),description:n("settings.ci.watchTimeoutDescription"),htmlFor:"ci-timeout",children:(0,t.jsx)(G,{id:"ci-timeout",testId:"ci-timeout-input",placeholder:"300",value:o,onChange:c,onBlur:()=>{o!==b&&S(k({ciTimeout:o}))},min:30,step:30,suffix:"sec"})}),(0,t.jsx)(H,{label:n("settings.ci.maxLogSize"),description:n("settings.ci.maxLogSizeDescription"),htmlFor:"ci-log-max",children:(0,t.jsx)(G,{id:"ci-log-max",testId:"ci-log-max-input",placeholder:"50000",value:d,onChange:u,onBlur:()=>{d!==w&&S(k({ciLogMax:d}))},min:1e3,step:5e3,suffix:"chars"})}),(0,t.jsx)(H,{label:n("settings.ci.pollInterval"),description:n("settings.ci.pollIntervalDescription"),htmlFor:"ci-poll-interval",children:(0,t.jsx)(G,{id:"ci-poll-interval",testId:"ci-poll-interval-input",placeholder:"30",value:g,onChange:m,onBlur:()=>{g!==j&&S(k({ciPollInterval:g}))},min:5,step:5,suffix:"sec"})}),(0,t.jsx)(O,{label:n("settings.ci.hideCiStatus"),description:n("settings.ci.hideCiStatusDescription"),id:"hide-ci-status",testId:"switch-hide-ci-status",checked:h,onChange:e=>{p(e),S(k({hideCiStatus:e}))}})]})}var Y=e.i(27069),J=e.i(91967),Q=e.i(22353),ee=e.i(9413),et=e.i(36567),ei=e.i(75649),en=e.i(9641),es=e.i(70391),ea=e.i(85565),er=e.i(87099),el=["PageUp","PageDown"],eo=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ec={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ed="Slider",[eu,eg,em]=(0,er.createCollection)(ed),[eh,ep]=(0,ee.createContextScope)(ed,[em]),[ef,ex]=eh(ed),ev=i.forwardRef((e,n)=>{let{name:s,min:a=0,max:r=100,step:l=1,orientation:o="horizontal",disabled:c=!1,minStepsBetweenThumbs:d=0,defaultValue:u=[a],value:g,onValueChange:m=()=>{},onValueCommit:h=()=>{},inverted:p=!1,form:f,...x}=e,v=i.useRef(new Set),b=i.useRef(0),w="horizontal"===o,[j=[],y]=(0,et.useControllableState)({prop:g,defaultProp:u,onChange:e=>{let t=[...v.current];t[b.current]?.focus(),m(e)}}),S=i.useRef(j);function k(e,t,{commit:i}={commit:!1}){let n,s=(String(l).split(".")[1]||"").length,o=Math.round((Math.round((e-a)/l)*l+a)*(n=Math.pow(10,s)))/n,c=(0,Y.clamp)(o,[a,r]);y((e=[])=>{let n=function(e=[],t,i){let n=[...e];return n[i]=t,n.sort((e,t)=>e-t)}(e,c,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,i)=>e[i+1]-t))>=t;return!0}(n,d*l))return e;{b.current=n.indexOf(c);let t=String(n)!==String(e);return t&&i&&h(n),t?n:e}})}return(0,t.jsx)(ef,{scope:e.__scopeSlider,name:s,disabled:c,min:a,max:r,valueIndexToChangeRef:b,thumbs:v.current,values:j,orientation:o,form:f,children:(0,t.jsx)(eu.Provider,{scope:e.__scopeSlider,children:(0,t.jsx)(eu.Slot,{scope:e.__scopeSlider,children:(0,t.jsx)(w?ej:ey,{"aria-disabled":c,"data-disabled":c?"":void 0,...x,ref:n,onPointerDown:(0,J.composeEventHandlers)(x.onPointerDown,()=>{c||(S.current=j)}),min:a,max:r,inverted:p,onSlideStart:c?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let i=e.map(e=>Math.abs(e-t)),n=Math.min(...i);return i.indexOf(n)}(j,e);k(e,t)},onSlideMove:c?void 0:function(e){k(e,b.current)},onSlideEnd:c?void 0:function(){let e=S.current[b.current];j[b.current]!==e&&h(j)},onHomeKeyDown:()=>!c&&k(a,0,{commit:!0}),onEndKeyDown:()=>!c&&k(r,j.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){let i=el.includes(e.key)||e.shiftKey&&eo.includes(e.key),n=b.current;k(j[n]+l*(i?10:1)*t,n,{commit:!0})}}})})})})});ev.displayName=ed;var[eb,ew]=eh(ed,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ej=i.forwardRef((e,n)=>{let{min:s,max:a,dir:r,inverted:l,onSlideStart:o,onSlideMove:c,onSlideEnd:d,onStepKeyDown:u,...g}=e,[m,h]=i.useState(null),p=(0,Q.useComposedRefs)(n,e=>h(e)),f=i.useRef(void 0),x=(0,ei.useDirection)(r),v="ltr"===x,b=v&&!l||!v&&l;function w(e){let t=f.current||m.getBoundingClientRect(),i=eP([0,t.width],b?[s,a]:[a,s]);return f.current=t,i(e-t.left)}return(0,t.jsx)(eb,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,t.jsx)(eS,{dir:x,"data-orientation":"horizontal",...g,ref:p,style:{...g.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=w(e.clientX);o?.(t)},onSlideMove:e=>{let t=w(e.clientX);c?.(t)},onSlideEnd:()=>{f.current=void 0,d?.()},onStepKeyDown:e=>{let t=ec[b?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),ey=i.forwardRef((e,n)=>{let{min:s,max:a,inverted:r,onSlideStart:l,onSlideMove:o,onSlideEnd:c,onStepKeyDown:d,...u}=e,g=i.useRef(null),m=(0,Q.useComposedRefs)(n,g),h=i.useRef(void 0),p=!r;function f(e){let t=h.current||g.current.getBoundingClientRect(),i=eP([0,t.height],p?[a,s]:[s,a]);return h.current=t,i(e-t.top)}return(0,t.jsx)(eb,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:(0,t.jsx)(eS,{"data-orientation":"vertical",...u,ref:m,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=f(e.clientY);l?.(t)},onSlideMove:e=>{let t=f(e.clientY);o?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{let t=ec[p?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})}),eS=i.forwardRef((e,i)=>{let{__scopeSlider:n,onSlideStart:s,onSlideMove:a,onSlideEnd:r,onHomeKeyDown:l,onEndKeyDown:o,onStepKeyDown:c,...d}=e,u=ex(ed,n);return(0,t.jsx)(ea.Primitive.span,{...d,ref:i,onKeyDown:(0,J.composeEventHandlers)(e.onKeyDown,e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(o(e),e.preventDefault()):el.concat(eo).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,J.composeEventHandlers)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():s(e)}),onPointerMove:(0,J.composeEventHandlers)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:(0,J.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),r(e))})})}),ek="SliderTrack",eC=i.forwardRef((e,i)=>{let{__scopeSlider:n,...s}=e,a=ex(ek,n);return(0,t.jsx)(ea.Primitive.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...s,ref:i})});eC.displayName=ek;var eM="SliderRange",eN=i.forwardRef((e,n)=>{let{__scopeSlider:s,...a}=e,r=ex(eM,s),l=ew(eM,s),o=i.useRef(null),c=(0,Q.useComposedRefs)(n,o),d=r.values.length,u=r.values.map(e=>eF(e,r.min,r.max)),g=d>1?Math.min(...u):0,m=100-Math.max(...u);return(0,t.jsx)(ea.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...a,ref:c,style:{...e.style,[l.startEdge]:g+"%",[l.endEdge]:m+"%"}})});eN.displayName=eM;var eI="SliderThumb",eT=i.forwardRef((e,n)=>{let s=eg(e.__scopeSlider),[a,r]=i.useState(null),l=(0,Q.useComposedRefs)(n,e=>r(e)),o=i.useMemo(()=>a?s().findIndex(e=>e.ref.current===a):-1,[s,a]);return(0,t.jsx)(eA,{...e,ref:l,index:o})}),eA=i.forwardRef((e,n)=>{var s,a,r,l,o;let c,d,{__scopeSlider:u,index:g,name:m,...h}=e,p=ex(eI,u),f=ew(eI,u),[x,v]=i.useState(null),b=(0,Q.useComposedRefs)(n,e=>v(e)),w=!x||p.form||!!x.closest("form"),j=(0,es.useSize)(x),y=p.values[g],S=void 0===y?0:eF(y,p.min,p.max),k=(s=g,(a=p.values.length)>2?`Value ${s+1} of ${a}`:2===a?["Minimum","Maximum"][s]:void 0),C=j?.[f.size],M=C?(r=C,l=S,o=f.direction,d=eP([0,50],[0,c=r/2]),(c-d(l)*o)*o):0;return i.useEffect(()=>{if(x)return p.thumbs.add(x),()=>{p.thumbs.delete(x)}},[x,p.thumbs]),(0,t.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${S}% + ${M}px)`},children:[(0,t.jsx)(eu.ItemSlot,{scope:e.__scopeSlider,children:(0,t.jsx)(ea.Primitive.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":p.min,"aria-valuenow":y,"aria-valuemax":p.max,"aria-orientation":p.orientation,"data-orientation":p.orientation,"data-disabled":p.disabled?"":void 0,tabIndex:p.disabled?void 0:0,...h,ref:b,style:void 0===y?{display:"none"}:e.style,onFocus:(0,J.composeEventHandlers)(e.onFocus,()=>{p.valueIndexToChangeRef.current=g})})}),w&&(0,t.jsx)(eD,{name:m??(p.name?p.name+(p.values.length>1?"[]":""):void 0),form:p.form,value:y},g)]})});eT.displayName=eI;var eD=i.forwardRef(({__scopeSlider:e,value:n,...s},a)=>{let r=i.useRef(null),l=(0,Q.useComposedRefs)(r,a),o=(0,en.usePrevious)(n);return i.useEffect(()=>{let e=r.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==n&&t){let i=new Event("input",{bubbles:!0});t.call(e,n),e.dispatchEvent(i)}},[o,n]),(0,t.jsx)(ea.Primitive.input,{style:{display:"none"},...s,ref:l,defaultValue:n})});function eF(e,t,i){return(0,Y.clamp)(100/(i-t)*(e-t),[0,100])}function eP(e,t){return i=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(i-e[0])}}eD.displayName="RadioBubbleInput",e.s(["Range",0,eN,"Root",0,ev,"Slider",0,ev,"SliderRange",0,eN,"SliderThumb",0,eT,"SliderTrack",0,eC,"Thumb",0,eT,"Track",0,eC,"createSliderScope",0,ep],98207);var eE=e.i(98207),eE=eE;function eR({className:e,defaultValue:n,value:s,min:a=0,max:r=100,...l}){let o=i.useMemo(()=>Array.isArray(s)?s:Array.isArray(n)?n:[a,r],[s,n,a,r]);return(0,t.jsxs)(eE.Root,{"data-slot":"slider",defaultValue:n,value:s,min:a,max:r,className:(0,b.cn)("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...l,children:[(0,t.jsx)(eE.Track,{"data-slot":"slider-track",className:(0,b.cn)("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:(0,t.jsx)(eE.Range,{"data-slot":"slider-range",className:(0,b.cn)("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:o.length},(e,i)=>(0,t.jsx)(eE.Thumb,{"data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},i))]})}let ez=[60,120,300,600,900,1800,2700,3600,7200,10800,14400,21600,28800,43200,86400],eB=ez.length-1;function eL(e){let t=0,i=Math.abs(e-ez[0]);for(let n=1;n<ez.length;n++){let s=Math.abs(e-ez[n]);s<i&&(i=s,t=n)}return t}function e_({id:e,testId:n,value:s,onChange:a,onBlur:r,defaultSeconds:l=1800}){var o;let c,d,u=(""===s?l:parseInt(s,10))||l,[g,m]=(0,i.useState)(()=>eL(u)),h=eL(u);h!==g&&ez[g]!==u&&m(h);let p=(0,i.useCallback)(([e])=>{m(e),a(String(ez[e]))},[a]);return(0,t.jsxs)("div",{className:"flex w-55 items-center gap-2",children:[(0,t.jsx)(eR,{id:e,"data-testid":n,min:0,max:eB,step:1,value:[g],onValueChange:p,onValueCommit:()=>r(),className:"min-w-0 flex-1"}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0 text-end text-xs tabular-nums",children:(c=Math.floor((o=ez[g])/3600),d=Math.round(o%3600/60),0===c?`${d}m`:0===d?`${c}h`:`${c}h ${d}m`)})]})}function eK(e){if(void 0===e)return;let t=function(e){if(""===e)return;let t=parseInt(e,10);return Number.isNaN(t)||t<=0?void 0:t}(e);return null!=t?1e3*t:void 0}function eV({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),a=e.workflow.stageTimeouts,r=e.workflow.analyzeRepoTimeouts,[l,o]=(0,i.useState)(String(Math.round((a?.analyzeMs??18e5)/1e3))),[c,d]=(0,i.useState)(String(Math.round((a?.requirementsMs??18e5)/1e3))),[u,g]=(0,i.useState)(String(Math.round((a?.researchMs??18e5)/1e3))),[m,p]=(0,i.useState)(String(Math.round((a?.planMs??18e5)/1e3))),[f,b]=(0,i.useState)(String(Math.round((a?.implementMs??18e5)/1e3))),[w,j]=(0,i.useState)(String(Math.round((a?.mergeMs??18e5)/1e3))),[S,k]=(0,i.useState)(String(Math.round((r?.analyzeMs??6e5)/1e3))),C=a?.analyzeMs!=null?String(Math.round(a.analyzeMs/1e3)):"",M=a?.requirementsMs!=null?String(Math.round(a.requirementsMs/1e3)):"",N=a?.researchMs!=null?String(Math.round(a.researchMs/1e3)):"",I=a?.planMs!=null?String(Math.round(a.planMs/1e3)):"",T=a?.implementMs!=null?String(Math.round(a.implementMs/1e3)):"",A=a?.mergeMs!=null?String(Math.round(a.mergeMs/1e3)):"",D=r?.analyzeMs!=null?String(Math.round(r.analyzeMs/1e3)):"";function F(e){return{workflow:{stageTimeouts:{analyzeMs:eK(e.analyzeTimeout??l),requirementsMs:eK(e.requirementsTimeout??c),researchMs:eK(e.researchTimeout??u),planMs:eK(e.planTimeout??m),implementMs:eK(e.implementTimeout??f),mergeMs:eK(e.mergeTimeout??w)},analyzeRepoTimeouts:{analyzeMs:eK(e.analyzeRepoTimeout??S)}}}}function P(e){s(async()=>{let t=await y(e);t.success||x.toast.error(t.error??n("settings.failedToSave"))})}return(0,t.jsxs)(q,{icon:h.Timer,title:n("settings.stageTimeouts.title"),description:n("settings.stageTimeouts.description"),testId:"stage-timeouts-settings-section",children:[(0,t.jsx)(U,{children:n("settings.stageTimeouts.subsections.featureAgent")}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.analyze"),description:n("settings.stageTimeouts.analyzeDescription"),htmlFor:"timeout-analyze",children:(0,t.jsx)(e_,{id:"timeout-analyze",testId:"timeout-analyze-input",value:l,onChange:o,onBlur:()=>{l!==C&&P(F({analyzeTimeout:l}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.requirements"),description:n("settings.stageTimeouts.requirementsDescription"),htmlFor:"timeout-requirements",children:(0,t.jsx)(e_,{id:"timeout-requirements",testId:"timeout-requirements-input",value:c,onChange:d,onBlur:()=>{c!==M&&P(F({requirementsTimeout:c}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.research"),description:n("settings.stageTimeouts.researchDescription"),htmlFor:"timeout-research",children:(0,t.jsx)(e_,{id:"timeout-research",testId:"timeout-research-input",value:u,onChange:g,onBlur:()=>{u!==N&&P(F({researchTimeout:u}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.plan"),description:n("settings.stageTimeouts.planDescription"),htmlFor:"timeout-plan",children:(0,t.jsx)(e_,{id:"timeout-plan",testId:"timeout-plan-input",value:m,onChange:p,onBlur:()=>{m!==I&&P(F({planTimeout:m}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.implement"),description:n("settings.stageTimeouts.implementDescription"),htmlFor:"timeout-implement",children:(0,t.jsx)(e_,{id:"timeout-implement",testId:"timeout-implement-input",value:f,onChange:b,onBlur:()=>{f!==T&&P(F({implementTimeout:f}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.merge"),description:n("settings.stageTimeouts.mergeDescription"),htmlFor:"timeout-merge",children:(0,t.jsx)(e_,{id:"timeout-merge",testId:"timeout-merge-input",value:w,onChange:j,onBlur:()=>{w!==A&&P(F({mergeTimeout:w}))},defaultSeconds:1800})}),(0,t.jsx)(U,{children:n("settings.stageTimeouts.subsections.analyzeRepoAgent")}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.analyze"),description:n("settings.stageTimeouts.analyzeDescription"),htmlFor:"timeout-analyze-repo",children:(0,t.jsx)(e_,{id:"timeout-analyze-repo",testId:"timeout-analyze-repo-input",value:S,onChange:k,onBlur:()=>{S!==D&&P(F({analyzeRepoTimeout:S}))},defaultSeconds:600})})]})}function eW({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),a=e.interactiveAgent??{enabled:!0,autoTimeoutMinutes:15,maxConcurrentSessions:3},[r,l]=(0,i.useState)(a.enabled),[o,c]=(0,i.useState)(String(a.autoTimeoutMinutes)),[d,u]=(0,i.useState)(String(a.maxConcurrentSessions));function g(e){s(async()=>{let t=await y(e);t.success||x.toast.error(t.error??n("settings.failedToSave"))})}return(0,t.jsxs)(q,{icon:p.MessageSquare,title:n("settings.interactiveAgent.title"),description:n("settings.interactiveAgent.description"),testId:"interactive-agent-settings-section",children:[(0,t.jsx)(O,{label:n("settings.interactiveAgent.enableChatTab"),description:n("settings.interactiveAgent.enableChatTabDescription"),id:"interactive-agent-enabled",testId:"switch-interactive-agent-enabled",checked:r,onChange:e=>{l(e),g({interactiveAgent:{enabled:e,autoTimeoutMinutes:parseInt(o,10)||15,maxConcurrentSessions:parseInt(d,10)||3}})}}),(0,t.jsx)(H,{label:n("settings.interactiveAgent.autoTimeout"),description:n("settings.interactiveAgent.autoTimeoutDescription"),htmlFor:"interactive-agent-timeout",children:(0,t.jsx)(G,{id:"interactive-agent-timeout",testId:"input-interactive-agent-timeout",value:o,placeholder:"15",min:1,max:120,suffix:"min",onChange:c,onBlur:()=>{let e=parseInt(o,10),t=Number.isNaN(e)?15:Math.min(120,Math.max(1,e));c(String(t)),g({interactiveAgent:{enabled:r,autoTimeoutMinutes:t,maxConcurrentSessions:parseInt(d,10)||3}})}})}),(0,t.jsx)(H,{label:n("settings.interactiveAgent.maxConcurrentSessions"),description:n("settings.interactiveAgent.maxConcurrentSessionsDescription"),htmlFor:"interactive-agent-sessions",children:(0,t.jsx)(G,{id:"interactive-agent-sessions",testId:"input-interactive-agent-sessions",value:d,placeholder:"3",min:1,max:10,onChange:u,onBlur:()=>{let e=parseInt(d,10),t=Number.isNaN(e)?3:Math.min(10,Math.max(1,e));u(String(t)),g({interactiveAgent:{enabled:r,autoTimeoutMinutes:parseInt(o,10)||15,maxConcurrentSessions:t}})}})})]})}function eH({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),a=e.fabLayout??{swapPosition:!1},[r,l]=(0,i.useState)(a.swapPosition);return(0,t.jsx)(q,{icon:f,title:n("settings.fabLayout.title"),description:n("settings.fabLayout.description"),testId:"fab-layout-settings-section",children:(0,t.jsx)(O,{label:n("settings.fabLayout.swapPosition"),description:n("settings.fabLayout.swapPositionDescription"),id:"fab-swap-position",testId:"switch-fab-swap-position",checked:r,onChange:e=>{var t;l(e),t={fabLayout:{swapPosition:e}},s(async()=>{let e=await y(t);e.success||x.toast.error(e.error??n("settings.failedToSave"))})}})})}let eO=[{value:S.EditorType.VsCode,label:"VS Code"},{value:S.EditorType.Cursor,label:"Cursor"},{value:S.EditorType.Windsurf,label:"Windsurf"},{value:S.EditorType.Zed,label:"Zed"},{value:S.EditorType.Antigravity,label:"Antigravity"}],eq=[{value:"bash",label:"Bash"},{value:"zsh",label:"Zsh"},{value:"fish",label:"Fish"}],eG=[{id:"language",labelKey:"settings.sections.language",icon:g.Globe},{id:"agent",labelKey:"settings.sections.agent",icon:s.Bot},{id:"environment",labelKey:"settings.sections.environment",icon:a.Terminal},{id:"workflow",labelKey:"settings.sections.workflow",icon:r.GitBranch},{id:"ci",labelKey:"settings.sections.ci",icon:l.Activity},{id:"stage-timeouts",labelKey:"settings.sections.timeouts",icon:h.Timer},{id:"notifications",labelKey:"settings.sections.notifications",icon:c},{id:"feature-flags",labelKey:"settings.sections.flags",icon:d},{id:"interactive-agent",labelKey:"settings.sections.chat",icon:p.MessageSquare},{id:"fab-layout",labelKey:"settings.sections.layout",icon:f},{id:"database",labelKey:"settings.sections.database",icon:u}];e.s(["SettingsPageClient",0,function({settings:e,shipitAiHome:l,dbFileSize:o,availableTerminals:g}){let{t:h}=(0,v.useTranslation)("web"),{showSaving:p,showSaved:f,save:j}=function(){let{t:e}=(0,v.useTranslation)("web"),[t,n]=(0,i.useTransition)(),[s,a]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1),o=(0,i.useRef)(null),c=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{t&&!s&&(a(!0),c.current=!1,o.current=setTimeout(()=>{o.current=null,c.current&&(a(!1),l(!0),setTimeout(()=>l(!1),2e3))},350)),!t&&s&&(c.current=!0,o.current||(a(!1),l(!0),setTimeout(()=>l(!1),2e3)))},[t,s]),{showSaving:s,showSaved:r,save:(0,i.useCallback)(t=>{n(async()=>{let i=await y(t);i.success||x.toast.error(i.error??e("settings.failedToSave"))})},[n,e])}}(),k=e.featureFlags??{skills:!1,envDeploy:!1,debug:!1,githubImport:!1,adoptBranch:!1,gitRebaseSync:!1,reactFileManager:!1},[C,M]=(0,i.useState)(e.agent.type),[I,T]=(0,i.useState)(e.environment.defaultEditor),[A,D]=(0,i.useState)(e.environment.shellPreference),[F,R]=(0,i.useState)(e.environment.terminalPreference??S.TerminalType.System),z=g?g.filter(e=>e.available):[{id:S.TerminalType.System,name:h("settings.environment.systemTerminal"),available:!0}],[B,_]=(0,i.useState)(e.workflow.openPrOnImplementationComplete),[K,V]=(0,i.useState)(e.workflow.approvalGateDefaults.pushOnImplementationComplete),[W,Z]=(0,i.useState)(e.workflow.approvalGateDefaults.allowPrd),[Y,J]=(0,i.useState)(e.workflow.approvalGateDefaults.allowPlan),[Q,ee]=(0,i.useState)(e.workflow.approvalGateDefaults.allowMerge),[et,ei]=(0,i.useState)(e.workflow.enableEvidence),[en,es]=(0,i.useState)(e.workflow.commitEvidence),[ea,er]=(0,i.useState)(!1!==e.workflow.ciWatchEnabled),[el,eo]=(0,i.useState)(!1!==e.workflow.defaultFastMode),[ec,ed]=(0,i.useState)((e.workflow.autoArchiveDelayMinutes??10)>0),[eu,eg]=(0,i.useState)(String(e.workflow.autoArchiveDelayMinutes??10)),[em,eh]=(0,i.useState)(e.notifications.inApp.enabled),[ep,ef]=(0,i.useState)({...e.notifications.events}),[ex,ev]=(0,i.useState)({...k});function eb(e={}){let t=e.autoArchiveEnabled??ec,i=parseInt(e.autoArchiveDelay??eu,10);return{workflow:{openPrOnImplementationComplete:e.openPr??B,approvalGateDefaults:{pushOnImplementationComplete:e.pushOnComplete??K,allowPrd:e.allowPrd??W,allowPlan:e.allowPlan??Y,allowMerge:e.allowMerge??Q},enableEvidence:e.enableEvidence??et,commitEvidence:e.commitEvidence??en,ciWatchEnabled:e.ciWatchEnabled??ea,defaultFastMode:e.defaultFastMode??el,autoArchiveDelayMinutes:t?Number.isNaN(i)||i<1?10:i:0}}}function ew(e={}){return{notifications:{inApp:{enabled:e.inApp??em},events:e.events??ep}}}let[ej,ey]=(0,i.useState)("agent");(0,i.useEffect)(()=>{let e=eG.map(e=>document.getElementById(`section-${e.id}`)).filter(Boolean);if(0===e.length)return;let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&ey(t.target.id.replace("section-",""))},{rootMargin:"-65px 0px -60% 0px",threshold:0});for(let i of e)t.observe(i);return()=>t.disconnect()},[]);let eS=(0,i.useCallback)(e=>{let t=document.getElementById(`section-${e}`);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),t.style.animation="none",t.offsetHeight,t.style.animation="section-flash 1s ease-out")},[]);return(0,t.jsxs)("div",{"data-testid":"settings-page-client",className:"max-w-5xl",children:[(0,t.jsx)("div",{className:"bg-background/95 supports-backdrop-filter:bg-background/80 sticky top-0 z-10 grid grid-cols-1 gap-x-5 pt-6 pb-4 backdrop-blur lg:grid-cols-[1fr_280px]",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(m,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("h1",{className:"text-sm font-bold tracking-tight",children:h("settings.title")}),(0,t.jsxs)("span",{className:"relative h-4 w-16",children:[(0,t.jsx)("span",{className:(0,b.cn)("text-muted-foreground absolute inset-0 flex items-center text-xs transition-opacity duration-300",p?"opacity-100":"opacity-0"),children:h("settings.saving")}),(0,t.jsxs)("span",{className:(0,b.cn)("absolute inset-0 flex items-center gap-1 text-xs text-green-600 transition-opacity duration-300",f&&!p?"opacity-100":"opacity-0"),children:[(0,t.jsx)(n.Check,{className:"h-3 w-3"}),h("settings.saved")]})]}),(0,t.jsx)("nav",{className:"ml-auto flex items-center gap-0.5",children:eG.map(e=>{let i=e.icon,n=ej===e.id;return(0,t.jsxs)("button",{type:"button",onClick:()=>eS(e.id),className:(0,b.cn)("flex cursor-pointer items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-all",n?"bg-accent text-foreground font-medium":"text-muted-foreground/60 hover:text-foreground hover:bg-accent/50"),children:[(0,t.jsx)(i,{className:"h-3 w-3"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:h(e.labelKey)})]},e.id)})})]})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("div",{id:"section-language",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:(0,t.jsx)(L,{language:e.user?.preferredLanguage??S.Language.English})}),(0,t.jsxs)("div",{id:"section-agent",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(q,{icon:s.Bot,title:h("settings.agent.sectionTitle"),description:h("settings.agent.sectionDescription"),testId:"agent-settings-section",children:(0,t.jsx)(H,{label:h("settings.agent.agentAndModel"),description:h("settings.agent.agentAndModelDescription"),htmlFor:"agent-model-picker",children:(0,t.jsx)(E.AgentModelPicker,{initialAgentType:C,initialModel:e.models.default,mode:"settings",onAgentModelChange:e=>M(e),className:"w-55"})})}),(0,t.jsx)($,{links:[{label:h("settings.agent.links.agentSystem"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/architecture/agent-system.md"},{label:h("settings.agent.links.addingAgents"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/development/adding-agents.md"},{label:h("settings.agent.links.configurationGuide"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md"}],children:h("settings.agent.hint")})]}),(0,t.jsxs)("div",{id:"section-environment",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:a.Terminal,title:h("settings.environment.sectionTitle"),description:h("settings.environment.sectionDescription"),testId:"environment-settings-section",children:[(0,t.jsx)(H,{label:h("settings.environment.defaultEditor"),description:h("settings.environment.defaultEditorDescription"),htmlFor:"default-editor",children:(0,t.jsxs)(w.Select,{value:I,onValueChange:e=>{T(e),j({environment:{defaultEditor:e,shellPreference:A,terminalPreference:F}})},children:[(0,t.jsx)(w.SelectTrigger,{id:"default-editor","data-testid":"editor-select",className:"w-55 cursor-pointer text-xs",children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsx)(w.SelectContent,{children:eO.map(e=>{var i;let n=(i=e.value)&&i in P?P[i]:N;return(0,t.jsx)(w.SelectItem,{value:e.value,children:(0,t.jsxs)("span",{className:"flex items-center gap-2 text-xs",children:[(0,t.jsx)(n,{className:"h-4 w-4 shrink-0"}),e.label]})},e.value)})})]})}),(0,t.jsx)(H,{label:h("settings.environment.shell"),description:h("settings.environment.shellDescription"),htmlFor:"shell-preference",children:(0,t.jsxs)(w.Select,{value:A,onValueChange:e=>{D(e),j({environment:{defaultEditor:I,shellPreference:e,terminalPreference:F}})},children:[(0,t.jsx)(w.SelectTrigger,{id:"shell-preference","data-testid":"shell-select",className:"w-55 cursor-pointer text-xs",children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsx)(w.SelectContent,{children:eq.map(e=>(0,t.jsx)(w.SelectItem,{value:e.value,children:e.label},e.value))})]})}),(0,t.jsx)(H,{label:h("settings.environment.terminal"),description:h("settings.environment.terminalDescription"),htmlFor:"terminal-preference",children:(0,t.jsxs)(w.Select,{value:F,onValueChange:e=>{R(e),j({environment:{defaultEditor:I,shellPreference:A,terminalPreference:e}})},children:[(0,t.jsx)(w.SelectTrigger,{id:"terminal-preference","data-testid":"terminal-select",className:"w-55 cursor-pointer text-xs",children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsx)(w.SelectContent,{children:z.map(e=>(0,t.jsx)(w.SelectItem,{value:e.id,children:e.name},e.id))})]})})]}),(0,t.jsx)($,{links:[{label:h("settings.environment.links.configurationGuide"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md"}],children:h("settings.environment.hint")})]}),(0,t.jsxs)("div",{id:"section-workflow",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:r.GitBranch,title:h("settings.workflow.title"),description:h("settings.workflow.sectionDescription"),testId:"workflow-settings-section",children:[(0,t.jsx)(O,{label:h("settings.workflow.defaultFastMode"),description:h("settings.workflow.defaultFastModeDescription"),id:"default-fast-mode",testId:"switch-default-fast-mode",checked:el,onChange:e=>{eo(e),j(eb({defaultFastMode:e}))}}),(0,t.jsx)(U,{children:h("settings.workflow.subsections.approve")}),(0,t.jsx)(O,{label:h("settings.workflow.autoApprovePrd"),description:h("settings.workflow.autoApprovePrdDescription"),id:"allow-prd",testId:"switch-allow-prd",checked:W,onChange:e=>{Z(e),j(eb({allowPrd:e}))}}),(0,t.jsx)(O,{label:h("settings.workflow.autoApprovePlan"),description:h("settings.workflow.autoApprovePlanDescription"),id:"allow-plan",testId:"switch-allow-plan",checked:Y,onChange:e=>{J(e),j(eb({allowPlan:e}))}}),(0,t.jsx)(O,{label:h("settings.workflow.autoApproveMerge"),description:h("settings.workflow.autoApproveMergeDescription"),id:"allow-merge",testId:"switch-allow-merge",checked:Q,onChange:e=>{ee(e),j(eb({allowMerge:e}))}}),(0,t.jsx)(U,{children:h("settings.workflow.subsections.evidence")}),(0,t.jsx)(O,{label:h("settings.workflow.collectEvidence"),description:h("settings.workflow.collectEvidenceDescription"),id:"enable-evidence",testId:"switch-enable-evidence",checked:et,onChange:e=>{ei(e),e?j(eb({enableEvidence:e})):(es(!1),j(eb({enableEvidence:e,commitEvidence:!1})))}}),(0,t.jsx)(O,{label:h("settings.workflow.addEvidenceToPr"),description:h("settings.workflow.addEvidenceToPrDescription"),id:"commit-evidence",testId:"switch-commit-evidence",checked:en,disabled:!et||!B,onChange:e=>{es(e),j(eb({commitEvidence:e}))}}),(0,t.jsx)(U,{children:h("settings.workflow.subsections.git")}),(0,t.jsx)(O,{label:h("settings.workflow.pushOnComplete"),description:h("settings.workflow.pushOnCompleteDescription"),id:"push-on-complete",testId:"switch-push-on-complete",checked:K,onChange:e=>{V(e),j(eb({pushOnComplete:e}))}}),(0,t.jsx)(O,{label:h("settings.workflow.openPrOnComplete"),description:h("settings.workflow.openPrOnCompleteDescription"),id:"open-pr",testId:"switch-open-pr",checked:B,onChange:e=>{_(e),e?j(eb({openPr:e})):(es(!1),j(eb({openPr:e,commitEvidence:!1})))}}),(0,t.jsx)(O,{label:h("settings.workflow.watchCiAfterPush"),description:h("settings.workflow.watchCiAfterPushDescription"),id:"ci-watch-enabled",testId:"switch-ci-watch-enabled",checked:ea,onChange:e=>{er(e),j(eb({ciWatchEnabled:e}))}}),(0,t.jsx)(U,{children:"Archive"}),(0,t.jsx)(O,{label:"Auto-archive completed",description:"Automatically archive features after they reach the completed state",id:"auto-archive-enabled",testId:"switch-auto-archive-enabled",checked:ec,onChange:e=>{ed(e),j(eb({autoArchiveEnabled:e}))}}),(0,t.jsx)(H,{label:"Archive delay",description:"Minutes to wait after completion before archiving (1–1440)",htmlFor:"auto-archive-delay",children:(0,t.jsx)(G,{id:"auto-archive-delay",testId:"input-auto-archive-delay",value:eu,placeholder:"10",min:1,max:1440,suffix:"min",onChange:e=>{eg(e)},onBlur:()=>{if(!ec)return;let e=parseInt(eu,10),t=Number.isNaN(e)?10:Math.min(1440,Math.max(1,e));eg(String(t)),j(eb({autoArchiveDelay:String(t)}))}})})]}),(0,t.jsx)($,{links:[{label:h("settings.workflow.links.approvalGates"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/016-hitl-approval-gates/spec.yaml"},{label:h("settings.workflow.links.pushAndPrFlags"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/037-feature-pr-push-flags/spec.yaml"}],children:h("settings.workflow.hint")})]}),(0,t.jsxs)("div",{id:"section-ci",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(X,{settings:e}),(0,t.jsx)($,{links:[{label:h("settings.ci.links.cicdPipeline"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/development/cicd.md"},{label:h("settings.ci.links.ciSecurityGates"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/003-cicd-security-gates/spec.md"}],children:h("settings.ci.hint")})]}),(0,t.jsxs)("div",{id:"section-stage-timeouts",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(eV,{settings:e}),(0,t.jsx)($,{children:h("settings.stageTimeouts.hint")})]}),(0,t.jsxs)("div",{id:"section-notifications",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:c,title:h("settings.notifications.title"),description:h("settings.notifications.sectionDescription"),testId:"notification-settings-section",children:[(0,t.jsx)(U,{children:h("settings.notifications.channels")}),(0,t.jsx)(O,{label:h("settings.notifications.inAppLabel"),description:h("settings.notifications.inAppDescription"),id:"notif-in-app",testId:"switch-in-app",checked:em,onChange:e=>{eh(e),j(ew({inApp:e}))}}),(0,t.jsx)(U,{children:h("settings.notifications.subsections.agentEvents")}),(0,t.jsx)(O,{label:h("settings.notifications.events.agentStarted"),id:"notif-event-agentStarted",testId:"switch-event-agentStarted",checked:ep.agentStarted,onChange:e=>{let t={...ep,agentStarted:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.phaseCompleted"),id:"notif-event-phaseCompleted",testId:"switch-event-phaseCompleted",checked:ep.phaseCompleted,onChange:e=>{let t={...ep,phaseCompleted:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.waitingApproval"),id:"notif-event-waitingApproval",testId:"switch-event-waitingApproval",checked:ep.waitingApproval,onChange:e=>{let t={...ep,waitingApproval:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.agentCompleted"),id:"notif-event-agentCompleted",testId:"switch-event-agentCompleted",checked:ep.agentCompleted,onChange:e=>{let t={...ep,agentCompleted:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.agentFailed"),id:"notif-event-agentFailed",testId:"switch-event-agentFailed",checked:ep.agentFailed,onChange:e=>{let t={...ep,agentFailed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(U,{children:h("settings.notifications.subsections.pullRequestEvents")}),(0,t.jsx)(O,{label:h("settings.notifications.events.prMerged"),id:"notif-event-prMerged",testId:"switch-event-prMerged",checked:ep.prMerged,onChange:e=>{let t={...ep,prMerged:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prClosed"),id:"notif-event-prClosed",testId:"switch-event-prClosed",checked:ep.prClosed,onChange:e=>{let t={...ep,prClosed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prChecksPassed"),id:"notif-event-prChecksPassed",testId:"switch-event-prChecksPassed",checked:ep.prChecksPassed,onChange:e=>{let t={...ep,prChecksPassed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prChecksFailed"),id:"notif-event-prChecksFailed",testId:"switch-event-prChecksFailed",checked:ep.prChecksFailed,onChange:e=>{let t={...ep,prChecksFailed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prBlocked"),id:"notif-event-prBlocked",testId:"switch-event-prBlocked",checked:ep.prBlocked,onChange:e=>{let t={...ep,prBlocked:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.mergeReviewReady"),id:"notif-event-mergeReviewReady",testId:"switch-event-mergeReviewReady",checked:ep.mergeReviewReady,onChange:e=>{let t={...ep,mergeReviewReady:e};ef(t),j(ew({events:t}))}})]}),(0,t.jsx)($,{links:[{label:h("settings.notifications.links.notificationSystem"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/021-agent-notifications/spec.yaml"}],children:h("settings.notifications.hint")})]}),(0,t.jsxs)("div",{id:"section-feature-flags",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:d,title:h("settings.featureFlags.title"),description:h("settings.featureFlags.sectionDescription"),badge:h("settings.featureFlags.badge"),testId:"feature-flags-settings-section",children:[(0,t.jsx)(O,{label:h("settings.featureFlags.skills"),description:h("settings.featureFlags.skillsDescription"),id:"flag-skills",testId:"switch-flag-skills",checked:ex.skills,onChange:e=>{let t={...ex,skills:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.deployments"),description:h("settings.featureFlags.deploymentsDescription"),id:"flag-envDeploy",testId:"switch-flag-envDeploy",checked:ex.envDeploy,onChange:e=>{let t={...ex,envDeploy:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.debug"),description:h("settings.featureFlags.debugDescription"),id:"flag-debug",testId:"switch-flag-debug",checked:ex.debug,onChange:e=>{let t={...ex,debug:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.githubImport"),description:h("settings.featureFlags.githubImportDescription"),id:"flag-githubImport",testId:"switch-flag-githubImport",checked:ex.githubImport,onChange:e=>{let t={...ex,githubImport:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.adoptBranch"),description:h("settings.featureFlags.adoptBranchDescription"),id:"flag-adoptBranch",testId:"switch-flag-adoptBranch",checked:ex.adoptBranch,onChange:e=>{let t={...ex,adoptBranch:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.gitRebaseSync"),description:h("settings.featureFlags.gitRebaseSyncDescription"),id:"flag-gitRebaseSync",testId:"switch-flag-gitRebaseSync",checked:ex.gitRebaseSync,onChange:e=>{let t={...ex,gitRebaseSync:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.reactFileManager"),description:h("settings.featureFlags.reactFileManagerDescription"),id:"flag-reactFileManager",testId:"switch-flag-reactFileManager",checked:ex.reactFileManager,onChange:e=>{let t={...ex,reactFileManager:e};ev(t),j({featureFlags:t})}})]}),(0,t.jsx)($,{children:h("settings.featureFlags.hint")})]}),(0,t.jsxs)("div",{id:"section-interactive-agent",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(eW,{settings:e}),(0,t.jsx)($,{children:h("settings.interactiveAgent.hint")})]}),(0,t.jsxs)("div",{id:"section-fab-layout",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(eH,{settings:e}),(0,t.jsx)($,{children:h("settings.fabLayout.hint")})]}),(0,t.jsxs)("div",{id:"section-database",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:u,title:h("settings.database.title"),description:h("settings.database.sectionDescription"),testId:"database-settings-section",children:[(0,t.jsx)(H,{label:h("settings.database.location"),description:h("settings.database.locationDescription"),children:(0,t.jsx)("span",{className:"text-muted-foreground max-w-50 truncate font-mono text-xs","data-testid":"shipit-ai-home-path",children:l})}),(0,t.jsx)(H,{label:h("settings.database.size"),children:(0,t.jsx)("span",{className:"text-muted-foreground text-xs","data-testid":"db-file-size",children:o})})]}),(0,t.jsx)($,{links:[{label:h("settings.database.links.settingsService"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/architecture/settings-service.md"},{label:h("settings.database.links.settingsSpec"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/005-global-settings-service/spec.md"}],children:h("settings.database.hint")})]})]})]})}],41952)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41952,e=>{"use strict";var t=e.i(96871),i=e.i(16539),n=e.i(23925),s=e.i(26370),a=e.i(38573),r=e.i(49228),l=e.i(74294),o=e.i(3645);let c=(0,o.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),d=(0,o.default)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]),u=(0,o.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);var g=e.i(32494);let m=(0,o.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var h=e.i(58860),p=e.i(48109);let f=(0,o.default)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);var x=e.i(60112);e.i(98026);var v=e.i(50728),b=e.i(31777),w=e.i(47373),j=e.i(96976);let y=(0,j.createServerReference)("40ccf3af4e865975d49ed426281269bd6397448d86",j.callServer,void 0,j.findSourceMapURL,"updateSettingsAction");var S=e.i(17406),k=e.i(30342),C=e.i(44229),M=e.i(83902);function N(e){return(0,t.jsx)(C.Code,{className:(0,b.cn)("h-4 w-4",e.className),...e})}function I({className:e}){return(0,t.jsx)(k.default,{src:"/icons/editors/vscode.svg",alt:"VS Code",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function T({className:e}){return(0,t.jsx)(k.default,{src:"/icons/agents/cursor.jpeg",alt:"Cursor",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function A({className:e}){return(0,t.jsx)(k.default,{src:"/icons/editors/windsurf.svg",alt:"Windsurf",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function D({className:e}){return(0,t.jsx)(k.default,{src:"/icons/editors/zed.svg",alt:"Zed",width:24,height:24,className:(0,b.cn)("rounded-sm object-contain",e)})}function F({className:e,...i}){return(0,t.jsx)(M.Rocket,{className:(0,b.cn)("h-4 w-4",e),...i})}I.displayName="VsCodeIcon",T.displayName="CursorEditorIcon",A.displayName="WindsurfIcon",D.displayName="ZedIcon",F.displayName="AntigravityIcon";let P={vscode:I,cursor:T,windsurf:A,zed:D,antigravity:F};var E=e.i(9749),R=e.i(956),z=e.i(41957);let B=[{value:S.Language.English,label:"English",nativeName:"English"},{value:S.Language.Russian,label:"Русский",nativeName:"Русский"},{value:S.Language.Portuguese,label:"Português",nativeName:"Português"},{value:S.Language.Spanish,label:"Español",nativeName:"Español"},{value:S.Language.Arabic,label:"العربية",nativeName:"العربية"},{value:S.Language.Hebrew,label:"עברית",nativeName:"עברית"},{value:S.Language.French,label:"Français",nativeName:"Français"},{value:S.Language.German,label:"Deutsch",nativeName:"Deutsch"}];function L({language:e}){let{t:s,i18n:a}=(0,v.useTranslation)("web"),[r,l]=(0,i.useState)(e),[o,c]=(0,i.useTransition)(),[d,u]=(0,i.useState)(!1),m=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(m.current&&!o){u(!0);let e=setTimeout(()=>u(!1),2e3);return()=>clearTimeout(e)}m.current=o},[o]),(0,t.jsxs)(R.Card,{id:"language",className:"scroll-mt-6","data-testid":"language-settings-section",children:[(0,t.jsxs)(R.CardHeader,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(g.Globe,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)(R.CardTitle,{children:s("settings.language.title")})]}),o?(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:s("common:labels.saving")}):null,d&&!o?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-xs text-green-600",children:[(0,t.jsx)(n.Check,{className:"h-3 w-3"}),s("common:labels.saved")]}):null]}),(0,t.jsx)(R.CardDescription,{children:s("settings.language.description")})]}),(0,t.jsx)(R.CardContent,{className:"space-y-4",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(z.Label,{htmlFor:"display-language",children:s("settings.language.label")}),(0,t.jsxs)(w.Select,{value:r,onValueChange:function(e){l(e),a.changeLanguage(e);let t="ar"===e||"he"===e?"rtl":"ltr";document.documentElement.lang=e,document.documentElement.dir=t,c(async()=>{let t=await y({user:{preferredLanguage:e}});t.success||x.toast.error(t.error??s("settings.language.failedToSave","Failed to save language settings"))})},children:[(0,t.jsx)(w.SelectTrigger,{id:"display-language","data-testid":"language-select",children:(0,t.jsx)(w.SelectValue,{placeholder:s("settings.language.placeholder")})}),(0,t.jsx)(w.SelectContent,{children:B.map(e=>(0,t.jsx)(w.SelectItem,{value:e.value,children:e.nativeName},e.value))})]})]})})]})}var _=e.i(61569),_=_,K=e.i(3214),V=e.i(30702),W=e.i(51911);function H({label:e,description:i,htmlFor:n,children:s}){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 border-b py-2.5 last:border-b-0",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(z.Label,{htmlFor:n,className:"cursor-pointer text-sm font-normal whitespace-nowrap",children:e}),i?(0,t.jsx)("p",{className:"text-muted-foreground text-[11px] leading-tight",children:i}):null]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s})]})}function O({label:e,description:i,id:n,testId:s,checked:a,onChange:r,disabled:l}){return(0,t.jsx)(H,{label:e,description:i,htmlFor:n,children:(0,t.jsx)(W.Switch,{id:n,"data-testid":s,checked:a,onCheckedChange:r,disabled:l,className:(0,b.cn)("cursor-pointer",l&&"cursor-not-allowed opacity-50")})})}function q({icon:e,title:i,description:n,badge:s,testId:a,children:r}){return(0,t.jsxs)("div",{className:"bg-background rounded-lg border","data-testid":a,children:[(0,t.jsxs)("div",{className:"bg-muted/30 border-b px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(e,{className:"text-muted-foreground h-3.5 w-3.5"}),(0,t.jsx)("h2",{className:"text-sm font-semibold",children:i}),s?(0,t.jsx)("span",{className:"bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-[9px] font-medium tracking-wider uppercase",children:s}):null]}),(0,t.jsx)("p",{className:"text-muted-foreground mt-0.5 text-[11px]",children:n})]}),(0,t.jsx)("div",{className:"px-4",children:r})]})}function G({id:e,testId:i,value:n,onChange:s,onBlur:a,placeholder:r,min:l=1,max:o,step:c=1,suffix:d}){let{t:u}=(0,v.useTranslation)("web"),g=""===n?void 0:parseInt(n,10);return(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center overflow-hidden rounded-md border",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{s(String(Math.max(l,(g??parseInt(r,10))-c)))},onMouseUp:a,className:"text-muted-foreground hover:bg-muted hover:text-foreground flex h-8 w-7 cursor-pointer items-center justify-center border-r transition-colors","aria-label":u("common.decrease"),children:(0,t.jsx)(_.default,{className:"h-3 w-3"})}),(0,t.jsx)("input",{id:e,"data-testid":i,type:"text",inputMode:"numeric",pattern:"[0-9]*",value:n,placeholder:r,onChange:e=>{s(e.target.value.replace(/[^0-9]/g,""))},onBlur:a,className:"h-8 w-14 bg-transparent text-center text-xs outline-none"}),(0,t.jsx)("button",{type:"button",onClick:()=>{let e;e=g??parseInt(r,10),s(String(null!=o?Math.min(o,e+c):e+c))},onMouseUp:a,className:"text-muted-foreground hover:bg-muted hover:text-foreground flex h-8 w-7 cursor-pointer items-center justify-center border-l transition-colors","aria-label":u("common.increase"),children:(0,t.jsx)(K.Plus,{className:"h-3 w-3"})})]}),d?(0,t.jsx)("span",{className:"text-muted-foreground text-[11px]",children:d}):null]})}function U({children:e}){return(0,t.jsx)("div",{className:"border-b pt-3 pb-1",children:(0,t.jsx)("span",{className:"text-muted-foreground text-[10px] font-semibold tracking-wider uppercase",children:e})})}function $({children:e,links:i}){return(0,t.jsxs)("div",{className:"hidden pt-2 lg:block",children:[(0,t.jsx)("p",{className:"text-muted-foreground/70 text-[11px] leading-relaxed",children:e}),null!=i&&i.length>0?(0,t.jsx)("div",{className:"mt-2 flex flex-col gap-1",children:i.map(e=>(0,t.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-[10px] transition-colors",children:[(0,t.jsx)(V.ExternalLink,{className:"h-2.5 w-2.5"}),e.label]},e.href))}):null]})}function Z(e){if(""===e)return;let t=parseInt(e,10);return Number.isNaN(t)||t<=0?void 0:t}function X({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),[a,r]=(0,i.useState)(null!=e.workflow.ciMaxFixAttempts?String(e.workflow.ciMaxFixAttempts):""),[o,c]=(0,i.useState)(null!=e.workflow.ciWatchTimeoutMs?String(Math.round(e.workflow.ciWatchTimeoutMs/1e3)):""),[d,u]=(0,i.useState)(null!=e.workflow.ciLogMaxChars?String(e.workflow.ciLogMaxChars):""),[g,m]=(0,i.useState)(null!=e.workflow.ciWatchPollIntervalSeconds?String(e.workflow.ciWatchPollIntervalSeconds):""),[h,p]=(0,i.useState)(!1!==e.workflow.hideCiStatus),f=null!=e.workflow.ciMaxFixAttempts?String(e.workflow.ciMaxFixAttempts):"",b=null!=e.workflow.ciWatchTimeoutMs?String(Math.round(e.workflow.ciWatchTimeoutMs/1e3)):"",w=null!=e.workflow.ciLogMaxChars?String(e.workflow.ciLogMaxChars):"",j=null!=e.workflow.ciWatchPollIntervalSeconds?String(e.workflow.ciWatchPollIntervalSeconds):"";function S(e){s(async()=>{let t=await y(e);t.success||x.toast.error(t.error??n("settings.failedToSave"))})}function k(e){let t=Z(e.ciTimeout??o);return{workflow:{ciMaxFixAttempts:Z(e.ciMaxFix??a),ciWatchTimeoutMs:null!=t?1e3*t:void 0,ciLogMaxChars:Z(e.ciLogMax??d),ciWatchPollIntervalSeconds:Z(e.ciPollInterval??g),hideCiStatus:e.hideCiStatus??h}}}return(0,t.jsxs)(q,{icon:l.Activity,title:n("settings.ci.title"),description:n("settings.ci.description"),testId:"ci-settings-section",children:[(0,t.jsx)(H,{label:n("settings.ci.maxFixAttempts"),description:n("settings.ci.maxFixAttemptsDescription"),htmlFor:"ci-max-fix",children:(0,t.jsx)(G,{id:"ci-max-fix",testId:"ci-max-fix-input",placeholder:"3",value:a,onChange:r,onBlur:()=>{a!==f&&S(k({ciMaxFix:a}))},min:1,max:10})}),(0,t.jsx)(H,{label:n("settings.ci.watchTimeout"),description:n("settings.ci.watchTimeoutDescription"),htmlFor:"ci-timeout",children:(0,t.jsx)(G,{id:"ci-timeout",testId:"ci-timeout-input",placeholder:"300",value:o,onChange:c,onBlur:()=>{o!==b&&S(k({ciTimeout:o}))},min:30,step:30,suffix:"sec"})}),(0,t.jsx)(H,{label:n("settings.ci.maxLogSize"),description:n("settings.ci.maxLogSizeDescription"),htmlFor:"ci-log-max",children:(0,t.jsx)(G,{id:"ci-log-max",testId:"ci-log-max-input",placeholder:"50000",value:d,onChange:u,onBlur:()=>{d!==w&&S(k({ciLogMax:d}))},min:1e3,step:5e3,suffix:"chars"})}),(0,t.jsx)(H,{label:n("settings.ci.pollInterval"),description:n("settings.ci.pollIntervalDescription"),htmlFor:"ci-poll-interval",children:(0,t.jsx)(G,{id:"ci-poll-interval",testId:"ci-poll-interval-input",placeholder:"30",value:g,onChange:m,onBlur:()=>{g!==j&&S(k({ciPollInterval:g}))},min:5,step:5,suffix:"sec"})}),(0,t.jsx)(O,{label:n("settings.ci.hideCiStatus"),description:n("settings.ci.hideCiStatusDescription"),id:"hide-ci-status",testId:"switch-hide-ci-status",checked:h,onChange:e=>{p(e),S(k({hideCiStatus:e}))}})]})}var Y=e.i(27069),J=e.i(91967),Q=e.i(22353),ee=e.i(9413),et=e.i(36567),ei=e.i(75649),en=e.i(9641),es=e.i(70391),ea=e.i(85565),er=e.i(87099),el=["PageUp","PageDown"],eo=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ec={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ed="Slider",[eu,eg,em]=(0,er.createCollection)(ed),[eh,ep]=(0,ee.createContextScope)(ed,[em]),[ef,ex]=eh(ed),ev=i.forwardRef((e,n)=>{let{name:s,min:a=0,max:r=100,step:l=1,orientation:o="horizontal",disabled:c=!1,minStepsBetweenThumbs:d=0,defaultValue:u=[a],value:g,onValueChange:m=()=>{},onValueCommit:h=()=>{},inverted:p=!1,form:f,...x}=e,v=i.useRef(new Set),b=i.useRef(0),w="horizontal"===o,[j=[],y]=(0,et.useControllableState)({prop:g,defaultProp:u,onChange:e=>{let t=[...v.current];t[b.current]?.focus(),m(e)}}),S=i.useRef(j);function k(e,t,{commit:i}={commit:!1}){let n,s=(String(l).split(".")[1]||"").length,o=Math.round((Math.round((e-a)/l)*l+a)*(n=Math.pow(10,s)))/n,c=(0,Y.clamp)(o,[a,r]);y((e=[])=>{let n=function(e=[],t,i){let n=[...e];return n[i]=t,n.sort((e,t)=>e-t)}(e,c,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,i)=>e[i+1]-t))>=t;return!0}(n,d*l))return e;{b.current=n.indexOf(c);let t=String(n)!==String(e);return t&&i&&h(n),t?n:e}})}return(0,t.jsx)(ef,{scope:e.__scopeSlider,name:s,disabled:c,min:a,max:r,valueIndexToChangeRef:b,thumbs:v.current,values:j,orientation:o,form:f,children:(0,t.jsx)(eu.Provider,{scope:e.__scopeSlider,children:(0,t.jsx)(eu.Slot,{scope:e.__scopeSlider,children:(0,t.jsx)(w?ej:ey,{"aria-disabled":c,"data-disabled":c?"":void 0,...x,ref:n,onPointerDown:(0,J.composeEventHandlers)(x.onPointerDown,()=>{c||(S.current=j)}),min:a,max:r,inverted:p,onSlideStart:c?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let i=e.map(e=>Math.abs(e-t)),n=Math.min(...i);return i.indexOf(n)}(j,e);k(e,t)},onSlideMove:c?void 0:function(e){k(e,b.current)},onSlideEnd:c?void 0:function(){let e=S.current[b.current];j[b.current]!==e&&h(j)},onHomeKeyDown:()=>!c&&k(a,0,{commit:!0}),onEndKeyDown:()=>!c&&k(r,j.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){let i=el.includes(e.key)||e.shiftKey&&eo.includes(e.key),n=b.current;k(j[n]+l*(i?10:1)*t,n,{commit:!0})}}})})})})});ev.displayName=ed;var[eb,ew]=eh(ed,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ej=i.forwardRef((e,n)=>{let{min:s,max:a,dir:r,inverted:l,onSlideStart:o,onSlideMove:c,onSlideEnd:d,onStepKeyDown:u,...g}=e,[m,h]=i.useState(null),p=(0,Q.useComposedRefs)(n,e=>h(e)),f=i.useRef(void 0),x=(0,ei.useDirection)(r),v="ltr"===x,b=v&&!l||!v&&l;function w(e){let t=f.current||m.getBoundingClientRect(),i=eP([0,t.width],b?[s,a]:[a,s]);return f.current=t,i(e-t.left)}return(0,t.jsx)(eb,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,t.jsx)(eS,{dir:x,"data-orientation":"horizontal",...g,ref:p,style:{...g.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=w(e.clientX);o?.(t)},onSlideMove:e=>{let t=w(e.clientX);c?.(t)},onSlideEnd:()=>{f.current=void 0,d?.()},onStepKeyDown:e=>{let t=ec[b?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),ey=i.forwardRef((e,n)=>{let{min:s,max:a,inverted:r,onSlideStart:l,onSlideMove:o,onSlideEnd:c,onStepKeyDown:d,...u}=e,g=i.useRef(null),m=(0,Q.useComposedRefs)(n,g),h=i.useRef(void 0),p=!r;function f(e){let t=h.current||g.current.getBoundingClientRect(),i=eP([0,t.height],p?[a,s]:[s,a]);return h.current=t,i(e-t.top)}return(0,t.jsx)(eb,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:(0,t.jsx)(eS,{"data-orientation":"vertical",...u,ref:m,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=f(e.clientY);l?.(t)},onSlideMove:e=>{let t=f(e.clientY);o?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{let t=ec[p?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})}),eS=i.forwardRef((e,i)=>{let{__scopeSlider:n,onSlideStart:s,onSlideMove:a,onSlideEnd:r,onHomeKeyDown:l,onEndKeyDown:o,onStepKeyDown:c,...d}=e,u=ex(ed,n);return(0,t.jsx)(ea.Primitive.span,{...d,ref:i,onKeyDown:(0,J.composeEventHandlers)(e.onKeyDown,e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(o(e),e.preventDefault()):el.concat(eo).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,J.composeEventHandlers)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():s(e)}),onPointerMove:(0,J.composeEventHandlers)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:(0,J.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),r(e))})})}),ek="SliderTrack",eC=i.forwardRef((e,i)=>{let{__scopeSlider:n,...s}=e,a=ex(ek,n);return(0,t.jsx)(ea.Primitive.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...s,ref:i})});eC.displayName=ek;var eM="SliderRange",eN=i.forwardRef((e,n)=>{let{__scopeSlider:s,...a}=e,r=ex(eM,s),l=ew(eM,s),o=i.useRef(null),c=(0,Q.useComposedRefs)(n,o),d=r.values.length,u=r.values.map(e=>eF(e,r.min,r.max)),g=d>1?Math.min(...u):0,m=100-Math.max(...u);return(0,t.jsx)(ea.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...a,ref:c,style:{...e.style,[l.startEdge]:g+"%",[l.endEdge]:m+"%"}})});eN.displayName=eM;var eI="SliderThumb",eT=i.forwardRef((e,n)=>{let s=eg(e.__scopeSlider),[a,r]=i.useState(null),l=(0,Q.useComposedRefs)(n,e=>r(e)),o=i.useMemo(()=>a?s().findIndex(e=>e.ref.current===a):-1,[s,a]);return(0,t.jsx)(eA,{...e,ref:l,index:o})}),eA=i.forwardRef((e,n)=>{var s,a,r,l,o;let c,d,{__scopeSlider:u,index:g,name:m,...h}=e,p=ex(eI,u),f=ew(eI,u),[x,v]=i.useState(null),b=(0,Q.useComposedRefs)(n,e=>v(e)),w=!x||p.form||!!x.closest("form"),j=(0,es.useSize)(x),y=p.values[g],S=void 0===y?0:eF(y,p.min,p.max),k=(s=g,(a=p.values.length)>2?`Value ${s+1} of ${a}`:2===a?["Minimum","Maximum"][s]:void 0),C=j?.[f.size],M=C?(r=C,l=S,o=f.direction,d=eP([0,50],[0,c=r/2]),(c-d(l)*o)*o):0;return i.useEffect(()=>{if(x)return p.thumbs.add(x),()=>{p.thumbs.delete(x)}},[x,p.thumbs]),(0,t.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${S}% + ${M}px)`},children:[(0,t.jsx)(eu.ItemSlot,{scope:e.__scopeSlider,children:(0,t.jsx)(ea.Primitive.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":p.min,"aria-valuenow":y,"aria-valuemax":p.max,"aria-orientation":p.orientation,"data-orientation":p.orientation,"data-disabled":p.disabled?"":void 0,tabIndex:p.disabled?void 0:0,...h,ref:b,style:void 0===y?{display:"none"}:e.style,onFocus:(0,J.composeEventHandlers)(e.onFocus,()=>{p.valueIndexToChangeRef.current=g})})}),w&&(0,t.jsx)(eD,{name:m??(p.name?p.name+(p.values.length>1?"[]":""):void 0),form:p.form,value:y},g)]})});eT.displayName=eI;var eD=i.forwardRef(({__scopeSlider:e,value:n,...s},a)=>{let r=i.useRef(null),l=(0,Q.useComposedRefs)(r,a),o=(0,en.usePrevious)(n);return i.useEffect(()=>{let e=r.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==n&&t){let i=new Event("input",{bubbles:!0});t.call(e,n),e.dispatchEvent(i)}},[o,n]),(0,t.jsx)(ea.Primitive.input,{style:{display:"none"},...s,ref:l,defaultValue:n})});function eF(e,t,i){return(0,Y.clamp)(100/(i-t)*(e-t),[0,100])}function eP(e,t){return i=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(i-e[0])}}eD.displayName="RadioBubbleInput",e.s(["Range",0,eN,"Root",0,ev,"Slider",0,ev,"SliderRange",0,eN,"SliderThumb",0,eT,"SliderTrack",0,eC,"Thumb",0,eT,"Track",0,eC,"createSliderScope",0,ep],98207);var eE=e.i(98207),eE=eE;function eR({className:e,defaultValue:n,value:s,min:a=0,max:r=100,...l}){let o=i.useMemo(()=>Array.isArray(s)?s:Array.isArray(n)?n:[a,r],[s,n,a,r]);return(0,t.jsxs)(eE.Root,{"data-slot":"slider",defaultValue:n,value:s,min:a,max:r,className:(0,b.cn)("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...l,children:[(0,t.jsx)(eE.Track,{"data-slot":"slider-track",className:(0,b.cn)("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:(0,t.jsx)(eE.Range,{"data-slot":"slider-range",className:(0,b.cn)("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:o.length},(e,i)=>(0,t.jsx)(eE.Thumb,{"data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},i))]})}let ez=[60,120,300,600,900,1800,2700,3600,7200,10800,14400,21600,28800,43200,86400],eB=ez.length-1;function eL(e){let t=0,i=Math.abs(e-ez[0]);for(let n=1;n<ez.length;n++){let s=Math.abs(e-ez[n]);s<i&&(i=s,t=n)}return t}function e_({id:e,testId:n,value:s,onChange:a,onBlur:r,defaultSeconds:l=1800}){var o;let c,d,u=(""===s?l:parseInt(s,10))||l,[g,m]=(0,i.useState)(()=>eL(u)),h=eL(u);h!==g&&ez[g]!==u&&m(h);let p=(0,i.useCallback)(([e])=>{m(e),a(String(ez[e]))},[a]);return(0,t.jsxs)("div",{className:"flex w-55 items-center gap-2",children:[(0,t.jsx)(eR,{id:e,"data-testid":n,min:0,max:eB,step:1,value:[g],onValueChange:p,onValueCommit:()=>r(),className:"min-w-0 flex-1"}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0 text-end text-xs tabular-nums",children:(c=Math.floor((o=ez[g])/3600),d=Math.round(o%3600/60),0===c?`${d}m`:0===d?`${c}h`:`${c}h ${d}m`)})]})}function eK(e){if(void 0===e)return;let t=function(e){if(""===e)return;let t=parseInt(e,10);return Number.isNaN(t)||t<=0?void 0:t}(e);return null!=t?1e3*t:void 0}function eV({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),a=e.workflow.stageTimeouts,r=e.workflow.analyzeRepoTimeouts,[l,o]=(0,i.useState)(String(Math.round((a?.analyzeMs??18e5)/1e3))),[c,d]=(0,i.useState)(String(Math.round((a?.requirementsMs??18e5)/1e3))),[u,g]=(0,i.useState)(String(Math.round((a?.researchMs??18e5)/1e3))),[m,p]=(0,i.useState)(String(Math.round((a?.planMs??18e5)/1e3))),[f,b]=(0,i.useState)(String(Math.round((a?.implementMs??18e5)/1e3))),[w,j]=(0,i.useState)(String(Math.round((a?.mergeMs??18e5)/1e3))),[S,k]=(0,i.useState)(String(Math.round((r?.analyzeMs??6e5)/1e3))),C=a?.analyzeMs!=null?String(Math.round(a.analyzeMs/1e3)):"",M=a?.requirementsMs!=null?String(Math.round(a.requirementsMs/1e3)):"",N=a?.researchMs!=null?String(Math.round(a.researchMs/1e3)):"",I=a?.planMs!=null?String(Math.round(a.planMs/1e3)):"",T=a?.implementMs!=null?String(Math.round(a.implementMs/1e3)):"",A=a?.mergeMs!=null?String(Math.round(a.mergeMs/1e3)):"",D=r?.analyzeMs!=null?String(Math.round(r.analyzeMs/1e3)):"";function F(e){return{workflow:{stageTimeouts:{analyzeMs:eK(e.analyzeTimeout??l),requirementsMs:eK(e.requirementsTimeout??c),researchMs:eK(e.researchTimeout??u),planMs:eK(e.planTimeout??m),implementMs:eK(e.implementTimeout??f),mergeMs:eK(e.mergeTimeout??w)},analyzeRepoTimeouts:{analyzeMs:eK(e.analyzeRepoTimeout??S)}}}}function P(e){s(async()=>{let t=await y(e);t.success||x.toast.error(t.error??n("settings.failedToSave"))})}return(0,t.jsxs)(q,{icon:h.Timer,title:n("settings.stageTimeouts.title"),description:n("settings.stageTimeouts.description"),testId:"stage-timeouts-settings-section",children:[(0,t.jsx)(U,{children:n("settings.stageTimeouts.subsections.featureAgent")}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.analyze"),description:n("settings.stageTimeouts.analyzeDescription"),htmlFor:"timeout-analyze",children:(0,t.jsx)(e_,{id:"timeout-analyze",testId:"timeout-analyze-input",value:l,onChange:o,onBlur:()=>{l!==C&&P(F({analyzeTimeout:l}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.requirements"),description:n("settings.stageTimeouts.requirementsDescription"),htmlFor:"timeout-requirements",children:(0,t.jsx)(e_,{id:"timeout-requirements",testId:"timeout-requirements-input",value:c,onChange:d,onBlur:()=>{c!==M&&P(F({requirementsTimeout:c}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.research"),description:n("settings.stageTimeouts.researchDescription"),htmlFor:"timeout-research",children:(0,t.jsx)(e_,{id:"timeout-research",testId:"timeout-research-input",value:u,onChange:g,onBlur:()=>{u!==N&&P(F({researchTimeout:u}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.plan"),description:n("settings.stageTimeouts.planDescription"),htmlFor:"timeout-plan",children:(0,t.jsx)(e_,{id:"timeout-plan",testId:"timeout-plan-input",value:m,onChange:p,onBlur:()=>{m!==I&&P(F({planTimeout:m}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.implement"),description:n("settings.stageTimeouts.implementDescription"),htmlFor:"timeout-implement",children:(0,t.jsx)(e_,{id:"timeout-implement",testId:"timeout-implement-input",value:f,onChange:b,onBlur:()=>{f!==T&&P(F({implementTimeout:f}))},defaultSeconds:1800})}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.merge"),description:n("settings.stageTimeouts.mergeDescription"),htmlFor:"timeout-merge",children:(0,t.jsx)(e_,{id:"timeout-merge",testId:"timeout-merge-input",value:w,onChange:j,onBlur:()=>{w!==A&&P(F({mergeTimeout:w}))},defaultSeconds:1800})}),(0,t.jsx)(U,{children:n("settings.stageTimeouts.subsections.analyzeRepoAgent")}),(0,t.jsx)(H,{label:n("settings.stageTimeouts.analyze"),description:n("settings.stageTimeouts.analyzeDescription"),htmlFor:"timeout-analyze-repo",children:(0,t.jsx)(e_,{id:"timeout-analyze-repo",testId:"timeout-analyze-repo-input",value:S,onChange:k,onBlur:()=>{S!==D&&P(F({analyzeRepoTimeout:S}))},defaultSeconds:600})})]})}function eW({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),a=e.interactiveAgent??{enabled:!0,autoTimeoutMinutes:15,maxConcurrentSessions:3},[r,l]=(0,i.useState)(a.enabled),[o,c]=(0,i.useState)(String(a.autoTimeoutMinutes)),[d,u]=(0,i.useState)(String(a.maxConcurrentSessions));function g(e){s(async()=>{let t=await y(e);t.success||x.toast.error(t.error??n("settings.failedToSave"))})}return(0,t.jsxs)(q,{icon:p.MessageSquare,title:n("settings.interactiveAgent.title"),description:n("settings.interactiveAgent.description"),testId:"interactive-agent-settings-section",children:[(0,t.jsx)(O,{label:n("settings.interactiveAgent.enableChatTab"),description:n("settings.interactiveAgent.enableChatTabDescription"),id:"interactive-agent-enabled",testId:"switch-interactive-agent-enabled",checked:r,onChange:e=>{l(e),g({interactiveAgent:{enabled:e,autoTimeoutMinutes:parseInt(o,10)||15,maxConcurrentSessions:parseInt(d,10)||3}})}}),(0,t.jsx)(H,{label:n("settings.interactiveAgent.autoTimeout"),description:n("settings.interactiveAgent.autoTimeoutDescription"),htmlFor:"interactive-agent-timeout",children:(0,t.jsx)(G,{id:"interactive-agent-timeout",testId:"input-interactive-agent-timeout",value:o,placeholder:"15",min:1,max:120,suffix:"min",onChange:c,onBlur:()=>{let e=parseInt(o,10),t=Number.isNaN(e)?15:Math.min(120,Math.max(1,e));c(String(t)),g({interactiveAgent:{enabled:r,autoTimeoutMinutes:t,maxConcurrentSessions:parseInt(d,10)||3}})}})}),(0,t.jsx)(H,{label:n("settings.interactiveAgent.maxConcurrentSessions"),description:n("settings.interactiveAgent.maxConcurrentSessionsDescription"),htmlFor:"interactive-agent-sessions",children:(0,t.jsx)(G,{id:"interactive-agent-sessions",testId:"input-interactive-agent-sessions",value:d,placeholder:"3",min:1,max:10,onChange:u,onBlur:()=>{let e=parseInt(d,10),t=Number.isNaN(e)?3:Math.min(10,Math.max(1,e));u(String(t)),g({interactiveAgent:{enabled:r,autoTimeoutMinutes:parseInt(o,10)||15,maxConcurrentSessions:t}})}})})]})}function eH({settings:e}){let{t:n}=(0,v.useTranslation)("web"),[,s]=(0,i.useTransition)(),a=e.fabLayout??{swapPosition:!1},[r,l]=(0,i.useState)(a.swapPosition);return(0,t.jsx)(q,{icon:f,title:n("settings.fabLayout.title"),description:n("settings.fabLayout.description"),testId:"fab-layout-settings-section",children:(0,t.jsx)(O,{label:n("settings.fabLayout.swapPosition"),description:n("settings.fabLayout.swapPositionDescription"),id:"fab-swap-position",testId:"switch-fab-swap-position",checked:r,onChange:e=>{var t;l(e),t={fabLayout:{swapPosition:e}},s(async()=>{let e=await y(t);e.success||x.toast.error(e.error??n("settings.failedToSave"))})}})})}let eO=[{value:S.EditorType.VsCode,label:"VS Code"},{value:S.EditorType.Cursor,label:"Cursor"},{value:S.EditorType.Windsurf,label:"Windsurf"},{value:S.EditorType.Zed,label:"Zed"},{value:S.EditorType.Antigravity,label:"Antigravity"}],eq=[{value:"bash",label:"Bash"},{value:"zsh",label:"Zsh"},{value:"fish",label:"Fish"}],eG=[{id:"language",labelKey:"settings.sections.language",icon:g.Globe},{id:"agent",labelKey:"settings.sections.agent",icon:s.Bot},{id:"environment",labelKey:"settings.sections.environment",icon:a.Terminal},{id:"workflow",labelKey:"settings.sections.workflow",icon:r.GitBranch},{id:"ci",labelKey:"settings.sections.ci",icon:l.Activity},{id:"stage-timeouts",labelKey:"settings.sections.timeouts",icon:h.Timer},{id:"notifications",labelKey:"settings.sections.notifications",icon:c},{id:"feature-flags",labelKey:"settings.sections.flags",icon:d},{id:"interactive-agent",labelKey:"settings.sections.chat",icon:p.MessageSquare},{id:"fab-layout",labelKey:"settings.sections.layout",icon:f},{id:"database",labelKey:"settings.sections.database",icon:u}];e.s(["SettingsPageClient",0,function({settings:e,shipitAiHome:l,dbFileSize:o,availableTerminals:g}){let{t:h}=(0,v.useTranslation)("web"),{showSaving:p,showSaved:f,save:j}=function(){let{t:e}=(0,v.useTranslation)("web"),[t,n]=(0,i.useTransition)(),[s,a]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1),o=(0,i.useRef)(null),c=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{t&&!s&&(a(!0),c.current=!1,o.current=setTimeout(()=>{o.current=null,c.current&&(a(!1),l(!0),setTimeout(()=>l(!1),2e3))},350)),!t&&s&&(c.current=!0,o.current||(a(!1),l(!0),setTimeout(()=>l(!1),2e3)))},[t,s]),{showSaving:s,showSaved:r,save:(0,i.useCallback)(t=>{n(async()=>{let i=await y(t);i.success||x.toast.error(i.error??e("settings.failedToSave"))})},[n,e])}}(),k=e.featureFlags??{skills:!1,envDeploy:!1,debug:!1,githubImport:!1,adoptBranch:!1,gitRebaseSync:!1,reactFileManager:!1},[C,M]=(0,i.useState)(e.agent.type),[I,T]=(0,i.useState)(e.environment.defaultEditor),[A,D]=(0,i.useState)(e.environment.shellPreference),[F,R]=(0,i.useState)(e.environment.terminalPreference??S.TerminalType.System),z=g?g.filter(e=>e.available):[{id:S.TerminalType.System,name:h("settings.environment.systemTerminal"),available:!0}],[B,_]=(0,i.useState)(e.workflow.openPrOnImplementationComplete),[K,V]=(0,i.useState)(e.workflow.approvalGateDefaults.pushOnImplementationComplete),[W,Z]=(0,i.useState)(e.workflow.approvalGateDefaults.allowPrd),[Y,J]=(0,i.useState)(e.workflow.approvalGateDefaults.allowPlan),[Q,ee]=(0,i.useState)(e.workflow.approvalGateDefaults.allowMerge),[et,ei]=(0,i.useState)(e.workflow.enableEvidence),[en,es]=(0,i.useState)(e.workflow.commitEvidence),[ea,er]=(0,i.useState)(!1!==e.workflow.ciWatchEnabled),[el,eo]=(0,i.useState)(!1!==e.workflow.defaultFastMode),[ec,ed]=(0,i.useState)((e.workflow.autoArchiveDelayMinutes??10)>0),[eu,eg]=(0,i.useState)(String(e.workflow.autoArchiveDelayMinutes??10)),[em,eh]=(0,i.useState)(e.notifications.inApp.enabled),[ep,ef]=(0,i.useState)({...e.notifications.events}),[ex,ev]=(0,i.useState)({...k});function eb(e={}){let t=e.autoArchiveEnabled??ec,i=parseInt(e.autoArchiveDelay??eu,10);return{workflow:{openPrOnImplementationComplete:e.openPr??B,approvalGateDefaults:{pushOnImplementationComplete:e.pushOnComplete??K,allowPrd:e.allowPrd??W,allowPlan:e.allowPlan??Y,allowMerge:e.allowMerge??Q},enableEvidence:e.enableEvidence??et,commitEvidence:e.commitEvidence??en,ciWatchEnabled:e.ciWatchEnabled??ea,defaultFastMode:e.defaultFastMode??el,autoArchiveDelayMinutes:t?Number.isNaN(i)||i<1?10:i:0}}}function ew(e={}){return{notifications:{inApp:{enabled:e.inApp??em},events:e.events??ep}}}let[ej,ey]=(0,i.useState)("agent");(0,i.useEffect)(()=>{let e=eG.map(e=>document.getElementById(`section-${e.id}`)).filter(Boolean);if(0===e.length)return;let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&ey(t.target.id.replace("section-",""))},{rootMargin:"-65px 0px -60% 0px",threshold:0});for(let i of e)t.observe(i);return()=>t.disconnect()},[]);let eS=(0,i.useCallback)(e=>{let t=document.getElementById(`section-${e}`);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),t.style.animation="none",t.offsetHeight,t.style.animation="section-flash 1s ease-out")},[]);return(0,t.jsxs)("div",{"data-testid":"settings-page-client",className:"max-w-5xl",children:[(0,t.jsx)("div",{className:"bg-background/95 supports-backdrop-filter:bg-background/80 sticky top-0 z-10 grid grid-cols-1 gap-x-5 pt-6 pb-4 backdrop-blur lg:grid-cols-[1fr_280px]",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(m,{className:"text-muted-foreground h-4 w-4"}),(0,t.jsx)("h1",{className:"text-sm font-bold tracking-tight",children:h("settings.title")}),(0,t.jsxs)("span",{className:"relative h-4 w-16",children:[(0,t.jsx)("span",{className:(0,b.cn)("text-muted-foreground absolute inset-0 flex items-center text-xs transition-opacity duration-300",p?"opacity-100":"opacity-0"),children:h("settings.saving")}),(0,t.jsxs)("span",{className:(0,b.cn)("absolute inset-0 flex items-center gap-1 text-xs text-green-600 transition-opacity duration-300",f&&!p?"opacity-100":"opacity-0"),children:[(0,t.jsx)(n.Check,{className:"h-3 w-3"}),h("settings.saved")]})]}),(0,t.jsx)("nav",{className:"ml-auto flex items-center gap-0.5",children:eG.map(e=>{let i=e.icon,n=ej===e.id;return(0,t.jsxs)("button",{type:"button",onClick:()=>eS(e.id),className:(0,b.cn)("flex cursor-pointer items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-all",n?"bg-accent text-foreground font-medium":"text-muted-foreground/60 hover:text-foreground hover:bg-accent/50"),children:[(0,t.jsx)(i,{className:"h-3 w-3"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:h(e.labelKey)})]},e.id)})})]})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("div",{id:"section-language",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:(0,t.jsx)(L,{language:e.user?.preferredLanguage??S.Language.English})}),(0,t.jsxs)("div",{id:"section-agent",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(q,{icon:s.Bot,title:h("settings.agent.sectionTitle"),description:h("settings.agent.sectionDescription"),testId:"agent-settings-section",children:(0,t.jsx)(H,{label:h("settings.agent.agentAndModel"),description:h("settings.agent.agentAndModelDescription"),htmlFor:"agent-model-picker",children:(0,t.jsx)(E.AgentModelPicker,{initialAgentType:C,initialModel:e.models.default,mode:"settings",onAgentModelChange:e=>M(e),className:"w-55"})})}),(0,t.jsx)($,{links:[{label:h("settings.agent.links.agentSystem"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/architecture/agent-system.md"},{label:h("settings.agent.links.addingAgents"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/development/adding-agents.md"},{label:h("settings.agent.links.configurationGuide"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md"}],children:h("settings.agent.hint")})]}),(0,t.jsxs)("div",{id:"section-environment",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:a.Terminal,title:h("settings.environment.sectionTitle"),description:h("settings.environment.sectionDescription"),testId:"environment-settings-section",children:[(0,t.jsx)(H,{label:h("settings.environment.defaultEditor"),description:h("settings.environment.defaultEditorDescription"),htmlFor:"default-editor",children:(0,t.jsxs)(w.Select,{value:I,onValueChange:e=>{T(e),j({environment:{defaultEditor:e,shellPreference:A,terminalPreference:F}})},children:[(0,t.jsx)(w.SelectTrigger,{id:"default-editor","data-testid":"editor-select",className:"w-55 cursor-pointer text-xs",children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsx)(w.SelectContent,{children:eO.map(e=>{var i;let n=(i=e.value)&&i in P?P[i]:N;return(0,t.jsx)(w.SelectItem,{value:e.value,children:(0,t.jsxs)("span",{className:"flex items-center gap-2 text-xs",children:[(0,t.jsx)(n,{className:"h-4 w-4 shrink-0"}),e.label]})},e.value)})})]})}),(0,t.jsx)(H,{label:h("settings.environment.shell"),description:h("settings.environment.shellDescription"),htmlFor:"shell-preference",children:(0,t.jsxs)(w.Select,{value:A,onValueChange:e=>{D(e),j({environment:{defaultEditor:I,shellPreference:e,terminalPreference:F}})},children:[(0,t.jsx)(w.SelectTrigger,{id:"shell-preference","data-testid":"shell-select",className:"w-55 cursor-pointer text-xs",children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsx)(w.SelectContent,{children:eq.map(e=>(0,t.jsx)(w.SelectItem,{value:e.value,children:e.label},e.value))})]})}),(0,t.jsx)(H,{label:h("settings.environment.terminal"),description:h("settings.environment.terminalDescription"),htmlFor:"terminal-preference",children:(0,t.jsxs)(w.Select,{value:F,onValueChange:e=>{R(e),j({environment:{defaultEditor:I,shellPreference:A,terminalPreference:e}})},children:[(0,t.jsx)(w.SelectTrigger,{id:"terminal-preference","data-testid":"terminal-select",className:"w-55 cursor-pointer text-xs",children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsx)(w.SelectContent,{children:z.map(e=>(0,t.jsx)(w.SelectItem,{value:e.id,children:e.name},e.id))})]})})]}),(0,t.jsx)($,{links:[{label:h("settings.environment.links.configurationGuide"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/guides/configuration.md"}],children:h("settings.environment.hint")})]}),(0,t.jsxs)("div",{id:"section-workflow",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:r.GitBranch,title:h("settings.workflow.title"),description:h("settings.workflow.sectionDescription"),testId:"workflow-settings-section",children:[(0,t.jsx)(O,{label:h("settings.workflow.defaultFastMode"),description:h("settings.workflow.defaultFastModeDescription"),id:"default-fast-mode",testId:"switch-default-fast-mode",checked:el,onChange:e=>{eo(e),j(eb({defaultFastMode:e}))}}),(0,t.jsx)(U,{children:h("settings.workflow.subsections.approve")}),(0,t.jsx)(O,{label:h("settings.workflow.autoApprovePrd"),description:h("settings.workflow.autoApprovePrdDescription"),id:"allow-prd",testId:"switch-allow-prd",checked:W,onChange:e=>{Z(e),j(eb({allowPrd:e}))}}),(0,t.jsx)(O,{label:h("settings.workflow.autoApprovePlan"),description:h("settings.workflow.autoApprovePlanDescription"),id:"allow-plan",testId:"switch-allow-plan",checked:Y,onChange:e=>{J(e),j(eb({allowPlan:e}))}}),(0,t.jsx)(O,{label:h("settings.workflow.autoApproveMerge"),description:h("settings.workflow.autoApproveMergeDescription"),id:"allow-merge",testId:"switch-allow-merge",checked:Q,onChange:e=>{ee(e),j(eb({allowMerge:e}))}}),(0,t.jsx)(U,{children:h("settings.workflow.subsections.evidence")}),(0,t.jsx)(O,{label:h("settings.workflow.collectEvidence"),description:h("settings.workflow.collectEvidenceDescription"),id:"enable-evidence",testId:"switch-enable-evidence",checked:et,onChange:e=>{ei(e),e?j(eb({enableEvidence:e})):(es(!1),j(eb({enableEvidence:e,commitEvidence:!1})))}}),(0,t.jsx)(O,{label:h("settings.workflow.addEvidenceToPr"),description:h("settings.workflow.addEvidenceToPrDescription"),id:"commit-evidence",testId:"switch-commit-evidence",checked:en,disabled:!et||!B,onChange:e=>{es(e),j(eb({commitEvidence:e}))}}),(0,t.jsx)(U,{children:h("settings.workflow.subsections.git")}),(0,t.jsx)(O,{label:h("settings.workflow.pushOnComplete"),description:h("settings.workflow.pushOnCompleteDescription"),id:"push-on-complete",testId:"switch-push-on-complete",checked:K,onChange:e=>{V(e),j(eb({pushOnComplete:e}))}}),(0,t.jsx)(O,{label:h("settings.workflow.openPrOnComplete"),description:h("settings.workflow.openPrOnCompleteDescription"),id:"open-pr",testId:"switch-open-pr",checked:B,onChange:e=>{_(e),e?j(eb({openPr:e})):(es(!1),j(eb({openPr:e,commitEvidence:!1})))}}),(0,t.jsx)(O,{label:h("settings.workflow.watchCiAfterPush"),description:h("settings.workflow.watchCiAfterPushDescription"),id:"ci-watch-enabled",testId:"switch-ci-watch-enabled",checked:ea,onChange:e=>{er(e),j(eb({ciWatchEnabled:e}))}}),(0,t.jsx)(U,{children:"Archive"}),(0,t.jsx)(O,{label:"Auto-archive completed",description:"Automatically archive features after they reach the completed state",id:"auto-archive-enabled",testId:"switch-auto-archive-enabled",checked:ec,onChange:e=>{ed(e),j(eb({autoArchiveEnabled:e}))}}),(0,t.jsx)(H,{label:"Archive delay",description:"Minutes to wait after completion before archiving (1–1440)",htmlFor:"auto-archive-delay",children:(0,t.jsx)(G,{id:"auto-archive-delay",testId:"input-auto-archive-delay",value:eu,placeholder:"10",min:1,max:1440,suffix:"min",onChange:e=>{eg(e)},onBlur:()=>{if(!ec)return;let e=parseInt(eu,10),t=Number.isNaN(e)?10:Math.min(1440,Math.max(1,e));eg(String(t)),j(eb({autoArchiveDelay:String(t)}))}})})]}),(0,t.jsx)($,{links:[{label:h("settings.workflow.links.approvalGates"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/016-hitl-approval-gates/spec.yaml"},{label:h("settings.workflow.links.pushAndPrFlags"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/037-feature-pr-push-flags/spec.yaml"}],children:h("settings.workflow.hint")})]}),(0,t.jsxs)("div",{id:"section-ci",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(X,{settings:e}),(0,t.jsx)($,{links:[{label:h("settings.ci.links.cicdPipeline"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/development/cicd.md"},{label:h("settings.ci.links.ciSecurityGates"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/003-cicd-security-gates/spec.md"}],children:h("settings.ci.hint")})]}),(0,t.jsxs)("div",{id:"section-stage-timeouts",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(eV,{settings:e}),(0,t.jsx)($,{children:h("settings.stageTimeouts.hint")})]}),(0,t.jsxs)("div",{id:"section-notifications",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:c,title:h("settings.notifications.title"),description:h("settings.notifications.sectionDescription"),testId:"notification-settings-section",children:[(0,t.jsx)(U,{children:h("settings.notifications.channels")}),(0,t.jsx)(O,{label:h("settings.notifications.inAppLabel"),description:h("settings.notifications.inAppDescription"),id:"notif-in-app",testId:"switch-in-app",checked:em,onChange:e=>{eh(e),j(ew({inApp:e}))}}),(0,t.jsx)(U,{children:h("settings.notifications.subsections.agentEvents")}),(0,t.jsx)(O,{label:h("settings.notifications.events.agentStarted"),id:"notif-event-agentStarted",testId:"switch-event-agentStarted",checked:ep.agentStarted,onChange:e=>{let t={...ep,agentStarted:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.phaseCompleted"),id:"notif-event-phaseCompleted",testId:"switch-event-phaseCompleted",checked:ep.phaseCompleted,onChange:e=>{let t={...ep,phaseCompleted:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.waitingApproval"),id:"notif-event-waitingApproval",testId:"switch-event-waitingApproval",checked:ep.waitingApproval,onChange:e=>{let t={...ep,waitingApproval:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.agentCompleted"),id:"notif-event-agentCompleted",testId:"switch-event-agentCompleted",checked:ep.agentCompleted,onChange:e=>{let t={...ep,agentCompleted:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.agentFailed"),id:"notif-event-agentFailed",testId:"switch-event-agentFailed",checked:ep.agentFailed,onChange:e=>{let t={...ep,agentFailed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(U,{children:h("settings.notifications.subsections.pullRequestEvents")}),(0,t.jsx)(O,{label:h("settings.notifications.events.prMerged"),id:"notif-event-prMerged",testId:"switch-event-prMerged",checked:ep.prMerged,onChange:e=>{let t={...ep,prMerged:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prClosed"),id:"notif-event-prClosed",testId:"switch-event-prClosed",checked:ep.prClosed,onChange:e=>{let t={...ep,prClosed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prChecksPassed"),id:"notif-event-prChecksPassed",testId:"switch-event-prChecksPassed",checked:ep.prChecksPassed,onChange:e=>{let t={...ep,prChecksPassed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prChecksFailed"),id:"notif-event-prChecksFailed",testId:"switch-event-prChecksFailed",checked:ep.prChecksFailed,onChange:e=>{let t={...ep,prChecksFailed:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.prBlocked"),id:"notif-event-prBlocked",testId:"switch-event-prBlocked",checked:ep.prBlocked,onChange:e=>{let t={...ep,prBlocked:e};ef(t),j(ew({events:t}))}}),(0,t.jsx)(O,{label:h("settings.notifications.events.mergeReviewReady"),id:"notif-event-mergeReviewReady",testId:"switch-event-mergeReviewReady",checked:ep.mergeReviewReady,onChange:e=>{let t={...ep,mergeReviewReady:e};ef(t),j(ew({events:t}))}})]}),(0,t.jsx)($,{links:[{label:h("settings.notifications.links.notificationSystem"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/021-agent-notifications/spec.yaml"}],children:h("settings.notifications.hint")})]}),(0,t.jsxs)("div",{id:"section-feature-flags",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:d,title:h("settings.featureFlags.title"),description:h("settings.featureFlags.sectionDescription"),badge:h("settings.featureFlags.badge"),testId:"feature-flags-settings-section",children:[(0,t.jsx)(O,{label:h("settings.featureFlags.skills"),description:h("settings.featureFlags.skillsDescription"),id:"flag-skills",testId:"switch-flag-skills",checked:ex.skills,onChange:e=>{let t={...ex,skills:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.deployments"),description:h("settings.featureFlags.deploymentsDescription"),id:"flag-envDeploy",testId:"switch-flag-envDeploy",checked:ex.envDeploy,onChange:e=>{let t={...ex,envDeploy:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.debug"),description:h("settings.featureFlags.debugDescription"),id:"flag-debug",testId:"switch-flag-debug",checked:ex.debug,onChange:e=>{let t={...ex,debug:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.githubImport"),description:h("settings.featureFlags.githubImportDescription"),id:"flag-githubImport",testId:"switch-flag-githubImport",checked:ex.githubImport,onChange:e=>{let t={...ex,githubImport:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.adoptBranch"),description:h("settings.featureFlags.adoptBranchDescription"),id:"flag-adoptBranch",testId:"switch-flag-adoptBranch",checked:ex.adoptBranch,onChange:e=>{let t={...ex,adoptBranch:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.gitRebaseSync"),description:h("settings.featureFlags.gitRebaseSyncDescription"),id:"flag-gitRebaseSync",testId:"switch-flag-gitRebaseSync",checked:ex.gitRebaseSync,onChange:e=>{let t={...ex,gitRebaseSync:e};ev(t),j({featureFlags:t})}}),(0,t.jsx)(O,{label:h("settings.featureFlags.reactFileManager"),description:h("settings.featureFlags.reactFileManagerDescription"),id:"flag-reactFileManager",testId:"switch-flag-reactFileManager",checked:ex.reactFileManager,onChange:e=>{let t={...ex,reactFileManager:e};ev(t),j({featureFlags:t})}})]}),(0,t.jsx)($,{children:h("settings.featureFlags.hint")})]}),(0,t.jsxs)("div",{id:"section-interactive-agent",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(eW,{settings:e}),(0,t.jsx)($,{children:h("settings.interactiveAgent.hint")})]}),(0,t.jsxs)("div",{id:"section-fab-layout",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsx)(eH,{settings:e}),(0,t.jsx)($,{children:h("settings.fabLayout.hint")})]}),(0,t.jsxs)("div",{id:"section-database",className:"grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]",children:[(0,t.jsxs)(q,{icon:u,title:h("settings.database.title"),description:h("settings.database.sectionDescription"),testId:"database-settings-section",children:[(0,t.jsx)(H,{label:h("settings.database.location"),description:h("settings.database.locationDescription"),children:(0,t.jsx)("span",{className:"text-muted-foreground max-w-50 truncate font-mono text-xs","data-testid":"shipit-ai-home-path",children:l})}),(0,t.jsx)(H,{label:h("settings.database.size"),children:(0,t.jsx)("span",{className:"text-muted-foreground text-xs","data-testid":"db-file-size",children:o})})]}),(0,t.jsx)($,{links:[{label:h("settings.database.links.settingsService"),href:"https://github.com/jrmatherly/shipit/blob/main/docs/architecture/settings-service.md"},{label:h("settings.database.links.settingsSpec"),href:"https://github.com/jrmatherly/shipit/blob/main/specs/005-global-settings-service/spec.md"}],children:h("settings.database.hint")})]})]})]})}],41952)}]);