purplemux 0.1.14 → 0.1.16

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 (362) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +60 -60
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/required-server-files.json +1 -1
  5. package/.next/standalone/.next/routes-manifest.json +20 -14
  6. package/.next/standalone/.next/server/chunks/[externals]__13k.c.~._.js +3 -0
  7. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0h~zv9n._.js → [root-of-the-server]__0-c3~nn._.js} +2 -2
  8. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0.5.jh3._.js +1 -1
  9. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0.xjg-~._.js +1 -1
  10. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0kod3.-._.js → [root-of-the-server]__024lwbn._.js} +2 -2
  11. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__046f4pf._.js → [root-of-the-server]__03ot0cb._.js} +2 -2
  12. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0~1j9pt._.js → [root-of-the-server]__047tlz~._.js} +2 -2
  13. package/.next/standalone/.next/server/chunks/[root-of-the-server]__07-d36v._.js +3 -0
  14. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__05d6rxt._.js → [root-of-the-server]__08_~c-q._.js} +2 -2
  15. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0_q9h8s._.js → [root-of-the-server]__08hnmpo._.js} +2 -2
  16. package/.next/standalone/.next/server/chunks/[root-of-the-server]__08tzm8d._.js +1 -1
  17. package/.next/standalone/.next/server/chunks/[root-of-the-server]__09q4wzd._.js +1 -1
  18. package/.next/standalone/.next/server/chunks/[root-of-the-server]__09y~h2q._.js +1 -1
  19. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0cgvael._.js +1 -1
  20. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0fpqpxy._.js → [root-of-the-server]__0ey~ltr._.js} +2 -2
  21. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0t_-3xa._.js → [root-of-the-server]__0f3fact._.js} +2 -2
  22. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0fp84e0._.js → [root-of-the-server]__0f~.s-e._.js} +2 -2
  23. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0hls3o-._.js +1 -1
  24. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0j.vqs2._.js +1 -1
  25. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0jckpxo._.js +1 -1
  26. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0uewqzn._.js → [root-of-the-server]__0ju7kzs._.js} +2 -2
  27. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0z35~ny._.js → [root-of-the-server]__0kq_cng._.js} +2 -2
  28. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0lgsm~z._.js +1 -1
  29. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0ps86kr._.js → [root-of-the-server]__0lsa5bn._.js} +2 -2
  30. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0u8sqbl._.js → [root-of-the-server]__0o3lnmb._.js} +2 -2
  31. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0rfe_~k._.js +1 -1
  32. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ssh9g_._.js +1 -1
  33. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0u3wwr-._.js +1 -1
  34. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0kra6_b._.js → [root-of-the-server]__0ura-_t._.js} +2 -2
  35. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0wciws.._.js +1 -1
  36. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0x_8._i._.js +3 -0
  37. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0-f8oht._.js → [root-of-the-server]__0y8ml1t._.js} +3 -3
  38. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__1369pv8._.js → [root-of-the-server]__0zf-rc.._.js} +2 -2
  39. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0kkzmwe._.js → [root-of-the-server]__0zmgr4l._.js} +2 -2
  40. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0zz1mdj._.js +3 -0
  41. package/.next/standalone/.next/server/chunks/[root-of-the-server]__10nr7x4._.js +1 -1
  42. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0w15338._.js → [root-of-the-server]__12qf6f0._.js} +2 -2
  43. package/.next/standalone/.next/server/chunks/{_0cck63i._.js → _05x9scc._.js} +2 -2
  44. package/.next/standalone/.next/server/chunks/{_06oqi2i._.js → _07buaxg._.js} +2 -2
  45. package/.next/standalone/.next/server/chunks/{_0b~rqv9._.js → _0aka502._.js} +2 -2
  46. package/.next/standalone/.next/server/chunks/_0c3vw_m._.js +3 -0
  47. package/.next/standalone/.next/server/chunks/{_01p3ik-._.js → _0ddkeqf._.js} +2 -2
  48. package/.next/standalone/.next/server/chunks/{_0rawp27._.js → _0e_9e0t._.js} +2 -2
  49. package/.next/standalone/.next/server/chunks/{_04vmy2-._.js → _0j3971i._.js} +2 -2
  50. package/.next/standalone/.next/server/chunks/_0lvgsme._.js +3 -0
  51. package/.next/standalone/.next/server/chunks/{_0kr8ikw._.js → _0n8ityl._.js} +2 -2
  52. package/.next/standalone/.next/server/chunks/{_0smqq-6._.js → _0q~kl5z._.js} +2 -2
  53. package/.next/standalone/.next/server/chunks/{_0d1q2xp._.js → _0wo7dqo._.js} +2 -2
  54. package/.next/standalone/.next/server/chunks/_10i0ypk._.js +3 -0
  55. package/.next/standalone/.next/server/chunks/{_0~472ab._.js → _10ze~7u._.js} +2 -2
  56. package/.next/standalone/.next/server/chunks/src_lib_layout-store_ts_0fanx7c._.js +1 -1
  57. package/.next/standalone/.next/server/chunks/src_lib_status-manager_ts_003hlhy._.js +1 -1
  58. package/.next/standalone/.next/server/chunks/src_lib_tab-title_ts_0onatvs._.js +3 -0
  59. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ee6t.s._.js → [root-of-the-server]__0.s1szp._.js} +2 -2
  60. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__12~vy9f._.js → [root-of-the-server]__01908na._.js} +2 -2
  61. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0fv54u~._.js → [root-of-the-server]__0p8x8t-._.js} +2 -2
  62. package/.next/standalone/.next/server/chunks/ssr/_0-xx2s1._.js +1 -1
  63. package/.next/standalone/.next/server/chunks/ssr/{_0.fa33p._.js → _03b_158._.js} +2 -2
  64. package/.next/standalone/.next/server/chunks/ssr/{_04_lcg.._.js → _04nj~5_._.js} +2 -2
  65. package/.next/standalone/.next/server/chunks/ssr/_066q1le._.js +7 -0
  66. package/.next/standalone/.next/server/chunks/ssr/{_0xv1pp~._.js → _0_nsc2m._.js} +2 -2
  67. package/.next/standalone/.next/server/chunks/ssr/{_0cunbnc._.js → _0bit88n._.js} +2 -2
  68. package/.next/standalone/.next/server/chunks/ssr/_0camkxl._.js +1 -1
  69. package/.next/standalone/.next/server/chunks/ssr/{_0sdaqd~._.js → _0huh16b._.js} +1 -1
  70. package/.next/standalone/.next/server/chunks/ssr/_0i209pm._.js +1 -1
  71. package/.next/standalone/.next/server/chunks/ssr/_0iok2zk._.js +1 -1
  72. package/.next/standalone/.next/server/chunks/ssr/{_12~jvvn._.js → _0j52d4c._.js} +2 -2
  73. package/.next/standalone/.next/server/chunks/ssr/_0o1taa_._.js +7 -0
  74. package/.next/standalone/.next/server/chunks/ssr/{_0fe6ylc._.js → _0pgtbgr._.js} +2 -2
  75. package/.next/standalone/.next/server/chunks/ssr/{_12uekiq._.js → _0qsw_dh._.js} +2 -2
  76. package/.next/standalone/.next/server/chunks/ssr/{_136-sqr._.js → _0repele._.js} +2 -2
  77. package/.next/standalone/.next/server/chunks/ssr/_0sfa_96._.js +1 -1
  78. package/.next/standalone/.next/server/chunks/ssr/_0wxwrt4._.js +3 -0
  79. package/.next/standalone/.next/server/chunks/ssr/{_0k1n.yu._.js → _0y.4q93._.js} +2 -2
  80. package/.next/standalone/.next/server/chunks/ssr/{_0c5.fdk._.js → _0~4b0-l._.js} +2 -2
  81. package/.next/standalone/.next/server/chunks/ssr/{_0esn3zl._.js → _0~mw4uo._.js} +1 -1
  82. package/.next/standalone/.next/server/chunks/ssr/{messages_11vq.mk._.js → messages_0yxovwt._.js} +1 -1
  83. package/.next/standalone/.next/server/chunks/ssr/messages_de_terminal_json_[json]_cjs_05jirtw._.js +1 -1
  84. package/.next/standalone/.next/server/chunks/ssr/messages_en_terminal_json_[json]_cjs_0~ls3g-._.js +1 -1
  85. package/.next/standalone/.next/server/chunks/ssr/messages_es_terminal_json_[json]_cjs_04g2b1_._.js +1 -1
  86. package/.next/standalone/.next/server/chunks/ssr/messages_fr_terminal_json_[json]_cjs_0uhakya._.js +1 -1
  87. package/.next/standalone/.next/server/chunks/ssr/messages_ja_terminal_json_[json]_cjs_0776z4f._.js +1 -1
  88. package/.next/standalone/.next/server/chunks/ssr/messages_ko_terminal_json_[json]_cjs_06611.3._.js +1 -1
  89. package/.next/standalone/.next/server/chunks/ssr/messages_pt-BR_terminal_json_[json]_cjs_034yyg9._.js +1 -1
  90. package/.next/standalone/.next/server/chunks/ssr/messages_ru_terminal_json_[json]_cjs_0emk8~n._.js +1 -1
  91. package/.next/standalone/.next/server/chunks/ssr/messages_tr_terminal_json_[json]_cjs_0xpix8g._.js +1 -1
  92. package/.next/standalone/.next/server/chunks/ssr/messages_zh-CN_terminal_json_[json]_cjs_12vwl8a._.js +1 -1
  93. package/.next/standalone/.next/server/chunks/ssr/messages_zh-TW_terminal_json_[json]_cjs_0spg5z5._.js +1 -1
  94. package/.next/standalone/.next/server/chunks/ssr/{src_components_0d4m83h._.js → src_components_0_56f_g._.js} +2 -2
  95. package/.next/standalone/.next/server/chunks/ssr/{src_components_04f605r._.js → src_components_0e3ns-w._.js} +2 -2
  96. package/.next/standalone/.next/server/chunks/ssr/{src_components_0.nm9ll._.js → src_components_0jcwh3u._.js} +2 -2
  97. package/.next/standalone/.next/server/chunks/ssr/{src_components_01~-dgu._.js → src_components_0paa~91._.js} +2 -2
  98. package/.next/standalone/.next/server/chunks/ssr/src_components_0rlb8s4._.js +3 -0
  99. package/.next/standalone/.next/server/chunks/ssr/src_components_0v26ue2._.js +3 -0
  100. package/.next/standalone/.next/server/chunks/ssr/src_components_0x3hwr-._.js +3 -0
  101. package/.next/standalone/.next/server/chunks/ssr/src_components_0xdixup._.js +3 -0
  102. package/.next/standalone/.next/server/chunks/ssr/src_components_features_mobile_mobile-terminal-page_tsx_02chzch._.js +1 -1
  103. package/.next/standalone/.next/server/chunks/ssr/src_components_layout_page-shell_tsx_00344x7._.js +1 -1
  104. package/.next/standalone/.next/server/chunks/ssr/src_lib_tab-title_ts_0vqr2qr._.js +3 -0
  105. package/.next/standalone/.next/server/middleware-build-manifest.js +60 -60
  106. package/.next/standalone/.next/server/middleware.js +1 -1
  107. package/.next/standalone/.next/server/pages/_app/build-manifest.json +4 -4
  108. package/.next/standalone/.next/server/pages/_app/client-build-manifest.json +1 -1
  109. package/.next/standalone/.next/server/pages/_app.js +1 -1
  110. package/.next/standalone/.next/server/pages/_app.js.nft.json +1 -1
  111. package/.next/standalone/.next/server/pages/_document.js +1 -1
  112. package/.next/standalone/.next/server/pages/_document.js.nft.json +1 -1
  113. package/.next/standalone/.next/server/pages/_error.js +3 -3
  114. package/.next/standalone/.next/server/pages/_error.js.nft.json +1 -1
  115. package/.next/standalone/.next/server/pages/agents/[agentId]/chat/build-manifest.json +7 -7
  116. package/.next/standalone/.next/server/pages/agents/[agentId]/chat/client-build-manifest.json +1 -1
  117. package/.next/standalone/.next/server/pages/agents/[agentId]/chat/react-loadable-manifest.json +1 -1
  118. package/.next/standalone/.next/server/pages/agents/[agentId]/chat.js +12 -12
  119. package/.next/standalone/.next/server/pages/agents/[agentId]/chat.js.nft.json +1 -1
  120. package/.next/standalone/.next/server/pages/agents/[agentId]/memory/build-manifest.json +7 -7
  121. package/.next/standalone/.next/server/pages/agents/[agentId]/memory/client-build-manifest.json +1 -1
  122. package/.next/standalone/.next/server/pages/agents/[agentId]/memory/react-loadable-manifest.json +1 -1
  123. package/.next/standalone/.next/server/pages/agents/[agentId]/memory.js +10 -10
  124. package/.next/standalone/.next/server/pages/agents/[agentId]/memory.js.nft.json +1 -1
  125. package/.next/standalone/.next/server/pages/agents/[agentId]/workspace/build-manifest.json +7 -7
  126. package/.next/standalone/.next/server/pages/agents/[agentId]/workspace/client-build-manifest.json +1 -1
  127. package/.next/standalone/.next/server/pages/agents/[agentId]/workspace/react-loadable-manifest.json +1 -1
  128. package/.next/standalone/.next/server/pages/agents/[agentId]/workspace.js +8 -8
  129. package/.next/standalone/.next/server/pages/agents/[agentId]/workspace.js.nft.json +1 -1
  130. package/.next/standalone/.next/server/pages/agents/build-manifest.json +6 -6
  131. package/.next/standalone/.next/server/pages/agents/client-build-manifest.json +1 -1
  132. package/.next/standalone/.next/server/pages/agents/react-loadable-manifest.json +1 -1
  133. package/.next/standalone/.next/server/pages/agents.js +9 -9
  134. package/.next/standalone/.next/server/pages/agents.js.nft.json +1 -1
  135. package/.next/standalone/.next/server/pages/api/agent/[agentId]/chat.js +1 -1
  136. package/.next/standalone/.next/server/pages/api/agent/[agentId]/chat.js.nft.json +1 -1
  137. package/.next/standalone/.next/server/pages/api/agent/[agentId]/restart.js +1 -1
  138. package/.next/standalone/.next/server/pages/api/agent/[agentId]/restart.js.nft.json +1 -1
  139. package/.next/standalone/.next/server/pages/api/agent/[agentId]/send.js +1 -1
  140. package/.next/standalone/.next/server/pages/api/agent/[agentId]/send.js.nft.json +1 -1
  141. package/.next/standalone/.next/server/pages/api/agent/[agentId]/workspace.js +1 -1
  142. package/.next/standalone/.next/server/pages/api/agent/[agentId]/workspace.js.nft.json +1 -1
  143. package/.next/standalone/.next/server/pages/api/agent/[agentId].js +1 -1
  144. package/.next/standalone/.next/server/pages/api/agent/[agentId].js.nft.json +1 -1
  145. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/brain-hook.js +1 -1
  146. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/brain-hook.js.nft.json +1 -1
  147. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/hook.js +1 -1
  148. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/hook.js.nft.json +1 -1
  149. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/result.js +1 -1
  150. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/result.js.nft.json +1 -1
  151. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/send.js +1 -1
  152. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/send.js.nft.json +1 -1
  153. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/status.js +1 -1
  154. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId]/status.js.nft.json +1 -1
  155. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId].js +1 -1
  156. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab/[tabId].js.nft.json +1 -1
  157. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab.js +1 -1
  158. package/.next/standalone/.next/server/pages/api/agent-rpc/[agentId]/tab.js.nft.json +1 -1
  159. package/.next/standalone/.next/server/pages/api/agent-rpc/message.js +1 -1
  160. package/.next/standalone/.next/server/pages/api/agent-rpc/message.js.nft.json +1 -1
  161. package/.next/standalone/.next/server/pages/api/agent-rpc/workspaces.js +1 -1
  162. package/.next/standalone/.next/server/pages/api/agent-rpc/workspaces.js.nft.json +1 -1
  163. package/.next/standalone/.next/server/pages/api/agent.js +1 -1
  164. package/.next/standalone/.next/server/pages/api/agent.js.nft.json +1 -1
  165. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId]/move.js +2 -2
  166. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId]/move.js.nft.json +1 -1
  167. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId].js +5 -5
  168. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/[tabId].js.nft.json +1 -1
  169. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/order.js +2 -2
  170. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs/order.js.nft.json +1 -1
  171. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs.js +2 -2
  172. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId]/tabs.js.nft.json +1 -1
  173. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId].js +2 -2
  174. package/.next/standalone/.next/server/pages/api/layout/pane/[paneId].js.nft.json +1 -1
  175. package/.next/standalone/.next/server/pages/api/layout/pane.js +2 -2
  176. package/.next/standalone/.next/server/pages/api/layout/pane.js.nft.json +1 -1
  177. package/.next/standalone/.next/server/pages/api/layout.js +2 -2
  178. package/.next/standalone/.next/server/pages/api/layout.js.nft.json +1 -1
  179. package/.next/standalone/.next/server/pages/api/message-history.js +2 -2
  180. package/.next/standalone/.next/server/pages/api/message-history.js.nft.json +1 -1
  181. package/.next/standalone/.next/server/pages/api/push/vapid-key.js +1 -1
  182. package/.next/standalone/.next/server/pages/api/push/vapid-key.js.nft.json +1 -1
  183. package/.next/standalone/.next/server/pages/api/status/hook.js +6 -6
  184. package/.next/standalone/.next/server/pages/api/status/hook.js.nft.json +1 -1
  185. package/.next/standalone/.next/server/pages/api/tmux/capture/pages-manifest.json +3 -0
  186. package/.next/standalone/.next/server/pages/api/tmux/capture.js +5 -0
  187. package/.next/standalone/.next/server/pages/api/tmux/capture.js.map +5 -0
  188. package/.next/standalone/.next/server/pages/api/tmux/capture.js.nft.json +1 -0
  189. package/.next/standalone/.next/server/pages/api/tmux/recover-unknown.js +6 -6
  190. package/.next/standalone/.next/server/pages/api/tmux/recover-unknown.js.nft.json +1 -1
  191. package/.next/standalone/.next/server/pages/api/tmux/reset.js +4 -4
  192. package/.next/standalone/.next/server/pages/api/tmux/reset.js.nft.json +1 -1
  193. package/.next/standalone/.next/server/pages/api/workspace/[workspaceId].js +2 -2
  194. package/.next/standalone/.next/server/pages/api/workspace/[workspaceId].js.nft.json +1 -1
  195. package/.next/standalone/.next/server/pages/api/workspace/active.js +2 -2
  196. package/.next/standalone/.next/server/pages/api/workspace/active.js.nft.json +1 -1
  197. package/.next/standalone/.next/server/pages/api/workspace/reorder.js +2 -2
  198. package/.next/standalone/.next/server/pages/api/workspace/reorder.js.nft.json +1 -1
  199. package/.next/standalone/.next/server/pages/api/workspace/validate.js +2 -2
  200. package/.next/standalone/.next/server/pages/api/workspace/validate.js.nft.json +1 -1
  201. package/.next/standalone/.next/server/pages/api/workspace.js +4 -4
  202. package/.next/standalone/.next/server/pages/api/workspace.js.nft.json +1 -1
  203. package/.next/standalone/.next/server/pages/de/404.html +1 -1
  204. package/.next/standalone/.next/server/pages/de/500.html +1 -1
  205. package/.next/standalone/.next/server/pages/en/404.html +1 -1
  206. package/.next/standalone/.next/server/pages/en/500.html +1 -1
  207. package/.next/standalone/.next/server/pages/es/404.html +1 -1
  208. package/.next/standalone/.next/server/pages/es/500.html +1 -1
  209. package/.next/standalone/.next/server/pages/fr/404.html +1 -1
  210. package/.next/standalone/.next/server/pages/fr/500.html +1 -1
  211. package/.next/standalone/.next/server/pages/index/build-manifest.json +6 -6
  212. package/.next/standalone/.next/server/pages/index/client-build-manifest.json +1 -1
  213. package/.next/standalone/.next/server/pages/index/react-loadable-manifest.json +6 -6
  214. package/.next/standalone/.next/server/pages/index.js +6 -6
  215. package/.next/standalone/.next/server/pages/index.js.nft.json +1 -1
  216. package/.next/standalone/.next/server/pages/ja/404.html +1 -1
  217. package/.next/standalone/.next/server/pages/ja/500.html +1 -1
  218. package/.next/standalone/.next/server/pages/ko/404.html +1 -1
  219. package/.next/standalone/.next/server/pages/ko/500.html +1 -1
  220. package/.next/standalone/.next/server/pages/login.js +3 -3
  221. package/.next/standalone/.next/server/pages/login.js.nft.json +1 -1
  222. package/.next/standalone/.next/server/pages/pt-BR/404.html +1 -1
  223. package/.next/standalone/.next/server/pages/pt-BR/500.html +1 -1
  224. package/.next/standalone/.next/server/pages/reports/build-manifest.json +6 -6
  225. package/.next/standalone/.next/server/pages/reports/client-build-manifest.json +1 -1
  226. package/.next/standalone/.next/server/pages/reports/react-loadable-manifest.json +1 -1
  227. package/.next/standalone/.next/server/pages/reports.js +5 -5
  228. package/.next/standalone/.next/server/pages/reports.js.nft.json +1 -1
  229. package/.next/standalone/.next/server/pages/reset.js +4 -4
  230. package/.next/standalone/.next/server/pages/reset.js.nft.json +1 -1
  231. package/.next/standalone/.next/server/pages/ru/404.html +1 -1
  232. package/.next/standalone/.next/server/pages/ru/500.html +1 -1
  233. package/.next/standalone/.next/server/pages/stats/build-manifest.json +6 -6
  234. package/.next/standalone/.next/server/pages/stats/client-build-manifest.json +1 -1
  235. package/.next/standalone/.next/server/pages/stats/react-loadable-manifest.json +1 -1
  236. package/.next/standalone/.next/server/pages/stats.js +5 -5
  237. package/.next/standalone/.next/server/pages/stats.js.nft.json +1 -1
  238. package/.next/standalone/.next/server/pages/tools-required.js +4 -4
  239. package/.next/standalone/.next/server/pages/tools-required.js.nft.json +1 -1
  240. package/.next/standalone/.next/server/pages/tr/404.html +1 -1
  241. package/.next/standalone/.next/server/pages/tr/500.html +1 -1
  242. package/.next/standalone/.next/server/pages/webview/build-manifest.json +8 -8
  243. package/.next/standalone/.next/server/pages/webview/client-build-manifest.json +1 -1
  244. package/.next/standalone/.next/server/pages/webview/react-loadable-manifest.json +1 -1
  245. package/.next/standalone/.next/server/pages/webview.js +6 -6
  246. package/.next/standalone/.next/server/pages/webview.js.nft.json +1 -1
  247. package/.next/standalone/.next/server/pages/zh-CN/404.html +1 -1
  248. package/.next/standalone/.next/server/pages/zh-CN/500.html +1 -1
  249. package/.next/standalone/.next/server/pages/zh-TW/404.html +1 -1
  250. package/.next/standalone/.next/server/pages/zh-TW/500.html +1 -1
  251. package/.next/standalone/.next/server/pages-manifest.json +1 -0
  252. package/.next/standalone/.next/static/chunks/0.5eh0_-yhicc.js +1 -0
  253. package/.next/standalone/.next/static/chunks/{0mi.f1.iffvs7.js → 01d692xfta~wu.js} +1 -1
  254. package/.next/standalone/.next/static/chunks/{09wg815lxyi._.js → 02gnjar.lxuws.js} +1 -1
  255. package/.next/standalone/.next/static/chunks/02ircyk~cxhbg.css +1 -0
  256. package/.next/standalone/.next/static/chunks/{02hya8y6ngh8h.js → 02q9pu6q7.l~3.js} +1 -1
  257. package/.next/standalone/.next/static/chunks/0401hdgf~vj4v.js +1 -0
  258. package/.next/standalone/.next/static/chunks/04_yg9ypn8qiz.js +1 -0
  259. package/.next/standalone/.next/static/chunks/{0kmwqchx6vxwc.js → 04dv9g-lid7wt.js} +1 -1
  260. package/.next/standalone/.next/static/chunks/{12~ueg_4wkgfs.js → 05h6d1rcn5bel.js} +1 -1
  261. package/.next/standalone/.next/static/chunks/061-qvu6q98wm.js +1 -0
  262. package/.next/standalone/.next/static/chunks/06mr49_fnc8az.js +5 -0
  263. package/.next/standalone/.next/static/chunks/0_yny5ar-z2s3.js +1 -0
  264. package/.next/standalone/.next/static/chunks/0acaolvighqxm.js +1 -0
  265. package/.next/standalone/.next/static/chunks/{0epyfzijr8853.js → 0bh~wl_bl417r.js} +1 -1
  266. package/.next/standalone/.next/static/chunks/0cg-slv_rmqe-.js +1 -0
  267. package/.next/standalone/.next/static/chunks/{10q_80uhujl-n.js → 0cli1.~zk8wse.js} +7 -7
  268. package/.next/standalone/.next/static/chunks/0d6qi9tqbf42w.js +1 -0
  269. package/.next/standalone/.next/static/chunks/0j.yvb5h7demd.js +1 -0
  270. package/.next/standalone/.next/static/chunks/{00ll0wq7g5_ab.js → 0j3x5k7.~_wcp.js} +4 -4
  271. package/.next/standalone/.next/static/chunks/0jkyto637lhqd.js +1 -0
  272. package/.next/standalone/.next/static/chunks/0jpvbtekyubts.js +1 -0
  273. package/.next/standalone/.next/static/chunks/{09auw~hymill5.js → 0kdj5_dzk3fd1.js} +7 -7
  274. package/.next/standalone/.next/static/chunks/0ki_toswb6bjm.js +1 -0
  275. package/.next/standalone/.next/static/chunks/{14rag.6lha5-y.js → 0kljjbqouk1qn.js} +7 -7
  276. package/.next/standalone/.next/static/chunks/{0zwzi3f2rc3z4.js → 0m_x6~5my5c43.js} +6 -6
  277. package/.next/standalone/.next/static/chunks/0nogko.ikj3te.js +1 -0
  278. package/.next/standalone/.next/static/chunks/0o7vp7rng47dj.js +1 -0
  279. package/.next/standalone/.next/static/chunks/{0uwhwut9t42z..js → 0r8h5mb2jwk_v.js} +1 -1
  280. package/.next/standalone/.next/static/chunks/{0rr4-5v-_uawq.js → 0rd8csdqbk5~1.js} +1 -1
  281. package/.next/standalone/.next/static/chunks/0so.kz5bwwczu.js +5 -0
  282. package/.next/standalone/.next/static/chunks/0so7joqaux87c.js +1 -0
  283. package/.next/standalone/.next/static/chunks/0tn0snc61desh.js +1 -0
  284. package/.next/standalone/.next/static/chunks/{01jjn.wyn_ncl.js → 0vqotg9w802l4.js} +1 -1
  285. package/.next/standalone/.next/static/chunks/{072lr.h0_1017.js → 0x677_z0._0q5.js} +6 -6
  286. package/.next/standalone/.next/static/chunks/{09v9onq32.q9o.js → 0xx3rz.w1--om.js} +6 -6
  287. package/.next/standalone/.next/static/chunks/{019qnp3cdlqll.js → 0z35he4yjgs1d.js} +8 -8
  288. package/.next/standalone/.next/static/chunks/{0cc9wtn2ws_hj.js → 10rr~our302-0.js} +1 -1
  289. package/.next/standalone/.next/static/chunks/11267j.1xw4gl.js +1 -0
  290. package/.next/standalone/.next/static/chunks/12.uhnc724hct.js +1 -0
  291. package/.next/standalone/.next/static/chunks/133u2bvymc-kf.js +1 -0
  292. package/.next/standalone/.next/static/chunks/13fs6gs1qz2s5.js +1 -0
  293. package/.next/standalone/.next/static/chunks/{0y.2idt4jy0v8.js → 14c72e3w-444g.js} +6 -6
  294. package/.next/standalone/.next/static/chunks/16l~ncr0z2zwu.js +1 -0
  295. package/.next/standalone/.next/static/chunks/16r01~tnxag_s.js +1 -0
  296. package/.next/standalone/.next/static/chunks/17tl405a7vewu.js +1 -0
  297. package/.next/standalone/.next/static/chunks/{turbopack-14zdukk1meg5n.js → turbopack-0-ohlhkewu6e2.js} +1 -1
  298. package/.next/standalone/.next/static/chunks/{turbopack-0wzedz_6usy8n.js → turbopack-0_8km18w_rgro.js} +1 -1
  299. package/.next/standalone/.next/static/chunks/{turbopack-0v.9~z92dgw~6.js → turbopack-0j6jpe-_yz4tv.js} +1 -1
  300. package/.next/standalone/.next/static/chunks/{turbopack-0sqhowkqu.h25.js → turbopack-0mwk4qs65m4_8.js} +1 -1
  301. package/.next/standalone/.next/static/chunks/{turbopack-0um3302fiwl.8.js → turbopack-0ntged4i7vf4a.js} +1 -1
  302. package/.next/standalone/.next/static/chunks/{turbopack-091shq5m7aijg.js → turbopack-0vintfhjmiip8.js} +1 -1
  303. package/.next/standalone/.next/static/chunks/{turbopack-03wgtzkruqo9d.js → turbopack-0yqiby6vqs7vt.js} +1 -1
  304. package/.next/standalone/.next/static/chunks/{turbopack-11briqm29_e1a.js → turbopack-0z71k-.h95c4p.js} +1 -1
  305. package/.next/standalone/.next/static/chunks/{turbopack-0l-gurbj0.orc.js → turbopack-18czn1x5cnma7.js} +1 -1
  306. package/.next/standalone/.next/static/{mG4eqGEgMBuU5tAi2sxtl → sB5f1y1Uz9rdDIp-gf6rp}/_buildManifest.js +9 -8
  307. package/.next/standalone/messages/de/terminal.json +10 -1
  308. package/.next/standalone/messages/en/terminal.json +10 -1
  309. package/.next/standalone/messages/es/terminal.json +10 -1
  310. package/.next/standalone/messages/fr/terminal.json +10 -1
  311. package/.next/standalone/messages/ja/terminal.json +10 -1
  312. package/.next/standalone/messages/ko/terminal.json +10 -1
  313. package/.next/standalone/messages/pt-BR/terminal.json +10 -1
  314. package/.next/standalone/messages/ru/terminal.json +10 -1
  315. package/.next/standalone/messages/tr/terminal.json +10 -1
  316. package/.next/standalone/messages/zh-CN/terminal.json +10 -1
  317. package/.next/standalone/messages/zh-TW/terminal.json +10 -1
  318. package/.next/standalone/package.json +2 -2
  319. package/.next/standalone/server.js +1 -1
  320. package/dist/server.js +76 -45
  321. package/package.json +2 -2
  322. package/.next/standalone/.next/server/chunks/[externals]__0l1mhe5._.js +0 -3
  323. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0bt7gbi._.js +0 -3
  324. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0nko7pr._.js +0 -3
  325. package/.next/standalone/.next/server/chunks/_0.6teir._.js +0 -3
  326. package/.next/standalone/.next/server/chunks/_0az0go-._.js +0 -3
  327. package/.next/standalone/.next/server/chunks/_0p4lgw2._.js +0 -3
  328. package/.next/standalone/.next/server/chunks/ssr/_02xys-k._.js +0 -7
  329. package/.next/standalone/.next/server/chunks/ssr/_0r8i4sz._.js +0 -3
  330. package/.next/standalone/.next/server/chunks/ssr/_12sjhza._.js +0 -7
  331. package/.next/standalone/.next/server/chunks/ssr/src_components_0gltgxp._.js +0 -3
  332. package/.next/standalone/.next/server/chunks/ssr/src_components_0ya0dyi._.js +0 -3
  333. package/.next/standalone/.next/server/chunks/ssr/src_components_0yv7e6~._.js +0 -3
  334. package/.next/standalone/.next/server/chunks/ssr/src_components_10o5~4j._.js +0 -3
  335. package/.next/standalone/.next/static/chunks/0-sg4kua_koj3.js +0 -1
  336. package/.next/standalone/.next/static/chunks/01_k6x8wlb8-9.js +0 -1
  337. package/.next/standalone/.next/static/chunks/01u8i_srzu1bi.js +0 -1
  338. package/.next/standalone/.next/static/chunks/02lycfk~b_9ps.js +0 -1
  339. package/.next/standalone/.next/static/chunks/02qyd-w_8qzow.js +0 -1
  340. package/.next/standalone/.next/static/chunks/05r1jaq5c83x4.js +0 -1
  341. package/.next/standalone/.next/static/chunks/0_vi4_~nojpg6.js +0 -1
  342. package/.next/standalone/.next/static/chunks/0c6dh~_8nm8rw.js +0 -1
  343. package/.next/standalone/.next/static/chunks/0c8._01-id.jr.js +0 -1
  344. package/.next/standalone/.next/static/chunks/0dz5dqn26cusn.js +0 -1
  345. package/.next/standalone/.next/static/chunks/0g7dnwyslqeva.css +0 -1
  346. package/.next/standalone/.next/static/chunks/0igc5x66mp3y1.js +0 -1
  347. package/.next/standalone/.next/static/chunks/0nyqd-g9.1_ds.js +0 -1
  348. package/.next/standalone/.next/static/chunks/0rm79dcgdvabz.js +0 -1
  349. package/.next/standalone/.next/static/chunks/0uc3c0x4yp~g_.js +0 -1
  350. package/.next/standalone/.next/static/chunks/0vjl9v9ti52-t.js +0 -1
  351. package/.next/standalone/.next/static/chunks/0ygr.-bo5mo3a.js +0 -1
  352. package/.next/standalone/.next/static/chunks/0yoqx-p57vv4h.js +0 -1
  353. package/.next/standalone/.next/static/chunks/0zbiq5qe~ekdz.js +0 -1
  354. package/.next/standalone/.next/static/chunks/0zd2r1o1p44g-.js +0 -1
  355. package/.next/standalone/.next/static/chunks/0z~upx8kxb56s.js +0 -1
  356. package/.next/standalone/.next/static/chunks/11bhs_nxim363.js +0 -5
  357. package/.next/standalone/.next/static/chunks/12r4bxpyxo0h-.js +0 -5
  358. package/.next/standalone/.next/static/chunks/140fifc12jmjv.js +0 -1
  359. package/.next/standalone/.next/static/chunks/14m.aoz.w13fh.js +0 -1
  360. package/.next/standalone/.next/static/chunks/17cx6pxsrv086.js +0 -1
  361. /package/.next/standalone/.next/static/{mG4eqGEgMBuU5tAi2sxtl → sB5f1y1Uz9rdDIp-gf6rp}/_clientMiddlewareManifest.js +0 -0
  362. /package/.next/standalone/.next/static/{mG4eqGEgMBuU5tAi2sxtl → sB5f1y1Uz9rdDIp-gf6rp}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- mG4eqGEgMBuU5tAi2sxtl
