@axhub/acp 0.1.2-beta.1 → 0.1.2-beta.2

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 (58) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/fallback-build-manifest.json +3 -3
  4. package/.next/server/app/_global-error.html +1 -1
  5. package/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/server/app/_not-found.html +1 -1
  12. package/.next/server/app/_not-found.rsc +1 -1
  13. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  19. package/.next/server/app/api/acp/capabilities/route.js +1 -1
  20. package/.next/server/app/api/acp/capabilities/route.js.nft.json +1 -1
  21. package/.next/server/app/api/chat/cancel/route.js +1 -1
  22. package/.next/server/app/api/chat/cancel/route.js.nft.json +1 -1
  23. package/.next/server/app/api/chat/resume/[streamId]/route.js +1 -1
  24. package/.next/server/app/api/chat/resume/[streamId]/route.js.nft.json +1 -1
  25. package/.next/server/app/api/chat/route.js +1 -1
  26. package/.next/server/app/api/chat/route.js.nft.json +1 -1
  27. package/.next/server/app/api/conversations/[threadId]/messages/route.js +2 -2
  28. package/.next/server/app/api/conversations/[threadId]/runtime/route.js +1 -1
  29. package/.next/server/app/api/conversations/[threadId]/runtime/route.js.nft.json +1 -1
  30. package/.next/server/app/page_client-reference-manifest.js +1 -1
  31. package/.next/server/app/thread/[threadId]/page_client-reference-manifest.js +1 -1
  32. package/.next/server/chunks/[root-of-the-server]__0aovkxs._.js +1 -1
  33. package/.next/server/chunks/[root-of-the-server]__0c.r6ru._.js +5 -5
  34. package/.next/server/chunks/{[root-of-the-server]__04pn6ap._.js → [root-of-the-server]__0cki6-w._.js} +1 -1
  35. package/.next/server/chunks/[root-of-the-server]__0gmxr~m._.js +1 -1
  36. package/.next/server/chunks/{[root-of-the-server]__0zn3~pq._.js → [root-of-the-server]__0lfmu8f._.js} +1 -1
  37. package/.next/server/chunks/{[root-of-the-server]__0lbwo2g._.js → [root-of-the-server]__0m33tyh._.js} +1 -1
  38. package/.next/server/chunks/[root-of-the-server]__0o2epta._.js +1 -1
  39. package/.next/server/chunks/{[root-of-the-server]__0ml.1wa._.js → [root-of-the-server]__0on1ayi._.js} +1 -1
  40. package/.next/server/chunks/[root-of-the-server]__0os92l7._.js +1 -1
  41. package/.next/server/chunks/{[root-of-the-server]__0zmyki-._.js → [root-of-the-server]__0va2ld4._.js} +1 -1
  42. package/.next/server/chunks/[root-of-the-server]__13xepwb._.js +1 -1
  43. package/.next/server/chunks/ssr/_03.pm1z._.js +1 -1
  44. package/.next/server/middleware-build-manifest.js +3 -3
  45. package/.next/server/pages/404.html +1 -1
  46. package/.next/server/pages/500.html +1 -1
  47. package/.next/static/chunks/{0r125n-._y5ny.js → 0g95d4qshh~b1.js} +1 -1
  48. package/README.md +6 -0
  49. package/dist/lib/acp2aisdk/provider-command.d.ts +22 -0
  50. package/dist/lib/acp2aisdk/provider-command.mjs +268 -0
  51. package/dist/lib/acp2aisdk/provider-registry.mjs +35 -2
  52. package/dist/lib/acp2aisdk/session-runtime.mjs +54 -16
  53. package/dist/lib/acp2aisdk/types.d.ts +7 -4
  54. package/dist/public-api/server.d.ts +1 -1
  55. package/package.json +1 -1
  56. /package/.next/static/{BmvWWgKyONAT48LROfviV → afQGa38bHoajAY5kxCATW}/_buildManifest.js +0 -0
  57. /package/.next/static/{BmvWWgKyONAT48LROfviV → afQGa38bHoajAY5kxCATW}/_clientMiddlewareManifest.js +0 -0
  58. /package/.next/static/{BmvWWgKyONAT48LROfviV → afQGa38bHoajAY5kxCATW}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
1
  globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
