ompgui 0.7.9 → 0.7.12

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 (304) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +7 -6
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +5 -5
  5. package/.next/react-loadable-manifest.json +5 -5
  6. package/.next/required-server-files.js +3 -3
  7. package/.next/required-server-files.json +3 -3
  8. package/.next/routes-manifest.json +6 -0
  9. package/.next/server/app/_global-error/page.js +1 -1
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +2 -2
  13. package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  14. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
  15. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/_not-found/page.js +1 -1
  17. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/_not-found.html +1 -1
  19. package/.next/server/app/_not-found.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  21. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  24. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  25. package/.next/server/app/api/agent/[id]/route.js +1 -1
  26. package/.next/server/app/api/agent/new/route.js +1 -1
  27. package/.next/server/app/api/agent/running/events/route.js +2 -2
  28. package/.next/server/app/api/agents/[name]/route.js +1 -1
  29. package/.next/server/app/api/agents/route.js +1 -1
  30. package/.next/server/app/api/agents/unpack/route.js +1 -1
  31. package/.next/server/app/api/app-update/route.js +1 -1
  32. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  33. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  34. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  35. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  36. package/.next/server/app/api/auth/providers/route.js +1 -1
  37. package/.next/server/app/api/cwd/browse/route.js +1 -1
  38. package/.next/server/app/api/cwd/validate/route.js +1 -1
  39. package/.next/server/app/api/daemon/route.js +1 -1
  40. package/.next/server/app/api/daemon/route.js.nft.json +1 -1
  41. package/.next/server/app/api/default-cwd/route.js +1 -1
  42. package/.next/server/app/api/file-index/route.js +1 -1
  43. package/.next/server/app/api/files/[...path]/route.js +1 -1
  44. package/.next/server/app/api/git/diff/route.js +2 -2
  45. package/.next/server/app/api/git/status/route.js +1 -1
  46. package/.next/server/app/api/home/route.js +1 -1
  47. package/.next/server/app/api/mcp/route.js +2 -2
  48. package/.next/server/app/api/model-roles/route.js +1 -1
  49. package/.next/server/app/api/models/route.js +1 -1
  50. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  51. package/.next/server/app/api/models-config/connectivity/route.js +1 -1
  52. package/.next/server/app/api/models-config/connectivity/route.js.nft.json +1 -1
  53. package/.next/server/app/api/models-config/route.js +1 -1
  54. package/.next/server/app/api/models-config/test/route.js +1 -1
  55. package/.next/server/app/api/omp-settings/route.js +1 -1
  56. package/.next/server/app/api/omp-update/route.js +2 -2
  57. package/.next/server/app/api/omp-version/route.js +1 -1
  58. package/.next/server/app/api/plugins/route.js +1 -1
  59. package/.next/server/app/api/projects/route.js +2 -2
  60. package/.next/server/app/api/providers/enable/route.js +1 -1
  61. package/.next/server/app/api/relay/devices/[id]/route.js +1 -1
  62. package/.next/server/app/api/relay/devices/[id]/route.js.nft.json +1 -1
  63. package/.next/server/app/api/relay/devices/route.js +1 -1
  64. package/.next/server/app/api/relay/devices/route.js.nft.json +1 -1
  65. package/.next/server/app/api/relay/pair/route.js +1 -1
  66. package/.next/server/app/api/relay/pair/route.js.nft.json +1 -1
  67. package/.next/server/app/api/sessions/[id]/archive/route.js +1 -1
  68. package/.next/server/app/api/sessions/[id]/auto-name/route.js +1 -1
  69. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  70. package/.next/server/app/api/sessions/[id]/entries/[entryId]/media/route.js +1 -1
  71. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  72. package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
  73. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  74. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  75. package/.next/server/app/api/sessions/[id]/subagents/[subagentId]/route.js +1 -1
  76. package/.next/server/app/api/sessions/[id]/subagents/route.js +1 -1
  77. package/.next/server/app/api/sessions/archive/route.js +1 -1
  78. package/.next/server/app/api/sessions/import/route.js +1 -1
  79. package/.next/server/app/api/sessions/route.js +1 -1
  80. package/.next/server/app/api/sessions/search/route.js +1 -1
  81. package/.next/server/app/api/skills/check/route.js +1 -1
  82. package/.next/server/app/api/skills/install/route.js +1 -1
  83. package/.next/server/app/api/skills/route.js +1 -1
  84. package/.next/server/app/api/skills/search/route.js +1 -1
  85. package/.next/server/app/api/skills/update/route.js +1 -1
  86. package/.next/server/app/api/usage/route.js +1 -1
  87. package/.next/server/app/api/web-auth/pair/route.js +1 -0
  88. package/.next/server/app/api/web-auth/pair/route.js.nft.json +1 -0
  89. package/.next/server/app/api/web-auth/pair/route_client-reference-manifest.js +1 -0
  90. package/.next/server/app/api/web-auth/session/route.js +1 -1
  91. package/.next/server/app/api/web-auth/session/route.js.nft.json +1 -1
  92. package/.next/server/app/api/worktrees/route.js +1 -1
  93. package/.next/server/app/apple-icon.png/route.js +1 -1
  94. package/.next/server/app/favicon.ico/route.js +1 -1
  95. package/.next/server/app/icon.svg/route.js +1 -1
  96. package/.next/server/app/index.html +1 -1
  97. package/.next/server/app/index.rsc +3 -3
  98. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  99. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  100. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  101. package/.next/server/app/login/page.js +1 -1
  102. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  103. package/.next/server/app/login.html +1 -1
  104. package/.next/server/app/login.rsc +3 -3
  105. package/.next/server/app/login.segments/_full.segment.rsc +3 -3
  106. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  107. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  108. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  109. package/.next/server/app/page.js +2 -2
  110. package/.next/server/app/page_client-reference-manifest.js +1 -1
  111. package/.next/server/app/pair/page.js +1 -1
  112. package/.next/server/app/pair/page_client-reference-manifest.js +1 -1
  113. package/.next/server/app/pair.html +1 -1
  114. package/.next/server/app/pair.rsc +3 -3
  115. package/.next/server/app/pair.segments/_full.segment.rsc +3 -3
  116. package/.next/server/app/pair.segments/_tree.segment.rsc +1 -1
  117. package/.next/server/app/pair.segments/pair/__PAGE__.segment.rsc +3 -3
  118. package/.next/server/app/relay/route.js +1 -1
  119. package/.next/server/app-paths-manifest.json +7 -6
  120. package/.next/server/chunks/3100.js +1 -1
  121. package/.next/server/chunks/4008.js +2 -2
  122. package/.next/server/chunks/4395.js +2 -0
  123. package/.next/server/chunks/474.js +1 -1
  124. package/.next/server/chunks/4980.js +1 -1
  125. package/.next/server/chunks/6337.js +1 -1
  126. package/.next/server/chunks/7077.js +1 -1
  127. package/.next/server/chunks/8015.js +13 -13
  128. package/.next/server/chunks/8501.js +1 -1
  129. package/.next/server/chunks/933.js +1 -1
  130. package/.next/server/chunks/9848.js +1 -1
  131. package/.next/server/functions-config-manifest.json +2 -2
  132. package/.next/server/instrumentation.js +1 -1
  133. package/.next/server/middleware-build-manifest.js +1 -1
  134. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  135. package/.next/server/middleware.js +6 -5
  136. package/.next/server/pages/404.html +1 -1
  137. package/.next/server/pages/500.html +1 -1
  138. package/.next/server/server-reference-manifest.json +1 -1
  139. package/.next/static/chunks/3274.f8f023fd73e607bc.js +2 -0
  140. package/.next/static/chunks/3944.2debfbacfd5e255f.js +1 -0
  141. package/.next/static/chunks/4315-ea1c0b248e80933c.js +1 -0
  142. package/.next/static/chunks/4996.c5525823b73ac947.js +1 -0
  143. package/.next/static/chunks/{6268.294dd515c545712d.js → 6268.be519bbc5c4347fe.js} +3 -3
  144. package/.next/static/chunks/{9668.a6deba4ff5761bbb.js → 9668.6c511d3f22a0d3ad.js} +1 -1
  145. package/.next/static/chunks/app/_global-error/page-ef9cf0833e5e0b87.js +1 -0
  146. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-ef9cf0833e5e0b87.js +1 -0
  147. package/.next/static/chunks/app/api/agent/[id]/events/route-ef9cf0833e5e0b87.js +1 -0
  148. package/.next/static/chunks/app/api/agent/[id]/route-ef9cf0833e5e0b87.js +1 -0
  149. package/.next/static/chunks/app/api/agent/new/route-ef9cf0833e5e0b87.js +1 -0
  150. package/.next/static/chunks/app/api/agent/running/events/route-ef9cf0833e5e0b87.js +1 -0
  151. package/.next/static/chunks/app/api/agents/[name]/route-ef9cf0833e5e0b87.js +1 -0
  152. package/.next/static/chunks/app/api/agents/route-ef9cf0833e5e0b87.js +1 -0
  153. package/.next/static/chunks/app/api/agents/unpack/route-ef9cf0833e5e0b87.js +1 -0
  154. package/.next/static/chunks/app/api/app-update/route-ef9cf0833e5e0b87.js +1 -0
  155. package/.next/static/chunks/app/api/auth/all-providers/route-ef9cf0833e5e0b87.js +1 -0
  156. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-ef9cf0833e5e0b87.js +1 -0
  157. package/.next/static/chunks/app/api/auth/login/[provider]/route-ef9cf0833e5e0b87.js +1 -0
  158. package/.next/static/chunks/app/api/auth/logout/[provider]/route-ef9cf0833e5e0b87.js +1 -0
  159. package/.next/static/chunks/app/api/auth/providers/route-ef9cf0833e5e0b87.js +1 -0
  160. package/.next/static/chunks/app/api/cwd/browse/route-ef9cf0833e5e0b87.js +1 -0
  161. package/.next/static/chunks/app/api/cwd/validate/route-ef9cf0833e5e0b87.js +1 -0
  162. package/.next/static/chunks/app/api/daemon/route-ef9cf0833e5e0b87.js +1 -0
  163. package/.next/static/chunks/app/api/default-cwd/route-ef9cf0833e5e0b87.js +1 -0
  164. package/.next/static/chunks/app/api/file-index/route-ef9cf0833e5e0b87.js +1 -0
  165. package/.next/static/chunks/app/api/files/[...path]/route-ef9cf0833e5e0b87.js +1 -0
  166. package/.next/static/chunks/app/api/git/diff/route-ef9cf0833e5e0b87.js +1 -0
  167. package/.next/static/chunks/app/api/git/status/route-ef9cf0833e5e0b87.js +1 -0
  168. package/.next/static/chunks/app/api/home/route-ef9cf0833e5e0b87.js +1 -0
  169. package/.next/static/chunks/app/api/mcp/route-ef9cf0833e5e0b87.js +1 -0
  170. package/.next/static/chunks/app/api/model-roles/route-ef9cf0833e5e0b87.js +1 -0
  171. package/.next/static/chunks/app/api/models/route-ef9cf0833e5e0b87.js +1 -0
  172. package/.next/static/chunks/app/api/models-config/catalog/route-ef9cf0833e5e0b87.js +1 -0
  173. package/.next/static/chunks/app/api/models-config/connectivity/route-ef9cf0833e5e0b87.js +1 -0
  174. package/.next/static/chunks/app/api/models-config/route-ef9cf0833e5e0b87.js +1 -0
  175. package/.next/static/chunks/app/api/models-config/test/route-ef9cf0833e5e0b87.js +1 -0
  176. package/.next/static/chunks/app/api/omp-settings/route-ef9cf0833e5e0b87.js +1 -0
  177. package/.next/static/chunks/app/api/omp-update/route-ef9cf0833e5e0b87.js +1 -0
  178. package/.next/static/chunks/app/api/omp-version/route-ef9cf0833e5e0b87.js +1 -0
  179. package/.next/static/chunks/app/api/plugins/route-ef9cf0833e5e0b87.js +1 -0
  180. package/.next/static/chunks/app/api/projects/route-ef9cf0833e5e0b87.js +1 -0
  181. package/.next/static/chunks/app/api/providers/enable/route-ef9cf0833e5e0b87.js +1 -0
  182. package/.next/static/chunks/app/api/relay/devices/[id]/route-ef9cf0833e5e0b87.js +1 -0
  183. package/.next/static/chunks/app/api/relay/devices/route-ef9cf0833e5e0b87.js +1 -0
  184. package/.next/static/chunks/app/api/relay/pair/route-ef9cf0833e5e0b87.js +1 -0
  185. package/.next/static/chunks/app/api/sessions/[id]/archive/route-ef9cf0833e5e0b87.js +1 -0
  186. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-ef9cf0833e5e0b87.js +1 -0
  187. package/.next/static/chunks/app/api/sessions/[id]/context/route-ef9cf0833e5e0b87.js +1 -0
  188. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/media/route-ef9cf0833e5e0b87.js +1 -0
  189. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-ef9cf0833e5e0b87.js +1 -0
  190. package/.next/static/chunks/app/api/sessions/[id]/export/route-ef9cf0833e5e0b87.js +1 -0
  191. package/.next/static/chunks/app/api/sessions/[id]/route-ef9cf0833e5e0b87.js +1 -0
  192. package/.next/static/chunks/app/api/sessions/[id]/state/route-ef9cf0833e5e0b87.js +1 -0
  193. package/.next/static/chunks/app/api/sessions/[id]/subagents/[subagentId]/route-ef9cf0833e5e0b87.js +1 -0
  194. package/.next/static/chunks/app/api/sessions/[id]/subagents/route-ef9cf0833e5e0b87.js +1 -0
  195. package/.next/static/chunks/app/api/sessions/archive/route-ef9cf0833e5e0b87.js +1 -0
  196. package/.next/static/chunks/app/api/sessions/import/route-ef9cf0833e5e0b87.js +1 -0
  197. package/.next/static/chunks/app/api/sessions/route-ef9cf0833e5e0b87.js +1 -0
  198. package/.next/static/chunks/app/api/sessions/search/route-ef9cf0833e5e0b87.js +1 -0
  199. package/.next/static/chunks/app/api/skills/check/route-ef9cf0833e5e0b87.js +1 -0
  200. package/.next/static/chunks/app/api/skills/install/route-ef9cf0833e5e0b87.js +1 -0
  201. package/.next/static/chunks/app/api/skills/route-ef9cf0833e5e0b87.js +1 -0
  202. package/.next/static/chunks/app/api/skills/search/route-ef9cf0833e5e0b87.js +1 -0
  203. package/.next/static/chunks/app/api/skills/update/route-ef9cf0833e5e0b87.js +1 -0
  204. package/.next/static/chunks/app/api/usage/route-ef9cf0833e5e0b87.js +1 -0
  205. package/.next/static/chunks/app/api/web-auth/pair/route-ef9cf0833e5e0b87.js +1 -0
  206. package/.next/static/chunks/app/api/web-auth/session/route-ef9cf0833e5e0b87.js +1 -0
  207. package/.next/static/chunks/app/api/worktrees/route-ef9cf0833e5e0b87.js +1 -0
  208. package/.next/static/chunks/app/login/page-7bf6a8dff8d8ec8a.js +1 -0
  209. package/.next/static/chunks/app/manifest.webmanifest/route-ef9cf0833e5e0b87.js +1 -0
  210. package/.next/static/chunks/app/{page-305a0dd341ec102d.js → page-8ddabaf903ef7161.js} +1 -1
  211. package/.next/static/chunks/app/pair/page-b038d0301aa512a0.js +1 -0
  212. package/.next/static/chunks/app/relay/route-ef9cf0833e5e0b87.js +1 -0
  213. package/.next/static/chunks/{main-354b27ede3eb835a.js → main-07954eb1fcf84ef7.js} +1 -1
  214. package/.next/static/chunks/next/dist/client/components/builtin/app-error-ef9cf0833e5e0b87.js +1 -0
  215. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-ef9cf0833e5e0b87.js +1 -0
  216. package/.next/static/chunks/next/dist/client/components/builtin/not-found-ef9cf0833e5e0b87.js +1 -0
  217. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ef9cf0833e5e0b87.js +1 -0
  218. package/.next/static/chunks/{webpack-76f14942c1d852d7.js → webpack-6bfb3928a1f4ac15.js} +1 -1
  219. package/.next/static/u7dbGv9ZBD6miViUAEmi7/_buildManifest.js +1 -0
  220. package/README.ja.md +14 -13
  221. package/README.ko.md +14 -13
  222. package/README.md +14 -13
  223. package/README.zh-CN.md +14 -13
  224. package/bin/ompgui-options.js +2 -2
  225. package/bin/ompgui-pair.js +1 -0
  226. package/next.config.ts +3 -0
  227. package/package.json +1 -1
  228. package/.next/server/chunks/9145.js +0 -2
  229. package/.next/static/SAMSH7hMTmFI9vfMyiguw/_buildManifest.js +0 -1
  230. package/.next/static/chunks/3274.52c14cafa7f8a3ef.js +0 -2
  231. package/.next/static/chunks/3944.6215b78f025077b3.js +0 -1
  232. package/.next/static/chunks/4315-8575b9eecf54f2bb.js +0 -1
  233. package/.next/static/chunks/4996.5e04c050b0523d42.js +0 -1
  234. package/.next/static/chunks/app/_global-error/page-08a33f204a956c10.js +0 -1
  235. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-08a33f204a956c10.js +0 -1
  236. package/.next/static/chunks/app/api/agent/[id]/events/route-08a33f204a956c10.js +0 -1
  237. package/.next/static/chunks/app/api/agent/[id]/route-08a33f204a956c10.js +0 -1
  238. package/.next/static/chunks/app/api/agent/new/route-08a33f204a956c10.js +0 -1
  239. package/.next/static/chunks/app/api/agent/running/events/route-08a33f204a956c10.js +0 -1
  240. package/.next/static/chunks/app/api/agents/[name]/route-08a33f204a956c10.js +0 -1
  241. package/.next/static/chunks/app/api/agents/route-08a33f204a956c10.js +0 -1
  242. package/.next/static/chunks/app/api/agents/unpack/route-08a33f204a956c10.js +0 -1
  243. package/.next/static/chunks/app/api/app-update/route-08a33f204a956c10.js +0 -1
  244. package/.next/static/chunks/app/api/auth/all-providers/route-08a33f204a956c10.js +0 -1
  245. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-08a33f204a956c10.js +0 -1
  246. package/.next/static/chunks/app/api/auth/login/[provider]/route-08a33f204a956c10.js +0 -1
  247. package/.next/static/chunks/app/api/auth/logout/[provider]/route-08a33f204a956c10.js +0 -1
  248. package/.next/static/chunks/app/api/auth/providers/route-08a33f204a956c10.js +0 -1
  249. package/.next/static/chunks/app/api/cwd/browse/route-08a33f204a956c10.js +0 -1
  250. package/.next/static/chunks/app/api/cwd/validate/route-08a33f204a956c10.js +0 -1
  251. package/.next/static/chunks/app/api/daemon/route-08a33f204a956c10.js +0 -1
  252. package/.next/static/chunks/app/api/default-cwd/route-08a33f204a956c10.js +0 -1
  253. package/.next/static/chunks/app/api/file-index/route-08a33f204a956c10.js +0 -1
  254. package/.next/static/chunks/app/api/files/[...path]/route-08a33f204a956c10.js +0 -1
  255. package/.next/static/chunks/app/api/git/diff/route-08a33f204a956c10.js +0 -1
  256. package/.next/static/chunks/app/api/git/status/route-08a33f204a956c10.js +0 -1
  257. package/.next/static/chunks/app/api/home/route-08a33f204a956c10.js +0 -1
  258. package/.next/static/chunks/app/api/mcp/route-08a33f204a956c10.js +0 -1
  259. package/.next/static/chunks/app/api/model-roles/route-08a33f204a956c10.js +0 -1
  260. package/.next/static/chunks/app/api/models/route-08a33f204a956c10.js +0 -1
  261. package/.next/static/chunks/app/api/models-config/catalog/route-08a33f204a956c10.js +0 -1
  262. package/.next/static/chunks/app/api/models-config/connectivity/route-08a33f204a956c10.js +0 -1
  263. package/.next/static/chunks/app/api/models-config/route-08a33f204a956c10.js +0 -1
  264. package/.next/static/chunks/app/api/models-config/test/route-08a33f204a956c10.js +0 -1
  265. package/.next/static/chunks/app/api/omp-settings/route-08a33f204a956c10.js +0 -1
  266. package/.next/static/chunks/app/api/omp-update/route-08a33f204a956c10.js +0 -1
  267. package/.next/static/chunks/app/api/omp-version/route-08a33f204a956c10.js +0 -1
  268. package/.next/static/chunks/app/api/plugins/route-08a33f204a956c10.js +0 -1
  269. package/.next/static/chunks/app/api/projects/route-08a33f204a956c10.js +0 -1
  270. package/.next/static/chunks/app/api/providers/enable/route-08a33f204a956c10.js +0 -1
  271. package/.next/static/chunks/app/api/relay/devices/[id]/route-08a33f204a956c10.js +0 -1
  272. package/.next/static/chunks/app/api/relay/devices/route-08a33f204a956c10.js +0 -1
  273. package/.next/static/chunks/app/api/relay/pair/route-08a33f204a956c10.js +0 -1
  274. package/.next/static/chunks/app/api/sessions/[id]/archive/route-08a33f204a956c10.js +0 -1
  275. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-08a33f204a956c10.js +0 -1
  276. package/.next/static/chunks/app/api/sessions/[id]/context/route-08a33f204a956c10.js +0 -1
  277. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/media/route-08a33f204a956c10.js +0 -1
  278. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-08a33f204a956c10.js +0 -1
  279. package/.next/static/chunks/app/api/sessions/[id]/export/route-08a33f204a956c10.js +0 -1
  280. package/.next/static/chunks/app/api/sessions/[id]/route-08a33f204a956c10.js +0 -1
  281. package/.next/static/chunks/app/api/sessions/[id]/state/route-08a33f204a956c10.js +0 -1
  282. package/.next/static/chunks/app/api/sessions/[id]/subagents/[subagentId]/route-08a33f204a956c10.js +0 -1
  283. package/.next/static/chunks/app/api/sessions/[id]/subagents/route-08a33f204a956c10.js +0 -1
  284. package/.next/static/chunks/app/api/sessions/archive/route-08a33f204a956c10.js +0 -1
  285. package/.next/static/chunks/app/api/sessions/import/route-08a33f204a956c10.js +0 -1
  286. package/.next/static/chunks/app/api/sessions/route-08a33f204a956c10.js +0 -1
  287. package/.next/static/chunks/app/api/sessions/search/route-08a33f204a956c10.js +0 -1
  288. package/.next/static/chunks/app/api/skills/check/route-08a33f204a956c10.js +0 -1
  289. package/.next/static/chunks/app/api/skills/install/route-08a33f204a956c10.js +0 -1
  290. package/.next/static/chunks/app/api/skills/route-08a33f204a956c10.js +0 -1
  291. package/.next/static/chunks/app/api/skills/search/route-08a33f204a956c10.js +0 -1
  292. package/.next/static/chunks/app/api/skills/update/route-08a33f204a956c10.js +0 -1
  293. package/.next/static/chunks/app/api/usage/route-08a33f204a956c10.js +0 -1
  294. package/.next/static/chunks/app/api/web-auth/session/route-08a33f204a956c10.js +0 -1
  295. package/.next/static/chunks/app/api/worktrees/route-08a33f204a956c10.js +0 -1
  296. package/.next/static/chunks/app/login/page-a54174ed920300f7.js +0 -1
  297. package/.next/static/chunks/app/manifest.webmanifest/route-08a33f204a956c10.js +0 -1
  298. package/.next/static/chunks/app/pair/page-d72423ffc5654e29.js +0 -1
  299. package/.next/static/chunks/app/relay/route-08a33f204a956c10.js +0 -1
  300. package/.next/static/chunks/next/dist/client/components/builtin/app-error-08a33f204a956c10.js +0 -1
  301. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-08a33f204a956c10.js +0 -1
  302. package/.next/static/chunks/next/dist/client/components/builtin/not-found-08a33f204a956c10.js +0 -1
  303. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-08a33f204a956c10.js +0 -1
  304. /package/.next/static/{SAMSH7hMTmFI9vfMyiguw → u7dbGv9ZBD6miViUAEmi7}/_ssgManifest.js +0 -0