1
+ sB5f1y1Uz9rdDIp-gf6rp
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "pages": {
3
3
  "/": [
4
- "static/chunks/0epyfzijr8853.js",
4
+ "static/chunks/0bh~wl_bl417r.js",
5
5
  "static/chunks/0y1iobvr7xv~m.js",
6
6
  "static/chunks/06wc2umsaus4g.js",
7
- "static/chunks/01u8i_srzu1bi.js",
7
+ "static/chunks/0o7vp7rng47dj.js",
8
8
  "static/chunks/0qe146f.3s0ud.js",
9
9
  "static/chunks/12t3ws50siqw1.js",
10
10
  "static/chunks/0-sxrfxgcu1ce.js",
@@ -13,25 +13,25 @@
13
13
  "static/chunks/0wlz6--vu7adu.js",
14
14
  "static/chunks/0ml5~2ty-rbv_.js",
15
15
  "static/chunks/0yi.kp2rt4-nc.js",
16
+ "static/chunks/133u2bvymc-kf.js",
17
+ "static/chunks/061-qvu6q98wm.js",
16
18
  "static/chunks/00yfl7agnve...js",
17
- "static/chunks/09wg815lxyi._.js",
18
- "static/chunks/02lycfk~b_9ps.js",
19
19
  "static/chunks/0ti3g2b7fhm5v.js",
20
20
  "static/chunks/05-mpg38w0a82.js",
21
- "static/chunks/0dz5dqn26cusn.js",
22
- "static/chunks/turbopack-091shq5m7aijg.js"
21
+ "static/chunks/02gnjar.lxuws.js",
22
+ "static/chunks/turbopack-0vintfhjmiip8.js"
23
23
  ],
24
24
  "/_app": [
25
- "static/chunks/02hya8y6ngh8h.js",
25
+ "static/chunks/02q9pu6q7.l~3.js",
26
26
  "static/chunks/08h59hstdxbn0.js",
27
27
  "static/chunks/00x-ygjkfbgnz.js",
28
28
  "static/chunks/00yfl7agnve...js",
29
29
  "static/chunks/0yi.kp2rt4-nc.js",
30
- "static/chunks/0cc9wtn2ws_hj.js",
30
+ "static/chunks/10rr~our302-0.js",
31
31
  "static/chunks/05-mpg38w0a82.js",
32
- "static/chunks/0g7dnwyslqeva.css",
32
+ "static/chunks/02ircyk~cxhbg.css",
33
33
  "static/chunks/0z3gpm0o.mwwy.css",
34
- "static/chunks/turbopack-0wzedz_6usy8n.js"
34
+ "static/chunks/turbopack-0_8km18w_rgro.js"
35
35
  ],
36
36
  "/_error": [
37
37
  "static/chunks/0~o730huopa91.js",
@@ -40,7 +40,7 @@
40
40
  "static/chunks/turbopack-0vqdj~g~ggw3x.js"
41
41
  ],
42
42
  "/agents": [
43
- "static/chunks/01jjn.wyn_ncl.js",
43
+ "static/chunks/0vqotg9w802l4.js",
44
44
  "static/chunks/0cjfef2q~d_lg.js",
45
45
  "static/chunks/05-mpg38w0a82.js",
46
46
  "static/chunks/0ay.h74rl2t2c.js",
@@ -48,21 +48,21 @@
48
48
  "static/chunks/0ti3g2b7fhm5v.js",
49
49
  "static/chunks/0-sxrfxgcu1ce.js",
50
50
  "static/chunks/06fd4gm.ayhf7.js",
51
- "static/chunks/0zbiq5qe~ekdz.js",
52
- "static/chunks/02lycfk~b_9ps.js",
51
+ "static/chunks/0.5eh0_-yhicc.js",
52
+ "static/chunks/061-qvu6q98wm.js",
53
53
  "static/chunks/0yi.kp2rt4-nc.js",
54
54
  "static/chunks/00yfl7agnve...js",
55
- "static/chunks/0dz5dqn26cusn.js",
56
- "static/chunks/09wg815lxyi._.js",
55
+ "static/chunks/02gnjar.lxuws.js",
56
+ "static/chunks/133u2bvymc-kf.js",
57
57
  "static/chunks/0wlz6--vu7adu.js",
58
58
  "static/chunks/0ml5~2ty-rbv_.js",
59
59
  "static/chunks/12t3ws50siqw1.js",
60
60
  "static/chunks/15aj3kd.p7zw6.js",
61
- "static/chunks/turbopack-11briqm29_e1a.js"
61
+ "static/chunks/turbopack-0z71k-.h95c4p.js"
62
62
  ],
63
63
  "/agents/[agentId]/chat": [
64
64
  "static/chunks/0fungak7h7t_u.js",
65
- "static/chunks/0zbiq5qe~ekdz.js",
65
+ "static/chunks/0.5eh0_-yhicc.js",
66
66
  "static/chunks/0ay.h74rl2t2c.js",
67
67
  "static/chunks/12t3ws50siqw1.js",
68
68
  "static/chunks/06fd4gm.ayhf7.js",
@@ -70,49 +70,49 @@
70
70
  "static/chunks/0ti3g2b7fhm5v.js",
71
71
  "static/chunks/0qe146f.3s0ud.js",
72
72
  "static/chunks/05-mpg38w0a82.js",
73
- "static/chunks/0uwhwut9t42z..js",
73
+ "static/chunks/0r8h5mb2jwk_v.js",
74
74
  "static/chunks/0yi.kp2rt4-nc.js",
75
75
  "static/chunks/10r8rypk5fanv.js",
76
76
  "static/chunks/0p15~kn-ue177.js",
77
77
  "static/chunks/00yfl7agnve...js",
78
- "static/chunks/09wg815lxyi._.js",
79
- "static/chunks/0wlz6--vu7adu.js",
80
- "static/chunks/02lycfk~b_9ps.js",
78
+ "static/chunks/02gnjar.lxuws.js",
79
+ "static/chunks/133u2bvymc-kf.js",
80
+ "static/chunks/061-qvu6q98wm.js",
81
81
  "static/chunks/0py3p~barq9qm.js",
82
82
  "static/chunks/0-sxrfxgcu1ce.js",
83
- "static/chunks/0dz5dqn26cusn.js",
84
83
  "static/chunks/0ml5~2ty-rbv_.js",
85
- "static/chunks/turbopack-0um3302fiwl.8.js"
84
+ "static/chunks/0wlz6--vu7adu.js",
85
+ "static/chunks/turbopack-0ntged4i7vf4a.js"
86
86
  ],
87
87
  "/agents/[agentId]/memory": [
88
- "static/chunks/0mi.f1.iffvs7.js",
88
+ "static/chunks/01d692xfta~wu.js",
89
89
  "static/chunks/0b64-twwftp.b.js",
90
90
  "static/chunks/0ay.h74rl2t2c.js",
91
91
  "static/chunks/05-mpg38w0a82.js",
92
- "static/chunks/01u8i_srzu1bi.js",
92
+ "static/chunks/0o7vp7rng47dj.js",
93
93
  "static/chunks/12t3ws50siqw1.js",
94
94
  "static/chunks/10r8rypk5fanv.js",
95
95
  "static/chunks/0py3p~barq9qm.js",
96
96
  "static/chunks/0-sxrfxgcu1ce.js",
97
97
  "static/chunks/06fd4gm.ayhf7.js",
98
- "static/chunks/02lycfk~b_9ps.js",
98
+ "static/chunks/061-qvu6q98wm.js",
99
99
  "static/chunks/0wlz6--vu7adu.js",
100
- "static/chunks/0ti3g2b7fhm5v.js",
101
- "static/chunks/0dz5dqn26cusn.js",
102
100
  "static/chunks/00yfl7agnve...js",
101
+ "static/chunks/0ti3g2b7fhm5v.js",
102
+ "static/chunks/133u2bvymc-kf.js",
103
103
  "static/chunks/0p15~kn-ue177.js",
104
104
  "static/chunks/0yi.kp2rt4-nc.js",
105
105
  "static/chunks/0ml5~2ty-rbv_.js",
106
106
  "static/chunks/0qe146f.3s0ud.js",
107
- "static/chunks/09wg815lxyi._.js",
107
+ "static/chunks/02gnjar.lxuws.js",
108
108
  "static/chunks/15aj3kd.p7zw6.js",
109
- "static/chunks/turbopack-0v.9~z92dgw~6.js"
109
+ "static/chunks/turbopack-0j6jpe-_yz4tv.js"
110
110
  ],
111
111
  "/agents/[agentId]/workspace": [
112
- "static/chunks/0kmwqchx6vxwc.js",
112
+ "static/chunks/04dv9g-lid7wt.js",
113
113
  "static/chunks/0fungak7h7t_u.js",
114
114
  "static/chunks/0ay.h74rl2t2c.js",
115
- "static/chunks/01u8i_srzu1bi.js",
115
+ "static/chunks/0o7vp7rng47dj.js",
116
116
  "static/chunks/05-mpg38w0a82.js",
117
117
  "static/chunks/00yfl7agnve...js",
118
118
  "static/chunks/15aj3kd.p7zw6.js",
@@ -120,14 +120,14 @@
120
120
  "static/chunks/06fd4gm.ayhf7.js",
121
121
  "static/chunks/0ti3g2b7fhm5v.js",
122
122
  "static/chunks/0ml5~2ty-rbv_.js",
123
- "static/chunks/0yi.kp2rt4-nc.js",
124
- "static/chunks/09wg815lxyi._.js",
123
+ "static/chunks/02gnjar.lxuws.js",
124
+ "static/chunks/133u2bvymc-kf.js",
125
125
  "static/chunks/0wlz6--vu7adu.js",
126
126
  "static/chunks/0-sxrfxgcu1ce.js",
127
- "static/chunks/0dz5dqn26cusn.js",
127
+ "static/chunks/061-qvu6q98wm.js",
128
128
  "static/chunks/0qe146f.3s0ud.js",
129
- "static/chunks/02lycfk~b_9ps.js",
130
- "static/chunks/turbopack-14zdukk1meg5n.js"
129
+ "static/chunks/0yi.kp2rt4-nc.js",
130
+ "static/chunks/turbopack-0-ohlhkewu6e2.js"
131
131
  ],
132
132
  "/login": [
133
133
  "static/chunks/14rkjvhij9msz.js",
@@ -145,7 +145,7 @@
145
145
  "static/chunks/turbopack-0k9wtm9vlbgk9.js"
146
146
  ],
147
147
  "/reports": [
148
- "static/chunks/0rr4-5v-_uawq.js",
148
+ "static/chunks/0rd8csdqbk5~1.js",
149
149
  "static/chunks/0b64-twwftp.b.js",
150
150
  "static/chunks/12t3ws50siqw1.js",
151
151
  "static/chunks/0ay.h74rl2t2c.js",
@@ -153,18 +153,18 @@
153
153
  "static/chunks/0ti3g2b7fhm5v.js",
154
154
  "static/chunks/0qe146f.3s0ud.js",
155
155
  "static/chunks/05-mpg38w0a82.js",
156
- "static/chunks/01u8i_srzu1bi.js",
156
+ "static/chunks/0o7vp7rng47dj.js",
157
157
  "static/chunks/0py3p~barq9qm.js",
158
158
  "static/chunks/0ml5~2ty-rbv_.js",
159
159
  "static/chunks/0wlz6--vu7adu.js",
160
- "static/chunks/09wg815lxyi._.js",
161
- "static/chunks/0rm79dcgdvabz.js",
160
+ "static/chunks/02gnjar.lxuws.js",
161
+ "static/chunks/0d6qi9tqbf42w.js",
162
162
  "static/chunks/0yi.kp2rt4-nc.js",
163
163
  "static/chunks/00yfl7agnve...js",
164
164
  "static/chunks/0-sxrfxgcu1ce.js",
165
- "static/chunks/02lycfk~b_9ps.js",
165
+ "static/chunks/061-qvu6q98wm.js",
166
166
  "static/chunks/06fd4gm.ayhf7.js",
167
- "static/chunks/turbopack-03wgtzkruqo9d.js"
167
+ "static/chunks/turbopack-0yqiby6vqs7vt.js"
168
168
  ],
169
169
  "/reset": [
170
170
  "static/chunks/0_sdw~kzk-at0.js",
@@ -175,7 +175,7 @@
175
175
  "static/chunks/turbopack-0jds356hmim~..js"
176
176
  ],
177
177
  "/stats": [
178
- "static/chunks/12~ueg_4wkgfs.js",
178
+ "static/chunks/05h6d1rcn5bel.js",
179
179
  "static/chunks/0gx~s_r.d1ncl.js",
180
180
  "static/chunks/05-mpg38w0a82.js",
181
181
  "static/chunks/0ay.h74rl2t2c.js",
@@ -183,17 +183,17 @@
183
183
  "static/chunks/0qe146f.3s0ud.js",
184
184
  "static/chunks/0-sxrfxgcu1ce.js",
185
185
  "static/chunks/06fd4gm.ayhf7.js",
186
- "static/chunks/01u8i_srzu1bi.js",
186
+ "static/chunks/0o7vp7rng47dj.js",
187
187
  "static/chunks/0ti3g2b7fhm5v.js",
188
188
  "static/chunks/00yfl7agnve...js",
189
189
  "static/chunks/0wlz6--vu7adu.js",
190
- "static/chunks/09wg815lxyi._.js",
191
- "static/chunks/02lycfk~b_9ps.js",
190
+ "static/chunks/02gnjar.lxuws.js",
191
+ "static/chunks/061-qvu6q98wm.js",
192
192
  "static/chunks/0ml5~2ty-rbv_.js",
193
- "static/chunks/05r1jaq5c83x4.js",
193
+ "static/chunks/0j.yvb5h7demd.js",
194
194
  "static/chunks/15aj3kd.p7zw6.js",
195
195
  "static/chunks/0yi.kp2rt4-nc.js",
196
- "static/chunks/turbopack-0sqhowkqu.h25.js"
196
+ "static/chunks/turbopack-0mwk4qs65m4_8.js"
197
197
  ],
198
198
  "/tools-required": [
199
199
  "static/chunks/0kf8xkvr3218u.js",
@@ -207,10 +207,10 @@
207
207
  "static/chunks/turbopack-0~eo7~9ce6n8v.js"
208
208
  ],
209
209
  "/webview": [
210
- "static/chunks/0c8._01-id.jr.js",
210
+ "static/chunks/0nogko.ikj3te.js",
211
211
  "static/chunks/0fungak7h7t_u.js",
212
212
  "static/chunks/0ay.h74rl2t2c.js",
213
- "static/chunks/01u8i_srzu1bi.js",
213
+ "static/chunks/0o7vp7rng47dj.js",
214
214
  "static/chunks/05-mpg38w0a82.js",
215
215
  "static/chunks/0ti3g2b7fhm5v.js",
216
216
  "static/chunks/0-sxrfxgcu1ce.js",
@@ -218,22 +218,22 @@
218
218
  "static/chunks/06fd4gm.ayhf7.js",
219
219
  "static/chunks/15aj3kd.p7zw6.js",
220
220
  "static/chunks/00yfl7agnve...js",
221
- "static/chunks/0dz5dqn26cusn.js",
222
- "static/chunks/0ml5~2ty-rbv_.js",
223
- "static/chunks/09wg815lxyi._.js",
221
+ "static/chunks/02gnjar.lxuws.js",
222
+ "static/chunks/133u2bvymc-kf.js",
223
+ "static/chunks/0yi.kp2rt4-nc.js",
224
224
  "static/chunks/0wlz6--vu7adu.js",
225
- "static/chunks/02lycfk~b_9ps.js",
225
+ "static/chunks/061-qvu6q98wm.js",
226
226
  "static/chunks/0qe146f.3s0ud.js",
227
- "static/chunks/0yi.kp2rt4-nc.js",
228
- "static/chunks/turbopack-0l-gurbj0.orc.js"
227
+ "static/chunks/0ml5~2ty-rbv_.js",
228
+ "static/chunks/turbopack-18czn1x5cnma7.js"
229
229
  ]
230
230
  },
