plexus-agent-config 0.0.7 → 0.0.9

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 (194) hide show
  1. package/package.json +1 -1
  2. package/vendor/plexus-agent-config-core/dist/agents/adapters/codex.d.ts.map +1 -1
  3. package/vendor/plexus-agent-config-core/dist/agents/adapters/codex.js +23 -7
  4. package/vendor/plexus-agent-config-core/dist/agents/adapters/codex.js.map +1 -1
  5. package/vendor/plexus-agent-config-core/dist/agents/adapters/json-mcp.d.ts.map +1 -1
  6. package/vendor/plexus-agent-config-core/dist/agents/adapters/json-mcp.js +11 -3
  7. package/vendor/plexus-agent-config-core/dist/agents/adapters/json-mcp.js.map +1 -1
  8. package/vendor/plexus-agent-config-core/dist/agents/inspect.d.ts +2 -0
  9. package/vendor/plexus-agent-config-core/dist/agents/inspect.d.ts.map +1 -1
  10. package/vendor/plexus-agent-config-core/dist/agents/inspect.js +6 -1
  11. package/vendor/plexus-agent-config-core/dist/agents/inspect.js.map +1 -1
  12. package/vendor/plexus-agent-config-core/dist/effective/index.d.ts +5 -0
  13. package/vendor/plexus-agent-config-core/dist/effective/index.d.ts.map +1 -1
  14. package/vendor/plexus-agent-config-core/dist/effective/index.js +36 -0
  15. package/vendor/plexus-agent-config-core/dist/effective/index.js.map +1 -1
  16. package/vendor/plexus-agent-config-core/dist/import/from-agents.d.ts.map +1 -1
  17. package/vendor/plexus-agent-config-core/dist/import/from-agents.js +6 -18
  18. package/vendor/plexus-agent-config-core/dist/import/from-agents.js.map +1 -1
  19. package/vendor/plexus-agent-config-core/dist/store/paths.d.ts.map +1 -1
  20. package/vendor/plexus-agent-config-core/dist/store/paths.js +1 -2
  21. package/vendor/plexus-agent-config-core/dist/store/paths.js.map +1 -1
  22. package/vendor/plexus-agent-config-core/dist/store/skills.d.ts.map +1 -1
  23. package/vendor/plexus-agent-config-core/dist/store/skills.js +61 -9
  24. package/vendor/plexus-agent-config-core/dist/store/skills.js.map +1 -1
  25. package/vendor/plexus-agent-config-core/package.json +1 -1
  26. package/vendor/plexus-agent-config-web/.next/BUILD_ID +1 -1
  27. package/vendor/plexus-agent-config-web/.next/app-path-routes-manifest.json +6 -5
  28. package/vendor/plexus-agent-config-web/.next/build-manifest.json +2 -2
  29. package/vendor/plexus-agent-config-web/.next/prerender-manifest.json +3 -3
  30. package/vendor/plexus-agent-config-web/.next/routes-manifest.json +8 -0
  31. package/vendor/plexus-agent-config-web/.next/server/app/_global-error/page.js +3 -3
  32. package/vendor/plexus-agent-config-web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  33. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.html +1 -1
  34. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.rsc +1 -1
  35. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  36. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  37. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  38. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  39. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  40. package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  41. package/vendor/plexus-agent-config-web/.next/server/app/_not-found/page.js +2 -2
  42. package/vendor/plexus-agent-config-web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  43. package/vendor/plexus-agent-config-web/.next/server/app/about/page.js +2 -2
  44. package/vendor/plexus-agent-config-web/.next/server/app/about/page_client-reference-manifest.js +1 -1
  45. package/vendor/plexus-agent-config-web/.next/server/app/agents/[id]/page.js +2 -2
  46. package/vendor/plexus-agent-config-web/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
  47. package/vendor/plexus-agent-config-web/.next/server/app/api/agent/[id]/file/route.js +1 -1
  48. package/vendor/plexus-agent-config-web/.next/server/app/api/agent/[id]/route.js +1 -1
  49. package/vendor/plexus-agent-config-web/.next/server/app/api/agent-catalog/route.js +1 -1
  50. package/vendor/plexus-agent-config-web/.next/server/app/api/agents/route.js +1 -1
  51. package/vendor/plexus-agent-config-web/.next/server/app/api/backups/[id]/restore/route.js +1 -1
  52. package/vendor/plexus-agent-config-web/.next/server/app/api/backups/route.js +1 -1
  53. package/vendor/plexus-agent-config-web/.next/server/app/api/config/route.js +1 -1
  54. package/vendor/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/file/route.js +1 -1
  55. package/vendor/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/route.js +1 -1
  56. package/vendor/plexus-agent-config-web/.next/server/app/api/custom-agents/route.js +1 -1
  57. package/vendor/plexus-agent-config-web/.next/server/app/api/debug/route.js +1 -1
  58. package/vendor/plexus-agent-config-web/.next/server/app/api/import/route.js +1 -1
  59. package/vendor/plexus-agent-config-web/.next/server/app/api/mcp/[id]/route.js +1 -0
  60. package/vendor/plexus-agent-config-web/.next/server/app/api/mcp/[id]/route.js.nft.json +1 -0
  61. package/vendor/plexus-agent-config-web/.next/server/app/api/mcp/[id]/route_client-reference-manifest.js +1 -0
  62. package/vendor/plexus-agent-config-web/.next/server/app/api/mcp/[id]/toggle/route.js +1 -1
  63. package/vendor/plexus-agent-config-web/.next/server/app/api/mcp/effective/route.js +1 -1
  64. package/vendor/plexus-agent-config-web/.next/server/app/api/mcp/route.js +1 -1
  65. package/vendor/plexus-agent-config-web/.next/server/app/api/rules/route.js +1 -1
  66. package/vendor/plexus-agent-config-web/.next/server/app/api/skills/[id]/route.js +1 -1
  67. package/vendor/plexus-agent-config-web/.next/server/app/api/skills/[id]/toggle/route.js +1 -1
  68. package/vendor/plexus-agent-config-web/.next/server/app/api/skills/effective/route.js +1 -1
  69. package/vendor/plexus-agent-config-web/.next/server/app/api/skills/route.js +1 -1
  70. package/vendor/plexus-agent-config-web/.next/server/app/api/spread/route.js +1 -1
  71. package/vendor/plexus-agent-config-web/.next/server/app/api/sync/route.js +1 -1
  72. package/vendor/plexus-agent-config-web/.next/server/app/api/team/route.js +1 -1
  73. package/vendor/plexus-agent-config-web/.next/server/app/backups/page.js +2 -2
  74. package/vendor/plexus-agent-config-web/.next/server/app/backups/page_client-reference-manifest.js +1 -1
  75. package/vendor/plexus-agent-config-web/.next/server/app/debug/page.js +2 -2
  76. package/vendor/plexus-agent-config-web/.next/server/app/debug/page_client-reference-manifest.js +1 -1
  77. package/vendor/plexus-agent-config-web/.next/server/app/mcp/page.js +2 -2
  78. package/vendor/plexus-agent-config-web/.next/server/app/mcp/page_client-reference-manifest.js +1 -1
  79. package/vendor/plexus-agent-config-web/.next/server/app/mirror/page.js +2 -2
  80. package/vendor/plexus-agent-config-web/.next/server/app/mirror/page_client-reference-manifest.js +1 -1
  81. package/vendor/plexus-agent-config-web/.next/server/app/page.js +2 -2
  82. package/vendor/plexus-agent-config-web/.next/server/app/page_client-reference-manifest.js +1 -1
  83. package/vendor/plexus-agent-config-web/.next/server/app/rules/page.js +3 -3
  84. package/vendor/plexus-agent-config-web/.next/server/app/rules/page_client-reference-manifest.js +1 -1
  85. package/vendor/plexus-agent-config-web/.next/server/app/settings/page.js +2 -2
  86. package/vendor/plexus-agent-config-web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  87. package/vendor/plexus-agent-config-web/.next/server/app/skills/page.js +2 -2
  88. package/vendor/plexus-agent-config-web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  89. package/vendor/plexus-agent-config-web/.next/server/app/spread/page.js +2 -2
  90. package/vendor/plexus-agent-config-web/.next/server/app/spread/page_client-reference-manifest.js +1 -1
  91. package/vendor/plexus-agent-config-web/.next/server/app/team/page.js +2 -2
  92. package/vendor/plexus-agent-config-web/.next/server/app/team/page_client-reference-manifest.js +1 -1
  93. package/vendor/plexus-agent-config-web/.next/server/app-paths-manifest.json +6 -5
  94. package/vendor/plexus-agent-config-web/.next/server/chunks/554.js +1 -1
  95. package/vendor/plexus-agent-config-web/.next/server/chunks/921.js +4 -4
  96. package/vendor/plexus-agent-config-web/.next/server/middleware-build-manifest.js +1 -1
  97. package/vendor/plexus-agent-config-web/.next/server/pages/500.html +1 -1
  98. package/vendor/plexus-agent-config-web/.next/server/server-reference-manifest.json +1 -1
  99. package/vendor/plexus-agent-config-web/.next/static/chunks/app/_global-error/page-1e40a6ea6300764e.js +1 -0
  100. package/vendor/plexus-agent-config-web/.next/static/chunks/app/agents/[id]/page-e83c3c5de9ba09c2.js +1 -0
  101. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agent/[id]/file/route-1e40a6ea6300764e.js +1 -0
  102. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agent/[id]/route-1e40a6ea6300764e.js +1 -0
  103. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agent-catalog/route-1e40a6ea6300764e.js +1 -0
  104. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agents/route-1e40a6ea6300764e.js +1 -0
  105. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/backups/[id]/restore/route-1e40a6ea6300764e.js +1 -0
  106. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/backups/route-1e40a6ea6300764e.js +1 -0
  107. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/config/route-1e40a6ea6300764e.js +1 -0
  108. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/[id]/file/route-1e40a6ea6300764e.js +1 -0
  109. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/[id]/route-1e40a6ea6300764e.js +1 -0
  110. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/route-1e40a6ea6300764e.js +1 -0
  111. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/debug/route-1e40a6ea6300764e.js +1 -0
  112. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/import/route-1e40a6ea6300764e.js +1 -0
  113. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/mcp/[id]/route-1e40a6ea6300764e.js +1 -0
  114. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/mcp/[id]/toggle/route-1e40a6ea6300764e.js +1 -0
  115. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/mcp/effective/route-1e40a6ea6300764e.js +1 -0
  116. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/mcp/route-1e40a6ea6300764e.js +1 -0
  117. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/rules/route-1e40a6ea6300764e.js +1 -0
  118. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/[id]/route-1e40a6ea6300764e.js +1 -0
  119. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/[id]/toggle/route-1e40a6ea6300764e.js +1 -0
  120. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/effective/route-1e40a6ea6300764e.js +1 -0
  121. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/route-1e40a6ea6300764e.js +1 -0
  122. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/spread/route-1e40a6ea6300764e.js +1 -0
  123. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/sync/route-1e40a6ea6300764e.js +1 -0
  124. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/team/route-1e40a6ea6300764e.js +1 -0
  125. package/vendor/plexus-agent-config-web/.next/static/chunks/app/{layout-31e6e6e2c4466423.js → layout-1b8ad5703758230d.js} +1 -1
  126. package/vendor/plexus-agent-config-web/.next/static/chunks/app/mcp/page-54f5518ffacbaf3b.js +1 -0
  127. package/vendor/plexus-agent-config-web/.next/static/chunks/app/rules/{page-f391407e2ebfcf64.js → page-3f6666c1e0d71c5d.js} +2 -2
  128. package/vendor/plexus-agent-config-web/.next/static/chunks/app/skills/page-d5293ad31cec249c.js +1 -0
  129. package/vendor/plexus-agent-config-web/.next/static/chunks/app/spread/page-1e40a6ea6300764e.js +1 -0
  130. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/app-error-1e40a6ea6300764e.js +1 -0
  131. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/forbidden-1e40a6ea6300764e.js +1 -0
  132. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/not-found-1e40a6ea6300764e.js +1 -0
  133. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1e40a6ea6300764e.js +1 -0
  134. package/vendor/plexus-agent-config-web/.next/static/css/cbaf841555d169c3.css +5 -0
  135. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.d.ts.map +1 -1
  136. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.js +23 -7
  137. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.js.map +1 -1
  138. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.d.ts.map +1 -1
  139. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.js +11 -3
  140. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.js.map +1 -1
  141. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.d.ts +2 -0
  142. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.d.ts.map +1 -1
  143. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.js +6 -1
  144. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.js.map +1 -1
  145. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.d.ts +5 -0
  146. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.d.ts.map +1 -1
  147. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.js +36 -0
  148. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.js.map +1 -1
  149. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/from-agents.d.ts.map +1 -1
  150. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/from-agents.js +6 -18
  151. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/from-agents.js.map +1 -1
  152. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/paths.d.ts.map +1 -1
  153. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/paths.js +1 -2
  154. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/paths.js.map +1 -1
  155. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/skills.d.ts.map +1 -1
  156. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/skills.js +61 -9
  157. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/skills.js.map +1 -1
  158. package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/package.json +1 -1
  159. package/vendor/plexus-agent-config-web/package.json +1 -1
  160. package/vendor/plexus-agent-config-web/.next/static/chunks/app/_global-error/page-fe6298e28540d3d8.js +0 -1
  161. package/vendor/plexus-agent-config-web/.next/static/chunks/app/agents/[id]/page-02c1c68007fb9b26.js +0 -1
  162. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agent/[id]/file/route-fe6298e28540d3d8.js +0 -1
  163. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agent/[id]/route-fe6298e28540d3d8.js +0 -1
  164. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agent-catalog/route-fe6298e28540d3d8.js +0 -1
  165. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/agents/route-fe6298e28540d3d8.js +0 -1
  166. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/backups/[id]/restore/route-fe6298e28540d3d8.js +0 -1
  167. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/backups/route-fe6298e28540d3d8.js +0 -1
  168. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/config/route-fe6298e28540d3d8.js +0 -1
  169. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/[id]/file/route-fe6298e28540d3d8.js +0 -1
  170. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/[id]/route-fe6298e28540d3d8.js +0 -1
  171. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/route-fe6298e28540d3d8.js +0 -1
  172. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/debug/route-fe6298e28540d3d8.js +0 -1
  173. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/import/route-fe6298e28540d3d8.js +0 -1
  174. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/mcp/[id]/toggle/route-fe6298e28540d3d8.js +0 -1
  175. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/mcp/effective/route-fe6298e28540d3d8.js +0 -1
  176. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/mcp/route-fe6298e28540d3d8.js +0 -1
  177. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/rules/route-fe6298e28540d3d8.js +0 -1
  178. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/[id]/route-fe6298e28540d3d8.js +0 -1
  179. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/[id]/toggle/route-fe6298e28540d3d8.js +0 -1
  180. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/effective/route-fe6298e28540d3d8.js +0 -1
  181. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/skills/route-fe6298e28540d3d8.js +0 -1
  182. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/spread/route-fe6298e28540d3d8.js +0 -1
  183. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/sync/route-fe6298e28540d3d8.js +0 -1
  184. package/vendor/plexus-agent-config-web/.next/static/chunks/app/api/team/route-fe6298e28540d3d8.js +0 -1
  185. package/vendor/plexus-agent-config-web/.next/static/chunks/app/mcp/page-d4c83712d8c29f02.js +0 -1
  186. package/vendor/plexus-agent-config-web/.next/static/chunks/app/skills/page-a90fec8f4dae0d22.js +0 -1
  187. package/vendor/plexus-agent-config-web/.next/static/chunks/app/spread/page-fe6298e28540d3d8.js +0 -1
  188. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/app-error-fe6298e28540d3d8.js +0 -1
  189. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/forbidden-fe6298e28540d3d8.js +0 -1
  190. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/not-found-fe6298e28540d3d8.js +0 -1
  191. package/vendor/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-fe6298e28540d3d8.js +0 -1
  192. package/vendor/plexus-agent-config-web/.next/static/css/eba3657411e6e6cd.css +0 -5
  193. /package/vendor/plexus-agent-config-web/.next/static/{03IYfj2PeWSkzrqtRyC0l → oxgopplNOcRDrZ6-JSWy_}/_buildManifest.js +0 -0
  194. /package/vendor/plexus-agent-config-web/.next/static/{03IYfj2PeWSkzrqtRyC0l → oxgopplNOcRDrZ6-JSWy_}/_ssgManifest.js +0 -0
