@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,121 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import os from "node:os";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
const SKILL_ROOTS = [
|
|
5
|
+
{ scope: "user", relativePath: [".codex", "skills"] },
|
|
6
|
+
{ scope: "system", relativePath: [".codex", "skills", ".system"] },
|
|
7
|
+
];
|
|
8
|
+
function normalizeText(value) {
|
|
9
|
+
return typeof value === "string" ? value.trim() : "";
|
|
10
|
+
}
|
|
11
|
+
function normalizeSlashName(value) {
|
|
12
|
+
const normalized = normalizeText(value).replace(/^\/+/, "");
|
|
13
|
+
return normalized ? `/${normalized}` : "";
|
|
14
|
+
}
|
|
15
|
+
function uniqueCommands(commands) {
|
|
16
|
+
const seen = new Set();
|
|
17
|
+
return commands.filter((command) => {
|
|
18
|
+
const key = command.name.toLowerCase();
|
|
19
|
+
if (seen.has(key))
|
|
20
|
+
return false;
|
|
21
|
+
seen.add(key);
|
|
22
|
+
return true;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function parseFrontmatter(rawDocument) {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
const normalized = rawDocument.replace(/^\uFEFF/, "");
|
|
28
|
+
if (!normalized.startsWith("---"))
|
|
29
|
+
return {};
|
|
30
|
+
const endIndex = normalized.indexOf("\n---", 3);
|
|
31
|
+
if (endIndex < 0)
|
|
32
|
+
return {};
|
|
33
|
+
const frontmatter = normalized.slice(3, endIndex).trim();
|
|
34
|
+
const values = {};
|
|
35
|
+
for (const line of frontmatter.split(/\r?\n/)) {
|
|
36
|
+
const match = line.match(/^([A-Za-z0-9_-]+):\s*(.*)$/);
|
|
37
|
+
if (!match)
|
|
38
|
+
continue;
|
|
39
|
+
const key = (_a = match[1]) === null || _a === void 0 ? void 0 : _a.trim();
|
|
40
|
+
if (!key)
|
|
41
|
+
continue;
|
|
42
|
+
values[key] = ((_b = match[2]) !== null && _b !== void 0 ? _b : "").trim().replace(/^["']|["']$/g, "");
|
|
43
|
+
}
|
|
44
|
+
return values;
|
|
45
|
+
}
|
|
46
|
+
function stripFrontmatter(rawDocument) {
|
|
47
|
+
const normalized = rawDocument.replace(/^\uFEFF/, "");
|
|
48
|
+
if (!normalized.startsWith("---"))
|
|
49
|
+
return normalized;
|
|
50
|
+
const endIndex = normalized.indexOf("\n---", 3);
|
|
51
|
+
if (endIndex < 0)
|
|
52
|
+
return normalized;
|
|
53
|
+
return normalized.slice(endIndex + 4);
|
|
54
|
+
}
|
|
55
|
+
function inferDescription(rawDocument) {
|
|
56
|
+
const frontmatter = parseFrontmatter(rawDocument);
|
|
57
|
+
const explicit = normalizeText(frontmatter.description);
|
|
58
|
+
if (explicit)
|
|
59
|
+
return explicit;
|
|
60
|
+
const firstMeaningfulLine = stripFrontmatter(rawDocument)
|
|
61
|
+
.split(/\r?\n/)
|
|
62
|
+
.map((line) => line.trim())
|
|
63
|
+
.find((line) => line && !line.startsWith("---"));
|
|
64
|
+
return (firstMeaningfulLine === null || firstMeaningfulLine === void 0 ? void 0 : firstMeaningfulLine.replace(/^#+\s*/, "").trim()) || "Codex 技能";
|
|
65
|
+
}
|
|
66
|
+
async function readSkillCommand(skillPath, scope) {
|
|
67
|
+
try {
|
|
68
|
+
const rawDocument = await fs.readFile(path.join(skillPath, "SKILL.md"), "utf8");
|
|
69
|
+
const frontmatter = parseFrontmatter(rawDocument);
|
|
70
|
+
const name = normalizeSlashName(frontmatter.name || path.basename(skillPath));
|
|
71
|
+
if (!name)
|
|
72
|
+
return null;
|
|
73
|
+
return {
|
|
74
|
+
name,
|
|
75
|
+
description: inferDescription(rawDocument),
|
|
76
|
+
namespace: "skill",
|
|
77
|
+
source: "skill",
|
|
78
|
+
path: skillPath,
|
|
79
|
+
scope,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
catch (_a) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function listSkillDirectories(rootPath) {
|
|
87
|
+
let entries;
|
|
88
|
+
try {
|
|
89
|
+
entries = await fs.readdir(rootPath, { withFileTypes: true });
|
|
90
|
+
}
|
|
91
|
+
catch (_a) {
|
|
92
|
+
return [];
|
|
93
|
+
}
|
|
94
|
+
return entries
|
|
95
|
+
.filter((entry) => entry.isDirectory())
|
|
96
|
+
.map((entry) => path.join(rootPath, entry.name));
|
|
97
|
+
}
|
|
98
|
+
async function listSkillsFromRoot(rootPath, scope) {
|
|
99
|
+
const directories = await listSkillDirectories(rootPath);
|
|
100
|
+
const commands = await Promise.all(directories.map((directory) => readSkillCommand(directory, scope)));
|
|
101
|
+
return commands.filter((command) => Boolean(command));
|
|
102
|
+
}
|
|
103
|
+
export async function listAcpUiCommands({ workspacePath, } = {}) {
|
|
104
|
+
const normalizedWorkspacePath = normalizeText(workspacePath);
|
|
105
|
+
const roots = [
|
|
106
|
+
...(normalizedWorkspacePath
|
|
107
|
+
? [
|
|
108
|
+
{
|
|
109
|
+
rootPath: path.join(normalizedWorkspacePath, ".codex", "skills"),
|
|
110
|
+
scope: "project",
|
|
111
|
+
},
|
|
112
|
+
]
|
|
113
|
+
: []),
|
|
114
|
+
...SKILL_ROOTS.map((root) => ({
|
|
115
|
+
rootPath: path.join(os.homedir(), ...root.relativePath),
|
|
116
|
+
scope: root.scope,
|
|
117
|
+
})),
|
|
118
|
+
];
|
|
119
|
+
const commandGroups = await Promise.all(roots.map((root) => listSkillsFromRoot(root.rootPath, root.scope)));
|
|
120
|
+
return uniqueCommands(commandGroups.flat()).sort((left, right) => left.name.localeCompare(right.name));
|
|
121
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AcpCapabilitySnapshot, AcpProviderInstance, AcpRuntimeMetadata } from "./types";
|
|
2
|
+
export declare function applyAcpConfigOption(provider: AcpProviderInstance, metadata: AcpRuntimeMetadata, key: keyof AcpCapabilitySnapshot["capabilities"], value: string | boolean, label: string): Promise<boolean>;
|
|
3
|
+
export declare function applyAcpThoughtLevel(provider: AcpProviderInstance, metadata: AcpRuntimeMetadata): Promise<void>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { buildAcpCapabilitySnapshot } from "./capabilities.mjs";
|
|
2
|
+
function getLanguageModelInternals(provider) {
|
|
3
|
+
const model = provider.model;
|
|
4
|
+
if (!model || typeof model !== "object")
|
|
5
|
+
return null;
|
|
6
|
+
return model;
|
|
7
|
+
}
|
|
8
|
+
function resolveCapabilityConfigId(capability) {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
if (!capability || capability.source === "fallback")
|
|
11
|
+
return null;
|
|
12
|
+
const configId = String((_a = capability === null || capability === void 0 ? void 0 : capability.configId) !== null && _a !== void 0 ? _a : "").trim();
|
|
13
|
+
if (configId)
|
|
14
|
+
return configId;
|
|
15
|
+
const key = String((_b = capability === null || capability === void 0 ? void 0 : capability.key) !== null && _b !== void 0 ? _b : "").trim();
|
|
16
|
+
return key || null;
|
|
17
|
+
}
|
|
18
|
+
function normalizeConfigOptionRequest({ sessionId, configId, value, }) {
|
|
19
|
+
if (typeof value === "boolean") {
|
|
20
|
+
return {
|
|
21
|
+
sessionId,
|
|
22
|
+
configId,
|
|
23
|
+
type: "boolean",
|
|
24
|
+
value,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
sessionId,
|
|
29
|
+
configId,
|
|
30
|
+
value,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function refreshCapabilitySnapshotFromConfigOptions({ metadata, model, sessionId, configOptions, }) {
|
|
34
|
+
var _a;
|
|
35
|
+
if (!Array.isArray(configOptions))
|
|
36
|
+
return;
|
|
37
|
+
model.sessionResponse = Object.assign(Object.assign({}, ((_a = model.sessionResponse) !== null && _a !== void 0 ? _a : {})), { sessionId,
|
|
38
|
+
configOptions });
|
|
39
|
+
metadata.capabilitySnapshot = buildAcpCapabilitySnapshot({
|
|
40
|
+
provider: metadata.provider,
|
|
41
|
+
sessionResponse: model.sessionResponse,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export async function applyAcpConfigOption(provider, metadata, key, value, label) {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
const normalizedValue = typeof value === "boolean" ? value : String(value !== null && value !== void 0 ? value : "").trim();
|
|
47
|
+
if (normalizedValue === "")
|
|
48
|
+
return false;
|
|
49
|
+
const model = getLanguageModelInternals(provider);
|
|
50
|
+
const connection = model === null || model === void 0 ? void 0 : model.connection;
|
|
51
|
+
const sessionId = (_a = model === null || model === void 0 ? void 0 : model.sessionId) !== null && _a !== void 0 ? _a : provider.getSessionId();
|
|
52
|
+
const configId = resolveCapabilityConfigId((_b = metadata.capabilitySnapshot) === null || _b === void 0 ? void 0 : _b.capabilities[key]);
|
|
53
|
+
if (!(connection === null || connection === void 0 ? void 0 : connection.setSessionConfigOption) || !sessionId || !configId) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
if (!model)
|
|
57
|
+
return false;
|
|
58
|
+
try {
|
|
59
|
+
const response = await connection.setSessionConfigOption(Object.assign({}, normalizeConfigOptionRequest({
|
|
60
|
+
sessionId,
|
|
61
|
+
configId,
|
|
62
|
+
value: normalizedValue,
|
|
63
|
+
})));
|
|
64
|
+
refreshCapabilitySnapshotFromConfigOptions({
|
|
65
|
+
metadata,
|
|
66
|
+
model,
|
|
67
|
+
sessionId,
|
|
68
|
+
configOptions: response === null || response === void 0 ? void 0 : response.configOptions,
|
|
69
|
+
});
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
metadata.warnings.push(`Failed to set ACP ${label} "${normalizedValue}": ${error instanceof Error ? error.message : String(error)}`);
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export async function applyAcpThoughtLevel(provider, metadata) {
|
|
78
|
+
var _a;
|
|
79
|
+
const thoughtLevel = String((_a = metadata.thoughtLevel) !== null && _a !== void 0 ? _a : "").trim();
|
|
80
|
+
if (!thoughtLevel)
|
|
81
|
+
return;
|
|
82
|
+
const applied = await applyAcpConfigOption(provider, metadata, "thought_level", thoughtLevel, "thought level");
|
|
83
|
+
if (!applied) {
|
|
84
|
+
metadata.warnings.push(`ACP thought level "${thoughtLevel}" is selected, but this session does not expose a configurable thought_level option.`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type ContextItemKind = "file" | "annotation";
|
|
2
|
+
export type Rect = {
|
|
3
|
+
x?: number;
|
|
4
|
+
y?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
top?: number;
|
|
8
|
+
right?: number;
|
|
9
|
+
bottom?: number;
|
|
10
|
+
left?: number;
|
|
11
|
+
};
|
|
12
|
+
export type TextRange = {
|
|
13
|
+
startLine?: number;
|
|
14
|
+
endLine?: number;
|
|
15
|
+
startColumn?: number;
|
|
16
|
+
endColumn?: number;
|
|
17
|
+
startOffset?: number;
|
|
18
|
+
endOffset?: number;
|
|
19
|
+
};
|
|
20
|
+
export type ContextFileItem = {
|
|
21
|
+
kind: "file";
|
|
22
|
+
id?: string;
|
|
23
|
+
path: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
mimeType?: string;
|
|
26
|
+
range?: {
|
|
27
|
+
startLine?: number;
|
|
28
|
+
endLine?: number;
|
|
29
|
+
startColumn?: number;
|
|
30
|
+
endColumn?: number;
|
|
31
|
+
};
|
|
32
|
+
description?: string;
|
|
33
|
+
metadata?: Record<string, unknown>;
|
|
34
|
+
};
|
|
35
|
+
export type ContextAnnotationTarget = {
|
|
36
|
+
type: "web-element";
|
|
37
|
+
url?: string;
|
|
38
|
+
selector?: string;
|
|
39
|
+
elementId?: string;
|
|
40
|
+
label?: string;
|
|
41
|
+
rect?: Rect;
|
|
42
|
+
} | {
|
|
43
|
+
type: "canvas-element";
|
|
44
|
+
filePath?: string;
|
|
45
|
+
canvasId?: string;
|
|
46
|
+
elementId?: string;
|
|
47
|
+
elementType?: string;
|
|
48
|
+
label?: string;
|
|
49
|
+
rect?: Rect;
|
|
50
|
+
link?: string;
|
|
51
|
+
} | {
|
|
52
|
+
type: "text";
|
|
53
|
+
filePath?: string;
|
|
54
|
+
quote?: string;
|
|
55
|
+
range?: TextRange;
|
|
56
|
+
label?: string;
|
|
57
|
+
};
|
|
58
|
+
export type ContextAnnotationItem = {
|
|
59
|
+
kind: "annotation";
|
|
60
|
+
id?: string;
|
|
61
|
+
body: string;
|
|
62
|
+
target: ContextAnnotationTarget;
|
|
63
|
+
title?: string;
|
|
64
|
+
status?: "open" | "resolved";
|
|
65
|
+
source?: string;
|
|
66
|
+
metadata?: Record<string, unknown>;
|
|
67
|
+
};
|
|
68
|
+
export type ContextItem = ContextFileItem | ContextAnnotationItem;
|
|
69
|
+
export type ContextBundleV2 = {
|
|
70
|
+
version: "2";
|
|
71
|
+
items: ContextItem[];
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
};
|
|
74
|
+
export type ContextBundleChange = {
|
|
75
|
+
operation: "add" | "remove" | "replace" | "clear" | "consume";
|
|
76
|
+
ids?: string[];
|
|
77
|
+
kinds?: ContextItemKind[];
|
|
78
|
+
items?: ContextItem[];
|
|
79
|
+
};
|
|
80
|
+
export type ContextOperationResult = {
|
|
81
|
+
context: ContextBundleV2;
|
|
82
|
+
change: ContextBundleChange;
|
|
83
|
+
};
|
|
84
|
+
export declare function createContextBundle(items?: ContextItem[], updatedAt?: string): ContextBundleV2;
|
|
85
|
+
export declare function isContextItemKind(value: unknown): value is ContextItemKind;
|
|
86
|
+
export declare function filterContextBundle(context: ContextBundleV2, kinds?: ContextItemKind[]): ContextBundleV2;
|
|
87
|
+
export declare function hasContextItems(context?: ContextBundleV2 | null): context is ContextBundleV2;
|
|
88
|
+
export declare function formatDynamicContextPrompt(context: ContextBundleV2, userMessage: string): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function createContextBundle(items = [], updatedAt = new Date().toISOString()) {
|
|
2
|
+
return {
|
|
3
|
+
version: "2",
|
|
4
|
+
items,
|
|
5
|
+
updatedAt,
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export function isContextItemKind(value) {
|
|
9
|
+
return value === "file" || value === "annotation";
|
|
10
|
+
}
|
|
11
|
+
export function filterContextBundle(context, kinds) {
|
|
12
|
+
if (!kinds)
|
|
13
|
+
return context;
|
|
14
|
+
const kindSet = new Set(kinds);
|
|
15
|
+
return Object.assign(Object.assign({}, context), { items: context.items.filter((item) => kindSet.has(item.kind)) });
|
|
16
|
+
}
|
|
17
|
+
export function hasContextItems(context) {
|
|
18
|
+
return ((context === null || context === void 0 ? void 0 : context.version) === "2" &&
|
|
19
|
+
Array.isArray(context.items) &&
|
|
20
|
+
context.items.length > 0);
|
|
21
|
+
}
|
|
22
|
+
export function formatDynamicContextPrompt(context, userMessage) {
|
|
23
|
+
const contextJson = JSON.stringify(context, null, 2).replaceAll("</", "<\\/");
|
|
24
|
+
return [
|
|
25
|
+
'<dynamic_context version="2">',
|
|
26
|
+
contextJson,
|
|
27
|
+
"</dynamic_context>",
|
|
28
|
+
"",
|
|
29
|
+
"<user_message>",
|
|
30
|
+
userMessage,
|
|
31
|
+
"</user_message>",
|
|
32
|
+
].join("\n");
|
|
33
|
+
}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import type { AcpCapabilitySnapshot } from "./types";
|
|
2
|
+
export declare const ACP_CAPABILITY_CACHE_TTL_MS: number;
|
|
3
|
+
export declare const ACP_DEFAULT_CAPABILITY_SNAPSHOTS: {
|
|
4
|
+
claude: {
|
|
5
|
+
provider: "claude";
|
|
6
|
+
sessionId: null;
|
|
7
|
+
source: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
ttl: number;
|
|
10
|
+
agentVersion: null;
|
|
11
|
+
capabilities: {
|
|
12
|
+
model: {
|
|
13
|
+
key: "model";
|
|
14
|
+
currentValue: string;
|
|
15
|
+
configId: string;
|
|
16
|
+
configKey: string;
|
|
17
|
+
source: "fallback";
|
|
18
|
+
options: {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
description: string;
|
|
22
|
+
order: number;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
mode: {
|
|
26
|
+
key: "mode";
|
|
27
|
+
currentValue: "bypassPermissions";
|
|
28
|
+
configId: string;
|
|
29
|
+
configKey: string;
|
|
30
|
+
source: "fallback";
|
|
31
|
+
options: {
|
|
32
|
+
value: string;
|
|
33
|
+
label: string;
|
|
34
|
+
description: string;
|
|
35
|
+
order: number;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
thought_level: {
|
|
39
|
+
key: "thought_level";
|
|
40
|
+
currentValue: string;
|
|
41
|
+
configId: string;
|
|
42
|
+
configKey: string;
|
|
43
|
+
source: "fallback";
|
|
44
|
+
options: {
|
|
45
|
+
value: string;
|
|
46
|
+
label: string;
|
|
47
|
+
description: string;
|
|
48
|
+
order: number;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
metadata: {
|
|
53
|
+
availableCommands: never[];
|
|
54
|
+
tokenUsage: null;
|
|
55
|
+
rawSession: null;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
codex: {
|
|
59
|
+
provider: "codex";
|
|
60
|
+
sessionId: null;
|
|
61
|
+
source: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
ttl: number;
|
|
64
|
+
agentVersion: null;
|
|
65
|
+
capabilities: {
|
|
66
|
+
model: {
|
|
67
|
+
key: "model";
|
|
68
|
+
currentValue: string;
|
|
69
|
+
configId: string;
|
|
70
|
+
configKey: string;
|
|
71
|
+
source: "fallback";
|
|
72
|
+
options: {
|
|
73
|
+
value: string;
|
|
74
|
+
label: string;
|
|
75
|
+
description: string;
|
|
76
|
+
order: number;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
mode: {
|
|
80
|
+
key: "mode";
|
|
81
|
+
currentValue: "full-access";
|
|
82
|
+
configId: string;
|
|
83
|
+
configKey: string;
|
|
84
|
+
source: "fallback";
|
|
85
|
+
options: {
|
|
86
|
+
value: string;
|
|
87
|
+
label: string;
|
|
88
|
+
description: string;
|
|
89
|
+
order: number;
|
|
90
|
+
}[];
|
|
91
|
+
};
|
|
92
|
+
thought_level: {
|
|
93
|
+
key: "thought_level";
|
|
94
|
+
currentValue: string;
|
|
95
|
+
configId: string;
|
|
96
|
+
configKey: string;
|
|
97
|
+
source: "fallback";
|
|
98
|
+
options: {
|
|
99
|
+
value: string;
|
|
100
|
+
label: string;
|
|
101
|
+
description: string;
|
|
102
|
+
order: number;
|
|
103
|
+
}[];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
metadata: {
|
|
107
|
+
availableCommands: never[];
|
|
108
|
+
tokenUsage: null;
|
|
109
|
+
rawSession: null;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
gemini: {
|
|
113
|
+
provider: "gemini";
|
|
114
|
+
sessionId: null;
|
|
115
|
+
source: string;
|
|
116
|
+
updatedAt: string;
|
|
117
|
+
ttl: number;
|
|
118
|
+
agentVersion: null;
|
|
119
|
+
capabilities: {
|
|
120
|
+
model: {
|
|
121
|
+
key: "model";
|
|
122
|
+
currentValue: string;
|
|
123
|
+
configId: string;
|
|
124
|
+
configKey: string;
|
|
125
|
+
source: "fallback";
|
|
126
|
+
options: {
|
|
127
|
+
value: string;
|
|
128
|
+
label: string;
|
|
129
|
+
description: string;
|
|
130
|
+
order: number;
|
|
131
|
+
}[];
|
|
132
|
+
};
|
|
133
|
+
mode: {
|
|
134
|
+
key: "mode";
|
|
135
|
+
currentValue: "bypassPermissions";
|
|
136
|
+
configId: string;
|
|
137
|
+
configKey: string;
|
|
138
|
+
source: "fallback";
|
|
139
|
+
options: {
|
|
140
|
+
value: string;
|
|
141
|
+
label: string;
|
|
142
|
+
description: string;
|
|
143
|
+
order: number;
|
|
144
|
+
}[];
|
|
145
|
+
};
|
|
146
|
+
thought_level: {
|
|
147
|
+
key: "thought_level";
|
|
148
|
+
currentValue: string;
|
|
149
|
+
configId: string;
|
|
150
|
+
configKey: string;
|
|
151
|
+
source: "fallback";
|
|
152
|
+
options: {
|
|
153
|
+
value: string;
|
|
154
|
+
label: string;
|
|
155
|
+
description: string;
|
|
156
|
+
order: number;
|
|
157
|
+
}[];
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
metadata: {
|
|
161
|
+
availableCommands: never[];
|
|
162
|
+
tokenUsage: null;
|
|
163
|
+
rawSession: null;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
opencode: {
|
|
167
|
+
provider: "opencode";
|
|
168
|
+
sessionId: null;
|
|
169
|
+
source: string;
|
|
170
|
+
updatedAt: string;
|
|
171
|
+
ttl: number;
|
|
172
|
+
agentVersion: null;
|
|
173
|
+
capabilities: {
|
|
174
|
+
model: {
|
|
175
|
+
key: "model";
|
|
176
|
+
currentValue: string;
|
|
177
|
+
configId: string;
|
|
178
|
+
configKey: string;
|
|
179
|
+
source: "fallback";
|
|
180
|
+
options: {
|
|
181
|
+
value: string;
|
|
182
|
+
label: string;
|
|
183
|
+
description: string;
|
|
184
|
+
order: number;
|
|
185
|
+
}[];
|
|
186
|
+
};
|
|
187
|
+
mode: {
|
|
188
|
+
key: "mode";
|
|
189
|
+
currentValue: "build";
|
|
190
|
+
configId: string;
|
|
191
|
+
configKey: string;
|
|
192
|
+
source: "fallback";
|
|
193
|
+
options: {
|
|
194
|
+
value: string;
|
|
195
|
+
label: string;
|
|
196
|
+
description: string;
|
|
197
|
+
order: number;
|
|
198
|
+
}[];
|
|
199
|
+
};
|
|
200
|
+
thought_level: {
|
|
201
|
+
key: "thought_level";
|
|
202
|
+
currentValue: string;
|
|
203
|
+
configId: string;
|
|
204
|
+
configKey: string;
|
|
205
|
+
source: "fallback";
|
|
206
|
+
options: {
|
|
207
|
+
value: string;
|
|
208
|
+
label: string;
|
|
209
|
+
description: string;
|
|
210
|
+
order: number;
|
|
211
|
+
}[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
metadata: {
|
|
215
|
+
availableCommands: never[];
|
|
216
|
+
tokenUsage: null;
|
|
217
|
+
rawSession: null;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
export declare const CODEX_DEFAULT_CAPABILITY_SNAPSHOT: {
|
|
222
|
+
provider: "codex";
|
|
223
|
+
sessionId: null;
|
|
224
|
+
source: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
ttl: number;
|
|
227
|
+
agentVersion: null;
|
|
228
|
+
capabilities: {
|
|
229
|
+
model: {
|
|
230
|
+
key: "model";
|
|
231
|
+
currentValue: string;
|
|
232
|
+
configId: string;
|
|
233
|
+
configKey: string;
|
|
234
|
+
source: "fallback";
|
|
235
|
+
options: {
|
|
236
|
+
value: string;
|
|
237
|
+
label: string;
|
|
238
|
+
description: string;
|
|
239
|
+
order: number;
|
|
240
|
+
}[];
|
|
241
|
+
};
|
|
242
|
+
mode: {
|
|
243
|
+
key: "mode";
|
|
244
|
+
currentValue: "full-access";
|
|
245
|
+
configId: string;
|
|
246
|
+
configKey: string;
|
|
247
|
+
source: "fallback";
|
|
248
|
+
options: {
|
|
249
|
+
value: string;
|
|
250
|
+
label: string;
|
|
251
|
+
description: string;
|
|
252
|
+
order: number;
|
|
253
|
+
}[];
|
|
254
|
+
};
|
|
255
|
+
thought_level: {
|
|
256
|
+
key: "thought_level";
|
|
257
|
+
currentValue: string;
|
|
258
|
+
configId: string;
|
|
259
|
+
configKey: string;
|
|
260
|
+
source: "fallback";
|
|
261
|
+
options: {
|
|
262
|
+
value: string;
|
|
263
|
+
label: string;
|
|
264
|
+
description: string;
|
|
265
|
+
order: number;
|
|
266
|
+
}[];
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
metadata: {
|
|
270
|
+
availableCommands: never[];
|
|
271
|
+
tokenUsage: null;
|
|
272
|
+
rawSession: null;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
export declare function getDefaultAcpCapabilitySnapshot(provider: string | null | undefined): AcpCapabilitySnapshot | null;
|