231
231
  "devFiles": [],
232
232
  "polyfillFiles": [],
233
233
  "lowPriorityFiles": [
234
- "static/mG4eqGEgMBuU5tAi2sxtl/_buildManifest.js",
235
- "static/mG4eqGEgMBuU5tAi2sxtl/_ssgManifest.js",
236
- "static/mG4eqGEgMBuU5tAi2sxtl/_clientMiddlewareManifest.js"
234
+ "static/sB5f1y1Uz9rdDIp-gf6rp/_buildManifest.js",
235
+ "static/sB5f1y1Uz9rdDIp-gf6rp/_ssgManifest.js",
236
+ "static/sB5f1y1Uz9rdDIp-gf6rp/_clientMiddlewareManifest.js"
237
237
  ],
238
238
  "rootMainFiles": []
239
239
  }
@@ -3,9 +3,9 @@
3
3
  "routes": {},
4
4
  "dynamicRoutes": {},
5
5
  "preview": {
6
- "previewModeId": "9dce7d6cdff8027b974bebef336b85d5",
7
- "previewModeSigningKey": "116ab281fb98416b6604d6b37e0dbfc861f058945dfb661ecb2e74f2c228557d",
8
- "previewModeEncryptionKey": "955a68a9ed6e2aa48f57b7f8e8db2b2482a6afa6dbc726e904cdc53affa03614"
6
+ "previewModeId": "38db00efd4fababbe95737a3b782cb93",
7
+ "previewModeSigningKey": "6863a6f2e9df97e81bc72234059bbb0e2d9c42c9dd859d48bec065ab44a91b2c",
8
+ "previewModeEncryptionKey": "0d3056d4bd231d9ee2166e5aeba045a7cfbabe47682d27e4e7064912f64884f3"
9
9
  },