@@ -22,6 +22,7 @@
22
22
  "/api/sessions/[id]/state/route": "app/api/sessions/[id]/state/route.js",
23
23
  "/api/sessions/import/route": "app/api/sessions/import/route.js",
24
24
  "/api/sessions/route": "app/api/sessions/route.js",
25
+ "/api/web-auth/pair/route": "app/api/web-auth/pair/route.js",
25
26
  "/api/web-auth/session/route": "app/api/web-auth/session/route.js",
26
27
  "/api/worktrees/route": "app/api/worktrees/route.js",
27
28
  "/apple-icon.png/route": "app/apple-icon.png/route.js",
@@ -29,12 +30,12 @@
29
30
  "/icon.svg/route": "app/icon.svg/route.js",
30
31
  "/manifest.webmanifest/route": "app/manifest.webmanifest/route.js",
31
32
  "/api/agent/[id]/events/route": "app/api/agent/[id]/events/route.js",
32
- "/api/agent/running/events/route": "app/api/agent/running/events/route.js",
33
33
  "/api/agent/new/route": "app/api/agent/new/route.js",
34
- "/api/agents/unpack/route": "app/api/agents/unpack/route.js",
35
- "/api/app-update/route": "app/api/app-update/route.js",
34
+ "/api/agent/running/events/route": "app/api/agent/running/events/route.js",
36
35
  "/api/agents/route": "app/api/agents/route.js",
