plexus-agent-config 0.0.1

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 (351) hide show
  1. package/dist/bin.d.ts +3 -0
  2. package/dist/bin.d.ts.map +1 -0
  3. package/dist/bin.js +175 -0
  4. package/dist/bin.js.map +1 -0
  5. package/node_modules/plexus-agent-config-core/dist/agents/adapters/base.d.ts +38 -0
  6. package/node_modules/plexus-agent-config-core/dist/agents/adapters/base.d.ts.map +1 -0
  7. package/node_modules/plexus-agent-config-core/dist/agents/adapters/base.js +125 -0
  8. package/node_modules/plexus-agent-config-core/dist/agents/adapters/base.js.map +1 -0
  9. package/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.d.ts +9 -0
  10. package/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.d.ts.map +1 -0
  11. package/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.js +96 -0
  12. package/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.js.map +1 -0
  13. package/node_modules/plexus-agent-config-core/dist/agents/adapters/index.d.ts +8 -0
  14. package/node_modules/plexus-agent-config-core/dist/agents/adapters/index.d.ts.map +1 -0
  15. package/node_modules/plexus-agent-config-core/dist/agents/adapters/index.js +12 -0
  16. package/node_modules/plexus-agent-config-core/dist/agents/adapters/index.js.map +1 -0
  17. package/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.d.ts +25 -0
  18. package/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.d.ts.map +1 -0
  19. package/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.js +182 -0
  20. package/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.js.map +1 -0
  21. package/node_modules/plexus-agent-config-core/dist/agents/catalog.d.ts +15 -0
  22. package/node_modules/plexus-agent-config-core/dist/agents/catalog.d.ts.map +1 -0
  23. package/node_modules/plexus-agent-config-core/dist/agents/catalog.js +153 -0
  24. package/node_modules/plexus-agent-config-core/dist/agents/catalog.js.map +1 -0
  25. package/node_modules/plexus-agent-config-core/dist/agents/detect.d.ts +14 -0
  26. package/node_modules/plexus-agent-config-core/dist/agents/detect.d.ts.map +1 -0
  27. package/node_modules/plexus-agent-config-core/dist/agents/detect.js +92 -0
  28. package/node_modules/plexus-agent-config-core/dist/agents/detect.js.map +1 -0
  29. package/node_modules/plexus-agent-config-core/dist/agents/index.d.ts +5 -0
  30. package/node_modules/plexus-agent-config-core/dist/agents/index.d.ts.map +1 -0
  31. package/node_modules/plexus-agent-config-core/dist/agents/index.js +5 -0
  32. package/node_modules/plexus-agent-config-core/dist/agents/index.js.map +1 -0
  33. package/node_modules/plexus-agent-config-core/dist/agents/inspect.d.ts +74 -0
  34. package/node_modules/plexus-agent-config-core/dist/agents/inspect.d.ts.map +1 -0
  35. package/node_modules/plexus-agent-config-core/dist/agents/inspect.js +169 -0
  36. package/node_modules/plexus-agent-config-core/dist/agents/inspect.js.map +1 -0
  37. package/node_modules/plexus-agent-config-core/dist/backup/index.d.ts +70 -0
  38. package/node_modules/plexus-agent-config-core/dist/backup/index.d.ts.map +1 -0
  39. package/node_modules/plexus-agent-config-core/dist/backup/index.js +258 -0
  40. package/node_modules/plexus-agent-config-core/dist/backup/index.js.map +1 -0
  41. package/node_modules/plexus-agent-config-core/dist/debug/index.d.ts +71 -0
  42. package/node_modules/plexus-agent-config-core/dist/debug/index.d.ts.map +1 -0
  43. package/node_modules/plexus-agent-config-core/dist/debug/index.js +263 -0
  44. package/node_modules/plexus-agent-config-core/dist/debug/index.js.map +1 -0
  45. package/node_modules/plexus-agent-config-core/dist/effective/index.d.ts +65 -0
  46. package/node_modules/plexus-agent-config-core/dist/effective/index.d.ts.map +1 -0
  47. package/node_modules/plexus-agent-config-core/dist/effective/index.js +227 -0
  48. package/node_modules/plexus-agent-config-core/dist/effective/index.js.map +1 -0
  49. package/node_modules/plexus-agent-config-core/dist/import/from-agents.d.ts +59 -0
  50. package/node_modules/plexus-agent-config-core/dist/import/from-agents.d.ts.map +1 -0
  51. package/node_modules/plexus-agent-config-core/dist/import/from-agents.js +212 -0
  52. package/node_modules/plexus-agent-config-core/dist/import/from-agents.js.map +1 -0
  53. package/node_modules/plexus-agent-config-core/dist/import/index.d.ts +26 -0
  54. package/node_modules/plexus-agent-config-core/dist/import/index.d.ts.map +1 -0
  55. package/node_modules/plexus-agent-config-core/dist/import/index.js +100 -0
  56. package/node_modules/plexus-agent-config-core/dist/import/index.js.map +1 -0
  57. package/node_modules/plexus-agent-config-core/dist/index.d.ts +12 -0
  58. package/node_modules/plexus-agent-config-core/dist/index.d.ts.map +1 -0
  59. package/node_modules/plexus-agent-config-core/dist/index.js +12 -0
  60. package/node_modules/plexus-agent-config-core/dist/index.js.map +1 -0
  61. package/node_modules/plexus-agent-config-core/dist/rules/index.d.ts +6 -0
  62. package/node_modules/plexus-agent-config-core/dist/rules/index.d.ts.map +1 -0
  63. package/node_modules/plexus-agent-config-core/dist/rules/index.js +292 -0
  64. package/node_modules/plexus-agent-config-core/dist/rules/index.js.map +1 -0
  65. package/node_modules/plexus-agent-config-core/dist/spread/index.d.ts +38 -0
  66. package/node_modules/plexus-agent-config-core/dist/spread/index.d.ts.map +1 -0
  67. package/node_modules/plexus-agent-config-core/dist/spread/index.js +190 -0
  68. package/node_modules/plexus-agent-config-core/dist/spread/index.js.map +1 -0
  69. package/node_modules/plexus-agent-config-core/dist/store/config.d.ts +5 -0
  70. package/node_modules/plexus-agent-config-core/dist/store/config.d.ts.map +1 -0
  71. package/node_modules/plexus-agent-config-core/dist/store/config.js +62 -0
  72. package/node_modules/plexus-agent-config-core/dist/store/config.js.map +1 -0
  73. package/node_modules/plexus-agent-config-core/dist/store/custom-agents.d.ts +45 -0
  74. package/node_modules/plexus-agent-config-core/dist/store/custom-agents.d.ts.map +1 -0
  75. package/node_modules/plexus-agent-config-core/dist/store/custom-agents.js +103 -0
  76. package/node_modules/plexus-agent-config-core/dist/store/custom-agents.js.map +1 -0
  77. package/node_modules/plexus-agent-config-core/dist/store/fs-utils.d.ts +16 -0
  78. package/node_modules/plexus-agent-config-core/dist/store/fs-utils.d.ts.map +1 -0
  79. package/node_modules/plexus-agent-config-core/dist/store/fs-utils.js +45 -0
  80. package/node_modules/plexus-agent-config-core/dist/store/fs-utils.js.map +1 -0
  81. package/node_modules/plexus-agent-config-core/dist/store/index.d.ts +9 -0
  82. package/node_modules/plexus-agent-config-core/dist/store/index.d.ts.map +1 -0
  83. package/node_modules/plexus-agent-config-core/dist/store/index.js +9 -0
  84. package/node_modules/plexus-agent-config-core/dist/store/index.js.map +1 -0
  85. package/node_modules/plexus-agent-config-core/dist/store/mcp.d.ts +5 -0
  86. package/node_modules/plexus-agent-config-core/dist/store/mcp.d.ts.map +1 -0
  87. package/node_modules/plexus-agent-config-core/dist/store/mcp.js +30 -0
  88. package/node_modules/plexus-agent-config-core/dist/store/mcp.js.map +1 -0
  89. package/node_modules/plexus-agent-config-core/dist/store/merge.d.ts +15 -0
  90. package/node_modules/plexus-agent-config-core/dist/store/merge.d.ts.map +1 -0
  91. package/node_modules/plexus-agent-config-core/dist/store/merge.js +28 -0
  92. package/node_modules/plexus-agent-config-core/dist/store/merge.js.map +1 -0
  93. package/node_modules/plexus-agent-config-core/dist/store/paths.d.ts +22 -0
  94. package/node_modules/plexus-agent-config-core/dist/store/paths.d.ts.map +1 -0
  95. package/node_modules/plexus-agent-config-core/dist/store/paths.js +107 -0
  96. package/node_modules/plexus-agent-config-core/dist/store/paths.js.map +1 -0
  97. package/node_modules/plexus-agent-config-core/dist/store/rules.d.ts +12 -0
  98. package/node_modules/plexus-agent-config-core/dist/store/rules.d.ts.map +1 -0
  99. package/node_modules/plexus-agent-config-core/dist/store/rules.js +32 -0
  100. package/node_modules/plexus-agent-config-core/dist/store/rules.js.map +1 -0
  101. package/node_modules/plexus-agent-config-core/dist/store/scaffolding.d.ts +11 -0
  102. package/node_modules/plexus-agent-config-core/dist/store/scaffolding.d.ts.map +1 -0
  103. package/node_modules/plexus-agent-config-core/dist/store/scaffolding.js +32 -0
  104. package/node_modules/plexus-agent-config-core/dist/store/scaffolding.js.map +1 -0
  105. package/node_modules/plexus-agent-config-core/dist/store/skills.d.ts +13 -0
  106. package/node_modules/plexus-agent-config-core/dist/store/skills.d.ts.map +1 -0
  107. package/node_modules/plexus-agent-config-core/dist/store/skills.js +84 -0
  108. package/node_modules/plexus-agent-config-core/dist/store/skills.js.map +1 -0
  109. package/node_modules/plexus-agent-config-core/dist/sync/index.d.ts +89 -0
  110. package/node_modules/plexus-agent-config-core/dist/sync/index.d.ts.map +1 -0
  111. package/node_modules/plexus-agent-config-core/dist/sync/index.js +423 -0
  112. package/node_modules/plexus-agent-config-core/dist/sync/index.js.map +1 -0
  113. package/node_modules/plexus-agent-config-core/dist/team/git.d.ts +23 -0
  114. package/node_modules/plexus-agent-config-core/dist/team/git.d.ts.map +1 -0
  115. package/node_modules/plexus-agent-config-core/dist/team/git.js +132 -0
  116. package/node_modules/plexus-agent-config-core/dist/team/git.js.map +1 -0
  117. package/node_modules/plexus-agent-config-core/dist/team/index.d.ts +2 -0
  118. package/node_modules/plexus-agent-config-core/dist/team/index.d.ts.map +1 -0
  119. package/node_modules/plexus-agent-config-core/dist/team/index.js +2 -0
  120. package/node_modules/plexus-agent-config-core/dist/team/index.js.map +1 -0
  121. package/node_modules/plexus-agent-config-core/dist/types.d.ts +142 -0
  122. package/node_modules/plexus-agent-config-core/dist/types.d.ts.map +1 -0
  123. package/node_modules/plexus-agent-config-core/dist/types.js +13 -0
  124. package/node_modules/plexus-agent-config-core/dist/types.js.map +1 -0
  125. package/node_modules/plexus-agent-config-core/package.json +29 -0
  126. package/node_modules/plexus-agent-config-web/.next/BUILD_ID +1 -0
  127. package/node_modules/plexus-agent-config-web/.next/app-path-routes-manifest.json +39 -0
  128. package/node_modules/plexus-agent-config-web/.next/build-manifest.json +20 -0
  129. package/node_modules/plexus-agent-config-web/.next/export-marker.json +6 -0
  130. package/node_modules/plexus-agent-config-web/.next/images-manifest.json +68 -0
  131. package/node_modules/plexus-agent-config-web/.next/next-minimal-server.js.nft.json +1 -0
  132. package/node_modules/plexus-agent-config-web/.next/next-server.js.nft.json +1 -0
  133. package/node_modules/plexus-agent-config-web/.next/package.json +1 -0
  134. package/node_modules/plexus-agent-config-web/.next/prerender-manifest.json +36 -0
  135. package/node_modules/plexus-agent-config-web/.next/react-loadable-manifest.json +1 -0
  136. package/node_modules/plexus-agent-config-web/.next/required-server-files.js +337 -0
  137. package/node_modules/plexus-agent-config-web/.next/required-server-files.json +337 -0
  138. package/node_modules/plexus-agent-config-web/.next/routes-manifest.json +286 -0
  139. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error/page.js +32 -0
  140. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error/page.js.nft.json +1 -0
  141. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  142. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.html +1 -0
  143. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.meta +16 -0
  144. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.rsc +14 -0
  145. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  146. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
  147. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
  148. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  149. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  150. package/node_modules/plexus-agent-config-web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  151. package/node_modules/plexus-agent-config-web/.next/server/app/_not-found/page.js +2 -0
  152. package/node_modules/plexus-agent-config-web/.next/server/app/_not-found/page.js.nft.json +1 -0
  153. package/node_modules/plexus-agent-config-web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  154. package/node_modules/plexus-agent-config-web/.next/server/app/about/page.js +2 -0
  155. package/node_modules/plexus-agent-config-web/.next/server/app/about/page.js.nft.json +1 -0
  156. package/node_modules/plexus-agent-config-web/.next/server/app/about/page_client-reference-manifest.js +1 -0
  157. package/node_modules/plexus-agent-config-web/.next/server/app/agents/[id]/page.js +2 -0
  158. package/node_modules/plexus-agent-config-web/.next/server/app/agents/[id]/page.js.nft.json +1 -0
  159. package/node_modules/plexus-agent-config-web/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -0
  160. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent/[id]/file/route.js +1 -0
  161. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent/[id]/file/route.js.nft.json +1 -0
  162. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent/[id]/file/route_client-reference-manifest.js +1 -0
  163. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent/[id]/route.js +1 -0
  164. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent/[id]/route.js.nft.json +1 -0
  165. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
  166. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent-catalog/route.js +1 -0
  167. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent-catalog/route.js.nft.json +1 -0
  168. package/node_modules/plexus-agent-config-web/.next/server/app/api/agent-catalog/route_client-reference-manifest.js +1 -0
  169. package/node_modules/plexus-agent-config-web/.next/server/app/api/agents/route.js +1 -0
  170. package/node_modules/plexus-agent-config-web/.next/server/app/api/agents/route.js.nft.json +1 -0
  171. package/node_modules/plexus-agent-config-web/.next/server/app/api/agents/route_client-reference-manifest.js +1 -0
  172. package/node_modules/plexus-agent-config-web/.next/server/app/api/backups/[id]/restore/route.js +1 -0
  173. package/node_modules/plexus-agent-config-web/.next/server/app/api/backups/[id]/restore/route.js.nft.json +1 -0
  174. package/node_modules/plexus-agent-config-web/.next/server/app/api/backups/[id]/restore/route_client-reference-manifest.js +1 -0
  175. package/node_modules/plexus-agent-config-web/.next/server/app/api/backups/route.js +1 -0
  176. package/node_modules/plexus-agent-config-web/.next/server/app/api/backups/route.js.nft.json +1 -0
  177. package/node_modules/plexus-agent-config-web/.next/server/app/api/backups/route_client-reference-manifest.js +1 -0
  178. package/node_modules/plexus-agent-config-web/.next/server/app/api/config/route.js +1 -0
  179. package/node_modules/plexus-agent-config-web/.next/server/app/api/config/route.js.nft.json +1 -0
  180. package/node_modules/plexus-agent-config-web/.next/server/app/api/config/route_client-reference-manifest.js +1 -0
  181. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/file/route.js +1 -0
  182. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/file/route.js.nft.json +1 -0
  183. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/file/route_client-reference-manifest.js +1 -0
  184. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/route.js +1 -0
  185. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/route.js.nft.json +1 -0
  186. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/[id]/route_client-reference-manifest.js +1 -0
  187. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/route.js +1 -0
  188. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/route.js.nft.json +1 -0
  189. package/node_modules/plexus-agent-config-web/.next/server/app/api/custom-agents/route_client-reference-manifest.js +1 -0
  190. package/node_modules/plexus-agent-config-web/.next/server/app/api/debug/route.js +1 -0
  191. package/node_modules/plexus-agent-config-web/.next/server/app/api/debug/route.js.nft.json +1 -0
  192. package/node_modules/plexus-agent-config-web/.next/server/app/api/debug/route_client-reference-manifest.js +1 -0
  193. package/node_modules/plexus-agent-config-web/.next/server/app/api/import/route.js +1 -0
  194. package/node_modules/plexus-agent-config-web/.next/server/app/api/import/route.js.nft.json +1 -0
  195. package/node_modules/plexus-agent-config-web/.next/server/app/api/import/route_client-reference-manifest.js +1 -0
  196. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/[id]/toggle/route.js +1 -0
  197. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/[id]/toggle/route.js.nft.json +1 -0
  198. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/[id]/toggle/route_client-reference-manifest.js +1 -0
  199. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/effective/route.js +1 -0
  200. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/effective/route.js.nft.json +1 -0
  201. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/effective/route_client-reference-manifest.js +1 -0
  202. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/route.js +1 -0
  203. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/route.js.nft.json +1 -0
  204. package/node_modules/plexus-agent-config-web/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -0
  205. package/node_modules/plexus-agent-config-web/.next/server/app/api/rules/route.js +1 -0
  206. package/node_modules/plexus-agent-config-web/.next/server/app/api/rules/route.js.nft.json +1 -0
  207. package/node_modules/plexus-agent-config-web/.next/server/app/api/rules/route_client-reference-manifest.js +1 -0
  208. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/[id]/route.js +1 -0
  209. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/[id]/route.js.nft.json +1 -0
  210. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -0
  211. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/[id]/toggle/route.js +1 -0
  212. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/[id]/toggle/route.js.nft.json +1 -0
  213. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/[id]/toggle/route_client-reference-manifest.js +1 -0
  214. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/effective/route.js +1 -0
  215. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/effective/route.js.nft.json +1 -0
  216. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/effective/route_client-reference-manifest.js +1 -0
  217. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/route.js +1 -0
  218. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/route.js.nft.json +1 -0
  219. package/node_modules/plexus-agent-config-web/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
  220. package/node_modules/plexus-agent-config-web/.next/server/app/api/spread/route.js +1 -0
  221. package/node_modules/plexus-agent-config-web/.next/server/app/api/spread/route.js.nft.json +1 -0
  222. package/node_modules/plexus-agent-config-web/.next/server/app/api/spread/route_client-reference-manifest.js +1 -0
  223. package/node_modules/plexus-agent-config-web/.next/server/app/api/sync/route.js +1 -0
  224. package/node_modules/plexus-agent-config-web/.next/server/app/api/sync/route.js.nft.json +1 -0
  225. package/node_modules/plexus-agent-config-web/.next/server/app/api/sync/route_client-reference-manifest.js +1 -0
  226. package/node_modules/plexus-agent-config-web/.next/server/app/api/team/route.js +1 -0
  227. package/node_modules/plexus-agent-config-web/.next/server/app/api/team/route.js.nft.json +1 -0
  228. package/node_modules/plexus-agent-config-web/.next/server/app/api/team/route_client-reference-manifest.js +1 -0
  229. package/node_modules/plexus-agent-config-web/.next/server/app/backups/page.js +4 -0
  230. package/node_modules/plexus-agent-config-web/.next/server/app/backups/page.js.nft.json +1 -0
  231. package/node_modules/plexus-agent-config-web/.next/server/app/backups/page_client-reference-manifest.js +1 -0
  232. package/node_modules/plexus-agent-config-web/.next/server/app/debug/page.js +2 -0
  233. package/node_modules/plexus-agent-config-web/.next/server/app/debug/page.js.nft.json +1 -0
  234. package/node_modules/plexus-agent-config-web/.next/server/app/debug/page_client-reference-manifest.js +1 -0
  235. package/node_modules/plexus-agent-config-web/.next/server/app/mcp/page.js +2 -0
  236. package/node_modules/plexus-agent-config-web/.next/server/app/mcp/page.js.nft.json +1 -0
  237. package/node_modules/plexus-agent-config-web/.next/server/app/mcp/page_client-reference-manifest.js +1 -0
  238. package/node_modules/plexus-agent-config-web/.next/server/app/mirror/page.js +2 -0
  239. package/node_modules/plexus-agent-config-web/.next/server/app/mirror/page.js.nft.json +1 -0
  240. package/node_modules/plexus-agent-config-web/.next/server/app/mirror/page_client-reference-manifest.js +1 -0
  241. package/node_modules/plexus-agent-config-web/.next/server/app/page.js +2 -0
  242. package/node_modules/plexus-agent-config-web/.next/server/app/page.js.nft.json +1 -0
  243. package/node_modules/plexus-agent-config-web/.next/server/app/page_client-reference-manifest.js +1 -0
  244. package/node_modules/plexus-agent-config-web/.next/server/app/rules/page.js +10 -0
  245. package/node_modules/plexus-agent-config-web/.next/server/app/rules/page.js.nft.json +1 -0
  246. package/node_modules/plexus-agent-config-web/.next/server/app/rules/page_client-reference-manifest.js +1 -0
  247. package/node_modules/plexus-agent-config-web/.next/server/app/settings/page.js +2 -0
  248. package/node_modules/plexus-agent-config-web/.next/server/app/settings/page.js.nft.json +1 -0
  249. package/node_modules/plexus-agent-config-web/.next/server/app/settings/page_client-reference-manifest.js +1 -0
  250. package/node_modules/plexus-agent-config-web/.next/server/app/skills/page.js +2 -0
  251. package/node_modules/plexus-agent-config-web/.next/server/app/skills/page.js.nft.json +1 -0
  252. package/node_modules/plexus-agent-config-web/.next/server/app/skills/page_client-reference-manifest.js +1 -0
  253. package/node_modules/plexus-agent-config-web/.next/server/app/spread/page.js +2 -0
  254. package/node_modules/plexus-agent-config-web/.next/server/app/spread/page.js.nft.json +1 -0
  255. package/node_modules/plexus-agent-config-web/.next/server/app/spread/page_client-reference-manifest.js +1 -0
  256. package/node_modules/plexus-agent-config-web/.next/server/app/team/page.js +2 -0
  257. package/node_modules/plexus-agent-config-web/.next/server/app/team/page.js.nft.json +1 -0
  258. package/node_modules/plexus-agent-config-web/.next/server/app/team/page_client-reference-manifest.js +1 -0
  259. package/node_modules/plexus-agent-config-web/.next/server/app-paths-manifest.json +39 -0
  260. package/node_modules/plexus-agent-config-web/.next/server/chunks/103.js +18 -0
  261. package/node_modules/plexus-agent-config-web/.next/server/chunks/174.js +1 -0
  262. package/node_modules/plexus-agent-config-web/.next/server/chunks/380.js +1 -0
  263. package/node_modules/plexus-agent-config-web/.next/server/chunks/397.js +26 -0
  264. package/node_modules/plexus-agent-config-web/.next/server/chunks/479.js +45 -0
  265. package/node_modules/plexus-agent-config-web/.next/server/chunks/620.js +1 -0
  266. package/node_modules/plexus-agent-config-web/.next/server/chunks/750.js +1 -0
  267. package/node_modules/plexus-agent-config-web/.next/server/chunks/921.js +5 -0
  268. package/node_modules/plexus-agent-config-web/.next/server/functions-config-manifest.json +4 -0
  269. package/node_modules/plexus-agent-config-web/.next/server/interception-route-rewrite-manifest.js +1 -0
  270. package/node_modules/plexus-agent-config-web/.next/server/middleware-build-manifest.js +1 -0
  271. package/node_modules/plexus-agent-config-web/.next/server/middleware-manifest.json +6 -0
  272. package/node_modules/plexus-agent-config-web/.next/server/middleware-react-loadable-manifest.js +1 -0
  273. package/node_modules/plexus-agent-config-web/.next/server/next-font-manifest.js +1 -0
  274. package/node_modules/plexus-agent-config-web/.next/server/next-font-manifest.json +1 -0
  275. package/node_modules/plexus-agent-config-web/.next/server/pages/500.html +1 -0
  276. package/node_modules/plexus-agent-config-web/.next/server/pages-manifest.json +3 -0
  277. package/node_modules/plexus-agent-config-web/.next/server/prefetch-hints.json +1 -0
  278. package/node_modules/plexus-agent-config-web/.next/server/server-reference-manifest.js +1 -0
  279. package/node_modules/plexus-agent-config-web/.next/server/server-reference-manifest.json +1 -0
  280. package/node_modules/plexus-agent-config-web/.next/server/webpack-runtime.js +1 -0
  281. package/node_modules/plexus-agent-config-web/.next/static/chunks/1968-9d19293a29f03646.js +32 -0
  282. package/node_modules/plexus-agent-config-web/.next/static/chunks/3051-5eb2f5784474c658.js +1 -0
  283. package/node_modules/plexus-agent-config-web/.next/static/chunks/3090-3702701c503793f0.js +1 -0
  284. package/node_modules/plexus-agent-config-web/.next/static/chunks/4399-7cc367307a2c52a6.js +1 -0
  285. package/node_modules/plexus-agent-config-web/.next/static/chunks/5587-933f3258279c6072.js +1 -0
  286. package/node_modules/plexus-agent-config-web/.next/static/chunks/626-7ea78ce012c8d471.js +1 -0
  287. package/node_modules/plexus-agent-config-web/.next/static/chunks/7814-1bc9d30b9724b70c.js +1 -0
  288. package/node_modules/plexus-agent-config-web/.next/static/chunks/87c73c54-64138e17754e338c.js +1 -0
  289. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/_global-error/page-fe6298e28540d3d8.js +1 -0
  290. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/_not-found/page-303a3bb713044693.js +1 -0
  291. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/about/page-64a1ee41b87ea86c.js +1 -0
  292. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/agents/[id]/page-c3c89d8ae72c75c2.js +1 -0
  293. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/agent/[id]/file/route-fe6298e28540d3d8.js +1 -0
  294. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/agent/[id]/route-fe6298e28540d3d8.js +1 -0
  295. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/agent-catalog/route-fe6298e28540d3d8.js +1 -0
  296. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/agents/route-fe6298e28540d3d8.js +1 -0
  297. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/backups/[id]/restore/route-fe6298e28540d3d8.js +1 -0
  298. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/backups/route-fe6298e28540d3d8.js +1 -0
  299. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/config/route-fe6298e28540d3d8.js +1 -0
  300. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/[id]/file/route-fe6298e28540d3d8.js +1 -0
  301. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/[id]/route-fe6298e28540d3d8.js +1 -0
  302. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/custom-agents/route-fe6298e28540d3d8.js +1 -0
  303. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/debug/route-fe6298e28540d3d8.js +1 -0
  304. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/import/route-fe6298e28540d3d8.js +1 -0
  305. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/mcp/[id]/toggle/route-fe6298e28540d3d8.js +1 -0
  306. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/mcp/effective/route-fe6298e28540d3d8.js +1 -0
  307. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/mcp/route-fe6298e28540d3d8.js +1 -0
  308. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/rules/route-fe6298e28540d3d8.js +1 -0
  309. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/skills/[id]/route-fe6298e28540d3d8.js +1 -0
  310. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/skills/[id]/toggle/route-fe6298e28540d3d8.js +1 -0
  311. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/skills/effective/route-fe6298e28540d3d8.js +1 -0
  312. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/skills/route-fe6298e28540d3d8.js +1 -0
  313. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/spread/route-fe6298e28540d3d8.js +1 -0
  314. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/sync/route-fe6298e28540d3d8.js +1 -0
  315. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/api/team/route-fe6298e28540d3d8.js +1 -0
  316. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/backups/page-6842a663db4fab47.js +3 -0
  317. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/debug/page-19e534df1d13eb98.js +1 -0
  318. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/layout-798b3b697994c5bf.js +1 -0
  319. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/mcp/page-d0d518965db961f1.js +1 -0
  320. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/mirror/page-e88f348e1a12487a.js +1 -0
  321. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/page-039dbbfad47ff659.js +1 -0
  322. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/rules/page-5bb663fc0ee9960b.js +9 -0
  323. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/settings/page-8164e1d1a8a08038.js +1 -0
  324. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/skills/page-6067058898aa6e10.js +1 -0
  325. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/spread/page-fe6298e28540d3d8.js +1 -0
  326. package/node_modules/plexus-agent-config-web/.next/static/chunks/app/team/page-edd7f54640e60e94.js +1 -0
  327. package/node_modules/plexus-agent-config-web/.next/static/chunks/framework-2c03ddc44b9f482b.js +1 -0
  328. package/node_modules/plexus-agent-config-web/.next/static/chunks/main-488dba80110e3bfb.js +5 -0
  329. package/node_modules/plexus-agent-config-web/.next/static/chunks/main-app-4c4bad3c22a66283.js +1 -0
  330. package/node_modules/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/app-error-fe6298e28540d3d8.js +1 -0
  331. package/node_modules/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/forbidden-fe6298e28540d3d8.js +1 -0
  332. package/node_modules/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/global-error-821a044f296e83b5.js +1 -0
  333. package/node_modules/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/not-found-fe6298e28540d3d8.js +1 -0
  334. package/node_modules/plexus-agent-config-web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-fe6298e28540d3d8.js +1 -0
  335. package/node_modules/plexus-agent-config-web/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  336. package/node_modules/plexus-agent-config-web/.next/static/chunks/webpack-dd4b9bd51624284c.js +1 -0
  337. package/node_modules/plexus-agent-config-web/.next/static/css/eba3657411e6e6cd.css +5 -0
  338. package/node_modules/plexus-agent-config-web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  339. package/node_modules/plexus-agent-config-web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  340. package/node_modules/plexus-agent-config-web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  341. package/node_modules/plexus-agent-config-web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  342. package/node_modules/plexus-agent-config-web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  343. package/node_modules/plexus-agent-config-web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  344. package/node_modules/plexus-agent-config-web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  345. package/node_modules/plexus-agent-config-web/.next/static/mvb1RnSdmeAxbYF-SjSfa/_buildManifest.js +1 -0
  346. package/node_modules/plexus-agent-config-web/.next/static/mvb1RnSdmeAxbYF-SjSfa/_ssgManifest.js +1 -0
  347. package/node_modules/plexus-agent-config-web/next.config.mjs +17 -0
  348. package/node_modules/plexus-agent-config-web/package.json +40 -0
  349. package/node_modules/plexus-agent-config-web/public/architecture/config-sharing-map.html +887 -0
  350. package/node_modules/plexus-agent-config-web/public/favicon.svg +5 -0
  351. package/package.json +64 -0