@@ -1,2 +1,2 @@
1
- (()=>{var a={};a.id=662,a.ids=[662],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3578:(a,b,c)=>{"use strict";c.d(b,{L:()=>h,Z:()=>g});var d=c(2474),e=c(8335),f=c(10963);let g=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)("div",{ref:c,className:(0,e.cn)("rounded-md border border-plexus-border bg-plexus-surface","transition-colors duration-plexus-normal ease-plexus-out",a),...b}));g.displayName="Card";let h=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)(g,{ref:c,className:(0,e.cn)("hover:border-plexus-border-strong hover:-translate-y-px",a),...b}));h.displayName="CardHover"},6463:(a,b,c)=>{Promise.resolve().then(c.bind(c,40414)),Promise.resolve().then(c.bind(c,27025)),Promise.resolve().then(c.bind(c,73754)),Promise.resolve().then(c.bind(c,30768)),Promise.resolve().then(c.t.bind(c,58599,23))},7233:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},8335:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f});var d=c(21163),e=c(25511);function f(...a){return(0,e.QP)((0,d.$)(a))}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11560:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},17891:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/get-segment-param")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{"use strict";a.exports=require("process")},23772:(a,b,c)=>{"use strict";c.d(b,{Z:()=>g});var d=c(92692),e=c(45813),f=c(71277);let g=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)("div",{ref:c,className:(0,e.cn)("rounded-md border border-plexus-border bg-plexus-surface","transition-colors duration-plexus-normal ease-plexus-out",a),...b}));g.displayName="Card",(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)(g,{ref:c,className:(0,e.cn)("hover:border-plexus-border-strong hover:-translate-y-px",a),...b})).displayName="CardHover"},24615:(a,b,c)=>{Promise.resolve().then(c.bind(c,98900)),Promise.resolve().then(c.bind(c,71355)),Promise.resolve().then(c.bind(c,25932)),Promise.resolve().then(c.bind(c,28774)),Promise.resolve().then(c.t.bind(c,95953,23))},25157:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>r,dynamic:()=>p});var d=c(2474),e=c(98900),f=c(71355),g=c(25932),h=c(3578),i=c(96638),j=c(93895);let k=(0,j.A)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),l=(0,j.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var m=c(91310),n=c.n(m),o=c(45628);let p="force-dynamic",q={en:{title:"Settings",description:"Plexus is local-only. Nothing leaves this machine — no telemetry, no remote logging. Configure which agents take part in sync and how Plexus mirrors files.",architectureTitle:"How sharing works",architecture:"Open the clickable architecture map for rules, skills, MCP files, backups, and the hybrid sync strategy.",openArchitecture:"View design"},zh:{title:"设置",description:"Plexus 只在本机运行,不发送遥测,也没有远程日志。你可以在这里配置哪些 Agent 参与同步,以及 Plexus 如何镜像文件。",architectureTitle:"同步机制是怎么工作的",architecture:"打开可点击的架构图,查看 Rules、Skills、MCP、备份和 hybrid sync strategy 的具体设计。",openArchitecture:"查看设计图"}};async function r(){let a=q[await (0,i.s)()],b=await (0,o.readConfig)();return(0,d.jsxs)("div",{className:"space-y-8",children:[(0,d.jsxs)("header",{children:[(0,d.jsx)("h1",{className:"plexus-display mb-2",children:a.title}),(0,d.jsx)("p",{className:"max-w-2xl text-sm leading-relaxed text-plexus-text-2",children:a.description})]}),(0,d.jsxs)(h.Z,{className:"flex flex-col gap-4 border-l-[3px] border-l-plexus-accent px-5 py-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)(k,{className:"mt-0.5 h-4 w-4 shrink-0 text-plexus-accent",strokeWidth:1.5}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-sm font-semibold text-plexus-text",children:a.architectureTitle}),(0,d.jsx)("p",{className:"mt-1 max-w-2xl text-xs leading-relaxed text-plexus-text-2",children:a.architecture})]})]}),(0,d.jsx)(g.Button,{asChild:!0,variant:"secondary",size:"sm",className:"shrink-0",children:(0,d.jsxs)(n(),{href:"/about",children:[a.openArchitecture,(0,d.jsx)(l,{className:"h-3.5 w-3.5",strokeWidth:1.5})]})})]}),(0,d.jsx)(f.SettingsPanel,{config:b,agents:[...o.ALL_AGENTS],displayNames:o.AGENT_DISPLAY_NAMES}),(0,d.jsx)(e.CustomAgentsPanel,{})]})}},25932:(a,b,c)=>{"use strict";c.d(b,{Button:()=>e});var d=c(30274);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Button() from the server but Button is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/button.tsx","Button");(0,d.registerClientReference)(function(){throw Error("Attempted to call buttonVariants() from the server but buttonVariants is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/button.tsx","buttonVariants")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27025:(a,b,c)=>{"use strict";c.d(b,{SettingsPanel:()=>k});var d=c(92692),e=c(84774),f=c(73754),g=c(23772),h=c(33150),i=c(71277);let j={en:{saved:"Saved",privacyTitle:"Privacy pledge.",privacy:"Plexus runs entirely on your machine. No data is sent anywhere — not even crash reports. The only outbound traffic is the optional git pull when you subscribe to a team config repo.",enabledAgents:"Enabled agents",enabledAgentsHelp:"Disable an agent to skip it during sync, even if it is installed.",syncStrategy:"Sync strategy",syncStrategyHelp:"Symlinks are preferred — changes propagate instantly without re-running sync. Copy fallback is more portable across operating systems but requires sync to refresh files."},zh:{saved:"已保存",privacyTitle:"隐私承诺。",privacy:"Plexus 完全在你的机器上运行。不会发送任何数据,包括崩溃报告。唯一的外部网络请求是你订阅团队配置仓库时可选的 git pull。",enabledAgents:"启用的 Agent",enabledAgentsHelp:"关闭某个 Agent 后,即使它已安装,同步时也会跳过它。",syncStrategy:"同步策略",syncStrategyHelp:"优先使用软链接:改动会立即传播,不需要再次同步。复制模式跨系统更稳,但文件刷新需要重新同步。"}};function k({config:a,agents:b,displayNames:c}){let{locale:l}=(0,e.o)(),m=j[l],[n,o]=(0,i.useState)(a),[p,q]=(0,i.useState)(null);async function r(a){o(a);let b=await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(a)});b.ok?(q(m.saved),setTimeout(()=>q(null),1200)):q(`Error: ${await b.text()}`)}return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsx)(g.Z,{className:"border-l-[3px] border-l-plexus-ok px-5 py-4",children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)(h.A,{className:"mt-0.5 h-4 w-4 shrink-0 text-plexus-ok",strokeWidth:1.5}),(0,d.jsxs)("div",{className:"text-xs leading-relaxed text-plexus-text-2",children:[(0,d.jsx)("span",{className:"font-semibold text-plexus-text",children:m.privacyTitle})," ",m.privacy]})]})}),(0,d.jsxs)(g.Z,{className:"p-5",children:[(0,d.jsx)("div",{className:"plexus-eyebrow mb-1",children:m.enabledAgents}),(0,d.jsx)("p",{className:"text-xs text-plexus-text-3",children:m.enabledAgentsHelp}),(0,d.jsx)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:b.map(a=>{let b=!1!==n.agents[a];return(0,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-3 rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm hover:border-plexus-border-strong",children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:b=>r({...n,agents:{...n.agents,[a]:b.target.checked}}),className:"h-4 w-4 cursor-pointer accent-plexus-accent"}),(0,d.jsx)("span",{className:b?"text-plexus-text":"text-plexus-text-3",children:c[a]??a})]},a)})})]}),(0,d.jsxs)(g.Z,{className:"p-5",children:[(0,d.jsx)("div",{className:"plexus-eyebrow mb-1",children:m.syncStrategy}),(0,d.jsx)("p",{className:"text-xs text-plexus-text-3",children:m.syncStrategyHelp}),(0,d.jsx)("div",{className:"mt-4 flex gap-2",children:["symlink","copy"].map(a=>{let b=n.syncStrategy===a;return(0,d.jsx)(f.Button,{variant:b?"primary":"secondary",size:"sm",onClick:()=>r({...n,syncStrategy:a}),children:a},a)})})]}),p&&(0,d.jsx)("div",{className:"text-xs text-plexus-text-3",children:p})]})}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33150:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},33873:a=>{"use strict";a.exports=require("path")},36257:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},40414:(a,b,c)=>{"use strict";c.d(b,{CustomAgentsPanel:()=>q});var d=c(92692),e=c(84774),f=c(50953),g=c(73754),h=c(23772),i=c(72186),j=c(32450),k=c(11560),l=c(7233),m=c(36257),n=c(78784),o=c(71277);let p={en:{catalog:"Agent catalog",catalogHelp:"Built-in agents sync Rules, MCP, and Skills. Other popular tools are listed as manual presets so users can quickly track an instruction file without waiting for a native adapter.",addAgent:"Add agent",agent:"Agent",status:"Status",support:"Support",action:"Action",installed:"installed",missing:"missing",fullSync:"full sync",manual:"manual",builtIn:"built-in",tracked:"tracked",trackFile:"Track file",agentId:"Agent id",displayName:"Display name",instructionFilePath:"Instruction file path",pathHelp:"Absolute or ~/ relative. Plexus will create or read the file when you click View / Edit.",note:"Note",optional:"optional",notePlaceholder:"Anything to remember about this agent...",cancel:"Cancel",adding:"Adding...",loading:"Loading custom agents...",noCustom:"No custom agents yet. Click Add agent to register one.",lite:"Lite",instructionsOnly:"instructions only",remove:"Remove",edit:"Edit",close:"Close",save:"Save",saving:"Saving...",editing:"editing",newFile:"new file",snapshotNotice:"Plexus snapshots the current file before save. Missing files are created on first save.",removeConfirm:a=>`Remove custom agent '${a}'? The instruction file on disk is not deleted.`,addFailed:"Failed to add custom agent",readFailed:"Failed to read file",saveFailed:"Failed to save file",saved:"Saved.",savedBackup:a=>`Saved. Backup: ${a}`},zh:{catalog:"Agent 目录",catalogHelp:"内置 Agent 支持 Rules、MCP 和 Skills 的完整同步。其他常见工具会作为手动预设展示,用户可以先追踪一个指令文件,不必等原生适配器。",addAgent:"新增 Agent",agent:"Agent",status:"状态",support:"支持",action:"操作",installed:"已安装",missing:"未发现",fullSync:"完整同步",manual:"手动",builtIn:"内置",tracked:"已追踪",trackFile:"追踪文件",agentId:"Agent ID",displayName:"展示名称",instructionFilePath:"指令文件路径",pathHelp:"支持绝对路径或 ~/ 相对路径。点击查看/编辑时,Plexus 会读取或创建该文件。",note:"备注",optional:"可选",notePlaceholder:"记录这个 Agent 的用途或注意事项...",cancel:"取消",adding:"正在新增...",loading:"正在加载自定义 Agent...",noCustom:"还没有自定义 Agent。点击新增 Agent 登记一个。",lite:"轻量",instructionsOnly:"仅指令文件",remove:"移除",edit:"编辑",close:"关闭",save:"保存",saving:"保存中...",editing:"编辑中",newFile:"新文件",snapshotNotice:"Plexus 会在保存前快照当前文件。缺失文件会在第一次保存时创建。",removeConfirm:a=>`移除自定义 Agent '${a}'?磁盘上的指令文件不会被删除。`,addFailed:"新增自定义 Agent 失败",readFailed:"读取文件失败",saveFailed:"保存文件失败",saved:"已保存。",savedBackup:a=>`已保存。备份:${a}`}};function q(){let{locale:a}=(0,e.o)(),b=p[a],[c,m]=(0,o.useState)([]),[n,q]=(0,o.useState)([]),[s,t]=(0,o.useState)(!0),[u,v]=(0,o.useState)(!1),[w,x]=(0,o.useState)({id:"",displayName:"",instructionFile:"",note:""}),[y,z]=(0,o.useState)(!1),[A,B]=(0,o.useState)(null),C=(0,o.useId)(),D=(0,o.useId)(),E=(0,o.useId)(),F=(0,o.useId)();function G(){v(!1),B(null),x({id:"",displayName:"",instructionFile:"",note:""})}async function H(){t(!0);try{let[a,b]=await Promise.all([fetch("/api/custom-agents"),fetch("/api/agent-catalog")]),c=await a.json(),d=await b.json();m(c.agents??[]),q(d.agents??[])}finally{t(!1)}}async function I(a){a.preventDefault(),z(!0),B(null);try{let a=await fetch("/api/custom-agents",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:w.id.trim(),displayName:w.displayName.trim(),instructionFile:w.instructionFile.trim(),note:w.note.trim()||void 0})}),c=await a.json();if(!c.ok)return void B(c.error??b.addFailed);G(),await H()}catch(a){B(a.message)}finally{z(!1)}}async function J(a){if(a.instructionFile){z(!0),B(null);try{let c=await fetch("/api/custom-agents",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:a.id,displayName:a.displayName,instructionFile:a.instructionFile,note:a.note})}),d=await c.json();if(!d.ok)return void B(d.error??b.addFailed);await H()}catch(a){B(a.message)}finally{z(!1)}}}async function K(a){if(confirm(b.removeConfirm(a))){z(!0);try{await fetch(`/api/custom-agents/${encodeURIComponent(a)}`,{method:"DELETE"}),await H()}finally{z(!1)}}}let L=new Set(c.map(a=>a.id)),M=[...n].sort((a,b)=>Number(b.installed)-Number(a.installed)||a.displayName.localeCompare(b.displayName));return(0,d.jsxs)(h.Z,{className:"p-5",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"plexus-eyebrow mb-1",children:b.catalog}),(0,d.jsx)("p",{className:"max-w-xl text-xs text-plexus-text-3",children:b.catalogHelp})]}),(0,d.jsxs)(g.Button,{variant:"secondary",size:"sm",onClick:()=>v(!0),children:[(0,d.jsx)(i.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),b.addAgent]})]}),n.length>0&&(0,d.jsxs)("div",{className:"mt-5 overflow-x-auto rounded border border-plexus-border",children:[(0,d.jsxs)("div",{className:"grid min-w-[720px] grid-cols-[1fr_86px_92px_96px] gap-x-4 border-b border-plexus-border bg-plexus-surface-2/40 px-4 py-2.5 text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[(0,d.jsx)("div",{children:b.agent}),(0,d.jsx)("div",{className:"text-right",children:b.status}),(0,d.jsx)("div",{className:"text-right",children:b.support}),(0,d.jsx)("div",{className:"text-right",children:b.action})]}),M.map(a=>{let c=L.has(a.id);return(0,d.jsxs)("div",{className:`grid min-w-[720px] grid-cols-[1fr_86px_92px_96px] gap-x-4 border-b border-plexus-border/60 px-4 py-3 text-sm last:border-0 ${a.installed?"bg-plexus-bg":"bg-plexus-surface text-plexus-text-3"}`,children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("div",{className:"font-semibold text-plexus-text",children:a.displayName}),(0,d.jsx)("div",{className:"font-mono text-[11px] text-plexus-text-3",children:a.id}),(0,d.jsx)("div",{className:"mt-1 truncate font-mono text-[11px] text-plexus-text-2",children:a.mcpPath??a.instructionFile??a.rootDir})]}),(0,d.jsx)("div",{className:"text-right",children:(0,d.jsx)(f.E,{variant:a.installed?"synced":"native",children:a.installed?b.installed:b.missing})}),(0,d.jsx)("div",{className:"text-right",children:(0,d.jsx)(f.E,{variant:a.managed?"personal":"outline",children:"full"===a.support?b.fullSync:b.manual})}),(0,d.jsx)("div",{className:"text-right",children:a.managed?(0,d.jsx)(f.E,{variant:"synced",children:b.builtIn}):c?(0,d.jsx)(f.E,{variant:"native",children:b.tracked}):(0,d.jsx)(g.Button,{variant:"ghost",size:"sm",onClick:()=>J(a),disabled:y||!a.instructionFile,children:b.trackFile})})]},a.id)})]}),u&&(0,d.jsx)("dialog",{open:!0,"aria-labelledby":"custom-agent-form-title",className:"fixed inset-0 z-50 m-0 h-full w-full max-w-none border-0 bg-transparent p-0",children:(0,d.jsx)("div",{role:"presentation",className:"flex h-full w-full cursor-default items-center justify-center bg-black/70 p-4",onClick:G,children:(0,d.jsxs)("form",{onSubmit:I,className:"w-full max-w-2xl space-y-4 rounded-md border border-plexus-border bg-plexus-surface p-5 text-left shadow-lg",onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4 border-b border-plexus-border pb-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{id:"custom-agent-form-title",className:"text-sm font-semibold text-plexus-text",children:b.addAgent}),(0,d.jsx)("p",{className:"mt-1 text-xs text-plexus-text-3",children:b.pathHelp})]}),(0,d.jsx)("button",{type:"button","aria-label":b.close,onClick:G,className:"text-plexus-text-3 hover:text-plexus-text",children:(0,d.jsx)(j.A,{className:"h-4 w-4",strokeWidth:1.5})})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:C,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:b.agentId}),(0,d.jsx)("input",{id:C,type:"text",required:!0,placeholder:"e.g. copilot-cli",value:w.id,onChange:a=>x({...w,id:a.target.value}),pattern:"[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm text-plexus-text outline-none focus:border-plexus-accent"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:D,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:b.displayName}),(0,d.jsx)("input",{id:D,type:"text",required:!0,placeholder:"e.g. GitHub Copilot CLI",value:w.displayName,onChange:a=>x({...w,displayName:a.target.value}),className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm text-plexus-text outline-none focus:border-plexus-accent"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:E,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:b.instructionFilePath}),(0,d.jsx)("input",{id:E,type:"text",required:!0,placeholder:"e.g. ~/.config/copilot/AGENTS.md",value:w.instructionFile,onChange:a=>x({...w,instructionFile:a.target.value}),className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 font-mono text-xs text-plexus-text outline-none focus:border-plexus-accent"})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("label",{htmlFor:F,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[b.note," ",(0,d.jsxs)("span",{className:"lowercase text-plexus-text-3",children:["(",b.optional,")"]})]}),(0,d.jsx)("input",{id:F,type:"text",maxLength:280,placeholder:b.notePlaceholder,value:w.note,onChange:a=>x({...w,note:a.target.value}),className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm text-plexus-text outline-none focus:border-plexus-accent"})]}),A&&(0,d.jsx)("div",{className:"rounded border border-plexus-err/40 bg-plexus-err/10 px-3 py-2 text-xs text-plexus-err",children:A}),(0,d.jsxs)("div",{className:"flex justify-end gap-2 border-t border-plexus-border pt-3",children:[(0,d.jsx)(g.Button,{type:"button",variant:"ghost",size:"sm",onClick:G,children:b.cancel}),(0,d.jsx)(g.Button,{type:"submit",variant:"primary",size:"sm",disabled:y,children:y?b.adding:b.addAgent})]})]})})}),(0,d.jsxs)("div",{className:"mt-5",children:[s&&(0,d.jsx)("div",{className:"text-xs text-plexus-text-3",children:b.loading}),!s&&0===c.length&&(0,d.jsx)("div",{className:"rounded border border-dashed border-plexus-border bg-plexus-bg/40 px-4 py-6 text-center text-xs text-plexus-text-3",children:b.noCustom}),c.length>0&&(0,d.jsxs)("div",{className:"overflow-x-auto rounded border border-plexus-border",children:[(0,d.jsxs)("div",{className:"grid min-w-[720px] grid-cols-[1fr_130px_180px] gap-x-4 border-b border-plexus-border bg-plexus-surface-2/40 px-4 py-2.5 text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[(0,d.jsx)("div",{children:b.agent}),(0,d.jsx)("div",{className:"text-right",children:b.lite}),(0,d.jsx)("div",{className:"text-right",children:b.action})]}),c.map(a=>(0,d.jsxs)("div",{className:"grid min-w-[720px] grid-cols-[1fr_130px_180px] gap-x-4 border-b border-plexus-border/60 px-4 py-3 text-sm last:border-0",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"font-semibold text-plexus-text",children:a.displayName}),(0,d.jsx)("div",{className:"font-mono text-[11px] text-plexus-text-3",children:a.id}),(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-1.5 font-mono text-[11px] text-plexus-text-2",children:[(0,d.jsx)(k.A,{className:"h-3 w-3",strokeWidth:1.5}),a.instructionFile]}),a.note&&(0,d.jsx)("div",{className:"mt-1 text-[11px] italic text-plexus-text-3",children:a.note})]}),(0,d.jsx)("div",{className:"text-right",children:(0,d.jsx)(f.E,{variant:"native",children:b.instructionsOnly})}),(0,d.jsxs)("div",{className:"flex justify-end gap-2 text-right",children:[(0,d.jsx)(r,{agent:a,copy:b}),(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",onClick:()=>K(a.id),disabled:y,children:[(0,d.jsx)(l.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),b.remove]})]})]},a.id))]})]})]})}function r({agent:a,copy:b}){let[c,e]=(0,o.useState)(!1),[h,i]=(0,o.useState)(!1),[k,l]=(0,o.useState)(!1),[p,q]=(0,o.useState)(""),[s,t]=(0,o.useState)(!1),[u,v]=(0,o.useState)(null);async function w(){t(!0),v(null);try{let c=await fetch(`/api/custom-agents/${encodeURIComponent(a.id)}/file`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({content:p})}),d=await c.json();if(!d.ok)return void v(d.message??b.saveFailed);l(!0),v(d.backup?b.savedBackup(d.backup):b.saved)}catch(a){v(a.message)}finally{t(!1)}}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",onClick:()=>e(!0),children:[(0,d.jsx)(m.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),b.edit]}),c&&(0,d.jsx)("div",{role:"presentation",className:"fixed inset-0 z-50 flex cursor-default items-center justify-center bg-black/70 p-6",onClick:()=>e(!1),children:(0,d.jsxs)("div",{className:"flex h-[80vh] w-[80vw] max-w-5xl cursor-default flex-col overflow-hidden rounded-md border border-plexus-border bg-plexus-surface text-left shadow-lg",onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between border-b border-plexus-border px-5 py-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(f.E,{variant:k?"synced":"native",children:k?b.editing:b.newFile}),(0,d.jsx)("span",{className:"text-sm font-semibold text-plexus-text",children:a.displayName})]}),(0,d.jsx)("code",{className:"mt-1 block truncate font-mono text-xs text-plexus-text-3",children:a.instructionFile})]}),(0,d.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>e(!1),className:"text-plexus-text-3 hover:text-plexus-text",children:(0,d.jsx)(j.A,{className:"h-4 w-4",strokeWidth:1.5})})]}),(0,d.jsx)("div",{className:"border-b border-plexus-border bg-plexus-surface-2/40 px-5 py-2 text-xs text-plexus-text-3",children:b.snapshotNotice}),u&&(0,d.jsx)("div",{className:"border-b border-plexus-border bg-plexus-surface-2 px-5 py-2 text-xs text-plexus-text-2",children:u}),(0,d.jsx)("textarea",{className:"flex-1 resize-none bg-plexus-bg p-4 font-mono text-xs text-plexus-text outline-none",value:p,onChange:a=>q(a.target.value)}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 border-t border-plexus-border px-5 py-3",children:[(0,d.jsx)(g.Button,{variant:"ghost",size:"sm",onClick:()=>e(!1),children:b.close}),(0,d.jsxs)(g.Button,{variant:"primary",size:"sm",onClick:w,disabled:s,children:[s&&(0,d.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}),s?b.saving:b.save]})]})]})})]})}},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71355:(a,b,c)=>{"use strict";c.d(b,{SettingsPanel:()=>d});let d=(0,c(30274).registerClientReference)(function(){throw Error("Attempted to call SettingsPanel() from the server but SettingsPanel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/settings-panel.tsx","SettingsPanel")},72186:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},73024:a=>{"use strict";a.exports=require("node:fs")},75899:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>M,handler:()=>O,routeModule:()=>N});var d=c(80666),e=c(51421),f=c(4675),g=c(29796),h=c(54046),i=c(74928),j=c(19727),k=c(24268),l=c(60402),m=c(22040),n=c(27186),o=c(49228),p=c(97485),q=c(261),r=c(80885),s=c(7162),t=c(26713),u=c(70972),v=c(57341),w=c(95105),x=c(38038),y=c(29898),z=c(62918),A=c(98798),B=c(86439),C=c(77068),D=c(31214),E=c(35402),F=c(29059),G=c(70722),H=c(31182),I=c(43954),J=c(17891),K={};for(let a in E)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(K[a]=()=>E[a]);c.d(b,K);let L={children:["",{children:["settings",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,25157)),"/home/runner/work/Plexus/Plexus/apps/web/app/settings/page.tsx"]}]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,9834)),"/home/runner/work/Plexus/Plexus/apps/web/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,46292,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,4253,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,49184,23)),"next/dist/client/components/builtin/unauthorized.js"]},[]]}.children,M={require:c,loadChunk:()=>Promise.resolve()},N=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/settings/page",pathname:"/settings",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:L},distDir:".next",relativeProjectDir:""});async function O(a,b,d){var K,P,Q,R,S;d.requestMeta&&(0,h.setRequestMeta)(a,d.requestMeta),N.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let T=!!(0,h.getRequestMeta)(a,"minimalMode"),U="/settings/page";"/index"===U&&(U="/");let V=await N.prepare(a,b,{srcPage:U,multiZoneDraftMode:!1});if(!V)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:W,query:X,params:Y,pageIsDynamic:Z,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,serverActionsManifest:ab,clientReferenceManifest:ac,subresourceIntegrityManifest:ad,prerenderManifest:ae,isDraftMode:af,resolvedPathname:ag,revalidateOnlyGenerated:ah,routerServerContext:ai,nextConfig:aj,parsedUrl:ak,interceptionRoutePatterns:al,deploymentId:am,clientAssetToken:an}=V,ao=(0,q.normalizeAppPath)(U),{isOnDemandRevalidate:ap}=V,aq=aj.experimental.ppr&&!aj.cacheComponents&&(0,I.isInterceptionRouteAppPath)(ag)?null:N.match(ag,ae),ar=(null==aq?void 0:aq.route)??null,as=!!ae.routes[ag],at=a.headers["user-agent"]||"",au=(0,t.getBotType)(at),av=(0,p.isHtmlBotRequest)(a),aw=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ax=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],ay=(0,r.getIsPossibleServerAction)(a),az=(0,m.checkIsAppPPREnabled)(aj.experimental.ppr),aA=a.headers[x.NEXT_RESUME_STATE_LENGTH_HEADER];if(!(0,h.getRequestMeta)(a,"postponed")&&T&&az&&ay&&aA&&"string"==typeof aA){let e=parseInt(aA,10),{maxPostponedStateSize:f,maxPostponedStateSizeBytes:g}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize);if(!isNaN(e)&&e>0){if(e>g)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(f)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let i="1 MB",j=(null==(S=aj.experimental.serverActions)?void 0:S.bodySizeLimit)??i,k=e+(j!==i?c(32683).parse(j):1048576),l=await (0,D.readBodyWithSizeLimit)(a,k);if(null===l)return b.statusCode=413,b.end("Request body exceeded limit. To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;if(l.length>=e){let b=l.subarray(0,e).toString("utf8");(0,h.addRequestMeta)(a,"postponed",b);let c=l.subarray(e);(0,h.addRequestMeta)(a,"actionBody",c)}else throw Object.defineProperty(Error(`invariant: expected ${e} bytes of postponed state but only received ${l.length} bytes`),"__NEXT_ERROR_CODE",{value:"E979",enumerable:!1,configurable:!0})}}if(!(0,h.getRequestMeta)(a,"postponed")&&az&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let{maxPostponedStateSize:c,maxPostponedStateSizeBytes:e}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize),f=await (0,D.readBodyWithSizeLimit)(a,e);if(null===f)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(c)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let g=f.toString("utf8");(0,h.addRequestMeta)(a,"postponed",g)}let aB=!0===N.isDev||!0===aj.experimental.exposeTestingApiInProductionBuild,aC=aB&&("1"===a.headers[s.NEXT_INSTANT_PREFETCH_HEADER]||void 0===a.headers[s.RSC_HEADER]&&"string"==typeof a.headers.cookie&&a.headers.cookie.includes(s.NEXT_INSTANT_TEST_COOKIE+"=")),aD=(az||aC)&&((null==(K=ae.routes[ao]??ae.dynamicRoutes[ao])?void 0:K.renderingMode)==="PARTIALLY_STATIC"||aC&&(aB||(null==ai?void 0:ai.experimentalTestProxy)===!0)),aE=aC&&aD,aF=aE&&!0===N.isDev,aG=!1,aH=aD?(0,h.getRequestMeta)(a,"postponed"):void 0,aI=null==(P=ae.routes[ag])?void 0:P.prefetchDataRoute,aJ=aD&&ax&&!aw&&!aI;T&&(aJ=aJ&&!!aH);let aK=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),aL=(!au||!aD)&&(!at||(0,p.shouldServeStreamingMetadata)(at,aj.htmlLimitedBots)),aM=!!((ar||as||ae.routes[ao])&&!(au&&aD)),aN=aD&&!0===aj.cacheComponents,aO=!0===N.isDev||!aM||"string"==typeof aH||(aN&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aJ&&!T:aJ),aP=!!au&&aD,aQ=(null==ar?void 0:ar.remainingPrerenderableParams)??[],aR=(null==ar?void 0:ar.fallback)===null&&((null==(Q=ar.fallbackRootParams)?void 0:Q.length)??0)>0,aS=null;if(!af&&aM&&!aO&&!ay&&!aH&&!aJ){let a=aq?"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:aq.source:null;if(!0===aj.experimental.partialFallbacks&&a&&(null==ar?void 0:ar.fallbackRouteParams)&&!aR){if(aQ.length>0){let b,c=(b=new Map(aQ.map(a=>[a.paramName,a])),a.split("/").map(a=>{let c=(0,J.getSegmentParam)(a);if(!c)return a;let d=b.get(c.paramName);if(!d)return a;let e=null==Y?void 0:Y[d.paramName];if(!e)return a;let f=Array.isArray(e)?e.map(a=>encodeURIComponent(a)).join("/"):encodeURIComponent(e);return a.replace(function(a){let{repeat:b,optional:c}=(0,J.getParamProperties)(a.paramType);return c?`[[...${a.paramName}]]`:b?`[...${a.paramName}]`:`[${a.paramName}]`}(d),f)}).join("/")||"/");aS=c!==a?c:null}}else aS=ag}let aT=aS;!aT&&(N.isDev||aM&&Z&&(null==ar?void 0:ar.fallbackRouteParams)&&!ay)&&(aT=ag),N.isDev||af||!aM||!ax||aJ||(0,k.d)(a.headers);let aU={...E,tree:L,handler:O,routeModule:N,__next_app__:M};ab&&ac&&(0,o.setManifestsSingleton)({page:U,clientReferenceManifest:ac,serverActionsManifest:ab});let aV=a.method||"GET",aW=(0,g.getTracer)(),aX=aW.getActiveScopeSpan(),aY=!!(null==ai?void 0:ai.isWrappedByNextServer),aZ=!0===aj.experimental.partialFallbacks&&aQ.length>0?(null==ar||null==(R=ar.fallbackRouteParams)?void 0:R.filter(a=>!aQ.some(b=>b.paramName===a.paramName)))??[]:[],a$=async()=>((null==ai?void 0:ai.render404)?await ai.render404(a,b,ak,!1):b.end("This page could not be found"),null);try{let k,m=N.getVaryHeader(ag,al);b.setHeader("Vary",m);let o=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return N.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aW.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aV} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a),k&&k!==c&&(k.setAttribute("http.route",d),k.updateName(a))}else c.updateName(`${aV} ${U}`)})},p=(0,h.getRequestMeta)(a,"incrementalCache")||await N.getIncrementalCache(a,aj,ae,T);null==p||p.resetRequestCache(),globalThis.__incrementalCache=p;let q=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let k={query:X,params:Y,page:ao,sharedContext:{buildId:W,deploymentId:am,clientAssetToken:an},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aU,Component:(0,j.T)(aU),params:Y,routeModule:N,page:U,postponed:f,shouldWaitOnAllReady:aP,serveStreamingMetadata:aL,supportsDynamicResponse:"string"==typeof f||aO,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,subresourceIntegrityManifest:ad,setCacheStatus:null==ai?void 0:ai.setCacheStatus,setIsrStatus:null==ai?void 0:ai.setIsrStatus,setReactDebugChannel:null==ai?void 0:ai.setReactDebugChannel,sendErrorsToBrowser:null==ai?void 0:ai.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),N.relativeProjectDir),isDraftMode:af,botType:au,isOnDemandRevalidate:ap,isPossibleServerAction:ay,assetPrefix:aj.assetPrefix,nextConfigOutput:aj.output,crossOrigin:aj.crossOrigin,trailingSlash:aj.trailingSlash,images:aj.images,previewProps:ae.preview,enableTainting:aj.experimental.taint,htmlLimitedBots:aj.htmlLimitedBots,reactMaxHeadersLength:aj.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:p,cacheLifeProfiles:aj.cacheLife,basePath:aj.basePath,serverActions:aj.experimental.serverActions,logServerFunctions:"object"==typeof aj.logging&&!!aj.logging.serverFunctions,...aE||aF||aG?{isBuildTimePrerendering:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:aF}:{},cacheComponents:!!aj.cacheComponents,experimental:{isRoutePPREnabled:aD,expireTime:aj.expireTime,staleTimes:aj.experimental.staleTimes,dynamicOnHover:!!aj.experimental.dynamicOnHover,optimisticRouting:!!aj.experimental.optimisticRouting,inlineCss:!!aj.experimental.inlineCss,prefetchInlining:aj.experimental.prefetchInlining??!1,authInterrupts:!!aj.experimental.authInterrupts,cachedNavigations:!!aj.experimental.cachedNavigations,clientTraceMetadata:aj.experimental.clientTraceMetadata||[],clientParamParsingOrigins:aj.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,C.parseMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>N.onRequestError(a,b,d,e,ai),err:(0,h.getRequestMeta)(a,"invokeError")}};i&&(k.renderOpts.supportsDynamicResponse=!1);let l=await o(e,k),{metadata:m}=l,{cacheControl:n,headers:q={},fetchTags:r,fetchMetrics:s}=m;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,aM&&(null==n?void 0:n.revalidate)===0&&!N.isDev&&!aD){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ag}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
- see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:l,headers:q,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},r=async({hasResolved:c,previousCacheEntry:g,isRevalidating:i,span:j,forceStaticRender:k=!1})=>{let l=!1===N.isDev,m=c||b.writableEnded;try{let f;if(ap&&ah&&!g&&!T)return(null==ai?void 0:ai.render404)?await ai.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ar&&(f=(0,v.parseFallbackField)(ar.fallback)),!0===aj.experimental.partialFallbacks&&(null==ar?void 0:ar.fallback)===null&&!aR&&aQ.length>0&&(f=v.FallbackMode.PRERENDER),f===v.FallbackMode.PRERENDER&&(0,t.isBot)(at)&&(!aD||av)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==g?void 0:g.isStale)===-1&&(ap=!0),ap&&(f!==v.FallbackMode.NOT_FOUND||g)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),!T&&f!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aT&&!m&&!af&&Z&&(l||!as)){if((l||ar)&&f===v.FallbackMode.NOT_FOUND){if(aj.adapterPath)return await a$();throw new B.NoFallbackError}if(aD&&(aj.cacheComponents?!aJ:!ax)){let b=l&&"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:ao,f=(l||aE)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;aE&&f&&(0,h.addRequestMeta)(a,"fallbackParams",f);let g=await N.handleResponse({cacheKey:b,req:a,nextConfig:aj,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:ae,isRoutePPREnabled:aD,responseGenerator:async()=>q({span:j,postponed:void 0,fallbackRouteParams:f,forceStaticRender:!0}),waitUntil:d.waitUntil,isMinimalMode:T});if(null===g)return null;if(g)return T||!aD||!(aQ.length>0)||!0!==aj.experimental.partialFallbacks||!aS||!p||ap||aG||aB||aC||aw||(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(aS,p,aD,!1,a=>q({span:a.span,postponed:void 0,fallbackRouteParams:aZ.length>0?(0,n.createOpaqueFallbackRouteParams)(aZ):null,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}),delete g.cacheControl,g}}let o=ap||i||!aH?void 0:aH;if(aN&&!T&&p&&(aJ||ay)&&!k){let b=await p.get(ag,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(o=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(ag,p,aD,!1,a=>r({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if((aE||aF)&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=(l&&(0,h.getRequestMeta)(a,"renderFallbackShell")||aE&&!as)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;if((l||aE)&&aj.cacheComponents&&!as&&(null==ar?void 0:ar.fallbackRouteParams)){let b=(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams);b&&(0,h.addRequestMeta)(a,"fallbackParams",b)}return q({span:j,postponed:o,fallbackRouteParams:s,forceStaticRender:k})}catch(b){throw(null==g?void 0:g.isStale)&&await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}},D=async c=>{var f,g,i,j,k;let l,m=await N.handleResponse({cacheKey:aS,responseGenerator:a=>r({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ap,isRoutePPREnabled:aD,req:a,nextConfig:aj,prerenderManifest:ae,waitUntil:d.waitUntil,isMinimalMode:T});if(af&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),N.isDev&&b.setHeader("Cache-Control","no-cache, must-revalidate"),!m){if(aS)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ax&&!ay&&am&&b.setHeader(x.NEXT_NAV_DEPLOYMENT_ID_HEADER,am),aM&&!aJ&&(!n||aw)&&(T||b.setHeader("x-nextjs-cache",ap?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:o}=m;if(aH)l={revalidate:0,expire:void 0};else if(aJ)l={revalidate:0,expire:void 0};else if(!N.isDev)if(af)l={revalidate:0,expire:void 0};else if(aM){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??aj.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR_SECONDS,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aK&&(null==o?void 0:o.kind)===u.CachedRouteKind.APP_PAGE&&o.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=o.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];T&&aM&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=o.segmentData.get(aK);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let p=aN?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(p&&await p(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(o.headers){let a={...o.headers};for(let[c,d]of(T&&aM||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=o.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(T&&aM&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!o.status||ax&&aD||(b.statusCode=o.status),!T&&o.status&&F.RedirectStatusCode[o.status]&&ax&&(b.statusCode=200),n&&!aJ&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ax&&!af){if(void 0===o.rscData){if(o.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(aj.cacheComponents)return b.statusCode=404,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new G.InvariantError(`Expected RSC response, got ${o.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:o.html,cacheControl:m.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(o.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=o.html;if(aC&&aE){let c=!0===N.isDev?crypto.randomUUID():null;return v.pipeThrough((0,z.createInstantTestScriptInsertionTransformStream)(c)),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})}if(!n||T||ax)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:m.cacheControl});if(aE||aF)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let B=new TransformStream;return v.push(B.readable),q({span:c,postponed:o.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(B.writable)}).catch(a=>{B.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aY||!aX)return k=aW.getActiveScopeSpan(),await aW.withPropagatedContext(a.headers,()=>aW.trace(i.BaseServerSpan.handleRequest,{spanName:`${aV} ${U}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aV,"http.target":a.url}},D),void 0,!aY);await D(aX)}catch(b){throw b instanceof B.NoFallbackError||await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}}},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},79428:a=>{"use strict";a.exports=require("buffer")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},98900:(a,b,c)=>{"use strict";c.d(b,{CustomAgentsPanel:()=>d});let d=(0,c(30274).registerClientReference)(function(){throw Error("Attempted to call CustomAgentsPanel() from the server but CustomAgentsPanel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/custom-agents-panel.tsx","CustomAgentsPanel")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[103,397,479,174,750,921,554],()=>b(b.s=75899));module.exports=c})();
1
+ (()=>{var a={};a.id=662,a.ids=[662],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3578:(a,b,c)=>{"use strict";c.d(b,{L:()=>h,Z:()=>g});var d=c(2474),e=c(8335),f=c(10963);let g=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)("div",{ref:c,className:(0,e.cn)("rounded-md border border-plexus-border bg-plexus-surface","transition-colors duration-plexus-normal ease-plexus-out",a),...b}));g.displayName="Card";let h=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)(g,{ref:c,className:(0,e.cn)("hover:border-plexus-border-strong hover:-translate-y-px",a),...b}));h.displayName="CardHover"},6463:(a,b,c)=>{Promise.resolve().then(c.bind(c,40414)),Promise.resolve().then(c.bind(c,27025)),Promise.resolve().then(c.bind(c,73754)),Promise.resolve().then(c.bind(c,30768)),Promise.resolve().then(c.t.bind(c,58599,23))},7233:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},8335:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f});var d=c(21163),e=c(25511);function f(...a){return(0,e.QP)((0,d.$)(a))}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11560:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},17217:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>M,handler:()=>O,routeModule:()=>N});var d=c(80666),e=c(51421),f=c(4675),g=c(29796),h=c(54046),i=c(74928),j=c(19727),k=c(24268),l=c(60402),m=c(22040),n=c(27186),o=c(49228),p=c(97485),q=c(261),r=c(80885),s=c(7162),t=c(26713),u=c(70972),v=c(57341),w=c(95105),x=c(38038),y=c(29898),z=c(62918),A=c(98798),B=c(86439),C=c(77068),D=c(31214),E=c(35402),F=c(29059),G=c(70722),H=c(31182),I=c(43954),J=c(17891),K={};for(let a in E)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(K[a]=()=>E[a]);c.d(b,K);let L={children:["",{children:["settings",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,25157)),"/home/runner/work/Plexus/Plexus/apps/web/app/settings/page.tsx"]}]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,9834)),"/home/runner/work/Plexus/Plexus/apps/web/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,46292,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,4253,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,49184,23)),"next/dist/client/components/builtin/unauthorized.js"]},[]]}.children,M={require:c,loadChunk:()=>Promise.resolve()},N=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/settings/page",pathname:"/settings",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:L},distDir:".next",relativeProjectDir:""});async function O(a,b,d){var K,P,Q,R,S;d.requestMeta&&(0,h.setRequestMeta)(a,d.requestMeta),N.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let T=!!(0,h.getRequestMeta)(a,"minimalMode"),U="/settings/page";"/index"===U&&(U="/");let V=await N.prepare(a,b,{srcPage:U,multiZoneDraftMode:!1});if(!V)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:W,query:X,params:Y,pageIsDynamic:Z,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,serverActionsManifest:ab,clientReferenceManifest:ac,subresourceIntegrityManifest:ad,prerenderManifest:ae,isDraftMode:af,resolvedPathname:ag,revalidateOnlyGenerated:ah,routerServerContext:ai,nextConfig:aj,parsedUrl:ak,interceptionRoutePatterns:al,deploymentId:am,clientAssetToken:an}=V,ao=(0,q.normalizeAppPath)(U),{isOnDemandRevalidate:ap}=V,aq=aj.experimental.ppr&&!aj.cacheComponents&&(0,I.isInterceptionRouteAppPath)(ag)?null:N.match(ag,ae),ar=(null==aq?void 0:aq.route)??null,as=!!ae.routes[ag],at=a.headers["user-agent"]||"",au=(0,t.getBotType)(at),av=(0,p.isHtmlBotRequest)(a),aw=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ax=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],ay=(0,r.getIsPossibleServerAction)(a),az=(0,m.checkIsAppPPREnabled)(aj.experimental.ppr),aA=a.headers[x.NEXT_RESUME_STATE_LENGTH_HEADER];if(!(0,h.getRequestMeta)(a,"postponed")&&T&&az&&ay&&aA&&"string"==typeof aA){let e=parseInt(aA,10),{maxPostponedStateSize:f,maxPostponedStateSizeBytes:g}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize);if(!isNaN(e)&&e>0){if(e>g)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(f)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let i="1 MB",j=(null==(S=aj.experimental.serverActions)?void 0:S.bodySizeLimit)??i,k=e+(j!==i?c(32683).parse(j):1048576),l=await (0,D.readBodyWithSizeLimit)(a,k);if(null===l)return b.statusCode=413,b.end("Request body exceeded limit. To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;if(l.length>=e){let b=l.subarray(0,e).toString("utf8");(0,h.addRequestMeta)(a,"postponed",b);let c=l.subarray(e);(0,h.addRequestMeta)(a,"actionBody",c)}else throw Object.defineProperty(Error(`invariant: expected ${e} bytes of postponed state but only received ${l.length} bytes`),"__NEXT_ERROR_CODE",{value:"E979",enumerable:!1,configurable:!0})}}if(!(0,h.getRequestMeta)(a,"postponed")&&az&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let{maxPostponedStateSize:c,maxPostponedStateSizeBytes:e}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize),f=await (0,D.readBodyWithSizeLimit)(a,e);if(null===f)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(c)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let g=f.toString("utf8");(0,h.addRequestMeta)(a,"postponed",g)}let aB=!0===N.isDev||!0===aj.experimental.exposeTestingApiInProductionBuild,aC=aB&&("1"===a.headers[s.NEXT_INSTANT_PREFETCH_HEADER]||void 0===a.headers[s.RSC_HEADER]&&"string"==typeof a.headers.cookie&&a.headers.cookie.includes(s.NEXT_INSTANT_TEST_COOKIE+"=")),aD=(az||aC)&&((null==(K=ae.routes[ao]??ae.dynamicRoutes[ao])?void 0:K.renderingMode)==="PARTIALLY_STATIC"||aC&&(aB||(null==ai?void 0:ai.experimentalTestProxy)===!0)),aE=aC&&aD,aF=aE&&!0===N.isDev,aG=!1,aH=aD?(0,h.getRequestMeta)(a,"postponed"):void 0,aI=null==(P=ae.routes[ag])?void 0:P.prefetchDataRoute,aJ=aD&&ax&&!aw&&!aI;T&&(aJ=aJ&&!!aH);let aK=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),aL=(!au||!aD)&&(!at||(0,p.shouldServeStreamingMetadata)(at,aj.htmlLimitedBots)),aM=!!((ar||as||ae.routes[ao])&&!(au&&aD)),aN=aD&&!0===aj.cacheComponents,aO=!0===N.isDev||!aM||"string"==typeof aH||(aN&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aJ&&!T:aJ),aP=!!au&&aD,aQ=(null==ar?void 0:ar.remainingPrerenderableParams)??[],aR=(null==ar?void 0:ar.fallback)===null&&((null==(Q=ar.fallbackRootParams)?void 0:Q.length)??0)>0,aS=null;if(!af&&aM&&!aO&&!ay&&!aH&&!aJ){let a=aq?"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:aq.source:null;if(!0===aj.experimental.partialFallbacks&&a&&(null==ar?void 0:ar.fallbackRouteParams)&&!aR){if(aQ.length>0){let b,c=(b=new Map(aQ.map(a=>[a.paramName,a])),a.split("/").map(a=>{let c=(0,J.getSegmentParam)(a);if(!c)return a;let d=b.get(c.paramName);if(!d)return a;let e=null==Y?void 0:Y[d.paramName];if(!e)return a;let f=Array.isArray(e)?e.map(a=>encodeURIComponent(a)).join("/"):encodeURIComponent(e);return a.replace(function(a){let{repeat:b,optional:c}=(0,J.getParamProperties)(a.paramType);return c?`[[...${a.paramName}]]`:b?`[...${a.paramName}]`:`[${a.paramName}]`}(d),f)}).join("/")||"/");aS=c!==a?c:null}}else aS=ag}let aT=aS;!aT&&(N.isDev||aM&&Z&&(null==ar?void 0:ar.fallbackRouteParams)&&!ay)&&(aT=ag),N.isDev||af||!aM||!ax||aJ||(0,k.d)(a.headers);let aU={...E,tree:L,handler:O,routeModule:N,__next_app__:M};ab&&ac&&(0,o.setManifestsSingleton)({page:U,clientReferenceManifest:ac,serverActionsManifest:ab});let aV=a.method||"GET",aW=(0,g.getTracer)(),aX=aW.getActiveScopeSpan(),aY=!!(null==ai?void 0:ai.isWrappedByNextServer),aZ=!0===aj.experimental.partialFallbacks&&aQ.length>0?(null==ar||null==(R=ar.fallbackRouteParams)?void 0:R.filter(a=>!aQ.some(b=>b.paramName===a.paramName)))??[]:[],a$=async()=>((null==ai?void 0:ai.render404)?await ai.render404(a,b,ak,!1):b.end("This page could not be found"),null);try{let k,m=N.getVaryHeader(ag,al);b.setHeader("Vary",m);let o=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return N.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aW.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aV} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a),k&&k!==c&&(k.setAttribute("http.route",d),k.updateName(a))}else c.updateName(`${aV} ${U}`)})},p=(0,h.getRequestMeta)(a,"incrementalCache")||await N.getIncrementalCache(a,aj,ae,T);null==p||p.resetRequestCache(),globalThis.__incrementalCache=p;let q=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let k={query:X,params:Y,page:ao,sharedContext:{buildId:W,deploymentId:am,clientAssetToken:an},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aU,Component:(0,j.T)(aU),params:Y,routeModule:N,page:U,postponed:f,shouldWaitOnAllReady:aP,serveStreamingMetadata:aL,supportsDynamicResponse:"string"==typeof f||aO,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,subresourceIntegrityManifest:ad,setCacheStatus:null==ai?void 0:ai.setCacheStatus,setIsrStatus:null==ai?void 0:ai.setIsrStatus,setReactDebugChannel:null==ai?void 0:ai.setReactDebugChannel,sendErrorsToBrowser:null==ai?void 0:ai.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),N.relativeProjectDir),isDraftMode:af,botType:au,isOnDemandRevalidate:ap,isPossibleServerAction:ay,assetPrefix:aj.assetPrefix,nextConfigOutput:aj.output,crossOrigin:aj.crossOrigin,trailingSlash:aj.trailingSlash,images:aj.images,previewProps:ae.preview,enableTainting:aj.experimental.taint,htmlLimitedBots:aj.htmlLimitedBots,reactMaxHeadersLength:aj.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:p,cacheLifeProfiles:aj.cacheLife,basePath:aj.basePath,serverActions:aj.experimental.serverActions,logServerFunctions:"object"==typeof aj.logging&&!!aj.logging.serverFunctions,...aE||aF||aG?{isBuildTimePrerendering:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:aF}:{},cacheComponents:!!aj.cacheComponents,experimental:{isRoutePPREnabled:aD,expireTime:aj.expireTime,staleTimes:aj.experimental.staleTimes,dynamicOnHover:!!aj.experimental.dynamicOnHover,optimisticRouting:!!aj.experimental.optimisticRouting,inlineCss:!!aj.experimental.inlineCss,prefetchInlining:aj.experimental.prefetchInlining??!1,authInterrupts:!!aj.experimental.authInterrupts,cachedNavigations:!!aj.experimental.cachedNavigations,clientTraceMetadata:aj.experimental.clientTraceMetadata||[],clientParamParsingOrigins:aj.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,C.parseMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>N.onRequestError(a,b,d,e,ai),err:(0,h.getRequestMeta)(a,"invokeError")}};i&&(k.renderOpts.supportsDynamicResponse=!1);let l=await o(e,k),{metadata:m}=l,{cacheControl:n,headers:q={},fetchTags:r,fetchMetrics:s}=m;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,aM&&(null==n?void 0:n.revalidate)===0&&!N.isDev&&!aD){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ag}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
+ see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:l,headers:q,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},r=async({hasResolved:c,previousCacheEntry:g,isRevalidating:i,span:j,forceStaticRender:k=!1})=>{let l=!1===N.isDev,m=c||b.writableEnded;try{let f;if(ap&&ah&&!g&&!T)return(null==ai?void 0:ai.render404)?await ai.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ar&&(f=(0,v.parseFallbackField)(ar.fallback)),!0===aj.experimental.partialFallbacks&&(null==ar?void 0:ar.fallback)===null&&!aR&&aQ.length>0&&(f=v.FallbackMode.PRERENDER),f===v.FallbackMode.PRERENDER&&(0,t.isBot)(at)&&(!aD||av)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==g?void 0:g.isStale)===-1&&(ap=!0),ap&&(f!==v.FallbackMode.NOT_FOUND||g)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),!T&&f!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aT&&!m&&!af&&Z&&(l||!as)){if((l||ar)&&f===v.FallbackMode.NOT_FOUND){if(aj.adapterPath)return await a$();throw new B.NoFallbackError}if(aD&&(aj.cacheComponents?!aJ:!ax)){let b=l&&"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:ao,f=(l||aE)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;aE&&f&&(0,h.addRequestMeta)(a,"fallbackParams",f);let g=await N.handleResponse({cacheKey:b,req:a,nextConfig:aj,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:ae,isRoutePPREnabled:aD,responseGenerator:async()=>q({span:j,postponed:void 0,fallbackRouteParams:f,forceStaticRender:!0}),waitUntil:d.waitUntil,isMinimalMode:T});if(null===g)return null;if(g)return T||!aD||!(aQ.length>0)||!0!==aj.experimental.partialFallbacks||!aS||!p||ap||aG||aB||aC||aw||(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(aS,p,aD,!1,a=>q({span:a.span,postponed:void 0,fallbackRouteParams:aZ.length>0?(0,n.createOpaqueFallbackRouteParams)(aZ):null,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}),delete g.cacheControl,g}}let o=ap||i||!aH?void 0:aH;if(aN&&!T&&p&&(aJ||ay)&&!k){let b=await p.get(ag,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(o=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(ag,p,aD,!1,a=>r({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if((aE||aF)&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=(l&&(0,h.getRequestMeta)(a,"renderFallbackShell")||aE&&!as)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;if((l||aE)&&aj.cacheComponents&&!as&&(null==ar?void 0:ar.fallbackRouteParams)){let b=(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams);b&&(0,h.addRequestMeta)(a,"fallbackParams",b)}return q({span:j,postponed:o,fallbackRouteParams:s,forceStaticRender:k})}catch(b){throw(null==g?void 0:g.isStale)&&await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}},D=async c=>{var f,g,i,j,k;let l,m=await N.handleResponse({cacheKey:aS,responseGenerator:a=>r({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ap,isRoutePPREnabled:aD,req:a,nextConfig:aj,prerenderManifest:ae,waitUntil:d.waitUntil,isMinimalMode:T});if(af&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),N.isDev&&b.setHeader("Cache-Control","no-cache, must-revalidate"),!m){if(aS)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ax&&!ay&&am&&b.setHeader(x.NEXT_NAV_DEPLOYMENT_ID_HEADER,am),aM&&!aJ&&(!n||aw)&&(T||b.setHeader("x-nextjs-cache",ap?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:o}=m;if(aH)l={revalidate:0,expire:void 0};else if(aJ)l={revalidate:0,expire:void 0};else if(!N.isDev)if(af)l={revalidate:0,expire:void 0};else if(aM){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??aj.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR_SECONDS,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aK&&(null==o?void 0:o.kind)===u.CachedRouteKind.APP_PAGE&&o.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=o.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];T&&aM&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=o.segmentData.get(aK);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let p=aN?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(p&&await p(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(o.headers){let a={...o.headers};for(let[c,d]of(T&&aM||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=o.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(T&&aM&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!o.status||ax&&aD||(b.statusCode=o.status),!T&&o.status&&F.RedirectStatusCode[o.status]&&ax&&(b.statusCode=200),n&&!aJ&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ax&&!af){if(void 0===o.rscData){if(o.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(aj.cacheComponents)return b.statusCode=404,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new G.InvariantError(`Expected RSC response, got ${o.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:o.html,cacheControl:m.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(o.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=o.html;if(aC&&aE){let c=!0===N.isDev?crypto.randomUUID():null;return v.pipeThrough((0,z.createInstantTestScriptInsertionTransformStream)(c)),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})}if(!n||T||ax)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:m.cacheControl});if(aE||aF)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let B=new TransformStream;return v.push(B.readable),q({span:c,postponed:o.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(B.writable)}).catch(a=>{B.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aY||!aX)return k=aW.getActiveScopeSpan(),await aW.withPropagatedContext(a.headers,()=>aW.trace(i.BaseServerSpan.handleRequest,{spanName:`${aV} ${U}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aV,"http.target":a.url}},D),void 0,!aY);await D(aX)}catch(b){throw b instanceof B.NoFallbackError||await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}}},17891:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/get-segment-param")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{"use strict";a.exports=require("process")},23772:(a,b,c)=>{"use strict";c.d(b,{Z:()=>g});var d=c(92692),e=c(45813),f=c(71277);let g=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)("div",{ref:c,className:(0,e.cn)("rounded-md border border-plexus-border bg-plexus-surface","transition-colors duration-plexus-normal ease-plexus-out",a),...b}));g.displayName="Card",(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)(g,{ref:c,className:(0,e.cn)("hover:border-plexus-border-strong hover:-translate-y-px",a),...b})).displayName="CardHover"},24615:(a,b,c)=>{Promise.resolve().then(c.bind(c,98900)),Promise.resolve().then(c.bind(c,71355)),Promise.resolve().then(c.bind(c,25932)),Promise.resolve().then(c.bind(c,28774)),Promise.resolve().then(c.t.bind(c,95953,23))},25157:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>r,dynamic:()=>p});var d=c(2474),e=c(98900),f=c(71355),g=c(25932),h=c(3578),i=c(96638),j=c(93895);let k=(0,j.A)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),l=(0,j.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var m=c(91310),n=c.n(m),o=c(45628);let p="force-dynamic",q={en:{title:"Settings",description:"Plexus is local-only. Nothing leaves this machine — no telemetry, no remote logging. Configure which agents take part in sync and how Plexus mirrors files.",architectureTitle:"How sharing works",architecture:"Open the clickable architecture map for rules, skills, MCP files, backups, and the hybrid sync strategy.",openArchitecture:"View design"},zh:{title:"设置",description:"Plexus 只在本机运行,不发送遥测,也没有远程日志。你可以在这里配置哪些 Agent 参与同步,以及 Plexus 如何镜像文件。",architectureTitle:"同步机制是怎么工作的",architecture:"打开可点击的架构图,查看 Rules、Skills、MCP、备份和 hybrid sync strategy 的具体设计。",openArchitecture:"查看设计图"}};async function r(){let a=q[await (0,i.s)()],b=await (0,o.readConfig)();return(0,d.jsxs)("div",{className:"space-y-8",children:[(0,d.jsxs)("header",{children:[(0,d.jsx)("h1",{className:"plexus-display mb-2",children:a.title}),(0,d.jsx)("p",{className:"max-w-2xl text-sm leading-relaxed text-plexus-text-2",children:a.description})]}),(0,d.jsxs)(h.Z,{className:"flex flex-col gap-4 border-l-[3px] border-l-plexus-accent px-5 py-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)(k,{className:"mt-0.5 h-4 w-4 shrink-0 text-plexus-accent",strokeWidth:1.5}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-sm font-semibold text-plexus-text",children:a.architectureTitle}),(0,d.jsx)("p",{className:"mt-1 max-w-2xl text-xs leading-relaxed text-plexus-text-2",children:a.architecture})]})]}),(0,d.jsx)(g.Button,{asChild:!0,variant:"secondary",size:"sm",className:"shrink-0",children:(0,d.jsxs)(n(),{href:"/about",children:[a.openArchitecture,(0,d.jsx)(l,{className:"h-3.5 w-3.5",strokeWidth:1.5})]})})]}),(0,d.jsx)(f.SettingsPanel,{config:b,agents:[...o.ALL_AGENTS],displayNames:o.AGENT_DISPLAY_NAMES}),(0,d.jsx)(e.CustomAgentsPanel,{})]})}},25932:(a,b,c)=>{"use strict";c.d(b,{Button:()=>e});var d=c(30274);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Button() from the server but Button is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/button.tsx","Button");(0,d.registerClientReference)(function(){throw Error("Attempted to call buttonVariants() from the server but buttonVariants is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/button.tsx","buttonVariants")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27025:(a,b,c)=>{"use strict";c.d(b,{SettingsPanel:()=>k});var d=c(92692),e=c(84774),f=c(73754),g=c(23772),h=c(33150),i=c(71277);let j={en:{saved:"Saved",privacyTitle:"Privacy pledge.",privacy:"Plexus runs entirely on your machine. No data is sent anywhere — not even crash reports. The only outbound traffic is the optional git pull when you subscribe to a team config repo.",enabledAgents:"Enabled agents",enabledAgentsHelp:"Disable an agent to skip it during sync, even if it is installed.",syncStrategy:"Sync strategy",syncStrategyHelp:"Symlinks are preferred — changes propagate instantly without re-running sync. Copy fallback is more portable across operating systems but requires sync to refresh files."},zh:{saved:"已保存",privacyTitle:"隐私承诺。",privacy:"Plexus 完全在你的机器上运行。不会发送任何数据,包括崩溃报告。唯一的外部网络请求是你订阅团队配置仓库时可选的 git pull。",enabledAgents:"启用的 Agent",enabledAgentsHelp:"关闭某个 Agent 后,即使它已安装,同步时也会跳过它。",syncStrategy:"同步策略",syncStrategyHelp:"优先使用软链接:改动会立即传播,不需要再次同步。复制模式跨系统更稳,但文件刷新需要重新同步。"}};function k({config:a,agents:b,displayNames:c}){let{locale:l}=(0,e.o)(),m=j[l],[n,o]=(0,i.useState)(a),[p,q]=(0,i.useState)(null);async function r(a){o(a);let b=await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(a)});b.ok?(q(m.saved),setTimeout(()=>q(null),1200)):q(`Error: ${await b.text()}`)}return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsx)(g.Z,{className:"border-l-[3px] border-l-plexus-ok px-5 py-4",children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)(h.A,{className:"mt-0.5 h-4 w-4 shrink-0 text-plexus-ok",strokeWidth:1.5}),(0,d.jsxs)("div",{className:"text-xs leading-relaxed text-plexus-text-2",children:[(0,d.jsx)("span",{className:"font-semibold text-plexus-text",children:m.privacyTitle})," ",m.privacy]})]})}),(0,d.jsxs)(g.Z,{className:"p-5",children:[(0,d.jsx)("div",{className:"plexus-eyebrow mb-1",children:m.enabledAgents}),(0,d.jsx)("p",{className:"text-xs text-plexus-text-3",children:m.enabledAgentsHelp}),(0,d.jsx)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:b.map(a=>{let b=!1!==n.agents[a];return(0,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-3 rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm hover:border-plexus-border-strong",children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:b=>r({...n,agents:{...n.agents,[a]:b.target.checked}}),className:"h-4 w-4 cursor-pointer accent-plexus-accent"}),(0,d.jsx)("span",{className:b?"text-plexus-text":"text-plexus-text-3",children:c[a]??a})]},a)})})]}),(0,d.jsxs)(g.Z,{className:"p-5",children:[(0,d.jsx)("div",{className:"plexus-eyebrow mb-1",children:m.syncStrategy}),(0,d.jsx)("p",{className:"text-xs text-plexus-text-3",children:m.syncStrategyHelp}),(0,d.jsx)("div",{className:"mt-4 flex gap-2",children:["symlink","copy"].map(a=>{let b=n.syncStrategy===a;return(0,d.jsx)(f.Button,{variant:b?"primary":"secondary",size:"sm",onClick:()=>r({...n,syncStrategy:a}),children:a},a)})})]}),p&&(0,d.jsx)("div",{className:"text-xs text-plexus-text-3",children:p})]})}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33150:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},33873:a=>{"use strict";a.exports=require("path")},36257:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},40414:(a,b,c)=>{"use strict";c.d(b,{CustomAgentsPanel:()=>q});var d=c(92692),e=c(84774),f=c(50953),g=c(73754),h=c(23772),i=c(72186),j=c(32450),k=c(11560),l=c(7233),m=c(36257),n=c(78784),o=c(71277);let p={en:{catalog:"Agent catalog",catalogHelp:"Built-in agents sync Rules, MCP, and Skills. Other popular tools are listed as manual presets so users can quickly track an instruction file without waiting for a native adapter.",addAgent:"Add agent",agent:"Agent",status:"Status",support:"Support",action:"Action",installed:"installed",missing:"missing",fullSync:"full sync",manual:"manual",builtIn:"built-in",tracked:"tracked",trackFile:"Track file",agentId:"Agent id",displayName:"Display name",instructionFilePath:"Instruction file path",pathHelp:"Absolute or ~/ relative. Plexus will create or read the file when you click View / Edit.",note:"Note",optional:"optional",notePlaceholder:"Anything to remember about this agent...",cancel:"Cancel",adding:"Adding...",loading:"Loading custom agents...",noCustom:"No custom agents yet. Click Add agent to register one.",lite:"Lite",instructionsOnly:"instructions only",remove:"Remove",edit:"Edit",close:"Close",save:"Save",saving:"Saving...",editing:"editing",newFile:"new file",snapshotNotice:"Plexus snapshots the current file before save. Missing files are created on first save.",removeConfirm:a=>`Remove custom agent '${a}'? The instruction file on disk is not deleted.`,addFailed:"Failed to add custom agent",readFailed:"Failed to read file",saveFailed:"Failed to save file",saved:"Saved.",savedBackup:a=>`Saved. Backup: ${a}`},zh:{catalog:"Agent 目录",catalogHelp:"内置 Agent 支持 Rules、MCP 和 Skills 的完整同步。其他常见工具会作为手动预设展示,用户可以先追踪一个指令文件,不必等原生适配器。",addAgent:"新增 Agent",agent:"Agent",status:"状态",support:"支持",action:"操作",installed:"已安装",missing:"未发现",fullSync:"完整同步",manual:"手动",builtIn:"内置",tracked:"已追踪",trackFile:"追踪文件",agentId:"Agent ID",displayName:"展示名称",instructionFilePath:"指令文件路径",pathHelp:"支持绝对路径或 ~/ 相对路径。点击查看/编辑时,Plexus 会读取或创建该文件。",note:"备注",optional:"可选",notePlaceholder:"记录这个 Agent 的用途或注意事项...",cancel:"取消",adding:"正在新增...",loading:"正在加载自定义 Agent...",noCustom:"还没有自定义 Agent。点击新增 Agent 登记一个。",lite:"轻量",instructionsOnly:"仅指令文件",remove:"移除",edit:"编辑",close:"关闭",save:"保存",saving:"保存中...",editing:"编辑中",newFile:"新文件",snapshotNotice:"Plexus 会在保存前快照当前文件。缺失文件会在第一次保存时创建。",removeConfirm:a=>`移除自定义 Agent '${a}'?磁盘上的指令文件不会被删除。`,addFailed:"新增自定义 Agent 失败",readFailed:"读取文件失败",saveFailed:"保存文件失败",saved:"已保存。",savedBackup:a=>`已保存。备份:${a}`}};function q(){let{locale:a}=(0,e.o)(),b=p[a],[c,m]=(0,o.useState)([]),[n,q]=(0,o.useState)([]),[s,t]=(0,o.useState)(!0),[u,v]=(0,o.useState)(!1),[w,x]=(0,o.useState)({id:"",displayName:"",instructionFile:"",note:""}),[y,z]=(0,o.useState)(!1),[A,B]=(0,o.useState)(null),C=(0,o.useId)(),D=(0,o.useId)(),E=(0,o.useId)(),F=(0,o.useId)();function G(){v(!1),B(null),x({id:"",displayName:"",instructionFile:"",note:""})}async function H(){t(!0);try{let[a,b]=await Promise.all([fetch("/api/custom-agents"),fetch("/api/agent-catalog")]),c=await a.json(),d=await b.json();m(c.agents??[]),q(d.agents??[])}finally{t(!1)}}async function I(a){a.preventDefault(),z(!0),B(null);try{let a=await fetch("/api/custom-agents",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:w.id.trim(),displayName:w.displayName.trim(),instructionFile:w.instructionFile.trim(),note:w.note.trim()||void 0})}),c=await a.json();if(!c.ok)return void B(c.error??b.addFailed);G(),await H()}catch(a){B(a.message)}finally{z(!1)}}async function J(a){if(a.instructionFile){z(!0),B(null);try{let c=await fetch("/api/custom-agents",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:a.id,displayName:a.displayName,instructionFile:a.instructionFile,note:a.note})}),d=await c.json();if(!d.ok)return void B(d.error??b.addFailed);await H()}catch(a){B(a.message)}finally{z(!1)}}}async function K(a){if(confirm(b.removeConfirm(a))){z(!0);try{await fetch(`/api/custom-agents/${encodeURIComponent(a)}`,{method:"DELETE"}),await H()}finally{z(!1)}}}let L=new Set(c.map(a=>a.id)),M=[...n].sort((a,b)=>Number(b.installed)-Number(a.installed)||a.displayName.localeCompare(b.displayName));return(0,d.jsxs)(h.Z,{className:"p-5",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"plexus-eyebrow mb-1",children:b.catalog}),(0,d.jsx)("p",{className:"max-w-xl text-xs text-plexus-text-3",children:b.catalogHelp})]}),(0,d.jsxs)(g.Button,{variant:"secondary",size:"sm",onClick:()=>v(!0),children:[(0,d.jsx)(i.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),b.addAgent]})]}),n.length>0&&(0,d.jsxs)("div",{className:"mt-5 overflow-x-auto rounded border border-plexus-border",children:[(0,d.jsxs)("div",{className:"grid min-w-[720px] grid-cols-[1fr_86px_92px_96px] gap-x-4 border-b border-plexus-border bg-plexus-surface-2/40 px-4 py-2.5 text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[(0,d.jsx)("div",{children:b.agent}),(0,d.jsx)("div",{className:"text-right",children:b.status}),(0,d.jsx)("div",{className:"text-right",children:b.support}),(0,d.jsx)("div",{className:"text-right",children:b.action})]}),M.map(a=>{let c=L.has(a.id);return(0,d.jsxs)("div",{className:`grid min-w-[720px] grid-cols-[1fr_86px_92px_96px] gap-x-4 border-b border-plexus-border/60 px-4 py-3 text-sm last:border-0 ${a.installed?"bg-plexus-bg":"bg-plexus-surface text-plexus-text-3"}`,children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("div",{className:"font-semibold text-plexus-text",children:a.displayName}),(0,d.jsx)("div",{className:"font-mono text-[11px] text-plexus-text-3",children:a.id}),(0,d.jsx)("div",{className:"mt-1 truncate font-mono text-[11px] text-plexus-text-2",children:a.mcpPath??a.instructionFile??a.rootDir})]}),(0,d.jsx)("div",{className:"text-right",children:(0,d.jsx)(f.E,{variant:a.installed?"synced":"native",children:a.installed?b.installed:b.missing})}),(0,d.jsx)("div",{className:"text-right",children:(0,d.jsx)(f.E,{variant:a.managed?"personal":"outline",children:"full"===a.support?b.fullSync:b.manual})}),(0,d.jsx)("div",{className:"text-right",children:a.managed?(0,d.jsx)(f.E,{variant:"synced",children:b.builtIn}):c?(0,d.jsx)(f.E,{variant:"native",children:b.tracked}):(0,d.jsx)(g.Button,{variant:"ghost",size:"sm",onClick:()=>J(a),disabled:y||!a.instructionFile,children:b.trackFile})})]},a.id)})]}),u&&(0,d.jsx)("dialog",{open:!0,"aria-labelledby":"custom-agent-form-title",className:"fixed inset-0 z-50 m-0 h-full w-full max-w-none border-0 bg-transparent p-0",children:(0,d.jsx)("div",{role:"presentation",className:"flex h-full w-full cursor-default items-center justify-center bg-black/70 p-4",onClick:G,children:(0,d.jsxs)("form",{onSubmit:I,className:"w-full max-w-2xl space-y-4 rounded-md border border-plexus-border bg-plexus-surface p-5 text-left shadow-lg",onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4 border-b border-plexus-border pb-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{id:"custom-agent-form-title",className:"text-sm font-semibold text-plexus-text",children:b.addAgent}),(0,d.jsx)("p",{className:"mt-1 text-xs text-plexus-text-3",children:b.pathHelp})]}),(0,d.jsx)("button",{type:"button","aria-label":b.close,onClick:G,className:"text-plexus-text-3 hover:text-plexus-text",children:(0,d.jsx)(j.A,{className:"h-4 w-4",strokeWidth:1.5})})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:C,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:b.agentId}),(0,d.jsx)("input",{id:C,type:"text",required:!0,placeholder:"e.g. copilot-cli",value:w.id,onChange:a=>x({...w,id:a.target.value}),pattern:"[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm text-plexus-text outline-none focus:border-plexus-accent"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:D,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:b.displayName}),(0,d.jsx)("input",{id:D,type:"text",required:!0,placeholder:"e.g. GitHub Copilot CLI",value:w.displayName,onChange:a=>x({...w,displayName:a.target.value}),className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm text-plexus-text outline-none focus:border-plexus-accent"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:E,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:b.instructionFilePath}),(0,d.jsx)("input",{id:E,type:"text",required:!0,placeholder:"e.g. ~/.config/copilot/AGENTS.md",value:w.instructionFile,onChange:a=>x({...w,instructionFile:a.target.value}),className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 font-mono text-xs text-plexus-text outline-none focus:border-plexus-accent"})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("label",{htmlFor:F,className:"mb-1 block text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[b.note," ",(0,d.jsxs)("span",{className:"lowercase text-plexus-text-3",children:["(",b.optional,")"]})]}),(0,d.jsx)("input",{id:F,type:"text",maxLength:280,placeholder:b.notePlaceholder,value:w.note,onChange:a=>x({...w,note:a.target.value}),className:"w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 text-sm text-plexus-text outline-none focus:border-plexus-accent"})]}),A&&(0,d.jsx)("div",{className:"rounded border border-plexus-err/40 bg-plexus-err/10 px-3 py-2 text-xs text-plexus-err",children:A}),(0,d.jsxs)("div",{className:"flex justify-end gap-2 border-t border-plexus-border pt-3",children:[(0,d.jsx)(g.Button,{type:"button",variant:"ghost",size:"sm",onClick:G,children:b.cancel}),(0,d.jsx)(g.Button,{type:"submit",variant:"primary",size:"sm",disabled:y,children:y?b.adding:b.addAgent})]})]})})}),(0,d.jsxs)("div",{className:"mt-5",children:[s&&(0,d.jsx)("div",{className:"text-xs text-plexus-text-3",children:b.loading}),!s&&0===c.length&&(0,d.jsx)("div",{className:"rounded border border-dashed border-plexus-border bg-plexus-bg/40 px-4 py-6 text-center text-xs text-plexus-text-3",children:b.noCustom}),c.length>0&&(0,d.jsxs)("div",{className:"overflow-x-auto rounded border border-plexus-border",children:[(0,d.jsxs)("div",{className:"grid min-w-[720px] grid-cols-[1fr_130px_180px] gap-x-4 border-b border-plexus-border bg-plexus-surface-2/40 px-4 py-2.5 text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[(0,d.jsx)("div",{children:b.agent}),(0,d.jsx)("div",{className:"text-right",children:b.lite}),(0,d.jsx)("div",{className:"text-right",children:b.action})]}),c.map(a=>(0,d.jsxs)("div",{className:"grid min-w-[720px] grid-cols-[1fr_130px_180px] gap-x-4 border-b border-plexus-border/60 px-4 py-3 text-sm last:border-0",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"font-semibold text-plexus-text",children:a.displayName}),(0,d.jsx)("div",{className:"font-mono text-[11px] text-plexus-text-3",children:a.id}),(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-1.5 font-mono text-[11px] text-plexus-text-2",children:[(0,d.jsx)(k.A,{className:"h-3 w-3",strokeWidth:1.5}),a.instructionFile]}),a.note&&(0,d.jsx)("div",{className:"mt-1 text-[11px] italic text-plexus-text-3",children:a.note})]}),(0,d.jsx)("div",{className:"text-right",children:(0,d.jsx)(f.E,{variant:"native",children:b.instructionsOnly})}),(0,d.jsxs)("div",{className:"flex justify-end gap-2 text-right",children:[(0,d.jsx)(r,{agent:a,copy:b}),(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",onClick:()=>K(a.id),disabled:y,children:[(0,d.jsx)(l.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),b.remove]})]})]},a.id))]})]})]})}function r({agent:a,copy:b}){let[c,e]=(0,o.useState)(!1),[h,i]=(0,o.useState)(!1),[k,l]=(0,o.useState)(!1),[p,q]=(0,o.useState)(""),[s,t]=(0,o.useState)(!1),[u,v]=(0,o.useState)(null);async function w(){t(!0),v(null);try{let c=await fetch(`/api/custom-agents/${encodeURIComponent(a.id)}/file`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({content:p})}),d=await c.json();if(!d.ok)return void v(d.message??b.saveFailed);l(!0),v(d.backup?b.savedBackup(d.backup):b.saved)}catch(a){v(a.message)}finally{t(!1)}}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",onClick:()=>e(!0),children:[(0,d.jsx)(m.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),b.edit]}),c&&(0,d.jsx)("div",{role:"presentation",className:"fixed inset-0 z-50 flex cursor-default items-center justify-center bg-black/70 p-6",onClick:()=>e(!1),children:(0,d.jsxs)("div",{className:"flex h-[80vh] w-[80vw] max-w-5xl cursor-default flex-col overflow-hidden rounded-md border border-plexus-border bg-plexus-surface text-left shadow-lg",onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between border-b border-plexus-border px-5 py-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(f.E,{variant:k?"synced":"native",children:k?b.editing:b.newFile}),(0,d.jsx)("span",{className:"text-sm font-semibold text-plexus-text",children:a.displayName})]}),(0,d.jsx)("code",{className:"mt-1 block truncate font-mono text-xs text-plexus-text-3",children:a.instructionFile})]}),(0,d.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>e(!1),className:"text-plexus-text-3 hover:text-plexus-text",children:(0,d.jsx)(j.A,{className:"h-4 w-4",strokeWidth:1.5})})]}),(0,d.jsx)("div",{className:"border-b border-plexus-border bg-plexus-surface-2/40 px-5 py-2 text-xs text-plexus-text-3",children:b.snapshotNotice}),u&&(0,d.jsx)("div",{className:"border-b border-plexus-border bg-plexus-surface-2 px-5 py-2 text-xs text-plexus-text-2",children:u}),(0,d.jsx)("textarea",{className:"flex-1 resize-none bg-plexus-bg p-4 font-mono text-xs text-plexus-text outline-none",value:p,onChange:a=>q(a.target.value)}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 border-t border-plexus-border px-5 py-3",children:[(0,d.jsx)(g.Button,{variant:"ghost",size:"sm",onClick:()=>e(!1),children:b.close}),(0,d.jsxs)(g.Button,{variant:"primary",size:"sm",onClick:w,disabled:s,children:[s&&(0,d.jsx)(n.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}),s?b.saving:b.save]})]})]})})]})}},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71355:(a,b,c)=>{"use strict";c.d(b,{SettingsPanel:()=>d});let d=(0,c(30274).registerClientReference)(function(){throw Error("Attempted to call SettingsPanel() from the server but SettingsPanel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/settings-panel.tsx","SettingsPanel")},72186:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},79428:a=>{"use strict";a.exports=require("buffer")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},98900:(a,b,c)=>{"use strict";c.d(b,{CustomAgentsPanel:()=>d});let d=(0,c(30274).registerClientReference)(function(){throw Error("Attempted to call CustomAgentsPanel() from the server but CustomAgentsPanel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/custom-agents-panel.tsx","CustomAgentsPanel")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[103,397,479,174,750,921,554],()=>b(b.s=17217));module.exports=c})();
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/settings/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"169":{"*":{"id":"96985","name":"*","chunks":[],"async":false}},"214":{"*":{"id":"23858","name":"*","chunks":[],"async":false}},"572":{"*":{"id":"97944","name":"*","chunks":[],"async":false}},"589":{"*":{"id":"8447","name":"*","chunks":[],"async":false}},"671":{"*":{"id":"69411","name":"*","chunks":[],"async":false}},"887":{"*":{"id":"93431","name":"*","chunks":[],"async":false}},"1107":{"*":{"id":"25029","name":"*","chunks":[],"async":false}},"1380":{"*":{"id":"24194","name":"*","chunks":[],"async":false}},"1405":{"*":{"id":"27025","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"6302","name":"*","chunks":[],"async":false}},"3558":{"*":{"id":"50674","name":"*","chunks":[],"async":false}},"4228":{"*":{"id":"30768","name":"*","chunks":[],"async":false}},"4641":{"*":{"id":"71943","name":"*","chunks":[],"async":false}},"4757":{"*":{"id":"73257","name":"*","chunks":[],"async":false}},"5392":{"*":{"id":"40414","name":"*","chunks":[],"async":false}},"5537":{"*":{"id":"13320","name":"*","chunks":[],"async":false}},"5587":{"*":{"id":"58599","name":"*","chunks":[],"async":false}},"5718":{"*":{"id":"25696","name":"*","chunks":[],"async":false}},"6036":{"*":{"id":"83393","name":"*","chunks":[],"async":false}},"6439":{"*":{"id":"84774","name":"*","chunks":[],"async":false}},"6713":{"*":{"id":"74890","name":"*","chunks":[],"async":false}},"7103":{"*":{"id":"43267","name":"*","chunks":[],"async":false}},"7788":{"*":{"id":"73754","name":"*","chunks":[],"async":false}},"8257":{"*":{"id":"67139","name":"*","chunks":[],"async":false}},"8287":{"*":{"id":"53208","name":"*","chunks":[],"async":false}},"8484":{"*":{"id":"75599","name":"*","chunks":[],"async":false}},"8725":{"*":{"id":"5058","name":"*","chunks":[],"async":false}},"9630":{"*":{"id":"78886","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/app-sidebar.tsx":{"id":1107,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-31e6e6e2c4466423.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/app-topbar.tsx":{"id":1458,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-31e6e6e2c4466423.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/language-provider.tsx":{"id":6439,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-31e6e6e2c4466423.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/theme-provider.tsx":{"id":572,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-31e6e6e2c4466423.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/tooltip.tsx":{"id":4757,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-31e6e6e2c4466423.js"],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--plexus-font-sans-loaded\",\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":3597,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-31e6e6e2c4466423.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/app/globals.css":{"id":6944,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-31e6e6e2c4466423.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/architecture-panel.tsx":{"id":6036,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/agent-detail.tsx":{"id":4641,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/lucide-react/dist/esm/Icon.mjs":{"id":4228,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/app-dir/link.js":{"id":5587,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/app-dir/link.js":{"id":5587,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/backups-panel.tsx":{"id":5537,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/debug-panel.tsx":{"id":8725,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/mcp-editor.tsx":{"id":169,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/mirror-panel.tsx":{"id":7103,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/rules-panel.tsx":{"id":8287,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/custom-agents-panel.tsx":{"id":5392,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/settings-panel.tsx":{"id":1405,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/button.tsx":{"id":7788,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/skills-editor.tsx":{"id":8257,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/team-panel.tsx":{"id":8484,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/sync-button.tsx":{"id":6713,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","7814","static/chunks/7814-1bc9d30b9724b70c.js","8974","static/chunks/app/page-4f00de3290a21755.js"],"async":false}},"entryCSSFiles":{"/home/runner/work/Plexus/Plexus/apps/web/":[],"/home/runner/work/Plexus/Plexus/apps/web/app/layout":[{"inlined":false,"path":"static/css/eba3657411e6e6cd.css"}],"/home/runner/work/Plexus/Plexus/apps/web/app/page":[],"/home/runner/work/Plexus/Plexus/apps/web/app/settings/page":[]},"rscModuleMapping":{"169":{"*":{"id":"57579","name":"*","chunks":[],"async":false}},"214":{"*":{"id":"13592","name":"*","chunks":[],"async":false}},"572":{"*":{"id":"73422","name":"*","chunks":[],"async":false}},"589":{"*":{"id":"61437","name":"*","chunks":[],"async":false}},"671":{"*":{"id":"6413","name":"*","chunks":[],"async":false}},"887":{"*":{"id":"48465","name":"*","chunks":[],"async":false}},"1107":{"*":{"id":"60303","name":"*","chunks":[],"async":false}},"1380":{"*":{"id":"86792","name":"*","chunks":[],"async":false}},"1405":{"*":{"id":"71355","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"2183","name":"*","chunks":[],"async":false}},"3558":{"*":{"id":"99476","name":"*","chunks":[],"async":false}},"4228":{"*":{"id":"28774","name":"*","chunks":[],"async":false}},"4641":{"*":{"id":"14838","name":"*","chunks":[],"async":false}},"4757":{"*":{"id":"76155","name":"*","chunks":[],"async":false}},"5392":{"*":{"id":"98900","name":"*","chunks":[],"async":false}},"5537":{"*":{"id":"94029","name":"*","chunks":[],"async":false}},"5587":{"*":{"id":"95953","name":"*","chunks":[],"async":false}},"5718":{"*":{"id":"32594","name":"*","chunks":[],"async":false}},"6036":{"*":{"id":"44469","name":"*","chunks":[],"async":false}},"6439":{"*":{"id":"74829","name":"*","chunks":[],"async":false}},"6713":{"*":{"id":"79975","name":"*","chunks":[],"async":false}},"6944":{"*":{"id":"21971","name":"*","chunks":[],"async":false}},"7103":{"*":{"id":"73629","name":"*","chunks":[],"async":false}},"7788":{"*":{"id":"25932","name":"*","chunks":[],"async":false}},"8257":{"*":{"id":"86817","name":"*","chunks":[],"async":false}},"8287":{"*":{"id":"90317","name":"*","chunks":[],"async":false}},"8484":{"*":{"id":"42455","name":"*","chunks":[],"async":false}},"8725":{"*":{"id":"67021","name":"*","chunks":[],"async":false}},"9630":{"*":{"id":"41452","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"214":{"*":{"id":"23858","name":"*","chunks":[],"async":false}},"589":{"*":{"id":"8447","name":"*","chunks":[],"async":false}},"671":{"*":{"id":"69411","name":"*","chunks":[],"async":false}},"887":{"*":{"id":"93431","name":"*","chunks":[],"async":false}},"1380":{"*":{"id":"24194","name":"*","chunks":[],"async":false}},"3558":{"*":{"id":"50674","name":"*","chunks":[],"async":false}},"4228":{"*":{"id":"30768","name":"*","chunks":[],"async":false}},"5587":{"*":{"id":"58599","name":"*","chunks":[],"async":false}},"5718":{"*":{"id":"25696","name":"*","chunks":[],"async":false}},"9630":{"*":{"id":"78886","name":"*","chunks":[],"async":false}}}};
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/settings/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"169":{"*":{"id":"96985","name":"*","chunks":[],"async":false}},"214":{"*":{"id":"23858","name":"*","chunks":[],"async":false}},"572":{"*":{"id":"97944","name":"*","chunks":[],"async":false}},"589":{"*":{"id":"8447","name":"*","chunks":[],"async":false}},"671":{"*":{"id":"69411","name":"*","chunks":[],"async":false}},"887":{"*":{"id":"93431","name":"*","chunks":[],"async":false}},"1107":{"*":{"id":"25029","name":"*","chunks":[],"async":false}},"1380":{"*":{"id":"24194","name":"*","chunks":[],"async":false}},"1405":{"*":{"id":"27025","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"6302","name":"*","chunks":[],"async":false}},"3558":{"*":{"id":"50674","name":"*","chunks":[],"async":false}},"4228":{"*":{"id":"30768","name":"*","chunks":[],"async":false}},"4641":{"*":{"id":"71943","name":"*","chunks":[],"async":false}},"4757":{"*":{"id":"73257","name":"*","chunks":[],"async":false}},"5392":{"*":{"id":"40414","name":"*","chunks":[],"async":false}},"5537":{"*":{"id":"13320","name":"*","chunks":[],"async":false}},"5587":{"*":{"id":"58599","name":"*","chunks":[],"async":false}},"5718":{"*":{"id":"25696","name":"*","chunks":[],"async":false}},"6036":{"*":{"id":"83393","name":"*","chunks":[],"async":false}},"6439":{"*":{"id":"84774","name":"*","chunks":[],"async":false}},"6713":{"*":{"id":"74890","name":"*","chunks":[],"async":false}},"7103":{"*":{"id":"43267","name":"*","chunks":[],"async":false}},"7788":{"*":{"id":"73754","name":"*","chunks":[],"async":false}},"8257":{"*":{"id":"67139","name":"*","chunks":[],"async":false}},"8287":{"*":{"id":"53208","name":"*","chunks":[],"async":false}},"8484":{"*":{"id":"75599","name":"*","chunks":[],"async":false}},"8725":{"*":{"id":"5058","name":"*","chunks":[],"async":false}},"9630":{"*":{"id":"78886","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/app-sidebar.tsx":{"id":1107,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-1b8ad5703758230d.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/app-topbar.tsx":{"id":1458,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-1b8ad5703758230d.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/language-provider.tsx":{"id":6439,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-1b8ad5703758230d.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/theme-provider.tsx":{"id":572,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-1b8ad5703758230d.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/tooltip.tsx":{"id":4757,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-1b8ad5703758230d.js"],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--plexus-font-sans-loaded\",\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":3597,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-1b8ad5703758230d.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/app/globals.css":{"id":6944,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","626","static/chunks/626-7ea78ce012c8d471.js","7177","static/chunks/app/layout-1b8ad5703758230d.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/architecture-panel.tsx":{"id":6036,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/agent-detail.tsx":{"id":4641,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/lucide-react/dist/esm/Icon.mjs":{"id":4228,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/client/app-dir/link.js":{"id":5587,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/node_modules/next/dist/esm/client/app-dir/link.js":{"id":5587,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/backups-panel.tsx":{"id":5537,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/debug-panel.tsx":{"id":8725,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/mcp-editor.tsx":{"id":169,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/mirror-panel.tsx":{"id":7103,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/rules-panel.tsx":{"id":8287,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/custom-agents-panel.tsx":{"id":5392,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/settings-panel.tsx":{"id":1405,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/ui/button.tsx":{"id":7788,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","4662","static/chunks/app/settings/page-0befc46d439ee26c.js"],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/team-panel.tsx":{"id":8484,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/skills-editor.tsx":{"id":8257,"name":"*","chunks":[],"async":false},"/home/runner/work/Plexus/Plexus/apps/web/components/sync-button.tsx":{"id":6713,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","5587","static/chunks/5587-933f3258279c6072.js","3051","static/chunks/3051-5eb2f5784474c658.js","7814","static/chunks/7814-1bc9d30b9724b70c.js","8974","static/chunks/app/page-4f00de3290a21755.js"],"async":false}},"entryCSSFiles":{"/home/runner/work/Plexus/Plexus/apps/web/":[],"/home/runner/work/Plexus/Plexus/apps/web/app/layout":[{"inlined":false,"path":"static/css/cbaf841555d169c3.css"}],"/home/runner/work/Plexus/Plexus/apps/web/app/page":[],"/home/runner/work/Plexus/Plexus/apps/web/app/settings/page":[]},"rscModuleMapping":{"169":{"*":{"id":"57579","name":"*","chunks":[],"async":false}},"214":{"*":{"id":"13592","name":"*","chunks":[],"async":false}},"572":{"*":{"id":"73422","name":"*","chunks":[],"async":false}},"589":{"*":{"id":"61437","name":"*","chunks":[],"async":false}},"671":{"*":{"id":"6413","name":"*","chunks":[],"async":false}},"887":{"*":{"id":"48465","name":"*","chunks":[],"async":false}},"1107":{"*":{"id":"60303","name":"*","chunks":[],"async":false}},"1380":{"*":{"id":"86792","name":"*","chunks":[],"async":false}},"1405":{"*":{"id":"71355","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"2183","name":"*","chunks":[],"async":false}},"3558":{"*":{"id":"99476","name":"*","chunks":[],"async":false}},"4228":{"*":{"id":"28774","name":"*","chunks":[],"async":false}},"4641":{"*":{"id":"14838","name":"*","chunks":[],"async":false}},"4757":{"*":{"id":"76155","name":"*","chunks":[],"async":false}},"5392":{"*":{"id":"98900","name":"*","chunks":[],"async":false}},"5537":{"*":{"id":"94029","name":"*","chunks":[],"async":false}},"5587":{"*":{"id":"95953","name":"*","chunks":[],"async":false}},"5718":{"*":{"id":"32594","name":"*","chunks":[],"async":false}},"6036":{"*":{"id":"44469","name":"*","chunks":[],"async":false}},"6439":{"*":{"id":"74829","name":"*","chunks":[],"async":false}},"6713":{"*":{"id":"79975","name":"*","chunks":[],"async":false}},"6944":{"*":{"id":"21971","name":"*","chunks":[],"async":false}},"7103":{"*":{"id":"73629","name":"*","chunks":[],"async":false}},"7788":{"*":{"id":"25932","name":"*","chunks":[],"async":false}},"8257":{"*":{"id":"86817","name":"*","chunks":[],"async":false}},"8287":{"*":{"id":"90317","name":"*","chunks":[],"async":false}},"8484":{"*":{"id":"42455","name":"*","chunks":[],"async":false}},"8725":{"*":{"id":"67021","name":"*","chunks":[],"async":false}},"9630":{"*":{"id":"41452","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"214":{"*":{"id":"23858","name":"*","chunks":[],"async":false}},"589":{"*":{"id":"8447","name":"*","chunks":[],"async":false}},"671":{"*":{"id":"69411","name":"*","chunks":[],"async":false}},"887":{"*":{"id":"93431","name":"*","chunks":[],"async":false}},"1380":{"*":{"id":"24194","name":"*","chunks":[],"async":false}},"3558":{"*":{"id":"50674","name":"*","chunks":[],"async":false}},"4228":{"*":{"id":"30768","name":"*","chunks":[],"async":false}},"5587":{"*":{"id":"58599","name":"*","chunks":[],"async":false}},"5718":{"*":{"id":"25696","name":"*","chunks":[],"async":false}},"9630":{"*":{"id":"78886","name":"*","chunks":[],"async":false}}}};
@@ -1,2 +1,2 @@
1
- (()=>{var a={};a.id=501,a.ids=[501],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7233:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17417:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>M,handler:()=>O,routeModule:()=>N});var d=c(80666),e=c(51421),f=c(4675),g=c(29796),h=c(54046),i=c(74928),j=c(19727),k=c(24268),l=c(60402),m=c(22040),n=c(27186),o=c(49228),p=c(97485),q=c(261),r=c(80885),s=c(7162),t=c(26713),u=c(70972),v=c(57341),w=c(95105),x=c(38038),y=c(29898),z=c(62918),A=c(98798),B=c(86439),C=c(77068),D=c(31214),E=c(35402),F=c(29059),G=c(70722),H=c(31182),I=c(43954),J=c(17891),K={};for(let a in E)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(K[a]=()=>E[a]);c.d(b,K);let L={children:["",{children:["skills",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,60374)),"/home/runner/work/Plexus/Plexus/apps/web/app/skills/page.tsx"]}]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,9834)),"/home/runner/work/Plexus/Plexus/apps/web/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,46292,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,4253,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,49184,23)),"next/dist/client/components/builtin/unauthorized.js"]},[]]}.children,M={require:c,loadChunk:()=>Promise.resolve()},N=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/skills/page",pathname:"/skills",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:L},distDir:".next",relativeProjectDir:""});async function O(a,b,d){var K,P,Q,R,S;d.requestMeta&&(0,h.setRequestMeta)(a,d.requestMeta),N.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let T=!!(0,h.getRequestMeta)(a,"minimalMode"),U="/skills/page";"/index"===U&&(U="/");let V=await N.prepare(a,b,{srcPage:U,multiZoneDraftMode:!1});if(!V)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:W,query:X,params:Y,pageIsDynamic:Z,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,serverActionsManifest:ab,clientReferenceManifest:ac,subresourceIntegrityManifest:ad,prerenderManifest:ae,isDraftMode:af,resolvedPathname:ag,revalidateOnlyGenerated:ah,routerServerContext:ai,nextConfig:aj,parsedUrl:ak,interceptionRoutePatterns:al,deploymentId:am,clientAssetToken:an}=V,ao=(0,q.normalizeAppPath)(U),{isOnDemandRevalidate:ap}=V,aq=aj.experimental.ppr&&!aj.cacheComponents&&(0,I.isInterceptionRouteAppPath)(ag)?null:N.match(ag,ae),ar=(null==aq?void 0:aq.route)??null,as=!!ae.routes[ag],at=a.headers["user-agent"]||"",au=(0,t.getBotType)(at),av=(0,p.isHtmlBotRequest)(a),aw=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ax=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],ay=(0,r.getIsPossibleServerAction)(a),az=(0,m.checkIsAppPPREnabled)(aj.experimental.ppr),aA=a.headers[x.NEXT_RESUME_STATE_LENGTH_HEADER];if(!(0,h.getRequestMeta)(a,"postponed")&&T&&az&&ay&&aA&&"string"==typeof aA){let e=parseInt(aA,10),{maxPostponedStateSize:f,maxPostponedStateSizeBytes:g}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize);if(!isNaN(e)&&e>0){if(e>g)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(f)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let i="1 MB",j=(null==(S=aj.experimental.serverActions)?void 0:S.bodySizeLimit)??i,k=e+(j!==i?c(32683).parse(j):1048576),l=await (0,D.readBodyWithSizeLimit)(a,k);if(null===l)return b.statusCode=413,b.end("Request body exceeded limit. To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;if(l.length>=e){let b=l.subarray(0,e).toString("utf8");(0,h.addRequestMeta)(a,"postponed",b);let c=l.subarray(e);(0,h.addRequestMeta)(a,"actionBody",c)}else throw Object.defineProperty(Error(`invariant: expected ${e} bytes of postponed state but only received ${l.length} bytes`),"__NEXT_ERROR_CODE",{value:"E979",enumerable:!1,configurable:!0})}}if(!(0,h.getRequestMeta)(a,"postponed")&&az&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let{maxPostponedStateSize:c,maxPostponedStateSizeBytes:e}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize),f=await (0,D.readBodyWithSizeLimit)(a,e);if(null===f)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(c)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let g=f.toString("utf8");(0,h.addRequestMeta)(a,"postponed",g)}let aB=!0===N.isDev||!0===aj.experimental.exposeTestingApiInProductionBuild,aC=aB&&("1"===a.headers[s.NEXT_INSTANT_PREFETCH_HEADER]||void 0===a.headers[s.RSC_HEADER]&&"string"==typeof a.headers.cookie&&a.headers.cookie.includes(s.NEXT_INSTANT_TEST_COOKIE+"=")),aD=(az||aC)&&((null==(K=ae.routes[ao]??ae.dynamicRoutes[ao])?void 0:K.renderingMode)==="PARTIALLY_STATIC"||aC&&(aB||(null==ai?void 0:ai.experimentalTestProxy)===!0)),aE=aC&&aD,aF=aE&&!0===N.isDev,aG=!1,aH=aD?(0,h.getRequestMeta)(a,"postponed"):void 0,aI=null==(P=ae.routes[ag])?void 0:P.prefetchDataRoute,aJ=aD&&ax&&!aw&&!aI;T&&(aJ=aJ&&!!aH);let aK=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),aL=(!au||!aD)&&(!at||(0,p.shouldServeStreamingMetadata)(at,aj.htmlLimitedBots)),aM=!!((ar||as||ae.routes[ao])&&!(au&&aD)),aN=aD&&!0===aj.cacheComponents,aO=!0===N.isDev||!aM||"string"==typeof aH||(aN&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aJ&&!T:aJ),aP=!!au&&aD,aQ=(null==ar?void 0:ar.remainingPrerenderableParams)??[],aR=(null==ar?void 0:ar.fallback)===null&&((null==(Q=ar.fallbackRootParams)?void 0:Q.length)??0)>0,aS=null;if(!af&&aM&&!aO&&!ay&&!aH&&!aJ){let a=aq?"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:aq.source:null;if(!0===aj.experimental.partialFallbacks&&a&&(null==ar?void 0:ar.fallbackRouteParams)&&!aR){if(aQ.length>0){let b,c=(b=new Map(aQ.map(a=>[a.paramName,a])),a.split("/").map(a=>{let c=(0,J.getSegmentParam)(a);if(!c)return a;let d=b.get(c.paramName);if(!d)return a;let e=null==Y?void 0:Y[d.paramName];if(!e)return a;let f=Array.isArray(e)?e.map(a=>encodeURIComponent(a)).join("/"):encodeURIComponent(e);return a.replace(function(a){let{repeat:b,optional:c}=(0,J.getParamProperties)(a.paramType);return c?`[[...${a.paramName}]]`:b?`[...${a.paramName}]`:`[${a.paramName}]`}(d),f)}).join("/")||"/");aS=c!==a?c:null}}else aS=ag}let aT=aS;!aT&&(N.isDev||aM&&Z&&(null==ar?void 0:ar.fallbackRouteParams)&&!ay)&&(aT=ag),N.isDev||af||!aM||!ax||aJ||(0,k.d)(a.headers);let aU={...E,tree:L,handler:O,routeModule:N,__next_app__:M};ab&&ac&&(0,o.setManifestsSingleton)({page:U,clientReferenceManifest:ac,serverActionsManifest:ab});let aV=a.method||"GET",aW=(0,g.getTracer)(),aX=aW.getActiveScopeSpan(),aY=!!(null==ai?void 0:ai.isWrappedByNextServer),aZ=!0===aj.experimental.partialFallbacks&&aQ.length>0?(null==ar||null==(R=ar.fallbackRouteParams)?void 0:R.filter(a=>!aQ.some(b=>b.paramName===a.paramName)))??[]:[],a$=async()=>((null==ai?void 0:ai.render404)?await ai.render404(a,b,ak,!1):b.end("This page could not be found"),null);try{let k,m=N.getVaryHeader(ag,al);b.setHeader("Vary",m);let o=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return N.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aW.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aV} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a),k&&k!==c&&(k.setAttribute("http.route",d),k.updateName(a))}else c.updateName(`${aV} ${U}`)})},p=(0,h.getRequestMeta)(a,"incrementalCache")||await N.getIncrementalCache(a,aj,ae,T);null==p||p.resetRequestCache(),globalThis.__incrementalCache=p;let q=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let k={query:X,params:Y,page:ao,sharedContext:{buildId:W,deploymentId:am,clientAssetToken:an},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aU,Component:(0,j.T)(aU),params:Y,routeModule:N,page:U,postponed:f,shouldWaitOnAllReady:aP,serveStreamingMetadata:aL,supportsDynamicResponse:"string"==typeof f||aO,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,subresourceIntegrityManifest:ad,setCacheStatus:null==ai?void 0:ai.setCacheStatus,setIsrStatus:null==ai?void 0:ai.setIsrStatus,setReactDebugChannel:null==ai?void 0:ai.setReactDebugChannel,sendErrorsToBrowser:null==ai?void 0:ai.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),N.relativeProjectDir),isDraftMode:af,botType:au,isOnDemandRevalidate:ap,isPossibleServerAction:ay,assetPrefix:aj.assetPrefix,nextConfigOutput:aj.output,crossOrigin:aj.crossOrigin,trailingSlash:aj.trailingSlash,images:aj.images,previewProps:ae.preview,enableTainting:aj.experimental.taint,htmlLimitedBots:aj.htmlLimitedBots,reactMaxHeadersLength:aj.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:p,cacheLifeProfiles:aj.cacheLife,basePath:aj.basePath,serverActions:aj.experimental.serverActions,logServerFunctions:"object"==typeof aj.logging&&!!aj.logging.serverFunctions,...aE||aF||aG?{isBuildTimePrerendering:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:aF}:{},cacheComponents:!!aj.cacheComponents,experimental:{isRoutePPREnabled:aD,expireTime:aj.expireTime,staleTimes:aj.experimental.staleTimes,dynamicOnHover:!!aj.experimental.dynamicOnHover,optimisticRouting:!!aj.experimental.optimisticRouting,inlineCss:!!aj.experimental.inlineCss,prefetchInlining:aj.experimental.prefetchInlining??!1,authInterrupts:!!aj.experimental.authInterrupts,cachedNavigations:!!aj.experimental.cachedNavigations,clientTraceMetadata:aj.experimental.clientTraceMetadata||[],clientParamParsingOrigins:aj.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,C.parseMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>N.onRequestError(a,b,d,e,ai),err:(0,h.getRequestMeta)(a,"invokeError")}};i&&(k.renderOpts.supportsDynamicResponse=!1);let l=await o(e,k),{metadata:m}=l,{cacheControl:n,headers:q={},fetchTags:r,fetchMetrics:s}=m;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,aM&&(null==n?void 0:n.revalidate)===0&&!N.isDev&&!aD){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ag}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
- see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:l,headers:q,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},r=async({hasResolved:c,previousCacheEntry:g,isRevalidating:i,span:j,forceStaticRender:k=!1})=>{let l=!1===N.isDev,m=c||b.writableEnded;try{let f;if(ap&&ah&&!g&&!T)return(null==ai?void 0:ai.render404)?await ai.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ar&&(f=(0,v.parseFallbackField)(ar.fallback)),!0===aj.experimental.partialFallbacks&&(null==ar?void 0:ar.fallback)===null&&!aR&&aQ.length>0&&(f=v.FallbackMode.PRERENDER),f===v.FallbackMode.PRERENDER&&(0,t.isBot)(at)&&(!aD||av)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==g?void 0:g.isStale)===-1&&(ap=!0),ap&&(f!==v.FallbackMode.NOT_FOUND||g)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),!T&&f!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aT&&!m&&!af&&Z&&(l||!as)){if((l||ar)&&f===v.FallbackMode.NOT_FOUND){if(aj.adapterPath)return await a$();throw new B.NoFallbackError}if(aD&&(aj.cacheComponents?!aJ:!ax)){let b=l&&"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:ao,f=(l||aE)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;aE&&f&&(0,h.addRequestMeta)(a,"fallbackParams",f);let g=await N.handleResponse({cacheKey:b,req:a,nextConfig:aj,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:ae,isRoutePPREnabled:aD,responseGenerator:async()=>q({span:j,postponed:void 0,fallbackRouteParams:f,forceStaticRender:!0}),waitUntil:d.waitUntil,isMinimalMode:T});if(null===g)return null;if(g)return T||!aD||!(aQ.length>0)||!0!==aj.experimental.partialFallbacks||!aS||!p||ap||aG||aB||aC||aw||(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(aS,p,aD,!1,a=>q({span:a.span,postponed:void 0,fallbackRouteParams:aZ.length>0?(0,n.createOpaqueFallbackRouteParams)(aZ):null,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}),delete g.cacheControl,g}}let o=ap||i||!aH?void 0:aH;if(aN&&!T&&p&&(aJ||ay)&&!k){let b=await p.get(ag,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(o=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(ag,p,aD,!1,a=>r({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if((aE||aF)&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=(l&&(0,h.getRequestMeta)(a,"renderFallbackShell")||aE&&!as)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;if((l||aE)&&aj.cacheComponents&&!as&&(null==ar?void 0:ar.fallbackRouteParams)){let b=(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams);b&&(0,h.addRequestMeta)(a,"fallbackParams",b)}return q({span:j,postponed:o,fallbackRouteParams:s,forceStaticRender:k})}catch(b){throw(null==g?void 0:g.isStale)&&await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}},D=async c=>{var f,g,i,j,k;let l,m=await N.handleResponse({cacheKey:aS,responseGenerator:a=>r({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ap,isRoutePPREnabled:aD,req:a,nextConfig:aj,prerenderManifest:ae,waitUntil:d.waitUntil,isMinimalMode:T});if(af&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),N.isDev&&b.setHeader("Cache-Control","no-cache, must-revalidate"),!m){if(aS)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ax&&!ay&&am&&b.setHeader(x.NEXT_NAV_DEPLOYMENT_ID_HEADER,am),aM&&!aJ&&(!n||aw)&&(T||b.setHeader("x-nextjs-cache",ap?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:o}=m;if(aH)l={revalidate:0,expire:void 0};else if(aJ)l={revalidate:0,expire:void 0};else if(!N.isDev)if(af)l={revalidate:0,expire:void 0};else if(aM){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??aj.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR_SECONDS,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aK&&(null==o?void 0:o.kind)===u.CachedRouteKind.APP_PAGE&&o.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=o.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];T&&aM&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=o.segmentData.get(aK);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let p=aN?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(p&&await p(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(o.headers){let a={...o.headers};for(let[c,d]of(T&&aM||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=o.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(T&&aM&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!o.status||ax&&aD||(b.statusCode=o.status),!T&&o.status&&F.RedirectStatusCode[o.status]&&ax&&(b.statusCode=200),n&&!aJ&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ax&&!af){if(void 0===o.rscData){if(o.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(aj.cacheComponents)return b.statusCode=404,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new G.InvariantError(`Expected RSC response, got ${o.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:o.html,cacheControl:m.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(o.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=o.html;if(aC&&aE){let c=!0===N.isDev?crypto.randomUUID():null;return v.pipeThrough((0,z.createInstantTestScriptInsertionTransformStream)(c)),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})}if(!n||T||ax)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:m.cacheControl});if(aE||aF)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let B=new TransformStream;return v.push(B.readable),q({span:c,postponed:o.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(B.writable)}).catch(a=>{B.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aY||!aX)return k=aW.getActiveScopeSpan(),await aW.withPropagatedContext(a.headers,()=>aW.trace(i.BaseServerSpan.handleRequest,{spanName:`${aV} ${U}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aV,"http.target":a.url}},D),void 0,!aY);await D(aX)}catch(b){throw b instanceof B.NoFallbackError||await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}}},17891:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/get-segment-param")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{"use strict";a.exports=require("process")},23772:(a,b,c)=>{"use strict";c.d(b,{Z:()=>g});var d=c(92692),e=c(45813),f=c(71277);let g=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)("div",{ref:c,className:(0,e.cn)("rounded-md border border-plexus-border bg-plexus-surface","transition-colors duration-plexus-normal ease-plexus-out",a),...b}));g.displayName="Card",(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)(g,{ref:c,className:(0,e.cn)("hover:border-plexus-border-strong hover:-translate-y-px",a),...b})).displayName="CardHover"},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32450:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},45724:(a,b,c)=>{Promise.resolve().then(c.bind(c,67139))},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57975:a=>{"use strict";a.exports=require("node:util")},59292:(a,b,c)=>{Promise.resolve().then(c.bind(c,86817))},60374:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>j,dynamic:()=>h});var d=c(2474),e=c(86817),f=c(96638),g=c(45628);let h="force-dynamic",i={en:{title:"Skills",description:"Every unique skill across your installed agents and the Plexus store. Toggle a checkbox to add or remove a skill from an agent — Plexus snapshots and symlinks for you."},zh:{title:"技能",description:"这里汇总已安装 Agent 和 Plexus store 里的所有 Skill。勾选即可把 Skill 加到 Agent 或从 Agent 移除;Plexus 会负责快照和软链接。"}};async function j(){let a=i[await (0,f.s)()],b=await (0,g.getEffectiveSkills)(),c=Object.fromEntries((0,g.detectAgents)().map(a=>[a.id,a.installed]));return(0,d.jsxs)("div",{className:"space-y-8",children:[(0,d.jsxs)("header",{children:[(0,d.jsx)("h1",{className:"plexus-display mb-2",children:a.title}),(0,d.jsx)("p",{className:"max-w-2xl text-sm leading-relaxed text-plexus-text-2",children:a.description})]}),(0,d.jsx)(e.SkillsEditor,{initial:b,agents:[...g.ALL_AGENTS],displayNames:g.AGENT_DISPLAY_NAMES,installed:c})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67139:(a,b,c)=>{"use strict";c.d(b,{SkillsEditor:()=>n});var d=c(92692),e=c(50953),f=c(73754),g=c(23772),h=c(32518),i=c(32450),j=c(72186),k=c(7233),l=c(71277);let m={"claude-code":"Claude",cursor:"Cursor",codex:"Codex","gemini-cli":"Gemini","qwen-code":"Qwen","factory-droid":"Droid"};function n({initial:a,agents:b,displayNames:c,installed:o}){let[p,q]=(0,l.useState)(a),[r,s]=(0,l.useState)(null),[t,u]=(0,l.useState)(!1),[v,w]=(0,l.useState)({id:"",name:"",description:"",body:"",layer:"personal",enabledAgents:b}),[x,y]=(0,l.useState)(null),[z,A]=(0,l.useState)("");async function B(){let a=await fetch("/api/skills/effective");q((await a.json()).rows??[])}async function C(a,b,c){if("team"!==a.authority){s(`${a.id}:${b}`);try{let d=await fetch(`/api/skills/${encodeURIComponent(a.id)}/toggle`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({agent:b,enabled:c})}),e=await d.json();e.ok||y(`Error: ${e.message}`),await B()}finally{s(null)}}}async function D(a){if("personal"===a.authority&&confirm(`Delete skill "${a.id}"?`)){s(a.id);try{await fetch(`/api/skills/${encodeURIComponent(a.id)}?layer=personal`,{method:"DELETE"}),await fetch("/api/sync",{method:"POST"}),await B()}finally{s(null)}}}async function E(){if(!v.id||!v.name)return void y("id and name are required");s("__new__");try{let a=await fetch("/api/skills",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(v)});if(!a.ok)return void y(await a.text());await fetch("/api/sync",{method:"POST"}),w({id:"",name:"",description:"",body:"",layer:"personal",enabledAgents:b}),u(!1),y(null),await B()}finally{s(null)}}let F=z?p.filter(a=>a.id.toLowerCase().includes(z.toLowerCase())||a.name.toLowerCase().includes(z.toLowerCase())):p;return(0,d.jsxs)("div",{className:"space-y-5",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,d.jsxs)("div",{className:"text-xs tracking-[0.02em] text-plexus-text-3",children:[p.length," unique skill",1===p.length?"":"s"," \xb7"," ",p.filter(a=>"personal"===a.authority).length," in personal store \xb7"," ",p.filter(a=>"native"===a.authority).length," native-only"]}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(h.A,{className:"-translate-y-1/2 absolute top-1/2 left-2.5 h-3.5 w-3.5 text-plexus-text-mute",strokeWidth:1.5}),(0,d.jsx)("input",{className:"h-8 w-52 rounded border border-plexus-border bg-plexus-surface-2 pr-3 pl-8 text-xs placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"Filter id or name…",value:z,onChange:a=>A(a.target.value)})]}),x&&(0,d.jsx)("span",{className:"text-xs text-plexus-err",children:x}),(0,d.jsxs)(f.Button,{variant:t?"ghost":"secondary",size:"sm",onClick:()=>u(!t),children:[t?(0,d.jsx)(i.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}):(0,d.jsx)(j.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),t?"Cancel":"Add Skill"]})]})]}),t&&(0,d.jsxs)(g.Z,{className:"space-y-3 border-l-[3px] border-l-plexus-accent p-4",children:[(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsx)("input",{className:"h-9 rounded border border-plexus-border bg-plexus-bg px-3 text-sm placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"id (folder-safe, e.g. code-review)",value:v.id,onChange:a=>w({...v,id:a.target.value.replace(/[^a-z0-9-_]/gi,"-")})}),(0,d.jsx)("input",{className:"h-9 rounded border border-plexus-border bg-plexus-bg px-3 text-sm placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"name (display)",value:v.name,onChange:a=>w({...v,name:a.target.value})})]}),(0,d.jsx)("input",{className:"h-9 w-full rounded border border-plexus-border bg-plexus-bg px-3 text-sm placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"description (optional)",value:v.description,onChange:a=>w({...v,description:a.target.value})}),(0,d.jsx)("textarea",{className:"h-48 w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 font-mono text-xs placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"SKILL.md body (markdown). Frontmatter is generated automatically.",value:v.body,onChange:a=>w({...v,body:a.target.value})}),(0,d.jsx)(f.Button,{variant:"primary",size:"sm",onClick:E,disabled:"__new__"===r,children:"Save and sync"})]}),(0,d.jsx)(g.Z,{className:"overflow-hidden",children:(0,d.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{className:"border-b border-plexus-border text-left text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[(0,d.jsx)("th",{className:"px-4 py-3 font-medium",children:"ID"}),(0,d.jsx)("th",{className:"px-4 py-3 font-medium",children:"Name"}),(0,d.jsx)("th",{className:"px-4 py-3 font-medium",children:"Layer"}),b.map(a=>(0,d.jsx)("th",{className:"px-2 py-3 text-center font-medium",children:c[a]??m[a]??a},a)),(0,d.jsx)("th",{className:"px-4 py-3"})]})}),(0,d.jsxs)("tbody",{children:[0===F.length&&(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:4+b.length,className:"px-4 py-10 text-center text-sm text-plexus-text-3",children:0===p.length?"No skills found in any agent or in your store.":"No skills match your filter."})}),F.map(a=>{var f;return(0,d.jsxs)("tr",{className:"border-b border-plexus-border/60 last:border-0 hover:bg-plexus-surface-2/40",children:[(0,d.jsx)("td",{className:"px-4 py-3 font-mono text-[13px] text-plexus-text",children:a.id}),(0,d.jsx)("td",{className:"px-4 py-3 text-plexus-text-2",children:a.name}),(0,d.jsx)("td",{className:"px-4 py-3",children:(0,d.jsx)(e.E,{variant:"team"===(f=a.authority)?"team":"personal"===f?"personal":"native",children:a.authority})}),b.map(b=>{let e=a.effectiveAgents.includes(b),f=r===`${a.id}:${b}`,g="team"===a.authority||!o[b];return(0,d.jsx)("td",{className:"px-2 py-3 text-center",children:(0,d.jsx)("input",{type:"checkbox",checked:e,disabled:g||f,onChange:c=>C(a,b,c.target.checked),className:"h-4 w-4 cursor-pointer accent-plexus-accent disabled:cursor-not-allowed disabled:opacity-40",title:o[b]?"":`${c[b]} not installed`})},b)}),(0,d.jsx)("td",{className:"px-4 py-3 text-right",children:"personal"===a.authority&&(0,d.jsx)("button",{type:"button",onClick:()=>D(a),disabled:r===a.id,className:"text-plexus-text-3 hover:text-plexus-err disabled:opacity-50",title:"Delete skill",children:(0,d.jsx)(k.A,{className:"h-3.5 w-3.5",strokeWidth:1.5})})})]},a.id)})]})]})}),(0,d.jsxs)(g.Z,{className:"space-y-2 px-4 py-3 text-xs leading-relaxed text-plexus-text-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(e.E,{variant:"native",children:"native"})," skills are still only in the agent's own folder. Toggling promotes them into your personal Plexus store. ",(0,d.jsx)(e.E,{variant:"team",children:"team"})," ","skills are read-only here — propose changes via PR."]}),(0,d.jsxs)("details",{children:[(0,d.jsx)("summary",{className:"cursor-pointer text-plexus-text-2 hover:text-plexus-text",children:"How does checking a box change the file system?"}),(0,d.jsxs)("div",{className:"mt-2 space-y-2 leading-relaxed",children:[(0,d.jsxs)("p",{children:["The skill folder is written into"," ",(0,d.jsx)("code",{className:"rounded bg-plexus-surface-2 px-1 py-0.5 font-mono text-[11px]",children:"~/.config/plexus/personal/skills/<id>/"})," ","(the canonical Plexus copy). Each enabled agent gets a symlink from its own skills directory to that folder, so all agents read the same SKILL.md."]}),(0,d.jsx)("p",{children:"Toggling a skill off removes the symlink from that agent only; the Plexus copy stays. Other agents still see it."}),(0,d.jsx)("p",{children:"Every toggle takes a backup snapshot first."})]})]})]})]})}},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},72186:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},79428:a=>{"use strict";a.exports=require("buffer")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86817:(a,b,c)=>{"use strict";c.d(b,{SkillsEditor:()=>d});let d=(0,c(30274).registerClientReference)(function(){throw Error("Attempted to call SkillsEditor() from the server but SkillsEditor is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/skills-editor.tsx","SkillsEditor")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[103,397,479,174,921,554],()=>b(b.s=17417));module.exports=c})();
1
+ (()=>{var a={};a.id=501,a.ids=[501],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7233:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17891:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/get-segment-param")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{"use strict";a.exports=require("process")},23772:(a,b,c)=>{"use strict";c.d(b,{Z:()=>g});var d=c(92692),e=c(45813),f=c(71277);let g=(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)("div",{ref:c,className:(0,e.cn)("rounded-md border border-plexus-border bg-plexus-surface","transition-colors duration-plexus-normal ease-plexus-out",a),...b}));g.displayName="Card",(0,f.forwardRef)(({className:a,...b},c)=>(0,d.jsx)(g,{ref:c,className:(0,e.cn)("hover:border-plexus-border-strong hover:-translate-y-px",a),...b})).displayName="CardHover"},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32450:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},45724:(a,b,c)=>{Promise.resolve().then(c.bind(c,67139))},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},57975:a=>{"use strict";a.exports=require("node:util")},59292:(a,b,c)=>{Promise.resolve().then(c.bind(c,86817))},60374:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>j,dynamic:()=>h});var d=c(2474),e=c(86817),f=c(96638),g=c(45628);let h="force-dynamic",i={en:{title:"Skills",description:"Every unique skill across your installed agents and the Plexus store. Toggle a checkbox to add or remove a skill from an agent — Plexus snapshots and symlinks for you."},zh:{title:"技能",description:"这里汇总已安装 Agent 和 Plexus store 里的所有 Skill。勾选即可把 Skill 加到 Agent 或从 Agent 移除;Plexus 会负责快照和软链接。"}};async function j(){let a=i[await (0,f.s)()],b=await (0,g.getEffectiveSkills)(),c=Object.fromEntries((0,g.detectAgents)().map(a=>[a.id,a.installed])),h=g.ALL_AGENTS.filter(a=>c[a]);return(0,d.jsxs)("div",{className:"space-y-8",children:[(0,d.jsxs)("header",{children:[(0,d.jsx)("h1",{className:"plexus-display mb-2",children:a.title}),(0,d.jsx)("p",{className:"max-w-2xl text-sm leading-relaxed text-plexus-text-2",children:a.description})]}),(0,d.jsx)(e.SkillsEditor,{initial:b,agents:h,displayNames:g.AGENT_DISPLAY_NAMES,installed:c})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67139:(a,b,c)=>{"use strict";c.d(b,{SkillsEditor:()=>n});var d=c(92692),e=c(50953),f=c(73754),g=c(23772),h=c(32518),i=c(32450),j=c(72186),k=c(7233),l=c(71277);let m={"claude-code":"Claude",cursor:"Cursor",codex:"Codex","gemini-cli":"Gemini","qwen-code":"Qwen","factory-droid":"Droid"};function n({initial:a,agents:b,displayNames:c,installed:o}){let[p,q]=(0,l.useState)(a),[r,s]=(0,l.useState)(null),[t,u]=(0,l.useState)(!1),[v,w]=(0,l.useState)({id:"",name:"",description:"",body:"",layer:"personal",enabledAgents:b}),[x,y]=(0,l.useState)(null),[z,A]=(0,l.useState)("");async function B(){let a=await fetch("/api/skills/effective");q((await a.json()).rows??[])}async function C(a,b,c){if("team"!==a.authority){s(`${a.id}:${b}`);try{let d=await fetch(`/api/skills/${encodeURIComponent(a.id)}/toggle`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({agent:b,enabled:c})}),e=await d.json();e.ok||y(`Error: ${e.message}`),await B()}finally{s(null)}}}async function D(a){if("personal"===a.authority&&confirm(`Delete skill "${a.id}"?`)){s(a.id);try{await fetch(`/api/skills/${encodeURIComponent(a.id)}?layer=personal`,{method:"DELETE"}),await fetch("/api/sync",{method:"POST"}),await B()}finally{s(null)}}}async function E(){if(!v.id||!v.name)return void y("id and name are required");s("__new__");try{let a=await fetch("/api/skills",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(v)});if(!a.ok)return void y(await a.text());await fetch("/api/sync",{method:"POST"}),w({id:"",name:"",description:"",body:"",layer:"personal",enabledAgents:b}),u(!1),y(null),await B()}finally{s(null)}}let F=z?p.filter(a=>a.id.toLowerCase().includes(z.toLowerCase())||a.name.toLowerCase().includes(z.toLowerCase())):p;return(0,d.jsxs)("div",{className:"space-y-5",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,d.jsxs)("div",{className:"text-xs tracking-[0.02em] text-plexus-text-3",children:[p.length," unique skill",1===p.length?"":"s"," \xb7"," ",p.filter(a=>"personal"===a.authority).length," in personal store \xb7"," ",p.filter(a=>"native"===a.authority).length," native-only"]}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(h.A,{className:"-translate-y-1/2 absolute top-1/2 left-2.5 h-3.5 w-3.5 text-plexus-text-mute",strokeWidth:1.5}),(0,d.jsx)("input",{className:"h-8 w-52 rounded border border-plexus-border bg-plexus-surface-2 pr-3 pl-8 text-xs placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"Filter skill…",value:z,onChange:a=>A(a.target.value)})]}),x&&(0,d.jsx)("span",{className:"text-xs text-plexus-err",children:x}),(0,d.jsxs)(f.Button,{variant:t?"ghost":"secondary",size:"sm",onClick:()=>u(!t),children:[t?(0,d.jsx)(i.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}):(0,d.jsx)(j.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),t?"Cancel":"Add Skill"]})]})]}),t&&(0,d.jsxs)(g.Z,{className:"space-y-3 border-l-[3px] border-l-plexus-accent p-4",children:[(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsx)("input",{className:"h-9 rounded border border-plexus-border bg-plexus-bg px-3 text-sm placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"id (folder-safe, e.g. code-review)",value:v.id,onChange:a=>w({...v,id:a.target.value.replace(/[^a-z0-9-_]/gi,"-")})}),(0,d.jsx)("input",{className:"h-9 rounded border border-plexus-border bg-plexus-bg px-3 text-sm placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"name (display)",value:v.name,onChange:a=>w({...v,name:a.target.value})})]}),(0,d.jsx)("input",{className:"h-9 w-full rounded border border-plexus-border bg-plexus-bg px-3 text-sm placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"description (optional)",value:v.description,onChange:a=>w({...v,description:a.target.value})}),(0,d.jsx)("textarea",{className:"h-48 w-full rounded border border-plexus-border bg-plexus-bg px-3 py-2 font-mono text-xs placeholder:text-plexus-text-mute focus:border-plexus-accent focus:outline-none",placeholder:"SKILL.md body (markdown). Frontmatter is generated automatically.",value:v.body,onChange:a=>w({...v,body:a.target.value})}),(0,d.jsx)(f.Button,{variant:"primary",size:"sm",onClick:E,disabled:"__new__"===r,children:"Save and sync"})]}),(0,d.jsx)(g.Z,{className:"overflow-x-auto",children:(0,d.jsxs)("table",{className:"w-full min-w-[920px] border-collapse text-sm",children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{className:"border-b border-plexus-border text-left text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[(0,d.jsx)("th",{className:"px-4 py-3 font-medium",children:"Skill"}),(0,d.jsx)("th",{className:"px-4 py-3 font-medium",children:"Layer"}),b.map(a=>(0,d.jsx)("th",{className:"px-2 py-3 text-center font-medium",title:c[a]??a,children:m[a]??c[a]??a},a)),(0,d.jsx)("th",{className:"sticky right-0 z-10 bg-plexus-surface px-3 py-3 text-center font-medium shadow-[-10px_0_14px_-14px_rgb(0_0_0/0.45)]",children:"Action"})]})}),(0,d.jsxs)("tbody",{children:[0===F.length&&(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:3+b.length,className:"px-4 py-10 text-center text-sm text-plexus-text-3",children:0===p.length?"No skills found in any agent or in your store.":"No skills match your filter."})}),F.map(a=>{var g;let h=a.name!==a.id;return(0,d.jsxs)("tr",{className:"group border-b border-plexus-border/60 last:border-0 hover:bg-plexus-surface-2/40",children:[(0,d.jsxs)("td",{className:"min-w-[260px] px-4 py-3",children:[(0,d.jsx)("div",{className:h?"truncate text-sm font-medium text-plexus-text":"truncate font-mono text-[13px] text-plexus-text",title:a.name,children:a.name}),h&&(0,d.jsx)("code",{className:"mt-1 block truncate font-mono text-xs text-plexus-text-3",children:a.id})]}),(0,d.jsx)("td",{className:"px-4 py-3",children:(0,d.jsx)(e.E,{variant:"team"===(g=a.authority)?"team":"personal"===g?"personal":"native",children:a.authority})}),b.map(b=>{let e=a.effectiveAgents.includes(b),f=r===`${a.id}:${b}`,g="team"===a.authority||!o[b];return(0,d.jsx)("td",{className:"px-2 py-3 text-center",children:(0,d.jsx)("input",{type:"checkbox",checked:e,disabled:g||f,onChange:c=>C(a,b,c.target.checked),className:"h-4 w-4 cursor-pointer accent-plexus-accent disabled:cursor-not-allowed disabled:opacity-40",title:o[b]?"":`${c[b]} not installed`})},b)}),(0,d.jsx)("td",{className:"sticky right-0 z-10 bg-plexus-surface px-3 py-3 text-center shadow-[-10px_0_14px_-14px_rgb(0_0_0/0.45)] group-hover:bg-plexus-surface-2",children:"personal"===a.authority&&(0,d.jsx)(f.Button,{variant:"danger",size:"icon",className:"h-7 w-7",onClick:()=>D(a),disabled:r===a.id,title:"Delete skill","aria-label":`Delete skill ${a.id}`,children:(0,d.jsx)(k.A,{className:"h-3.5 w-3.5",strokeWidth:1.5})})})]},a.id)})]})]})}),(0,d.jsxs)(g.Z,{className:"space-y-2 px-4 py-3 text-xs leading-relaxed text-plexus-text-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(e.E,{variant:"native",children:"native"})," skills are still only in the agent's own folder. Toggling promotes them into your personal Plexus store. ",(0,d.jsx)(e.E,{variant:"team",children:"team"})," ","skills are read-only here — propose changes via PR."]}),(0,d.jsxs)("details",{children:[(0,d.jsx)("summary",{className:"cursor-pointer text-plexus-text-2 hover:text-plexus-text",children:"How does checking a box change the file system?"}),(0,d.jsxs)("div",{className:"mt-2 space-y-2 leading-relaxed",children:[(0,d.jsxs)("p",{children:["The skill folder is written into"," ",(0,d.jsx)("code",{className:"rounded bg-plexus-surface-2 px-1 py-0.5 font-mono text-[11px]",children:"~/.config/plexus/personal/skills/<id>/"})," ","(the canonical Plexus copy). Each enabled agent gets a symlink from its own skills directory to that folder, so all agents read the same SKILL.md."]}),(0,d.jsx)("p",{children:"Toggling a skill off removes the symlink from that agent only; the Plexus copy stays. Other agents still see it."}),(0,d.jsx)("p",{children:"Every toggle takes a backup snapshot first."})]})]})]})]})}},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},72186:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},79428:a=>{"use strict";a.exports=require("buffer")},83199:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>M,handler:()=>O,routeModule:()=>N});var d=c(80666),e=c(51421),f=c(4675),g=c(29796),h=c(54046),i=c(74928),j=c(19727),k=c(24268),l=c(60402),m=c(22040),n=c(27186),o=c(49228),p=c(97485),q=c(261),r=c(80885),s=c(7162),t=c(26713),u=c(70972),v=c(57341),w=c(95105),x=c(38038),y=c(29898),z=c(62918),A=c(98798),B=c(86439),C=c(77068),D=c(31214),E=c(35402),F=c(29059),G=c(70722),H=c(31182),I=c(43954),J=c(17891),K={};for(let a in E)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(K[a]=()=>E[a]);c.d(b,K);let L={children:["",{children:["skills",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,60374)),"/home/runner/work/Plexus/Plexus/apps/web/app/skills/page.tsx"]}]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,9834)),"/home/runner/work/Plexus/Plexus/apps/web/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,32594,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,46292,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,4253,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,49184,23)),"next/dist/client/components/builtin/unauthorized.js"]},[]]}.children,M={require:c,loadChunk:()=>Promise.resolve()},N=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/skills/page",pathname:"/skills",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:L},distDir:".next",relativeProjectDir:""});async function O(a,b,d){var K,P,Q,R,S;d.requestMeta&&(0,h.setRequestMeta)(a,d.requestMeta),N.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let T=!!(0,h.getRequestMeta)(a,"minimalMode"),U="/skills/page";"/index"===U&&(U="/");let V=await N.prepare(a,b,{srcPage:U,multiZoneDraftMode:!1});if(!V)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:W,query:X,params:Y,pageIsDynamic:Z,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,serverActionsManifest:ab,clientReferenceManifest:ac,subresourceIntegrityManifest:ad,prerenderManifest:ae,isDraftMode:af,resolvedPathname:ag,revalidateOnlyGenerated:ah,routerServerContext:ai,nextConfig:aj,parsedUrl:ak,interceptionRoutePatterns:al,deploymentId:am,clientAssetToken:an}=V,ao=(0,q.normalizeAppPath)(U),{isOnDemandRevalidate:ap}=V,aq=aj.experimental.ppr&&!aj.cacheComponents&&(0,I.isInterceptionRouteAppPath)(ag)?null:N.match(ag,ae),ar=(null==aq?void 0:aq.route)??null,as=!!ae.routes[ag],at=a.headers["user-agent"]||"",au=(0,t.getBotType)(at),av=(0,p.isHtmlBotRequest)(a),aw=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ax=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],ay=(0,r.getIsPossibleServerAction)(a),az=(0,m.checkIsAppPPREnabled)(aj.experimental.ppr),aA=a.headers[x.NEXT_RESUME_STATE_LENGTH_HEADER];if(!(0,h.getRequestMeta)(a,"postponed")&&T&&az&&ay&&aA&&"string"==typeof aA){let e=parseInt(aA,10),{maxPostponedStateSize:f,maxPostponedStateSizeBytes:g}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize);if(!isNaN(e)&&e>0){if(e>g)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(f)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let i="1 MB",j=(null==(S=aj.experimental.serverActions)?void 0:S.bodySizeLimit)??i,k=e+(j!==i?c(32683).parse(j):1048576),l=await (0,D.readBodyWithSizeLimit)(a,k);if(null===l)return b.statusCode=413,b.end("Request body exceeded limit. To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;if(l.length>=e){let b=l.subarray(0,e).toString("utf8");(0,h.addRequestMeta)(a,"postponed",b);let c=l.subarray(e);(0,h.addRequestMeta)(a,"actionBody",c)}else throw Object.defineProperty(Error(`invariant: expected ${e} bytes of postponed state but only received ${l.length} bytes`),"__NEXT_ERROR_CODE",{value:"E979",enumerable:!1,configurable:!0})}}if(!(0,h.getRequestMeta)(a,"postponed")&&az&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let{maxPostponedStateSize:c,maxPostponedStateSizeBytes:e}=(0,D.getMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize),f=await (0,D.readBodyWithSizeLimit)(a,e);if(null===f)return b.statusCode=413,b.end((0,D.getPostponedStateExceededErrorMessage)(c)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let g=f.toString("utf8");(0,h.addRequestMeta)(a,"postponed",g)}let aB=!0===N.isDev||!0===aj.experimental.exposeTestingApiInProductionBuild,aC=aB&&("1"===a.headers[s.NEXT_INSTANT_PREFETCH_HEADER]||void 0===a.headers[s.RSC_HEADER]&&"string"==typeof a.headers.cookie&&a.headers.cookie.includes(s.NEXT_INSTANT_TEST_COOKIE+"=")),aD=(az||aC)&&((null==(K=ae.routes[ao]??ae.dynamicRoutes[ao])?void 0:K.renderingMode)==="PARTIALLY_STATIC"||aC&&(aB||(null==ai?void 0:ai.experimentalTestProxy)===!0)),aE=aC&&aD,aF=aE&&!0===N.isDev,aG=!1,aH=aD?(0,h.getRequestMeta)(a,"postponed"):void 0,aI=null==(P=ae.routes[ag])?void 0:P.prefetchDataRoute,aJ=aD&&ax&&!aw&&!aI;T&&(aJ=aJ&&!!aH);let aK=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),aL=(!au||!aD)&&(!at||(0,p.shouldServeStreamingMetadata)(at,aj.htmlLimitedBots)),aM=!!((ar||as||ae.routes[ao])&&!(au&&aD)),aN=aD&&!0===aj.cacheComponents,aO=!0===N.isDev||!aM||"string"==typeof aH||(aN&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aJ&&!T:aJ),aP=!!au&&aD,aQ=(null==ar?void 0:ar.remainingPrerenderableParams)??[],aR=(null==ar?void 0:ar.fallback)===null&&((null==(Q=ar.fallbackRootParams)?void 0:Q.length)??0)>0,aS=null;if(!af&&aM&&!aO&&!ay&&!aH&&!aJ){let a=aq?"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:aq.source:null;if(!0===aj.experimental.partialFallbacks&&a&&(null==ar?void 0:ar.fallbackRouteParams)&&!aR){if(aQ.length>0){let b,c=(b=new Map(aQ.map(a=>[a.paramName,a])),a.split("/").map(a=>{let c=(0,J.getSegmentParam)(a);if(!c)return a;let d=b.get(c.paramName);if(!d)return a;let e=null==Y?void 0:Y[d.paramName];if(!e)return a;let f=Array.isArray(e)?e.map(a=>encodeURIComponent(a)).join("/"):encodeURIComponent(e);return a.replace(function(a){let{repeat:b,optional:c}=(0,J.getParamProperties)(a.paramType);return c?`[[...${a.paramName}]]`:b?`[...${a.paramName}]`:`[${a.paramName}]`}(d),f)}).join("/")||"/");aS=c!==a?c:null}}else aS=ag}let aT=aS;!aT&&(N.isDev||aM&&Z&&(null==ar?void 0:ar.fallbackRouteParams)&&!ay)&&(aT=ag),N.isDev||af||!aM||!ax||aJ||(0,k.d)(a.headers);let aU={...E,tree:L,handler:O,routeModule:N,__next_app__:M};ab&&ac&&(0,o.setManifestsSingleton)({page:U,clientReferenceManifest:ac,serverActionsManifest:ab});let aV=a.method||"GET",aW=(0,g.getTracer)(),aX=aW.getActiveScopeSpan(),aY=!!(null==ai?void 0:ai.isWrappedByNextServer),aZ=!0===aj.experimental.partialFallbacks&&aQ.length>0?(null==ar||null==(R=ar.fallbackRouteParams)?void 0:R.filter(a=>!aQ.some(b=>b.paramName===a.paramName)))??[]:[],a$=async()=>((null==ai?void 0:ai.render404)?await ai.render404(a,b,ak,!1):b.end("This page could not be found"),null);try{let k,m=N.getVaryHeader(ag,al);b.setHeader("Vary",m);let o=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return N.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aW.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aV} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a),k&&k!==c&&(k.setAttribute("http.route",d),k.updateName(a))}else c.updateName(`${aV} ${U}`)})},p=(0,h.getRequestMeta)(a,"incrementalCache")||await N.getIncrementalCache(a,aj,ae,T);null==p||p.resetRequestCache(),globalThis.__incrementalCache=p;let q=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let k={query:X,params:Y,page:ao,sharedContext:{buildId:W,deploymentId:am,clientAssetToken:an},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aU,Component:(0,j.T)(aU),params:Y,routeModule:N,page:U,postponed:f,shouldWaitOnAllReady:aP,serveStreamingMetadata:aL,supportsDynamicResponse:"string"==typeof f||aO,buildManifest:$,nextFontManifest:_,reactLoadableManifest:aa,subresourceIntegrityManifest:ad,setCacheStatus:null==ai?void 0:ai.setCacheStatus,setIsrStatus:null==ai?void 0:ai.setIsrStatus,setReactDebugChannel:null==ai?void 0:ai.setReactDebugChannel,sendErrorsToBrowser:null==ai?void 0:ai.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),N.relativeProjectDir),isDraftMode:af,botType:au,isOnDemandRevalidate:ap,isPossibleServerAction:ay,assetPrefix:aj.assetPrefix,nextConfigOutput:aj.output,crossOrigin:aj.crossOrigin,trailingSlash:aj.trailingSlash,images:aj.images,previewProps:ae.preview,enableTainting:aj.experimental.taint,htmlLimitedBots:aj.htmlLimitedBots,reactMaxHeadersLength:aj.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:p,cacheLifeProfiles:aj.cacheLife,basePath:aj.basePath,serverActions:aj.experimental.serverActions,logServerFunctions:"object"==typeof aj.logging&&!!aj.logging.serverFunctions,...aE||aF||aG?{isBuildTimePrerendering:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:aF}:{},cacheComponents:!!aj.cacheComponents,experimental:{isRoutePPREnabled:aD,expireTime:aj.expireTime,staleTimes:aj.experimental.staleTimes,dynamicOnHover:!!aj.experimental.dynamicOnHover,optimisticRouting:!!aj.experimental.optimisticRouting,inlineCss:!!aj.experimental.inlineCss,prefetchInlining:aj.experimental.prefetchInlining??!1,authInterrupts:!!aj.experimental.authInterrupts,cachedNavigations:!!aj.experimental.cachedNavigations,clientTraceMetadata:aj.experimental.clientTraceMetadata||[],clientParamParsingOrigins:aj.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,C.parseMaxPostponedStateSize)(aj.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>N.onRequestError(a,b,d,e,ai),err:(0,h.getRequestMeta)(a,"invokeError")}};i&&(k.renderOpts.supportsDynamicResponse=!1);let l=await o(e,k),{metadata:m}=l,{cacheControl:n,headers:q={},fetchTags:r,fetchMetrics:s}=m;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,aM&&(null==n?void 0:n.revalidate)===0&&!N.isDev&&!aD){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ag}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
+ see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:l,headers:q,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},r=async({hasResolved:c,previousCacheEntry:g,isRevalidating:i,span:j,forceStaticRender:k=!1})=>{let l=!1===N.isDev,m=c||b.writableEnded;try{let f;if(ap&&ah&&!g&&!T)return(null==ai?void 0:ai.render404)?await ai.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ar&&(f=(0,v.parseFallbackField)(ar.fallback)),!0===aj.experimental.partialFallbacks&&(null==ar?void 0:ar.fallback)===null&&!aR&&aQ.length>0&&(f=v.FallbackMode.PRERENDER),f===v.FallbackMode.PRERENDER&&(0,t.isBot)(at)&&(!aD||av)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==g?void 0:g.isStale)===-1&&(ap=!0),ap&&(f!==v.FallbackMode.NOT_FOUND||g)&&(f=v.FallbackMode.BLOCKING_STATIC_RENDER),!T&&f!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aT&&!m&&!af&&Z&&(l||!as)){if((l||ar)&&f===v.FallbackMode.NOT_FOUND){if(aj.adapterPath)return await a$();throw new B.NoFallbackError}if(aD&&(aj.cacheComponents?!aJ:!ax)){let b=l&&"string"==typeof(null==ar?void 0:ar.fallback)?ar.fallback:ao,f=(l||aE)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;aE&&f&&(0,h.addRequestMeta)(a,"fallbackParams",f);let g=await N.handleResponse({cacheKey:b,req:a,nextConfig:aj,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:ae,isRoutePPREnabled:aD,responseGenerator:async()=>q({span:j,postponed:void 0,fallbackRouteParams:f,forceStaticRender:!0}),waitUntil:d.waitUntil,isMinimalMode:T});if(null===g)return null;if(g)return T||!aD||!(aQ.length>0)||!0!==aj.experimental.partialFallbacks||!aS||!p||ap||aG||aB||aC||aw||(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(aS,p,aD,!1,a=>q({span:a.span,postponed:void 0,fallbackRouteParams:aZ.length>0?(0,n.createOpaqueFallbackRouteParams)(aZ):null,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}),delete g.cacheControl,g}}let o=ap||i||!aH?void 0:aH;if(aN&&!T&&p&&(aJ||ay)&&!k){let b=await p.get(ag,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(o=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,H.scheduleOnNextTick)(async()=>{let b=N.getResponseCache(a);try{await b.revalidate(ag,p,aD,!1,a=>r({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if((aE||aF)&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=(l&&(0,h.getRequestMeta)(a,"renderFallbackShell")||aE&&!as)&&(null==ar?void 0:ar.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams):aG?(0,n.getFallbackRouteParams)(ao,N):null;if((l||aE)&&aj.cacheComponents&&!as&&(null==ar?void 0:ar.fallbackRouteParams)){let b=(0,n.createOpaqueFallbackRouteParams)(ar.fallbackRouteParams);b&&(0,h.addRequestMeta)(a,"fallbackParams",b)}return q({span:j,postponed:o,fallbackRouteParams:s,forceStaticRender:k})}catch(b){throw(null==g?void 0:g.isStale)&&await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}},D=async c=>{var f,g,i,j,k;let l,m=await N.handleResponse({cacheKey:aS,responseGenerator:a=>r({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ap,isRoutePPREnabled:aD,req:a,nextConfig:aj,prerenderManifest:ae,waitUntil:d.waitUntil,isMinimalMode:T});if(af&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),N.isDev&&b.setHeader("Cache-Control","no-cache, must-revalidate"),!m){if(aS)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;ax&&!ay&&am&&b.setHeader(x.NEXT_NAV_DEPLOYMENT_ID_HEADER,am),aM&&!aJ&&(!n||aw)&&(T||b.setHeader("x-nextjs-cache",ap?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:o}=m;if(aH)l={revalidate:0,expire:void 0};else if(aJ)l={revalidate:0,expire:void 0};else if(!N.isDev)if(af)l={revalidate:0,expire:void 0};else if(aM){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??aj.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR_SECONDS,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof aK&&(null==o?void 0:o.kind)===u.CachedRouteKind.APP_PAGE&&o.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=o.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];T&&aM&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=o.segmentData.get(aK);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let p=aN?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(p&&await p(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(o.headers){let a={...o.headers};for(let[c,d]of(T&&aM||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=o.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(T&&aM&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!o.status||ax&&aD||(b.statusCode=o.status),!T&&o.status&&F.RedirectStatusCode[o.status]&&ax&&(b.statusCode=200),n&&!aJ&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ax&&!af){if(void 0===o.rscData){if(o.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(aj.cacheComponents)return b.statusCode=404,(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new G.InvariantError(`Expected RSC response, got ${o.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:o.html,cacheControl:m.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:w.default.fromStatic(o.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=o.html;if(aC&&aE){let c=!0===N.isDev?crypto.randomUUID():null;return v.pipeThrough((0,z.createInstantTestScriptInsertionTransformStream)(c)),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})}if(!n||T||ax)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:m.cacheControl});if(aE||aF)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let B=new TransformStream;return v.push(B.readable),q({span:c,postponed:o.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(B.writable)}).catch(a=>{B.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:aj.generateEtags,poweredByHeader:aj.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aY||!aX)return k=aW.getActiveScopeSpan(),await aW.withPropagatedContext(a.headers,()=>aW.trace(i.BaseServerSpan.handleRequest,{spanName:`${aV} ${U}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aV,"http.target":a.url}},D),void 0,!aY);await D(aX)}catch(b){throw b instanceof B.NoFallbackError||await N.onRequestError(a,b,{routerKind:"App Router",routePath:U,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aM,isOnDemandRevalidate:ap})},!1,ai),b}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86817:(a,b,c)=>{"use strict";c.d(b,{SkillsEditor:()=>d});let d=(0,c(30274).registerClientReference)(function(){throw Error("Attempted to call SkillsEditor() from the server but SkillsEditor is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Plexus/Plexus/apps/web/components/skills-editor.tsx","SkillsEditor")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[103,397,479,174,921,554],()=>b(b.s=83199));module.exports=c})();