37
36
  "/api/agents/[name]/route": "app/api/agents/[name]/route.js",
37
+ "/api/agents/unpack/route": "app/api/agents/unpack/route.js",
38
+ "/api/app-update/route": "app/api/app-update/route.js",
38
39
  "/api/auth/all-providers/route": "app/api/auth/all-providers/route.js",
39
40
  "/api/auth/api-key/[provider]/route": "app/api/auth/api-key/[provider]/route.js",
40
41
  "/api/auth/logout/[provider]/route": "app/api/auth/logout/[provider]/route.js",
@@ -45,16 +46,16 @@
45
46
  "/api/models-config/catalog/route": "app/api/models-config/catalog/route.js",
46
47
  "/api/models-config/connectivity/route": "app/api/models-config/connectivity/route.js",
47
48
  "/api/mcp/route": "app/api/mcp/route.js",
48
- "/api/models-config/route": "app/api/models-config/route.js",
49
49
  "/api/models-config/test/route": "app/api/models-config/test/route.js",
50
+ "/api/models-config/route": "app/api/models-config/route.js",
50
51
  "/api/omp-settings/route": "app/api/omp-settings/route.js",
51
52
  "/api/omp-update/route": "app/api/omp-update/route.js",
52
53
  "/api/omp-version/route": "app/api/omp-version/route.js",
