@axhub/acp 0.1.0
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.
- package/.next/BUILD_ID +1 -0
- package/.next/app-path-routes-manifest.json +21 -0
- package/.next/build-manifest.json +22 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +13 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +90 -0
- package/.next/required-server-files.js +336 -0
- package/.next/required-server-files.json +336 -0
- package/.next/routes-manifest.json +171 -0
- package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_global-error/page/build-manifest.json +18 -0
- package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_global-error/page.js +10 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +15 -0
- package/.next/server/app/_global-error.rsc +15 -0
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +15 -0
- package/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_not-found/page/build-manifest.json +18 -0
- package/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_not-found/page.js +13 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +16 -0
- package/.next/server/app/_not-found.rsc +17 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +17 -0
- package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_not-found.segments/_index.segment.rsc +6 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/.next/server/app/api/acp/capabilities/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/acp/capabilities/route/build-manifest.json +9 -0
- package/.next/server/app/api/acp/capabilities/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/acp/capabilities/route.js +9 -0
- package/.next/server/app/api/acp/capabilities/route.js.nft.json +1 -0
- package/.next/server/app/api/acp/capabilities/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/acp/commands/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/acp/commands/route/build-manifest.json +9 -0
- package/.next/server/app/api/acp/commands/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/acp/commands/route.js +6 -0
- package/.next/server/app/api/acp/commands/route.js.nft.json +1 -0
- package/.next/server/app/api/acp/commands/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/acp/runtime/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/acp/runtime/route/build-manifest.json +9 -0
- package/.next/server/app/api/acp/runtime/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/acp/runtime/route.js +6 -0
- package/.next/server/app/api/acp/runtime/route.js.nft.json +1 -0
- package/.next/server/app/api/acp/runtime/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/chat/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/chat/route/build-manifest.json +9 -0
- package/.next/server/app/api/chat/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/chat/route.js +9 -0
- package/.next/server/app/api/chat/route.js.nft.json +1 -0
- package/.next/server/app/api/chat/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/conversations/[threadId]/messages/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/conversations/[threadId]/messages/route/build-manifest.json +9 -0
- package/.next/server/app/api/conversations/[threadId]/messages/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/conversations/[threadId]/messages/route.js +8 -0
- package/.next/server/app/api/conversations/[threadId]/messages/route.js.nft.json +1 -0
- package/.next/server/app/api/conversations/[threadId]/messages/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/conversations/[threadId]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/conversations/[threadId]/route/build-manifest.json +9 -0
- package/.next/server/app/api/conversations/[threadId]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/conversations/[threadId]/route.js +8 -0
- package/.next/server/app/api/conversations/[threadId]/route.js.nft.json +1 -0
- package/.next/server/app/api/conversations/[threadId]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/conversations/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/conversations/route/build-manifest.json +9 -0
- package/.next/server/app/api/conversations/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/conversations/route.js +8 -0
- package/.next/server/app/api/conversations/route.js.nft.json +1 -0
- package/.next/server/app/api/conversations/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/local-files/image/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/local-files/image/route/build-manifest.json +9 -0
- package/.next/server/app/api/local-files/image/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/local-files/image/route.js +6 -0
- package/.next/server/app/api/local-files/image/route.js.nft.json +1 -0
- package/.next/server/app/api/local-files/image/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/local-files/open/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/local-files/open/route/build-manifest.json +9 -0
- package/.next/server/app/api/local-files/open/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/local-files/open/route.js +6 -0
- package/.next/server/app/api/local-files/open/route.js.nft.json +1 -0
- package/.next/server/app/api/local-files/open/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/output-artifacts/workspace/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/output-artifacts/workspace/route/build-manifest.json +9 -0
- package/.next/server/app/api/output-artifacts/workspace/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/output-artifacts/workspace/route.js +6 -0
- package/.next/server/app/api/output-artifacts/workspace/route.js.nft.json +1 -0
- package/.next/server/app/api/output-artifacts/workspace/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/tools/image-generation/files/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/tools/image-generation/files/[id]/route/build-manifest.json +9 -0
- package/.next/server/app/api/tools/image-generation/files/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/tools/image-generation/files/[id]/route.js +7 -0
- package/.next/server/app/api/tools/image-generation/files/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/tools/image-generation/files/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/tools/image-generation/records/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/tools/image-generation/records/route/build-manifest.json +9 -0
- package/.next/server/app/api/tools/image-generation/records/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/tools/image-generation/records/route.js +7 -0
- package/.next/server/app/api/tools/image-generation/records/route.js.nft.json +1 -0
- package/.next/server/app/api/tools/image-generation/records/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/tools/user-choice/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/tools/user-choice/route/build-manifest.json +9 -0
- package/.next/server/app/api/tools/user-choice/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/tools/user-choice/route.js +6 -0
- package/.next/server/app/api/tools/user-choice/route.js.nft.json +1 -0
- package/.next/server/app/api/tools/user-choice/route_client-reference-manifest.js +3 -0
- package/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
- package/.next/server/app/favicon.ico/route/build-manifest.json +9 -0
- package/.next/server/app/favicon.ico/route.js +7 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/page/app-paths-manifest.json +3 -0
- package/.next/server/app/page/build-manifest.json +18 -0
- package/.next/server/app/page/next-font-manifest.json +6 -0
- package/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/page/server-reference-manifest.json +4 -0
- package/.next/server/app/page.js +14 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +3 -0
- package/.next/server/app/session/[provider]/[sessionId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/session/[provider]/[sessionId]/page/build-manifest.json +18 -0
- package/.next/server/app/session/[provider]/[sessionId]/page/next-font-manifest.json +6 -0
- package/.next/server/app/session/[provider]/[sessionId]/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/session/[provider]/[sessionId]/page/server-reference-manifest.json +4 -0
- package/.next/server/app/session/[provider]/[sessionId]/page.js +16 -0
- package/.next/server/app/session/[provider]/[sessionId]/page.js.nft.json +1 -0
- package/.next/server/app/session/[provider]/[sessionId]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/thread/[threadId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/thread/[threadId]/page/build-manifest.json +18 -0
- package/.next/server/app/thread/[threadId]/page/next-font-manifest.json +6 -0
- package/.next/server/app/thread/[threadId]/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/thread/[threadId]/page/server-reference-manifest.json +4 -0
- package/.next/server/app/thread/[threadId]/page.js +15 -0
- package/.next/server/app/thread/[threadId]/page.js.nft.json +1 -0
- package/.next/server/app/thread/[threadId]/page_client-reference-manifest.js +3 -0
- package/.next/server/app-paths-manifest.json +21 -0
- package/.next/server/chunks/0zjb_server_app_api_conversations_[threadId]_messages_route_actions_0poed25.js +3 -0
- package/.next/server/chunks/0zjb_server_app_api_tools_image-generation_files_[id]_route_actions_0-tbvpw.js +3 -0
- package/.next/server/chunks/0zjb_server_app_api_tools_image-generation_records_route_actions_0vu38s2.js +3 -0
- package/.next/server/chunks/[externals]_next_dist_0.m~pv6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__04xq..~._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__07sxz4_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dwg3fr._.js +178 -0
- package/.next/server/chunks/[root-of-the-server]__0eanzwb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0gqx~5k._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0iokgmz._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0j-lxr4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ly6hop._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0nil~wi._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0tmhg7j._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0txmfnw._.js +4 -0
- package/.next/server/chunks/[root-of-the-server]__0wo0b8z._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0~mtsby._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__10-n4io._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__10g507v._.js +3 -0
- package/.next/server/chunks/[turbopack]_runtime.js +903 -0
- package/.next/server/chunks/_next-internal_server_app_api_acp_capabilities_route_actions_08lck.p.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_acp_commands_route_actions_0as.2z6.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_acp_runtime_route_actions_0o1ybkn.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_chat_route_actions_0tmcf6..js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_conversations_[threadId]_route_actions_12yq8z_.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_conversations_route_actions_131xv69.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_local-files_image_route_actions_0f~10mn.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_local-files_open_route_actions_026mg-2.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_output-artifacts_workspace_route_actions_1239-n7.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_tools_user-choice_route_actions_09xqbn_.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_095lj93.js +3 -0
- package/.next/server/chunks/instrumentation_ts_0zq9-xz._.js +3 -0
- package/.next/server/chunks/lib_conversations_store_ts_0gzcj38._.js +7 -0
- package/.next/server/chunks/node_modules_@vercel_oidc_dist_token_0zdeuds.js +3 -0
- package/.next/server/chunks/node_modules_next_00hve1e._.js +13 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__02qo-zr._.js +19 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0488vn3._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__08e5v4-._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__08iwq-u._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0a1m1mq._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0i9qg2.._.js +33 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0icm-_h._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0piffp7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xn-a8p._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0~c929r._.js +33 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
- package/.next/server/chunks/ssr/_0-oaqqe._.js +6 -0
- package/.next/server/chunks/ssr/_006q235._.js +3 -0
- package/.next/server/chunks/ssr/_03.pm1z._.js +108 -0
- package/.next/server/chunks/ssr/_0txwi90._.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_09-gtaw.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_session_[provider]_[sessionId]_page_actions_0_67qh_.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_thread_[threadId]_page_actions_11mcypo.js +3 -0
- package/.next/server/chunks/ssr/lib_conversations_store_ts_0-pd6d3._.js +4 -0
- package/.next/server/chunks/ssr/node_modules_09w7yel._.js +33 -0
- package/.next/server/chunks/ssr/node_modules_0tev5qq._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_@vercel_oidc_dist_token_0yj7kvj.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_09jzzl8._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js +6 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_0t-hj0x._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_00297nb.js +4 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_002l7yi.js +4 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_02suzhc.js +4 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_04x9gct.js +4 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0nsg22r.js +4 -0
- package/.next/server/chunks/tools_image-generation_service_mjs_0k_th7-._.js +3 -0
- package/.next/server/edge/chunks/_0e82_ds._.js +3 -0
- package/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_00ue99t.js +3 -0
- package/.next/server/functions-config-manifest.json +11 -0
- package/.next/server/instrumentation/middleware-manifest.json +12 -0
- package/.next/server/instrumentation.js +4 -0
- package/.next/server/instrumentation.js.nft.json +1 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +22 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +6 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/prefetch-hints.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +5 -0
- package/.next/static/chunks/01xlw8hd842-c.js +1 -0
- package/.next/static/chunks/03edqrb4zdj~g.js +31 -0
- package/.next/static/chunks/03qq5fxc~pg00.js +1 -0
- package/.next/static/chunks/03~yq9q893hmn.js +1 -0
- package/.next/static/chunks/0l-_vd.~~z2bw.js +2 -0
- package/.next/static/chunks/0qid5lwcbx9s0.js +1 -0
- package/.next/static/chunks/0t.k8~x~sghva.js +4 -0
- package/.next/static/chunks/0tmpufzgpw2-w.js +1 -0
- package/.next/static/chunks/0v_ue~msygctw.js +1 -0
- package/.next/static/chunks/0y2l0xgouorae.css +1 -0
- package/.next/static/chunks/0zftsky7gte_9.js +102 -0
- package/.next/static/chunks/13nvdsh0e09d0.js +1 -0
- package/.next/static/chunks/1610ha42i.fl~.css +1 -0
- package/.next/static/chunks/turbopack-0mxz-ap91rcoe.js +1 -0
- package/.next/static/mbk_N5Gs4ZJg3lciRL6ya/_buildManifest.js +11 -0
- package/.next/static/mbk_N5Gs4ZJg3lciRL6ya/_clientMiddlewareManifest.js +1 -0
- package/.next/static/mbk_N5Gs4ZJg3lciRL6ya/_ssgManifest.js +1 -0
- package/.next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
- package/README.md +113 -0
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/bin/acp.mjs +224 -0
- package/dist/app/globals.css +146 -0
- package/dist/components/assistant-ui/acp-command-menu.d.ts +2 -0
- package/dist/components/assistant-ui/acp-command-menu.mjs +176 -0
- package/dist/components/assistant-ui/acp-elicitation-option-list.d.ts +3 -0
- package/dist/components/assistant-ui/acp-elicitation-option-list.mjs +157 -0
- package/dist/components/assistant-ui/acp-selectors.d.ts +2 -0
- package/dist/components/assistant-ui/acp-selectors.mjs +301 -0
- package/dist/components/assistant-ui/acp-tool-content.d.ts +4 -0
- package/dist/components/assistant-ui/acp-tool-content.mjs +127 -0
- package/dist/components/assistant-ui/addons/host.d.ts +4 -0
- package/dist/components/assistant-ui/addons/host.mjs +85 -0
- package/dist/components/assistant-ui/addons/image-generation-records-section.d.ts +14 -0
- package/dist/components/assistant-ui/addons/image-generation-records-section.mjs +116 -0
- package/dist/components/assistant-ui/addons/output-artifacts-section.d.ts +9 -0
- package/dist/components/assistant-ui/addons/output-artifacts-section.mjs +24 -0
- package/dist/components/assistant-ui/addons/output-artifacts.d.ts +14 -0
- package/dist/components/assistant-ui/addons/output-artifacts.mjs +87 -0
- package/dist/components/assistant-ui/addons/plan-addon.d.ts +2 -0
- package/dist/components/assistant-ui/addons/plan-addon.mjs +39 -0
- package/dist/components/assistant-ui/addons/plan-data.d.ts +5 -0
- package/dist/components/assistant-ui/addons/plan-data.mjs +97 -0
- package/dist/components/assistant-ui/addons/registry.d.ts +2 -0
- package/dist/components/assistant-ui/addons/registry.mjs +8 -0
- package/dist/components/assistant-ui/addons/types.d.ts +13 -0
- package/dist/components/assistant-ui/addons/types.mjs +1 -0
- package/dist/components/assistant-ui/attachment.d.ts +7 -0
- package/dist/components/assistant-ui/attachment.mjs +88 -0
- package/dist/components/assistant-ui/file.d.ts +37 -0
- package/dist/components/assistant-ui/file.mjs +107 -0
- package/dist/components/assistant-ui/image-generation-settings-dialog.d.ts +4 -0
- package/dist/components/assistant-ui/image-generation-settings-dialog.mjs +28 -0
- package/dist/components/assistant-ui/image.d.ts +51 -0
- package/dist/components/assistant-ui/image.mjs +215 -0
- package/dist/components/assistant-ui/markdown-text.d.ts +2 -0
- package/dist/components/assistant-ui/markdown-text.mjs +208 -0
- package/dist/components/assistant-ui/thread/composer.d.ts +27 -0
- package/dist/components/assistant-ui/thread/composer.mjs +15 -0
- package/dist/components/assistant-ui/thread/context-chips.d.ts +2 -0
- package/dist/components/assistant-ui/thread/context-chips.mjs +123 -0
- package/dist/components/assistant-ui/thread/empty-state.d.ts +9 -0
- package/dist/components/assistant-ui/thread/empty-state.mjs +24 -0
- package/dist/components/assistant-ui/thread/index.d.ts +11 -0
- package/dist/components/assistant-ui/thread/index.mjs +43 -0
- package/dist/components/assistant-ui/thread/message-list.d.ts +3 -0
- package/dist/components/assistant-ui/thread/message-list.mjs +16 -0
- package/dist/components/assistant-ui/thread/messages.d.ts +9 -0
- package/dist/components/assistant-ui/thread/messages.mjs +71 -0
- package/dist/components/assistant-ui/thread/scroll-to-bottom.d.ts +2 -0
- package/dist/components/assistant-ui/thread/scroll-to-bottom.mjs +8 -0
- package/dist/components/assistant-ui/thread-list.d.ts +2 -0
- package/dist/components/assistant-ui/thread-list.mjs +31 -0
- package/dist/components/assistant-ui/thread.d.ts +1 -0
- package/dist/components/assistant-ui/thread.mjs +2 -0
- package/dist/components/assistant-ui/threadlist-sidebar.d.ts +6 -0
- package/dist/components/assistant-ui/threadlist-sidebar.mjs +32 -0
- package/dist/components/assistant-ui/tool-fallback.d.ts +31 -0
- package/dist/components/assistant-ui/tool-fallback.mjs +114 -0
- package/dist/components/assistant-ui/tooltip-icon-button.d.ts +7 -0
- package/dist/components/assistant-ui/tooltip-icon-button.mjs +23 -0
- package/dist/components/icons/github.d.ts +3 -0
- package/dist/components/icons/github.mjs +4 -0
- package/dist/components/theme-toggle.d.ts +1 -0
- package/dist/components/theme-toggle.mjs +26 -0
- package/dist/components/tool-ui/option-list.d.ts +34 -0
- package/dist/components/tool-ui/option-list.mjs +163 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/avatar.mjs +40 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.mjs +47 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.mjs +27 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/dialog.mjs +58 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.mjs +18 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.mjs +20 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.mjs +26 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/select.mjs +59 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.mjs +20 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sheet.mjs +61 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/sidebar.mjs +245 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.mjs +18 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/switch.mjs +20 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.mjs +32 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.mjs +32 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.mjs +15 -0
- package/dist/lib/acp2aisdk/capabilities.d.ts +6 -0
- package/dist/lib/acp2aisdk/capabilities.mjs +210 -0
- package/dist/lib/acp2aisdk/capability-cache.d.ts +17 -0
- package/dist/lib/acp2aisdk/capability-cache.mjs +259 -0
- package/dist/lib/acp2aisdk/client-context.d.ts +38 -0
- package/dist/lib/acp2aisdk/client-context.mjs +247 -0
- package/dist/lib/acp2aisdk/commands.d.ts +11 -0
- package/dist/lib/acp2aisdk/commands.mjs +121 -0
- package/dist/lib/acp2aisdk/config-options.d.ts +3 -0
- package/dist/lib/acp2aisdk/config-options.mjs +86 -0
- package/dist/lib/acp2aisdk/context.d.ts +88 -0
- package/dist/lib/acp2aisdk/context.mjs +33 -0
- package/dist/lib/acp2aisdk/default-capabilities.d.ts +275 -0
- package/dist/lib/acp2aisdk/default-capabilities.mjs +421 -0
- package/dist/lib/acp2aisdk/elicitation.d.ts +37 -0
- package/dist/lib/acp2aisdk/elicitation.mjs +193 -0
- package/dist/lib/acp2aisdk/hitl.d.ts +25 -0
- package/dist/lib/acp2aisdk/hitl.mjs +134 -0
- package/dist/lib/acp2aisdk/index.d.ts +12 -0
- package/dist/lib/acp2aisdk/index.mjs +182 -0
- package/dist/lib/acp2aisdk/mcp-servers.d.ts +17 -0
- package/dist/lib/acp2aisdk/mcp-servers.mjs +153 -0
- package/dist/lib/acp2aisdk/model-selection.d.ts +16 -0
- package/dist/lib/acp2aisdk/model-selection.mjs +65 -0
- package/dist/lib/acp2aisdk/prompt-history.d.ts +9 -0
- package/dist/lib/acp2aisdk/prompt-history.mjs +168 -0
- package/dist/lib/acp2aisdk/provider-compat.d.ts +85 -0
- package/dist/lib/acp2aisdk/provider-compat.mjs +501 -0
- package/dist/lib/acp2aisdk/provider-registry.d.ts +15 -0
- package/dist/lib/acp2aisdk/provider-registry.mjs +196 -0
- package/dist/lib/acp2aisdk/response.d.ts +3 -0
- package/dist/lib/acp2aisdk/response.mjs +33 -0
- package/dist/lib/acp2aisdk/runtime-options.d.ts +2 -0
- package/dist/lib/acp2aisdk/runtime-options.mjs +10 -0
- package/dist/lib/acp2aisdk/session-runtime.d.ts +5 -0
- package/dist/lib/acp2aisdk/session-runtime.mjs +186 -0
- package/dist/lib/acp2aisdk/session-store.d.ts +31 -0
- package/dist/lib/acp2aisdk/session-store.mjs +169 -0
- package/dist/lib/acp2aisdk/skill-command-cache.d.ts +20 -0
- package/dist/lib/acp2aisdk/skill-command-cache.mjs +122 -0
- package/dist/lib/acp2aisdk/stream-metadata.d.ts +10 -0
- package/dist/lib/acp2aisdk/stream-metadata.mjs +251 -0
- package/dist/lib/acp2aisdk/types.d.ts +129 -0
- package/dist/lib/acp2aisdk/types.mjs +0 -0
- package/dist/lib/acp2aisdk/vendor/acp-ai-provider/index.d.ts +10 -0
- package/dist/lib/acp2aisdk/vendor/acp-ai-provider/index.mjs +10 -0
- package/dist/lib/acp2aisdk/vendor/acp-ai-provider/package/index.mjs +1945 -0
- package/dist/lib/api/client.d.ts +93 -0
- package/dist/lib/api/client.mjs +199 -0
- package/dist/lib/api/cors.d.ts +2 -0
- package/dist/lib/api/cors.mjs +47 -0
- package/dist/lib/conversations/client-adapter.d.ts +21 -0
- package/dist/lib/conversations/client-adapter.mjs +329 -0
- package/dist/lib/conversations/message-repository.d.ts +8 -0
- package/dist/lib/conversations/message-repository.mjs +87 -0
- package/dist/lib/conversations/store.d.ts +17 -0
- package/dist/lib/conversations/store.mjs +678 -0
- package/dist/lib/conversations/types.d.ts +92 -0
- package/dist/lib/conversations/types.mjs +0 -0
- package/dist/lib/local-image-files.d.ts +5 -0
- package/dist/lib/local-image-files.mjs +76 -0
- package/dist/lib/local-image-paths.d.ts +7 -0
- package/dist/lib/local-image-paths.mjs +106 -0
- package/dist/lib/output-artifacts/workspace.d.ts +8 -0
- package/dist/lib/output-artifacts/workspace.mjs +174 -0
- package/dist/lib/provider-history/codex.d.ts +4 -0
- package/dist/lib/provider-history/codex.mjs +272 -0
- package/dist/lib/provider-history/index.d.ts +7 -0
- package/dist/lib/provider-history/index.mjs +88 -0
- package/dist/lib/provider-history/types.d.ts +31 -0
- package/dist/lib/provider-history/types.mjs +0 -0
- package/dist/lib/server-runtime.d.ts +22 -0
- package/dist/lib/server-runtime.mjs +78 -0
- package/dist/lib/url-routing.d.ts +18 -0
- package/dist/lib/url-routing.mjs +59 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.mjs +5 -0
- package/dist/lib/workspace-metadata.d.ts +2 -0
- package/dist/lib/workspace-metadata.mjs +20 -0
- package/dist/public-api/react.d.ts +14 -0
- package/dist/public-api/react.mjs +16 -0
- package/dist/public-api/runtime.d.ts +8 -0
- package/dist/public-api/runtime.mjs +7 -0
- package/dist/public-api/server.d.ts +5 -0
- package/dist/public-api/server.mjs +4 -0
- package/dist/public-api/styles.css +1 -0
- package/dist/public-api/ui.d.ts +13 -0
- package/dist/public-api/ui.mjs +13 -0
- package/dist/tools/client-registry.d.ts +9 -0
- package/dist/tools/client-registry.mjs +70 -0
- package/dist/tools/image-generation/client.d.ts +18 -0
- package/dist/tools/image-generation/client.mjs +31 -0
- package/dist/tools/image-generation/config.d.ts +9 -0
- package/dist/tools/image-generation/config.example.json +14 -0
- package/dist/tools/image-generation/config.mjs +11 -0
- package/dist/tools/image-generation/mcp-server.mjs +87 -0
- package/dist/tools/image-generation/registry.d.ts +13 -0
- package/dist/tools/image-generation/registry.mjs +30 -0
- package/dist/tools/image-generation/server.d.ts +6 -0
- package/dist/tools/image-generation/server.mjs +58 -0
- package/dist/tools/image-generation/service.mjs +978 -0
- package/dist/tools/image-generation/shared.d.ts +103 -0
- package/dist/tools/image-generation/shared.mjs +80 -0
- package/dist/tools/image-generation/storage.d.ts +22 -0
- package/dist/tools/image-generation/storage.mjs +8 -0
- package/dist/tools/image-generation/ui-detail.d.ts +26 -0
- package/dist/tools/image-generation/ui-detail.mjs +109 -0
- package/dist/tools/image-generation/ui.d.ts +8 -0
- package/dist/tools/image-generation/ui.mjs +121 -0
- package/dist/tools/registry.d.ts +32 -0
- package/dist/tools/registry.mjs +142 -0
- package/dist/tools/ui-registry.d.ts +3 -0
- package/dist/tools/ui-registry.mjs +20 -0
- package/dist/tools/user-choice/client.d.ts +10 -0
- package/dist/tools/user-choice/client.mjs +18 -0
- package/dist/tools/user-choice/registry.d.ts +12 -0
- package/dist/tools/user-choice/registry.mjs +21 -0
- package/dist/tools/user-choice/server.d.ts +6 -0
- package/dist/tools/user-choice/server.mjs +42 -0
- package/dist/tools/user-choice/shared.d.ts +79 -0
- package/dist/tools/user-choice/shared.mjs +56 -0
- package/dist/tools/user-choice/store.d.ts +19 -0
- package/dist/tools/user-choice/store.mjs +95 -0
- package/dist/tools/user-choice/ui.d.ts +3 -0
- package/dist/tools/user-choice/ui.mjs +396 -0
- package/package.json +118 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
function isRecord(value) {
|
|
2
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
3
|
+
}
|
|
4
|
+
function normalizeString(value) {
|
|
5
|
+
return typeof value === "string" ? value.trim() : "";
|
|
6
|
+
}
|
|
7
|
+
function normalizeStringArray(value) {
|
|
8
|
+
if (!Array.isArray(value))
|
|
9
|
+
return [];
|
|
10
|
+
return value.map(normalizeString).filter(Boolean);
|
|
11
|
+
}
|
|
12
|
+
function normalizePermissionOptionIds(request) {
|
|
13
|
+
const options = Array.isArray(request.options) ? request.options : [];
|
|
14
|
+
return options
|
|
15
|
+
.map((option) => isRecord(option) ? normalizeString(option.optionId || option.id) : "")
|
|
16
|
+
.filter(Boolean);
|
|
17
|
+
}
|
|
18
|
+
export function selectPermissionOptionId(request, preferredOptionId = "allow_once") {
|
|
19
|
+
const optionIds = normalizePermissionOptionIds(request);
|
|
20
|
+
return (optionIds.find((id) => id === preferredOptionId) ||
|
|
21
|
+
optionIds.find((id) => id.includes(preferredOptionId)) ||
|
|
22
|
+
optionIds.find((id) => id.includes("allow_once")) ||
|
|
23
|
+
optionIds.find((id) => id.includes("allow")) ||
|
|
24
|
+
optionIds[0] ||
|
|
25
|
+
preferredOptionId);
|
|
26
|
+
}
|
|
27
|
+
export function createPermissionBypassResponse(request) {
|
|
28
|
+
return {
|
|
29
|
+
outcome: {
|
|
30
|
+
outcome: "selected",
|
|
31
|
+
optionId: selectPermissionOptionId(request),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function createElicitationFallbackResponse(request) {
|
|
36
|
+
return {
|
|
37
|
+
action: request.mode === "url" ? "cancel" : "decline",
|
|
38
|
+
_meta: {
|
|
39
|
+
reason: "acp-ui-elicitations-require-explicit-ui",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function normalizeFieldType(schema) {
|
|
44
|
+
if (schema.type === "array")
|
|
45
|
+
return "array";
|
|
46
|
+
if (Array.isArray(schema.enum) || Array.isArray(schema.oneOf))
|
|
47
|
+
return "enum";
|
|
48
|
+
if (schema.type === "number")
|
|
49
|
+
return "number";
|
|
50
|
+
if (schema.type === "integer")
|
|
51
|
+
return "integer";
|
|
52
|
+
if (schema.type === "boolean")
|
|
53
|
+
return "boolean";
|
|
54
|
+
return "string";
|
|
55
|
+
}
|
|
56
|
+
function normalizeEnumOptions(schema) {
|
|
57
|
+
if (Array.isArray(schema.enum))
|
|
58
|
+
return normalizeStringArray(schema.enum);
|
|
59
|
+
const options = Array.isArray(schema.oneOf)
|
|
60
|
+
? schema.oneOf
|
|
61
|
+
: Array.isArray(schema.anyOf)
|
|
62
|
+
? schema.anyOf
|
|
63
|
+
: [];
|
|
64
|
+
return options
|
|
65
|
+
.map((option) => {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
return isRecord(option)
|
|
68
|
+
? normalizeString((_b = (_a = option.const) !== null && _a !== void 0 ? _a : option.value) !== null && _b !== void 0 ? _b : option.title)
|
|
69
|
+
: normalizeString(option);
|
|
70
|
+
})
|
|
71
|
+
.filter(Boolean);
|
|
72
|
+
}
|
|
73
|
+
function normalizeArrayOptions(schema) {
|
|
74
|
+
const items = isRecord(schema.items) ? schema.items : {};
|
|
75
|
+
const itemOptions = normalizeEnumOptions(items);
|
|
76
|
+
return itemOptions.length > 0 ? itemOptions : normalizeEnumOptions(schema);
|
|
77
|
+
}
|
|
78
|
+
export function normalizeElicitationFormSchema(request) {
|
|
79
|
+
const schema = isRecord(request.requestedSchema)
|
|
80
|
+
? request.requestedSchema
|
|
81
|
+
: {};
|
|
82
|
+
const properties = isRecord(schema.properties) ? schema.properties : {};
|
|
83
|
+
const required = new Set(normalizeStringArray(schema.required));
|
|
84
|
+
return Object.entries(properties).flatMap(([name, value]) => {
|
|
85
|
+
if (!isRecord(value))
|
|
86
|
+
return [];
|
|
87
|
+
const fieldType = normalizeFieldType(value);
|
|
88
|
+
return [
|
|
89
|
+
{
|
|
90
|
+
name,
|
|
91
|
+
type: fieldType,
|
|
92
|
+
title: normalizeString(value.title) || name,
|
|
93
|
+
description: normalizeString(value.description),
|
|
94
|
+
required: required.has(name),
|
|
95
|
+
options: fieldType === "enum" || fieldType === "array"
|
|
96
|
+
? fieldType === "array"
|
|
97
|
+
? normalizeArrayOptions(value)
|
|
98
|
+
: normalizeEnumOptions(value)
|
|
99
|
+
: [],
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function coerceFieldValue(field, value) {
|
|
105
|
+
if (value === undefined || value === null || value === "") {
|
|
106
|
+
return field.required ? "" : undefined;
|
|
107
|
+
}
|
|
108
|
+
if (field.type === "boolean")
|
|
109
|
+
return Boolean(value);
|
|
110
|
+
if (field.type === "number") {
|
|
111
|
+
const numberValue = Number(value);
|
|
112
|
+
return Number.isFinite(numberValue) ? numberValue : undefined;
|
|
113
|
+
}
|
|
114
|
+
if (field.type === "integer") {
|
|
115
|
+
const numberValue = Number(value);
|
|
116
|
+
return Number.isInteger(numberValue) ? numberValue : undefined;
|
|
117
|
+
}
|
|
118
|
+
if (field.type === "array") {
|
|
119
|
+
return Array.isArray(value)
|
|
120
|
+
? value.map(normalizeString).filter(Boolean)
|
|
121
|
+
: normalizeStringArray(String(value).split(","));
|
|
122
|
+
}
|
|
123
|
+
return String(value).trim();
|
|
124
|
+
}
|
|
125
|
+
export function coerceElicitationFormContent(request, rawContent) {
|
|
126
|
+
const fields = normalizeElicitationFormSchema(request);
|
|
127
|
+
const content = {};
|
|
128
|
+
for (const field of fields) {
|
|
129
|
+
const value = coerceFieldValue(field, rawContent[field.name]);
|
|
130
|
+
if (value !== undefined)
|
|
131
|
+
content[field.name] = value;
|
|
132
|
+
}
|
|
133
|
+
return content;
|
|
134
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AcpChatRequest, AcpRuntimeMetadata, AcpSessionLookupRequest, AcpStreamChatResult } from "./types";
|
|
2
|
+
export type { AcpBuiltinToolSettings, AcpCapabilitySnapshot, AcpChatRequest, AcpCleanupResult, AcpPermissionMode, AcpProviderKey, AcpRunState, AcpRuntimeMetadata, AcpSessionLookupRequest, } from "./types";
|
|
3
|
+
export declare function getAcpSessionMetadata(request: AcpSessionLookupRequest): AcpRuntimeMetadata | null;
|
|
4
|
+
export declare function listAcpSessionMetadata(): AcpRuntimeMetadata[];
|
|
5
|
+
export declare function cleanupAcpSession(request: AcpSessionLookupRequest): Promise<{
|
|
6
|
+
cleaned: boolean;
|
|
7
|
+
metadata: AcpRuntimeMetadata | null;
|
|
8
|
+
remainingSessions: AcpRuntimeMetadata[];
|
|
9
|
+
}>;
|
|
10
|
+
export declare function streamAcpChat(request: AcpChatRequest, options?: {
|
|
11
|
+
abortSignal?: AbortSignal;
|
|
12
|
+
}): Promise<AcpStreamChatResult>;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { frontendTools } from "@assistant-ui/react-ai-sdk";
|
|
2
|
+
import { consumeStream, convertToModelMessages, streamText, } from "ai";
|
|
3
|
+
import { closeConversationSession, touchConversationFromRuntime, upsertConversation, } from "../conversations/store.mjs";
|
|
4
|
+
import { sanitizePersistedBuiltinToolSettingsPatch } from "../../tools/registry.mjs";
|
|
5
|
+
import { ACP_ELICITATION_OPTION_LIST_TOOL_NAME, ACP_ELICITATION_OPTION_LIST_TOOL_SCHEMA, } from "./elicitation.mjs";
|
|
6
|
+
import { selectMessagesForAcpPrompt, selectMessagesForFreshAcpSessionPrompt, wrapLatestUserMessageWithDynamicContext, } from "./prompt-history.mjs";
|
|
7
|
+
import { closeAcpProviderSession, stageAcpElicitationResultFromMessages, } from "./provider-compat.mjs";
|
|
8
|
+
import { normalizeAcpProvider } from "./provider-registry.mjs";
|
|
9
|
+
import { createDirectMessageResponse, createRuntimeHeaders } from "./response.mjs";
|
|
10
|
+
import { normalizePermissionMode } from "./runtime-options.mjs";
|
|
11
|
+
import { applyRequestedModelAndMode, getOrCreateSession, getSessionKeyForLookup, updateMetadataFromProvider, } from "./session-runtime.mjs";
|
|
12
|
+
import { getGlobalAcpSessionStore, normalizeThreadId, normalizeWorkspacePath, } from "./session-store.mjs";
|
|
13
|
+
import { createAcpMessageMetadata } from "./stream-metadata.mjs";
|
|
14
|
+
import { acpTools } from "./vendor/acp-ai-provider/index.mjs";
|
|
15
|
+
const INTERNAL_FRONTEND_TOOLS = {
|
|
16
|
+
[ACP_ELICITATION_OPTION_LIST_TOOL_NAME]: {
|
|
17
|
+
description: "Collect a user's ACP elicitation choice from an option list.",
|
|
18
|
+
parameters: ACP_ELICITATION_OPTION_LIST_TOOL_SCHEMA,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
async function persistBuiltinToolSettingsPatch(request) {
|
|
22
|
+
var _a, _b, _c, _d;
|
|
23
|
+
const builtinToolSettings = sanitizePersistedBuiltinToolSettingsPatch(request.builtinToolSettings);
|
|
24
|
+
if (!builtinToolSettings)
|
|
25
|
+
return;
|
|
26
|
+
const patch = {
|
|
27
|
+
threadId: normalizeThreadId((_a = request.threadId) !== null && _a !== void 0 ? _a : request.id),
|
|
28
|
+
workspacePath: normalizeWorkspacePath(request.workspacePath),
|
|
29
|
+
builtinToolSettings,
|
|
30
|
+
};
|
|
31
|
+
if (request.provider !== undefined) {
|
|
32
|
+
patch.provider = normalizeAcpProvider(request.provider);
|
|
33
|
+
}
|
|
34
|
+
if (request.model !== undefined)
|
|
35
|
+
patch.model = (_b = request.model) !== null && _b !== void 0 ? _b : null;
|
|
36
|
+
if (request.modeId !== undefined)
|
|
37
|
+
patch.modeId = (_c = request.modeId) !== null && _c !== void 0 ? _c : null;
|
|
38
|
+
if (request.thoughtLevel !== undefined) {
|
|
39
|
+
patch.thoughtLevel = (_d = request.thoughtLevel) !== null && _d !== void 0 ? _d : null;
|
|
40
|
+
}
|
|
41
|
+
if (request.permissionMode !== undefined) {
|
|
42
|
+
patch.permissionMode = normalizePermissionMode(request.permissionMode);
|
|
43
|
+
}
|
|
44
|
+
await upsertConversation(patch);
|
|
45
|
+
}
|
|
46
|
+
export function getAcpSessionMetadata(request) {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
const store = getGlobalAcpSessionStore();
|
|
49
|
+
store.cleanupIdle();
|
|
50
|
+
return (_b = (_a = store.get(getSessionKeyForLookup(request))) === null || _a === void 0 ? void 0 : _a.metadata) !== null && _b !== void 0 ? _b : null;
|
|
51
|
+
}
|
|
52
|
+
export function listAcpSessionMetadata() {
|
|
53
|
+
const store = getGlobalAcpSessionStore();
|
|
54
|
+
store.cleanupIdle();
|
|
55
|
+
return store.list();
|
|
56
|
+
}
|
|
57
|
+
export async function cleanupAcpSession(request) {
|
|
58
|
+
var _a;
|
|
59
|
+
const store = getGlobalAcpSessionStore();
|
|
60
|
+
store.cleanupIdle();
|
|
61
|
+
const sessionKey = getSessionKeyForLookup(request);
|
|
62
|
+
const entry = store.get(sessionKey);
|
|
63
|
+
const metadata = (_a = entry === null || entry === void 0 ? void 0 : entry.metadata) !== null && _a !== void 0 ? _a : null;
|
|
64
|
+
if (entry) {
|
|
65
|
+
await closeAcpProviderSession(entry.provider, metadata);
|
|
66
|
+
}
|
|
67
|
+
const cleaned = store.cleanup(sessionKey);
|
|
68
|
+
void closeConversationSession(metadata);
|
|
69
|
+
return {
|
|
70
|
+
cleaned,
|
|
71
|
+
metadata,
|
|
72
|
+
remainingSessions: store.list(),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export async function streamAcpChat(request, options = {}) {
|
|
76
|
+
var _a, _b, _c;
|
|
77
|
+
await persistBuiltinToolSettingsPatch(request);
|
|
78
|
+
const externalFrontendTools = Object.assign({}, ((_a = request.tools) !== null && _a !== void 0 ? _a : {}));
|
|
79
|
+
delete externalFrontendTools[ACP_ELICITATION_OPTION_LIST_TOOL_NAME];
|
|
80
|
+
const tools = Object.assign(Object.assign({}, acpTools(frontendTools(externalFrontendTools))), frontendTools(INTERNAL_FRONTEND_TOOLS));
|
|
81
|
+
const entry = await getOrCreateSession(request, tools);
|
|
82
|
+
const store = getGlobalAcpSessionStore();
|
|
83
|
+
const elicitationStage = stageAcpElicitationResultFromMessages(entry.provider, request.messages);
|
|
84
|
+
entry.metadata.runState = "running";
|
|
85
|
+
await touchConversationFromRuntime(entry.metadata);
|
|
86
|
+
if (elicitationStage.status !== "staged") {
|
|
87
|
+
await applyRequestedModelAndMode(entry);
|
|
88
|
+
}
|
|
89
|
+
if (elicitationStage.status === "stale") {
|
|
90
|
+
entry.metadata.runState = "error";
|
|
91
|
+
entry.metadata.warnings.push(elicitationStage.reason);
|
|
92
|
+
updateMetadataFromProvider(entry);
|
|
93
|
+
void touchConversationFromRuntime(entry.metadata);
|
|
94
|
+
return {
|
|
95
|
+
response: createDirectMessageResponse(entry.metadata, "ACP 选项请求已经失效,无法继续这次选择。"),
|
|
96
|
+
metadata: entry.metadata,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
const markAborted = () => {
|
|
100
|
+
entry.metadata.runState = "aborted";
|
|
101
|
+
updateMetadataFromProvider(entry);
|
|
102
|
+
void closeAcpProviderSession(entry.provider, entry.metadata).finally(() => {
|
|
103
|
+
store.cleanup(entry.metadata.sessionKey);
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
if ((_b = options.abortSignal) === null || _b === void 0 ? void 0 : _b.aborted) {
|
|
107
|
+
markAborted();
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
(_c = options.abortSignal) === null || _c === void 0 ? void 0 : _c.addEventListener("abort", markAborted, { once: true });
|
|
111
|
+
}
|
|
112
|
+
const requestMessages = elicitationStage.status === "staged"
|
|
113
|
+
? []
|
|
114
|
+
: wrapLatestUserMessageWithDynamicContext(request.messages, request.context);
|
|
115
|
+
const promptSelection = elicitationStage.status === "staged"
|
|
116
|
+
? { messages: [] }
|
|
117
|
+
: entry.promptHistoryStrategy === "session"
|
|
118
|
+
? { messages: selectMessagesForAcpPrompt(requestMessages) }
|
|
119
|
+
: selectMessagesForFreshAcpSessionPrompt(requestMessages);
|
|
120
|
+
const promptMessages = promptSelection.messages;
|
|
121
|
+
if (promptSelection.warning) {
|
|
122
|
+
entry.metadata.warnings.push(promptSelection.warning);
|
|
123
|
+
}
|
|
124
|
+
entry.promptHistoryStrategy = "session";
|
|
125
|
+
// The patched ACP model intercepts staged elicitation resumes before this
|
|
126
|
+
// placeholder can reach the provider, but AI SDK still requires a non-empty
|
|
127
|
+
// prompt shape to start the stream.
|
|
128
|
+
const modelMessages = elicitationStage.status === "staged"
|
|
129
|
+
? [
|
|
130
|
+
{
|
|
131
|
+
role: "user",
|
|
132
|
+
content: "Continue after ACP elicitation.",
|
|
133
|
+
},
|
|
134
|
+
]
|
|
135
|
+
: await convertToModelMessages(promptMessages);
|
|
136
|
+
const result = streamText({
|
|
137
|
+
includeRawChunks: true,
|
|
138
|
+
model: entry.provider.languageModel(entry.metadata.model || undefined, entry.metadata.modeId || undefined),
|
|
139
|
+
// ACP sessions keep their own history. Replaying assistant-ui history here
|
|
140
|
+
// flattens role prefixes like "Assistant:" into the next user prompt.
|
|
141
|
+
// On a brand-new ACP session there is no agent-side history yet, so use
|
|
142
|
+
// a bounded, tool-free slice of UI history as a fallback.
|
|
143
|
+
messages: modelMessages,
|
|
144
|
+
system: request.system,
|
|
145
|
+
tools,
|
|
146
|
+
abortSignal: options.abortSignal,
|
|
147
|
+
});
|
|
148
|
+
const response = result.toUIMessageStreamResponse({
|
|
149
|
+
headers: createRuntimeHeaders(entry.metadata),
|
|
150
|
+
consumeSseStream: consumeStream,
|
|
151
|
+
messageMetadata: ({ part }) => createAcpMessageMetadata(part, entry),
|
|
152
|
+
onFinish: ({ isAborted }) => {
|
|
153
|
+
var _a;
|
|
154
|
+
entry.metadata.runState = isAborted ? "aborted" : "completed";
|
|
155
|
+
updateMetadataFromProvider(entry);
|
|
156
|
+
void touchConversationFromRuntime(entry.metadata);
|
|
157
|
+
if (isAborted) {
|
|
158
|
+
void closeAcpProviderSession(entry.provider, entry.metadata).finally(() => {
|
|
159
|
+
store.cleanup(entry.metadata.sessionKey);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
store.touch(entry.metadata.sessionKey);
|
|
164
|
+
}
|
|
165
|
+
(_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.removeEventListener("abort", markAborted);
|
|
166
|
+
},
|
|
167
|
+
onError: (error) => {
|
|
168
|
+
var _a;
|
|
169
|
+
if (entry.metadata.runState !== "aborted") {
|
|
170
|
+
entry.metadata.runState = "error";
|
|
171
|
+
}
|
|
172
|
+
updateMetadataFromProvider(entry);
|
|
173
|
+
void touchConversationFromRuntime(entry.metadata);
|
|
174
|
+
(_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.removeEventListener("abort", markAborted);
|
|
175
|
+
return error instanceof Error ? error.message : String(error);
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
return {
|
|
179
|
+
response,
|
|
180
|
+
metadata: updateMetadataFromProvider(entry),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ContextBundleV2 } from "./context";
|
|
2
|
+
import type { AcpMcpServer } from "./types";
|
|
3
|
+
type NormalizedMcpServers = {
|
|
4
|
+
servers: AcpMcpServer[];
|
|
5
|
+
warnings: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare function acpMcpServerKey(server: AcpMcpServer): string;
|
|
8
|
+
export declare function normalizeMcpServers(value?: unknown): NormalizedMcpServers;
|
|
9
|
+
export declare function normalizeAdditionalDirectories({ additionalDirectories, workspacePath, context, }: {
|
|
10
|
+
additionalDirectories?: unknown;
|
|
11
|
+
workspacePath: string;
|
|
12
|
+
context?: ContextBundleV2 | null;
|
|
13
|
+
}): {
|
|
14
|
+
directories: string[];
|
|
15
|
+
warnings: string[];
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
function isRecord(value) {
|
|
4
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
5
|
+
}
|
|
6
|
+
function normalizeString(value) {
|
|
7
|
+
return typeof value === "string" ? value.trim() : "";
|
|
8
|
+
}
|
|
9
|
+
function normalizeStringArray(value) {
|
|
10
|
+
if (!Array.isArray(value))
|
|
11
|
+
return undefined;
|
|
12
|
+
const normalized = value
|
|
13
|
+
.map((item) => normalizeString(item))
|
|
14
|
+
.filter((item) => item.length > 0);
|
|
15
|
+
return normalized.length ? normalized : undefined;
|
|
16
|
+
}
|
|
17
|
+
function normalizeEnv(value) {
|
|
18
|
+
if (!Array.isArray(value))
|
|
19
|
+
return undefined;
|
|
20
|
+
const env = value
|
|
21
|
+
.map((item) => {
|
|
22
|
+
if (!isRecord(item))
|
|
23
|
+
return null;
|
|
24
|
+
const name = normalizeString(item.name);
|
|
25
|
+
const rawValue = normalizeString(item.value);
|
|
26
|
+
if (!name)
|
|
27
|
+
return null;
|
|
28
|
+
return { name, value: rawValue };
|
|
29
|
+
})
|
|
30
|
+
.filter((item) => Boolean(item));
|
|
31
|
+
return env.length ? env : undefined;
|
|
32
|
+
}
|
|
33
|
+
function normalizeMcpServer(value, index) {
|
|
34
|
+
if (!isRecord(value)) {
|
|
35
|
+
return {
|
|
36
|
+
server: null,
|
|
37
|
+
warning: `Skipped MCP server ${index}: not an object.`,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const type = normalizeString(value.type) || "stdio";
|
|
41
|
+
const name = normalizeString(value.name);
|
|
42
|
+
if (!name) {
|
|
43
|
+
return {
|
|
44
|
+
server: null,
|
|
45
|
+
warning: `Skipped MCP server ${index}: missing name.`,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
if (type === "http" || type === "sse") {
|
|
49
|
+
const url = normalizeString(value.url);
|
|
50
|
+
if (!url) {
|
|
51
|
+
return {
|
|
52
|
+
server: null,
|
|
53
|
+
warning: `Skipped MCP server "${name}": missing ${type} url.`,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return { server: Object.assign(Object.assign({}, value), { type, name, url }) };
|
|
57
|
+
}
|
|
58
|
+
if (type === "acp") {
|
|
59
|
+
const id = normalizeString(value.id);
|
|
60
|
+
if (!id) {
|
|
61
|
+
return {
|
|
62
|
+
server: null,
|
|
63
|
+
warning: `Skipped MCP server "${name}": missing ACP id.`,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return { server: Object.assign(Object.assign({}, value), { type, name, id }) };
|
|
67
|
+
}
|
|
68
|
+
if (type && type !== "stdio") {
|
|
69
|
+
return {
|
|
70
|
+
server: null,
|
|
71
|
+
warning: `Skipped MCP server "${name}": unsupported transport "${type}".`,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const command = normalizeString(value.command);
|
|
75
|
+
if (!command) {
|
|
76
|
+
return {
|
|
77
|
+
server: null,
|
|
78
|
+
warning: `Skipped MCP server "${name}": missing stdio command.`,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
server: Object.assign(Object.assign(Object.assign(Object.assign({}, value), { name,
|
|
83
|
+
command }), (normalizeStringArray(value.args)
|
|
84
|
+
? { args: normalizeStringArray(value.args) }
|
|
85
|
+
: {})), (normalizeEnv(value.env) ? { env: normalizeEnv(value.env) } : {})),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export function acpMcpServerKey(server) {
|
|
89
|
+
const record = server;
|
|
90
|
+
const type = normalizeString(record.type) || "stdio";
|
|
91
|
+
return `${type}:${normalizeString(record.name).toLowerCase()}`;
|
|
92
|
+
}
|
|
93
|
+
export function normalizeMcpServers(value) {
|
|
94
|
+
if (!Array.isArray(value))
|
|
95
|
+
return { servers: [], warnings: [] };
|
|
96
|
+
const warnings = [];
|
|
97
|
+
const servers = [];
|
|
98
|
+
const seen = new Set();
|
|
99
|
+
value.forEach((item, index) => {
|
|
100
|
+
const { server, warning } = normalizeMcpServer(item, index);
|
|
101
|
+
if (warning)
|
|
102
|
+
warnings.push(warning);
|
|
103
|
+
if (!server)
|
|
104
|
+
return;
|
|
105
|
+
const key = acpMcpServerKey(server);
|
|
106
|
+
if (seen.has(key)) {
|
|
107
|
+
warnings.push(`Skipped duplicate MCP server "${server.name}".`);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
seen.add(key);
|
|
111
|
+
servers.push(server);
|
|
112
|
+
});
|
|
113
|
+
return { servers, warnings };
|
|
114
|
+
}
|
|
115
|
+
function normalizeDirectory(value) {
|
|
116
|
+
const raw = normalizeString(value);
|
|
117
|
+
if (!raw)
|
|
118
|
+
return null;
|
|
119
|
+
const resolved = path.resolve(/* turbopackIgnore: true */ raw);
|
|
120
|
+
try {
|
|
121
|
+
return fs.statSync(/* turbopackIgnore: true */ resolved).isDirectory()
|
|
122
|
+
? resolved
|
|
123
|
+
: null;
|
|
124
|
+
}
|
|
125
|
+
catch (_a) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export function normalizeAdditionalDirectories({ additionalDirectories, workspacePath, context, }) {
|
|
130
|
+
const warnings = [];
|
|
131
|
+
const seen = new Set([workspacePath]);
|
|
132
|
+
const directories = [];
|
|
133
|
+
const candidates = Array.isArray(additionalDirectories)
|
|
134
|
+
? additionalDirectories
|
|
135
|
+
: [];
|
|
136
|
+
for (const candidate of candidates) {
|
|
137
|
+
const directory = normalizeDirectory(candidate);
|
|
138
|
+
if (!directory) {
|
|
139
|
+
warnings.push(`Skipped additional directory "${String(candidate)}".`);
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if (seen.has(directory))
|
|
143
|
+
continue;
|
|
144
|
+
seen.add(directory);
|
|
145
|
+
directories.push(directory);
|
|
146
|
+
}
|
|
147
|
+
if (context === null || context === void 0 ? void 0 : context.items.some((item) => item.kind === "file")) {
|
|
148
|
+
// Context file paths stay in the prompt for now. Mapping them to
|
|
149
|
+
// additionalDirectories changes provider filesystem scope, so keep it
|
|
150
|
+
// explicit until hosts opt into directory roots.
|
|
151
|
+
}
|
|
152
|
+
return { directories, warnings };
|
|
153
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AcpCapabilityOption, AcpProviderKey } from "./types";
|
|
2
|
+
export type ComposerModelOption = Pick<AcpCapabilityOption, "value" | "label" | "description">;
|
|
3
|
+
export declare function formatComposerModelOption(option: ComposerModelOption, provider?: AcpProviderKey | string | null): ComposerModelOption;
|
|
4
|
+
export declare function chooseComposerModel({ provider, sessionPinnedModel, acpCurrentModel, selectedProviderModel, }?: {
|
|
5
|
+
provider?: AcpProviderKey | string | null;
|
|
6
|
+
sessionPinnedModel?: string | null;
|
|
7
|
+
acpCurrentModel?: string | null;
|
|
8
|
+
selectedProviderModel?: string | null;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function chooseComposerModelOptions({ provider, acpModelOptions, runtimeModelOptions, fallbackModelOptions, sessionPinnedModel, }?: {
|
|
11
|
+
provider?: AcpProviderKey | string | null;
|
|
12
|
+
acpModelOptions?: ComposerModelOption[];
|
|
13
|
+
runtimeModelOptions?: ComposerModelOption[];
|
|
14
|
+
fallbackModelOptions?: ComposerModelOption[];
|
|
15
|
+
sessionPinnedModel?: string | null;
|
|
16
|
+
}): ComposerModelOption[];
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const CODEX_REASONING_SUFFIXES = new Set(["low", "medium", "high", "xhigh"]);
|
|
2
|
+
function normalizeProvider(provider) {
|
|
3
|
+
return String(provider !== null && provider !== void 0 ? provider : "")
|
|
4
|
+
.trim()
|
|
5
|
+
.toLowerCase();
|
|
6
|
+
}
|
|
7
|
+
function formatReasoningLabel(value) {
|
|
8
|
+
switch (value) {
|
|
9
|
+
case "low":
|
|
10
|
+
return "低";
|
|
11
|
+
case "medium":
|
|
12
|
+
return "中";
|
|
13
|
+
case "high":
|
|
14
|
+
return "高";
|
|
15
|
+
case "xhigh":
|
|
16
|
+
return "极高";
|
|
17
|
+
default:
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export function formatComposerModelOption(option, provider) {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
const normalizedProvider = normalizeProvider(provider);
|
|
24
|
+
const value = String((_a = option.value) !== null && _a !== void 0 ? _a : "").trim();
|
|
25
|
+
if (normalizedProvider !== "codex" || !value.includes("/"))
|
|
26
|
+
return option;
|
|
27
|
+
const [model, reasoning, ...rest] = value.split("/");
|
|
28
|
+
if (!model ||
|
|
29
|
+
!reasoning ||
|
|
30
|
+
rest.length ||
|
|
31
|
+
!CODEX_REASONING_SUFFIXES.has(reasoning)) {
|
|
32
|
+
return option;
|
|
33
|
+
}
|
|
34
|
+
const label = String((_b = option.label) !== null && _b !== void 0 ? _b : "").trim();
|
|
35
|
+
return Object.assign(Object.assign({}, option), { label: !label || label === value
|
|
36
|
+
? `${model} / ${formatReasoningLabel(reasoning)}`
|
|
37
|
+
: label });
|
|
38
|
+
}
|
|
39
|
+
export function chooseComposerModel({ provider = "codex", sessionPinnedModel = "", acpCurrentModel = "", selectedProviderModel = "", } = {}) {
|
|
40
|
+
const normalizedProvider = normalizeProvider(provider);
|
|
41
|
+
const pinned = String(sessionPinnedModel !== null && sessionPinnedModel !== void 0 ? sessionPinnedModel : "").trim();
|
|
42
|
+
const current = String(acpCurrentModel !== null && acpCurrentModel !== void 0 ? acpCurrentModel : "").trim();
|
|
43
|
+
const selected = String(selectedProviderModel !== null && selectedProviderModel !== void 0 ? selectedProviderModel : "").trim();
|
|
44
|
+
if (normalizedProvider === "codex") {
|
|
45
|
+
return pinned || current || "";
|
|
46
|
+
}
|
|
47
|
+
return pinned || current || selected || "";
|
|
48
|
+
}
|
|
49
|
+
export function chooseComposerModelOptions({ provider = "codex", acpModelOptions = [], runtimeModelOptions = [], fallbackModelOptions = [], sessionPinnedModel = "", } = {}) {
|
|
50
|
+
const normalizedProvider = normalizeProvider(provider);
|
|
51
|
+
const baseOptions = acpModelOptions.length
|
|
52
|
+
? acpModelOptions
|
|
53
|
+
: runtimeModelOptions.length
|
|
54
|
+
? runtimeModelOptions
|
|
55
|
+
: normalizedProvider === "codex"
|
|
56
|
+
? []
|
|
57
|
+
: fallbackModelOptions;
|
|
58
|
+
const pinned = String(sessionPinnedModel !== null && sessionPinnedModel !== void 0 ? sessionPinnedModel : "").trim();
|
|
59
|
+
if (normalizedProvider === "codex" && baseOptions.length === 0)
|
|
60
|
+
return [];
|
|
61
|
+
if (!pinned || baseOptions.some((option) => option.value === pinned)) {
|
|
62
|
+
return baseOptions.map((option) => formatComposerModelOption(option, provider));
|
|
63
|
+
}
|
|
64
|
+
return [{ value: pinned, label: pinned }, ...baseOptions].map((option) => formatComposerModelOption(option, provider));
|
|
65
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ContextBundleV2 } from "./context";
|
|
2
|
+
import type { AcpChatRequest } from "./types";
|
|
3
|
+
export type AcpPromptHistorySelection = {
|
|
4
|
+
messages: AcpChatRequest["messages"];
|
|
5
|
+
warning?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function selectMessagesForAcpPrompt(messages: AcpChatRequest["messages"]): AcpChatRequest["messages"];
|
|
8
|
+
export declare function wrapLatestUserMessageWithDynamicContext(messages: AcpChatRequest["messages"], context?: ContextBundleV2 | null): AcpChatRequest["messages"];
|
|
9
|
+
export declare function selectMessagesForFreshAcpSessionPrompt(messages: AcpChatRequest["messages"]): AcpPromptHistorySelection;
|