@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,421 @@
|
|
|
1
|
+
/* Generated by scripts/refresh-default-capabilities.mjs. Do not edit by hand. */
|
|
2
|
+
import { ACP_PROVIDER_DEFAULT_MODE_IDS } from "./provider-registry.mjs";
|
|
3
|
+
export const ACP_CAPABILITY_CACHE_TTL_MS = 30 * 60 * 1000;
|
|
4
|
+
export const ACP_DEFAULT_CAPABILITY_SNAPSHOTS = {
|
|
5
|
+
claude: {
|
|
6
|
+
provider: "claude",
|
|
7
|
+
sessionId: null,
|
|
8
|
+
source: "generated-default",
|
|
9
|
+
updatedAt: "2026-05-27T10:18:02.000Z",
|
|
10
|
+
ttl: ACP_CAPABILITY_CACHE_TTL_MS,
|
|
11
|
+
agentVersion: null,
|
|
12
|
+
capabilities: {
|
|
13
|
+
model: {
|
|
14
|
+
key: "model",
|
|
15
|
+
currentValue: "sonnet",
|
|
16
|
+
configId: "model",
|
|
17
|
+
configKey: "model",
|
|
18
|
+
source: "fallback",
|
|
19
|
+
options: [
|
|
20
|
+
{
|
|
21
|
+
value: "sonnet",
|
|
22
|
+
label: "Sonnet",
|
|
23
|
+
description: "Claude Sonnet 默认模型。",
|
|
24
|
+
order: 0,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: "opus",
|
|
28
|
+
label: "Opus",
|
|
29
|
+
description: "Claude Opus 高能力模型。",
|
|
30
|
+
order: 1,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: "haiku",
|
|
34
|
+
label: "Haiku",
|
|
35
|
+
description: "Claude Haiku 快速模型。",
|
|
36
|
+
order: 2,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: "opusplan",
|
|
40
|
+
label: "Opus Plan",
|
|
41
|
+
description: "Claude Opus 规划模式。",
|
|
42
|
+
order: 3,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
value: "sonnet[1m]",
|
|
46
|
+
label: "Sonnet [1M]",
|
|
47
|
+
description: "Claude Sonnet 长上下文模型。",
|
|
48
|
+
order: 4,
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
mode: {
|
|
53
|
+
key: "mode",
|
|
54
|
+
currentValue: ACP_PROVIDER_DEFAULT_MODE_IDS.claude,
|
|
55
|
+
configId: "mode",
|
|
56
|
+
configKey: "mode",
|
|
57
|
+
source: "fallback",
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
value: "default",
|
|
61
|
+
label: "默认",
|
|
62
|
+
description: "使用供应商默认权限策略。",
|
|
63
|
+
order: 0,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
value: "acceptEdits",
|
|
67
|
+
label: "接受编辑",
|
|
68
|
+
description: "允许编辑类操作更顺畅地继续。",
|
|
69
|
+
order: 1,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
value: "bypassPermissions",
|
|
73
|
+
label: "绕过权限",
|
|
74
|
+
description: "尽量减少权限确认,适合受信任工作区。",
|
|
75
|
+
order: 2,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
value: "plan",
|
|
79
|
+
label: "计划",
|
|
80
|
+
description: "先规划再执行,适合复杂任务。",
|
|
81
|
+
order: 3,
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
thought_level: {
|
|
86
|
+
key: "thought_level",
|
|
87
|
+
currentValue: "none",
|
|
88
|
+
configId: "thought_level",
|
|
89
|
+
configKey: "thought_level",
|
|
90
|
+
source: "fallback",
|
|
91
|
+
options: [
|
|
92
|
+
{
|
|
93
|
+
value: "none",
|
|
94
|
+
label: "无",
|
|
95
|
+
description: "不额外请求思考深度。",
|
|
96
|
+
order: 0,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
value: "think",
|
|
100
|
+
label: "Think",
|
|
101
|
+
description: "轻量思考。",
|
|
102
|
+
order: 1,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
value: "think-hard",
|
|
106
|
+
label: "Think Hard",
|
|
107
|
+
description: "更深入思考。",
|
|
108
|
+
order: 2,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
value: "think-harder",
|
|
112
|
+
label: "Think Harder",
|
|
113
|
+
description: "高强度思考。",
|
|
114
|
+
order: 3,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
value: "ultrathink",
|
|
118
|
+
label: "Ultrathink",
|
|
119
|
+
description: "最高强度思考。",
|
|
120
|
+
order: 4,
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
metadata: {
|
|
126
|
+
availableCommands: [],
|
|
127
|
+
tokenUsage: null,
|
|
128
|
+
rawSession: null,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
codex: {
|
|
132
|
+
provider: "codex",
|
|
133
|
+
sessionId: null,
|
|
134
|
+
source: "generated-default",
|
|
135
|
+
updatedAt: "2026-05-26T06:24:12.704Z",
|
|
136
|
+
ttl: ACP_CAPABILITY_CACHE_TTL_MS,
|
|
137
|
+
agentVersion: null,
|
|
138
|
+
capabilities: {
|
|
139
|
+
model: {
|
|
140
|
+
key: "model",
|
|
141
|
+
currentValue: "gpt-5.5",
|
|
142
|
+
configId: "model",
|
|
143
|
+
configKey: "model",
|
|
144
|
+
source: "fallback",
|
|
145
|
+
options: [
|
|
146
|
+
{
|
|
147
|
+
value: "gpt-5.5",
|
|
148
|
+
label: "GPT-5.5",
|
|
149
|
+
description: "适合复杂编码、研究和真实工作场景的前沿模型。",
|
|
150
|
+
order: 0,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: "gpt-5.4",
|
|
154
|
+
label: "gpt-5.4",
|
|
155
|
+
description: "适合日常编码的强力模型。",
|
|
156
|
+
order: 1,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
value: "gpt-5.4-mini",
|
|
160
|
+
label: "GPT-5.4-Mini",
|
|
161
|
+
description: "适合简单编码任务的小型、快速且高性价比模型。",
|
|
162
|
+
order: 2,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
value: "gpt-5.3-codex",
|
|
166
|
+
label: "gpt-5.3-codex",
|
|
167
|
+
description: "针对编码优化的模型。",
|
|
168
|
+
order: 3,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
value: "gpt-5.2",
|
|
172
|
+
label: "gpt-5.2",
|
|
173
|
+
description: "针对专业工作和长时间运行的 agent 优化。",
|
|
174
|
+
order: 4,
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
mode: {
|
|
179
|
+
key: "mode",
|
|
180
|
+
currentValue: ACP_PROVIDER_DEFAULT_MODE_IDS.codex,
|
|
181
|
+
configId: "mode",
|
|
182
|
+
configKey: "mode",
|
|
183
|
+
source: "fallback",
|
|
184
|
+
options: [
|
|
185
|
+
{
|
|
186
|
+
value: "read-only",
|
|
187
|
+
label: "只读",
|
|
188
|
+
description: "Codex 可以读取当前工作区文件。编辑文件或访问互联网需要审批。",
|
|
189
|
+
order: 0,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
value: "auto",
|
|
193
|
+
label: "默认",
|
|
194
|
+
description: "Codex 可以读取和编辑当前工作区文件,并运行命令。访问互联网或编辑其他文件需要审批。(等同于 Agent 模式)",
|
|
195
|
+
order: 1,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
value: "full-access",
|
|
199
|
+
label: "完全访问",
|
|
200
|
+
description: "Codex 可以编辑工作区外的文件并访问互联网,无需请求审批。使用时请谨慎。",
|
|
201
|
+
order: 2,
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
},
|
|
205
|
+
thought_level: {
|
|
206
|
+
key: "thought_level",
|
|
207
|
+
currentValue: "xhigh",
|
|
208
|
+
configId: "reasoning_effort",
|
|
209
|
+
configKey: "reasoning_effort",
|
|
210
|
+
source: "fallback",
|
|
211
|
+
options: [
|
|
212
|
+
{
|
|
213
|
+
value: "low",
|
|
214
|
+
label: "低",
|
|
215
|
+
description: "更轻量推理,响应更快",
|
|
216
|
+
order: 0,
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
value: "medium",
|
|
220
|
+
label: "中",
|
|
221
|
+
description: "在速度和推理深度之间取得平衡,适合日常任务",
|
|
222
|
+
order: 1,
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
value: "high",
|
|
226
|
+
label: "高",
|
|
227
|
+
description: "为复杂问题提供更深的推理",
|
|
228
|
+
order: 2,
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
value: "xhigh",
|
|
232
|
+
label: "极高",
|
|
233
|
+
description: "为复杂问题提供极高推理深度",
|
|
234
|
+
order: 3,
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
metadata: {
|
|
240
|
+
availableCommands: [],
|
|
241
|
+
tokenUsage: null,
|
|
242
|
+
rawSession: null,
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
gemini: {
|
|
246
|
+
provider: "gemini",
|
|
247
|
+
sessionId: null,
|
|
248
|
+
source: "generated-default",
|
|
249
|
+
updatedAt: "2026-05-27T10:18:02.000Z",
|
|
250
|
+
ttl: ACP_CAPABILITY_CACHE_TTL_MS,
|
|
251
|
+
agentVersion: null,
|
|
252
|
+
capabilities: {
|
|
253
|
+
model: {
|
|
254
|
+
key: "model",
|
|
255
|
+
currentValue: "gemini-3-pro-preview",
|
|
256
|
+
configId: "model",
|
|
257
|
+
configKey: "model",
|
|
258
|
+
source: "fallback",
|
|
259
|
+
options: [
|
|
260
|
+
{
|
|
261
|
+
value: "gemini-2.5-pro",
|
|
262
|
+
label: "Gemini 2.5 Pro",
|
|
263
|
+
description: "Gemini Pro 稳定模型。",
|
|
264
|
+
order: 0,
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
value: "gemini-2.5-flash",
|
|
268
|
+
label: "Gemini 2.5 Flash",
|
|
269
|
+
description: "Gemini Flash 快速模型。",
|
|
270
|
+
order: 1,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
value: "gemini-3-pro-preview",
|
|
274
|
+
label: "Gemini 3 Pro Preview",
|
|
275
|
+
description: "Gemini 3 Pro 预览模型。",
|
|
276
|
+
order: 2,
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
value: "gemini-3-flash-preview",
|
|
280
|
+
label: "Gemini 3 Flash Preview",
|
|
281
|
+
description: "Gemini 3 Flash 预览模型。",
|
|
282
|
+
order: 3,
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
},
|
|
286
|
+
mode: {
|
|
287
|
+
key: "mode",
|
|
288
|
+
currentValue: ACP_PROVIDER_DEFAULT_MODE_IDS.gemini,
|
|
289
|
+
configId: "mode",
|
|
290
|
+
configKey: "mode",
|
|
291
|
+
source: "fallback",
|
|
292
|
+
options: [
|
|
293
|
+
{
|
|
294
|
+
value: "default",
|
|
295
|
+
label: "默认",
|
|
296
|
+
description: "使用供应商默认权限策略。",
|
|
297
|
+
order: 0,
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
value: "acceptEdits",
|
|
301
|
+
label: "接受编辑",
|
|
302
|
+
description: "允许编辑类操作更顺畅地继续。",
|
|
303
|
+
order: 1,
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
value: "bypassPermissions",
|
|
307
|
+
label: "绕过权限",
|
|
308
|
+
description: "尽量减少权限确认,适合受信任工作区。",
|
|
309
|
+
order: 2,
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
},
|
|
313
|
+
thought_level: {
|
|
314
|
+
key: "thought_level",
|
|
315
|
+
currentValue: "none",
|
|
316
|
+
configId: "thought_level",
|
|
317
|
+
configKey: "thought_level",
|
|
318
|
+
source: "fallback",
|
|
319
|
+
options: [
|
|
320
|
+
{
|
|
321
|
+
value: "none",
|
|
322
|
+
label: "无",
|
|
323
|
+
description: "不额外请求思考深度。",
|
|
324
|
+
order: 0,
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
metadata: {
|
|
330
|
+
availableCommands: [],
|
|
331
|
+
tokenUsage: null,
|
|
332
|
+
rawSession: null,
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
opencode: {
|
|
336
|
+
provider: "opencode",
|
|
337
|
+
sessionId: null,
|
|
338
|
+
source: "generated-default",
|
|
339
|
+
updatedAt: "2026-05-27T10:18:02.000Z",
|
|
340
|
+
ttl: ACP_CAPABILITY_CACHE_TTL_MS,
|
|
341
|
+
agentVersion: null,
|
|
342
|
+
capabilities: {
|
|
343
|
+
model: {
|
|
344
|
+
key: "model",
|
|
345
|
+
currentValue: "opencode/big-pickle",
|
|
346
|
+
configId: "model",
|
|
347
|
+
configKey: "model",
|
|
348
|
+
source: "fallback",
|
|
349
|
+
options: [
|
|
350
|
+
{
|
|
351
|
+
value: "opencode/big-pickle",
|
|
352
|
+
label: "OpenCode Zen/Big Pickle",
|
|
353
|
+
description: "OpenCode 默认模型。",
|
|
354
|
+
order: 0,
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
value: "opencode/nemotron-3-super-free",
|
|
358
|
+
label: "OpenCode Zen/Nemotron 3 Super Free",
|
|
359
|
+
description: "OpenCode 可用模型。",
|
|
360
|
+
order: 1,
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
value: "opencode/deepseek-v4-flash-free",
|
|
364
|
+
label: "OpenCode Zen/DeepSeek V4 Flash Free",
|
|
365
|
+
description: "OpenCode 可用模型。",
|
|
366
|
+
order: 2,
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
},
|
|
370
|
+
mode: {
|
|
371
|
+
key: "mode",
|
|
372
|
+
currentValue: ACP_PROVIDER_DEFAULT_MODE_IDS.opencode,
|
|
373
|
+
configId: "mode",
|
|
374
|
+
configKey: "mode",
|
|
375
|
+
source: "fallback",
|
|
376
|
+
options: [
|
|
377
|
+
{
|
|
378
|
+
value: "build",
|
|
379
|
+
label: "build",
|
|
380
|
+
description: "The default agent. Executes tools based on configured permissions.",
|
|
381
|
+
order: 0,
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
value: "plan",
|
|
385
|
+
label: "plan",
|
|
386
|
+
description: "Plan mode. Disallows all edit tools.",
|
|
387
|
+
order: 1,
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
},
|
|
391
|
+
thought_level: {
|
|
392
|
+
key: "thought_level",
|
|
393
|
+
currentValue: "none",
|
|
394
|
+
configId: "thought_level",
|
|
395
|
+
configKey: "thought_level",
|
|
396
|
+
source: "fallback",
|
|
397
|
+
options: [
|
|
398
|
+
{
|
|
399
|
+
value: "none",
|
|
400
|
+
label: "无",
|
|
401
|
+
description: "不额外请求思考深度。",
|
|
402
|
+
order: 0,
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
metadata: {
|
|
408
|
+
availableCommands: [],
|
|
409
|
+
tokenUsage: null,
|
|
410
|
+
rawSession: null,
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
};
|
|
414
|
+
export const CODEX_DEFAULT_CAPABILITY_SNAPSHOT = ACP_DEFAULT_CAPABILITY_SNAPSHOTS.codex;
|
|
415
|
+
export function getDefaultAcpCapabilitySnapshot(provider) {
|
|
416
|
+
var _a;
|
|
417
|
+
const providerKey = String(provider !== null && provider !== void 0 ? provider : "")
|
|
418
|
+
.trim()
|
|
419
|
+
.toLowerCase();
|
|
420
|
+
return (_a = ACP_DEFAULT_CAPABILITY_SNAPSHOTS[providerKey]) !== null && _a !== void 0 ? _a : null;
|
|
421
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { JSONSchema7, UIMessage } from "ai";
|
|
2
|
+
export declare const ACP_ELICITATION_OPTION_LIST_TOOL_NAME = "acp.elicitation.option_list";
|
|
3
|
+
export declare const ACP_ELICITATION_OPTION_LIST_TOOL_PART_TYPE: "tool-acp.elicitation.option_list";
|
|
4
|
+
export type AcpElicitationOptionListSelectionMode = "single" | "multi";
|
|
5
|
+
export type AcpElicitationOptionListOption = {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type AcpElicitationOptionListPayload = {
|
|
12
|
+
toolCallId: string;
|
|
13
|
+
message: string;
|
|
14
|
+
fieldName: string;
|
|
15
|
+
fieldTitle: string;
|
|
16
|
+
fieldDescription?: string;
|
|
17
|
+
selectionMode: AcpElicitationOptionListSelectionMode;
|
|
18
|
+
options: AcpElicitationOptionListOption[];
|
|
19
|
+
defaultValue?: string | string[] | null;
|
|
20
|
+
minSelections: number;
|
|
21
|
+
maxSelections?: number;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type AcpElicitationOptionListToolResult = {
|
|
25
|
+
action: "accept";
|
|
26
|
+
content: Record<string, string | number | boolean | string[]>;
|
|
27
|
+
} | {
|
|
28
|
+
action: "decline" | "cancel";
|
|
29
|
+
};
|
|
30
|
+
export declare const ACP_ELICITATION_OPTION_LIST_TOOL_SCHEMA: JSONSchema7;
|
|
31
|
+
export declare function createElicitationOptionListPayload(request: Record<string, unknown>, toolCallId: string): AcpElicitationOptionListPayload | null;
|
|
32
|
+
export declare function normalizeElicitationOptionListToolResult(request: Record<string, unknown>, result: unknown): AcpElicitationOptionListToolResult;
|
|
33
|
+
export type AcpElicitationOptionListToolOutput = {
|
|
34
|
+
toolCallId: string;
|
|
35
|
+
result: AcpElicitationOptionListToolResult;
|
|
36
|
+
};
|
|
37
|
+
export declare function findLatestElicitationOptionListToolOutput(messages: UIMessage[]): AcpElicitationOptionListToolOutput | null;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { coerceElicitationFormContent } from "./hitl.mjs";
|
|
2
|
+
export const ACP_ELICITATION_OPTION_LIST_TOOL_NAME = "acp.elicitation.option_list";
|
|
3
|
+
export const ACP_ELICITATION_OPTION_LIST_TOOL_PART_TYPE = `tool-${ACP_ELICITATION_OPTION_LIST_TOOL_NAME}`;
|
|
4
|
+
export const ACP_ELICITATION_OPTION_LIST_TOOL_SCHEMA = {
|
|
5
|
+
type: "object",
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
required: [
|
|
8
|
+
"toolCallId",
|
|
9
|
+
"message",
|
|
10
|
+
"fieldName",
|
|
11
|
+
"fieldTitle",
|
|
12
|
+
"selectionMode",
|
|
13
|
+
"options",
|
|
14
|
+
"minSelections",
|
|
15
|
+
"required",
|
|
16
|
+
],
|
|
17
|
+
properties: {
|
|
18
|
+
toolCallId: { type: "string" },
|
|
19
|
+
message: { type: "string" },
|
|
20
|
+
fieldName: { type: "string" },
|
|
21
|
+
fieldTitle: { type: "string" },
|
|
22
|
+
fieldDescription: { type: "string" },
|
|
23
|
+
selectionMode: { type: "string", enum: ["single", "multi"] },
|
|
24
|
+
options: {
|
|
25
|
+
type: "array",
|
|
26
|
+
items: {
|
|
27
|
+
type: "object",
|
|
28
|
+
additionalProperties: false,
|
|
29
|
+
required: ["id", "label"],
|
|
30
|
+
properties: {
|
|
31
|
+
id: { type: "string" },
|
|
32
|
+
label: { type: "string" },
|
|
33
|
+
description: { type: "string" },
|
|
34
|
+
disabled: { type: "boolean" },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
defaultValue: {
|
|
39
|
+
anyOf: [
|
|
40
|
+
{ type: "string" },
|
|
41
|
+
{ type: "array", items: { type: "string" } },
|
|
42
|
+
{ type: "null" },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
minSelections: { type: "number" },
|
|
46
|
+
maxSelections: { type: "number" },
|
|
47
|
+
required: { type: "boolean" },
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
function isRecord(value) {
|
|
51
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
52
|
+
}
|
|
53
|
+
function normalizeString(value) {
|
|
54
|
+
return typeof value === "string" ? value.trim() : "";
|
|
55
|
+
}
|
|
56
|
+
function normalizeStringArray(value) {
|
|
57
|
+
if (!Array.isArray(value))
|
|
58
|
+
return [];
|
|
59
|
+
return value.map(normalizeString).filter(Boolean);
|
|
60
|
+
}
|
|
61
|
+
function readPositiveInteger(value) {
|
|
62
|
+
if (typeof value !== "number" || !Number.isInteger(value) || value < 0) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
function normalizeEnumOptions(schema) {
|
|
68
|
+
const enumValues = normalizeStringArray(schema.enum);
|
|
69
|
+
if (enumValues.length > 0) {
|
|
70
|
+
return enumValues.map((id) => ({ id, label: id }));
|
|
71
|
+
}
|
|
72
|
+
const oneOf = Array.isArray(schema.oneOf)
|
|
73
|
+
? schema.oneOf
|
|
74
|
+
: Array.isArray(schema.anyOf)
|
|
75
|
+
? schema.anyOf
|
|
76
|
+
: [];
|
|
77
|
+
return oneOf.flatMap((option) => {
|
|
78
|
+
var _a, _b, _c;
|
|
79
|
+
if (!isRecord(option))
|
|
80
|
+
return [];
|
|
81
|
+
const id = normalizeString((_b = (_a = option.const) !== null && _a !== void 0 ? _a : option.value) !== null && _b !== void 0 ? _b : option.id);
|
|
82
|
+
if (!id)
|
|
83
|
+
return [];
|
|
84
|
+
return [
|
|
85
|
+
Object.assign({ id, label: normalizeString((_c = option.title) !== null && _c !== void 0 ? _c : option.label) || id }, (normalizeString(option.description)
|
|
86
|
+
? { description: normalizeString(option.description) }
|
|
87
|
+
: {})),
|
|
88
|
+
];
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function normalizeArrayOptions(schema) {
|
|
92
|
+
const items = isRecord(schema.items) ? schema.items : {};
|
|
93
|
+
const fromItems = normalizeEnumOptions(items);
|
|
94
|
+
return fromItems.length > 0 ? fromItems : normalizeEnumOptions(schema);
|
|
95
|
+
}
|
|
96
|
+
function getSingleProperty(request) {
|
|
97
|
+
const rootSchema = isRecord(request.requestedSchema)
|
|
98
|
+
? request.requestedSchema
|
|
99
|
+
: {};
|
|
100
|
+
const properties = isRecord(rootSchema.properties)
|
|
101
|
+
? rootSchema.properties
|
|
102
|
+
: {};
|
|
103
|
+
const entries = Object.entries(properties).filter((entry) => isRecord(entry[1]));
|
|
104
|
+
if (entries.length !== 1)
|
|
105
|
+
return null;
|
|
106
|
+
const required = new Set(normalizeStringArray(rootSchema.required));
|
|
107
|
+
const [fieldName, fieldSchema] = entries[0];
|
|
108
|
+
return [fieldName, fieldSchema, required.has(fieldName)];
|
|
109
|
+
}
|
|
110
|
+
function normalizeDefaultValue(fieldSchema, mode, options) {
|
|
111
|
+
const optionIds = new Set(options.map((option) => option.id));
|
|
112
|
+
if (mode === "multi") {
|
|
113
|
+
const values = normalizeStringArray(fieldSchema.default).filter((value) => optionIds.has(value));
|
|
114
|
+
return values.length > 0 ? values : null;
|
|
115
|
+
}
|
|
116
|
+
const value = normalizeString(fieldSchema.default);
|
|
117
|
+
return value && optionIds.has(value) ? value : null;
|
|
118
|
+
}
|
|
119
|
+
export function createElicitationOptionListPayload(request, toolCallId) {
|
|
120
|
+
var _a;
|
|
121
|
+
if (request.mode !== "form")
|
|
122
|
+
return null;
|
|
123
|
+
const property = getSingleProperty(request);
|
|
124
|
+
if (!property)
|
|
125
|
+
return null;
|
|
126
|
+
const [fieldName, fieldSchema, required] = property;
|
|
127
|
+
const fieldType = fieldSchema.type;
|
|
128
|
+
const selectionMode = fieldType === "array" ? "multi" : "single";
|
|
129
|
+
if (fieldType !== "array" && fieldType !== "string")
|
|
130
|
+
return null;
|
|
131
|
+
const options = selectionMode === "multi"
|
|
132
|
+
? normalizeArrayOptions(fieldSchema)
|
|
133
|
+
: normalizeEnumOptions(fieldSchema);
|
|
134
|
+
if (options.length === 0)
|
|
135
|
+
return null;
|
|
136
|
+
const minSelections = (_a = readPositiveInteger(fieldSchema.minItems)) !== null && _a !== void 0 ? _a : (required ? 1 : 0);
|
|
137
|
+
const maxSelections = selectionMode === "single" ? 1 : readPositiveInteger(fieldSchema.maxItems);
|
|
138
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ toolCallId, message: normalizeString(request.message) ||
|
|
139
|
+
normalizeString(fieldSchema.description) ||
|
|
140
|
+
"Choose an option", fieldName, fieldTitle: normalizeString(fieldSchema.title) || fieldName }, (normalizeString(fieldSchema.description)
|
|
141
|
+
? { fieldDescription: normalizeString(fieldSchema.description) }
|
|
142
|
+
: {})), { selectionMode,
|
|
143
|
+
options, defaultValue: normalizeDefaultValue(fieldSchema, selectionMode, options), minSelections }), (maxSelections !== undefined ? { maxSelections } : {})), { required });
|
|
144
|
+
}
|
|
145
|
+
export function normalizeElicitationOptionListToolResult(request, result) {
|
|
146
|
+
if (!isRecord(result))
|
|
147
|
+
return { action: "cancel" };
|
|
148
|
+
if (result.action === "cancel" || result.action === "decline") {
|
|
149
|
+
return { action: result.action };
|
|
150
|
+
}
|
|
151
|
+
if (result.action !== "accept" || !isRecord(result.content)) {
|
|
152
|
+
return { action: "cancel" };
|
|
153
|
+
}
|
|
154
|
+
return {
|
|
155
|
+
action: "accept",
|
|
156
|
+
content: coerceElicitationFormContent(request, result.content),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export function findLatestElicitationOptionListToolOutput(messages) {
|
|
160
|
+
const message = messages.at(-1);
|
|
161
|
+
if ((message === null || message === void 0 ? void 0 : message.role) !== "assistant")
|
|
162
|
+
return null;
|
|
163
|
+
for (let partIndex = message.parts.length - 1; partIndex >= 0; partIndex--) {
|
|
164
|
+
const part = message.parts[partIndex];
|
|
165
|
+
if (!isRecord(part))
|
|
166
|
+
continue;
|
|
167
|
+
const isElicitationPart = part.type === ACP_ELICITATION_OPTION_LIST_TOOL_PART_TYPE ||
|
|
168
|
+
(part.type === "dynamic-tool" &&
|
|
169
|
+
normalizeString(part.toolName) ===
|
|
170
|
+
ACP_ELICITATION_OPTION_LIST_TOOL_NAME);
|
|
171
|
+
if (!isElicitationPart) {
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
const toolCallId = normalizeString(part.toolCallId);
|
|
175
|
+
if (!toolCallId)
|
|
176
|
+
continue;
|
|
177
|
+
if (part.state === "output-available") {
|
|
178
|
+
return {
|
|
179
|
+
toolCallId,
|
|
180
|
+
result: isRecord(part.output)
|
|
181
|
+
? part.output
|
|
182
|
+
: { action: "cancel" },
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
if (part.state === "output-denied") {
|
|
186
|
+
return { toolCallId, result: { action: "decline" } };
|
|
187
|
+
}
|
|
188
|
+
if (part.state === "output-error") {
|
|
189
|
+
return { toolCallId, result: { action: "cancel" } };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type ElicitationFieldType = "string" | "number" | "integer" | "boolean" | "enum" | "array";
|
|
2
|
+
export type NormalizedElicitationField = {
|
|
3
|
+
name: string;
|
|
4
|
+
type: ElicitationFieldType;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
options: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare function selectPermissionOptionId(request: Record<string, unknown>, preferredOptionId?: string): string;
|
|
11
|
+
export declare function createPermissionBypassResponse(request: Record<string, unknown>): {
|
|
12
|
+
outcome: {
|
|
13
|
+
outcome: string;
|
|
14
|
+
optionId: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function createElicitationFallbackResponse(request: Record<string, unknown>): {
|
|
18
|
+
action: string;
|
|
19
|
+
_meta: {
|
|
20
|
+
reason: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare function normalizeElicitationFormSchema(request: Record<string, unknown>): NormalizedElicitationField[];
|
|
24
|
+
export declare function coerceElicitationFormContent(request: Record<string, unknown>, rawContent: Record<string, unknown>): Record<string, string | number | boolean | string[]>;
|
|
25
|
+
export {};
|