10
10
  "notFoundRoutes": []
11
11
  }
@@ -2,7 +2,7 @@
2
2
  "version": 1,
3
3
  "config": {
4
4
  "env": {
5
- "NEXT_PUBLIC_COMMIT_HASH": "f675f5c"
5
+ "NEXT_PUBLIC_COMMIT_HASH": "9ef67ec"
6
6
  },
7
7
  "webpack": null,
8
8
  "typescript": {
@@ -514,6 +514,12 @@
514
514
  "routeKeys": {},
515
515
  "namedRegex": "^/api/timeline/sessions(?:/)?$"
516
516
  },
517
+ {
518
+ "page": "/api/tmux/capture",
519
+ "regex": "^/api/tmux/capture(?:/)?$",
520
+ "routeKeys": {},
521
+ "namedRegex": "^/api/tmux/capture(?:/)?$"
522
+ },
517
523
  {
518
524
  "page": "/api/tmux/info",
519
525
  "regex": "^/api/tmux/info(?:/)?$",
@@ -614,59 +620,59 @@
614
620
  "dataRoutes": [
615
621
  {
616
622
  "page": "/",
617
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/index\\.json$"
623
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/index\\.json$"
618
624
  },
619
625
  {
620
626
  "page": "/agents",
621
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/agents\\.json$"
627
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/agents\\.json$"
622
628
  },
623
629
  {
624
630
  "page": "/agents/[agentId]/chat",
625
631
  "routeKeys": {
626
632
  "nxtPagentId": "nxtPagentId"
627
633
  },
628
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/agents/([^/]+?)/chat\\.json$",
629
- "namedDataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/agents/(?<nxtPagentId>[^/]+?)/chat\\.json$"
634
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/agents/([^/]+?)/chat\\.json$",
635
+ "namedDataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/agents/(?<nxtPagentId>[^/]+?)/chat\\.json$"
630
636
  },
631
637
  {
632
638
  "page": "/agents/[agentId]/memory",
633
639
  "routeKeys": {
634
640
  "nxtPagentId": "nxtPagentId"
635
641
  },
636
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/agents/([^/]+?)/memory\\.json$",
637
- "namedDataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/agents/(?<nxtPagentId>[^/]+?)/memory\\.json$"
642
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/agents/([^/]+?)/memory\\.json$",
643
+ "namedDataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/agents/(?<nxtPagentId>[^/]+?)/memory\\.json$"
638
644
  },
639
645
  {
640
646
  "page": "/agents/[agentId]/workspace",
641
647
  "routeKeys": {
642
648
  "nxtPagentId": "nxtPagentId"
643
649
  },
644
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/agents/([^/]+?)/workspace\\.json$",
645
- "namedDataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/agents/(?<nxtPagentId>[^/]+?)/workspace\\.json$"
650
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/agents/([^/]+?)/workspace\\.json$",
651
+ "namedDataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/agents/(?<nxtPagentId>[^/]+?)/workspace\\.json$"
646
652
  },
647
653
  {
648
654
  "page": "/login",
649
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/login\\.json$"
655
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/login\\.json$"
650
656
  },
651
657
  {
652
658
  "page": "/reports",
653
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/reports\\.json$"
659
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/reports\\.json$"
654
660
  },
655
661
  {
656
662
  "page": "/reset",
657
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/reset\\.json$"
663
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/reset\\.json$"
658
664
  },
659
665
  {
660
666
  "page": "/stats",
661
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/stats\\.json$"
667
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/stats\\.json$"
662
668
  },
663
669
  {
664
670
  "page": "/tools-required",
665
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/tools-required\\.json$"
671
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/tools-required\\.json$"
666
672
  },
667
673
  {
668
674
  "page": "/webview",
669
- "dataRouteRegex": "^/_next/data/mG4eqGEgMBuU5tAi2sxtl/webview\\.json$"
675
+ "dataRouteRegex": "^/_next/data/sB5f1y1Uz9rdDIp\\-gf6rp/webview\\.json$"
670
676
  }
671
677
  ],
672
678
  "i18n": {
@@ -0,0 +1,3 @@
1
+ module.exports=[814747,(e,t,p)=>{t.exports=e.x("path",()=>require("path"))},270406,(e,t,p)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},254799,(e,t,p)=>{t.exports=e.x("crypto",()=>require("crypto"))}];
2
+
3
+ //# sourceMappingURL=%5Bexternals%5D__13k.c.~._.js.map
@@ -56,6 +56,6 @@ CTX_FMT=""
56
56
  [ -n "$CTX" ] && CTX_FMT=" \xb7 ctx $(printf '%.0f' "$CTX")%"
57
57
 
58
58
  echo "\${MODEL}\${CTX_FMT} \xb7 \${TOKENS} \xb7 +\${ADDED} -\${REMOVED}"
59
- `;e.s(["RATE_LIMITS_FILE",0,s,"STATUSLINE_SCRIPT_CONTENT",0,o,"STATUSLINE_SCRIPT_PATH",0,i])},34717,e=>{"use strict";var t=e.i(926747),a=e.i(190406),r=e.i(244898),i=e.i(262950),s=e.i(964759);let o=(0,e.i(25146).createLogger)("hooks"),n=async(e,t)=>{let a;if("POST"!==e.method)return t.setHeader("Allow","POST"),t.status(405).json({error:"Method not allowed"});if("127.0.0.1"!==(a=e.socket.remoteAddress)&&"::1"!==a&&"::ffff:127.0.0.1"!==a)return t.status(403).json({error:"Forbidden"});let{event:r,session:i,notificationType:n}=e.body??{};if("string"==typeof r&&"poll"!==r&&"string"==typeof i&&i){let e="string"==typeof n&&n?n:void 0;o.debug({event:r,session:i,notificationType:e},`received ${r}${e?`(${e})`:""}`),(0,s.getStatusManager)().updateTabFromHook(i,r,e)}else o.debug({body:e.body},"poll trigger"),(0,s.getStatusManager)().poll().catch(e=>{o.error({err:e},"Poll trigger failed")});return t.status(204).end()};e.s(["default",0,n],860464);var l=e.i(860464),c=e.i(7031),d=e.i(181927),u=e.i(846432);let p=(0,i.hoist)(l,"default"),f=(0,i.hoist)(l,"config"),w=new r.PagesAPIRouteModule({definition:{kind:a.RouteKind.PAGES_API,page:"/api/status/hook",pathname:"/api/status/hook",bundlePath:"",filename:""},userland:l,distDir:".next",relativeProjectDir:""});async function y(e,a,r){r.requestMeta&&(0,u.setRequestMeta)(e,r.requestMeta),w.isDev&&(0,u.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let i="/api/status/hook";i=i.replace(/\/index$/,"")||"/";let s=await w.prepare(e,a,{srcPage:i});if(!s){a.statusCode=400,a.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve());return}let{query:o,params:n,prerenderManifest:l,routerServerContext:p}=s;try{let t,r=e.method||"GET",s=(0,c.getTracer)(),u=s.getActiveScopeSpan(),f=!!(null==p?void 0:p.isWrappedByNextServer),y=w.instrumentationOnRequestError.bind(w),h=async c=>w.render(e,a,{query:{...o,...n},params:n,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:l.preview,propagateError:!1,dev:w.isDev,page:"/api/status/hook",internalRevalidate:null==p?void 0:p.revalidate,onError:(...t)=>y(e,...t)}).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":a.statusCode,"next.rsc":!1});let e=s.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let o=e.get("next.route");if(o){let e=`${r} ${o}`;c.setAttributes({"next.route":o,"http.route":o,"next.span_name":e}),c.updateName(e),t&&t!==c&&(t.setAttribute("http.route",o),t.updateName(e))}else c.updateName(`${r} ${i}`)});f&&u?await h(u):(t=s.getActiveScopeSpan(),await s.withPropagatedContext(e.headers,()=>s.trace(d.BaseServerSpan.handleRequest,{spanName:`${r} ${i}`,kind:c.SpanKind.SERVER,attributes:{"http.method":r,"http.target":e.url}},h),void 0,!f))}catch(e){if(w.isDev)throw e;(0,t.sendError)(a,500,"Internal Server Error")}finally{null==r.waitUntil||r.waitUntil.call(r,Promise.resolve())}}e.s(["config",0,f,"default",0,p,"handler",0,y],34717)},981532,e=>{e.v(e=>Promise.resolve().then(()=>e(322429)))}];
59
+ `;e.s(["RATE_LIMITS_FILE",0,s,"STATUSLINE_SCRIPT_CONTENT",0,o,"STATUSLINE_SCRIPT_PATH",0,i])},34717,e=>{"use strict";var t=e.i(926747),a=e.i(190406),r=e.i(244898),i=e.i(262950),s=e.i(964759);let o=(0,e.i(25146).createLogger)("hooks"),n=async(e,t)=>{let a;if("POST"!==e.method)return t.setHeader("Allow","POST"),t.status(405).json({error:"Method not allowed"});if("127.0.0.1"!==(a=e.socket.remoteAddress)&&"::1"!==a&&"::ffff:127.0.0.1"!==a)return t.status(403).json({error:"Forbidden"});let{event:r,session:i,notificationType:n}=e.body??{};if("string"==typeof r&&"poll"!==r&&"string"==typeof i&&i){let e="string"==typeof n&&n?n:void 0;o.debug({event:r,session:i,notificationType:e},`received ${r}${e?`(${e})`:""}`),(0,s.getStatusManager)().updateTabFromHook(i,r,e)}else o.debug({body:e.body},"poll trigger"),(0,s.getStatusManager)().poll().catch(e=>{o.error({err:e},"Poll trigger failed")});return t.status(204).end()};e.s(["default",0,n],860464);var l=e.i(860464),c=e.i(7031),d=e.i(181927),u=e.i(846432);let p=(0,i.hoist)(l,"default"),f=(0,i.hoist)(l,"config"),w=new r.PagesAPIRouteModule({definition:{kind:a.RouteKind.PAGES_API,page:"/api/status/hook",pathname:"/api/status/hook",bundlePath:"",filename:""},userland:l,distDir:".next",relativeProjectDir:""});async function y(e,a,r){r.requestMeta&&(0,u.setRequestMeta)(e,r.requestMeta),w.isDev&&(0,u.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let i="/api/status/hook";i=i.replace(/\/index$/,"")||"/";let s=await w.prepare(e,a,{srcPage:i});if(!s){a.statusCode=400,a.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve());return}let{query:o,params:n,prerenderManifest:l,routerServerContext:p}=s;try{let t,r=e.method||"GET",s=(0,c.getTracer)(),u=s.getActiveScopeSpan(),f=!!(null==p?void 0:p.isWrappedByNextServer),y=w.instrumentationOnRequestError.bind(w),h=async c=>w.render(e,a,{query:{...o,...n},params:n,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:l.preview,propagateError:!1,dev:w.isDev,page:"/api/status/hook",internalRevalidate:null==p?void 0:p.revalidate,onError:(...t)=>y(e,...t)}).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":a.statusCode,"next.rsc":!1});let e=s.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let o=e.get("next.route");if(o){let e=`${r} ${o}`;c.setAttributes({"next.route":o,"http.route":o,"next.span_name":e}),c.updateName(e),t&&t!==c&&(t.setAttribute("http.route",o),t.updateName(e))}else c.updateName(`${r} ${i}`)});f&&u?await h(u):(t=s.getActiveScopeSpan(),await s.withPropagatedContext(e.headers,()=>s.trace(d.BaseServerSpan.handleRequest,{spanName:`${r} ${i}`,kind:c.SpanKind.SERVER,attributes:{"http.method":r,"http.target":e.url}},h),void 0,!f))}catch(e){if(w.isDev)throw e;(0,t.sendError)(a,500,"Internal Server Error")}finally{null==r.waitUntil||r.waitUntil.call(r,Promise.resolve())}}e.s(["config",0,f,"default",0,p,"handler",0,y],34717)},981532,e=>{e.v(e=>Promise.resolve().then(()=>e(322429)))},322522,e=>{e.v(e=>Promise.resolve().then(()=>e(459015)))},245061,e=>{e.v(e=>Promise.resolve().then(()=>e(785128)))}];
60
60
 
61
- //# sourceMappingURL=%5Broot-of-the-server%5D__0h~zv9n._.js.map
61
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0-c3~nn._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[270406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},814747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,a)=>{t.exports=e.x("os",()=>require("os"))},924868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},130146,(e,t,a)=>{t.exports=e.x("pino-28069d5257187539",()=>require("pino-28069d5257187539"))},666680,(e,t,a)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},224361,(e,t,a)=>{t.exports=e.x("util",()=>require("util"))},233405,(e,t,a)=>{t.exports=e.x("child_process",()=>require("child_process"))},25146,e=>{"use strict";var t=e.i(130146),a=e.i(814747),r=e.i(446786);let i=a.default.join(r.default.homedir(),".purplemux","logs"),n=process.env.LOG_LEVEL||"info",s=(e=>{if(!e)return{};let t={};for(let a of e.split(",")){let[e,r]=a.split("=").map(e=>e.trim());e&&r&&(t[e]=r)}return t})(process.env.LOG_LEVELS),l=["trace","debug","info","warn","error","fatal"],o=globalThis;if(!o.__ptRootLogger){let e=[n,...Object.values(s)].reduce((e,t)=>l.indexOf(t)<l.indexOf(e)?t:e,"fatal");o.__ptRootLogger=(0,t.default)({level:e,transport:{targets:[{target:"pino-roll",level:e,options:{file:a.default.join(i,"purplemux"),frequency:"daily",dateFormat:"yyyy-MM-dd",limit:{count:7},mkdir:!0}},{target:"pino-pretty",level:e,options:{colorize:!0,ignore:"pid,hostname,module",translateTime:"HH:MM:ss",messageFormat:"[{module}] {msg}"}}]}})}let u=o.__ptRootLogger;e.s(["createLogger",0,e=>{let t=u.child({module:e});return t.level=s[e]??n,t}])},44014,e=>{"use strict";let t,a;var r=e.i(666680);e.s(["nanoid",0,function(e=21){var i;i=e|=0,!t||t.length<i?(t=Buffer.allocUnsafe(128*i),r.webcrypto.getRandomValues(t),a=0):a+i>t.length&&(r.webcrypto.getRandomValues(t),a=0),a+=i;let n="";for(let r=a-e;r<a;r++)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&t[r]];return n}],44014)},459015,544538,e=>{"use strict";var t=e.i(233405),a=e.i(924868),r=e.i(224361),i=e.i(814747),n=e.i(44014),s=e.i(25146);process.platform;let l="linux"===process.platform;e.s(["isLinux",0,l],544538);let o=(0,s.createLogger)("terminal"),u=(0,r.promisify)(t.execFile),c="purple",p=i.default.join(process.env.__PMUX_APP_DIR_UNPACKED||process.env.__PMUX_APP_DIR||process.cwd(),"src","config","tmux.conf"),d=new Set(["AUTH_PASSWORD","NEXTAUTH_SECRET"]),m=()=>Object.fromEntries(Object.entries(process.env).filter(([e])=>!e.startsWith("npm_")&&!e.startsWith("NODE_")&&!d.has(e))),h=async()=>{try{let{stdout:e}=await u("tmux",["-L",c,"ls","-F","#{session_name}"],{timeout:5e3});return e.trim().split("\n").map(e=>e.trim()).filter(e=>e.startsWith("pt-"))}catch{return[]}},f=async(e,t,a,r)=>{let i=process.env.SHELL||"/bin/zsh";await u("tmux",["-u","-L",c,"-f",p,"new-session","-d","-s",e,"-x",String(t),"-y",String(a)],{timeout:5e3,env:{...m(),SHELL:i,TERM:"xterm-256color",COLORTERM:"truecolor"},cwd:r||process.env.HOME||"/"}),await _(),o.debug(`tmux session created: ${e} (cols: ${t}, rows: ${a})`)},y=e=>new Promise(t=>setTimeout(t,e)),w=async e=>{if(!await g(e))return;o.debug(`killSession start: ${e}`);let t=await L(e);if(t)try{o.debug(`SIGTERM → process group ${t}: ${e}`),process.kill(-t,"SIGTERM")}catch{}try{await u("tmux",["-L",c,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<5;t++){if(!await g(e))return void o.debug(`killSession done (SIGTERM): ${e}`);await y(200)}if(o.warn(`session survived SIGTERM, escalating to SIGKILL: ${e}`),t)try{o.debug(`SIGKILL → process group ${t}: ${e}`),process.kill(-t,"SIGKILL")}catch{}try{await u("tmux",["-L",c,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<3;t++){if(!await g(e))return void o.debug(`killSession done (SIGKILL): ${e}`);await y(200)}o.warn(`tmux session still alive after kill: ${e}`)},g=async e=>{try{return await u("tmux",["-L",c,"has-session","-t",e],{timeout:5e3}),!0}catch{return!1}},x=async()=>{},v=async()=>{await x();let e=await h();e.length>0&&e.forEach(e=>{o.debug(`existing tmux session found: ${e}`)})},S=async e=>{try{let{stdout:t}=await u("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_current_path}"],{timeout:5e3});return t.trim()||null}catch{return null}},L=async e=>{try{let{stdout:t}=await u("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_pid}"],{timeout:5e3}),a=parseInt(t.trim(),10);return Number.isNaN(a)?null:a}catch{return null}},_=async()=>{try{await u("tmux",["-L",c,"source-file",p],{timeout:5e3})}catch{}},P=async e=>{try{let{stdout:t}=await u("tmux",["-L",c,"list-panes","-t",e,"-F","#{pane_current_command}"],{timeout:5e3});return t.trim()||null}catch{return null}},E=async()=>{try{let{stdout:e}=await u("tmux",["-L",c,"list-panes","-a","-F","#{session_name} #{pane_current_command} #{pane_current_path} #{pane_pid} #{window_activity}"],{timeout:5e3}),t=new Map;for(let a of e.trim().split("\n")){if(!a)continue;let[e,r,i,n,s]=a.split(" ");if(e&&r){let a=parseInt(n,10),l=parseInt(s,10);t.set(e,{command:r,path:i||"",pid:Number.isNaN(a)?0:a,windowActivity:Number.isNaN(l)?0:l})}}return t}catch{return new Map}},b=new Set(["bash","zsh","fish","sh","dash"]),R=async e=>{try{let{stdout:t}=await u("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_title}"],{timeout:5e3});return t.trim()||null}catch{return null}},I=async e=>{await u("tmux",["-L",c,"copy-mode","-q","-t",e],{timeout:5e3}).catch(()=>{})},T=async(e,t)=>{await I(e),await u("tmux",["-L",c,"send-keys","-t",e,t,"Enter"],{timeout:5e3})},$=async(e,t)=>{await I(e),await u("tmux",["-L",c,"send-keys","-t",e,t],{timeout:5e3})},A=async(e,t)=>{await I(e),await u("tmux",["-L",c,"send-keys","-t",e,"-l",`\x1b[200~${t}\x1b[201~`],{timeout:5e3}),await u("tmux",["-L",c,"send-keys","-t",e,"Enter"],{timeout:5e3}),await new Promise(e=>setTimeout(e,600)),await u("tmux",["-L",c,"send-keys","-t",e,"Enter"],{timeout:5e3})},N=async e=>{try{let{stdout:t}=await u("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_current_path} #{pane_current_command} #{pane_pid} #{pane_width} #{pane_height} #{session_created}"],{timeout:5e3}),[a,r,i,n,s,l]=t.trim().split(" ");return{cwd:a||null,command:r||null,pid:i&&parseInt(i,10)||null,width:n&&parseInt(n,10)||null,height:s&&parseInt(s,10)||null,sessionCreated:l&&parseInt(l,10)||null}}catch{return{cwd:null,command:null,pid:null,width:null,height:null,sessionCreated:null}}},k=new Set(["node","python","python3","ruby","perl","deno","bun"]),M=async()=>{try{await u("tmux",["-L",c,"kill-server"],{timeout:5e3}),o.debug("tmux server killed")}catch{}},C=async e=>{try{let{stdout:t}=await u("tmux",["-L",c,"capture-pane","-p","-t",e],{timeout:5e3});return t}catch{return null}},q=async(e,t)=>{try{let{stdout:a}=await u("tmux",["-L",c,"capture-pane","-p","-S",`-${t}`,"-t",e],{timeout:5e3});return a}catch{return null}},j=async e=>{if(l){let t=[];return await Promise.all(e.map(async e=>{try{for(let r of(await a.default.readFile(`/proc/${e}/task/${e}/children`,"utf-8")).trim().split(/\s+/)){let e=parseInt(r,10);Number.isNaN(e)||t.push(e)}}catch{}})),t}try{let{stdout:t}=await u("pgrep",["-P",e.join(",")],{timeout:5e3});return t.trim().split("\n").map(e=>parseInt(e,10)).filter(e=>!Number.isNaN(e))}catch{return[]}},H=async e=>{let t=[],a=[e];for(;a.length>0;){let e=await j(a);if(0===e.length)break;t.push(...e),a=e}return t},O=async e=>{try{let t=new Set(e),{stdout:a}=await u("ss",["-tlnp"],{timeout:5e3}),r=new Set;for(let e of a.split("\n")){let a=e.match(/pid=(\d+)/g);if(!a||!a.some(e=>t.has(parseInt(e.replace("pid=",""),10))))continue;let i=e.match(/:(\d+)\s/);i&&r.add(parseInt(i[1],10))}return[...r].sort((e,t)=>e-t)}catch{return[]}},D=async e=>{let t=await H(e);if(0===t.length)return[];if(l)return O(t);try{let{stdout:e}=await u("lsof",["-a","-p",t.join(","),"-i","-sTCP:LISTEN","-P","-Fn"],{timeout:5e3}),a=new Set;for(let t of e.split("\n"))if(t.startsWith("n")){let e=t.match(/:(\d+)$/);e&&a.add(parseInt(e[1],10))}return[...a].sort((e,t)=>e-t)}catch{return[]}},U=async e=>{let t=await L(e);if(!t)return null;try{let{stdout:e}=await u("pgrep",["-n","-P",String(t)],{timeout:5e3}),a=e.trim();if(!a)return null;let{stdout:r}=await u("ps",["-o","args=","-p",a],{timeout:5e3}),n=r.trim();if(!n)return null;let s=n.split(/\s+/);if(0===s.length)return n;if(s[0]=i.default.basename(s[0]),k.has(s[0])&&s.length>1){let e=i.default.basename(s[1]).replace(/\.(c|m)?js$/,"");s.splice(0,2,e)}return s.join(" ")}catch{return null}};e.s(["SAFE_SHELLS",0,b,"applyConfig",0,_,"capturePaneContent",0,C,"capturePaneContentWithHistory",0,q,"createSession",0,f,"defaultSessionName",0,()=>`pt-${(0,n.nanoid)(6)}-${(0,n.nanoid)(6)}-${(0,n.nanoid)(6)}`,"exitCopyMode",0,I,"getAllPanesInfo",0,E,"getLastCommand",0,U,"getListeningPorts",0,D,"getPaneCurrentCommand",0,P,"getPaneDetailInfo",0,N,"getPaneTitle",0,R,"getSessionCwd",0,S,"getSessionPanePid",0,L,"hasSession",0,g,"killServer",0,M,"killSession",0,w,"listSessions",0,h,"sanitizedEnv",0,m,"scanSessions",0,v,"sendBracketedPaste",0,A,"sendKeys",0,T,"sendRawKeys",0,$,"workspaceSessionName",0,(e,t,a)=>`pt-${e}-${t}-${a}`],459015)},713915,e=>{"use strict";var t=e.i(233405),a=e.i(924868),r=e.i(446786),i=e.i(814747),n=e.i(224361),s=e.i(459015);let l=(0,n.promisify)(t.execFile),o=null,u=null,c=async()=>{let e=r.default.userInfo().shell||process.env.SHELL||"/bin/bash";try{let{stdout:t}=await l(e,["-ilc",'echo -n "$PATH"'],{timeout:5e3,env:{...(0,s.sanitizedEnv)(),SHELL:e,DISABLE_AUTO_UPDATE:"true",ZSH_TMUX_AUTOSTARTED:"true",TERM:"xterm-256color",COLORTERM:"truecolor"}});return t.toString().trim()}catch{return process.env.PATH||""}},p=async()=>o||(u||(u=c().then(e=>(o=e,u=null,e))),u),d=async(e,t,a)=>{try{let r=await p(),{stdout:i}=await l(e,t,{timeout:5e3,env:{...process.env,PATH:r}});return{installed:!0,version:a(i)}}catch{return{installed:!1,version:null}}},m=e=>e.trim().match(/(\d+\.\d+[\d.]*)/)?.[1]??null,h=[i.default.join(r.default.homedir(),".local","bin")],f=async()=>{for(let e of h)try{return await (0,a.access)(i.default.join(e,"claude")),e}catch{}return null},y=e=>e.installed&&null!==e.version&&parseFloat(e.version)>=2.9,w=async()=>{o=await c();let[e,t,n]=await Promise.all([d("tmux",["-V"],m),d("git",["--version"],m),d("claude",["--version"],m)]),s=(y(e)&&t.installed&&n.installed,n.installed?null:await f()),l=!1;if(n.installed||s)try{await (0,a.access)(i.default.join(r.default.homedir(),".claude")),l=!0}catch{}return{tmux:{...e,compatible:y(e)},git:t,claude:{...n,binaryPath:s,loggedIn:l}}},g=null,x=null,v=async()=>{o=await c();let[e,t,a]=await Promise.all([d("tmux",["-V"],m),d("git",["--version"],m),d("claude",["--version"],m)]);return{tmux:{...e,compatible:y(e)},git:t,claude:a}},S=async()=>g&&Date.now()-g.checkedAt<3e4?g.result:x||(x=v().then(e=>(g={result:e,checkedAt:Date.now()},x=null,e)).catch(e=>{throw x=null,e}));e.s(["getCachedRuntimePreflight",0,S,"getPreflightStatus",0,w,"getShellPath",0,p,"invalidateRuntimeCache",0,()=>{g=null,x=null}])},193367,e=>{"use strict";var t=e.i(926747),a=e.i(190406),r=e.i(244898),i=e.i(262950),n=e.i(713915);let s=async(e,t)=>{if("GET"===e.method){let e=await (0,n.getCachedRuntimePreflight)();return t.status(200).json(e)}if("POST"===e.method){(0,n.invalidateRuntimeCache)();let e=await (0,n.getCachedRuntimePreflight)();return t.status(200).json(e)}return t.setHeader("Allow","GET, POST"),t.status(405).json({error:"Method not allowed"})};e.s(["default",0,s],337990);var l=e.i(337990),o=e.i(7031),u=e.i(181927),c=e.i(846432);let p=(0,i.hoist)(l,"default"),d=(0,i.hoist)(l,"config"),m=new r.PagesAPIRouteModule({definition:{kind:a.RouteKind.PAGES_API,page:"/api/preflight/runtime",pathname:"/api/preflight/runtime",bundlePath:"",filename:""},userland:l,distDir:".next",relativeProjectDir:""});async function h(e,a,r){r.requestMeta&&(0,c.setRequestMeta)(e,r.requestMeta),m.isDev&&(0,c.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let i="/api/preflight/runtime";i=i.replace(/\/index$/,"")||"/";let n=await m.prepare(e,a,{srcPage:i});if(!n){a.statusCode=400,a.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve());return}let{query:s,params:l,prerenderManifest:p,routerServerContext:d}=n;try{let t,r=e.method||"GET",n=(0,o.getTracer)(),c=n.getActiveScopeSpan(),h=!!(null==d?void 0:d.isWrappedByNextServer),f=m.instrumentationOnRequestError.bind(m),y=async o=>m.render(e,a,{query:{...s,...l},params:l,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:p.preview,propagateError:!1,dev:m.isDev,page:"/api/preflight/runtime",internalRevalidate:null==d?void 0:d.revalidate,onError:(...t)=>f(e,...t)}).finally(()=>{if(!o)return;o.setAttributes({"http.status_code":a.statusCode,"next.rsc":!1});let e=n.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=e.get("next.route");if(s){let e=`${r} ${s}`;o.setAttributes({"next.route":s,"http.route":s,"next.span_name":e}),o.updateName(e),t&&t!==o&&(t.setAttribute("http.route",s),t.updateName(e))}else o.updateName(`${r} ${i}`)});h&&c?await y(c):(t=n.getActiveScopeSpan(),await n.withPropagatedContext(e.headers,()=>n.trace(u.BaseServerSpan.handleRequest,{spanName:`${r} ${i}`,kind:o.SpanKind.SERVER,attributes:{"http.method":r,"http.target":e.url}},y),void 0,!h))}catch(e){if(m.isDev)throw e;(0,t.sendError)(a,500,"Internal Server Error")}finally{null==r.waitUntil||r.waitUntil.call(r,Promise.resolve())}}e.s(["config",0,d,"default",0,p,"handler",0,h],193367)}];
1
+ module.exports=[270406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},814747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,a)=>{t.exports=e.x("os",()=>require("os"))},924868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},130146,(e,t,a)=>{t.exports=e.x("pino-28069d5257187539",()=>require("pino-28069d5257187539"))},666680,(e,t,a)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},224361,(e,t,a)=>{t.exports=e.x("util",()=>require("util"))},233405,(e,t,a)=>{t.exports=e.x("child_process",()=>require("child_process"))},25146,e=>{"use strict";var t=e.i(130146),a=e.i(814747),r=e.i(446786);let i=a.default.join(r.default.homedir(),".purplemux","logs"),n=process.env.LOG_LEVEL||"info",s=(e=>{if(!e)return{};let t={};for(let a of e.split(",")){let[e,r]=a.split("=").map(e=>e.trim());e&&r&&(t[e]=r)}return t})(process.env.LOG_LEVELS),l=["trace","debug","info","warn","error","fatal"],u=globalThis;if(!u.__ptRootLogger){let e=[n,...Object.values(s)].reduce((e,t)=>l.indexOf(t)<l.indexOf(e)?t:e,"fatal");u.__ptRootLogger=(0,t.default)({level:e,transport:{targets:[{target:"pino-roll",level:e,options:{file:a.default.join(i,"purplemux"),frequency:"daily",dateFormat:"yyyy-MM-dd",limit:{count:7},mkdir:!0}},{target:"pino-pretty",level:e,options:{colorize:!0,ignore:"pid,hostname,module",translateTime:"HH:MM:ss",messageFormat:"[{module}] {msg}"}}]}})}let o=u.__ptRootLogger;e.s(["createLogger",0,e=>{let t=o.child({module:e});return t.level=s[e]??n,t}])},44014,e=>{"use strict";let t,a;var r=e.i(666680);e.s(["nanoid",0,function(e=21){var i;i=e|=0,!t||t.length<i?(t=Buffer.allocUnsafe(128*i),r.webcrypto.getRandomValues(t),a=0):a+i>t.length&&(r.webcrypto.getRandomValues(t),a=0),a+=i;let n="";for(let r=a-e;r<a;r++)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&t[r]];return n}],44014)},459015,544538,e=>{"use strict";var t=e.i(233405),a=e.i(924868),r=e.i(224361),i=e.i(814747),n=e.i(44014),s=e.i(25146);process.platform;let l="linux"===process.platform;e.s(["isLinux",0,l],544538);let u=(0,s.createLogger)("terminal"),o=(0,r.promisify)(t.execFile),c="purple",p=i.default.join(process.env.__PMUX_APP_DIR_UNPACKED||process.env.__PMUX_APP_DIR||process.cwd(),"src","config","tmux.conf"),d={...process.env},m=new Set(["AUTH_PASSWORD","NEXTAUTH_SECRET","PORT"]),h=()=>Object.fromEntries(Object.entries(d).filter(([e])=>!e.startsWith("npm_")&&!e.startsWith("NODE_")&&!m.has(e))),f=async()=>{try{let{stdout:e}=await o("tmux",["-L",c,"ls","-F","#{session_name}"],{timeout:5e3});return e.trim().split("\n").map(e=>e.trim()).filter(e=>e.startsWith("pt-"))}catch{return[]}},w=async(e,t,a,r)=>{let i=process.env.SHELL||"/bin/zsh";await o("tmux",["-u","-L",c,"-f",p,"new-session","-d","-s",e,"-x",String(t),"-y",String(a)],{timeout:5e3,env:{...h(),SHELL:i,TERM:"xterm-256color",COLORTERM:"truecolor"},cwd:r||process.env.HOME||"/"}),await E(),u.debug(`tmux session created: ${e} (cols: ${t}, rows: ${a})`)},y=e=>new Promise(t=>setTimeout(t,e)),g=async e=>{if(!await x(e))return;u.debug(`killSession start: ${e}`);let t=await P(e);if(t)try{u.debug(`SIGTERM → process group ${t}: ${e}`),process.kill(-t,"SIGTERM")}catch{}try{await o("tmux",["-L",c,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<5;t++){if(!await x(e))return void u.debug(`killSession done (SIGTERM): ${e}`);await y(200)}if(u.warn(`session survived SIGTERM, escalating to SIGKILL: ${e}`),t)try{u.debug(`SIGKILL → process group ${t}: ${e}`),process.kill(-t,"SIGKILL")}catch{}try{await o("tmux",["-L",c,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<3;t++){if(!await x(e))return void u.debug(`killSession done (SIGKILL): ${e}`);await y(200)}u.warn(`tmux session still alive after kill: ${e}`)},x=async e=>{try{return await o("tmux",["-L",c,"has-session","-t",e],{timeout:5e3}),!0}catch{return!1}},v=async()=>{},S=async()=>{await v();let e=await f();e.length>0&&e.forEach(e=>{u.debug(`existing tmux session found: ${e}`)})},L=async e=>{if(l)try{return await a.default.readlink(`/proc/${e}/cwd`)}catch{return null}try{let{stdout:t}=await o("lsof",["-a","-p",String(e),"-d","cwd","-Fn"],{timeout:5e3}),a=t.split("\n").find(e=>e.startsWith("n/"));return a?a.slice(1):null}catch{return null}},_=async e=>{let t=await P(e);if(t){let e=await L(t);if(e)return e}try{let{stdout:t}=await o("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_current_path}"],{timeout:5e3});return t.trim()||null}catch{return null}},P=async e=>{try{let{stdout:t}=await o("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_pid}"],{timeout:5e3}),a=parseInt(t.trim(),10);return Number.isNaN(a)?null:a}catch{return null}},E=async()=>{try{await o("tmux",["-L",c,"source-file",p],{timeout:5e3})}catch{}},b=async e=>{try{let{stdout:t}=await o("tmux",["-L",c,"list-panes","-t",e,"-F","#{pane_current_command}"],{timeout:5e3});return t.trim()||null}catch{return null}},R=async()=>{try{let{stdout:e}=await o("tmux",["-L",c,"list-panes","-a","-F","#{session_name} #{pane_current_command} #{pane_current_path} #{pane_pid} #{window_activity}"],{timeout:5e3}),t=new Map;for(let a of e.trim().split("\n")){if(!a)continue;let[e,r,i,n,s]=a.split(" ");if(e&&r){let a=parseInt(n,10),l=parseInt(s,10);t.set(e,{command:r,path:i||"",pid:Number.isNaN(a)?0:a,windowActivity:Number.isNaN(l)?0:l})}}return t}catch{return new Map}},I=new Set(["bash","zsh","fish","sh","dash"]),T=async e=>{try{let{stdout:t}=await o("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_title}"],{timeout:5e3});return t.trim()||null}catch{return null}},$=async e=>{await o("tmux",["-L",c,"copy-mode","-q","-t",e],{timeout:5e3}).catch(()=>{})},A=async(e,t)=>{await $(e),await o("tmux",["-L",c,"send-keys","-t",e,t,"Enter"],{timeout:5e3})},k=async(e,t)=>{await $(e),await o("tmux",["-L",c,"send-keys","-t",e,t],{timeout:5e3})},N=async(e,t)=>{await $(e),await o("tmux",["-L",c,"send-keys","-t",e,"-l",`\x1b[200~${t}\x1b[201~`],{timeout:5e3}),await o("tmux",["-L",c,"send-keys","-t",e,"Enter"],{timeout:5e3}),await new Promise(e=>setTimeout(e,600)),await o("tmux",["-L",c,"send-keys","-t",e,"Enter"],{timeout:5e3})},M=async e=>{try{let{stdout:t}=await o("tmux",["-L",c,"display-message","-p","-t",e,"#{pane_current_path} #{pane_current_command} #{pane_pid} #{pane_width} #{pane_height} #{session_created}"],{timeout:5e3}),[a,r,i,n,s,l]=t.trim().split(" ");return{cwd:a||null,command:r||null,pid:i&&parseInt(i,10)||null,width:n&&parseInt(n,10)||null,height:s&&parseInt(s,10)||null,sessionCreated:l&&parseInt(l,10)||null}}catch{return{cwd:null,command:null,pid:null,width:null,height:null,sessionCreated:null}}},C=new Set(["node","python","python3","ruby","perl","deno","bun"]),q=async()=>{try{await o("tmux",["-L",c,"kill-server"],{timeout:5e3}),u.debug("tmux server killed")}catch{}},O=async e=>{try{let{stdout:t}=await o("tmux",["-L",c,"capture-pane","-p","-t",e],{timeout:5e3});return t}catch{return null}},j=async(e,t)=>{try{let{stdout:a}=await o("tmux",["-L",c,"capture-pane","-p","-S",`-${t}`,"-t",e],{timeout:5e3});return a}catch{return null}},H=async e=>{if(l){let t=[];return await Promise.all(e.map(async e=>{try{for(let r of(await a.default.readFile(`/proc/${e}/task/${e}/children`,"utf-8")).trim().split(/\s+/)){let e=parseInt(r,10);Number.isNaN(e)||t.push(e)}}catch{}})),t}try{let{stdout:t}=await o("pgrep",["-P",e.join(",")],{timeout:5e3});return t.trim().split("\n").map(e=>parseInt(e,10)).filter(e=>!Number.isNaN(e))}catch{return[]}},D=async e=>{let t=[],a=[e];for(;a.length>0;){let e=await H(a);if(0===e.length)break;t.push(...e),a=e}return t},U=async e=>{try{let t=new Set(e),{stdout:a}=await o("ss",["-tlnp"],{timeout:5e3}),r=new Set;for(let e of a.split("\n")){let a=e.match(/pid=(\d+)/g);if(!a||!a.some(e=>t.has(parseInt(e.replace("pid=",""),10))))continue;let i=e.match(/:(\d+)\s/);i&&r.add(parseInt(i[1],10))}return[...r].sort((e,t)=>e-t)}catch{return[]}},G=async e=>{let t=await D(e);if(0===t.length)return[];if(l)return U(t);try{let{stdout:e}=await o("lsof",["-a","-p",t.join(","),"-i","-sTCP:LISTEN","-P","-Fn"],{timeout:5e3}),a=new Set;for(let t of e.split("\n"))if(t.startsWith("n")){let e=t.match(/:(\d+)$/);e&&a.add(parseInt(e[1],10))}return[...a].sort((e,t)=>e-t)}catch{return[]}},F=async e=>{let t=await P(e);if(!t)return null;try{let{stdout:e}=await o("pgrep",["-n","-P",String(t)],{timeout:5e3}),a=e.trim();if(!a)return null;let{stdout:r}=await o("ps",["-o","args=","-p",a],{timeout:5e3}),n=r.trim();if(!n)return null;let s=n.split(/\s+/);if(0===s.length)return n;if(s[0]=i.default.basename(s[0]),C.has(s[0])&&s.length>1){let e=i.default.basename(s[1]).replace(/\.(c|m)?js$/,"");s.splice(0,2,e)}return s.join(" ")}catch{return null}};e.s(["SAFE_SHELLS",0,I,"applyConfig",0,E,"capturePaneContent",0,O,"capturePaneContentWithHistory",0,j,"createSession",0,w,"defaultSessionName",0,()=>`pt-${(0,n.nanoid)(6)}-${(0,n.nanoid)(6)}-${(0,n.nanoid)(6)}`,"exitCopyMode",0,$,"getAllPanesInfo",0,R,"getLastCommand",0,F,"getListeningPorts",0,G,"getPaneCurrentCommand",0,b,"getPaneDetailInfo",0,M,"getPaneTitle",0,T,"getSessionCwd",0,_,"getSessionPanePid",0,P,"hasSession",0,x,"killServer",0,q,"killSession",0,g,"listSessions",0,f,"sanitizedEnv",0,h,"scanSessions",0,S,"sendBracketedPaste",0,N,"sendKeys",0,A,"sendRawKeys",0,k,"workspaceSessionName",0,(e,t,a)=>`pt-${e}-${t}-${a}`],459015)},713915,e=>{"use strict";var t=e.i(233405),a=e.i(924868),r=e.i(446786),i=e.i(814747),n=e.i(224361),s=e.i(459015);let l=(0,n.promisify)(t.execFile),u=null,o=null,c=async()=>{let e=r.default.userInfo().shell||process.env.SHELL||"/bin/bash";try{let{stdout:t}=await l(e,["-ilc",'echo -n "$PATH"'],{timeout:5e3,env:{...(0,s.sanitizedEnv)(),SHELL:e,DISABLE_AUTO_UPDATE:"true",ZSH_TMUX_AUTOSTARTED:"true",TERM:"xterm-256color",COLORTERM:"truecolor"}});return t.toString().trim()}catch{return process.env.PATH||""}},p=async()=>u||(o||(o=c().then(e=>(u=e,o=null,e))),o),d=async(e,t,a)=>{try{let r=await p(),{stdout:i}=await l(e,t,{timeout:5e3,env:{...process.env,PATH:r}});return{installed:!0,version:a(i)}}catch{return{installed:!1,version:null}}},m=e=>e.trim().match(/(\d+\.\d+[\d.]*)/)?.[1]??null,h=[i.default.join(r.default.homedir(),".local","bin")],f=async()=>{for(let e of h)try{return await (0,a.access)(i.default.join(e,"claude")),e}catch{}return null},w=e=>e.installed&&null!==e.version&&parseFloat(e.version)>=2.9,y=async()=>{u=await c();let[e,t,n]=await Promise.all([d("tmux",["-V"],m),d("git",["--version"],m),d("claude",["--version"],m)]),s=(w(e)&&t.installed&&n.installed,n.installed?null:await f()),l=!1;if(n.installed||s)try{await (0,a.access)(i.default.join(r.default.homedir(),".claude")),l=!0}catch{}return{tmux:{...e,compatible:w(e)},git:t,claude:{...n,binaryPath:s,loggedIn:l}}},g=null,x=null,v=async()=>{u=await c();let[e,t,a]=await Promise.all([d("tmux",["-V"],m),d("git",["--version"],m),d("claude",["--version"],m)]);return{tmux:{...e,compatible:w(e)},git:t,claude:a}},S=async()=>g&&Date.now()-g.checkedAt<3e4?g.result:x||(x=v().then(e=>(g={result:e,checkedAt:Date.now()},x=null,e)).catch(e=>{throw x=null,e}));e.s(["getCachedRuntimePreflight",0,S,"getPreflightStatus",0,y,"getShellPath",0,p,"invalidateRuntimeCache",0,()=>{g=null,x=null}])},193367,e=>{"use strict";var t=e.i(926747),a=e.i(190406),r=e.i(244898),i=e.i(262950),n=e.i(713915);let s=async(e,t)=>{if("GET"===e.method){let e=await (0,n.getCachedRuntimePreflight)();return t.status(200).json(e)}if("POST"===e.method){(0,n.invalidateRuntimeCache)();let e=await (0,n.getCachedRuntimePreflight)();return t.status(200).json(e)}return t.setHeader("Allow","GET, POST"),t.status(405).json({error:"Method not allowed"})};e.s(["default",0,s],337990);var l=e.i(337990),u=e.i(7031),o=e.i(181927),c=e.i(846432);let p=(0,i.hoist)(l,"default"),d=(0,i.hoist)(l,"config"),m=new r.PagesAPIRouteModule({definition:{kind:a.RouteKind.PAGES_API,page:"/api/preflight/runtime",pathname:"/api/preflight/runtime",bundlePath:"",filename:""},userland:l,distDir:".next",relativeProjectDir:""});async function h(e,a,r){r.requestMeta&&(0,c.setRequestMeta)(e,r.requestMeta),m.isDev&&(0,c.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let i="/api/preflight/runtime";i=i.replace(/\/index$/,"")||"/";let n=await m.prepare(e,a,{srcPage:i});if(!n){a.statusCode=400,a.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve());return}let{query:s,params:l,prerenderManifest:p,routerServerContext:d}=n;try{let t,r=e.method||"GET",n=(0,u.getTracer)(),c=n.getActiveScopeSpan(),h=!!(null==d?void 0:d.isWrappedByNextServer),f=m.instrumentationOnRequestError.bind(m),w=async u=>m.render(e,a,{query:{...s,...l},params:l,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:p.preview,propagateError:!1,dev:m.isDev,page:"/api/preflight/runtime",internalRevalidate:null==d?void 0:d.revalidate,onError:(...t)=>f(e,...t)}).finally(()=>{if(!u)return;u.setAttributes({"http.status_code":a.statusCode,"next.rsc":!1});let e=n.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==o.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=e.get("next.route");if(s){let e=`${r} ${s}`;u.setAttributes({"next.route":s,"http.route":s,"next.span_name":e}),u.updateName(e),t&&t!==u&&(t.setAttribute("http.route",s),t.updateName(e))}else u.updateName(`${r} ${i}`)});h&&c?await w(c):(t=n.getActiveScopeSpan(),await n.withPropagatedContext(e.headers,()=>n.trace(o.BaseServerSpan.handleRequest,{spanName:`${r} ${i}`,kind:u.SpanKind.SERVER,attributes:{"http.method":r,"http.target":e.url}},w),void 0,!h))}catch(e){if(m.isDev)throw e;(0,t.sendError)(a,500,"Internal Server Error")}finally{null==r.waitUntil||r.waitUntil.call(r,Promise.resolve())}}e.s(["config",0,d,"default",0,p,"handler",0,h],193367)}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0.5.jh3._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[688947,(e,t,r)=>{t.exports=e.x("stream",()=>require("stream"))},406461,(e,t,r)=>{t.exports=e.x("zlib",()=>require("zlib"))},254799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},524836,(e,t,r)=>{t.exports=e.x("https",()=>require("https"))},921517,(e,t,r)=>{t.exports=e.x("http",()=>require("http"))},504446,(e,t,r)=>{t.exports=e.x("net",()=>require("net"))},755004,(e,t,r)=>{t.exports=e.x("tls",()=>require("tls"))},792509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},500874,(e,t,r)=>{t.exports=e.x("buffer",()=>require("buffer"))},427699,(e,t,r)=>{t.exports=e.x("events",()=>require("events"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},130146,(e,t,r)=>{t.exports=e.x("pino-28069d5257187539",()=>require("pino-28069d5257187539"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},224361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},25146,e=>{"use strict";var t=e.i(130146),r=e.i(814747),s=e.i(446786);let n=r.default.join(s.default.homedir(),".purplemux","logs"),i=process.env.LOG_LEVEL||"info",a=(e=>{if(!e)return{};let t={};for(let r of e.split(",")){let[e,s]=r.split("=").map(e=>e.trim());e&&s&&(t[e]=s)}return t})(process.env.LOG_LEVELS),o=["trace","debug","info","warn","error","fatal"],l=globalThis;if(!l.__ptRootLogger){let e=[i,...Object.values(a)].reduce((e,t)=>o.indexOf(t)<o.indexOf(e)?t:e,"fatal");l.__ptRootLogger=(0,t.default)({level:e,transport:{targets:[{target:"pino-roll",level:e,options:{file:r.default.join(n,"purplemux"),frequency:"daily",dateFormat:"yyyy-MM-dd",limit:{count:7},mkdir:!0}},{target:"pino-pretty",level:e,options:{colorize:!0,ignore:"pid,hostname,module",translateTime:"HH:MM:ss",messageFormat:"[{module}] {msg}"}}]}})}let u=l.__ptRootLogger;e.s(["createLogger",0,e=>{let t=u.child({module:e});return t.level=a[e]??i,t}])},44014,e=>{"use strict";let t,r;var s=e.i(666680);e.s(["nanoid",0,function(e=21){var n;n=e|=0,!t||t.length<n?(t=Buffer.allocUnsafe(128*n),s.webcrypto.getRandomValues(t),r=0):r+n>t.length&&(s.webcrypto.getRandomValues(t),r=0),r+=n;let i="";for(let s=r-e;s<r;s++)i+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&t[s]];return i}],44014)},459015,544538,e=>{"use strict";var t=e.i(233405),r=e.i(924868),s=e.i(224361),n=e.i(814747),i=e.i(44014),a=e.i(25146);process.platform;let o="linux"===process.platform;e.s(["isLinux",0,o],544538);let l=(0,a.createLogger)("terminal"),u=(0,s.promisify)(t.execFile),p="purple",c=n.default.join(process.env.__PMUX_APP_DIR_UNPACKED||process.env.__PMUX_APP_DIR||process.cwd(),"src","config","tmux.conf"),m=new Set(["AUTH_PASSWORD","NEXTAUTH_SECRET"]),d=()=>Object.fromEntries(Object.entries(process.env).filter(([e])=>!e.startsWith("npm_")&&!e.startsWith("NODE_")&&!m.has(e))),f=async()=>{try{let{stdout:e}=await u("tmux",["-L",p,"ls","-F","#{session_name}"],{timeout:5e3});return e.trim().split("\n").map(e=>e.trim()).filter(e=>e.startsWith("pt-"))}catch{return[]}},h=async(e,t,r,s)=>{let n=process.env.SHELL||"/bin/zsh";await u("tmux",["-u","-L",p,"-f",c,"new-session","-d","-s",e,"-x",String(t),"-y",String(r)],{timeout:5e3,env:{...d(),SHELL:n,TERM:"xterm-256color",COLORTERM:"truecolor"},cwd:s||process.env.HOME||"/"}),await L(),l.debug(`tmux session created: ${e} (cols: ${t}, rows: ${r})`)},y=e=>new Promise(t=>setTimeout(t,e)),w=async e=>{if(!await g(e))return;l.debug(`killSession start: ${e}`);let t=await _(e);if(t)try{l.debug(`SIGTERM → process group ${t}: ${e}`),process.kill(-t,"SIGTERM")}catch{}try{await u("tmux",["-L",p,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<5;t++){if(!await g(e))return void l.debug(`killSession done (SIGTERM): ${e}`);await y(200)}if(l.warn(`session survived SIGTERM, escalating to SIGKILL: ${e}`),t)try{l.debug(`SIGKILL → process group ${t}: ${e}`),process.kill(-t,"SIGKILL")}catch{}try{await u("tmux",["-L",p,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<3;t++){if(!await g(e))return void l.debug(`killSession done (SIGKILL): ${e}`);await y(200)}l.warn(`tmux session still alive after kill: ${e}`)},g=async e=>{try{return await u("tmux",["-L",p,"has-session","-t",e],{timeout:5e3}),!0}catch{return!1}},x=async()=>{},S=async()=>{await x();let e=await f();e.length>0&&e.forEach(e=>{l.debug(`existing tmux session found: ${e}`)})},v=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_current_path}"],{timeout:5e3});return t.trim()||null}catch{return null}},_=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_pid}"],{timeout:5e3}),r=parseInt(t.trim(),10);return Number.isNaN(r)?null:r}catch{return null}},L=async()=>{try{await u("tmux",["-L",p,"source-file",c],{timeout:5e3})}catch{}},P=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"list-panes","-t",e,"-F","#{pane_current_command}"],{timeout:5e3});return t.trim()||null}catch{return null}},b=async()=>{try{let{stdout:e}=await u("tmux",["-L",p,"list-panes","-a","-F","#{session_name} #{pane_current_command} #{pane_current_path} #{pane_pid} #{window_activity}"],{timeout:5e3}),t=new Map;for(let r of e.trim().split("\n")){if(!r)continue;let[e,s,n,i,a]=r.split(" ");if(e&&s){let r=parseInt(i,10),o=parseInt(a,10);t.set(e,{command:s,path:n||"",pid:Number.isNaN(r)?0:r,windowActivity:Number.isNaN(o)?0:o})}}return t}catch{return new Map}},$=new Set(["bash","zsh","fish","sh","dash"]),E=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_title}"],{timeout:5e3});return t.trim()||null}catch{return null}},I=async e=>{await u("tmux",["-L",p,"copy-mode","-q","-t",e],{timeout:5e3}).catch(()=>{})},R=async(e,t)=>{await I(e),await u("tmux",["-L",p,"send-keys","-t",e,t,"Enter"],{timeout:5e3})},N=async(e,t)=>{await I(e),await u("tmux",["-L",p,"send-keys","-t",e,t],{timeout:5e3})},q=async(e,t)=>{await I(e),await u("tmux",["-L",p,"send-keys","-t",e,"-l",`\x1b[200~${t}\x1b[201~`],{timeout:5e3}),await u("tmux",["-L",p,"send-keys","-t",e,"Enter"],{timeout:5e3}),await new Promise(e=>setTimeout(e,600)),await u("tmux",["-L",p,"send-keys","-t",e,"Enter"],{timeout:5e3})},T=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_current_path} #{pane_current_command} #{pane_pid} #{pane_width} #{pane_height} #{session_created}"],{timeout:5e3}),[r,s,n,i,a,o]=t.trim().split(" ");return{cwd:r||null,command:s||null,pid:n&&parseInt(n,10)||null,width:i&&parseInt(i,10)||null,height:a&&parseInt(a,10)||null,sessionCreated:o&&parseInt(o,10)||null}}catch{return{cwd:null,command:null,pid:null,width:null,height:null,sessionCreated:null}}},k=new Set(["node","python","python3","ruby","perl","deno","bun"]),C=async()=>{try{await u("tmux",["-L",p,"kill-server"],{timeout:5e3}),l.debug("tmux server killed")}catch{}},M=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"capture-pane","-p","-t",e],{timeout:5e3});return t}catch{return null}},A=async(e,t)=>{try{let{stdout:r}=await u("tmux",["-L",p,"capture-pane","-p","-S",`-${t}`,"-t",e],{timeout:5e3});return r}catch{return null}},j=async e=>{if(o){let t=[];return await Promise.all(e.map(async e=>{try{for(let s of(await r.default.readFile(`/proc/${e}/task/${e}/children`,"utf-8")).trim().split(/\s+/)){let e=parseInt(s,10);Number.isNaN(e)||t.push(e)}}catch{}})),t}try{let{stdout:t}=await u("pgrep",["-P",e.join(",")],{timeout:5e3});return t.trim().split("\n").map(e=>parseInt(e,10)).filter(e=>!Number.isNaN(e))}catch{return[]}},O=async e=>{let t=[],r=[e];for(;r.length>0;){let e=await j(r);if(0===e.length)break;t.push(...e),r=e}return t},D=async e=>{try{let t=new Set(e),{stdout:r}=await u("ss",["-tlnp"],{timeout:5e3}),s=new Set;for(let e of r.split("\n")){let r=e.match(/pid=(\d+)/g);if(!r||!r.some(e=>t.has(parseInt(e.replace("pid=",""),10))))continue;let n=e.match(/:(\d+)\s/);n&&s.add(parseInt(n[1],10))}return[...s].sort((e,t)=>e-t)}catch{return[]}},G=async e=>{let t=await O(e);if(0===t.length)return[];if(o)return D(t);try{let{stdout:e}=await u("lsof",["-a","-p",t.join(","),"-i","-sTCP:LISTEN","-P","-Fn"],{timeout:5e3}),r=new Set;for(let t of e.split("\n"))if(t.startsWith("n")){let e=t.match(/:(\d+)$/);e&&r.add(parseInt(e[1],10))}return[...r].sort((e,t)=>e-t)}catch{return[]}},H=async e=>{let t=await _(e);if(!t)return null;try{let{stdout:e}=await u("pgrep",["-n","-P",String(t)],{timeout:5e3}),r=e.trim();if(!r)return null;let{stdout:s}=await u("ps",["-o","args=","-p",r],{timeout:5e3}),i=s.trim();if(!i)return null;let a=i.split(/\s+/);if(0===a.length)return i;if(a[0]=n.default.basename(a[0]),k.has(a[0])&&a.length>1){let e=n.default.basename(a[1]).replace(/\.(c|m)?js$/,"");a.splice(0,2,e)}return a.join(" ")}catch{return null}};e.s(["SAFE_SHELLS",0,$,"applyConfig",0,L,"capturePaneContent",0,M,"capturePaneContentWithHistory",0,A,"createSession",0,h,"defaultSessionName",0,()=>`pt-${(0,i.nanoid)(6)}-${(0,i.nanoid)(6)}-${(0,i.nanoid)(6)}`,"exitCopyMode",0,I,"getAllPanesInfo",0,b,"getLastCommand",0,H,"getListeningPorts",0,G,"getPaneCurrentCommand",0,P,"getPaneDetailInfo",0,T,"getPaneTitle",0,E,"getSessionCwd",0,v,"getSessionPanePid",0,_,"hasSession",0,g,"killServer",0,C,"killSession",0,w,"listSessions",0,f,"sanitizedEnv",0,d,"scanSessions",0,S,"sendBracketedPaste",0,q,"sendKeys",0,R,"sendRawKeys",0,N,"workspaceSessionName",0,(e,t,r)=>`pt-${e}-${t}-${r}`],459015)},175609,(e,t,r)=>{t.exports=e.x("node-pty-592e8dc6192cfd06",()=>require("node-pty-592e8dc6192cfd06"))},971780,e=>{"use strict";var t=e.i(459015);e.i(478319),e.i(220951),e.i(175609),new TextEncoder,new TextDecoder,(0,e.i(25146).createLogger)("terminal"),new TextDecoder;let r=globalThis,s=r.__purplemux_terminal_connections??=new Map;r.__purplemux_terminal_output_ts??=new Map;let n=(e,t,r)=>{for(let n of s.values())if(n.sessionName===e&&!n.cleaned)return void n.pty.resize(t,r)},i=e=>new Promise(t=>setTimeout(t,e)),a=async(e,r,a)=>{let o=(e=>{for(let t of s.values())if(t.sessionName===e&&!t.cleaned)return{cols:t.currentCols,rows:t.currentRows};return null})(e);if(o&&o.cols>50)return(0,t.capturePaneContentWithHistory)(e,50);let l=(e=>{for(let t of s.values())if(t.sessionName===e&&!t.cleaned){if(t.capturePaused)return null;return t.capturePaused=!0,{cols:t.currentCols,rows:t.currentRows}}return null})(e);if(!l)return(0,t.capturePaneContent)(e);try{n(e,r,a),await i(300);let s=await (0,t.capturePaneContent)(e);return n(e,l.cols,l.rows),await i(300),s}finally{(e=>{for(let t of s.values())if(t.sessionName===e&&!t.cleaned){if(!t.capturePaused)return;t.capturePaused=!1;return}})(e)}};e.s(["capturePaneAtWidth",0,a],971780)},443571,e=>{"use strict";let t=["Yes","Yes,","No","Accept","Decline","Open System Settings","Try again","Use this","Continue without","Resume from summary","Resume full session","Continue this conversation","Send message as","Don't ask me again"],r=/^\s*(?:[❯›>]\s+)?(.+)$/,s=/^\s*[❯›>]\s+/,n=/^\d+\.\s+/,i=/^\s*([❯›>])?\s*(\d+)\.?\s*(\S.*)$/,a=e=>e.replace(n,""),o=(e,t)=>e.some(e=>a(e).startsWith(t)),l=e=>e.match(/^\s*/)?.[0].length??0,u=/^(Yes,\s*and\s+don[\u2019']?t\s+ask)\s*:\s*(.+)$/,p=e=>!(e.length<2)&&(o(e,"Yes")&&o(e,"No")||o(e,"Accept")&&o(e,"Decline")||o(e,"Open System Settings")||o(e,"Use this")&&o(e,"Continue without")||o(e,"Resume from summary")&&o(e,"Resume full session")||o(e,"Continue this conversation")&&o(e,"Send message as"));e.s(["parsePermissionOptions",0,e=>{let n=e.split("\n"),o=(e=>{let t=[],r=[],s=0,n=1,a=0,o=()=>{r.length>=2&&t.push({rawOptions:r.slice(),focusedIndex:s}),r=[],s=0,n=1,a=0};for(let t of e){if(!t.trim())continue;let e=t.match(i);if(e){let i=e[1],u=Number(e[2]),p=e[3].trim();if(p.length>0){if(1===u){o(),r.push(p),i&&(s=0),a=l(t),n=2;continue}if(u===n){i&&(s=r.length),r.push(p),a=l(t),n+=1;continue}}}if(r.length>0){if(l(t)>a){r[r.length-1]+=t.trimStart();continue}if(/^\s+\S/.test(t))continue;o()}}o();let p=t[t.length-1];return p?{options:p.rawOptions.map((e,t)=>{let r;return`${t+1}. ${(r=e.match(u))?`${r[1]} again for: ${r[2].trim()}`:/^Yes(?![,\s]|$)/.test(e)?"Yes":/^No(?![,\s]|$)/.test(e)?"No":e}`}),focusedIndex:p.focusedIndex}:{options:[],focusedIndex:0}})(n);if(o.options.length>=2&&p(o.options))return o;let c=(e=>{let n=[],i=0,o=!1;for(let l of e){if(!l.trim()){if(o)break;continue}let e=s.test(l),u=/^\s+\S/.test(l);if(!e&&!u){if(o)break;continue}let p=l.match(r);if(!p)continue;let c=p[1].trim(),m=a(c);t.some(e=>m.startsWith(e))&&(e&&(i=n.length),n.push(c),o=!0)}return{options:n,focusedIndex:i}})(n);return p(c.options)?c:{options:[],focusedIndex:0}}])},454549,e=>{"use strict";var t=e.i(926747),r=e.i(190406),s=e.i(244898),n=e.i(262950),i=e.i(459015),a=e.i(971780),o=e.i(25146),l=e.i(443571);let u=(0,o.createLogger)("tmux"),p=async(e,t)=>{if("GET"!==e.method)return t.setHeader("Allow","GET"),t.status(405).json({error:"Method not allowed"});let r=e.query.session;if(!r)return t.status(400).json({error:"session parameter required"});if(!await (0,i.hasSession)(r))return t.status(404).json({error:"Session not found"});try{let e=await (0,a.capturePaneAtWidth)(r,120,50);if(!e)return t.status(200).json({options:[]});let{options:s}=(0,l.parsePermissionOptions)(e),n=e.includes("Bypass Permissions");return t.status(200).json({options:s,...n&&{isBypassPrompt:!0}})}catch(e){return u.error(`permission-options query failed: ${e instanceof Error?e.message:e}`),t.status(500).json({error:"Terminal capture failed"})}};e.s(["default",0,p],96110);var c=e.i(96110),m=e.i(7031),d=e.i(181927),f=e.i(846432);let h=(0,n.hoist)(c,"default"),y=(0,n.hoist)(c,"config"),w=new s.PagesAPIRouteModule({definition:{kind:r.RouteKind.PAGES_API,page:"/api/tmux/permission-options",pathname:"/api/tmux/permission-options",bundlePath:"",filename:""},userland:c,distDir:".next",relativeProjectDir:""});async function g(e,r,s){s.requestMeta&&(0,f.setRequestMeta)(e,s.requestMeta),w.isDev&&(0,f.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let n="/api/tmux/permission-options";n=n.replace(/\/index$/,"")||"/";let i=await w.prepare(e,r,{srcPage:n});if(!i){r.statusCode=400,r.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve());return}let{query:a,params:o,prerenderManifest:l,routerServerContext:u}=i;try{let t,s=e.method||"GET",i=(0,m.getTracer)(),p=i.getActiveScopeSpan(),c=!!(null==u?void 0:u.isWrappedByNextServer),f=w.instrumentationOnRequestError.bind(w),h=async p=>w.render(e,r,{query:{...a,...o},params:o,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:l.preview,propagateError:!1,dev:w.isDev,page:"/api/tmux/permission-options",internalRevalidate:null==u?void 0:u.revalidate,onError:(...t)=>f(e,...t)}).finally(()=>{if(!p)return;p.setAttributes({"http.status_code":r.statusCode,"next.rsc":!1});let e=i.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=e.get("next.route");if(a){let e=`${s} ${a}`;p.setAttributes({"next.route":a,"http.route":a,"next.span_name":e}),p.updateName(e),t&&t!==p&&(t.setAttribute("http.route",a),t.updateName(e))}else p.updateName(`${s} ${n}`)});c&&p?await h(p):(t=i.getActiveScopeSpan(),await i.withPropagatedContext(e.headers,()=>i.trace(d.BaseServerSpan.handleRequest,{spanName:`${s} ${n}`,kind:m.SpanKind.SERVER,attributes:{"http.method":s,"http.target":e.url}},h),void 0,!c))}catch(e){if(w.isDev)throw e;(0,t.sendError)(r,500,"Internal Server Error")}finally{null==s.waitUntil||s.waitUntil.call(s,Promise.resolve())}}e.s(["config",0,y,"default",0,h,"handler",0,g],454549)}];
1
+ module.exports=[688947,(e,t,r)=>{t.exports=e.x("stream",()=>require("stream"))},406461,(e,t,r)=>{t.exports=e.x("zlib",()=>require("zlib"))},254799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},524836,(e,t,r)=>{t.exports=e.x("https",()=>require("https"))},921517,(e,t,r)=>{t.exports=e.x("http",()=>require("http"))},504446,(e,t,r)=>{t.exports=e.x("net",()=>require("net"))},755004,(e,t,r)=>{t.exports=e.x("tls",()=>require("tls"))},792509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},500874,(e,t,r)=>{t.exports=e.x("buffer",()=>require("buffer"))},427699,(e,t,r)=>{t.exports=e.x("events",()=>require("events"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},130146,(e,t,r)=>{t.exports=e.x("pino-28069d5257187539",()=>require("pino-28069d5257187539"))},666680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},224361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},233405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},25146,e=>{"use strict";var t=e.i(130146),r=e.i(814747),s=e.i(446786);let n=r.default.join(s.default.homedir(),".purplemux","logs"),i=process.env.LOG_LEVEL||"info",a=(e=>{if(!e)return{};let t={};for(let r of e.split(",")){let[e,s]=r.split("=").map(e=>e.trim());e&&s&&(t[e]=s)}return t})(process.env.LOG_LEVELS),o=["trace","debug","info","warn","error","fatal"],l=globalThis;if(!l.__ptRootLogger){let e=[i,...Object.values(a)].reduce((e,t)=>o.indexOf(t)<o.indexOf(e)?t:e,"fatal");l.__ptRootLogger=(0,t.default)({level:e,transport:{targets:[{target:"pino-roll",level:e,options:{file:r.default.join(n,"purplemux"),frequency:"daily",dateFormat:"yyyy-MM-dd",limit:{count:7},mkdir:!0}},{target:"pino-pretty",level:e,options:{colorize:!0,ignore:"pid,hostname,module",translateTime:"HH:MM:ss",messageFormat:"[{module}] {msg}"}}]}})}let u=l.__ptRootLogger;e.s(["createLogger",0,e=>{let t=u.child({module:e});return t.level=a[e]??i,t}])},44014,e=>{"use strict";let t,r;var s=e.i(666680);e.s(["nanoid",0,function(e=21){var n;n=e|=0,!t||t.length<n?(t=Buffer.allocUnsafe(128*n),s.webcrypto.getRandomValues(t),r=0):r+n>t.length&&(s.webcrypto.getRandomValues(t),r=0),r+=n;let i="";for(let s=r-e;s<r;s++)i+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&t[s]];return i}],44014)},459015,544538,e=>{"use strict";var t=e.i(233405),r=e.i(924868),s=e.i(224361),n=e.i(814747),i=e.i(44014),a=e.i(25146);process.platform;let o="linux"===process.platform;e.s(["isLinux",0,o],544538);let l=(0,a.createLogger)("terminal"),u=(0,s.promisify)(t.execFile),p="purple",c=n.default.join(process.env.__PMUX_APP_DIR_UNPACKED||process.env.__PMUX_APP_DIR||process.cwd(),"src","config","tmux.conf"),m={...process.env},d=new Set(["AUTH_PASSWORD","NEXTAUTH_SECRET","PORT"]),f=()=>Object.fromEntries(Object.entries(m).filter(([e])=>!e.startsWith("npm_")&&!e.startsWith("NODE_")&&!d.has(e))),h=async()=>{try{let{stdout:e}=await u("tmux",["-L",p,"ls","-F","#{session_name}"],{timeout:5e3});return e.trim().split("\n").map(e=>e.trim()).filter(e=>e.startsWith("pt-"))}catch{return[]}},w=async(e,t,r,s)=>{let n=process.env.SHELL||"/bin/zsh";await u("tmux",["-u","-L",p,"-f",c,"new-session","-d","-s",e,"-x",String(t),"-y",String(r)],{timeout:5e3,env:{...f(),SHELL:n,TERM:"xterm-256color",COLORTERM:"truecolor"},cwd:s||process.env.HOME||"/"}),await b(),l.debug(`tmux session created: ${e} (cols: ${t}, rows: ${r})`)},y=e=>new Promise(t=>setTimeout(t,e)),g=async e=>{if(!await x(e))return;l.debug(`killSession start: ${e}`);let t=await P(e);if(t)try{l.debug(`SIGTERM → process group ${t}: ${e}`),process.kill(-t,"SIGTERM")}catch{}try{await u("tmux",["-L",p,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<5;t++){if(!await x(e))return void l.debug(`killSession done (SIGTERM): ${e}`);await y(200)}if(l.warn(`session survived SIGTERM, escalating to SIGKILL: ${e}`),t)try{l.debug(`SIGKILL → process group ${t}: ${e}`),process.kill(-t,"SIGKILL")}catch{}try{await u("tmux",["-L",p,"kill-session","-t",e],{timeout:5e3})}catch{}for(let t=0;t<3;t++){if(!await x(e))return void l.debug(`killSession done (SIGKILL): ${e}`);await y(200)}l.warn(`tmux session still alive after kill: ${e}`)},x=async e=>{try{return await u("tmux",["-L",p,"has-session","-t",e],{timeout:5e3}),!0}catch{return!1}},S=async()=>{},v=async()=>{await S();let e=await h();e.length>0&&e.forEach(e=>{l.debug(`existing tmux session found: ${e}`)})},_=async e=>{if(o)try{return await r.default.readlink(`/proc/${e}/cwd`)}catch{return null}try{let{stdout:t}=await u("lsof",["-a","-p",String(e),"-d","cwd","-Fn"],{timeout:5e3}),r=t.split("\n").find(e=>e.startsWith("n/"));return r?r.slice(1):null}catch{return null}},L=async e=>{let t=await P(e);if(t){let e=await _(t);if(e)return e}try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_current_path}"],{timeout:5e3});return t.trim()||null}catch{return null}},P=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_pid}"],{timeout:5e3}),r=parseInt(t.trim(),10);return Number.isNaN(r)?null:r}catch{return null}},b=async()=>{try{await u("tmux",["-L",p,"source-file",c],{timeout:5e3})}catch{}},$=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"list-panes","-t",e,"-F","#{pane_current_command}"],{timeout:5e3});return t.trim()||null}catch{return null}},E=async()=>{try{let{stdout:e}=await u("tmux",["-L",p,"list-panes","-a","-F","#{session_name} #{pane_current_command} #{pane_current_path} #{pane_pid} #{window_activity}"],{timeout:5e3}),t=new Map;for(let r of e.trim().split("\n")){if(!r)continue;let[e,s,n,i,a]=r.split(" ");if(e&&s){let r=parseInt(i,10),o=parseInt(a,10);t.set(e,{command:s,path:n||"",pid:Number.isNaN(r)?0:r,windowActivity:Number.isNaN(o)?0:o})}}return t}catch{return new Map}},R=new Set(["bash","zsh","fish","sh","dash"]),I=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_title}"],{timeout:5e3});return t.trim()||null}catch{return null}},N=async e=>{await u("tmux",["-L",p,"copy-mode","-q","-t",e],{timeout:5e3}).catch(()=>{})},q=async(e,t)=>{await N(e),await u("tmux",["-L",p,"send-keys","-t",e,t,"Enter"],{timeout:5e3})},T=async(e,t)=>{await N(e),await u("tmux",["-L",p,"send-keys","-t",e,t],{timeout:5e3})},k=async(e,t)=>{await N(e),await u("tmux",["-L",p,"send-keys","-t",e,"-l",`\x1b[200~${t}\x1b[201~`],{timeout:5e3}),await u("tmux",["-L",p,"send-keys","-t",e,"Enter"],{timeout:5e3}),await new Promise(e=>setTimeout(e,600)),await u("tmux",["-L",p,"send-keys","-t",e,"Enter"],{timeout:5e3})},C=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"display-message","-p","-t",e,"#{pane_current_path} #{pane_current_command} #{pane_pid} #{pane_width} #{pane_height} #{session_created}"],{timeout:5e3}),[r,s,n,i,a,o]=t.trim().split(" ");return{cwd:r||null,command:s||null,pid:n&&parseInt(n,10)||null,width:i&&parseInt(i,10)||null,height:a&&parseInt(a,10)||null,sessionCreated:o&&parseInt(o,10)||null}}catch{return{cwd:null,command:null,pid:null,width:null,height:null,sessionCreated:null}}},M=new Set(["node","python","python3","ruby","perl","deno","bun"]),A=async()=>{try{await u("tmux",["-L",p,"kill-server"],{timeout:5e3}),l.debug("tmux server killed")}catch{}},O=async e=>{try{let{stdout:t}=await u("tmux",["-L",p,"capture-pane","-p","-t",e],{timeout:5e3});return t}catch{return null}},j=async(e,t)=>{try{let{stdout:r}=await u("tmux",["-L",p,"capture-pane","-p","-S",`-${t}`,"-t",e],{timeout:5e3});return r}catch{return null}},D=async e=>{if(o){let t=[];return await Promise.all(e.map(async e=>{try{for(let s of(await r.default.readFile(`/proc/${e}/task/${e}/children`,"utf-8")).trim().split(/\s+/)){let e=parseInt(s,10);Number.isNaN(e)||t.push(e)}}catch{}})),t}try{let{stdout:t}=await u("pgrep",["-P",e.join(",")],{timeout:5e3});return t.trim().split("\n").map(e=>parseInt(e,10)).filter(e=>!Number.isNaN(e))}catch{return[]}},G=async e=>{let t=[],r=[e];for(;r.length>0;){let e=await D(r);if(0===e.length)break;t.push(...e),r=e}return t},H=async e=>{try{let t=new Set(e),{stdout:r}=await u("ss",["-tlnp"],{timeout:5e3}),s=new Set;for(let e of r.split("\n")){let r=e.match(/pid=(\d+)/g);if(!r||!r.some(e=>t.has(parseInt(e.replace("pid=",""),10))))continue;let n=e.match(/:(\d+)\s/);n&&s.add(parseInt(n[1],10))}return[...s].sort((e,t)=>e-t)}catch{return[]}},U=async e=>{let t=await G(e);if(0===t.length)return[];if(o)return H(t);try{let{stdout:e}=await u("lsof",["-a","-p",t.join(","),"-i","-sTCP:LISTEN","-P","-Fn"],{timeout:5e3}),r=new Set;for(let t of e.split("\n"))if(t.startsWith("n")){let e=t.match(/:(\d+)$/);e&&r.add(parseInt(e[1],10))}return[...r].sort((e,t)=>e-t)}catch{return[]}},W=async e=>{let t=await P(e);if(!t)return null;try{let{stdout:e}=await u("pgrep",["-n","-P",String(t)],{timeout:5e3}),r=e.trim();if(!r)return null;let{stdout:s}=await u("ps",["-o","args=","-p",r],{timeout:5e3}),i=s.trim();if(!i)return null;let a=i.split(/\s+/);if(0===a.length)return i;if(a[0]=n.default.basename(a[0]),M.has(a[0])&&a.length>1){let e=n.default.basename(a[1]).replace(/\.(c|m)?js$/,"");a.splice(0,2,e)}return a.join(" ")}catch{return null}};e.s(["SAFE_SHELLS",0,R,"applyConfig",0,b,"capturePaneContent",0,O,"capturePaneContentWithHistory",0,j,"createSession",0,w,"defaultSessionName",0,()=>`pt-${(0,i.nanoid)(6)}-${(0,i.nanoid)(6)}-${(0,i.nanoid)(6)}`,"exitCopyMode",0,N,"getAllPanesInfo",0,E,"getLastCommand",0,W,"getListeningPorts",0,U,"getPaneCurrentCommand",0,$,"getPaneDetailInfo",0,C,"getPaneTitle",0,I,"getSessionCwd",0,L,"getSessionPanePid",0,P,"hasSession",0,x,"killServer",0,A,"killSession",0,g,"listSessions",0,h,"sanitizedEnv",0,f,"scanSessions",0,v,"sendBracketedPaste",0,k,"sendKeys",0,q,"sendRawKeys",0,T,"workspaceSessionName",0,(e,t,r)=>`pt-${e}-${t}-${r}`],459015)},175609,(e,t,r)=>{t.exports=e.x("node-pty-592e8dc6192cfd06",()=>require("node-pty-592e8dc6192cfd06"))},971780,e=>{"use strict";var t=e.i(459015);e.i(478319),e.i(220951),e.i(175609),new TextEncoder,new TextDecoder,(0,e.i(25146).createLogger)("terminal"),new TextDecoder;let r=globalThis,s=r.__purplemux_terminal_connections??=new Map;r.__purplemux_terminal_output_ts??=new Map;let n=(e,t,r)=>{for(let n of s.values())if(n.sessionName===e&&!n.cleaned)return void n.pty.resize(t,r)},i=e=>new Promise(t=>setTimeout(t,e)),a=async(e,r,a)=>{let o=(e=>{for(let t of s.values())if(t.sessionName===e&&!t.cleaned)return{cols:t.currentCols,rows:t.currentRows};return null})(e);if(o&&o.cols>50)return(0,t.capturePaneContentWithHistory)(e,50);let l=(e=>{for(let t of s.values())if(t.sessionName===e&&!t.cleaned){if(t.capturePaused)return null;return t.capturePaused=!0,{cols:t.currentCols,rows:t.currentRows}}return null})(e);if(!l)return(0,t.capturePaneContent)(e);try{n(e,r,a),await i(300);let s=await (0,t.capturePaneContent)(e);return n(e,l.cols,l.rows),await i(300),s}finally{(e=>{for(let t of s.values())if(t.sessionName===e&&!t.cleaned){if(!t.capturePaused)return;t.capturePaused=!1;return}})(e)}};e.s(["capturePaneAtWidth",0,a],971780)},443571,e=>{"use strict";let t=["Yes","Yes,","No","Accept","Decline","Open System Settings","Try again","Use this","Continue without","Resume from summary","Resume full session","Continue this conversation","Send message as","Don't ask me again"],r=/^\s*(?:[❯›>]\s+)?(.+)$/,s=/^\s*[❯›>]\s+/,n=/^\d+\.\s+/,i=/^\s*([❯›>])?\s*(\d+)\.?\s*(\S.*)$/,a=e=>e.replace(n,""),o=(e,t)=>e.some(e=>a(e).startsWith(t)),l=e=>e.match(/^\s*/)?.[0].length??0,u=/^(Yes,\s*and\s+don[\u2019']?t\s+ask)\s*:\s*(.+)$/,p=e=>!(e.length<2)&&(o(e,"Yes")&&o(e,"No")||o(e,"Accept")&&o(e,"Decline")||o(e,"Open System Settings")||o(e,"Use this")&&o(e,"Continue without")||o(e,"Resume from summary")&&o(e,"Resume full session")||o(e,"Continue this conversation")&&o(e,"Send message as"));e.s(["parsePermissionOptions",0,e=>{let n=e.split("\n"),o=(e=>{let t=[],r=[],s=0,n=1,a=0,o=()=>{r.length>=2&&t.push({rawOptions:r.slice(),focusedIndex:s}),r=[],s=0,n=1,a=0};for(let t of e){if(!t.trim())continue;let e=t.match(i);if(e){let i=e[1],u=Number(e[2]),p=e[3].trim();if(p.length>0){if(1===u){o(),r.push(p),i&&(s=0),a=l(t),n=2;continue}if(u===n){i&&(s=r.length),r.push(p),a=l(t),n+=1;continue}}}if(r.length>0){if(l(t)>a){r[r.length-1]+=t.trimStart();continue}if(/^\s+\S/.test(t))continue;o()}}o();let p=t[t.length-1];return p?{options:p.rawOptions.map((e,t)=>{let r;return`${t+1}. ${(r=e.match(u))?`${r[1]} again for: ${r[2].trim()}`:/^Yes(?![,\s]|$)/.test(e)?"Yes":/^No(?![,\s]|$)/.test(e)?"No":e}`}),focusedIndex:p.focusedIndex}:{options:[],focusedIndex:0}})(n);if(o.options.length>=2&&p(o.options))return o;let c=(e=>{let n=[],i=0,o=!1;for(let l of e){if(!l.trim()){if(o)break;continue}let e=s.test(l),u=/^\s+\S/.test(l);if(!e&&!u){if(o)break;continue}let p=l.match(r);if(!p)continue;let c=p[1].trim(),m=a(c);t.some(e=>m.startsWith(e))&&(e&&(i=n.length),n.push(c),o=!0)}return{options:n,focusedIndex:i}})(n);return p(c.options)?c:{options:[],focusedIndex:0}}])},454549,e=>{"use strict";var t=e.i(926747),r=e.i(190406),s=e.i(244898),n=e.i(262950),i=e.i(459015),a=e.i(971780),o=e.i(25146),l=e.i(443571);let u=(0,o.createLogger)("tmux"),p=async(e,t)=>{if("GET"!==e.method)return t.setHeader("Allow","GET"),t.status(405).json({error:"Method not allowed"});let r=e.query.session;if(!r)return t.status(400).json({error:"session parameter required"});if(!await (0,i.hasSession)(r))return t.status(404).json({error:"Session not found"});try{let e=await (0,a.capturePaneAtWidth)(r,120,50);if(!e)return t.status(200).json({options:[]});let{options:s}=(0,l.parsePermissionOptions)(e),n=e.includes("Bypass Permissions");return t.status(200).json({options:s,...n&&{isBypassPrompt:!0}})}catch(e){return u.error(`permission-options query failed: ${e instanceof Error?e.message:e}`),t.status(500).json({error:"Terminal capture failed"})}};e.s(["default",0,p],96110);var c=e.i(96110),m=e.i(7031),d=e.i(181927),f=e.i(846432);let h=(0,n.hoist)(c,"default"),w=(0,n.hoist)(c,"config"),y=new s.PagesAPIRouteModule({definition:{kind:r.RouteKind.PAGES_API,page:"/api/tmux/permission-options",pathname:"/api/tmux/permission-options",bundlePath:"",filename:""},userland:c,distDir:".next",relativeProjectDir:""});async function g(e,r,s){s.requestMeta&&(0,f.setRequestMeta)(e,s.requestMeta),y.isDev&&(0,f.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let n="/api/tmux/permission-options";n=n.replace(/\/index$/,"")||"/";let i=await y.prepare(e,r,{srcPage:n});if(!i){r.statusCode=400,r.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve());return}let{query:a,params:o,prerenderManifest:l,routerServerContext:u}=i;try{let t,s=e.method||"GET",i=(0,m.getTracer)(),p=i.getActiveScopeSpan(),c=!!(null==u?void 0:u.isWrappedByNextServer),f=y.instrumentationOnRequestError.bind(y),h=async p=>y.render(e,r,{query:{...a,...o},params:o,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:l.preview,propagateError:!1,dev:y.isDev,page:"/api/tmux/permission-options",internalRevalidate:null==u?void 0:u.revalidate,onError:(...t)=>f(e,...t)}).finally(()=>{if(!p)return;p.setAttributes({"http.status_code":r.statusCode,"next.rsc":!1});let e=i.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=e.get("next.route");if(a){let e=`${s} ${a}`;p.setAttributes({"next.route":a,"http.route":a,"next.span_name":e}),p.updateName(e),t&&t!==p&&(t.setAttribute("http.route",a),t.updateName(e))}else p.updateName(`${s} ${n}`)});c&&p?await h(p):(t=i.getActiveScopeSpan(),await i.withPropagatedContext(e.headers,()=>i.trace(d.BaseServerSpan.handleRequest,{spanName:`${s} ${n}`,kind:m.SpanKind.SERVER,attributes:{"http.method":s,"http.target":e.url}},h),void 0,!c))}catch(e){if(y.isDev)throw e;(0,t.sendError)(r,500,"Internal Server Error")}finally{null==s.waitUntil||s.waitUntil.call(s,Promise.resolve())}}e.s(["config",0,w,"default",0,h,"handler",0,g],454549)}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0.xjg-~._.js.map