@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,17 @@
|
|
|
1
|
+
import type { AcpCapabilitySnapshot } from "./types";
|
|
2
|
+
type StorageLike = Pick<Storage, "getItem" | "removeItem" | "setItem">;
|
|
3
|
+
export declare const ACP_CAPABILITY_REFRESH_EVENT = "acp.capabilities.updated";
|
|
4
|
+
export declare const safeLocalStorage: StorageLike;
|
|
5
|
+
export declare function mergeAcpCapabilitySnapshots(previous?: AcpCapabilitySnapshot | null, next?: AcpCapabilitySnapshot | null): AcpCapabilitySnapshot | null;
|
|
6
|
+
export declare function normalizeAcpCapabilitySnapshot(provider: string, snapshot?: unknown): AcpCapabilitySnapshot | null;
|
|
7
|
+
export declare function getAcpCapabilityCacheKey(provider: string, projectPath?: string | null): string;
|
|
8
|
+
export declare function readAcpCapabilityCache(provider: string, projectPath?: string | null, storage?: StorageLike): AcpCapabilitySnapshot | null;
|
|
9
|
+
export declare function persistAcpCapabilityCache(provider: string, projectPath?: string | null, snapshot?: AcpCapabilitySnapshot | null, storage?: StorageLike): AcpCapabilitySnapshot | null;
|
|
10
|
+
export declare function isAcpCapabilityCacheFresh(snapshot?: AcpCapabilitySnapshot | null, now?: number): boolean;
|
|
11
|
+
export declare function shouldFetchAcpCapabilitySnapshot(snapshot?: AcpCapabilitySnapshot | null, { force, now }?: {
|
|
12
|
+
force?: boolean;
|
|
13
|
+
now?: number;
|
|
14
|
+
}): boolean;
|
|
15
|
+
export declare function mergeAndPersistAcpCapabilityCache(provider: string, projectPath?: string | null, snapshot?: AcpCapabilitySnapshot | null, storage?: StorageLike): AcpCapabilitySnapshot | null;
|
|
16
|
+
export declare function hydrateAcpCapabilityCacheFromDefaults(provider: string, projectPath?: string | null, defaultSnapshot?: AcpCapabilitySnapshot | null, storage?: StorageLike): AcpCapabilitySnapshot | null;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { ACP_CAPABILITY_CACHE_TTL_MS, getDefaultAcpCapabilitySnapshot, } from "./default-capabilities.mjs";
|
|
2
|
+
const ACP_CAPABILITY_CACHE_PREFIX = "acp-capabilities:v1";
|
|
3
|
+
const CAPABILITY_KEYS = ["model", "mode", "thought_level"];
|
|
4
|
+
export const ACP_CAPABILITY_REFRESH_EVENT = "acp.capabilities.updated";
|
|
5
|
+
export const safeLocalStorage = {
|
|
6
|
+
getItem(key) {
|
|
7
|
+
try {
|
|
8
|
+
return typeof window === "undefined"
|
|
9
|
+
? null
|
|
10
|
+
: window.localStorage.getItem(key);
|
|
11
|
+
}
|
|
12
|
+
catch (_a) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
removeItem(key) {
|
|
17
|
+
try {
|
|
18
|
+
if (typeof window !== "undefined")
|
|
19
|
+
window.localStorage.removeItem(key);
|
|
20
|
+
}
|
|
21
|
+
catch (_a) { }
|
|
22
|
+
},
|
|
23
|
+
setItem(key, value) {
|
|
24
|
+
try {
|
|
25
|
+
if (typeof window !== "undefined")
|
|
26
|
+
window.localStorage.setItem(key, value);
|
|
27
|
+
}
|
|
28
|
+
catch (_a) { }
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
function normalizeText(value) {
|
|
32
|
+
return typeof value === "string" ? value.trim() : "";
|
|
33
|
+
}
|
|
34
|
+
function cloneJsonValue(value) {
|
|
35
|
+
if (value === undefined)
|
|
36
|
+
return value;
|
|
37
|
+
return JSON.parse(JSON.stringify(value));
|
|
38
|
+
}
|
|
39
|
+
function normalizeProvider(provider) {
|
|
40
|
+
return normalizeText(provider).toLowerCase() || "unknown";
|
|
41
|
+
}
|
|
42
|
+
function normalizeProjectPath(projectPath) {
|
|
43
|
+
return normalizeText(projectPath);
|
|
44
|
+
}
|
|
45
|
+
function normalizeCommand(command) {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
if (!command || typeof command !== "object" || Array.isArray(command)) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
const record = command;
|
|
51
|
+
const name = normalizeText((_b = (_a = record.name) !== null && _a !== void 0 ? _a : record.command) !== null && _b !== void 0 ? _b : record.id).replace(/^\/+/, "");
|
|
52
|
+
if (!name)
|
|
53
|
+
return null;
|
|
54
|
+
return {
|
|
55
|
+
name,
|
|
56
|
+
description: normalizeText(record.description),
|
|
57
|
+
input: record.input,
|
|
58
|
+
source: "acp",
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function normalizeCommands(value) {
|
|
62
|
+
return (Array.isArray(value) ? value : [])
|
|
63
|
+
.map(normalizeCommand)
|
|
64
|
+
.filter((command) => Boolean(command));
|
|
65
|
+
}
|
|
66
|
+
function mergeCommands(previousCommands, nextCommands) {
|
|
67
|
+
const merged = [];
|
|
68
|
+
const seen = new Set();
|
|
69
|
+
for (const command of [
|
|
70
|
+
...normalizeCommands(nextCommands),
|
|
71
|
+
...normalizeCommands(previousCommands),
|
|
72
|
+
]) {
|
|
73
|
+
const key = command.name.replace(/^\/+/, "").toLowerCase();
|
|
74
|
+
if (!key || seen.has(key))
|
|
75
|
+
continue;
|
|
76
|
+
seen.add(key);
|
|
77
|
+
merged.push(command);
|
|
78
|
+
}
|
|
79
|
+
return merged;
|
|
80
|
+
}
|
|
81
|
+
function normalizeOption(option, index = 0) {
|
|
82
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
83
|
+
if (option == null)
|
|
84
|
+
return null;
|
|
85
|
+
if (typeof option === "string" ||
|
|
86
|
+
typeof option === "number" ||
|
|
87
|
+
typeof option === "boolean") {
|
|
88
|
+
const value = String(option).trim();
|
|
89
|
+
return value
|
|
90
|
+
? { value, label: value, description: "", order: index }
|
|
91
|
+
: null;
|
|
92
|
+
}
|
|
93
|
+
if (typeof option !== "object" || Array.isArray(option))
|
|
94
|
+
return null;
|
|
95
|
+
const record = option;
|
|
96
|
+
const value = normalizeText((_e = (_d = (_c = (_b = (_a = record.value) !== null && _a !== void 0 ? _a : record.id) !== null && _b !== void 0 ? _b : record.modeId) !== null && _c !== void 0 ? _c : record.const) !== null && _d !== void 0 ? _d : (Array.isArray(record.enum) ? record.enum[0] : undefined)) !== null && _e !== void 0 ? _e : record.name);
|
|
97
|
+
if (!value)
|
|
98
|
+
return null;
|
|
99
|
+
return {
|
|
100
|
+
value,
|
|
101
|
+
label: normalizeText((_h = (_g = (_f = record.label) !== null && _f !== void 0 ? _f : record.title) !== null && _g !== void 0 ? _g : record.name) !== null && _h !== void 0 ? _h : record.description) || value,
|
|
102
|
+
description: normalizeText(record.description),
|
|
103
|
+
order: Number.isInteger(record.order) ? Number(record.order) : index,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function dedupeOptions(options) {
|
|
107
|
+
const seen = new Set();
|
|
108
|
+
return options.filter((option) => {
|
|
109
|
+
if (!option.value || seen.has(option.value))
|
|
110
|
+
return false;
|
|
111
|
+
seen.add(option.value);
|
|
112
|
+
return true;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function normalizeCapability(value) {
|
|
116
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
117
|
+
return null;
|
|
118
|
+
const record = value;
|
|
119
|
+
const key = normalizeText(record.key);
|
|
120
|
+
if (key !== "model" && key !== "mode" && key !== "thought_level")
|
|
121
|
+
return null;
|
|
122
|
+
const options = dedupeOptions((Array.isArray(record.options) ? record.options : [])
|
|
123
|
+
.map(normalizeOption)
|
|
124
|
+
.filter((option) => Boolean(option)));
|
|
125
|
+
return {
|
|
126
|
+
key,
|
|
127
|
+
currentValue: normalizeText(record.currentValue) || null,
|
|
128
|
+
options,
|
|
129
|
+
configId: normalizeText(record.configId) || key,
|
|
130
|
+
configKey: normalizeText(record.configKey) || normalizeText(record.configId) || key,
|
|
131
|
+
source: record.source === "session" ||
|
|
132
|
+
record.source === "config-option" ||
|
|
133
|
+
record.source === "fallback"
|
|
134
|
+
? record.source
|
|
135
|
+
: "fallback",
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function mergeCapability(previous, next) {
|
|
139
|
+
if (!previous)
|
|
140
|
+
return next !== null && next !== void 0 ? next : null;
|
|
141
|
+
if (!next)
|
|
142
|
+
return previous;
|
|
143
|
+
return Object.assign(Object.assign(Object.assign({}, previous), next), { options: next.options.length
|
|
144
|
+
? dedupeOptions(next.options)
|
|
145
|
+
: previous.options, currentValue: next.currentValue !== undefined
|
|
146
|
+
? next.currentValue
|
|
147
|
+
: previous.currentValue });
|
|
148
|
+
}
|
|
149
|
+
export function mergeAcpCapabilitySnapshots(previous, next) {
|
|
150
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
151
|
+
if (!previous)
|
|
152
|
+
return next !== null && next !== void 0 ? next : null;
|
|
153
|
+
if (!next)
|
|
154
|
+
return previous;
|
|
155
|
+
const capabilities = Object.assign({}, ((_a = previous.capabilities) !== null && _a !== void 0 ? _a : {}));
|
|
156
|
+
for (const key of CAPABILITY_KEYS) {
|
|
157
|
+
const merged = mergeCapability(capabilities[key], (_b = next.capabilities) === null || _b === void 0 ? void 0 : _b[key]);
|
|
158
|
+
if (merged)
|
|
159
|
+
capabilities[key] = merged;
|
|
160
|
+
}
|
|
161
|
+
return Object.assign(Object.assign(Object.assign({}, previous), next), { capabilities, metadata: Object.assign(Object.assign(Object.assign({}, ((_c = previous.metadata) !== null && _c !== void 0 ? _c : { availableCommands: [] })), ((_d = next.metadata) !== null && _d !== void 0 ? _d : { availableCommands: [] })), { tokenUsage: (_h = (_f = (_e = next.metadata) === null || _e === void 0 ? void 0 : _e.tokenUsage) !== null && _f !== void 0 ? _f : (_g = previous.metadata) === null || _g === void 0 ? void 0 : _g.tokenUsage) !== null && _h !== void 0 ? _h : null, availableCommands: mergeCommands((_j = previous.metadata) === null || _j === void 0 ? void 0 : _j.availableCommands, (_k = next.metadata) === null || _k === void 0 ? void 0 : _k.availableCommands) }) });
|
|
162
|
+
}
|
|
163
|
+
export function normalizeAcpCapabilitySnapshot(provider, snapshot) {
|
|
164
|
+
var _a;
|
|
165
|
+
if (!snapshot || typeof snapshot !== "object" || Array.isArray(snapshot)) {
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
const record = snapshot;
|
|
169
|
+
const capabilities = {};
|
|
170
|
+
const rawCapabilities = record.capabilities && typeof record.capabilities === "object"
|
|
171
|
+
? record.capabilities
|
|
172
|
+
: {};
|
|
173
|
+
for (const key of CAPABILITY_KEYS) {
|
|
174
|
+
const capability = normalizeCapability(rawCapabilities[key]);
|
|
175
|
+
if (capability)
|
|
176
|
+
capabilities[key] = capability;
|
|
177
|
+
}
|
|
178
|
+
const metadata = record.metadata && typeof record.metadata === "object"
|
|
179
|
+
? record.metadata
|
|
180
|
+
: {};
|
|
181
|
+
return Object.assign(Object.assign({}, cloneJsonValue(record)), { provider: normalizeProvider(record.provider || provider), sessionId: normalizeText(record.sessionId) || null, source: normalizeText(record.source) || null, updatedAt: normalizeText(record.updatedAt) || new Date().toISOString(), ttl: Number.isFinite(Number(record.ttl)) && Number(record.ttl) > 0
|
|
182
|
+
? Number(record.ttl)
|
|
183
|
+
: ACP_CAPABILITY_CACHE_TTL_MS, agentVersion: normalizeText(record.agentVersion) || null, capabilities, metadata: Object.assign(Object.assign({}, metadata), { tokenUsage: (_a = metadata.tokenUsage) !== null && _a !== void 0 ? _a : null, availableCommands: normalizeCommands(metadata.availableCommands) }) });
|
|
184
|
+
}
|
|
185
|
+
export function getAcpCapabilityCacheKey(provider, projectPath) {
|
|
186
|
+
const normalizedProvider = encodeURIComponent(normalizeProvider(provider));
|
|
187
|
+
const normalizedProjectPath = normalizeProjectPath(projectPath);
|
|
188
|
+
return `${ACP_CAPABILITY_CACHE_PREFIX}:${normalizedProvider}:${normalizedProjectPath ? encodeURIComponent(normalizedProjectPath) : "global"}`;
|
|
189
|
+
}
|
|
190
|
+
export function readAcpCapabilityCache(provider, projectPath, storage = safeLocalStorage) {
|
|
191
|
+
const key = getAcpCapabilityCacheKey(provider, projectPath);
|
|
192
|
+
const raw = storage.getItem(key);
|
|
193
|
+
if (!raw)
|
|
194
|
+
return null;
|
|
195
|
+
try {
|
|
196
|
+
return normalizeAcpCapabilitySnapshot(provider, JSON.parse(raw));
|
|
197
|
+
}
|
|
198
|
+
catch (_a) {
|
|
199
|
+
storage.removeItem(key);
|
|
200
|
+
return null;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
export function persistAcpCapabilityCache(provider, projectPath, snapshot, storage = safeLocalStorage) {
|
|
204
|
+
const normalized = normalizeAcpCapabilitySnapshot(provider, snapshot);
|
|
205
|
+
const key = getAcpCapabilityCacheKey(provider, projectPath);
|
|
206
|
+
if (!normalized) {
|
|
207
|
+
storage.removeItem(key);
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
storage.setItem(key, JSON.stringify(normalized));
|
|
211
|
+
return normalized;
|
|
212
|
+
}
|
|
213
|
+
export function isAcpCapabilityCacheFresh(snapshot, now = Date.now()) {
|
|
214
|
+
if (!snapshot)
|
|
215
|
+
return false;
|
|
216
|
+
const updatedAtMs = Date.parse(snapshot.updatedAt || "");
|
|
217
|
+
if (!Number.isFinite(updatedAtMs))
|
|
218
|
+
return false;
|
|
219
|
+
const ttl = Number(snapshot.ttl || ACP_CAPABILITY_CACHE_TTL_MS);
|
|
220
|
+
return Number.isFinite(ttl) && ttl > 0 && now - updatedAtMs < ttl;
|
|
221
|
+
}
|
|
222
|
+
export function shouldFetchAcpCapabilitySnapshot(snapshot, { force = false, now = Date.now() } = {}) {
|
|
223
|
+
return force || !isAcpCapabilityCacheFresh(snapshot, now);
|
|
224
|
+
}
|
|
225
|
+
export function mergeAndPersistAcpCapabilityCache(provider, projectPath, snapshot, storage = safeLocalStorage) {
|
|
226
|
+
const previous = readAcpCapabilityCache(provider, projectPath, storage);
|
|
227
|
+
const next = normalizeAcpCapabilitySnapshot(provider, snapshot);
|
|
228
|
+
return persistAcpCapabilityCache(provider, projectPath, mergeAcpCapabilitySnapshots(previous, next), storage);
|
|
229
|
+
}
|
|
230
|
+
function parseSnapshotTimestamp(snapshot) {
|
|
231
|
+
const timestamp = Date.parse((snapshot === null || snapshot === void 0 ? void 0 : snapshot.updatedAt) || "");
|
|
232
|
+
return Number.isFinite(timestamp) ? timestamp : 0;
|
|
233
|
+
}
|
|
234
|
+
function removeFallbackCapabilities(previous) {
|
|
235
|
+
var _a, _b;
|
|
236
|
+
const capabilities = Object.assign({}, ((_a = previous.capabilities) !== null && _a !== void 0 ? _a : {}));
|
|
237
|
+
for (const key of CAPABILITY_KEYS) {
|
|
238
|
+
if (((_b = capabilities[key]) === null || _b === void 0 ? void 0 : _b.source) === "fallback") {
|
|
239
|
+
delete capabilities[key];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return Object.assign(Object.assign({}, previous), { capabilities });
|
|
243
|
+
}
|
|
244
|
+
export function hydrateAcpCapabilityCacheFromDefaults(provider, projectPath, defaultSnapshot = getDefaultAcpCapabilitySnapshot(provider), storage = safeLocalStorage) {
|
|
245
|
+
const normalizedDefault = normalizeAcpCapabilitySnapshot(provider, defaultSnapshot);
|
|
246
|
+
if (!normalizedDefault) {
|
|
247
|
+
return readAcpCapabilityCache(provider, projectPath, storage);
|
|
248
|
+
}
|
|
249
|
+
const previous = readAcpCapabilityCache(provider, projectPath, storage);
|
|
250
|
+
if (!previous) {
|
|
251
|
+
return persistAcpCapabilityCache(provider, projectPath, normalizedDefault, storage);
|
|
252
|
+
}
|
|
253
|
+
const defaultIsNewer = parseSnapshotTimestamp(normalizedDefault) >=
|
|
254
|
+
parseSnapshotTimestamp(previous);
|
|
255
|
+
const merged = defaultIsNewer
|
|
256
|
+
? mergeAcpCapabilitySnapshots(normalizedDefault, removeFallbackCapabilities(previous))
|
|
257
|
+
: mergeAcpCapabilitySnapshots(normalizedDefault, previous);
|
|
258
|
+
return persistAcpCapabilityCache(provider, projectPath, merged, storage);
|
|
259
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
import type { AcpBuiltinToolSettings, AcpProviderKey } from "./";
|
|
3
|
+
import { type ContextBundleV2, type ContextItem, type ContextItemKind, type ContextOperationResult } from "./context";
|
|
4
|
+
type BuiltinToolSettingsUpdater = unknown | ((current: unknown) => unknown);
|
|
5
|
+
export type AcpUiRuntimeContext = {
|
|
6
|
+
provider: AcpProviderKey;
|
|
7
|
+
model: string | null;
|
|
8
|
+
modeId: string | null;
|
|
9
|
+
thoughtLevel: string | null;
|
|
10
|
+
explicitModel: string | null;
|
|
11
|
+
explicitModeId: string | null;
|
|
12
|
+
explicitThoughtLevel: string | null;
|
|
13
|
+
permissionMode: string;
|
|
14
|
+
workspacePath: string | null;
|
|
15
|
+
builtinToolSettings: AcpBuiltinToolSettings;
|
|
16
|
+
contextBundle: ContextBundleV2;
|
|
17
|
+
setProvider: (value: string | null) => void;
|
|
18
|
+
setModel: (value: string | null) => void;
|
|
19
|
+
setModeId: (value: string | null) => void;
|
|
20
|
+
setThoughtLevel: (value: string | null) => void;
|
|
21
|
+
setBuiltinToolSettings: (toolId: string, value: BuiltinToolSettingsUpdater) => void;
|
|
22
|
+
syncModel: (value: string | null) => void;
|
|
23
|
+
syncModeId: (value: string | null) => void;
|
|
24
|
+
syncThoughtLevel: (value: string | null) => void;
|
|
25
|
+
addContextItems: (items: ContextItem[]) => ContextOperationResult;
|
|
26
|
+
removeContextItems: (ids: string[]) => ContextOperationResult;
|
|
27
|
+
replaceContextItems: (items: ContextItem[]) => ContextOperationResult;
|
|
28
|
+
clearContextItems: (kinds?: ContextItemKind[]) => ContextOperationResult;
|
|
29
|
+
getContextBundle: (kinds?: ContextItemKind[]) => ContextBundleV2;
|
|
30
|
+
consumeContextBundle: () => ContextBundleV2 | null;
|
|
31
|
+
};
|
|
32
|
+
type AcpUiProviderProps = PropsWithChildren<{
|
|
33
|
+
workspacePath?: string | null;
|
|
34
|
+
defaultProvider?: string | null;
|
|
35
|
+
}>;
|
|
36
|
+
export declare function AcpUiProvider({ children, workspacePath, defaultProvider, }: AcpUiProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare function useAcpUiRuntimeContext(): AcpUiRuntimeContext;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react";
|
|
4
|
+
import { createContextBundle, filterContextBundle, } from "./context.mjs";
|
|
5
|
+
import { normalizeAcpProvider } from "./provider-registry.mjs";
|
|
6
|
+
import { readStoredBuiltinToolSettings, storeBuiltinToolSettings, updateClientBuiltinToolSettings, } from "../../tools/client-registry.mjs";
|
|
7
|
+
const DEFAULT_PROVIDER = "codex";
|
|
8
|
+
const DEFAULT_PERMISSION_MODE = "bypassPermissions";
|
|
9
|
+
const AcpUiContext = createContext(null);
|
|
10
|
+
function stableStringify(value) {
|
|
11
|
+
if (Array.isArray(value)) {
|
|
12
|
+
return `[${value.map((entry) => stableStringify(entry)).join(",")}]`;
|
|
13
|
+
}
|
|
14
|
+
if (value && typeof value === "object") {
|
|
15
|
+
const record = value;
|
|
16
|
+
return `{${Object.keys(record)
|
|
17
|
+
.sort()
|
|
18
|
+
.map((key) => `${JSON.stringify(key)}:${stableStringify(record[key])}`)
|
|
19
|
+
.join(",")}}`;
|
|
20
|
+
}
|
|
21
|
+
return JSON.stringify(value);
|
|
22
|
+
}
|
|
23
|
+
function hashString(value) {
|
|
24
|
+
let hash = 2166136261;
|
|
25
|
+
for (let index = 0; index < value.length; index++) {
|
|
26
|
+
hash ^= value.charCodeAt(index);
|
|
27
|
+
hash = Math.imul(hash, 16777619);
|
|
28
|
+
}
|
|
29
|
+
return (hash >>> 0).toString(36);
|
|
30
|
+
}
|
|
31
|
+
function contextItemKey(item) {
|
|
32
|
+
const baseItem = Object.assign({}, item);
|
|
33
|
+
delete baseItem.id;
|
|
34
|
+
return `${item.kind}:${hashString(stableStringify(baseItem))}`;
|
|
35
|
+
}
|
|
36
|
+
function withContextItemIds(items) {
|
|
37
|
+
return items.map((item) => (Object.assign(Object.assign({}, item), { id: typeof item.id === "string" && item.id.trim()
|
|
38
|
+
? item.id.trim()
|
|
39
|
+
: contextItemKey(item) })));
|
|
40
|
+
}
|
|
41
|
+
function createChangedBundle(items) {
|
|
42
|
+
return createContextBundle(items, new Date().toISOString());
|
|
43
|
+
}
|
|
44
|
+
function getContextItemIds(items) {
|
|
45
|
+
return items.map((item) => item.id).filter((id) => Boolean(id));
|
|
46
|
+
}
|
|
47
|
+
function emitContextChanged(context, change) {
|
|
48
|
+
if (typeof window === "undefined")
|
|
49
|
+
return;
|
|
50
|
+
window.dispatchEvent(new CustomEvent("acp.context.local-change", {
|
|
51
|
+
detail: { context, change },
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
export function AcpUiProvider({ children, workspacePath, defaultProvider, }) {
|
|
55
|
+
const [provider, setProviderState] = useState(() => normalizeAcpProvider(defaultProvider !== null && defaultProvider !== void 0 ? defaultProvider : DEFAULT_PROVIDER));
|
|
56
|
+
const [model, setModelState] = useState(null);
|
|
57
|
+
const [modeId, setModeIdState] = useState(null);
|
|
58
|
+
const [thoughtLevel, setThoughtLevelState] = useState(null);
|
|
59
|
+
const [explicitModel, setExplicitModelState] = useState(null);
|
|
60
|
+
const [explicitModeId, setExplicitModeIdState] = useState(null);
|
|
61
|
+
const [explicitThoughtLevel, setExplicitThoughtLevelState] = useState(null);
|
|
62
|
+
const [builtinToolSettings, setBuiltinToolSettingsState] = useState({});
|
|
63
|
+
const [contextBundle, setContextBundleState] = useState(() => createContextBundle());
|
|
64
|
+
const contextBundleRef = useRef(contextBundle);
|
|
65
|
+
const setContextBundle = useCallback((next) => {
|
|
66
|
+
contextBundleRef.current = next;
|
|
67
|
+
setContextBundleState(next);
|
|
68
|
+
}, []);
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
setBuiltinToolSettingsState(readStoredBuiltinToolSettings());
|
|
71
|
+
}, []);
|
|
72
|
+
const normalize = useCallback((value) => {
|
|
73
|
+
const normalized = String(value !== null && value !== void 0 ? value : "").trim();
|
|
74
|
+
return normalized || null;
|
|
75
|
+
}, []);
|
|
76
|
+
const setProvider = useCallback((next) => {
|
|
77
|
+
const normalizedProvider = normalizeAcpProvider(next !== null && next !== void 0 ? next : DEFAULT_PROVIDER);
|
|
78
|
+
setProviderState((currentProvider) => {
|
|
79
|
+
if (currentProvider === normalizedProvider)
|
|
80
|
+
return currentProvider;
|
|
81
|
+
setModelState(null);
|
|
82
|
+
setModeIdState(null);
|
|
83
|
+
setThoughtLevelState(null);
|
|
84
|
+
setExplicitModelState(null);
|
|
85
|
+
setExplicitModeIdState(null);
|
|
86
|
+
setExplicitThoughtLevelState(null);
|
|
87
|
+
return normalizedProvider;
|
|
88
|
+
});
|
|
89
|
+
}, []);
|
|
90
|
+
const setModel = useCallback((next) => {
|
|
91
|
+
const normalized = normalize(next);
|
|
92
|
+
setModelState(normalized);
|
|
93
|
+
setExplicitModelState(normalized);
|
|
94
|
+
}, [normalize]);
|
|
95
|
+
const setModeId = useCallback((next) => {
|
|
96
|
+
const normalized = normalize(next);
|
|
97
|
+
setModeIdState(normalized);
|
|
98
|
+
setExplicitModeIdState(normalized);
|
|
99
|
+
}, [normalize]);
|
|
100
|
+
const setThoughtLevel = useCallback((next) => {
|
|
101
|
+
const normalized = normalize(next);
|
|
102
|
+
setThoughtLevelState(normalized);
|
|
103
|
+
setExplicitThoughtLevelState(normalized);
|
|
104
|
+
}, [normalize]);
|
|
105
|
+
const setBuiltinToolSettings = useCallback((toolId, next) => {
|
|
106
|
+
setBuiltinToolSettingsState((current) => {
|
|
107
|
+
const updated = updateClientBuiltinToolSettings(current, toolId, next);
|
|
108
|
+
storeBuiltinToolSettings(updated);
|
|
109
|
+
return updated;
|
|
110
|
+
});
|
|
111
|
+
}, []);
|
|
112
|
+
const syncModel = useCallback((next) => setModelState(normalize(next)), [normalize]);
|
|
113
|
+
const syncModeId = useCallback((next) => setModeIdState(normalize(next)), [normalize]);
|
|
114
|
+
const syncThoughtLevel = useCallback((next) => setThoughtLevelState(normalize(next)), [normalize]);
|
|
115
|
+
const addContextItems = useCallback((items) => {
|
|
116
|
+
const normalizedItems = withContextItemIds(items);
|
|
117
|
+
const current = contextBundleRef.current;
|
|
118
|
+
const itemById = new Map(current.items.map((item) => [item.id, item]));
|
|
119
|
+
for (const item of normalizedItems) {
|
|
120
|
+
itemById.set(item.id, item);
|
|
121
|
+
}
|
|
122
|
+
const next = createChangedBundle([...itemById.values()]);
|
|
123
|
+
const change = {
|
|
124
|
+
operation: "add",
|
|
125
|
+
ids: getContextItemIds(normalizedItems),
|
|
126
|
+
items: normalizedItems,
|
|
127
|
+
};
|
|
128
|
+
setContextBundle(next);
|
|
129
|
+
emitContextChanged(next, change);
|
|
130
|
+
return { context: next, change };
|
|
131
|
+
}, [setContextBundle]);
|
|
132
|
+
const removeContextItems = useCallback((ids) => {
|
|
133
|
+
const normalizedIds = ids.map((id) => id.trim()).filter(Boolean);
|
|
134
|
+
const idSet = new Set(normalizedIds);
|
|
135
|
+
const next = createChangedBundle(contextBundleRef.current.items.filter((item) => { var _a; return !idSet.has((_a = item.id) !== null && _a !== void 0 ? _a : ""); }));
|
|
136
|
+
const change = {
|
|
137
|
+
operation: "remove",
|
|
138
|
+
ids: normalizedIds,
|
|
139
|
+
};
|
|
140
|
+
setContextBundle(next);
|
|
141
|
+
emitContextChanged(next, change);
|
|
142
|
+
return { context: next, change };
|
|
143
|
+
}, [setContextBundle]);
|
|
144
|
+
const replaceContextItems = useCallback((items) => {
|
|
145
|
+
const normalizedItems = withContextItemIds(items);
|
|
146
|
+
const next = createChangedBundle(normalizedItems);
|
|
147
|
+
const change = {
|
|
148
|
+
operation: "replace",
|
|
149
|
+
ids: getContextItemIds(normalizedItems),
|
|
150
|
+
items: normalizedItems,
|
|
151
|
+
};
|
|
152
|
+
setContextBundle(next);
|
|
153
|
+
emitContextChanged(next, change);
|
|
154
|
+
return { context: next, change };
|
|
155
|
+
}, [setContextBundle]);
|
|
156
|
+
const clearContextItems = useCallback((kinds) => {
|
|
157
|
+
const kindSet = kinds ? new Set(kinds) : null;
|
|
158
|
+
const next = createChangedBundle(kindSet
|
|
159
|
+
? contextBundleRef.current.items.filter((item) => !kindSet.has(item.kind))
|
|
160
|
+
: []);
|
|
161
|
+
const change = {
|
|
162
|
+
operation: "clear",
|
|
163
|
+
kinds,
|
|
164
|
+
};
|
|
165
|
+
setContextBundle(next);
|
|
166
|
+
emitContextChanged(next, change);
|
|
167
|
+
return { context: next, change };
|
|
168
|
+
}, [setContextBundle]);
|
|
169
|
+
const getContextBundle = useCallback((kinds) => {
|
|
170
|
+
return filterContextBundle(contextBundleRef.current, kinds);
|
|
171
|
+
}, []);
|
|
172
|
+
const consumeContextBundle = useCallback(() => {
|
|
173
|
+
const current = contextBundleRef.current;
|
|
174
|
+
if (current.items.length === 0)
|
|
175
|
+
return null;
|
|
176
|
+
const consumed = current;
|
|
177
|
+
const next = createChangedBundle([]);
|
|
178
|
+
setContextBundle(next);
|
|
179
|
+
emitContextChanged(next, {
|
|
180
|
+
operation: "consume",
|
|
181
|
+
ids: getContextItemIds(consumed.items),
|
|
182
|
+
items: consumed.items,
|
|
183
|
+
});
|
|
184
|
+
return consumed;
|
|
185
|
+
}, [setContextBundle]);
|
|
186
|
+
const value = useMemo(() => ({
|
|
187
|
+
provider,
|
|
188
|
+
model,
|
|
189
|
+
modeId,
|
|
190
|
+
thoughtLevel,
|
|
191
|
+
explicitModel,
|
|
192
|
+
explicitModeId,
|
|
193
|
+
explicitThoughtLevel,
|
|
194
|
+
permissionMode: DEFAULT_PERMISSION_MODE,
|
|
195
|
+
workspacePath: normalize(workspacePath !== null && workspacePath !== void 0 ? workspacePath : null),
|
|
196
|
+
builtinToolSettings,
|
|
197
|
+
contextBundle,
|
|
198
|
+
setProvider,
|
|
199
|
+
setModel,
|
|
200
|
+
setModeId,
|
|
201
|
+
setThoughtLevel,
|
|
202
|
+
setBuiltinToolSettings,
|
|
203
|
+
syncModel,
|
|
204
|
+
syncModeId,
|
|
205
|
+
syncThoughtLevel,
|
|
206
|
+
addContextItems,
|
|
207
|
+
removeContextItems,
|
|
208
|
+
replaceContextItems,
|
|
209
|
+
clearContextItems,
|
|
210
|
+
getContextBundle,
|
|
211
|
+
consumeContextBundle,
|
|
212
|
+
}), [
|
|
213
|
+
addContextItems,
|
|
214
|
+
clearContextItems,
|
|
215
|
+
consumeContextBundle,
|
|
216
|
+
contextBundle,
|
|
217
|
+
builtinToolSettings,
|
|
218
|
+
explicitModeId,
|
|
219
|
+
explicitModel,
|
|
220
|
+
explicitThoughtLevel,
|
|
221
|
+
getContextBundle,
|
|
222
|
+
model,
|
|
223
|
+
modeId,
|
|
224
|
+
normalize,
|
|
225
|
+
provider,
|
|
226
|
+
removeContextItems,
|
|
227
|
+
replaceContextItems,
|
|
228
|
+
setModeId,
|
|
229
|
+
setModel,
|
|
230
|
+
setProvider,
|
|
231
|
+
setBuiltinToolSettings,
|
|
232
|
+
syncModeId,
|
|
233
|
+
syncModel,
|
|
234
|
+
syncThoughtLevel,
|
|
235
|
+
setThoughtLevel,
|
|
236
|
+
thoughtLevel,
|
|
237
|
+
workspacePath,
|
|
238
|
+
]);
|
|
239
|
+
return (_jsx(AcpUiContext.Provider, { value: value, children: children }));
|
|
240
|
+
}
|
|
241
|
+
export function useAcpUiRuntimeContext() {
|
|
242
|
+
const context = useContext(AcpUiContext);
|
|
243
|
+
if (!context) {
|
|
244
|
+
throw new Error("useAcpUiRuntimeContext must be used inside AcpUiProvider");
|
|
245
|
+
}
|
|
246
|
+
return context;
|
|
247
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type AcpUiCommand = {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
namespace: "skill" | "acp";
|
|
5
|
+
source: "skill" | "acp";
|
|
6
|
+
path?: string;
|
|
7
|
+
scope?: "user" | "system" | "project";
|
|
8
|
+
};
|
|
9
|
+
export declare function listAcpUiCommands({ workspacePath, }?: {
|
|
10
|
+
workspacePath?: string | null;
|
|
11
|
+
}): Promise<AcpUiCommand[]>;
|