@@ -0,0 +1,10 @@
1
+ (()=>{var a={};a.id=670,a.ids=[670],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")},6986:(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:["rules",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,24137)),"/Users/tyrion.liang/GitHub/Plexus/apps/web/app/rules/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)),"/Users/tyrion.liang/GitHub/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:"/rules/page",pathname:"/rules",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="/rules/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}}},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")},20982:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},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"},24137:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>l,dynamic:()=>i});var d=c(2474),e=c(90317),f=c(96638),g=c(89421),h=c(45628);let i="force-dynamic",j={en:{title:"Rules",descriptionPrefix:"One editable rules baseline for Claude Code's",descriptionMiddle:"and each other agent's",descriptionSuffix:"Save it once, then apply it to every AI tool Plexus manages."},zh:{title:"规则",descriptionPrefix:"一份可编辑的规则基线,会写入 Claude Code 的",descriptionMiddle:"以及其他 Agent 的",descriptionSuffix:"保存一次,就可以应用到 Plexus 管理的所有 AI 工具。"}};async function k(){let a=h.getRulesStatus;return a?(0,g.p)(await a()):{content:"",canonicalPath:"~/.config/plexus/personal/rules/global.md",agents:[],unavailableReason:"Rules core API is not available in this workspace yet."}}async function l(){let a=j[await (0,f.s)()],b=await k();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.jsxs)("p",{className:"max-w-2xl text-sm leading-relaxed text-plexus-text-2",children:[a.descriptionPrefix," ",(0,d.jsx)("span",{className:"font-mono text-plexus-text",children:"CLAUDE.md"})," ",a.descriptionMiddle," ",(0,d.jsx)("span",{className:"font-mono text-plexus-text",children:"AGENTS.md"}),"."," ",a.descriptionSuffix]})]}),(0,d.jsx)(e.RulesPanel,{initial:b})]})}},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")},30633:(a,b,c)=>{Promise.resolve().then(c.bind(c,90317))},31421:a=>{"use strict";a.exports=require("node:child_process")},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")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53208:(a,b,c)=>{"use strict";c.d(b,{RulesPanel:()=>D});var d=c(92692),e=c(84774),f=c(50953),g=c(73754),h=c(23772);let i="~/.config/plexus/personal/rules/global.md",j={"claude-code":"Claude Code",cursor:"Cursor",codex:"Codex","gemini-cli":"Gemini CLI","qwen-code":"Qwen Code","factory-droid":"Factory Droid"};function k(a){return"object"==typeof a&&null!==a}function l(a){return"string"==typeof a?a:void 0}function m(a){return"boolean"==typeof a?a:void 0}var n=c(45813),o=c(11560),p=c(78784),q=c(20982),r=c(2131);let s=(0,r.A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),t=(0,r.A)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]),u=(0,r.A)("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),v=(0,r.A)("link-2-off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]),w=(0,r.A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),x=(0,r.A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var y=c(71277);function z(a){return function a(b){if(!k(b))return{content:"",canonicalPath:i,agents:[],unavailableReason:"Rules status response was empty."};if(k(b.status))return a(b.status);let c=k(b.canonical)?b.canonical:void 0,d=!!c?.exists||!!b.content,e=Array.isArray(b.agents)?b.agents.map(a=>(function(a,b){if(!k(a))return null;if("exists"in a||"inSync"in a||"agent"in a){let c,d,e,f,g,h,i;return c=m(a.exists)??!1,d=m(a.inSync)??!1,e=m(a.isSymlink)??!1,f=l(a.agent)??l(a.agentId)??"unknown",g=m(a.installed)??!0,h=m(a.enabled)??!0,i="missing",g?h?c&&d?i=e?"linked":"in sync":c&&!b.hasBaseline?i="local only":c&&(i="drift"):i="disabled":i="not installed",{agentId:f,displayName:l(a.displayName)??j[f],targetPath:l(a.targetPath)??"",status:i,installed:g,enabled:h,lastAppliedAt:l(a.lastAppliedAt)}}return{agentId:l(a.agentId)??"unknown",displayName:l(a.displayName)??j[l(a.agentId)??"unknown"],targetPath:l(a.targetPath)??"",status:l(a.status)??"missing",installed:m(a.installed),enabled:m(a.enabled),lastAppliedAt:l(a.lastAppliedAt)}})(a,{hasBaseline:d})).filter(a=>null!==a):[];return{content:l(b.content)??l(c?.content)??"",canonicalPath:l(b.canonicalPath)??l(c?.path)??i,agents:e,updatedAt:l(b.updatedAt)??l(c?.updatedAt),unavailableReason:l(b.unavailableReason)}}(a)}let A={en:{title:"Global Rules",unsaved:"unsaved",saved:"saved",refresh:"Refresh",save:"Save",apply:"Apply to detected agents",applyDirtyTitle:"Save the baseline before applying it.",placeholder:"Write the shared operating rules every agent should receive.",notSavedYet:"Not saved yet",refreshFailed:"Could not refresh rules status.",saveFailed:"Could not save rules.",savedMessage:"Saved to personal rules baseline.",applyFailed:"Could not apply rules.",appliedMessage:"Applied rules to detected agents.",importFailed:"Could not import rules.",importedMessage:"Imported agent rules into the personal baseline.",detachFailed:"Could not detach rules.",linkFailed:"Could not link rules.",targets:"Targets",targetsUsingBaseline:(a,b)=>`${a} of ${b} targets using baseline`,pendingSave:"pending save",baselineReady:"baseline ready",explanation:"Plexus writes the same baseline to Claude Code as CLAUDE.md and to other tools as AGENTS.md. Managed link means the agent file is a symlink to this baseline. Detach keeps a local copy for that agent; Re-link replaces that agent's file with the current baseline and keeps a backup.",lastUpdated:"Last updated:",agentTarget:"Agent target",status:"Status",noTargets:"Rules targets are waiting for the core rules API.",noApplyRecord:"no apply record",appliedAt:a=>`applied ${a}`,import:"Import",detach:"Detach",link:"Link",relink:"Re-link",detachDirtyTitle:"Save or discard baseline edits before detaching.",relinkDirtyTitle:"Save the baseline before linking it.",privacy:"Rules are plain text and user-authored. This page does not read or reveal MCP command environment variables or tokens.",managedLink:"managed link",localCopy:"local copy",detachConfirm:a=>`Detach ${a} from Global Rules?
3
+
4
+ ${a} will keep the current rules as a local file. Future edits to Global Rules will not affect it until you re-link it.`,relinkConfirm:a=>`Re-link ${a} to Global Rules?
5
+
6
+ This replaces ${a}'s current instruction file with the saved Plexus baseline. Plexus snapshots the current file first, so you can restore it from Backups.`,detachedMessage:a=>`Detached ${a}. It now has a local rules file.`,linkedMessage:a=>`Linked ${a} to Global Rules.`},zh:{title:"全局规则",unsaved:"未保存",saved:"已保存",refresh:"刷新",save:"保存",apply:"应用到已检测 Agent",applyDirtyTitle:"先保存基线,再应用到 Agent。",placeholder:"写下所有 Agent 都应该读取的共享规则。",notSavedYet:"尚未保存",refreshFailed:"无法刷新规则状态。",saveFailed:"无法保存规则。",savedMessage:"已保存到个人规则基线。",applyFailed:"无法应用规则。",appliedMessage:"已应用规则到已检测 Agent。",importFailed:"无法导入规则。",importedMessage:"已把该 Agent 的规则导入个人基线。",detachFailed:"无法解除规则同步。",linkFailed:"无法链接规则。",targets:"目标",targetsUsingBaseline:(a,b)=>`${a}/${b} 个目标使用基线`,pendingSave:"待保存",baselineReady:"基线就绪",explanation:"Plexus 会把同一份基线写给 Claude Code 的 CLAUDE.md,也会写给其他工具的 AGENTS.md。托管链接表示 Agent 文件是指向这份基线的软链接。解除同步会为该 Agent 保留一份本地副本;重新链接会用当前基线替换该 Agent 文件,并先做备份。",lastUpdated:"最近更新:",agentTarget:"Agent 目标",status:"状态",noTargets:"规则目标正在等待核心规则 API。",noApplyRecord:"暂无应用记录",appliedAt:a=>`已应用 ${a}`,import:"导入",detach:"解除同步",link:"链接",relink:"重新链接",detachDirtyTitle:"先保存或放弃基线改动,再解除同步。",relinkDirtyTitle:"先保存基线,再重新链接。",privacy:"Rules 是用户编写的纯文本。本页面不会读取或暴露 MCP 命令环境变量或 token。",managedLink:"托管链接",localCopy:"本地副本",detachConfirm:a=>`确定要让 ${a} 解除全局规则同步吗?
7
+
8
+ ${a} 会保留当前规则作为本地文件。之后全局规则的改动不会影响它,除非你重新链接。`,relinkConfirm:a=>`确定要把 ${a} 重新链接到全局规则吗?
9
+
10
+ 这会用已保存的 Plexus 基线替换 ${a} 当前的指令文件。Plexus 会先做快照,你可以在备份页恢复。`,detachedMessage:a=>`${a} 已解除同步,现在使用本地规则文件。`,linkedMessage:a=>`${a} 已链接到全局规则。`}};function B(a,b,c){return a?new Date(a).toLocaleString("zh"===c?"zh-CN":"en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}):b.notSavedYet}async function C(a,b){try{let c=await a.json();return c.error??c.message??b}catch{return b}}function D({initial:a}){let{locale:b}=(0,e.o)(),c=A[b],[i,j]=(0,y.useState)(a),[k,l]=(0,y.useState)(a.content??""),[m,r]=(0,y.useState)(null),[E,F]=(0,y.useState)(a.unavailableReason??null),G=k!==(i.content??""),H=(0,y.useMemo)(()=>i.agents.filter(a=>!1!==a.installed&&!1!==a.enabled),[i.agents]),I=(0,y.useMemo)(()=>H.filter(a=>["linked","copied","in sync"].includes(a.status)).length,[H]);async function J(a){r("refresh");try{let b=await fetch("/api/rules");if(!b.ok)return void F(await C(b,c.refreshFailed));let d=z(await b.json());j(d),l(d.content??""),F(a??d.unavailableReason??null)}finally{r(null)}}async function K(){r("save"),F(null);try{let a=await fetch("/api/rules",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({content:k})});if(!a.ok)return void F(await C(a,c.saveFailed));let b=z(await a.json());j(b),l(b.content??k),F(c.savedMessage)}finally{r(null)}}async function L(){r("apply"),F(null);try{let a=await fetch("/api/rules",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"apply"})});if(!a.ok)return void F(await C(a,c.applyFailed));let b=z(await a.json());j(b),l(b.content??k),F(c.appliedMessage)}finally{r(null)}}async function M(a){r(`import:${a}`),F(null);try{let b=await fetch("/api/rules",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"import",agentId:a})});if(!b.ok)return void F(await C(b,c.importFailed));let d=z(await b.json());j(d),l(d.content??""),F(c.importedMessage)}finally{r(null)}}async function N(a,b){if(confirm(c.detachConfirm(b))){r(`detach:${a}`),F(null);try{let d=await fetch("/api/rules",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"detach",agentId:a})});if(!d.ok)return void F(await C(d,c.detachFailed));let e=z(await d.json());j(e),l(e.content??k),F(c.detachedMessage(b))}finally{r(null)}}}async function O(a,b,d){if("missing"===d||confirm(c.relinkConfirm(b))){r(`relink:${a}`),F(null);try{let d=await fetch("/api/rules",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"relink",agentId:a})});if(!d.ok)return void F(await C(d,c.linkFailed));let e=z(await d.json());j(e),l(e.content??k),F(c.linkedMessage(b))}finally{r(null)}}}let P=!!i.unavailableReason;return(0,d.jsxs)("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1fr)_380px]",children:[(0,d.jsxs)(h.Z,{className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-plexus-border px-5 py-4",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(o.A,{className:"h-4 w-4 text-plexus-accent",strokeWidth:1.5}),(0,d.jsx)("h2",{className:"plexus-title",children:c.title}),G?(0,d.jsx)(f.E,{variant:"divergent",children:c.unsaved}):(0,d.jsx)(f.E,{variant:"synced",children:c.saved})]}),(0,d.jsx)("code",{className:"mt-1 block truncate font-mono text-xs text-plexus-text-3",children:i.canonicalPath})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",onClick:()=>J(),disabled:null!=m,children:["refresh"===m?(0,d.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}):(0,d.jsx)(q.A,{className:"h-3.5 w-3.5",strokeWidth:1.5}),c.refresh]}),(0,d.jsxs)(g.Button,{variant:"secondary",size:"sm",onClick:K,disabled:null!=m||P,children:["save"===m?(0,d.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}):(0,d.jsx)(s,{className:"h-3.5 w-3.5",strokeWidth:1.5}),c.save]}),(0,d.jsxs)(g.Button,{variant:"primary",size:"sm",onClick:L,disabled:null!=m||G||P,title:G?c.applyDirtyTitle:void 0,children:["apply"===m?(0,d.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}):(0,d.jsx)(t,{className:"h-3.5 w-3.5",strokeWidth:1.5}),c.apply]})]})]}),E&&(0,d.jsx)("div",{className:(0,n.cn)("border-b border-plexus-border px-5 py-2 text-xs",i.unavailableReason?"bg-plexus-warn/10 text-plexus-warn":"bg-plexus-surface-2 text-plexus-text-2"),children:E}),(0,d.jsx)("textarea",{className:"min-h-[520px] w-full resize-y bg-plexus-bg p-5 font-mono text-[13px] leading-6 text-plexus-text outline-none placeholder:text-plexus-text-mute focus:bg-plexus-bg",value:k,onChange:a=>l(a.target.value),disabled:P,placeholder:c.placeholder,spellCheck:!1})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)(h.Z,{className:"px-5 py-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"plexus-eyebrow mb-1",children:c.targets}),(0,d.jsx)("div",{className:"text-sm text-plexus-text-2",children:c.targetsUsingBaseline(I,H.length)})]}),(0,d.jsxs)(f.E,{variant:G?"divergent":"synced",children:[(0,d.jsx)(f.m,{tone:G?"warn":"ok"}),G?c.pendingSave:c.baselineReady]})]}),(0,d.jsx)("div",{className:"mt-4 text-xs leading-relaxed text-plexus-text-3",children:c.explanation}),(0,d.jsxs)("div",{className:"mt-3 text-xs text-plexus-text-3",children:[c.lastUpdated," ",(0,d.jsx)("span",{className:"text-plexus-text-2",children:B(i.updatedAt,c,b)})]})]}),(0,d.jsxs)(h.Z,{className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"grid grid-cols-[1fr_auto] border-b border-plexus-border px-4 py-3 text-[11px] uppercase tracking-[0.10em] text-plexus-text-3",children:[(0,d.jsx)("div",{children:c.agentTarget}),(0,d.jsx)("div",{children:c.status})]}),0===H.length?(0,d.jsx)("div",{className:"px-4 py-8 text-center text-sm text-plexus-text-3",children:c.noTargets}):H.map(a=>{var e,h,i;let j=m===`import:${a.agentId}`,k=m===`detach:${a.agentId}`,l=m===`relink:${a.agentId}`,n=a.displayName??a.agentId,o=null==m&&!P&&"disabled"!==a.status&&"not installed"!==a.status&&!G,q="linked"===a.status,r=!q&&"disabled"!==a.status&&"not installed"!==a.status;return(0,d.jsxs)("div",{className:"border-b border-plexus-border/60 px-4 py-3 last:border-0 hover:bg-plexus-surface-2/40",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("div",{className:"text-sm font-medium text-plexus-text",children:n}),(0,d.jsx)("code",{className:"mt-1 block truncate font-mono text-xs text-plexus-text-3",children:a.targetPath})]}),(0,d.jsxs)(f.E,{variant:"linked"===(e=a.status)||"copied"===e||"in sync"===e?"synced":"drift"===e?"divergent":"local only"===e?"outline":"missing"===e||"disabled"===e||"not installed"===e?"native":"outline",children:[(0,d.jsx)(f.m,{tone:"linked"===(h=a.status)||"copied"===h||"in sync"===h?"ok":"drift"===h?"warn":"local only"===h?"info":"missing"===h||"disabled"===h||"not installed"===h?"mute":"info"}),(i=a.status,"linked"===i?c.managedLink:"copied"===i||"in sync"===i?c.localCopy:i)]})]}),(0,d.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-3",children:[(0,d.jsx)("span",{className:"text-[11px] text-plexus-text-mute",children:a.lastAppliedAt?c.appliedAt(B(a.lastAppliedAt,c,b)):c.noApplyRecord}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[q?null:(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",onClick:()=>M(a.agentId),disabled:null!=m||P||"missing"===a.status,children:[j?(0,d.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}):(0,d.jsx)(u,{className:"h-3.5 w-3.5",strokeWidth:1.5}),c.import]}),q?(0,d.jsxs)(g.Button,{variant:"ghost",size:"sm",onClick:()=>N(a.agentId,n),disabled:null!=m||P||G,title:G?c.detachDirtyTitle:void 0,children:[k?(0,d.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}):(0,d.jsx)(v,{className:"h-3.5 w-3.5",strokeWidth:1.5}),c.detach]}):null,r?(0,d.jsxs)(g.Button,{variant:"secondary",size:"sm",onClick:()=>O(a.agentId,n,a.status),disabled:!o,title:G?c.relinkDirtyTitle:void 0,children:[l?(0,d.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin",strokeWidth:1.5}):(0,d.jsx)(w,{className:"h-3.5 w-3.5",strokeWidth:1.5}),"missing"===a.status?c.link:c.relink]}):null]})]})]},a.agentId)})]}),(0,d.jsxs)(h.Z,{className:"flex items-start gap-3 px-5 py-4 text-sm text-plexus-text-2",children:[(0,d.jsx)(x,{className:"mt-0.5 h-4 w-4 shrink-0 text-plexus-ok",strokeWidth:1.5}),(0,d.jsx)("div",{children:c.privacy})]})]})]})}},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")},72489:(a,b,c)=>{Promise.resolve().then(c.bind(c,53208))},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")},78784:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(2131).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},79428:a=>{"use strict";a.exports=require("buffer")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},89421:(a,b,c)=>{"use strict";c.d(b,{p:()=>function a(b){if(!f(b))return{content:"",canonicalPath:d,agents:[],unavailableReason:"Rules status response was empty."};if(f(b.status))return a(b.status);let c=f(b.canonical)?b.canonical:void 0,i=!!c?.exists||!!b.content,j=Array.isArray(b.agents)?b.agents.map(a=>(function(a,b){if(!f(a))return null;if("exists"in a||"inSync"in a||"agent"in a){let c,d,f,i,j,k,l;return c=h(a.exists)??!1,d=h(a.inSync)??!1,f=h(a.isSymlink)??!1,i=g(a.agent)??g(a.agentId)??"unknown",j=h(a.installed)??!0,k=h(a.enabled)??!0,l="missing",j?k?c&&d?l=f?"linked":"in sync":c&&!b.hasBaseline?l="local only":c&&(l="drift"):l="disabled":l="not installed",{agentId:i,displayName:g(a.displayName)??e[i],targetPath:g(a.targetPath)??"",status:l,installed:j,enabled:k,lastAppliedAt:g(a.lastAppliedAt)}}return{agentId:g(a.agentId)??"unknown",displayName:g(a.displayName)??e[g(a.agentId)??"unknown"],targetPath:g(a.targetPath)??"",status:g(a.status)??"missing",installed:h(a.installed),enabled:h(a.enabled),lastAppliedAt:g(a.lastAppliedAt)}})(a,{hasBaseline:i})).filter(a=>null!==a):[];return{content:g(b.content)??g(c?.content)??"",canonicalPath:g(b.canonicalPath)??g(c?.path)??d,agents:j,updatedAt:g(b.updatedAt)??g(c?.updatedAt),unavailableReason:g(b.unavailableReason)}}});let d="~/.config/plexus/personal/rules/global.md",e={"claude-code":"Claude Code",cursor:"Cursor",codex:"Codex","gemini-cli":"Gemini CLI","qwen-code":"Qwen Code","factory-droid":"Factory Droid"};function f(a){return"object"==typeof a&&null!==a}function g(a){return"string"==typeof a?a:void 0}function h(a){return"boolean"==typeof a?a:void 0}},90317:(a,b,c)=>{"use strict";c.d(b,{RulesPanel:()=>d});let d=(0,c(30274).registerClientReference)(function(){throw Error("Attempted to call RulesPanel() from the server but RulesPanel 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.")},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/rules-panel.tsx","RulesPanel")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[103,397,479,174,921,620],()=>b(b.s=6986));module.exports=c})();
@@ -0,0 +1 @@
1
+ {"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/get-segment-param.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/size-limit.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../package.json","../../../../../../packages/core/package.json","../../../../package.json","../../../package.json","../../chunks/103.js","../../chunks/174.js","../../chunks/397.js","../../chunks/479.js","../../chunks/620.js","../../chunks/921.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
@@ -0,0 +1 @@
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/rules/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":{"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/architecture-panel.tsx":{"id":6036,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/agent-detail.tsx":{"id":4641,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/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","3051","static/chunks/3051-5eb2f5784474c658.js","7814","static/chunks/7814-1bc9d30b9724b70c.js","8974","static/chunks/app/page-039dbbfad47ff659.js"],"async":false},"/Users/tyrion.liang/GitHub/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","3051","static/chunks/3051-5eb2f5784474c658.js","7814","static/chunks/7814-1bc9d30b9724b70c.js","8974","static/chunks/app/page-039dbbfad47ff659.js"],"async":false},"/Users/tyrion.liang/GitHub/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","3051","static/chunks/3051-5eb2f5784474c658.js","7814","static/chunks/7814-1bc9d30b9724b70c.js","8974","static/chunks/app/page-039dbbfad47ff659.js"],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/backups-panel.tsx":{"id":5537,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/debug-panel.tsx":{"id":8725,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/mcp-editor.tsx":{"id":169,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/mirror-panel.tsx":{"id":7103,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/skills-editor.tsx":{"id":8257,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/rules-panel.tsx":{"id":8287,"name":"*","chunks":["4399","static/chunks/4399-7cc367307a2c52a6.js","9670","static/chunks/app/rules/page-5bb663fc0ee9960b.js"],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/custom-agents-panel.tsx":{"id":5392,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/settings-panel.tsx":{"id":1405,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/ui/button.tsx":{"id":7788,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/team-panel.tsx":{"id":8484,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/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-039dbbfad47ff659.js"],"async":false}},"entryCSSFiles":{"/Users/tyrion.liang/GitHub/Plexus/apps/web/":[],"/Users/tyrion.liang/GitHub/Plexus/apps/web/app/layout":[{"inlined":false,"path":"static/css/eba3657411e6e6cd.css"}],"/Users/tyrion.liang/GitHub/Plexus/apps/web/app/page":[],"/Users/tyrion.liang/GitHub/Plexus/apps/web/app/rules/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}}}};
@@ -0,0 +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"},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"},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.")},"/Users/tyrion.liang/GitHub/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.")},"/Users/tyrion.liang/GitHub/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")},63196:(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)),"/Users/tyrion.liang/GitHub/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)),"/Users/tyrion.liang/GitHub/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}}},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.")},"/Users/tyrion.liang/GitHub/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")},74984:(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))},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")},88136:(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))},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.")},"/Users/tyrion.liang/GitHub/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,620],()=>b(b.s=63196));module.exports=c})();
@@ -0,0 +1 @@
1
+ {"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/get-segment-param.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/size-limit.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../package.json","../../../../../../packages/core/package.json","../../../../package.json","../../../package.json","../../chunks/103.js","../../chunks/174.js","../../chunks/397.js","../../chunks/479.js","../../chunks/620.js","../../chunks/750.js","../../chunks/921.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
@@ -0,0 +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":{"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":5718,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/client-page.js":{"id":671,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/client-segment.js":{"id":589,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3558,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9630,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1380,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":887,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":214,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/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-798b3b697994c5bf.js"],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/architecture-panel.tsx":{"id":6036,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/agent-detail.tsx":{"id":4641,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/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-8164e1d1a8a08038.js"],"async":false},"/Users/tyrion.liang/GitHub/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-8164e1d1a8a08038.js"],"async":false},"/Users/tyrion.liang/GitHub/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-8164e1d1a8a08038.js"],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/backups-panel.tsx":{"id":5537,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/debug-panel.tsx":{"id":8725,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/mcp-editor.tsx":{"id":169,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/mirror-panel.tsx":{"id":7103,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/skills-editor.tsx":{"id":8257,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/rules-panel.tsx":{"id":8287,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/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-8164e1d1a8a08038.js"],"async":false},"/Users/tyrion.liang/GitHub/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-8164e1d1a8a08038.js"],"async":false},"/Users/tyrion.liang/GitHub/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-8164e1d1a8a08038.js"],"async":false},"/Users/tyrion.liang/GitHub/Plexus/apps/web/components/team-panel.tsx":{"id":8484,"name":"*","chunks":[],"async":false},"/Users/tyrion.liang/GitHub/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-039dbbfad47ff659.js"],"async":false}},"entryCSSFiles":{"/Users/tyrion.liang/GitHub/Plexus/apps/web/":[],"/Users/tyrion.liang/GitHub/Plexus/apps/web/app/layout":[{"inlined":false,"path":"static/css/eba3657411e6e6cd.css"}],"/Users/tyrion.liang/GitHub/Plexus/apps/web/app/page":[],"/Users/tyrion.liang/GitHub/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}}}};
@@ -0,0 +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"}]])},8737:(a,b,c)=>{Promise.resolve().then(c.bind(c,67139))},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")},28154:(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)),"/Users/tyrion.liang/GitHub/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)),"/Users/tyrion.liang/GitHub/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}}},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")},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")},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"}]])},72289:(a,b,c)=>{Promise.resolve().then(c.bind(c,86817))},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.")},"/Users/tyrion.liang/GitHub/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,620],()=>b(b.s=28154));module.exports=c})();