2
- globalThis.__RSC_MANIFEST["/thread/[threadId]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/components/ui/tooltip.tsx <module evaluation>":{"id":28231,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/components/ui/tooltip.tsx":{"id":28231,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/app/assistant.tsx <module evaluation>":{"id":63454,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js","/_next/static/chunks/0r125n-._y5ny.js"],"async":false},"[project]/app/assistant.tsx":{"id":63454,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js","/_next/static/chunks/0r125n-._y5ny.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"28231":{"*":{"id":54816,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js","server/chunks/ssr/node_modules_09w7yel._.js"],"async":false}},"63454":{"*":{"id":22831,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js","server/chunks/ssr/[root-of-the-server]__0n6oe29._.js","server/chunks/ssr/_03.pm1z._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"28231":{"*":{"id":89404,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"63454":{"*":{"id":13701,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/0c~b2_-vk17t5.css","inlined":false}],"[project]/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/0c~b2_-vk17t5.css","inlined":false}],"[project]/app/thread/[threadId]/page":[{"path":"static/chunks/0c~b2_-vk17t5.css","inlined":false},{"path":"static/chunks/0y2l0xgouorae.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/01xlw8hd842-c.js","static/chunks/0tmpufzgpw2-w.js","static/chunks/0qid5lwcbx9s0.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/01xlw8hd842-c.js","static/chunks/0tmpufzgpw2-w.js","static/chunks/0qid5lwcbx9s0.js"],"[project]/app/thread/[threadId]/page":["static/chunks/01xlw8hd842-c.js","static/chunks/0tmpufzgpw2-w.js","static/chunks/0qid5lwcbx9s0.js","static/chunks/0r125n-._y5ny.js"]}};
2
+ globalThis.__RSC_MANIFEST["/thread/[threadId]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/components/ui/tooltip.tsx <module evaluation>":{"id":28231,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/components/ui/tooltip.tsx":{"id":28231,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js"],"async":false},"[project]/app/assistant.tsx <module evaluation>":{"id":63454,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js","/_next/static/chunks/0g95d4qshh~b1.js"],"async":false},"[project]/app/assistant.tsx":{"id":63454,"name":"*","chunks":["/_next/static/chunks/01xlw8hd842-c.js","/_next/static/chunks/0tmpufzgpw2-w.js","/_next/static/chunks/0qid5lwcbx9s0.js","/_next/static/chunks/0g95d4qshh~b1.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"28231":{"*":{"id":54816,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js","server/chunks/ssr/node_modules_09w7yel._.js"],"async":false}},"63454":{"*":{"id":22831,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__08e5v4-._.js","server/chunks/ssr/node_modules_next_dist_0h9llsw._.js","server/chunks/ssr/_006q235._.js","server/chunks/ssr/[root-of-the-server]__0n6oe29._.js","server/chunks/ssr/_03.pm1z._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"28231":{"*":{"id":89404,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"63454":{"*":{"id":13701,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/0c~b2_-vk17t5.css","inlined":false}],"[project]/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/0c~b2_-vk17t5.css","inlined":false}],"[project]/app/thread/[threadId]/page":[{"path":"static/chunks/0c~b2_-vk17t5.css","inlined":false},{"path":"static/chunks/0y2l0xgouorae.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/01xlw8hd842-c.js","static/chunks/0tmpufzgpw2-w.js","static/chunks/0qid5lwcbx9s0.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/01xlw8hd842-c.js","static/chunks/0tmpufzgpw2-w.js","static/chunks/0qid5lwcbx9s0.js"],"[project]/app/thread/[threadId]/page":["static/chunks/01xlw8hd842-c.js","static/chunks/0tmpufzgpw2-w.js","static/chunks/0qid5lwcbx9s0.js","static/chunks/0g95d4qshh~b1.js"]}};
3
3
 
@@ -1,3 +1,3 @@
1
- module.exports=[57764,(e,t,r)=>{t.exports=e.x("node:url",()=>require("node:url"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},12714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},61253,e=>{"use strict";let t=new Set([204,205,304]);function r(e,r){var n;let s,o=function(e){if(!e)return null;let t=(process.env.ACP_UI_CORS_ORIGINS??"").split(",").map(e=>e.trim()).filter(Boolean);return t.includes("*")?"*":t.includes(e)?e:null}(e.headers.get("origin"));if(!o)return r;let a=new Headers(r.headers);a.set("Access-Control-Allow-Origin",o),a.set("Access-Control-Allow-Methods","GET,POST,PATCH,DELETE,OPTIONS"),a.set("Access-Control-Allow-Headers",e.headers.get("access-control-request-headers")??"Content-Type, Authorization, X-Requested-With, Accept"),a.set("Access-Control-Max-Age","86400"),(s=a.get("Vary"))?s.split(",").map(e=>e.trim().toLowerCase()).includes("origin")||a.set("Vary",`${s}, Origin`):a.set("Vary","Origin");let i=(n=r.status,t.has(n))?null:r.body;return null===i&&(a.delete("content-length"),a.delete("transfer-encoding")),new Response(i,{headers:a,status:r.status,statusText:r.statusText})}e.s(["corsPreflightResponse",0,function(e){return r(e,new Response(null,{status:204}))},"withCors",0,r],61253)},21702,e=>{"use strict";var t=e.i(74533),r=e.i(2157),n=e.i(50227);let s="bypassPermissions";function o(e){if(function(e){try{return process.kill(e,0),!0}catch{return!1}}(e))try{process.kill(e,"SIGKILL")}catch{}}function a(e){let r,n,s=(r=e.model,(n=r?.agentProcess)&&"object"==typeof n?n:null),a=s?.pid,i=a?function e(r,n=new Set){if("win32"===process.platform||n.has(r))return[];n.add(r);let s="";try{s=(0,t.execFileSync)("pgrep",["-P",String(r)],{encoding:"utf8",stdio:["ignore","pipe","ignore"]})}catch{return[]}return s.split(/\s+/).map(e=>Number(e)).filter(e=>Number.isInteger(e)&&e>0).flatMap(t=>[t,...e(t,n)])}(a):[];try{e.cleanup()}catch{}for(let e of i)o(e);a&&o(a)}class i{sessions=new Map;get(e){return this.sessions.get(e)??null}set(e,t){t.metadata.lastUsedAt=Date.now(),this.sessions.set(e,t)}touch(e){let t=this.sessions.get(e);t&&(t.metadata.lastUsedAt=Date.now())}updateMetadata(e,t){let r=this.sessions.get(e);r&&(r.metadata={...r.metadata,...t,lastUsedAt:Date.now()})}cleanupIdle(e=Date.now()){for(let[t,r]of this.sessions)e-r.metadata.lastUsedAt<=18e5||(a(r.provider),this.sessions.delete(t))}cleanup(e){let t=this.sessions.get(e);return!!t&&(a(t.provider),this.sessions.delete(e),!0)}list(){return[...this.sessions.values()].map(e=>e.metadata)}}let l=globalThis;e.s(["DEFAULT_PERMISSION_MODE",0,s,"createAcpSessionKey",0,function(e){return[e.provider,encodeURIComponent(e.workspacePath),encodeURIComponent(e.threadId)].join(":")},"createInitialMetadata",0,function({sessionKey:e,threadId:t,provider:r,workspacePath:n,model:o,modeId:a,thoughtLevel:i,permissionMode:l=s}){return{sessionKey:e,threadId:t,provider:r,workspacePath:n,acpSessionId:null,resumedAcpSessionId:null,sessionTitle:null,model:o||null,modeId:a||null,thoughtLevel:i||null,permissionMode:l,runState:"queued",coldStart:!0,warnings:[],lastUsedAt:Date.now(),capabilitySnapshot:null,builtinToolRuntimeKey:null}},"getGlobalAcpSessionStore",0,function(){let e=l.__acp2AiSdkSessionStore??new i;return l.__acp2AiSdkSessionStore=e,e},"normalizeThreadId",0,function(e){return String(e||"").trim()||"default"},"normalizeWorkspacePath",0,function(e){let t=n.default.resolve(process.env.ACP_UI_DEFAULT_WORKSPACE_PATH||process.cwd()),s="string"==typeof e&&e.trim()?e.trim():t,o=n.default.resolve(s);try{return r.default.statSync(o).isDirectory()?o:t}catch{return t}}])},14691,e=>{"use strict";let t=["claude","codex","gemini","opencode"],r={claude:"bypassPermissions",codex:"full-access",gemini:"bypassPermissions",opencode:"build"},n={openai:"codex"},s={claude:{provider:"claude",label:"Claude",command:"npx",args:["-y","@agentclientprotocol/claude-agent-acp@^0.39.0"],defaultModel:"sonnet",defaultModeId:r.claude,supportsImages:!0},codex:{provider:"codex",label:"Codex",command:"npx",args:["-y","@zed-industries/codex-acp@^0.15.0"],defaultModeId:r.codex,supportsImages:!0},gemini:{provider:"gemini",label:"Gemini",command:"npx",args:["-y","@google/gemini-cli@^0.44.1","--acp","--skip-trust"],defaultModel:"gemini-3-pro-preview",defaultModeId:r.gemini,supportsImages:!1},opencode:{provider:"opencode",label:"OpenCode",command:"npx",args:["-y","opencode-ai@^1.15.13","acp"],defaultModel:"opencode/big-pickle",defaultModeId:r.opencode,supportsImages:!1}};function o(e){let r=String(e||"codex").trim().toLowerCase(),s=n[r]??r;return t.includes(s)?s:"codex"}function a(e){let[t,...r]=(e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g)??[]).map(e=>e.replace(/^["']|["']$/g,""));return{command:t||e,args:r}}function i(e,t,r){r&&(e[t]={...e[t],...r})}e.s(["ACP_PROVIDER_DEFAULT_MODE_IDS",0,r,"getAcpProviderDefaultModeId",0,function(e){return s[o(e)].defaultModeId??null},"normalizeAcpProvider",0,o,"resolveAcpProviderConfig",0,function(e,r=function(e=process.env){let r={},n=e.ACP_PROVIDER_COMMAND_OVERRIDES||e.AXHUB_ACP_COMMAND_OVERRIDES;if(n)try{let e=JSON.parse(n);for(let[t,n]of Object.entries(e)){let e=o(t);i(r,e,function(e){if("string"==typeof e){let t=e.trim();return t?a(t):null}if(!e||"object"!=typeof e||Array.isArray(e))return null;let t="string"==typeof e.command&&e.command.trim()?e.command.trim():null,r=Array.isArray(e.args)?e.args.map(e=>String(e).trim()).filter(e=>!!e):void 0,n="number"==typeof e.sessionDelayMs&&Number.isFinite(e.sessionDelayMs)&&e.sessionDelayMs>=0?e.sessionDelayMs:void 0,s={};return t&&(s.command=t),r&&(s.args=r),"string"==typeof e.authMethodId&&(s.authMethodId=e.authMethodId.trim()||null),void 0!==n&&(s.sessionDelayMs=n),"boolean"==typeof e.persistSession&&(s.persistSession=e.persistSession),"string"==typeof e.defaultModel&&(s.defaultModel=e.defaultModel.trim()||null),"string"==typeof e.defaultModeId&&(s.defaultModeId=e.defaultModeId.trim()||null),Object.keys(s).length?s:null}(n))}}catch{}for(let n of t){let t=`ACP_${n.toUpperCase()}`,s=e[`${t}_COMMAND`];s&&i(r,n,a(s));let o=e[`${t}_AUTH_METHOD_ID`],l=function(e){if(void 0===e)return;let t=Number(e);return Number.isFinite(t)&&t>=0?t:void 0}(e[`${t}_SESSION_DELAY_MS`]),d=function(e){if(void 0===e)return;let t=e.trim().toLowerCase();return!!["1","true","yes","on"].includes(t)||!["0","false","no","off"].includes(t)&&void 0}(e[`${t}_PERSIST_SESSION`]),u=e[`${t}_DEFAULT_MODEL`],c=e[`${t}_DEFAULT_MODE_ID`],p={};void 0!==o&&(p.authMethodId=o.trim()||null),void 0!==l&&(p.sessionDelayMs=l),void 0!==d&&(p.persistSession=d),void 0!==u&&(p.defaultModel=u.trim()||null),void 0!==c&&(p.defaultModeId=c.trim()||null),Object.keys(p).length&&i(r,n,p)}return r}()){let n=o(e);return{...s[n],...r[n]??{}}}])},65253,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),s=e.i(59756),o=e.i(61916),a=e.i(74677),i=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),f=e.i(74838),m=e.i(10372),g=e.i(93695);e.i(52474);var v=e.i(220),R=e.i(61253),w=e.i(61735);async function x(e,t){let{threadId:r}=await t.params,n=new URL(e.url).searchParams.get("workspacePath"),s=await (0,w.getConversation)(r,n);return s?(0,R.withCors)(e,Response.json({thread:s})):(0,R.withCors)(e,Response.json({error:"未找到对话"},{status:404}))}async function y(e,t){let{threadId:r}=await t.params,n=new URL(e.url).searchParams.get("workspacePath"),s=await e.json().catch(()=>({}));return"string"==typeof s.title?(0,R.withCors)(e,Response.json({thread:await (0,w.renameConversation)(r,s.title,n)})):"boolean"==typeof s.archived?(0,R.withCors)(e,Response.json({thread:await (0,w.archiveConversation)(r,s.archived,n)})):(0,R.withCors)(e,Response.json({error:"需要提供标题或归档状态"},{status:400}))}async function A(e,t){let{threadId:r}=await t.params,n=new URL(e.url);return await (0,w.deleteConversation)(r,n.searchParams.get("workspacePath")),(0,R.withCors)(e,new Response(null,{status:204}))}e.s(["DELETE",0,A,"GET",0,x,"OPTIONS",0,function(e){return(0,R.corsPreflightResponse)(e)},"PATCH",0,y,"dynamic",0,"force-dynamic"],23092);var C=e.i(23092);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/conversations/[threadId]/route",pathname:"/api/conversations/[threadId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/conversations/[threadId]/route.ts",nextConfigOutput:"",userland:C,...{}}),{workAsyncStorage:S,workUnitAsyncStorage:I,serverHooks:_}=E;async function M(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),E.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/conversations/[threadId]/route";R=R.replace(/\/index$/,"")||"/";let w=await E.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:x,deploymentId:y,params:A,nextConfig:C,parsedUrl:S,isDraftMode:I,prerenderManifest:_,routerServerContext:M,isOnDemandRevalidate:P,revalidateOnlyGenerated:b,resolvedPathname:O,clientReferenceManifest:T,serverActionsManifest:D}=w,N=(0,i.normalizeAppPath)(R),U=!!(_.dynamicRoutes[N]||_.routes[O]),k=async()=>((null==M?void 0:M.render404)?await M.render404(e,t,S,!1):t.end("This page could not be found"),null);if(U&&!I){let e=!!_.routes[O],t=_.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await k();throw new g.NoFallbackError}}let q=null;!U||E.isDev||I||(q="/index"===(q=O)?"/":q);let j=!0===E.isDev||!U,H=U&&!j;D&&T&&(0,a.setManifestsSingleton)({page:R,clientReferenceManifest:T,serverActionsManifest:D});let L=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==M?void 0:M.isWrappedByNextServer),V=!!(0,s.getRequestMeta)(e,"minimalMode"),G=(0,s.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,C,_,V);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let B={params:A,previewProps:_.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:j,incrementalCache:G,cacheLifeProfiles:C.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>E.onRequestError(e,t,n,s,M)},sharedContext:{buildId:x,deploymentId:y}},z=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(z,(0,d.signalFromNodeResponse)(t));try{let s,a=async e=>E.handle(X,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${L} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${L} ${R}`)}),i=async s=>{var o,i;let l=async({previousCacheEntry:r})=>{try{if(!V&&P&&b&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await a(s);e.fetchMetrics=B.renderOpts.fetchMetrics;let i=B.renderOpts.pendingWaitUntil;i&&n.waitUntil&&(n.waitUntil(i),i=void 0);let l=B.renderOpts.collectedTags;if(!U)return await (0,p.sendResponse)(z,W,o,B.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,n=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:P})},!1,M),t}},d=await E.handleResponse({req:e,nextConfig:C,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:_,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:b,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:V});if(!U)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});V||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return V&&U||u.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(z,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(s=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${L} ${R}`,kind:o.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof g.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:P})},!1,M),U)throw t;return await (0,p.sendResponse)(z,W,new Response(null,{status:500})),null}}e.s(["handler",0,M,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:I})},"routeModule",0,E,"serverHooks",0,_,"workAsyncStorage",0,S,"workUnitAsyncStorage",0,I],65253)}];
1
+ module.exports=[57764,(e,t,r)=>{t.exports=e.x("node:url",()=>require("node:url"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},12714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},61253,e=>{"use strict";let t=new Set([204,205,304]);function r(e,r){var n;let s,a=function(e){if(!e)return null;let t=(process.env.ACP_UI_CORS_ORIGINS??"").split(",").map(e=>e.trim()).filter(Boolean);return t.includes("*")?"*":t.includes(e)?e:null}(e.headers.get("origin"));if(!a)return r;let o=new Headers(r.headers);o.set("Access-Control-Allow-Origin",a),o.set("Access-Control-Allow-Methods","GET,POST,PATCH,DELETE,OPTIONS"),o.set("Access-Control-Allow-Headers",e.headers.get("access-control-request-headers")??"Content-Type, Authorization, X-Requested-With, Accept"),o.set("Access-Control-Max-Age","86400"),(s=o.get("Vary"))?s.split(",").map(e=>e.trim().toLowerCase()).includes("origin")||o.set("Vary",`${s}, Origin`):o.set("Vary","Origin");let i=(n=r.status,t.has(n))?null:r.body;return null===i&&(o.delete("content-length"),o.delete("transfer-encoding")),new Response(i,{headers:o,status:r.status,statusText:r.statusText})}e.s(["corsPreflightResponse",0,function(e){return r(e,new Response(null,{status:204}))},"withCors",0,r],61253)},21702,e=>{"use strict";var t=e.i(74533),r=e.i(2157),n=e.i(50227);let s="bypassPermissions";function a(e){if(function(e){try{return process.kill(e,0),!0}catch{return!1}}(e))try{process.kill(e,"SIGKILL")}catch{}}function o(e){let r,n,s=(r=e.model,(n=r?.agentProcess)&&"object"==typeof n?n:null),o=s?.pid,i=o?function e(r,n=new Set){if("win32"===process.platform||n.has(r))return[];n.add(r);let s="";try{s=(0,t.execFileSync)("pgrep",["-P",String(r)],{encoding:"utf8",stdio:["ignore","pipe","ignore"]})}catch{return[]}return s.split(/\s+/).map(e=>Number(e)).filter(e=>Number.isInteger(e)&&e>0).flatMap(t=>[t,...e(t,n)])}(o):[];try{e.cleanup()}catch{}for(let e of i)a(e);o&&a(o)}class i{sessions=new Map;get(e){return this.sessions.get(e)??null}set(e,t){t.metadata.lastUsedAt=Date.now(),this.sessions.set(e,t)}touch(e){let t=this.sessions.get(e);t&&(t.metadata.lastUsedAt=Date.now())}updateMetadata(e,t){let r=this.sessions.get(e);r&&(r.metadata={...r.metadata,...t,lastUsedAt:Date.now()})}cleanupIdle(e=Date.now()){for(let[t,r]of this.sessions)e-r.metadata.lastUsedAt<=18e5||(o(r.provider),this.sessions.delete(t))}cleanup(e){let t=this.sessions.get(e);return!!t&&(o(t.provider),this.sessions.delete(e),!0)}list(){return[...this.sessions.values()].map(e=>e.metadata)}}let l=globalThis;e.s(["DEFAULT_PERMISSION_MODE",0,s,"createAcpSessionKey",0,function(e){return[e.provider,encodeURIComponent(e.workspacePath),encodeURIComponent(e.threadId)].join(":")},"createInitialMetadata",0,function({sessionKey:e,threadId:t,provider:r,workspacePath:n,model:a,modeId:o,thoughtLevel:i,permissionMode:l=s}){return{sessionKey:e,threadId:t,provider:r,workspacePath:n,acpSessionId:null,resumedAcpSessionId:null,sessionTitle:null,model:a||null,modeId:o||null,thoughtLevel:i||null,permissionMode:l,runState:"queued",coldStart:!0,warnings:[],lastUsedAt:Date.now(),capabilitySnapshot:null,builtinToolRuntimeKey:null}},"getGlobalAcpSessionStore",0,function(){let e=l.__acp2AiSdkSessionStore??new i;return l.__acp2AiSdkSessionStore=e,e},"normalizeThreadId",0,function(e){return String(e||"").trim()||"default"},"normalizeWorkspacePath",0,function(e){let t=n.default.resolve(process.env.ACP_UI_DEFAULT_WORKSPACE_PATH||process.cwd()),s="string"==typeof e&&e.trim()?e.trim():t,a=n.default.resolve(s);try{return r.default.statSync(a).isDirectory()?a:t}catch{return t}}])},14691,e=>{"use strict";let t=["claude","codex","gemini","opencode"],r={claude:"bypassPermissions",codex:"full-access",gemini:"bypassPermissions",opencode:"build"},n={openai:"codex"},s={claude:{provider:"claude",label:"Claude",command:"npx",args:["-y","@agentclientprotocol/claude-agent-acp@^0.39.0"],defaultModel:"sonnet",defaultModeId:r.claude,supportsImages:!0},codex:{provider:"codex",label:"Codex",command:"npx",args:["-y","@zed-industries/codex-acp@^0.15.0"],defaultModeId:r.codex,supportsImages:!0},gemini:{provider:"gemini",label:"Gemini",command:"gemini",args:["--acp","--skip-trust"],fallbackCommands:[{command:"npx",args:["-y","@google/gemini-cli@^0.44.1","--acp","--skip-trust"]}],defaultModel:"gemini-3-pro-preview",defaultModeId:r.gemini,supportsImages:!1},opencode:{provider:"opencode",label:"OpenCode",command:"npx",args:["-y","opencode-ai@^1.15.13","acp"],defaultModel:"opencode/big-pickle",defaultModeId:r.opencode,supportsImages:!1}};function a(e){let r=String(e||"codex").trim().toLowerCase(),s=n[r]??r;return t.includes(s)?s:"codex"}function o(e){let[t,...r]=(e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g)??[]).map(e=>e.replace(/^["']|["']$/g,""));return{command:t||e,args:r}}function i(e){if("string"==typeof e){let t=e.trim();return t?o(t):null}if(!e||"object"!=typeof e||Array.isArray(e))return null;let t="string"==typeof e.command&&e.command.trim()?e.command.trim():null;return t?{command:t,args:Array.isArray(e.args)?e.args.map(e=>String(e).trim()).filter(e=>!!e):void 0}:null}function l(e,t,r){r&&(e[t]={...e[t],...r})}e.s(["ACP_PROVIDER_DEFAULT_MODE_IDS",0,r,"getAcpProviderDefaultModeId",0,function(e){return s[a(e)].defaultModeId??null},"normalizeAcpProvider",0,a,"resolveAcpProviderConfig",0,function(e,r=function(e=process.env){let r={},n=e.ACP_PROVIDER_COMMAND_OVERRIDES||e.AXHUB_ACP_COMMAND_OVERRIDES;if(n)try{let e=JSON.parse(n);for(let[t,n]of Object.entries(e)){let e=a(t);l(r,e,function(e){if("string"==typeof e){let t=e.trim();return t?o(t):null}if(!e||"object"!=typeof e||Array.isArray(e))return null;let t="string"==typeof e.command&&e.command.trim()?e.command.trim():null,r=Array.isArray(e.args)?e.args.map(e=>String(e).trim()).filter(e=>!!e):void 0,n=Array.isArray(e.fallbackCommands)?e.fallbackCommands.map(i).filter(e=>!!e):void 0,s="number"==typeof e.sessionDelayMs&&Number.isFinite(e.sessionDelayMs)&&e.sessionDelayMs>=0?e.sessionDelayMs:void 0,a={};return t&&(a.command=t),r&&(a.args=r),n&&(a.fallbackCommands=n),"string"==typeof e.authMethodId&&(a.authMethodId=e.authMethodId.trim()||null),void 0!==s&&(a.sessionDelayMs=s),"boolean"==typeof e.persistSession&&(a.persistSession=e.persistSession),"string"==typeof e.defaultModel&&(a.defaultModel=e.defaultModel.trim()||null),"string"==typeof e.defaultModeId&&(a.defaultModeId=e.defaultModeId.trim()||null),Object.keys(a).length?a:null}(n))}}catch{}for(let n of t){let t=`ACP_${n.toUpperCase()}`,s=e[`${t}_COMMAND`];s&&l(r,n,o(s));let a=e[`${t}_AUTH_METHOD_ID`],i=function(e){if(void 0===e)return;let t=Number(e);return Number.isFinite(t)&&t>=0?t:void 0}(e[`${t}_SESSION_DELAY_MS`]),d=function(e){if(void 0===e)return;let t=e.trim().toLowerCase();return!!["1","true","yes","on"].includes(t)||!["0","false","no","off"].includes(t)&&void 0}(e[`${t}_PERSIST_SESSION`]),u=e[`${t}_DEFAULT_MODEL`],c=e[`${t}_DEFAULT_MODE_ID`],p={};void 0!==a&&(p.authMethodId=a.trim()||null),void 0!==i&&(p.sessionDelayMs=i),void 0!==d&&(p.persistSession=d),void 0!==u&&(p.defaultModel=u.trim()||null),void 0!==c&&(p.defaultModeId=c.trim()||null),Object.keys(p).length&&l(r,n,p)}return r}()){let n=a(e);return{...s[n],...r[n]??{}}}])},65253,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),s=e.i(59756),a=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),c=e.i(47587),p=e.i(66012),m=e.i(70101),f=e.i(74838),h=e.i(10372),g=e.i(93695);e.i(52474);var v=e.i(220),y=e.i(61253),R=e.i(61735);async function w(e,t){let{threadId:r}=await t.params,n=new URL(e.url).searchParams.get("workspacePath"),s=await (0,R.getConversation)(r,n);return s?(0,y.withCors)(e,Response.json({thread:s})):(0,y.withCors)(e,Response.json({error:"未找到对话"},{status:404}))}async function x(e,t){let{threadId:r}=await t.params,n=new URL(e.url).searchParams.get("workspacePath"),s=await e.json().catch(()=>({}));return"string"==typeof s.title?(0,y.withCors)(e,Response.json({thread:await (0,R.renameConversation)(r,s.title,n)})):"boolean"==typeof s.archived?(0,y.withCors)(e,Response.json({thread:await (0,R.archiveConversation)(r,s.archived,n)})):(0,y.withCors)(e,Response.json({error:"需要提供标题或归档状态"},{status:400}))}async function A(e,t){let{threadId:r}=await t.params,n=new URL(e.url);return await (0,R.deleteConversation)(r,n.searchParams.get("workspacePath")),(0,y.withCors)(e,new Response(null,{status:204}))}e.s(["DELETE",0,A,"GET",0,w,"OPTIONS",0,function(e){return(0,y.corsPreflightResponse)(e)},"PATCH",0,x,"dynamic",0,"force-dynamic"],23092);var C=e.i(23092);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/conversations/[threadId]/route",pathname:"/api/conversations/[threadId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/conversations/[threadId]/route.ts",nextConfigOutput:"",userland:C,...{}}),{workAsyncStorage:S,workUnitAsyncStorage:I,serverHooks:_}=E;async function b(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),E.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/api/conversations/[threadId]/route";y=y.replace(/\/index$/,"")||"/";let R=await E.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:A,nextConfig:C,parsedUrl:S,isDraftMode:I,prerenderManifest:_,routerServerContext:b,isOnDemandRevalidate:M,revalidateOnlyGenerated:P,resolvedPathname:O,clientReferenceManifest:T,serverActionsManifest:D}=R,N=(0,i.normalizeAppPath)(y),k=!!(_.dynamicRoutes[N]||_.routes[O]),U=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,S,!1):t.end("This page could not be found"),null);if(k&&!I){let e=!!_.routes[O],t=_.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await U();throw new g.NoFallbackError}}let q=null;!k||E.isDev||I||(q="/index"===(q=O)?"/":q);let j=!0===E.isDev||!k,H=k&&!j;D&&T&&(0,o.setManifestsSingleton)({page:y,clientReferenceManifest:T,serverActionsManifest:D});let L=e.method||"GET",$=(0,a.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==b?void 0:b.isWrappedByNextServer),V=!!(0,s.getRequestMeta)(e,"minimalMode"),G=(0,s.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,C,_,V);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let B={params:A,previewProps:_.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:j,incrementalCache:G,cacheLifeProfiles:C.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>E.onRequestError(e,t,n,s,b)},sharedContext:{buildId:w,deploymentId:x}},z=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(z,(0,d.signalFromNodeResponse)(t));try{let s,o=async e=>E.handle(X,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${L} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",n),s.updateName(t))}else e.updateName(`${L} ${y}`)}),i=async s=>{var a,i;let l=async({previousCacheEntry:r})=>{try{if(!V&&M&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await o(s);e.fetchMetrics=B.renderOpts.fetchMetrics;let i=B.renderOpts.pendingWaitUntil;i&&n.waitUntil&&(n.waitUntil(i),i=void 0);let l=B.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(z,W,a,B.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[h.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=h.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,n=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=h.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:M})},!1,b),t}},d=await E.handleResponse({req:e,nextConfig:C,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:_,isRoutePPREnabled:!1,isOnDemandRevalidate:M,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:V});if(!k)return null;if((null==d||null==(a=d.value)?void 0:a.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});V||t.setHeader("x-nextjs-cache",M?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),I&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,m.fromNodeOutgoingHttpHeaders)(d.value.headers);return V&&k||u.delete(h.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(z,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(s=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${L} ${y}`,kind:a.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof g.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:M})},!1,b),k)throw t;return await (0,p.sendResponse)(z,W,new Response(null,{status:500})),null}}e.s(["handler",0,b,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:I})},"routeModule",0,E,"serverHooks",0,_,"workAsyncStorage",0,S,"workUnitAsyncStorage",0,I],65253)}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0aovkxs._.js.map