53
54
  "/api/models/route": "app/api/models/route.js",
54
55
  "/api/relay/devices/[id]/route": "app/api/relay/devices/[id]/route.js",
55
56
  "/api/relay/devices/route": "app/api/relay/devices/route.js",
56
- "/api/relay/pair/route": "app/api/relay/pair/route.js",
57
57
  "/api/plugins/route": "app/api/plugins/route.js",
58
+ "/api/relay/pair/route": "app/api/relay/pair/route.js",
58
59
  "/api/sessions/[id]/export/route": "app/api/sessions/[id]/export/route.js",
59
60
  "/api/sessions/[id]/subagents/[subagentId]/route": "app/api/sessions/[id]/subagents/[subagentId]/route.js",
60
61
  "/api/sessions/[id]/subagents/route": "app/api/sessions/[id]/subagents/route.js",
@@ -64,8 +65,8 @@
64
65
  "/api/skills/install/route": "app/api/skills/install/route.js",
65
66
  "/api/skills/route": "app/api/skills/route.js",
66
67
  "/api/usage/route": "app/api/usage/route.js",
67
- "/api/skills/update/route": "app/api/skills/update/route.js",
68
68
  "/api/skills/search/route": "app/api/skills/search/route.js",
69
+ "/api/skills/update/route": "app/api/skills/update/route.js",
69
70
  "/relay/route": "app/relay/route.js",
70
71
  "/login/page": "app/login/page.js",
71
72
  "/page": "app/page.js",
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=3100,exports.ids=[3100],exports.modules={65644:(a,b,c)=>{c.d(b,{Q7:()=>h,Rk:()=>k,rl:()=>g});var d=c(23211),e=c(78573);let f={error:"Session not found",code:"session_not_found"};async function g(a){let b=await (0,e.os)(a);return b?{filePath:b}:{response:d.NextResponse.json(f,{status:404})}}function h(a,b=500){return d.NextResponse.json({error:String(a)},{status:b})}let i=/^[a-z][a-z0-9_]{0,63}$/;function j(a,b){let c=a[b];return"string"==typeof c&&c.length>0?c:void 0}function k(a){let b=function(a){if(!(a instanceof Error)||!a.message)return null;if("WebRpcError"===a.name){let b=j(a,"code");return b&&i.test(b)?{error:a.message,code:b}:null}if("RpcCommandError"===a.name){if(!j(a,"command"))return null;let b=j(a,"code")??"rpc_command_failed";return i.test(b)?{error:a.message,code:b}:null}return null}(a);return b?d.NextResponse.json(b,{status:400}):null}},66829:(a,b,c)=>{c.d(b,{H8:()=>d,sj:()=>g,sp:()=>f});class d extends Error{constructor(){super("Request body exceeds the allowed size")}}function e(a){let b=a.headers.get("content-length");if(!b||!/^\d+$/.test(b))return null;let c=Number(b);return Number.isSafeInteger(c)?c:null}async function f(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f){let c=await a.text();if(Buffer.byteLength(c,"utf8")>b)throw new d;return JSON.parse(c)}let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=new Uint8Array(h),j=0;for(let a of g)i.set(a,j),j+=a.byteLength;return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(i))}async function g(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f)return a.formData();let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=a.headers.get("content-type");return new Response(new Blob(g),{headers:i?{"content-type":i}:void 0}).formData()}},96607:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{RB:()=>z,Sn:()=>x,eU:()=>t,hH:()=>A,x4:()=>y});var e=c(29021),f=c(33873),g=c.n(f),h=c(63294),i=c(85887),j=c(88501),k=c(80547),l=c(82536),m=c(58112),n=a([j]);function o(a){return"string"==typeof a&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a)}j=(n.then?(await n)():n)[0];let B={task:{description:"General-purpose subagent with full capabilities for delegated multi-step tasks",model:"@task",thinkingLevel:"auto",spawns:["*"],tools:["read","write","edit","bash"],systemPrompt:"General-purpose coding agent with full capabilities. Implement requested changes carefully and verify them before finishing."},scout:{description:"MUST be used for exploratory codebase research, rapid code analysis, and broad pattern searches. Fast read-only scout returning compressed context for handoff.",model:"@smol",thinkingLevel:"medium",tools:["read","grep","glob","web_search"],systemPrompt:"Explore the codebase and return concise, evidence-backed findings. Do not modify files."},reviewer:{description:"Code review specialist for quality/security analysis",model:"@slow",spawns:["scout"],tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Review code for correctness, security, maintainability, and regressions with concrete findings."},"security-reviewer":{description:"Read-only security specialist for evidence-backed repository vulnerability discovery",model:"@slow",tools:["read","grep","glob","lsp","ast_grep"],systemPrompt:"Discover potential security vulnerabilities and return concrete evidence and remediation guidance."},librarian:{description:"Researches external libraries and APIs by reading source code. Returns definitive, source-verified answers.",model:"@smol",thinkingLevel:"minimal",tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Research library APIs and source documentation; provide definitive, source-verified answers."},designer:{description:"UI/UX specialist for design implementation, review, visual refinement",model:"@designer",tools:["read","write","edit"],systemPrompt:"Design and implement polished, accessible user interfaces following project conventions."},sonic:{description:"Low-reasoning agent for strictly mechanical updates or data collection only",model:"@smol",thinkingLevel:"medium",tools:["read","write","edit"],systemPrompt:"Perform strictly mechanical updates and data collection accurately with minimal overhead."}};function p(a,b,c){let d=a.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/),e=d?d[1]:"",f=d?a.slice(d[0].length):a,i=(0,h.Tp)(e);if(i.errors.length>0)throw Error(`YAML parse error in ${b}: ${i.errors[0].message}`);let j=i.toJS(),k=j&&"object"==typeof j&&!Array.isArray(j)?j:{},l=String(k.name||g().basename(b,".md"));if(!o(l))throw Error(`Invalid agent identifier "${l}" in ${b}`);return{...k,name:l,description:String(k.description||""),tools:Array.isArray(k.tools)?k.tools.map(String):void 0,model:"string"==typeof k.model||Array.isArray(k.model)?k.model:void 0,prewalk:"boolean"==typeof k.prewalk||"string"==typeof k.prewalk?k.prewalk:void 0,advisor:"boolean"==typeof k.advisor||"string"==typeof k.advisor?k.advisor:void 0,thinkingLevel:"string"==typeof k.thinkingLevel?k.thinkingLevel:void 0,blocking:"boolean"==typeof k.blocking?k.blocking:void 0,systemPrompt:String(k.systemPrompt??f.trim()),source:c,filePath:b,isShadowed:!1}}async function q(a,b,c){try{let d=await e.promises.readdir(a,{withFileTypes:!0}),f=[];for(let h of d)if(h.isFile()&&h.name.endsWith(".md")){let d=g().join(a,h.name);try{let a=await e.promises.readFile(d,"utf8");f.push(p(a,d,b))}catch(a){c.push({path:d,error:a instanceof Error?a.message:String(a)})}}return f}catch(d){let b=d&&"object"==typeof d&&"code"in d?d.code:void 0;return"ENOENT"!==b&&c.push({path:a,error:d instanceof Error?d.message:String(d)}),[]}}function r(a){let b=g().resolve(a);for(;;){let a=g().join(b,".omp","agents"),c=g().join(b,".omp");if((0,e.existsSync)(a)||(0,e.existsSync)(c)){if(!(0,l.o4)((0,l.SW)(a),new Set([(0,l.SW)(b)])))throw Error(`Access denied to project agents directory: ${a}`);return a}let d=g().dirname(b);if(d===b)return null;b=d}}function s(){return g().join((0,i.$M)(),"agents")}async function t(a=process.cwd()){let b=[],c=r(a),d=s(),e=[];for(let a of(c&&e.push({dir:c,source:"project"}),e.push({dir:d,source:"user"}),(process.env.OMP_EXTENSION_DIRS||"").split(g().delimiter).filter(Boolean)))e.push({dir:g().join(a,"agents"),source:"extension"});let f=[];for(let{dir:a,source:c}of e){let d=await q(a,c,b);f.push(...d)}for(let[a,b]of Object.entries(B))f.push({name:a,model:b.model,thinkingLevel:b.thinkingLevel,spawns:b.spawns,description:b.description||"",tools:b.tools,systemPrompt:b.systemPrompt||"",source:"bundled",isShadowed:!1});let h=new Set,i=[],k={};try{k=(0,j.rk)().settings.task||{}}catch{}let l=k.agentModelOverrides||{},m=k.agentPrewalk||{},n=k.agentAdvisor||{},o=new Set(Array.isArray(k.disabledAgents)?k.disabledAgents:[]);for(let a of f){let b=!h.has(a.name);if(h.add(a.name),a.isShadowed=!b,b){if(a.name in l&&(a.overrideModel=l[a.name]),a.name in m){let b=m[a.name];a.prewalkOverride="on"===b||"off"!==b&&b}if(a.name in n){let b=n[a.name];a.advisorOverride="on"===b||"off"!==b&&b}o.has(a.name)&&(a.disabled=!0),i.push(a)}}return{agents:i,projectRoot:c?g().dirname(g().dirname(c)):void 0,...b.length>0?{diagnostics:b}:{}}}async function u(a){let b,c;if("user"===a.scope)c=(0,l.SW)((0,i.$M)()),b=s();else{let d=a.cwd||process.cwd(),f=await (0,k.mc)();if(!(0,k.B7)(d,f))throw Error(`Access denied to project path: ${d}`);if(b=r(d)||g().join(g().resolve(d),".omp","agents"),c=await e.promises.realpath(g().dirname(g().dirname(b))),!(0,k.B7)(c,f))throw Error(`Access denied to project root: ${c}`)}let d=(0,l.SW)(b);if(!(0,l.o4)(d,new Set([c])))throw Error(`Access denied to agents directory: ${b}`);return d}async function v(a){if(!o(a.name))throw Error(`Invalid agent identifier: "${a.name}"`);let b=await u(a),c=(0,l.SW)(g().join(b,`${a.name}.md`));if(!(0,l.o4)(c,new Set([b])))throw Error(`Access denied to target agent file: ${c}`);return await e.promises.mkdir(b,{recursive:!0}),c}function w(a){let b={name:a.name,description:a.description};for(let[c,d]of(a.tools&&a.tools.length>0&&(b.tools=a.tools),void 0!==a.model&&(b.model=a.model),void 0!==a.thinkingLevel&&(b.thinkingLevel=a.thinkingLevel),void 0!==a.prewalk&&(b.prewalk=a.prewalk),void 0!==a.advisor&&(b.advisor=a.advisor),Object.entries(a)))"name"===c||"description"===c||"tools"===c||"model"===c||"thinkingLevel"===c||"prewalk"===c||"advisor"===c||"systemPrompt"===c||["scope","cwd","source","filePath","isShadowed","overrideModel","prewalkOverride","advisorOverride","disabled"].includes(c)||void 0===d||(b[c]=d);let c=(0,h.As)(b).trim(),d=(a.systemPrompt||"").trim();return`---
1
+ "use strict";exports.id=3100,exports.ids=[3100],exports.modules={65644:(a,b,c)=>{c.d(b,{Q7:()=>h,Rk:()=>k,rl:()=>g});var d=c(23211),e=c(78573);let f={error:"Session not found",code:"session_not_found"};async function g(a){let b=await (0,e.os)(a);return b?{filePath:b}:{response:d.NextResponse.json(f,{status:404})}}function h(a,b=500){return d.NextResponse.json({error:String(a)},{status:b})}let i=/^[a-z][a-z0-9_]{0,63}$/;function j(a,b){let c=a[b];return"string"==typeof c&&c.length>0?c:void 0}function k(a){let b=function(a){if(!(a instanceof Error)||!a.message)return null;if("WebRpcError"===a.name){let b=j(a,"code");return b&&i.test(b)?{error:a.message,code:b}:null}if("RpcCommandError"===a.name){if(!j(a,"command"))return null;let b=j(a,"code")??"rpc_command_failed";return i.test(b)?{error:a.message,code:b}:null}return null}(a);return b?d.NextResponse.json(b,{status:400}):null}},66829:(a,b,c)=>{c.d(b,{H8:()=>d,sj:()=>g,sp:()=>f});class d extends Error{constructor(){super("Request body exceeds the allowed size")}}function e(a){let b=a.headers.get("content-length");if(!b||!/^\d+$/.test(b))return null;let c=Number(b);return Number.isSafeInteger(c)?c:null}async function f(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f){let c=await a.text();if(Buffer.byteLength(c,"utf8")>b)throw new d;return JSON.parse(c)}let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=new Uint8Array(h),j=0;for(let a of g)i.set(a,j),j+=a.byteLength;return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(i))}async function g(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f)return a.formData();let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=a.headers.get("content-type");return new Response(new Blob(g),{headers:i?{"content-type":i}:void 0}).formData()}},96607:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{RB:()=>z,Sn:()=>x,eU:()=>t,hH:()=>A,x4:()=>y});var e=c(29021),f=c(33873),g=c.n(f),h=c(63294),i=c(85887),j=c(88501),k=c(80547),l=c(82536),m=c(58112),n=a([j]);function o(a){return"string"==typeof a&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a)}j=(n.then?(await n)():n)[0];let B={task:{description:"General-purpose subagent with full capabilities for delegated multi-step tasks",model:"@task",thinkingLevel:"auto",spawns:["*"],tools:["read","write","edit","bash"],systemPrompt:"General-purpose coding agent with full capabilities. Implement requested changes carefully and verify them before finishing."},scout:{description:"MUST be used for exploratory codebase research, rapid code analysis, and broad pattern searches. Fast read-only scout returning compressed context for handoff.",model:"@smol",thinkingLevel:"medium",tools:["read","grep","glob","web_search"],systemPrompt:"Explore the codebase and return concise, evidence-backed findings. Do not modify files."},reviewer:{description:"Code review specialist for quality/security analysis",model:"@slow",spawns:["scout"],tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Review code for correctness, security, maintainability, and regressions with concrete findings."},"security-reviewer":{description:"Read-only security specialist for evidence-backed repository vulnerability discovery",model:"@slow",tools:["read","grep","glob","lsp","ast_grep"],systemPrompt:"Discover potential security vulnerabilities and return concrete evidence and remediation guidance."},sonic:{description:"Low-reasoning agent for strictly mechanical updates or data collection only",model:"@smol",thinkingLevel:"medium",tools:["read","write","edit"],systemPrompt:"Perform strictly mechanical updates and data collection accurately with minimal overhead."}};function p(a,b,c){let d=a.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/),e=d?d[1]:"",f=d?a.slice(d[0].length):a,i=(0,h.Tp)(e);if(i.errors.length>0)throw Error(`YAML parse error in ${b}: ${i.errors[0].message}`);let j=i.toJS(),k=j&&"object"==typeof j&&!Array.isArray(j)?j:{},l=String(k.name||g().basename(b,".md"));if(!o(l))throw Error(`Invalid agent identifier "${l}" in ${b}`);return{...k,name:l,description:String(k.description||""),tools:Array.isArray(k.tools)?k.tools.map(String):void 0,model:"string"==typeof k.model||Array.isArray(k.model)?k.model:void 0,prewalk:"boolean"==typeof k.prewalk||"string"==typeof k.prewalk?k.prewalk:void 0,advisor:"boolean"==typeof k.advisor||"string"==typeof k.advisor?k.advisor:void 0,thinkingLevel:"string"==typeof k.thinkingLevel?k.thinkingLevel:void 0,blocking:"boolean"==typeof k.blocking?k.blocking:void 0,systemPrompt:String(k.systemPrompt??f.trim()),source:c,filePath:b,isShadowed:!1}}async function q(a,b,c){try{let d=await e.promises.readdir(a,{withFileTypes:!0}),f=[];for(let h of d)if(h.isFile()&&h.name.endsWith(".md")){let d=g().join(a,h.name);try{let a=await e.promises.readFile(d,"utf8");f.push(p(a,d,b))}catch(a){c.push({path:d,error:a instanceof Error?a.message:String(a)})}}return f}catch(d){let b=d&&"object"==typeof d&&"code"in d?d.code:void 0;return"ENOENT"!==b&&c.push({path:a,error:d instanceof Error?d.message:String(d)}),[]}}function r(a){let b=g().resolve(a);for(;;){let a=g().join(b,".omp","agents"),c=g().join(b,".omp");if((0,e.existsSync)(a)||(0,e.existsSync)(c)){if(!(0,l.o4)((0,l.SW)(a),new Set([(0,l.SW)(b)])))throw Error(`Access denied to project agents directory: ${a}`);return a}let d=g().dirname(b);if(d===b)return null;b=d}}function s(){return g().join((0,i.$M)(),"agents")}async function t(a=process.cwd()){let b=[],c=r(a),d=s(),e=[];for(let a of(c&&e.push({dir:c,source:"project"}),e.push({dir:d,source:"user"}),(process.env.OMP_EXTENSION_DIRS||"").split(g().delimiter).filter(Boolean)))e.push({dir:g().join(a,"agents"),source:"extension"});let f=[];for(let{dir:a,source:c}of e){let d=await q(a,c,b);f.push(...d)}for(let[a,b]of Object.entries(B))f.push({name:a,model:b.model,thinkingLevel:b.thinkingLevel,spawns:b.spawns,description:b.description||"",tools:b.tools,systemPrompt:b.systemPrompt||"",source:"bundled",isShadowed:!1});let h=new Set,i=[],k={};try{k=(0,j.rk)().settings.task||{}}catch{}let l=k.agentModelOverrides||{},m=k.agentPrewalk||{},n=k.agentAdvisor||{},o=new Set(Array.isArray(k.disabledAgents)?k.disabledAgents:[]);for(let a of f){let b=!h.has(a.name);if(h.add(a.name),a.isShadowed=!b,b){if(a.name in l&&(a.overrideModel=l[a.name]),a.name in m){let b=m[a.name];a.prewalkOverride="on"===b||"off"!==b&&b}if(a.name in n){let b=n[a.name];a.advisorOverride="on"===b||"off"!==b&&b}o.has(a.name)&&(a.disabled=!0),i.push(a)}}return{agents:i,projectRoot:c?g().dirname(g().dirname(c)):void 0,...b.length>0?{diagnostics:b}:{}}}async function u(a){let b,c;if("user"===a.scope)c=(0,l.SW)((0,i.$M)()),b=s();else{let d=a.cwd||process.cwd(),f=await (0,k.mc)();if(!(0,k.B7)(d,f))throw Error(`Access denied to project path: ${d}`);if(b=r(d)||g().join(g().resolve(d),".omp","agents"),c=await e.promises.realpath(g().dirname(g().dirname(b))),!(0,k.B7)(c,f))throw Error(`Access denied to project root: ${c}`)}let d=(0,l.SW)(b);if(!(0,l.o4)(d,new Set([c])))throw Error(`Access denied to agents directory: ${b}`);return d}async function v(a){if(!o(a.name))throw Error(`Invalid agent identifier: "${a.name}"`);let b=await u(a),c=(0,l.SW)(g().join(b,`${a.name}.md`));if(!(0,l.o4)(c,new Set([b])))throw Error(`Access denied to target agent file: ${c}`);return await e.promises.mkdir(b,{recursive:!0}),c}function w(a){let b={name:a.name,description:a.description};for(let[c,d]of(a.tools&&a.tools.length>0&&(b.tools=a.tools),void 0!==a.model&&(b.model=a.model),void 0!==a.thinkingLevel&&(b.thinkingLevel=a.thinkingLevel),void 0!==a.prewalk&&(b.prewalk=a.prewalk),void 0!==a.advisor&&(b.advisor=a.advisor),Object.entries(a)))"name"===c||"description"===c||"tools"===c||"model"===c||"thinkingLevel"===c||"prewalk"===c||"advisor"===c||"systemPrompt"===c||["scope","cwd","source","filePath","isShadowed","overrideModel","prewalkOverride","advisorOverride","disabled"].includes(c)||void 0===d||(b[c]=d);let c=(0,h.As)(b).trim(),d=(a.systemPrompt||"").trim();return`---
2
2
  ${c}
3
3
  ---
4
4